read_pieced_value do big endian processing only in case of valid gdb_regnum
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4f072d17
DE
12014-10-31 Doug Evans <xdje42@gmail.com>
2
3 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
4 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5
8301c89e
DE
62014-10-31 Doug Evans <xdje42@gmail.com>
7
8 * valops.c (value_cast_pointers): Fix whitespace.
9 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
10 Ditto.
11
02be9a71
DE
122014-10-30 Doug Evans <dje@google.com>
13
14 * NEWS: Mention ability add attributes to gdb.Objfile and
15 gdb.Progspace objects.
16 * python/py-objfile.c (objfile_object): New member dict.
17 (objfpy_dealloc): Py_XDECREF dict.
18 (objfpy_initialize): Initialize dict.
19 (objfile_getset): Add __dict__.
20 (objfile_object_type): Set tp_dictoffset member.
21 * python/py-progspace.c (progspace_object): New member dict.
22 (pspy_dealloc): Py_XDECREF dict.
23 (pspy_initialize): Initialize dict.
24 (pspace_getset): Add __dict__.
25 (pspace_object_type): Set tp_dictoffset member.
26
6427bef6
YQ
272014-10-30 Yao Qi <yao@codesourcery.com>
28
29 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
30 replace '\\' with '\\\\'.
31
f60325be
JB
322014-10-29 Joel Brobecker <brobecker@adacore.com>
33
34 GDB 7.8.1 released.
35
ab917dfb
PA
362014-10-29 Pedro Alves <palves@redhat.com>
37
38 PR gdb/17408
39 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
40 instead of assuming a thread with a stepping range is always
41 stepping.
42
d3d4baed
PA
432014-10-29 Pedro Alves <palves@redhat.com>
44
45 PR python/17372
46 * event-top.c (change_line_handler): Call
47 gdb_rl_callback_handler_remove instead of
48 rl_callback_handler_remove.
49 (callback_handler_installed): New global.
50 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
51 (gdb_rl_callback_handler_reinstall): New functions.
52 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
53 gdb_rl_callback_handler_install instead of
54 rl_callback_handler_remove and rl_callback_handler_install.
55 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
56 instead of rl_callback_handler_remove.
57 * event-top.h (gdb_rl_callback_handler_remove)
58 (gdb_rl_callback_handler_install)
59 (gdb_rl_callback_handler_reinstall): New declarations.
60 * infrun.c (reinstall_readline_callback_handler_cleanup): New
61 cleanup function.
62 (fetch_inferior_event): Install it.
63 * top.c (gdb_readline_wrapper_line) Call
64 gdb_rl_callback_handler_remove instead of
65 rl_callback_handler_remove.
66 (gdb_readline_wrapper_cleanup): Don't call
67 rl_callback_handler_install.
68
6e5d7f39
PA
692014-10-29 Pedro Alves <palves@redhat.com>
70
71 * event-top.c (command_line_handler): Clear the first byte of
72 linebuffer, when it is first allocated.
73
551cb6a5
PA
742014-10-29 Pedro Alves <palves@redhat.com>
75
76 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
77 TRY_CATCH.
78
1e1e619b
PA
792014-10-29 Pedro Alves <palves@redhat.com>
80
81 PR tui/16138
82 PR tui/17519
83 * tui/tui-interp.c (tui_is_toplevel): Delete global.
84 (tui_allowed_p): Delete function.
85 * tui/tui.c: Include "interps.h".
86 (tui_enable): Don't use tui_allowed_p. Error out here with
87 detailed error messages if the TUI is the top level interpreter,
88 or if output is not a terminal. Use newterm instead of initscr,
89 and error out if initializing the terminal fails. Also error out if
90 the terminal doesn't support cursor addressing.
91 * tui/tui.h (tui_allowed_p): Delete declaration.
92
6041179a
JB
932014-10-29 Joel Brobecker <brobecker@adacore.com>
94
95 * arm-tdep.c (arm_skip_stack_protector): Return early if
96 address loaded by first "ldr" instruction does not have
97 a corresponding minimal symbol. Update comment.
98
6ae274b7
YQ
992014-10-29 Yao Qi <yao@codesourcery.com>
100
101 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
102 loaded address correctly of ldr instruction.
103
7f5ef605
PA
1042014-10-28 Pedro Alves <palves@redhat.com>
105
106 PR gdb/12623
107 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
108 field.
109 * infrun.c (resume) <stepping breakpoint instruction>: Set the
110 thread's stepped_breakpoint field. Skip if reverse debugging.
111 Add comment.
112 (init_thread_stepping_state, handle_signal_stop): Clear the
113 thread's stepped_breakpoint field.
114
7d1a114c
PA
1152014-10-27 Pedro Alves <palves@redhat.com>
116
117 * remote.c (remote_thread_alive): New, factored out from ...
118 (remote_thread_alive): ... this.
119 (remote_update_thread_list): Bail out before deleting threads if
120 the target returned an empty list, and, the current thread has a
121 magic/fake ptid.
122
e5f8a7cc
PA
1232014-10-27 Pedro Alves <palves@redhat.com>
124
125 * infrun.c (handle_signal_stop): Also skip handlers when a random
126 signal arrives while handling a "stepi" or a "nexti". Set the
127 thread's 'step_after_step_resume_breakpoint' flag.
128
71e396f9
LM
1292014-10-27 Luis Machado <lgustavo@codesourcery.com>
130
131 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
132 (arm_record_ld_st_imm_offset): Reimplement to cover all
133 load/store cases for ARM opcode 010.
134 (arm_record_ld_st_multiple): Reimplement to cover all
135 load/store cases for ARM opcode 100.
136
3aee438b
DE
1372014-10-26 Doug Evans <xdje42@gmail.com>
138
139 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
140
f88cb4b6
DE
1412014-10-26 Doug Evans <xdje42@gmail.com>
142
143 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
144 parameter "kind" to "block_index".
145 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
146 "block_index".
147 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
148
a023a30f
DE
1492014-10-26 Doug Evans <xdje42@gmail.com>
150
151 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
152
4c35218e
DE
1532014-10-26 Doug Evans <xdje42@gmail.com>
154
155 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
156 obstack_alloc.
157
f08e8df3
DE
1582014-10-26 Doug Evans <xdje42@gmail.com>
159
160 * parser-defs.h (block_found): Move decl from here ...
161 * symtab.h (block_found): ... to here.
162
cf901d3b
DE
1632014-10-26 Doug Evans <xdje42@gmail.com>
164
165 * symtab.h (struct field_of_this_result): Fix typo in comment.
166 (lookup_symbol_in_language): Move function comment here.
167 (lookup_symbol): Improve function comment.
168 (basic_lookup_symbol_nonlocal): Ditto.
169 (lookup_symbol_static, lookup_symbol_global): Ditto.
170 (lookup_symbol_aux_block): Ditto.
171 (lookup_language_this): Add function comment.
172 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
173 function comment.
174 (lookup_block_symbol): Improve function comment.
175 (lookup_struct): Fix capitalization in function comment.
176 (lookup_transparent_type): Add function comment.
177 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
178 Improve function comment.
179 (lookup_objfile_from_block): Add function comment.
180 * symtab.c (lookup_symbol_in_language): Update function comment.
181 (lookup_symbol, lookup_language_this): Ditto.
182 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
183 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
184 (basic_lookup_symbol_nonlocal): Ditto.
185 (lookup_symbol_static, lookup_symbol_global): Ditto.
186 (lookup_transparent_type, lookup_block_symbol): Ditto.
187
ff6c39cf
DE
1882014-10-25 Doug Evans <xdje42@gmail.com>
189
190 * symtab.c (types_info): Delete forward decl.
191 (functions_info, variables_info, sources_info): Ditto.
192 (_initialize_symtab): Rewrite forward decl to use
193 initialize_file_ftype.
194
ec201f0c
DE
1952014-10-25 Doug Evans <xdje42@gmail.com>
196
197 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
198
ca040673
DE
1992014-10-25 Doug Evans <xdje42@gmail.com>
200
201 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
202 of local var child_die.
203
6f259a23
DB
2042014-10-24 Don Breazeal <donb@codesourcery.com>
205
206 * infrun.c (follow_fork_inferior): Update fork message printing
207 to use target_terminal_ours_for_output instead of
208 target_terminal_ours, to use _() for all format strings, to print
209 "vfork" instead of "fork" for vforks, and to add a detach message.
210 (handle_vfork_child_exec_or_exit): Update message printing to use
211 target_terminal_ours_for_output instead of target_terminal_ours, to
212 use _() for all format strings, and to fix some formatting.
213
09dd9a69
PA
2142014-10-24 Pedro Alves <palves@redhat.com>
215
216 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
217 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
218 * config/vax/vax.mh: Delete.
219 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
220 obsolete configurations section.
221 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
222 * vax-nat.c: Delete file.
223
5ab806de
PA
2242014-10-24 Pedro Alves <palves@redhat.com>
225
226 * NEWS (Removed targets): Add OS/arch column.
227
3433cfa5
SC
2282014-10-24 Siva Chandra Reddy <sivachandra@google.com>
229
230 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
231 on the arg type of a constructor only if it is of reference type.
232
96ba4233
SL
2332014-10-23 Sandra Loosemore <sandra@codesourcery.com>
234
235 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
236 accessors and constants from nios2 opcodes update.
237 (nios2_get_next_pc): Likewise.
238
28153fd3
DE
2392014-10-19 Doug Evans <xdje42@gmail.com>
240
241 * gdbthread.h (set_running): Fix comment.
242 (set_executing, finish_thread_state): Fix comment.
243
fc9b8e47
DE
2442014-10-18 Doug Evans <xdje42@gmail.com>
245
246 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
247
4ffbba72
DE
2482014-10-17 Doug Evans <dje@google.com>
249
250 * NEWS: Mention new event gdb.clear_objfiles.
251 * python/py-event.h (emit_clear_objfiles_event): Clear
252 * python/py-events.h (events_object): New member clear_objfiles.
253 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
254 event.
255 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
256 emit clear_objfiles event.
257 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
258 function.
259 (emit_clear_objfiles_event): New function.
260 (clear_objfiles): New event.
261 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
262 Declare.
263 * python/python.c (_initialize_python): Call
264 gdbpy_initialize_clear_objfiles_event.
265
d096d8c1
DE
2662014-10-17 Doug Evans <dje@google.com>
267
268 * NEWS: Mention new gdb.Objfile.progspace attribute.
269 * python/py-objfile.c (objfpy_get_progspace): New function.
270 (objfile_getset): New entry for "progspace".
271
6c4486e6
PA
2722014-10-17 Pedro Alves <palves@redhat.com>
273
274 PR gdb/17471
275 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
276 returns a copy of the input.
277 (run_command_1, continue_command, step_1, jump_command)
278 (signal_command, until_command, advance_command, finish_command)
279 (attach_command): Adjust and install a cleanup to free the
280 stripped args.
281
0ff33695
PA
2822014-10-17 Pedro Alves <palves@redhat.com>
283
284 PR gdb/17300
285 * infcmd.c (continue_1): If continuing all threads in the
286 foreground, make sure the inferior's terminal settings are put in
287 effect.
288
6fdebc3d
PA
2892014-10-17 Pedro Alves <palves@redhat.com>
290
291 PR gdb/17472
292 * annotate.c (annotate_breakpoints_invalid): Use
293 target_terminal_our_for_output instead of target_terminal_ours.
294 Give back the terminal to the target.
295 (annotate_frames_invalid): Likewise.
296
5842f62a
PA
2972014-10-17 Pedro Alves <palves@redhat.com>
298
299 * target.c (enum terminal_state): New enum.
300 (terminal_state): New global.
301 (target_terminal_init): New function.
302 (target_terminal_inferior): Skip if inferior already owns the
303 terminal.
304 (target_terminal_ours, target_terminal_ours_for_output): New
305 functions.
306 * target.h (target_terminal_init): Convert to function prototype.
307 (target_terminal_ours_for_output): Convert to function prototype
308 and tweak comment.
309 (target_terminal_ours): Convert to function prototype and tweak
310 comment.
311 * windows-nat.c (do_initial_windows_stuff): Call
312 target_terminal_init instead of child_terminal_init_with_pgrp.
313
32a8097b
PA
3142014-10-17 Pedro Alves <palves@redhat.com>
315
316 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
317 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
318 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
319 solib-osf.c.
320 * NEWS: Mention that support for alpha*-*-osf* has been removed.
321 * ada-lang.h [__alpha__ && __osf__]
322 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
323 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
324 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
325 GDB_OSABI_OSF1.
326 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
327 files.
328 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
329 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
330 * configure: Regenerate.
331 * configure.ac: Remove references to osf.
332 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
333 section. Remove all other references to osf.
334 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
335 Remove all other references to osf.
336 * dec-thread.c: Delete file.
337 * defs.h (GDB_OSABI_OSF1): Delete.
338 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
339 defined.
340 * osabi.c (gdb_osabi_names): Delete "OSF/1".
341 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
342 Delete code.
343 (unconditionally_kill_inferior)
344 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
345 * solib-osf.c: Delete file.
346
80134cf5
PA
3472014-10-17 Pedro Alves <palves@redhat.com>
348
349 * remote.c (clear_threads_listing_context): Move higher up, out of
350 the HAVE_LIBEXPAT guard.
351
89c7137f
TG
3522014-10-16 Tristan Gingold <gingold@adacore.com>
353
354 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
355 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
356 on amd64.
357
44ee4a52
PA
3582014-10-15 Pedro Alves <palves@redhat.com>
359
360 * dec-thread.c (dec_thread_count_gdb_threads)
361 (dec_thread_add_gdb_thread): Delete.
362 (dec_thread_update_thread_list): Delete.
363 (dec_thread_find_new_threads): Rename to ...
364 (dec_thread_update_thread_list): ... this. Delete GDB-size
365 threads that are no longer found in dec_thread_list.
366 (resync_thread_list): Delete.
367 (dec_thread_wait): Call dec_thread_update_thread_list instead of
368 resync_thread_list.
369
ab970af1
PA
3702014-10-15 Pedro Alves <palves@redhat.com>
371
372 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
373 * remote.c (remote_update_thread_list): Skip calling prune_threads
374 if any thread listing method is supported, and instead walk over
375 the set of remote threads listed, deleting those that are not
376 found in GDB's thread list.
377
e8032dde
PA
3782014-10-15 Pedro Alves <palves@redhat.com>
379
380 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
381 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
382 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
383 (bsd_uthread_target): Adjust.
384 * corelow.c (core_open): Adjust.
385 * dec-thread.c (dec_thread_find_new_threads): Update comment.
386 (dec_thread_update_thread_list): New function.
387 (init_dec_thread_ops): Adjust.
388 * gdbthread.h (prune_threads): New declaration.
389 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
390 (thread_db_update_thread_list): ... this. Call prune_threads.
391 (init_thread_db_ops): Adjust.
392 * nto-procfs.c (procfs_find_new_threads): Rename to ...
393 (procfs_update_thread_list): ... this. Call prune_threads.
394 (procfs_attach, procfs_create_inferior, init_procfs_targets):
395 Adjust.
396 * obsd-nat.c (obsd_find_new_threads): Rename to ...
397 (obsd_update_thread_list): ... this. Call prune_threads.
398 (obsd_add_target): Adjust.
399 * procfs.c (procfs_target): Adjust.
400 (procfs_notice_thread): Update comment.
401 (procfs_find_new_threads): Rename to ...
402 (procfs_update_thread_list): ... this. Call prune_threads.
403 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
404 comment.
405 (ravenscar_wait): Adjust.
406 (ravenscar_find_new_threads): Rename to ...
407 (ravenscar_update_thread_list): ... this. Call prune_threads.
408 (init_ravenscar_thread_ops): Adjust.
409 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
410 (record_btrace_update_thread_list): ... this. Adjust comment.
411 (init_record_btrace_ops): Adjust.
412 * remote.c (remote_threads_info): Rename to ...
413 (remote_update_thread_list): ... this. Call prune_threads.
414 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
415 Adjust.
416 * sol-thread.c (check_for_thread_db): Adjust.
417 (sol_find_new_threads_callback): Rename to ...
418 (sol_update_thread_list_callback): ... this.
419 (sol_find_new_threads): Rename to ...
420 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
421 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
422 * target-delegates.c: Regenerate.
423 * target.c (target_find_new_threads): Rename to ...
424 (target_update_thread_list): ... this.
425 * target.h (struct target_ops): Rename to_find_new_threads field
426 to to_update_thread_list.
427 (target_find_new_threads): Rename to ...
428 (target_update_thread_list): ... this.
429 * thread.c (prune_threads): Make extern.
430 (update_thread_list): Adjust.
431
6dc54d91
PA
4322014-10-15 Pedro Alves <palves@redhat.com>
433
434 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
435 Add describing comment. Return -1 if the qL packet is not
436 supported.
437 (struct thread_item, thread_item_t): Move higher up in
438 the file. Add comments.
439 (struct threads_parsing_context): Move higher up in
440 the file, add comments, and remote to ...
441 (struct threads_listing_context): ... this.
442 (remote_newthread_step): Don't add the thread to GDB's thread
443 database here. Instead push it to the thread_listing_context
444 list.
445 (remote_find_new_threads): Rename to ...
446 (remote_get_threads_with_ql): ... this. Add target_ops and
447 targets_listing_context parameters. Pass down context.
448 (start_thread): Adjust.
449 (clear_threads_parsing_context): Rename to ...
450 (clear_threads_listing_context): ... this.
451 (remote_get_threads_with_qxfer): New, with parts salvaged from old
452 remote_threads_info.
453 (remote_get_threads_with_qthreadinfo): Ditto.
454 (remote_threads_info): Reimplement.
455
36728e82
PA
4562014-10-15 Pedro Alves <palves@redhat.com>
457
458 * infrun.c (resume): Don't force displaced-stepping for all
459 single-steps on software single-stepping archs.
460
34b7e8a6
PA
4612014-10-15 Pedro Alves <palves@redhat.com>
462
463 * breakpoint.c (single_step_breakpoints): Delete global.
464 (insert_single_step_breakpoint): Adjust to store the breakpoint
465 pointer in the current thread.
466 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
467 (cancel_single_step_breakpoints): Delete functions.
468 (breakpoint_has_location_inserted_here): Make extern.
469 (single_step_breakpoint_inserted_here_p): Adjust to walk the
470 breakpoint list.
471 * breakpoint.h (breakpoint_has_location_inserted_here): New
472 declaration.
473 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
474 (cancel_single_step_breakpoints): Remove declarations.
475 * gdbthread.h (struct thread_control_state)
476 <single_step_breakpoints>: New field.
477 (delete_single_step_breakpoints)
478 (thread_has_single_step_breakpoints_set)
479 (thread_has_single_step_breakpoint_here): New declarations.
480 * infrun.c (follow_exec): Also clear the single-step breakpoints.
481 (singlestep_breakpoints_inserted_p, singlestep_ptid)
482 (singlestep_pc): Delete globals.
483 (infrun_thread_ptid_changed): Remove references to removed
484 globals.
485 (resume_cleanups): Delete the current thread's single-step
486 breakpoints.
487 (maybe_software_singlestep): Remove references to removed globals.
488 (resume): Adjust to use thread_has_single_step_breakpoints_set and
489 delete_single_step_breakpoints.
490 (init_wait_for_inferior): Remove references to removed globals.
491 (delete_thread_infrun_breakpoints): Delete the thread's
492 single-step breakpoints too.
493 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
494 single-step breakpoints here.
495 (delete_stopped_threads_single_step_breakpoints): New function.
496 (adjust_pc_after_break): Adjust to use
497 thread_has_single_step_breakpoints_set.
498 (handle_inferior_event): Remove references to removed globals.
499 Use delete_stopped_threads_single_step_breakpoints.
500 (handle_signal_stop): Adjust to per-thread single-step
501 breakpoints. Swap test order to do cheaper tests first.
502 (switch_back_to_stepped_thread): Extend debug output. Remove
503 references to removed globals.
504 * record-full.c (record_full_wait_1): Adjust to per-thread
505 single-step breakpoints.
506 * thread.c (delete_single_step_breakpoints)
507 (thread_has_single_step_breakpoints_set)
508 (thread_has_single_step_breakpoint_here): New functions.
509 (clear_thread_inferior_resources): Also delete the thread's
510 single-step breakpoints.
511
5b834a0a
PA
5122014-10-15 Pedro Alves <palves@redhat.com>
513
514 * thread.c (delete_thread_breakpoint): New function.
515 (delete_step_resume_breakpoint)
516 (delete_exception_resume_breakpoint): Use it.
517 (delete_at_next_stop): New function.
518 (clear_thread_inferior_resources): Use delete_at_next_stop.
519
a1fd2fa5
PA
5202014-10-15 Pedro Alves <palves@redhat.com>
521
522 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
523 (breakpoint_inserted_here_p): ... here. Remove special case for
524 software single-step breakpoints.
525 (find_non_raw_software_breakpoint_inserted_here): Inline ...
526 (software_breakpoint_inserted_here_p): ... here. Remove special
527 case for software single-step breakpoints.
528 (bp_target_info_copy_insertion_state)
529 (deprecated_insert_raw_breakpoint)
530 (deprecated_remove_raw_breakpoint): Delete functions.
531 * breakpoint.h (deprecated_insert_raw_breakpoint)
532 (deprecated_remove_raw_breakpoint): Remove declarations.
533
7c16b83e
PA
5342014-10-15 Pedro Alves <palves@redhat.com>
535
536 PR breakpoints/9649
537 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
538 Delete array globals.
539 (single_step_breakpoints): New global.
540 (breakpoint_xfer_memory): Remove special handling for single-step
541 breakpoints.
542 (update_breakpoints_after_exec): Delete bp_single_step
543 breakpoints.
544 (detach_breakpoints): Remove special handling for single-step
545 breakpoints.
546 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
547 (bpstat_stop_status): Add comment.
548 (bpstat_what, bptype_string, print_one_breakpoint_location)
549 (adjust_breakpoint_address, init_bp_location): Handle
550 bp_single_step.
551 (new_single_step_breakpoint): New function.
552 (set_momentary_breakpoint, bkpt_remove_location): Remove special
553 handling for single-step breakpoints.
554 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
555 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
556 Rewrite.
557 (detach_single_step_breakpoints, find_single_step_breakpoint):
558 Delete functions.
559 (breakpoint_has_location_inserted_here): New function.
560 (single_step_breakpoint_inserted_here_p): Rewrite.
561 * breakpoint.h: Remove FIXME.
562 (enum bptype) <bp_single_step>: New enum value.
563 (insert_single_step_breakpoint): Update comment.
564 * infrun.c (resume_cleanups)
565 (delete_step_thread_step_resume_breakpoint): Remove single-step
566 breakpoints.
567 (fetch_inferior_event): Install a cleanup that removes infrun
568 breakpoints.
569 (switch_back_to_stepped_thread) <expect thread advanced also>:
570 Clear step-over info.
571
0cbcdb96
PA
5722014-10-15 Pedro Alves <palves@redhat.com>
573
574 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
575 (delete_thread_infrun_breakpoints): New function, with parts
576 salvaged from delete_step_resume_breakpoint_callback.
577 (delete_step_thread_step_resume_breakpoint): Delete.
578 (for_each_just_stopped_thread_callback_func): New typedef.
579 (for_each_just_stopped_thread): New function.
580 (delete_just_stopped_threads_infrun_breakpoints): New function.
581 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
582 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
583 ... this. Adjust.
584 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
585
963f9c80
PA
5862014-10-15 Pedro Alves <palves@redhat.com>
587
588 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
589 trying to step past a non-steppable watchpoint.
590 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
591 field.
592 * infrun.c (struct step_over_info): Add new field
593 'nonsteppable_watchpoint_p' and adjust comments.
594 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
595 Adjust.
596 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
597 (stepping_past_nonsteppable_watchpoint): New function.
598 (step_over_info_valid_p): Also return true if stepping past a
599 nonsteppable watchpoint.
600 (proceed): Adjust call to set_step_over_info. Remove reference to
601 init_infwait_state.
602 (init_wait_for_inferior): Remove reference to init_infwait_state.
603 (waiton_ptid): Delete global.
604 (struct execution_control_state)
605 <stepped_after_stopped_by_watchpoint>: Delete field.
606 (wait_for_inferior, fetch_inferior_event): Always pass
607 minus_one_ptid to target_wait.
608 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
609 field.
610 (init_infwait_state): Delete function.
611 (handle_inferior_event): Remove infwait_state handling.
612 (handle_signal_stop) <watchpoints handling>: Adjust after
613 stepped_after_stopped_by_watchpoint removal. Don't remove
614 breakpoints here nor set infwait_state. Set the thread's
615 stepping_over_watchpoint flag, and call keep_going instead.
616 (keep_going): Handle stepping_over_watchpoint. Adjust
617 set_step_over_info calls.
618 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
619 function.
620
6cc83d2a
PA
6212014-10-15 Pedro Alves <palves@redhat.com>
622
623 * infrun.c (step_over_info_valid_p): New function.
624 (resume): Use step_over_info_valid_p instead of checking the
625 threads's trap_expected flag.
626
6979730b
DE
6272014-10-15 Doug Evans <dje@google.com>
628 Walfred Tedeschi <walfred.tedeschi@intel.com>
629
630 PR python/17364
631 * python/lib/gdb/__init__.py (packages): Add "printer".
632 * python/lib/gdb/command/bound_registers.py: Moved to ...
633 * python/lib/gdb/printer/bound_registers.py: ... here.
634 Add printer to global set of builtin printers. Rename printer from
635 "bound" to "mpx_bound128".
636 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
637 registered as global "builtin" printer.
638 (add_builtin_pretty_printer): New function.
639 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
640 gdb/printer/__init__.py.
641
35a49624
IB
6422014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
643
644 * Makefile.in (SFILES): Remove d-support.c.
645 (COMMON_OBS): Remove d-support.o.
646 * d-lang.h (d_parse_symbol): Remove declaration.
647 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
648 * d-support.c: Remove file.
649
8fa0c4f8
AA
6502014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
651
652 * gdb/infrun.c (process_event_stop_test): Apply
653 gdbarch_addr_bits_remove to longjmp resume address.
654
3666da81
PA
6552014-10-15 Pedro Alves <palves@redhat.com>
656
657 * regformats/microblaze.dat: Delete file.
658
449aa9df
AKA
6592014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
660
661 * features/Makefile (microblaze-expedite): Replace pc with rpc.
662 * regformats/microblaze-with-stack-protect.dat: Regenerate.
663
ebb8ece2
SC
6642014-10-15 Siva Chandra Reddy <sivachandra@google.com>
665
666 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
667 as non-trivial.
668
82c48ac7
SC
6692014-10-15 Siva Chandra Reddy <sivachandra@google.com>
670
671 PR c++/13403
672 PR c++/15154
673 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
674 with qualified args.
675
c40cc657
JB
6762014-10-14 Joel Brobecker <brobecker@adacore.com>
677
678 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
679 of the case where the second operand is a pointer.
680 <BINOP_SUB>: Likewise.
681
0ea5cda8
SDJ
6822014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
683
684 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
685 only if it is not NULL.
686 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
687 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
688 (struct probe_ops) <clear_semaphore>: Likewise.
689 * tracepoint.c (start_tracing): Call set_semaphore only if it is
690 not NULL.
691 (stop_tracing): Likewise, for clear_semaphore.
692
f7088df3
SDJ
6932014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
694
695 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
696 using language_c, instead of current_language.
697
4e1bbde0
DE
6982014-10-13 Doug Evans <dje@google.com>
699
6ff5a0f6 700 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 701 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 702 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
703 (pspy_new, pspace_to_pspace_object): Call it.
704
c780cc2f
JK
7052014-10-13 Miroslav Franc <mfranc@redhat.com>
706 Jan Kratochvil <jan.kratochvil@redhat.com>
707
708 Fix "save breakpoints" for "catch" command.
709 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
710 newline.
711
99894e11
JK
7122014-10-12 Miroslav Franc <mfranc@redhat.com>
713
714 Fix "save breakpoints" for "disable $bpnum" command.
715 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
716
3831839c
PA
7172014-10-10 Pedro Alves <palves@redhat.com>
718
719 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
720 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
721 (HFILES_NO_SRCDIR): Remove solib-irix.h.
722 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
723 and been removed.
724 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
725 * configure.ac: Remove references to IRIX.
726 * configure.host: Add *-*-irix* to the obsolete hosts section.
727 Remove all other references to irix.
728 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
729 Delete files.
730
cc3afae2
AKA
7312014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
732
733 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
734 isn't valid, release the tdesc arch data and return NULL.
735
cdfa0b0a
PA
7362014-10-10 Pedro Alves <palves@redhat.com>
737
738 * linux-tdep.c: Include observer.h.
739 (linux_inferior_data): New global.
740 (struct linux_info): New structure.
741 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
742 (get_linux_inferior_data): New functions.
743 (linux_vsyscall_range): Rename to ...
744 (linux_vsyscall_range_raw): ... this.
745 (linux_vsyscall_range): New function; handles caching.
746 (_initialize_linux_tdep): Register linux_inferior_data. Install
747 inferior_exit and inferior_appeared observers.
748
8b9a549d
PA
7492014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
750 Pedro Alves <palves@redhat.com>
751
752 PR symtab/14466
753 * solib-svr4.c (svr4_read_so_list): Rename to ...
754 (svr4_current_sos_1): ... this and change the function comment.
755 (svr4_current_sos): New function.
756
3437254d
PA
7572014-10-10 Pedro Alves <palves@redhat.com>
758
759 * arch-utils.c (default_vsyscall_range): New function.
760 * arch-utils.h (default_vsyscall_range): New declaration.
761 * gdbarch.sh (vsyscall_range): New hook.
762 * gdbarch.h, gdbarch.c: Regenerate.
763 * linux-tdep.c (linux_vsyscall_range): New function.
764 (linux_init_abi): Install linux_vsyscall_range as
765 vsyscall_range gdbarch hook.
766 * memrange.c (address_in_mem_range): New function.
767 * memrange.h (address_in_mem_range): New declaration.
768 * symfile-mem.c (find_vdso_size): Delete function.
769 (add_vsyscall_page): Use gdbarch_vsyscall_range.
770
31cc0b80
PA
7712014-10-10 Pedro Alves <palves@redhat.com>
772
773 * infrun.c (normal_stop): Fix typo in comment.
774
3e3286a2
SDJ
7752014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
776
777 PR tdep/9390
778 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
779 typo when using logical AND to determine instruction type.
780
fcbdedf8
YQ
7812014-10-09 Yao Qi <yao@codesourcery.com>
782
783 * infrun.c (handle_signal_stop): Remove local variable
784 'printed'.
785
db984616
SS
7862014-10-08 Stan Shebs <stan@codesourcery.com>
787
788 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
789
3ba37e6c
GB
7902014-10-08 Gary Benson <gbenson@redhat.com>
791
792 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
793
a442d071
GB
7942014-10-08 Gary Benson <gbenson@redhat.com>
795
796 * common/common-defs.h: Include common-exceptions.h.
797 * exceptions.h: Do not include common-exceptions.h.
798
6f1947e8
GB
7992014-10-08 Gary Benson <gbenson@redhat.com>
800
801 * common/common-defs.h: Include cleanups.h.
802 * common/common-exceptions.c: Do not include cleanups.h.
803 * utils.h: Likewise.
804
c765fdb9
GB
8052014-10-08 Gary Benson <gbenson@redhat.com>
806
807 * ada-lang.c: Do not include exceptions.h.
808 * ada-valprint.c: Likewise.
809 * amd64-tdep.c: Likewise.
810 * auto-load.c: Likewise.
811 * block.c: Likewise.
812 * break-catch-throw.c: Likewise.
813 * breakpoint.c: Likewise.
814 * btrace.c: Likewise.
815 * c-lang.c: Likewise.
816 * cli/cli-cmds.c: Likewise.
817 * cli/cli-interp.c: Likewise.
818 * cli/cli-script.c: Likewise.
819 * completer.c: Likewise.
820 * corefile.c: Likewise.
821 * corelow.c: Likewise.
822 * cp-abi.c: Likewise.
823 * cp-support.c: Likewise.
824 * cp-valprint.c: Likewise.
825 * darwin-nat.c: Likewise.
826 * dwarf2-frame-tailcall.c: Likewise.
827 * dwarf2-frame.c: Likewise.
828 * dwarf2loc.c: Likewise.
829 * dwarf2read.c: Likewise.
830 * eval.c: Likewise.
831 * event-loop.c: Likewise.
832 * event-top.c: Likewise.
833 * f-valprint.c: Likewise.
834 * frame-unwind.c: Likewise.
835 * frame.c: Likewise.
836 * gdbtypes.c: Likewise.
837 * gnu-v2-abi.c: Likewise.
838 * gnu-v3-abi.c: Likewise.
839 * guile/scm-auto-load.c: Likewise.
840 * guile/scm-breakpoint.c: Likewise.
841 * guile/scm-cmd.c: Likewise.
842 * guile/scm-frame.c: Likewise.
843 * guile/scm-lazy-string.c: Likewise.
844 * guile/scm-param.c: Likewise.
845 * guile/scm-symbol.c: Likewise.
846 * guile/scm-type.c: Likewise.
847 * hppa-hpux-tdep.c: Likewise.
848 * i386-tdep.c: Likewise.
849 * inf-loop.c: Likewise.
850 * infcall.c: Likewise.
851 * infcmd.c: Likewise.
852 * infrun.c: Likewise.
853 * interps.c: Likewise.
854 * interps.h: Likewise.
855 * jit.c: Likewise.
856 * linespec.c: Likewise.
857 * linux-nat.c: Likewise.
858 * linux-thread-db.c: Likewise.
859 * m32r-rom.c: Likewise.
860 * main.c: Likewise.
861 * memory-map.c: Likewise.
862 * mi/mi-cmd-break.c: Likewise.
863 * mi/mi-cmd-stack.c: Likewise.
864 * mi/mi-interp.c: Likewise.
865 * mi/mi-main.c: Likewise.
866 * monitor.c: Likewise.
867 * nto-procfs.c: Likewise.
868 * objc-lang.c: Likewise.
869 * p-valprint.c: Likewise.
870 * parse.c: Likewise.
871 * ppc-linux-tdep.c: Likewise.
872 * printcmd.c: Likewise.
873 * probe.c: Likewise.
874 * python/py-auto-load.c: Likewise.
875 * python/py-breakpoint.c: Likewise.
876 * python/py-cmd.c: Likewise.
877 * python/py-finishbreakpoint.c: Likewise.
878 * python/py-frame.c: Likewise.
879 * python/py-framefilter.c: Likewise.
880 * python/py-function.c: Likewise.
881 * python/py-gdb-readline.c: Likewise.
882 * python/py-inferior.c: Likewise.
883 * python/py-infthread.c: Likewise.
884 * python/py-lazy-string.c: Likewise.
885 * python/py-linetable.c: Likewise.
886 * python/py-param.c: Likewise.
887 * python/py-prettyprint.c: Likewise.
888 * python/py-symbol.c: Likewise.
889 * python/py-type.c: Likewise.
890 * python/py-value.c: Likewise.
891 * python/python-internal.h: Likewise.
892 * python/python.c: Likewise.
893 * record-btrace.c: Likewise.
894 * record-full.c: Likewise.
895 * regcache.c: Likewise.
896 * remote-fileio.c: Likewise.
897 * remote-mips.c: Likewise.
898 * remote.c: Likewise.
899 * rs6000-aix-tdep.c: Likewise.
900 * rs6000-nat.c: Likewise.
901 * skip.c: Likewise.
902 * solib-darwin.c: Likewise.
903 * solib-dsbt.c: Likewise.
904 * solib-frv.c: Likewise.
905 * solib-ia64-hpux.c: Likewise.
906 * solib-spu.c: Likewise.
907 * solib-svr4.c: Likewise.
908 * solib.c: Likewise.
909 * spu-tdep.c: Likewise.
910 * stack.c: Likewise.
911 * stap-probe.c: Likewise.
912 * symfile-mem.c: Likewise.
913 * symmisc.c: Likewise.
914 * target.c: Likewise.
915 * thread.c: Likewise.
916 * top.c: Likewise.
917 * tracepoint.c: Likewise.
918 * tui/tui-interp.c: Likewise.
919 * typeprint.c: Likewise.
920 * utils.c: Likewise.
921 * valarith.c: Likewise.
922 * valops.c: Likewise.
923 * valprint.c: Likewise.
924 * value.c: Likewise.
925 * varobj.c: Likewise.
926 * windows-nat.c: Likewise.
927 * xml-support.c: Likewise.
928
484933d1
MR
9292014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
930
931 * mips-tdep.c (add_offset_16): Rewrite to implement what the
932 name implies.
933 (extended_mips16_next_pc): Update accordingly.
934
ab50adb6
MR
9352014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
936
937 * mips-tdep.c (mips16_instruction_is_compact_branch): New
938 function.
939 (micromips_instruction_is_compact_branch): Likewise.
940 (mips16_scan_prologue): Terminate scanning upon seeing a branch
941 or a compact jump, reaching a jump delay slot, or seeing a
942 second non-prologue instruction.
943 (micromips_scan_prologue): Also terminate scanning upon seeing a
944 compact branch or jump, or reaching a branch or jump delay slot.
945 (mips32_scan_prologue): Terminate scanning upon reaching a branch
946 or jump delay slot, or seeing a second non-prologue instruction.
947 (mips32_instruction_has_delay_slot): Retain instruction
948 examination code only, update arguments accordingly and move
949 instruction fetch pieces to...
950 (mips32_insn_at_pc_has_delay_slot): ... this new function.
951 (micromips_instruction_has_delay_slot): Likewise and to...
952 (micromips_insn_at_pc_has_delay_slot): ... this new function.
953 (mips16_instruction_has_delay_slot): Likewise and to...
954 (mips16_insn_at_pc_has_delay_slot): ... this new function.
955 (mips_single_step_through_delay): Update accordingly.
956 (mips_adjust_breakpoint_address): Likewise.
957
ae790652
MR
9582014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
959
960 * mips-tdep.c (micromips_instruction_has_delay_slot): When
961 !mustbe32 also return 1 for 32-bit instructions.
962 (mips16_instruction_has_delay_slot): Likewise. Add an
963 explanatory comment.
964
9b807e7b
MR
9652014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
966
967 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
968 symbols special.
969
0d5ed153
MR
9702014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
971
972 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
973 update comments.
974 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
975 for the breakpoint's address. Don't preinitialize `placed_size'.
976 (insert_bp_location): Set `reqstd_address' rather than
977 `placed_address'.
978 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
979 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
980 address.
981 (bkpt_remove_location): Likewise.
982 (deprecated_insert_raw_breakpoint): Likewise.
983 (deprecated_remove_raw_breakpoint): Likewise.
984 (find_single_step_breakpoint): Likewise.
985 * mem-break.c (default_memory_insert_breakpoint): Use
986 `reqstd_address' for the breakpoint's address. Don't set
987 `placed_address' or `placed_size' if breakpoint contents couldn't
988 have been determined.
989 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
990 the breakpoint's address.
991 (remote_insert_hw_breakpoint): Likewise. Don't set
992 `placed_address' or `placed_size' if breakpoint couldn't have been
993 set.
994 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
995 `reqstd_address' for the breakpoint's address.
996 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
997 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
998 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
999 * microblaze-linux-tdep.c
1000 (microblaze_linux_memory_remove_breakpoint): Likewise.
1001 * monitor.c (monitor_insert_breakpoint): Likewise.
1002 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1003 (procfs_insert_hw_breakpoint): Likewise.
1004 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1005 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1006 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1007 * remote-mips.c (mips_insert_breakpoint): Likewise.
1008 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1009
3e871532
LM
10102014-10-03 Luis Machado <lgustavo@codesourcery.com>
1011
1012 * valops.c (value_assign): Check for bit field assignments
1013 before calling architecture-specific register value
1014 conversion functions.
1015
ec48dc8b
PM
10162014-10-03 Pierre Muller <muller@sourceware.org>
1017
1018 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1019
b57bacec
PA
10202014-10-02 Pedro Alves <palves@redhat.com>
1021
1022 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1023 threads_are_executing.
1024 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1025 describing comment.
1026 * gdbthread.h (threads_are_executing): Declare.
1027 (handle_signal_stop) <random signals>: Don't print about the
1028 signal here if stopping.
1029 (end_stepping_range): Don't notify observers here.
1030 (normal_stop): Update the thread list. If stopped by a random
1031 signal or a stepping range ended, notify observers.
1032 * thread.c (threads_executing): New global.
1033 (init_thread_list): Clear 'threads_executing'.
1034 (set_executing): Set or clear 'threads_executing'.
1035 (threads_are_executing): New function.
1036 (update_threads_executing): New function.
1037 (update_thread_list): Use it.
1038
13fd3ff3
PA
10392014-10-02 Pedro Alves <palves@redhat.com>
1040
1041 PR breakpoints/17431
1042 * breakpoint.c (update_breakpoints_after_exec): Don't create
1043 overlay, longjmp, std terminate nor exception breakpoints here.
1044
32990ada
PA
10452014-10-02 Pedro Alves <palves@redhat.com>
1046
1047 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1048 Adjust comments.
1049 * inferior.c (find_inferior_for_program_space): Give preference to
1050 the current inferior.
1051 * inferior.h (find_inferior_for_program_space): Update comment.
1052 * progspace.c (switch_to_program_space_and_thread): Prefer the
1053 current inferior if it's bound to the program space requested. If
1054 the inferior found doesn't have a PID yet, don't bother looking up
1055 a thread.
1056 * progspace.h (switch_to_program_space_and_thread): Adjust
1057 comment.
1058 * thread.c (any_thread_of_process, any_live_thread_of_process):
1059 Give preference to the current thread.
1060
0fec99e8
PA
10612014-10-01 Pedro Alves <palves@redhat.com>
1062
1063 * breakpoint.c (insert_bp_location): Error out if inserting a
1064 software breakpoint at a read-only address.
1065 * target.c (memory_xfer_check_region): New function, factored out
1066 from ...
1067 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1068 ULONGEST.
1069 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1070 against the memory region attributes.
1071
2ddf4301
SM
10722014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1073
1074 * NEWS: Announce new exit-code field in -list-thread-groups
1075 output.
1076 * inferior.c (exit_inferior_1): Don't clear exit code.
1077 (inferior_appeared): Clear exit code.
1078 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1079 code.
1080
5fdeec1d
PA
10812014-10-01 Pedro Alves <palves@redhat.com>
1082
1083 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1084 GENERATED" along with emacs/vi read-only markers.
1085 * regformats/aarch64.dat: Regenerate.
1086 * regformats/arm-with-iwmmxt.dat: Regenerate.
1087 * regformats/arm-with-neon.dat: Regenerate.
1088 * regformats/arm-with-vfpv2.dat: Regenerate.
1089 * regformats/arm-with-vfpv3.dat: Regenerate.
1090 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1091 * regformats/i386/amd64-avx.dat: Regenerate.
1092 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1093 * regformats/i386/amd64-avx512.dat: Regenerate.
1094 * regformats/i386/amd64-linux.dat: Regenerate.
1095 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1096 * regformats/i386/amd64-mpx.dat: Regenerate.
1097 * regformats/i386/amd64.dat: Regenerate.
1098 * regformats/i386/i386-avx-linux.dat: Regenerate.
1099 * regformats/i386/i386-avx.dat: Regenerate.
1100 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1101 * regformats/i386/i386-avx512.dat: Regenerate.
1102 * regformats/i386/i386-linux.dat: Regenerate.
1103 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1104 * regformats/i386/i386-mmx.dat: Regenerate.
1105 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1106 * regformats/i386/i386-mpx.dat: Regenerate.
1107 * regformats/i386/i386.dat: Regenerate.
1108 * regformats/i386/x32-avx-linux.dat: Regenerate.
1109 * regformats/i386/x32-avx.dat: Regenerate.
1110 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1111 * regformats/i386/x32-avx512.dat: Regenerate.
1112 * regformats/i386/x32-linux.dat: Regenerate.
1113 * regformats/i386/x32.dat: Regenerate.
1114 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1115 * regformats/mips-dsp-linux.dat: Regenerate.
1116 * regformats/mips-linux.dat: Regenerate.
1117 * regformats/mips64-dsp-linux.dat: Regenerate.
1118 * regformats/mips64-linux.dat: Regenerate.
1119 * regformats/nios2-linux.dat: Regenerate.
1120 * regformats/rs6000/powerpc-32.dat: Regenerate.
1121 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1122 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1123 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1124 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1125 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1126 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1127 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1128 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1129 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1130 * regformats/s390-linux32.dat: Regenerate.
1131 * regformats/s390-linux32v1.dat: Regenerate.
1132 * regformats/s390-linux32v2.dat: Regenerate.
1133 * regformats/s390-linux64.dat: Regenerate.
1134 * regformats/s390-linux64v1.dat: Regenerate.
1135 * regformats/s390-linux64v2.dat: Regenerate.
1136 * regformats/s390-te-linux64.dat: Regenerate.
1137 * regformats/s390x-linux64.dat: Regenerate.
1138 * regformats/s390x-linux64v1.dat: Regenerate.
1139 * regformats/s390x-linux64v2.dat: Regenerate.
1140 * regformats/s390x-te-linux64.dat: Regenerate.
1141 * regformats/tic6x-c62x-linux.dat: Regenerate.
1142 * regformats/tic6x-c62x.dat: Regenerate.
1143 * regformats/tic6x-c64x-linux.dat: Regenerate.
1144 * regformats/tic6x-c64x.dat: Regenerate.
1145 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1146 * regformats/tic6x-c64xp.dat: Regenerate.
1147
db74e4ba
PA
11482014-10-01 Pedro Alves <palves@redhat.com>
1149
1150 * features/Makefile: Update comments.
1151 (XMLTOC): List all xml files we build C files from.
1152 (clean-cfiles): New rule.
1153
d63f2f84
PA
11542014-10-01 Pedro Alves <palves@redhat.com>
1155
1156 * features/i386/amd64-avx512-linux.c: Regenerate.
1157 * features/i386/amd64-avx512.c: Regenerate.
1158 * features/i386/x32-avx512-linux.c: Regenerate.
1159 * features/i386/x32-avx512.c: Regenerate.
1160
20ad026d
PA
11612014-10-01 Pedro Alves <palves@redhat.com>
1162
1163 * features/Makefile (WHICH): Remove arm-with-m,
1164 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1165
acc9fe45
PA
11662014-10-01 Pedro Alves <palves@redhat.com>
1167
1168 * features/Makefile (clean): New rule.
1169
e001e535
PA
11702014-10-01 Pedro Alves <palves@redhat.com>
1171
1172 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1173 (zmm14h): Add missing end quotes.
1174
bdc14417
PA
11752014-10-01 Pedro Alves <palves@redhat.com>
1176
1177 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1178 * features/aarch64.c: Regenerate.
1179
d83ad864
DB
11802014-09-30 Don Breazeal <donb@codesourcery.com>
1181
1182 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1183 code so as to work with follow_fork_inferior.
1184 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1185 (inf_ttrace_create_inferior): Remove reference to
1186 inf_ttrace_vfork_ppid.
1187 (inf_ttrace_attach): Ditto.
1188 (inf_ttrace_detach): Ditto.
1189 (inf_ttrace_kill): Use current_inferior instead of
1190 inf_ttrace_vfork_ppid.
1191 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1192 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1193 inferior away from the parent.
1194 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1195 target_follow_fork.
1196 (follow_fork_inferior): New function.
1197 (follow_inferior_reset_breakpoints): Make function static.
1198 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1199 * linux-nat.c (linux_child_follow_fork): Move target-independent
1200 code to infrun.c:follow_fork_inferior.
1201
29082443
AA
12022014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1203
1204 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1205 * gdbarch.c: Regenerate.
1206 * gdbarch.h: Likewise.
1207 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1208 gdbarch method 'regset_from_core_section'.
1209 (get_core_register_section): Remove handling for the case that
1210 regset == NULL and regset_from_core_section is defined.
1211 (get_core_registers): Drop check for deleted method.
1212 * procfs.c (procfs_do_thread_registers): Adjust comment.
1213
f968fe80
AA
12142014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1215
1216 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1217 (linux_nat_make_corefile_notes): Remove.
1218 (linux_target_install_ops): Do not set target method
1219 'make_corefile_notes'.
1220 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1221 Remove field.
1222 (linux_corefile_thread_callback): Instead of args->collect, call
1223 linux_collect_thread_registers.
1224 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1225 NULL unless there is a regset iterator.
1226 (linux_make_corefile_notes_1): Remove.
1227 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1228 by linux_make_corefile_notes.
1229 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1230
174ad59a
AA
12312014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1232
1233 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1234 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1235 Remove.
1236 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1237
97094034
AA
12382014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1239
1240 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1241 (xtensa_iterate_over_regset_sections): New.
1242 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1243
f73d3ce7
AA
12442014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1245
1246 * vax-tdep.c (vax_regset_from_core_section): Remove.
1247 (vax_iterate_over_regset_sections): New.
1248 (vax_gdbarch_init): Adjust gdbarch initialization.
1249
cb24567a
AA
12502014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1251
1252 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1253 (tilegx_regset_from_core_section): Remove.
1254 (tilegx_iterate_over_regset_sections): New.
1255 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1256
e5139de8
AA
12572014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1258
1259 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1260 (sparc_iterate_over_regset_sections): New.
1261 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1262 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1263 targets.
1264 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1265 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1266 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1267 target method 'make_corefile_notes'.
1268
c6d41a6f
AA
12692014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1270
1271 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1272 'sizeof_gregset' and 'sizeof_fpregset'.
1273 * sh-tdep.c (sh_regset_from_core_section): Remove.
1274 (sh_iterate_over_regset_sections): New.
1275 (sh_gdbarch_init): Adjust gdbarch initialization.
1276 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1277 sizeof_fpregset.
1278 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1279 'sizeof_gregset'.
1280
9845a0b5
AA
12812014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1282
1283 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1284 (score7_linux_iterate_over_regset_sections): New.
1285 (score_gdbarch_init): Adjust gdbarch initialization.
1286
23ea9aeb
AA
12872014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1288
1289 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1290 FreeBSD targets.
1291 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1292 method 'make_corefile_notes'.
1293 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1294 (ppcfbsd_regset_from_core_section): Remove.
1295 (ppcfbsd_iterate_over_regset_sections): New.
1296 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1297 initialization.
1298 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1299 (ppcnbsd_iterate_over_regset_sections): New.
1300 (ppcnbsd_init_abi): Adjust.
1301 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1302 (ppcobsd_iterate_over_regset_sections): New.
1303 (ppcobsd_init_abi): Adjust.
1304 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1305 (rs6000_aix_iterate_over_regset_sections): New.
1306 (rs6000_aix_init_osabi): Adjust.
1307
c5b8d704
AA
13082014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1309
1310 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1311 (nios2_regset_from_core_section): Remove.
1312 (nios2_iterate_over_regset_sections): New.
1313 (nios2_linux_init_abi): Adjust gdbarch initialization.
1314
3636e608
AA
13152014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1316
1317 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1318 (am33_iterate_over_regset_sections): New.
1319 (am33_linux_init_osabi): Adjust gdbarch initialization.
1320
d4036235
AA
13212014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1322
1323 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1324 (mips_linux_iterate_over_regset_sections): New.
1325 (mips_linux_init_abi): Adjust gdbarch initialization.
1326 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1327 (mips64obsd_iterate_over_regset_sections): New.
1328 (mips64obsd_init_abi): Adjust.
1329 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1330 (mipsnbsd_iterate_over_regset_sections): New.
1331 (mipsnbsd_init_abi): Adjust.
1332
b61ddd6e
AA
13332014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1334
1335 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1336 (m88k_iterate_over_regset_sections): New.
1337 (m88k_gdbarch_init): Adjust gdbarch initialization.
1338
55a2906a
AA
13392014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1340
1341 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1342 (ia64_linux_iterate_over_regset_sections): New.
1343 (ia64_linux_init_abi): Adjust gdbarch initialization.
1344
022c98ab
AA
13452014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1346
1347 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1348 (m68kbsd_iterate_over_regset_sections): New.
1349 (m68kbsd_init_abi): Adjust gdbarch initialization.
1350 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1351 (m68k_linux_iterate_over_regset_sections): New.
1352 (m68k_linux_init_abi): Adjust gdbarch initialization.
1353
5fac247f
AA
13542014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1355
1356 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1357 (m32r_linux_regset_from_core_section): Remove.
1358 (m32r_linux_iterate_over_regset_sections): New.
1359 (m32r_linux_init_abi): Adjust gdbarch initialization.
1360
490496c3
AA
13612014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1362
1363 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1364 (amd64obsd_iterate_over_regset_sections): New.
1365 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1366 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1367 Remove.
1368 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1369 regset_from_core_section initialization.
1370 * i386-tdep.c (i386_regset_from_core_section): Remove.
1371 (i386_iterate_over_regset_sections): New.
1372 (i386_gdbarch_init): Adjust gdbarch initialization.
1373 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1374 (i386_iterate_over_regset_sections): New prototype.
1375 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1376 Remove.
1377 (i386obsd_aout_iterate_over_regset_sections): New.
1378 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1379 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1380 targets.
1381 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1382 (amd64fbsd_init_abi): Call fbsd_init_abi.
1383 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1384 (i386fbsd4_init_abi): Call fbsd_init_abi.
1385 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1386 target method 'make_corefile_notes'.
1387 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1388
50c5eb53
AA
13892014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1390
1391 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1392 (hppa_hpux_iterate_over_regset_sections): New.
1393 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1394 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1395 (hppa_linux_iterate_over_regset_sections): New.
1396 (hppa_linux_init_abi): Adjust.
1397 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1398 (hppanbsd_iterate_over_regset_sections): New.
1399 (hppanbsd_init_abi): Adjust.
1400 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1401 (hppaobsd_iterate_over_regset_sections): New.
1402 (hppaobsd_init_abi): Adjust.
1403
66afae4f
AA
14042014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1405
1406 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1407 (frv_linux_iterate_over_regset_sections): New.
1408 (frv_linux_init_abi): Adjust gdbarch initialization.
1409
ed09174e
AA
14102014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1411
1412 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1413 (armbsd_iterate_over_regset_sections): New prototype.
1414 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1415 (armbsd_iterate_over_regset_sections): New.
1416 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1417 initialization.
1418
dff2166e
AA
14192014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1420
1421 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1422 (alpha_linux_iterate_over_regset_sections): New.
1423 (alpha_linux_init_abi): Adjust gdbarch initialization.
1424 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1425 prototype.
1426 (alphanbsd_iterate_over_regset_sections): New prototype.
1427
4108500a
AA
14282014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1429
1430 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1431 Remove.
1432 (aarch64_linux_iterate_over_regset_sections): New.
1433 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1434
a904c024
AA
14352014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1436
1437 * fbsd-tdep.c: New file.
1438 * fbsd-tdep.h: New file.
1439 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1440 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1441 (ALLDEPFILES): Add fbsd-tdep.c.
1442
8f0435f7
AA
14432014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1444
1445 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1446 parameter.
1447 * gdbarch.h: Regenerate.
1448 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1449 iterator.
1450 (get_core_register_section): Add parameter 'regset' and use it, if
1451 set. Add parameter 'min_size' and verify the bfd section size
1452 against it.
1453 (get_core_registers_cb): Add parameter 'regset' and pass it to
1454 get_core_register section. For the "standard" register sections
1455 ".reg" and ".reg2", set an appropriate default for human_name.
1456 (get_core_registers): Don't abort when the gdbarch has an iterator
1457 but no regset_from_core_section. Add NULL/0 for parameters
1458 'regset'/'min_size' in calls to get_core_register_section.
1459 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1460 'regset' and use it instead of calling the
1461 regset_from_core_section gdbarch method.
1462 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1463 * i386-tdep.c (i386_supply_xstateregset)
1464 (i386_collect_xstateregset, i386_xstateregset): Moved to
1465 i386-linux-tdep.c.
1466 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1467 .reg-xstate.
1468 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1469 core file support only if the regset iterator hasn't been set.
1470 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1471 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1472 Moved from i386-tdep.c and renamed to *_linux*.
1473 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1474 each callback invocation. Allow any .reg-xstate size when reading
1475 from a core file.
1476 * amd64-tdep.c (amd64_supply_xstateregset)
1477 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1478 amd64-linux-tdep.c.
1479 (amd64_regset_from_core_section): Remove.
1480 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1481 install an amd64-specific regset_from_core_section gdbarch method.
1482 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1483 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1484 Moved from amd64-tdep.c and renamed to *_linux*.
1485 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1486 to each callback invocation. Allow any .reg-xstate size when
1487 reading from a core file.
1488 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1489 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1490 each callback invocation.
1491 (arm_linux_init_abi): No longer set the regset_from_core_section
1492 gdbarch method.
1493 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1494 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1495 each callback invocation.
1496 (ppc_linux_init_abi): No longer set the regset_from_core_section
1497 gdbarch method.
1498 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1499 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1500 (s390_regset_from_core_section): Remove.
1501 (s390_iterate_over_regset_sections): Add regset parameter to each
1502 callback invocation.
1503 (s390_gdbarch_init): No longer set the regset_from_core_section
1504 gdbarch method. Drop initialization of deleted tdep fields.
1505
5aa82d05
AA
15062014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1507
1508 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1509 (amd64_linux_iterate_over_regset_sections): New.
1510 (amd64_linux_init_abi_common): Don't install the regset section
1511 list, but the new iterator in gdbarch.
1512 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1513 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1514 (arm_linux_iterate_over_regset_sections): ...here. New function.
1515 (arm_linux_init_abi): Set iterator instead of section list.
1516 * corelow.c (get_core_registers_cb): New function, logic moved
1517 from...
1518 (get_core_registers): ...loop body here. Use new iterator method
1519 instead of walking through the regset section list.
1520 * gdbarch.sh: Remove 'core_regset_sections'. New method
1521 'iterate_over_regset_sections'. New typedef
1522 'iterate_over_regset_sections_cb'.
1523 * gdbarch.c: Regenerate.
1524 * gdbarch.h: Likewise.
1525 * i386-linux-tdep.c (i386_linux_regset_sections)
1526 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1527 Remove.
1528 (i386_linux_iterate_over_regset_sections): New.
1529 (i386_linux_init_abi): Don't choose a regset section list, but
1530 install new iterator in gdbarch.
1531 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1532 (linux_collect_regset_section_cb): New function, logic moved
1533 from...
1534 (linux_collect_thread_registers): ...loop body here. Use iterator
1535 method instead of walking through list.
1536 (linux_make_corefile_notes_1): Check for presence of iterator
1537 method instead of regset section list.
1538 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1539 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1540 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1541 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1542 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1543 (ppc_linux_init_abi): Don't choose from above regset section
1544 lists, but install new iterator in gdbarch.
1545 * regset.h (struct core_regset_section): Remove.
1546 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1547 have_linux_v1, have_linux_v2, and have_tdb.
1548 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1549 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1550 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1551 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1552 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1553 (s390_iterate_over_regset_sections): ...here. New function. Use
1554 new tdep fields.
1555 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1556 regset section lists, but install new iterator.
1557
2eca4a8d
JK
15582014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1559
1560 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1561
a73c2b56
SM
15622014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1563
1564 * progspace.c (print_program_space): Don't prune program spaces
1565 before printing them.
1566
03d46957
PA
15672014-09-25 Pedro Alves <palves@redhat.com>
1568
1569 * infrun.c (user_visible_resume_ptid): Don't check
1570 singlestep_breakpoints_inserted_p.
1571
e558d7c1
PA
15722014-09-25 Pedro Alves <palves@redhat.com>
1573
1574 * breakpoint.c (should_be_inserted): Add debug output.
1575
7f89fd65
PA
15762014-09-25 Pedro Alves <palves@redhat.com>
1577
1578 * infrun.c (stepping_past_instruction_at)
1579 (clear_exit_convenience_vars): Point at infrun.h instead of
1580 inferior.h.
1581 (handle_signal_stop): Fix typo.
1582
b7576e5c
YQ
15832014-09-24 Yao Qi <yao@codesourcery.com>
1584
1585 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1586 bitmask.
1587
9a6cf368
GB
15882014-09-22 Gary Benson <gbenson@redhat.com>
1589
1590 * target.c (target_stop): Updated comment.
1591
03f4463b
GB
15922014-09-22 Gary Benson <gbenson@redhat.com>
1593
1594 * target/target.h (target_stop_ptid): Renamed as...
1595 (target_stop_and_wait): New function. Updated comment.
1596 All uses updated.
1597 (target_continue_ptid): Renamed as...
1598 (target_continue_no_signal): New function. Updated comment.
1599 All uses updated.
1600
a25a5a45
PA
16012014-09-22 Pedro Alves <palves@redhat.com>
1602
1603 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1604 and "auto" merged.
1605 * breakpoint.c (enum ugll_insert_mode): New enum.
1606 (always_inserted_mode): Now a plain boolean.
1607 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1608 (breakpoints_always_inserted_mode): Delete.
1609 (breakpoints_should_be_inserted_now): New function.
1610 (insert_breakpoints): Pass UGLL_INSERT to
1611 update_global_location_list instead of calling
1612 insert_breakpoint_locations manually.
1613 (create_solib_event_breakpoint_1): New, factored out from ...
1614 (create_solib_event_breakpoint): ... this.
1615 (create_and_insert_solib_event_breakpoint): Use
1616 create_solib_event_breakpoint_1 instead of calling
1617 insert_breakpoint_locations manually.
1618 (update_global_location_list): Change parameter type from boolean
1619 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1620 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1621 (update_global_location_list_nothrow): Change parameter type from
1622 boolean to enum ugll_insert_mode.
1623 (_initialize_breakpoint): "breakpoint always-inserted" option is
1624 now a boolean command. Update help text.
1625 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1626 (breakpoints_should_be_inserted_now): New declaration.
1627 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1628 Remove breakpoints_always_inserted_mode check.
1629 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1630 * remote.c (remote_start_remote): Likewise.
1631
04086b45
PA
16322014-09-22 Pedro Alves <palves@redhat.com>
1633
1634 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1635 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1636 Instead, pass UGLL_INSERT to update_global_location_list.
1637 (update_global_location_list): Change parameter type from boolean
1638 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1639 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1640 (create_solib_event_breakpoint_1): New, factored out from ...
1641 (create_solib_event_breakpoint): ... this.
1642 (create_and_insert_solib_event_breakpoint): Use
1643 create_solib_event_breakpoint_1 instead of calling
1644 insert_breakpoint_locations manually.
1645 (update_global_location_list): Handle UGLL_INSERT.
1646
44702360
PA
16472014-09-22 Pedro Alves <palves@redhat.com>
1648
1649 * breakpoint.c (enum ugll_insert_mode): New enum.
1650 (update_global_location_list)
1651 (update_global_location_list_nothrow): Change parameter type from
1652 boolean to enum ugll_insert_mode. All callers adjusted.
1653
93c6145a
JB
16542014-09-19 Joel Brobecker <brobecker@adacore.com>
1655
1656 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1657 SystemTap support in GDB.
1658
89a5711c
DB
16592014-09-19 Don Breazeal <donb@codesourcery.com>
1660
1661 * linux-nat.c (linux_handle_extended_wait): Call
1662 linux_ptrace_get_extended_event.
1663 (wait_lwp): Call linux_is_extended_waitstatus.
1664 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1665 and linux_is_extended_waitstatus.
1666 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1667 linux_ptrace_get_extended_event.
1668 (linux_ptrace_get_extended_event): New function.
1669 (linux_is_extended_waitstatus): New function.
1670 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1671 (linux_is_extended_waitstatus): New declarations.
1672
c3b7b696
YQ
16732014-09-19 Yao Qi <yao@codesourcery.com>
1674
1675 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1676 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1677 comments. Callers update.
1678 (dwarf_decode_lines): Likewise.
1679 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1680 comments. Skip the line table if 'lowpc' is greater than
1681 'address'. Don't check
1682 dwarf2_per_objfile->has_section_at_zero.
1683
2b4fd423
DE
16842014-09-18 Doug Evans <dje@google.com>
1685
1686 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1687 * python/py-symtab.c (stpy_get_producer): New function.
1688 (symtab_object_getset): Add "producer" attribute.
1689
5e43d467
UW
16902014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1691
1692 PR gdb/17384
1693 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1694 (do_captured_read_memory_integer): Remove.
1695 (safe_read_memory_integer): Use target_read_memory directly instead
1696 of catching errors in do_captured_read_memory_integer.
1697
04e79979
MR
16982014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1699
1700 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1701 not gdb/doc.
1702
76aeec5b
SDJ
17032014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1704
1705 * objc-lang.c (find_implementation_from_class): Remove dead code.
1706
2f693f9d
SDJ
17072014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1708
1709 PR cli/7233
1710 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1711 "fprintf_unfiltered (gdb_stdlog...)".
1712
bb9d5f81
PP
17132014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1714
1715 PR breakpoints/12526
1716 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1717 val_bitsize.
1718 * breakpoint.c (watch_command_1): Use these fields to retain
1719 bitfield information.
1720 (extract_bitfield_from_watchpoint_value): New function.
1721 (watchpoint_check): Use it.
1722 (update_watchpoint): Use it. Optimize the address and length of a
1723 HW watchpoint pointing to a bitfield.
1724 * value.h (unpack_value_bitfield): New prototype.
1725 * value.c (unpack_value_bitfield): Make extern.
1726
05db5edd
ST
17272014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1728
1729 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1730 x86-dregs.o.
1731 * gnu-nat.c (inf_threads): New function.
1732 * gnu-nat.h (inf_threads_ftype): New typedef.
1733 (inf_threads): New declaration.
1734 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1735 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1736 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1737 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1738 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1739 (i386_gnu_dr_get_control): New functions.
1740 (reg_addr): New structure.
1741 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1742 i386 debugging register hooks.
1743 * NEWS: Mention this.
1744
5a578da5
OJ
17452014-08-13 Omair Javaid <omair.javaid@linaro.org>
1746
1747 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1748 vector data transfer instructions.
1749 (arm_record_coproc_data_proc): Updated.
1750
f20f80dd
OJ
17512014-08-13 Omair Javaid <omair.javaid@linaro.org>
1752
1753 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1754 arm_record_exreg_ld_st_insn.
1755 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1756 load/store insns.
1757
851f26ae
OJ
17582014-08-13 Omair Javaid <omair.javaid@linaro.org>
1759
1760 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
1761 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
1762 processing instructions.
1763
1e1b6563
OJ
17642014-08-13 Omair Javaid <omair.javaid@linaro.org>
1765
1766 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
1767 for advance SIMD struct ld/st insn.
1768 (thumb2_record_decode_insn_handler): Replace stub handler with
1769 thumb2_record_asimd_struct_ld_st.
1770
60cc5e93
OJ
17712014-08-13 Omair Javaid <omair.javaid@linaro.org>
1772
1773 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
1774 for asimd, vfp and coprocessor insns.
1775 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
1776 and coprocessor insns.
1777 (thumb2_record_coproc_insn): New function.
1778 (thumb2_record_decode_insn_handler): Update coprocessor insns record
1779 handlers.
1780 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
1781 opcode 110 insns.
1782
81219e53
DE
17832014-09-13 Doug Evans <xdje42@gmail.com>
1784
1785 * NEWS: Mention new "queue-signal" command.
1786 * infcmd.c (queue_signal_command): New function.
1787 (_initialize_infcmd): Add new queue-signal command.
1788
d36bf488
DE
17892014-09-13 Doug Evans <xdje42@gmail.com>
1790
1791 * linux-nat.c (wait_lwp): Add debugging printf.
1792 (linux_nat_wait_1): Ditto.
1793
f37f681c
PA
17942014-09-12 Pedro Alves <palves@redhat.com>
1795
1796 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
1797 (create_and_insert_solib_event_breakpoint): New functions.
1798 * breakpoint.h (create_and_insert_solib_event_breakpoint)
1799 (remove_solib_event_breakpoints_at_next_stop): New declarations.
1800 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
1801 (remove_dbx_link_breakpoint): Delete function.
1802 (insert_dbx_link_bpt_in_file): Use
1803 create_and_insert_solib_event_breakpoint instead of
1804 deprecated_insert_raw_breakpoint.
1805 (procfs_wait): Don't check whether we hit __dbx_link here.
1806 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
1807 here.
1808 * solib-irix.c (base_breakpoint): Delete global.
1809 (disable_break): Delete function.
1810 (enable_break): Use create_solib_event_breakpoint
1811 instead of deprecated_insert_raw_breakpoint.
1812 (irix_solib_handle_event): New function.
1813 (irix_solib_create_inferior_hook): Don't run the target or disable
1814 the mapping-complete breakpoint here.
1815 (_initialize_irix_solib): Install irix_solib_handle_event as
1816 so_ops->handle_event hook.
1817
9d9bf2df
EBM
18182014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1819 Ulrich Weigand  <uweigand@de.ibm.com>
1820
1821 PR tdep/17379
1822 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
1823 instead of read_memory_unsigned_integer.
1824
b006a80e
GB
18252014-09-12 Gary Benson <gbenson@redhat.com>
1826
1827 * nat/linux-waitpid.c: Include common-defs.h.
1828 [GDBSERVER]: Add FIXME comment.
1829 [!GDBSERVER]: Don't include defs.h or signal.h.
1830 (linux_debug) [!GDBSERVER]: Remove empty block.
1831
296b1496
GB
18322014-09-12 Gary Benson <gbenson@redhat.com>
1833
1834 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
1835 Don't include defs.h or server.h.
1836
53f81362
GB
18372014-09-12 Gary Benson <gbenson@redhat.com>
1838
1839 * nat/linux-btrace.c: Include common-defs.h.
1840 Don't include defs.h, server.h or gdbthread.h.
1841 * nat/linux-btrace.h (struct target_ops): New forward declaration.
1842
727605ca
GB
18432014-09-12 Gary Benson <gbenson@redhat.com>
1844
1845 * common/agent.c: Include common-defs.h.
1846 Don't include defs.h or server.h.
1847 * common/buffer.c: Likewise.
1848 * common/common-debug.c: Likewise.
1849 * common/common-utils.c: Likewise.
1850 * common/errors.c: Likewise.
1851 * common/filestuff.c: Likewise.
1852 * common/format.c: Likewise.
1853 * common/gdb_vecs.c: Likewise.
1854 * common/print-utils.c: Likewise.
1855 * common/ptid.c: Likewise.
1856 * common/rsp-low.c: Likewise.
1857 * common/signals.c: Likewise.
1858 * common/vec.c: Likewise.
1859 * common/xml-utils.c: Likewise.
1860 * nat/linux-osdata.c: Likewise.
1861 * nat/linux-procfs.c: Likewise.
1862 * nat/linux-ptrace.c: Likewise.
1863 * nat/mips-linux-watch.c: Likewise.
1864 * target/waitstatus.c: Likewise.
1865
361c8ade
GB
18662014-09-12 Tom Tromey <tromey@redhat.com>
1867 Gary Benson <gbenson@redhat.com>
1868
1869 * common/common-regcache.h: New file.
1870 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
1871 * regcache.h: Include common-regcache.h.
1872 (regcache_read_pc): Don't declare.
1873 * regcache.c (get_thread_regcache_for_ptid): New function.
1874 * nat/linux-btrace.c: Don't include regcache.h.
1875 Include common-regcache.h.
1876 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
1877
a01cbb49
TS
18782014-09-11 Thomas Schwinge <thomas@codesourcery.com>
1879
1880 * regcache.h (struct regset): Declare.
1881
98880d46
PA
18822014-09-11 Pedro Alves <palves@redhat.com>
1883
1884 PR gdb/17347
1885 * main.c: Include "infrun.h".
1886 (catch_command_errors, catch_command_errors_const): Wait for the
1887 foreground command to complete.
1888 * top.c (maybe_wait_sync_command_done): New function, factored out
1889 from ...
1890 (maybe_wait_sync_command_done): ... here.
1891 * top.h (maybe_wait_sync_command_done): New declaration.
1892
bd9269f7
GB
18932014-09-11 Tom Tromey <tromey@redhat.com>
1894 Gary Benson <gbenson@redhat.com>
1895
1896 * common/symbol.h: New file.
1897 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
1898 * minsyms.c (find_minimal_symbol_address): New function.
1899 * common/agent.c: Include common/symbol.h.
1900 [!GDBSERVER]: Don't include objfiles.h.
1901 (agent_look_up_symbols): Use find_minimal_symbol_address.
1902
f8c1d06b
GB
19032014-09-11 Gary Benson <gbenson@redhat.com>
1904
1905 * target/target.h (target_stop_ptid, target_continue_ptid):
1906 Declare.
1907 * target.c (target_stop_ptid, target_continue_ptid): New
1908 functions.
1909 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
1910 (agent_run_command): Always use target_stop_ptid and
1911 target_continue_ptid.
1912
721ec300
GB
19132014-09-11 Tom Tromey <tromey@redhat.com>
1914 Gary Benson <gbenson@redhat.com>
1915
1916 * target/target.h: New file.
1917 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
1918 * target.h: Include target/target.h.
1919 (target_read_memory, target_write_memory): Don't declare.
1920 * target.c (target_read_uint32): New function.
1921 * common/agent.c: Include target/target.h.
1922 [!GDBSERVER]: Don't include target.h.
1923 (helper_thread_id): Type changed to uint32_t.
1924 (agent_get_helper_thread_id): Use target_read_uint32.
1925 (agent_run_command): Always use target_read_memory and
1926 target_write_memory.
1927 (agent_capability): Type changed to uint32_t.
1928 (agent_capability_check): Use target_read_uint32.
1929
c5e92cca
GB
19302014-09-11 Gary Benson <gbenson@redhat.com>
1931
1932 * common/common-debug.h (show_debug_regs): Declare.
1933 * common/common-debug.c (show_debug_regs): Define.
1934 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
1935 all uses with show_debug_regs. Replace all uses that considered
1936 debug_hw_points as a multi-value integer with straight boolean
1937 uses.
1938 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
1939 with show_debug_regs.
1940 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
1941 all uses with show_debug_regs.
1942 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
1943 uses with show_debug_regs.
1944
eeef931a
UW
19452014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1946
1947 * findvar.c (address_from_register): Handle targets requiring
1948 a special conversion routine even for plain pointer types.
1949
8efa9855
UW
19502014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
1951
1952 * rs6000-nat.c (exec_one_dummy_insn): Remove.
1953 (store_register): Do not call exec_one_dummy_insn.
1954
eb479039
JB
19552014-09-10 Joel Brobecker <brobecker@adacore.com>
1956
1957 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
1958 dereference it first. Use value_enclosing_type instead of
1959 value_type.
1960 (ada_array_length): Likewise.
1961
deede10c
JB
19622014-09-10 Joel Brobecker <brobecker@adacore.com>
1963
1964 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
1965 Adjust function implementation and documentation accordingly.
1966 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
1967 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
1968 Update call to ada_value_ptr_subscript.
1969
7828a5f5
JB
19702014-09-10 Joel Brobecker <brobecker@adacore.com>
1971
1972 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
1973 instead of VAL's type.
1974
35782f14
JB
19752014-09-10 Joel Brobecker <brobecker@adacore.com>
1976
1977 * amd64-linux-nat.c: Add <sys/uio.h> #include.
1978
d342a0da
DE
19792014-09-09 Doug Evans <xdje42@gmail.com>
1980
1981 PR guile/17367
1982 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
1983 last parameter to pkg-config, not first.
1984 * configure.ac: Pass --with-guile provided pkg-config path to
1985 GDB_GUILE_PROGRAM_NAMES.
1986 * configure: Regenerate.
1987
b4a3d263
GKB
19882014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
1989
1990 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
1991 Bertazi".
1992
6e466374
MR
19932014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
1994
1995 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
1996 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
1997 the list of sections determining GDB_OSABI_IRIX.
1998
a1ada89a
JH
19992014-09-09 James Hogan <james.hogan@imgtec.com>
2000
2001 * MAINTAINERS (Write After Approval): Add "James Hogan".
2002
86db008d
JH
20032014-09-09 James Hogan <james.hogan@imgtec.com>
2004
2005 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2006
72fde3df
JB
20072014-09-09 Joel Brobecker <brobecker@adacore.com>
2008
2009 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2010
92d8d229
DE
20112014-09-08 Doug Evans <xdje42@gmail.com>
2012
2013 PR 17247
2014 * guile.c: #include <signal.h>.
2015 (_initialize_guile): Block SIGCHLD while initializing Guile.
2016
2017 Replaces the following, which is reverted.
2018
2019 2014-07-26 Doug Evans <xdje42@gmail.com>
2020
2021 PR 17185
2022 * configure.ac: Add check for header gc/gc.h.
2023 Add check for function setenv.
2024 * configure: Regenerate.
2025 * config.in: Regenerate.
2026 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2027
d81412aa
DE
20282014-09-08 Doug Evans <xdje42@gmail.com>
2029
2030 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2031 with named constant. Fix style of pointer comparison.
2032 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2033
a9f116cb
GKB
20342014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2035
2036 PR gdb/17035
2037 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2038 decide whether we display the command on "show user".
2039 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2040 printing command name.
2041 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2042 * cli/cli-decode.c (cli_user_command_p): Create helper function
2043 to verify whether cmd_list_element is a user-defined command.
2044
c75bd3a2
JK
20452014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2046
2047 PR python/17355
2048 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2049 Fix goto out of TRY_CATCH.
2050
faa42425 20512014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 2052 Tom Tromey <tromey@redhat.com>
faa42425
DE
2053
2054 PR 15276
2055 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2056 $_any_caller_matches.
2057 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2058 * python/lib/gdb/function/caller_is.py: New file.
2059
0d41ba00
DE
20602014-09-06 Doug Evans <xdje42@gmail.com>
2061
2062 * infcmd.c (program_info): Fix typo.
2063
474ca4f6
SDJ
20642014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2065
2066 PR gdb/17235
2067 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2068 'number'. New variable 'has_digit'. Rewrite code to deal with
2069 subexpressions on SDT probes.
2070
ebf13736
PA
20712014-09-04 Pedro Alves <palves@redhat.com>
2072
2073 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2074 the input is only one character long.
2075
eb0b0463
SDJ
20762014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2077
2078 PR fortran/17237
2079 * f-valprint.c (f_val_print): Specify the correct print option to
2080 use when printing integer values.
2081
5ee44bfa
GB
20822014-09-04 Gary Benson <gbenson@redhat.com>
2083
2084 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2085 Remove code to cope with LWPs wrapped as PIDs.
2086 Add assertions to ensure no wrapped LWPs are passed.
2087
4875ffdb
PA
20882014-09-04 Pedro Alves <palves@redhat.com>
2089
2090 * value.c (value_ranges_copy_adjusted): New function, factored out
2091 from ...
2092 (value_contents_copy_raw): ... here.
2093 (unpack_value_bits_as_long_1): Rename back to ...
2094 (unpack_bits_as_long): ... this. Remove 'original_value' and
2095 'result' parameters. Change return type to LONGEST.
2096 (unpack_value_bits_as_long): Delete.
2097 (unpack_value_field_as_long_1): Delete.
2098 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2099 (unpack_value_bitfield): New function.
2100 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2101 (value_fetch_lazy): Use unpack_value_bitfield.
2102 * value.h (unpack_value_bits_as_long): Delete declaration.
2103
5f3b99cf
SS
21042014-09-03 Sasha Smundak <asmundak@google.com>
2105
2106 * python/py-frame.c (frapy_read_register): New function.
2107
ac740bc7
JH
21082014-09-03 James Hogan <james.hogan@imgtec.com>
2109
2110 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2111 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2112
7d793aa9
SDJ
21132014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2114
2115 PR python/16699
2116 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2117 function.
2118 (add_cmd): Set "completer_handle_brkchars" to NULL.
2119 * cli/cli-decode.h (struct cmd_list_element)
2120 <completer_handle_brkchars>: New field.
2121 * command.h (completer_ftype_void): New typedef.
2122 (set_cmd_completer_handle_brkchars): New prototype.
2123 * completer.c (set_gdb_completion_word_break_characters): New
2124 function.
2125 (complete_line_internal): Call "completer_handle_brkchars"
2126 callback from command.
2127 * completer.h: Include "command.h".
2128 (set_gdb_completion_word_break_characters): New prototype.
2129 * python/py-cmd.c (cmdpy_completer_helper): New function.
2130 (cmdpy_completer_handle_brkchars): New function.
2131 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2132 (cmdpy_init): Set completer_handle_brkchars to
2133 cmdpy_completer_handle_brkchars.
2134
97ea6506
GB
21352014-09-03 Gary Benson <gbenson@redhat.com>
2136
2137 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2138 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2139 Loop conditions changed to equivalent form.
2140 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2141 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2142 ALL_DEBUG_ADDRESS_REGISTERS.
2143
d1437815
JB
21442014-09-03 Joel Brobecker <brobecker@adacore.com>
2145
2146 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2147 description fix.
2148
9b94fcf1
DE
21492014-09-02 Doug Evans <dje@google.com>
2150
2151 * typeprint.c (find_global_typedef): Fix comment.
2152
df7e5265
GB
21532014-09-02 Gary Benson <gbenson@redhat.com>
2154
2155 * i386-nat.h: Renamed as...
2156 * x86-nat.h: New file. All type, function and variable name
2157 prefixes changed from "i386_" to "x86_". All references updated.
2158 * i386-nat.c: Renamed as...
2159 * x86-nat.c: New file. All type, function and variable name
2160 prefixes changed from "i386_" to "x86_". All references updated.
2161 * common/i386-xstate.h: Renamed as...
2162 * common/x86-xstate.h: New file. All type, function and variable
2163 name prefixes changed from "i386_" to "x86_". All references
2164 updated.
2165 * nat/i386-cpuid.h: Renamed as...
2166 * nat/x86-cpuid.h: New file. All type, function and variable name
2167 prefixes changed from "i386_" to "x86_". All references updated.
2168 * nat/i386-gcc-cpuid.h: Renamed as...
2169 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2170 name prefixes changed from "i386_" to "x86_". All references
2171 updated.
2172 * nat/i386-dregs.h: Renamed as...
2173 * nat/x86-dregs.h: New file. All type, function and variable name
2174 prefixes changed from "i386_" to "x86_". All references updated.
2175 * nat/i386-dregs.c: Renamed as...
2176 * nat/x86-dregs.c: New file. All type, function and variable name
2177 prefixes changed from "i386_" to "x86_". All references updated.
2178
1c3569d4
MR
21792014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2180
2181 * varobj.c (_initialize_varobj): Move to the end of file.
2182
ff55e1b5
GB
21832014-08-29 Gary Benson <gbenson@redhat.com>
2184
2185 * common/common-exceptions.h: New file.
2186 * common/common-exceptions.c: Likewise.
2187 * Makefile.in (SFILES): Add common/common-exceptions.c.
2188 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2189 (COMMON_OBS): Add common-exceptions.o.
2190 (common-exceptions.o): New rule.
2191 * exceptions.h (common-exceptions.h): Include.
2192 (gdb_setjmp.h): Do not include.
2193 (return_reason): Moved to common-exceptions.h.
2194 (enum return_reason): Likewise.
2195 (RETURN_MASK): Likewise.
2196 (typedef return_mask): Likewise.
2197 (enum errors): Likewise.
2198 (struct gdb_exception): Likewise.
2199 (exceptions_state_mc_init): Likewise.
2200 (exceptions_state_mc_action_iter): Likewise.
2201 (exceptions_state_mc_action_iter_1): Likewise.
2202 (TRY_CATCH): Likewise.
2203 (throw_exception): Likewise.
2204 (throw_verror): Likewise.
2205 (throw_vquit): Likewise.
2206 (throw_error): Likewise.
2207 (throw_quit): Likewise.
2208 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2209 (enum catcher_action): Likewise.
2210 (struct catcher): Likewise.
2211 (current_catcher): Likewise.
2212 (catcher_list_size): Likewise.
2213 (exceptions_state_mc_init): Likewise.
2214 (catcher_pop): Likewise.
2215 (exceptions_state_mc): Likewise.
2216 (exceptions_state_mc_action_iter): Likewise.
2217 (exceptions_state_mc_action_iter_1): Likewise.
2218 (throw_exception): Likewise.
2219 (exception_messages): Likewise.
2220 (exception_messages_size): Likewise.
2221 (throw_it): Likewise.
2222 (throw_verror): Likewise.
2223 (throw_vquit): Likewise.
2224 (throw_error): Likewise.
2225 (throw_quit): Likewise.
2226 (prepare_to_throw_exception): New function.
2227
e9bcb658
GB
22282014-08-29 Gary Benson <gbenson@redhat.com>
2229
2230 * common/gdb_setjmp.h: New file.
2231 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2232 * configure.ac: Move sigsetjmp check...
2233 * common/common.m4: ...here.
2234 * configure: Regenerate.
2235 * cp-support.c (SIGJMP_BUF): Delete.
2236 (SIGSETJMP): Likewise.
2237 (SIGLONGJMP): Likewise.
2238 * exceptions.h (gdb_setjmp.h): Include.
2239 (setjmp.h): Do not include.
2240 (EXCEPTIONS_SIGJMP_BUF): Delete.
2241 (EXCEPTIONS_SIGSETJMP): Likewise.
2242 (EXCEPTIONS_SIGLONGJMP): Likewise.
2243 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2244 from gdb_setjmp.h.
2245 * exceptions.c: Likewise.
2246
e3180625
GB
22472014-08-29 Gary Benson <gbenson@redhat.com>
2248
2249 * cleanups.h: Moved to...
2250 * common/cleanups.h: New file.
2251 * cleanups.c: Moved to...
2252 * common/cleanups.c: New file. Include common-defs.h and
2253 cleanups.h. Do not include defs.h.
2254 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2255 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2256 (cleanups.o): New rule.
2257
e3d6ba5d
GB
22582014-08-29 Gary Benson <gbenson@redhat.com>
2259
2260 * common/errors.h (internal_warning): New declaration.
2261 (internal_vwarning): Likewise.
2262 * common/errors.c (internal_warning): New function.
2263 * utils.h (internal_warning): Don't declare.
2264 (internal_vwarning): Likewise.
2265 * utils.c (internal_warning): Removed.
2266
075c7033
GB
22672014-08-29 Gary Benson <gbenson@redhat.com>
2268
2269 * main.c (captured_main): Use warning during startup.
2270 Prefix startup warning messages with command name.
2271
91b35fd0
GB
22722014-08-29 Gary Benson <gbenson@redhat.com>
2273
2274 * main.c (captured_main): Handle usage errors with error.
2275
b1ec390e
GB
22762014-08-29 Gary Benson <gbenson@redhat.com>
2277
2278 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2279 exit pair with a call to error. Wrap the message with _().
2280
fd0ef3dd
GB
22812014-08-29 Gary Benson <gbenson@redhat.com>
2282
2283 * main.c (captured_main): Replace a fprintf/exit
2284 pair with a call to error. Wrap the message with _().
2285
e0e6bcab
GB
22862014-08-29 Gary Benson <gbenson@redhat.com>
2287
2288 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2289 pairs with calls to error. Wrap the message with _().
2290
0d2f5c07
GB
22912014-08-29 Gary Benson <gbenson@redhat.com>
2292
2293 * utils.c (vwarning): Protect calls to target_terminal_ours
2294 and wrap_here.
2295
5df43998
GB
22962014-08-29 Gary Benson <gbenson@redhat.com>
2297
2298 * exceptions.c (print_flush): Protect calls to
2299 target_terminal_ours and wrap_here.
2300
2437fd32
GB
23012014-08-29 Gary Benson <gbenson@redhat.com>
2302
2303 * utils.h (filtered_printing_initialized): New declaration.
2304 * utils.c (abort_with_message): New function.
2305 (internal_vproblem): Use abort_with_message for first level
2306 recursive internal problems, and if gdb_stderr is not set up.
2307 Protect calls to target_terminal_ours, begin_line and query.
2308
f1f58506
DE
23092014-08-28 Doug Evans <dje@google.com>
2310
2311 * symtab.c (in_prologue): Move definition to better spot.
2312 (skip_prologue_using_sal): Ditto.
2313
aab2f208
DE
23142014-08-28 Doug Evans <dje@google.com>
2315
2316 * symtab.c (find_function_start_sal): Move definition to better spot.
2317
6b65d1b6
YQ
23182014-08-28 Yao Qi <yao@codesourcery.com>
2319
2320 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2321 found_stack_adjust in forward scan. Remove condition check
2322 on found_stack_adjust which is always true. Indent the code.
2323
a1b34d15
YQ
23242014-08-28 Yao Qi <yao@codesourcery.com>
2325
2326 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2327 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2328 (dwarf_decode_lines): Remove argument
2329 want_line_info. Remove condition check on want_line_info.
2330 Callers update.
2331
d5962de5
DE
23322014-08-27 Doug Evans <dje@google.com>
2333
2334 * dwarf2read.c (dwarf_record_line): Fix typo.
2335
9b139002
SDJ
23362014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2337
2338 * target.h (struct target_ops::to_terminal_save_ours): Remove
2339 declaration.
2340 (target_terminal_save_ours): Remove macro.
2341 * target-delegates.c: Regenerate.
2342 * inf-child.c (inf_child_target): Don't set the nonexistent
2343 field to_terminal_save_ours.
2344 * inferior.h (child_terminal_save_ours): Remove declaration.
2345 * terminal.h (gdb_save_tty_state): New declaration.
2346 * inflow.c (child_terminal_save_ours): Rename to ...
2347 (gdb_save_tty_state): ... this.
2348 * tui/tui.c: Include terminal.h.
2349 (tui_enable): Use gdb_save_tty_state instead of
2350 target_terminal_save_ours.
2351 (tui_disable): Likewise.
2352
9debeba0
DE
23532014-08-25 Doug Evans <dje@google.com>
2354
2355 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2356 Pass NULL instead of 0 for context pointer.
2357
428fc5fc
YQ
23582014-08-25 Yao Qi <yao@codesourcery.com>
2359
2360 * dwarf2read.c: Fix grammatical error.
2361
cdc07690
YQ
23622014-08-24 Yao Qi <yao@codesourcery.com>
2363
2364 * dwarf2read.c (scan_partial_symbols): Update comments.
2365 Rename argument 'need_pc' with 'set_addrmap'.
2366 (add_partial_namespace): Rename argument 'need_pc' with
2367 'set_addrmap'.
2368 (add_partial_module): Likewise.
2369 (add_partial_subprogram): Likewise. Update comments.
2370 (dwarf2_name): Fix typo.
2371
a05a36a5
DE
23722014-08-22 Doug Evans <dje@google.com>
2373
2374 PR 17276
2375 * dwarf2read.c (dwarf_record_line_p): New function.
2376 (dwarf_decode_lines_1): Ignore subsequent line number entries
2377 for the same line if any entry had a non-zero discriminator.
2378
252a6764
DE
23792014-08-22 Doug Evans <dje@google.com>
2380
2381 * buildsym.h (record_line_ftype): New typedef.
2382 (record_line): Use it.
2383 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2384 (dwarf_decode_lines_1): Call them.
2385
510db052
YQ
23862014-08-22 Yao Qi <yao@codesourcery.com>
2387
2388 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2389 (ctf_end): Remove code.
2390
22fd09ae
JK
23912014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2392
2393 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2394 (linux_make_corefile_notes): call update_thread_list, protected against
2395 exceptions.
2396
656e8868
PA
23972014-08-21 Pedro Alves <palves@redhat.com>
2398
2399 * infcmd.c (attach_command): Remove comment.
2400
de589d04
WN
24012014-08-21 Bin Cheng <bin.cheng@arm.com>
2402
2403 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2404 unsigned LONGEST to ULONGEST.
2405
2a31c623
PA
24062014-08-20 Pedro Alves <palves@redhat.com>
2407
2408 * Makefile.in (check-read1): New rule.
2409
d36430db
JB
24102014-08-20 Joel Brobecker <brobecker@adacore.com>
2411
2412 * value.c (value_from_contents_and_address): Strip resolved_type's
2413 typedef layers before checking its TYPE_DATA_LOCATION.
2414
000339af
PA
24152014-08-20 Pedro Alves <palves@redhat.com>
2416
2417 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2418
5f52445b
YQ
24192014-08-20 Yao Qi <yao@codesourcery.com>
2420
2421 * amd64-tdep.c (amd64_classify): Add a blank line after the
2422 example. Move "*/" to a new line.
2423 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2424 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2425 * dwarf2read.c (psymtab_include_file_name): Likewise.
2426
9a0dc9e3
PA
24272014-08-19 Andrew Burgess <aburgess@broadcom.com>
2428 Pedro Alves <palves@redhat.com>
2429
2430 PR symtab/14604
2431 PR symtab/14605
2432 * ada-lang.c (coerce_unspec_val_to_type): Use
2433 value_contents_copy_raw.
2434 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2435 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2436 * cp-valprint.c (cp_print_value_fields): Let the common printing
2437 code handle optimized out values.
2438 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2439 * d-valprint.c (dynamic_array_type): Use
2440 value_bits_any_optimized_out.
2441 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2442 check_any_valid fields.
2443 (check_pieced_value_bits): Delete and inline ...
2444 (check_pieced_synthetic_pointer): ... here.
2445 (check_pieced_value_validity): Delete.
2446 (check_pieced_value_invalid): Delete.
2447 (pieced_value_funcs): Remove check_validity and check_any_valid
2448 fields.
2449 (read_pieced_value): Use mark_value_bits_optimized_out.
2450 (write_pieced_value): Switch to use
2451 mark_value_bytes_optimized_out.
2452 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2453 of assuming the whole value is optimized out.
2454 * findvar.c (read_frame_register_value): Remove special handling
2455 of optimized out registers.
2456 (value_from_register): Use mark_value_bytes_optimized_out.
2457 * frame-unwind.c (frame_unwind_got_optimized): Use
2458 mark_value_bytes_optimized_out.
2459 * jv-valprint.c (java_value_print): Adjust.
2460 (java_print_value_fields): Let the common printing code handle
2461 optimized out values.
2462 * mips-tdep.c (mips_print_register): Remove special handling of
2463 optimized out registers.
2464 * opencl-lang.c (lval_func_check_validity): Delete.
2465 (lval_func_check_any_valid): Delete.
2466 (opencl_value_funcs): Remove check_validity and check_any_valid
2467 fields.
2468 * p-valprint.c (pascal_object_print_value_fields): Let the common
2469 printing code handle optimized out values.
2470 * stack.c (read_frame_arg): Remove special handling of optimized
2471 out values. Fetch both VAL and ENTRYVAL before comparing
2472 contents. Adjust to value_available_contents_eq rename.
2473 * valprint.c (valprint_check_validity)
2474 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2475 (val_print_array_elements): Adjust.
2476 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2477 (value_bits_any_optimized_out): New function.
2478 (value_entirely_covered_by_range_vector): New function, factored
2479 out from value_entirely_unavailable.
2480 (value_entirely_unavailable): Reimplement.
2481 (value_entirely_optimized_out): New function.
2482 (insert_into_bit_range_vector): New function, factored out from
2483 mark_value_bits_unavailable.
2484 (mark_value_bits_unavailable): Reimplement.
2485 (struct ranges_and_idx): New struct.
2486 (find_first_range_overlap_and_match): New function, factored out
2487 from value_available_contents_bits_eq.
2488 (value_available_contents_bits_eq): Rename to ...
2489 (value_contents_bits_eq): ... this. Check both unavailable
2490 contents and optimized out contents.
2491 (value_available_contents_eq): Rename to ...
2492 (value_contents_eq): ... this.
2493 (allocate_value_lazy): Remove reference to the old optimized_out
2494 boolean.
2495 (allocate_optimized_out_value): Use
2496 mark_value_bytes_optimized_out.
2497 (require_not_optimized_out): Adjust to check whether the
2498 optimized_out vec is empty.
2499 (ranges_copy_adjusted): New function, factored out from
2500 value_contents_copy_raw.
2501 (value_contents_copy_raw): Also copy the optimized out ranges.
2502 Assert the destination ranges aren't optimized out.
2503 (value_contents_copy): Update comment, remove call to
2504 require_not_optimized_out.
2505 (value_contents_equal): Adjust to check whether the optimized_out
2506 vec is empty.
2507 (set_value_optimized_out, value_optimized_out_const): Delete.
2508 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2509 New functions.
2510 (value_entirely_optimized_out, value_bits_valid): Delete.
2511 (value_copy): Take a VEC copy of the 'optimized_out' field.
2512 (value_primitive_field): Remove special handling of optimized out.
2513 (value_fetch_lazy): Assert that lazy values have no unavailable
2514 regions. Use value_bits_any_optimized_out. Remove some special
2515 handling for optimized out values.
2516 * value.h: Add intro comment about <optimized out> and
2517 <unavailable>.
2518 (struct lval_funcs): Remove check_validity and check_any_valid
2519 fields.
2520 (set_value_optimized_out, value_optimized_out_const): Remove.
2521 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2522 New declarations.
2523 (value_bits_any_optimized_out): New declaration.
2524 (value_bits_valid): Delete declaration.
2525 (value_available_contents_eq): Rename to ...
2526 (value_contents_eq): ... this, and extend comments.
2527
6694c411
JK
25282014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2529
2530 Fix -fsanitize=address on unreadable inferior strings.
2531 * valprint.c (val_print_string): Fix access before BUFFER.
2532
89a1c21a
SM
25332014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2534
2535 * target.c (target_struct_size): Remove.
2536 (target_struct_allocsize): Remove.
2537 (DEFAULT_ALLOCSIZE): Remove.
2538 (target_ops_p): New typedef.
2539 (DEF_VEC_P (target_ops_p)): New vector type.
2540 (target_structs): Change type to VEC (target_ops_p).
2541 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2542 (find_default_run_target): Rewrite for loop following changes to
2543 target_structs.
2544
cb417230
JB
25452014-08-19 Joel Brobecker <brobecker@adacore.com>
2546
2547 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2548 Adjust code accordingly. Adjust function description comment.
2549
817e0957
YQ
25502014-08-19 Yao Qi <yao@codesourcery.com>
2551
2552 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2553 types.
2554
2974be62
AM
25552014-08-19 Alan Modra <amodra@gmail.com>
2556
2557 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2558 * config.in: Regenerate.
2559 * configure: Regenerate.
2560
34abf635
GB
25612014-08-19 Tom Tromey <tromey@redhat.com>
2562 Gary Benson <gbenson@redhat.com>
2563
2564 * common/common-debug.h: New file.
2565 * common/common-debug.c: Likewise.
2566 * debug.c: Likewise.
2567 * Makefile.in (SFILES): Add common/common-debug.c.
2568 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2569 (COMMON_OBS): Add common-debug.o and debug.o.
2570 (common-debug.o): New rule.
2571 * common/common-defs.h: Include common-debug.h.
2572 * common/agent.c (debug_agent_printf): New function.
2573 (DEBUG_AGENT): Redefine.
2574 * nat/i386-dregs.c (debug_printf): Undefine.
2575
f6e94d78
GB
25762014-08-19 Gary Benson <gbenson@redhat.com>
2577
2578 * common/common-defs.h: Include print-utils.h.
2579 * utils.h: Do not include print-utils.h.
2580
9239eeab
GB
25812014-08-19 Tom Tromey <tromey@redhat.com>
2582 Gary Benson <gbenson@redhat.com>
2583
2584 * common/common-types.h: New file.
2585 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2586 * common/common-defs.h: Include common-types.h.
2587 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2588 (ULONGEST): Remove.
2589
ef87c8bb
GB
25902014-08-19 Tom Tromey <tromey@redhat.com>
2591 Gary Benson <gbenson@redhat.com>
2592
2593 * common/errors.h: New file.
2594 * common/errors.c: Likewise.
2595 * Makefile.in (SFILES): Add common/errors.c.
2596 (HFILES_NO_SRCDIR): Add common/errors.h.
2597 (COMMON_OBS): Add errors.o.
2598 (errors.o): New rule.
2599 * common/common-defs.h: Include errors.h.
2600 * utils.h (perror_with_name, error, verror, warning, vwarning):
2601 Don't declare.
2602 * common/common-utils.h: (malloc_failure, internal_error):
2603 Likewise.
2604
196a707b
GB
26052014-08-19 Gary Benson <gbenson@redhat.com>
2606
2607 * utils.c (internal_vproblem): Always print the message.
2608
ded4fc8f
DE
26092014-08-18 Doug Evans <dje@google.com>
2610
2611 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2612
950c97d8
JB
26132014-08-18 Joel Brobecker <brobecker@adacore.com>
2614
2615 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2616 Return 0 if TYPE is dynamic.
2617 (print_range): Add handling of dynamic ranges.
2618
3cdcd0ce
JB
26192014-08-18 Keven Boell <keven.boell@intel.com>
2620 Joel Brobecker <brobecker@adacore.com>
2621
2622 * gdbtypes.h (struct main_type): Add field "data_location".
2623 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2624 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2625 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2626 a dynamic data location.
2627 (resolve_dynamic_type): Add DW_AT_data_location handling.
2628 (copy_recursive, copy_type): Copy the data_location information
2629 when present.
2630 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2631 * value.c (value_from_contents_and_address): Add
2632 DW_AT_data_location handling.
2633
08412b07
JB
26342014-08-18 Keven Boell <keven.boell@intel.com>
2635 Joel Brobecker <brobecker@adacore.com>
2636
2637 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2638 field "get_object_address".
2639 * dwarf2expr.c (execute_stack_op): Add handling for
2640 DW_OP_push_object_address.
2641 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2642 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2643 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2644 (dwarf_expr_get_obj_addr): New function.
2645 (dwarf_expr_ctx_funcs): Add get_object_address field.
2646 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2647 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2648 (dwarf2_evaluate_property): Add parameter "address". Use it.
2649 (needs_get_obj_addr): New function.
2650 (needs_frame_ctx_funcs): Add get_object_address field.
2651 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2652 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2653 (resolve_dynamic_array): Likewise.
2654
84754697
JB
26552014-08-18 Joel Brobecker <brobecker@adacore.com>
2656
2657 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2658 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2659 fixed value for records and unions for which some GNAT encodings
2660 are present.
2661
da5c522f
JB
26622014-08-18 Joel Brobecker <brobecker@adacore.com>
2663
2664 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2665 rewrite to avoid "else if" and "else" constructs. Should be
2666 a no-op in practice.
2667
0d72a7c3
JB
26682014-08-18 Joel Brobecker <brobecker@adacore.com>
2669
2670 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2671 of lexical block.
2672
e66d4446
SC
26732014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2674
2675 PR c++/17132
2676 * eval.c: Update all calls to find_overload_match.
2677 * valarith.c: Likewise.
2678 (value_user_defined_cpp_op, value_user_defined_op): New
2679 argument NOSIDE. Update all callers.
2680 * valops.c (find_overload_match): New argument NOSIDE.
2681 * value.h (find_overload_match): Update signature.
2682
940df408
SC
26832014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2684
2685 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2686 'items' methods instead of 'iteritems' method on dictionaries.
2687
699ca60a
DE
26882014-08-15 Doug Evans <dje@google.com>
2689
2690 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2691 closer to use.
2692
37780ee5
DE
26932014-08-15 Doug Evans <dje@google.com>
2694
2695 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2696
0ad93d4f
DE
26972014-08-15 Doug Evans <dje@google.com>
2698
2699 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2700
20d8c372
DE
27012014-08-15 Doug Evans <dje@google.com>
2702
2703 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2704 unused.
2705
cb039ba4
EZ
27062014-08-15 Eli Zaretskii <eliz@gnu.org>
2707
2708 * dcache.h: Include target.h, to avoid compile time warnings.
2709
eb7a547a
JB
27102014-08-15 Joel Brobecker <brobecker@adacore.com>
2711
2712 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2713 frame_info" partial declaration.
2714 * gdbarch.h: Regenerate.
2715
783cecc8
YQ
27162014-08-15 Yao Qi <yao@codesourcery.com>
2717
2718 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2719 Add parameter 'decode_for_pst_p'. Callers update.
2720
65c749e7
YQ
27212014-08-13 Yao Qi <yao@codesourcery.com>
2722
2723 PR build/17104
2724 * configure.ac: Use local variable 'pos'.
2725 * configure: Regenerated.
2726
d769e349
DE
27272014-08-11 Doug Evans <dje@google.com>
2728
2729 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2730 message, it is redundant with "Reading symbols from ..." message.
2731
24f1235e
DE
27322014-08-10 Doug Evans <xdje42@gmail.com>
2733
2734 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2735
dcd2e6ef
YQ
27362014-08-09 Yao Qi <yao@codesourcery.com>
2737
2738 PR remote/9053
2739 * remote.c (remote_xfer_partial): Remove dead code.
2740
070bdf0b
AA
27412014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2742
2743 * ia64-linux-tdep.c: Include "regset.h".
2744 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2745 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2746 (ia64_linux_supply_fpregset): New function.
2747 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2748 (ia64_linux_regset_from_core_section): New function.
2749 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2750 method.
2751
08f9f542
AA
27522014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2753
2754 * m68klinux-tdep.c: Include "regset.h".
2755 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2756 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2757 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2758 (m68k_linux_regset_from_core_section): New function.
2759 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2760 method.
2761
8f1cee41
AA
27622014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2763
2764 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
2765 function. Move logic to...
2766 (tilegx_linux_regmap): ... this new register map.
2767 (tilegx_linux_regset): Refer to register map, replace supply
2768 method by regcache_supply_regset, and add collect method.
2769 * tilegx-tdep.h (enum tilegx_regnum): New enum value
2770 TILEGX_FIRST_EASY_REGNUM.
2771
c5741217
AA
27722014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2773
2774 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
2775 that calls regcache_supply_regset and handles the EPC register
2776 separately. Move main logic to...
2777 (score7_linux_gregmap): ... this new register map.
2778 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
2779 (score7_linux_gregset): Refer to register map. Add collect method.
2780 (score7_linux_regset_from_core_section): Replace
2781 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
2782 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
2783 (struct regset): Delete unused forward declaraction.
2784 (struct pt_regs): Delete structure definition.
2785 (elf_gregset_t): Delete typedef.
2786
81580573
AA
27872014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2788
2789 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
2790 (nios2_core_regset): Add collect method.
2791
ba199d7d
AA
27922014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2793
2794 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
2795 platform-independent and don't write to read-only input buffer.
2796 (m32r_linux_collect_gregset): New function.
2797 (m32r_linux_gregset): Add collect method.
2798
0006a9da
AA
27992014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2800
2801 * hppa-linux-tdep.c (greg_map): Rename to...
2802 (hppa_linux_gregmap): ... this. Also convert to
2803 regcache_map_entry format.
2804 (hppa_linux_supply_regset): Delete function.
2805 (hppa_linux_supply_fpregset): Delete function. Move logic to...
2806 (hppa_linux_fpregmap): ... this new register map.
2807 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
2808 register map, replace supply method by regcache_supply_regset, and
2809 add collect method regcache_collect_regset.
2810
901e1b23
AA
28112014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2812
2813 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
2814 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
2815 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
2816 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
2817 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
2818 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
2819 (frv_linux_supply_gregset): Replace main logic by call to
2820 regcache_supply_regset, but keep clearing gr32-gr63.
2821 (frv_linux_supply_fpregset): Delete function.
2822 (frv_linux_gregset): Refer to appropriate register map and add
2823 regcache_collect_regset as the collect method.
2824 (frv_linux_fpregset): Likewise. Also exchange the supply method
2825 by regcache_supply_regset.
2826
1d6e7555
AA
28272014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2828
2829 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
2830 by call to alpha_supply_int_regs.
2831 (alpha_linux_collect_gregset): New function.
2832 (alpha_linux_supply_fpregset): Replace logic by call to
2833 alpha_supply_fp_regs.
2834 (alpha_linux_collect_fpregset): New function.
2835 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
2836
d4d793bf
AA
28372014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2838
2839 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
2840 by call to regcache_collect_regset.
2841 (supply_gregset, supply_fpregset): Call regcache_supply_regset
2842 instead of aarch64_linux_supply_gregset/_fpregset.
2843 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
2844 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
2845 header file instead.
2846 (aarch64_linux_supply_gregset, supply_gregset_from_core)
2847 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
2848 functions. Move logic to ...
2849 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
2850 register maps.
2851 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
2852 refer to new register maps, replace *_regset_from_core by
2853 regcache_supply_regset, and also use regcache_collect_regset.
2854 * aarch64-linux-tdep.h: Include "regset.h".
2855 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
2856 Delete prototypes.
2857 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
2858 macros, moved from C source file.
2859 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
2860 variable declarations.
2861
99b7da5d
AA
28622014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2863
2864 * s390-linux-nat.c: Include "regset.h".
2865 (regmap_gregset): Delete macro.
2866 (s390_64_regmap_gregset): New register map for
2867 regcache_supply/_collect_regset.
2868 (s390_64_gregset): New regset.
2869 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
2870 (regmap_fpregset): Delete macro.
2871 (s390_native_supply, s390_native_collect): Delete functions.
2872 (supply_gregset, fill_gregset): Replace s390-specific regmap
2873 handling by a call to regcache_supply/_collect_regset.
2874 (supply_fpregset, fill_fpregset): Call regcache_supply/
2875 _collect_regset instead of s390_native_supply/_collect.
2876 (fetch_regset, store_regset): Likewise. Also change the last
2877 parameter to a regset instead of a regmap.
2878 (s390_linux_fetch_inferior_registers)
2879 (390_linux_store_inferior_registers): Adjust last parameter in
2880 calls to fetch_regset and store_regset.
2881 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
2882 (s390_gregmap): ... this. Also make static const and convert to
2883 regcache_map_entry format.
2884 (s390x_regmap_gregset): Delete.
2885 (s390_regmap_fpregset): Rename to...
2886 (s390_fpregmap): ... this. Make static const and convert to
2887 regcache_map_entry format.
2888 (s390_regmap_upper, s390_regmap_last_break)
2889 (s390x_regmap_last_break, s390_regmap_system_call)
2890 (s390_regmap_tdb): Likewise.
2891 (s390_supply_regset, s390_collect_regset): Remove functions.
2892 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
2893 s390_supply_regset.
2894 (s390_gregset, s390_fpregset, s390_upper_regset)
2895 (s390_last_break_regset, s390x_last_break_regset)
2896 (s390_system_call_regset, s390_tdb_regset): Make global and
2897 replace s390_supply/_collect_regset by regcache_supply/
2898 _collect_regset.
2899 (s390x_gregset): Delete.
2900 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
2901 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
2902 (s390_regmap_fpregset, s390_regmap_last_break)
2903 (s390x_regmap_last_break, s390_regmap_system_call)
2904 (s390_regmap_tdb): Delete global variable declarations.
2905 (s390_gregset, s390_fpregset, s390_last_break_regset)
2906 (s390x_last_break_regset, s390_system_call_regset)
2907 (s390_tdb_regset): New global variable declarations.
2908
0b309272
AA
29092014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2910
2911 * regcache.c: Include "regset.h".
2912 (regcache_transfer_regset): New local function.
2913 (regcache_supply_regset, regcache_collect_regset): New functions.
2914 * regcache.h (struct regcache_map_entry): New structure.
2915 (REGCACHE_MAP_SKIP): New enum value.
2916 (regcache_supply_regset, regcache_collect_regset): New prototypes.
2917
7fefa8d7
AA
29182014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2919
2920 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
2921 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
2922 (ppc_linux_collect_gregset ): Likewise.
2923 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
2924 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
2925 (ppc_collect_vrregset): Likewise.
2926 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
2927 Likewise.
2928
96c4f946
YQ
29292014-08-07 Yao Qi <yao@codesourcery.com>
2930
2931 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
2932 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
2933 * remote.c (remote_read_bytes): Likewise.
2934
fffbe6a8
YQ
29352014-08-07 Yao Qi <yao@codesourcery.com>
2936
2937 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
2938
5ee8a82c
YQ
29392014-08-07 Yao Qi <yao@codesourcery.com>
2940
2941 PR remote/17230
2942 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
2943 TARGET_XFER_OK instead of 0.
2944
bb974a24
GB
29452014-08-07 Gary Benson <gbenson@redhat.com>
2946
2947 * common/common-defs.h: Include errno.h.
2948 * defs.h: Do not include errno.h.
2949 * ada-typeprint.c: Likewise.
2950 * c-typeprint.c: Likewise.
2951 * core-regset.c: Likewise.
2952 * corefile.c: Likewise.
2953 * corelow.c: Likewise.
2954 * event-loop.c: Likewise.
2955 * f-typeprint.c: Likewise.
2956 * gnu-nat.c: Likewise.
2957 * go32-nat.c: Likewise.
2958 * i386gnu-nat.c: Likewise.
2959 * m2-typeprint.c: Likewise.
2960 * nat/linux-btrace.c: Likewise.
2961 * p-typeprint.c: Likewise.
2962 * procfs.c: Likewise.
2963 * remote-sim.c: Likewise.
2964 * rs6000-nat.c: Likewise.
2965 * target.c: Likewise.
2966 * typeprint.c: Likewise.
2967 * ui-file.c: Likewise.
2968 * valops.c: Likewise.
2969 * valprint.c: Likewise.
2970
6d3d12eb
GB
29712014-08-07 Gary Benson <gbenson@redhat.com>
2972
2973 * common/common-defs.h: Include string.h.
2974 * aarch64-tdep.c: Do not include string.h.
2975 * ada-exp.y: Likewise.
2976 * ada-lang.c: Likewise.
2977 * ada-lex.l: Likewise.
2978 * ada-typeprint.c: Likewise.
2979 * ada-valprint.c: Likewise.
2980 * aix-thread.c: Likewise.
2981 * alpha-linux-tdep.c: Likewise.
2982 * alpha-mdebug-tdep.c: Likewise.
2983 * alpha-nat.c: Likewise.
2984 * alpha-osf1-tdep.c: Likewise.
2985 * alpha-tdep.c: Likewise.
2986 * alphanbsd-tdep.c: Likewise.
2987 * amd64-dicos-tdep.c: Likewise.
2988 * amd64-linux-tdep.c: Likewise.
2989 * amd64-nat.c: Likewise.
2990 * amd64-sol2-tdep.c: Likewise.
2991 * amd64fbsd-tdep.c: Likewise.
2992 * amd64obsd-tdep.c: Likewise.
2993 * arch-utils.c: Likewise.
2994 * arm-linux-nat.c: Likewise.
2995 * arm-linux-tdep.c: Likewise.
2996 * arm-tdep.c: Likewise.
2997 * arm-wince-tdep.c: Likewise.
2998 * armbsd-tdep.c: Likewise.
2999 * armnbsd-nat.c: Likewise.
3000 * armnbsd-tdep.c: Likewise.
3001 * armobsd-tdep.c: Likewise.
3002 * avr-tdep.c: Likewise.
3003 * ax-gdb.c: Likewise.
3004 * ax-general.c: Likewise.
3005 * bcache.c: Likewise.
3006 * bfin-tdep.c: Likewise.
3007 * breakpoint.c: Likewise.
3008 * build-id.c: Likewise.
3009 * buildsym.c: Likewise.
3010 * c-exp.y: Likewise.
3011 * c-lang.c: Likewise.
3012 * c-typeprint.c: Likewise.
3013 * c-valprint.c: Likewise.
3014 * charset.c: Likewise.
3015 * cli-out.c: Likewise.
3016 * cli/cli-cmds.c: Likewise.
3017 * cli/cli-decode.c: Likewise.
3018 * cli/cli-dump.c: Likewise.
3019 * cli/cli-interp.c: Likewise.
3020 * cli/cli-logging.c: Likewise.
3021 * cli/cli-script.c: Likewise.
3022 * cli/cli-setshow.c: Likewise.
3023 * cli/cli-utils.c: Likewise.
3024 * coffread.c: Likewise.
3025 * common/agent.c: Likewise.
3026 * common/buffer.c: Likewise.
3027 * common/buffer.h: Likewise.
3028 * common/common-utils.c: Likewise.
3029 * common/filestuff.c: Likewise.
3030 * common/filestuff.c: Likewise.
3031 * common/format.c: Likewise.
3032 * common/print-utils.c: Likewise.
3033 * common/rsp-low.c: Likewise.
3034 * common/signals.c: Likewise.
3035 * common/vec.h: Likewise.
3036 * common/xml-utils.c: Likewise.
3037 * core-regset.c: Likewise.
3038 * corefile.c: Likewise.
3039 * corelow.c: Likewise.
3040 * cp-abi.c: Likewise.
3041 * cp-name-parser.y: Likewise.
3042 * cp-support.c: Likewise.
3043 * cp-valprint.c: Likewise.
3044 * cris-tdep.c: Likewise.
3045 * d-exp.y: Likewise.
3046 * darwin-nat.c: Likewise.
3047 * dbxread.c: Likewise.
3048 * dcache.c: Likewise.
3049 * demangle.c: Likewise.
3050 * dicos-tdep.c: Likewise.
3051 * disasm.c: Likewise.
3052 * doublest.c: Likewise.
3053 * dsrec.c: Likewise.
3054 * dummy-frame.c: Likewise.
3055 * dwarf2-frame.c: Likewise.
3056 * dwarf2loc.c: Likewise.
3057 * dwarf2read.c: Likewise.
3058 * elfread.c: Likewise.
3059 * environ.c: Likewise.
3060 * eval.c: Likewise.
3061 * event-loop.c: Likewise.
3062 * exceptions.c: Likewise.
3063 * exec.c: Likewise.
3064 * expprint.c: Likewise.
3065 * f-exp.y: Likewise.
3066 * f-lang.c: Likewise.
3067 * f-typeprint.c: Likewise.
3068 * f-valprint.c: Likewise.
3069 * fbsd-nat.c: Likewise.
3070 * findcmd.c: Likewise.
3071 * findvar.c: Likewise.
3072 * fork-child.c: Likewise.
3073 * frame.c: Likewise.
3074 * frv-linux-tdep.c: Likewise.
3075 * frv-tdep.c: Likewise.
3076 * gdb.c: Likewise.
3077 * gdb_bfd.c: Likewise.
3078 * gdbarch.c: Likewise.
3079 * gdbarch.sh: Likewise.
3080 * gdbtypes.c: Likewise.
3081 * gnu-nat.c: Likewise.
3082 * gnu-v2-abi.c: Likewise.
3083 * gnu-v3-abi.c: Likewise.
3084 * go-exp.y: Likewise.
3085 * go-lang.c: Likewise.
3086 * go32-nat.c: Likewise.
3087 * guile/guile.c: Likewise.
3088 * guile/scm-auto-load.c: Likewise.
3089 * hppa-hpux-tdep.c: Likewise.
3090 * hppa-linux-nat.c: Likewise.
3091 * hppanbsd-tdep.c: Likewise.
3092 * hppaobsd-tdep.c: Likewise.
3093 * i386-cygwin-tdep.c: Likewise.
3094 * i386-dicos-tdep.c: Likewise.
3095 * i386-linux-tdep.c: Likewise.
3096 * i386-nto-tdep.c: Likewise.
3097 * i386-sol2-tdep.c: Likewise.
3098 * i386-tdep.c: Likewise.
3099 * i386bsd-tdep.c: Likewise.
3100 * i386gnu-nat.c: Likewise.
3101 * i386nbsd-tdep.c: Likewise.
3102 * i386obsd-tdep.c: Likewise.
3103 * i387-tdep.c: Likewise.
3104 * ia64-libunwind-tdep.c: Likewise.
3105 * ia64-linux-nat.c: Likewise.
3106 * inf-child.c: Likewise.
3107 * inf-ptrace.c: Likewise.
3108 * inf-ttrace.c: Likewise.
3109 * infcall.c: Likewise.
3110 * infcmd.c: Likewise.
3111 * inflow.c: Likewise.
3112 * infrun.c: Likewise.
3113 * interps.c: Likewise.
3114 * iq2000-tdep.c: Likewise.
3115 * irix5-nat.c: Likewise.
3116 * jv-exp.y: Likewise.
3117 * jv-lang.c: Likewise.
3118 * jv-typeprint.c: Likewise.
3119 * jv-valprint.c: Likewise.
3120 * language.c: Likewise.
3121 * linux-fork.c: Likewise.
3122 * linux-nat.c: Likewise.
3123 * lm32-tdep.c: Likewise.
3124 * m2-exp.y: Likewise.
3125 * m2-typeprint.c: Likewise.
3126 * m32c-tdep.c: Likewise.
3127 * m32r-linux-nat.c: Likewise.
3128 * m32r-linux-tdep.c: Likewise.
3129 * m32r-rom.c: Likewise.
3130 * m32r-tdep.c: Likewise.
3131 * m68hc11-tdep.c: Likewise.
3132 * m68k-tdep.c: Likewise.
3133 * m68kbsd-tdep.c: Likewise.
3134 * m68klinux-nat.c: Likewise.
3135 * m68klinux-tdep.c: Likewise.
3136 * m88k-tdep.c: Likewise.
3137 * machoread.c: Likewise.
3138 * macrocmd.c: Likewise.
3139 * main.c: Likewise.
3140 * mdebugread.c: Likewise.
3141 * mem-break.c: Likewise.
3142 * memattr.c: Likewise.
3143 * memory-map.c: Likewise.
3144 * mep-tdep.c: Likewise.
3145 * mi/mi-cmd-break.c: Likewise.
3146 * mi/mi-cmd-disas.c: Likewise.
3147 * mi/mi-cmd-env.c: Likewise.
3148 * mi/mi-cmd-stack.c: Likewise.
3149 * mi/mi-cmd-var.c: Likewise.
3150 * mi/mi-cmds.c: Likewise.
3151 * mi/mi-console.c: Likewise.
3152 * mi/mi-getopt.c: Likewise.
3153 * mi/mi-interp.c: Likewise.
3154 * mi/mi-main.c: Likewise.
3155 * mi/mi-parse.c: Likewise.
3156 * microblaze-rom.c: Likewise.
3157 * microblaze-tdep.c: Likewise.
3158 * mingw-hdep.c: Likewise.
3159 * minidebug.c: Likewise.
3160 * minsyms.c: Likewise.
3161 * mips-irix-tdep.c: Likewise.
3162 * mips-linux-tdep.c: Likewise.
3163 * mips-tdep.c: Likewise.
3164 * mips64obsd-tdep.c: Likewise.
3165 * mipsnbsd-tdep.c: Likewise.
3166 * mipsread.c: Likewise.
3167 * mn10300-linux-tdep.c: Likewise.
3168 * mn10300-tdep.c: Likewise.
3169 * monitor.c: Likewise.
3170 * moxie-tdep.c: Likewise.
3171 * mt-tdep.c: Likewise.
3172 * nat/linux-btrace.c: Likewise.
3173 * nat/linux-osdata.c: Likewise.
3174 * nat/linux-procfs.c: Likewise.
3175 * nat/linux-ptrace.c: Likewise.
3176 * nat/linux-waitpid.c: Likewise.
3177 * nbsd-tdep.c: Likewise.
3178 * nios2-linux-tdep.c: Likewise.
3179 * nto-procfs.c: Likewise.
3180 * nto-tdep.c: Likewise.
3181 * objc-lang.c: Likewise.
3182 * objfiles.c: Likewise.
3183 * opencl-lang.c: Likewise.
3184 * osabi.c: Likewise.
3185 * osdata.c: Likewise.
3186 * p-exp.y: Likewise.
3187 * p-lang.c: Likewise.
3188 * p-typeprint.c: Likewise.
3189 * parse.c: Likewise.
3190 * posix-hdep.c: Likewise.
3191 * ppc-linux-nat.c: Likewise.
3192 * ppc-sysv-tdep.c: Likewise.
3193 * ppcfbsd-tdep.c: Likewise.
3194 * ppcnbsd-tdep.c: Likewise.
3195 * ppcobsd-tdep.c: Likewise.
3196 * printcmd.c: Likewise.
3197 * procfs.c: Likewise.
3198 * prologue-value.c: Likewise.
3199 * python/py-auto-load.c: Likewise.
3200 * python/py-gdb-readline.c: Likewise.
3201 * ravenscar-thread.c: Likewise.
3202 * regcache.c: Likewise.
3203 * registry.c: Likewise.
3204 * remote-fileio.c: Likewise.
3205 * remote-m32r-sdi.c: Likewise.
3206 * remote-mips.c: Likewise.
3207 * remote-notif.c: Likewise.
3208 * remote-sim.c: Likewise.
3209 * remote.c: Likewise.
3210 * reverse.c: Likewise.
3211 * rs6000-aix-tdep.c: Likewise.
3212 * ser-base.c: Likewise.
3213 * ser-go32.c: Likewise.
3214 * ser-mingw.c: Likewise.
3215 * ser-pipe.c: Likewise.
3216 * ser-tcp.c: Likewise.
3217 * ser-unix.c: Likewise.
3218 * serial.c: Likewise.
3219 * sh-tdep.c: Likewise.
3220 * sh64-tdep.c: Likewise.
3221 * shnbsd-tdep.c: Likewise.
3222 * skip.c: Likewise.
3223 * sol-thread.c: Likewise.
3224 * solib-dsbt.c: Likewise.
3225 * solib-frv.c: Likewise.
3226 * solib-osf.c: Likewise.
3227 * solib-som.c: Likewise.
3228 * solib-spu.c: Likewise.
3229 * solib-target.c: Likewise.
3230 * solib.c: Likewise.
3231 * somread.c: Likewise.
3232 * source.c: Likewise.
3233 * sparc-nat.c: Likewise.
3234 * sparc-sol2-tdep.c: Likewise.
3235 * sparc-tdep.c: Likewise.
3236 * sparc64-tdep.c: Likewise.
3237 * sparc64fbsd-tdep.c: Likewise.
3238 * sparc64nbsd-tdep.c: Likewise.
3239 * sparcnbsd-tdep.c: Likewise.
3240 * spu-linux-nat.c: Likewise.
3241 * spu-multiarch.c: Likewise.
3242 * spu-tdep.c: Likewise.
3243 * stabsread.c: Likewise.
3244 * stack.c: Likewise.
3245 * std-regs.c: Likewise.
3246 * symfile.c: Likewise.
3247 * symmisc.c: Likewise.
3248 * symtab.c: Likewise.
3249 * target.c: Likewise.
3250 * thread.c: Likewise.
3251 * tilegx-linux-nat.c: Likewise.
3252 * tilegx-tdep.c: Likewise.
3253 * top.c: Likewise.
3254 * tracepoint.c: Likewise.
3255 * tui/tui-command.c: Likewise.
3256 * tui/tui-data.c: Likewise.
3257 * tui/tui-disasm.c: Likewise.
3258 * tui/tui-file.c: Likewise.
3259 * tui/tui-layout.c: Likewise.
3260 * tui/tui-out.c: Likewise.
3261 * tui/tui-regs.c: Likewise.
3262 * tui/tui-source.c: Likewise.
3263 * tui/tui-stack.c: Likewise.
3264 * tui/tui-win.c: Likewise.
3265 * tui/tui-windata.c: Likewise.
3266 * tui/tui-winsource.c: Likewise.
3267 * typeprint.c: Likewise.
3268 * ui-file.c: Likewise.
3269 * ui-out.c: Likewise.
3270 * user-regs.c: Likewise.
3271 * utils.c: Likewise.
3272 * v850-tdep.c: Likewise.
3273 * valarith.c: Likewise.
3274 * valops.c: Likewise.
3275 * valprint.c: Likewise.
3276 * value.c: Likewise.
3277 * varobj.c: Likewise.
3278 * vax-tdep.c: Likewise.
3279 * vaxnbsd-tdep.c: Likewise.
3280 * vaxobsd-tdep.c: Likewise.
3281 * windows-nat.c: Likewise.
3282 * xcoffread.c: Likewise.
3283 * xml-support.c: Likewise.
3284 * xstormy16-tdep.c: Likewise.
3285 * xtensa-linux-nat.c: Likewise.
3286
dccbb609
GB
32872014-08-07 Gary Benson <gbenson@redhat.com>
3288
3289 * common/common-defs.h: Include gdb_assert.h.
3290 * aarch64-tdep.c: Do not include gdb_assert.h.
3291 * addrmap.c: Likewise.
3292 * aix-thread.c: Likewise.
3293 * alpha-linux-tdep.c: Likewise.
3294 * alpha-mdebug-tdep.c: Likewise.
3295 * alphanbsd-tdep.c: Likewise.
3296 * amd64-nat.c: Likewise.
3297 * amd64-tdep.c: Likewise.
3298 * amd64bsd-nat.c: Likewise.
3299 * amd64fbsd-nat.c: Likewise.
3300 * amd64fbsd-tdep.c: Likewise.
3301 * amd64nbsd-nat.c: Likewise.
3302 * amd64nbsd-tdep.c: Likewise.
3303 * amd64obsd-nat.c: Likewise.
3304 * amd64obsd-tdep.c: Likewise.
3305 * arch-utils.c: Likewise.
3306 * arm-tdep.c: Likewise.
3307 * armbsd-tdep.c: Likewise.
3308 * auxv.c: Likewise.
3309 * bcache.c: Likewise.
3310 * bfin-tdep.c: Likewise.
3311 * blockframe.c: Likewise.
3312 * breakpoint.c: Likewise.
3313 * bsd-kvm.c: Likewise.
3314 * bsd-uthread.c: Likewise.
3315 * buildsym.c: Likewise.
3316 * c-exp.y: Likewise.
3317 * c-lang.c: Likewise.
3318 * charset.c: Likewise.
3319 * cleanups.c: Likewise.
3320 * cli-out.c: Likewise.
3321 * cli/cli-decode.c: Likewise.
3322 * cli/cli-dump.c: Likewise.
3323 * cli/cli-logging.c: Likewise.
3324 * cli/cli-script.c: Likewise.
3325 * cli/cli-utils.c: Likewise.
3326 * coffread.c: Likewise.
3327 * common/common-utils.c: Likewise.
3328 * common/queue.h: Likewise.
3329 * common/signals.c: Likewise.
3330 * common/vec.h: Likewise.
3331 * complaints.c: Likewise.
3332 * completer.c: Likewise.
3333 * corelow.c: Likewise.
3334 * cp-abi.c: Likewise.
3335 * cp-name-parser.y: Likewise.
3336 * cp-namespace.c: Likewise.
3337 * cp-support.c: Likewise.
3338 * cris-tdep.c: Likewise.
3339 * dbxread.c: Likewise.
3340 * dictionary.c: Likewise.
3341 * doublest.c: Likewise.
3342 * dsrec.c: Likewise.
3343 * dummy-frame.c: Likewise.
3344 * dwarf2-frame-tailcall.c: Likewise.
3345 * dwarf2-frame.c: Likewise.
3346 * dwarf2expr.c: Likewise.
3347 * dwarf2loc.c: Likewise.
3348 * dwarf2read.c: Likewise.
3349 * eval.c: Likewise.
3350 * event-loop.c: Likewise.
3351 * exceptions.c: Likewise.
3352 * expprint.c: Likewise.
3353 * f-valprint.c: Likewise.
3354 * fbsd-nat.c: Likewise.
3355 * findvar.c: Likewise.
3356 * frame-unwind.c: Likewise.
3357 * frame.c: Likewise.
3358 * frv-tdep.c: Likewise.
3359 * gcore.c: Likewise.
3360 * gdb-dlfcn.c: Likewise.
3361 * gdb_bfd.c: Likewise.
3362 * gdbarch.c: Likewise.
3363 * gdbarch.sh: Likewise.
3364 * gdbtypes.c: Likewise.
3365 * gnu-nat.c: Likewise.
3366 * gnu-v3-abi.c: Likewise.
3367 * go-lang.c: Likewise.
3368 * guile/scm-exception.c: Likewise.
3369 * guile/scm-gsmob.c: Likewise.
3370 * guile/scm-lazy-string.c: Likewise.
3371 * guile/scm-math.c: Likewise.
3372 * guile/scm-pretty-print.c: Likewise.
3373 * guile/scm-safe-call.c: Likewise.
3374 * guile/scm-utils.c: Likewise.
3375 * guile/scm-value.c: Likewise.
3376 * h8300-tdep.c: Likewise.
3377 * hppa-hpux-nat.c: Likewise.
3378 * hppa-tdep.c: Likewise.
3379 * hppanbsd-tdep.c: Likewise.
3380 * hppaobsd-tdep.c: Likewise.
3381 * i386-darwin-nat.c: Likewise.
3382 * i386-darwin-tdep.c: Likewise.
3383 * i386-nto-tdep.c: Likewise.
3384 * i386-tdep.c: Likewise.
3385 * i386bsd-nat.c: Likewise.
3386 * i386fbsd-tdep.c: Likewise.
3387 * i386gnu-nat.c: Likewise.
3388 * i386nbsd-tdep.c: Likewise.
3389 * i386obsd-tdep.c: Likewise.
3390 * i387-tdep.c: Likewise.
3391 * ia64-libunwind-tdep.c: Likewise.
3392 * ia64-tdep.c: Likewise.
3393 * inf-ptrace.c: Likewise.
3394 * inf-ttrace.c: Likewise.
3395 * infcall.c: Likewise.
3396 * infcmd.c: Likewise.
3397 * infrun.c: Likewise.
3398 * inline-frame.c: Likewise.
3399 * interps.c: Likewise.
3400 * jv-lang.c: Likewise.
3401 * jv-typeprint.c: Likewise.
3402 * linux-fork.c: Likewise.
3403 * linux-nat.c: Likewise.
3404 * linux-thread-db.c: Likewise.
3405 * m32c-tdep.c: Likewise.
3406 * m32r-linux-nat.c: Likewise.
3407 * m32r-tdep.c: Likewise.
3408 * m68k-tdep.c: Likewise.
3409 * m68kbsd-nat.c: Likewise.
3410 * m68kbsd-tdep.c: Likewise.
3411 * m88k-tdep.c: Likewise.
3412 * machoread.c: Likewise.
3413 * macroexp.c: Likewise.
3414 * macrotab.c: Likewise.
3415 * maint.c: Likewise.
3416 * mdebugread.c: Likewise.
3417 * memory-map.c: Likewise.
3418 * mep-tdep.c: Likewise.
3419 * mi/mi-common.c: Likewise.
3420 * microblaze-tdep.c: Likewise.
3421 * mingw-hdep.c: Likewise.
3422 * mips-linux-nat.c: Likewise.
3423 * mips-linux-tdep.c: Likewise.
3424 * mips-tdep.c: Likewise.
3425 * mips64obsd-tdep.c: Likewise.
3426 * mipsnbsd-tdep.c: Likewise.
3427 * mn10300-linux-tdep.c: Likewise.
3428 * mn10300-tdep.c: Likewise.
3429 * moxie-tdep.c: Likewise.
3430 * mt-tdep.c: Likewise.
3431 * nat/linux-btrace.c: Likewise.
3432 * nat/linux-osdata.c: Likewise.
3433 * nat/linux-ptrace.c: Likewise.
3434 * nat/mips-linux-watch.c: Likewise.
3435 * nios2-linux-tdep.c: Likewise.
3436 * nios2-tdep.c: Likewise.
3437 * objc-lang.c: Likewise.
3438 * objfiles.c: Likewise.
3439 * obsd-nat.c: Likewise.
3440 * opencl-lang.c: Likewise.
3441 * osabi.c: Likewise.
3442 * parse.c: Likewise.
3443 * ppc-linux-nat.c: Likewise.
3444 * ppc-sysv-tdep.c: Likewise.
3445 * ppcfbsd-nat.c: Likewise.
3446 * ppcfbsd-tdep.c: Likewise.
3447 * ppcnbsd-nat.c: Likewise.
3448 * ppcnbsd-tdep.c: Likewise.
3449 * ppcobsd-nat.c: Likewise.
3450 * ppcobsd-tdep.c: Likewise.
3451 * printcmd.c: Likewise.
3452 * procfs.c: Likewise.
3453 * prologue-value.c: Likewise.
3454 * psymtab.c: Likewise.
3455 * python/py-lazy-string.c: Likewise.
3456 * python/py-value.c: Likewise.
3457 * regcache.c: Likewise.
3458 * reggroups.c: Likewise.
3459 * registry.c: Likewise.
3460 * remote-sim.c: Likewise.
3461 * remote.c: Likewise.
3462 * rs6000-aix-tdep.c: Likewise.
3463 * rs6000-tdep.c: Likewise.
3464 * s390-linux-tdep.c: Likewise.
3465 * score-tdep.c: Likewise.
3466 * ser-base.c: Likewise.
3467 * ser-mingw.c: Likewise.
3468 * sh-tdep.c: Likewise.
3469 * sh64-tdep.c: Likewise.
3470 * solib-darwin.c: Likewise.
3471 * solib-spu.c: Likewise.
3472 * solib-svr4.c: Likewise.
3473 * source.c: Likewise.
3474 * sparc-nat.c: Likewise.
3475 * sparc-sol2-tdep.c: Likewise.
3476 * sparc-tdep.c: Likewise.
3477 * sparc64-sol2-tdep.c: Likewise.
3478 * sparc64-tdep.c: Likewise.
3479 * sparc64fbsd-tdep.c: Likewise.
3480 * sparc64nbsd-tdep.c: Likewise.
3481 * sparc64obsd-tdep.c: Likewise.
3482 * sparcnbsd-tdep.c: Likewise.
3483 * sparcobsd-tdep.c: Likewise.
3484 * spu-multiarch.c: Likewise.
3485 * spu-tdep.c: Likewise.
3486 * stabsread.c: Likewise.
3487 * stack.c: Likewise.
3488 * symfile.c: Likewise.
3489 * symtab.c: Likewise.
3490 * target-descriptions.c: Likewise.
3491 * target-memory.c: Likewise.
3492 * target.c: Likewise.
3493 * tic6x-linux-tdep.c: Likewise.
3494 * tic6x-tdep.c: Likewise.
3495 * tilegx-linux-nat.c: Likewise.
3496 * tilegx-tdep.c: Likewise.
3497 * top.c: Likewise.
3498 * tramp-frame.c: Likewise.
3499 * tui/tui-out.c: Likewise.
3500 * tui/tui-winsource.c: Likewise.
3501 * ui-out.c: Likewise.
3502 * user-regs.c: Likewise.
3503 * utils.c: Likewise.
3504 * v850-tdep.c: Likewise.
3505 * valops.c: Likewise.
3506 * value.c: Likewise.
3507 * varobj.c: Likewise.
3508 * vax-nat.c: Likewise.
3509 * xml-syscall.c: Likewise.
3510 * xml-tdesc.c: Likewise.
3511 * xstormy16-tdep.c: Likewise.
3512 * xtensa-linux-nat.c: Likewise.
3513 * xtensa-tdep.c: Likewise.
3514
e76df0d0
GB
35152014-08-07 Gary Benson <gbenson@redhat.com>
3516
3517 * common/common-defs.h: Include common-utils.h.
3518 * defs.h: Do not include common-utils.h.
3519 * common/gdb_assert.h: Likewise.
3520 * darwin-nat.h: Likewise.
3521 * nat/linux-btrace.c: Likewise.
3522 * target/waitstatus.h: Likewise.
3523
4cb9c816
GB
35242014-08-07 Gary Benson <gbenson@redhat.com>
3525
3526 * common/common-defs.h: Include ptid.h.
3527 * defs.h: Do not include ptid.h.
3528 * inferior.h: Likewise.
3529 * infrun.h: Likewise.
3530 * nat/linux-btrace.h: Likewise.
3531 * nat/linux-osdata.h: Likewise.
3532 * target/waitstatus.h: Likewise.
3533
3995eeee
GB
35342014-08-07 Gary Benson <gbenson@redhat.com>
3535
3536 * common/common-defs.h: Include gdb_locale.h.
3537 * defs.h: Do not include gdb_locale.h.
3538
cb9f1a9b
GB
35392014-08-07 Gary Benson <gbenson@redhat.com>
3540
3541 * common/common-defs.h: Include gdb/signals.h.
3542 * defs.h: Do not include gdb/signals.h.
3543
a5fceff8
GB
35442014-08-07 Gary Benson <gbenson@redhat.com>
3545
3546 * common/common-defs.h: Include pathmax.h.
3547 * defs.h: Do not include pathmax.h.
3548
b9391142
GB
35492014-08-07 Gary Benson <gbenson@redhat.com>
3550
3551 * common/common-defs.h: Include libiberty.h.
3552 * defs.h: Do not include libiberty.h.
3553 * common/queue.h: Likewise.
3554 * cp-name-parser.y: Likewise.
3555 * mi/mi-cmd-catch.c: Likewise.
3556 * python/python.c: Likewise.
3557
0e443c87
GB
35582014-08-07 Gary Benson <gbenson@redhat.com>
3559
3560 * common/common-defs.h: Include ansidecl.h.
3561 * defs.h: Do not include ansidecl.h.
3562 * common/buffer.h: Likewise.
3563 * common/common-utils.h: Likewise.
3564
8ebb3f56
GB
35652014-08-07 Gary Benson <gbenson@redhat.com>
3566
3567 * common/common-defs.h: Include stddef.h.
3568 * defs.h: Do not include stddef.h.
3569 * common/common-utils.h: Likewise.
3570 * amd64fbsd-nat.c: Likewise.
3571 * bcache.c: Likewise.
3572 * charset.c: Likewise.
3573 * common/buffer.h: Likewise.
3574 * common/vec.h: Likewise.
3575 * i386bsd-nat.c: Likewise.
3576 * nat/linux-btrace.h: Likewise.
3577 * ppcfbsd-nat.c: Likewise.
3578 * ppcnbsd-tdep.h: Likewise.
3579 * ppcobsd-nat.c: Likewise.
3580 * ppcobsd-tdep.h: Likewise.
3581 * python/py-gdb-readline.c: Likewise.
3582
8980bdf6
GB
35832014-08-07 Gary Benson <gbenson@redhat.com>
3584
3585 * common/common-defs.h: Include stdarg.h.
3586 * defs.h: Do not include stdarg.h.
3587 * ada-lang.c: Likewise.
3588 * common/common-utils.h: Likewise.
3589 * guile/scm-string.c: Likewise.
3590 * guile/scm-utils.c: Likewise.
3591 * m32c-tdep.c: Likewise.
3592
d7096f71
GB
35932014-08-07 Gary Benson <gbenson@redhat.com>
3594
3595 * common/common-defs.h: Include stdlib.h.
3596 * defs.h: Do not include stdlib.h.
3597 * addrmap.c: Likewise.
3598 * bcache.c: Likewise.
3599 * common/buffer.c: Likewise.
3600 * common/common-utils.c: Likewise.
3601 * cp-name-parser.y: Likewise.
3602 * go32-nat.c: Likewise.
3603 * mn10300-linux-tdep.c: Likewise.
3604 * nat/linux-osdata.c: Likewise.
3605 * tui/tui.c: Likewise.
3606 * windows-nat.c: Likewise.
3607
d02f550d
GB
36082014-08-07 Gary Benson <gbenson@redhat.com>
3609
3610 * common/common-defs.h: Include stdio.h.
3611 * defs.h: Do not include stdio.h.
3612 * ada-lang.c: Likewise.
3613 * common/buffer.c: Likewise.
3614 * common/common-utils.c: Likewise.
3615 * cp-name-parser.y: Likewise.
3616 * gnu-nat.c: Likewise.
3617 * go32-nat.c: Likewise.
3618 * i386gnu-nat.c: Likewise.
3619 * proc-api.c: Likewise.
3620 * proc-events.c: Likewise.
3621 * proc-flags.c: Likewise.
3622 * proc-why.c: Likewise.
3623 * python/python-internal.h: Likewise.
3624 * target-memory.c: Likewise.
3625 * tui/tui-io.c: Likewise.
3626 * tui/tui.c: Likewise.
3627
b6d7a4bf
SM
36282014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3629
3630 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3631 (scan_dyntag_auxv): Same.
3632
af19829b
YQ
36332014-08-06 Yao Qi <yao@codesourcery.com>
3634
3635 * amd64-linux-nat.c: Remove duplicated include
3636 "x86-linux-nat.h".
3637 * i386-linux-nat.c: Likewise.
3638
8e07a239
YQ
36392014-08-06 Yao Qi <yao@codesourcery.com>
3640
3641 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3642 operand" with "Special opcode" in comments.
3643
7bfe8241
GB
36442014-08-05 Gary Benson <gbenson@redhat.com>
3645
3646 * interps.c (initialize_interps): Remove prototype.
3647 (interpreter_initialized): Remove static global.
3648 (interp_add): Do not call initialize_interps.
3649 (initialize_interps): Remove function.
3650
d6c95504
GB
36512014-08-05 Gary Benson <gbenson@redhat.com>
3652
3653 * utils.c (vwarning): Remove spurious va_end.
3654
241fd515
AM
36552014-08-05 Alan Modra <amodra@gmail.com>
3656
3657 * charset.c (convert_between_encodings): Cast result of obstack_base.
3658 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3659 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3660 (read_unwind_info): Use size_t for some locals.
3661 * jit.c (finalize_symtab): Likewise.
3662 * utils.c (hashtab_obstack_allocate): Likewise.
3663 * symmisc.c (print_objfile_statistics): Update format strings.
3664
dc304a94
JK
36652014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3666
3667 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3668 (Changes in GDB 7.8): ... here.
3669
3cecbbbe
TT
36702014-08-04 Tom Tromey <tromey@redhat.com>
3671
3672 * target.c (set_targetdebug): New function.
3673 (initialize_targets): Pass set_targetdebug when creating "set
3674 debug target".
3675
6908c509
JB
36762014-08-01 Joel Brobecker <brobecker@adacore.com>
3677
3678 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3679 if detecting a variable-sized field that is not the last field.
3680 Fix struct type length computation.
3681
53e8f97d
JB
36822014-08-01 Joel Brobecker <brobecker@adacore.com>
3683
3684 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3685 Add debug trace.
3686
e068c55d
JB
36872014-08-01 Joel Brobecker <brobecker@adacore.com>
3688
3689 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3690 Remove "+ 8" offset in computation of CHAIN_VMA.
3691
4d4ca2a1
DE
36922014-07-31 Doug Evans <dje@google.com>
3693
3694 * inflow.c (child_terminal_inferior): Add comment.
3695 (child_terminal_ours_for_output): Add comment.
3696 (child_terminal_ours): Add comment.
3697 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3698 (linux_nat_terminal_ours): Add comment.
3699
462f517e
GB
37002014-07-31 Gary Benson <gbenson@redhat.com>
3701
3702 * common/btrace-common.h: Do not include defs.h or server.h.
3703 * nat/mips-linux-watch.h: Likewise.
3704 * gdb-dlfcn.h: Do not include defs.h.
3705 * tracefile.h: Likewise.
3706
74228e77
RM
37072014-07-30 Roland McGrath <mcgrathr@google.com>
3708
3709 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3710
014f9477
TT
37112014-07-30 Tom Tromey <tromey@redhat.com>
3712
3713 * bsd-kvm.c (bsd_kvm_open): Constify.
3714 * corelow.c (core_open): Constify.
3715 * ctf.c (ctf_open): Constify.
3716 * dbug-rom.c (dbug_open): Constify.
3717 * exec.c (exec_open): Constify.
3718 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3719 * microblaze-rom.c (picobug_open): Constify.
3720 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3721 Constify.
3722 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3723 * record-btrace.c (record_btrace_open): Constify.
3724 * record-full.c (record_full_core_open_1, record_full_open_1)
3725 (record_full_open): Constify.
3726 * remote-m32r-sdi.c (m32r_open): Constify.
3727 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3728 (rockhopper_open, lsi_open): Constify.
3729 * remote-sim.c (gdbsim_open): Constify.
3730 * remote.c (remote_open, extended_remote_open, remote_open_1):
3731 Constify.
3732 * target.h (struct target_ops) <to_open>: Make "arg" const.
3733 * tracefile-tfile.c (tfile_open): Constify.
3734
e799154c
TT
37352014-07-30 Tom Tromey <tromey@redhat.com>
3736
3737 * breakpoint.c (map_breakpoint_numbers): Update.
3738 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3739 (get_number_const): New function.
3740 (get_number): Rewrite using get_number_const.
3741 (init_number_or_range): Make "string" const.
3742 (number_is_in_list): Make "list" const.
3743 * cli/cli-utils.h (get_number_const): Declare.
3744 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3745 (init_number_or_range, number_is_in_list): Update.
3746 * printcmd.c (map_display_numbers): Update.
3747 * value.c (value_from_history_ref): Constify.
3748 * value.h (value_from_history_ref): Update.
3749
5f08566b
TT
37502014-07-30 Tom Tromey <tromey@redhat.com>
3751
3752 * corefile.c (hook_type, call_extra_exec_file_hooks)
3753 (specify_exec_file_hook): Constify.
3754 * exec.c (exec_file_attach): Make "filename" const.
3755 * gdbcore.h (deprecated_exec_file_display_hook)
3756 (specify_exec_file_hook, exec_file_attach): Constify.
3757 * main.c (captured_main): Use catch_command_errors_const.
3758
8981c758
TT
37592014-07-30 Tom Tromey <tromey@redhat.com>
3760
3761 * target.c (open_target): New function.
3762 (add_target_with_completer, add_deprecated_target_alias): Use
3763 set_cmd_sfunc, set_cmd_context.
3764 (debug_to_open): Remove.
3765 (setup_target_debug): Update.
3766
a1c7835a
YQ
37672014-07-30 Yao Qi <yao@codesourcery.com>
3768
3769 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
3770 comments.
3771 * parse.c (exp_iterate): Update comments.
3772
976411d6
GB
37732014-07-30 Gary Benson <gbenson@redhat.com>
3774
3775 * common/common-defs.h: New file.
3776 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
3777 * defs.h: Include common-defs.h.
3778 Do not include config.h or build-gnulib/config.h.
3779
5d4848a4
GB
37802014-07-30 Gary Benson <gbenson@redhat.com>
3781
3782 * common/common-utils.h: Do not include config.h.
3783 * nat/linux-btrace.h: Likewise.
3784
d41f6d8e
GB
37852014-07-30 Gary Benson <gbenson@redhat.com>
3786
3787 * btrace.c: Include defs.h.
3788 * common/ptid.c: Include defs.h or server.h as appropriate.
3789 * nat/mips-linux-watch.c: Likewise.
3790
84202f9c
TT
37912014-07-29 Tom Tromey <tromey@redhat.com>
3792
3793 * target.c (target_is_pushed): Simplify.
3794
2530441c
JB
37952014-07-29 Joel Brobecker <brobecker@adacore.com>
3796
3797 GDB 7.8 released.
3798
7e09a223
YQ
37992014-07-29 Yao Qi <yao@codesourcery.com>
3800
3801 PR gdb/17206
3802 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
3803
7ebdbe92
DE
38042014-07-28 Doug Evans <xdje42@gmail.com>
3805
3806 PR guile/17203
3807 * guile/scm-param.c (pascm_parameter_defined_p): New function.
3808 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
3809 parameters.
3810
f347ffc9
WN
38112014-07-28 Will Newton <will.newton@linaro.org>
3812
3813 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
3814 (THUMB2_SET_R7_SIGRETURN2): Likewise.
3815 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
3816 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
3817 (THUMB2_EABI_SYSCALL): Likewise.
3818 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
3819 struct tramp_frame.
3820 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
3821 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
3822
37c5f1f7
DE
38232014-07-27 Doug Evans <xdje42@gmail.com>
3824
3825 * guile/scm-param.c (pascm_print_param_smob): Fix output.
3826
0c3abbc7
DE
38272014-07-27 Doug Evans <xdje42@gmail.com>
3828
3829 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
3830
e76c5d17
DE
38312014-07-26 Ludovic Courtès <ludo@gnu.org>
3832 Doug Evans <xdje42@gmail.com>
3833
3834 PR guile/17146
3835 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
3836 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
3837 * configure.ac: Try to use guild to compile an scm file, if it fails
3838 then disable guile support.
3839 * configure: Regenerate.
3840 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
3841 GUILE_FILE_LIST.
3842 (GUILE_COMPILED_FILES): New variable.
3843 (GUILE_FILES) Update.
3844 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
3845 (stamp-guile): Compile scm files.
3846 * guile/guile.c (boot_guile_support): New function.
3847 (standard_throw_args_p): New function.
3848 (print_standard_throw_error, print_throw_error): New functions.
3849 (handle_boot_error): New function.
3850 (initialize_scheme_side): Rewrite to call boot_guile_support.
3851 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
3852 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
3853
186fcde0
DE
38542014-07-26 Ludovic Courtès <ludo@gnu.org>
3855 Doug Evans <xdje42@gmail.com>
3856
3857 PR guile/17146
3858 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
3859 * guile/lib/gdb/support.scm: New file.
3860 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
3861 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
3862 All uses updated.
3863 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
3864 All uses updated.
3865 (%assert-type): Ditto, and renamed to assert-type.
3866 (%exception-print-style): Delete.
3867
4df42755
DE
38682014-07-26 Doug Evans <xdje42@gmail.com>
3869
3870 PR build/17105
3871 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
3872 * configure: Regenerate.
3873 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
3874 PYTHON_FILES.
3875 (PYTHON_FILES): New variable.
3876 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
3877 (GUILE_FILES): New variable.
3878 (stamp-python, install-python, uninstall-python): Handle empty
3879 file list.
3880 (stamp-guile, install-guile, uninstall-guile): Ditto.
3881
ee7333ae
DE
38822014-07-26 Doug Evans <xdje42@gmail.com>
3883
3884 PR guile/17177
3885 * guile/lib/gdb.scm (pretty-printers): Export.
3886 (set-pretty-printers!): Export.
3887 * guile/lib/gdb/printing.scm (gdb module): Update.
3888 (prepend-pretty-printer!, append-pretty-printer!): Update.
3889 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
3890 (pretty_printer_list_var): Delete.
3891 (pretty_printer_list): New static global.
3892 (gdbscm_pretty_printers): New function.
3893 (gdbscm_set_pretty_printers_x): New function.
3894 (ppscm_find_pretty_printer_from_gdb): Update.
3895 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
3896 (gdbscm_initialize_pretty_printers): Update.
3897
74edf516
DE
38982014-07-26 Doug Evans <xdje42@gmail.com>
3899
3900 PR 17185
3901 * configure.ac: Add check for header gc/gc.h.
3902 Add check for function setenv.
3903 * configure: Regenerate.
3904 * config.in: Regenerate.
3905 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3906
d54398a7
MR
39072014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
3908
3909 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
3910 variation in gdbarch matching.
3911
ab16fce8
TT
39122014-07-25 Tom Tromey <tromey@redhat.com>
3913
3914 * exec.c (using_exec_ops): Remove.
3915 (exec_close_1): Update. Remove extraneous block, reindent.
3916 (add_target_sections): Use target_is_pushed.
3917
88056fbb
PA
39182014-07-25 Pedro Alves <palves@redhat.com>
3919
3920 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
3921 * monitor.c (monitor_create_inferior): Likewise.
3922 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
3923 * remote-sim.c (gdbsim_create_inferior): Likewise.
3924 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3925 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3926 * windows-nat.c (do_initial_windows_stuff): Likewise.
3927
70509625
PA
39282014-07-25 Pedro Alves <palves@redhat.com>
3929
3930 * NEWS: Mention signal passing and "signal" command changes.
3931 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
3932 comment.
3933 * breakpoint.c (until_break_command): Adjust clear_proceed_status
3934 call.
3935 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
3936 * infcmd.c (proceed_thread_callback, continue_1, step_once)
3937 (jump_command): Adjust clear_proceed_status call.
3938 (signal_command): Warn if other thread that are resumed have
3939 signals that will be delivered. Adjust clear_proceed_status call.
3940 (until_next_command, finish_command)
3941 (proceed_after_attach_callback, attach_command_post_wait)
3942 (attach_command): Adjust clear_proceed_status call.
3943 * infrun.c (proceed_after_vfork_done): Likewise.
3944 (proceed_after_attach_callback): Adjust comment.
3945 (clear_proceed_status_thread): Clear stop_signal if not in pass
3946 state.
3947 (clear_proceed_status_callback): Delete.
3948 (clear_proceed_status): New 'step' parameter. Only clear the
3949 proceed status of threads the command being prepared is about to
3950 resume.
3951 (proceed): If passed in an explicit signal, override stop_signal
3952 with it. Don't pass the last stop signal to the thread we're
3953 resuming.
3954 (init_wait_for_inferior): Adjust clear_proceed_status call.
3955 (switch_back_to_stepped_thread): Clear the signal if it should not
3956 be passed.
3957 * infrun.h (clear_proceed_status): New 'step' parameter.
3958 (user_visible_resume_ptid): Add comment.
3959 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
3960 signal is in pass state.
3961 * remote.c (append_pending_thread_resumptions): Likewise.
3962 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
3963
d8be2939
TT
39642014-07-25 Tom Tromey <tromey@redhat.com>
3965
3966 * target.h (target_stopped_data_address)
3967 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
3968 parentheses.
3969
7d0d9d2b
PL
39702014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
3971
3972 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
3973 comments.
3974 (avr_pointer_to_address): Likewise.
3975
e9e7f724
TT
39762014-07-24 Tom Tromey <tromey@redhat.com>
3977
3978 * monitor.c (compile_pattern): Update.
3979 * target.h (struct target_ops) <to_shortname, to_longname,
3980 to_doc>: Now const.
3981
1947513d
TT
39822014-07-24 Tom Tromey <tromey@redhat.com>
3983
3984 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
3985 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
3986 (add_info_alias, add_com): Make "doc" const.
3987 (print_doc_line): Make "str" const.
3988 (delete_cmd): Update.
3989 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
3990 (print_doc_line): Update.
3991 * cli/cli-script.c (document_command): Update.
3992 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3993 (add_com, add_info, add_info_alias): Update.
3994 * guile/scm-cmd.c (cmdscm_destroyer): Update.
3995 * python/py-cmd.c (cmdpy_destroyer): Update.
3996
64e61d29
TT
39972014-07-24 Tom Tromey <tromey@redhat.com>
3998
3999 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4000 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4001 (help_cmd_list): Constify.
4002 (lookup_cmd): Update.
4003 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4004 const.
4005 (help_cmd_list, apropos_cmd): Update.
4006 * cli/cli-script.c (show_user): Update.
4007 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4008 * cli/cli-setshow.h (cmd_show_list): Update.
4009 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4010 (cmd_show_list): Update.
4011 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4012 * python/py-cmd.c (cmdpy_destroyer): Update.
4013
429e55ea
TT
40142014-07-24 Tom Tromey <tromey@redhat.com>
4015
4016 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4017 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4018 const.
4019 * command.h (deprecate_cmd): Update.
4020 * maint.c (maintenance_do_deprecate): Add casts.
4021
64669f3b
TT
40222014-07-24 Tom Tromey <tromey@redhat.com>
4023
4024 * cli/cli-decode.c (help_cmd): Make parameter "const".
4025 * cli/cli-decode.h (help_cmd): Update.
4026
d3d3328b
TT
40272014-07-24 Tom Tromey <tromey@redhat.com>
4028
4029 * stack.c (up_silently_base, down_silently_base): Make argument
4030 const.
4031
414842dc
TT
40322014-07-24 Tom Tromey <tromey@redhat.com>
4033
4034 * solib.c (solib_add): Make "pattern" const.
4035 * solib.h (solib_add): Update.
4036
baa336ce
TT
40372014-07-24 Tom Tromey <tromey@redhat.com>
4038
4039 * remote.c (remote_serial_open, print_packet, putpkt)
4040 (putpkt_binary): Constify.
4041 * remote.h (putpkt): Update.
4042
5a19e2d0
TT
40432014-07-24 Tom Tromey <tromey@redhat.com>
4044
4045 * monitor.c (monitor_open): Make "args" const.
4046 * monitor.h (monitor_open): Update.
4047
fc4baa5e
TT
40482014-07-24 Tom Tromey <tromey@redhat.com>
4049
4050 * maint.c (match_bfd_flags): Make "string" const.
4051 (print_bfd_section_info): Remove casts.
4052 (print_objfile_section_info): Make "string" const.
4053
0d5f0dbe
TT
40542014-07-24 Tom Tromey <tromey@redhat.com>
4055
4056 * inf-child.c (inf_child_open_target): Make "arg" const.
4057 * inf-child.h (inf_child_open_target): Update.
4058
41c77899
TT
40592014-07-24 Tom Tromey <tromey@redhat.com>
4060
4061 * environ.c (unset_in_environ): Make "var" const.
4062 * environ.h (unset_in_environ): Update.
4063
93db0d79
TT
40642014-07-24 Tom Tromey <tromey@redhat.com>
4065
4066 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4067 Make "cmd" const.
4068 (scan_filename_with_cleanup): Likewise.
4069 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4070 Make arguments const.
4071 (restore_command): Update.
4072
36d6eb95
PA
40732014-07-24 Pedro Alves <palves@redhat.com>
4074
4075 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4076
8009206a
TT
40772014-07-24 Tom Tromey <tromey@redhat.com>
4078 Gary Benson <gbenson@redhat.com>
4079
4080 * nat/linux-ptrace.c (additional_flags): New global.
4081 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4082 additional_flags; don't check GDBSERVER.
4083 (linux_ptrace_set_additional_flags): New function.
4084 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4085 Declare.
4086 * linux-nat.c (_initialize_linux_nat): Call
4087 linux_ptrace_set_additional_flags.
4088
a7068b60
TT
40892014-07-24 Tom Tromey <tromey@redhat.com>
4090
4091 * make-target-delegates (munge_type, write_debugmethod): New
4092 functions.
4093 (debug_names): New global.
4094 ($TARGET_DEBUG_PRINTER): New global.
4095 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4096 name.
4097 Write debug methods. Generate init_debug_target.
4098 * target-debug.h: New file.
4099 * target-delegates.c: Rebuild.
4100 * target.c: Include target-debug.h.
4101 (debug_target): Hoist definition.
4102 (target_kill, target_get_section_table, target_memory_map)
4103 (target_flash_erase, target_flash_done, target_detach)
4104 (target_disconnect, target_wait, target_resume)
4105 (target_pass_signals, target_program_signals, target_follow_fork)
4106 (target_mourn_inferior, target_search_memory)
4107 (target_thread_address_space, target_close)
4108 (target_find_new_threads, target_core_of_thread)
4109 (target_verify_memory, target_insert_mask_watchpoint)
4110 (target_remove_mask_watchpoint): Remove targetdebug code.
4111 (debug_to_post_attach, debug_to_prepare_to_store)
4112 (debug_to_files_info, debug_to_insert_breakpoint)
4113 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4114 (debug_to_region_ok_for_hw_watchpoint)
4115 (debug_to_can_accel_watchpoint_condition)
4116 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4117 (debug_to_watchpoint_addr_within_range)
4118 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4119 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4120 (debug_to_terminal_init, debug_to_terminal_inferior)
4121 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4122 (debug_to_terminal_save_ours, debug_to_terminal_info)
4123 (debug_to_load, debug_to_post_startup_inferior)
4124 (debug_to_insert_fork_catchpoint)
4125 (debug_to_remove_fork_catchpoint)
4126 (debug_to_insert_vfork_catchpoint)
4127 (debug_to_remove_vfork_catchpoint)
4128 (debug_to_insert_exec_catchpoint)
4129 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4130 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4131 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4132 (setup_target_debug): Call init_debug_target.
4133 * target.h (TARGET_DEBUG_PRINTER): New macro.
4134 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4135 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4136
2c51604d
GB
41372014-07-24 Gary Benson <gbenson@redhat.com>
4138
4139 * exceptions.h (throw_vfatal): Renamed to...
4140 (throw_vquit): New declaration.
4141 (throw_quit): Likewise.
4142 * exceptions.c (throw_vfatal): Renamed to...
4143 (throw_vquit): New function.
4144 (throw_quit): Likewise.
4145 (throw_error): Call throw_verror rather than throw_it.
4146 * utils.h (vfatal): Removed.
4147 (fatal): Likewise.
4148 * utils.c (vfatal): Removed.
4149 (fatal): Likewise.
4150 (internal_verror): Replaced call to fatal with call to throw_quit.
4151 (quit): Replaced calls to fatal with calls to throw_quit.
4152
34211963
ME
41532014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4154
4155 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4156 target_read_code.
4157
a52b4d3e
ME
41582014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4159
4160 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4161 less than zero in conditional expression.
4162
a8bdc56b
TT
41632014-07-23 Tom Tromey <tromey@redhat.com>
4164
4165 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4166 ($INTRO_PART): Don't match whitespace.
4167 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4168 argument matching.
4169 ($METHOD): Add $METHOD_TRAILER.
4170 (trim): Rewrite.
4171 (scan_target_h): New sub.
4172 Change main loop not to collect state.
4173 * target-delegates.c: Rebuild.
4174
91b52240
GB
41752014-07-23 Gary Benson <gbenson@redhat.com>
4176
4177 * cp-support.c (gdb_demangle): Fix build on systems without
4178 sigaltstack.
4179
45326f6f
JK
41802014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4181
4182 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4183 for reference entry value target data value.
4184
e214cf6c
JK
41852014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4186
4187 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4188 value_available_contents_eq.
4189
bddbbedd
PA
41902014-07-22 Pedro Alves <palves@redhat.com>
4191
4192 * value.c (allocate_optimized_out_value): Don't mark value as
4193 non-lazy.
4194
45c71484
JW
41952014-07-22 Jiong Wang <jiong.wang@arm.com>
4196
4197 * MAINTAINERS (Write After Approval): Update my email address.
4198
9597b22a
DE
41992014-07-20 Doug Evans <dje@google.com>
4200
4201 PR server/17147
4202 * remote.c (putpkt_binary): Add text to error message.
4203
91101fe5
YQ
42042014-07-20 Yao Qi <yao@codesourcery.com>
4205
4206 * eval.c: Remove "Chill" from comments.
4207 * gdbtypes.h: Likewise.
4208 * symtab.h: Likewise.
4209
c9402c95
YQ
42102014-07-20 Yao Qi <yao@codesourcery.com>
4211
4212 * std-operator.def: Update comments to TERNOP_SLICE.
4213
ae8fddda
YQ
42142014-07-20 Yao Qi <yao@codesourcery.com>
4215
4216 * std-operator.def: Remove BINOP_RANGE.
4217 * breakpoint.c (watchpoint_exp_is_const): Update.
4218 * expprint.c (dump_subexp_body_standard): Likewise.
4219 * eval.c (init_array_element): Remove dead code.
4220 (evaluate_subexp_standard): Likewise.
4221
9c816640
YQ
42222014-07-20 Yao Qi <yao@codesourcery.com>
4223
4224 * std-operator.def: Remove BINOP_IN.
4225 * breakpoint.c (watchpoint_exp_is_const): Update.
4226 * eval.c (evaluate_subexp_standard): Likewise.
4227 * expprint.c (dump_subexp_body_standard): Likewise.
4228
164224e9
ME
42292014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4230
4231 * microblaze-tdep.c (microblaze_register_names): Add
4232 the rshr and rslr register names.
4233 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4234 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4235 Use of tdesc_numbered_register. Use of
4236 microblaze_register_g_packet_guesses. Use of
4237 tdesc_use_registers. Use of set_gdbarch_register_type.
4238 (microblaze_register_g_packet_guesses): New.
4239 * microblaze-tdep.h (microblaze_reg_num): Add
4240 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4241 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4242 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4243 * features/microblaze-core.xml: New file.
4244 * features/microblaze-stack-protect.xml: New file.
4245 * features/microblaze-with-stack-protect.c: New file.
4246 * features/microblaze-with-stack-protect.xml: New file.
4247 * features/microblaze.xml: New file.
4248 * features/microblaze.c: New file.
4249 * features/Makefile (microblaze-with-stack-protect): Add
4250 microblaze-with-stack-protect microblaze and microblaze-expedite.
4251 * regformats/microblaze-with-stack-protect.dat: New file.
4252 * regformats/microblaze.dat: New file.
4253 * doc/gdb.texinfo (MicroBlaze Features): Added.
4254
e8b2341c
TT
42552014-07-18 Tom Tromey <tromey@redhat.com>
4256
4257 * exec.c (exec_ops): Now static.
4258 * exec.h (exec_ops): Don't declare.
4259
44e89118
TT
42602014-07-18 Tom Tromey <tromey@redhat.com>
4261
4262 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4263 to find_target_beneath.
4264 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4265 find_target_beneath.
4266 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4267
b0ed115f
TT
42682014-07-18 Tom Tromey <tromey@redhat.com>
4269
4270 PR gdb/17130:
4271 * utils.c (quit): Use target_supports_terminal_ours.
4272 * target.h (target_supports_terminal_ours): Declare.
4273 * target.c (target_supports_delete_record): Don't check
4274 to_delete_record against NULL.
4275 (target_supports_terminal_ours): New function.
4276
e75fdfca
TT
42772014-07-18 Tom Tromey <tromey@redhat.com>
4278
4279 PR gdb/17130:
4280 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4281 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4282 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4283 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4284 * windows-nat.c (windows_xfer_partial): Always delegate.
4285 * record-btrace.c (record_btrace_xfer_partial): Simplify
4286 delegation.
4287 (record_btrace_fetch_registers, record_btrace_store_registers)
4288 (record_btrace_prepare_to_store, record_btrace_resume)
4289 (record_btrace_wait, record_btrace_find_new_threads)
4290 (record_btrace_thread_alive): Likewise.
4291 * procfs.c (procfs_xfer_partial): Always delegate.
4292 * corelow.c (core_xfer_partial): Always delegate.
4293 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4294
83814951
TT
42952014-07-18 Tom Tromey <tromey@redhat.com>
4296
4297 * exec.c (exec_make_note_section): Move earlier.
4298
b8b8facf
DE
42992014-07-17 Doug Evans <dje@google.com>
4300
74b49205 4301 PR gdb/17170
b8b8facf
DE
4302 * maint.c (count_symtabs_and_blocks): Handle NULL
4303 current_program_space.
4304 (report_command_stats): Check global enabled flag in addition to
4305 recorded enabled flag.
4306 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4307
69ff6be5
PA
43082014-07-16 Pedro Alves <palves@redhat.com>
4309
4310 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4311
252db1b5
TT
43122014-07-16 Tom Tromey <tromey@redhat.com>
4313
4314 * target.h (struct target_ops) <to_delete_record>: Reformat
4315 comment.
4316
a432721e
TT
43172014-07-16 Tom Tromey <tromey@redhat.com>
4318
4319 * target-delegates.c: Rebuild.
4320
487d9753
PL
43212014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4322
4323 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4324 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4325 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4326 (avr_pointer_to_address): Likewise.
4327 (avr_address_class_type_flags): New function.
4328 (avr_address_class_type_flags_to_name): Likewise.
4329 (avr_address_class_name_to_type_flags): Likewise.
4330 (avr_gdbarch_init): Set address_class_type_flags,
4331 address_class_type_flags_to_name and
4332 address_class_name_to_type_flags.
4333
57745c90
PA
43342014-07-15 Pedro Alves <palves@redhat.com>
4335
4336 * linux-nat.c (kill_callback): Save errno and work with saved
4337 copy.
4338
2d40be18
SM
43392014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4340
4341 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4342
572f6555
EBM
43432014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4344
4345 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4346 breakpoint support correctly.
4347
cc1c52ad
PA
43482014-07-14 Pedro Alves <palves@redhat.com>
4349
4350 * utils.c (prompt_for_continue): Call target_terminal_ours.
4351
1e973570
PA
43522014-07-14 Pedro Alves <palves@redhat.com>
4353
4354 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4355 catch_errors. Don't re-enable stdin or notify observers where,
4356 and rethrow error.
4357 (fetch_inferior_event_wrapper): Delete.
4358
93d6eb10
PA
43592014-07-14 Pedro Alves <palves@redhat.com>
4360
4361 PR gdb/17072
4362 * top.c: Include "inf-loop.h".
4363 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4364 field.
4365 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4366 was async before.
4367 (gdb_readline_wrapper): Store whether the target is async, and
4368 make it sync.
4369
0017922d
PA
43702014-07-14 Pedro Alves <palves@redhat.com>
4371
4372 PR gdb/17072
4373 * top.c (gdb_readline_wrapper_line): Tweak comment.
4374 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4375 the input handler callback.
4376
94696ad3
PA
43772014-07-14 Pedro Alves <palves@redhat.com>
4378
4379 PR gdb/17072
4380 * main.c: Include event-top.h.
4381 (handle_command_errors): New function.
4382 (catch_command_errors, catch_command_errors_const): Use it.
4383
9d1e69a2
PA
43842014-07-14 Pedro Alves <palves@redhat.com>
4385
4386 * exceptions.c (catch_command_errors, catch_command_errors_const):
4387 Moved to main.c.
4388 * exceptions.h (catch_command_errors_ftype)
4389 (catch_command_errors_const_ftype): Moved to main.c.
4390 (catch_command_errors, catch_command_errors_const): Delete
4391 declarations.
4392 * main.c (catch_command_errors_ftype)
4393 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4394 (catch_command_errors, catch_command_errors_const)): Moved here
4395 from exceptions.c and make static.
4396
feefc97b
PA
43972014-07-14 Pedro Alves <palves@redhat.com>
4398
4399 * exceptions.c (print_any_exception): Delete.
4400 (catch_exceptions_with_msg): Use exception_print instead of
4401 print_any_exception.
4402 (catch_errors): Use exception_fprintf instead of
4403 print_any_exception.
4404 (catch_command_errors, catch_command_errors_const): Use
4405 exception_print instead of print_any_exception.
4406
c933f875
PA
44072014-07-14 Pedro Alves <palves@redhat.com>
4408
4409 * infcall.c (run_inferior_call): Set 'sync_execution' while
4410 running the inferior call.
4411
feb6f816
PA
44122014-07-14 Pedro Alves <palves@redhat.com>
4413
4414 * value.c (value_contents_equal): Delete function.
4415 * value.h (value_contents_equal): Delete declaration.
4416
d98b7a16
TT
44172014-07-14 Tom Tromey <tromey@redhat.com>
4418
4419 PR exp/17106:
4420 * gdbtypes.c (is_dynamic_type_internal): New function, from
4421 is_dynamic_type.
4422 (is_dynamic_type): Rewrite.
4423 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4424 (resolve_dynamic_struct): Likewise.
4425 (resolve_dynamic_type_internal): New function, from
4426 resolve_dynamic_type.
4427 (resolve_dynamic_type): Rewrite.
4428
548740d6
TT
44292014-07-14 Tom Tromey <tromey@redhat.com>
4430
4431 * target.c (target_require_runnable): Also check record_stratum.
4432 Update comment.
4433
808f7ab1
YQ
44342014-07-11 Yao Qi <yao@codesourcery.com>
4435
4436 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4437 thumb_instruction_restores_sp return true.
4438
540314bd
YQ
44392014-07-11 Yao Qi <yao@codesourcery.com>
4440
4441 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4442 (thumb_in_function_epilogue_p): Call
4443 thumb_instruction_restores_sp.
4444
1db01f22
YQ
44452014-07-11 Yao Qi <yao@codesourcery.com>
4446
4447 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4448 'add sp, #imm'.
4449 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4450
3116063b
GB
44512014-07-11 Gary Benson <gbenson@redhat.com>
4452
4453 * amd64-linux-nat.c (gdbcore.h): Remove include.
4454 (regset.h): Likewise.
4455 (nat/linux-btrace.h): Likewise.
4456 (btrace.h): Likewise.
4457 (gdb_assert.h): Likewise.
4458 (string.h): Likewise.
4459 (sys/uio.h): Likewise.
4460 (sys/debugreg.h): Likewise.
4461 (sys/syscall.h): Likewise.
4462 (sys/procfs.h): Likewise.
4463 (sys/user.h): Likewise.
4464 (asm/ptrace.h): Likewise.
4465 (i386-nat.h): Likewise.
4466 * i386-linux-nat.c (i386-nat.h): Likewise.
4467 (regset.h): Likewise.
4468 (target.h): Likewise.
4469 (linux-nat.h): Likewise.
4470 (nat/linux-btrace.h): Likewise.
4471 (btrace.h): Likewise.
4472 (gdb_assert.h): Likewise.
4473 (string.h): Likewise.
4474 (sys/uio.h): Likewise.
4475 (sys/user.h): Likewise.
4476 (sys/procfs.h): Likewise.
4477 (sys/reg.h): Likewise.
4478 (sys/debugreg.h): Likewise.
4479 (ORIG_EAX): Remove definition.
4480
040baaf6
GB
44812014-07-11 Gary Benson <gbenson@redhat.com>
4482
4483 * i386-linux-nat.h: New file.
4484 * x86-linux-nat.h: Likewise.
4485 * x86-linux-nat.c: Likewise.
4486 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4487 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4488 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4489 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4490 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4491 (PTRACE_SETREGSET): Likewise.
4492 (arch_lwp_info): Now in x86-linux-nat.c.
4493 (have_ptrace_getregset): Now in x86-linux-nat.h.
4494 (x86_linux_dr_get): Now in x86-linux-nat.c.
4495 (x86_linux_dr_set): Likewise.
4496 (x86_linux_dr_get_addr): Likewise.
4497 (x86_linux_dr_get_control): Likewise.
4498 (x86_linux_dr_get_status): Likewise.
4499 (update_debug_registers_callback): Likewise.
4500 (x86_linux_dr_set_control): Likewise.
4501 (x86_linux_dr_set_addr): Likewise.
4502 (x86_linux_prepare_to_resume): Likewise.
4503 (x86_linux_new_thread): Likewise.
4504 (x86_linux_new_fork): Likewise.
4505 (x86_linux_get_thread_area): Likewise.
4506 (super_post_startup_inferior): Likewise.
4507 (x86_linux_child_post_startup_inferior): Likewise.
4508 (AMD64_LINUX_USER64_CS): Likewise.
4509 (AMD64_LINUX_X32_DS): Likewise.
4510 (x86_linux_read_description): Likewise.
4511 (x86_linux_enable_btrace): Likewise.
4512 (x86_linux_disable_btrace): Likewise.
4513 (x86_linux_teardown_btrace): Likewise.
4514 (x86_linux_read_btrace): Likewise.
4515 (x86_linux_create_target): Likewise.
4516 (x86_linux_add_target): Likewise.
4517 * i386-linux-nat.c (x86-linux-nat.h): New include.
4518 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4519 (PTRACE_SETREGSET): Likewise.
4520 (arch_lwp_info): Now in x86-linux-nat.c.
4521 (have_ptrace_getregset): Now in x86-linux-nat.h.
4522 (x86_linux_dr_get): Now in x86-linux-nat.c.
4523 (x86_linux_dr_set): Likewise.
4524 (x86_linux_dr_get_addr): Likewise.
4525 (x86_linux_dr_get_control): Likewise.
4526 (x86_linux_dr_get_status): Likewise.
4527 (update_debug_registers_callback): Likewise.
4528 (x86_linux_dr_set_control): Likewise.
4529 (x86_linux_dr_set_addr): Likewise.
4530 (x86_linux_prepare_to_resume): Likewise.
4531 (x86_linux_new_thread): Likewise.
4532 (x86_linux_new_fork): Likewise.
4533 (x86_linux_get_thread_area): Likewise.
4534 (super_post_startup_inferior): Likewise.
4535 (x86_linux_child_post_startup_inferior): Likewise.
4536 (AMD64_LINUX_USER64_CS): Likewise.
4537 (AMD64_LINUX_X32_DS): Likewise.
4538 (x86_linux_read_description): Likewise.
4539 (x86_linux_enable_btrace): Likewise.
4540 (x86_linux_disable_btrace): Likewise.
4541 (x86_linux_teardown_btrace): Likewise.
4542 (x86_linux_read_btrace): Likewise.
4543 (x86_linux_create_target): Likewise.
4544 (x86_linux_add_target): Likewise.
4545
1aa7e42c
GB
45462014-07-11 Gary Benson <gbenson@redhat.com>
4547
4548 * amd64-linux-nat.c: Comment and whitespace changes.
4549 * i386-linux-nat.c: Comment and whitespace changes.
4550
c1e246a0
GB
45512014-07-11 Gary Benson <gbenson@redhat.com>
4552
4553 * amd64-linux-nat.c (x86_linux_create_target): New function.
4554 (x86_linux_add_target): Likewise.
4555 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4556 * i386-linux-nat.c (x86_linux_create_target): New function.
4557 (x86_linux_add_target): Likewise.
4558 (_initialize_i386_linux_nat): Delegate to the above new functions.
4559
8c420b8d
GB
45602014-07-11 Gary Benson <gbenson@redhat.com>
4561
4562 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4563 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4564 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4565 (ps_get_thread_area): Delegate to the above.
4566
cb1da100
GB
45672014-07-11 Gary Benson <gbenson@redhat.com>
4568
4569 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4570 x86_linux_read_description. All uses updated. amd64-specific
4571 code conditionalized. Conditionalized i386-specific code added.
4572 Redundant cast removed.
4573 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4574 x86_linux_read_description. All uses updated. i386-specific
4575 code conditionalized. Conditionalized amd64-specific code added.
4576 One sizeof replaced with the actual type it is describing.
4577
2acf3cd0
GB
45782014-07-11 Gary Benson <gbenson@redhat.com>
4579
4580 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4581 x86_linux_dr_get. All uses updated.
4582 (amd64_linux_dr_set): Renamed to
4583 x86_linux_dr_set. All uses updated.
4584 (amd64_linux_dr_get_addr): Renamed to
4585 x86_linux_dr_get_addr. All uses updated.
4586 (amd64_linux_dr_get_control): Renamed to
4587 x86_linux_dr_get_control. All uses updated.
4588 (amd64_linux_dr_get_status): Renamed to
4589 x86_linux_dr_get_status. All uses updated.
4590 (amd64_linux_dr_set_control): Renamed to
4591 x86_linux_dr_set_control. All uses updated.
4592 (amd64_linux_dr_set_addr): Renamed to
4593 x86_linux_dr_set_addr. All uses updated.
4594 (amd64_linux_prepare_to_resume): Renamed to
4595 x86_linux_prepare_to_resume. All uses updated.
4596 (amd64_linux_new_thread): Renamed to
4597 x86_linux_new_thread. All uses updated.
4598 (amd64_linux_new_fork): Renamed to
4599 x86_linux_new_fork. All uses updated.
4600 (amd64_linux_child_post_startup_inferior): Renamed to
4601 x86_linux_child_post_startup_inferior. All uses updated.
4602 (amd64_linux_enable_btrace): Renamed to
4603 x86_linux_enable_btrace. All uses updated.
4604 (amd64_linux_disable_btrace): Renamed to
4605 x86_linux_disable_btrace. All uses updated.
4606 (amd64_linux_teardown_btrace): Renamed to
4607 x86_linux_teardown_btrace. All uses updated.
4608 (amd64_linux_read_btrace): Renamed to
4609 x86_linux_read_btrace. All uses updated.
4610 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4611 x86_linux_dr_get. All uses updated.
4612 (i386_linux_dr_set): Renamed to
4613 x86_linux_dr_set. All uses updated.
4614 (i386_linux_dr_get_addr): Renamed to
4615 x86_linux_dr_get_addr. All uses updated.
4616 (i386_linux_dr_get_control): Renamed to
4617 x86_linux_dr_get_control. All uses updated.
4618 (i386_linux_dr_get_status): Renamed to
4619 x86_linux_dr_get_status. All uses updated.
4620 (i386_linux_dr_set_control): Renamed to
4621 x86_linux_dr_set_control. All uses updated.
4622 (i386_linux_dr_set_addr): Renamed to
4623 x86_linux_dr_set_addr. All uses updated.
4624 (i386_linux_prepare_to_resume): Renamed to
4625 x86_linux_prepare_to_resume. All uses updated.
4626 (i386_linux_new_thread): Renamed to
4627 x86_linux_new_thread. All uses updated.
4628 (i386_linux_new_fork): Renamed to
4629 x86_linux_new_fork. All uses updated.
4630 (i386_linux_child_post_startup_inferior): Renamed to
4631 x86_linux_child_post_startup_inferior. All uses updated.
4632 (i386_linux_enable_btrace): Renamed to
4633 x86_linux_enable_btrace. All uses updated.
4634 (i386_linux_disable_btrace): Renamed to
4635 x86_linux_disable_btrace. All uses updated.
4636 (i386_linux_teardown_btrace): Renamed to
4637 x86_linux_teardown_btrace. All uses updated.
4638 (i386_linux_read_btrace): Renamed to
4639 x86_linux_read_btrace. All uses updated.
4640
b9c1d481
AS
46412014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4642
4643 * remote.c (extended_remote_post_attach): New function.
4644 (init_extended_remote_ops): Install it as to_post_attach method.
4645
7180e04a
PA
46462014-07-09 Pedro Alves <palves@redhat.com>
4647
4648 * infcmd.c (attach_command_post_wait): Don't call
4649 target_terminal_inferior here.
4650 (attach_command): Call it here instead.
4651
9a9a7608
AB
46522014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4653
4654 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4655 field.
4656 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4657 from varobj.c, with additional checks.
4658 (c_varobj_ops): Fill in is_path_expr_parent field.
4659 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4660 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4661 field.
4662 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4663 ops method.
4664 (varobj_default_is_path_expr_parent): New function.
4665 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4666 (varobj_default_is_path_expr_parent): Declare new function.
4667
1f267ae3
MM
46682014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4669
4670 * infcmd.c (finish_backward): Turn internal error into normal error.
4671
b2ee242b
PA
46722014-07-07 Pedro Alves <palves@redhat.com>
4673
8a869bca 4674 PR gdb/17096
b2ee242b
PA
4675 * remote.c (async_handle_remote_sigint)
4676 (async_handle_remote_sigint_twice): Call
4677 gdb_call_async_signal_handler instead of
4678 mark_async_signal_handler.
4679
38e229b2
TT
46802014-07-07 Tom Tromey <tromey@redhat.com>
4681
4682 * target-delegates.c: Rebuild.
4683 * target.c (target_info_record): Remove.
4684 * record.c (info_record_command): Unconditionally call
4685 to_info_record.
4686 * target.h (struct target_ops) <to_info_record>: Use
4687 TARGET_DEFAULT_IGNORE.
4688 (target_info_record): Remove.
4689
f0f9ff95
TT
46902014-07-07 Tom Tromey <tromey@redhat.com>
4691
4692 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4693 TARGET_DEFAULT_NORETURN.
4694 * target.c (generic_tls_error): New function.
4695 (target_translate_tls_address): Don't search target stack.
4696 * target-delegates.c: Rebuild.
4697 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4698 stack.
4699 * linux-thread-db.c (thread_db_get_thread_local_address):
4700 Unconditionally call beneath target.
4701
4a5be5ee
MK
47022014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4703
4704 * cli/cli-logging.c (pop_output_files): Assign targerr to
4705 gdb_stdtargerr.
4706
92c3b204
AB
47072014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4708
4709 * MAINTAINERS (Write After Approval): Update my email address.
4710
9b11e3a7
GB
47112014-07-02 Gary Benson <gbenson@redhat.com>
4712
4713 * proc-service.c (ps_xfer_memory): Update comment.
4714 (ps_pstop): Remove unused function.
4715 (ps_pcontinue): Likewise.
4716 (ps_lstop): Likewise.
4717 (ps_lcontinue): Likewise.
4718 (ps_lgetxregsize): Likewise.
4719 (ps_lgetxregs): Likewise.
4720 (ps_lsetxregs): Likewise.
4721 (ps_plog): Likewise.
4722 (ps_ptread): Likewise.
4723 (ps_ptwrite): Likewise.
4724
cf363f18
MW
47252014-07-01 Mark Wielaard <mjw@redhat.com>
4726
4727 * dwarf2read.c (add_array_cv_type): New function.
4728 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4729 (read_tag_volatile_type): Likewise.
4730
82ae6c8d
TT
47312014-07-01 Tom Tromey <tromey@redhat.com>
4732
4733 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4734 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4735 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4736 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4737 * command.h (cmd_cfunc_ftype): Move earlier.
4738 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4739 (add_com, add_info): Use cmd_cfunc_ftype.
4740
96142726
TT
47412014-06-30 Tom Tromey <tromey@redhat.com>
4742
4743 * symtab.c (operator_chars): Make parameters and return type
4744 const.
4745 (file_matches): Make "files" const.
4746 (struct search_symbols_data) <files>: Now const.
4747 (search_symbols): Make "regexp" and "files" parameters const.
4748 Update.
4749 (symtab_symbol_info): Remove cast.
4750 (rbreak_command): Update.
4751 * symtab.h (search_symbols): Update.
4752
b67a2c6f
YQ
47532014-06-27 Yao Qi <yao@codesourcery.com>
4754
4755 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4756 Change parameter type to 'struct thread_info *'. Caller
4757 updated.
4758 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4759 Update declaration.
4760 * dummy-frame.c (struct dummy_frame_id): New.
4761 (dummy_frame_id_eq): New function.
4762 (struct dummy_frame) <id>: Change its type to 'struct
4763 dummy_frame_id'.
4764 (dummy_frame_push): Add parameter ptid and save it in
4765 dummy_frame_id.
4766 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
4767 inferior_ptid.
4768 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
4769 to inferior_ptid.
4770 (lookup_dummy_frame): Change parameter type to 'struct
4771 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
4772 instead of frame_id_eq.
4773 (dummy_frame_pop): Add parameter ptid. Callers updated.
4774 Update comments. Compose dummy_frame_id and pass it to
4775 lookup_dummy_frame.
4776 (dummy_frame_discard): Add parameter ptid.
4777 (dummy_frame_sniffer): Compose dummy_frame_id and call
4778 dummy_frame_id_eq instead of frame_id_eq.
4779 (fprint_dummy_frames): Print ptid.
4780 * dummy-frame.h: Remove comments.
4781 (dummy_frame_push): Add ptid in declaration.
4782 (dummy_frame_pop, dummy_frame_discard): Likewise.
4783
5b10184c
TT
47842014-06-26 Tom Tromey <tromey@redhat.com>
4785
4786 * cli/cli-cmds.c (error_no_arg): Make "why" const.
4787 * command.h (error_no_arg): Update.
4788
06900326
TT
47892014-06-26 Tom Tromey <tromey@redhat.com>
4790
4791 * cli/cli-setshow.c (do_set_command): Make "arg" const.
4792 (do_show_command): Make "arg" const.
4793 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
4794
c2bcbb1d
TT
47952014-06-26 Tom Tromey <tromey@redhat.com>
4796
4797 * record-full.c (record_full_get_bookmark): Make "args" const.
4798 (record_full_goto_bookmark): Make "raw_bookmark" const.
4799 * record.c (record_goto): New function.
4800 (cmd_record_goto): Use it. Now static.
4801 * record.h (record_goto): Declare.
4802 (cmd_record_goto): Remove declaration.
4803 * target-delegates.c: Rebuild.
4804 * target.h (struct target_ops) <to_get_bookmark,
4805 to_goto_bookmark>: Make parameter const.
4806
9cbe5fff
TT
48072014-06-26 Tom Tromey <tromey@redhat.com>
4808
4809 * defs.h (generic_load): Update.
4810 * m32r-rom.c (m32r_load_gen): Make "filename" const.
4811 * monitor.c (monitor_load): Make "args" const.
4812 * remote-m32r-sdi.c (m32r_load): Make "args" const.
4813 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
4814 const.
4815 (mips_load): Make "file" const.
4816 * remote-sim.c (gdbsim_load): Make "args" const.
4817 * remote.c (remote_load): Make "name" const.
4818 * symfile.c (generic_load): Make "args" const.
4819 * target-delegates.c: Rebuild.
4820 * target.c (target_load): Make "arg" const.
4821 (debug_to_load): Make "args" const.
4822 * target.h (struct target_ops) <to_load>: Make parameter const.
4823 (target_load): Update.
4824
34a68019
TT
48252014-06-26 Tom Tromey <tromey@redhat.com>
4826
4827 PR symtab/16902:
4828 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
4829 (dwarf2_physname, read_partial_die)
4830 (guess_partial_die_structure_name, fixup_partial_die)
4831 (guess_full_die_structure_name, anonymous_struct_prefix)
4832 (dwarf2_name): Use per-BFD obstack.
4833
efc889c1
YQ
48342014-06-26 Yao Qi <yao@codesourcery.com>
4835
4836 * dummy-frame.c (dummy_frame_sniffer): Move local variables
4837 dummyframe and this_id into inner block below.
4838
4395285e
YQ
48392014-06-26 Yao Qi <yao@codesourcery.com>
4840
4841 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
4842 with "signal_pass[0]" in the initialization of signal_pass.
4843
aef92902
MM
48442014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4845
4846 * record-btrace.c (record_btrace_generating_corefile)
4847 (record_btrace_prepare_to_generate_core)
4848 (record_btrace_done_generating_core): New.
4849 (record_btrace_xfer_partial, record_btrace_fetch_registers)
4850 (record_btrace_store_registers, record_btrace_prepare_to_store):
4851 Forward request when generating a core file.
4852 (record_btrace_open): Set record_btrace_generating_corefile to zero.
4853 (init_record_btrace_ops): Set to_prepare_to_generate_core and
4854 to_done_generating_core.
4855
5fff78c4
MM
48562014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4857
4858 * target.h (target_ops) <to_prepare_to_generate_core>
4859 <to_done_generating_core>: New.
4860 (target_prepare_to_generate_core, target_done_generating_core): New.
4861 * target.c (target_prepare_to_generate_core)
4862 (target_done_generating_core): New.
4863 * target-delegates.c: Regenerate.
4864 * gcore.c: (write_gcore_file): Rename to ...
4865 (write_gcore_file_1): ...this.
4866 (write_gcore_file): Call target_prepare_to_generate_core
4867 and target_done_generating_core.
4868
1d1f1ccb
MM
48692014-06-25 Markus Metzger <markus.t.metzger@intel.com>
4870
4871 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
4872 * gcore.c (write_gcore_file): Free memory returned from
4873 make_corefile_notes.
4874 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
4875 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
4876
3343ef86
YQ
48772014-06-24 Yao Qi <yao@codesourcery.com>
4878
4879 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
4880 (arm_linux_init_abi): Set skip_trampoline_code with
4881 gdbarch_skip_trampoline_code instead of
4882 find_solib_trampoline_target.
4883
18d18ac8
YQ
48842014-06-24 Yao Qi <yao@codesourcery.com>
4885
4886 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
4887 arm_skip_bx_reg returns non-zero.
4888
80d8d390
YQ
48892014-06-24 Yao Qi <yao@codesourcery.com>
4890
4891 * arm-tdep.c (arm_skip_bx_reg): New function.
4892 (arm_skip_stub): Call arm_skip_bx_reg.
4893
6a18a01c
DB
48942014-06-23 Don Breazeal <donb@codesourcery.com>
4895
4896 * MAINTAINERS: Add myself as write-after-approval maintainer.
4897
8e9db26e
PA
48982014-06-23 Pedro Alves <palves@redhat.com>
4899
4900 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
4901 DR_CONTROL before setting DR0..DR3.
4902 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
4903 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
4904 bits of DR_CONTROL related to the debug register slot being
4905 disabled. If all slots are vacant, clear local slowdown as well,
4906 and assert DR_CONTROL is 0.
4907
70afc5b7
SC
49082014-06-23 Siva Chandra Reddy <sivachandra@google.com>
4909
4910 * python/lib/gdb/command/xmethods.py
4911 (get_method_matchers_in_loci): Lookup xmethod matchers in the
4912 current progspace only if the string "progspace" matches LOCUS_RE.
4913
840ed64d
JK
49142014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4915
4916 Fix --with-system-readline with readline-6.3 patch 5.
4917 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
4918 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
4919 types.
4920
26f2dc30
TT
49212014-06-20 Tom Tromey <tromey@redhat.com>
4922
4923 * dwarf2read.c (dw2_get_real_path): Use correct type in
4924 OBSTACK_CALLOC.
4925 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
4926
125f8a3d
GB
49272014-06-20 Gary Benson <gbenson@redhat.com>
4928
4929 * common/gdb_thread_db.h: Moved to nat. All includes updated.
4930 * common/glibc_thread_db.h: Likewise.
4931 * common/i386-cpuid.h: Likewise.
4932 * common/i386-gcc-cpuid.h: Likewise.
4933 * common/linux-btrace.h: Likewise.
4934 * common/linux-osdata.h: Likewise.
4935 * common/linux-procfs.h: Likewise.
4936 * common/linux-ptrace.h: Likewise.
4937 * common/mips-linux-watch.h: Likewise.
4938 * common/linux-btrace.c: Moved to nat.
4939 * common/linux-osdata.c: Likewise.
4940 * common/linux-procfs.c: Likewise.
4941 * common/linux-ptrace.c: Likewise.
4942 * common/mips-linux-watch.c: Likewise.
4943 * nat/gdb_thread_db.h: Moved from common.
4944 * nat/glibc_thread_db.h: Likewise.
4945 * nat/i386-cpuid.h: Likewise.
4946 * nat/i386-gcc-cpuid.h: Likewise.
4947 * nat/linux-btrace.c: Likewise.
4948 * nat/linux-btrace.h: Likewise.
4949 * nat/linux-osdata.c: Likewise.
4950 * nat/linux-osdata.h: Likewise.
4951 * nat/linux-procfs.c: Likewise.
4952 * nat/linux-procfs.h: Likewise.
4953 * nat/linux-ptrace.c: Likewise.
4954 * nat/linux-ptrace.h: Likewise.
4955 * nat/mips-linux-watch.c: Likewise.
4956 * nat/mips-linux-watch.h: Likewise.
4957 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
4958 (object file files): Reordered.
4959 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
4960 of glibc_thread_db.h.
4961
42995dbd
GB
49622014-06-20 Gary Benson <gbenson@redhat.com>
4963
4964 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
4965 (i386_dr_low_type): Moved to nat/i386-dregs.h.
4966 (i386_dr_low): Likewise.
4967 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
4968 (i386_dr_low_set_addr): Likewise.
4969 (i386_dr_low_get_addr): Likewise.
4970 (i386_dr_low_can_set_control): Likewise.
4971 (i386_dr_low_set_control): Likewise.
4972 (i386_dr_low_get_control): Likewise.
4973 (i386_dr_low_get_status): Likewise.
4974 (i386_get_debug_register_length): Likewise.
4975 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
4976 (i386_dr_low): Likewise.
4977 * nat/i386-dregs.c (i386-low.h): Remove include.
4978 (i386-nat.h): Likewise.
4979 (nat/i386-dregs.h): New include.
4980 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
4981 (i386_dr_low_set_addr): Likewise.
4982 (i386_dr_low_get_addr): Likewise.
4983 (i386_dr_low_can_set_control): Likewise.
4984 (i386_dr_low_set_control): Likewise.
4985 (i386_dr_low_get_control): Likewise.
4986 (i386_dr_low_get_status): Likewise.
4987 (i386_get_debug_register_length): Likewise.
4988 (debug_hw_points): Likewise.
4989
3ed9baed
IB
49902014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
4991
4992 * Makefile.in (SFILES): Add d-exp.y.
4993 (YYFILES): Add d-exp.c.
4994 (YYOBJ): Add d-exp.o.
4995 (local-maintainer-clean): Delete d-exp.c.
4996 * d-exp.y: New file.
4997 * d-lang.h (d_parse): New declaration.
4998 (d_error): New declaration.
4999 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5000 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5001 PREC_ORDER operators.
5002 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5003
78c164b0
YQ
50042014-06-19 Yao Qi <yao@codesourcery.com>
5005
5006 * gdbthread.h (any_running): Remove the declaration.
5007 * thread.c (any_running): Remove.
5008
f6e29b6e
YQ
50092014-06-19 Yao Qi <yao@codesourcery.com>
5010
5011 * gdbthread.h (struct thread_info) <state>: Change its type to
5012 'enum thread_state'. Update comments.
5013
034f788c
PA
50142014-06-19 Pedro Alves <palves@redhat.com>
5015
5016 * gdbthread.h (ALL_THREADS): Delete.
5017 (ALL_NON_EXITED_THREADS): New macro.
5018 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5019 instead of ALL_THREADS.
5020 * infrun.c (find_thread_needs_step_over)
5021 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5022 instead of ALL_THREADS.
5023 * record-btrace.c (record_btrace_open)
5024 (record_btrace_stop_recording, record_btrace_close)
5025 (record_btrace_is_replaying, record_btrace_resume)
5026 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5027 * remote.c (append_pending_thread_resumptions): Likewise.
5028 * thread.c (thread_apply_all_command): Likewise.
5029
46e33252
GB
50302014-06-19 Gary Benson <gbenson@redhat.com>
5031
5032 * i386-nat.c (i386_stopped_by_watchpoint):
5033 Use i386_dr_stopped_by_watchpoint.
5034 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5035 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5036
3a8ee006
GB
50372014-06-19 Gary Benson <gbenson@redhat.com>
5038
5039 * nat/i386-dregs.c: New file.
5040 * Makefile.in (i386-dregs.o): New rule.
5041 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5042 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5043 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5044 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5045 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5046 * config/i386/go32.mh (NATDEPFILES): Likewise.
5047 * config/i386/linux.mh (NATDEPFILES): Likewise.
5048 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5049 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5050 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5051 * i386-nat.h (debug_hw_points): New declaration.
5052 * i386-nat.c (breakpoint.h): Remove include.
5053 (command.h): Likewise.
5054 (target.h): Likewise.
5055 (gdb_assert.h): Likewise.
5056 (debug_hw_points): Made nonstatic.
5057 (debug_printf): Now in i386-dregs.c.
5058 (TARGET_HAS_DR_LEN_8): Likewise.
5059 (DR_CONTROL_SHIFT): Likewise.
5060 (DR_CONTROL_SIZE): Likewise.
5061 (DR_RW_EXECUTE): Likewise.
5062 (DR_RW_WRITE): Likewise.
5063 (DR_RW_READ): Likewise.
5064 (DR_RW_IORW): Likewise.
5065 (DR_LEN_1): Likewise.
5066 (DR_LEN_2): Likewise.
5067 (DR_LEN_4): Likewise.
5068 (DR_LEN_8): Likewise.
5069 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5070 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5071 (DR_ENABLE_SIZE): Likewise.
5072 (DR_LOCAL_SLOWDOWN): Likewise.
5073 (DR_GLOBAL_SLOWDOWN): Likewise.
5074 (DR_CONTROL_RESERVED): Likewise.
5075 (I386_DR_CONTROL_MASK): Likewise.
5076 (I386_DR_VACANT): Likewise.
5077 (I386_DR_LOCAL_ENABLE): Likewise.
5078 (I386_DR_GLOBAL_ENABLE): Likewise.
5079 (I386_DR_DISABLE): Likewise.
5080 (I386_DR_SET_RW_LEN): Likewise.
5081 (I386_DR_GET_RW_LEN): Likewise.
5082 (I386_DR_WATCH_HIT): Likewise.
5083 (i386_wp_op_t): Likewise.
5084 (i386_show_dr): Likewise.
5085 (i386_length_and_rw_bits): Likewise.
5086 (i386_insert_aligned_watchpoint): Likewise.
5087 (i386_remove_aligned_watchpoint): Likewise.
5088 (i386_handle_nonaligned_watchpoint): Likewise.
5089 (i386_update_inferior_debug_regs): Likewise.
5090 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5091 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5092 (i386_region_ok_for_watchpoint):
5093 Use i386_dr_region_ok_for_watchpoint.
5094 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5095
322a8e06
GB
50962014-06-19 Gary Benson <gbenson@redhat.com>
5097
5098 * i386-nat.c (i386_insert_hw_breakpoint): Use
5099 i386_insert_watchpoint.
5100 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5101
8f26655c
GB
51022014-06-19 Gary Benson <gbenson@redhat.com>
5103
5104 * i386-nat.c (i386_dr_show): Renamed to
5105 i386_show_dr and made static. All uses updated.
5106 (i386_dr_length_and_rw_bits): Renamed to
5107 i386_length_and_rw_bits and made static.
5108 All uses updated.
5109 (i386_dr_insert_aligned_watchpoint): Renamed to
5110 i386_insert_aligned_watchpoint and made static.
5111 All uses updated.
5112 (i386_dr_remove_aligned_watchpoint): Renamed to
5113 i386_remove_aligned_watchpoint and made static.
5114 All uses updated.
5115 (i386_dr_update_inferior_debug_regs): Renamed to
5116 i386_update_inferior_debug_regs and made static.
5117 All uses updated.
5118 * nat/i386-dregs.h (i386_dr_show): Removed.
5119 (i386_dr_length_and_rw_bits): Likewise.
5120 (i386_dr_insert_aligned_watchpoint): Likewise.
5121 (i386_dr_remove_aligned_watchpoint): Likewise.
5122 (i386_dr_update_inferior_debug_regs): Likewise.
5123
992c7d70
GB
51242014-06-19 Gary Benson <gbenson@redhat.com>
5125
5126 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5127 * configure: Regenerate.
5128 * config.in: Likewise.
5129 * main.c (signal.h): New include.
5130 (setup_alternate_signal_stack): New function.
5131 (captured_main): Call the above.
5132 * cp-support.c (signal.h): New include.
5133 (catch_demangler_crashes): New flag.
5134 (SIGJMP_BUF): New define.
5135 (SIGSETJMP): Likewise.
5136 (SIGLONGJMP): Likewise.
5137 (gdb_demangle_jmp_buf): New static global.
5138 (gdb_demangle_attempt_core_dump): Likewise.
5139 (gdb_demangle_signal_handler): New function.
5140 (gdb_demangle): If catch_demangler_crashes is set, install the
5141 above signal handler before calling bfd_demangle, and restore
5142 the original signal handler afterwards. Display the offending
5143 symbol and call demangler_warning the first time a segmentation
5144 fault is caught.
5145 (_initialize_cp_support): New maint set/show command.
5146
eae7090b
GB
51472014-06-19 Gary Benson <gbenson@redhat.com>
5148
5149 * utils.h (resource_limit_kind): New enum.
5150 (can_dump_core): New declaration.
5151 (warn_cant_dump_core): Likewise.
5152 (dump_core): Likewise.
5153 * utils.c (dump_core): Made nonstatic. Added new
5154 parameter "limit_kind".
5155 (can_dump_core): Made nonstatic. Moved printing code to...
5156 (warn_cant_dump_core): New function.
5157 (can_dump_core_warn): Likewise.
5158 (internal_vproblem): Replace calls to can_dump_core with
5159 calls to can_dump_core_warn. Supply new argument to each.
5160
57fcfb1b
GB
51612014-06-19 Gary Benson <gbenson@redhat.com>
5162
5163 * utils.h (demangler_vwarning): New declaration.
5164 (demangler_warning): Likewise.
5165 * utils.c (struct internal_problem)
5166 <user_settable_should_quit>: New field.
5167 <user_settable_should_dump_core>: Likewise
5168 (internal_error_problem): Add values for above new fields.
5169 (internal_warning_problem): Likewise.
5170 (demangler_warning_problem): New static global.
5171 (demangler_vwarning): New function.
5172 (demangler_warning): Likewise.
5173 (add_internal_problem_command): Selectively add commands.
5174 (_initialize_utils): New internal problem command.
5175 * maint.c (maintenance_demangler_warning): New function.
5176 (_initialize_maint_cmds): New command.
5177
17a40b44
TT
51782014-06-18 Tom Tromey <tromey@redhat.com>
5179
5180 * f-valprint.c (info_common_command_for_block): Update.
5181 * symtab.h (struct general_symbol_info) <common_block>: Now
5182 const.
5183
346d1dfe
TT
51842014-06-18 Tom Tromey <tromey@redhat.com>
5185
5186 * symtab.h (struct symtab) <blockvector>: Now const.
5187 * ada-lang.c (ada_add_global_exceptions): Update.
5188 * buildsym.c (augment_type_symtab): Update.
5189 * dwarf2read.c (dw2_lookup_symbol): Update.
5190 * jit.c (finalize_symtab): Update.
5191 * jv-lang.c (add_class_symtab_symbol): Update.
5192 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5193 Update.
5194 * objfiles.c (objfile_relocate1): Update.
5195 * psymtab.c (lookup_symbol_aux_psymtabs)
5196 (maintenance_check_psymtabs): Update.
5197 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5198 Update.
5199 * spu-tdep.c (spu_catch_start): Update.
5200 * symmisc.c (dump_symtab_1): Update.
5201 * symtab.c (lookup_global_symbol_from_objfile)
5202 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5203 (basic_lookup_transparent_type_quick)
5204 (basic_lookup_transparent_type, find_pc_sect_symtab)
5205 (find_pc_sect_line, search_symbols): Update.
5206 * block.c (find_block_in_blockvector): Make "bl" const.
5207 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5208 const.
5209 (blockvector_contains_pc): Make "bv" const.
5210 (block_for_pc_sect): Update.
5211 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5212 (blockvector_contains_pc): Update.
5213 * breakpoint.c (resolve_sal_pc): Update.
5214 * inline-frame.c (block_starting_point_at): Update.
5215
1834676b
TT
52162014-06-18 Tom Tromey <tromey@redhat.com>
5217
5218 * completer.c (complete_line): Make "line_buffer" const.
5219 * completer.h (complete_line): Update.
5220
ac1a991b
TT
52212014-06-18 Tom Tromey <tromey@redhat.com>
5222
5223 * symtab.c (add_macro_name): Remove unneeded cast.
5224
5bc98e52
TT
52252014-06-18 Tom Tromey <tromey@redhat.com>
5226
5227 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5228 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5229
8236def8
TT
52302014-06-18 Tom Tromey <tromey@redhat.com>
5231
5232 * probe.c (info_probes_for_ops): Make "arg" const.
5233 * probe.h (info_probes_for_ops): Update.
5234
3977b71f
TT
52352014-06-18 Tom Tromey <tromey@redhat.com>
5236
5237 * varobj.c (varobj_create): Update.
5238 * valops.c (value_of_this): Update.
5239 * tracepoint.c (add_local_symbols, scope_info): Update.
5240 * symtab.h (struct general_symbol_info) <block>: Now const.
5241 * symtab.c (skip_prologue_sal)
5242 (default_make_symbol_completion_list_break_on)
5243 (skip_prologue_using_sal): Update.
5244 * stack.h (iterate_over_block_locals)
5245 (iterate_over_block_local_vars): Update.
5246 * stack.c (print_frame_args): Update.
5247 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5248 parameter const.
5249 (get_selected_block): Make return type const.
5250 * python/py-frame.c (frapy_block): Update.
5251 * python/py-block.c (gdbpy_block_for_pc): Update.
5252 * p-exp.y (%union) <bval>: Now const.
5253 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5254 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5255 * m2-exp.y (%union) <bval>: Now const.
5256 * linespec.c (get_current_search_block): Make return type const.
5257 (create_sals_line_offset, find_label_symbols): Update.
5258 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5259 Update.
5260 (block_starting_point_at): Make "block" const.
5261 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5262 (check_exception_resume): Update.
5263 * guile/scm-frame.c (gdbscm_frame_block): Update.
5264 * guile/scm-block.c (gdbscm_lookup_block): Update.
5265 * frame.h (get_frame_block): Update.
5266 (get_selected_block): Make return type const.
5267 * frame.c (frame_id_inner): Update.
5268 * f-valprint.c (info_common_command_for_block)
5269 (info_common_command): Update.
5270 * dwarf2loc.c (dwarf2_find_location_expression)
5271 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5272 (locexpr_describe_location_piece): Update.
5273 * c-exp.y (%union) <bval>: Now const.
5274 * breakpoint.c (resolve_sal_pc): Update.
5275 * blockframe.c (get_frame_block):Make return type const.
5276 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5277 (block_innermost_frame): Update.
5278 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5279 (block_for_pc, block_for_pc_sect): Update.
5280 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5281 'pblock' const.
5282 (block_for_pc_sect, block_for_pc): Make return type const.
5283 * ax-gdb.c (gen_expr): Update.
5284 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5285 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5286 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5287 (ada_read_var_value): Update.
5288 * ada-exp.y (struct name_info) <block>: Now const.
5289 (%union): Likewise.
5290 (block_lookup): Constify.
5291
b9228891
GB
52922014-06-18 Gary Benson <gbenson@redhat.com>
5293
5294 * nat/i386-dregs.h: New file.
5295 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5296 * i386-nat.h (i386-dregs.h): New include.
5297 (DR_FIRSTADDR): Now in i386-dregs.h.
5298 (DR_LASTADDR): Likewise.
5299 (DR_NADDR): Likewise.
5300 (DR_STATUS): Likewise.
5301 (DR_CONTROL): Likewise.
5302 (i386_debug_reg_state): Likewise.
5303 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5304
a1aa2221
LM
53052014-06-18 Don Breazeal <donb@codesourcery.com>
5306
5307 * breakpoint.c (set_longjmp_breakpoint): Call
5308 momentary_breakpoint_from_master with additional argument.
5309 (set_longjmp_breakpoint_for_call_dummy): Call
5310 momentary_breakpoint_from_master with additional argument.
5311 (set_std_terminate_breakpoint): Call
5312 momentary_breakpoint_from_master with additional argument.
5313 (momentary_breakpoint_from_master): Add argument to function
5314 definition and use it to initialize structure member flag.
74228e77 5315 (clone_momentary_breakpoint): Call
a1aa2221
LM
5316 momentary_breakpoint_from_master with additional argument.
5317 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5318 member flags set in momentary_breakpoint_from_master.
5319
4be83cc2
GB
53202014-06-18 Gary Benson <gbenson@redhat.com>
5321
5322 * i386-nat.c (i386_show_dr): Renamed to
5323 i386_dr_show and made nonstatic. All uses updated.
5324 (i386_length_and_rw_bits): Renamed to
5325 i386_dr_length_and_rw_bits and made nonstatic.
5326 All uses updated.
5327 (i386_insert_aligned_watchpoint): Renamed to
5328 i386_dr_insert_aligned_watchpoint and made nonstatic.
5329 All uses updated.
5330 (i386_remove_aligned_watchpoint): Renamed to
5331 i386_dr_remove_aligned_watchpoint and made nonstatic.
5332 All uses updated.
5333 (i386_update_inferior_debug_regs): Renamed to
5334 i386_dr_update_inferior_debug_regs and made nonstatic.
5335 All uses updated.
5336
131aa0d4
GB
53372014-06-18 Gary Benson <gbenson@redhat.com>
5338
5339 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5340 (i386_dr_low_can_set_control): Likewise.
5341 (i386_dr_low_set_addr): Likewise.
5342 (i386_dr_low_set_control): Likewise.
5343 (i386_dr_low_get_addr): Likewise.
5344 (i386_dr_low_get_status): Likewise.
5345 (i386_dr_low_get_control): Likewise.
5346 (i386_insert_aligned_watchpoint): Use new macros.
5347 (i386_update_inferior_debug_regs): Likewise.
5348 (i386_stopped_data_address): Likewise.
5349
d9305f7f
GB
53502014-06-18 Gary Benson <gbenson@redhat.com>
5351
5352 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5353 New parameter. All uses updated.
5354
ea008da4
GB
53552014-06-18 Gary Benson <gbenson@redhat.com>
5356
5357 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5358 All uses updated.
5359
1b6d4134
GB
53602014-06-18 Gary Benson <gbenson@redhat.com>
5361
5362 * i386-nat.c (debug_printf): New macro.
5363 (i386_get_debug_register_length): Likewise.
5364 (TARGET_HAS_DR_LEN_8): Use above macro.
5365 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5366 and printf_unfiltered. Use phex to format values.
5367
9b4550ef
GB
53682014-06-18 Gary Benson <gbenson@redhat.com>
5369
5370 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5371 Make const.
5372
6e62758f
GB
53732014-06-18 Gary Benson <gbenson@redhat.com>
5374
5375 * i386-nat.c: Comment changes.
5376
51c79e94
GB
53772014-06-18 Gary Benson <gbenson@redhat.com>
5378
5379 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5380
3e11889a
GB
53812014-06-18 Gary Benson <gbenson@redhat.com>
5382
5383 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5384 (i386_insert_aligned_watchpoint): Likewise.
5385 (i386_remove_aligned_watchpoint): Likewise.
5386 (i386_handle_nonaligned_watchpoint): Likewise.
5387
fc6e2f03
GB
53882014-06-18 Gary Benson <gbenson@redhat.com>
5389
5390 * i386-nat.c: Whitespace changes.
5391
2afe7d50
SB
53922014-06-17 Samuel Bronson <naesten@gmail.com>
5393
5394 * MAINTAINERS: Update Roland McGrath's email address.
5395 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 5396 Red Hat a while ago, and giving me a current address.
2afe7d50 5397
3bca49ee
TT
53982014-06-17 Tom Tromey <tromey@redhat.com>
5399
5400 * utils.h (savestring): Remove declaration.
5401
6e366df1
TT
54022014-06-17 Tom Tromey <tromey@redhat.com>
5403
5404 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5405
6be47f0c
KS
54062014-06-16 Keith Seitz <keiths@redhat.com>
5407
5408 PR mi/15863
5409 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5410 to update the varobj if inferior_ptid is null_ptid.
5411
7bc112c1
TT
54122014-06-16 Tom Tromey <tromey@redhat.com>
5413
5414 * target.h (struct target_ops) <to_info_proc>: Make parameter
5415 const.
5416 (target_info_proc): Update.
5417 * target.c (target_info_proc): Make "args" const.
5418 * procfs.c (procfs_info_proc): Update.
5419 * linux-tdep.c (linux_info_proc): Update.
5420 (linux_core_info_proc_mappings): Make "args" const.
5421 (linux_core_info_proc): Update.
5422 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5423 * gdbarch.c: Rebuild.
5424 * gdbarch.h: Rebuild.
5425 * corelow.c (core_info_proc): Update.
5426
fee354ee
TT
54272014-06-16 Tom Tromey <tromey@redhat.com>
5428
5429 * target.h (struct target_ops) <to_disconnect>: Make parameter
5430 const.
5431 (target_disconnect): Update.
5432 * target.c (target_disconnect): Make "args" const.
5433 * target-delegates.c: Rebuild.
5434 * remote.c (remote_disconnect): Update.
5435 * record.h (record_disconnect): Update.
5436 * record.c (record_disconnect): Update.
5437 * inf-child.c (inf_child_disconnect): Update.
5438
a30bf1f1
TT
54392014-06-16 Tom Tromey <tromey@redhat.com>
5440
5441 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5442 * target.c (debug_to_rcmd, default_rcmd): Update.
5443 * target-delegates.c: Rebuild.
5444 * remote.c (remote_rcmd): Update.
5445 * monitor.c (monitor_rcmd): Update.
5446
d03de421
PA
54472014-06-16 Pedro Alves <palves@redhat.com>
5448
5449 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5450 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5451 have OBJF_SHARED set.
5452 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5453 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5454 instead of OBJF_USERLOADED.
5455 * objfiles.h (OBJF_SHARED): Update comment.
5456 (userloaded_objfile_contains_address_p): Rename to ...
5457 (shared_objfile_contains_address_p): ... this, and update
5458 comments.
5459 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5460 new objfile.
5461 (remove_symbol_file_command): Skip objfiles that don't have
5462 OBJF_SHARED set.
5463
99f4262f
TT
54642014-06-16 Tom Tromey <tromey@redhat.com>
5465
5466 * minsyms.h (prim_record_minimal_symbol)
5467 (prim_record_minimal_symbol_and_info): Update comments.
5468
97d66cc6
EZ
54692014-06-14 Eli Zaretskii <eliz@gnu.org>
5470
5471 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5472 or --without-guile, according to how GDB was built.
5473
635c7e8a
TT
54742014-06-13 Tom Tromey <tromey@redhat.com>
5475
5476 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5477 to help_list.
5478 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5479 to help_list.
5480 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5481 help_list.
5482 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5483 help_list.Pass all_commands, not -1, to help_list.
5484 * cli/cli-dump.c (dump_command, append_command)
5485 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5486 (binary_dump_command, binary_append_command): Pass all_commands,
5487 not -1, to help_list.
5488 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5489 -1, to help_list.
5490 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5491 -1, to help_list.
5492 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5493 help_list.
5494 * top.c (set_history): Pass all_commands, not -1, to help_list.
5495 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5496 all_commands, not -1, to help_list.
5497 * symfile.c (overlay_command): Pass all_commands, not -1, to
5498 help_list.
5499 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5500 help_list.
5501 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5502 help_list.
5503 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5504 -1, to help_list.
5505 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5506 not -1, to help_list.
5507 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5508 not -1, to help_list.
5509 * maint.c (maintenance_command, maintenance_info_command)
5510 (maintenance_print_command, maintenance_set_cmd): Pass
5511 all_commands, not -1, to help_list.
5512 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5513 help_list.
5514 * language.c (set_check): Pass all_commands, not -1, to help_list.
5515 * infcmd.c (unset_command): Pass all_commands, not -1, to
5516 help_list.
5517 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5518 help_list.
5519 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5520 help_list.
5521 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5522 help_list.
5523 * breakpoint.c (save_command): Pass all_commands, not -1, to
5524 help_list.
5525 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5526 all_commands, not -1, to help_list.
5527
b94ade42
PL
55282014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5529
5530 * regcache.c (struct register_to_invalidate): New structure.
5531 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5532 functions.
5533 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5534
31f628ae
YQ
55352014-06-12 Yao Qi <yao@codesourcery.com>
5536
5537 * varobj.c (varobj_get_num_children): Call
5538 varobj_is_dynamic_p.
5539 (varobj_list_children): Likewise.
5540 (varobj_update): Likewise. Update comments.
5541
cde5ef40
YQ
55422014-06-12 Yao Qi <yao@codesourcery.com>
5543
5544 * varobj.c (varobj_pretty_printed_p): Rename to ...
5545 (varobj_is_dynamic_p): ... this. New function.
5546 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5547 (varobj_is_dynamic_p): Declare.
5548 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5549 (mi_print_value_p, varobj_update_one): Likewise.
5550
576ea091
YQ
55512014-06-12 Pedro Alves <pedro@codesourcery.com>
5552 Yao Qi <yao@codesourcery.com>
5553
5554 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5555 (varobj_get_iterator): Wrap up code for pretty-printer by
5556 "#if HAVE_PYTHON" and "#endif".
5557 (update_dynamic_varobj_children): Likewise.
5558
827f100c
YQ
55592014-06-12 Pedro Alves <pedro@codesourcery.com>
5560 Yao Qi <yao@codesourcery.com>
5561
5562 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5563 gdb_python_initialized is false. Move some code from varobj.c.
5564 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5565 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5566 (struct varobj_item): Moved to varobj-iter.h".
5567 (varobj_clear_saved_item): New function.
5568 (update_dynamic_varobj_children): Move python-related code to
5569 py-varobj.c.
5570 (free_variable): Call varobj_clear_saved_item and
5571 varobj_iter_delete.
5572
e5250216
YQ
55732014-06-12 Pedro Alves <pedro@codesourcery.com>
5574 Yao Qi <yao@codesourcery.com>
5575
5576 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5577 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5578 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5579 (py-varobj.o): New rule.
5580 * python/py-varobj.c: New file.
5581 * python/python-internal.h (py_varobj_get_iterator): Declare.
5582 * varobj-iter.h: New file.
5583 * varobj.c: Include "varobj-iter.h"
5584 (struct varobj) <child_iter>: Change its type from "PyObject *"
5585 to "struct varobj_iter *".
5586 <saved_item>: Likewise.
5587 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5588 [HAVE_PYTHON] (varobj_get_iterator): New function.
5589 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5590 python-specific code to python/py-varobj.c.
5591 (install_visualizer): Call varobj_iter_delete instead of
5592 Py_XDECREF.
5593 * varobj.h (varobj_ensure_python_env): Declare.
5594
5a2e0d6e
YQ
55952014-06-12 Yao Qi <yao@codesourcery.com>
5596
5597 * varobj.c (struct varobj_item): New structure.
5598 (create_child_with_value): Update declaration.
5599 (varobj_add_child): Replace arguments 'name' and 'value' with
5600 'item'. All callers updated.
5601 (install_dynamic_child): Likewise.
5602 (update_dynamic_varobj_children): Likewise.
5603 (varobj_add_child): Likewise.
5604 (create_child_with_value): Likewise.
5605
919b9a93
JB
56062014-06-11 Joel Brobecker <brobecker@adacore.com>
5607
5608 * NEWS: Create a new section for the next release branch.
5609 Rename the section of the current branch, now that it has
5610 been cut.
5611
71a55bdf
JB
56122014-06-11 Joel Brobecker <brobecker@adacore.com>
5613
5614 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5615 * version.in: Bump version to 7.8.50.DATE-cvs.
5616
364fe1f7
PA
56172014-06-11 Pedro Alves <palves@redhat.com>
5618
5619 PR remote/17028
5620 * ser-mingw.c (net_windows_socket_check_pending): New function.
5621 (net_windows_select_thread): Ignore spurious wakeups. Use
5622 net_windows_socket_check_pending.
5623 (net_windows_wait_handle): Check for pending events with
5624 ioctlsocket, through net_windows_socket_check_pending, instead of
5625 checking the socket's event.
5626
5a6c7709
SC
56272014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5628
5629 * python/python-internal.h (gdb_PyObject_GetAttrString)
5630 (gdb_PyObject_HasAttrString): New inline function definitions.
5631 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5632 char * of the second argument to PyObject_GetAttrString.
74228e77 5633
0e58ee40
JB
56342014-06-10 Joel Brobecker <brobecker@adacore.com>
5635
5636 * serial.c (serial_write): Fix index of character to be printed
5637 in call to serial_logchar when serial debug traces are enabled.
5638
d190df30
JB
56392014-06-10 Joel Brobecker <brobecker@adacore.com>
5640
5641 * gdbtypes (resolve_dynamic_range): Add function description.
5642
b4b01d36
PA
56432014-06-09 Pedro Alves <palves@redhat.com>
5644
5645 * linux-nat.c (linux_child_follow_fork): Initialize status with
5646 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5647 inner block. Only pass the signal to PTRACE_DETACH if in pass
5648 state.
5649
3657956b
GB
56502014-06-09 Gary Benson <gbenson@redhat.com>
5651
5652 * common/signals.c (gdb_signal_from_host): Reorder to separate
5653 the always-available ANSI-standard signals from the signals that
5654 require checking.
5655 (do_gdb_signal_to_host): Likewise.
5656 * proc-events.c (signal_table): Likewise.
5657
c077881a
HZ
56582014-06-08 Hui Zhu <hui@codesourcery.com>
5659
5660 * common/linux-ptrace.c (linux_disable_event_reporting): New
5661 function.
5662 * common/linux-ptrace.h (linux_disable_event_reporting): New
5663 declaration.
5664 * linux-nat.c (linux_child_follow_fork): Do a single step before
5665 detach.
5666
4186eb54
KS
56672014-06-07 Keith Seitz <keiths@redhat.com>
5668
5669 Revert:
5670 PR c++/16253
5671 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5672 from symbol_matches_domain in symtab.c. All local callers
5673 of symbol_matches_domain updated.
5674 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5675 search STRUCT_DOMAIN.
5676 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5677 independently. standard_lookup will do that automatically.
5678 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5679 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5680 (cp_lookup_symbol_in_namespace): Likewise.
5681 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5682 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5683 may return a STRUCT_DOMAIN match.
5684 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5685 * cp-support.c: Include language.h.
5686 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5687 VAR_DOMAIN.
5688 * psymtab.c (match_partial_symbol): Compare the requested
5689 domain with the symbol's domain directly.
5690 (lookup_partial_symbol): Likewise.
5691 * symtab.c (lookup_symbol_in_language): Explain when/why
5692 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5693 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5694 appropriate languages.
5695 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5696 and moved to ada-lang.c
5697 (lookup_block_symbol): Explain that this function only returns
5698 symbol matching the requested DOMAIN.
5699 Compare the requested domain with the symbol's domain directly.
5700 (iterate_over_symbols): Compare the requested domain with the
5701 symbol's domain directly.
5702 * symtab.h (symbol_matches_domain): Remove.
5703
25326a28 57042014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
5705
5706 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5707 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5708 (gdbscm_guile_version_is_at_least): Declare.
5709 (gdbscm_scm_string_to_int): Declare.
5710 * guile/guile.c (gdbscm_guile_major_version): New global.
5711 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5712 (guile_datadir): New static global.
5713 (gdbscm_guile_data_directory): New function.
5714 (initialize_scheme_side): Update.
5715 (misc_guile_functions): Add guile-data-directory.
5716 (initialize_gdb_module): Fetch guile version number.
5717 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5718 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5719 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5720 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5721 comments.
5722 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5723 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5724 * guile/scm-value.c (gdbscm_value_to_string): Only call
5725 scm_port_conversion_strategy if Guile version >= 2.0.6.
5726
0a770bb2 57272014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5728
5729 * main.c (print_gdb_help): Add -q and --silent.
5730
73ba372c
GB
57312014-06-06 Gary Benson <gbenson@redhat.com>
5732
5733 * common/signals.c: Remove preprocessor conditionals for
5734 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5735 SIGSEGV and SIGTERM.
5736 * proc-events.c: Likewise.
5737
c33b2f12
MM
57382014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5739
5740 * symfile.c (symfile_free_objfile): Remove restriction to
5741 OBJF_USERLOADED.
5742 * symfile-mem.c (symbol_file_add_from_memory): Call
5743 add_target_sections_of_objfile.
5744
fb934770
LC
57452014-06-05 Ludovic Courtès <ludo@gnu.org>
5746
5747 * guile/scm-value.c (gdbscm_history_append_x): Use
5748 'vlscm_get_value_smob_arg_unsafe' instead of
5749 'vlscm_scm_to_value'.
5750
6ef284bd
SM
57512014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5752
5753 PR mi/15806
5754 * utils.c (printchar): Don't escape at all if quoter is NUL.
5755 Update function documentation to clarify effect of parameter
5756 QUOTER.
5757 * remote.c (escape_buffer): Pass '\\' as the quoter to
5758 fputstrn_unfiltered.
5759 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5760 generate the output.
5761 (mi_solib_unloaded): Same.
5762
270c9937
JB
57632014-06-05 Joel Brobecker <brobecker@adacore.com>
5764
5765 * development.sh: Delete.
5766 * Makefile.in (config.status): Adjust dependency on development.sh.
5767 * configure.ac: Adjust development.sh source call.
5768 * configure: Regenerate.
5769
16f691fb
DE
57702014-06-04 Doug Evans <xdje42@gmail.com>
5771
5772 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5773 is_scheme_bkpt, spec.
5774 (bpscm_make_breakpoint_smob): Initialize new members.
5775 (gdbscm_create_breakpoint_x): Split into two ...
5776 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
5777 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
5778 (scheme_function breakpoint_functions): Update.
5779 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
5780 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
5781 register-breakpoint!.
5782
ef7cab6b
JB
57832014-06-04 Joel Brobecker <brobecker@adacorer.com>
5784
5785 PR server/17023
5786 * mem-break.c (z_type_supported): Return zero if
5787 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
5788
012370f6
TT
57892014-06-04 Tom Tromey <tromey@redhat.com>
5790
5791 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
5792 value_from_contents_and_address_unresolved.
5793 (ada_template_to_fixed_record_type_1): Likewise.
5794 (ada_which_variant_applies): Likewise.
5795 * value.h (value_from_contents_and_address_unresolved): Declare.
5796 * value.c (value_from_contents_and_address_unresolved): New
5797 function.
5798 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
5799 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
5800 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
5801
92e2a17f
TT
58022014-06-04 Tom Tromey <tromey@redhat.com>
5803
5804 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
5805
c0939df1
TT
58062014-06-04 Tom Tromey <tromey@redhat.com>
5807
5808 * procfs.c (procfs_attach): Make "args" const.
5809 * windows-nat.c (windows_attach): Make "args" const.
5810 * nto-procfs.c (procfs_attach): Make "args" const.
5811 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
5812 * go32-nat.c (go32_attach): Make "args" const.
5813 * gnu-nat.c (gnu_attach): Make "args" const.
5814 * darwin-nat.c (darwin_attach): Make "args" const.
5815 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
5816 * linux-nat.c (linux_nat_attach): Make "args" const.
5817 * remote.c (extended_remote_attach_1, extended_remote_attach):
5818 Make "args" const.
5819 * target.h (struct target_ops) <to_attach>: Make "args" const.
5820 (find_default_attach): Likewise.
5821 * utils.c (parse_pid_to_attach): Make "args" const.
5822 * utils.h (parse_pid_to_attach): Update.
5823
8eaff7cd
TT
58242014-06-04 Tom Tromey <tromey@redhat.com>
5825
5826 * target-delegates.c: Rebuild.
5827 * target.c (default_thread_address_space): New function.
5828 (target_thread_address_space): Simplify.
5829 * target.h (struct target_ops) <to_thread_address_space>: Add
5830 TARGET_DEFAULT_FUNC.
5831
1913f160
DE
58322014-06-04 Doug Evans <xdje42@gmail.com>
5833
5834 * guile/scm-type.c (type_smob): Remove duplicate typedef.
5835
70ad5bff
MM
58362014-06-04 Markus Metzger <markus.t.metzger@intel.com>
5837
5838 * record-btrace.c: Include event-loop.h and inf-loop.h.
5839 (record_btrace_resume_exec_dir)
5840 (record_btrace_async_inferior_event_handler)
5841 (record_btrace_handle_async_inferior_event): New.
5842 (record_btrace_open): Create async event handler.
5843 (record_btrace_close): Delete async event handler.
5844 (record_btrace_resume): Set record_btrace_resume_exec_dir,
5845 Mark async event handler.
5846 (record_btrace_execution_direction): New.
5847 (init_record_btrace_ops): Initialize to_execution_direction.
5848
b6210538
DE
58492014-06-03 Doug Evans <xdje42@gmail.com>
5850
5851 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
5852 (gdbscm_make_parameter): Ditto.
5853
a5b1fd27
DE
58542014-06-03 Doug Evans <dje@google.com>
5855
5856 * exec.c (exec_close_1): Call clear_section_table instead of
5857 resize_section_table.
5858 (clear_section_table): New function.
5859 (resize_section_table): Make static. Rename arg num_added to
5860 adjustment.
5861 * exec.h (clear_section_table): Declare.
5862 (resize_section_table): Delete.
5863 * progspace.c (release_program_space): Call clear_section_table
5864 instead of resize_section_table.
5865
0c6e92a5
SC
58662014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5867
5868 * NEWS (Python Scripting): Add entry about the new xmethods
5869 feature.
5870
883964a7
SC
58712014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5872
5873 * python/py-xmethods.c: New file.
5874 * python/py-objfile.c (objfile_object): New field 'xmethods'.
5875 (objfpy_dealloc): XDECREF on the new xmethods field.
5876 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
5877 field.
5878 (objfpy_get_xmethods): New function.
5879 (objfile_getset): New entry 'xmethods'.
5880 * python/py-progspace.c (pspace_object): New field 'xmethods'.
5881 (pspy_dealloc): XDECREF on the new xmethods field.
5882 (pspy_new, pspace_to_pspace_object): Initialize xmethods
5883 field.
5884 (pspy_get_xmethods): New function.
5885 (pspace_getset): New entry 'xmethods'.
5886 * python/python-internal.h: Add declarations for new functions.
5887 * python/python.c (_initialize_python): Invoke
5888 gdbpy_initialize_xmethods.
5889 * python/lib/gdb/__init__.py (xmethods): New
5890 attribute.
5891 * python/lib/gdb/xmethod.py: New file.
5892 * python/lib/gdb/command/xmethods.py: New file.
5893
58992dc5
SC
58942014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5895
5896 * eval.c (evaluate_subexp_standard): Call the xmethod if the
5897 best match method returned by find_overload_match is an xmethod.
5898 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
5899 the best matching operator returned by find_overload_match is an
5900 xmethod.
5901 * valops.c: #include "extension.h".
5902 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
5903 Return void. The list of matching source methods is returned in
5904 "fn_list" and a vector of matching debug method workers is
5905 returned in "xm_worker_vec". Update all callers.
5906 (value_find_oload_method_list): Likewise.
5907 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
5908 non-NULL, then the index of the best matching method in this
5909 vector is returned. Update all callers.
5910 (find_overload_match): Include xmethods while performing overload
5911 resolution.
5912
e81e7f5e
SC
59132014-06-03 Siva Chandra Reddy <sivachandra@google.com>
5914
5915 * defs.h (enum lval_type): New enumerator "lval_xcallable".
5916 * extension-priv.h (struct extension_language_ops): Add the
5917 xmethod interface.
5918 * extension.c (new_xmethod_worker, clone_xmethod_worker,
5919 get_matching_xmethod_workers, get_xmethod_argtypes,
5920 invoke_xmethod, free_xmethod_worker,
5921 free_xmethod_worker_vec): New functions.
5922 * extension.h: #include "common/vec.h".
5923 New function declarations.
5924 (struct xmethod_worker): New struct.
5925 (VEC (xmethod_worker_ptr)): New vector type.
5926 (xmethod_worker_ptr): New typedef.
5927 (xmethod_worker_vec): Likewise.
5928 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
5929 builtin_type.
5930 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
5931 (struct builtin_type): New field "xmethod".
5932 * valarith.c (value_ptradd): Assert that the value argument is not
5933 lval_xcallable.
5934 * valops.c (value_must_coerce_to_target): Return 0 for
5935 lval_xcallable values.
5936 * value.c (struct value): New field XM_WORKER in the field
5937 LOCATION.
5938 (value_address, value_raw_address): Return 0 for lval_xcallable
5939 values.
5940 (set_value_address): Assert that the value is not an
5941 lval_xcallable.
5942 (value_free): Free the associated xmethod worker when freeing
5943 lval_xcallable values.
5944 (set_value_component_location): Assert that the WHOLE value is not
5945 lval_xcallable.
5946 (value_of_xmethod, call_xmethod): New functions.
5947 * value.h: Declare "struct xmethod_worker".
5948 Declare new functions value_of_xmethod, call_xmethod.
5949
ef370185
JB
59502014-06-03 Joel Brobecker <brobecker@adacore.com>
5951 Pedro Alves <palves@redhat.com>
5952
5953 PR breakpoints/17000
5954 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
5955 New function, extracted from software_breakpoint_inserted_here_p.
5956 (software_breakpoint_inserted_here_p): Replace factored out code
5957 by call to find_non_raw_software_breakpoint_inserted_here.
5958 (bp_target_info_copy_insertion_state): New function.
5959 (bkpt_insert_location): Handle the case of a single-step
5960 breakpoint already inserted at the same address.
5961 (bkpt_remove_location): Handle the case of a single-step
5962 breakpoint still inserted at the same address.
5963 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
5964 breakpoint already inserted at the same address.
5965 (deprecated_remove_raw_breakpoint): Handle the case of a
5966 non-raw breakpoint still inserted at the same address.
5967 (find_single_step_breakpoint): New function, extracted from
5968 single_step_breakpoint_inserted_here_p.
5969 (find_single_step_breakpoint): New function,
5970 factored out from single_step_breakpoint_inserted_here_p.
5971 (single_step_breakpoint_inserted_here_p): Reimplement.
5972
1e2ccb61
BM
59732014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
5974
5975 Pushed by Joel Brobecker <brobecker@adacore.com>
5976 * source.c (show_substitute_path_command): Fix display of matching
5977 substitution rules.
5978
d3448d85
GB
59792014-06-03 Gary Benson <gbenson@redhat.com>
5980
5981 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
5982
06eb1586
DE
59832014-06-02 Doug Evans <xdje42@gmail.com>
5984
5985 Add parameter support for Guile.
5986 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
5987 (SUBDIR_GUILE_SRCS): Add scm-param.c.
5988 (scm-param.o): New rule.
5989 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
5990 (gdbscm_misc_error): Declare.
5991 (gdbscm_canonicalize_command_name): Declare.
5992 (gdbscm_scm_to_host_string): Declare.
5993 (gdbscm_scm_from_host_string): Declare.
5994 (gdbscm_initialize_parameters): Declare.
5995 * guile/guile.c (initialize_gdb_module): Call
5996 gdbscm_initialize_parameters.
5997 * guile/lib/gdb.scm: Export parameter symbols.
5998 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
5999 cmdscm_canonicalize_name and made public. All callers updated.
6000 * guile/scm-exception.c (gdbscm_misc_error): New function.
6001 * guile/scm-param.c: New file.
6002 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6003 (gdbscm_scm_to_host_string): New function.
6004 (gdbscm_scm_from_host_string): New function.
6005 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6006
e698b8c4
DE
60072014-06-02 Doug Evans <xdje42@gmail.com>
6008
6009 Add command support for Guile.
6010 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6011 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6012 (scm-cmd.o): New rule.
6013 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6014 (gdbscm_user_error_p): Declare.
6015 (gdbscm_parse_command_name): Declare.
6016 (gdbscm_valid_command_class_p): Declare.
6017 (gdbscm_initialize_commands): Declare.
6018 * guile/guile.c (initialize_gdb_module): Call
6019 gdbscm_initialize_commands.
6020 * guile/lib/gdb.scm: Export command symbols.
6021 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6022 (throw-user-error): New function.
6023 * guile/scm-cmd.c: New file.
6024 * guile/scm-exception.c (user_error_symbol): New static global.
6025 (gdbscm_user_error_p): New function.
6026 (gdbscm_initialize_exceptions): Set user_error_symbol.
6027 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6028
fb1f94b0
PM
60292014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6030
6031 * top.c (command_loop): Handle comments here...
6032 (command_line_input): ... not here.
6033
ded03782
DE
60342014-06-02 Doug Evans <xdje42@gmail.com>
6035
6036 Add progspace support for Guile.
6037 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6038 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6039 (scm-progspace.o): New rule.
6040 * guile/guile-internal.h (pspace_smob): New typedef.
6041 (psscm_pspace_smob_pretty_printers): Declare.
6042 (psscm_pspace_smob_from_pspace): Declare.
6043 (psscm_scm_from_pspace): Declare.
6044 * guile/guile.c (initialize_gdb_module): Call
6045 gdbscm_initialize_pspaces.
6046 * guile/lib/gdb.scm: Export progspace symbols.
6047 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6048 support.
6049 (append-pretty-printer!): Ditto.
6050 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6051 Implement.
6052 * guile/scm-progspace.c: New file.
6053
397998fc
AM
60542014-06-03 Alan Modra <amodra@gmail.com>
6055
6056 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6057 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6058
6aa5f3a6
DE
60592014-06-02 Doug Evans <dje@google.com>
6060
6061 Add support for skeletonless type units.
6062 * dwarf2read.c (struct dwarf2_per_objfile): New member
6063 n_allocated_type_units.
6064 (struct dwarf2_per_objfile) <tu_stats>: New member
6065 nr_all_type_units_reallocs.
6066 (create_signatured_type_table_from_index): Initialize
6067 n_allocated_type_units
6068 (create_all_type_units): Ditto.
6069 (add_type_unit): Move up in file. New arg slot.
6070 All callers updated. Increase space for all_type_units more
6071 efficiently.
6072 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6073 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6074 (lookup_dwp_signatured_type): Ditto.
6075 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6076 All callers updated.
6077 (build_type_psymtabs_1): Leave type_unit_groups as
6078 NULL if no TUs present.
6079 (print_tu_stats): New function.
6080 (process_skeletonless_type_unit): New function.
6081 (process_dwo_file_for_skeletonless_type_units): New
6082 function.
6083 (process_skeletonless_type_units): New function.
6084 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6085 Call print tu_stats if debugging enabled.
6086
41fac0cf
PA
60872014-06-02 Pedro Alves <palves@redhat.com>
6088
6089 * breakpoint.c (build_target_command_list): Don't build a command
6090 list if we have any duplicate location that isn't a dprintf.
6091
cd1608cc
PA
60922014-06-02 Pedro Alves <palves@redhat.com>
6093
6094 * breakpoint.c (dprintf_breakpoint_hit): New function.
6095 (initialize_breakpoint_ops): Install it as dprintf's
6096 breakpoint_hit method.
6097
486ef3b9
JB
60982014-06-02 Joel Brobecker <brobecker@adacore.com>
6099
6100 * source.c (substitute_path_rule_matches): Simplify using
6101 filename_ncmp instead of FILENAME_CMP.
6102
230cd560
JB
61032014-06-02 Joel Brobecker <brobecker@adacore.com>
6104
6105 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6106
16954d5d
LC
61072014-06-01 Ludovic Courtès <ludo@gnu.org>
6108
6109 * configure.ac: When Guile is available, check for the
6110 availability of 'scm_new_smob'.
6111 * configure, config.h.in: Regenerate.
6112 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6113 function.
6114
53e8a631
AB
61152014-05-30 Andrew Burgess <aburgess@broadcom.com>
6116
6117 * frame.c (struct frame_info): Add stop_string field.
6118 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6119 (get_prev_frame_always): Old content moved into
6120 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6121 TRY_CATCH, handle MEMORY_ERROR exceptions.
6122 (frame_stop_reason_string): New function definition.
6123 * frame.h (unwind_stop_reason_to_string): Extend comment to
6124 mention frame_stop_reason_string.
6125 (frame_stop_reason_string): New function declaration.
6126 * stack.c (frame_info): Switch to frame_stop_reason_string.
6127 (backtrace_command_1): Switch to frame_stop_reason_string.
6128 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6129 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6130 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6131
70e38b8e
AB
61322014-05-30 Andrew Burgess <aburgess@broadcom.com>
6133
6134 * frame.c (frame_stop_reason_string): Rename to ...
6135 (unwind_stop_reason_to_string): this.
6136 * frame.h (frame_stop_reason_string): Rename to ...
6137 (unwind_stop_reason_to_string): this.
6138 * stack.c (frame_info): Update call to frame_stop_reason_string.
6139 (backtrace_command_1): Likewise.
6140 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6141 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6142
938f0e2f
AB
61432014-05-30 Andrew Burgess <aburgess@broadcom.com>
6144
6145 * frame.c (remove_prev_frame): New function.
6146 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6147 remove_prev_frame.
6148
a09dd441
PA
61492014-05-29 Pedro Alves <palves@redhat.com>
6150
6151 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6152 and make it const. When a single-step decays to a continue,
6153 clear 'step', not 'hw_step'. Pass whether the caller wanted
6154 to step to user_visible_resume_ptid, not what we ask the
6155 target to do.
6156
bdc36728
PA
61572014-05-29 Pedro Alves <palves@redhat.com>
6158
6159 * infrun.c (process_event_stop_test, handle_step_into_function)
6160 (handle_step_into_function_backward): Adjust.
6161 Don't set the even thread's stop_step and call stop_waiting before
6162 calling end_stepping_range. Instead do that ...
6163 (end_stepping_range): ... here. Take an ecs pointer parameter.
6164
22bcd14b
PA
61652014-05-29 Pedro Alves <palves@redhat.com>
6166
6167 * infrun.c (stop_stepping): Rename to ...
6168 (stop_waiting): ... this.
6169 (proceed): Update comment.
6170 (process_event_stop_test, handle_inferior_event)
6171 (handle_signal_stop, handle_step_into_function)
6172 (handle_step_into_function_backward): Update.
6173
4ae57c05
PA
61742014-05-29 Pedro Alves <palves@redhat.com>
6175
6176 * infcall.c (run_inferior_call): Don't check whether the current
6177 thread is running after the proceed call.
6178
329ea579
PA
61792014-05-29 Pedro Alves <palves@redhat.com>
6180 Tom Tromey <tromey@redhat.com>
6181
6182 * NEWS: Mention "maint set target-async", "set mi-async", and that
6183 background execution commands are now always available.
6184 * target.h (target_async_permitted): Update comment.
6185 * target.c (target_async_permitted, target_async_permitted_1):
6186 Default to 1.
6187 (set_target_async_command): Rename to ...
6188 (maint_set_target_async_command): ... this.
6189 (show_target_async_command): Rename to ...
6190 (maint_show_target_async_command): ... this.
6191 (_initialize_target): Adjust.
6192 * infcmd.c (prepare_execution_command): Make extern.
6193 * inferior.h (prepare_execution_command): Declare.
6194 * infrun.c (set_observer_mode): Leave target async alone.
6195 * mi/mi-interp.c (mi_interpreter_init): Install
6196 mi_on_sync_execution_done as sync_execution_done observer.
6197 (mi_on_sync_execution_done): New function.
6198 (mi_execute_command_input_handler): Don't print the prompt if we
6199 just started a synchronous command with an async target.
6200 (mi_on_resume): Check sync_execution before printing prompt.
6201 * mi/mi-main.h (mi_async_p): Declare.
6202 * mi/mi-main.c: Include gdbcmd.h.
6203 (mi_async_p): New function.
6204 (mi_async, mi_async_1): New globals.
6205 (set_mi_async_command, show_mi_async_command, mi_async): New
6206 functions.
6207 (exec_continue): Call prepare_execution_command.
6208 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6209 (mi_execute_async_cli_command): Use mi_async_p.
6210 (_initialize_mi_main): Install "set mi-async". Make
6211 "target-async" a deprecated alias.
6212
92bcb5f9
PA
62132014-05-29 Pedro Alves <palves@redhat.com>
6214
6215 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6216 (_initialize_cli_interp): Adjust.
6217 * event-loop.c: Include "observer.h".
6218 (start_event_loop): Notify 'command_error' observers instead of
6219 calling display_gdb_prompt. Remove FIXME comment.
6220 * event-top.c (display_gdb_prompt): Remove call into the
6221 interpreters.
6222 * inf-loop.c: Include "observer.h".
6223 (inferior_event_handler): Notify 'command_error' observers instead
6224 of calling display_gdb_prompt.
6225 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6226 observers instead of calling display_gdb_prompt.
6227 * interps.c (interp_set): Don't call display_gdb_prompt.
6228 (current_interp_display_prompt_p): Delete.
6229 * interps.h (interp_prompt_p): Delete declaration.
6230 (interp_prompt_p_ftype): Delete.
6231 (struct interp_procs) <prompt_proc_p>: Delete field.
6232 (current_interp_display_prompt_p): Delete declaration.
6233 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6234 (_initialize_mi_interp): Adjust.
6235 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6236 'command_error' observers.
6237 (tui_on_sync_execution_done, tui_on_command_error): New
6238 functions.
6239 (tui_display_prompt_p): Delete.
6240 (_initialize_tui_interp): Adjust.
6241
fd664c91
PA
62422014-05-29 Pedro Alves <palves@redhat.com>
6243
6244 PR gdb/13860
6245 * cli/cli-interp.c: Include infrun.h and observer.h.
6246 (cli_uiout, cli_interp): New globals.
6247 (cli_on_signal_received, cli_on_end_stepping_range)
6248 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6249 functions.
6250 (cli_interpreter_init): Install them as 'end_stepping_range',
6251 'signal_received' 'signal_exited', 'exited' and 'no_history'
6252 observers.
6253 (_initialize_cli_interp): Remove cli_interp local.
6254 * infrun.c (handle_inferior_event): Call the several stop reason
6255 observers instead of printing the stop reason directly.
6256 (end_stepping_range): New function.
6257 (print_end_stepping_range_reason, print_signal_exited_reason)
6258 (print_exited_reason, print_signal_received_reason)
6259 (print_no_history_reason): Make static, and add an uiout
6260 parameter. Print to that instead of to CURRENT_UIOUT.
6261 * infrun.h (print_end_stepping_range_reason)
6262 (print_signal_exited_reason, print_exited_reason)
6263 (print_signal_received_reason print_no_history_reason): New
6264 declarations.
6265 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6266 'mi_uiout'.
6267 <cli_uiout>: New field.
6268 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6269 uiout for CLI output. Install 'signal_received',
6270 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6271 observers.
6272 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6273 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6274 (mi_on_no_history): New functions.
6275 (ui_out_free_cleanup): Delete function.
6276 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6277 instead use the one already stored in the MI interpreter data.
6278 (mi_ui_out): Adjust.
6279 * tui/tui-interp.c: Include infrun.h and observer.h.
6280 (tui_interp): New global.
6281 (tui_on_signal_received, tui_on_end_stepping_range)
6282 (tui_on_signal_exited, tui_on_exited)
6283 (tui_on_no_history): New functions.
6284 (tui_init): Install them as 'end_stepping_range',
6285 'signal_received' 'signal_exited', 'exited' and 'no_history'
6286 observers.
6287 (_initialize_tui_interp): Delete tui_interp local.
6288
8817a6f2
PA
62892014-05-29 Pedro Alves <palves@redhat.com>
6290
6291 PR gdb/15713
6292 * linux-nat.c (linux_nat_resume_callback): Rename the second
6293 parameter to 'except'. Skip LP if it points to EXCEPT.
6294 (linux_nat_resume): Don't mark the event lwp as not stopped
6295 before resuming sibling lwps. Instead ask
6296 linux_nat_resume_callback to skip the event lwp. Mark it as not
6297 stopped after actually resuming it.
6298 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6299 resuming it.
6300 (wait_lwp): Mark the lwp as stopped here.
6301 (stop_wait_callback): Mark the lwp as not stopped right after
6302 resuming it. Don't mark lwps as stopped here.
6303 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6304 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6305
251bde03
PA
63062014-05-29 Pedro Alves <palves@redhat.com>
6307
6308 PR PR15693
6309 * infrun.c (resume): Determine how much to resume depending on
6310 whether the caller wanted a step, not whether we can hardware step
6311 the target. Mark all threads that we intend to run as running,
6312 unless we're calling an inferior function.
6313 (normal_stop): If the thread is running an infcall, don't finish
6314 thread state.
6315 * target.c (target_resume): Don't mark threads as running here.
6316
7f3c0343
JB
63172014-05-28 Joel Brobecker <brobecker@adacore.com>
6318
6319 * serial.c (_initialize_serial): Remove support for
6320 the "set remotebaud" and "show remotebaud" commands.
6321 * NEWS: Add entry documenting the removal of that command.
6322
ee34b3f9
YQ
63232014-05-28 Yao Qi <yao@codesourcery.com>
6324
6325 * charset.c: Fix typo in comments.
6326
add6c04d
GB
63272014-05-27 Gary Benson <gbenson@redhat.com>
6328
6329 * utils.c (internal_vproblem): Prompt for a bug report.
6330
92c48fc5
AW
63312014-05-26 Andy Wingo <wingo@igalia.com>
6332
6333 * guile/scm-arch.c (arscm_mark_arch_smob):
6334 * guile/scm-block.c (bkscm_mark_block_smob)
6335 (bkscm_mark_block_syms_progress_smob):
6336 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6337 * guile/scm-exception.c (exscm_mark_exception_smob):
6338 * guile/scm-frame.c (frscm_mark_frame_smob):
6339 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6340 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6341 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6342 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6343 (ppscm_mark_pretty_printer_worker_smob):
6344 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6345 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6346 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6347 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6348 mark functions.
6349 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6350 function.
6351
b2715b27
AW
63522014-05-26 Andy Wingo <wingo@igalia.com>
6353 Doug Evans <xdje42@gmail.com>
6354
6355 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6356 empty_base_class. All uses updated.
6357 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6358 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6359 Adapt all callers.
6360 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6361 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6362 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6363 (gdbscm_gsmob_has_property_p, add_property_name)
6364 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6365 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6366 (gdb-object-has-property?, gdb-object-properties): Remove.
6367 (gdb-object-kind): Renamed from gsmob-kind.
6368
214ab2da
AW
63692014-05-26 Andy Wingo <wingo@igalia.com>
6370
6371 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6372 * configure: Regenerate.
6373
589fdceb
MM
63742014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6375
6376 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6377
67b5c0c1
MM
63782014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6379
6380 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6381 (replay_memory_access_read_only, replay_memory_access_read_write)
6382 (replay_memory_access_types, replay_memory_access)
6383 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6384 (cmd_set_record_btrace, cmd_show_record_btrace)
6385 (cmd_show_replay_memory_access): New.
6386 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6387 (record_btrace_remove_breakpoint): Replace
6388 record_btrace_allow_memory_access with replay_memory_access.
6389 (_initialize_record_btrace): Add commands.
6390 * NEWS: Announce it.
6391
036cd381
RR
63922014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6393
6394 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6395
c77c1e42
RR
63962014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6397
6398 * MAINTAINERS (Write After Approval): Move self back from
6399 paper trail.
6400
45741a9c
PA
64012014-05-22 Pedro Alves <palves@redhat.com>
6402
6403 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6404 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6405 (disable_randomization, enum exec_direction_kind)
6406 (execution_direction, stop_registers, start_remote)
6407 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6408 (wait_for_inferior, normal_stop, get_last_target_status)
6409 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6410 (insert_step_resume_breakpoint_at_sal)
6411 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6412 (set_step_info, print_stop_event, signal_stop_state)
6413 (signal_print_state, signal_pass_state, signal_stop_update)
6414 (signal_print_update, signal_pass_update)
6415 (update_signals_program_target, clear_exit_convenience_vars)
6416 (displaced_step_dump_bytes, update_observer_mode)
6417 (signal_catch_update, gdb_signal_from_command): Move
6418 declarations ...
6419 * infrun.h: ... to this new file.
6420 * amd64-tdep.c: Include infrun.h.
6421 * annotate.c: Include infrun.h.
6422 * arch-utils.c: Include infrun.h.
6423 * arm-linux-tdep.c: Include infrun.h.
6424 * arm-tdep.c: Include infrun.h.
6425 * break-catch-sig.c: Include infrun.h.
6426 * breakpoint.c: Include infrun.h.
6427 * common/agent.c: Include infrun.h instead of inferior.h.
6428 * corelow.c: Include infrun.h.
6429 * event-top.c: Include infrun.h.
6430 * go32-nat.c: Include infrun.h.
6431 * i386-tdep.c: Include infrun.h.
6432 * inf-loop.c: Include infrun.h.
6433 * infcall.c: Include infrun.h.
6434 * infcmd.c: Include infrun.h.
6435 * infrun.c: Include infrun.h.
6436 * linux-fork.c: Include infrun.h.
6437 * linux-nat.c: Include infrun.h.
6438 * linux-thread-db.c: Include infrun.h.
6439 * monitor.c: Include infrun.h.
6440 * nto-tdep.c: Include infrun.h.
6441 * procfs.c: Include infrun.h.
6442 * record-btrace.c: Include infrun.h.
6443 * record-full.c: Include infrun.h.
6444 * remote-m32r-sdi.c: Include infrun.h.
6445 * remote-mips.c: Include infrun.h.
6446 * remote-notif.c: Include infrun.h.
6447 * remote-sim.c: Include infrun.h.
6448 * remote.c: Include infrun.h.
6449 * reverse.c: Include infrun.h.
6450 * rs6000-tdep.c: Include infrun.h.
6451 * s390-linux-tdep.c: Include infrun.h.
6452 * solib-irix.c: Include infrun.h.
6453 * solib-osf.c: Include infrun.h.
6454 * solib-svr4.c: Include infrun.h.
6455 * target.c: Include infrun.h.
6456 * top.c: Include infrun.h.
6457 * windows-nat.c: Include infrun.h.
6458 * mi/mi-interp.c: Include infrun.h.
6459 * mi/mi-main.c: Include infrun.h.
6460 * python/py-threadevent.c: Include infrun.h.
6461
98eb56a4
PA
64622014-05-22 Pedro Alves <palves@redhat.com>
6463
6464 * infrun.c (handle_inferior_event): Store the exit code for
6465 --return-child-result here, instead of ...
6466 (print_exited_reason): ... here.
6467
17b2616c
PA
64682014-05-21 Pedro Alves <palves@redhat.com>
6469
6470 PR gdb/13860
6471 * gdbthread.h (struct thread_control_state): New field
6472 `command_interp'.
6473 * infrun.c (follow_fork): Copy the new thread control field to the
6474 child fork thread.
6475 (clear_proceed_status_thread): Clear the new thread control field.
6476 (proceed): Set the new thread control field.
6477 * interps.h (command_interp): Declare.
6478 * interps.c (command_interpreter): New global.
6479 (command_interp): New function.
6480 (interp_exec): Set `command_interpreter' while here.
6481 * cli-out.c (cli_uiout_dtor): New function.
6482 (cli_ui_out_impl): Install it.
6483 * mi/mi-interp.c: Include cli-out.h.
6484 (mi_cmd_interpreter_exec): Add comment.
6485 (restore_current_uiout_cleanup): New function.
6486 (ui_out_free_cleanup): New function.
6487 (mi_on_normal_stop): If finishing an execution command started by
6488 a CLI command, or any kind of breakpoint-like event triggered,
6489 print the stop event to the output (CLI) stream.
6490 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6491
5166082f
PA
64922014-05-21 Pedro Alves <palves@redhat.com>
6493
6494 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6495 current source line having changed.
6496 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6497 * infrun.c (normal_stop): Adjust call to
6498 set_current_sal_from_frame.
6499 * source.c (clear_lines_listed_range): New function.
6500 (set_current_source_symtab_and_line, identify_source_line): Clear
6501 the lines listed range.
6502 (line_info): Handle the first "info line" after the current source
6503 line having changed.
6504 * stack.c (print_stack_frame): Remove center handling.
6505 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6506 center sal.line.
6507
c1ee2fb3
PA
65082014-05-21 Pedro Alves <palves@redhat.com>
6509
6510 * inf-child.c (inf_child_mourn_inferior): New function.
6511 * inf-child.h (inf_child_mourn_inferior): New declaration.
6512 * darwin-nat.c (darwin_mourn_inferior): Use
6513 inf_child_mourn_inferior.
6514 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6515 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6516 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6517 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6518 * windows-nat.c (windows_mourn_inferior): Likewise.
6519
5c6d4fb2
DE
65202014-05-21 Doug Evans <xdje42@gmail.com>
6521
250748cb 6522 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 6523
4a2722c5
DE
65242014-05-21 Doug Evans <xdje42@gmail.com>
6525
17292b30 6526 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
6527 (gdbscm_out_of_range_error): Ditto.
6528 (gdbscm_memory_error): Ditto.
250748cb
DE
6529 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6530 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
6531 (gdbscm_out_of_range_error): Update.
6532 (gdbscm_memory_error): Update.
6533 (gdbscm_scm_to_target_string_unsafe): Delete.
6534
6a3cb8e8
PA
65352014-05-21 Pedro Alves <palves@redhat.com>
6536
6537 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6538 globals.
6539 (inf_child_open_target): New function.
6540 (inf_child_open): Use inf_child_open_target to push the target
6541 instead of erroring out.
6542 (inf_child_disconnect, inf_child_close)
6543 (inf_child_maybe_unpush_target): New functions.
6544 (inf_child_target): Install inf_child_disconnect and
6545 inf_child_close. Store a pointer to the returned object.
6546 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6547 declarations.
6548 * target.c (auto_connect_native_target): New global.
6549 (show_default_run_target): New function.
6550 (find_default_run_target): Return NULL if automatically connecting
6551 to the native target is disabled.
6552 (_initialize_target): Install set/show auto-connect-native-target.
6553 * NEWS: Mention "set auto-connect-native-target", and "target
6554 native".
6555 * linux-nat.c (super_close): New global.
6556 (linux_nat_close): Call super_close.
6557 (linux_nat_add_target): Store a pointer to the base class's
6558 to_close method.
6559 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6560 inf_child_maybe_unpush.
6561 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6562 already pushed.
6563 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6564 the inferior. Use inf_child_maybe_unpush_target.
6565 (inf_ttrace_attach): Don't push the target if it is already
6566 pushed.
6567 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6568 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6569 after mourning the inferior. Use inf_child_maybe_unpush_target.
6570 (darwin_attach_pid): Don't push the target if it is already
6571 pushed.
6572 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6573 mourning the inferior. Use inf_child_maybe_unpush_target.
6574 (gnu_detach): Use inf_child_maybe_unpush_target.
6575 * go32-nat.c (go32_create_inferior): Don't push the target if it
6576 is already pushed.
6577 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6578 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6579 (procfs_open): Rename to ...
6580 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6581 comments. Can target_preopen before changing node. Call
6582 inf_child_open_target to push the target explicitly.
6583 (procfs_attach): Don't push the target if it is already pushed.
6584 (procfs_detach): Use inf_child_maybe_unpush_target.
6585 (procfs_create_inferior): Don't push the target if it is already
6586 pushed.
6587 (nto_native_ops): New global.
6588 (procfs_open): Reimplement.
6589 (procfs_native_open): New function.
6590 (init_procfs_targets): Install procfs_native_open as to_open of
6591 "target native". Store a pointer to the "native" target in
6592 nto_native_ops.
6593 * procfs.c (procfs_attach): Don't push the target if it is already
6594 pushed.
6595 (procfs_detach): Use inf_child_maybe_unpush_target.
6596 (procfs_mourn_inferior): Only unpush the target after mourning the
6597 inferior. Use inf_child_maybe_unpush_target.
6598 (procfs_init_inferior): Don't push the target if it is already
6599 pushed.
6600 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6601 if it is already pushed.
6602
930ee1b1
PA
66032014-05-21 Pedro Alves <palves@redhat.com>
6604
6605 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6606 and "procfs" targets are now called "native" instead.
6607
1f5d1b13
PA
66082014-05-21 Pedro Alves <palves@redhat.com>
6609
6610 * go32-nat.c (go32_open): Delete.
6611 (go32_target): Don't override the to_open method.
6612
132f8e03
PA
66132014-05-21 Pedro Alves <palves@redhat.com>
6614
6615 * nto-procfs.c (procfs_can_run): New function.
6616 (nto_procfs_ops): New global.
6617 (init_procfs_targets): New, based on procfs_target. Install
6618 "target native" in addition to "target procfs".
6619 (_initialize_procfs): Call init_procfs_targets instead of adding
6620 the target here.
6621
03c136c3
PA
66222014-05-21 Pedro Alves <palves@redhat.com>
6623
6624 * windows-nat.c (windows_target): Don't override to_shortname,
6625 to_longname or to_doc.
6626
a635d0f3
PA
66272014-05-21 Pedro Alves <palves@redhat.com>
6628
6629 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6630 to_doc.
6631
4f9b5133
PA
66322014-05-21 Pedro Alves <palves@redhat.com>
6633
6634 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6635 to_shortname, to_longname or to_doc.
6636
bc85afde
PA
66372014-05-21 Pedro Alves <palves@redhat.com>
6638
6639 * go32-nat.c (go32_target): Don't override to_shortname,
6640 to_longname or to_doc.
6641
4ebfc96e
PA
66422014-05-21 Pedro Alves <palves@redhat.com>
6643
6644 * inf-child.c (inf_child_open): Remove mention of "child".
6645 (inf_child_target): Rename target to "native" instead of "child".
6646
2648dfed
AA
66472014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6648
6649 * Makefile.in (SFILES): Delete "regset.c".
6650 (COMMON_OBS): Delete "regset.o".
6651 * regset.c: Remove.
6652 * regset.h (regset_alloc): Delete prototype.
6653
b13feb94
AA
66542014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6655
6656 * sparc-linux-tdep.c (sparc32_linux_gregset)
6657 (sparc32_linux_fpregset): New static regset structures.
6658 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6659 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6660 'fpregset' fields.
6661 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6662 (sparc64_linux_fpregset): New static regset structures.
6663 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6664 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6665 New static regset structures.
6666 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6667 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6668 New static regset structures.
6669 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6670 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6671 New static regset structures.
6672 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6673 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6674 New static regset structures.
6675 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6676
b4fd25c9
AA
66772014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6678
6679 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6680 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6681 register maps ("regmaps") from "*regset" to "*regmap". Do this
6682 for all regmap types and variables.
6683 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6684 (sparc32_linux_supply_core_gregset)
6685 (sparc32_linux_collect_core_gregset)
6686 (sparc32_linux_supply_core_fpregset)
6687 (sparc32_linux_collect_core_fpregset): Likewise.
6688 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6689 (sparc_gregmap, sparc_fpregmap): ... these.
6690 (sparc_supply_gregset, sparc_collect_gregset)
6691 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6692 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6693 (_initialize_sparc_nat): Rename regmaps.
6694 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6695 (sparc_gregmap, sparc_fpregmap): ... these.
6696 (sparc_supply_gregset, sparc_collect_gregset)
6697 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6698 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6699 Rename macros to...
6700 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6701 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6702 Likewise.
6703 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6704 Rename to...
6705 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6706 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6707 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6708 regmaps.
6709 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6710 (sparc32_bsd_fpregset): Rename to...
6711 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6712 (sparc32_bsd_fpregmap): ... these.
6713 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6714 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6715 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6716 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6717 (struct sparc_gregmap, struct sparc_fpregmap)
6718 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6719 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6720 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6721 (sparc32_supply_regset, sparc32_collect_gregset)
6722 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6723 prototypes.
6724 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6725 (sparc64_linux_ptrace_gregmap): ... this.
6726 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6727 (_initialize_sparc64_linux_nat): Rename regmaps.
6728 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6729 (sparc64_linux_core_gregmap): ... this.
6730 (sparc64_linux_supply_core_gregset)
6731 (sparc64_linux_collect_core_gregset)
6732 (sparc64_linux_supply_core_fpregset)
6733 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6734 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6735 (sparc64_sol2_fpregset): Rename to...
6736 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6737 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6738 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6739 regmaps.
6740 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6741 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6742 (sparc64_bsd_fpregset): Rename to...
6743 (struct sparc_gregmap, sparc64_sol2_gregmap)
6744 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6745 (sparc64_bsd_fpregmap): ... these.
6746 (sparc64_supply_gregset, sparc64_collect_gregset)
6747 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6748 prototypes.
6749 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6750 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6751 (sparc64fbsd_gregmap): ... this.
6752 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6753 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6754 Rename regmaps.
6755 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6756 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6757 (sparc64nbsd_collect_fpregset): Likewise.
6758 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6759 (sparc64nbsd_gregmap): ... this.
6760 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
6761 regmaps.
6762 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
6763 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
6764 (sparc64obsd_gregmap): ... this.
6765 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
6766 regmaps.
6767 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
6768 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
6769 (sparc32nbsd_gregmap): ... this.
6770 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
6771 regmaps.
6772
8fea3224
AA
67732014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6774
6775 * score-tdep.c (score7_linux_gregset): New static regset
6776 structure.
6777 (score7_linux_regset_from_core_section): Remove dynamic regset
6778 allocation.
6779 (score_gdbarch_init): Drop allocation of tdep structure.
6780 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
6781
24534243
AA
67822014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6783
6784 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
6785 regset structures.
6786 (am33_regset_from_core_section): Remove dynamic regset
6787 allocations.
6788
b7195f27
AA
67892014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6790
6791 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
6792 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
6793 structures.
6794 (mips_linux_regset_from_core_section): Remove dynamic regset
6795 allocations.
6796 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6797 'gregset64', 'fpregset', and 'fpregset64'.
6798 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
6799 deleted tdep fields.
6800
ecc37a5a
AA
68012014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6802
6803 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
6804 regset structures.
6805 (amd64_regset_from_core_section): Remove dynamic regset
6806 allocations.
6807 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
6808 structure.
6809 (amd64obsd_regset_from_core_section): Remove dynamic regset
6810 allocation.
6811 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
6812 Likewise.
6813 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
6814 x86-common regset supply function.
6815 * i386-tdep.c (i386_collect_gregset): Make static.
6816 (i386_gregset): New global regset structure.
6817 (i386_fpregset, i386_xstateregset): New static regset structures.
6818 (i386_regset_from_core_section): Remove dynamic regset
6819 allocations.
6820 (i386_gdbarch_init): Remove initialization of tdep fields
6821 'gregset', 'fpregset', and 'xstateregset'.
6822 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
6823 'fpregset', and 'xstateregset'.
6824 (i386_collect_gregset): Remove prototype.
6825 (i386_gregset): New declaration.
6826 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
6827 structure.
6828 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
6829 allocation.
6830
b7611c43
AA
68312014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6832
6833 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
6834 (arm_linux_vfpregset): New static regset structures.
6835 (arm_linux_regset_from_core_section): Remove dynamic allocation of
6836 regset structures.
6837 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
6838 and 'vfpregset' fields.
6839
a069a2bd
AA
68402014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6841
6842 * aarch64-linux-tdep.c (aarch64_linux_gregset)
6843 (aarch64_linux_fpregset): New static regset structures.
6844 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
6845 of regset structures.
6846 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
6847 'fpregset' fields.
6848
09424cff
AA
68492014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6850
6851 * regset.h (struct regset): Remove gdbarch field.
6852 * regset.c (regset_alloc): Drop initialization of gdbarch field.
6853 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6854 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
6855 Likewise.
6856 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
6857 (ppc32_linux_fpregset, ppc32_linux_vrregset)
6858 (ppc32_linux_vsxregset): Likewise.
6859 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
6860 via the regcache instead of the regset.
6861 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
6862 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
6863 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
6864 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
6865 Likewise.
6866
3ca7dae4
AA
68672014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6868
6869 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
6870 Constify structures.
6871 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6872 (alphanbsd_aout_gregset): Likewise.
6873 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
6874 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
6875 Likewise.
6876 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6877 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
6878 Likewise.
6879 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
6880 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
6881 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
6882 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
6883 * m88k-tdep.c (m88k_gregset): Likewise.
6884 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
6885 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
6886 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
6887 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
6888 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6889 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
6890 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6891 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
6892 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
6893 Likewise.
6894 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
6895 * sh-tdep.h (sh_corefile_gregset): Likewise.
6896 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
6897 * vax-tdep.c (vax_gregset): Likewise.
6898
5876f503
JK
68992014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6900
6901 Fix TLS access for -static -pthread.
6902 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
6903 (try_thread_db_load_1): Initialize it.
6904 (thread_db_get_thread_local_address): Call it if LM is zero.
6905 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
6906 * target.h (struct target_ops) (to_get_thread_local_address): Add
6907 load_module_addr comment.
6908
0256a6ac
PA
69092014-05-21 Pedro Alves <palves@redhat.com>
6910
6911 * dcache.c (dcache_read_memory_partial): If reading the cache line
6912 fails, fallback to reading just the memory the caller wanted.
6913
227533ac
DE
69142014-05-20 Doug Evans <dje@google.com>
6915
6916 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
6917 instead of get_current_arch.
6918
936d2992
PA
69192014-05-20 Pedro Alves <palves@redhat.com>
6920
6921 * NEWS: Mention that compare-sections now works with all targets.
6922
6923 * remote.c (PACKET_qCRC): New enum value.
6924 (remote_verify_memory): Don't send qCRC if the target has no
6925 execution. Use packet_support/packet_ok. If the target doesn't
6926 support the qCRC packet, fallback to a deep memory copy.
6927 (compare_sections_command): Say "target image" instead of "remote
6928 executable".
6929 (_initialize_remote): Add PACKET_qCRC to the list of config
6930 packets that have no associated command. Extend comment.
6931 * target.c (simple_verify_memory, default_verify_memory): New
6932 function.
6933 * target.h (struct target_ops) <to_verify_memory>: Default to
6934 default_verify_memory.
6935 (simple_verify_memory): New declaration.
6936 * target-delegates.c: Regenerate.
6937
e59fa00f
MM
69382014-05-20 Markus Metzger <markus.t.metzger@intel.com>
6939
6940 * record-btrace.c (record_btrace_step_thread): Check for empty history.
6941
f2205de0
HZ
69422014-05-20 Hui Zhu <hui@codesourcery.com>
6943 Yao Qi <yao@codesourcery.com>
6944
6945 PR backtrace/16558
6946 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
6947 and change address of sp and pc.
6948
c4e54771
TT
69492014-05-19 Tom Tromey <tromey@redhat.com>
6950
6951 * gdbtypes.c (rank_function): Use XNEWVEC.
6952 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
6953
73051182
DE
69542014-05-19 Doug Evans <dje@google.com>
6955
6956 * dwarf2read.c (build_type_psymtabs_1): Renamed from
6957 build_type_unit_groups and moved closer to only caller. Remove
6958 arguments. All references updated. Remove outdated .gdb_index
6959 comment.
6960 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
6961 build_type_psymtabs_1.
6962
8832e7e3
DE
69632014-05-19 Doug Evans <dje@google.com>
6964
6965 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
6966 n_type_unit_groups, all_type_unit_groups. All uses removed.
6967 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
6968 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
6969 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
6970 (add_type_unit_group_to_table): Delete.
6971
cd8ae15e
DE
69722014-05-19 Doug Evans <dje@google.com>
6973
6974 * eval.c (evaluate_subexp_standard): Add some comments.
6975
08f4850b
DE
69762014-05-17 Doug Evans <xdje42@gmail.com>
6977
6978 * progspace.c (remove_program_space): Delete, unused.
6979 * progspace.h (remove_program_space): Ditto.
6980
bed8455c
DE
69812014-05-17 Doug Evans <xdje42@gmail.com>
6982
6983 * inferior.c (prune_inferiors): Fix comment.
6984 (remove_inferior_command): Call prune_program_spaces.
6985
8d551b02
DE
69862014-05-16 Doug Evans <dje@google.com>
6987
6988 New command line option -D.
6989 * NEWS: Mention it.
6990 * main.c (set_gdb_data_directory): New function.
6991 (captured_main): Recognize -D. Flag error for --data-directory "".
6992 Call set_gdb_data_directory.
6993 (print_gdb_help): Print --data-directory, -D.
6994 * main.h (set_gdb_data_directory): Declare.
6995 * top.c (staged_gdb_datadir): New static global.
6996 (set_gdb_datadir): Call set_gdb_data_directory
6997 (show_gdb_datadir): New function.
6998 (init_main): Update init of data-directory parameter.
6999
18848e28
GF
70002014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7001
7002 Import the "dirfd" gnulib module.
7003 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7004 * gnulib/aclocal.m4: Update.
7005 * gnulib/config.in: Update.
7006 * gnulib/configure: Update.
7007 * gnulib/import/Makefile.am: Update.
7008 * gnulib/import/Makefile.in: Update.
7009 * gnulib/import/dirfd.c: New.
7010 * gnulib/import/m4/dirfd.m4: New.
7011 * gnulib/import/m4/gnulib-cache.m4: Update.
7012 * gnulib/import/m4/gnulib-comp.m4: Update.
7013
95c64f92
YQ
70142014-05-16 Pierre Muller <muller@sourceware.org>
7015 Yao Qi <yao@codesourcery.com>
7016
7017 * valprint.c (print_wchar): Move the code on checking whether
7018 W is a printable wide char to the default branch of switch
7019 statement below. Call wchar_printable instead of gdb_iswprint.
7020
cac395ea
TM
70212014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7022
19679eca 7023 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
7024 ldr.w and ldrd instructions.
7025
83655187
DE
70262014-05-15 Doug Evans <dje@google.com>
7027
7028 * dwarf2read.c (read_structure_type): Delete outdated comments.
7029
dd756689
TT
70302014-05-14 Tom Tromey <tromey@redhat.com>
7031
7032 * macrocmd.c (print_macro_definition): Reindent.
7033
75ddda77
DE
70342014-05-13 Doug Evans <xdje42@gmail.com>
7035
7036 * python/py-cmd.c (cmdpy_completer): Add comment.
7037 (completers): Make const.
7038
b0f16a3e
SM
70392014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7040
7041 * infrun.c (resume): Remove should_resume (unused). Move up
7042 declaration of resume_ptid.
7043
033c3379
TT
70442014-05-13 Tom Tromey <tromey@redhat.com>
7045
7046 * language.h (unop_type_check): Remove.
7047 (binop_type_check): Don't declare.
7048
9b44a3a5
AA
70492014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7050
7051 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7052 call to regcache_raw_collect.
7053
303a33fa
SM
70542014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7055
7056 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7057 mi_console->quote as the quoting character.
7058
196100a0
SM
70592014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7060
7061 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7062
f989a1c8
TT
70632014-04-29 Tom Tromey <tromey@redhat.com>
7064
7065 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7066 "show debug varobj".
7067
9404b58f
KM
70682014-05-07 Kyle McMartin <kyle@redhat.com>
7069
7070 Pushed by Joel Brobecker <brobecker@adacore.com>.
7071 * aarch64-tdep.c (aarch64_software_single_step): New function.
7072 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7073 with aarch64_software_single_step.
7074
5e49ba57
JB
70752014-05-05 Joel Brobecker <brobecker@adacore.com>
7076
7077 GDB 7.7.1 released.
7078
c888a17d
KS
70792014-05-05 Keith Seitz <keiths@redhat.com>
7080
7081 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7082 variable or history value is successfully parsed.
7083
290a839c
YQ
70842014-05-05 Yao Qi <yao@codesourcery.com>
7085 Pedro Alves <palves@redhat.com>
7086
7087 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7088 address of blocks that intersects the requested range. Trim
7089 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7090 sections.
7091 * ctf.c (ctf_xfer_partial): Likewise.
7092
91256dc2
YQ
70932014-05-05 Yao Qi <yao@codesourcery.com>
7094
7095 * printcmd.c (display_command): Remove the check to
7096 target_has_execution.
7097
07284463
MK
70982014-05-03 Mark Kettenis <kettenis@gnu.org>
7099
7100 * ppcobsd-nat.c: Include "obsd-nat.h".
7101 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7102 add_target.
7103 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7104
30a1e6cc
SDJ
71052014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7106
7107 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7108 and 16-bit signed and unsigned arguments. Update comment.
7109 (stap_parse_probe_arguments): Extend code to handle such
7110 arguments. Use warning instead of complaint to notify about
7111 unrecognized bitness.
7112
f33da99a
SDJ
71132014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7114
7115 PR breakpoints/16889
7116 * stap-probe.c (stap_parse_probe_arguments): Simplify
7117 check for non-prefixed probes (i.e., probes whose
7118 arguments do not start with "N@"). Always set the
7119 argument type to a sane value.
7120
95cf3b38
DT
71212014-05-01 David Taylor <dtaylor@emc.com>
7122
7123 * remote.c (compare_sections_command): Add -r option to compare
7124 all loadable read-only sections.
7125
1cfdf534
SC
71262014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7127
7128 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7129 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7130 Update all callers.
7131 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7132 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7133 Remove unused CORE_ADDR argument. Update all callers.
7134
ca4f7f8b
PA
71352014-04-29 Pedro Alves <palves@redhat.com>
7136
7137 * remote.c (struct packet_config) <detect>: Extend comment.
7138 (add_packet_config_cmd): Don't set the config's detect or support
7139 fields here.
7140 (init_all_packet_configs): Also initialize the config's 'detect'
7141 field.
7142 (reset_all_packet_configs_support): New function.
7143 (remote_open_1): Call reset_all_packet_configs_support instead of
7144 init_all_packet_configs.
7145 (_initialize_remote): Initialize all packet configs. Assert that
7146 all packets have an associated command, except a few known
7147 outliers.
7148
11c1ba78
JB
71492014-04-28 Joel Brobecker <brobecker@adacore.com>
7150
7151 * dwarf2read.c (read_subrange_type): Handle dynamic
7152 DW_AT_lower_bound attributes.
7153
8739bc53
JB
71542014-04-28 Joel Brobecker <brobecker@adacore.com>
7155
7156 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7157 dynamic bounds before computing its upper bound.
7158 (ada_discrete_type_low_bound): Same as above with the lower bound.
7159
6f8a3220
JB
71602014-04-28 Joel Brobecker <brobecker@adacore.com>
7161
7162 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7163 range types. Adjust the array handling implementation to
7164 take advantage of this change.
7165 (resolve_dynamic_range): New function, mostly extracted from
7166 resolve_dynamic_bounds.
7167 (resolve_dynamic_array): New function, mostly extracted from
7168 resolve_dynamic_bounds.
7169 (resolve_dynamic_bounds): Delete.
7170 (resolve_dynamic_type): Reimplement. Add handling of
7171 TYPE_CODE_RANGE types.
7172
4d072ce4
JB
71732014-04-28 Joel Brobecker <brobecker@adacore.com>
7174
7175 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7176 handling of parallel ___XA types.
7177
52865325
JB
71782014-04-28 Joel Brobecker <brobecker@adacore.com>
7179
7180 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7181 unnecessary second call to static_unwrap_type.
7182
433e77fa
HZ
71832014-04-27 Hui Zhu <hui@codesourcery.com>
7184
7185 * stack.c (print_frame_info): Call do_gdb_disassembly with
7186 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7187
b51a69ee
DE
71882014-04-26 Doug Evans <xdje42@gmail.com>
7189
7190 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7191
7ae1a6a6
PA
71922014-04-25 Pedro Alves <palves@redhat.com>
7193
7194 PR server/16255
7195 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7196 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7197 and newline from built string.
7198 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7199 (linux_ptrace_attach_fail_reason): ... this.
7200 * linux-nat.c (linux_nat_attach): Adjust to use
7201 linux_ptrace_attach_fail_reason.
7202
4082afcc
PA
72032014-04-25 Pedro Alves <palves@redhat.com>
7204
7205 * remote.c (struct remote_state): Remove multi_process_aware,
7206 non_stop_aware, cond_tracepoints, cond_breakpoints,
7207 breakpoint_commands, fast_tracepoints, static_tracepoints,
7208 install_in_trace, disconnected_tracing,
7209 enable_disable_tracepoints, string_tracing, and
7210 augmented_libraries_svr4_read fields.
7211 (remote_multi_process_p): Move further below in the file.
7212 (struct packet_config): Add comments.
7213 (update_packet_config): Delete function.
7214 (show_packet_config_cmd): Use packet_config_support.
7215 (add_packet_config_cmd): Use NULL as set callback.
7216 (packet_ok): "set remote foo-packet"-style commands no longer
7217 change config->supported -- adjust.
7218 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7219 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7220 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7221 (PACKET_QNonStop, PACKET_multiprocess_feature)
7222 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7223 (PACKET_DisconnectedTracing_feature)
7224 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7225 (set_remote_protocol_packet_cmd): Delete function.
7226 (packet_config_support, packet_support): New functions.
7227 (set_remote_protocol_Z_packet_cmd): Don't call
7228 update_packet_config.
7229 (remote_query_attached, remote_pass_signals)
7230 (remote_program_signals, remote_threads_info)
7231 (remote_threads_extra_info, remote_start_remote): Use
7232 packet_support.
7233 (remote_start_remote): Use packet_config_support and
7234 packet_support.
7235 (init_all_packet_configs): Set all packets to unknown support,
7236 instead of calling update_packet_config.
7237 (remote_check_symbols): Use packet_support.
7238 (remote_supported_packet): Unconditionally set the packet config's
7239 support status.
7240 (remote_multi_process_feature, remote_non_stop_feature)
7241 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7242 (remote_breakpoint_commands_feature)
7243 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7244 (remote_install_in_trace_feature)
7245 (remote_disconnected_tracing_feature)
7246 (remote_enable_disable_tracepoint_feature)
7247 (remote_string_tracing_feature)
7248 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7249 (remote_protocol_features): Adjust to use remote_supported_packet
7250 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7251 "ConditionalTracepoints", "ConditionalBreakpoints",
7252 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7253 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7254 "EnableDisableTracepoints", and "tracenz".
7255 (remote_query_supported): Use packet_support.
7256 (remote_open_1): Adjust.
7257 (extended_remote_attach_1): Use packet_support. Switch on the
7258 result of packet_ok instead of checking whether the packet ended
7259 up disabled.
7260 (remote_vcont_resume): Use packet_support.
7261 (remote_resume, remote_stop_ns, fetch_register_using_p)
7262 (remote_prepare_to_store, store_register_using_P)
7263 (check_binary_download, remote_write_bytes): Use packet_support.
7264 (remote_vkill): Use packet_support. Switch on the result of
7265 packet_ok instead of checking whether the packet ended up
7266 disabled.
7267 (extended_remote_supports_disable_randomization): Use
7268 packet_support.
7269 (extended_remote_run): Switch on the result of packet_ok instead
7270 of checking whether the packet ended up disabled.
7271 (remote_insert_breakpoint, remote_remove_breakpoint)
7272 (remote_insert_watchpoint, remote_remove_watchpoint)
7273 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7274 packet_support.
7275 (remote_search_memory): Use packet_config_support.
7276 (remote_get_thread_local_address, remote_get_tib_address)
7277 (remote_hostio_send_command, remote_can_execute_reverse): Use
7278 packet_support.
7279 (remote_supports_cond_tracepoints)
7280 (remote_supports_cond_breakpoints)
7281 (remote_supports_fast_tracepoints)
7282 (remote_supports_static_tracepoints)
7283 (remote_supports_install_in_trace)
7284 (remote_supports_enable_disable_tracepoint)
7285 (remote_supports_string_tracing)
7286 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7287 the packet config says the feature is enabled or disabled.
7288 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7289 (remote_get_trace_status): Use packet_support.
7290 (remote_set_disconnected_tracing): Adjust to check whether the
7291 feature is enabled with packet_support.
7292 (remote_set_trace_buffer_size, remote_use_agent)
7293 (remote_can_use_agent, remote_supports_btrace): Use
7294 packet_support.
7295 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7296 Use packet_config_support.
7297 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7298 the packet config says the feature is enabled or disabled.
7299 (set_range_stepping): Use packet_support.
7300
bdb52a22
TT
73012014-04-25 Tom Tromey <tromey@redhat.com>
7302
7303 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7304 argument.
7305
e9475ead
SA
73062014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7307
7308 * NEWS: Mention support for C99 variable length arrays.
7309
82eacd52
JB
73102014-04-24 Joel Brobecker <brobecker@adacore.com>
7311
7312 * ada-lang.c (standard_exc): Expand introductory comment.
7313
01f9f808
MS
73142014-04-24 Michael Sturm <michael.sturm@mintel.com>
7315 Walfred Tedeschi <walfred.tedeschi@intel.com>
7316
7317 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7318 AVX512 registers.
7319 (amd64_linux_read_description): Add code to handle AVX512 xstate
7320 mask and return respective tdesc.
7321 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7322 and features/i386/x32-avx512-linux.c.
7323 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7324 (amd64_linux_core_read_description): Add code to handle AVX512
7325 xstate mask and return respective tdesc.
7326 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7327 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7328 calculation.
7329 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7330 (tdesc_amd64_avx512_linux): New prototype.
7331 (tdesc_x32_avx512_linux): Likewise.
7332 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7333 features/i386/x32-avx512.c.
7334 (amd64_ymm_avx512_names): New register names for pseudo
7335 registers YMM16-31.
7336 (amd64_ymmh_avx512_names): New register names for raw registers
7337 YMMH16-31.
7338 (amd64_k_names): New register names for K registers.
7339 (amd64_zmmh_names): New register names for ZMM raw registers.
7340 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7341 (amd64_xmm_avx512_names): New register names for XMM16-31
7342 registers.
7343 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7344 registers.
7345 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7346 if feature is present.
7347 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7348 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7349 (AMD64_NUM_REGS): Adjust to new number of registers.
7350 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7351 registers supplied via XSTATE by AVX512 registers.
7352 (i386_linux_read_description): Add case for AVX512.
7353 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7354 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7355 (i386_linux_core_read_description): Add case for AVX512.
7356 (i386_linux_init_abi): Install supported register note section
7357 for AVX512.
7358 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7359 AVX512.
7360 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7361 registers to be number of zmm7h + 1.
7362 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7363 * i386-tdep.c: Include features/i386/i386-avx512.c.
7364 (i386_zmm_names): Add ZMM pseudo register names array.
7365 (i386_zmmh_names): Add ZMM raw register names array.
7366 (i386_k_names): Add K raw register names array.
7367 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7368 registers. AVX512 has 16 more ZMM registers than there are YMM
7369 registers.
7370 (i386_zmmh_regnum_p): Add function to look up register number of
7371 ZMM raw registers.
7372 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7373 (i386_k_regnum_p): Likewise for K raw registers.
7374 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7375 registers added by AVX512.
7376 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7377 registers added by AVX512.
7378 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7379 added by AVX512.
7380 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7381 (i386_pseudo_register_name): Add ZMM pseudo registers.
7382 (i386_zmm_type): Construct and return vector registers type for ZMM
7383 registers.
7384 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7385 ZMM0-31 pseudo registers and K registers.
7386 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7387 and YMM16-31 registers from register cache.
7388 (i386_pseudo_register_write): Add code to write K, ZMM and
7389 YMM16-31 registers.
7390 (i386_register_reggroup_p): Add code to include/exclude AVX512
7391 registers in/from respective register groups.
7392 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7393 registers if feature is present in xcr0.
7394 (i386_gdbarch_init): Add code to initialize AVX512 feature
7395 variables in tdep structure, wire in pseudo registers and call
7396 initialize_tdesc_i386_avx512.
7397 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7398 variables.
7399 (i386_regnum): Add AVX512 registers.
7400 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7401 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7402 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7403 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7404 512 bits wide.
7405 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7406 (i386_ymm_avx512_regnum_p): Likewise.
7407 (i386_k_regnum_p): Likewise.
7408 (i386_zmm_regnum_p): Likewise.
7409 (i386_zmmh_regnum_p): Likewise.
7410 * i387-tdep.c : Update year in copyright notice.
7411 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7412 XSAVE buffer.
7413 (XSAVE_YMM_AVX512_ADDR): New macro.
7414 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7415 XSAVE buffer.
7416 (XSAVE_XMM_AVX512_ADDR): New macro.
7417 (xsave_avx512_k_offset): New table for K register offsets in
7418 XSAVE buffer.
7419 (XSAVE_AVX512_K_ADDR): New macro.
7420 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7421 in XSAVE buffer.
7422 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7423 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7424 buffer.
7425 (i387_collect_xsave): Add code to collect AVX512 registers from
7426 XSAVE buffer.
7427 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7428 of XMM16-31 registers.
7429 (I387_NUM_K_REGS): New define for number of K registers.
7430 (I387_K0_REGNUM): New define for K0 register number.
7431 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7432 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7433 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7434 registers.
7435 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7436 (I387_XMM16_REGNUM): New define for XMM16 register number.
7437 (I387_YMM0_REGNUM): New define for YMM0 register number.
7438 (I387_KEND_REGNUM): New define for last K register number.
7439 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7440 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7441 number.
7442 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7443 number.
7444 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7445 size.
7446 * features/Makefile: Add AVX512 related files.
7447 * features/i386/32bit-avx512.xml: New file.
7448 * features/i386/64bit-avx512.xml: Likewise.
7449 * features/i386/amd64-avx512-linux.c: Likewise.
7450 * features/i386/amd64-avx512-linux.xml: Likewise.
7451 * features/i386/amd64-avx512.c: Likewise.
7452 * features/i386/amd64-avx512.xml: Likewise.
7453 * features/i386/i386-avx512-linux.c: Likewise.
7454 * features/i386/i386-avx512-linux.xml: Likewise.
7455 * features/i386/i386-avx512.c: Likewise.
7456 * features/i386/i386-avx512.xml: Likewise.
7457 * features/i386/x32-avx512-linux.c: Likewise.
7458 * features/i386/x32-avx512-linux.xml: Likewise.
7459 * features/i386/x32-avx512.c: Likewise.
7460 * features/i386/x32-avx512.xml: Likewise.
7461 * regformats/i386/amd64-avx512-linux.dat: New file.
7462 * regformats/i386/amd64-avx512.dat: Likewise.
7463 * regformats/i386/i386-avx512-linux.dat: Likewise.
7464 * regformats/i386/i386-avx512.dat: Likewise.
7465 * regformats/i386/x32-avx512-linux.dat: Likewise.
7466 * regformats/i386/x32-avx512.dat: Likewise.
7467 * NEWS: Add note about new support for AVX512.
7468
7469
08351840
PA
74702014-04-23 Pedro Alves <palves@redhat.com>
7471
7472 * breakpoint.c (insert_bp_location): Tolerate errors if the
7473 breakpoint is set in a user-loaded objfile.
7474 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7475 location is marked shlib_disabled. If the breakpoint is set in a
7476 user-loaded objfile is a GDB-side memory breakpoint, validate it
7477 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7478 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7479 flag.
7480 * mem-break.c (memory_validate_breakpoint): New function.
7481 * objfiles.c (userloaded_objfile_contains_address_p): New
7482 function.
7483 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7484 * target.h (memory_validate_breakpoint): New declaration.
7485
076855f9
PA
74862014-04-23 Pedro Alves <palves@redhat.com>
7487
7488 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7489 the breakpoint is set in a shared library, only suppress
7490 errors for software breakpoints, not hardware breakpoints.
7491
483805cf
PA
74922014-04-22 Pedro Alves <palves@redhat.com>
7493
7494 * infrun.c (schedlock_applies): New function, factored out from
7495 find_thread_needs_step_over.
7496 (find_thread_needs_step_over): Use it.
7497 (switch_back_to_stepped_thread): Always clear trap_expected if the
7498 step over is finished. Return early if scheduler locking applies.
7499 Look for the stepping thread and a potential step-over thread with
7500 a single loop.
7501 (currently_stepping_or_nexting_callback): Delete.
7502
a75fef0e
NC
75032014-04-22 Nick Clifton <nickc@redhat.com>
7504
7505 * NEWS: Mention that ARM sim now supports tracing.
7506
48b6e87e
YQ
75072014-04-22 Yao Qi <yao@codesourcery.com>
7508
7509 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7510 to ...
7511 * tracefile.c (tracefile_fetch_registers): ... it. New
7512 function.
7513 * tracefile.h (tracefile_fetch_registers): Declare.
7514 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7515 tracefile_fetch_registers.
7516
17617f2d
EZ
75172014-04-19 Eli Zaretskii <eliz@gnu.org>
7518
7519 PR gdb/14018
7520 * windows-nat.c (thread_rec): Don't display a warning when
7521 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7522 fails for any reason, set th->suspended to -1, so that we don't
7523 try to resume such a thread. Also, don't return NULL in these
7524 cases, to avoid completely ruin the session due to "PC register is
7525 not available" error.
7526 (do_windows_fetch_inferior_registers): Check errors in
7527 GetThreadContext call.
7528 (windows_continue): Accept an additional argument KILLED; if not
7529 zero, ignore errors in the SetThreadContext call, since the
7530 inferior was killed and is shutting down.
7531 (windows_resume, get_windows_debug_event)
7532 (windows_create_inferior, windows_mourn_inferior)
7533 (windows_kill_inferior): All callers of windows_continue changed
7534 to adjust to its new calling sequence.
7535
5723a6fd
YQ
75362014-04-19 Yao Qi <yao@codesourcery.com>
7537
7538 * ctf.c (ctf_open): Call post_create_inferior.
7539
614d5099
YQ
75402014-04-19 Yao Qi <yao@codesourcery.com>
7541
7542 * ctf.c (handle_id): New static variable.
7543 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7544 value. Get the declaration of event "register" and get length
7545 of field "contents".
7546
dac3e710
YQ
75472014-04-19 Yao Qi <yao@codesourcery.com>
7548
7549 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7550
2bca57ba
SC
75512014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7552
7553 * valops.c (oload_method_static): Remove unnecessary argument
7554 METHOD. Update all callers.
7555
51d48146
PA
75562014-04-18 Pedro alves <palves@redhat.com>
7557 Tom Tromey <tromey@redhat.com>
7558
7559 PR backtrace/15558
7560 * frame.c (get_prev_frame_1): Rename to ...
7561 (get_prev_frame_always): ... this, and make extern. Adjust.
7562 (skip_artificial_frames): Use get_prev_frame_always.
7563 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7564 (get_frame_unwind_stop_reason): Adjust to rename.
7565 * frame.h (get_prev_frame_always): Declare.
7566 * inline-frame.c: Include frame.h.
7567 (inline_frame_this_id): Use get_prev_frame_always.
7568
1bdad2e0
TG
75692014-04-18 Tristan Gingold <gingold@adacore.com>
7570
7571 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7572 code by using bfd_mach_o_get_base_address.
7573
7ce16bd4
UW
75742014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7575
7576 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7577 (spu_ax_pseudo_register_collect): New function.
7578 (spu_ax_pseudo_register_push_stack): Likewise.
7579 (spu_dwarf_reg_to_regnum): Likewise.
7580 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7581
2ed3c037
UW
75822014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7583
7584 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7585 Replace FRAME argument with FRAME_ID.
7586 * gdbarch.c, gdbarch.h: Regenerate.
7587 * findvar.c (default_value_from_register): Add GDBARCH argument;
7588 replace FRAME by FRAME_ID. No longer call get_frame_id.
7589 (value_from_register): Update call to gdbarch_value_from_register.
7590 * value.h (default_value_from_register): Update prototype.
7591 * s390-linux-tdep.c (s390_value_from_register): Update interface
7592 and call to default_value_from_register.
7593 * spu-tdep.c (spu_value_from_register): Likewise.
7594
7595 * findvar.c (address_from_register): Remove TYPE argument.
7596 Do not call value_from_register; use gdbarch_value_from_register
7597 with null_frame_id instead.
7598 * value.h (address_from_register): Update prototype.
7599 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7600 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7601 address_from_register interface change.
7602
71e50e83
YQ
76032014-04-17 Yao Qi <yao@codesourcery.com>
7604
7605 * gdbtypes.h: Update comments to link to types and macros'
7606 definitions.
7607
7a23c549
SC
76082014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7609
7610 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7611
22869d73
KS
76122014-04-16 Keith Seitz <keiths@redhat.com>
7613
7614 PR gdb/15827
7615 * dwarf2read.c (skip_one_die): Check that all relative-offset
7616 sibling DIEs fall within range of the current reader's buffer.
7617 (read_partial_die): Likewise.
7618
c4f87ca6
KS
76192014-04-16 Keith Seitz <keiths@redhat.com>
7620
7621 PR c++/16597
7622 * cp-namespace.c (lookup_symbol_file): If the type name of
7623 `this' is NULL, return immediately.
7624
b50c8614
KS
76252014-04-14 Keith Seitz <keiths@redhat.com>
7626
7627 PR c++/16253
7628 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7629 from symbol_matches_domain in symtab.c. All local callers
7630 of symbol_matches_domain updated.
7631 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7632 search STRUCT_DOMAIN.
7633 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7634 independently. standard_lookup will do that automatically.
7635 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7636 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7637 (cp_lookup_symbol_in_namespace): Likewise.
7638 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7639 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7640 may return a STRUCT_DOMAIN match.
7641 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7642 * cp-support.c: Include language.h.
7643 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7644 VAR_DOMAIN.
7645 * psymtab.c (match_partial_symbol): Compare the requested
7646 domain with the symbol's domain directly.
7647 (lookup_partial_symbol): Likewise.
7648 * symtab.c (lookup_symbol_in_language): Explain when/why
7649 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7650 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7651 appropriate languages.
7652 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7653 and moved to ada-lang.c
7654 (lookup_block_symbol): Explain that this function only returns
7655 symbol matching the requested DOMAIN.
7656 Compare the requested domain with the symbol's domain directly.
7657 (iterate_over_symbols): Compare the requested domain with the
7658 symbol's domain directly.
7659 * symtab.h (symbol_matches_domain): Remove.
7660
3d567982
TT
76612014-04-14 Tom Tromey <tromey@redhat.com>
7662
7663 PR c++/15246:
7664 * c-exp.y (type_aggregate_p): New function.
7665 (qualified_name, classify_inner_name): Use it.
7666 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7667 and TYPE_TARGET_TYPE of an enum type.
7668 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7669 an enum type.
7670 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7671 handle TYPE_DECLARED_CLASS.
7672 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7673 types.
7674 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7675 * valops.c (enum_constant_from_type): New function.
7676 (value_aggregate_elt): Use it.
7677 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7678 TYPE_CODE_ENUM.
7679
c848d642
TT
76802014-04-14 Tom Tromey <tromey@redhat.com>
7681
7682 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7683 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7684 const.
7685 * value.h (value_aggregate_elt): Update.
7686
0626fc76
TT
76872014-04-14 Tom Tromey <tromey@redhat.com>
7688
7689 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7690
5ecaaa66
SA
76912014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7692
7693 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7694 (evaluate_subexp_standard): Pass noside argument.
7695 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7696 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7697 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7698 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7699 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7700
1612e0c0
SA
77012014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7702
7703 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7704 points to a constant blob.
7705
c451ebe5
SA
77062014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7707
7708 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7709 property and store it as the high bound and flag the range accordingly.
7710 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7711 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7712 * gdbtypes.h (enum range_flags): New enum.
7713 (struct range_bounds): Add flags member.
7714
1d42e4c4
SA
77152014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7716
7717 * c-typeprint.c (c_type_print_varspec_suffix): Added
7718 check for not yet resolved high bound. If unresolved, print
7719 "variable length" string to the console instead of random
7720 length.
7721
9f1f738a
SA
77222014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7723
7724 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7725 value.
7726 (ada_template_to_fixed_record_type_1): Likewise.
7727 (ada_to_fixed_type_1): Likewise.
7728 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7729 (cp_print_value): Likewise.
7730 * d-valprint.c (dynamic_array_type): Likewise.
7731 * findvar.c (address_of_variable): Likewise.
7732 * jv-valprint.c (java_value_print): Likewise.
7733 * valops.c (value_ind): Likewise.
7734 * value.c (coerce_ref): Likewise.
7735
3c8452d4
SA
77362014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7737
7738 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7739 value and retrieve the dynamic type size.
7740
4ad88275
SA
77412014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7742
7743 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7744 passed to sizeof is dynamic evaluate the argument to compute the length.
7745
80180f79
SA
77462014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7747 Joel Brobecker <brobecker@adacore.com>
7748
7749 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7750 (dwarf2_evaluate_property): New function.
7751 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7752 * dwarf2read.c (attr_to_dynamic_prop): New function.
7753 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7754 attribute.
7755 * gdbtypes.c: Include dwarf2loc.h.
7756 (is_dynamic_type): New function.
7757 (resolve_dynamic_type): New function.
7758 (resolve_dynamic_bounds): New function.
7759 (get_type_length): New function.
7760 (check_typedef): Use get_type_length to compute type length.
7761 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7762 (TYPE_LOW_BOUND_KIND): New macro.
7763 (is_dynamic_type): New function prototype.
7764 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7765 to resolve dynamic properties of the type. Update comment.
7766 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7767
a1556843
RH
77682014-04-14 Richard Henderson <rth@redhat.com>
7769
7770 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
7771
0be03e84
DE
77722014-04-12 Siva Chandra Reddy <sivachandra@google.com>
7773 Doug Evans <xdje42@gmail.com>
7774
7775 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
7776 dereference TYPE_CODE_REF values.
7777
6b662e19
JB
77782014-04-11 Joel Brobecker <brobecker@adacore.com>
7779
7780 Revert the following changes due to regressions:
7781
7782 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7783 (dwarf2_evaluate_property): New function.
7784 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7785 * dwarf2read.c (attr_to_dynamic_prop): New function.
7786 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7787 attribute.
7788 * gdbtypes.c: Include dwarf2loc.h.
7789 (is_dynamic_type): New function.
7790 (resolve_dynamic_type): New function.
7791 (resolve_dynamic_bounds): New function.
7792 (get_type_length): New function.
7793 (check_typedef): Use get_type_length to compute type length.
7794 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7795 (TYPE_LOW_BOUND_KIND): New macro.
7796 (is_dynamic_type): New function prototype.
7797 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7798 to resolve dynamic properties of the type. Update comment.
7799 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7800
7801 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7802 passed to sizeof is dynamic evaluate the argument to compute the length.
7803
7804 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7805 value and retrieve the dynamic type size.
7806
7807 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7808 (ada_template_to_fixed_record_type_1): Likewise.
7809 (ada_to_fixed_type_1): Likewise.
7810 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7811 (cp_print_value): Likewise.
7812 * d-valprint.c (dynamic_array_type): Likewise.
7813 * eval.c (evaluate_subexp_with_coercion): Likewise.
7814 * findvar.c (address_of_variable): Likewise.
7815 * jv-valprint.c (java_value_print): Likewise.
7816 * valops.c (value_ind): Likewise.
7817 * value.c (coerce_ref): Likewise.
7818
7819 * c-typeprint.c (c_type_print_varspec_suffix): Added
7820 check for not yet resolved high bound. If unresolved, print
7821 "variable length" string to the console instead of random
7822 length.
7823
7824 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7825 property and store it as the high bound and flag the range accordingly.
7826 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7827 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7828 * gdbtypes.h (enum range_flags): New enum.
7829 (struct range_bounds): Add flags member.
7830
7831 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7832 points to a constant blob.
7833
7834 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7835 (evaluate_subexp_standard): Pass noside argument.
7836 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7837 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7838 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7839 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7840 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7841
245a5f0b
KS
78422014-04-11 Keith Seitz <keiths@redhat.com>
7843
7844 PR c++/16675
7845 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
7846 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
7847 reference types.
7848
3bce8237
SA
78492014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7850
7851 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7852 (evaluate_subexp_standard): Pass noside argument.
7853 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7854 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7855 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7856 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7857 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7858
92b09522
SA
78592014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7860
7861 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7862 points to a constant blob.
7863
e1969afb
SA
78642014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7865
7866 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7867 property and store it as the high bound and flag the range accordingly.
7868 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7869 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7870 * gdbtypes.h (enum range_flags): New enum.
7871 (struct range_bounds): Add flags member.
7872
b86138fb
SA
78732014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7874
7875 * c-typeprint.c (c_type_print_varspec_suffix): Added
7876 check for not yet resolved high bound. If unresolved, print
7877 "variable length" string to the console instead of random
7878 length.
7879
bcd629a4
SA
78802014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7881
7882 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
7883 (ada_template_to_fixed_record_type_1): Likewise.
7884 (ada_to_fixed_type_1): Likewise.
7885 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7886 (cp_print_value): Likewise.
7887 * d-valprint.c (dynamic_array_type): Likewise.
7888 * eval.c (evaluate_subexp_with_coercion): Likewise.
7889 * findvar.c (address_of_variable): Likewise.
7890 * jv-valprint.c (java_value_print): Likewise.
7891 * valops.c (value_ind): Likewise.
7892 * value.c (coerce_ref): Likewise.
7893
04b19544
SA
78942014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7895
7896 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7897 value and retrieve the dynamic type size.
7898
26cb189f
SA
78992014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7900
7901 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7902 passed to sizeof is dynamic evaluate the argument to compute the length.
7903
37c1ab67
SA
79042014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7905
7906 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7907 (dwarf2_evaluate_property): New function.
7908 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7909 * dwarf2read.c (attr_to_dynamic_prop): New function.
7910 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7911 attribute.
7912 * gdbtypes.c: Include dwarf2loc.h.
7913 (is_dynamic_type): New function.
7914 (resolve_dynamic_type): New function.
7915 (resolve_dynamic_bounds): New function.
7916 (get_type_length): New function.
7917 (check_typedef): Use get_type_length to compute type length.
7918 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
7919 (TYPE_LOW_BOUND_KIND): New macro.
7920 (is_dynamic_type): New function prototype.
7921 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
7922 to resolve dynamic properties of the type. Update comment.
7923 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
7924
729efb13
SA
79252014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7926
7927 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
7928 declaring high/low bounds and change uses accordingly. Call
7929 create_range_type instead of create_static_range_type.
7930 * gdbtypes.c (create_range_type): New function.
7931 (create_range_type): Convert bounds into struct bound_prop and pass
7932 them to create_range_type.
7933 * gdbtypes.h (struct bound_prop): New struct.
7934 (create_range_type): New function prototype.
7935 (struct range_bounds): Use struct bound_prop instead of LONGEST for
7936 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
7937 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
7938 part of the bound.
7939 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
7940
0c9c3474
SA
79412014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
7942
7943 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
7944 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
7945 * ada-lang.c: All uses of create_range_type updated.
7946 * coffread.c: All uses of create_range_type updated.
7947 * dwarf2read.c: All uses of create_range_type updated.
7948 * f-exp.y: All uses of create_range_type updated.
7949 * m2-valprint.c: All uses of create_range_type updated.
7950 * mdebugread.c: All uses of create_range_type updated.
7951 * stabsread.c: All uses of create_range_type updated.
7952 * valops.c: All uses of create_range_type updated.
7953 * valprint.c: All uses of create_range_type updated.
7954
9d497a19
PA
79552014-04-10 Pedro Alves <palves@redhat.com>
7956
7957 * breakpoint.c (single_step_breakpoints)
7958 (single_step_gdbarch): Move up in the file.
7959 (one_breakpoint_xfer_memory): New function, factored out from ...
7960 (breakpoint_xfer_memory): ... here. Also process single-step
7961 breakpoints.
7962
15a9128a
TG
79632014-04-09 Tristan Gingold <gingold@adacore.com>
7964
7965 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
7966 comments.
7967 (darwin_decode_exception_message): Free port only after use.
7968
9c97a070
PL
79692014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
7970
7971 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
7972 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
7973 when setting the size of call_length.
7974
7af389b8
SC
79752014-04-07 Siva Chandra Reddy <sivachandra@google.com>
7976
7977 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
7978 dereference TYPE_CODE_REF values.
7979
86ad98c3
JB
79802014-04-07 Joel Brobecker <brobecker@adacore.com>
7981
7982 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
7983 end of warning message.
7984
b0aeadb3
DE
79852014-04-03 Doug Evans <dje@google.com>
7986
7987 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
7988 of stub_comp_unit_die, stub_comp_dir is non-NULL.
7989
5979d6b6
AM
79902014-04-02 Alan Modra <amodra@gmail.com>
7991
7992 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
7993 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
7994 (struct symbol_file_add_from_memory_args): Add size field.
7995 (find_vdso_size): New function.
7996 (add_vsyscall_page): Attempt to find vdso size.
7997
0d60c288
DE
79982014-04-01 Doug Evans <dje@google.com>
7999
8000 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8001
a41f2563
TG
80022014-04-01 Tristan Gingold <gingold@adacore.com>
8003
8004 * darwin-nat.c (darwin_encode_reply): Add prototype.
8005 (darwin_decode_exception_message): Reply to unknown inferiors.
8006 (darwin_decode_message): Handle message by id. Ignore message
8007 to unknown inferior.
8008 (darwin_wait): Discard unknown messages, add debug trace.
8009
11a865c8
DE
80102014-03-31 Doug Evans <dje@google.com>
8011
8012 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8013 comp_dir_string.
8014
770e7fc7
DE
80152014-03-31 Doug Evans <dje@google.com>
8016
8017 New option "set print symbol-loading".
8018 * NEWS: Mention it.
8019 * solib.c (solib_read_symbols): Only print symbol loading messages
8020 if requested.
8021 (solib_add): If symbol loading is in "brief" mode, notify user
8022 symbols are being loaded.
8023 (reload_shared_libraries_1): Ditto.
8024 * symfile.c (print_symbol_loading_off): New static global.
8025 (print_symbol_loading_brief): New static global.
8026 (print_symbol_loading_full): New static global.
8027 (print_symbol_loading_enums): New static global.
8028 (print_symbol_loading): New static global.
8029 (print_symbol_loading_p): New function.
8030 (symbol_file_add_with_addrs): Only print symbol loading messages
8031 if requested.
8032 (_initialize_symfile): Register "print symbol-loading" set/show
8033 command.
8034 * symfile.h (print_symbol_loading_p): Declare.
8035
c32c64b7
DE
80362014-03-30 Doug Evans <xdje42@gmail.com>
8037
8038 * infrun.c (set_last_target_status): New function.
8039 (handle_inferior_event): Call it.
8040
7c0bc051
DE
80412014-03-30 Doug Evans <xdje42@gmail.com>
8042
8043 * inferior.h (enum stop_kind): Improve comment.
8044
8776cfe9
JB
80452014-03-28 Joel Brobecker <brobecker@adacore.com>
8046
8047 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8048 a reference, strip the reference layer before calling
8049 the lang_ops value_has_mutated callback.
8050
410a0ff2
SDJ
80512014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8052
8053 Remove some globals from our parser.
8054 * language.c (unk_lang_parser): Add "struct parser_state"
8055 argument.
8056 * language.h (struct language_defn) <la_parser>: Likewise.
8057 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8058 (initialize_expout): Add "struct parser_state" argument.
8059 Rewrite function to use the parser state.
8060 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8061 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8062 write_exp_elt_longcst, write_exp_elt_dblcst,
8063 write_exp_elt_decfloatcst, write_exp_elt_type,
8064 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8065 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8066 write_dollar_variable): Likewise.
8067 (parse_exp_in_context_1): Use parser state.
8068 (insert_type_address_space): Add "struct parser_state" argument.
8069 Use parser state.
8070 (increase_expout_size): New function.
8071 * parser-defs.h: Forward declare "struct language_defn" and
8072 "struct parser_state".
8073 (expout, expout_size, expout_ptr): Remove extern declarations.
8074 (parse_gdbarch, parse_language): Rewrite macro declarations to
8075 accept the parser state.
8076 (struct parser_state): New struct.
8077 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8078 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8079 write_exp_elt_decfloatcst, write_exp_elt_type,
8080 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8081 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8082 write_exp_msymbol, write_dollar_variable,
8083 mark_struct_expression, insert_type_address_space): Add "struct
8084 parser_state" argument.
8085 (increase_expout_size): New function.
8086 * utils.c (do_clear_parser_state): New function.
8087 (make_cleanup_clear_parser_state): Likewise.
8088 * utils.h (make_cleanup_clear_parser_state): New function
8089 prototype.
8090 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8091 Update calls to write_exp* in order to pass the parser state.
8092 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8093 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8094 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8095 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8096 * stap-probe.c (stap_parse_register_operand): Likewise.
8097 (stap_parse_single_operand): Likewise.
8098 (stap_parse_argument_1): Likewise.
8099 (stap_parse_argument): Use parser state.
8100 * stap-probe.h: Include "parser-defs.h".
8101 (struct stap_parse_info) <pstate>: New field.
8102 * c-exp.y (parse_type): Rewrite to use parser state.
8103 (yyparse): Redefine to c_parse_internal.
8104 (pstate): New global variable.
8105 (parse_number): Add "struct parser_state" argument.
8106 (write_destructor_name): Likewise.
8107 (type_exp): Update calls to write_exp* and similars in order to
8108 use parser state.
8109 (exp1, exp, variable, qualified_name, space_identifier,
8110 typename, typebase): Likewise.
8111 (write_destructor_name, parse_number, lex_one_token,
8112 classify_name, classify_inner_name, c_parse): Add "struct
8113 parser_state" argument. Update function to use parser state.
8114 * c-lang.h: Forward declare "struct parser_state".
8115 (c_parse): Add "struct parser_state" argument.
8116 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8117 (yyparse): Redefine macro to ada_parse_internal.
8118 (pstate): New variable.
8119 (write_int, write_object_renaming, write_var_or_type,
8120 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8121 type_int, type_long, type_long_long, type_float, type_double,
8122 type_long_double, type_char, type_boolean, type_system_address):
8123 Add "struct parser_state" argument.
8124 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8125 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8126 var_or_type, aggregate, aggregate_component_list,
8127 positional_list, others, component_group,
8128 component_associations): Update calls to write_exp* and similar
8129 functions in order to use parser state.
8130 (ada_parse, write_var_from_sym, write_int,
8131 write_exp_op_with_string, write_object_renaming,
8132 find_primitive_type, write_selectors, write_ambiguous_var,
8133 write_var_or_type, write_name_assoc, type_int, type_long,
8134 type_long_long, type_float, type_double, type_long_double,
8135 type_char, type_boolean, type_system_address): Add "struct
8136 parser_state" argument. Adjust function to use parser state.
8137 * ada-lang.c (parse): Likewise.
8138 * ada-lang.h: Forward declare "struct parser_state".
8139 (ada_parse): Add "struct parser_state" argument.
8140 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8141 calls to both functions.
8142 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8143 parser state.
8144 (yyparse): Redefine macro to f_parse_internal.
8145 (pstate): New variable.
8146 (parse_number): Add "struct parser_state" argument.
8147 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8148 and similars in order to use parser state.
8149 (parse_number): Adjust code to use parser state.
8150 (yylex): Likewise.
8151 (f_parse): New function.
8152 * f-lang.h: Forward declare "struct parser_state".
8153 (f_parse): Add "struct parser_state" argument.
8154 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8155 parser state.
8156 (yyparse): Redefine macro for java_parse_internal.
8157 (pstate): New variable.
8158 (push_expression_name, push_expression_name, insert_exp): Add
8159 "struct parser_state" argument.
8160 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8161 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8162 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8163 PostIncrementExpression, PostDecrementExpression,
8164 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8165 UnaryExpressionNotPlusMinus, CastExpression,
8166 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8167 RelationalExpression, EqualityExpression, AndExpression,
8168 ExclusiveOrExpression, InclusiveOrExpression,
8169 ConditionalAndExpression, ConditionalOrExpression,
8170 ConditionalExpression, Assignment, LeftHandSide): Update
8171 calls to write_exp* and similars in order to use parser state.
8172 (parse_number): Ajust code to use parser state.
8173 (yylex): Likewise.
8174 (java_parse): New function.
8175 (push_variable): Add "struct parser_state" argument. Adjust
8176 code to user parser state.
8177 (push_fieldnames, push_qualified_expression_name,
8178 push_expression_name, insert_exp): Likewise.
8179 * jv-lang.h: Forward declare "struct parser_state".
8180 (java_parse): Add "struct parser_state" argument.
8181 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8182 parser state.
8183 (yyparse): Redefine macro to m2_parse_internal.
8184 (pstate): New variable.
8185 (type_exp, exp, fblock, variable, type): Update calls to
8186 write_exp* and similars to use parser state.
8187 (yylex): Likewise.
8188 (m2_parse): New function.
8189 * m2-lang.h: Forward declare "struct parser_state".
8190 (m2_parse): Add "struct parser_state" argument.
8191 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8192 * objc-lang.h: Forward declare "struct parser_state".
8193 (end_msglist): Add "struct parser_state" argument.
8194 * p-exp.y (parse_type): Rewrite macro to use parser state.
8195 (yyparse): Redefine macro to pascal_parse_internal.
8196 (pstate): New variable.
8197 (parse_number): Add "struct parser_state" argument.
8198 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8199 write_exp* and similars in order to use parser state.
8200 (parse_number, yylex): Adjust code to use parser state.
8201 (pascal_parse): New function.
8202 * p-lang.h: Forward declare "struct parser_state".
8203 (pascal_parse): Add "struct parser_state" argument.
8204 * go-exp.y (parse_type): Rewrite macro to use parser state.
8205 (yyparse): Redefine macro to go_parse_internal.
8206 (pstate): New variable.
8207 (parse_number): Add "struct parser_state" argument.
8208 (type_exp, exp1, exp, variable, type): Update calls to
8209 write_exp* and similars in order to use parser state.
8210 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8211 to use parser state.
8212 (go_parse): Likewise.
8213 * go-lang.h: Forward declare "struct parser_state".
8214 (go_parse): Add "struct parser_state" argument.
8215
342587c4
DE
82162014-03-27 Doug Evans <dje@google.com>
8217
8218 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8219
33e80786
DE
82202014-03-27 Doug Evans <dje@google.com>
8221
8222 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8223 Remove argument abbrev_section. All callers updated.
8224
1dbab08b
DE
82252014-03-27 Doug Evans <dje@google.com>
8226
8227 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8228 addr_base, ranges_base.
8229
318d3177
KS
82302014-03-26 Keith Seitz <keiths@redhat.com>
8231
8232 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8233 types, not VAR_DOMAIN.
8234
1e54db15
SL
82352014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8236
8237 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8238 "ra" registers.
8239 * features/nios2-linux.c: Regenerated.
8240 * features/nios2.c: Regenerated.
8241
d3839ede
PA
82422014-03-25 Pedro Alves <palves@redhat.com>
8243
8244 * cli/cli-script.c (script_from_file): Force the interpreter to
8245 sync mode.
8246
7588d2ec
PL
82472014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8248
8249 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8250 small stack allocation.
8251
a6290449
TG
82522014-03-24 Tristan Gingold <gingold@adacore.com>
8253
8254 * darwin-nat.c (exc_server): Remove unused prototype.
8255 (darwin_dump_message): Correctly display data on x86_64.
8256 (darwin_encode_reply): Fix style.
8257 Add comments and fix indentation.
8258
31ae9d24 82592014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
8260
8261 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8262
6339bfc4
DE
82632014-03-22 Doug Evans <xdje42@gmail.com>
8264
8265 * infcmd.c: Whitespace fixes.
8266 (interrupt_command): Merge two function comments into one.
8267
0a07590b
DE
82682014-03-22 Doug Evans <xdje42@gmail.com>
8269
8270 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8271 All uses updated.
8272
b55fbac4
YQ
82732014-03-22 Yao Qi <yao@codesourcery.com>
8274
8275 * remote.c (target_read_live_memory): Remove.
8276 (memory_xfer_live_readonly_partial): Rename it to
8277 remote_xfer_live_readonly_partial. Remove argument 'object'.
8278 All callers updated. Call remote_read_bytes_1
8279 instead of target_read_live_memory.
8280 * tracepoint.c (set_traceframe_number): Remove.
8281 (make_cleanup_restore_traceframe_number): Likewise .
8282 * tracepoint.h (set_traceframe_number): Remove declaration.
8283 (make_cleanup_restore_traceframe_number): Likewise.
8284
9217e74e
YQ
82852014-03-22 Yao Qi <yao@codesourcery.com>
8286
8287 * remote.c (remote_read_bytes): Move code on reading from the
8288 remote stub to ...
8289 (remote_read_bytes_1): ... here. New function.
8290
8acf9577
YQ
82912014-03-22 Yao Qi <yao@codesourcery.com>
8292
8293 * ctf.c (ctf_xfer_partial): Check the return value of
8294 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8295 return TARGET_XFER_UNAVAILABLE.
8296 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8297 * target.c (target_read_live_memory): Move it to remote.c.
8298 (memory_xfer_live_readonly_partial): Likewise.
8299 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8300 * remote.c (target_read_live_memory): Moved from target.c.
8301 (memory_xfer_live_readonly_partial): Likewise.
8302 (remote_read_bytes): Factored out from
8303 memory_xfer_partial_1.
8304
feef67ab
DE
83052014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8306
8307 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8308 NULL pointer.
8309
b65dc60b
PA
83102014-03-21 Pedro Alves <palves@redhat.com>
8311
8312 * infrun.c (normal_stop): Extend comment.
8313
b4ab256d
HZ
83142014-03-21 Hui Zhu <hui@codesourcery.com>
8315 Pedro Alves <palves@redhat.com>
8316
8317 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8318 static buffer.
8319 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8320 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8321 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8322
deba7593
MR
83232014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8324
8325 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8326 `z' formatted output modifier.
8327
1bff71c3
SDJ
83282014-03-20 Tom Tromey <tromey@redhat.com>
8329 Sergio Durigan Junior <sergiodj@redhat.com>
8330
8331 * probe.c (parse_probes): Turn assert into an ordinary error.
8332 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8333 exceptions when parsing probes. Rearrange the code for clarity.
8334
90e28950
TT
83352014-03-20 Tom Tromey <tromey@redhat.com>
8336
8337 PR gdb/14135
8338 * top.c (execute_command): Only dispatch events if the command
8339 started the target.
8340
beb460e8
PA
83412014-03-20 Tom Tromey <tromey@redhat.com>
8342
8343 PR cli/15718
8344 * infcall.c: Include event-top.h.
8345 (run_inferior_call): Call async_disable_stdin if needed.
8346
99619bea
PA
83472014-03-20 Pedro Alves <palves@redhat.com>
8348
8349 * infrun.c (prepare_to_proceed): Delete.
8350 (thread_still_needs_step_over): New function.
8351 (find_thread_needs_step_over): New function.
8352 (proceed): If the current thread needs a step-over, set its
8353 steping_over_breakpoint flag. Adjust to use
8354 find_thread_needs_step_over instead of prepare_to_proceed.
8355 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8356 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8357 breakpoint.
8358 (switch_back_to_stepped_thread): Step over breakpoints of all
8359 threads not the stepping thread, before switching back to the
8360 stepping thread.
8361
2adfaa28
PA
83622014-03-20 Pedro Alves <palves@redhat.com>
8363
8364 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8365 extern.
8366 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8367 * infrun.c (saved_singlestep_ptid)
8368 (stepping_past_singlestep_breakpoint): Delete.
8369 (resume): Remove stepping_past_singlestep_breakpoint handling.
8370 (proceed): Store the prev_pc of the stepping thread too.
8371 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8372 singlestep_pc.
8373 (enum infwait_states): Delete infwait_thread_hop_state.
8374 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8375 field.
8376 (handle_inferior_event): Adjust.
8377 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8378 handling and the thread-hop code. Before removing single-step
8379 breakpoints, check whether the thread hit a single-step breakpoint
8380 of another thread. If it did, the trap is not a random signal.
8381 (switch_back_to_stepped_thread): If the event thread hit a
8382 single-step breakpoint, unblock it before switching to the
8383 stepping thread. Handle the case of the stepped thread having
8384 advanced already.
8385 (keep_going): Handle the case of the current thread moving past a
8386 single-step breakpoint.
8387
31e77af2
PA
83882014-03-20 Pedro Alves <palves@redhat.com>
8389
8390 PR breakpoints/7143
8391 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8392 are being stepped over.
8393 (breakpoint_address_match): Make extern.
8394 * breakpoint.h (breakpoint_address_match): New declaration.
8395 * inferior.h (stepping_past_instruction_at): New declaration.
8396 * infrun.c (struct step_over_info): New type.
8397 (step_over_info): New global.
8398 (set_step_over_info, clear_step_over_info)
8399 (stepping_past_instruction_at): New functions.
8400 (handle_inferior_event): Clear the step-over info when
8401 trap_expected is cleared.
8402 (resume): Remove now stale comment.
8403 (clear_proceed_status): Clear step-over info.
8404 (proceed): Adjust step-over handling to set or clear the step-over
8405 info instead of removing all breakpoints.
8406 (handle_signal_stop): When setting up a thread-hop, don't remove
8407 breakpoints here.
8408 (stop_stepping): Clear step-over info.
8409 (keep_going): Adjust step-over handling to set or clear step-over
8410 info and then always inserting breakpoints, instead of removing
8411 all breakpoints when stepping over one.
8412
b9f437de
PA
84132014-03-20 Pedro Alves <palves@redhat.com>
8414
8415 * infrun.c (previous_inferior_ptid): Adjust comment.
8416 (deferred_step_ptid): Delete.
8417 (infrun_thread_ptid_changed, prepare_to_proceed)
8418 (init_wait_for_inferior): Adjust.
8419 (handle_signal_stop): Delete deferred_step_ptid handling.
8420
06c868a8
JK
84212014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8422
8423 PR gdb/15358
8424 * defs.h (sync_quit_force_run): New declaration.
8425 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8426 * event-top.c (async_sigterm_handler): New declaration.
8427 (async_sigterm_token): New variable.
8428 (async_init_signals): Create also async_sigterm_token.
8429 (async_sigterm_handler): New function.
8430 (sync_quit_force_run): New variable.
8431 (handle_sigterm): Replace quit_force call by other calls.
8432 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8433
dea80df0
MR
84342014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8435
8436 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8437 offset into SPE pseudo registers.
8438
0c7e1a46
PA
84392014-03-18 Pedro Alves <palves@redhat.com>
8440
8441 PR gdb/13860
8442 * inferior.h (print_stop_event): Declare.
8443 * infrun.c (print_stop_event): New, factored out from ...
8444 (normal_stop): ... this.
8445 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8446 of bpstat_print/print_stack_frame.
8447
9c1fcd01
TT
84482014-03-17 Tom Tromey <tromey@redhat.com>
8449
8450 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8451
11aa919a
PMR
84522014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8453
8454 * ada-lang.c (decode_constrained_packed_array): Perform a
8455 minimal coercion for reference with coerce_ref instead of
8456 ada_coerce_ref.
8457
d4ccb5e0
TG
84582014-03-17 Tristan Gingold <gingold@adacore.com>
8459
8460 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8461 (darwin_solib_create_inferior_hook): Emit a warning if version
8462 is unhandled.
8463
49840f2a
UW
84642014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8465
8466 * python/py-value.c (get_field_flag): Cast flag_name argument to
8467 PyObject_GetAttrString to support Python 2.4.
8468
ed4123e5
JK
84692014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8470
8471 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8472 (Global Maintainers): Remove Jan Kratochvil.
8473
d6b64346
PA
84742014-03-14 Pedro Alves <palves@redhat.com>
8475
8476 * inferior.h (terminal_ours_for_output): Rename to ...
8477 (child_terminal_ours_for_output): ... this.
8478 (terminal_save_ours): Rename to ...
8479 (child_terminal_save_ours): ... this.
8480 (terminal_ours): Rename to ...
8481 (child_terminal_ours): ... this.
8482 (terminal_inferior): Rename to ...
8483 (child_terminal_inferior): ... this.
8484 (terminal_init_inferior): Rename to ...
8485 (child_terminal_init_inferior): ... this.
8486 (terminal_init_inferior_with_pgrp): Rename to ...
8487 (child_terminal_init_inferior_with_pgrp): ... this.
8488 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8489 (child_terminal_init_with_pgrp): ... this.
8490 (terminal_save_ours): Rename to ...
8491 (child_terminal_save_ours): ... this.
8492 (terminal_init_inferior): Rename to ...
8493 (child_terminal_init): ... this. Adjust.
8494 (terminal_inferior): Rename to ...
8495 (child_terminal_inferior): ... this.
8496 (terminal_ours_for_output): Rename to ...
8497 (child_terminal_ours_for_output): ... this. Adjust.
8498 (terminal_ours): Rename to ...
8499 (child_terminal_ours): ... this.
8500 (terminal_ours_1): Rename to ...
8501 (child_terminal_ours_1): ... this. Adjust.
8502 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8503 * windows-nat.c (do_initial_windows_stuff): Adjust.
8504 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8505 (gnu_terminal_init): ... this. Adjust.
8506 (gnu_target): Adjust.
8507 * inf-child.c (inf_child_target): Adjust.
8508
5a1e8c7a
DE
85092014-03-13 Doug Evans <xdje42@gmail.com>
8510
8511 PR guile/16612
8512 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8513 new eq?-hashtab.
8514
350e1a76
DE
85152014-03-13 Doug Evans <xdje42@gmail.com>
8516
8517 * value.c (record_latest_value): Call release_value_or_incref
8518 instead of release_value.
8519
a69900ae
PA
85202014-03-13 Pedro Alves <palves@redhat.com>
8521
8522 * procfs.c (procfs_target): Don't override to_shortname,
8523 to_longname or to_doc.
8524
5db9f0bd
PA
85252014-03-13 Pedro Alves <palves@redhat.com>
8526
8527 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8528 Unix in user visible strings.
8529
5e3a2c38
SS
85302014-03-12 Stan Shebs <stan@codesourcery.com>
8531
8532 * gdbtypes.h: Annotate comments for Doxygen, add a page
8533 block comment with some general info.
8534
8bc2fe48
PA
85352014-03-12 Pedro Alves <palves@redhat.com>
8536
8537 * infcmd.c (prepare_execution_command): New function, factored out
8538 from several execution commands.
8539 (run_command_1, continue_command, step_1, jump_command)
8540 (signal_command, until_command, advance_command, finish_command)
8541 (attach_command): Use prepare_execution_command.
8542
638c5f49
OJ
85432014-03-12 Omair Javaid <omair.javaid@linaro.org>
8544
8545 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8546 (MAX_BPTS): Define.
8547 (MAX_WPTS): Define.
8548 (struct arm_linux_thread_points): Removed.
8549 (struct arm_linux_process_info): New.
8550 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8551 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8552 (arm_linux_find_breakpoints_by_tid): Removed.
8553 (struct arch_lwp_info): New.
8554 (arm_linux_find_process_pid): New functions.
8555 (arm_linux_add_process): New functions.
8556 (arm_linux_process_info_get): New functions.
8557 (arm_linux_forget_process): New function.
8558 (arm_linux_get_debug_reg_state): New function.
8559 (struct update_registers_data): New.
8560 (update_registers_callback): New function.
8561 (arm_linux_insert_hw_breakpoint1): Updated.
8562 (arm_linux_remove_hw_breakpoint1): Updated.
8563 (arm_linux_insert_hw_breakpoint): Updated.
8564 (arm_linux_remove_hw_breakpoint): Updated.
8565 (arm_linux_insert_watchpoint): Updated.
8566 (arm_linux_remove_watchpoint): Updated.
8567 (arm_linux_new_thread): Updated.
8568 (arm_linux_prepare_to_resume): New function.
8569 (arm_linux_new_fork): New function.
8570 (_initialize_arm_linux_nat): Updated.
8571
6d03af93
PA
85722014-03-12 Pedro Alves <palves@redhat.com>
8573
8574 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8575
b3ccfe11
TT
85762014-03-12 Tom Tromey <tromey@redhat.com>
8577
8578 * inf-child.c (return_zero): New function.
8579 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8580 * aix-thread.c (aix_thread_inferior_created): New function.
8581 (aix_thread_attach): Remove.
8582 (init_aix_thread_ops): Don't set to_attach.
8583 (_initialize_aix_thread): Register inferior_created observer.
8584 * corelow.c (init_core_ops): Don't set to_attach or
8585 to_create_inferior.
8586 * exec.c (init_exec_ops): Don't set to_attach or
8587 to_create_inferior.
8588 * infcmd.c (run_command_1): Use find_run_target. Make direct
8589 target calls.
8590 (attach_command): Use find_attach_target. Make direct target
8591 calls.
8592 * record-btrace.c (init_record_btrace_ops): Don't set
8593 to_create_inferior.
8594 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8595 Remove.
8596 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8597 set to_create_inferior.
8598 * target.c (complete_target_initialization): Add assertion.
8599 (target_create_inferior): Remove.
8600 (find_default_attach, find_default_create_inferior): Remove.
8601 (find_attach_target, find_run_target): New functions.
8602 (find_default_is_async_p, find_default_can_async_p)
8603 (target_supports_non_stop, target_attach): Remove.
8604 (init_dummy_target): Don't set to_create_inferior or
8605 to_supports_non_stop.
8606 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8607 TARGET_DEFAULT_FUNC.
8608 <to_create_inferior>: Add comment.
8609 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8610 TARGET_DEFAULT_RETURN.
8611 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8612 (find_attach_target, find_run_target): Declare.
8613 (target_create_inferior): Remove.
8614 (target_has_execution_1): Update comment.
8615 (target_supports_non_stop): Remove.
8616 * target-delegates.c: Rebuild.
8617
91f83b02
PA
86182014-03-12 Pedro Alves <palves@redhat.com>
8619
8620 * inf-child.h: Update comment to not mention Unix.
8621
f1aea813
PA
86222014-03-12 Pedro Alves <palves@redhat.com>
8623
8624 * inf-child.c: Update top comment to not mention Unix. Add
8625 generic comment describing how this target is meant to be used.
8626 (inf_child_post_attach, inf_child_post_startup_inferior)
8627 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8628 Unix in comment.
8629
ee8e9165
PA
86302014-03-12 Pedro Alves <palves@redhat.com>
8631
8632 * nto-procfs.c: Include inf-child.h.
8633 (procfs_ops): Delete global.
8634 (procfs_can_run): Delete method.
8635 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8636 target pointer instead of referencing procfs_ops.
8637 (procfs_prepare_to_store): Delete.
8638 (init_procfs_ops): Delete function.
8639 (procfs_target): New function, based on init_procfs_ops, but
8640 inherit inf_child_target.
8641 (_initialize_procfs): Use procfs_target.
8642
51a9c8c5
PA
86432014-03-12 Pedro Alves <palves@redhat.com>
8644
8645 * windows-nat.c: Include inf-child.h.
8646 (windows_ops): Delete global.
8647 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8648 methods.
8649 (init_windows_ops): Delete function.
8650 (windows_target): New function, based on init_windows_ops, but
8651 inherit inf_child_target.
8652 (_initialize_windows_nat): Use windows_target. Install x86
8653 specific target methods here.
8654
c1966e26
DE
86552014-03-10 Doug Evans <xdje42@gmail.com>
8656
8657 * guile/guile.c (call_initialize_gdb_module): New function.
8658 (initialize_guile): Replace call to scm_init_guile with call to
8659 scm_with_guile.
8660
023db19c
JB
86612014-03-10 Joel Brobecker <brobecker@adacore.com>
8662
8663 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8664 in call to TYPE_CODE macro.
8665
5ec18f2b
JG
86662014-03-10 Jerome Guitton <guitton@adacore.com>
8667
8668be63
JB
8668 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8669 Resolve tagged types to full view.
5ec18f2b 8670
7d03f2eb
HZ
86712014-03-10 Hui Zhu <hui@codesourcery.com>
8672
8673 * target.h (target_insert_breakpoint): Remove "hardware" from its
8674 comments.
8675
c5164cbc
DE
86762014-03-07 Doug Evans <dje@google.com>
8677
8678 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8679
c4a3fee2
DE
86802014-03-07 Doug Evans <dje@google.com>
8681
8682 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8683 Remove unused local comp_dir_attr. Assert exactly one of
8684 stub_comp_unit_die, stub_comp_dir is non-NULL.
8685
3156469c
JB
86862014-03-07 Joel Brobecker <brobecker@adacore.com>
8687
8688 * target.h (complete_target_initialization, add_target):
8689 Add comment.
8690
c1a7b7c6
PA
86912014-03-07 Pedro Alves <palves@redhat.com>
8692
8693 * go32-nat.c: Include inf-child.h.
8694 (go32_ops): Delete global.
8695 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8696 Delete methods.
8697 (go32_create_inferior): Push the passed in target pointer instead
8698 of referencing go32_ops.
8699 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8700 (go32_target): New function, based on init_go32_ops, but inherit
8701 inf_child_target.
8702 (_initialize_go32_nat): Use go32_target. Move parts of
8703 init_go32_ops here.
8704
d3c1a85f
JB
87052014-03-06 Joel Brobecker <brobecker@adacore.com>
8706
8707 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8708 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8709 SYMBOL_VALUE_ADDRESS.
8710 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8711
5fa1d40e
YQ
87122014-03-06 Yao Qi <yao@codesourcery.com>
8713
8714 * breakpoint.c (get_tracepoint_by_number): Remove argument
8715 optional_p. All callers updated. Adjust comments. Update
8716 output message.
8717 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8718
0c13193f
YQ
87192014-03-06 Yao Qi <yao@codesourcery.com>
8720
8721 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8722 early if get_number returns zero. Use 'p' instead of 'args'.
8723
2217da06
YQ
87242014-03-06 Yao Qi <yao@codesourcery.com>
8725
8726 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8727 message.
8728
cc3da688
YQ
87292014-03-06 Yao Qi <yao@codesourcery.com>
8730
8731 PR breakpoints/16508
8732 * tracepoint.c (check_trace_running): New function.
8733 (trace_find_command): Move code to check_trace_running and
8734 call check_trace_running.
8735 (trace_find_pc_command): Likewise.
8736 (trace_find_tracepoint_command): Likewise.
8737 (trace_find_line_command): Likewise.
8738 (trace_find_range_command): Likewise.
8739 * tracepoint.h (check_trace_running): Likewise.
8740 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8741
6a5f844b
YQ
87422014-03-06 Yao Qi <yao@codesourcery.com>
8743
8744 * target.h (struct target_ops) <to_traceframe_info>: Use
8745 TARGET_DEFAULT_NORETURN (tcomplain ()).
8746 * target-delegates.c: Regenerated.
8747
0f26cec1
PA
87482014-03-05 Pedro Alves <palves@redhat.com>
8749
8750 PR gdb/16575
8751 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8752 void. Update comment.
8753 (dcache_xfer_memory): Delete.
8754 (dcache_read_memory_partial): New, based on the read bits of
8755 dcache_xfer_memory.
8756 (dcache_update): Add status parameter. Use ULONGEST for len, and
8757 adjust. Discard cache lines if the reason for the update was
8758 error.
8759 * dcache.h (dcache_xfer_memory): Delete declaration.
8760 (dcache_read_memory_partial): New declaration.
8761 (dcache_update): Update prototype.
8762 * target.c (raw_memory_xfer_partial): Update the dcache here.
8763 (memory_xfer_partial_1): Don't handle dcache writes here.
8764
b2b255bd
MF
87652014-03-05 Mike Frysinger <vapier@gentoo.org>
8766
8767 * remote-sim.c (gdbsim_load): Add const to prog.
8768
5d9cf8a4
TT
87692014-03-03 Tom Tromey <tromey@redhat.com>
8770
8771 * elfread.c (probe_key): Change to bfd_data.
8772 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
8773 now per-BFD, not per-objfile.
8774 * stap-probe.c (stap_probe_destroy): Update comment.
8775 (handle_stap_probe): Allocate on the per-BFD obstack.
8776
729662a5
TT
87772014-03-03 Tom Tromey <tromey@redhat.com>
8778
8779 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
8780 * breakpoint.c (create_longjmp_master_breakpoint): Use
8781 get_probe_address.
8782 (add_location_to_breakpoint, bkpt_probe_insert_location)
8783 (bkpt_probe_remove_location): Update.
8784 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
8785 * elfread.c (elf_symfile_relocate_probe): Remove.
8786 (elf_probe_fns): Update.
8787 (insert_exception_resume_breakpoint): Change type of "probe"
8788 parameter to bound_probe.
8789 (check_exception_resume): Update.
8790 * objfiles.c (objfile_relocate1): Don't relocate probes.
8791 * probe.c (bound_probe_s): New typedef.
8792 (parse_probes): Use get_probe_address. Set sal's objfile.
8793 (find_probe_by_pc): Return a bound_probe.
8794 (collect_probes): Return a VEC(bound_probe_s).
8795 (compare_probes): Update.
8796 (gen_ui_out_table_header_info): Change type of "probes"
8797 parameter. Update.
8798 (info_probes_for_ops): Update.
8799 (get_probe_address): New function.
8800 (probe_safe_evaluate_at_pc): Update.
8801 * probe.h (struct probe_ops) <get_probe_address>: New field.
8802 <set_semaphore, clear_semaphore>: Add objfile parameter.
8803 (struct probe) <objfile>: Remove field.
8804 <arch>: New field.
8805 <address>: Update comment.
8806 (struct bound_probe): New.
8807 (find_probe_by_pc): Return a bound_probe.
8808 (get_probe_address): Declare.
8809 * solib-svr4.c (struct probe_and_action) <address>: New field.
8810 (hash_probe_and_action, equal_probe_and_action): Update.
8811 (register_solib_event_probe): Add address parameter.
8812 (solib_event_probe_at): Update.
8813 (svr4_create_probe_breakpoints): Add objfile parameter. Use
8814 get_probe_address.
8815 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
8816 (stap_get_probe_address): New function.
8817 (stap_can_evaluate_probe_arguments, compute_probe_arg)
8818 (compile_probe_arg): Update.
8819 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
8820 address.
8821 (handle_stap_probe): Don't relocate the probe.
8822 (stap_relocate): Remove.
8823 (stap_gen_info_probes_table_values): Update.
8824 (stap_probe_ops): Remove stap_relocate.
8825 * symfile-debug.c (debug_sym_relocate_probe): Remove.
8826 (debug_sym_probe_fns): Update.
8827 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
8828 * symtab.c (init_sal): Use memset.
8829 * symtab.h (struct symtab_and_line) <objfile>: New field.
8830 * tracepoint.c (start_tracing, stop_tracing): Update.
8831
ff887920
TT
88322014-03-03 Tom Tromey <tromey@redhat.com>
8833
8834 * probe.h (parse_probes, find_probe_by_pc)
8835 (find_probes_in_objfile): Fix comments.
8836
f0407826
DE
88372014-03-02 Doug Evans <xdje42@gmail.com>
8838
8839 * infrun.c (handle_signal_stop): Replace test for
8840 TARGET_WAITKIND_STOPPED with an assert.
8841
35e6a711
DE
88422014-03-02 Doug Evans <xdje42@gmail.com>
8843
8844 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
8845
667f9d0b
DE
88462014-03-02 Doug Evans <xdje42@gmail.com>
8847
8848 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
8849
dc92ace0
MK
88502014-03-01 Mark Kettenis <kettenis@gnu.org>
8851
8852 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8853
a900370f
MK
88542014-03-01 Mark Kettenis <kettenis@gnu.org>
8855
8856 * i386obsd-nat.c: Include "obsd-nat.h".
8857 (_initialize_i386obsd_nat): Call obsd_add_target instead of
8858 add_target.
8859 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8860
b72a7981
MK
88612014-03-01 Mark Kettenis <kettenis@gnu.org>
8862
8863 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
8864
96c70aba
MK
88652014-03-01 Mark Kettenis <kettenis@gnu.org>
8866
8867 * mips64obsd-nat.c: Include "obsd-nath".
8868 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
8869 add_target
8870 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8871
874a80af
MK
88722014-03-01 Mark Kettenis <kettenis@gnu.org>
8873
8fd408f1
MK
8874 * amd64obsd-nat.c: Include "obsd-nat,h.
8875 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
8876 add_target.
874a80af
MK
8877 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
8878
9cf95373
SC
88792014-02-28 Siva Chandra Reddy <sivachandra@google.com>
8880
8881 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
8882 (find_overload_match): Update call to find_oload_champ.
8883 (find_oload_champ_namespace_loop): Likewise
8884
863e4da4
MK
88852014-02-28 Mark Kettenis <kettenis@gnu.org>
8886
025cac40
MK
8887 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
8888
1ed586ce
MK
8889 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
8890 * config/sparc/obsd64.mh: New file.
8891 * sparc64obsd-nat.c: New file.
8892
863e4da4
MK
8893 * obsd-nat.h: New file.
8894 * obsd-nat.c: New file.
8895 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
8896 (ALLDEPFILES): Add obsd-nat.c.
8897
89de4da4
TT
88982014-02-28 Tom Tromey <tromey@redhat.com>
8899
8900 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
8901 * cli-out.h (cli_ui_out_impl): Now const.
8902 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
8903 * ui-out.c (struct ui_out) <impl>: Now const.
8904 (default_ui_out_impl): Now const.
8905 (ui_out_new): Make 'impl' parameter const.
8906 * ui-out.h (ui_out_new): Update.
8907
c725e7b6
MK
89082014-02-27 Mark Kettenis <kettenis@gnu.org>
8909
8910 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
8911
670b46b3
MK
89122014-02-27 Mark Kettenis <kettenis@gnu.org>
8913
8914 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
8915
c91550fc
JK
89162014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8917
8918 Additional PR 8882 fix.
8919 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
8920
2fa0369e
PA
89212014-02-27 Pedro Alves <palves@redhat.com>
8922
8923 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
8924 isn't set.
8925
d632a097
PA
89262014-02-27 Pedro Alves <palves@redhat.com>
8927
8928 PR 12702
8929 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
8930 * nat/linux-waitpid.c: Include string.h.
8931 (status_to_str): Moved here and made extern.
8932 * nat/linux-waitpid.h (status_to_str): New declaration.
8933
2ebd5a35
HZ
89342014-02-27 Hui Zhu <hui@codesourcery.com>
8935
8936 PR 12702
8937 * infrun.c (ptid_match): Move ...
8938 * common/ptid.c (ptid_match): ... here.
8939 * inferior.h (ptid_match): Move ...
8940 * common/ptid.h (ptid_match): ... here.
8941
3cdd631f
MK
89422014-02-27 Mark Kettenis <kettenis@gnu.org>
8943
8944 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
8945 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
8946 gdb_target_obs.
8947
bee30a64
MK
89482014-02-27 Mark Kettenis <kettenis@gnu.org>
8949
8950 * obsd-tdep.c (obsd_auxv_parse): New function.
8951 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
8952
8953 * gdbarch.sh (auxv_parse): New.
8954 * gdbarch.h: Regenerated.
8955 * gdbarch.c: Regenerated.
8956 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
8957
7a5a839f
LC
89582014-02-26 Ludovic Courtès <ludo@gnu.org>
8959
8960 * guile/scm-value.c (gdbscm_history_append_x): New function.
8961 (value_functions): Add it.
8962
31aa7e4e
JB
89632014-02-27 Joel Brobecker <brobecker@adacore.com>
8964
8965 * dwarf2read.c (attr_value_as_address): New function.
8966 (dwarf2_find_base_address, read_call_site_scope): Use
8967 attr_value_as_address in place of DW_ADDR.
8968 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
8969 the low and high addresses. Slight rework of the handling
8970 of the high pc being a constant form, and limit it to
8971 DWARF verson 4 or higher.
8972 (dwarf2_record_block_ranges): Likewise.
8973 (read_partial_die): Likewise.
8974 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
8975
9b333ba3
TT
89762014-02-26 Tom Tromey <tromey@redhat.com>
8977
8978 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
8979
5f6cac40
TT
89802014-02-26 Tom Tromey <tromey@redhat.com>
8981
8982 * elfread.c (elf_read_minimal_symbols): Return early if
8983 minimal symbols have already been read. Add "ei" parameter.
8984 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
8985 * minsyms.c (prim_record_minimal_symbol_full): Update.
8986 * objfiles.h (struct objstats) <n_minsyms>: Move...
8987 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
8988 * symmisc.c (print_objfile_statistics): Update.
8989
2750ef27
TT
89902014-02-26 Tom Tromey <tromey@redhat.com>
8991
8992 * elfread.c (elf_read_minimal_symbols): New function, from
8993 elf_symfile_read.
8994 (elf_symfile_read): Call it.
8995
34643a32
TT
89962014-02-26 Tom Tromey <tromey@redhat.com>
8997
8998 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
8999 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9000 (lookup_minimal_symbol_solib_trampoline)
9001 (lookup_minimal_symbol_by_pc_section_1)
9002 (lookup_minimal_symbol_and_objfile): Update.
9003 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9004 Don't allocate a minimal symbol if minsyms have already been read.
9005 (build_minimal_symbol_hash_tables): Update.
9006 (install_minimal_symbols): Do nothing if minsyms already read.
9007 Use the per-BFD obstack.
9008 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9009 * objfiles.c (allocate_objfile): Call
9010 terminate_minimal_symbol_table later.
9011 (have_minimal_symbols): Update.
9012 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9013 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9014 Move from struct objfile.
9015 <minsyms_read>: New field.
9016 (struct objfile) <msymbols, minimal_symbol_count,
9017 msymbol_hash, msymbol_demangled_hash>: Move.
9018 (ALL_OBJFILE_MSYMBOLS): Update.
9019 * symfile.c (read_symbols): Set minsyms_read.
9020 (reread_symbols): Update.
9021 * symmisc.c (dump_objfile, dump_msymbols): Update.
9022
2273f0ac
TT
90232014-02-26 Tom Tromey <tromey@redhat.com>
9024
9025 * minsyms.c (msymbols_sort): Remove.
9026 * minsyms.h (msymbols_sort): Remove.
9027 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9028 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9029 * elfread.c (elf_symtab_read): Don't add section offsets.
9030 * xcoffread.c (record_minimal_symbol): Don't add section offset
9031 to minimal symbol address.
9032 * somread.c (text_offset, data_offset): Remove.
9033 (som_symtab_read): Don't add section offsets to minimal symbol
9034 addresses.
9035 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9036 Don't add section offsets to minimal symbols.
9037 * coffread.c (coff_symtab_read): Don't add section offsets
9038 to minimal symbol addresses.
9039 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9040 to minimal symbol addresses.
9041 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9042 section offset to minimal symbol addresses.
9043 * mdebugread.c (parse_partial_symbols): Don't add section
9044 offset to minimal symbol addresses.
9045 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9046 offset to minimal symbol addresses.
9047
77e371c0
TT
90482014-02-26 Tom Tromey <tromey@redhat.com>
9049
9050 * ada-lang.c (ada_main_name): Update.
9051 (ada_add_standard_exceptions): Update.
9052 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9053 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9054 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9055 * auxv.c (ld_so_xfer_auxv): Update.
9056 * avr-tdep.c (avr_scan_prologue): Update.
9057 * ax-gdb.c (gen_var_ref): Update.
9058 * blockframe.c (get_pc_function_start)
9059 (find_pc_partial_function_gnu_ifunc): Update.
9060 * breakpoint.c (create_overlay_event_breakpoint)
9061 (create_longjmp_master_breakpoint)
9062 (create_std_terminate_master_breakpoint)
9063 (create_exception_master_breakpoint): Update.
9064 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9065 * c-valprint.c (c_val_print): Update.
9066 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9067 * common/agent.c (agent_look_up_symbols): Update.
9068 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9069 * dwarf2loc.c (call_site_to_target_addr): Update.
9070 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9071 * elfread.c (elf_gnu_ifunc_record_cache)
9072 (elf_gnu_ifunc_resolve_by_got): Update.
9073 * findvar.c (default_read_var_value): Update.
9074 * frame.c (inside_main_func): Update.
9075 * frv-tdep.c (frv_frame_this_id): Update.
9076 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9077 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9078 Update.
9079 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9080 (hppa_hpux_find_dummy_bpaddr): Update.
9081 * hppa-tdep.c (hppa_symbol_address): Update.
9082 * infcmd.c (until_next_command): Update.
9083 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9084 Update.
9085 * linespec.c (minsym_found, add_minsym): Update.
9086 * linux-nat.c (get_signo): Update.
9087 * linux-thread-db.c (inferior_has_bug): Update.
9088 * m32c-tdep.c (m32c_return_value)
9089 (m32c_m16c_address_to_pointer): Update.
9090 * m32r-tdep.c (m32r_frame_this_id): Update.
9091 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9092 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9093 * maint.c (maintenance_translate_address): Update.
9094 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9095 (frob_address): New function.
9096 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9097 frob_address. Rename parameter to "pc_in".
9098 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9099 addresses.
9100 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9101 Update.
9102 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9103 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9104 * objc-lang.c (find_objc_msgsend): Update.
9105 * objfiles.c (objfile_relocate1): Update.
9106 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9107 * p-valprint.c (pascal_val_print): Update.
9108 * parse.c (write_exp_msymbol): Update.
9109 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9110 (ppc_elfv2_skip_entrypoint): Update.
9111 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9112 * printcmd.c (build_address_symbolic, msym_info)
9113 (address_info): Update.
9114 * proc-service.c (ps_pglobal_lookup): Update.
9115 * psymtab.c (find_pc_sect_psymtab_closer)
9116 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9117 Change msymbol parameter to bound_minimal_symbol.
9118 * ravenscar-thread.c (get_running_thread_id): Update.
9119 * remote.c (remote_check_symbols): Update.
9120 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9121 address.
9122 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9123 * solib-dsbt.c (lm_base): Update.
9124 * solib-frv.c (lm_base, main_got): Update.
9125 * solib-irix.c (locate_base): Update.
9126 * solib-som.c (som_solib_create_inferior_hook)
9127 (link_map_start): Update.
9128 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9129 * solib-svr4.c (elf_locate_base, enable_break): Update.
9130 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9131 (flush_ea_cache): Update.
9132 * stabsread.c (define_symbol, scan_file_globals): Update.
9133 * stack.c (find_frame_funname): Update.
9134 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9135 (debug_qf_find_pc_sect_symtab): Update.
9136 * symfile.c (simple_read_overlay_table)
9137 (simple_overlay_update): Update.
9138 * symfile.h (struct quick_symbol_functions)
9139 <find_pc_sect_symtab>: Change type of msymbol to
9140 bound_minimal_symbol.
9141 * symmisc.c (dump_msymbols): Update.
9142 * symtab.c (find_pc_sect_symtab_via_partial)
9143 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9144 (search_symbols, print_msymbol_info): Update.
9145 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9146 (MSYMBOL_VALUE_ADDRESS): Redefine.
9147 (BMSYMBOL_VALUE_ADDRESS): New macro.
9148 * tracepoint.c (scope_info): Update.
9149 * tui/tui-disasm.c (tui_find_disassembly_address)
9150 (tui_get_begin_asm_address): Update.
9151 * valops.c (find_function_in_inferior): Update.
9152 * value.c (value_static_field, value_fn_field): Update.
9153
3b7344d5
TT
91542014-02-26 Tom Tromey <tromey@redhat.com>
9155
9156 * ada-lang.c (ada_update_initial_language): Update.
9157 (ada_main_name, ada_has_this_exception_support): Update.
9158 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9159 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9160 * arm-tdep.c (arm_skip_stub): Update.
9161 * auxv.c (ld_so_xfer_auxv): Update.
9162 * avr-tdep.c (avr_scan_prologue): Update.
9163 * ax-gdb.c (gen_var_ref): Update.
9164 * breakpoint.c (struct breakpoint_objfile_data)
9165 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9166 type to bound_minimal_symbol.
9167 (create_overlay_event_breakpoint)
9168 (create_longjmp_master_breakpoint)
9169 (create_std_terminate_master_breakpoint)
9170 (create_exception_master_breakpoint): Update.
9171 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9172 * c-exp.y (classify_name): Update.
9173 * coffread.c (coff_symfile_read): Update.
9174 * common/agent.c (agent_look_up_symbols): Update.
9175 * d-lang.c (d_main_name): Update.
9176 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9177 * dec-thread.c (enable_dec_thread): Update.
9178 * dwarf2loc.c (call_site_to_target_addr): Update.
9179 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9180 * eval.c (evaluate_subexp_standard): Update.
9181 * findvar.c (struct minsym_lookup_data) <result>: Change type
9182 to bound_minimal_symbol.
9183 <objfile>: Remove.
9184 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9185 * frame.c (inside_main_func): Update.
9186 * frv-tdep.c (frv_frame_this_id): Update.
9187 * gcore.c (call_target_sbrk): Update.
9188 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9189 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9190 Update.
9191 * go-lang.c (go_main_name): Update.
9192 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9193 (hppa_hpux_find_import_stub_for_addr): Update.
9194 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9195 Update. Change return type.
9196 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9197 type.
9198 * jit.c (jit_breakpoint_re_set_internal): Update.
9199 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9200 Update.
9201 * linux-nat.c (get_signo): Update.
9202 * linux-thread-db.c (inferior_has_bug): Update
9203 * m32c-tdep.c (m32c_return_value)
9204 (m32c_m16c_address_to_pointer): Update.
9205 * m32r-tdep.c (m32r_frame_this_id): Update.
9206 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9207 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9208 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9209 lookup_minimal_symbol. Change return type.
9210 (lookup_minimal_symbol): Remove.
9211 (lookup_bound_minimal_symbol): Update.
9212 (lookup_minimal_symbol_text): Change return type.
9213 (lookup_minimal_symbol_solib_trampoline): Change return type.
9214 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9215 (lookup_minimal_symbol_solib_trampoline): Change return type.
9216 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9217 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9218 (value_nsstring, find_imps): Update.
9219 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9220 * p-lang.c (pascal_main_name): Update.
9221 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9222 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9223 * proc-service.c (ps_pglobal_lookup): Update.
9224 * ravenscar-thread.c (get_running_thread_msymbol): Change
9225 return type.
9226 (has_ravenscar_runtime, get_running_thread_id): Update.
9227 * remote.c (remote_check_symbols): Update.
9228 * sol-thread.c (ps_pglobal_lookup): Update.
9229 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9230 * solib-dsbt.c (lm_base): Update.
9231 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9232 Update.
9233 * solib-irix.c (locate_base): Update.
9234 * solib-som.c (som_solib_create_inferior_hook)
9235 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9236 Update.
9237 * solib-spu.c (spu_enable_break): Update.
9238 * solib-svr4.c (elf_locate_base, enable_break): Update.
9239 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9240 (flush_ea_cache): Update.
9241 * stabsread.c (define_symbol): Update.
9242 * symfile.c (simple_read_overlay_table): Update.
9243 * symtab.c (find_pc_sect_line): Update.
9244 * tracepoint.c (scope_info): Update.
9245 * tui-disasm.c (tui_get_begin_asm_address): Update.
9246 * value.c (value_static_field): Update.
9247
40c1a007
TT
92482014-02-26 Tom Tromey <tromey@redhat.com>
9249
9250 * minsyms.c (prim_record_minimal_symbol_full): Use
9251 SET_MSYMBOL_VALUE_ADDRESS.
9252 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9253 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9254 SET_MSYMBOL_VALUE_ADDRESS.
9255 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9256 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9257
efd66ac6
TT
92582014-02-26 Tom Tromey <tromey@redhat.com>
9259
9260 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9261 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9262 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9263 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9264 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9265 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9266 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9267 * ada-lang.c (ada_main_name): Update.
9268 (ada_lookup_simple_minsym): Update.
9269 (ada_make_symbol_completion_list): Update.
9270 (ada_add_standard_exceptions): Update.
9271 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9272 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9273 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9274 * arm-tdep.c (skip_prologue_function): Update.
9275 (arm_skip_stack_protector, arm_skip_stub): Update.
9276 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9277 (arm_wince_skip_main_prologue): Update.
9278 * auxv.c (ld_so_xfer_auxv): Update.
9279 * avr-tdep.c (avr_scan_prologue): Update.
9280 * ax-gdb.c (gen_var_ref): Update.
9281 * block.c (call_site_for_pc): Update.
9282 * blockframe.c (get_pc_function_start): Update.
9283 (find_pc_partial_function_gnu_ifunc): Update.
9284 * breakpoint.c (create_overlay_event_breakpoint): Update.
9285 (create_longjmp_master_breakpoint): Update.
9286 (create_std_terminate_master_breakpoint): Update.
9287 (create_exception_master_breakpoint): Update.
9288 (resolve_sal_pc): Update.
9289 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9290 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9291 Update.
9292 * c-valprint.c (c_val_print): Update.
9293 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9294 * coffread.c (coff_symfile_read): Update.
9295 * common/agent.c (agent_look_up_symbols): Update.
9296 * dbxread.c (find_stab_function_addr): Update.
9297 (end_psymtab): Update.
9298 * dwarf2loc.c (call_site_to_target_addr): Update.
9299 (func_verify_no_selftailcall): Update.
9300 (tailcall_dump): Update.
9301 (call_site_find_chain_1): Update.
9302 (dwarf_expr_reg_to_entry_parameter): Update.
9303 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9304 (elf_gnu_ifunc_resolve_by_got): Update.
9305 * f-valprint.c (info_common_command): Update.
9306 * findvar.c (read_var_value): Update.
9307 * frame.c (get_prev_frame_1): Update.
9308 (inside_main_func): Update.
9309 * frv-tdep.c (frv_skip_main_prologue): Update.
9310 (frv_frame_this_id): Update.
9311 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9312 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9313 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9314 (gnuv3_skip_trampoline): Update.
9315 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9316 (hppa64_hpux_in_solib_call_trampoline): Update.
9317 (hppa_hpux_skip_trampoline_code): Update.
9318 (hppa64_hpux_search_dummy_call_sequence): Update.
9319 (hppa_hpux_find_import_stub_for_addr): Update.
9320 (hppa_hpux_find_dummy_bpaddr): Update.
9321 * hppa-tdep.c (hppa_symbol_address)
9322 (hppa_lookup_stub_minimal_symbol): Update.
9323 * i386-tdep.c (i386_skip_main_prologue): Update.
9324 (i386_pe_skip_trampoline_code): Update.
9325 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9326 * infcall.c (get_function_name): Update.
9327 * infcmd.c (until_next_command): Update.
9328 * jit.c (jit_breakpoint_re_set_internal): Update.
9329 (jit_inferior_init): Update.
9330 * linespec.c (minsym_found): Update.
9331 (add_minsym): Update.
9332 * linux-fork.c (info_checkpoints_command): Update.
9333 * linux-nat.c (get_signo): Update.
9334 * linux-thread-db.c (inferior_has_bug): Update.
9335 * m32c-tdep.c (m32c_return_value): Update.
9336 (m32c_m16c_address_to_pointer): Update.
9337 (m32c_m16c_pointer_to_address): Update.
9338 * m32r-tdep.c (m32r_frame_this_id): Update.
9339 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9340 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9341 * maint.c (maintenance_translate_address): Update.
9342 * minsyms.c (add_minsym_to_hash_table): Update.
9343 (add_minsym_to_demangled_hash_table): Update.
9344 (msymbol_objfile): Update.
9345 (lookup_minimal_symbol): Update.
9346 (iterate_over_minimal_symbols): Update.
9347 (lookup_minimal_symbol_text): Update.
9348 (lookup_minimal_symbol_by_pc_name): Update.
9349 (lookup_minimal_symbol_solib_trampoline): Update.
9350 (lookup_minimal_symbol_by_pc_section_1): Update.
9351 (lookup_minimal_symbol_and_objfile): Update.
9352 (prim_record_minimal_symbol_full): Update.
9353 (compare_minimal_symbols): Update.
9354 (compact_minimal_symbols): Update.
9355 (build_minimal_symbol_hash_tables): Update.
9356 (install_minimal_symbols): Update.
9357 (terminate_minimal_symbol_table): Update.
9358 (find_solib_trampoline_target): Update.
9359 (minimal_symbol_upper_bound): Update.
9360 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9361 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9362 (mips_skip_pic_trampoline_code): Update.
9363 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9364 * objc-lang.c (selectors_info): Update.
9365 (classes_info): Update.
9366 (find_methods): Update.
9367 (find_imps): Update.
9368 (find_objc_msgsend): Update.
9369 * objfiles.c (objfile_relocate1): Update.
9370 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9371 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9372 * p-valprint.c (pascal_val_print): Update.
9373 * parse.c (write_exp_msymbol): Update.
9374 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9375 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9376 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9377 * printcmd.c (build_address_symbolic): Update.
9378 (sym_info): Update.
9379 (address_info): Update.
9380 * proc-service.c (ps_pglobal_lookup): Update.
9381 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9382 (find_pc_sect_psymtab): Update.
9383 * python/py-framefilter.c (py_print_frame): Update.
9384 * ravenscar-thread.c (get_running_thread_id): Update.
9385 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9386 Update.
9387 * remote.c (remote_check_symbols): Update.
9388 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9389 (rs6000_skip_trampoline_code): Update.
9390 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9391 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9392 * solib-dsbt.c (lm_base): Update.
9393 * solib-frv.c (lm_base): Update.
9394 (main_got): Update.
9395 * solib-irix.c (locate_base): Update.
9396 * solib-som.c (som_solib_create_inferior_hook): Update.
9397 (som_solib_desire_dynamic_linker_symbols): Update.
9398 (link_map_start): Update.
9399 * solib-spu.c (spu_enable_break): Update.
9400 (ocl_enable_break): Update.
9401 * solib-svr4.c (elf_locate_base): Update.
9402 (enable_break): Update.
9403 * spu-tdep.c (spu_get_overlay_table): Update.
9404 (spu_catch_start): Update.
9405 (flush_ea_cache): Update.
9406 * stabsread.c (define_symbol): Update.
9407 (scan_file_globals): Update.
9408 * stack.c (find_frame_funname): Update.
9409 (frame_info): Update.
9410 * symfile.c (simple_read_overlay_table): Update.
9411 (simple_overlay_update): Update.
9412 * symmisc.c (dump_msymbols): Update.
9413 * symtab.c (fixup_section): Update.
9414 (find_pc_sect_line): Update.
9415 (skip_prologue_sal): Update.
9416 (search_symbols): Update.
9417 (print_msymbol_info): Update.
9418 (rbreak_command): Update.
9419 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9420 (completion_list_objc_symbol): Update.
9421 (default_make_symbol_completion_list_break_on): Update.
9422 * tracepoint.c (scope_info): Update.
9423 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9424 (tui_get_begin_asm_address): Update.
9425 * valops.c (find_function_in_inferior): Update.
9426 * value.c (value_static_field): Update.
9427 (value_fn_field): Update.
9428
50e65b17
TT
94292014-02-26 Tom Tromey <tromey@redhat.com>
9430
9431 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9432 bound minimal symbols. Move code that knows about minsym
9433 table layout...
9434 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9435 function.
9436 * minsyms.h (minimal_symbol_upper_bound): Declare.
9437 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9438 minimal_symbol_upper_bound.
9439
1b588015
JB
94402014-02-27 Joel Brobecker <brobecker@adacore.com>
9441
9442 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9443 Use the type's name if its basic type does not have a tag.
9444
dbb9c2b1
JB
94452014-02-27 Joel Brobecker <brobecker@adacore.com>
9446
9447 * dwarf2read.c (read_subrange_type): Add comment.
9448
55426c9d
JB
94492014-02-27 Joel Brobecker <brobecker@adacore.com>
9450
9451 * dwarf2read.c (update_enumeration_type_from_children): New
9452 function, mostly extracted from process_structure_scope.
9453 (read_enumeration_type): Call update_enumeration_type_from_children.
9454 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9455 and flag_flag_enum fields.
9456
f2fce0ca
PA
94572014-02-26 Pedro Alves <palves@redhat.com>
9458
9459 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9460 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9461 to_xfer_partial method.
9462
7a44e40e
PA
94632014-02-26 Pedro Alves <palves@redhat.com>
9464
9465 * target.c (complete_target_initialization): Don't install
9466 default_xfer_partial as to_xfer_partial hook.
9467 (nomemory): Delete.
9468 (update_current_target): Don't INHERIT nor de_fault
9469 deprecated_xfer_memory. Delete de_fault macro.
9470 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9471 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9472 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9473 field.
9474
bd265cd0
PA
94752014-02-26 Pedro Alves <palves@redhat.com>
9476
9477 * go32-nat.c (my_write_child): New function.
9478 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9479 (go32_xfer_partial): New function.
9480 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9481 Instead install a to_xfer_partial hook.
9482
9d46c4e5
PA
94832014-02-26 Pedro Alves <palves@redhat.com>
9484
9485 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9486 to_xfer_partial helper. Rewrite.
9487 (procfs_xfer_partial): New function.
9488 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9489 Install a to_xfer_partial hook.
9490
a1583b1f
PA
94912014-02-26 Pedro Alves <palves@redhat.com>
9492
9493 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9494 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9495 (m32r_xfer_partial): New function.
9496 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9497 Install a to_xfer_partial hook.
9498
6df1b29f
PA
94992014-02-26 Pedro Alves <palves@redhat.com>
9500
9501 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9502 helper.
9503 (mips_xfer_partial): New function.
9504 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9505 hook. Install a to_xfer_partial hook.
9506
dc53a7ad
JB
95072014-02-26 Joel Brobecker <brobecker@adacore.com>
9508
9509 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9510 * gdbtypes.c (create_array_type_with_stride): New function,
9511 renaming create_array_type, but with an added parameter
9512 called "bit_stride".
9513 (create_array_type): Re-implement using
9514 create_array_type_with_stride.
9515 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9516 and DW_AT_bit_stride attributes.
9517
12ab52e9
PA
95182014-02-26 Pedro Alves <palves@redhat.com>
9519
9520 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9521 task-specific breakpoints.
9522
d16461ae
PA
95232014-02-25 Pedro Alves <palves@redhat.com>
9524
9525 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9526 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9527
a8b16220
SS
95282014-02-25 Stan Shebs <stan@codesourcery.com>
9529
9530 * defs.h: Annotate comments for Doxygen.
9531
b9e795ee
TT
95322014-02-25 Tom Tromey <tromey@redhat.com>
9533
9534 * target.h (target_ignore): Don't declare.
9535 * target.c (target_ignore): Remove.
9536
849c862e
JK
95372014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9538
9539 PR gdb/16626
9540 * auto-load.c (auto_load_objfile_script_1): Change filename to
9541 debugfile.
9542
475109d8
JB
95432014-02-25 Joel Brobecker <brobecker@adacore.com>
9544
9545 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9546 documentation. Adjust prototype to match the target_ops
9547 to_xfer_partial method. Adjust implementation accordingly.
9548
e186c3bd
HZ
95492014-02-25 Hui Zhu <hui@codesourcery.com>
9550
9551 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9552 to_traceframe_info.
9553
6d451942
KB
95542014-02-25 Kevin Buettner <kevinb@redhat.com>
9555
041ab8b4 9556 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
9557 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9558 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9559 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9560 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9561 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9562 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9563 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9564 New constants.
9565 (rl78_register_type): Use a data pointer type for SP and
9566 new pseudo registers mentioned above. Use a 16 bit integer
9567 type for all other register pairs.
9568 (rl78_register_name, rl78_g10_register_name): Update for
9569 new pseudo registers.
9570 (rl78_pseudo_register_read): Likewise.
9571 (rl78_pseudo_register_write): Likewise.
9572 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9573 to the newly added pseudo registers.
9574
eddf0bae
DE
95752014-02-24 Doug Evans <dje@google.com>
9576
9577 * value.c (record_latest_value): Fix comment.
9578 * printcmd.c (print_command_1): Remove code to handle -1 return from
9579 record_latest_value.
9580
e96027e0
PA
95812014-02-24 Pedro Alves <palves@redhat.com>
9582
9583 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9584 deprecated_xfer_memory hook.
9585 (procfs_xfer_partial): Call procfs_xfer_memory instead
9586 of the deprecated_xfer_memory target hook.
9587 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9588 helper.
9589
0837c976
YZ
95902014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9591
9592 * windows-nat.c (windows_xfer_shared_libraries): Return
9593 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9594 requested object is TARGET_OBJECT_LIBRARIES.
9595
bc113b4e
YQ
95962014-02-24 Yao Qi <yao@codesourcery.com>
9597
9598 * target.h (enum target_xfer_status)
9599 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9600 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9601 explicitly. New.
9602 * corefile.c (memory_error_message): User updated.
9603 * exec.c (section_table_read_available_memory): Likewise.
9604 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9605 * target.c (target_xfer_status_to_string): Likewise.
9606 (raw_memory_xfer_partial): Likewise.
9607 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9608 * valops.c (read_value_memory): Likewise.
9609 * exec.h: Update comments.
9610
01cb8804
YQ
96112014-02-24 Yao Qi <yao@codesourcery.com>
9612
9613 * target.c (target_xfer_status_to_string): Rename argument err
9614 to status.
9615 * target.h (target_xfer_status_to_string): Update declaration.
9616 Replace target_xfer_error_to_string with
9617 target_xfer_status_to_string in comment.
9618
93063aa6
YQ
96192014-02-24 Yao Qi <yao@codesourcery.com>
9620
9621 * mips-linux-nat.c (super_close): Update its type.
9622 (mips_linux_close): Pass 'self' to super_close.
9623
5c328c05
YQ
96242014-02-24 Yao Qi <yao@codesourcery.com>
9625
9626 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9627 * corefile.c (read_memory): Adjusted.
9628 * target.c (target_write_with_progress): Adjusted.
9629
f73023dd
YQ
96302014-02-23 Yao Qi <yao@codesourcery.com>
9631
9632 Revert two patches:
9633
9634 2013-10-25 Yao Qi <yao@codesourcery.com>
9635
9636 * remote.c (remote_traceframe_info): Return early if
9637 traceframe is not selected.
9638
9639 2013-07-19 Yao Qi <yao@codesourcery.com>
9640
9641 * target.c (update_current_target): Change the default action
9642 of 'to_traceframe_info' from tcomplain to return_zero.
9643 * target.h (struct target_ops) <to_traceframe_info>: Add more
9644 comments.
9645
5a2eb0ef
YQ
96462014-02-23 Yao Qi <yao@codesourcery.com>
9647
9648 * valops.c (read_value_memory): Rewrite it. Call
9649 target_xfer_partial in a loop.
9650 * exec.h (section_table_available_memory): Remove declaration.
9651 Move comments to ...
9652 * exec.c (section_table_available_memory): ... here. Make it
9653 static.
9654
1ee79381
YQ
96552014-02-23 Yao Qi <yao@codesourcery.com>
9656
9657 * exec.c (section_table_read_available_memory): New function.
9658 * exec.h (section_table_read_available_memory): Declare.
9659 * ctf.c (ctf_xfer_partial): Call
9660 section_table_read_available_memory.
9661 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9662
1ca49d37
YQ
96632014-02-23 Yao Qi <yao@codesourcery.com>
9664
9665 * ctf.c (ctf_xfer_partial): Move code to ...
9666 * exec.c (exec_read_partial_read_only): ... it. New function.
9667 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9668 * tracefile.c: Include "exec.h".
9669 * exec.h (exec_read_partial_read_only): Declare.
9670
a283690e
YQ
96712014-02-23 Yao Qi <yao@codesourcery.com>
9672
9673 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9674 (tfile_has_memory): Remove.
9675 (init_tfile_ops): Don't set fields to_has_all_memory and
9676 to_has_memory of tfile_ops.
9677 * tracefile.c (tracefile_has_all_memory): New function.
9678 (tracefile_has_memory): New function.
9679 (init_tracefile_ops): Initialize fields to_has_all_memory and
9680 to_has_memory of 'ops'.
9681
12e03cd0
YQ
96822014-02-23 Yao Qi <yao@codesourcery.com>
9683
9684 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9685 (ctf_thread_alive, ctf_get_trace_status): Remove.
9686 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9687 init_tracefile_ops.
9688 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9689 (tfile_has_stack, tfile_has_registers): Remove.
9690 (tfile_thread_alive): Remove.
9691 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9692 init_tracefile_ops.
9693 * tracefile.c (tracefile_has_stack): New function.
9694 (tracefile_has_registers): New function.
9695 (tracefile_thread_alive): New function.
9696 (tracefile_get_trace_status): New function.
9697 (init_tracefile_ops): New function.
9698 * tracefile.h (init_tracefile_ops): Declare.
9699
11395323
YQ
97002014-02-23 Yao Qi <yao@codesourcery.com>
9701
9702 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9703 (O_LARGEFILE): Likewise.
9704 (tfile_ops): Likewise.
9705 (TRACE_HEADER_SIZE): Likewise.
9706 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9707 (cur_data_size): Likewise.
9708 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9709 (tfile_close, tfile_files_info): Likewise.
9710 (tfile_get_trace_status): Likewise.
9711 (tfile_get_tracepoint_status): Likewise.
9712 (tfile_get_traceframe_address): Likewise.
9713 (tfile_trace_find, match_blocktype): Likewise.
9714 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9715 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9716 (tfile_get_trace_state_variable_value): Likewise.
9717 (tfile_has_all_memory, tfile_has_memory): Likewise.
9718 (tfile_has_stack, tfile_has_registers): Likewise.
9719 (tfile_thread_alive, build_traceframe_info): Likewise.
9720 (tfile_traceframe_info, init_tfile_ops): Likewise.
9721 (_initialize_tracepoint): Don't call init_tfile_ops
9722 and add_target_with_completer.
9723 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9724 exec.h, completer.h and filenames.h.
9725 (_initialize_tracefile_tfile): New function.
9726
7951c4eb
YQ
97272014-02-23 Yao Qi <yao@codesourcery.com>
9728
9729 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9730 tracefile-tfile.o.
9731 (HFILES_NO_SRCDIR): Add tracefile.h.
9732 * ctf.c: Include "tracefile.h".
9733 * tracefile.h: New file.
9734 * tracefile.c: New file
9735 * tracefile-tfile.c: New file.
9736 * tracepoint.c: Include "tracefile.h".
9737 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9738 (stop_reason_names): Add const.
9739 (trace_file_writer_xfree): Move it to tracefile.c.
9740 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9741 (trace_save_ctf): Likewise.
9742 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9743 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9744 (tfile_write_header, tfile_write_regblock_type): Likewise.
9745 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9746 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9747 (tfile_write_raw_data, tfile_end): Likewise.
9748 (tfile_trace_file_writer_new): Likewise.
9749 (free_uploaded_tp): Make it extern.
9750 (free_uploaded_tsv): Make it extern.
9751 (_initialize_tracepoint): Move code to register command 'tsave'
9752 to tracefile.c.
9753 * tracepoint.h (stop_reason_names): Declare.
9754 (struct trace_frame_write_ops): Move it to tracefile.h.
9755 (struct trace_file_write_ops): Likewise.
9756 (struct trace_file_writer): Likewise.
9757 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9758
184cd072
JK
97592014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9760
9761 PR gdb/16594
9762 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
9763 process name.
9764 (get_cores_used_by_process): New parameter num_cores, use it.
9765 (linux_xfer_osdata_processes): Pass num_cores to it.
9766 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
9767 process name.
9768
c63528fc
AK
97692014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
9770
9771 * target.c (memory_xfer_partial): Fix length arg in call to
9772 breakpoint_xfer_memory.
9773
d7b30f67
SDJ
97742014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9775
9776 PR tdep/16397
9777 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
9778 number comes after the + or - signs. Adjust length of register
9779 name to be extracted.
9780
8838afaf
TT
97812014-02-20 Tom Tromey <tromey@redhat.com>
9782
9783 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
9784 (ada_varobj_ops): Mark "extern".
9785
05227d14
TT
97862014-02-20 Tom Tromey <tromey@redhat.com>
9787
9788 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
9789
1254eefc
DE
97902014-02-20 Doug Evans <xdje42@gmail.com>
9791
9792 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
9793 All callers updated.
9794 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
9795 All callers updated.
9796 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
9797 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
9798
adde2bff
DE
97992014-02-20 lin zuojian <manjian2006@gmail.com>
9800 Joel Brobecker <brobecker@adacore.com>
9801 Doug Evans <xdje42@gmail.com>
9802
9803 PR symtab/16581
9804 * dwarf2read.c (struct die_info): New member in_process.
9805 (reset_die_in_process): New function.
9806 (process_die): Set it at the start, reset when returning.
9807 (inherit_abstract_dies): Only call process_die if origin_child_die
9808 not already being processed.
9809
3be75f87
JB
98102014-02-20 Joel Brobecker <brobecker@adacore.com>
9811
9812 * windows-nat.c (handle_unload_dll): Add function documentation.
9813 (do_initial_windows_stuff): Add comment explaining why we wait
9814 until after inferior initialization has finished before
9815 processing all DLLs.
9816
47f7ffdb
JB
98172014-02-20 Joel Brobecker <brobecker@adacore.com>
9818
9819 * windows-nat.c (get_module_name): Delete.
9820 (windows_get_exec_module_filename): New function, mostly
9821 inspired from get_module_name.
9822 (windows_pid_to_exec_file): Replace call to get_module_name
9823 by call to windows_get_exec_module_filename.
9824
1cd9feab
JB
98252014-02-20 Joel Brobecker <brobecker@adacore.com>
9826
9827 * windows-nat.c (handle_load_dll): Rewrite this function's
9828 introductory comment. Remove code using get_module_name
9829 to get the DLL's name.
9830
ea39ad35
JB
98312014-02-20 Joel Brobecker <brobecker@adacore.com>
9832
9833 * windows-nat.c (get_windows_debug_event): Ignore
9834 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
9835 if windows_initialization_done == 0.
9836 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
9837 Adjust implementation to always load all DLLs.
9838 (do_initial_windows_stuff): Replace call to
9839 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
9840
95060284
JB
98412014-02-20 Joel Brobecker <brobecker@adacore.com>
9842
9843 * windows-nat.c (_initialize_windows_nat): Deprecate the
9844 "dll-symbols" command. Turn the "add-shared-symbol-files"
9845 and "assf" aliases into commands, and deprecate them as well.
9846 * NEWS: Add entry explaining that "dll-symbols" and its two
9847 aliases are now deprecated.
9848
8d4fdb12
JB
98492014-02-20 Joel Brobecker <brobecker@adacore.com>
9850
9851 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
9852 new-line in debug string. Remove trailing spaces.
9853
1b281443
SS
98542014-02-19 Stan Shebs <stan@codesourcery.com>
9855
9856 * darwin-nat.c (darwin_xfer_partial): Fix return type.
9857
f7bd0f78
SC
98582014-02-19 Siva Chandra Reddy <sivachandra@google.com>
9859
9860 * NEWS: Add entry for the new feature
9861 * python/py-value.c (valpy_binop): Call value_x_binop for struct
9862 and class values.
9863
399ebc3d
SS
98642014-02-19 Stan Shebs <stan@codesourcery.com>
9865
9866 * MAINTAINERS: List Yao Qi as nios2 maintainer.
9867
c658158d
PA
98682014-02-19 Pedro Alves <palves@redhat.com>
9869
9870 * common/ptid.h (struct ptid): Mention that process_stratum
9871 targets should prefer ptid.lwp.
9872
ba348170
PA
98732014-02-19 Pedro Alves <palves@redhat.com>
9874
9875 * remote.c (remote_thread_alive, write_ptid, read_ptid)
9876 (read_ptid, remote_newthread_step, remote_threads_extra_info)
9877 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
9878 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
9879 store remote thread ids rather than ptid.tid.
9880 (_initialize_remote): Adjust.
9881
ac01945b
TT
98822014-02-19 Tom Tromey <tromey@redhat.com>
9883
9884 * target.c (target_get_unwinder): Rewrite.
9885 (target_get_tailcall_unwinder): Rewrite.
9886 * record-btrace.c (record_btrace_to_get_unwinder): New function.
9887 (record_btrace_to_get_tailcall_unwinder): New function.
9888 (init_record_btrace_ops): Update.
9889 * target.h (struct target_ops) <to_get_unwinder,
9890 to_get_tailcall_unwinder>: Now function pointers. Use
9891 TARGET_DEFAULT_RETURN.
9892
8476dc92
TT
98932014-02-19 Tom Tromey <tromey@redhat.com>
9894
9895 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
9896 argument.
9897 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
9898
c0eca49f
TT
98992014-02-19 Tom Tromey <tromey@redhat.com>
9900
9901 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
9902 directly.
9903 * target-delegates.c: Rebuild.
9904 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
9905 TARGET_DEFAULT_FUNC.
9906 * target.c (default_target_decr_pc_after_break): Rename from
9907 forward_target_decr_pc_after_break. Simplify.
9908 (target_decr_pc_after_break): Rely on delegation.
9909
596b6b39
TT
99102014-02-19 Tom Tromey <tromey@redhat.com>
9911
9912 * target.c (update_current_target): Do not INHERIT to_doc or
9913 to_magic. Do not de_fault to_open or to_close.
9914
b427c1bc
TT
99152014-02-19 Tom Tromey <tromey@redhat.com>
9916
9917 * gcore.h (objfile_find_memory_regions): Declare.
9918 * gcore.c (objfile_find_memory_regions): No longer static. Add
9919 "self" argument.
9920 (_initialize_gcore): Don't call exec_set_find_memory_regions.
9921 * exec.c: Include gcore.h.
9922 (exec_set_find_memory_regions): Remove.
9923 (exec_find_memory_regions): Remove.
9924 (exec_do_find_memory_regions): Remove.
9925 (init_exec_ops): Update.
9926 * defs.h (exec_set_find_memory_regions): Remove.
9927
9b144037
TT
99282014-02-19 Tom Tromey <tromey@redhat.com>
9929
9930 * target-delegates.c: Rebuild.
9931 * target.h (struct target_ops) <to_extra_thread_info,
9932 to_thread_name, to_pid_to_exec_file, to_get_section_table,
9933 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
9934 not 0, in TARGET_DEFAULT_RETURN.
9935
555bbdeb
TT
99362014-02-19 Tom Tromey <tromey@redhat.com>
9937
9938 * target.c (complete_target_initialization): Remove casts. Use
9939 return_zero_has_execution.
9940 (return_zero): Add "ignore" argument.
9941 (return_zero_has_execution): New function.
9942 (init_dummy_target): Remove casts. Use
9943 return_zero_has_execution.
9944
be4ddd36
TT
99452014-02-19 Tom Tromey <tromey@redhat.com>
9946
9947 * target.c (update_current_target): Update comments. Do not
9948 INHERIT to_stratum.
9949
2117c711
TT
99502014-02-19 Tom Tromey <tromey@redhat.com>
9951
9952 * arm-linux-nat.c (arm_linux_read_description): Delegate when
9953 needed.
9954 * corelow.c (core_read_description): Delegate when needed.
9955 * remote.c (remote_read_description): Delegate when needed.
9956 * target-delegates.c: Rebuild.
9957 * target.c (target_read_description): Rewrite.
9958 * target.h (struct target_ops) <to_read_description>: Update
9959 comment. Use TARGET_DEFAULT_RETURN.
9960
e88ef65c
TT
99612014-02-19 Tom Tromey <tromey@redhat.com>
9962
9963 * target-delegates.c: Rebuild.
9964 * target.c (update_current_target): Don't inherit or default
9965 to_can_run.
9966 (find_default_run_target): Check against delegate_can_run.
9967 * target.h (struct target_ops) <to_can_run>: Use
9968 TARGET_DEFAULT_RETURN.
9969
86a0854a
TT
99702014-02-19 Tom Tromey <tromey@redhat.com>
9971
9972 * target-delegates.c: Rebuild.
9973 * target.c (target_disconnect): Unconditionally delegate.
9974 * target.h (struct target_ops) <to_disconnect>: Use
9975 TARGET_DEFAULT_NORETURN.
9976
ee97f592
TT
99772014-02-19 Tom Tromey <tromey@redhat.com>
9978
9979 * record.c (record_stop): Unconditionally delegate.
9980 * target-delegates.c: Rebuild.
9981 * target.c (target_stop_recording): Unconditionally delegate.
9982 * target.h (struct target_ops) <to_stop_recording>: Use
9983 TARGET_DEFAULT_IGNORE.
9984
6dc7fcf4
TT
99852014-02-19 Tom Tromey <tromey@redhat.com>
9986
9987 * target-delegates.c: Rebuild.
9988 * target.c (target_enable_btrace): Unconditionally delegate.
9989 * target.h (struct target_ops) <to_enable_btrace>: Use
9990 TARGET_DEFAULT_NORETURN.
9991
eb5b20d4
TT
99922014-02-19 Tom Tromey <tromey@redhat.com>
9993
9994 * target-delegates.c: Rebuild.
9995 * target.c (target_read_btrace): Unconditionally delegate.
9996 * target.h (struct target_ops) <to_read_btrace>: Use
9997 TARGET_DEFAULT_NORETURN.
9998
9ace480d
TT
99992014-02-19 Tom Tromey <tromey@redhat.com>
10000
10001 * target-delegates.c: Rebuild.
10002 * target.c (target_teardown_btrace): Unconditionally delegate.
10003 * target.h (struct target_ops) <to_teardown_btrace>: Use
10004 TARGET_DEFAULT_NORETURN.
10005
8dc292d3
TT
100062014-02-19 Tom Tromey <tromey@redhat.com>
10007
10008 * target-delegates.c: Rebuild.
10009 * target.c (target_disable_btrace): Unconditionally delegate.
10010 * target.h (struct target_ops) <to_disable_btrace>: Use
10011 TARGET_DEFAULT_NORETURN.
10012
58a5184e
TT
100132014-02-19 Tom Tromey <tromey@redhat.com>
10014
10015 * target-delegates.c: Rebuild.
10016 * target.c (default_search_memory): New function.
10017 (simple_search_memory): Update comment.
10018 (target_search_memory): Unconditionally delegate.
10019 * target.h (struct target_ops) <to_search_memory>: Use
10020 TARGET_DEFAULT_FUNC.
10021
8de71aab
TT
100222014-02-19 Tom Tromey <tromey@redhat.com>
10023
10024 * auxv.c (default_auxv_parse): No longer static.
10025 (target_auxv_parse): Unconditionally delegate.
10026 * auxv.h (default_auxv_parse): Declare.
10027 * target-delegates.c: Rebuild.
10028 * target.c: Include auxv.h.
10029 * target.h (struct target_ops) <to_auxv_parse>: Use
10030 TARGET_DEFAULT_FUNC.
10031
6b2c5a57
TT
100322014-02-19 Tom Tromey <tromey@redhat.com>
10033
10034 * target-delegates.c: Rebuild.
10035 * target.c (target_memory_map): Unconditionally delegate.
10036 * target.h (struct target_ops) <to_memory_map>: Use
10037 TARGET_DEFAULT_RETURN.
10038
cbffc065
TT
100392014-02-19 Tom Tromey <tromey@redhat.com>
10040
10041 * target-delegates.c: Rebuild.
10042 * target.c (target_thread_alive): Unconditionally delegate.
10043 * target.h (struct target_ops) <to_thread_alive>: Use
10044 TARGET_DEFAULT_RETURN.
10045
f09e2107
TT
100462014-02-19 Tom Tromey <tromey@redhat.com>
10047
10048 * target-delegates.c: Rebuild.
10049 * target.c (target_save_record): Unconditionally delegate.
10050 * target.h (struct target_ops) <to_save_record>: Use
10051 TARGET_DEFAULT_NORETURN.
10052
07366925
TT
100532014-02-19 Tom Tromey <tromey@redhat.com>
10054
10055 * target-delegates.c: Rebuild.
10056 * target.c (target_delete_record): Unconditionally delegate.
10057 * target.h (struct target_ops) <to_delete_record>: Use
10058 TARGET_DEFAULT_NORETURN.
10059
dd2e9d25
TT
100602014-02-19 Tom Tromey <tromey@redhat.com>
10061
10062 * target-delegates.c: Rebuild.
10063 * target.c (target_record_is_replaying): Unconditionally
10064 delegate.
10065 * target.h (struct target_ops) <to_record_is_replaying>: Use
10066 TARGET_DEFAULT_RETURN.
10067
671e76cc
TT
100682014-02-19 Tom Tromey <tromey@redhat.com>
10069
10070 * target-delegates.c: Rebuild.
10071 * target.c (target_goto_record_begin): Unconditionally delegate.
10072 * target.h (struct target_ops) <to_goto_record_begin>: Use
10073 TARGET_DEFAULT_NORETURN.
10074
e9179bb3
TT
100752014-02-19 Tom Tromey <tromey@redhat.com>
10076
10077 * target-delegates.c: Rebuild.
10078 * target.c (target_goto_record_end): Unconditionally delegate.
10079 * target.h (struct target_ops) <to_goto_record_end>: Use
10080 TARGET_DEFAULT_NORETURN.
10081
05969c84
TT
100822014-02-19 Tom Tromey <tromey@redhat.com>
10083
10084 * target-delegates.c: Rebuild.
10085 * target.c (target_goto_record): Unconditionally delegate.
10086 * target.h (struct target_ops) <to_goto_record>: Use
10087 TARGET_DEFAULT_NORETURN.
10088
3679abfa
TT
100892014-02-19 Tom Tromey <tromey@redhat.com>
10090
10091 * target-delegates.c: Rebuild.
10092 * target.c (target_insn_history): Unconditionally delegate.
10093 * target.h (struct target_ops) <to_insn_history>: Use
10094 TARGET_DEFAULT_NORETURN.
10095
8444ab58
TT
100962014-02-19 Tom Tromey <tromey@redhat.com>
10097
10098 * target-delegates.c: Rebuild.
10099 * target.c (target_insn_history_from): Unconditionally delegate.
10100 * target.h (struct target_ops) <to_insn_history_from>: Use
10101 TARGET_DEFAULT_NORETURN.
10102
c29302cc
TT
101032014-02-19 Tom Tromey <tromey@redhat.com>
10104
10105 * target-delegates.c: Rebuild.
10106 * target.c (target_insn_history_range): Unconditionally delegate.
10107 * target.h (struct target_ops) <to_insn_history_range>: Use
10108 TARGET_DEFAULT_NORETURN.
10109
170049d4
TT
101102014-02-19 Tom Tromey <tromey@redhat.com>
10111
10112 * target-delegates.c: Rebuild.
10113 * target.c (target_call_history): Unconditionally delegate.
10114 * target.h (struct target_ops) <to_call_history>: Use
10115 TARGET_DEFAULT_NORETURN.
10116
16fc27d6
TT
101172014-02-19 Tom Tromey <tromey@redhat.com>
10118
10119 * target-delegates.c: Rebuild.
10120 * target.c (target_call_history_from): Unconditionally delegate.
10121 * target.h (struct target_ops) <to_call_history_from>: Use
10122 TARGET_DEFAULT_NORETURN.
10123
115d9817
TT
101242014-02-19 Tom Tromey <tromey@redhat.com>
10125
10126 * target-delegates.c: Rebuild.
10127 * target.c (target_call_history_range): Unconditionally delegate.
10128 * target.h (struct target_ops) <to_call_history_range>: Use
10129 TARGET_DEFAULT_NORETURN.
10130
eb276a6b
TT
101312014-02-19 Tom Tromey <tromey@redhat.com>
10132
10133 * target-delegates.c: Rebuild.
10134 * target.c (target_verify_memory): Unconditionally delegate.
10135 * target.h (struct target_ops) <to_verify_memory>: Use
10136 TARGET_DEFAULT_NORETURN.
10137
9e538d0d
TT
101382014-02-19 Tom Tromey <tromey@redhat.com>
10139
10140 * target-delegates.c: Rebuild.
10141 * target.c (target_core_of_thread): Unconditionally delegate.
10142 * target.h (struct target_ops) <to_core_of_thread>: Use
10143 TARGET_DEFAULT_RETURN.
10144
f6fb2925
TT
101452014-02-19 Tom Tromey <tromey@redhat.com>
10146
10147 * target-delegates.c: Rebuild.
10148 * target.c (target_flash_done): Unconditionally delegate.
10149 * target.h (struct target_ops) <to_flash_done>: Use
10150 TARGET_DEFAULT_NORETURN.
10151
e8a6c6ac
TT
101522014-02-19 Tom Tromey <tromey@redhat.com>
10153
10154 * target-delegates.c: Rebuild.
10155 * target.c (target_flash_erase): Unconditionally delegate.
10156 * target.h (struct target_ops) <to_flash_erase>: Use
10157 TARGET_DEFAULT_NORETURN.
10158
7e35c012
TT
101592014-02-19 Tom Tromey <tromey@redhat.com>
10160
10161 * target-delegates.c: Rebuild.
10162 * target.c (target_get_section_table): Unconditionally delegate.
10163 * target.h (struct target_ops) <to_get_section_table>: Use
10164 TARGET_DEFAULT_RETURN.
10165
770234d3
TT
101662014-02-19 Tom Tromey <tromey@redhat.com>
10167
10168 * target-delegates.c: Rebuild.
10169 * target.c (target_pid_to_str): Unconditionally delegate.
10170 (init_dummy_target): Don't initialize to_pid_to_str.
10171 (default_pid_to_str): Rename from dummy_pid_to_str.
10172 * target.h (struct target_ops) <to_pid_to_str>: Use
10173 TARGET_DEFAULT_FUNC.
10174
09b0dc2b
TT
101752014-02-19 Tom Tromey <tromey@redhat.com>
10176
10177 * target-delegates.c: Rebuild.
10178 * target.c (target_find_new_threads): Unconditionally delegate.
10179 * target.h (struct target_ops) <to_find_new_threads>: Use
10180 TARGET_DEFAULT_RETURN.
10181
7d4f8efa
TT
101822014-02-19 Tom Tromey <tromey@redhat.com>
10183
10184 * target-delegates.c: Rebuild.
10185 * target.c (target_program_signals): Unconditionally delegate.
10186 * target.h (struct target_ops) <to_program_signals>: Use
10187 TARGET_DEFAULT_IGNORE.
10188
035cad7f
TT
101892014-02-19 Tom Tromey <tromey@redhat.com>
10190
10191 * target-delegates.c: Rebuild.
10192 * target.c (target_pass_signals): Unconditionally delegate.
10193 * target.h (struct target_ops) <to_pass_signals>: Use
10194 TARGET_DEFAULT_IGNORE.
10195
8d657035
TT
101962014-02-19 Tom Tromey <tromey@redhat.com>
10197
10198 * target-delegates.c: Rebuild.
10199 * target.c (default_mourn_inferior): New function.
10200 (target_mourn_inferior): Unconditionally delegate.
10201 * target.h (struct target_ops) <to_mourn_inferior>: Use
10202 TARGET_DEFAULT_FUNC.
10203
098dba18
TT
102042014-02-19 Tom Tromey <tromey@redhat.com>
10205
10206 * target-delegates.c: Rebuild.
10207 * target.c (default_follow_fork): New function.
10208 (target_follow_fork): Unconditionally delegate.
10209 * target.h (struct target_ops) <to_follow_fork>: Use
10210 TARGET_DEFAULT_FUNC.
10211
423a4807
TT
102122014-02-19 Tom Tromey <tromey@redhat.com>
10213
10214 * target-delegates.c: Rebuild.
10215 * target.c (target_kill): Unconditionally delegate.
10216 * target.h (struct target_ops) <to_kill>: Use
10217 TARGET_DEFAULT_NORETURN.
10218
6c7e5e5c
TT
102192014-02-19 Tom Tromey <tromey@redhat.com>
10220
10221 * target-delegates.c: Rebuild.
10222 * target.c (target_masked_watch_num_registers): Unconditionally
10223 delegate.
10224 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10225 Use TARGET_DEFAULT_RETURN.
10226
8b1c364c
TT
102272014-02-19 Tom Tromey <tromey@redhat.com>
10228
10229 * target-delegates.c: Rebuild.
10230 * target.c (target_remove_mask_watchpoint): Unconditionally
10231 delegate.
10232 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10233 TARGET_DEFAULT_RETURN.
10234
cd4ae029
TT
102352014-02-19 Tom Tromey <tromey@redhat.com>
10236
10237 * target-delegates.c: Rebuild.
10238 * target.c (target_insert_mask_watchpoint): Unconditionally
10239 delegate.
10240 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10241 TARGET_DEFAULT_RETURN.
10242
a134316b
TT
102432014-02-19 Tom Tromey <tromey@redhat.com>
10244
10245 * target-delegates.c: Rebuild.
10246 * target.c (target_ranged_break_num_registers): Unconditionally
10247 delegate.
10248 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10249 Use TARGET_DEFAULT_RETURN.
10250
ad5989bd
TT
102512014-02-19 Tom Tromey <tromey@redhat.com>
10252
10253 * target-delegates.c: Rebuild.
10254 * target.c (target_fetch_registers): Unconditionally delegate.
10255 * target.h (struct target_ops) <to_fetch_registers>: Use
10256 TARGET_DEFAULT_NORETURN.
10257
46ee7e8d
TT
102582014-02-19 Tom Tromey <tromey@redhat.com>
10259
10260 * target-delegates.c: Rebuild.
10261 * target.c (update_current_target): Don't inherit or default
10262 to_stop.
10263 * target.h (struct target_ops) <to_stop>: Use
10264 TARGET_DEFAULT_IGNORE.
10265
843f59ed
TT
102662014-02-19 Tom Tromey <tromey@redhat.com>
10267
10268 * target-delegates.c: Rebuild.
10269 * target.c (update_current_target): Don't inherit or default
10270 to_can_run_breakpoint_commands.
10271 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10272 Use TARGET_DEFAULT_RETURN.
10273
ccfde2a0
TT
102742014-02-19 Tom Tromey <tromey@redhat.com>
10275
10276 * target-delegates.c: Rebuild.
10277 * target.c (update_current_target): Don't inherit or default
10278 to_supports_evaluation_of_breakpoint_conditions.
10279 * target.h (struct target_ops)
10280 <to_supports_evaluation_of_breakpoint_conditions>: Use
10281 TARGET_DEFAULT_RETURN.
10282
0de91722
TT
102832014-02-19 Tom Tromey <tromey@redhat.com>
10284
10285 * target-delegates.c: Rebuild.
10286 * target.c (update_current_target): Don't inherit or default
10287 to_augmented_libraries_svr4_read.
10288 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10289 Use TARGET_DEFAULT_RETURN.
10290
9a7d8b48
TT
102912014-02-19 Tom Tromey <tromey@redhat.com>
10292
10293 * target-delegates.c: Rebuild.
10294 * target.c (update_current_target): Don't inherit or default
10295 to_can_use_agent.
10296 * target.h (struct target_ops) <to_can_use_agent>: Use
10297 TARGET_DEFAULT_RETURN.
10298
d9db5b21
TT
102992014-02-19 Tom Tromey <tromey@redhat.com>
10300
10301 * target-delegates.c: Rebuild.
10302 * target.c (update_current_target): Don't inherit or default
10303 to_use_agent.
10304 * target.h (struct target_ops) <to_use_agent>: Use
10305 TARGET_DEFAULT_NORETURN.
10306
92155eeb
TT
103072014-02-19 Tom Tromey <tromey@redhat.com>
10308
10309 * target-delegates.c: Rebuild.
10310 * target.c (update_current_target): Don't inherit or default
10311 to_traceframe_info.
10312 (return_null): Remove.
10313 * target.h (struct target_ops) <to_traceframe_info>: Use
10314 TARGET_DEFAULT_RETURN.
10315
d6522a22
TT
103162014-02-19 Tom Tromey <tromey@redhat.com>
10317
10318 * target-delegates.c: Rebuild.
10319 * target.c (update_current_target): Don't inherit or default
10320 to_static_tracepoint_markers_by_strid.
10321 * target.h (struct target_ops)
10322 <to_static_tracepoint_markers_by_strid>: Use
10323 TARGET_DEFAULT_NORETURN.
10324
4c3e4425
TT
103252014-02-19 Tom Tromey <tromey@redhat.com>
10326
10327 * target-delegates.c: Rebuild.
10328 * target.c (update_current_target): Don't inherit or default
10329 to_static_tracepoint_marker_at.
10330 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10331 Use TARGET_DEFAULT_RETURN.
10332
dcd6917f
TT
103332014-02-19 Tom Tromey <tromey@redhat.com>
10334
10335 * target-delegates.c: Rebuild.
10336 * target.c (update_current_target): Don't inherit or default
10337 to_set_permissions.
10338 * target.h (struct target_ops) <to_set_permissions>: Use
10339 TARGET_DEFAULT_IGNORE.
10340
22bcceee
TT
103412014-02-19 Tom Tromey <tromey@redhat.com>
10342
10343 * target-delegates.c: Rebuild.
10344 * target.c (update_current_target): Don't inherit or default
10345 to_get_tib_address.
10346 * target.h (struct target_ops) <to_get_tib_address>: Use
10347 TARGET_DEFAULT_NORETURN.
10348
8586ccaa
TT
103492014-02-19 Tom Tromey <tromey@redhat.com>
10350
10351 * target-delegates.c: Rebuild.
10352 * target.c (update_current_target): Don't inherit or default
10353 to_set_trace_notes.
10354 * target.h (struct target_ops) <to_set_trace_notes>: Use
10355 TARGET_DEFAULT_RETURN.
10356
91df8d1d
TT
103572014-02-19 Tom Tromey <tromey@redhat.com>
10358
10359 * target-delegates.c: Rebuild.
10360 * target.c (update_current_target): Don't initialize
10361 to_set_trace_buffer_size.
10362 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10363 TARGET_DEFAULT_IGNORE.
10364
8d526939
TT
103652014-02-19 Tom Tromey <tromey@redhat.com>
10366
10367 * target-delegates.c: Rebuild.
10368 * target.c (update_current_target): Don't inherit or default
10369 to_set_circular_trace_buffer.
10370 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10371 TARGET_DEFAULT_IGNORE.
10372
0bcfeddf
TT
103732014-02-19 Tom Tromey <tromey@redhat.com>
10374
10375 * target-delegates.c: Rebuild.
10376 * target.c (update_current_target): Don't inherit or default
10377 to_set_disconnected_tracing.
10378 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10379 TARGET_DEFAULT_IGNORE.
10380
9249843f
TT
103812014-02-19 Tom Tromey <tromey@redhat.com>
10382
10383 * target-delegates.c: Rebuild.
10384 * target.c (update_current_target): Don't inherit or default
10385 to_get_min_fast_tracepoint_insn_len.
10386 (return_minus_one): Remove.
10387 * target.h (struct target_ops)
10388 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10389
ace92e7d
TT
103902014-02-19 Tom Tromey <tromey@redhat.com>
10391
10392 * target-delegates.c: Rebuild.
10393 * target.c (update_current_target): Don't inherit or default
10394 to_get_raw_trace_data.
10395 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10396 TARGET_DEFAULT_NORETURN.
10397
08120467
TT
103982014-02-19 Tom Tromey <tromey@redhat.com>
10399
10400 * target-delegates.c: Rebuild.
10401 * target.c (update_current_target): Don't inherit or default
10402 to_upload_trace_state_variables.
10403 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10404 Use TARGET_DEFAULT_RETURN.
10405
1e949b00
TT
104062014-02-19 Tom Tromey <tromey@redhat.com>
10407
10408 * target-delegates.c: Rebuild.
10409 * target.c (update_current_target): Don't inherit or default
10410 to_upload_tracepoints.
10411 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10412 TARGET_DEFAULT_RETURN.
10413
a2e6c147
TT
104142014-02-19 Tom Tromey <tromey@redhat.com>
10415
10416 * target-delegates.c: Rebuild.
10417 * target.c (update_current_target): Don't inherit or default
10418 to_save_trace_data.
10419 * target.h (struct target_ops) <to_save_trace_data>: Use
10420 TARGET_DEFAULT_NORETURN.
10421
959bcd0b
TT
104222014-02-19 Tom Tromey <tromey@redhat.com>
10423
10424 * target-delegates.c: Rebuild.
10425 * target.c (update_current_target): Don't inherit or default
10426 to_get_trace_state_variable_value.
10427 * target.h (struct target_ops)
10428 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10429
afc94e66
TT
104302014-02-19 Tom Tromey <tromey@redhat.com>
10431
10432 * target-delegates.c: Rebuild.
10433 * target.c (update_current_target): Don't inherit or default
10434 to_trace_find.
10435 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10436
e51c07ea
TT
104372014-02-19 Tom Tromey <tromey@redhat.com>
10438
10439 * target-delegates.c: Rebuild.
10440 * target.c (update_current_target): Don't inherit or default
10441 to_trace_stop.
10442 * target.h (struct target_ops) <to_trace_stop>: Use
10443 TARGET_DEFAULT_NORETURN.
10444
6fea14cd
TT
104452014-02-19 Tom Tromey <tromey@redhat.com>
10446
10447 * target-delegates.c: Rebuild.
10448 * target.c (update_current_target): Don't inherit or default
10449 to_get_tracepoint_status.
10450 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10451 TARGET_DEFAULT_NORETURN.
10452
4072d4ff
TT
104532014-02-19 Tom Tromey <tromey@redhat.com>
10454
10455 * target-delegates.c: Rebuild.
10456 * target.c (update_current_target): Don't inherit or default
10457 to_get_trace_status.
10458 * target.h (struct target_ops) <to_get_trace_status>: Use
10459 TARGET_DEFAULT_RETURN.
10460
25da2e80
TT
104612014-02-19 Tom Tromey <tromey@redhat.com>
10462
10463 * target-delegates.c: Rebuild.
10464 * target.c (update_current_target): Don't inherit or default
10465 to_trace_start.
10466 * target.h (struct target_ops) <to_trace_start>: Use
10467 TARGET_DEFAULT_NORETURN.
10468
86dd181d
TT
104692014-02-19 Tom Tromey <tromey@redhat.com>
10470
10471 * target-delegates.c: Rebuild.
10472 * target.c (update_current_target): Don't inherit or default
10473 to_trace_set_readonly_regions.
10474 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10475 Use TARGET_DEFAULT_NORETURN.
10476
05c41993
TT
104772014-02-19 Tom Tromey <tromey@redhat.com>
10478
10479 * target-delegates.c: Rebuild.
10480 * target.c (update_current_target): Don't inherit or default
10481 to_disable_tracepoint.
10482 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10483 TARGET_DEFAULT_NORETURN.
10484
151f70f1
TT
104852014-02-19 Tom Tromey <tromey@redhat.com>
10486
10487 * target-delegates.c: Rebuild.
10488 * target.c (update_current_target): Don't inherit or default
10489 to_enable_tracepoint.
10490 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10491 TARGET_DEFAULT_NORETURN.
10492
94eb98b9
TT
104932014-02-19 Tom Tromey <tromey@redhat.com>
10494
10495 * target-delegates.c: Rebuild.
10496 * target.c (update_current_target): Don't inherit or default
10497 to_download_trace_state_variable.
10498 * target.h (struct target_ops) <to_download_trace_state_variable>:
10499 Use TARGET_DEFAULT_NORETURN.
10500
719acc4a
TT
105012014-02-19 Tom Tromey <tromey@redhat.com>
10502
10503 * target-delegates.c: Rebuild.
10504 * target.c (update_current_target): Don't inherit or default
10505 to_can_download_tracepoint.
10506 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10507 TARGET_DEFAULT_RETURN.
10508
9a980a22
TT
105092014-02-19 Tom Tromey <tromey@redhat.com>
10510
10511 * target-delegates.c: Rebuild.
10512 * target.c (update_current_target): Don't inherit or default
10513 to_download_tracepoint.
10514 * target.h (struct target_ops) <to_download_tracepoint>: Use
10515 TARGET_DEFAULT_NORETURN.
10516
5536135b
TT
105172014-02-19 Tom Tromey <tromey@redhat.com>
10518
10519 * target-delegates.c: Rebuild.
10520 * target.c (update_current_target): Don't inherit or default
10521 to_trace_init.
10522 * target.h (struct target_ops) <to_trace_init>: Use
10523 TARGET_DEFAULT_RETURN.
10524
9409d39e
TT
105252014-02-19 Tom Tromey <tromey@redhat.com>
10526
10527 * target-delegates.c: Rebuild.
10528 * target.c (update_current_target): Don't inherit or default
10529 to_supports_string_tracing.
10530 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10531 TARGET_DEFAULT_RETURN.
10532
aab1b22d
TT
105332014-02-19 Tom Tromey <tromey@redhat.com>
10534
10535 * target-delegates.c: Rebuild.
10536 * target.c (update_current_target): Don't inherit or default
10537 to_supports_enable_disable_tracepoint.
10538 * target.h (struct target_ops)
10539 <to_supports_enable_disable_tracepoint>: Use
10540 TARGET_DEFAULT_RETURN.
10541
a7304748
TT
105422014-02-19 Tom Tromey <tromey@redhat.com>
10543
10544 * target-delegates.c: Rebuild.
10545 * target.c (update_current_target): Don't inherit or default
10546 to_supports_multi_process.
10547 * target.h (struct target_ops) <to_supports_multi_process>: Use
10548 TARGET_DEFAULT_RETURN.
10549
4229b31d
TT
105502014-02-19 Tom Tromey <tromey@redhat.com>
10551
10552 * target-delegates.c: Rebuild.
10553 * target.c (update_current_target): Don't inherit or default
10554 to_get_ada_task_ptid.
10555 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10556 TARGET_DEFAULT_FUNC.
10557
43eba180
TT
105582014-02-19 Tom Tromey <tromey@redhat.com>
10559
10560 * target-delegates.c: Rebuild.
10561 * target.c (update_current_target): Don't inherit or default
10562 to_thread_architecture.
10563 * target.h (struct target_ops) <to_thread_architecture>: Use
10564 TARGET_DEFAULT_FUNC.
10565
fe31bf5b
TT
105662014-02-19 Tom Tromey <tromey@redhat.com>
10567
10568 * target-delegates.c: Rebuild.
10569 * target.c (update_current_target): Don't inherit or default
10570 to_execution_direction.
10571 * target.h (struct target_ops) <to_execution_direction>: Use
10572 TARGET_DEFAULT_FUNC.
10573
53e1cfc7
TT
105742014-02-19 Tom Tromey <tromey@redhat.com>
10575
10576 * target-delegates.c: Rebuild.
10577 * target.c (update_current_target): Don't inherit or default
10578 to_can_execute_reverse.
10579 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10580 TARGET_DEFAULT_RETURN.
10581 (target_can_execute_reverse): Unconditionally delegate.
10582
9bb9d61d
TT
105832014-02-19 Tom Tromey <tromey@redhat.com>
10584
10585 * target-delegates.c: Rebuild.
10586 * target.c (update_current_target): Don't inherit or default
10587 to_goto_bookmark.
10588 (dummy_goto_bookmark): Remove.
10589 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10590 * target.h (struct target_ops) <to_goto_bookmark>: Use
10591 TARGET_DEFAULT_NORETURN.
10592
3dbafbbb
TT
105932014-02-19 Tom Tromey <tromey@redhat.com>
10594
10595 * target-delegates.c: Rebuild.
10596 * target.c (update_current_target): Don't inherit or default
10597 to_get_bookmark.
10598 (dummy_get_bookmark): Remove.
10599 (init_dummy_target): Don't inherit or default to_get_bookmark.
10600 * target.h (struct target_ops) <to_get_bookmark>: Use
10601 TARGET_DEFAULT_NORETURN
10602
16f796b1
TT
106032014-02-19 Tom Tromey <tromey@redhat.com>
10604
10605 * target-delegates.c: Rebuild.
10606 * target.c (update_current_target): Don't inherit or default
10607 to_make_corefile_notes.
10608 (init_dummy_target): Don't initialize to_make_corefile_notes.
10609 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10610 TARGET_DEFAULT_FUNC.
10611
0b5a2719
TT
106122014-02-19 Tom Tromey <tromey@redhat.com>
10613
10614 * target-delegates.c: Rebuild.
10615 * target.c (update_current_target): Don't inherit or default
10616 to_find_memory_regions.
10617 (init_dummy_target): Don't initialize to_find_memory_regions.
10618 * target.h (struct target_ops) <to_find_memory_regions>: Use
10619 TARGET_DEFAULT_FUNC.
10620
d9cb0195
TT
106212014-02-19 Tom Tromey <tromey@redhat.com>
10622
10623 * target-delegates.c: Rebuild.
10624 * target.c (update_current_target): Don't inherit or default
10625 to_log_command.
10626 * target.h (struct target_ops) <to_log_command>: Use
10627 TARGET_DEFAULT_IGNORE.
10628 (target_log_command): Unconditionally delegate.
10629
830ca330
TT
106302014-02-19 Tom Tromey <tromey@redhat.com>
10631
10632 * target-delegates.c: Rebuild.
10633 * target.c (update_current_target): Don't inherit or default
10634 to_pid_to_exec_file.
10635 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10636 TARGET_DEFAULT_RETURN.
10637
825828fc
TT
106382014-02-19 Tom Tromey <tromey@redhat.com>
10639
10640 * target-delegates.c: Rebuild.
10641 * target.c (update_current_target): Don't inherit or default
10642 to_thread_name.
10643 (target_thread_name): Unconditionally delegate.
10644 * target.h (struct target_ops) <to_thread_name>: Use
10645 TARGET_DEFAULT_RETURN.
10646
4a7e6dda
TT
106472014-02-19 Tom Tromey <tromey@redhat.com>
10648
10649 * target-delegates.c: Rebuild.
10650 * target.c (update_current_target): Don't inherit or default
10651 to_extra_thread_info.
10652 * target.h (struct target_ops) <to_extra_thread_info>: Use
10653 TARGET_DEFAULT_RETURN.
10654
0db88c1d
TT
106552014-02-19 Tom Tromey <tromey@redhat.com>
10656
10657 * target-delegates.c: Rebuild.
10658 * target.c (update_current_target): Don't inherit or default
10659 to_has_exited.
10660 * target.h (struct target_ops) <to_has_exited>: Use
10661 TARGET_DEFAULT_RETURN..
10662
6a9fa051
TT
106632014-02-19 Tom Tromey <tromey@redhat.com>
10664
10665 * target-delegates.c: Rebuild.
10666 * target.c (update_current_target): Don't inherit or default
10667 to_set_syscall_catchpoint.
10668 (return_one): Remove.
10669 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10670 TARGET_DEFAULT_RETURN.
10671
62f64d7a
TT
106722014-02-19 Tom Tromey <tromey@redhat.com>
10673
10674 * target-delegates.c: Rebuild.
10675 * target.c (update_current_target): Don't inherit or default
10676 to_insert_exec_catchpoint.
10677 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10678 TARGET_DEFAULT_RETURN.
10679
cda0f38c
TT
106802014-01-08 Tom Tromey <tromey@redhat.com>
10681
10682 * target-delegates.c: Rebuild.
10683 * target.c (update_current_target): Don't inherit or default
10684 to_insert_exec_catchpoint.
10685 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10686 TARGET_DEFAULT_RETURN.
10687
95c3375e
TT
106882014-02-19 Tom Tromey <tromey@redhat.com>
10689
10690 * target-delegates.c: Rebuild.
10691 * target.c (update_current_target): Don't inherit or default
10692 to_remove_vfork_catchpoint.
10693 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10694 TARGET_DEFAULT_RETURN.
10695
7e18a8dc
TT
106962014-02-19 Tom Tromey <tromey@redhat.com>
10697
10698 * target-delegates.c: Rebuild.
10699 * target.c (update_current_target): Don't inherit or default
10700 to_insert_vfork_catchpoint.
10701 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10702 TARGET_DEFAULT_RETURN.
10703
e1a21fb7
TT
107042014-02-19 Tom Tromey <tromey@redhat.com>
10705
10706 * target-delegates.c: Rebuild.
10707 * target.c (update_current_target): Don't inherit or default
10708 to_remove_fork_catchpoint.
10709 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10710 TARGET_DEFAULT_RETURN.
10711
5958ebeb
TT
107122014-02-19 Tom Tromey <tromey@redhat.com>
10713
10714 * target-delegates.c: Rebuild.
10715 * target.c (update_current_target): Don't inherit or default
10716 to_insert_fork_catchpoint.
10717 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10718 TARGET_DEFAULT_RETURN.
10719
340ba4bf
TT
107202014-02-19 Tom Tromey <tromey@redhat.com>
10721
10722 * target-delegates.c: Rebuild.
10723 * target.c (update_current_target): Don't inherit or default
10724 to_post_startup_inferior.
10725 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10726 TARGET_DEFAULT_IGNORE.
10727
7634da87
TT
107282014-02-19 Tom Tromey <tromey@redhat.com>
10729
10730 * target-delegates.c: Rebuild.
10731 * target.c (update_current_target): Don't inherit or default
10732 to_load.
10733 * target.h (struct target_ops) <to_load>: Use
10734 TARGET_DEFAULT_NORETURN.
10735
e19e919f
TT
107362014-02-19 Tom Tromey <tromey@redhat.com>
10737
10738 * target-delegates.c: Rebuild.
10739 * target.c (update_current_target): Don't inherit or default
10740 to_terminal_info.
10741 * target.h (struct target_ops) <to_terminal_info>: Use
10742 TARGET_DEFAULT_FUNC.
10743
c6ea8f79
TT
107442014-02-19 Tom Tromey <tromey@redhat.com>
10745
10746 * target-delegates.c: Rebuild.
10747 * target.c (update_current_target): Don't inherit or default
10748 to_terminal_save_ours.
10749 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10750 TARGET_DEFAULT_IGNORE.
10751
e4a733f1
TT
107522014-02-19 Tom Tromey <tromey@redhat.com>
10753
10754 * target-delegates.c: Rebuild.
10755 * target.c (update_current_target): Don't inherit or default
10756 to_terminal_ours.
10757 * target.h (struct target_ops) <to_terminal_ours>: Use
10758 TARGET_DEFAULT_IGNORE.
10759
74fcbef9
TT
107602014-02-19 Tom Tromey <tromey@redhat.com>
10761
10762 * target-delegates.c: Rebuild.
10763 * target.c (update_current_target): Don't inherit or default
10764 to_terminal_ours_for_output.
10765 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
10766 TARGET_DEFAULT_IGNORE.
10767
ddeaacc9
TT
107682014-02-19 Tom Tromey <tromey@redhat.com>
10769
10770 * target-delegates.c: Rebuild.
10771 * target.c (update_current_target): Don't inherit or default
10772 to_terminal_inferior.
10773 * target.h (struct target_ops) <to_terminal_inferior>: Use
10774 TARGET_DEFAULT_IGNORE.
10775
0343661d
TT
107762014-02-19 Tom Tromey <tromey@redhat.com>
10777
10778 * target-delegates.c: Rebuild.
10779 * target.c (update_current_target): Don't inherit or default
10780 to_terminal_init.
10781 * target.h (struct target_ops) <to_terminal_init>: Use
10782 TARGET_DEFAULT_IGNORE.
10783
77cdffe9
TT
107842014-02-19 Tom Tromey <tromey@redhat.com>
10785
10786 * target-delegates.c: Rebuild.
10787 * target.c (update_current_target): Don't inherit or default
10788 to_can_accel_watchpoint_condition.
10789 * target.h (struct target_ops)
10790 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
10791
d03655e4
TT
107922014-02-19 Tom Tromey <tromey@redhat.com>
10793
10794 * target-delegates.c: Rebuild.
10795 * target.c (update_current_target): Don't inherit or default
10796 to_region_ok_for_hw_watchpoint.
10797 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10798 Use TARGET_DEFAULT_FUNC.
10799
65f160a9
TT
108002014-02-19 Tom Tromey <tromey@redhat.com>
10801
10802 * target-delegates.c: Rebuild.
10803 * target.c (update_current_target): Don't inherit or default
10804 to_watchpoint_addr_within_range.
10805 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
10806 Use TARGET_DEFAULT_FUNC.
10807
61dd109f
TT
108082014-02-19 Tom Tromey <tromey@redhat.com>
10809
10810 * target-delegates.c: Rebuild.
10811 * target.c (update_current_target): Don't inherit or default
10812 to_remove_watchpoint.
10813 * target.h (struct target_ops) <to_remove_watchpoint>: Use
10814 TARGET_DEFAULT_NORETURN.
10815
016facd4
TT
108162014-02-19 Tom Tromey <tromey@redhat.com>
10817
10818 * target-delegates.c: Rebuild.
10819 * target.c (update_current_target): Don't inherit or default
10820 to_insert_watchpoint.
10821 * target.h (struct target_ops) <to_insert_watchpoint>: Use
10822 TARGET_DEFAULT_RETURN.
10823
418dabac
TT
108242014-02-19 Tom Tromey <tromey@redhat.com>
10825
10826 * target-delegates.c: Rebuild.
10827 * target.c (update_current_target): Don't inherit or default
10828 to_remove_hw_breakpoint.
10829 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
10830 TARGET_DEFAULT_RETURN.
10831
61b371f9
TT
108322014-02-19 Tom Tromey <tromey@redhat.com>
10833
10834 * target-delegates.c: Rebuild.
10835 * target.c (update_current_target): Don't inherit or default
10836 to_insert_hw_breakpoint.
10837 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
10838 TARGET_DEFAULT_RETURN.
10839
52b51d06
TT
108402014-02-19 Tom Tromey <tromey@redhat.com>
10841
10842 * target-delegates.c: Rebuild.
10843 * target.c (update_current_target): Don't inherit or default
10844 to_can_use_hw_breakpoint.
10845 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
10846 TARGET_DEFAULT_RETURN.
10847
f86e59b2
TT
108482014-02-19 Tom Tromey <tromey@redhat.com>
10849
10850 * target-delegates.c: Rebuild.
10851 * target.c (update_current_target): Don't inherit or default
10852 to_files_info.
10853 * target.h (struct target_ops) <to_files_info>: Use
10854 TARGET_DEFAULT_IGNORE.
10855
6c628163
TT
108562014-02-19 Tom Tromey <tromey@redhat.com>
10857
10858 * target-delegates.c: Rebuild.
10859 * target.c (update_current_target): Don't inherit or default
10860 to_store.
10861 * target.h (struct target_ops) <to_store>: Use
10862 TARGET_DEFAULT_NORETURN.
10863
bebd3233
TT
108642014-02-19 Tom Tromey <tromey@redhat.com>
10865
10866 * target-delegates.c: Rebuild.
10867 * target.c (update_current_target): Don't inherit or default
10868 to_post_attach.
10869 * target.h (struct target_ops) <to_post_attach>: Use
10870 TARGET_DEFAULT_IGNORE.
10871
a53f3625
TT
108722014-02-19 Tom Tromey <tromey@redhat.com>
10873
10874 * target-delegates.c: Rebuild.
10875 * target.c (update_current_target): Don't inherit or default
10876 to_rcmd.
10877 (default_rcmd): New function.
10878 (do_monitor_command): Unconditionally delegate.
10879 * target.h (struct target_ops) <to_rmcd>: Use
10880 TARGET_DEFAULT_FUNC.
10881
e9a29200
TT
108822014-02-19 Tom Tromey <tromey@redhat.com>
10883
10884 * target-delegates.c: Rebuild.
10885 * target.c (init_dummy_target): Don't initialize to_attach.
10886 (target_attach): Unconditionally delegate.
10887 * target.h (struct target_ops) <to_attach>: Use
10888 TARGET_DEFAULT_FUNC.
10889
09da0d0a
TT
108902014-02-19 Tom Tromey <tromey@redhat.com>
10891
10892 * target-delegates.c: Rebuild.
10893 * target.c (target_detach): Unconditionally delegate.
10894 (init_dummy_target): Don't initialize to_detach.
10895 * target.h (struct target_ops) <to_detach>: Use
10896 TARGET_DEFAULT_IGNORE.
10897
5436ff03
TT
108982014-02-19 Tom Tromey <tromey@redhat.com>
10899
10900 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10901 Add argument.
10902 (target_augmented_libraries_svr4_read): Add argument.
10903 * target.c (update_current_target): Update.
10904 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
10905 argument.
10906
f0d960ea
TT
109072014-02-19 Tom Tromey <tromey@redhat.com>
10908
10909 * target.h (struct target_ops) <to_call_history_range>: Add
10910 argument.
10911 * target.c (target_call_history_range): Add argument.
10912 * record-btrace.c (record_btrace_call_history_range): Add 'self'
10913 argument.
10914 (record_btrace_call_history_from): Update.
10915
ec0aea04
TT
109162014-02-19 Tom Tromey <tromey@redhat.com>
10917
10918 * target.h (struct target_ops) <to_call_history_from>: Add
10919 argument.
10920 * target.c (target_call_history_from): Add argument.
10921 * record-btrace.c (record_btrace_call_history_from): Add 'self'
10922 argument.
10923
5df2fcba
TT
109242014-02-19 Tom Tromey <tromey@redhat.com>
10925
10926 * target.h (struct target_ops) <to_call_history>: Add argument.
10927 * target.c (target_call_history): Add argument.
10928 * record-btrace.c (record_btrace_call_history): Add 'self'
10929 argument.
10930
4e99c6b7
TT
109312014-02-19 Tom Tromey <tromey@redhat.com>
10932
10933 * target.h (struct target_ops) <to_insn_history_range>: Add
10934 argument.
10935 * target.c (target_insn_history_range): Add argument.
10936 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
10937 argument.
10938 (record_btrace_insn_history_from): Update.
10939
9abc3ff3
TT
109402014-02-19 Tom Tromey <tromey@redhat.com>
10941
10942 * target.h (struct target_ops) <to_insn_history_from>: Add
10943 argument.
10944 * target.c (target_insn_history_from): Add argument.
10945 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
10946 argument.
10947
7a6c5609
TT
109482014-02-19 Tom Tromey <tromey@redhat.com>
10949
10950 * target.h (struct target_ops) <to_insn_history>: Add argument.
10951 * target.c (target_insn_history): Add argument.
10952 * record-btrace.c (record_btrace_insn_history): Add 'self'
10953 argument.
10954
606183ac
TT
109552014-02-19 Tom Tromey <tromey@redhat.com>
10956
10957 * target.h (struct target_ops) <to_goto_record>: Add argument.
10958 * target.c (target_goto_record): Add argument.
10959 * record-full.c (record_full_goto): Add 'self' argument.
10960 * record-btrace.c (record_btrace_goto): Add 'self' argument.
10961
307a1b91
TT
109622014-02-19 Tom Tromey <tromey@redhat.com>
10963
10964 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
10965 * target.c (target_goto_record_end): Add argument.
10966 * record-full.c (record_full_goto_end): Add 'self' argument.
10967 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
10968
08475817
TT
109692014-02-19 Tom Tromey <tromey@redhat.com>
10970
10971 * target.h (struct target_ops) <to_goto_record_begin>: Add
10972 argument.
10973 * target.c (target_goto_record_begin): Add argument.
10974 * record-full.c (record_full_goto_begin): Add 'self' argument.
10975 * record-btrace.c (record_btrace_goto_begin): Add 'self'
10976 argument.
10977
1c63c994
TT
109782014-02-19 Tom Tromey <tromey@redhat.com>
10979
10980 * target.h (struct target_ops) <to_record_is_replaying>: Add
10981 argument.
10982 * target.c (target_record_is_replaying): Add argument.
10983 * record-full.c (record_full_is_replaying): Add 'self' argument.
10984 * record-btrace.c (record_btrace_is_replaying): Add 'self'
10985 argument.
10986 (record_btrace_xfer_partial, record_btrace_store_registers)
10987 (record_btrace_prepare_to_store, record_btrace_resume)
10988 (record_btrace_wait, record_btrace_decr_pc_after_break)
10989 (record_btrace_find_new_threads, record_btrace_thread_alive):
10990 Update.
10991
d1b55219
TT
109922014-02-19 Tom Tromey <tromey@redhat.com>
10993
10994 * target.h (struct target_ops) <to_delete_record>: Add argument.
10995 * target.c (target_delete_record): Add argument.
10996 * record-full.c (record_full_delete): Add 'self' argument.
10997
1390f529
TT
109982014-02-19 Tom Tromey <tromey@redhat.com>
10999
11000 * target.h (struct target_ops) <to_save_record>: Add argument.
11001 * target.c (target_save_record): Add argument.
11002 * record-full.c (record_full_save): Add 'self' argument.
11003 (record_full_save): Add 'self' argument.
11004
630d6a4a
TT
110052014-02-19 Tom Tromey <tromey@redhat.com>
11006
11007 * target.h (struct target_ops) <to_info_record>: Add argument.
11008 * target.c (target_info_record): Add argument.
11009 * record.c (info_record_command): Add argument.
11010 * record-full.c (record_full_info): Add 'self' argument.
11011 * record-btrace.c (record_btrace_info): Add 'self' argument.
11012
c6cd7c02
TT
110132014-02-19 Tom Tromey <tromey@redhat.com>
11014
11015 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11016 * target.c (target_stop_recording): Add argument.
11017 * record.c (record_stop): Add argument.
11018 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11019 argument.
11020
39c49f83
TT
110212014-02-19 Tom Tromey <tromey@redhat.com>
11022
11023 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11024 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11025 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11026 argument.
11027 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11028 (_initialize_amd64_linux_nat): Use it.
11029 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11030 (_initialize_i386_linux_nat): Use it.
11031
1777056d
TT
110322014-02-19 Tom Tromey <tromey@redhat.com>
11033
11034 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11035 * target.c (target_teardown_btrace): Add argument.
11036 * remote.c (remote_teardown_btrace): Add 'self' argument.
11037 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11038 argument.
11039 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11040 argument.
11041
25e95349
TT
110422014-02-19 Tom Tromey <tromey@redhat.com>
11043
11044 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11045 * target.c (target_disable_btrace): Add argument.
11046 * remote.c (remote_disable_btrace): Add 'self' argument.
11047 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11048 argument.
11049 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11050 argument.
11051
e3c49f88
TT
110522014-02-19 Tom Tromey <tromey@redhat.com>
11053
11054 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11055 * target.c (target_enable_btrace): Add argument.
11056 * remote.c (remote_enable_btrace): Add 'self' argument.
11057 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11058 argument.
11059 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11060 argument.
11061
fe38f897
TT
110622014-02-19 Tom Tromey <tromey@redhat.com>
11063
11064 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11065 (target_can_use_agent): Add argument.
11066 * target.c (update_current_target): Update.
11067 * remote.c (remote_can_use_agent): Add 'self' argument.
11068 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11069
2c152180
TT
110702014-02-19 Tom Tromey <tromey@redhat.com>
11071
11072 * target.h (struct target_ops) <to_use_agent>: Add argument.
11073 (target_use_agent): Add argument.
11074 * target.c (update_current_target): Update.
11075 * remote.c (remote_use_agent): Add 'self' argument.
11076 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11077
a893e81f
TT
110782014-02-19 Tom Tromey <tromey@redhat.com>
11079
11080 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11081 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11082 (target_traceframe_info): Add argument.
11083 * target.c (update_current_target): Update.
11084 * remote.c (remote_traceframe_info): Add 'self' argument.
11085 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11086
c686c57f
TT
110872014-02-19 Tom Tromey <tromey@redhat.com>
11088
11089 * target.h (target_static_tracepoint_markers_by_strid): Add
11090 argument.
11091 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11092 'self' argument.
11093 * target.c (update_current_target): Update.
11094 * remote.c (struct target_ops)
11095 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11096 * linux-nat.c (struct target_ops)
11097 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11098
61fc905d
TT
110992014-02-19 Tom Tromey <tromey@redhat.com>
11100
11101 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11102 Add argument.
11103 (target_static_tracepoint_marker_at): Add argument.
11104 * target.c (update_current_target): Update.
11105 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11106 argument.
11107
c378d69d
TT
111082014-02-19 Tom Tromey <tromey@redhat.com>
11109
11110 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11111 (target_set_permissions): Add argument.
11112 * target.c (update_current_target): Update.
11113 * remote.c (remote_set_permissions): Add 'self' argument.
11114 (remote_start_remote): Update.
11115
bd7ae0f5
TT
111162014-02-19 Tom Tromey <tromey@redhat.com>
11117
11118 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11119 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11120 (target_get_tib_address): Add argument.
11121 * target.c (update_current_target): Update.
11122 * remote.c (remote_get_tib_address): Add 'self' argument.
11123
d9e68a2c
TT
111242014-02-19 Tom Tromey <tromey@redhat.com>
11125
11126 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11127 (target_set_trace_notes): Add argument.
11128 * target.c (update_current_target): Update.
11129 * remote.c (remote_set_trace_notes): Add 'self' argument.
11130
4da384be
TT
111312014-02-19 Tom Tromey <tromey@redhat.com>
11132
11133 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11134 argument.
11135 (target_set_trace_buffer_size): Add argument.
11136 * target.c (update_current_target): Update.
11137 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11138
736d5b1f
TT
111392014-02-19 Tom Tromey <tromey@redhat.com>
11140
11141 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11142 argument.
11143 (target_set_circular_trace_buffer): Add argument.
11144 * target.c (update_current_target): Update.
11145 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11146 argument.
11147
37b25738
TT
111482014-02-19 Tom Tromey <tromey@redhat.com>
11149
11150 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11151 argument.
11152 (target_set_disconnected_tracing): Add argument.
11153 * target.c (update_current_target): Update.
11154 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11155
0e67620a
TT
111562014-02-19 Tom Tromey <tromey@redhat.com>
11157
11158 * target.h (struct target_ops)
11159 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11160 (target_get_min_fast_tracepoint_insn_len): Add argument.
11161 * target.c (update_current_target): Update.
11162 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11163 argument.
11164
88ee6f45
TT
111652014-02-19 Tom Tromey <tromey@redhat.com>
11166
11167 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11168 argument.
11169 (target_get_raw_trace_data): Add argument.
11170 * target.c (update_current_target): Update.
11171 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11172
181e3713
TT
111732014-02-19 Tom Tromey <tromey@redhat.com>
11174
11175 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11176 Add argument.
11177 (target_upload_trace_state_variables): Add argument.
11178 * target.c (update_current_target): Update.
11179 * remote.c (remote_upload_trace_state_variables): Add 'self'
11180 argument.
11181 (remote_start_remote): Update.
11182
ab6617cc
TT
111832014-02-19 Tom Tromey <tromey@redhat.com>
11184
11185 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11186 argument.
11187 (target_upload_tracepoints): Add argument.
11188 * target.c (update_current_target): Update.
11189 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11190 (remote_start_remote): Update.
11191
dc3decaf
TT
111922014-02-19 Tom Tromey <tromey@redhat.com>
11193
11194 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11195 (target_save_trace_data): Add argument.
11196 * target.c (update_current_target): Update.
11197 * remote.c (remote_save_trace_data): Add 'self' argument.
11198
4011015b
TT
111992014-02-19 Tom Tromey <tromey@redhat.com>
11200
11201 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11202 argument.
11203 * target.h (struct target_ops)
11204 <to_get_trace_state_variable_value>: Add argument.
11205 (target_get_trace_state_variable_value): Add argument.
11206 * target.c (update_current_target): Update.
11207 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11208 argument.
11209 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11210
bd4c6793
TT
112112014-02-19 Tom Tromey <tromey@redhat.com>
11212
11213 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11214 * target.h (struct target_ops) <to_trace_find>: Add argument.
11215 (target_trace_find): Add argument.
11216 * target.c (update_current_target): Update.
11217 * remote.c (remote_trace_find): Add 'self' argument.
11218 * ctf.c (ctf_trace_find): Add 'self' argument.
11219
74499f1b
TT
112202014-02-19 Tom Tromey <tromey@redhat.com>
11221
11222 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11223 (target_trace_stop): Add argument.
11224 * target.c (update_current_target): Update.
11225 * remote.c (remote_trace_stop): Add 'self' argument.
11226
db90e85c
TT
112272014-02-19 Tom Tromey <tromey@redhat.com>
11228
11229 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11230 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11231 argument.
11232 (target_get_tracepoint_status): Add argument.
11233 * target.c (update_current_target): Update.
11234 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11235
8bd200f1
TT
112362014-02-19 Tom Tromey <tromey@redhat.com>
11237
11238 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11239 * target.h (struct target_ops) <to_get_trace_status>: Add
11240 argument.
11241 (target_get_trace_status): Add argument.
11242 * target.c (update_current_target): Update.
11243 * remote.c (remote_get_trace_status): Add 'self' argument.
11244 (remote_start_remote, remote_can_download_tracepoint): Update.
11245 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11246
e2d1aae3
TT
112472014-02-19 Tom Tromey <tromey@redhat.com>
11248
11249 * target.h (struct target_ops) <to_trace_start>: Add argument.
11250 (target_trace_start): Add argument.
11251 * target.c (update_current_target): Update.
11252 * remote.c (remote_trace_start): Add 'self' argument.
11253
583f9a86
TT
112542014-02-19 Tom Tromey <tromey@redhat.com>
11255
11256 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11257 Add argument.
11258 (target_trace_set_readonly_regions): Add argument.
11259 * target.c (update_current_target): Update.
11260 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11261 argument.
11262
780b049c
TT
112632014-02-19 Tom Tromey <tromey@redhat.com>
11264
11265 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11266 argument.
11267 (target_disable_tracepoint): Add argument.
11268 * target.c (update_current_target): Update.
11269 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11270
46670d57
TT
112712014-02-19 Tom Tromey <tromey@redhat.com>
11272
11273 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11274 argument.
11275 (target_enable_tracepoint): Add argument.
11276 * target.c (update_current_target): Update.
11277 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11278
559d2b81
TT
112792014-02-19 Tom Tromey <tromey@redhat.com>
11280
11281 * target.h (struct target_ops) <to_download_trace_state_variable>:
11282 Add argument.
11283 (target_download_trace_state_variable): Add argument.
11284 * target.c (update_current_target): Update.
11285 * remote.c (remote_download_trace_state_variable): Add 'self'
11286 argument.
11287
a52a8357
TT
112882014-02-19 Tom Tromey <tromey@redhat.com>
11289
11290 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11291 argument.
11292 (target_can_download_tracepoint): Add argument.
11293 * target.c (update_current_target): Update.
11294 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11295
548f7808
TT
112962014-02-19 Tom Tromey <tromey@redhat.com>
11297
11298 * target.h (struct target_ops) <to_download_tracepoint>: Add
11299 argument.
11300 (target_download_tracepoint): Add argument.
11301 * target.c (update_current_target): Update.
11302 * remote.c (remote_download_tracepoint): Add 'self' argument.
11303
ecae04e1
TT
113042014-02-19 Tom Tromey <tromey@redhat.com>
11305
11306 * target.h (struct target_ops) <to_trace_init>: Add argument.
11307 (target_trace_init): Add argument.
11308 * target.c (update_current_target): Update.
11309 * remote.c (remote_trace_init): Add 'self' argument.
11310
fab5aa7c
TT
113112014-02-19 Tom Tromey <tromey@redhat.com>
11312
11313 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11314 * target.c (target_fileio_readlink): Add argument.
11315 * remote.c (remote_hostio_readlink): Add 'self' argument.
11316 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11317
dbbca37d
TT
113182014-02-19 Tom Tromey <tromey@redhat.com>
11319
11320 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11321 * target.c (target_fileio_unlink): Add argument.
11322 * remote.c (remote_hostio_unlink): Add 'self' argument.
11323 (remote_file_delete): Update.
11324 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11325
df39ea25
TT
113262014-02-19 Tom Tromey <tromey@redhat.com>
11327
11328 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11329 * target.c (target_fileio_close): Add argument.
11330 * remote.c (remote_hostio_close): Add 'self' argument.
11331 (remote_hostio_close_cleanup): Update.
11332 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11333 Update.
11334 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11335
a3be983c
TT
113362014-02-19 Tom Tromey <tromey@redhat.com>
11337
11338 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11339 * target.c (target_fileio_pread): Add argument.
11340 * remote.c (remote_hostio_pread): Add 'self' argument.
11341 (remote_bfd_iovec_pread, remote_file_get): Update.
11342 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11343
0d866f62
TT
113442014-02-19 Tom Tromey <tromey@redhat.com>
11345
11346 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11347 * target.c (target_fileio_pwrite): Add argument.
11348 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11349 (remote_file_put): Update.
11350 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11351
cd897586
TT
113522014-02-19 Tom Tromey <tromey@redhat.com>
11353
11354 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11355 * target.c (target_fileio_open): Add argument.
11356 * remote.c (remote_hostio_open): Add 'self' argument.
11357 (remote_bfd_iovec_open): Add 'self' argument.
11358 (remote_file_put): Add 'self' argument.
11359 (remote_file_get): Add 'self' argument.
11360 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11361
78eff0ec
TT
113622014-02-19 Tom Tromey <tromey@redhat.com>
11363
11364 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11365 Add argument.
11366 (target_can_run_breakpoint_commands): Add argument.
11367 * target.c (update_current_target): Update.
11368 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11369 argument.
11370 (remote_insert_breakpoint): Add 'self' argument.
11371 (remote_insert_hw_breakpoint): Add 'self' argument.
11372 (remote_can_run_breakpoint_commands): Add 'self' argument.
11373
efcc2da7
TT
113742014-02-19 Tom Tromey <tromey@redhat.com>
11375
11376 * target.h (struct target_ops)
11377 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11378 (target_supports_evaluation_of_breakpoint_conditions): Add
11379 argument.
11380 * target.c (update_current_target): Update.
11381 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11382 argument.
11383 (remote_insert_breakpoint): Add 'self' argument.
11384 (remote_insert_hw_breakpoint): Add 'self' argument.
11385 (remote_supports_cond_breakpoints): Add 'self' argument.
11386
6de37a3a
TT
113872014-02-19 Tom Tromey <tromey@redhat.com>
11388
11389 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11390 argument.
11391 (target_supports_string_tracing): Add argument.
11392 * target.c (update_current_target): Update.
11393 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11394
2bfc0540
TT
113952014-02-19 Tom Tromey <tromey@redhat.com>
11396
11397 * target.h (struct target_ops)
11398 <to_supports_disable_randomization>: Add argument.
11399 * target.c (find_default_supports_disable_randomization): Add
11400 argument.
11401 (target_supports_disable_randomization): Add argument.
11402 (find_default_supports_disable_randomization): Add 'self'
11403 argument.
11404 * remote.c (extended_remote_supports_disable_randomization): Add
11405 'self' argument.
11406 (remote_supports_disable_randomization): Add 'self' argument.
11407 (extended_remote_create_inferior): Update.
11408 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11409 'self' argument.
11410
7d178d6a
TT
114112014-02-19 Tom Tromey <tromey@redhat.com>
11412
11413 * target.h (struct target_ops)
11414 <to_supports_enable_disable_tracepoint>: Add argument.
11415 (target_supports_enable_disable_tracepoint): Add argument.
11416 * target.c (update_current_target): Update.
11417 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11418 argument.
11419
86ce2668
TT
114202014-02-19 Tom Tromey <tromey@redhat.com>
11421
11422 * target.h (struct target_ops) <to_supports_multi_process>: Add
11423 argument.
11424 (target_supports_multi_process): Add argument.
11425 * target.c (update_current_target): Update.
11426 * remote.c (remote_supports_multi_process): Add 'self' argument.
11427 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11428 argument.
11429 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11430 argument.
11431
4c612759
TT
114322014-02-19 Tom Tromey <tromey@redhat.com>
11433
11434 * target.h (struct target_ops) <to_execution_direction>: Add
11435 argument.
11436 (target_execution_direction): Add argument.
11437 * target.c (default_execution_direction): Add 'self' argument.
11438 * record-full.c (record_full_execution_direction): Add 'self'
11439 argument.
11440
19db3e69
TT
114412014-02-19 Tom Tromey <tromey@redhat.com>
11442
11443 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11444 argument.
11445 (target_can_execute_reverse): Add argument.
11446 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11447 * record-full.c (record_full_can_execute_reverse): Add 'self'
11448 argument.
11449 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11450 argument.
11451
1e6b91a4
TT
114522014-02-19 Tom Tromey <tromey@redhat.com>
11453
11454 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11455 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11456 argument.
11457 (target_get_ada_task_ptid): Add argument.
11458 * target.c (update_current_target): Update.
11459 (default_get_ada_task_ptid): Add 'self' argument.
11460 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11461 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11462 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11463 argument.
11464 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11465 argument.
11466 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11467 argument.
11468 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11469 argument.
11470 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11471 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11472 argument.
11473
3c80fb48
TT
114742014-02-19 Tom Tromey <tromey@redhat.com>
11475
11476 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11477 (target_goto_bookmark): Add argument.
11478 * target.c (dummy_goto_bookmark): Add 'self' argument.
11479 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11480
dd0e2830
TT
114812014-02-19 Tom Tromey <tromey@redhat.com>
11482
11483 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11484 (target_get_bookmark): Add argument.
11485 * target.c (dummy_get_bookmark): Add 'self' argument.
11486 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11487
fc6691b2
TT
114882014-02-19 Tom Tromey <tromey@redhat.com>
11489
11490 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11491 argument.
11492 (target_make_corefile_notes): Add argument.
11493 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11494 * procfs.c (procfs_make_note_section): Add 'self' argument.
11495 (procfs_make_note_section): Add 'self' argument.
11496 (procfs_make_note_section): Add 'self' argument.
11497 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11498 argument.
11499 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11500 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11501 * exec.c (exec_make_note_section): Add 'self' argument.
11502 (exec_make_note_section): Add 'self' argument.
11503
2e73927c
TT
115042014-02-19 Tom Tromey <tromey@redhat.com>
11505
11506 * target.h (struct target_ops) <to_find_memory_regions>: Add
11507 argument.
11508 (target_find_memory_regions): Add argument.
11509 * target.c (dummy_find_memory_regions): Add 'self' argument.
11510 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11511 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11512 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11513 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11514 * exec. (exec_do_find_memory_regions): New global.
11515 (exec_set_find_memory_regions): Rewrite.
11516 (exec_find_memory_regions): New function.
11517 (init_exec_ops): Use exec_find_memory_regions.
11518
2a9a2795
TT
115192014-02-19 Tom Tromey <tromey@redhat.com>
11520
11521 * target.h (struct target_ops) <to_supports_non_stop>: Add
11522 argument.
11523 * target.c (find_default_supports_non_stop): Add argument.
11524 (target_supports_non_stop): Add argument.
11525 (find_default_supports_non_stop): Add 'self' argument.
11526 * remote.c (remote_supports_non_stop): Add 'self' argument.
11527 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11528
4ab76ea3
TT
115292014-02-19 Tom Tromey <tromey@redhat.com>
11530
11531 * target.h (struct target_ops) <to_log_command>: Add argument.
11532 (target_log_command): Add argument.
11533 * serial.h (serial_log_command): Add 'self' argument.
11534 * serial.c (serial_log_command): Add 'self' argument.
11535
8dd27370
TT
115362014-02-19 Tom Tromey <tromey@redhat.com>
11537
11538 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11539 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11540 argument.
11541 (target_pid_to_exec_file): Add argument.
11542 * target.c (debug_to_pid_to_exec_file): Add argument.
11543 (update_current_target): Update.
11544 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11545 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11546 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11547 (linux_handle_extended_wait): Update.
11548 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11549 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11550 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11551 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11552
1aac633b
TT
115532014-02-19 Tom Tromey <tromey@redhat.com>
11554
11555 * target.h (struct target_ops) <to_rcmd>: Add argument.
11556 (target_rcmd): Add argument.
11557 * target.c (debug_to_rcmd): Add argument.
11558 (update_current_target, do_monitor_command): Update.
11559 * remote.c (remote_rcmd): Add 'self' argument.
11560 * monitor.c (monitor_rcmd): Add 'self' argument.
11561
1eab8a48
TT
115622014-02-19 Tom Tromey <tromey@redhat.com>
11563
11564 * windows-nat.c (windows_stop): Add 'self' argument.
11565 * target.h (struct target_ops) <to_stop>: Add argument.
11566 * target.c (target_stop): Add argument.
11567 (debug_to_stop): Add argument.
11568 (update_current_target): Update.
11569 * remote.c (remote_stop): Add 'self' argument.
11570 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11571 (gdbsim_cntrl_c): Update.
11572 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11573 * procfs.c (procfs_stop): Add 'self' argument.
11574 * nto-procfs.c (procfs_stop): Add 'self' argument.
11575 * monitor.c (monitor_stop): Add 'self' argument.
11576 (monitor_open): Update.
11577 * linux-nat.c (linux_nat_stop): Add argument.
11578 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11579 * gnu-nat.c (gnu_stop): Add 'self' argument.
11580 * darwin-nat.c (darwin_stop): Add 'self' argument.
11581
503a628d
TT
115822014-02-19 Tom Tromey <tromey@redhat.com>
11583
11584 * target.h (struct target_ops) <to_thread_name>: Add argument.
11585 * target.c (target_thread_name): Add argument.
11586 (update_current_target): Update.
11587 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11588
c15906d8
TT
115892014-02-19 Tom Tromey <tromey@redhat.com>
11590
11591 * target.h (struct target_ops) <to_extra_thread_info>: Add
11592 argument.
11593 (target_extra_thread_info): Add argument.
11594 * target.c (update_current_target): Update.
11595 * remote.c (remote_threads_extra_info): Add 'self' argument.
11596 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11597 argument.
11598 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11599 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11600 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11601 argument.
11602 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11603 argument.
11604 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11605 argument.
11606 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11607 argument.
11608
daf5e9b6
TT
116092014-02-19 Tom Tromey <tromey@redhat.com>
11610
11611 * target.h (struct target_ops) <to_program_signals>: Add argument.
11612 * target.c (target_program_signals): Add argument.
11613 * remote.c (remote_program_signals): Add 'self' argument.
11614
94bedb42
TT
116152014-02-19 Tom Tromey <tromey@redhat.com>
11616
11617 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11618 * target.c (target_pass_signals): Add argument.
11619 * remote.c (remote_pass_signals): Add 'self' argument.
11620 (remote_start_remote): Update.
11621 * procfs.c (procfs_pass_signals): Add 'self' argument.
11622 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11623 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11624 (linux_nat_create_inferior, linux_nat_attach): Update.
11625
da82bd6b
TT
116262014-02-19 Tom Tromey <tromey@redhat.com>
11627
11628 * windows-nat.c (windows_can_run): Add 'self' argument.
11629 * target.h (struct target_ops) <to_can_run>: Add argument.
11630 (target_can_run): Add argument.
11631 * target.c (debug_to_can_run): Add argument.
11632 (update_current_target): Update.
11633 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11634 * inf-child.c (inf_child_can_run): Add 'self' argument.
11635 * go32-nat.c (go32_can_run): Add 'self' argument.
11636
d796e1d6
TT
116372014-02-19 Tom Tromey <tromey@redhat.com>
11638
11639 * target.h (struct target_ops) <to_has_exited>: Add argument.
11640 (target_has_exited): Add argument.
11641 * target.c (debug_to_has_exited): Add argument.
11642 (update_current_target): Update.
11643
ff214e67
TT
116442014-02-19 Tom Tromey <tromey@redhat.com>
11645
11646 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11647 argument.
11648 (target_set_syscall_catchpoint): Add argument.
11649 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11650 argument.
11651 * target.c (update_current_target): Update.
11652
758e29d2
TT
116532014-02-19 Tom Tromey <tromey@redhat.com>
11654
11655 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11656 argument.
11657 (target_remove_exec_catchpoint): Add argument.
11658 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11659 (update_current_target): Update.
11660 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11661 argument.
11662
ba025e51
TT
116632014-02-19 Tom Tromey <tromey@redhat.com>
11664
11665 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11666 argument.
11667 (target_insert_exec_catchpoint): Add argument.
11668 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11669 (update_current_target): Update.
11670 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11671 argument.
11672
e98cf0cd
TT
116732014-02-19 Tom Tromey <tromey@redhat.com>
11674
11675 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11676 argument.
11677 (target_remove_vfork_catchpoint): Add argument.
11678 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11679 (update_current_target): Update.
11680 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11681 argument.
11682
3ecc7da0
TT
116832014-02-19 Tom Tromey <tromey@redhat.com>
11684
11685 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11686 argument.
11687 (target_insert_vfork_catchpoint): Add argument.
11688 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11689 (update_current_target): Update.
11690 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11691 argument.
11692
973fc227
TT
116932014-02-19 Tom Tromey <tromey@redhat.com>
11694
11695 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11696 argument.
11697 (target_remove_fork_catchpoint): Add argument.
11698 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11699 (update_current_target): Update.
11700 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11701 argument.
11702
a863b201
TT
117032014-02-19 Tom Tromey <tromey@redhat.com>
11704
11705 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11706 argument.
11707 (target_insert_fork_catchpoint): Add argument.
11708 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11709 (update_current_target): Update.
11710 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11711 argument.
11712
2e97a79e
TT
117132014-02-19 Tom Tromey <tromey@redhat.com>
11714
11715 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11716 argument.
11717 (target_post_startup_inferior): Add argument.
11718 * target.c (debug_to_post_startup_inferior): Add argument.
11719 (update_current_target): Update.
11720 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11721 argument.
11722 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11723 argument.
11724 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11725 argument.
11726 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11727 argument.
11728 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11729 'self' argument.
11730 (super_post_startup_inferior): Likewise.
11731 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11732 'self' argument.
11733 (super_post_startup_inferior): Likewise.
11734 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11735 Add 'self' argument.
11736 (super_post_startup_inferior): Likewise.
11737
71a9f134
TT
117382014-02-19 Tom Tromey <tromey@redhat.com>
11739
11740 * target.h (struct target_ops) <to_load>: Add argument.
11741 * target.c (target_load): Add argument.
11742 (debug_to_load): Add argument.
11743 (update_current_target): Update.
11744 * remote.c (remote_load): Add 'self' argument.
11745 * remote-sim.c (gdbsim_load): Add 'self' argument.
11746 * remote-mips.c (mips_load): Add 'self' argument.
11747 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11748 * monitor.c (monitor_load): Add 'self' argument.
11749 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11750
0a4f40a2
TT
117512014-02-19 Tom Tromey <tromey@redhat.com>
11752
11753 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11754 (target_terminal_info): Add argument.
11755 * target.c (debug_to_terminal_info): Add argument.
11756 (default_terminal_info): Likewise.
11757 * inflow.c (child_terminal_info): Add 'self' argument.
11758 * inferior.h (child_terminal_info): Add 'self' argument.
11759 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11760
ae3bd431
TT
117612014-02-19 Tom Tromey <tromey@redhat.com>
11762
11763 * target.h (struct target_ops) <to_terminal_save_ours>: Add
11764 argument.
11765 (target_terminal_save_ours): Add argument.
11766 * target.c (debug_to_terminal_save_ours): Add argument.
11767 (update_current_target): Update.
11768 * inflow.c (terminal_save_ours): Add 'self' argument.
11769 * inferior.h (terminal_save_ours): Add 'self' argument.
11770
e3594fd1
TT
117712014-02-19 Tom Tromey <tromey@redhat.com>
11772
11773 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
11774 (target_terminal_ours): Add argument.
11775 * target.c (debug_to_terminal_ours): Add argument.
11776 (update_current_target): Update.
11777 * remote.c (remote_terminal_ours): Add 'self' argument.
11778 (remote_close): Update.
11779 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
11780 * inflow.c (terminal_ours): Add 'self' argument.
11781 * inferior.h (terminal_ours): Add 'self' argument.
11782 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11783
2e1e1a19
TT
117842014-02-19 Pedro Alves <palves@redhat.com>
11785 Tom Tromey <tromey@redhat.com>
11786
11787 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
11788 argument.
11789 (target_terminal_ours_for_output): Add argument.
11790 * target.c (debug_to_terminal_ours_for_output): Add argument.
11791 (update_current_target): Update.
11792 * inflow.c (terminal_ours_for_output): Add 'self' argument.
11793 * inferior.h (terminal_ours_for_output): Add 'self' argument.
11794 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
11795
d2f640d4
TT
117962014-02-19 Tom Tromey <tromey@redhat.com>
11797
11798 * target.h (struct target_ops) <to_terminal_inferior>: Add
11799 argument.
11800 * target.c (target_terminal_inferior): Add argument.
11801 (update_current_target): Update.
11802 * remote.c (remote_terminal_inferior): Add 'self' argument.
11803 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
11804 * inflow.c (terminal_inferior): Add 'self' argument.
11805 * inferior.h (terminal_inferior): Add 'self' argument.
11806 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
11807 (go32_terminal_inferior): Add 'self' argument.
11808
c42bf286
TT
118092014-02-19 Tom Tromey <tromey@redhat.com>
11810
11811 * target.h (struct target_ops) <to_terminal_init>: Add argument.
11812 (target_terminal_init): Add argument.
11813 * target.c (debug_to_terminal_init): Add argument.
11814 (update_current_target): Update.
11815 * inflow.c (terminal_init_inferior): Add 'self' argument.
11816 * inferior.h (terminal_init_inferior): Add 'self' argument.
11817 * go32-nat.c (go32_terminal_init): Add 'self' argument.
11818 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
11819
c3a5ff89
TT
118202014-02-19 Tom Tromey <tromey@redhat.com>
11821
11822 * target.h (struct target_ops)
11823 <to_can_accel_watchpoint_condition>: Add argument.
11824 (target_can_accel_watchpoint_condition): Add argument.
11825 * target.c (debug_to_can_accel_watchpoint_condition): Add
11826 argument.
11827 (update_current_target): Update.
11828 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
11829 'self' argument.
11830
31568a15
TT
118312014-02-19 Tom Tromey <tromey@redhat.com>
11832
11833 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11834 Add argument.
11835 (target_region_ok_for_hw_watchpoint): Add argument.
11836 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
11837 (default_region_ok_for_hw_watchpoint): Add argument.
11838 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
11839 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
11840 argument.
11841 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
11842 argument.
11843 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
11844 argument.
11845 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
11846 'self' argument.
11847 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
11848 'self' argument.
11849 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
11850 'self' argument.
11851 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
11852 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
11853 'self' argument.
11854 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
11855 Add 'self' argument.
11856
7bb99c53
TT
118572014-02-19 Tom Tromey <tromey@redhat.com>
11858
11859 * target.h (struct target_ops) <to_insert_watchpoint>: Add
11860 argument.
11861 (target_insert_watchpoint): Add argument.
11862 * target.c (debug_to_insert_watchpoint): Add argument.
11863 (update_current_target): Update.
11864 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
11865 * remote.c (remote_insert_watchpoint): Add 'self' argument.
11866 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
11867 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
11868 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
11869 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
11870 argument.
11871 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
11872 (procfs_insert_hw_watchpoint): Add 'self' argument.
11873 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
11874 argument.
11875 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
11876 argument.
11877 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
11878 argument.
11879 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
11880 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
11881 argument.
11882 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
11883 'self' argument.
11884
11b5219a
TT
118852014-02-19 Tom Tromey <tromey@redhat.com>
11886
11887 * target.h (struct target_ops) <to_remove_watchpoint>: Add
11888 argument.
11889 (target_remove_watchpoint): Add argument.
11890 * target.c (debug_to_remove_watchpoint): Add argument.
11891 (update_current_target): Update.
11892 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
11893 * remote.c (remote_remove_watchpoint): Add 'self' argument.
11894 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
11895 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
11896 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
11897 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
11898 argument.
11899 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
11900 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
11901 argument.
11902 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
11903 argument.
11904 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
11905 argument.
11906 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
11907 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
11908 argument.
11909 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
11910 'self' argument.
11911
a64dc96c
TT
119122014-02-19 Tom Tromey <tromey@redhat.com>
11913
11914 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
11915 argument.
11916 (target_remove_hw_breakpoint): Add argument.
11917 * target.c (debug_to_remove_hw_breakpoint): Add argument.
11918 (update_current_target): Update.
11919 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
11920 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
11921 argument.
11922 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
11923 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
11924 argument.
11925 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
11926 'self' argument.
11927
23a26771
TT
119282014-02-19 Tom Tromey <tromey@redhat.com>
11929
11930 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
11931 argument.
11932 (target_insert_hw_breakpoint): Add argument.
11933 * target.c (debug_to_insert_hw_breakpoint): Add argument.
11934 (update_current_target): Update.
11935 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
11936 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
11937 argument.
11938 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
11939 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
11940 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
11941 argument.
11942 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
11943 'self' argument.
11944
5461485a
TT
119452014-02-19 Tom Tromey <tromey@redhat.com>
11946
11947 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
11948 argument.
11949 (target_can_use_hardware_watchpoint): Add argument.
11950 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
11951 (update_current_target): Update.
11952 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
11953 argument.
11954 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
11955 argument.
11956 * remote.c (remote_check_watch_resources): Add 'self' argument.
11957 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
11958 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
11959 argument.
11960 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
11961 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
11962 argument.
11963 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
11964 argument.
11965 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
11966 argument.
11967 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
11968 argument.
11969 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
11970 argument.
11971 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
11972 argument.
11973 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
11974 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
11975 argument.
11976 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
11977 'self' argument.
11978
f045800c
TT
119792014-02-19 Tom Tromey <tromey@redhat.com>
11980
11981 * target.h (struct target_ops) <to_post_attach>: Add argument.
11982 (target_post_attach): Add argument.
11983 * target.c (debug_to_post_attach): Add argument.
11984 (update_current_target): Update.
11985 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
11986 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
11987 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
11988 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
11989 * inf-child.c (inf_child_post_attach): Add 'self' argument.
11990
de90e03d
TT
119912014-02-19 Tom Tromey <tromey@redhat.com>
11992
11993 * windows-nat.c (windows_close): Add 'self' argument.
11994 * tracepoint.c (tfile_close): Add 'self' argument.
11995 * target.h (struct target_ops) <to_close>: Add argument.
11996 * target.c (target_close): Add argument.
11997 (update_current_target): Update.
11998 * remote.c (remote_close): Add 'self' argument.
11999 * remote-sim.c (gdbsim_close): Add 'self' argument.
12000 * remote-mips.c (mips_close): Add 'self' argument.
12001 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12002 * record-full.c (record_full_close): Add 'self' argument.
12003 * record-btrace.c (record_btrace_close): Add 'self' argument.
12004 * monitor.h (monitor_close): Add 'self' argument.
12005 * monitor.c (monitor_close): Add 'self' argument.
12006 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12007 * linux-nat.c (linux_nat_close): Add argument.
12008 * go32-nat.c (go32_close): Add 'self' argument.
12009 * exec.c (exec_close_1): Add 'self' argument.
12010 * ctf.c (ctf_close): Add 'self' argument.
12011 * corelow.c (core_close): Add 'self' argument.
12012 (core_close_cleanup): Update.
12013 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12014 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12015
9dd130a0
TT
120162014-02-19 Tom Tromey <tromey@redhat.com>
12017
12018 * remote.c (remote_load): New function.
12019 (init_remote_ops): Use it.
12020
46917d26
TT
120212014-02-19 Tom Tromey <tromey@redhat.com>
12022
12023 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12024 argument.
12025 * common/linux-btrace.h (linux_supports_btrace): Update.
12026 * remote.c (remote_supports_btrace): Add "self" argument.
12027 * target-delegates.c: Rebuild.
12028 * target.c (target_supports_btrace): Remove.
12029 * target.h (struct target_ops) <to_supports_btrace>: Add
12030 target_ops argument.
12031 (target_supports_btrace): New define.
12032
6b84065d
TT
120332014-02-19 Tom Tromey <tromey@redhat.com>
12034
12035 * record-full.c (record_full_beneath_to_resume_ops)
12036 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12037 (record_full_beneath_to_wait)
12038 (record_full_beneath_to_store_registers_ops)
12039 (record_full_beneath_to_store_registers)
12040 (record_full_beneath_to_xfer_partial_ops)
12041 (record_full_beneath_to_xfer_partial)
12042 (record_full_beneath_to_insert_breakpoint_ops)
12043 (record_full_beneath_to_insert_breakpoint)
12044 (record_full_beneath_to_remove_breakpoint_ops)
12045 (record_full_beneath_to_remove_breakpoint)
12046 (record_full_beneath_to_stopped_by_watchpoint)
12047 (record_full_beneath_to_stopped_data_address)
12048 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12049 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12050 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12051 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12052 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12053 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12054 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12055 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12056 (record_full_resume, record_full_wait_1)
12057 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12058 (record_full_store_registers, record_full_xfer_partial)
12059 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12060 (record_full_async, record_full_core_xfer_partial): Use target
12061 delegation.
12062 * target-delegates.c: Rebuild.
12063 * target.c (current_xfer_partial): Remove.
12064 (update_current_target): Do not INHERIT or de_fault
12065 to_insert_breakpoint, to_remove_breakpoint,
12066 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12067 to_is_async_p, to_async. Do not set to_xfer_partial field.
12068 (default_xfer_partial): Simplify.
12069 (current_xfer_partial): Remove.
12070 (target_wait, target_resume): Simplify.
12071 (find_default_can_async_p, find_default_is_async_p): Update.
12072 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12073 to_xfer_partial, to_stopped_by_watchpoint,
12074 to_stopped_data_address.
12075 (target_store_registers): Simplify.
12076 (forward_target_remove_breakpoint)
12077 (forward_target_insert_breakpoint): Remove.
12078 (target_remove_breakpoint, target_insert_breakpoint)
12079 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12080 * target.h (struct target_ops) <to_resume, to_wait,
12081 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12082 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12083 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12084 markup.
12085 (forward_target_remove_breakpoint)
12086 (forward_target_insert_breakpoint): Remove.
12087 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12088 directly.
12089 (record_btrace_insert_breakpoint): Delegate directly.
12090
1101cb7b
TT
120912014-02-19 Tom Tromey <tromey@redhat.com>
12092
12093 PR build/7701:
12094 * target-delegates.c: New file.
12095 * target.c: Include target-delegates.c.
12096 (init_dummy_target): Call install_dummy_methods.
12097 (complete_target_initialization): Call install_delegators.
12098 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12099 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12100 * make-target-delegates: New file.
12101
8b06beed
TT
121022014-02-19 Tom Tromey <tromey@redhat.com>
12103
12104 * record.c (find_record_target): Use find_target_at.
12105 * target.c (find_target_at): New function.
12106 * target.h (find_target_at): Declare.
12107
6a109b6b
TT
121082014-02-19 Tom Tromey <tromey@redhat.com>
12109
12110 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12111 Add 'ops' argument.
12112 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12113 'ops' argument.
12114 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12115 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12116 'ops' argument.
12117 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12118 argument.
12119 * linux-nat.c (save_sigtrap): Update.
12120 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12121 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12122 (linux_nat_close): Update.
12123 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12124 argument.
12125 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12126 argument.
12127 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12128 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12129 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12130 (tmp_to_async): Add 'ops' argument.
12131 (record_full_stopped_by_watchpoint, record_full_async)
12132 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12133 argument.
12134 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12135 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12136 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12137 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12138 (remote_is_async_p, remote_async): Add 'ops' argument.
12139 (remote_stopped_data_address): Update.
12140 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12141 * target.c (update_current_target)
12142 (find_default_can_async_p, find_default_is_async_p): Update.
12143 (init_dummy_target): Update.
12144 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12145 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12146 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12147 (target_can_async_p, target_is_async_p, target_async)
12148 (target_stopped_by_watchpoint): Update.
12149
e095146b
YQ
121502014-02-19 Yao Qi <yao@codesourcery.com>
12151
12152 PR gdb/16220
12153 * gdbarch.sh: Remove startup_gdbarch.
12154 * gdbarch.c: Regenerated.
12155 * gdbarch.h: Likewise.
12156
bc3c6b36
KB
121572014-02-17 Kevin Buettner <kevinb@redhat.com>
12158
12159 * rl78-tdep.c (rl78_g10_register_name): New function.
12160 (rl78_return_value): Add g10 support.
12161 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12162 g10.
12163
98dc0167 121642014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
12165
12166 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12167 (SUBDIR_GUILE_SRCS): Ditto.
12168 (scm-gsmob.o): Ditto.
12169
842c05cd
YQ
121702014-02-17 Yao Qi <yao@codesourcery.com>
12171
12172 * gnu-nat.c (ILL_RPC): Declare defined function.
12173
25c0bd04
YQ
121742014-02-17 Yao Qi <yao@codesourcery.com>
12175
12176 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12177 mach_msg_type_number_t.
12178 (gnu_write_inferior): Likewise.
12179
a9a758e3
YQ
121802014-02-17 Yao Qi <yao@codesourcery.com>
12181
12182 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12183 in format string.
12184 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12185 (inf_validate_procs, inf_signal): Likewise.
12186 (S_exception_raise_request): Likewise.
12187 (do_mach_notify_dead_name): Likewise.
12188 (steal_exc_port): Likewise.
12189 (gnu_read_inferior): Change 'copy_count''s type to
12190 mach_msg_type_number_t.
12191 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12192 format string.
12193
bae8023e
TS
121942014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12195
c82f56d9
TS
12196 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12197 flag. Adjust all users; in particular...
12198 (gnu_wait): ..., don't decrement its value in here...
12199 (gnu_create_inferior): ..., and instead set the flag in here,
12200 around the startup_inferior call, and call that one with
12201 START_INFERIOR_TRAPS_EXPECTED.
12202
3398af6a
TS
12203 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12204 (ILL_RPC): ... new macro.
12205 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12206 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12207 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12208 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12209 functions with ILL_RPC macro.
12210 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12211 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12212 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12213 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12214 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12215 (S_proc_getlogin_reply, S_proc_getsid_reply)
12216 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12217 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12218 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12219 (S_proc_getnports_reply, S_proc_is_important_reply)
12220 (S_proc_get_code_reply): New stub functions, generated with
12221 ILL_RPC macro.
12222
d47642c9
TS
12223 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12224 collected the type check structures.
12225
bae8023e
TS
12226 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12227
8a55ffb0
DE
122282014-02-14 Doug Evans <dje@google.com>
12229
12230 * target.c (target_write_partial): Fix result type.
12231
c2853f3d
JM
122322014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12233
12234 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12235 the proper offsets to access fpregset_t.
12236
ac61d2db
SA
122372014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12238
12239 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12240 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12241 * h8300-tdep.c (setmachinelist): Remove global.
12242 * hppa-tdep.c (hppa_sigtramp): Remove global.
12243 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12244 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12245 * ravenscar-thread.c (update_target_observer): Remove global.
12246 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12247
9d2d0b8b
TT
122482014-02-12 Tom Tromey <tromey@redhat.com>
12249
12250 * common/rsp-low.c: Update comments.
12251 * common/rsp-low.h: Update comments.
12252
a7191e8b
TT
122532014-02-12 Tom Tromey <tromey@redhat.com>
12254
12255 * common/rsp-low.c (convert_ascii_to_int): Remove.
12256 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12257
ff0e980e
TT
122582014-02-12 Tom Tromey <tromey@redhat.com>
12259
12260 * common/rsp-low.h (unhexify): Don't declare.
12261 * common/rsp-low.c (unhexify): Remove.
12262
e9371aff
TT
122632014-02-12 Tom Tromey <tromey@redhat.com>
12264
12265 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12266 * common/rsp-low.c (convert_int_to_ascii): Remove.
12267
971dc0b8
TT
122682014-02-12 Tom Tromey <tromey@redhat.com>
12269
12270 * common/rsp-low.h (hexify): Don't declare.
12271 * common/rsp-low.c (hexify): Remove.
12272
0a822afb
TT
122732014-02-12 Tom Tromey <tromey@redhat.com>
12274
12275 * common/rsp-low.c (hexify): Never take strlen of argument.
12276
9f1b45b0
TT
122772014-02-12 Tom Tromey <tromey@redhat.com>
12278
12279 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12280 * remote.c (extended_remote_run, remote_rcmd)
12281 (remote_download_trace_state_variable, remote_save_trace_data)
12282 (remote_set_trace_notes): Update.
12283 * tracepoint.c (encode_source_string, tfile_write_status)
12284 (tfile_write_uploaded_tsv): Update.
12285
9c3d6531
TT
122862014-02-12 Tom Tromey <tromey@redhat.com>
12287
12288 * tracepoint.c: Include rsp-low.h.
12289 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12290 * remote.c: Include rsp-low.h.
12291 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12292 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12293 (remote_unescape_input): Move to common/rsp-low.c.
12294 * common/rsp-low.h: New file.
12295 * common/rsp-low.c: New file.
12296 * Makefile.in (SFILES): Add common/rsp-low.c.
12297 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12298 (COMMON_OBS): Add rsp-low.o.
12299 (rsp-low.o): New target.
12300
01fd3ea5
TT
123012014-02-12 Tom Tromey <tromey@redhat.com>
12302
12303 * utils.h: Include print-utils.h.
12304 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12305 (int_string, core_addr_to_string, core_addr_to_string_nz)
12306 (hex_string, hex_string_custom): Don't declare.
12307 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12308 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12309 (hex_string_custom, int_string, core_addr_to_string)
12310 (core_addr_to_string_nz, host_address_to_string): Move to
12311 common/print-utils.c.
12312 * common/print-utils.h: New file.
12313 * common/print-utils.c: New file
12314 * Makefile.in (SFILES): Add common/print-utils.c.
12315 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12316 (COMMON_OBS): Add print-utils.o.
12317 (print-utils.o): New target.
12318
9fb50108
TT
123192014-02-12 Tom Tromey <tromey@redhat.com>
12320
12321 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12322
0548b5db
MK
123232014-02-12 Mark Kettenis <kettenis@gnu.org>
12324
12325 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12326
493443a4
MK
123272014-02-12 Mark Kettenis <kettenis@gnu.org>
12328
12329 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12330 if a PT_IO ptrace request returns sucessfully but indicates that 0
12331 bytes were transferred.
12332
706d0883
PA
123332014-02-12 Pedro Alves <palves@redhat.com>
12334 Kevin Buettner <kevinb@redhat.com>
12335
12336 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12337 TYPE_INSTANCE_FLAG_CODE_SPACE.
12338
5caa2f0b
PA
123392014-02-12 Pedro Alves <palves@redhat.com>
12340
12341 * h8300-tdep.c (pseudo_from_raw_register)
12342 (raw_from_pseudo_register): New functions.
12343 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12344 them.
12345
76fd5f74
PA
123462014-02-12 Pedro Alves <palves@redhat.com>
12347
12348 * h8300-tdep.c (h8300_register_sim_regno): New function.
12349 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12350 gdbarch_register_sim_regno hook.
12351
8f008406
SA
123522014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12353
12354 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12355
195abc10
SA
123562014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12357
12358 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12359
93ffa5b9
MK
123602014-02-12 Mark Kettenis <kettenis@gnu.org>
12361
12362 * obsd-tdep.h (obsd_init_abi): New prototype.
12363 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12364 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12365 (obsd_init_abi): New functions.
12366 * i386obsd-tdep.c: Include "obsd-tdep.h".
12367 (i386obsd_init_abi): Call obsd_init_abi.
12368 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12369 (amd64obsd_init_abi): Call obsd_init_abi.
12370 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12371 obsd-tdep.c to gdb_target_obs.
12372
49caec94
JM
123732014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12374
12375 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12376 double float arguments to 16-byte in the argument slots.
12377
e1402065
DE
123782014-02-11 Doug Evans <xdje42@gmail.com>
12379
12380 * configure.ac: Don't crash if pkg-config is not found and guile
12381 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12382 in guile checks.
12383 * configure: Regenerate.
12384
edcc890f
YQ
123852014-02-11 Yao Qi <yao@codesourcery.com>
12386
12387 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12388 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12389 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12390 * gnu-nat.c (gnu_xfer_memory): Likewise.
12391 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12392 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12393 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12394 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12395
9b409511
YQ
123962014-02-11 Yao Qi <yao@codesourcery.com>
12397
12398 * target.h (enum target_xfer_error): Rename to ...
12399 (enum target_xfer_status): ... it. New. All users updated.
12400 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12401 New.
12402 (TARGET_XFER_STATUS_ERROR_P): New macro.
12403 (target_xfer_error_to_string): Remove declaration.
12404 (target_xfer_status_to_string): Declare.
12405 (target_xfer_partial_ftype): Adjust it.
12406 (struct target_ops) <to_xfer_partial>: Return
12407 target_xfer_status. Add argument xfered_len. Update
12408 comments.
12409 * target.c (target_xfer_error_to_string): Rename to ...
12410 (target_xfer_status_to_string): ... it. New. All callers
12411 updated.
12412 (target_read_live_memory): Likewise. Call target_xfer_partial
12413 instead of target_read.
12414 (memory_xfer_live_readonly_partial): Return
12415 target_xfer_status. Add argument xfered_len.
12416 (raw_memory_xfer_partial): Likewise.
12417 (memory_xfer_partial_1): Likewise.
12418 (memory_xfer_partial): Likewise.
12419 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12420 properly. Update debug message.
12421 (default_xfer_partial, current_xfer_partial): Likewise.
12422 (target_write_partial): Likewise.
12423 (target_read_partial): Likewise. All callers updated.
12424 (read_whatever_is_readable): Likewise.
12425 (target_write_with_progress): Likewise.
12426 (target_read_alloc_1): Likewise.
12427
12428 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12429 * auxv.c (procfs_xfer_auxv): Likewise.
12430 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12431 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12432 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12433 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12434 * corefile.c (read_memory): Adjust.
12435 * corelow.c (core_xfer_partial): Likewise.
12436 * ctf.c (ctf_xfer_partial): Likewise.
12437 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12438 updated.
12439 (darwin_xfer_partial): Likewise.
12440 * exec.c (section_table_xfer_memory_partial): Likewise. All
12441 callers updated.
12442 (exec_xfer_partial): Likewise.
12443 * exec.h (section_table_xfer_memory_partial): Update
12444 declaration.
12445 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12446 negative.
12447 (gnu_xfer_partial): Likewise.
12448 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12449 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12450 (ia64_hpux_xfer_solib_got): Likewise.
12451 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12452 type of 'partial_len' to ULONGEST.
12453 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12454 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12455 (linux_nat_xfer_partial): Likewise.
12456 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12457 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12458 * monitor.c (monitor_xfer_memory): Likewise.
12459 (monitor_xfer_partial): Likewise.
12460 * procfs.c (procfs_xfer_partial): Likewise.
12461 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12462 * record-full.c (record_full_xfer_partial): Likewise.
12463 (record_full_core_xfer_partial): Likewise.
12464 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12465 (gdbsim_xfer_partial): Likewise.
12466 * remote.c (remote_write_bytes_aux): Likewise. All callers
12467 updated.
12468 (remote_write_bytes, remote_read_bytes): Likewise. All
12469 callers updated.
12470 (remote_flash_erase): Likewise. All callers updated.
12471 (remote_write_qxfer): Likewise. All callers updated.
12472 (remote_read_qxfer): Likewise. All callers updated.
12473 (remote_xfer_partial): Likewise.
12474 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12475 (rs6000_xfer_shared_libraries): Likewise.
12476 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12477 (sol_thread_xfer_partial): Likewise.
12478 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12479 (sparc_xfer_partial): Likewise.
12480 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12481 updated.
12482 (spu_xfer_partial): Likewise.
12483 * spu-multiarch.c (spu_xfer_partial): Likewise.
12484 * tracepoint.c (tfile_xfer_partial): Likewise.
12485 * windows-nat.c (windows_xfer_memory): Likewise.
12486 (windows_xfer_shared_libraries): Likewise.
12487 (windows_xfer_partial): Likewise.
12488 * valprint.c: Replace 'target_xfer_error' with
12489 'target_xfer_status' in comments.
12490
a8e63083
JB
124912014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12492
12493 Checked in by Joel Brobecker <brobecker@adacore.com>.
12494 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12495
e86b67d3
JB
124962014-02-11 Joel Brobecker <brobecker@adacore.com>
12497
12498 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12499 function parameters.
12500
4b7d1f7f
WN
125012014-02-10 Will Newton <will.newton@linaro.org>
12502
12503 * elfread.c (elf_rel_plt_read): Look for a .got section if
12504 looking up .got.plt fails.
12505 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12506 on address passed to elf_gnu_ifunc_record_cache.
12507 (elf_gnu_ifunc_resolve_addr): Likewise.
12508 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12509
961842b2
JM
125102014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12511
12512 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12513 (X_RETTURN): New macro.
12514 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12515
12516 * sparc64-tdep.c (sparc64_init_abi): Hook
12517 sparc_in_function_epilogue_p.
12518
3f03e7b1
GB
125192014-02-10 Gary Benson <gbenson@redhat.com>
12520
12521 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12522 Rename name_matcher to symbol_matcher.
12523
96f861ef
GB
125242014-02-10 Gary Benson <gbenson@redhat.com>
12525
12526 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12527 Use expand_symtabs_file_matcher_ftype and
12528 expand_symtabs_symbol_matcher_ftype.
12529
ee01b665
JB
125302014-02-10 Joel Brobecker <brobecker@adacore.com>
12531
12532 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12533 (struct ada_symbol_cache): New.
12534 (ada_free_symbol_cache): Forward declare.
12535 (struct ada_pspace_data): New.
12536 (ada_pspace_data_handle): New static global.
12537 (get_ada_pspace_data, ada_pspace_data_cleanup)
12538 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12539 (cache_space, cache): Delete, now folded inside struct
12540 ada_pspace_data.
12541 (ada_get_symbol_cache): New function.
12542 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12543 implementation.
12544 (_initialize_ada_language): Remove initialization of cache_space.
12545 Move call to observer_attach_inferior_exit up, grouping it
12546 with the other observer registrations inside this function.
12547 Rename command to be more general. Add call to
12548 register_program_space_data_with_cleanup.
12549
143adbbf
JB
125502014-02-10 Joel Brobecker <brobecker@adacore.com>
12551
12552 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12553 ada_new_objfile_observer.
12554 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12555 (_initialize_tasks): Update uses of ada_new_objfile_observer
12556 and ada_tasks_normal_stop_observer.
12557
aa4fb036
JB
125582014-02-10 Joel Brobecker <brobecker@adacore.com>
12559
12560 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12561 returned by the 'Length attribute to integer.
12562
9dee8cc6
JB
125632014-02-10 Joel Brobecker <brobecker@adacore.com>
12564
12565 * ada-lang.c (_initialize_ada_language): Initialize
12566 cache_space obstack.
12567
3d9434b5
JB
125682014-02-10 Joel Brobecker <brobecker@adacore.com>
12569
12570 * ada-lang.c (HASH_SIZE): New macro.
12571 (struct cache_entry): New type.
12572 (cache_space, cache): New static globals.
12573 (ada_clear_symbol_cache, find_entry): New functions.
12574 (lookup_cached_symbol, cache_symbol): Implement.
12575 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12576 (_initialize_ada_language): Attach ada_new_objfile_observer
12577 and ada_free_objfile_observer.
12578
f0c5f9b2
JB
125792014-02-10 Joel Brobecker <brobecker@adacore.com>
12580
12581 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12582 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12583 struct block * parameter.
12584 (ada_lookup_symbol_list_worker): Constify local variable "block".
12585 Remove cast which is no longer necessary.
12586
ed3ef339
DE
125872014-02-10 Doug Evans <xdje42@gmail.com>
12588
12589 Add Guile as an extension language.
12590 * NEWS: Mention Guile scripting.
12591 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12592 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12593 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12594 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12595 (CLIBS): Add GUILE_LIBS.
12596 (install-guile): New rule.
12597 (guile.o): New rule.
12598 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12599 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12600 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12601 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12602 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12603 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12604 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12605 * configure.ac: New option --with-guile.
12606 * configure: Regenerate.
12607 * config.in: Regenerate.
12608 * auto-load.c: Remove #include "python/python.h". Add #include
12609 "gdb/section-scripts.h".
12610 (source_section_scripts): Handle Guile scripts.
12611 (_initialize_auto_load): Add name of Guile objfile script to
12612 scripts-directory help text.
12613 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12614 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12615 (struct breakpoint): New member scm_bp_object.
12616 * defs.h (enum command_control_type): New value guile_control.
12617 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12618 "extension.h".
12619 (show_user): Update comment.
12620 (_initialize_cli_cmds): Update help text for "show user". Update help
12621 text for max-user-call-depth.
12622 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12623 "extension.h".
12624 (multi_line_command_p): Add guile_control.
12625 (print_command_lines): Handle guile_control.
12626 (execute_control_command, recurse_read_control_structure): Ditto.
12627 (process_next_line): Recognize "guile" commands.
12628 * disasm.c (gdb_disassemble_info): Make non-static.
12629 * disasm.h: #include "dis-asm.h".
12630 (struct gdbarch): Add forward decl.
12631 (gdb_disassemble_info): Declare.
12632 * extension.c: #include "guile/guile.h".
12633 (extension_languages): Add guile.
12634 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12635 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12636 * gdbtypes.c (get_unsigned_type_max): New function.
12637 (get_signed_type_minmax): New function.
12638 * gdbtypes.h (get_unsigned_type_max): Declare.
12639 (get_signed_type_minmax): Declare.
12640 * guile/README: New file.
12641 * guile/guile-internal.h: New file.
12642 * guile/guile.c: New file.
12643 * guile/guile.h: New file.
12644 * guile/scm-arch.c: New file.
12645 * guile/scm-auto-load.c: New file.
12646 * guile/scm-block.c: New file.
12647 * guile/scm-breakpoint.c: New file.
12648 * guile/scm-disasm.c: New file.
12649 * guile/scm-exception.c: New file.
12650 * guile/scm-frame.c: New file.
12651 * guile/scm-gsmob.c: New file.
12652 * guile/scm-iterator.c: New file.
12653 * guile/scm-lazy-string.c: New file.
12654 * guile/scm-math.c: New file.
12655 * guile/scm-objfile.c: New file.
12656 * guile/scm-ports.c: New file.
12657 * guile/scm-pretty-print.c: New file.
12658 * guile/scm-safe-call.c: New file.
12659 * guile/scm-string.c: New file.
12660 * guile/scm-symbol.c: New file.
12661 * guile/scm-symtab.c: New file.
12662 * guile/scm-type.c: New file.
12663 * guile/scm-utils.c: New file.
12664 * guile/scm-value.c: New file.
12665 * guile/lib/gdb.scm: New file.
12666 * guile/lib/gdb/boot.scm: New file.
12667 * guile/lib/gdb/experimental.scm: New file.
12668 * guile/lib/gdb/init.scm: New file.
12669 * guile/lib/gdb/iterator.scm: New file.
12670 * guile/lib/gdb/printing.scm: New file.
12671 * guile/lib/gdb/types.scm: New file.
12672 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12673 (VPATH): Add $(GUILE_SRCDIR).
12674 (GUILE_DIR): New variable.
12675 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12676 (all): Add stamp-guile dependency.
12677 (stamp-guile): New rule.
12678 (clean-guile, install-guile, uninstall-guile): New rules.
12679 (install-only): Add install-guile dependency.
12680 (uninstall): Add uninstall-guile dependency.
12681 (clean): Add clean-guile dependency.
12682
ac020ec5
DE
126832014-02-09 Doug Evans <xdje42@gmail.com>
12684
12685 Revert this patch (which I approved, mea culpa).
12686
12687 2014-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
2a081c59
JK
126922014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12693
12694 Fix Python stack corruption.
12695 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12696 gdb_py_longest.
12697
0a6bd22d
MK
126982014-02-08 Mark Kettenis <kettenis@gnu.org>
12699
12700 * Makefile.in (all-lib): Remove.
12701 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12702
1a860409
DE
127032014-02-07 Doug Evans <dje@google.com>
12704
12705 * extension-priv.h (extension_language_script_ops): Add comment.
12706 (extension_language_ops): Add comment.
caf5a491 12707 (active_ext_lang_state): Fix typo in comment.
1a860409 12708
d137e6dc
PA
127092014-02-07 Pedro Alves <palves@redhat.com>
12710
0dcb32c3 12711 PR breakpoints/16292
d137e6dc
PA
12712 * infrun.c (handle_signal_stop) <signal arrives while stepping
12713 over a breakpoint>: Switch back to the stepping thread.
12714
ce6d0892
YQ
127152014-02-07 Yao Qi <yao@codesourcery.com>
12716
12717 * target.c (target_xfer_partial): Return zero if LEN is zero.
12718
2ed4b548
YQ
127192014-02-07 Yao Qi <yao@codesourcery.com>
12720
12721 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12722 (ld_so_xfer_auxv): Likewise.
12723 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12724 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12725 * corelow.c (core_xfer_partial): Likewise.
12726 * ctf.c (ctf_xfer_partial): Likewise.
12727 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12728 (darwin_xfer_partial): Likewise.
12729 * exec.c (exec_xfer_partial): Likewise.
12730 * gnu-nat.c (gnu_xfer_partial): Likewise.
12731 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12732 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12733 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12734 * linux-nat.c (linux_xfer_siginfo): Likewise.
12735 (linux_proc_xfer_spu): Likewise.
12736 * procfs.c (procfs_xfer_partial): Likewise.
12737 * record-full.c (record_full_xfer_partial): Likewise.
12738 (record_full_core_xfer_partial): Likewise.
12739 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12740 * remote.c (remote_write_qxfer): Likewise.
12741 (remote_write_qxfer, remote_read_qxfer): Likewise.
12742 (remote_xfer_partial): Likewise.
12743 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12744 (rs6000_xfer_shared_libraries): Likewise.
12745 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12746 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12747 (spu_xfer_partial): Likewise.
12748 * target.c (memory_xfer_partial_1): Likewise.
12749 * tracepoint.c (tfile_xfer_partial): Likewise.
12750 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12751 (windows_xfer_partial): Likewise.
12752
c09f20e4
YQ
127532014-02-07 Yao Qi <yao@codesourcery.com>
12754
12755 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12756 comments.
12757 (core_xfer_shared_libraries_aix): Likewise.
12758 * gdbarch.c, gdbarch.h: Regenerated.
12759 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12760 ULONGEST. Change 'len_avail' type to ULONGEST.
12761 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12762 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12763 declaration.
12764 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
12765
8635b3bf
YQ
127662014-02-07 Yao Qi <yao@codesourcery.com>
12767
12768 * corefile.c (memory_error): Get 'exception' from ERR and pass
12769 'exception' to throw_error.
12770
6dddc817
DE
127712014-02-06 Doug Evans <xdje42@gmail.com>
12772
12773 * configure.ac (libpython checking): Remove all but python.o from
12774 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
12775 * configure: Regenerate.
12776
12777 * Makefile.in (SFILES): Add extension.c.
12778 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
12779 (COMMON_OBS): Add extension.o.
12780 * extension.h: New file.
12781 * extension-priv.h: New file.
12782 * extension.c: New file.
12783
12784 * python/python-internal.h: #include "extension.h".
12785 (gdbpy_auto_load_enabled): Declare.
12786 (gdbpy_apply_val_pretty_printer): Declare.
12787 (gdbpy_apply_frame_filter): Declare.
12788 (gdbpy_preserve_values): Declare.
12789 (gdbpy_breakpoint_cond_says_stop): Declare.
12790 (gdbpy_breakpoint_has_cond): Declare.
12791 (void source_python_script_for_objfile): Delete.
12792 * python/python.c: #include "extension-priv.h".
12793 Delete inclusion of "observer.h".
12794 (extension_language_python): Moved here and renamed from
12795 script_language_python in py-auto-load.c.
12796 Redefined to be of type extension_language_defn.
12797 (python_extension_script_ops): New global.
12798 (python_extension_ops): New global.
12799 (struct python_env): New member previous_active.
12800 (restore_python_env): Call restore_active_ext_lang.
12801 (ensure_python_env): Call set_active_ext_lang.
12802 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
12803 New arg extlang.
12804 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
12805 New arg extlang.
12806 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
12807 New arg extlang.
12808 (gdbpy_eval_from_control_command): Renamed from
12809 eval_python_from_control_command, made static. New arg extlang.
12810 (gdbpy_source_script) Renamed from source_python_script, made static.
12811 New arg extlang.
12812 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
12813 result to int. New arg extlang.
12814 (gdbpy_source_objfile_script): Renamed from
12815 source_python_script_for_objfile, made static. New arg extlang.
12816 (gdbpy_start_type_printers): Renamed from start_type_printers, made
12817 static. New args extlang, extlang_printers. Change result type to
12818 "void".
12819 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
12820 static. New arg extlang. Rename arg printers to extlang_printers
12821 and change type to ext_lang_type_printers *.
12822 (gdbpy_free_type_printers): Renamed from free_type_printers, made
12823 static. Replace argument arg with extlang, extlang_printers.
12824 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
12825 (!HAVE_PYTHON, source_python_script): Delete.
12826 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
12827 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
12828 (!HAVE_PYTHON, start_type_printers): Delete.
12829 (!HAVE_PYTHON, apply_type_printers): Delete.
12830 (!HAVE_PYTHON, free_type_printers): Delete.
12831 (_initialize_python): Delete call to observer_attach_before_prompt.
12832 (finalize_python): Set/restore active extension language.
12833 (gdbpy_finish_initialization) Renamed from
12834 finish_python_initialization, made static. New arg extlang.
12835 (gdbpy_initialized): New function.
12836 * python/python.h: #include "extension.h". Delete #include
12837 "value.h", "mi/mi-cmds.h".
12838 (extension_language_python): Declare.
12839 (GDBPY_AUTO_FILE_NAME): Delete.
12840 (enum py_bt_status): Moved to extension.h and renamed to
12841 ext_lang_bt_status.
12842 (enum frame_filter_flags): Moved to extension.h.
12843 (enum py_frame_args): Moved to extension.h and renamed to
12844 ext_lang_frame_args.
12845 (finish_python_initialization): Delete.
12846 (eval_python_from_control_command): Delete.
12847 (source_python_script): Delete.
12848 (apply_val_pretty_printer): Delete.
12849 (apply_frame_filter): Delete.
12850 (preserve_python_values): Delete.
12851 (gdbpy_script_language_defn): Delete.
12852 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
12853 (start_type_printers, apply_type_printers, free_type_printers): Delete.
12854
12855 * auto-load.c: #include "extension.h".
12856 (GDB_AUTO_FILE_NAME): Delete.
12857 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
12858 (script_language_gdb): Delete, moved to extension.c and renamed to
12859 extension_language_gdb.
12860 (source_gdb_script_for_objfile): Delete.
12861 (auto_load_pspace_info): New member unsupported_script_warning_printed.
12862 (loaded_script): Change type of language member to
12863 struct extension_language_defn *.
12864 (init_loaded_scripts_info): Initialize
12865 unsupported_script_warning_printed.
12866 (maybe_add_script): Make static. Change type of language arg to
12867 struct extension_language_defn *.
12868 (clear_section_scripts): Reset unsupported_script_warning_printed.
12869 (auto_load_objfile_script_1): Rewrite to use extension language API.
12870 (auto_load_objfile_script): Make public. Remove support-compiled-in
12871 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
12872 (source_section_scripts): Rewrite to use extension language API.
12873 (load_auto_scripts_for_objfile): Rewrite to use
12874 auto_load_scripts_for_objfile.
12875 (collect_matching_scripts_data): Change type of language member to
12876 struct extension_language_defn *.
12877 (auto_load_info_scripts): Change type of language arg to
12878 struct extension_language_defn *.
12879 (unsupported_script_warning_print): New function.
12880 (script_not_found_warning_print): Make static.
12881 (_initialize_auto_load): Rewrite construction of scripts-directory
12882 help.
12883 * auto-load.h (struct objfile): Add forward decl.
12884 (struct script_language): Delete.
12885 (struct auto_load_pspace_info): Add forward decl.
12886 (struct extension_language_defn): Add forward decl.
12887 (maybe_add_script): Delete.
12888 (auto_load_objfile_script): Declare.
12889 (script_not_found_warning_print): Delete.
12890 (auto_load_info_scripts): Update prototype.
12891 (auto_load_gdb_scripts_enabled): Declare.
12892 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
12893 auto_load_python_scripts_enabled and made public.
12894 (script_language_python): Delete, moved to python.c.
12895 (gdbpy_script_language_defn): Delete.
12896 (info_auto_load_python_scripts): Update to use
12897 extension_language_python.
12898
12899 * breakpoint.c (condition_command): Replace call to
12900 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
12901 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
12902 with call to breakpoint_ext_lang_cond_says_stop.
12903 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
12904 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
12905 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
12906 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
12907 New arg slang.
12908 (local_setattro): Print name of extension language with existing
12909 stop condition.
12910
12911 * valprint.c (val_print, value_print): Update to call
12912 apply_ext_lang_val_pretty_printer.
12913 * cp-valprint.c (cp_print_value): Update call to
12914 apply_ext_lang_val_pretty_printer.
12915 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
12916 (gdbpy_apply_val_pretty_printer): Renamed from
12917 apply_val_pretty_printer. New arg extlang.
12918 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
12919
12920 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
12921 extension language API.
12922 * cli/cli-script.c (execute_control_command): Update to call
12923 eval_ext_lang_from_control_command.
12924
12925 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
12926 enum ext_lang_bt_status values. Update call to
12927 apply_ext_lang_frame_filter.
12928 (mi_cmd_stack_list_locals): Ditto.
12929 (mi_cmd_stack_list_args): Ditto.
12930 (mi_cmd_stack_list_variables): Ditto.
12931 * mi/mi-main.c: Delete #include "python/python-internal.h".
12932 Add #include "extension.h".
12933 (mi_cmd_list_features): Replace reference to python internal variable
12934 gdb_python_initialized with call to ext_lang_initialized_p.
12935
12936 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
12937 Update to use enum ext_lang_frame_args. Update to call
12938 apply_ext_lang_frame_filter.
12939 * python/py-framefilter.c (extract_sym): Update to use enum
12940 ext_lang_bt_status.
12941 (extract_value, py_print_type, py_print_value): Ditto.
12942 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
12943 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
12944 (py_print_frame): Ditto.
12945 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
12946 New arg extlang. Update to use enum ext_lang_bt_status.
12947
12948 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
12949 finish_python_initialization. Replace with call to
12950 finish_ext_lang_initialization.
12951
12952 * typeprint.c (do_free_global_table): Update to call
12953 free_ext_lang_type_printers.
12954 (create_global_typedef_table): Update to call
12955 start_ext_lang_type_printers.
12956 (find_global_typedef): Update to call apply_ext_lang_type_printers.
12957 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
12958 (type_print_options): Change type of global_printers from "void *"
12959 to "struct ext_lang_type_printers *".
12960
12961 * value.c (preserve_values): Update to call preserve_ext_lang_values.
12962 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
12963 (gdbpy_preserve_values): Renamed from preserve_python_values.
12964 New arg extlang.
12965 (!HAVE_PYTHON, preserve_python_values): Delete.
12966
12967 * utils.c (quit_flag): Delete, moved to extension.c.
12968 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
12969 extension.c.
12970
12971 * eval.c: Delete #include "python/python.h".
12972 * main.c: Delete #include "python/python.h".
12973
12974 * defs.h: Update comment.
12975
6af79985
JB
129762014-02-06 Joel Brobecker <brobecker@adacore.com>
12977
12978 GDB 7.7 released.
12979
12c5175d
MK
129802014-02-05 Mark Kettenis <kettenis@gnu.org>
12981
12982 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
12983 defined.
12984
8dc5b319
YQ
129852014-02-05 Yao Qi <yao@codesourcery.com>
12986
12987 * remote.c (remote_pass_signals): Remove local 'buf' and use
12988 rs->buf.
12989 (remote_program_signals): Likewise.
12990
de7b2893
YQ
129912014-02-05 Yao Qi <yao@codesourcery.com>
12992
12993 * ctf.c: Include "inferior.h" and "gdbthread.h".
12994 (CTF_PID): A new macro.
12995 (ctf_open): Call inferior_appeared and add_thread_silent.
12996 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
12997 (ctf_thread_alive): New function.
12998 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
12999
66d032ac
YQ
130002014-02-05 Yao Qi <yao@codesourcery.com>
13001
13002 Revert this patch:
13003
13004 2013-05-24 Yao Qi <yao@codesourcery.com>
13005
13006 * tracepoint.c (TFILE_PID): Remove.
13007 (tfile_open): Don't add thread and inferior.
13008 (tfile_close): Don't set 'inferior_ptid'. Don't call
13009 exit_inferior_silent.
13010 (tfile_thread_alive): Remove.
13011 (init_tfile_ops): Don't set field 'to_thread_alive' of
13012 tfile_ops.
13013
f4ccffad
CE
130142014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13015
13016 * remote.c (remote_start_remote): Call remote_check_symbols even
13017 if only symbol-file (not file) has been given.
13018
591a12a1
UW
130192014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13020
13021 * gdbarch.sh (skip_entrypoint): New callback.
13022 * gdbarch.c, gdbarch.h: Regenerate.
13023 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13024 * infrun.c (fill_in_stop_func): Likewise.
13025 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13026 (ppc_elfv2_elf_make_msymbol_special): New function.
13027 (ppc_elfv2_skip_entrypoint): Likewise.
13028 (ppc_linux_init_abi): Install them for ELFv2.
13029
cc0e89c5
UW
130302014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13031
13032 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13033 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13034 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13035 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13036 structures returned in GPRs.
13037
52f548e4
UW
130382014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13039
13040 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13041 offset to the stack parameter list for the ELFv2 ABI.
13042
d4094b6a
UW
130432014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13044
13045 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13046 set_gdbarch_convert_from_func_ptr_addr and
13047 set_gdbarch_elf_make_msymbol_special for ELFv1.
13048 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13049 function descriptors on ELFv1.
13050 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13051 set up r12 at function entry.
13052
cd453cd0
UW
130532014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13054
13055 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13056 (struct gdbarch_tdep): New member elf_abi.
13057
13058 * rs6000-tdep.c: Include "elf/ppc64.h".
13059 (rs6000_gdbarch_init): Detect ELF ABI version.
13060
0ff3e01f
UW
130612014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13062
13063 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13064 within a register pair holding a DFP 128-bit value on little-endian.
13065 (ppc64_sysv_abi_return_value_base): Likewise.
13066 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13067 (dfp_pseudo_register_write): Likewise.
13068
5b757e5d
UW
130692014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13070
13071 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13072 offset on little-endian when passing _Decimal32.
13073 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13074
084ee545
UW
130752014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13076
13077 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13078 of the overlapped FP register within the VSX register on little-
13079 endian platforms.
13080 (efpr_pseudo_register_write): Likewise.
13081
d63167af
UW
130822014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13083
13084 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13085 offset on little-endian when passing small structures.
13086
e765b44c
UW
130872014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13088
13089 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13090 (struct ppc64_sysv_argpos): New data structure.
13091 (ppc64_sysv_abi_push_float): Remove.
13092 (ppc64_sysv_abi_push_val): New function.
13093 (ppc64_sysv_abi_push_integer): Likewise.
13094 (ppc64_sysv_abi_push_freg): Likewise.
13095 (ppc64_sysv_abi_push_vreg): Likewise.
13096 (ppc64_sysv_abi_push_param): Likewise.
13097 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13098 (ppc64_sysv_abi_return_value_base): New function.
13099 (ppc64_sysv_abi_return_value): Refactor to use it.
13100
36c24d95
UW
131012014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13102
13103 * NEWS: Document new target powerpc64le-*-linux*.
13104
26fd9228
MK
131052014-02-04 Mark Kettenis <kettenis@gnu.org>
13106
13107 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13108 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13109 core dumps.
13110 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13111 register set used in ELF core dumps. Add floating-point register set.
13112
c5bb7362
KB
131132014-02-03 Kevin Buettner <kevinb@redhat.com>
13114
74228e77 13115 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
13116 dwarf2_to_gdb[] table using symbolic constants. Adjust
13117 penultimate entry from number representing the PC register
13118 to symbolic constant representing the MDR register. Add
13119 constant for the PC register to the end of the table.
13120
af09351e
MK
131212014-02-03 Mark Kettenis <kettenis@gnu.org>
13122
13123 * bsd-kvm.c: Include <sys/param.h>
13124
8507e05d
MK
131252014-02-03 Mark Kettenis <kettenis@gnu.org>
13126
13127 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13128
ae56bfb8
JB
131292014-01-31 Joel Brobecker <brobecker@adacore.com>
13130
13131 * ada-lang.h (clear_ada_sym_cache): Delete.
13132
718ee4dc
UW
131332014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13134
13135 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13136
401e27fd
JM
131372014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13138
13139 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13140 the sigreturn register save area only if the syscall is
13141 sigreturn.
13142
a7c88acd
JB
131432014-01-29 Joel Brobecker <brobecker@adacore.com>
13144
13145 * valops.c (value_slice): Minor reformatting.
13146
fa0079ea
UW
131472014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13148
13149 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13150
c6044dd1
JB
131512014-01-28 Joel Brobecker <brobecker@adacore.com>
13152
13153 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13154 New static globals.
13155 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13156 (ada_ignore_descriptive_types_p): New static global.
13157 (find_parallel_type_by_descriptive_type): Return immediately
13158 if ada_ignore_descriptive_types_p is set.
13159 (_initialize_ada_language): Register new commands "maintenance
13160 set ada", "maintenance show ada", "maintenance set ada
13161 ignore-descriptive-types" and "maintenance show ada
13162 ignore-descriptive-types".
13163 * NEWS: Add entry for new "maint ada set/show
13164 ignore-descriptive-types" commands.
13165
568e808b
MM
131662014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13167
13168 * record-btrace.c (record_btrace_close): Call btrace_teardown
13169 for all threads.
13170
467d141b
JB
131712014-01-27 Joel Brobecker <brobecker@adacore.com>
13172
13173 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13174 "ui-out.h".
13175
fb151210
JB
131762014-01-27 Joel Brobecker <brobecker@adacore.com>
13177
13178 * ada-typeprint (type_is_full_subrange_of_target_type):
13179 New function.
13180 (print_range): Add parameter bounds_prefered_p. If not set,
13181 try printing range types using the name of their base type.
13182 (print_range_type): Add parameter bounds_prefered_p.
13183 Use it in call to print_range.
13184 (print_array_type, ada_print_type): Update calls to print_range
13185 and print_range_type.
13186
aba02109
JB
131872014-01-27 Joel Brobecker <brobecker@adacore.com>
13188
13189 * ada-typeprint.c (print_array_type, print_choices, print_range)
13190 (print_range_bound, print_dynamic_range_bound, print_range_type):
13191 Remove declaration.
13192
e62e21fd
JB
131932014-01-27 Joel Brobecker <brobecker@adacore.com>
13194
13195 * ada-typeprint.c (print_range): Add missing empty line
13196 after local declaration.
13197
859cf5d1
JB
131982014-01-27 Joel Brobecker <brobecker@adacore.com>
13199
13200 * ada-valprint.c (print_optional_low_bound): Get index_type's
13201 target type for as long as it is a TYPE_CODE_RANGE.
13202
25790f6f
JB
132032014-01-27 Joel Brobecker <brobecker@adacore.com>
13204
13205 * procfs.c (procfs_make_note_section): Remove assertion and
13206 associated comment.
13207
6b6aa828
YQ
132082014-01-24 Yao Qi <yao@codesourcery.com>
13209
13210 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13211 * corelow.c (get_core_siginfo): Likewise.
13212
5d6df423
YQ
132132014-01-24 Yao Qi <yao@codesourcery.com>
13214
13215 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13216 ULONGEST. Don't check 'len' is negative.
13217 (remote_write_bytes): Change type of 'len' to ULONGEST.
13218
83b645b8
TT
132192014-01-23 Tom Tromey <tromey@redhat.com>
13220
13221 PR python/16485:
13222 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13223 Handle exception from frame.block.
13224 (FrameVars.fetch_frame_locals): Likewise.
13225
0740f8d8
TT
132262014-01-23 Tom Tromey <tromey@redhat.com>
13227
13228 PR python/16487:
13229 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13230 on a NULL pointer. Move "goto error" to correct place.
13231
21909fa1
TT
132322014-01-23 Tom Tromey <tromey@redhat.com>
13233
13234 PR python/16491:
13235 * python/py-framefilter.c (apply_frame_filter): Call
13236 ensure_python_env after computing gdbarch.
13237
17fde6d0
YQ
132382014-01-23 Yao Qi <yao@codesourcery.com>
13239
13240 * target.c (raw_memory_xfer_partial): Change argument type
13241 from void * to gdb_byte *.
13242 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13243
87ce2a04
DE
132442014-01-22 Doug Evans <dje@google.com>
13245
13246 New gdbserver option --debug-format=timestamp.
13247 * NEWS: Mention it.
13248
237b092b
AA
132492014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13250
13251 * syscalls/s390x-linux.xml: New file.
13252 * syscalls/s390-linux.xml: New file.
13253 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13254 (XML_SYSCALL_FILENAME_S390X): Likewise.
13255 (op_svc): New enum value for SVC opcode.
13256 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13257 (s390_linux_get_syscall_number): New function.
13258 (s390_gdbarch_init): Register '*get_syscall_number' and the
13259 syscall xml file name.
13260 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13261 "s390-linux.xml" and "s390x-linux.xml".
13262 * NEWS: Announce new feature.
13263
54bff650
BS
132642014-01-22 Baruch Siach <baruch@tkos.co.il>
13265
13266 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13267
14e361d7
PA
132682014-01-22 Pedro Alves <palves@redhat.com>
13269
13270 * xtensa-config.c: Include defs.h.
13271
46bbb3ed
JB
132722014-01-22 Joel Brobecker <brobecker@adacore.com>
13273
13274 * common/common-utils.h: Add "ARI:" comment beside __func__
13275 reference.
13276
3a80edfc
JB
132772014-01-22 Joel Brobecker <brobecker@adacore.com>
13278
13279 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13280 documentation a bit.
13281
4869db5e
RM
132822014-01-21 Roland McGrath <mcgrathr@google.com>
13283
13284 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13285 * configure: Regenerate.
13286 * aclocal.m4: Regenerate.
13287 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13288 New substituted variables.
13289 (install-strip): New target.
13290 (INSTALL_SCRIPT): New substituted variable.
13291 (FLAGS_TO_PASS): Add it.
13292 (install-only): Use $(INSTALL_SCRIPT) rather than
13293 $(INSTALL_PROGRAM) for gcore.
13294
9ea4267d
TT
132952014-01-20 Tom Tromey <tromey@redhat.com>
13296
13297 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13298 together.
13299
1f2bdf09
TT
133002014-01-20 Tom Tromey <tromey@redhat.com>
13301
13302 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13303 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13304 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13305 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13306 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13307 (struct cmd_list_element) <flags>: Remove.
13308 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13309 doc_allocated>: New fields.
13310 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13311 bitfields.
13312 * maint.c (maintenance_do_deprecate): Update.
13313 * top.c (execute_command): Update.
13314
e671835b
BS
133152014-01-20 Baruch Siach <baruch@tkos.co.il>
13316
13317 * xtensa-linux-nat.c: Include asm/ptrace.h.
13318
50367cd2
IB
133192014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13320
13321 * Makefile.in (SFILES): Add d-support.c.
13322 (COMMON_OBS): Add d-support.o.
13323 * d-lang.h (d_parse_symbol): Add comment, now defined in
13324 d-support.c.
13325 * d-lang.c (parse_call_convention)
13326 (parse_attributes, parse_function_types)
13327 (parse_function_args, parse_type, parse_identifier)
13328 (call_convention_p, d_parse_symbol): Move functions to ...
13329 * d-support.c: ... New file.
13330
ec9f644a
IB
133312014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13332
13333 * d-lang.h (d_parse_symbol): Add declaration.
13334 * d-lang.c (extract_identifiers)
13335 (extract_type_info): Remove functions.
13336 (parse_call_convention, parse_attributes)
13337 (parse_function_types, parse_function_args)
13338 (parse_type, parse_identifier, call_convention_p)
13339 (d_parse_symbol): New functions.
13340 (d_demangle): Use d_parse_symbol to demangle D symbols.
13341
94b1b47e
IB
133422014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13343
13344 * d-lang.h (struct builtin_d_type): New data type.
13345 (builtin_d_type): Add declaration.
13346 * d-lang.c (d_language_arch_info, build_d_types)
13347 (builtin_d_type): New functions.
13348 (enum d_primitive_types): New data type.
13349 (d_language_defn): Change c_language_arch_info to
13350 d_language_arch_info.
13351 (d_type_data): New static variable.
13352 (_initialize_d_language): Initialize d_type_data.
13353
63778547
IB
133542014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13355
13356 * d-lang.h (d_main_name): Add declaration.
13357 * d-lang.c (d_main_name): New function.
13358 * symtab.c (find_main_name): Add call to d_main_name.
13359
3271ba66
IB
133602014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13361
13362 * d-lang.c (d_language_defn): Change macro_expansion_c to
13363 macro_expansion_no.
13364
d36b3012
IB
133652014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13366
13367 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13368
c90a6fb7
SDJ
133692014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13370
13371 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13372 gdb_exception" declaration.
13373 * remote.c (getpkt_or_notif_sane): Likewise.
13374
749234e5
DE
133752014-01-17 Doug Evans <dje@google.com>
13376
13377 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13378 function, contents of dirnames_to_char_ptr_vec_append moved here.
13379 (delim_string_to_char_ptr_vec): New function.
13380 (dirnames_to_char_ptr_vec_append): Rewrite.
13381 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13382
df049a58
DE
133832014-01-17 Doug Evans <dje@google.com>
13384
13385 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13386 and moved here ...
13387 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13388 #include "common-utils.h".
13389 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13390 * common/vec.h (VEC_ASSERT_PASS): Update.
13391 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13392 (MACH_CHECK_ERROR): Update.
13393
69f97648
SM
133942014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13395
13396 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13397 comments.
13398 * gdbarch.h: Regenerate.
13399
98b1cfdc
TT
134002014-01-16 Tom Tromey <tromey@redhat.com>
13401
13402 * value.c (struct value) <regnum>: Move earlier.
13403
77a19445
TT
134042014-01-16 Tom Tromey <tromey@redhat.com>
13405
13406 * remote.c (extended_remote_create_inferior): Rename from
13407 extended_remote_create_inferior_1. Add "ops" argument. Remove
13408 old implementation.
13409
62261490
PA
134102014-01-16 Pedro Alves <palves@redhat.com>
13411
13412 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13413 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13414 the backchain.
13415
4d65956b
DE
134162014-01-16 Doug Evans <dje@google.com>
13417
13418 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13419
52834460
MM
134202014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13421
13422 * btrace.h (btrace_thread_flag): New.
13423 (struct btrace_thread_info) <flags>: New.
13424 * record-btrace.c (record_btrace_resume_thread)
13425 (record_btrace_find_thread_to_move, btrace_step_no_history)
13426 (btrace_step_stopped, record_btrace_start_replaying)
13427 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13428 (record_btrace_find_resume_thread): New.
13429 (record_btrace_resume, record_btrace_wait): Extend.
13430 (record_btrace_can_execute_reverse): New.
13431 (record_btrace_open): Fail in non-stop mode.
13432 (record_btrace_set_replay): Split into this, ...
13433 (record_btrace_stop_replaying): ... this, ...
13434 (record_btrace_clear_histories): ... and this.
13435 (init_record_btrace_ops): Init to_can_execute_reverse.
13436 * NEWS: Announce it.
13437
118e6252
MM
134382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13439
13440 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13441 (forward_target_decr_pc_after_break)
13442 (target_decr_pc_after_break): New.
13443 * target.c (forward_target_decr_pc_after_break)
13444 (target_decr_pc_after_break): New.
13445 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13446 instead of gdbarch_decr_pc_after_break.
13447 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13448 instead of gdbarch_decr_pc_after_break.
13449 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13450 instead of gdbarch_decr_pc_after_break.
13451 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13452 instead of gdbarch_decr_pc_after_break.
13453 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13454 instead of gdbarch_decr_pc_after_break.
13455 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13456 instead of gdbarch_decr_pc_after_break.
13457
6e07b1d2
MM
134582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13459
13460 * btrace.c: Include regcache.h.
13461 (btrace_add_pc): New.
13462 (btrace_enable): Call btrace_add_pc.
13463 (btrace_is_empty): New.
13464 * btrace.h (btrace_is_empty): New.
13465 * record-btrace.c (require_btrace, record_btrace_info): Call
13466 btrace_is_empty.
13467
969c39fb
MM
134682014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13469
13470 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13471 Support delta reads.
13472 (linux_disable_btrace): Change return type.
13473 * common/linux-btrace.h (linux_read_btrace): Change parameters
13474 and return type to allow error reporting. Update users.
13475 (linux_disable_btrace): Change return type. Update users.
13476 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13477 New.
13478 (btrace_error): New.
13479 (btrace_block) <begin>: Comment on BEGIN == 0.
13480 * btrace.c (btrace_compute_ftrace): Start from the end of
13481 the current trace.
13482 (btrace_stitch_trace, btrace_clear_history): New.
13483 (btrace_fetch): Read delta trace, return if replaying.
13484 (btrace_clear): Move clear history code to btrace_clear_history.
13485 (parse_xml_btrace): Throw an error if parsing failed.
13486 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13487 and return type to allow error reporting.
13488 (target_read_btrace): Change parameters and return type to allow
13489 error reporting.
13490 * target.c (target_read_btrace): Update.
13491 * remote.c (remote_read_btrace): Support delta reads. Pass
13492 errors on.
13493 * NEWS: Announce it.
13494
0b722aec
MM
134952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13496
13497 * record.h (record_btrace_frame_unwind)
13498 (record_btrace_tailcall_frame_unwind): New declarations.
13499 * dwarf2-frame: Include record.h
13500 (dwarf2_frame_cfa): Throw an error for btrace frames.
13501 * record-btrace.c: Include hashtab.h.
13502 (btrace_get_bfun_name): New.
13503 (btrace_call_history): Call btrace_get_bfun_name.
13504 (struct btrace_frame_cache): New.
13505 (bfcache): New.
13506 (bfcache_hash, bfcache_eq, bfcache_new): New.
13507 (btrace_get_frame_function): New.
13508 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13509 (record_btrace_frame_this_id): Compute own id.
13510 (record_btrace_frame_prev_register): Provide PC, throw_error
13511 for all other registers.
13512 (record_btrace_frame_sniffer): Detect btrace frames.
13513 (record_btrace_tailcall_frame_sniffer): New.
13514 (record_btrace_frame_dealloc_cache): New.
13515 (record_btrace_frame_unwind): Add new functions.
13516 (record_btrace_tailcall_frame_unwind): New.
13517 (_initialize_record_btrace): Allocate cache.
13518 * btrace.c (btrace_clear): Call reinit_frame_cache.
13519 * NEWS: Announce it.
13520
066ce621
MM
135212014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13522
13523 * record-btrace.c (record_btrace_set_replay)
13524 (record_btrace_goto_begin, record_btrace_goto_end)
13525 (record_btrace_goto): New.
13526 (init_record_btrace_ops): Initialize them.
13527 * NEWS: Announce it.
13528
e2887aa3
MM
135292014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13530
13531 * record-btrace.c (record_btrace_find_new_threads)
13532 (record_btrace_thread_alive): New.
13533 (init_record_btrace_ops): Initialize to_find_new_threads and
13534 to_thread_alive.
13535
b2f4cfde
MM
135362014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13537
13538 * record-btrace.c (record_btrace_resume): New.
13539 (record_btrace_wait): New.
13540 (init_record_btrace_ops): Initialize to_wait and to_resume.
13541
633785ff
MM
135422014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13543
13544 * record-btrace.c (record_btrace_xfer_partial)
13545 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13546 (record_btrace_allow_memory_access): New.
13547 (init_record_btrace_ops): Initialize new methods.
13548 * target.c (raw_memory_xfer_partial): Bail out if target reports
13549 that this memory is not available.
13550
3db08215
MM
135512014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13552
13553 * target.h (target_ops) <to_insert_breakpoint>
13554 <to_remove_breakpoint>: Add target_ops parameter.
13555 (forward_target_insert_breakpoint): New.
13556 (forward_target_remove_breakpoint): New.
13557 (memory_remove_breakpoint, memory_insert_breakpoint):
13558 Add target_ops parameter.
13559 * target.c (target_insert_breakpoint): Split into this and ...
13560 (forward_target_insert_breakpoint): ... this.
13561 (target_remove_breakpoint): Split into this and ...
13562 (forward_target_remove_breakpoint): ... this.
13563 (debug_to_insert_breakpoint): Add target_ops parameter.
13564 Call forward_target_insert_breakpoint.
13565 (debug_to_remove_breakpoint): Add target_ops parameter.
13566 Call forward_target_remove_breakpoint.
13567 (update_current_target): Do not inherit or default to_insert_breakpoint
13568 and to_remove_breakpoint.
13569 * corelow.c (ignore): Add target_ops parameter.
13570 * exec.c (ignore): Add target_ops parameter.
13571 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13572 Add target_ops parameter.
13573 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13574 Add target_ops parameter.
13575 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13576 Add target_ops parameter.
13577 * record-full.c (record_full_beneath_to_insert_breakpoint)
13578 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13579 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13580 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13581 (record_full_core_remove_breakpoint): Add target_ops parameter.
13582 Update users.
13583 (record_full_beneath_to_insert_breakpoint_ops)
13584 (record_full_beneath_to_remove_breakpoint_ops)
13585 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13586 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13587 tmp_to_remove_breakpoint_ops,
13588 record_full_beneath_to_insert_breakpoint_ops, and
13589 record_full_beneath_to_remove_breakpoint_ops.
13590 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13591 (m32r_remove_breakpoint): Add target_ops parameter.
13592 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13593 Add target_ops parameter.
13594 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13595 Add target_ops parameter.
13596
cecac1ab
MM
135972014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13598 Markus Metzger <markus.t.metzger@intel.com>
13599
13600 * record-btrace.c: Include frame-unwind.h.
13601 (record_btrace_frame_unwind_stop_reason)
13602 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13603 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13604 New.
13605 (init_record_btrace_ops): Install it.
13606
824344ca
MM
136072014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13608
13609 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13610 get_prev_frame_1.
13611
32261e52
MM
136122014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13613
13614 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13615 earlier.
13616
ea001bdc
MM
136172014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13618
13619 * frame-unwind.c: Include target.h.
13620 (frame_unwind_try_unwinder): New function with code from ...
13621 (frame_unwind_find_by_frame): ... here. New variable
13622 unwinder_from_target, call also target_get_unwinder)
13623 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13624 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13625 * target.h (struct target_ops): New fields to_get_unwinder and
13626 to_get_tailcall_unwinder.
13627 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13628
1f3ef581
MM
136292014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13630
13631 * record-btrace.c (record_btrace_fetch_registers)
13632 (record_btrace_store_registers)
13633 (record_btrace_to_prepare_to_store): New.
13634 (init_record_btrace_ops): Add the above.
13635
f32dbf8c
MM
136362014-01-16 Tom Tromey <tromey@redhat.com>
13637
13638 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13639 * target.h (struct target_ops) <to_prepare_to_store>: Add
13640 argument.
13641 (target_prepare_to_store): Add argument.
13642 * target.c (debug_to_prepare_to_store): Add argument.
13643 (update_current_target): Update.
13644 * remote.c (remote_prepare_to_store): Add 'self' argument.
13645 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13646 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13647 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13648 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13649 argument.
13650 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13651 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13652 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13653 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13654 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13655
07bbe694
MM
136562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13657
13658 * btrace.h (replay) <replay>: New.
13659 (btrace_is_replaying): New.
13660 * btrace.c (btrace_clear): Free replay iterator.
13661 (btrace_is_replaying): New.
13662 * record-btrace.c (record_btrace_is_replaying): New.
13663 (record_btrace_info): Print insn number if replaying.
13664 (record_btrace_insn_history): Start at replay position.
13665 (record_btrace_call_history): Start at replay position.
13666 (init_record_btrace_ops): Init to_record_is_replaying.
13667
0688d04e
MM
136682014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13669
13670 * record-btrace.c (record_btrace_insn_history_range): Include
13671 end.
13672 (record_btrace_insn_history_from): Adjust range.
13673 (record_btrace_call_history_range): Include
13674 end.
13675 (record_btrace_call_history_from): Adjust range.
13676 * NEWS: Announce changes.
13677
8710b709
MM
136782014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13679
13680 * record.h (enum record_print_flag)
13681 <record_print_indent_calls>: New.
13682 * record.c (get_call_history_modifiers): Recognize /c modifier.
13683 (_initialize_record): Document /c modifier.
13684 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13685 Reorder fields. Optionally indent the function name. Update
13686 all users.
13687 * NEWS: Announce changes.
13688
d0fa7535
MM
136892014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13690
13691 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13692
5de9129b
MM
136932014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13694
13695 * btrace.c (ftrace_new_function): Start counting at one.
13696 * record-btrace.c (record_btrace_info): Adjust number of calls
13697 and insns.
13698 * NEWS: Announce it.
13699
7acbe133
MM
137002014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13701
13702 * record-btrace.c (btrace_call_history_insn_range): Print
13703 insn range as [begin, end].
13704
23a7fe75
MM
137052014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13706
13707 * btrace.h (struct btrace_func_link): New.
13708 (enum btrace_function_flag): New.
13709 (struct btrace_inst): Rename to ...
13710 (struct btrace_insn): ...this. Update all users.
13711 (struct btrace_func) <ibegin, iend>: Remove.
13712 (struct btrace_func_link): New.
13713 (struct btrace_func): Rename to ...
13714 (struct btrace_function): ...this. Update all users.
13715 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13716 (number, level, flags>: New.
13717 (struct btrace_insn_iterator): Rename to ...
13718 (struct btrace_insn_history): ...this.
13719 Update all users.
13720 (struct btrace_insn_iterator, btrace_call_iterator): New.
13721 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13722 (struct btrace_target_info) <begin, end, level>
13723 <insn_history, call_history>: New.
13724 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13725 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13726 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13727 (btrace_call_number, btrace_call_begin, btrace_call_end)
13728 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13729 (btrace_find_function_by_number, btrace_set_insn_history)
13730 (btrace_set_call_history): New.
13731 * btrace.c (btrace_init_insn_iterator)
13732 (btrace_init_func_iterator, compute_itrace): Remove.
13733 (ftrace_print_function_name, ftrace_print_filename)
13734 (ftrace_skip_file): Change
13735 parameter to const.
13736 (ftrace_init_func): Remove.
13737 (ftrace_debug): Use new btrace_function fields.
13738 (ftrace_function_switched): Also consider gaining and
13739 losing symbol information).
13740 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13741 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13742 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13743 New.
13744 (ftrace_new_function): Move. Remove debug print.
13745 (ftrace_update_lines, ftrace_update_insns): New.
13746 (ftrace_update_function): Check for call, ret, and jump.
13747 (compute_ftrace): Renamed to ...
13748 (btrace_compute_ftrace): ...this. Rewritten to compute call
13749 stack.
13750 (btrace_fetch, btrace_clear): Updated.
13751 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13752 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13753 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13754 (btrace_call_number, btrace_call_begin, btrace_call_end)
13755 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13756 (btrace_find_function_by_number, btrace_set_insn_history)
13757 (btrace_set_call_history): New.
13758 * record-btrace.c (require_btrace): Use new btrace thread
13759 info fields.
13760 (record_btrace_info, btrace_insn_history)
13761 (record_btrace_insn_history, record_btrace_insn_history_range):
13762 Use new btrace thread info fields and new iterator.
13763 (btrace_func_history_src_line): Rename to ...
13764 (btrace_call_history_src_line): ...this. Use new btrace
13765 thread info fields.
13766 (btrace_func_history): Rename to ...
13767 (btrace_call_history): ...this. Use new btrace thread info
13768 fields and new iterator.
13769 (record_btrace_call_history, record_btrace_call_history_range):
13770 Use new btrace thread info fields and new iterator.
13771
8372a7cb
MM
137722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13773
13774 * frame.h (frame_id_build_unavailable_stack_special): New.
13775 * frame.c (frame_id_build_unavailable_stack_special): New.
13776
c2170eef
MM
137772014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13778
13779 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
13780 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
13781 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
13782 to gdbarch.
13783 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
13784 (i386_insn_is_jump, i386_jmp_p): New.
13785 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
13786 insn_is_jump to gdbarch.
13787 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
13788 * gdbarch.h: Regenerated.
13789 * gdbarch.c: Regenerated.
13790 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
13791 (default_insn_is_jump): New.
13792 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
13793 (default_insn_is_jump): New.
13794
864089d2
MM
137952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13796
13797 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
13798 Change to ...
13799 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
13800 (btrace_read_type) <btrace_read_new>: Change to ...
13801 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
13802
ed9edfb5
MM
138032014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13804
13805 * common/linux-btrace.c (linux_read_btrace): Free trace from
13806 previous iteration.
13807
fbcbc3fd
DE
138082014-01-15 Doug Evans <dje@google.com>
13809
13810 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
13811 uint32_t.
13812
3d548a53
TT
138132014-01-15 Tom Tromey <tromey@redhat.com>
13814
13815 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
13816 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
13817 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
13818 (set_objfile_main_name): New function.
13819 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
13820 language_of_main>: New fields.
13821 (set_objfile_main_name): Declare.
13822 * symtab.c (find_main_name): Loop over objfiles to find the main
13823 name and language.
13824 (set_main_name): Now static.
13825 (get_main_info): Add comment.
13826 * symtab.h (set_main_name): Don't declare.
13827
32ac0d11
TT
138282014-01-15 Tom Tromey <tromey@redhat.com>
13829
13830 * symtab.c (main_progspace_key): New global.
13831 (struct main_info): New.
13832 (name_of_main, language_of_main): Remove.
13833 (get_main_info, main_info_cleanup): New function.
13834 (set_main_name, main_name, main_language): Use get_main_info.
13835 (_initialize_symtab): Initialize main_progspace_key.
13836
9e6c82ad
TT
138372014-01-15 Tom Tromey <tromey@redhat.com>
13838
13839 * dbxread.c (process_one_symbol): Update.
13840 * dwarf2read.c (read_partial_die): Update.
13841 * symfile.c (set_initial_language): Call main_language.
13842 * symtab.c (language_of_main): Now static.
13843 (set_main_name): Add 'lang' parameter.
13844 (find_main_name): Update.
13845 (main_language): New function.
13846 (symtab_observer_executable_changed): Update.
13847 * symtab.h (set_main_name): Update.
13848 (language_of_main): Remove.
13849 (main_language): Declare.
13850
6ef55de7
TT
138512014-01-15 Tom Tromey <tromey@redhat.com>
13852
13853 * symfile.c (init_entry_point_info): Use new "initialized" field.
13854 Update.
13855 * objfiles.h (struct entry_point) <initialized>: New field.
13856 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
13857 (struct objfile) <ei>: ...here. Remove.
13858 * objfiles.c (entry_point_address_query): Update.
13859
53eddfa6
TT
138602014-01-15 Tom Tromey <tromey@redhat.com>
13861
13862 * objfiles.c (entry_point_address_query): Relocate entry point
13863 address.
13864 (objfile_relocate1): Do not relocate entry point address.
13865 * objfiles.h (struct entry_info) <entry_point>: Update comment.
13866 <the_bfd_section_index>: New field.
13867 * symfile.c (init_entry_point_info): Find the entry point's
13868 section.
13869
d56e56aa
TT
138702014-01-15 Tom Tromey <tromey@redhat.com>
13871
13872 * solib-frv.c (enable_break): Use entry_point_address_query.
13873
33a97bbe
OJ
138742014-01-15 Omair Javaid <omair.javaid@linaro.org>
13875
13876 * NEWS: Add note on improved process record-replay on
13877 arm*-linux* targets.
13878
c6ec2b30
OJ
138792014-01-15 Omair Javaid <omair.javaid@linaro.org>
13880
13881 * arm-tdep.c (enum arm_record_result): New enum.
13882 (arm_record_unsupported_insn): New function.
13883 (arm_record_coproc_data_proc): Removed.
13884 (thumb2_record_ld_st_multiple): New function.
13885 (thumb2_record_ld_st_dual_ex_tbb): New function.
13886 (thumb2_record_data_proc_sreg_mimm): New function.
13887 (thumb2_record_ps_dest_generic): New function.
13888 (thumb2_record_branch_misc_cntrl): New function.
13889 (thumb2_record_str_single_data): New function.
13890 (thumb2_record_ld_mem_hints): New function.
13891 (thumb2_record_ld_word): New function.
13892 (thumb2_record_lmul_lmla_div): New function.
13893 (thumb2_record_decode_insn_handler): New function.
13894 (decode_insn): Add thumb32 instruction handlers.
13895
97dfe206
OJ
138962014-01-15 Omair Javaid <omair.javaid@linaro.org>
13897
13898 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
13899 (struct arm_linux_record_tdep): Declare.
13900 (arm_canonicalize_syscall): New function.
13901 (arm_all_but_pc_registers_record): New function.
13902 (arm_linux_syscall_record): New function.
13903 (arm_linux_init_abi): Add syscall recording constructs.
13904 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
13905 decoding. (arm_record_coproc_data_proc): Update arm syscall
13906 decoding.
13907 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
13908 <arm_syscall_record>: New field.
13909 * configure.tgt (arm*-*-linux*): Add linux-record.o to
13910 gdb_target_obs.
13911
9904a494
OJ
139122014-01-15 Omair Javaid <omair.javaid@linaro.org>
13913
13914 * arm-tdep.c (thumb_record_misc): Update to use sp as base
13915 register for push instruction recording.
13916
f969241e
OJ
139172014-01-15 Omair Javaid <omair.javaid@linaro.org>
13918
13919 * arm-tdep.c (thumb_record_misc): Update to correct logical
13920 error while recording ldm, ldmia and pop instructions.
13921
bfbbec00
OJ
139222014-01-15 Omair Javaid <omair.javaid@linaro.org>
13923
13924 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
13925
e40adcc9
PA
139262014-01-15 Pedro Alves <palves@redhat.com>
13927
13928 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
13929 (go32_resume, go32_fetch_registers, store_register)
13930 (go32_store_registers, go32_prepare_to_store)
13931 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
13932 (go32_create_inferior, go32_can_run, go32_terminal_init)
13933 (go32_terminal_inferior, go32_terminal_ours): Delete forward
13934 declarations.
13935
b0a16e66
TT
139362014-01-15 Tom Tromey <tromey@redhat.com>
13937
13938 * target.h (async_callback_ftype): New typedef.
13939 (struct target_ops) <to_async>: Use it.
13940
bf7105a4
JB
139412014-01-15 Joel Brobecker <brobecker@adacore.com>
13942
13943 * python/py-value.c (get_field_type): Remove unnecessary curly
13944 braces for single-statement if block.
13945
a8f35c2e
JB
139462014-01-15 Joel Brobecker <brobecker@adacore.com>
13947
13948 * python/py-type.c (convert_field): Add missing empty line
13949 after declarations.
13950
bb4142cf
DE
139512014-01-14 Doug Evans <dje@google.com>
13952
13953 * symfile.h (expand_symtabs_matching): Renamed from
13954 expand_partial_symbol_names. Update prototype.
13955 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13956 * symfile.c (expand_symtabs_matching): Renamed from
13957 expand_partial_symbol_names. New args file_matcher, kind.
13958 Rename arg fun to symbol_matcher.
13959 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
13960 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
13961 ada_expand_partial_symbol_name.
13962 (ada_make_symbol_completion_list): Update to call
13963 expand_symtabs_matching.
13964 (ada_add_global_exceptions): Call expand_symtabs_matching.
13965 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
13966 call map_symbol_filenames.
13967 * symtab.c (sources_info): Update to call map_symbol_filenames.
13968 (search_symbols): Call expand_symtabs_matching.
13969 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
13970 (default_make_symbol_completion_list_break_on): Update to call
13971 expand_symtabs_matching.
13972 (make_source_files_completion_list): Update to call
13973 map_symbol_filenames.
13974
206f2a57
DE
139752014-01-14 Doug Evans <dje@google.com>
13976
13977 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
13978 (expand_symtabs_symbol_matcher_ftype): New typedef.
13979 (quick_symbol_functions.expand_symtabs_matching): Update to use.
13980 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13981 * symfile.c (expand_partial_symbol_names): Update to use
13982 expand_symtabs_symbol_matcher_ftype.
13983 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
13984 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13985 Arg name_matcher renamed to symbol_matcher.
13986 * psymtab.c (recursively_search_psymtabs): Update to use
13987 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
13988 sym_matcher.
13989 (expand_symtabs_matching_via_partial): Update to use
13990 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
13991 Arg name_matcher renamed to symbol_matcher.
13992
540c2971
DE
139932014-01-14 Doug Evans <dje@google.com>
13994
13995 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
13996 (map_partial_symbol_filenames): Ditto.
13997 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
13998 (map_partial_symbol_filenames): Ditto.
13999 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14000 (map_partial_symbol_filenames): Ditto.
14001 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14002 (map_partial_symbol_filenames): Ditto.
14003 * symtab.c: Delete #include "psymtab.h".
14004
8213266a
PA
140052014-01-14 Pedro Alves <palves@redhat.com>
14006 Tom Tromey <tromey@redhat.com>
14007
14008 * infrun.c (use_displaced_stepping): Use find_record_target
14009 instead of RECORD_IS_USED.
14010 (adjust_pc_after_break): Use record_full_is_used instead of
14011 RECORD_IS_USED.
14012 * record-btrace.c (record_btrace_open): Call record_preopen
14013 instead of checking RECORD_IS_USED.
14014 * record-full.c (record_full_shortname)
14015 (record_full_core_shortname): New globals.
14016 (record_full_is_used): New function.
14017 (find_full_open): Call record_preopen instead of checking
14018 RECORD_IS_USED.
14019 (init_record_full_ops): Set the target's shortname to
14020 record_full_shortname.
14021 (init_record_full_core_ops): Set the target's shortname to
14022 record_full_core_shortname.
14023 * record-full.h (record_full_is_used): Declare.
14024 * record.c (find_record_target): Make extern.
14025 (record_preopen): New function.
14026 * record.h (RECORD_IS_USED): Delete macro.
14027 (find_record_target, record_preopen): Declare functions.
14028
7ec1862d
YQ
140292014-01-14 Yao Qi <yao@codesourcery.com>
14030
14031 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14032 'len''s type to ULONGEST.
14033 (core_xfer_shared_libraries_aix): Likewise.
14034 * gdbarch.c, gdbarch.h: Regenerated.
14035 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14036 Change type of 'len' to ULONGEST.
14037 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14038 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14039
dea80a27
YQ
140402014-01-14 Yao Qi <yao@codesourcery.com>
14041
14042 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14043 type of 'len' to ULONGEST.
14044 (linux_xfer_osdata_processgroups): Likewise.
14045 (linux_xfer_osdata_threads): Likewise.
14046 (linux_xfer_osdata_fds): Likewise.
14047 (linux_xfer_osdata_isockets): Likewise.
14048 (linux_xfer_osdata_shm): Likewise.
14049 (linux_xfer_osdata_sem): Likewise.
14050 (linux_xfer_osdata_msg): Likewise.
14051 (linux_common_xfer_osdata): Likewise.
14052 (struct osdata_type) <getter>: Likewise.
14053 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14054 the declaration.
14055
b55e14c7
YQ
140562014-01-14 Yao Qi <yao@codesourcery.com>
14057
14058 * target.h (target_xfer_partial_ftype): Update.
14059 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14060 ULONGEST.
14061 * aix-thread.c (aix_thread_xfer_partial): Change type of
14062 argument 'len' to ULONGEST.
14063 * auxv.c (procfs_xfer_auxv): Likewise.
14064 (ld_so_xfer_auxv): Likewise.
14065 (memory_xfer_auxv): Likewise.
14066 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14067 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14068 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14069 * corelow.c (core_xfer_partial): Likewise.
14070 * ctf.c (ctf_xfer_partial): Likewise.
14071 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14072 '%u'.
14073 (darwin_read_dyld_info): Likewise.
14074 (darwin_xfer_partial): Likewise.
14075 * exec.c (section_table_xfer_memory_partial): Likewise.
14076 (exec_xfer_partial): Likewise.
14077 * exec.h (section_table_xfer_memory_partial): Update
14078 declaration.
14079 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14080 instead of plongest.
14081 (gnu_xfer_partial): Likewise.
14082 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14083 (ia64_hpux_xfer_solib_got): Likewise.
14084 (ia64_hpux_xfer_partial): Likewise.
14085 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14086 * inf-ptrace.c (inf_ptrace_xfer_partial):
14087 * inf-ttrace.c (inf_ttrace_xfer_partial):
14088 * linux-nat.c (linux_xfer_siginfo): Likewise.
14089 (linux_nat_xfer_partial): Likewise.
14090 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14091 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14092 * monitor.c (monitor_xfer_memory): Likewise.
14093 (monitor_xfer_partial): Likewise.
14094 * procfs.c (procfs_xfer_partial): Likewise.
14095 * record-full.c (record_full_xfer_partial): Likewise.
14096 (record_full_core_xfer_partial): Likewise.
14097 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14098 instead of plongest.
14099 (gdbsim_xfer_partial): Likewise.
14100 * remote.c (remote_xfer_partial): Likewise.
14101 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14102 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14103 declaration.
14104 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14105 (rs6000_xfer_shared_libraries): Likewise.
14106 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14107 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14108 (sparc_xfer_partial): Likewise.
14109 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14110 (spu_xfer_partial): Likewise.
14111 * spu-multiarch.c (spu_xfer_partial): Likewise.
14112 * target.c (target_read_live_memory): Likewise.
14113 (memory_xfer_live_readonly_partial): Likewise.
14114 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14115 (target_xfer_partial, default_xfer_partial): Likewise.
14116 (current_xfer_partial): Likewise.
14117 * tracepoint.c (tfile_xfer_partial): Likewise.
14118 * windows-nat.c (windows_xfer_memory): Likewise. Call
14119 pulongest instead of plongest.
14120 (windows_xfer_partial): Likewise.
14121 (windows_xfer_shared_libraries): Likewise.
14122
05804640
YQ
141232014-01-14 Yao Qi <yao@codesourcery.com>
14124
14125 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14126 target_xfer_partial_ftype.
14127
b5b08fb4
SC
141282014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14129
14130 PR python/15464
14131 PR python/16113
14132 * valops.c (value_struct_elt_bitpos): New function
14133 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14134 object to 'None' if the field name is an empty string ("").
14135 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14136 attribute to look for a field when 'name' is 'None'.
14137 (get_field_type): New function
14138
13aaf454
DE
141392014-01-13 Doug Evans <dje@google.com>
14140
14141 PR symtab/16426
14142 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14143 (try_open_dwop_file): Ditto.
14144 * gdb_bfd.c: #include "vec.h".
14145 (bfdp): New typedef.
14146 (struct gdb_bfd_data): New member included_bfds.
14147 (gdb_bfd_unref): Unref all included bfds.
14148 (gdb_bfd_record_inclusion): New function.
14149 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14150
c2cec97c
TT
141512014-01-13 Tom Tromey <tromey@redhat.com>
14152
14153 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14154
78e5999d
TT
141552014-01-13 Tom Tromey <tromey@redhat.com>
14156
14157 * defs.h (use_windows): Remove.
14158 * gdb.c (main): Update.
14159 * main.c (captured_main, gdb_main): Update.
14160 * main.h (struct captured_main_args) <use_windows>: Remove.
14161 * top.c (use_windows): Remove.
14162
f2052bbe
TT
141632014-01-13 Tom Tromey <tromey@redhat.com>
14164
14165 * defs.h (deprecated_flush_hook): Remove.
14166
fde4f8ed
JK
141672014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14168
14169 PR threads/16216
14170 * linux-thread-db.c (try_thread_db_load): Add parameter
14171 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14172 (try_thread_db_load_from_pdir_1): Move it there from here.
14173 (try_thread_db_load_from_sdir): Update caller.
14174 (try_thread_db_load_from_dir): Move it there from here.
14175
bdf61915
PP
141762014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14177
14178 * regformats/regdat.sh: Always rewrite the register file.
14179
f71e1a8d
PA
141802014-01-13 Pedro Alves <palves@redhat.com>
14181
14182 * Makefile.in (CHECK_HEADERS): New variable.
14183 (check-headers:): New rule.
14184
42c85435
TT
141852014-01-13 Tom Tromey <tromey@redhat.com>
14186
14187 * cli/cli-setshow.c (do_set_command): Update.
14188 * defs.h (deprecated_set_hook): Remove.
14189 * top.c (deprecated_set_hook): Remove.
14190
f8de5129
PA
141912014-01-13 Pedro Alves <palves@redhat.com>
14192
14193 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14194 the tracepoint if the PC is a pseudo-register.
14195
fc270c35
TT
141962014-01-13 Tom Tromey <tromey@redhat.com>
14197
14198 * defs.h (XCALLOC): Remove.
14199 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14200 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14201 * dwarf2loc.c (allocate_piece_closure): Likewise.
14202 * elfread.c (elf_symfile_segments): Likewise.
14203 (elf_symfile_segments): Likewise.
14204 * gdbtypes.c (copy_type_recursive): Likewise.
14205 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14206 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14207 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14208 XCALLOC.
14209 * mt-tdep.c (mt_gdbarch_init): Likewise.
14210 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14211 XCALLOC.
14212 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14213 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14214 * registry.c (registry_alloc_data): Likewise.
14215 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14216 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14217 * serial.c (serial_fdopen_ops): Likewise.
14218 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14219 XCALLOC.
14220 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14221 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14222 not XCALLOC.
14223
70ba0933
TT
142242014-01-13 Tom Tromey <tromey@redhat.com>
14225
14226 * defs.h (XMALLOC): Remove.
14227 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14228 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14229 * cli-out.c (struct ui_out *): Likewise.
14230 * cli/cli-dump.c (add_dump_command): Likewise.
14231 (add_dump_command): Likewise.
14232 * complaints.c (get_complaints): Likewise.
14233 (find_complaint): Likewise.
14234 * dwarf2-frame.c (execute_cfa_program): Likewise.
14235 * dwarf2read.c (abbrev_table_read_table): Likewise.
14236 * gdbarch.sh: Likewise.
14237 * gdbarch.c: Rebuild.
14238 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14239 * interps.c (interp_new): Likewise.
14240 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14241 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14242 * mi/mi-console.c (mi_console_file_new): Likewise.
14243 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14244 * mi/mi-out.c (mi_out_new): Likewise.
14245 * mi/mi-parse.c (mi_parse): Likewise.
14246 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14247 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14248 * observer.c (xalloc_observer_list_node): Likewise.
14249 * regcache.c (regcache_xmalloc_1): Likewise.
14250 * reggroups.c (reggroup_new): Likewise.
14251 (_initialize_reggroup): Likewise.
14252 * registry.c (register_data_with_cleanup): Likewise.
14253 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14254 * ser-base.c (serial_ttystate): Likewise.
14255 * ser-mingw.c (make_pipe_state): Likewise.
14256 * ser-pipe.c (pipe_open): Likewise.
14257 * serial.c (serial_open): Likewise.
14258 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14259 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14260 (tui_alloc_win_info): Likewise.
14261 (tui_add_content_elements): Likewise.
14262 * tui/tui-file.c (tui_file_new): Likewise.
14263 * tui/tui-out.c (tui_out_new): Likewise.
14264 * ui-file.c (mem_file_new): Likewise.
14265 * ui-out.c (push_level): Likewise.
14266 (make_cleanup_ui_out_end): Likewise.
14267 (append_header_to_list): Likewise.
14268 (ui_out_new): Likewise.
14269 * user-regs.c (user_reg_add_builtin): Likewise.
14270
41bf6aca
TT
142712014-01-13 Tom Tromey <tromey@redhat.com>
14272
14273 * defs.h (XZALLOC): Remove.
14274 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14275 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14276 (get_ada_tasks_inferior_data): Likewise.
14277 * auto-load.c (get_auto_load_pspace_data): Likewise.
14278 * auxv.c (get_auxv_inferior_data): Likewise.
14279 * bfd-target.c (target_bfd_reopen): Likewise.
14280 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14281 (deprecated_insert_raw_breakpoint): Likewise.
14282 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14283 * corelow.c (core_open): Likewise.
14284 * darwin-nat.c (darwin_check_new_threads): Likewise.
14285 (darwin_attach_pid): Likewise.
14286 * dummy-frame.c (dummy_frame_push): Likewise.
14287 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14288 * dwarf2loc.c (allocate_piece_closure): Likewise.
14289 * elfread.c (elf_symfile_segments): Likewise.
14290 * eval.c (ptrmath_type_p): Likewise.
14291 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14292 * gdbtypes.c (alloc_type_arch): Likewise.
14293 (alloc_type_instance): Likewise.
14294 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14295 * inf-child.c (inf_child_can_use_agent): Likewise.
14296 * inflow.c (get_inflow_inferior_data): Likewise.
14297 * infrun.c (save_infcall_suspend_state): Likewise.
14298 * jit.c (jit_reader_load): Likewise.
14299 (get_jit_objfile_data): Likewise.
14300 (get_jit_program_space_data): Likewise.
14301 (jit_object_open_impl): Likewise.
14302 (jit_symtab_open_impl): Likewise.
14303 (jit_block_open_impl): Likewise.
14304 (jit_frame_sniffer): Likewise.
14305 * linux-fork.c (add_fork): Likewise.
14306 * maint.c (make_command_stats_cleanup): Likewise.
14307 * objfiles.c (get_objfile_pspace_data): Likewise.
14308 * opencl-lang.c (struct lval_closure): Likewise.
14309 * osdata.c (osdata_start_osdata): Likewise.
14310 * progspace.c (new_address_space): Likewise.
14311 (add_program_space): Likewise.
14312 * remote-sim.c (get_sim_inferior_data): Likewise.
14313 * sh-tdep.c (sh_gdbarch_init): Likewise.
14314 * skip.c (Ignore): Likewise.
14315 (skip_delete_command): Likewise.
14316 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14317 (library_list_start_library): Likewise.
14318 (solib_aix_current_sos): Likewise.
14319 * solib-darwin.c (get_darwin_info): Likewise.
14320 (darwin_current_sos): Likewise.
14321 * solib-dsbt.c (get_dsbt_info): Likewise.
14322 * solib-ia64-hpux.c (new_so_list): Likewise.
14323 (ia64_hpux_get_solib_linkage_addr): Likewise.
14324 * solib-spu.c (append_ocl_sos): Likewise.
14325 (spu_current_sos): Likewise.
14326 * solib-svr4.c (get_svr4_info): Likewise.
14327 (svr4_keep_data_in_core): Likewise.
14328 (library_list_start_library): Likewise.
14329 (svr4_default_sos): Likewise.
14330 (svr4_read_so_list): Likewise.
14331 * solib-target.c (library_list_start_library): Likewise.
14332 (solib_target_current_sos): Likewise.
14333 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14334 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14335 * symfile.c (default_symfile_segments): Likewise.
14336 * target-descriptions.c (tdesc_data_init): Likewise.
14337 (tdesc_create_reg): Likewise.
14338 (struct tdesc_type *): Likewise.
14339 (tdesc_create_vector): Likewise.
14340 (tdesc_set_struct_size): Likewise.
14341 (struct tdesc_type *): Likewise.
14342 (tdesc_free_feature): Likewise.
14343 (tdesc_create_feature): Likewise.
14344 * windows-nat.c (windows_add_thread): Likewise.
14345 (windows_make_so): Likewise.
14346 * xml-support.c (gdb_xml_body_text): Likewise.
14347 (gdb_xml_create_parser_and_cleanup): Likewise.
14348 (xml_process_xincludes): Likewise.
14349 * xml-syscall.c (allocate_syscalls_info): Likewise.
14350 (syscall_create_syscall_desc): Likewise.
14351
5acfdbae
SDJ
143522014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14353
14354 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14355 function, with code from i386_stap_parse_special_token.
14356 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14357 (i386_stap_parse_special_token): Move code to the two functions
14358 above; simplify it.
14359
0000e5cc
PA
143602014-01-09 Pedro Alves <palves@redhat.com>
14361 Hui Zhu <hui@codesourcery.com>
14362
14363 PR gdb/16101
14364 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14365 bp_err_string. Don't mark the location shlib_disabled if the
14366 error thrown wasn't a generic or memory error. Catch errors
14367 thrown while inserting breakpoints in overlayed code. Output
14368 error message of software breakpoints.
14369 * remote.c (remote_insert_breakpoint): If this breakpoint has
14370 target-side commands but this stub doesn't support Z0 packets,
14371 throw NOT_SUPPORTED_ERROR error.
14372 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14373 * target.h (target_insert_breakpoint): Extend comment.
14374 (target_insert_hw_breakpoint): Add comment.
14375
b7ea362b
PA
143762014-01-08 Pedro Alves <palves@redhat.com>
14377
14378 * remote.c (remote_add_thread): Add threads silently if starting
14379 up.
14380 (remote_notice_new_inferior): If in all-stop, and starting up,
14381 don't call notice_new_inferior.
14382 (get_current_thread): New function, factored out from ...
14383 (add_current_inferior_and_thread): ... this. Adjust.
14384 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14385 found any thread, then select the remote's current thread as GDB's
14386 current thread too.
14387
b7bba001
JB
143882014-01-08 Joel Brobecker <brobecker@adacore.com>
14389
14390 * NEWS: Create a new section for the next release branch.
14391 Rename the section of the current branch, now that it has
14392 been cut.
14393
16dfbded
JB
143942014-01-08 Joel Brobecker <brobecker@adacore.com>
14395
14396 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14397 * version.in: Bump version to 7.7.50.DATE-cvs.
14398
22c90ac1
YQ
143992014-01-08 Yao Qi <yao@codesourcery.com>
14400
14401 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14402 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14403 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14404
d64ad97c
YQ
144052014-01-08 Yao Qi <yao@codesourcery.com>
14406
14407 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14408 return value of bfd_get_filename to symbol_file_add_from_bfd.
14409
f93ba80c
PM
144102014-01-08 Pierre Muller <muller@sourceware.org>
14411
14412 Fix PR16201.
14413 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14414 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14415 to prim_record_mininal_symbol_and_info.
14416 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14417 in call to prim_record_minimal_symbol_and_info.
14418 (read_pe_exported_syms): Set index field of section_data.
14419
a4d9ba85
AP
144202014-01-07 Andrew Pinski <apinski@cavium.com>
14421
14422 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14423 * features/aarch64.c: Regenerate.
14424
1b67eb02
AS
144252014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14426
14427 * target.c (return_null): Define.
14428 (update_current_target): Use it instead of return_zero for
14429 functions that return a pointer.
14430
5e3f4fab
EBM
144312014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14432
14433 * source.c (add_path): Fix check for duplicated paths in the previously
14434 included paths.
14435
e2616788
HK
144362014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14437
14438 * ada-lang.c: Remove duplicated include statements.
14439 * alphabsd-nat.c: Ditto.
14440 * amd64-darwin-tdep.c: Ditto.
14441 * amd64fbsd-nat.c: Ditto.
14442 * auto-load.c: Ditto.
14443 * ax-gdb.c: Ditto.
14444 * breakpoint.c: Ditto.
14445 * dbxread.c: Ditto.
14446 * fork-child.c: Ditto.
14447 * gdb_usleep.c: Ditto.
14448 * i386-darwin-tdep.c: Ditto.
14449 * i386fbsd-nat.c: Ditto.
14450 * infcmd.c: Ditto.
14451 * inferior.c: Ditto.
14452 * jv-lang.c: Ditto.
14453 * linux-nat.c: Ditto.
14454 * linux-tdep.c: Ditto.
14455 * m68kbsd-nat.c: Ditto.
14456 * m68klinux-nat.c: Ditto.
14457 * microblaze-tdep.c: Ditto.
14458 * mips-linux-tdep.c: Ditto.
14459 * mn10300-tdep.c: Ditto.
14460 * nto-tdep.c: Ditto.
14461 * opencl-lang.c: Ditto.
14462 * osdata.c: Ditto.
14463 * printcmd.c: Ditto.
14464 * regcache.c: Ditto.
14465 * remote-m32r-sdi.c: Ditto.
14466 * remote.c: Ditto.
14467 * symfile.c: Ditto.
14468 * symtab.c: Ditto.
14469 * tilegx-linux-nat.c: Ditto.
14470 * tilegx-tdep.c: Ditto.
14471 * tracepoint.c: Ditto.
14472 * valops.c: Ditto.
14473 * vaxbsd-nat.c: Ditto.
14474 * windows-nat.c: Ditto.
14475 * xtensa-tdep.c: Ditto.
14476
bd1f7788
YQ
144772014-01-07 Yao Qi <yao@codesourcery.com>
14478
14479 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14480
79301218
JB
144812014-01-07 Yao Qi <yao@codesourcery.com>
14482 Joel Brobecker <brobecker@adacore.com>
14483
14484 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14485 (pdc_write_regs): Likewise.
14486 (fetch_regs_kernel_thread): Likewise.
14487 (store_regs_kernel_thread): Likewise.
14488
144892014-01-07 Joel Brobecker <brobecker@adacore.com>
14490
14491 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14492 tagged type objects to their actual type.
14493
8e355c5d
JB
144942014-01-07 Joel Brobecker <brobecker@adacore.com>
14495
14496 * ada-valprint.c (print_field_values): Add "language" parameter.
14497 Update calls to print_field_values and print_variant_part.
14498 Pass new parameter "language" in call to val_print instead
14499 of "current_language". Replace call to ada_val_print by call
14500 to val_print.
14501 (print_variant_part): Add "language" parameter.
14502 (ada_val_print_struct_union): Update call to print_field_values.
14503
4fbf5aa5
JB
145042014-01-07 Joel Brobecker <brobecker@adacore.com>
14505
14506 * ada-valprint.c (ui_memcpy): Delete.
14507 (ada_print_floating): Update documentation. Add empty line
14508 between between function documentation and implementation.
14509 Delete variable "buffer". Use ui_file_xstrdup in place of
14510 ui_file_put. Minor adjustments following this change.
14511
71855601
JB
145122014-01-07 Joel Brobecker <brobecker@adacore.com>
14513
14514 * ada-valprint.c (ada_val_print_string): New function,
14515 extracted from ada_val_print_array.
14516 (ada_val_print_array): Replace extracted code by call
14517 to ada_val_print_string followed by a return. Move
14518 "else" branch to the function's top block.
14519
4eb27a30
JB
145202014-01-07 Joel Brobecker <brobecker@adacore.com>
14521
14522 * ada-valprint.c (ada_val_print_array): Move implementation
14523 down. Rename parameter "offset" and "val" into "offset_aligned"
14524 and "original_value" respectively. Add parameter "offset".
14525
34b27950
JB
145262014-01-07 Joel Brobecker <brobecker@adacore.com>
14527
14528 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14529 re-organizing the code. Change the "???" message printed
14530 when target type is a TYPE_CODE_UNDEF into
14531 "<ref to undefined type>".
14532
079e4591
JB
145332014-01-07 Joel Brobecker <brobecker@adacore.com>
14534
14535 * ada-valprint.c (print_record): Delete, implementation inlined...
14536 (ada_val_print_struct_union): ... here. Remove call to
14537 ada_check_typedef in inlined implementation.
14538
8004dfd1
JB
145392014-01-07 Joel Brobecker <brobecker@adacore.com>
14540
14541 * ada-valprint.c (ada_val_print_gnat_array): New function,
14542 extracted from ada_val_print_1;
14543 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14544 (ada_val_print_flt, ada_val_print_struct_union)
14545 (ada_val_print_ref): Likewise.
14546 (ada_val_print_1): Delete variables i and elttype.
14547 Replace extracted-out code by call to corresponding
14548 new functions.
14549
760a2db0
JB
145502014-01-07 Joel Brobecker <brobecker@adacore.com>
14551
14552 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14553
3a92c861
JB
145542014-01-07 Joel Brobecker <brobecker@adacore.com>
14555
14556 * ada-valprint.c (ada_val_print_1): Replace calls to
14557 ada_val_print_1 by calls to val_print.
14558
cd1630f9
JB
145592014-01-07 Joel Brobecker <brobecker@adacore.com>
14560
14561 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14562 Update calls to self accordingly. Replace calls to c_val_print
14563 by calls to val_print.
14564
bdf779a0
JB
145652014-01-07 Joel Brobecker <brobecker@adacore.com>
14566
14567 * ada-valprint.c (print_record): Delete declaration.
14568 (adjust_type_signedness, ada_val_print_1): Likewise.
14569 (ada_val_print): Move function implementation down.
14570 (print_variant_part, print_field_values, print_record):
14571 Move function implementation up.
14572
c0d48811
JB
145732014-01-07 Joel Brobecker <brobecker@adacore.com>
14574
14575 * python/py-type.c (typy_get_name): New function.
14576 (type_object_getset): Add entry for attribute "name".
14577 * NEWS: Add entry mentioning this new attribute.
14578
c26e9cbb
YQ
145792014-01-07 Yao Qi <yao@codesourcery.com>
14580
14581 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14582 statement.
14583
0cc6f43d
YQ
145842014-01-07 Yao Qi <yao@codesourcery.com>
14585
14586 * gnu-nat.c (info_port_rights): Add qualifier const to
14587 argument args.
14588
eec03155
YQ
145892014-01-07 Yao Qi <yao@codesourcery.com>
14590
14591 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14592
f04a82ef
YQ
145932014-01-07 Yao Qi <yao@codesourcery.com>
14594
14595 * gnu-nat.c (make_inf) Update declaration.
14596 (make_inf): Make it static.
14597 (inf_set_traced): Likewise.
14598 (inf_port_to_thread, inf_task_died_status): Likewise.
14599
d57dda0a
YQ
146002014-01-07 Yao Qi <yao@codesourcery.com>
14601
14602 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14603
3aa8c969
YQ
146042014-01-07 Yao Qi <yao@codesourcery.com>
14605
14606 * gnu-nat.c (_initialize_gnu_nat): Declare.
14607
94123b4f
YQ
146082014-01-07 Yao Qi <yao@codesourcery.com>
14609
14610 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14611 'enum bfd_endian'.
14612 (struct gdbarch_info) <byte_order>: Change type to
14613 'enum bfd_endian'.
14614 <byte_order_for_code>: Likewise.
14615 * gdbarch.c, gdbarch.h: Regenerated.
14616
dc81d70a
TT
146172014-01-06 Sasha Smundak <asmundak@google.com>
14618
14619 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14620
cc2f3c35
TT
146212014-01-06 Tom Tromey <tromey@redhat.com>
14622
14623 * doublest.c (convert_doublest_to_floatformat): Use const, not
14624 CONST.
14625 * somread.c (som_symtab_read): Likewise.
14626
adcf2eed
HZ
146272014-01-07 Hui Zhu <hui@codesourcery.com>
14628
14629 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14630 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14631 (gdb_bfd_fopen): Ditto.
14632 (gdb_bfd_openr): Ditto.
14633 (gdb_bfd_openw): Ditto.
14634 (gdb_bfd_openr_iovec): Ditto.
14635 (gdb_bfd_fdopenr): Ditto.
14636 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14637 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14638 with xstrdup.
14639 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14640 with xstrdup.
14641 * symfile-mem.c (symbol_file_add_from_memory): Removed
14642 gdb_bfd_stash_filename.
14643
50722198
DE
146442014-01-03 Doug Evans <dje@google.com>
14645
14646 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14647 output.
14648
2fa4b862
JB
146492014-01-01 Joel Brobecker <brobecker@adacore.com>
14650
14651 Update year range in copyright notice of all files.
14652
28498c42
JB
146532014-01-01 Joel Brobecker <brobecker@adacore.com>
14654
14655 * top.c (print_gdb_version): Set copyright year to 2014.
14656
7b6e1046
JB
146572014-01-01 Joel Brobecker <brobecker@adacore.com>
14658
14659 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14660
df96af55 14661For older changes see ChangeLog-2013.
c906108c
SS
14662\f
14663Local Variables:
14664mode: change-log
14665left-margin: 8
14666fill-column: 74
14667version-control: never
57da7796 14668coding: utf-8
c906108c 14669End:
This page took 2.231781 seconds and 4 git commands to generate.