PR symtab/17591
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-11-13 Doug Evans <dje@google.com>
2
3 PR symtab/17591
4 * dwarf2read.c (find_slot_in_mapped_hash): Handle
5 "(anonymous namespace)".
6
7 2014-11-13 Doug Evans <dje@google.com>
8
9 * dwarf2read.c (update_enumeration_type_from_children): Avoid
10 infinite loop.
11
12 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
13
14 * NEWS (maint set target-async): Fix typo.
15
16 2014-11-12 Pedro Alves <palves@redhat.com>
17
18 * infrun.c (enum infwait_states, infwait_state): Delete.
19
20 2014-11-12 Pedro Alves <palves@redhat.com>
21
22 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
23 Rewrite stepping over a permanent breakpoint.
24 (thread_still_needs_step_over, proceed): Don't set
25 stepping_over_breakpoint for permanent breakpoints.
26 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
27 single-step breakpoints out of the target on hardware step
28 targets.
29 (process_event_stop_test): If stepping a permanent breakpoint
30 doesn't hit the step-resume breakpoint, delete the step-resume
31 breakpoint.
32 (switch_back_to_stepped_thread): Also check if the stepped thread
33 has advanced already on hardware step targets.
34 (currently_stepping): Return true if the thread stepped a
35 breakpoint.
36
37 2014-11-12 Pedro Alves <palves@redhat.com>
38
39 Mark locations as permanent, not the whole breakpoint.
40 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
41 (mark_breakpoints_out): Don't mark permanent breakpoints as
42 uninserted.
43 (breakpoint_init_inferior): Use mark_breakpoints_out.
44 (breakpoint_here_p): Adjust.
45 (bpstat_stop_status, describe_other_breakpoints): Remove handling
46 of permanent breakpoints.
47 (make_breakpoint_permanent): Mark each location as permanent,
48 instead of marking the breakpoint.
49 (add_location_to_breakpoint): If the location is permanent, mark
50 it as such, and as inserted.
51 (init_breakpoint_sal): Don't make the breakpoint permanent here.
52 (bp_location_compare, update_global_location_list): Adjust.
53 (update_breakpoint_locations): Don't make the breakpoint permanent
54 here.
55 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
56 breakpoints.
57 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
58 (struct bp_location) <permanent>: New field.
59 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
60 reference to bp_permanent.
61
62 2014-11-12 Pedro Alves <palves@redhat.com>
63
64 * arch-utils.c (default_skip_permanent_breakpoint): New function.
65 * arch-utils.h (default_skip_permanent_breakpoint): New
66 declaration.
67 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
68 Install default_skip_permanent_breakpoint as default method.
69 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
70 (i386_gdbarch_init): Don't install it.
71 * infrun.c (resume): Assume there's always a
72 gdbarch_skip_permanent_breakpoint implementation.
73 * gdbarch.h, gdbarch.c: Regenerate.
74
75 2014-11-11 Daniel Colascione <dancol@dancol.org>
76
77 Warn about cross-PID-namespace debugging.
78 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
79 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
80 * linux-thread-db.c (check_pid_namespace_match): New function.
81 (thread_db_inferior_created): Call it.
82
83 2014-11-10 Doug Evans <xdje42@gmail.com>
84
85 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
86 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
87
88 2014-11-10 Doug Evans <xdje42@gmail.com>
89
90 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
91
92 2014-11-10 Doug Evans <xdje42@gmail.com>
93
94 PR symtab/17564
95 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
96 (lookup_static_symbol): Move definition to new location and rewrite.
97 (lookup_symbol_in_objfile): New function.
98 (lookup_symbol_global_iterator_cb): Call it.
99
100 2014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
101
102 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
103
104 2014-11-07 Pedro Alves <palves@redhat.com>
105
106 * infrun.c (process_event_stop_test) <subroutine check>: Don't
107 check if we did a "nexti" inside a prologue.
108 * symtab.c (in_prologue): Delete function.
109 * symtab.h (in_prologue): Delete declaration.
110
111 2014-11-06 Doug Evans <xdje42@gmail.com>
112
113 * symtab.h (lookup_global_symbol): Improve function comment.
114
115 2014-11-06 Doug Evans <xdje42@gmail.com>
116
117 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
118 All callers updated.
119 * symtab.h (lookup_global_symbol): Update decl.
120 (lookup_static_symbol): Move decl to better location.
121
122 2014-11-06 Doug Evans <xdje42@gmail.com>
123
124 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
125
126 2014-11-06 Doug Evans <xdje42@gmail.com>
127
128 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
129 All callers updated.
130 (lookup_symbol_in_all_objfiles): Renamed from
131 lookup_symbol_aux_symtabs. All callers updated.
132 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
133 All callers updated.
134 (lookup_symbol_in_objfile_symtabs): Renamed from
135 lookup_symbol_aux_objfile. All callers updated.
136
137 2014-11-06 Doug Evans <xdje42@gmail.com>
138
139 * symtab.c (lookup_symbol_in_block): Renamed from
140 lookup_symbol_aux_block. All callers updated.
141
142 2014-11-06 Doug Evans <xdje42@gmail.com>
143
144 * symtab.c (lookup_static_symbol): Renamed from
145 lookup_static_symbol_aux. All callers updated.
146 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
147 All callers updated.
148
149 2014-11-06 Doug Evans <xdje42@gmail.com>
150
151 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
152 * block.c (block_lookup_symbol): Use it.
153 * cp-support.c (make_symbol_overload_list_block): Use it.
154 * symtab.c (iterate_over_symbols): Use it.
155
156 2014-11-06 Doug Evans <xdje42@gmail.com>
157
158 * symtab.c (lookup_block_symbol): Moved to ...
159 * block.c (block_lookup_symbol): ... here and renamed.
160 All callers updated.
161 * block.h (block_lookup_symbol): Declare.
162 * symtab.h (lookup_block_symbol): Delete.
163
164 2014-11-06 Doug Evans <xdje42@gmail.com>
165
166 * ada-lang.c (ada_make_symbol_completion_list): Use
167 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
168 * symtab.c (lookup_objfile_from_block): Ditto.
169
170 2014-11-06 Doug Evans <xdje42@gmail.com>
171
172 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
173 TYPE_CODE_STRUCT.
174
175 2014-11-06 Doug Evans <xdje42@gmail.com>
176
177 * objfiles.c (get_objfile_arch): Constify.
178 * objfiles.h (get_objfile_arch): Update prototype.
179 * solib.c (solib_global_lookup): Fetch arch from objfile,
180 not target_gdbarch.
181
182 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
183
184 * nios2-tdep.c (wild_insn): Delete.
185 (profiler_insn, irqentry_insn): Delete.
186 (nios2_match_sequence): Delete.
187 (nios2_analyze_prologue): Update comments. Remove matching
188 of obsolete profiler_insn and irqentry_insn sequences.
189
190 2014-11-05 Alan Modra <amodra@gmail.com>
191
192 * charset.c (convert_between_encodings): Shrink obstack using
193 obstack_blank_fast.
194 * minsyms.c (install_minimal_symbols): Likewise.
195 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
196 to char* before doing pointer arithmetic.
197
198 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
199
200 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
201
202 2014-11-04 Pedro Alves <palves@redhat.com>
203
204 * breakpoint.c (breakpoint_thread_match): Delete function.
205 * breakpoint.h (breakpoint_thread_match): Delete declaration.
206
207 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
208
209 PR c++/17494
210 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
211 the method args also under EVAL_SKIP when evaluating method
212 calls under EVAL_SKIP.
213
214 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
215
216 * dwarf2loc.c (read_pieced_value): Do big endian
217 processing only if gdb_regnum is not -1.
218 (write_pieced_value): Ditto.
219
220 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
221
222 * arm-linux-tdep.c (arm_linux_init_abi): Use
223 info.byte_order_for_code to choose endianity of breakpoint
224 instructions snippets.
225
226 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
227
228 * arm-tdep.c (extract_arm_insn): Use
229 gdbarch_byte_order_for_code to read arm instruction.
230
231 2014-11-02 Doug Evans <xdje42@gmail.com>
232
233 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
234
235 2014-11-02 Doug Evans <xdje42@gmail.com>
236
237 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
238 main_subfile before returning.
239
240 2014-10-31 Doug Evans <xdje42@gmail.com>
241
242 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
243 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
244
245 2014-10-31 Doug Evans <xdje42@gmail.com>
246
247 * valops.c (value_cast_pointers): Fix whitespace.
248 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
249 Ditto.
250
251 2014-10-30 Doug Evans <dje@google.com>
252
253 * NEWS: Mention ability add attributes to gdb.Objfile and
254 gdb.Progspace objects.
255 * python/py-objfile.c (objfile_object): New member dict.
256 (objfpy_dealloc): Py_XDECREF dict.
257 (objfpy_initialize): Initialize dict.
258 (objfile_getset): Add __dict__.
259 (objfile_object_type): Set tp_dictoffset member.
260 * python/py-progspace.c (progspace_object): New member dict.
261 (pspy_dealloc): Py_XDECREF dict.
262 (pspy_initialize): Initialize dict.
263 (pspace_getset): Add __dict__.
264 (pspace_object_type): Set tp_dictoffset member.
265
266 2014-10-30 Yao Qi <yao@codesourcery.com>
267
268 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
269 replace '\\' with '\\\\'.
270
271 2014-10-29 Joel Brobecker <brobecker@adacore.com>
272
273 GDB 7.8.1 released.
274
275 2014-10-29 Pedro Alves <palves@redhat.com>
276
277 PR gdb/17408
278 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
279 instead of assuming a thread with a stepping range is always
280 stepping.
281
282 2014-10-29 Pedro Alves <palves@redhat.com>
283
284 PR python/17372
285 * event-top.c (change_line_handler): Call
286 gdb_rl_callback_handler_remove instead of
287 rl_callback_handler_remove.
288 (callback_handler_installed): New global.
289 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
290 (gdb_rl_callback_handler_reinstall): New functions.
291 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
292 gdb_rl_callback_handler_install instead of
293 rl_callback_handler_remove and rl_callback_handler_install.
294 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
295 instead of rl_callback_handler_remove.
296 * event-top.h (gdb_rl_callback_handler_remove)
297 (gdb_rl_callback_handler_install)
298 (gdb_rl_callback_handler_reinstall): New declarations.
299 * infrun.c (reinstall_readline_callback_handler_cleanup): New
300 cleanup function.
301 (fetch_inferior_event): Install it.
302 * top.c (gdb_readline_wrapper_line) Call
303 gdb_rl_callback_handler_remove instead of
304 rl_callback_handler_remove.
305 (gdb_readline_wrapper_cleanup): Don't call
306 rl_callback_handler_install.
307
308 2014-10-29 Pedro Alves <palves@redhat.com>
309
310 * event-top.c (command_line_handler): Clear the first byte of
311 linebuffer, when it is first allocated.
312
313 2014-10-29 Pedro Alves <palves@redhat.com>
314
315 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
316 TRY_CATCH.
317
318 2014-10-29 Pedro Alves <palves@redhat.com>
319
320 PR tui/16138
321 PR tui/17519
322 * tui/tui-interp.c (tui_is_toplevel): Delete global.
323 (tui_allowed_p): Delete function.
324 * tui/tui.c: Include "interps.h".
325 (tui_enable): Don't use tui_allowed_p. Error out here with
326 detailed error messages if the TUI is the top level interpreter,
327 or if output is not a terminal. Use newterm instead of initscr,
328 and error out if initializing the terminal fails. Also error out if
329 the terminal doesn't support cursor addressing.
330 * tui/tui.h (tui_allowed_p): Delete declaration.
331
332 2014-10-29 Joel Brobecker <brobecker@adacore.com>
333
334 * arm-tdep.c (arm_skip_stack_protector): Return early if
335 address loaded by first "ldr" instruction does not have
336 a corresponding minimal symbol. Update comment.
337
338 2014-10-29 Yao Qi <yao@codesourcery.com>
339
340 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
341 loaded address correctly of ldr instruction.
342
343 2014-10-28 Pedro Alves <palves@redhat.com>
344
345 PR gdb/12623
346 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
347 field.
348 * infrun.c (resume) <stepping breakpoint instruction>: Set the
349 thread's stepped_breakpoint field. Skip if reverse debugging.
350 Add comment.
351 (init_thread_stepping_state, handle_signal_stop): Clear the
352 thread's stepped_breakpoint field.
353
354 2014-10-27 Pedro Alves <palves@redhat.com>
355
356 * remote.c (remote_thread_alive): New, factored out from ...
357 (remote_thread_alive): ... this.
358 (remote_update_thread_list): Bail out before deleting threads if
359 the target returned an empty list, and, the current thread has a
360 magic/fake ptid.
361
362 2014-10-27 Pedro Alves <palves@redhat.com>
363
364 * infrun.c (handle_signal_stop): Also skip handlers when a random
365 signal arrives while handling a "stepi" or a "nexti". Set the
366 thread's 'step_after_step_resume_breakpoint' flag.
367
368 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
369
370 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
371 (arm_record_ld_st_imm_offset): Reimplement to cover all
372 load/store cases for ARM opcode 010.
373 (arm_record_ld_st_multiple): Reimplement to cover all
374 load/store cases for ARM opcode 100.
375
376 2014-10-26 Doug Evans <xdje42@gmail.com>
377
378 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
379
380 2014-10-26 Doug Evans <xdje42@gmail.com>
381
382 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
383 parameter "kind" to "block_index".
384 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
385 "block_index".
386 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
387
388 2014-10-26 Doug Evans <xdje42@gmail.com>
389
390 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
391
392 2014-10-26 Doug Evans <xdje42@gmail.com>
393
394 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
395 obstack_alloc.
396
397 2014-10-26 Doug Evans <xdje42@gmail.com>
398
399 * parser-defs.h (block_found): Move decl from here ...
400 * symtab.h (block_found): ... to here.
401
402 2014-10-26 Doug Evans <xdje42@gmail.com>
403
404 * symtab.h (struct field_of_this_result): Fix typo in comment.
405 (lookup_symbol_in_language): Move function comment here.
406 (lookup_symbol): Improve function comment.
407 (basic_lookup_symbol_nonlocal): Ditto.
408 (lookup_symbol_static, lookup_symbol_global): Ditto.
409 (lookup_symbol_aux_block): Ditto.
410 (lookup_language_this): Add function comment.
411 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
412 function comment.
413 (lookup_block_symbol): Improve function comment.
414 (lookup_struct): Fix capitalization in function comment.
415 (lookup_transparent_type): Add function comment.
416 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
417 Improve function comment.
418 (lookup_objfile_from_block): Add function comment.
419 * symtab.c (lookup_symbol_in_language): Update function comment.
420 (lookup_symbol, lookup_language_this): Ditto.
421 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
422 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
423 (basic_lookup_symbol_nonlocal): Ditto.
424 (lookup_symbol_static, lookup_symbol_global): Ditto.
425 (lookup_transparent_type, lookup_block_symbol): Ditto.
426
427 2014-10-25 Doug Evans <xdje42@gmail.com>
428
429 * symtab.c (types_info): Delete forward decl.
430 (functions_info, variables_info, sources_info): Ditto.
431 (_initialize_symtab): Rewrite forward decl to use
432 initialize_file_ftype.
433
434 2014-10-25 Doug Evans <xdje42@gmail.com>
435
436 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
437
438 2014-10-25 Doug Evans <xdje42@gmail.com>
439
440 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
441 of local var child_die.
442
443 2014-10-24 Don Breazeal <donb@codesourcery.com>
444
445 * infrun.c (follow_fork_inferior): Update fork message printing
446 to use target_terminal_ours_for_output instead of
447 target_terminal_ours, to use _() for all format strings, to print
448 "vfork" instead of "fork" for vforks, and to add a detach message.
449 (handle_vfork_child_exec_or_exit): Update message printing to use
450 target_terminal_ours_for_output instead of target_terminal_ours, to
451 use _() for all format strings, and to fix some formatting.
452
453 2014-10-24 Pedro Alves <palves@redhat.com>
454
455 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
456 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
457 * config/vax/vax.mh: Delete.
458 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
459 obsolete configurations section.
460 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
461 * vax-nat.c: Delete file.
462
463 2014-10-24 Pedro Alves <palves@redhat.com>
464
465 * NEWS (Removed targets): Add OS/arch column.
466
467 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
468
469 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
470 on the arg type of a constructor only if it is of reference type.
471
472 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
473
474 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
475 accessors and constants from nios2 opcodes update.
476 (nios2_get_next_pc): Likewise.
477
478 2014-10-19 Doug Evans <xdje42@gmail.com>
479
480 * gdbthread.h (set_running): Fix comment.
481 (set_executing, finish_thread_state): Fix comment.
482
483 2014-10-18 Doug Evans <xdje42@gmail.com>
484
485 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
486
487 2014-10-17 Doug Evans <dje@google.com>
488
489 * NEWS: Mention new event gdb.clear_objfiles.
490 * python/py-event.h (emit_clear_objfiles_event): Clear
491 * python/py-events.h (events_object): New member clear_objfiles.
492 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
493 event.
494 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
495 emit clear_objfiles event.
496 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
497 function.
498 (emit_clear_objfiles_event): New function.
499 (clear_objfiles): New event.
500 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
501 Declare.
502 * python/python.c (_initialize_python): Call
503 gdbpy_initialize_clear_objfiles_event.
504
505 2014-10-17 Doug Evans <dje@google.com>
506
507 * NEWS: Mention new gdb.Objfile.progspace attribute.
508 * python/py-objfile.c (objfpy_get_progspace): New function.
509 (objfile_getset): New entry for "progspace".
510
511 2014-10-17 Pedro Alves <palves@redhat.com>
512
513 PR gdb/17471
514 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
515 returns a copy of the input.
516 (run_command_1, continue_command, step_1, jump_command)
517 (signal_command, until_command, advance_command, finish_command)
518 (attach_command): Adjust and install a cleanup to free the
519 stripped args.
520
521 2014-10-17 Pedro Alves <palves@redhat.com>
522
523 PR gdb/17300
524 * infcmd.c (continue_1): If continuing all threads in the
525 foreground, make sure the inferior's terminal settings are put in
526 effect.
527
528 2014-10-17 Pedro Alves <palves@redhat.com>
529
530 PR gdb/17472
531 * annotate.c (annotate_breakpoints_invalid): Use
532 target_terminal_our_for_output instead of target_terminal_ours.
533 Give back the terminal to the target.
534 (annotate_frames_invalid): Likewise.
535
536 2014-10-17 Pedro Alves <palves@redhat.com>
537
538 * target.c (enum terminal_state): New enum.
539 (terminal_state): New global.
540 (target_terminal_init): New function.
541 (target_terminal_inferior): Skip if inferior already owns the
542 terminal.
543 (target_terminal_ours, target_terminal_ours_for_output): New
544 functions.
545 * target.h (target_terminal_init): Convert to function prototype.
546 (target_terminal_ours_for_output): Convert to function prototype
547 and tweak comment.
548 (target_terminal_ours): Convert to function prototype and tweak
549 comment.
550 * windows-nat.c (do_initial_windows_stuff): Call
551 target_terminal_init instead of child_terminal_init_with_pgrp.
552
553 2014-10-17 Pedro Alves <palves@redhat.com>
554
555 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
556 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
557 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
558 solib-osf.c.
559 * NEWS: Mention that support for alpha*-*-osf* has been removed.
560 * ada-lang.h [__alpha__ && __osf__]
561 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
562 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
563 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
564 GDB_OSABI_OSF1.
565 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
566 files.
567 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
568 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
569 * configure: Regenerate.
570 * configure.ac: Remove references to osf.
571 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
572 section. Remove all other references to osf.
573 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
574 Remove all other references to osf.
575 * dec-thread.c: Delete file.
576 * defs.h (GDB_OSABI_OSF1): Delete.
577 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
578 defined.
579 * osabi.c (gdb_osabi_names): Delete "OSF/1".
580 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
581 Delete code.
582 (unconditionally_kill_inferior)
583 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
584 * solib-osf.c: Delete file.
585
586 2014-10-17 Pedro Alves <palves@redhat.com>
587
588 * remote.c (clear_threads_listing_context): Move higher up, out of
589 the HAVE_LIBEXPAT guard.
590
591 2014-10-16 Tristan Gingold <gingold@adacore.com>
592
593 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
594 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
595 on amd64.
596
597 2014-10-15 Pedro Alves <palves@redhat.com>
598
599 * dec-thread.c (dec_thread_count_gdb_threads)
600 (dec_thread_add_gdb_thread): Delete.
601 (dec_thread_update_thread_list): Delete.
602 (dec_thread_find_new_threads): Rename to ...
603 (dec_thread_update_thread_list): ... this. Delete GDB-size
604 threads that are no longer found in dec_thread_list.
605 (resync_thread_list): Delete.
606 (dec_thread_wait): Call dec_thread_update_thread_list instead of
607 resync_thread_list.
608
609 2014-10-15 Pedro Alves <palves@redhat.com>
610
611 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
612 * remote.c (remote_update_thread_list): Skip calling prune_threads
613 if any thread listing method is supported, and instead walk over
614 the set of remote threads listed, deleting those that are not
615 found in GDB's thread list.
616
617 2014-10-15 Pedro Alves <palves@redhat.com>
618
619 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
620 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
621 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
622 (bsd_uthread_target): Adjust.
623 * corelow.c (core_open): Adjust.
624 * dec-thread.c (dec_thread_find_new_threads): Update comment.
625 (dec_thread_update_thread_list): New function.
626 (init_dec_thread_ops): Adjust.
627 * gdbthread.h (prune_threads): New declaration.
628 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
629 (thread_db_update_thread_list): ... this. Call prune_threads.
630 (init_thread_db_ops): Adjust.
631 * nto-procfs.c (procfs_find_new_threads): Rename to ...
632 (procfs_update_thread_list): ... this. Call prune_threads.
633 (procfs_attach, procfs_create_inferior, init_procfs_targets):
634 Adjust.
635 * obsd-nat.c (obsd_find_new_threads): Rename to ...
636 (obsd_update_thread_list): ... this. Call prune_threads.
637 (obsd_add_target): Adjust.
638 * procfs.c (procfs_target): Adjust.
639 (procfs_notice_thread): Update comment.
640 (procfs_find_new_threads): Rename to ...
641 (procfs_update_thread_list): ... this. Call prune_threads.
642 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
643 comment.
644 (ravenscar_wait): Adjust.
645 (ravenscar_find_new_threads): Rename to ...
646 (ravenscar_update_thread_list): ... this. Call prune_threads.
647 (init_ravenscar_thread_ops): Adjust.
648 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
649 (record_btrace_update_thread_list): ... this. Adjust comment.
650 (init_record_btrace_ops): Adjust.
651 * remote.c (remote_threads_info): Rename to ...
652 (remote_update_thread_list): ... this. Call prune_threads.
653 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
654 Adjust.
655 * sol-thread.c (check_for_thread_db): Adjust.
656 (sol_find_new_threads_callback): Rename to ...
657 (sol_update_thread_list_callback): ... this.
658 (sol_find_new_threads): Rename to ...
659 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
660 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
661 * target-delegates.c: Regenerate.
662 * target.c (target_find_new_threads): Rename to ...
663 (target_update_thread_list): ... this.
664 * target.h (struct target_ops): Rename to_find_new_threads field
665 to to_update_thread_list.
666 (target_find_new_threads): Rename to ...
667 (target_update_thread_list): ... this.
668 * thread.c (prune_threads): Make extern.
669 (update_thread_list): Adjust.
670
671 2014-10-15 Pedro Alves <palves@redhat.com>
672
673 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
674 Add describing comment. Return -1 if the qL packet is not
675 supported.
676 (struct thread_item, thread_item_t): Move higher up in
677 the file. Add comments.
678 (struct threads_parsing_context): Move higher up in
679 the file, add comments, and remote to ...
680 (struct threads_listing_context): ... this.
681 (remote_newthread_step): Don't add the thread to GDB's thread
682 database here. Instead push it to the thread_listing_context
683 list.
684 (remote_find_new_threads): Rename to ...
685 (remote_get_threads_with_ql): ... this. Add target_ops and
686 targets_listing_context parameters. Pass down context.
687 (start_thread): Adjust.
688 (clear_threads_parsing_context): Rename to ...
689 (clear_threads_listing_context): ... this.
690 (remote_get_threads_with_qxfer): New, with parts salvaged from old
691 remote_threads_info.
692 (remote_get_threads_with_qthreadinfo): Ditto.
693 (remote_threads_info): Reimplement.
694
695 2014-10-15 Pedro Alves <palves@redhat.com>
696
697 * infrun.c (resume): Don't force displaced-stepping for all
698 single-steps on software single-stepping archs.
699
700 2014-10-15 Pedro Alves <palves@redhat.com>
701
702 * breakpoint.c (single_step_breakpoints): Delete global.
703 (insert_single_step_breakpoint): Adjust to store the breakpoint
704 pointer in the current thread.
705 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
706 (cancel_single_step_breakpoints): Delete functions.
707 (breakpoint_has_location_inserted_here): Make extern.
708 (single_step_breakpoint_inserted_here_p): Adjust to walk the
709 breakpoint list.
710 * breakpoint.h (breakpoint_has_location_inserted_here): New
711 declaration.
712 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
713 (cancel_single_step_breakpoints): Remove declarations.
714 * gdbthread.h (struct thread_control_state)
715 <single_step_breakpoints>: New field.
716 (delete_single_step_breakpoints)
717 (thread_has_single_step_breakpoints_set)
718 (thread_has_single_step_breakpoint_here): New declarations.
719 * infrun.c (follow_exec): Also clear the single-step breakpoints.
720 (singlestep_breakpoints_inserted_p, singlestep_ptid)
721 (singlestep_pc): Delete globals.
722 (infrun_thread_ptid_changed): Remove references to removed
723 globals.
724 (resume_cleanups): Delete the current thread's single-step
725 breakpoints.
726 (maybe_software_singlestep): Remove references to removed globals.
727 (resume): Adjust to use thread_has_single_step_breakpoints_set and
728 delete_single_step_breakpoints.
729 (init_wait_for_inferior): Remove references to removed globals.
730 (delete_thread_infrun_breakpoints): Delete the thread's
731 single-step breakpoints too.
732 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
733 single-step breakpoints here.
734 (delete_stopped_threads_single_step_breakpoints): New function.
735 (adjust_pc_after_break): Adjust to use
736 thread_has_single_step_breakpoints_set.
737 (handle_inferior_event): Remove references to removed globals.
738 Use delete_stopped_threads_single_step_breakpoints.
739 (handle_signal_stop): Adjust to per-thread single-step
740 breakpoints. Swap test order to do cheaper tests first.
741 (switch_back_to_stepped_thread): Extend debug output. Remove
742 references to removed globals.
743 * record-full.c (record_full_wait_1): Adjust to per-thread
744 single-step breakpoints.
745 * thread.c (delete_single_step_breakpoints)
746 (thread_has_single_step_breakpoints_set)
747 (thread_has_single_step_breakpoint_here): New functions.
748 (clear_thread_inferior_resources): Also delete the thread's
749 single-step breakpoints.
750
751 2014-10-15 Pedro Alves <palves@redhat.com>
752
753 * thread.c (delete_thread_breakpoint): New function.
754 (delete_step_resume_breakpoint)
755 (delete_exception_resume_breakpoint): Use it.
756 (delete_at_next_stop): New function.
757 (clear_thread_inferior_resources): Use delete_at_next_stop.
758
759 2014-10-15 Pedro Alves <palves@redhat.com>
760
761 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
762 (breakpoint_inserted_here_p): ... here. Remove special case for
763 software single-step breakpoints.
764 (find_non_raw_software_breakpoint_inserted_here): Inline ...
765 (software_breakpoint_inserted_here_p): ... here. Remove special
766 case for software single-step breakpoints.
767 (bp_target_info_copy_insertion_state)
768 (deprecated_insert_raw_breakpoint)
769 (deprecated_remove_raw_breakpoint): Delete functions.
770 * breakpoint.h (deprecated_insert_raw_breakpoint)
771 (deprecated_remove_raw_breakpoint): Remove declarations.
772
773 2014-10-15 Pedro Alves <palves@redhat.com>
774
775 PR breakpoints/9649
776 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
777 Delete array globals.
778 (single_step_breakpoints): New global.
779 (breakpoint_xfer_memory): Remove special handling for single-step
780 breakpoints.
781 (update_breakpoints_after_exec): Delete bp_single_step
782 breakpoints.
783 (detach_breakpoints): Remove special handling for single-step
784 breakpoints.
785 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
786 (bpstat_stop_status): Add comment.
787 (bpstat_what, bptype_string, print_one_breakpoint_location)
788 (adjust_breakpoint_address, init_bp_location): Handle
789 bp_single_step.
790 (new_single_step_breakpoint): New function.
791 (set_momentary_breakpoint, bkpt_remove_location): Remove special
792 handling for single-step breakpoints.
793 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
794 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
795 Rewrite.
796 (detach_single_step_breakpoints, find_single_step_breakpoint):
797 Delete functions.
798 (breakpoint_has_location_inserted_here): New function.
799 (single_step_breakpoint_inserted_here_p): Rewrite.
800 * breakpoint.h: Remove FIXME.
801 (enum bptype) <bp_single_step>: New enum value.
802 (insert_single_step_breakpoint): Update comment.
803 * infrun.c (resume_cleanups)
804 (delete_step_thread_step_resume_breakpoint): Remove single-step
805 breakpoints.
806 (fetch_inferior_event): Install a cleanup that removes infrun
807 breakpoints.
808 (switch_back_to_stepped_thread) <expect thread advanced also>:
809 Clear step-over info.
810
811 2014-10-15 Pedro Alves <palves@redhat.com>
812
813 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
814 (delete_thread_infrun_breakpoints): New function, with parts
815 salvaged from delete_step_resume_breakpoint_callback.
816 (delete_step_thread_step_resume_breakpoint): Delete.
817 (for_each_just_stopped_thread_callback_func): New typedef.
818 (for_each_just_stopped_thread): New function.
819 (delete_just_stopped_threads_infrun_breakpoints): New function.
820 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
821 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
822 ... this. Adjust.
823 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
824
825 2014-10-15 Pedro Alves <palves@redhat.com>
826
827 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
828 trying to step past a non-steppable watchpoint.
829 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
830 field.
831 * infrun.c (struct step_over_info): Add new field
832 'nonsteppable_watchpoint_p' and adjust comments.
833 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
834 Adjust.
835 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
836 (stepping_past_nonsteppable_watchpoint): New function.
837 (step_over_info_valid_p): Also return true if stepping past a
838 nonsteppable watchpoint.
839 (proceed): Adjust call to set_step_over_info. Remove reference to
840 init_infwait_state.
841 (init_wait_for_inferior): Remove reference to init_infwait_state.
842 (waiton_ptid): Delete global.
843 (struct execution_control_state)
844 <stepped_after_stopped_by_watchpoint>: Delete field.
845 (wait_for_inferior, fetch_inferior_event): Always pass
846 minus_one_ptid to target_wait.
847 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
848 field.
849 (init_infwait_state): Delete function.
850 (handle_inferior_event): Remove infwait_state handling.
851 (handle_signal_stop) <watchpoints handling>: Adjust after
852 stepped_after_stopped_by_watchpoint removal. Don't remove
853 breakpoints here nor set infwait_state. Set the thread's
854 stepping_over_watchpoint flag, and call keep_going instead.
855 (keep_going): Handle stepping_over_watchpoint. Adjust
856 set_step_over_info calls.
857 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
858 function.
859
860 2014-10-15 Pedro Alves <palves@redhat.com>
861
862 * infrun.c (step_over_info_valid_p): New function.
863 (resume): Use step_over_info_valid_p instead of checking the
864 threads's trap_expected flag.
865
866 2014-10-15 Doug Evans <dje@google.com>
867 Walfred Tedeschi <walfred.tedeschi@intel.com>
868
869 PR python/17364
870 * python/lib/gdb/__init__.py (packages): Add "printer".
871 * python/lib/gdb/command/bound_registers.py: Moved to ...
872 * python/lib/gdb/printer/bound_registers.py: ... here.
873 Add printer to global set of builtin printers. Rename printer from
874 "bound" to "mpx_bound128".
875 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
876 registered as global "builtin" printer.
877 (add_builtin_pretty_printer): New function.
878 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
879 gdb/printer/__init__.py.
880
881 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
882
883 * Makefile.in (SFILES): Remove d-support.c.
884 (COMMON_OBS): Remove d-support.o.
885 * d-lang.h (d_parse_symbol): Remove declaration.
886 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
887 * d-support.c: Remove file.
888
889 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
890
891 * gdb/infrun.c (process_event_stop_test): Apply
892 gdbarch_addr_bits_remove to longjmp resume address.
893
894 2014-10-15 Pedro Alves <palves@redhat.com>
895
896 * regformats/microblaze.dat: Delete file.
897
898 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
899
900 * features/Makefile (microblaze-expedite): Replace pc with rpc.
901 * regformats/microblaze-with-stack-protect.dat: Regenerate.
902
903 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
904
905 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
906 as non-trivial.
907
908 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
909
910 PR c++/13403
911 PR c++/15154
912 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
913 with qualified args.
914
915 2014-10-14 Joel Brobecker <brobecker@adacore.com>
916
917 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
918 of the case where the second operand is a pointer.
919 <BINOP_SUB>: Likewise.
920
921 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
922
923 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
924 only if it is not NULL.
925 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
926 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
927 (struct probe_ops) <clear_semaphore>: Likewise.
928 * tracepoint.c (start_tracing): Call set_semaphore only if it is
929 not NULL.
930 (stop_tracing): Likewise, for clear_semaphore.
931
932 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
933
934 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
935 using language_c, instead of current_language.
936
937 2014-10-13 Doug Evans <dje@google.com>
938
939 * python/py-objfile.c (objfpy_initialize): New function.
940 (objfpy_new, objfile_to_objfile_object): Call it.
941 * python/py-progspace.c (pspy_initialize): New function.
942 (pspy_new, pspace_to_pspace_object): Call it.
943
944 2014-10-13 Miroslav Franc <mfranc@redhat.com>
945 Jan Kratochvil <jan.kratochvil@redhat.com>
946
947 Fix "save breakpoints" for "catch" command.
948 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
949 newline.
950
951 2014-10-12 Miroslav Franc <mfranc@redhat.com>
952
953 Fix "save breakpoints" for "disable $bpnum" command.
954 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
955
956 2014-10-10 Pedro Alves <palves@redhat.com>
957
958 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
959 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
960 (HFILES_NO_SRCDIR): Remove solib-irix.h.
961 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
962 and been removed.
963 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
964 * configure.ac: Remove references to IRIX.
965 * configure.host: Add *-*-irix* to the obsolete hosts section.
966 Remove all other references to irix.
967 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
968 Delete files.
969
970 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
971
972 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
973 isn't valid, release the tdesc arch data and return NULL.
974
975 2014-10-10 Pedro Alves <palves@redhat.com>
976
977 * linux-tdep.c: Include observer.h.
978 (linux_inferior_data): New global.
979 (struct linux_info): New structure.
980 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
981 (get_linux_inferior_data): New functions.
982 (linux_vsyscall_range): Rename to ...
983 (linux_vsyscall_range_raw): ... this.
984 (linux_vsyscall_range): New function; handles caching.
985 (_initialize_linux_tdep): Register linux_inferior_data. Install
986 inferior_exit and inferior_appeared observers.
987
988 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
989 Pedro Alves <palves@redhat.com>
990
991 PR symtab/14466
992 * solib-svr4.c (svr4_read_so_list): Rename to ...
993 (svr4_current_sos_1): ... this and change the function comment.
994 (svr4_current_sos): New function.
995
996 2014-10-10 Pedro Alves <palves@redhat.com>
997
998 * arch-utils.c (default_vsyscall_range): New function.
999 * arch-utils.h (default_vsyscall_range): New declaration.
1000 * gdbarch.sh (vsyscall_range): New hook.
1001 * gdbarch.h, gdbarch.c: Regenerate.
1002 * linux-tdep.c (linux_vsyscall_range): New function.
1003 (linux_init_abi): Install linux_vsyscall_range as
1004 vsyscall_range gdbarch hook.
1005 * memrange.c (address_in_mem_range): New function.
1006 * memrange.h (address_in_mem_range): New declaration.
1007 * symfile-mem.c (find_vdso_size): Delete function.
1008 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1009
1010 2014-10-10 Pedro Alves <palves@redhat.com>
1011
1012 * infrun.c (normal_stop): Fix typo in comment.
1013
1014 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1015
1016 PR tdep/9390
1017 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1018 typo when using logical AND to determine instruction type.
1019
1020 2014-10-09 Yao Qi <yao@codesourcery.com>
1021
1022 * infrun.c (handle_signal_stop): Remove local variable
1023 'printed'.
1024
1025 2014-10-08 Stan Shebs <stan@codesourcery.com>
1026
1027 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1028
1029 2014-10-08 Gary Benson <gbenson@redhat.com>
1030
1031 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1032
1033 2014-10-08 Gary Benson <gbenson@redhat.com>
1034
1035 * common/common-defs.h: Include common-exceptions.h.
1036 * exceptions.h: Do not include common-exceptions.h.
1037
1038 2014-10-08 Gary Benson <gbenson@redhat.com>
1039
1040 * common/common-defs.h: Include cleanups.h.
1041 * common/common-exceptions.c: Do not include cleanups.h.
1042 * utils.h: Likewise.
1043
1044 2014-10-08 Gary Benson <gbenson@redhat.com>
1045
1046 * ada-lang.c: Do not include exceptions.h.
1047 * ada-valprint.c: Likewise.
1048 * amd64-tdep.c: Likewise.
1049 * auto-load.c: Likewise.
1050 * block.c: Likewise.
1051 * break-catch-throw.c: Likewise.
1052 * breakpoint.c: Likewise.
1053 * btrace.c: Likewise.
1054 * c-lang.c: Likewise.
1055 * cli/cli-cmds.c: Likewise.
1056 * cli/cli-interp.c: Likewise.
1057 * cli/cli-script.c: Likewise.
1058 * completer.c: Likewise.
1059 * corefile.c: Likewise.
1060 * corelow.c: Likewise.
1061 * cp-abi.c: Likewise.
1062 * cp-support.c: Likewise.
1063 * cp-valprint.c: Likewise.
1064 * darwin-nat.c: Likewise.
1065 * dwarf2-frame-tailcall.c: Likewise.
1066 * dwarf2-frame.c: Likewise.
1067 * dwarf2loc.c: Likewise.
1068 * dwarf2read.c: Likewise.
1069 * eval.c: Likewise.
1070 * event-loop.c: Likewise.
1071 * event-top.c: Likewise.
1072 * f-valprint.c: Likewise.
1073 * frame-unwind.c: Likewise.
1074 * frame.c: Likewise.
1075 * gdbtypes.c: Likewise.
1076 * gnu-v2-abi.c: Likewise.
1077 * gnu-v3-abi.c: Likewise.
1078 * guile/scm-auto-load.c: Likewise.
1079 * guile/scm-breakpoint.c: Likewise.
1080 * guile/scm-cmd.c: Likewise.
1081 * guile/scm-frame.c: Likewise.
1082 * guile/scm-lazy-string.c: Likewise.
1083 * guile/scm-param.c: Likewise.
1084 * guile/scm-symbol.c: Likewise.
1085 * guile/scm-type.c: Likewise.
1086 * hppa-hpux-tdep.c: Likewise.
1087 * i386-tdep.c: Likewise.
1088 * inf-loop.c: Likewise.
1089 * infcall.c: Likewise.
1090 * infcmd.c: Likewise.
1091 * infrun.c: Likewise.
1092 * interps.c: Likewise.
1093 * interps.h: Likewise.
1094 * jit.c: Likewise.
1095 * linespec.c: Likewise.
1096 * linux-nat.c: Likewise.
1097 * linux-thread-db.c: Likewise.
1098 * m32r-rom.c: Likewise.
1099 * main.c: Likewise.
1100 * memory-map.c: Likewise.
1101 * mi/mi-cmd-break.c: Likewise.
1102 * mi/mi-cmd-stack.c: Likewise.
1103 * mi/mi-interp.c: Likewise.
1104 * mi/mi-main.c: Likewise.
1105 * monitor.c: Likewise.
1106 * nto-procfs.c: Likewise.
1107 * objc-lang.c: Likewise.
1108 * p-valprint.c: Likewise.
1109 * parse.c: Likewise.
1110 * ppc-linux-tdep.c: Likewise.
1111 * printcmd.c: Likewise.
1112 * probe.c: Likewise.
1113 * python/py-auto-load.c: Likewise.
1114 * python/py-breakpoint.c: Likewise.
1115 * python/py-cmd.c: Likewise.
1116 * python/py-finishbreakpoint.c: Likewise.
1117 * python/py-frame.c: Likewise.
1118 * python/py-framefilter.c: Likewise.
1119 * python/py-function.c: Likewise.
1120 * python/py-gdb-readline.c: Likewise.
1121 * python/py-inferior.c: Likewise.
1122 * python/py-infthread.c: Likewise.
1123 * python/py-lazy-string.c: Likewise.
1124 * python/py-linetable.c: Likewise.
1125 * python/py-param.c: Likewise.
1126 * python/py-prettyprint.c: Likewise.
1127 * python/py-symbol.c: Likewise.
1128 * python/py-type.c: Likewise.
1129 * python/py-value.c: Likewise.
1130 * python/python-internal.h: Likewise.
1131 * python/python.c: Likewise.
1132 * record-btrace.c: Likewise.
1133 * record-full.c: Likewise.
1134 * regcache.c: Likewise.
1135 * remote-fileio.c: Likewise.
1136 * remote-mips.c: Likewise.
1137 * remote.c: Likewise.
1138 * rs6000-aix-tdep.c: Likewise.
1139 * rs6000-nat.c: Likewise.
1140 * skip.c: Likewise.
1141 * solib-darwin.c: Likewise.
1142 * solib-dsbt.c: Likewise.
1143 * solib-frv.c: Likewise.
1144 * solib-ia64-hpux.c: Likewise.
1145 * solib-spu.c: Likewise.
1146 * solib-svr4.c: Likewise.
1147 * solib.c: Likewise.
1148 * spu-tdep.c: Likewise.
1149 * stack.c: Likewise.
1150 * stap-probe.c: Likewise.
1151 * symfile-mem.c: Likewise.
1152 * symmisc.c: Likewise.
1153 * target.c: Likewise.
1154 * thread.c: Likewise.
1155 * top.c: Likewise.
1156 * tracepoint.c: Likewise.
1157 * tui/tui-interp.c: Likewise.
1158 * typeprint.c: Likewise.
1159 * utils.c: Likewise.
1160 * valarith.c: Likewise.
1161 * valops.c: Likewise.
1162 * valprint.c: Likewise.
1163 * value.c: Likewise.
1164 * varobj.c: Likewise.
1165 * windows-nat.c: Likewise.
1166 * xml-support.c: Likewise.
1167
1168 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1169
1170 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1171 name implies.
1172 (extended_mips16_next_pc): Update accordingly.
1173
1174 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1175
1176 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1177 function.
1178 (micromips_instruction_is_compact_branch): Likewise.
1179 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1180 or a compact jump, reaching a jump delay slot, or seeing a
1181 second non-prologue instruction.
1182 (micromips_scan_prologue): Also terminate scanning upon seeing a
1183 compact branch or jump, or reaching a branch or jump delay slot.
1184 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1185 or jump delay slot, or seeing a second non-prologue instruction.
1186 (mips32_instruction_has_delay_slot): Retain instruction
1187 examination code only, update arguments accordingly and move
1188 instruction fetch pieces to...
1189 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1190 (micromips_instruction_has_delay_slot): Likewise and to...
1191 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1192 (mips16_instruction_has_delay_slot): Likewise and to...
1193 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1194 (mips_single_step_through_delay): Update accordingly.
1195 (mips_adjust_breakpoint_address): Likewise.
1196
1197 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1198
1199 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1200 !mustbe32 also return 1 for 32-bit instructions.
1201 (mips16_instruction_has_delay_slot): Likewise. Add an
1202 explanatory comment.
1203
1204 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1205
1206 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1207 symbols special.
1208
1209 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1210
1211 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1212 update comments.
1213 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1214 for the breakpoint's address. Don't preinitialize `placed_size'.
1215 (insert_bp_location): Set `reqstd_address' rather than
1216 `placed_address'.
1217 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1218 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1219 address.
1220 (bkpt_remove_location): Likewise.
1221 (deprecated_insert_raw_breakpoint): Likewise.
1222 (deprecated_remove_raw_breakpoint): Likewise.
1223 (find_single_step_breakpoint): Likewise.
1224 * mem-break.c (default_memory_insert_breakpoint): Use
1225 `reqstd_address' for the breakpoint's address. Don't set
1226 `placed_address' or `placed_size' if breakpoint contents couldn't
1227 have been determined.
1228 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1229 the breakpoint's address.
1230 (remote_insert_hw_breakpoint): Likewise. Don't set
1231 `placed_address' or `placed_size' if breakpoint couldn't have been
1232 set.
1233 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1234 `reqstd_address' for the breakpoint's address.
1235 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1236 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1237 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1238 * microblaze-linux-tdep.c
1239 (microblaze_linux_memory_remove_breakpoint): Likewise.
1240 * monitor.c (monitor_insert_breakpoint): Likewise.
1241 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1242 (procfs_insert_hw_breakpoint): Likewise.
1243 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1244 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1245 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1246 * remote-mips.c (mips_insert_breakpoint): Likewise.
1247 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1248
1249 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1250
1251 * valops.c (value_assign): Check for bit field assignments
1252 before calling architecture-specific register value
1253 conversion functions.
1254
1255 2014-10-03 Pierre Muller <muller@sourceware.org>
1256
1257 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1258
1259 2014-10-02 Pedro Alves <palves@redhat.com>
1260
1261 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1262 threads_are_executing.
1263 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1264 describing comment.
1265 * gdbthread.h (threads_are_executing): Declare.
1266 (handle_signal_stop) <random signals>: Don't print about the
1267 signal here if stopping.
1268 (end_stepping_range): Don't notify observers here.
1269 (normal_stop): Update the thread list. If stopped by a random
1270 signal or a stepping range ended, notify observers.
1271 * thread.c (threads_executing): New global.
1272 (init_thread_list): Clear 'threads_executing'.
1273 (set_executing): Set or clear 'threads_executing'.
1274 (threads_are_executing): New function.
1275 (update_threads_executing): New function.
1276 (update_thread_list): Use it.
1277
1278 2014-10-02 Pedro Alves <palves@redhat.com>
1279
1280 PR breakpoints/17431
1281 * breakpoint.c (update_breakpoints_after_exec): Don't create
1282 overlay, longjmp, std terminate nor exception breakpoints here.
1283
1284 2014-10-02 Pedro Alves <palves@redhat.com>
1285
1286 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1287 Adjust comments.
1288 * inferior.c (find_inferior_for_program_space): Give preference to
1289 the current inferior.
1290 * inferior.h (find_inferior_for_program_space): Update comment.
1291 * progspace.c (switch_to_program_space_and_thread): Prefer the
1292 current inferior if it's bound to the program space requested. If
1293 the inferior found doesn't have a PID yet, don't bother looking up
1294 a thread.
1295 * progspace.h (switch_to_program_space_and_thread): Adjust
1296 comment.
1297 * thread.c (any_thread_of_process, any_live_thread_of_process):
1298 Give preference to the current thread.
1299
1300 2014-10-01 Pedro Alves <palves@redhat.com>
1301
1302 * breakpoint.c (insert_bp_location): Error out if inserting a
1303 software breakpoint at a read-only address.
1304 * target.c (memory_xfer_check_region): New function, factored out
1305 from ...
1306 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1307 ULONGEST.
1308 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1309 against the memory region attributes.
1310
1311 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1312
1313 * NEWS: Announce new exit-code field in -list-thread-groups
1314 output.
1315 * inferior.c (exit_inferior_1): Don't clear exit code.
1316 (inferior_appeared): Clear exit code.
1317 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1318 code.
1319
1320 2014-10-01 Pedro Alves <palves@redhat.com>
1321
1322 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1323 GENERATED" along with emacs/vi read-only markers.
1324 * regformats/aarch64.dat: Regenerate.
1325 * regformats/arm-with-iwmmxt.dat: Regenerate.
1326 * regformats/arm-with-neon.dat: Regenerate.
1327 * regformats/arm-with-vfpv2.dat: Regenerate.
1328 * regformats/arm-with-vfpv3.dat: Regenerate.
1329 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1330 * regformats/i386/amd64-avx.dat: Regenerate.
1331 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1332 * regformats/i386/amd64-avx512.dat: Regenerate.
1333 * regformats/i386/amd64-linux.dat: Regenerate.
1334 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1335 * regformats/i386/amd64-mpx.dat: Regenerate.
1336 * regformats/i386/amd64.dat: Regenerate.
1337 * regformats/i386/i386-avx-linux.dat: Regenerate.
1338 * regformats/i386/i386-avx.dat: Regenerate.
1339 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1340 * regformats/i386/i386-avx512.dat: Regenerate.
1341 * regformats/i386/i386-linux.dat: Regenerate.
1342 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1343 * regformats/i386/i386-mmx.dat: Regenerate.
1344 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1345 * regformats/i386/i386-mpx.dat: Regenerate.
1346 * regformats/i386/i386.dat: Regenerate.
1347 * regformats/i386/x32-avx-linux.dat: Regenerate.
1348 * regformats/i386/x32-avx.dat: Regenerate.
1349 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1350 * regformats/i386/x32-avx512.dat: Regenerate.
1351 * regformats/i386/x32-linux.dat: Regenerate.
1352 * regformats/i386/x32.dat: Regenerate.
1353 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1354 * regformats/mips-dsp-linux.dat: Regenerate.
1355 * regformats/mips-linux.dat: Regenerate.
1356 * regformats/mips64-dsp-linux.dat: Regenerate.
1357 * regformats/mips64-linux.dat: Regenerate.
1358 * regformats/nios2-linux.dat: Regenerate.
1359 * regformats/rs6000/powerpc-32.dat: Regenerate.
1360 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1361 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1362 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1363 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1364 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1365 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1366 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1367 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1368 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1369 * regformats/s390-linux32.dat: Regenerate.
1370 * regformats/s390-linux32v1.dat: Regenerate.
1371 * regformats/s390-linux32v2.dat: Regenerate.
1372 * regformats/s390-linux64.dat: Regenerate.
1373 * regformats/s390-linux64v1.dat: Regenerate.
1374 * regformats/s390-linux64v2.dat: Regenerate.
1375 * regformats/s390-te-linux64.dat: Regenerate.
1376 * regformats/s390x-linux64.dat: Regenerate.
1377 * regformats/s390x-linux64v1.dat: Regenerate.
1378 * regformats/s390x-linux64v2.dat: Regenerate.
1379 * regformats/s390x-te-linux64.dat: Regenerate.
1380 * regformats/tic6x-c62x-linux.dat: Regenerate.
1381 * regformats/tic6x-c62x.dat: Regenerate.
1382 * regformats/tic6x-c64x-linux.dat: Regenerate.
1383 * regformats/tic6x-c64x.dat: Regenerate.
1384 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1385 * regformats/tic6x-c64xp.dat: Regenerate.
1386
1387 2014-10-01 Pedro Alves <palves@redhat.com>
1388
1389 * features/Makefile: Update comments.
1390 (XMLTOC): List all xml files we build C files from.
1391 (clean-cfiles): New rule.
1392
1393 2014-10-01 Pedro Alves <palves@redhat.com>
1394
1395 * features/i386/amd64-avx512-linux.c: Regenerate.
1396 * features/i386/amd64-avx512.c: Regenerate.
1397 * features/i386/x32-avx512-linux.c: Regenerate.
1398 * features/i386/x32-avx512.c: Regenerate.
1399
1400 2014-10-01 Pedro Alves <palves@redhat.com>
1401
1402 * features/Makefile (WHICH): Remove arm-with-m,
1403 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1404
1405 2014-10-01 Pedro Alves <palves@redhat.com>
1406
1407 * features/Makefile (clean): New rule.
1408
1409 2014-10-01 Pedro Alves <palves@redhat.com>
1410
1411 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1412 (zmm14h): Add missing end quotes.
1413
1414 2014-10-01 Pedro Alves <palves@redhat.com>
1415
1416 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1417 * features/aarch64.c: Regenerate.
1418
1419 2014-09-30 Don Breazeal <donb@codesourcery.com>
1420
1421 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1422 code so as to work with follow_fork_inferior.
1423 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1424 (inf_ttrace_create_inferior): Remove reference to
1425 inf_ttrace_vfork_ppid.
1426 (inf_ttrace_attach): Ditto.
1427 (inf_ttrace_detach): Ditto.
1428 (inf_ttrace_kill): Use current_inferior instead of
1429 inf_ttrace_vfork_ppid.
1430 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1431 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1432 inferior away from the parent.
1433 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1434 target_follow_fork.
1435 (follow_fork_inferior): New function.
1436 (follow_inferior_reset_breakpoints): Make function static.
1437 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1438 * linux-nat.c (linux_child_follow_fork): Move target-independent
1439 code to infrun.c:follow_fork_inferior.
1440
1441 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1442
1443 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1444 * gdbarch.c: Regenerate.
1445 * gdbarch.h: Likewise.
1446 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1447 gdbarch method 'regset_from_core_section'.
1448 (get_core_register_section): Remove handling for the case that
1449 regset == NULL and regset_from_core_section is defined.
1450 (get_core_registers): Drop check for deleted method.
1451 * procfs.c (procfs_do_thread_registers): Adjust comment.
1452
1453 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1454
1455 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1456 (linux_nat_make_corefile_notes): Remove.
1457 (linux_target_install_ops): Do not set target method
1458 'make_corefile_notes'.
1459 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1460 Remove field.
1461 (linux_corefile_thread_callback): Instead of args->collect, call
1462 linux_collect_thread_registers.
1463 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1464 NULL unless there is a regset iterator.
1465 (linux_make_corefile_notes_1): Remove.
1466 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1467 by linux_make_corefile_notes.
1468 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1469
1470 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1471
1472 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1473 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1474 Remove.
1475 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1476
1477 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1478
1479 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1480 (xtensa_iterate_over_regset_sections): New.
1481 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1482
1483 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1484
1485 * vax-tdep.c (vax_regset_from_core_section): Remove.
1486 (vax_iterate_over_regset_sections): New.
1487 (vax_gdbarch_init): Adjust gdbarch initialization.
1488
1489 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1490
1491 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1492 (tilegx_regset_from_core_section): Remove.
1493 (tilegx_iterate_over_regset_sections): New.
1494 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1495
1496 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1497
1498 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1499 (sparc_iterate_over_regset_sections): New.
1500 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1501 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1502 targets.
1503 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1504 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1505 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1506 target method 'make_corefile_notes'.
1507
1508 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1509
1510 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1511 'sizeof_gregset' and 'sizeof_fpregset'.
1512 * sh-tdep.c (sh_regset_from_core_section): Remove.
1513 (sh_iterate_over_regset_sections): New.
1514 (sh_gdbarch_init): Adjust gdbarch initialization.
1515 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1516 sizeof_fpregset.
1517 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1518 'sizeof_gregset'.
1519
1520 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1521
1522 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1523 (score7_linux_iterate_over_regset_sections): New.
1524 (score_gdbarch_init): Adjust gdbarch initialization.
1525
1526 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1527
1528 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1529 FreeBSD targets.
1530 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1531 method 'make_corefile_notes'.
1532 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1533 (ppcfbsd_regset_from_core_section): Remove.
1534 (ppcfbsd_iterate_over_regset_sections): New.
1535 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1536 initialization.
1537 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1538 (ppcnbsd_iterate_over_regset_sections): New.
1539 (ppcnbsd_init_abi): Adjust.
1540 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1541 (ppcobsd_iterate_over_regset_sections): New.
1542 (ppcobsd_init_abi): Adjust.
1543 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1544 (rs6000_aix_iterate_over_regset_sections): New.
1545 (rs6000_aix_init_osabi): Adjust.
1546
1547 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1548
1549 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1550 (nios2_regset_from_core_section): Remove.
1551 (nios2_iterate_over_regset_sections): New.
1552 (nios2_linux_init_abi): Adjust gdbarch initialization.
1553
1554 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1555
1556 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1557 (am33_iterate_over_regset_sections): New.
1558 (am33_linux_init_osabi): Adjust gdbarch initialization.
1559
1560 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1561
1562 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1563 (mips_linux_iterate_over_regset_sections): New.
1564 (mips_linux_init_abi): Adjust gdbarch initialization.
1565 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1566 (mips64obsd_iterate_over_regset_sections): New.
1567 (mips64obsd_init_abi): Adjust.
1568 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1569 (mipsnbsd_iterate_over_regset_sections): New.
1570 (mipsnbsd_init_abi): Adjust.
1571
1572 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1573
1574 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1575 (m88k_iterate_over_regset_sections): New.
1576 (m88k_gdbarch_init): Adjust gdbarch initialization.
1577
1578 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1579
1580 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1581 (ia64_linux_iterate_over_regset_sections): New.
1582 (ia64_linux_init_abi): Adjust gdbarch initialization.
1583
1584 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1585
1586 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1587 (m68kbsd_iterate_over_regset_sections): New.
1588 (m68kbsd_init_abi): Adjust gdbarch initialization.
1589 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1590 (m68k_linux_iterate_over_regset_sections): New.
1591 (m68k_linux_init_abi): Adjust gdbarch initialization.
1592
1593 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1594
1595 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1596 (m32r_linux_regset_from_core_section): Remove.
1597 (m32r_linux_iterate_over_regset_sections): New.
1598 (m32r_linux_init_abi): Adjust gdbarch initialization.
1599
1600 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1601
1602 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1603 (amd64obsd_iterate_over_regset_sections): New.
1604 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1605 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1606 Remove.
1607 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1608 regset_from_core_section initialization.
1609 * i386-tdep.c (i386_regset_from_core_section): Remove.
1610 (i386_iterate_over_regset_sections): New.
1611 (i386_gdbarch_init): Adjust gdbarch initialization.
1612 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1613 (i386_iterate_over_regset_sections): New prototype.
1614 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1615 Remove.
1616 (i386obsd_aout_iterate_over_regset_sections): New.
1617 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1618 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1619 targets.
1620 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1621 (amd64fbsd_init_abi): Call fbsd_init_abi.
1622 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1623 (i386fbsd4_init_abi): Call fbsd_init_abi.
1624 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1625 target method 'make_corefile_notes'.
1626 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1627
1628 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1629
1630 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1631 (hppa_hpux_iterate_over_regset_sections): New.
1632 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1633 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1634 (hppa_linux_iterate_over_regset_sections): New.
1635 (hppa_linux_init_abi): Adjust.
1636 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1637 (hppanbsd_iterate_over_regset_sections): New.
1638 (hppanbsd_init_abi): Adjust.
1639 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1640 (hppaobsd_iterate_over_regset_sections): New.
1641 (hppaobsd_init_abi): Adjust.
1642
1643 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1644
1645 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1646 (frv_linux_iterate_over_regset_sections): New.
1647 (frv_linux_init_abi): Adjust gdbarch initialization.
1648
1649 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1650
1651 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1652 (armbsd_iterate_over_regset_sections): New prototype.
1653 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1654 (armbsd_iterate_over_regset_sections): New.
1655 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1656 initialization.
1657
1658 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1659
1660 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1661 (alpha_linux_iterate_over_regset_sections): New.
1662 (alpha_linux_init_abi): Adjust gdbarch initialization.
1663 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1664 prototype.
1665 (alphanbsd_iterate_over_regset_sections): New prototype.
1666
1667 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1668
1669 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1670 Remove.
1671 (aarch64_linux_iterate_over_regset_sections): New.
1672 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1673
1674 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1675
1676 * fbsd-tdep.c: New file.
1677 * fbsd-tdep.h: New file.
1678 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1679 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1680 (ALLDEPFILES): Add fbsd-tdep.c.
1681
1682 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1683
1684 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1685 parameter.
1686 * gdbarch.h: Regenerate.
1687 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1688 iterator.
1689 (get_core_register_section): Add parameter 'regset' and use it, if
1690 set. Add parameter 'min_size' and verify the bfd section size
1691 against it.
1692 (get_core_registers_cb): Add parameter 'regset' and pass it to
1693 get_core_register section. For the "standard" register sections
1694 ".reg" and ".reg2", set an appropriate default for human_name.
1695 (get_core_registers): Don't abort when the gdbarch has an iterator
1696 but no regset_from_core_section. Add NULL/0 for parameters
1697 'regset'/'min_size' in calls to get_core_register_section.
1698 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1699 'regset' and use it instead of calling the
1700 regset_from_core_section gdbarch method.
1701 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1702 * i386-tdep.c (i386_supply_xstateregset)
1703 (i386_collect_xstateregset, i386_xstateregset): Moved to
1704 i386-linux-tdep.c.
1705 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1706 .reg-xstate.
1707 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1708 core file support only if the regset iterator hasn't been set.
1709 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1710 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1711 Moved from i386-tdep.c and renamed to *_linux*.
1712 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1713 each callback invocation. Allow any .reg-xstate size when reading
1714 from a core file.
1715 * amd64-tdep.c (amd64_supply_xstateregset)
1716 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1717 amd64-linux-tdep.c.
1718 (amd64_regset_from_core_section): Remove.
1719 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1720 install an amd64-specific regset_from_core_section gdbarch method.
1721 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1722 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1723 Moved from amd64-tdep.c and renamed to *_linux*.
1724 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1725 to each callback invocation. Allow any .reg-xstate size when
1726 reading from a core file.
1727 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1728 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1729 each callback invocation.
1730 (arm_linux_init_abi): No longer set the regset_from_core_section
1731 gdbarch method.
1732 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1733 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1734 each callback invocation.
1735 (ppc_linux_init_abi): No longer set the regset_from_core_section
1736 gdbarch method.
1737 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1738 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1739 (s390_regset_from_core_section): Remove.
1740 (s390_iterate_over_regset_sections): Add regset parameter to each
1741 callback invocation.
1742 (s390_gdbarch_init): No longer set the regset_from_core_section
1743 gdbarch method. Drop initialization of deleted tdep fields.
1744
1745 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1746
1747 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1748 (amd64_linux_iterate_over_regset_sections): New.
1749 (amd64_linux_init_abi_common): Don't install the regset section
1750 list, but the new iterator in gdbarch.
1751 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1752 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1753 (arm_linux_iterate_over_regset_sections): ...here. New function.
1754 (arm_linux_init_abi): Set iterator instead of section list.
1755 * corelow.c (get_core_registers_cb): New function, logic moved
1756 from...
1757 (get_core_registers): ...loop body here. Use new iterator method
1758 instead of walking through the regset section list.
1759 * gdbarch.sh: Remove 'core_regset_sections'. New method
1760 'iterate_over_regset_sections'. New typedef
1761 'iterate_over_regset_sections_cb'.
1762 * gdbarch.c: Regenerate.
1763 * gdbarch.h: Likewise.
1764 * i386-linux-tdep.c (i386_linux_regset_sections)
1765 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1766 Remove.
1767 (i386_linux_iterate_over_regset_sections): New.
1768 (i386_linux_init_abi): Don't choose a regset section list, but
1769 install new iterator in gdbarch.
1770 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1771 (linux_collect_regset_section_cb): New function, logic moved
1772 from...
1773 (linux_collect_thread_registers): ...loop body here. Use iterator
1774 method instead of walking through list.
1775 (linux_make_corefile_notes_1): Check for presence of iterator
1776 method instead of regset section list.
1777 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1778 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1779 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1780 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1781 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1782 (ppc_linux_init_abi): Don't choose from above regset section
1783 lists, but install new iterator in gdbarch.
1784 * regset.h (struct core_regset_section): Remove.
1785 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1786 have_linux_v1, have_linux_v2, and have_tdb.
1787 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1788 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1789 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1790 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1791 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1792 (s390_iterate_over_regset_sections): ...here. New function. Use
1793 new tdep fields.
1794 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1795 regset section lists, but install new iterator.
1796
1797 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1798
1799 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1800
1801 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1802
1803 * progspace.c (print_program_space): Don't prune program spaces
1804 before printing them.
1805
1806 2014-09-25 Pedro Alves <palves@redhat.com>
1807
1808 * infrun.c (user_visible_resume_ptid): Don't check
1809 singlestep_breakpoints_inserted_p.
1810
1811 2014-09-25 Pedro Alves <palves@redhat.com>
1812
1813 * breakpoint.c (should_be_inserted): Add debug output.
1814
1815 2014-09-25 Pedro Alves <palves@redhat.com>
1816
1817 * infrun.c (stepping_past_instruction_at)
1818 (clear_exit_convenience_vars): Point at infrun.h instead of
1819 inferior.h.
1820 (handle_signal_stop): Fix typo.
1821
1822 2014-09-24 Yao Qi <yao@codesourcery.com>
1823
1824 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1825 bitmask.
1826
1827 2014-09-22 Gary Benson <gbenson@redhat.com>
1828
1829 * target.c (target_stop): Updated comment.
1830
1831 2014-09-22 Gary Benson <gbenson@redhat.com>
1832
1833 * target/target.h (target_stop_ptid): Renamed as...
1834 (target_stop_and_wait): New function. Updated comment.
1835 All uses updated.
1836 (target_continue_ptid): Renamed as...
1837 (target_continue_no_signal): New function. Updated comment.
1838 All uses updated.
1839
1840 2014-09-22 Pedro Alves <palves@redhat.com>
1841
1842 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1843 and "auto" merged.
1844 * breakpoint.c (enum ugll_insert_mode): New enum.
1845 (always_inserted_mode): Now a plain boolean.
1846 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1847 (breakpoints_always_inserted_mode): Delete.
1848 (breakpoints_should_be_inserted_now): New function.
1849 (insert_breakpoints): Pass UGLL_INSERT to
1850 update_global_location_list instead of calling
1851 insert_breakpoint_locations manually.
1852 (create_solib_event_breakpoint_1): New, factored out from ...
1853 (create_solib_event_breakpoint): ... this.
1854 (create_and_insert_solib_event_breakpoint): Use
1855 create_solib_event_breakpoint_1 instead of calling
1856 insert_breakpoint_locations manually.
1857 (update_global_location_list): Change parameter type from boolean
1858 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1859 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1860 (update_global_location_list_nothrow): Change parameter type from
1861 boolean to enum ugll_insert_mode.
1862 (_initialize_breakpoint): "breakpoint always-inserted" option is
1863 now a boolean command. Update help text.
1864 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1865 (breakpoints_should_be_inserted_now): New declaration.
1866 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1867 Remove breakpoints_always_inserted_mode check.
1868 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1869 * remote.c (remote_start_remote): Likewise.
1870
1871 2014-09-22 Pedro Alves <palves@redhat.com>
1872
1873 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1874 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1875 Instead, pass UGLL_INSERT to update_global_location_list.
1876 (update_global_location_list): Change parameter type from boolean
1877 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1878 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1879 (create_solib_event_breakpoint_1): New, factored out from ...
1880 (create_solib_event_breakpoint): ... this.
1881 (create_and_insert_solib_event_breakpoint): Use
1882 create_solib_event_breakpoint_1 instead of calling
1883 insert_breakpoint_locations manually.
1884 (update_global_location_list): Handle UGLL_INSERT.
1885
1886 2014-09-22 Pedro Alves <palves@redhat.com>
1887
1888 * breakpoint.c (enum ugll_insert_mode): New enum.
1889 (update_global_location_list)
1890 (update_global_location_list_nothrow): Change parameter type from
1891 boolean to enum ugll_insert_mode. All callers adjusted.
1892
1893 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1894
1895 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1896 SystemTap support in GDB.
1897
1898 2014-09-19 Don Breazeal <donb@codesourcery.com>
1899
1900 * linux-nat.c (linux_handle_extended_wait): Call
1901 linux_ptrace_get_extended_event.
1902 (wait_lwp): Call linux_is_extended_waitstatus.
1903 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1904 and linux_is_extended_waitstatus.
1905 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1906 linux_ptrace_get_extended_event.
1907 (linux_ptrace_get_extended_event): New function.
1908 (linux_is_extended_waitstatus): New function.
1909 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1910 (linux_is_extended_waitstatus): New declarations.
1911
1912 2014-09-19 Yao Qi <yao@codesourcery.com>
1913
1914 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1915 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1916 comments. Callers update.
1917 (dwarf_decode_lines): Likewise.
1918 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1919 comments. Skip the line table if 'lowpc' is greater than
1920 'address'. Don't check
1921 dwarf2_per_objfile->has_section_at_zero.
1922
1923 2014-09-18 Doug Evans <dje@google.com>
1924
1925 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1926 * python/py-symtab.c (stpy_get_producer): New function.
1927 (symtab_object_getset): Add "producer" attribute.
1928
1929 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1930
1931 PR gdb/17384
1932 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1933 (do_captured_read_memory_integer): Remove.
1934 (safe_read_memory_integer): Use target_read_memory directly instead
1935 of catching errors in do_captured_read_memory_integer.
1936
1937 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1938
1939 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1940 not gdb/doc.
1941
1942 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1943
1944 * objc-lang.c (find_implementation_from_class): Remove dead code.
1945
1946 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1947
1948 PR cli/7233
1949 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1950 "fprintf_unfiltered (gdb_stdlog...)".
1951
1952 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1953
1954 PR breakpoints/12526
1955 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1956 val_bitsize.
1957 * breakpoint.c (watch_command_1): Use these fields to retain
1958 bitfield information.
1959 (extract_bitfield_from_watchpoint_value): New function.
1960 (watchpoint_check): Use it.
1961 (update_watchpoint): Use it. Optimize the address and length of a
1962 HW watchpoint pointing to a bitfield.
1963 * value.h (unpack_value_bitfield): New prototype.
1964 * value.c (unpack_value_bitfield): Make extern.
1965
1966 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1967
1968 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1969 x86-dregs.o.
1970 * gnu-nat.c (inf_threads): New function.
1971 * gnu-nat.h (inf_threads_ftype): New typedef.
1972 (inf_threads): New declaration.
1973 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1974 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1975 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1976 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1977 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1978 (i386_gnu_dr_get_control): New functions.
1979 (reg_addr): New structure.
1980 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1981 i386 debugging register hooks.
1982 * NEWS: Mention this.
1983
1984 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1985
1986 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
1987 vector data transfer instructions.
1988 (arm_record_coproc_data_proc): Updated.
1989
1990 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1991
1992 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
1993 arm_record_exreg_ld_st_insn.
1994 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
1995 load/store insns.
1996
1997 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
1998
1999 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2000 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2001 processing instructions.
2002
2003 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2004
2005 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2006 for advance SIMD struct ld/st insn.
2007 (thumb2_record_decode_insn_handler): Replace stub handler with
2008 thumb2_record_asimd_struct_ld_st.
2009
2010 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2011
2012 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2013 for asimd, vfp and coprocessor insns.
2014 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2015 and coprocessor insns.
2016 (thumb2_record_coproc_insn): New function.
2017 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2018 handlers.
2019 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2020 opcode 110 insns.
2021
2022 2014-09-13 Doug Evans <xdje42@gmail.com>
2023
2024 * NEWS: Mention new "queue-signal" command.
2025 * infcmd.c (queue_signal_command): New function.
2026 (_initialize_infcmd): Add new queue-signal command.
2027
2028 2014-09-13 Doug Evans <xdje42@gmail.com>
2029
2030 * linux-nat.c (wait_lwp): Add debugging printf.
2031 (linux_nat_wait_1): Ditto.
2032
2033 2014-09-12 Pedro Alves <palves@redhat.com>
2034
2035 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2036 (create_and_insert_solib_event_breakpoint): New functions.
2037 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2038 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2039 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2040 (remove_dbx_link_breakpoint): Delete function.
2041 (insert_dbx_link_bpt_in_file): Use
2042 create_and_insert_solib_event_breakpoint instead of
2043 deprecated_insert_raw_breakpoint.
2044 (procfs_wait): Don't check whether we hit __dbx_link here.
2045 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2046 here.
2047 * solib-irix.c (base_breakpoint): Delete global.
2048 (disable_break): Delete function.
2049 (enable_break): Use create_solib_event_breakpoint
2050 instead of deprecated_insert_raw_breakpoint.
2051 (irix_solib_handle_event): New function.
2052 (irix_solib_create_inferior_hook): Don't run the target or disable
2053 the mapping-complete breakpoint here.
2054 (_initialize_irix_solib): Install irix_solib_handle_event as
2055 so_ops->handle_event hook.
2056
2057 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2058 Ulrich Weigand  <uweigand@de.ibm.com>
2059
2060 PR tdep/17379
2061 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2062 instead of read_memory_unsigned_integer.
2063
2064 2014-09-12 Gary Benson <gbenson@redhat.com>
2065
2066 * nat/linux-waitpid.c: Include common-defs.h.
2067 [GDBSERVER]: Add FIXME comment.
2068 [!GDBSERVER]: Don't include defs.h or signal.h.
2069 (linux_debug) [!GDBSERVER]: Remove empty block.
2070
2071 2014-09-12 Gary Benson <gbenson@redhat.com>
2072
2073 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2074 Don't include defs.h or server.h.
2075
2076 2014-09-12 Gary Benson <gbenson@redhat.com>
2077
2078 * nat/linux-btrace.c: Include common-defs.h.
2079 Don't include defs.h, server.h or gdbthread.h.
2080 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2081
2082 2014-09-12 Gary Benson <gbenson@redhat.com>
2083
2084 * common/agent.c: Include common-defs.h.
2085 Don't include defs.h or server.h.
2086 * common/buffer.c: Likewise.
2087 * common/common-debug.c: Likewise.
2088 * common/common-utils.c: Likewise.
2089 * common/errors.c: Likewise.
2090 * common/filestuff.c: Likewise.
2091 * common/format.c: Likewise.
2092 * common/gdb_vecs.c: Likewise.
2093 * common/print-utils.c: Likewise.
2094 * common/ptid.c: Likewise.
2095 * common/rsp-low.c: Likewise.
2096 * common/signals.c: Likewise.
2097 * common/vec.c: Likewise.
2098 * common/xml-utils.c: Likewise.
2099 * nat/linux-osdata.c: Likewise.
2100 * nat/linux-procfs.c: Likewise.
2101 * nat/linux-ptrace.c: Likewise.
2102 * nat/mips-linux-watch.c: Likewise.
2103 * target/waitstatus.c: Likewise.
2104
2105 2014-09-12 Tom Tromey <tromey@redhat.com>
2106 Gary Benson <gbenson@redhat.com>
2107
2108 * common/common-regcache.h: New file.
2109 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2110 * regcache.h: Include common-regcache.h.
2111 (regcache_read_pc): Don't declare.
2112 * regcache.c (get_thread_regcache_for_ptid): New function.
2113 * nat/linux-btrace.c: Don't include regcache.h.
2114 Include common-regcache.h.
2115 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2116
2117 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2118
2119 * regcache.h (struct regset): Declare.
2120
2121 2014-09-11 Pedro Alves <palves@redhat.com>
2122
2123 PR gdb/17347
2124 * main.c: Include "infrun.h".
2125 (catch_command_errors, catch_command_errors_const): Wait for the
2126 foreground command to complete.
2127 * top.c (maybe_wait_sync_command_done): New function, factored out
2128 from ...
2129 (maybe_wait_sync_command_done): ... here.
2130 * top.h (maybe_wait_sync_command_done): New declaration.
2131
2132 2014-09-11 Tom Tromey <tromey@redhat.com>
2133 Gary Benson <gbenson@redhat.com>
2134
2135 * common/symbol.h: New file.
2136 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2137 * minsyms.c (find_minimal_symbol_address): New function.
2138 * common/agent.c: Include common/symbol.h.
2139 [!GDBSERVER]: Don't include objfiles.h.
2140 (agent_look_up_symbols): Use find_minimal_symbol_address.
2141
2142 2014-09-11 Gary Benson <gbenson@redhat.com>
2143
2144 * target/target.h (target_stop_ptid, target_continue_ptid):
2145 Declare.
2146 * target.c (target_stop_ptid, target_continue_ptid): New
2147 functions.
2148 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2149 (agent_run_command): Always use target_stop_ptid and
2150 target_continue_ptid.
2151
2152 2014-09-11 Tom Tromey <tromey@redhat.com>
2153 Gary Benson <gbenson@redhat.com>
2154
2155 * target/target.h: New file.
2156 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2157 * target.h: Include target/target.h.
2158 (target_read_memory, target_write_memory): Don't declare.
2159 * target.c (target_read_uint32): New function.
2160 * common/agent.c: Include target/target.h.
2161 [!GDBSERVER]: Don't include target.h.
2162 (helper_thread_id): Type changed to uint32_t.
2163 (agent_get_helper_thread_id): Use target_read_uint32.
2164 (agent_run_command): Always use target_read_memory and
2165 target_write_memory.
2166 (agent_capability): Type changed to uint32_t.
2167 (agent_capability_check): Use target_read_uint32.
2168
2169 2014-09-11 Gary Benson <gbenson@redhat.com>
2170
2171 * common/common-debug.h (show_debug_regs): Declare.
2172 * common/common-debug.c (show_debug_regs): Define.
2173 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2174 all uses with show_debug_regs. Replace all uses that considered
2175 debug_hw_points as a multi-value integer with straight boolean
2176 uses.
2177 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2178 with show_debug_regs.
2179 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2180 all uses with show_debug_regs.
2181 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2182 uses with show_debug_regs.
2183
2184 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2185
2186 * findvar.c (address_from_register): Handle targets requiring
2187 a special conversion routine even for plain pointer types.
2188
2189 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2190
2191 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2192 (store_register): Do not call exec_one_dummy_insn.
2193
2194 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2195
2196 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2197 dereference it first. Use value_enclosing_type instead of
2198 value_type.
2199 (ada_array_length): Likewise.
2200
2201 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2202
2203 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2204 Adjust function implementation and documentation accordingly.
2205 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2206 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2207 Update call to ada_value_ptr_subscript.
2208
2209 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2210
2211 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2212 instead of VAL's type.
2213
2214 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2215
2216 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2217
2218 2014-09-09 Doug Evans <xdje42@gmail.com>
2219
2220 PR guile/17367
2221 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2222 last parameter to pkg-config, not first.
2223 * configure.ac: Pass --with-guile provided pkg-config path to
2224 GDB_GUILE_PROGRAM_NAMES.
2225 * configure: Regenerate.
2226
2227 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2228
2229 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2230 Bertazi".
2231
2232 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2233
2234 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2235 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2236 the list of sections determining GDB_OSABI_IRIX.
2237
2238 2014-09-09 James Hogan <james.hogan@imgtec.com>
2239
2240 * MAINTAINERS (Write After Approval): Add "James Hogan".
2241
2242 2014-09-09 James Hogan <james.hogan@imgtec.com>
2243
2244 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2245
2246 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2247
2248 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2249
2250 2014-09-08 Doug Evans <xdje42@gmail.com>
2251
2252 PR 17247
2253 * guile.c: #include <signal.h>.
2254 (_initialize_guile): Block SIGCHLD while initializing Guile.
2255
2256 Replaces the following, which is reverted.
2257
2258 2014-07-26 Doug Evans <xdje42@gmail.com>
2259
2260 PR 17185
2261 * configure.ac: Add check for header gc/gc.h.
2262 Add check for function setenv.
2263 * configure: Regenerate.
2264 * config.in: Regenerate.
2265 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2266
2267 2014-09-08 Doug Evans <xdje42@gmail.com>
2268
2269 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2270 with named constant. Fix style of pointer comparison.
2271 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2272
2273 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2274
2275 PR gdb/17035
2276 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2277 decide whether we display the command on "show user".
2278 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2279 printing command name.
2280 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2281 * cli/cli-decode.c (cli_user_command_p): Create helper function
2282 to verify whether cmd_list_element is a user-defined command.
2283
2284 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2285
2286 PR python/17355
2287 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2288 Fix goto out of TRY_CATCH.
2289
2290 2014-09-06 Doug Evans <xdje42@gmail.com>
2291 Tom Tromey <tromey@redhat.com>
2292
2293 PR 15276
2294 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2295 $_any_caller_matches.
2296 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2297 * python/lib/gdb/function/caller_is.py: New file.
2298
2299 2014-09-06 Doug Evans <xdje42@gmail.com>
2300
2301 * infcmd.c (program_info): Fix typo.
2302
2303 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2304
2305 PR gdb/17235
2306 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2307 'number'. New variable 'has_digit'. Rewrite code to deal with
2308 subexpressions on SDT probes.
2309
2310 2014-09-04 Pedro Alves <palves@redhat.com>
2311
2312 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2313 the input is only one character long.
2314
2315 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2316
2317 PR fortran/17237
2318 * f-valprint.c (f_val_print): Specify the correct print option to
2319 use when printing integer values.
2320
2321 2014-09-04 Gary Benson <gbenson@redhat.com>
2322
2323 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2324 Remove code to cope with LWPs wrapped as PIDs.
2325 Add assertions to ensure no wrapped LWPs are passed.
2326
2327 2014-09-04 Pedro Alves <palves@redhat.com>
2328
2329 * value.c (value_ranges_copy_adjusted): New function, factored out
2330 from ...
2331 (value_contents_copy_raw): ... here.
2332 (unpack_value_bits_as_long_1): Rename back to ...
2333 (unpack_bits_as_long): ... this. Remove 'original_value' and
2334 'result' parameters. Change return type to LONGEST.
2335 (unpack_value_bits_as_long): Delete.
2336 (unpack_value_field_as_long_1): Delete.
2337 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2338 (unpack_value_bitfield): New function.
2339 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2340 (value_fetch_lazy): Use unpack_value_bitfield.
2341 * value.h (unpack_value_bits_as_long): Delete declaration.
2342
2343 2014-09-03 Sasha Smundak <asmundak@google.com>
2344
2345 * python/py-frame.c (frapy_read_register): New function.
2346
2347 2014-09-03 James Hogan <james.hogan@imgtec.com>
2348
2349 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2350 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2351
2352 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2353
2354 PR python/16699
2355 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2356 function.
2357 (add_cmd): Set "completer_handle_brkchars" to NULL.
2358 * cli/cli-decode.h (struct cmd_list_element)
2359 <completer_handle_brkchars>: New field.
2360 * command.h (completer_ftype_void): New typedef.
2361 (set_cmd_completer_handle_brkchars): New prototype.
2362 * completer.c (set_gdb_completion_word_break_characters): New
2363 function.
2364 (complete_line_internal): Call "completer_handle_brkchars"
2365 callback from command.
2366 * completer.h: Include "command.h".
2367 (set_gdb_completion_word_break_characters): New prototype.
2368 * python/py-cmd.c (cmdpy_completer_helper): New function.
2369 (cmdpy_completer_handle_brkchars): New function.
2370 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2371 (cmdpy_init): Set completer_handle_brkchars to
2372 cmdpy_completer_handle_brkchars.
2373
2374 2014-09-03 Gary Benson <gbenson@redhat.com>
2375
2376 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2377 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2378 Loop conditions changed to equivalent form.
2379 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2380 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2381 ALL_DEBUG_ADDRESS_REGISTERS.
2382
2383 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2384
2385 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2386 description fix.
2387
2388 2014-09-02 Doug Evans <dje@google.com>
2389
2390 * typeprint.c (find_global_typedef): Fix comment.
2391
2392 2014-09-02 Gary Benson <gbenson@redhat.com>
2393
2394 * i386-nat.h: Renamed as...
2395 * x86-nat.h: New file. All type, function and variable name
2396 prefixes changed from "i386_" to "x86_". All references updated.
2397 * i386-nat.c: Renamed as...
2398 * x86-nat.c: New file. All type, function and variable name
2399 prefixes changed from "i386_" to "x86_". All references updated.
2400 * common/i386-xstate.h: Renamed as...
2401 * common/x86-xstate.h: New file. All type, function and variable
2402 name prefixes changed from "i386_" to "x86_". All references
2403 updated.
2404 * nat/i386-cpuid.h: Renamed as...
2405 * nat/x86-cpuid.h: New file. All type, function and variable name
2406 prefixes changed from "i386_" to "x86_". All references updated.
2407 * nat/i386-gcc-cpuid.h: Renamed as...
2408 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2409 name prefixes changed from "i386_" to "x86_". All references
2410 updated.
2411 * nat/i386-dregs.h: Renamed as...
2412 * nat/x86-dregs.h: New file. All type, function and variable name
2413 prefixes changed from "i386_" to "x86_". All references updated.
2414 * nat/i386-dregs.c: Renamed as...
2415 * nat/x86-dregs.c: New file. All type, function and variable name
2416 prefixes changed from "i386_" to "x86_". All references updated.
2417
2418 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2419
2420 * varobj.c (_initialize_varobj): Move to the end of file.
2421
2422 2014-08-29 Gary Benson <gbenson@redhat.com>
2423
2424 * common/common-exceptions.h: New file.
2425 * common/common-exceptions.c: Likewise.
2426 * Makefile.in (SFILES): Add common/common-exceptions.c.
2427 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2428 (COMMON_OBS): Add common-exceptions.o.
2429 (common-exceptions.o): New rule.
2430 * exceptions.h (common-exceptions.h): Include.
2431 (gdb_setjmp.h): Do not include.
2432 (return_reason): Moved to common-exceptions.h.
2433 (enum return_reason): Likewise.
2434 (RETURN_MASK): Likewise.
2435 (typedef return_mask): Likewise.
2436 (enum errors): Likewise.
2437 (struct gdb_exception): Likewise.
2438 (exceptions_state_mc_init): Likewise.
2439 (exceptions_state_mc_action_iter): Likewise.
2440 (exceptions_state_mc_action_iter_1): Likewise.
2441 (TRY_CATCH): Likewise.
2442 (throw_exception): Likewise.
2443 (throw_verror): Likewise.
2444 (throw_vquit): Likewise.
2445 (throw_error): Likewise.
2446 (throw_quit): Likewise.
2447 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2448 (enum catcher_action): Likewise.
2449 (struct catcher): Likewise.
2450 (current_catcher): Likewise.
2451 (catcher_list_size): Likewise.
2452 (exceptions_state_mc_init): Likewise.
2453 (catcher_pop): Likewise.
2454 (exceptions_state_mc): Likewise.
2455 (exceptions_state_mc_action_iter): Likewise.
2456 (exceptions_state_mc_action_iter_1): Likewise.
2457 (throw_exception): Likewise.
2458 (exception_messages): Likewise.
2459 (exception_messages_size): Likewise.
2460 (throw_it): Likewise.
2461 (throw_verror): Likewise.
2462 (throw_vquit): Likewise.
2463 (throw_error): Likewise.
2464 (throw_quit): Likewise.
2465 (prepare_to_throw_exception): New function.
2466
2467 2014-08-29 Gary Benson <gbenson@redhat.com>
2468
2469 * common/gdb_setjmp.h: New file.
2470 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2471 * configure.ac: Move sigsetjmp check...
2472 * common/common.m4: ...here.
2473 * configure: Regenerate.
2474 * cp-support.c (SIGJMP_BUF): Delete.
2475 (SIGSETJMP): Likewise.
2476 (SIGLONGJMP): Likewise.
2477 * exceptions.h (gdb_setjmp.h): Include.
2478 (setjmp.h): Do not include.
2479 (EXCEPTIONS_SIGJMP_BUF): Delete.
2480 (EXCEPTIONS_SIGSETJMP): Likewise.
2481 (EXCEPTIONS_SIGLONGJMP): Likewise.
2482 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2483 from gdb_setjmp.h.
2484 * exceptions.c: Likewise.
2485
2486 2014-08-29 Gary Benson <gbenson@redhat.com>
2487
2488 * cleanups.h: Moved to...
2489 * common/cleanups.h: New file.
2490 * cleanups.c: Moved to...
2491 * common/cleanups.c: New file. Include common-defs.h and
2492 cleanups.h. Do not include defs.h.
2493 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2494 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2495 (cleanups.o): New rule.
2496
2497 2014-08-29 Gary Benson <gbenson@redhat.com>
2498
2499 * common/errors.h (internal_warning): New declaration.
2500 (internal_vwarning): Likewise.
2501 * common/errors.c (internal_warning): New function.
2502 * utils.h (internal_warning): Don't declare.
2503 (internal_vwarning): Likewise.
2504 * utils.c (internal_warning): Removed.
2505
2506 2014-08-29 Gary Benson <gbenson@redhat.com>
2507
2508 * main.c (captured_main): Use warning during startup.
2509 Prefix startup warning messages with command name.
2510
2511 2014-08-29 Gary Benson <gbenson@redhat.com>
2512
2513 * main.c (captured_main): Handle usage errors with error.
2514
2515 2014-08-29 Gary Benson <gbenson@redhat.com>
2516
2517 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2518 exit pair with a call to error. Wrap the message with _().
2519
2520 2014-08-29 Gary Benson <gbenson@redhat.com>
2521
2522 * main.c (captured_main): Replace a fprintf/exit
2523 pair with a call to error. Wrap the message with _().
2524
2525 2014-08-29 Gary Benson <gbenson@redhat.com>
2526
2527 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2528 pairs with calls to error. Wrap the message with _().
2529
2530 2014-08-29 Gary Benson <gbenson@redhat.com>
2531
2532 * utils.c (vwarning): Protect calls to target_terminal_ours
2533 and wrap_here.
2534
2535 2014-08-29 Gary Benson <gbenson@redhat.com>
2536
2537 * exceptions.c (print_flush): Protect calls to
2538 target_terminal_ours and wrap_here.
2539
2540 2014-08-29 Gary Benson <gbenson@redhat.com>
2541
2542 * utils.h (filtered_printing_initialized): New declaration.
2543 * utils.c (abort_with_message): New function.
2544 (internal_vproblem): Use abort_with_message for first level
2545 recursive internal problems, and if gdb_stderr is not set up.
2546 Protect calls to target_terminal_ours, begin_line and query.
2547
2548 2014-08-28 Doug Evans <dje@google.com>
2549
2550 * symtab.c (in_prologue): Move definition to better spot.
2551 (skip_prologue_using_sal): Ditto.
2552
2553 2014-08-28 Doug Evans <dje@google.com>
2554
2555 * symtab.c (find_function_start_sal): Move definition to better spot.
2556
2557 2014-08-28 Yao Qi <yao@codesourcery.com>
2558
2559 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2560 found_stack_adjust in forward scan. Remove condition check
2561 on found_stack_adjust which is always true. Indent the code.
2562
2563 2014-08-28 Yao Qi <yao@codesourcery.com>
2564
2565 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2566 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2567 (dwarf_decode_lines): Remove argument
2568 want_line_info. Remove condition check on want_line_info.
2569 Callers update.
2570
2571 2014-08-27 Doug Evans <dje@google.com>
2572
2573 * dwarf2read.c (dwarf_record_line): Fix typo.
2574
2575 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2576
2577 * target.h (struct target_ops::to_terminal_save_ours): Remove
2578 declaration.
2579 (target_terminal_save_ours): Remove macro.
2580 * target-delegates.c: Regenerate.
2581 * inf-child.c (inf_child_target): Don't set the nonexistent
2582 field to_terminal_save_ours.
2583 * inferior.h (child_terminal_save_ours): Remove declaration.
2584 * terminal.h (gdb_save_tty_state): New declaration.
2585 * inflow.c (child_terminal_save_ours): Rename to ...
2586 (gdb_save_tty_state): ... this.
2587 * tui/tui.c: Include terminal.h.
2588 (tui_enable): Use gdb_save_tty_state instead of
2589 target_terminal_save_ours.
2590 (tui_disable): Likewise.
2591
2592 2014-08-25 Doug Evans <dje@google.com>
2593
2594 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2595 Pass NULL instead of 0 for context pointer.
2596
2597 2014-08-25 Yao Qi <yao@codesourcery.com>
2598
2599 * dwarf2read.c: Fix grammatical error.
2600
2601 2014-08-24 Yao Qi <yao@codesourcery.com>
2602
2603 * dwarf2read.c (scan_partial_symbols): Update comments.
2604 Rename argument 'need_pc' with 'set_addrmap'.
2605 (add_partial_namespace): Rename argument 'need_pc' with
2606 'set_addrmap'.
2607 (add_partial_module): Likewise.
2608 (add_partial_subprogram): Likewise. Update comments.
2609 (dwarf2_name): Fix typo.
2610
2611 2014-08-22 Doug Evans <dje@google.com>
2612
2613 PR 17276
2614 * dwarf2read.c (dwarf_record_line_p): New function.
2615 (dwarf_decode_lines_1): Ignore subsequent line number entries
2616 for the same line if any entry had a non-zero discriminator.
2617
2618 2014-08-22 Doug Evans <dje@google.com>
2619
2620 * buildsym.h (record_line_ftype): New typedef.
2621 (record_line): Use it.
2622 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2623 (dwarf_decode_lines_1): Call them.
2624
2625 2014-08-22 Yao Qi <yao@codesourcery.com>
2626
2627 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2628 (ctf_end): Remove code.
2629
2630 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2631
2632 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2633 (linux_make_corefile_notes): call update_thread_list, protected against
2634 exceptions.
2635
2636 2014-08-21 Pedro Alves <palves@redhat.com>
2637
2638 * infcmd.c (attach_command): Remove comment.
2639
2640 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2641
2642 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2643 unsigned LONGEST to ULONGEST.
2644
2645 2014-08-20 Pedro Alves <palves@redhat.com>
2646
2647 * Makefile.in (check-read1): New rule.
2648
2649 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2650
2651 * value.c (value_from_contents_and_address): Strip resolved_type's
2652 typedef layers before checking its TYPE_DATA_LOCATION.
2653
2654 2014-08-20 Pedro Alves <palves@redhat.com>
2655
2656 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2657
2658 2014-08-20 Yao Qi <yao@codesourcery.com>
2659
2660 * amd64-tdep.c (amd64_classify): Add a blank line after the
2661 example. Move "*/" to a new line.
2662 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2663 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2664 * dwarf2read.c (psymtab_include_file_name): Likewise.
2665
2666 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2667 Pedro Alves <palves@redhat.com>
2668
2669 PR symtab/14604
2670 PR symtab/14605
2671 * ada-lang.c (coerce_unspec_val_to_type): Use
2672 value_contents_copy_raw.
2673 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2674 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2675 * cp-valprint.c (cp_print_value_fields): Let the common printing
2676 code handle optimized out values.
2677 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2678 * d-valprint.c (dynamic_array_type): Use
2679 value_bits_any_optimized_out.
2680 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2681 check_any_valid fields.
2682 (check_pieced_value_bits): Delete and inline ...
2683 (check_pieced_synthetic_pointer): ... here.
2684 (check_pieced_value_validity): Delete.
2685 (check_pieced_value_invalid): Delete.
2686 (pieced_value_funcs): Remove check_validity and check_any_valid
2687 fields.
2688 (read_pieced_value): Use mark_value_bits_optimized_out.
2689 (write_pieced_value): Switch to use
2690 mark_value_bytes_optimized_out.
2691 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2692 of assuming the whole value is optimized out.
2693 * findvar.c (read_frame_register_value): Remove special handling
2694 of optimized out registers.
2695 (value_from_register): Use mark_value_bytes_optimized_out.
2696 * frame-unwind.c (frame_unwind_got_optimized): Use
2697 mark_value_bytes_optimized_out.
2698 * jv-valprint.c (java_value_print): Adjust.
2699 (java_print_value_fields): Let the common printing code handle
2700 optimized out values.
2701 * mips-tdep.c (mips_print_register): Remove special handling of
2702 optimized out registers.
2703 * opencl-lang.c (lval_func_check_validity): Delete.
2704 (lval_func_check_any_valid): Delete.
2705 (opencl_value_funcs): Remove check_validity and check_any_valid
2706 fields.
2707 * p-valprint.c (pascal_object_print_value_fields): Let the common
2708 printing code handle optimized out values.
2709 * stack.c (read_frame_arg): Remove special handling of optimized
2710 out values. Fetch both VAL and ENTRYVAL before comparing
2711 contents. Adjust to value_available_contents_eq rename.
2712 * valprint.c (valprint_check_validity)
2713 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2714 (val_print_array_elements): Adjust.
2715 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2716 (value_bits_any_optimized_out): New function.
2717 (value_entirely_covered_by_range_vector): New function, factored
2718 out from value_entirely_unavailable.
2719 (value_entirely_unavailable): Reimplement.
2720 (value_entirely_optimized_out): New function.
2721 (insert_into_bit_range_vector): New function, factored out from
2722 mark_value_bits_unavailable.
2723 (mark_value_bits_unavailable): Reimplement.
2724 (struct ranges_and_idx): New struct.
2725 (find_first_range_overlap_and_match): New function, factored out
2726 from value_available_contents_bits_eq.
2727 (value_available_contents_bits_eq): Rename to ...
2728 (value_contents_bits_eq): ... this. Check both unavailable
2729 contents and optimized out contents.
2730 (value_available_contents_eq): Rename to ...
2731 (value_contents_eq): ... this.
2732 (allocate_value_lazy): Remove reference to the old optimized_out
2733 boolean.
2734 (allocate_optimized_out_value): Use
2735 mark_value_bytes_optimized_out.
2736 (require_not_optimized_out): Adjust to check whether the
2737 optimized_out vec is empty.
2738 (ranges_copy_adjusted): New function, factored out from
2739 value_contents_copy_raw.
2740 (value_contents_copy_raw): Also copy the optimized out ranges.
2741 Assert the destination ranges aren't optimized out.
2742 (value_contents_copy): Update comment, remove call to
2743 require_not_optimized_out.
2744 (value_contents_equal): Adjust to check whether the optimized_out
2745 vec is empty.
2746 (set_value_optimized_out, value_optimized_out_const): Delete.
2747 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2748 New functions.
2749 (value_entirely_optimized_out, value_bits_valid): Delete.
2750 (value_copy): Take a VEC copy of the 'optimized_out' field.
2751 (value_primitive_field): Remove special handling of optimized out.
2752 (value_fetch_lazy): Assert that lazy values have no unavailable
2753 regions. Use value_bits_any_optimized_out. Remove some special
2754 handling for optimized out values.
2755 * value.h: Add intro comment about <optimized out> and
2756 <unavailable>.
2757 (struct lval_funcs): Remove check_validity and check_any_valid
2758 fields.
2759 (set_value_optimized_out, value_optimized_out_const): Remove.
2760 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2761 New declarations.
2762 (value_bits_any_optimized_out): New declaration.
2763 (value_bits_valid): Delete declaration.
2764 (value_available_contents_eq): Rename to ...
2765 (value_contents_eq): ... this, and extend comments.
2766
2767 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2768
2769 Fix -fsanitize=address on unreadable inferior strings.
2770 * valprint.c (val_print_string): Fix access before BUFFER.
2771
2772 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2773
2774 * target.c (target_struct_size): Remove.
2775 (target_struct_allocsize): Remove.
2776 (DEFAULT_ALLOCSIZE): Remove.
2777 (target_ops_p): New typedef.
2778 (DEF_VEC_P (target_ops_p)): New vector type.
2779 (target_structs): Change type to VEC (target_ops_p).
2780 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2781 (find_default_run_target): Rewrite for loop following changes to
2782 target_structs.
2783
2784 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2785
2786 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2787 Adjust code accordingly. Adjust function description comment.
2788
2789 2014-08-19 Yao Qi <yao@codesourcery.com>
2790
2791 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2792 types.
2793
2794 2014-08-19 Alan Modra <amodra@gmail.com>
2795
2796 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2797 * config.in: Regenerate.
2798 * configure: Regenerate.
2799
2800 2014-08-19 Tom Tromey <tromey@redhat.com>
2801 Gary Benson <gbenson@redhat.com>
2802
2803 * common/common-debug.h: New file.
2804 * common/common-debug.c: Likewise.
2805 * debug.c: Likewise.
2806 * Makefile.in (SFILES): Add common/common-debug.c.
2807 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2808 (COMMON_OBS): Add common-debug.o and debug.o.
2809 (common-debug.o): New rule.
2810 * common/common-defs.h: Include common-debug.h.
2811 * common/agent.c (debug_agent_printf): New function.
2812 (DEBUG_AGENT): Redefine.
2813 * nat/i386-dregs.c (debug_printf): Undefine.
2814
2815 2014-08-19 Gary Benson <gbenson@redhat.com>
2816
2817 * common/common-defs.h: Include print-utils.h.
2818 * utils.h: Do not include print-utils.h.
2819
2820 2014-08-19 Tom Tromey <tromey@redhat.com>
2821 Gary Benson <gbenson@redhat.com>
2822
2823 * common/common-types.h: New file.
2824 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2825 * common/common-defs.h: Include common-types.h.
2826 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2827 (ULONGEST): Remove.
2828
2829 2014-08-19 Tom Tromey <tromey@redhat.com>
2830 Gary Benson <gbenson@redhat.com>
2831
2832 * common/errors.h: New file.
2833 * common/errors.c: Likewise.
2834 * Makefile.in (SFILES): Add common/errors.c.
2835 (HFILES_NO_SRCDIR): Add common/errors.h.
2836 (COMMON_OBS): Add errors.o.
2837 (errors.o): New rule.
2838 * common/common-defs.h: Include errors.h.
2839 * utils.h (perror_with_name, error, verror, warning, vwarning):
2840 Don't declare.
2841 * common/common-utils.h: (malloc_failure, internal_error):
2842 Likewise.
2843
2844 2014-08-19 Gary Benson <gbenson@redhat.com>
2845
2846 * utils.c (internal_vproblem): Always print the message.
2847
2848 2014-08-18 Doug Evans <dje@google.com>
2849
2850 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2851
2852 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2853
2854 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2855 Return 0 if TYPE is dynamic.
2856 (print_range): Add handling of dynamic ranges.
2857
2858 2014-08-18 Keven Boell <keven.boell@intel.com>
2859 Joel Brobecker <brobecker@adacore.com>
2860
2861 * gdbtypes.h (struct main_type): Add field "data_location".
2862 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2863 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2864 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2865 a dynamic data location.
2866 (resolve_dynamic_type): Add DW_AT_data_location handling.
2867 (copy_recursive, copy_type): Copy the data_location information
2868 when present.
2869 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2870 * value.c (value_from_contents_and_address): Add
2871 DW_AT_data_location handling.
2872
2873 2014-08-18 Keven Boell <keven.boell@intel.com>
2874 Joel Brobecker <brobecker@adacore.com>
2875
2876 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2877 field "get_object_address".
2878 * dwarf2expr.c (execute_stack_op): Add handling for
2879 DW_OP_push_object_address.
2880 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2881 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2882 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2883 (dwarf_expr_get_obj_addr): New function.
2884 (dwarf_expr_ctx_funcs): Add get_object_address field.
2885 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2886 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2887 (dwarf2_evaluate_property): Add parameter "address". Use it.
2888 (needs_get_obj_addr): New function.
2889 (needs_frame_ctx_funcs): Add get_object_address field.
2890 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2891 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2892 (resolve_dynamic_array): Likewise.
2893
2894 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2895
2896 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2897 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2898 fixed value for records and unions for which some GNAT encodings
2899 are present.
2900
2901 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2902
2903 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2904 rewrite to avoid "else if" and "else" constructs. Should be
2905 a no-op in practice.
2906
2907 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2908
2909 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2910 of lexical block.
2911
2912 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2913
2914 PR c++/17132
2915 * eval.c: Update all calls to find_overload_match.
2916 * valarith.c: Likewise.
2917 (value_user_defined_cpp_op, value_user_defined_op): New
2918 argument NOSIDE. Update all callers.
2919 * valops.c (find_overload_match): New argument NOSIDE.
2920 * value.h (find_overload_match): Update signature.
2921
2922 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2923
2924 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2925 'items' methods instead of 'iteritems' method on dictionaries.
2926
2927 2014-08-15 Doug Evans <dje@google.com>
2928
2929 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2930 closer to use.
2931
2932 2014-08-15 Doug Evans <dje@google.com>
2933
2934 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2935
2936 2014-08-15 Doug Evans <dje@google.com>
2937
2938 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2939
2940 2014-08-15 Doug Evans <dje@google.com>
2941
2942 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2943 unused.
2944
2945 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2946
2947 * dcache.h: Include target.h, to avoid compile time warnings.
2948
2949 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2950
2951 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2952 frame_info" partial declaration.
2953 * gdbarch.h: Regenerate.
2954
2955 2014-08-15 Yao Qi <yao@codesourcery.com>
2956
2957 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2958 Add parameter 'decode_for_pst_p'. Callers update.
2959
2960 2014-08-13 Yao Qi <yao@codesourcery.com>
2961
2962 PR build/17104
2963 * configure.ac: Use local variable 'pos'.
2964 * configure: Regenerated.
2965
2966 2014-08-11 Doug Evans <dje@google.com>
2967
2968 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2969 message, it is redundant with "Reading symbols from ..." message.
2970
2971 2014-08-10 Doug Evans <xdje42@gmail.com>
2972
2973 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2974
2975 2014-08-09 Yao Qi <yao@codesourcery.com>
2976
2977 PR remote/9053
2978 * remote.c (remote_xfer_partial): Remove dead code.
2979
2980 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2981
2982 * ia64-linux-tdep.c: Include "regset.h".
2983 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2984 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
2985 (ia64_linux_supply_fpregset): New function.
2986 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
2987 (ia64_linux_regset_from_core_section): New function.
2988 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
2989 method.
2990
2991 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2992
2993 * m68klinux-tdep.c: Include "regset.h".
2994 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
2995 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
2996 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
2997 (m68k_linux_regset_from_core_section): New function.
2998 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
2999 method.
3000
3001 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3002
3003 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3004 function. Move logic to...
3005 (tilegx_linux_regmap): ... this new register map.
3006 (tilegx_linux_regset): Refer to register map, replace supply
3007 method by regcache_supply_regset, and add collect method.
3008 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3009 TILEGX_FIRST_EASY_REGNUM.
3010
3011 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3012
3013 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3014 that calls regcache_supply_regset and handles the EPC register
3015 separately. Move main logic to...
3016 (score7_linux_gregmap): ... this new register map.
3017 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3018 (score7_linux_gregset): Refer to register map. Add collect method.
3019 (score7_linux_regset_from_core_section): Replace
3020 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3021 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3022 (struct regset): Delete unused forward declaraction.
3023 (struct pt_regs): Delete structure definition.
3024 (elf_gregset_t): Delete typedef.
3025
3026 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3027
3028 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3029 (nios2_core_regset): Add collect method.
3030
3031 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3032
3033 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3034 platform-independent and don't write to read-only input buffer.
3035 (m32r_linux_collect_gregset): New function.
3036 (m32r_linux_gregset): Add collect method.
3037
3038 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3039
3040 * hppa-linux-tdep.c (greg_map): Rename to...
3041 (hppa_linux_gregmap): ... this. Also convert to
3042 regcache_map_entry format.
3043 (hppa_linux_supply_regset): Delete function.
3044 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3045 (hppa_linux_fpregmap): ... this new register map.
3046 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3047 register map, replace supply method by regcache_supply_regset, and
3048 add collect method regcache_collect_regset.
3049
3050 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3051
3052 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3053 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3054 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3055 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3056 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3057 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3058 (frv_linux_supply_gregset): Replace main logic by call to
3059 regcache_supply_regset, but keep clearing gr32-gr63.
3060 (frv_linux_supply_fpregset): Delete function.
3061 (frv_linux_gregset): Refer to appropriate register map and add
3062 regcache_collect_regset as the collect method.
3063 (frv_linux_fpregset): Likewise. Also exchange the supply method
3064 by regcache_supply_regset.
3065
3066 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3067
3068 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3069 by call to alpha_supply_int_regs.
3070 (alpha_linux_collect_gregset): New function.
3071 (alpha_linux_supply_fpregset): Replace logic by call to
3072 alpha_supply_fp_regs.
3073 (alpha_linux_collect_fpregset): New function.
3074 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3075
3076 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3077
3078 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3079 by call to regcache_collect_regset.
3080 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3081 instead of aarch64_linux_supply_gregset/_fpregset.
3082 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3083 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3084 header file instead.
3085 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3086 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3087 functions. Move logic to ...
3088 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3089 register maps.
3090 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3091 refer to new register maps, replace *_regset_from_core by
3092 regcache_supply_regset, and also use regcache_collect_regset.
3093 * aarch64-linux-tdep.h: Include "regset.h".
3094 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3095 Delete prototypes.
3096 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3097 macros, moved from C source file.
3098 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3099 variable declarations.
3100
3101 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3102
3103 * s390-linux-nat.c: Include "regset.h".
3104 (regmap_gregset): Delete macro.
3105 (s390_64_regmap_gregset): New register map for
3106 regcache_supply/_collect_regset.
3107 (s390_64_gregset): New regset.
3108 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3109 (regmap_fpregset): Delete macro.
3110 (s390_native_supply, s390_native_collect): Delete functions.
3111 (supply_gregset, fill_gregset): Replace s390-specific regmap
3112 handling by a call to regcache_supply/_collect_regset.
3113 (supply_fpregset, fill_fpregset): Call regcache_supply/
3114 _collect_regset instead of s390_native_supply/_collect.
3115 (fetch_regset, store_regset): Likewise. Also change the last
3116 parameter to a regset instead of a regmap.
3117 (s390_linux_fetch_inferior_registers)
3118 (390_linux_store_inferior_registers): Adjust last parameter in
3119 calls to fetch_regset and store_regset.
3120 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3121 (s390_gregmap): ... this. Also make static const and convert to
3122 regcache_map_entry format.
3123 (s390x_regmap_gregset): Delete.
3124 (s390_regmap_fpregset): Rename to...
3125 (s390_fpregmap): ... this. Make static const and convert to
3126 regcache_map_entry format.
3127 (s390_regmap_upper, s390_regmap_last_break)
3128 (s390x_regmap_last_break, s390_regmap_system_call)
3129 (s390_regmap_tdb): Likewise.
3130 (s390_supply_regset, s390_collect_regset): Remove functions.
3131 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3132 s390_supply_regset.
3133 (s390_gregset, s390_fpregset, s390_upper_regset)
3134 (s390_last_break_regset, s390x_last_break_regset)
3135 (s390_system_call_regset, s390_tdb_regset): Make global and
3136 replace s390_supply/_collect_regset by regcache_supply/
3137 _collect_regset.
3138 (s390x_gregset): Delete.
3139 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3140 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3141 (s390_regmap_fpregset, s390_regmap_last_break)
3142 (s390x_regmap_last_break, s390_regmap_system_call)
3143 (s390_regmap_tdb): Delete global variable declarations.
3144 (s390_gregset, s390_fpregset, s390_last_break_regset)
3145 (s390x_last_break_regset, s390_system_call_regset)
3146 (s390_tdb_regset): New global variable declarations.
3147
3148 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3149
3150 * regcache.c: Include "regset.h".
3151 (regcache_transfer_regset): New local function.
3152 (regcache_supply_regset, regcache_collect_regset): New functions.
3153 * regcache.h (struct regcache_map_entry): New structure.
3154 (REGCACHE_MAP_SKIP): New enum value.
3155 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3156
3157 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3158
3159 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3160 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3161 (ppc_linux_collect_gregset ): Likewise.
3162 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3163 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3164 (ppc_collect_vrregset): Likewise.
3165 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3166 Likewise.
3167
3168 2014-08-07 Yao Qi <yao@codesourcery.com>
3169
3170 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3171 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3172 * remote.c (remote_read_bytes): Likewise.
3173
3174 2014-08-07 Yao Qi <yao@codesourcery.com>
3175
3176 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3177
3178 2014-08-07 Yao Qi <yao@codesourcery.com>
3179
3180 PR remote/17230
3181 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3182 TARGET_XFER_OK instead of 0.
3183
3184 2014-08-07 Gary Benson <gbenson@redhat.com>
3185
3186 * common/common-defs.h: Include errno.h.
3187 * defs.h: Do not include errno.h.
3188 * ada-typeprint.c: Likewise.
3189 * c-typeprint.c: Likewise.
3190 * core-regset.c: Likewise.
3191 * corefile.c: Likewise.
3192 * corelow.c: Likewise.
3193 * event-loop.c: Likewise.
3194 * f-typeprint.c: Likewise.
3195 * gnu-nat.c: Likewise.
3196 * go32-nat.c: Likewise.
3197 * i386gnu-nat.c: Likewise.
3198 * m2-typeprint.c: Likewise.
3199 * nat/linux-btrace.c: Likewise.
3200 * p-typeprint.c: Likewise.
3201 * procfs.c: Likewise.
3202 * remote-sim.c: Likewise.
3203 * rs6000-nat.c: Likewise.
3204 * target.c: Likewise.
3205 * typeprint.c: Likewise.
3206 * ui-file.c: Likewise.
3207 * valops.c: Likewise.
3208 * valprint.c: Likewise.
3209
3210 2014-08-07 Gary Benson <gbenson@redhat.com>
3211
3212 * common/common-defs.h: Include string.h.
3213 * aarch64-tdep.c: Do not include string.h.
3214 * ada-exp.y: Likewise.
3215 * ada-lang.c: Likewise.
3216 * ada-lex.l: Likewise.
3217 * ada-typeprint.c: Likewise.
3218 * ada-valprint.c: Likewise.
3219 * aix-thread.c: Likewise.
3220 * alpha-linux-tdep.c: Likewise.
3221 * alpha-mdebug-tdep.c: Likewise.
3222 * alpha-nat.c: Likewise.
3223 * alpha-osf1-tdep.c: Likewise.
3224 * alpha-tdep.c: Likewise.
3225 * alphanbsd-tdep.c: Likewise.
3226 * amd64-dicos-tdep.c: Likewise.
3227 * amd64-linux-tdep.c: Likewise.
3228 * amd64-nat.c: Likewise.
3229 * amd64-sol2-tdep.c: Likewise.
3230 * amd64fbsd-tdep.c: Likewise.
3231 * amd64obsd-tdep.c: Likewise.
3232 * arch-utils.c: Likewise.
3233 * arm-linux-nat.c: Likewise.
3234 * arm-linux-tdep.c: Likewise.
3235 * arm-tdep.c: Likewise.
3236 * arm-wince-tdep.c: Likewise.
3237 * armbsd-tdep.c: Likewise.
3238 * armnbsd-nat.c: Likewise.
3239 * armnbsd-tdep.c: Likewise.
3240 * armobsd-tdep.c: Likewise.
3241 * avr-tdep.c: Likewise.
3242 * ax-gdb.c: Likewise.
3243 * ax-general.c: Likewise.
3244 * bcache.c: Likewise.
3245 * bfin-tdep.c: Likewise.
3246 * breakpoint.c: Likewise.
3247 * build-id.c: Likewise.
3248 * buildsym.c: Likewise.
3249 * c-exp.y: Likewise.
3250 * c-lang.c: Likewise.
3251 * c-typeprint.c: Likewise.
3252 * c-valprint.c: Likewise.
3253 * charset.c: Likewise.
3254 * cli-out.c: Likewise.
3255 * cli/cli-cmds.c: Likewise.
3256 * cli/cli-decode.c: Likewise.
3257 * cli/cli-dump.c: Likewise.
3258 * cli/cli-interp.c: Likewise.
3259 * cli/cli-logging.c: Likewise.
3260 * cli/cli-script.c: Likewise.
3261 * cli/cli-setshow.c: Likewise.
3262 * cli/cli-utils.c: Likewise.
3263 * coffread.c: Likewise.
3264 * common/agent.c: Likewise.
3265 * common/buffer.c: Likewise.
3266 * common/buffer.h: Likewise.
3267 * common/common-utils.c: Likewise.
3268 * common/filestuff.c: Likewise.
3269 * common/filestuff.c: Likewise.
3270 * common/format.c: Likewise.
3271 * common/print-utils.c: Likewise.
3272 * common/rsp-low.c: Likewise.
3273 * common/signals.c: Likewise.
3274 * common/vec.h: Likewise.
3275 * common/xml-utils.c: Likewise.
3276 * core-regset.c: Likewise.
3277 * corefile.c: Likewise.
3278 * corelow.c: Likewise.
3279 * cp-abi.c: Likewise.
3280 * cp-name-parser.y: Likewise.
3281 * cp-support.c: Likewise.
3282 * cp-valprint.c: Likewise.
3283 * cris-tdep.c: Likewise.
3284 * d-exp.y: Likewise.
3285 * darwin-nat.c: Likewise.
3286 * dbxread.c: Likewise.
3287 * dcache.c: Likewise.
3288 * demangle.c: Likewise.
3289 * dicos-tdep.c: Likewise.
3290 * disasm.c: Likewise.
3291 * doublest.c: Likewise.
3292 * dsrec.c: Likewise.
3293 * dummy-frame.c: Likewise.
3294 * dwarf2-frame.c: Likewise.
3295 * dwarf2loc.c: Likewise.
3296 * dwarf2read.c: Likewise.
3297 * elfread.c: Likewise.
3298 * environ.c: Likewise.
3299 * eval.c: Likewise.
3300 * event-loop.c: Likewise.
3301 * exceptions.c: Likewise.
3302 * exec.c: Likewise.
3303 * expprint.c: Likewise.
3304 * f-exp.y: Likewise.
3305 * f-lang.c: Likewise.
3306 * f-typeprint.c: Likewise.
3307 * f-valprint.c: Likewise.
3308 * fbsd-nat.c: Likewise.
3309 * findcmd.c: Likewise.
3310 * findvar.c: Likewise.
3311 * fork-child.c: Likewise.
3312 * frame.c: Likewise.
3313 * frv-linux-tdep.c: Likewise.
3314 * frv-tdep.c: Likewise.
3315 * gdb.c: Likewise.
3316 * gdb_bfd.c: Likewise.
3317 * gdbarch.c: Likewise.
3318 * gdbarch.sh: Likewise.
3319 * gdbtypes.c: Likewise.
3320 * gnu-nat.c: Likewise.
3321 * gnu-v2-abi.c: Likewise.
3322 * gnu-v3-abi.c: Likewise.
3323 * go-exp.y: Likewise.
3324 * go-lang.c: Likewise.
3325 * go32-nat.c: Likewise.
3326 * guile/guile.c: Likewise.
3327 * guile/scm-auto-load.c: Likewise.
3328 * hppa-hpux-tdep.c: Likewise.
3329 * hppa-linux-nat.c: Likewise.
3330 * hppanbsd-tdep.c: Likewise.
3331 * hppaobsd-tdep.c: Likewise.
3332 * i386-cygwin-tdep.c: Likewise.
3333 * i386-dicos-tdep.c: Likewise.
3334 * i386-linux-tdep.c: Likewise.
3335 * i386-nto-tdep.c: Likewise.
3336 * i386-sol2-tdep.c: Likewise.
3337 * i386-tdep.c: Likewise.
3338 * i386bsd-tdep.c: Likewise.
3339 * i386gnu-nat.c: Likewise.
3340 * i386nbsd-tdep.c: Likewise.
3341 * i386obsd-tdep.c: Likewise.
3342 * i387-tdep.c: Likewise.
3343 * ia64-libunwind-tdep.c: Likewise.
3344 * ia64-linux-nat.c: Likewise.
3345 * inf-child.c: Likewise.
3346 * inf-ptrace.c: Likewise.
3347 * inf-ttrace.c: Likewise.
3348 * infcall.c: Likewise.
3349 * infcmd.c: Likewise.
3350 * inflow.c: Likewise.
3351 * infrun.c: Likewise.
3352 * interps.c: Likewise.
3353 * iq2000-tdep.c: Likewise.
3354 * irix5-nat.c: Likewise.
3355 * jv-exp.y: Likewise.
3356 * jv-lang.c: Likewise.
3357 * jv-typeprint.c: Likewise.
3358 * jv-valprint.c: Likewise.
3359 * language.c: Likewise.
3360 * linux-fork.c: Likewise.
3361 * linux-nat.c: Likewise.
3362 * lm32-tdep.c: Likewise.
3363 * m2-exp.y: Likewise.
3364 * m2-typeprint.c: Likewise.
3365 * m32c-tdep.c: Likewise.
3366 * m32r-linux-nat.c: Likewise.
3367 * m32r-linux-tdep.c: Likewise.
3368 * m32r-rom.c: Likewise.
3369 * m32r-tdep.c: Likewise.
3370 * m68hc11-tdep.c: Likewise.
3371 * m68k-tdep.c: Likewise.
3372 * m68kbsd-tdep.c: Likewise.
3373 * m68klinux-nat.c: Likewise.
3374 * m68klinux-tdep.c: Likewise.
3375 * m88k-tdep.c: Likewise.
3376 * machoread.c: Likewise.
3377 * macrocmd.c: Likewise.
3378 * main.c: Likewise.
3379 * mdebugread.c: Likewise.
3380 * mem-break.c: Likewise.
3381 * memattr.c: Likewise.
3382 * memory-map.c: Likewise.
3383 * mep-tdep.c: Likewise.
3384 * mi/mi-cmd-break.c: Likewise.
3385 * mi/mi-cmd-disas.c: Likewise.
3386 * mi/mi-cmd-env.c: Likewise.
3387 * mi/mi-cmd-stack.c: Likewise.
3388 * mi/mi-cmd-var.c: Likewise.
3389 * mi/mi-cmds.c: Likewise.
3390 * mi/mi-console.c: Likewise.
3391 * mi/mi-getopt.c: Likewise.
3392 * mi/mi-interp.c: Likewise.
3393 * mi/mi-main.c: Likewise.
3394 * mi/mi-parse.c: Likewise.
3395 * microblaze-rom.c: Likewise.
3396 * microblaze-tdep.c: Likewise.
3397 * mingw-hdep.c: Likewise.
3398 * minidebug.c: Likewise.
3399 * minsyms.c: Likewise.
3400 * mips-irix-tdep.c: Likewise.
3401 * mips-linux-tdep.c: Likewise.
3402 * mips-tdep.c: Likewise.
3403 * mips64obsd-tdep.c: Likewise.
3404 * mipsnbsd-tdep.c: Likewise.
3405 * mipsread.c: Likewise.
3406 * mn10300-linux-tdep.c: Likewise.
3407 * mn10300-tdep.c: Likewise.
3408 * monitor.c: Likewise.
3409 * moxie-tdep.c: Likewise.
3410 * mt-tdep.c: Likewise.
3411 * nat/linux-btrace.c: Likewise.
3412 * nat/linux-osdata.c: Likewise.
3413 * nat/linux-procfs.c: Likewise.
3414 * nat/linux-ptrace.c: Likewise.
3415 * nat/linux-waitpid.c: Likewise.
3416 * nbsd-tdep.c: Likewise.
3417 * nios2-linux-tdep.c: Likewise.
3418 * nto-procfs.c: Likewise.
3419 * nto-tdep.c: Likewise.
3420 * objc-lang.c: Likewise.
3421 * objfiles.c: Likewise.
3422 * opencl-lang.c: Likewise.
3423 * osabi.c: Likewise.
3424 * osdata.c: Likewise.
3425 * p-exp.y: Likewise.
3426 * p-lang.c: Likewise.
3427 * p-typeprint.c: Likewise.
3428 * parse.c: Likewise.
3429 * posix-hdep.c: Likewise.
3430 * ppc-linux-nat.c: Likewise.
3431 * ppc-sysv-tdep.c: Likewise.
3432 * ppcfbsd-tdep.c: Likewise.
3433 * ppcnbsd-tdep.c: Likewise.
3434 * ppcobsd-tdep.c: Likewise.
3435 * printcmd.c: Likewise.
3436 * procfs.c: Likewise.
3437 * prologue-value.c: Likewise.
3438 * python/py-auto-load.c: Likewise.
3439 * python/py-gdb-readline.c: Likewise.
3440 * ravenscar-thread.c: Likewise.
3441 * regcache.c: Likewise.
3442 * registry.c: Likewise.
3443 * remote-fileio.c: Likewise.
3444 * remote-m32r-sdi.c: Likewise.
3445 * remote-mips.c: Likewise.
3446 * remote-notif.c: Likewise.
3447 * remote-sim.c: Likewise.
3448 * remote.c: Likewise.
3449 * reverse.c: Likewise.
3450 * rs6000-aix-tdep.c: Likewise.
3451 * ser-base.c: Likewise.
3452 * ser-go32.c: Likewise.
3453 * ser-mingw.c: Likewise.
3454 * ser-pipe.c: Likewise.
3455 * ser-tcp.c: Likewise.
3456 * ser-unix.c: Likewise.
3457 * serial.c: Likewise.
3458 * sh-tdep.c: Likewise.
3459 * sh64-tdep.c: Likewise.
3460 * shnbsd-tdep.c: Likewise.
3461 * skip.c: Likewise.
3462 * sol-thread.c: Likewise.
3463 * solib-dsbt.c: Likewise.
3464 * solib-frv.c: Likewise.
3465 * solib-osf.c: Likewise.
3466 * solib-som.c: Likewise.
3467 * solib-spu.c: Likewise.
3468 * solib-target.c: Likewise.
3469 * solib.c: Likewise.
3470 * somread.c: Likewise.
3471 * source.c: Likewise.
3472 * sparc-nat.c: Likewise.
3473 * sparc-sol2-tdep.c: Likewise.
3474 * sparc-tdep.c: Likewise.
3475 * sparc64-tdep.c: Likewise.
3476 * sparc64fbsd-tdep.c: Likewise.
3477 * sparc64nbsd-tdep.c: Likewise.
3478 * sparcnbsd-tdep.c: Likewise.
3479 * spu-linux-nat.c: Likewise.
3480 * spu-multiarch.c: Likewise.
3481 * spu-tdep.c: Likewise.
3482 * stabsread.c: Likewise.
3483 * stack.c: Likewise.
3484 * std-regs.c: Likewise.
3485 * symfile.c: Likewise.
3486 * symmisc.c: Likewise.
3487 * symtab.c: Likewise.
3488 * target.c: Likewise.
3489 * thread.c: Likewise.
3490 * tilegx-linux-nat.c: Likewise.
3491 * tilegx-tdep.c: Likewise.
3492 * top.c: Likewise.
3493 * tracepoint.c: Likewise.
3494 * tui/tui-command.c: Likewise.
3495 * tui/tui-data.c: Likewise.
3496 * tui/tui-disasm.c: Likewise.
3497 * tui/tui-file.c: Likewise.
3498 * tui/tui-layout.c: Likewise.
3499 * tui/tui-out.c: Likewise.
3500 * tui/tui-regs.c: Likewise.
3501 * tui/tui-source.c: Likewise.
3502 * tui/tui-stack.c: Likewise.
3503 * tui/tui-win.c: Likewise.
3504 * tui/tui-windata.c: Likewise.
3505 * tui/tui-winsource.c: Likewise.
3506 * typeprint.c: Likewise.
3507 * ui-file.c: Likewise.
3508 * ui-out.c: Likewise.
3509 * user-regs.c: Likewise.
3510 * utils.c: Likewise.
3511 * v850-tdep.c: Likewise.
3512 * valarith.c: Likewise.
3513 * valops.c: Likewise.
3514 * valprint.c: Likewise.
3515 * value.c: Likewise.
3516 * varobj.c: Likewise.
3517 * vax-tdep.c: Likewise.
3518 * vaxnbsd-tdep.c: Likewise.
3519 * vaxobsd-tdep.c: Likewise.
3520 * windows-nat.c: Likewise.
3521 * xcoffread.c: Likewise.
3522 * xml-support.c: Likewise.
3523 * xstormy16-tdep.c: Likewise.
3524 * xtensa-linux-nat.c: Likewise.
3525
3526 2014-08-07 Gary Benson <gbenson@redhat.com>
3527
3528 * common/common-defs.h: Include gdb_assert.h.
3529 * aarch64-tdep.c: Do not include gdb_assert.h.
3530 * addrmap.c: Likewise.
3531 * aix-thread.c: Likewise.
3532 * alpha-linux-tdep.c: Likewise.
3533 * alpha-mdebug-tdep.c: Likewise.
3534 * alphanbsd-tdep.c: Likewise.
3535 * amd64-nat.c: Likewise.
3536 * amd64-tdep.c: Likewise.
3537 * amd64bsd-nat.c: Likewise.
3538 * amd64fbsd-nat.c: Likewise.
3539 * amd64fbsd-tdep.c: Likewise.
3540 * amd64nbsd-nat.c: Likewise.
3541 * amd64nbsd-tdep.c: Likewise.
3542 * amd64obsd-nat.c: Likewise.
3543 * amd64obsd-tdep.c: Likewise.
3544 * arch-utils.c: Likewise.
3545 * arm-tdep.c: Likewise.
3546 * armbsd-tdep.c: Likewise.
3547 * auxv.c: Likewise.
3548 * bcache.c: Likewise.
3549 * bfin-tdep.c: Likewise.
3550 * blockframe.c: Likewise.
3551 * breakpoint.c: Likewise.
3552 * bsd-kvm.c: Likewise.
3553 * bsd-uthread.c: Likewise.
3554 * buildsym.c: Likewise.
3555 * c-exp.y: Likewise.
3556 * c-lang.c: Likewise.
3557 * charset.c: Likewise.
3558 * cleanups.c: Likewise.
3559 * cli-out.c: Likewise.
3560 * cli/cli-decode.c: Likewise.
3561 * cli/cli-dump.c: Likewise.
3562 * cli/cli-logging.c: Likewise.
3563 * cli/cli-script.c: Likewise.
3564 * cli/cli-utils.c: Likewise.
3565 * coffread.c: Likewise.
3566 * common/common-utils.c: Likewise.
3567 * common/queue.h: Likewise.
3568 * common/signals.c: Likewise.
3569 * common/vec.h: Likewise.
3570 * complaints.c: Likewise.
3571 * completer.c: Likewise.
3572 * corelow.c: Likewise.
3573 * cp-abi.c: Likewise.
3574 * cp-name-parser.y: Likewise.
3575 * cp-namespace.c: Likewise.
3576 * cp-support.c: Likewise.
3577 * cris-tdep.c: Likewise.
3578 * dbxread.c: Likewise.
3579 * dictionary.c: Likewise.
3580 * doublest.c: Likewise.
3581 * dsrec.c: Likewise.
3582 * dummy-frame.c: Likewise.
3583 * dwarf2-frame-tailcall.c: Likewise.
3584 * dwarf2-frame.c: Likewise.
3585 * dwarf2expr.c: Likewise.
3586 * dwarf2loc.c: Likewise.
3587 * dwarf2read.c: Likewise.
3588 * eval.c: Likewise.
3589 * event-loop.c: Likewise.
3590 * exceptions.c: Likewise.
3591 * expprint.c: Likewise.
3592 * f-valprint.c: Likewise.
3593 * fbsd-nat.c: Likewise.
3594 * findvar.c: Likewise.
3595 * frame-unwind.c: Likewise.
3596 * frame.c: Likewise.
3597 * frv-tdep.c: Likewise.
3598 * gcore.c: Likewise.
3599 * gdb-dlfcn.c: Likewise.
3600 * gdb_bfd.c: Likewise.
3601 * gdbarch.c: Likewise.
3602 * gdbarch.sh: Likewise.
3603 * gdbtypes.c: Likewise.
3604 * gnu-nat.c: Likewise.
3605 * gnu-v3-abi.c: Likewise.
3606 * go-lang.c: Likewise.
3607 * guile/scm-exception.c: Likewise.
3608 * guile/scm-gsmob.c: Likewise.
3609 * guile/scm-lazy-string.c: Likewise.
3610 * guile/scm-math.c: Likewise.
3611 * guile/scm-pretty-print.c: Likewise.
3612 * guile/scm-safe-call.c: Likewise.
3613 * guile/scm-utils.c: Likewise.
3614 * guile/scm-value.c: Likewise.
3615 * h8300-tdep.c: Likewise.
3616 * hppa-hpux-nat.c: Likewise.
3617 * hppa-tdep.c: Likewise.
3618 * hppanbsd-tdep.c: Likewise.
3619 * hppaobsd-tdep.c: Likewise.
3620 * i386-darwin-nat.c: Likewise.
3621 * i386-darwin-tdep.c: Likewise.
3622 * i386-nto-tdep.c: Likewise.
3623 * i386-tdep.c: Likewise.
3624 * i386bsd-nat.c: Likewise.
3625 * i386fbsd-tdep.c: Likewise.
3626 * i386gnu-nat.c: Likewise.
3627 * i386nbsd-tdep.c: Likewise.
3628 * i386obsd-tdep.c: Likewise.
3629 * i387-tdep.c: Likewise.
3630 * ia64-libunwind-tdep.c: Likewise.
3631 * ia64-tdep.c: Likewise.
3632 * inf-ptrace.c: Likewise.
3633 * inf-ttrace.c: Likewise.
3634 * infcall.c: Likewise.
3635 * infcmd.c: Likewise.
3636 * infrun.c: Likewise.
3637 * inline-frame.c: Likewise.
3638 * interps.c: Likewise.
3639 * jv-lang.c: Likewise.
3640 * jv-typeprint.c: Likewise.
3641 * linux-fork.c: Likewise.
3642 * linux-nat.c: Likewise.
3643 * linux-thread-db.c: Likewise.
3644 * m32c-tdep.c: Likewise.
3645 * m32r-linux-nat.c: Likewise.
3646 * m32r-tdep.c: Likewise.
3647 * m68k-tdep.c: Likewise.
3648 * m68kbsd-nat.c: Likewise.
3649 * m68kbsd-tdep.c: Likewise.
3650 * m88k-tdep.c: Likewise.
3651 * machoread.c: Likewise.
3652 * macroexp.c: Likewise.
3653 * macrotab.c: Likewise.
3654 * maint.c: Likewise.
3655 * mdebugread.c: Likewise.
3656 * memory-map.c: Likewise.
3657 * mep-tdep.c: Likewise.
3658 * mi/mi-common.c: Likewise.
3659 * microblaze-tdep.c: Likewise.
3660 * mingw-hdep.c: Likewise.
3661 * mips-linux-nat.c: Likewise.
3662 * mips-linux-tdep.c: Likewise.
3663 * mips-tdep.c: Likewise.
3664 * mips64obsd-tdep.c: Likewise.
3665 * mipsnbsd-tdep.c: Likewise.
3666 * mn10300-linux-tdep.c: Likewise.
3667 * mn10300-tdep.c: Likewise.
3668 * moxie-tdep.c: Likewise.
3669 * mt-tdep.c: Likewise.
3670 * nat/linux-btrace.c: Likewise.
3671 * nat/linux-osdata.c: Likewise.
3672 * nat/linux-ptrace.c: Likewise.
3673 * nat/mips-linux-watch.c: Likewise.
3674 * nios2-linux-tdep.c: Likewise.
3675 * nios2-tdep.c: Likewise.
3676 * objc-lang.c: Likewise.
3677 * objfiles.c: Likewise.
3678 * obsd-nat.c: Likewise.
3679 * opencl-lang.c: Likewise.
3680 * osabi.c: Likewise.
3681 * parse.c: Likewise.
3682 * ppc-linux-nat.c: Likewise.
3683 * ppc-sysv-tdep.c: Likewise.
3684 * ppcfbsd-nat.c: Likewise.
3685 * ppcfbsd-tdep.c: Likewise.
3686 * ppcnbsd-nat.c: Likewise.
3687 * ppcnbsd-tdep.c: Likewise.
3688 * ppcobsd-nat.c: Likewise.
3689 * ppcobsd-tdep.c: Likewise.
3690 * printcmd.c: Likewise.
3691 * procfs.c: Likewise.
3692 * prologue-value.c: Likewise.
3693 * psymtab.c: Likewise.
3694 * python/py-lazy-string.c: Likewise.
3695 * python/py-value.c: Likewise.
3696 * regcache.c: Likewise.
3697 * reggroups.c: Likewise.
3698 * registry.c: Likewise.
3699 * remote-sim.c: Likewise.
3700 * remote.c: Likewise.
3701 * rs6000-aix-tdep.c: Likewise.
3702 * rs6000-tdep.c: Likewise.
3703 * s390-linux-tdep.c: Likewise.
3704 * score-tdep.c: Likewise.
3705 * ser-base.c: Likewise.
3706 * ser-mingw.c: Likewise.
3707 * sh-tdep.c: Likewise.
3708 * sh64-tdep.c: Likewise.
3709 * solib-darwin.c: Likewise.
3710 * solib-spu.c: Likewise.
3711 * solib-svr4.c: Likewise.
3712 * source.c: Likewise.
3713 * sparc-nat.c: Likewise.
3714 * sparc-sol2-tdep.c: Likewise.
3715 * sparc-tdep.c: Likewise.
3716 * sparc64-sol2-tdep.c: Likewise.
3717 * sparc64-tdep.c: Likewise.
3718 * sparc64fbsd-tdep.c: Likewise.
3719 * sparc64nbsd-tdep.c: Likewise.
3720 * sparc64obsd-tdep.c: Likewise.
3721 * sparcnbsd-tdep.c: Likewise.
3722 * sparcobsd-tdep.c: Likewise.
3723 * spu-multiarch.c: Likewise.
3724 * spu-tdep.c: Likewise.
3725 * stabsread.c: Likewise.
3726 * stack.c: Likewise.
3727 * symfile.c: Likewise.
3728 * symtab.c: Likewise.
3729 * target-descriptions.c: Likewise.
3730 * target-memory.c: Likewise.
3731 * target.c: Likewise.
3732 * tic6x-linux-tdep.c: Likewise.
3733 * tic6x-tdep.c: Likewise.
3734 * tilegx-linux-nat.c: Likewise.
3735 * tilegx-tdep.c: Likewise.
3736 * top.c: Likewise.
3737 * tramp-frame.c: Likewise.
3738 * tui/tui-out.c: Likewise.
3739 * tui/tui-winsource.c: Likewise.
3740 * ui-out.c: Likewise.
3741 * user-regs.c: Likewise.
3742 * utils.c: Likewise.
3743 * v850-tdep.c: Likewise.
3744 * valops.c: Likewise.
3745 * value.c: Likewise.
3746 * varobj.c: Likewise.
3747 * vax-nat.c: Likewise.
3748 * xml-syscall.c: Likewise.
3749 * xml-tdesc.c: Likewise.
3750 * xstormy16-tdep.c: Likewise.
3751 * xtensa-linux-nat.c: Likewise.
3752 * xtensa-tdep.c: Likewise.
3753
3754 2014-08-07 Gary Benson <gbenson@redhat.com>
3755
3756 * common/common-defs.h: Include common-utils.h.
3757 * defs.h: Do not include common-utils.h.
3758 * common/gdb_assert.h: Likewise.
3759 * darwin-nat.h: Likewise.
3760 * nat/linux-btrace.c: Likewise.
3761 * target/waitstatus.h: Likewise.
3762
3763 2014-08-07 Gary Benson <gbenson@redhat.com>
3764
3765 * common/common-defs.h: Include ptid.h.
3766 * defs.h: Do not include ptid.h.
3767 * inferior.h: Likewise.
3768 * infrun.h: Likewise.
3769 * nat/linux-btrace.h: Likewise.
3770 * nat/linux-osdata.h: Likewise.
3771 * target/waitstatus.h: Likewise.
3772
3773 2014-08-07 Gary Benson <gbenson@redhat.com>
3774
3775 * common/common-defs.h: Include gdb_locale.h.
3776 * defs.h: Do not include gdb_locale.h.
3777
3778 2014-08-07 Gary Benson <gbenson@redhat.com>
3779
3780 * common/common-defs.h: Include gdb/signals.h.
3781 * defs.h: Do not include gdb/signals.h.
3782
3783 2014-08-07 Gary Benson <gbenson@redhat.com>
3784
3785 * common/common-defs.h: Include pathmax.h.
3786 * defs.h: Do not include pathmax.h.
3787
3788 2014-08-07 Gary Benson <gbenson@redhat.com>
3789
3790 * common/common-defs.h: Include libiberty.h.
3791 * defs.h: Do not include libiberty.h.
3792 * common/queue.h: Likewise.
3793 * cp-name-parser.y: Likewise.
3794 * mi/mi-cmd-catch.c: Likewise.
3795 * python/python.c: Likewise.
3796
3797 2014-08-07 Gary Benson <gbenson@redhat.com>
3798
3799 * common/common-defs.h: Include ansidecl.h.
3800 * defs.h: Do not include ansidecl.h.
3801 * common/buffer.h: Likewise.
3802 * common/common-utils.h: Likewise.
3803
3804 2014-08-07 Gary Benson <gbenson@redhat.com>
3805
3806 * common/common-defs.h: Include stddef.h.
3807 * defs.h: Do not include stddef.h.
3808 * common/common-utils.h: Likewise.
3809 * amd64fbsd-nat.c: Likewise.
3810 * bcache.c: Likewise.
3811 * charset.c: Likewise.
3812 * common/buffer.h: Likewise.
3813 * common/vec.h: Likewise.
3814 * i386bsd-nat.c: Likewise.
3815 * nat/linux-btrace.h: Likewise.
3816 * ppcfbsd-nat.c: Likewise.
3817 * ppcnbsd-tdep.h: Likewise.
3818 * ppcobsd-nat.c: Likewise.
3819 * ppcobsd-tdep.h: Likewise.
3820 * python/py-gdb-readline.c: Likewise.
3821
3822 2014-08-07 Gary Benson <gbenson@redhat.com>
3823
3824 * common/common-defs.h: Include stdarg.h.
3825 * defs.h: Do not include stdarg.h.
3826 * ada-lang.c: Likewise.
3827 * common/common-utils.h: Likewise.
3828 * guile/scm-string.c: Likewise.
3829 * guile/scm-utils.c: Likewise.
3830 * m32c-tdep.c: Likewise.
3831
3832 2014-08-07 Gary Benson <gbenson@redhat.com>
3833
3834 * common/common-defs.h: Include stdlib.h.
3835 * defs.h: Do not include stdlib.h.
3836 * addrmap.c: Likewise.
3837 * bcache.c: Likewise.
3838 * common/buffer.c: Likewise.
3839 * common/common-utils.c: Likewise.
3840 * cp-name-parser.y: Likewise.
3841 * go32-nat.c: Likewise.
3842 * mn10300-linux-tdep.c: Likewise.
3843 * nat/linux-osdata.c: Likewise.
3844 * tui/tui.c: Likewise.
3845 * windows-nat.c: Likewise.
3846
3847 2014-08-07 Gary Benson <gbenson@redhat.com>
3848
3849 * common/common-defs.h: Include stdio.h.
3850 * defs.h: Do not include stdio.h.
3851 * ada-lang.c: Likewise.
3852 * common/buffer.c: Likewise.
3853 * common/common-utils.c: Likewise.
3854 * cp-name-parser.y: Likewise.
3855 * gnu-nat.c: Likewise.
3856 * go32-nat.c: Likewise.
3857 * i386gnu-nat.c: Likewise.
3858 * proc-api.c: Likewise.
3859 * proc-events.c: Likewise.
3860 * proc-flags.c: Likewise.
3861 * proc-why.c: Likewise.
3862 * python/python-internal.h: Likewise.
3863 * target-memory.c: Likewise.
3864 * tui/tui-io.c: Likewise.
3865 * tui/tui.c: Likewise.
3866
3867 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3868
3869 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3870 (scan_dyntag_auxv): Same.
3871
3872 2014-08-06 Yao Qi <yao@codesourcery.com>
3873
3874 * amd64-linux-nat.c: Remove duplicated include
3875 "x86-linux-nat.h".
3876 * i386-linux-nat.c: Likewise.
3877
3878 2014-08-06 Yao Qi <yao@codesourcery.com>
3879
3880 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3881 operand" with "Special opcode" in comments.
3882
3883 2014-08-05 Gary Benson <gbenson@redhat.com>
3884
3885 * interps.c (initialize_interps): Remove prototype.
3886 (interpreter_initialized): Remove static global.
3887 (interp_add): Do not call initialize_interps.
3888 (initialize_interps): Remove function.
3889
3890 2014-08-05 Gary Benson <gbenson@redhat.com>
3891
3892 * utils.c (vwarning): Remove spurious va_end.
3893
3894 2014-08-05 Alan Modra <amodra@gmail.com>
3895
3896 * charset.c (convert_between_encodings): Cast result of obstack_base.
3897 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3898 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3899 (read_unwind_info): Use size_t for some locals.
3900 * jit.c (finalize_symtab): Likewise.
3901 * utils.c (hashtab_obstack_allocate): Likewise.
3902 * symmisc.c (print_objfile_statistics): Update format strings.
3903
3904 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3905
3906 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3907 (Changes in GDB 7.8): ... here.
3908
3909 2014-08-04 Tom Tromey <tromey@redhat.com>
3910
3911 * target.c (set_targetdebug): New function.
3912 (initialize_targets): Pass set_targetdebug when creating "set
3913 debug target".
3914
3915 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3916
3917 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3918 if detecting a variable-sized field that is not the last field.
3919 Fix struct type length computation.
3920
3921 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3922
3923 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3924 Add debug trace.
3925
3926 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3927
3928 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3929 Remove "+ 8" offset in computation of CHAIN_VMA.
3930
3931 2014-07-31 Doug Evans <dje@google.com>
3932
3933 * inflow.c (child_terminal_inferior): Add comment.
3934 (child_terminal_ours_for_output): Add comment.
3935 (child_terminal_ours): Add comment.
3936 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3937 (linux_nat_terminal_ours): Add comment.
3938
3939 2014-07-31 Gary Benson <gbenson@redhat.com>
3940
3941 * common/btrace-common.h: Do not include defs.h or server.h.
3942 * nat/mips-linux-watch.h: Likewise.
3943 * gdb-dlfcn.h: Do not include defs.h.
3944 * tracefile.h: Likewise.
3945
3946 2014-07-30 Roland McGrath <mcgrathr@google.com>
3947
3948 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3949
3950 2014-07-30 Tom Tromey <tromey@redhat.com>
3951
3952 * bsd-kvm.c (bsd_kvm_open): Constify.
3953 * corelow.c (core_open): Constify.
3954 * ctf.c (ctf_open): Constify.
3955 * dbug-rom.c (dbug_open): Constify.
3956 * exec.c (exec_open): Constify.
3957 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3958 * microblaze-rom.c (picobug_open): Constify.
3959 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3960 Constify.
3961 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3962 * record-btrace.c (record_btrace_open): Constify.
3963 * record-full.c (record_full_core_open_1, record_full_open_1)
3964 (record_full_open): Constify.
3965 * remote-m32r-sdi.c (m32r_open): Constify.
3966 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3967 (rockhopper_open, lsi_open): Constify.
3968 * remote-sim.c (gdbsim_open): Constify.
3969 * remote.c (remote_open, extended_remote_open, remote_open_1):
3970 Constify.
3971 * target.h (struct target_ops) <to_open>: Make "arg" const.
3972 * tracefile-tfile.c (tfile_open): Constify.
3973
3974 2014-07-30 Tom Tromey <tromey@redhat.com>
3975
3976 * breakpoint.c (map_breakpoint_numbers): Update.
3977 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3978 (get_number_const): New function.
3979 (get_number): Rewrite using get_number_const.
3980 (init_number_or_range): Make "string" const.
3981 (number_is_in_list): Make "list" const.
3982 * cli/cli-utils.h (get_number_const): Declare.
3983 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3984 (init_number_or_range, number_is_in_list): Update.
3985 * printcmd.c (map_display_numbers): Update.
3986 * value.c (value_from_history_ref): Constify.
3987 * value.h (value_from_history_ref): Update.
3988
3989 2014-07-30 Tom Tromey <tromey@redhat.com>
3990
3991 * corefile.c (hook_type, call_extra_exec_file_hooks)
3992 (specify_exec_file_hook): Constify.
3993 * exec.c (exec_file_attach): Make "filename" const.
3994 * gdbcore.h (deprecated_exec_file_display_hook)
3995 (specify_exec_file_hook, exec_file_attach): Constify.
3996 * main.c (captured_main): Use catch_command_errors_const.
3997
3998 2014-07-30 Tom Tromey <tromey@redhat.com>
3999
4000 * target.c (open_target): New function.
4001 (add_target_with_completer, add_deprecated_target_alias): Use
4002 set_cmd_sfunc, set_cmd_context.
4003 (debug_to_open): Remove.
4004 (setup_target_debug): Update.
4005
4006 2014-07-30 Yao Qi <yao@codesourcery.com>
4007
4008 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4009 comments.
4010 * parse.c (exp_iterate): Update comments.
4011
4012 2014-07-30 Gary Benson <gbenson@redhat.com>
4013
4014 * common/common-defs.h: New file.
4015 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4016 * defs.h: Include common-defs.h.
4017 Do not include config.h or build-gnulib/config.h.
4018
4019 2014-07-30 Gary Benson <gbenson@redhat.com>
4020
4021 * common/common-utils.h: Do not include config.h.
4022 * nat/linux-btrace.h: Likewise.
4023
4024 2014-07-30 Gary Benson <gbenson@redhat.com>
4025
4026 * btrace.c: Include defs.h.
4027 * common/ptid.c: Include defs.h or server.h as appropriate.
4028 * nat/mips-linux-watch.c: Likewise.
4029
4030 2014-07-29 Tom Tromey <tromey@redhat.com>
4031
4032 * target.c (target_is_pushed): Simplify.
4033
4034 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4035
4036 GDB 7.8 released.
4037
4038 2014-07-29 Yao Qi <yao@codesourcery.com>
4039
4040 PR gdb/17206
4041 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4042
4043 2014-07-28 Doug Evans <xdje42@gmail.com>
4044
4045 PR guile/17203
4046 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4047 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4048 parameters.
4049
4050 2014-07-28 Will Newton <will.newton@linaro.org>
4051
4052 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4053 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4054 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4055 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4056 (THUMB2_EABI_SYSCALL): Likewise.
4057 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4058 struct tramp_frame.
4059 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4060 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4061
4062 2014-07-27 Doug Evans <xdje42@gmail.com>
4063
4064 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4065
4066 2014-07-27 Doug Evans <xdje42@gmail.com>
4067
4068 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4069
4070 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4071 Doug Evans <xdje42@gmail.com>
4072
4073 PR guile/17146
4074 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4075 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4076 * configure.ac: Try to use guild to compile an scm file, if it fails
4077 then disable guile support.
4078 * configure: Regenerate.
4079 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4080 GUILE_FILE_LIST.
4081 (GUILE_COMPILED_FILES): New variable.
4082 (GUILE_FILES) Update.
4083 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4084 (stamp-guile): Compile scm files.
4085 * guile/guile.c (boot_guile_support): New function.
4086 (standard_throw_args_p): New function.
4087 (print_standard_throw_error, print_throw_error): New functions.
4088 (handle_boot_error): New function.
4089 (initialize_scheme_side): Rewrite to call boot_guile_support.
4090 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4091 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4092
4093 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4094 Doug Evans <xdje42@gmail.com>
4095
4096 PR guile/17146
4097 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4098 * guile/lib/gdb/support.scm: New file.
4099 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4100 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4101 All uses updated.
4102 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4103 All uses updated.
4104 (%assert-type): Ditto, and renamed to assert-type.
4105 (%exception-print-style): Delete.
4106
4107 2014-07-26 Doug Evans <xdje42@gmail.com>
4108
4109 PR build/17105
4110 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4111 * configure: Regenerate.
4112 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4113 PYTHON_FILES.
4114 (PYTHON_FILES): New variable.
4115 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4116 (GUILE_FILES): New variable.
4117 (stamp-python, install-python, uninstall-python): Handle empty
4118 file list.
4119 (stamp-guile, install-guile, uninstall-guile): Ditto.
4120
4121 2014-07-26 Doug Evans <xdje42@gmail.com>
4122
4123 PR guile/17177
4124 * guile/lib/gdb.scm (pretty-printers): Export.
4125 (set-pretty-printers!): Export.
4126 * guile/lib/gdb/printing.scm (gdb module): Update.
4127 (prepend-pretty-printer!, append-pretty-printer!): Update.
4128 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4129 (pretty_printer_list_var): Delete.
4130 (pretty_printer_list): New static global.
4131 (gdbscm_pretty_printers): New function.
4132 (gdbscm_set_pretty_printers_x): New function.
4133 (ppscm_find_pretty_printer_from_gdb): Update.
4134 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4135 (gdbscm_initialize_pretty_printers): Update.
4136
4137 2014-07-26 Doug Evans <xdje42@gmail.com>
4138
4139 PR 17185
4140 * configure.ac: Add check for header gc/gc.h.
4141 Add check for function setenv.
4142 * configure: Regenerate.
4143 * config.in: Regenerate.
4144 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4145
4146 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4147
4148 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4149 variation in gdbarch matching.
4150
4151 2014-07-25 Tom Tromey <tromey@redhat.com>
4152
4153 * exec.c (using_exec_ops): Remove.
4154 (exec_close_1): Update. Remove extraneous block, reindent.
4155 (add_target_sections): Use target_is_pushed.
4156
4157 2014-07-25 Pedro Alves <palves@redhat.com>
4158
4159 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4160 * monitor.c (monitor_create_inferior): Likewise.
4161 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4162 * remote-sim.c (gdbsim_create_inferior): Likewise.
4163 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4164 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4165 * windows-nat.c (do_initial_windows_stuff): Likewise.
4166
4167 2014-07-25 Pedro Alves <palves@redhat.com>
4168
4169 * NEWS: Mention signal passing and "signal" command changes.
4170 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4171 comment.
4172 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4173 call.
4174 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4175 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4176 (jump_command): Adjust clear_proceed_status call.
4177 (signal_command): Warn if other thread that are resumed have
4178 signals that will be delivered. Adjust clear_proceed_status call.
4179 (until_next_command, finish_command)
4180 (proceed_after_attach_callback, attach_command_post_wait)
4181 (attach_command): Adjust clear_proceed_status call.
4182 * infrun.c (proceed_after_vfork_done): Likewise.
4183 (proceed_after_attach_callback): Adjust comment.
4184 (clear_proceed_status_thread): Clear stop_signal if not in pass
4185 state.
4186 (clear_proceed_status_callback): Delete.
4187 (clear_proceed_status): New 'step' parameter. Only clear the
4188 proceed status of threads the command being prepared is about to
4189 resume.
4190 (proceed): If passed in an explicit signal, override stop_signal
4191 with it. Don't pass the last stop signal to the thread we're
4192 resuming.
4193 (init_wait_for_inferior): Adjust clear_proceed_status call.
4194 (switch_back_to_stepped_thread): Clear the signal if it should not
4195 be passed.
4196 * infrun.h (clear_proceed_status): New 'step' parameter.
4197 (user_visible_resume_ptid): Add comment.
4198 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4199 signal is in pass state.
4200 * remote.c (append_pending_thread_resumptions): Likewise.
4201 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4202
4203 2014-07-25 Tom Tromey <tromey@redhat.com>
4204
4205 * target.h (target_stopped_data_address)
4206 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4207 parentheses.
4208
4209 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4210
4211 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4212 comments.
4213 (avr_pointer_to_address): Likewise.
4214
4215 2014-07-24 Tom Tromey <tromey@redhat.com>
4216
4217 * monitor.c (compile_pattern): Update.
4218 * target.h (struct target_ops) <to_shortname, to_longname,
4219 to_doc>: Now const.
4220
4221 2014-07-24 Tom Tromey <tromey@redhat.com>
4222
4223 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4224 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4225 (add_info_alias, add_com): Make "doc" const.
4226 (print_doc_line): Make "str" const.
4227 (delete_cmd): Update.
4228 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4229 (print_doc_line): Update.
4230 * cli/cli-script.c (document_command): Update.
4231 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4232 (add_com, add_info, add_info_alias): Update.
4233 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4234 * python/py-cmd.c (cmdpy_destroyer): Update.
4235
4236 2014-07-24 Tom Tromey <tromey@redhat.com>
4237
4238 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4239 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4240 (help_cmd_list): Constify.
4241 (lookup_cmd): Update.
4242 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4243 const.
4244 (help_cmd_list, apropos_cmd): Update.
4245 * cli/cli-script.c (show_user): Update.
4246 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4247 * cli/cli-setshow.h (cmd_show_list): Update.
4248 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4249 (cmd_show_list): Update.
4250 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4251 * python/py-cmd.c (cmdpy_destroyer): Update.
4252
4253 2014-07-24 Tom Tromey <tromey@redhat.com>
4254
4255 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4256 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4257 const.
4258 * command.h (deprecate_cmd): Update.
4259 * maint.c (maintenance_do_deprecate): Add casts.
4260
4261 2014-07-24 Tom Tromey <tromey@redhat.com>
4262
4263 * cli/cli-decode.c (help_cmd): Make parameter "const".
4264 * cli/cli-decode.h (help_cmd): Update.
4265
4266 2014-07-24 Tom Tromey <tromey@redhat.com>
4267
4268 * stack.c (up_silently_base, down_silently_base): Make argument
4269 const.
4270
4271 2014-07-24 Tom Tromey <tromey@redhat.com>
4272
4273 * solib.c (solib_add): Make "pattern" const.
4274 * solib.h (solib_add): Update.
4275
4276 2014-07-24 Tom Tromey <tromey@redhat.com>
4277
4278 * remote.c (remote_serial_open, print_packet, putpkt)
4279 (putpkt_binary): Constify.
4280 * remote.h (putpkt): Update.
4281
4282 2014-07-24 Tom Tromey <tromey@redhat.com>
4283
4284 * monitor.c (monitor_open): Make "args" const.
4285 * monitor.h (monitor_open): Update.
4286
4287 2014-07-24 Tom Tromey <tromey@redhat.com>
4288
4289 * maint.c (match_bfd_flags): Make "string" const.
4290 (print_bfd_section_info): Remove casts.
4291 (print_objfile_section_info): Make "string" const.
4292
4293 2014-07-24 Tom Tromey <tromey@redhat.com>
4294
4295 * inf-child.c (inf_child_open_target): Make "arg" const.
4296 * inf-child.h (inf_child_open_target): Update.
4297
4298 2014-07-24 Tom Tromey <tromey@redhat.com>
4299
4300 * environ.c (unset_in_environ): Make "var" const.
4301 * environ.h (unset_in_environ): Update.
4302
4303 2014-07-24 Tom Tromey <tromey@redhat.com>
4304
4305 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4306 Make "cmd" const.
4307 (scan_filename_with_cleanup): Likewise.
4308 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4309 Make arguments const.
4310 (restore_command): Update.
4311
4312 2014-07-24 Pedro Alves <palves@redhat.com>
4313
4314 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4315
4316 2014-07-24 Tom Tromey <tromey@redhat.com>
4317 Gary Benson <gbenson@redhat.com>
4318
4319 * nat/linux-ptrace.c (additional_flags): New global.
4320 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4321 additional_flags; don't check GDBSERVER.
4322 (linux_ptrace_set_additional_flags): New function.
4323 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4324 Declare.
4325 * linux-nat.c (_initialize_linux_nat): Call
4326 linux_ptrace_set_additional_flags.
4327
4328 2014-07-24 Tom Tromey <tromey@redhat.com>
4329
4330 * make-target-delegates (munge_type, write_debugmethod): New
4331 functions.
4332 (debug_names): New global.
4333 ($TARGET_DEBUG_PRINTER): New global.
4334 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4335 name.
4336 Write debug methods. Generate init_debug_target.
4337 * target-debug.h: New file.
4338 * target-delegates.c: Rebuild.
4339 * target.c: Include target-debug.h.
4340 (debug_target): Hoist definition.
4341 (target_kill, target_get_section_table, target_memory_map)
4342 (target_flash_erase, target_flash_done, target_detach)
4343 (target_disconnect, target_wait, target_resume)
4344 (target_pass_signals, target_program_signals, target_follow_fork)
4345 (target_mourn_inferior, target_search_memory)
4346 (target_thread_address_space, target_close)
4347 (target_find_new_threads, target_core_of_thread)
4348 (target_verify_memory, target_insert_mask_watchpoint)
4349 (target_remove_mask_watchpoint): Remove targetdebug code.
4350 (debug_to_post_attach, debug_to_prepare_to_store)
4351 (debug_to_files_info, debug_to_insert_breakpoint)
4352 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4353 (debug_to_region_ok_for_hw_watchpoint)
4354 (debug_to_can_accel_watchpoint_condition)
4355 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4356 (debug_to_watchpoint_addr_within_range)
4357 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4358 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4359 (debug_to_terminal_init, debug_to_terminal_inferior)
4360 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4361 (debug_to_terminal_save_ours, debug_to_terminal_info)
4362 (debug_to_load, debug_to_post_startup_inferior)
4363 (debug_to_insert_fork_catchpoint)
4364 (debug_to_remove_fork_catchpoint)
4365 (debug_to_insert_vfork_catchpoint)
4366 (debug_to_remove_vfork_catchpoint)
4367 (debug_to_insert_exec_catchpoint)
4368 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4369 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4370 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4371 (setup_target_debug): Call init_debug_target.
4372 * target.h (TARGET_DEBUG_PRINTER): New macro.
4373 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4374 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4375
4376 2014-07-24 Gary Benson <gbenson@redhat.com>
4377
4378 * exceptions.h (throw_vfatal): Renamed to...
4379 (throw_vquit): New declaration.
4380 (throw_quit): Likewise.
4381 * exceptions.c (throw_vfatal): Renamed to...
4382 (throw_vquit): New function.
4383 (throw_quit): Likewise.
4384 (throw_error): Call throw_verror rather than throw_it.
4385 * utils.h (vfatal): Removed.
4386 (fatal): Likewise.
4387 * utils.c (vfatal): Removed.
4388 (fatal): Likewise.
4389 (internal_verror): Replaced call to fatal with call to throw_quit.
4390 (quit): Replaced calls to fatal with calls to throw_quit.
4391
4392 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4393
4394 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4395 target_read_code.
4396
4397 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4398
4399 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4400 less than zero in conditional expression.
4401
4402 2014-07-23 Tom Tromey <tromey@redhat.com>
4403
4404 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4405 ($INTRO_PART): Don't match whitespace.
4406 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4407 argument matching.
4408 ($METHOD): Add $METHOD_TRAILER.
4409 (trim): Rewrite.
4410 (scan_target_h): New sub.
4411 Change main loop not to collect state.
4412 * target-delegates.c: Rebuild.
4413
4414 2014-07-23 Gary Benson <gbenson@redhat.com>
4415
4416 * cp-support.c (gdb_demangle): Fix build on systems without
4417 sigaltstack.
4418
4419 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4420
4421 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4422 for reference entry value target data value.
4423
4424 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4425
4426 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4427 value_available_contents_eq.
4428
4429 2014-07-22 Pedro Alves <palves@redhat.com>
4430
4431 * value.c (allocate_optimized_out_value): Don't mark value as
4432 non-lazy.
4433
4434 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4435
4436 * MAINTAINERS (Write After Approval): Update my email address.
4437
4438 2014-07-20 Doug Evans <dje@google.com>
4439
4440 PR server/17147
4441 * remote.c (putpkt_binary): Add text to error message.
4442
4443 2014-07-20 Yao Qi <yao@codesourcery.com>
4444
4445 * eval.c: Remove "Chill" from comments.
4446 * gdbtypes.h: Likewise.
4447 * symtab.h: Likewise.
4448
4449 2014-07-20 Yao Qi <yao@codesourcery.com>
4450
4451 * std-operator.def: Update comments to TERNOP_SLICE.
4452
4453 2014-07-20 Yao Qi <yao@codesourcery.com>
4454
4455 * std-operator.def: Remove BINOP_RANGE.
4456 * breakpoint.c (watchpoint_exp_is_const): Update.
4457 * expprint.c (dump_subexp_body_standard): Likewise.
4458 * eval.c (init_array_element): Remove dead code.
4459 (evaluate_subexp_standard): Likewise.
4460
4461 2014-07-20 Yao Qi <yao@codesourcery.com>
4462
4463 * std-operator.def: Remove BINOP_IN.
4464 * breakpoint.c (watchpoint_exp_is_const): Update.
4465 * eval.c (evaluate_subexp_standard): Likewise.
4466 * expprint.c (dump_subexp_body_standard): Likewise.
4467
4468 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4469
4470 * microblaze-tdep.c (microblaze_register_names): Add
4471 the rshr and rslr register names.
4472 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4473 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4474 Use of tdesc_numbered_register. Use of
4475 microblaze_register_g_packet_guesses. Use of
4476 tdesc_use_registers. Use of set_gdbarch_register_type.
4477 (microblaze_register_g_packet_guesses): New.
4478 * microblaze-tdep.h (microblaze_reg_num): Add
4479 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4480 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4481 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4482 * features/microblaze-core.xml: New file.
4483 * features/microblaze-stack-protect.xml: New file.
4484 * features/microblaze-with-stack-protect.c: New file.
4485 * features/microblaze-with-stack-protect.xml: New file.
4486 * features/microblaze.xml: New file.
4487 * features/microblaze.c: New file.
4488 * features/Makefile (microblaze-with-stack-protect): Add
4489 microblaze-with-stack-protect microblaze and microblaze-expedite.
4490 * regformats/microblaze-with-stack-protect.dat: New file.
4491 * regformats/microblaze.dat: New file.
4492 * doc/gdb.texinfo (MicroBlaze Features): Added.
4493
4494 2014-07-18 Tom Tromey <tromey@redhat.com>
4495
4496 * exec.c (exec_ops): Now static.
4497 * exec.h (exec_ops): Don't declare.
4498
4499 2014-07-18 Tom Tromey <tromey@redhat.com>
4500
4501 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4502 to find_target_beneath.
4503 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4504 find_target_beneath.
4505 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4506
4507 2014-07-18 Tom Tromey <tromey@redhat.com>
4508
4509 PR gdb/17130:
4510 * utils.c (quit): Use target_supports_terminal_ours.
4511 * target.h (target_supports_terminal_ours): Declare.
4512 * target.c (target_supports_delete_record): Don't check
4513 to_delete_record against NULL.
4514 (target_supports_terminal_ours): New function.
4515
4516 2014-07-18 Tom Tromey <tromey@redhat.com>
4517
4518 PR gdb/17130:
4519 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4520 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4521 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4522 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4523 * windows-nat.c (windows_xfer_partial): Always delegate.
4524 * record-btrace.c (record_btrace_xfer_partial): Simplify
4525 delegation.
4526 (record_btrace_fetch_registers, record_btrace_store_registers)
4527 (record_btrace_prepare_to_store, record_btrace_resume)
4528 (record_btrace_wait, record_btrace_find_new_threads)
4529 (record_btrace_thread_alive): Likewise.
4530 * procfs.c (procfs_xfer_partial): Always delegate.
4531 * corelow.c (core_xfer_partial): Always delegate.
4532 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4533
4534 2014-07-18 Tom Tromey <tromey@redhat.com>
4535
4536 * exec.c (exec_make_note_section): Move earlier.
4537
4538 2014-07-17 Doug Evans <dje@google.com>
4539
4540 PR gdb/17170
4541 * maint.c (count_symtabs_and_blocks): Handle NULL
4542 current_program_space.
4543 (report_command_stats): Check global enabled flag in addition to
4544 recorded enabled flag.
4545 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4546
4547 2014-07-16 Pedro Alves <palves@redhat.com>
4548
4549 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4550
4551 2014-07-16 Tom Tromey <tromey@redhat.com>
4552
4553 * target.h (struct target_ops) <to_delete_record>: Reformat
4554 comment.
4555
4556 2014-07-16 Tom Tromey <tromey@redhat.com>
4557
4558 * target-delegates.c: Rebuild.
4559
4560 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4561
4562 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4563 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4564 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4565 (avr_pointer_to_address): Likewise.
4566 (avr_address_class_type_flags): New function.
4567 (avr_address_class_type_flags_to_name): Likewise.
4568 (avr_address_class_name_to_type_flags): Likewise.
4569 (avr_gdbarch_init): Set address_class_type_flags,
4570 address_class_type_flags_to_name and
4571 address_class_name_to_type_flags.
4572
4573 2014-07-15 Pedro Alves <palves@redhat.com>
4574
4575 * linux-nat.c (kill_callback): Save errno and work with saved
4576 copy.
4577
4578 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4579
4580 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4581
4582 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4583
4584 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4585 breakpoint support correctly.
4586
4587 2014-07-14 Pedro Alves <palves@redhat.com>
4588
4589 * utils.c (prompt_for_continue): Call target_terminal_ours.
4590
4591 2014-07-14 Pedro Alves <palves@redhat.com>
4592
4593 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4594 catch_errors. Don't re-enable stdin or notify observers where,
4595 and rethrow error.
4596 (fetch_inferior_event_wrapper): Delete.
4597
4598 2014-07-14 Pedro Alves <palves@redhat.com>
4599
4600 PR gdb/17072
4601 * top.c: Include "inf-loop.h".
4602 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4603 field.
4604 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4605 was async before.
4606 (gdb_readline_wrapper): Store whether the target is async, and
4607 make it sync.
4608
4609 2014-07-14 Pedro Alves <palves@redhat.com>
4610
4611 PR gdb/17072
4612 * top.c (gdb_readline_wrapper_line): Tweak comment.
4613 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4614 the input handler callback.
4615
4616 2014-07-14 Pedro Alves <palves@redhat.com>
4617
4618 PR gdb/17072
4619 * main.c: Include event-top.h.
4620 (handle_command_errors): New function.
4621 (catch_command_errors, catch_command_errors_const): Use it.
4622
4623 2014-07-14 Pedro Alves <palves@redhat.com>
4624
4625 * exceptions.c (catch_command_errors, catch_command_errors_const):
4626 Moved to main.c.
4627 * exceptions.h (catch_command_errors_ftype)
4628 (catch_command_errors_const_ftype): Moved to main.c.
4629 (catch_command_errors, catch_command_errors_const): Delete
4630 declarations.
4631 * main.c (catch_command_errors_ftype)
4632 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4633 (catch_command_errors, catch_command_errors_const)): Moved here
4634 from exceptions.c and make static.
4635
4636 2014-07-14 Pedro Alves <palves@redhat.com>
4637
4638 * exceptions.c (print_any_exception): Delete.
4639 (catch_exceptions_with_msg): Use exception_print instead of
4640 print_any_exception.
4641 (catch_errors): Use exception_fprintf instead of
4642 print_any_exception.
4643 (catch_command_errors, catch_command_errors_const): Use
4644 exception_print instead of print_any_exception.
4645
4646 2014-07-14 Pedro Alves <palves@redhat.com>
4647
4648 * infcall.c (run_inferior_call): Set 'sync_execution' while
4649 running the inferior call.
4650
4651 2014-07-14 Pedro Alves <palves@redhat.com>
4652
4653 * value.c (value_contents_equal): Delete function.
4654 * value.h (value_contents_equal): Delete declaration.
4655
4656 2014-07-14 Tom Tromey <tromey@redhat.com>
4657
4658 PR exp/17106:
4659 * gdbtypes.c (is_dynamic_type_internal): New function, from
4660 is_dynamic_type.
4661 (is_dynamic_type): Rewrite.
4662 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4663 (resolve_dynamic_struct): Likewise.
4664 (resolve_dynamic_type_internal): New function, from
4665 resolve_dynamic_type.
4666 (resolve_dynamic_type): Rewrite.
4667
4668 2014-07-14 Tom Tromey <tromey@redhat.com>
4669
4670 * target.c (target_require_runnable): Also check record_stratum.
4671 Update comment.
4672
4673 2014-07-11 Yao Qi <yao@codesourcery.com>
4674
4675 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4676 thumb_instruction_restores_sp return true.
4677
4678 2014-07-11 Yao Qi <yao@codesourcery.com>
4679
4680 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4681 (thumb_in_function_epilogue_p): Call
4682 thumb_instruction_restores_sp.
4683
4684 2014-07-11 Yao Qi <yao@codesourcery.com>
4685
4686 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4687 'add sp, #imm'.
4688 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4689
4690 2014-07-11 Gary Benson <gbenson@redhat.com>
4691
4692 * amd64-linux-nat.c (gdbcore.h): Remove include.
4693 (regset.h): Likewise.
4694 (nat/linux-btrace.h): Likewise.
4695 (btrace.h): Likewise.
4696 (gdb_assert.h): Likewise.
4697 (string.h): Likewise.
4698 (sys/uio.h): Likewise.
4699 (sys/debugreg.h): Likewise.
4700 (sys/syscall.h): Likewise.
4701 (sys/procfs.h): Likewise.
4702 (sys/user.h): Likewise.
4703 (asm/ptrace.h): Likewise.
4704 (i386-nat.h): Likewise.
4705 * i386-linux-nat.c (i386-nat.h): Likewise.
4706 (regset.h): Likewise.
4707 (target.h): Likewise.
4708 (linux-nat.h): Likewise.
4709 (nat/linux-btrace.h): Likewise.
4710 (btrace.h): Likewise.
4711 (gdb_assert.h): Likewise.
4712 (string.h): Likewise.
4713 (sys/uio.h): Likewise.
4714 (sys/user.h): Likewise.
4715 (sys/procfs.h): Likewise.
4716 (sys/reg.h): Likewise.
4717 (sys/debugreg.h): Likewise.
4718 (ORIG_EAX): Remove definition.
4719
4720 2014-07-11 Gary Benson <gbenson@redhat.com>
4721
4722 * i386-linux-nat.h: New file.
4723 * x86-linux-nat.h: Likewise.
4724 * x86-linux-nat.c: Likewise.
4725 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4726 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4727 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4728 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4729 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4730 (PTRACE_SETREGSET): Likewise.
4731 (arch_lwp_info): Now in x86-linux-nat.c.
4732 (have_ptrace_getregset): Now in x86-linux-nat.h.
4733 (x86_linux_dr_get): Now in x86-linux-nat.c.
4734 (x86_linux_dr_set): Likewise.
4735 (x86_linux_dr_get_addr): Likewise.
4736 (x86_linux_dr_get_control): Likewise.
4737 (x86_linux_dr_get_status): Likewise.
4738 (update_debug_registers_callback): Likewise.
4739 (x86_linux_dr_set_control): Likewise.
4740 (x86_linux_dr_set_addr): Likewise.
4741 (x86_linux_prepare_to_resume): Likewise.
4742 (x86_linux_new_thread): Likewise.
4743 (x86_linux_new_fork): Likewise.
4744 (x86_linux_get_thread_area): Likewise.
4745 (super_post_startup_inferior): Likewise.
4746 (x86_linux_child_post_startup_inferior): Likewise.
4747 (AMD64_LINUX_USER64_CS): Likewise.
4748 (AMD64_LINUX_X32_DS): Likewise.
4749 (x86_linux_read_description): Likewise.
4750 (x86_linux_enable_btrace): Likewise.
4751 (x86_linux_disable_btrace): Likewise.
4752 (x86_linux_teardown_btrace): Likewise.
4753 (x86_linux_read_btrace): Likewise.
4754 (x86_linux_create_target): Likewise.
4755 (x86_linux_add_target): Likewise.
4756 * i386-linux-nat.c (x86-linux-nat.h): New include.
4757 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4758 (PTRACE_SETREGSET): Likewise.
4759 (arch_lwp_info): Now in x86-linux-nat.c.
4760 (have_ptrace_getregset): Now in x86-linux-nat.h.
4761 (x86_linux_dr_get): Now in x86-linux-nat.c.
4762 (x86_linux_dr_set): Likewise.
4763 (x86_linux_dr_get_addr): Likewise.
4764 (x86_linux_dr_get_control): Likewise.
4765 (x86_linux_dr_get_status): Likewise.
4766 (update_debug_registers_callback): Likewise.
4767 (x86_linux_dr_set_control): Likewise.
4768 (x86_linux_dr_set_addr): Likewise.
4769 (x86_linux_prepare_to_resume): Likewise.
4770 (x86_linux_new_thread): Likewise.
4771 (x86_linux_new_fork): Likewise.
4772 (x86_linux_get_thread_area): Likewise.
4773 (super_post_startup_inferior): Likewise.
4774 (x86_linux_child_post_startup_inferior): Likewise.
4775 (AMD64_LINUX_USER64_CS): Likewise.
4776 (AMD64_LINUX_X32_DS): Likewise.
4777 (x86_linux_read_description): Likewise.
4778 (x86_linux_enable_btrace): Likewise.
4779 (x86_linux_disable_btrace): Likewise.
4780 (x86_linux_teardown_btrace): Likewise.
4781 (x86_linux_read_btrace): Likewise.
4782 (x86_linux_create_target): Likewise.
4783 (x86_linux_add_target): Likewise.
4784
4785 2014-07-11 Gary Benson <gbenson@redhat.com>
4786
4787 * amd64-linux-nat.c: Comment and whitespace changes.
4788 * i386-linux-nat.c: Comment and whitespace changes.
4789
4790 2014-07-11 Gary Benson <gbenson@redhat.com>
4791
4792 * amd64-linux-nat.c (x86_linux_create_target): New function.
4793 (x86_linux_add_target): Likewise.
4794 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4795 * i386-linux-nat.c (x86_linux_create_target): New function.
4796 (x86_linux_add_target): Likewise.
4797 (_initialize_i386_linux_nat): Delegate to the above new functions.
4798
4799 2014-07-11 Gary Benson <gbenson@redhat.com>
4800
4801 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4802 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4803 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4804 (ps_get_thread_area): Delegate to the above.
4805
4806 2014-07-11 Gary Benson <gbenson@redhat.com>
4807
4808 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4809 x86_linux_read_description. All uses updated. amd64-specific
4810 code conditionalized. Conditionalized i386-specific code added.
4811 Redundant cast removed.
4812 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4813 x86_linux_read_description. All uses updated. i386-specific
4814 code conditionalized. Conditionalized amd64-specific code added.
4815 One sizeof replaced with the actual type it is describing.
4816
4817 2014-07-11 Gary Benson <gbenson@redhat.com>
4818
4819 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4820 x86_linux_dr_get. All uses updated.
4821 (amd64_linux_dr_set): Renamed to
4822 x86_linux_dr_set. All uses updated.
4823 (amd64_linux_dr_get_addr): Renamed to
4824 x86_linux_dr_get_addr. All uses updated.
4825 (amd64_linux_dr_get_control): Renamed to
4826 x86_linux_dr_get_control. All uses updated.
4827 (amd64_linux_dr_get_status): Renamed to
4828 x86_linux_dr_get_status. All uses updated.
4829 (amd64_linux_dr_set_control): Renamed to
4830 x86_linux_dr_set_control. All uses updated.
4831 (amd64_linux_dr_set_addr): Renamed to
4832 x86_linux_dr_set_addr. All uses updated.
4833 (amd64_linux_prepare_to_resume): Renamed to
4834 x86_linux_prepare_to_resume. All uses updated.
4835 (amd64_linux_new_thread): Renamed to
4836 x86_linux_new_thread. All uses updated.
4837 (amd64_linux_new_fork): Renamed to
4838 x86_linux_new_fork. All uses updated.
4839 (amd64_linux_child_post_startup_inferior): Renamed to
4840 x86_linux_child_post_startup_inferior. All uses updated.
4841 (amd64_linux_enable_btrace): Renamed to
4842 x86_linux_enable_btrace. All uses updated.
4843 (amd64_linux_disable_btrace): Renamed to
4844 x86_linux_disable_btrace. All uses updated.
4845 (amd64_linux_teardown_btrace): Renamed to
4846 x86_linux_teardown_btrace. All uses updated.
4847 (amd64_linux_read_btrace): Renamed to
4848 x86_linux_read_btrace. All uses updated.
4849 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4850 x86_linux_dr_get. All uses updated.
4851 (i386_linux_dr_set): Renamed to
4852 x86_linux_dr_set. All uses updated.
4853 (i386_linux_dr_get_addr): Renamed to
4854 x86_linux_dr_get_addr. All uses updated.
4855 (i386_linux_dr_get_control): Renamed to
4856 x86_linux_dr_get_control. All uses updated.
4857 (i386_linux_dr_get_status): Renamed to
4858 x86_linux_dr_get_status. All uses updated.
4859 (i386_linux_dr_set_control): Renamed to
4860 x86_linux_dr_set_control. All uses updated.
4861 (i386_linux_dr_set_addr): Renamed to
4862 x86_linux_dr_set_addr. All uses updated.
4863 (i386_linux_prepare_to_resume): Renamed to
4864 x86_linux_prepare_to_resume. All uses updated.
4865 (i386_linux_new_thread): Renamed to
4866 x86_linux_new_thread. All uses updated.
4867 (i386_linux_new_fork): Renamed to
4868 x86_linux_new_fork. All uses updated.
4869 (i386_linux_child_post_startup_inferior): Renamed to
4870 x86_linux_child_post_startup_inferior. All uses updated.
4871 (i386_linux_enable_btrace): Renamed to
4872 x86_linux_enable_btrace. All uses updated.
4873 (i386_linux_disable_btrace): Renamed to
4874 x86_linux_disable_btrace. All uses updated.
4875 (i386_linux_teardown_btrace): Renamed to
4876 x86_linux_teardown_btrace. All uses updated.
4877 (i386_linux_read_btrace): Renamed to
4878 x86_linux_read_btrace. All uses updated.
4879
4880 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4881
4882 * remote.c (extended_remote_post_attach): New function.
4883 (init_extended_remote_ops): Install it as to_post_attach method.
4884
4885 2014-07-09 Pedro Alves <palves@redhat.com>
4886
4887 * infcmd.c (attach_command_post_wait): Don't call
4888 target_terminal_inferior here.
4889 (attach_command): Call it here instead.
4890
4891 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4892
4893 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4894 field.
4895 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4896 from varobj.c, with additional checks.
4897 (c_varobj_ops): Fill in is_path_expr_parent field.
4898 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4899 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4900 field.
4901 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4902 ops method.
4903 (varobj_default_is_path_expr_parent): New function.
4904 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4905 (varobj_default_is_path_expr_parent): Declare new function.
4906
4907 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4908
4909 * infcmd.c (finish_backward): Turn internal error into normal error.
4910
4911 2014-07-07 Pedro Alves <palves@redhat.com>
4912
4913 PR gdb/17096
4914 * remote.c (async_handle_remote_sigint)
4915 (async_handle_remote_sigint_twice): Call
4916 gdb_call_async_signal_handler instead of
4917 mark_async_signal_handler.
4918
4919 2014-07-07 Tom Tromey <tromey@redhat.com>
4920
4921 * target-delegates.c: Rebuild.
4922 * target.c (target_info_record): Remove.
4923 * record.c (info_record_command): Unconditionally call
4924 to_info_record.
4925 * target.h (struct target_ops) <to_info_record>: Use
4926 TARGET_DEFAULT_IGNORE.
4927 (target_info_record): Remove.
4928
4929 2014-07-07 Tom Tromey <tromey@redhat.com>
4930
4931 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4932 TARGET_DEFAULT_NORETURN.
4933 * target.c (generic_tls_error): New function.
4934 (target_translate_tls_address): Don't search target stack.
4935 * target-delegates.c: Rebuild.
4936 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4937 stack.
4938 * linux-thread-db.c (thread_db_get_thread_local_address):
4939 Unconditionally call beneath target.
4940
4941 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4942
4943 * cli/cli-logging.c (pop_output_files): Assign targerr to
4944 gdb_stdtargerr.
4945
4946 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4947
4948 * MAINTAINERS (Write After Approval): Update my email address.
4949
4950 2014-07-02 Gary Benson <gbenson@redhat.com>
4951
4952 * proc-service.c (ps_xfer_memory): Update comment.
4953 (ps_pstop): Remove unused function.
4954 (ps_pcontinue): Likewise.
4955 (ps_lstop): Likewise.
4956 (ps_lcontinue): Likewise.
4957 (ps_lgetxregsize): Likewise.
4958 (ps_lgetxregs): Likewise.
4959 (ps_lsetxregs): Likewise.
4960 (ps_plog): Likewise.
4961 (ps_ptread): Likewise.
4962 (ps_ptwrite): Likewise.
4963
4964 2014-07-01 Mark Wielaard <mjw@redhat.com>
4965
4966 * dwarf2read.c (add_array_cv_type): New function.
4967 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4968 (read_tag_volatile_type): Likewise.
4969
4970 2014-07-01 Tom Tromey <tromey@redhat.com>
4971
4972 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4973 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4974 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4975 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4976 * command.h (cmd_cfunc_ftype): Move earlier.
4977 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4978 (add_com, add_info): Use cmd_cfunc_ftype.
4979
4980 2014-06-30 Tom Tromey <tromey@redhat.com>
4981
4982 * symtab.c (operator_chars): Make parameters and return type
4983 const.
4984 (file_matches): Make "files" const.
4985 (struct search_symbols_data) <files>: Now const.
4986 (search_symbols): Make "regexp" and "files" parameters const.
4987 Update.
4988 (symtab_symbol_info): Remove cast.
4989 (rbreak_command): Update.
4990 * symtab.h (search_symbols): Update.
4991
4992 2014-06-27 Yao Qi <yao@codesourcery.com>
4993
4994 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
4995 Change parameter type to 'struct thread_info *'. Caller
4996 updated.
4997 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
4998 Update declaration.
4999 * dummy-frame.c (struct dummy_frame_id): New.
5000 (dummy_frame_id_eq): New function.
5001 (struct dummy_frame) <id>: Change its type to 'struct
5002 dummy_frame_id'.
5003 (dummy_frame_push): Add parameter ptid and save it in
5004 dummy_frame_id.
5005 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5006 inferior_ptid.
5007 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5008 to inferior_ptid.
5009 (lookup_dummy_frame): Change parameter type to 'struct
5010 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5011 instead of frame_id_eq.
5012 (dummy_frame_pop): Add parameter ptid. Callers updated.
5013 Update comments. Compose dummy_frame_id and pass it to
5014 lookup_dummy_frame.
5015 (dummy_frame_discard): Add parameter ptid.
5016 (dummy_frame_sniffer): Compose dummy_frame_id and call
5017 dummy_frame_id_eq instead of frame_id_eq.
5018 (fprint_dummy_frames): Print ptid.
5019 * dummy-frame.h: Remove comments.
5020 (dummy_frame_push): Add ptid in declaration.
5021 (dummy_frame_pop, dummy_frame_discard): Likewise.
5022
5023 2014-06-26 Tom Tromey <tromey@redhat.com>
5024
5025 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5026 * command.h (error_no_arg): Update.
5027
5028 2014-06-26 Tom Tromey <tromey@redhat.com>
5029
5030 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5031 (do_show_command): Make "arg" const.
5032 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5033
5034 2014-06-26 Tom Tromey <tromey@redhat.com>
5035
5036 * record-full.c (record_full_get_bookmark): Make "args" const.
5037 (record_full_goto_bookmark): Make "raw_bookmark" const.
5038 * record.c (record_goto): New function.
5039 (cmd_record_goto): Use it. Now static.
5040 * record.h (record_goto): Declare.
5041 (cmd_record_goto): Remove declaration.
5042 * target-delegates.c: Rebuild.
5043 * target.h (struct target_ops) <to_get_bookmark,
5044 to_goto_bookmark>: Make parameter const.
5045
5046 2014-06-26 Tom Tromey <tromey@redhat.com>
5047
5048 * defs.h (generic_load): Update.
5049 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5050 * monitor.c (monitor_load): Make "args" const.
5051 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5052 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5053 const.
5054 (mips_load): Make "file" const.
5055 * remote-sim.c (gdbsim_load): Make "args" const.
5056 * remote.c (remote_load): Make "name" const.
5057 * symfile.c (generic_load): Make "args" const.
5058 * target-delegates.c: Rebuild.
5059 * target.c (target_load): Make "arg" const.
5060 (debug_to_load): Make "args" const.
5061 * target.h (struct target_ops) <to_load>: Make parameter const.
5062 (target_load): Update.
5063
5064 2014-06-26 Tom Tromey <tromey@redhat.com>
5065
5066 PR symtab/16902:
5067 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5068 (dwarf2_physname, read_partial_die)
5069 (guess_partial_die_structure_name, fixup_partial_die)
5070 (guess_full_die_structure_name, anonymous_struct_prefix)
5071 (dwarf2_name): Use per-BFD obstack.
5072
5073 2014-06-26 Yao Qi <yao@codesourcery.com>
5074
5075 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5076 dummyframe and this_id into inner block below.
5077
5078 2014-06-26 Yao Qi <yao@codesourcery.com>
5079
5080 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5081 with "signal_pass[0]" in the initialization of signal_pass.
5082
5083 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5084
5085 * record-btrace.c (record_btrace_generating_corefile)
5086 (record_btrace_prepare_to_generate_core)
5087 (record_btrace_done_generating_core): New.
5088 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5089 (record_btrace_store_registers, record_btrace_prepare_to_store):
5090 Forward request when generating a core file.
5091 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5092 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5093 to_done_generating_core.
5094
5095 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5096
5097 * target.h (target_ops) <to_prepare_to_generate_core>
5098 <to_done_generating_core>: New.
5099 (target_prepare_to_generate_core, target_done_generating_core): New.
5100 * target.c (target_prepare_to_generate_core)
5101 (target_done_generating_core): New.
5102 * target-delegates.c: Regenerate.
5103 * gcore.c: (write_gcore_file): Rename to ...
5104 (write_gcore_file_1): ...this.
5105 (write_gcore_file): Call target_prepare_to_generate_core
5106 and target_done_generating_core.
5107
5108 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5109
5110 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5111 * gcore.c (write_gcore_file): Free memory returned from
5112 make_corefile_notes.
5113 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5114 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5115
5116 2014-06-24 Yao Qi <yao@codesourcery.com>
5117
5118 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5119 (arm_linux_init_abi): Set skip_trampoline_code with
5120 gdbarch_skip_trampoline_code instead of
5121 find_solib_trampoline_target.
5122
5123 2014-06-24 Yao Qi <yao@codesourcery.com>
5124
5125 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5126 arm_skip_bx_reg returns non-zero.
5127
5128 2014-06-24 Yao Qi <yao@codesourcery.com>
5129
5130 * arm-tdep.c (arm_skip_bx_reg): New function.
5131 (arm_skip_stub): Call arm_skip_bx_reg.
5132
5133 2014-06-23 Don Breazeal <donb@codesourcery.com>
5134
5135 * MAINTAINERS: Add myself as write-after-approval maintainer.
5136
5137 2014-06-23 Pedro Alves <palves@redhat.com>
5138
5139 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5140 DR_CONTROL before setting DR0..DR3.
5141 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5142 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5143 bits of DR_CONTROL related to the debug register slot being
5144 disabled. If all slots are vacant, clear local slowdown as well,
5145 and assert DR_CONTROL is 0.
5146
5147 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5148
5149 * python/lib/gdb/command/xmethods.py
5150 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5151 current progspace only if the string "progspace" matches LOCUS_RE.
5152
5153 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5154
5155 Fix --with-system-readline with readline-6.3 patch 5.
5156 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5157 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5158 types.
5159
5160 2014-06-20 Tom Tromey <tromey@redhat.com>
5161
5162 * dwarf2read.c (dw2_get_real_path): Use correct type in
5163 OBSTACK_CALLOC.
5164 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5165
5166 2014-06-20 Gary Benson <gbenson@redhat.com>
5167
5168 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5169 * common/glibc_thread_db.h: Likewise.
5170 * common/i386-cpuid.h: Likewise.
5171 * common/i386-gcc-cpuid.h: Likewise.
5172 * common/linux-btrace.h: Likewise.
5173 * common/linux-osdata.h: Likewise.
5174 * common/linux-procfs.h: Likewise.
5175 * common/linux-ptrace.h: Likewise.
5176 * common/mips-linux-watch.h: Likewise.
5177 * common/linux-btrace.c: Moved to nat.
5178 * common/linux-osdata.c: Likewise.
5179 * common/linux-procfs.c: Likewise.
5180 * common/linux-ptrace.c: Likewise.
5181 * common/mips-linux-watch.c: Likewise.
5182 * nat/gdb_thread_db.h: Moved from common.
5183 * nat/glibc_thread_db.h: Likewise.
5184 * nat/i386-cpuid.h: Likewise.
5185 * nat/i386-gcc-cpuid.h: Likewise.
5186 * nat/linux-btrace.c: Likewise.
5187 * nat/linux-btrace.h: Likewise.
5188 * nat/linux-osdata.c: Likewise.
5189 * nat/linux-osdata.h: Likewise.
5190 * nat/linux-procfs.c: Likewise.
5191 * nat/linux-procfs.h: Likewise.
5192 * nat/linux-ptrace.c: Likewise.
5193 * nat/linux-ptrace.h: Likewise.
5194 * nat/mips-linux-watch.c: Likewise.
5195 * nat/mips-linux-watch.h: Likewise.
5196 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5197 (object file files): Reordered.
5198 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5199 of glibc_thread_db.h.
5200
5201 2014-06-20 Gary Benson <gbenson@redhat.com>
5202
5203 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5204 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5205 (i386_dr_low): Likewise.
5206 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5207 (i386_dr_low_set_addr): Likewise.
5208 (i386_dr_low_get_addr): Likewise.
5209 (i386_dr_low_can_set_control): Likewise.
5210 (i386_dr_low_set_control): Likewise.
5211 (i386_dr_low_get_control): Likewise.
5212 (i386_dr_low_get_status): Likewise.
5213 (i386_get_debug_register_length): Likewise.
5214 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5215 (i386_dr_low): Likewise.
5216 * nat/i386-dregs.c (i386-low.h): Remove include.
5217 (i386-nat.h): Likewise.
5218 (nat/i386-dregs.h): New include.
5219 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5220 (i386_dr_low_set_addr): Likewise.
5221 (i386_dr_low_get_addr): Likewise.
5222 (i386_dr_low_can_set_control): Likewise.
5223 (i386_dr_low_set_control): Likewise.
5224 (i386_dr_low_get_control): Likewise.
5225 (i386_dr_low_get_status): Likewise.
5226 (i386_get_debug_register_length): Likewise.
5227 (debug_hw_points): Likewise.
5228
5229 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5230
5231 * Makefile.in (SFILES): Add d-exp.y.
5232 (YYFILES): Add d-exp.c.
5233 (YYOBJ): Add d-exp.o.
5234 (local-maintainer-clean): Delete d-exp.c.
5235 * d-exp.y: New file.
5236 * d-lang.h (d_parse): New declaration.
5237 (d_error): New declaration.
5238 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5239 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5240 PREC_ORDER operators.
5241 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5242
5243 2014-06-19 Yao Qi <yao@codesourcery.com>
5244
5245 * gdbthread.h (any_running): Remove the declaration.
5246 * thread.c (any_running): Remove.
5247
5248 2014-06-19 Yao Qi <yao@codesourcery.com>
5249
5250 * gdbthread.h (struct thread_info) <state>: Change its type to
5251 'enum thread_state'. Update comments.
5252
5253 2014-06-19 Pedro Alves <palves@redhat.com>
5254
5255 * gdbthread.h (ALL_THREADS): Delete.
5256 (ALL_NON_EXITED_THREADS): New macro.
5257 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5258 instead of ALL_THREADS.
5259 * infrun.c (find_thread_needs_step_over)
5260 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5261 instead of ALL_THREADS.
5262 * record-btrace.c (record_btrace_open)
5263 (record_btrace_stop_recording, record_btrace_close)
5264 (record_btrace_is_replaying, record_btrace_resume)
5265 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5266 * remote.c (append_pending_thread_resumptions): Likewise.
5267 * thread.c (thread_apply_all_command): Likewise.
5268
5269 2014-06-19 Gary Benson <gbenson@redhat.com>
5270
5271 * i386-nat.c (i386_stopped_by_watchpoint):
5272 Use i386_dr_stopped_by_watchpoint.
5273 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5274 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5275
5276 2014-06-19 Gary Benson <gbenson@redhat.com>
5277
5278 * nat/i386-dregs.c: New file.
5279 * Makefile.in (i386-dregs.o): New rule.
5280 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5281 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5282 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5283 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5284 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5285 * config/i386/go32.mh (NATDEPFILES): Likewise.
5286 * config/i386/linux.mh (NATDEPFILES): Likewise.
5287 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5288 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5289 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5290 * i386-nat.h (debug_hw_points): New declaration.
5291 * i386-nat.c (breakpoint.h): Remove include.
5292 (command.h): Likewise.
5293 (target.h): Likewise.
5294 (gdb_assert.h): Likewise.
5295 (debug_hw_points): Made nonstatic.
5296 (debug_printf): Now in i386-dregs.c.
5297 (TARGET_HAS_DR_LEN_8): Likewise.
5298 (DR_CONTROL_SHIFT): Likewise.
5299 (DR_CONTROL_SIZE): Likewise.
5300 (DR_RW_EXECUTE): Likewise.
5301 (DR_RW_WRITE): Likewise.
5302 (DR_RW_READ): Likewise.
5303 (DR_RW_IORW): Likewise.
5304 (DR_LEN_1): Likewise.
5305 (DR_LEN_2): Likewise.
5306 (DR_LEN_4): Likewise.
5307 (DR_LEN_8): Likewise.
5308 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5309 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5310 (DR_ENABLE_SIZE): Likewise.
5311 (DR_LOCAL_SLOWDOWN): Likewise.
5312 (DR_GLOBAL_SLOWDOWN): Likewise.
5313 (DR_CONTROL_RESERVED): Likewise.
5314 (I386_DR_CONTROL_MASK): Likewise.
5315 (I386_DR_VACANT): Likewise.
5316 (I386_DR_LOCAL_ENABLE): Likewise.
5317 (I386_DR_GLOBAL_ENABLE): Likewise.
5318 (I386_DR_DISABLE): Likewise.
5319 (I386_DR_SET_RW_LEN): Likewise.
5320 (I386_DR_GET_RW_LEN): Likewise.
5321 (I386_DR_WATCH_HIT): Likewise.
5322 (i386_wp_op_t): Likewise.
5323 (i386_show_dr): Likewise.
5324 (i386_length_and_rw_bits): Likewise.
5325 (i386_insert_aligned_watchpoint): Likewise.
5326 (i386_remove_aligned_watchpoint): Likewise.
5327 (i386_handle_nonaligned_watchpoint): Likewise.
5328 (i386_update_inferior_debug_regs): Likewise.
5329 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5330 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5331 (i386_region_ok_for_watchpoint):
5332 Use i386_dr_region_ok_for_watchpoint.
5333 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5334
5335 2014-06-19 Gary Benson <gbenson@redhat.com>
5336
5337 * i386-nat.c (i386_insert_hw_breakpoint): Use
5338 i386_insert_watchpoint.
5339 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5340
5341 2014-06-19 Gary Benson <gbenson@redhat.com>
5342
5343 * i386-nat.c (i386_dr_show): Renamed to
5344 i386_show_dr and made static. All uses updated.
5345 (i386_dr_length_and_rw_bits): Renamed to
5346 i386_length_and_rw_bits and made static.
5347 All uses updated.
5348 (i386_dr_insert_aligned_watchpoint): Renamed to
5349 i386_insert_aligned_watchpoint and made static.
5350 All uses updated.
5351 (i386_dr_remove_aligned_watchpoint): Renamed to
5352 i386_remove_aligned_watchpoint and made static.
5353 All uses updated.
5354 (i386_dr_update_inferior_debug_regs): Renamed to
5355 i386_update_inferior_debug_regs and made static.
5356 All uses updated.
5357 * nat/i386-dregs.h (i386_dr_show): Removed.
5358 (i386_dr_length_and_rw_bits): Likewise.
5359 (i386_dr_insert_aligned_watchpoint): Likewise.
5360 (i386_dr_remove_aligned_watchpoint): Likewise.
5361 (i386_dr_update_inferior_debug_regs): Likewise.
5362
5363 2014-06-19 Gary Benson <gbenson@redhat.com>
5364
5365 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5366 * configure: Regenerate.
5367 * config.in: Likewise.
5368 * main.c (signal.h): New include.
5369 (setup_alternate_signal_stack): New function.
5370 (captured_main): Call the above.
5371 * cp-support.c (signal.h): New include.
5372 (catch_demangler_crashes): New flag.
5373 (SIGJMP_BUF): New define.
5374 (SIGSETJMP): Likewise.
5375 (SIGLONGJMP): Likewise.
5376 (gdb_demangle_jmp_buf): New static global.
5377 (gdb_demangle_attempt_core_dump): Likewise.
5378 (gdb_demangle_signal_handler): New function.
5379 (gdb_demangle): If catch_demangler_crashes is set, install the
5380 above signal handler before calling bfd_demangle, and restore
5381 the original signal handler afterwards. Display the offending
5382 symbol and call demangler_warning the first time a segmentation
5383 fault is caught.
5384 (_initialize_cp_support): New maint set/show command.
5385
5386 2014-06-19 Gary Benson <gbenson@redhat.com>
5387
5388 * utils.h (resource_limit_kind): New enum.
5389 (can_dump_core): New declaration.
5390 (warn_cant_dump_core): Likewise.
5391 (dump_core): Likewise.
5392 * utils.c (dump_core): Made nonstatic. Added new
5393 parameter "limit_kind".
5394 (can_dump_core): Made nonstatic. Moved printing code to...
5395 (warn_cant_dump_core): New function.
5396 (can_dump_core_warn): Likewise.
5397 (internal_vproblem): Replace calls to can_dump_core with
5398 calls to can_dump_core_warn. Supply new argument to each.
5399
5400 2014-06-19 Gary Benson <gbenson@redhat.com>
5401
5402 * utils.h (demangler_vwarning): New declaration.
5403 (demangler_warning): Likewise.
5404 * utils.c (struct internal_problem)
5405 <user_settable_should_quit>: New field.
5406 <user_settable_should_dump_core>: Likewise
5407 (internal_error_problem): Add values for above new fields.
5408 (internal_warning_problem): Likewise.
5409 (demangler_warning_problem): New static global.
5410 (demangler_vwarning): New function.
5411 (demangler_warning): Likewise.
5412 (add_internal_problem_command): Selectively add commands.
5413 (_initialize_utils): New internal problem command.
5414 * maint.c (maintenance_demangler_warning): New function.
5415 (_initialize_maint_cmds): New command.
5416
5417 2014-06-18 Tom Tromey <tromey@redhat.com>
5418
5419 * f-valprint.c (info_common_command_for_block): Update.
5420 * symtab.h (struct general_symbol_info) <common_block>: Now
5421 const.
5422
5423 2014-06-18 Tom Tromey <tromey@redhat.com>
5424
5425 * symtab.h (struct symtab) <blockvector>: Now const.
5426 * ada-lang.c (ada_add_global_exceptions): Update.
5427 * buildsym.c (augment_type_symtab): Update.
5428 * dwarf2read.c (dw2_lookup_symbol): Update.
5429 * jit.c (finalize_symtab): Update.
5430 * jv-lang.c (add_class_symtab_symbol): Update.
5431 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5432 Update.
5433 * objfiles.c (objfile_relocate1): Update.
5434 * psymtab.c (lookup_symbol_aux_psymtabs)
5435 (maintenance_check_psymtabs): Update.
5436 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5437 Update.
5438 * spu-tdep.c (spu_catch_start): Update.
5439 * symmisc.c (dump_symtab_1): Update.
5440 * symtab.c (lookup_global_symbol_from_objfile)
5441 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5442 (basic_lookup_transparent_type_quick)
5443 (basic_lookup_transparent_type, find_pc_sect_symtab)
5444 (find_pc_sect_line, search_symbols): Update.
5445 * block.c (find_block_in_blockvector): Make "bl" const.
5446 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5447 const.
5448 (blockvector_contains_pc): Make "bv" const.
5449 (block_for_pc_sect): Update.
5450 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5451 (blockvector_contains_pc): Update.
5452 * breakpoint.c (resolve_sal_pc): Update.
5453 * inline-frame.c (block_starting_point_at): Update.
5454
5455 2014-06-18 Tom Tromey <tromey@redhat.com>
5456
5457 * completer.c (complete_line): Make "line_buffer" const.
5458 * completer.h (complete_line): Update.
5459
5460 2014-06-18 Tom Tromey <tromey@redhat.com>
5461
5462 * symtab.c (add_macro_name): Remove unneeded cast.
5463
5464 2014-06-18 Tom Tromey <tromey@redhat.com>
5465
5466 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5467 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5468
5469 2014-06-18 Tom Tromey <tromey@redhat.com>
5470
5471 * probe.c (info_probes_for_ops): Make "arg" const.
5472 * probe.h (info_probes_for_ops): Update.
5473
5474 2014-06-18 Tom Tromey <tromey@redhat.com>
5475
5476 * varobj.c (varobj_create): Update.
5477 * valops.c (value_of_this): Update.
5478 * tracepoint.c (add_local_symbols, scope_info): Update.
5479 * symtab.h (struct general_symbol_info) <block>: Now const.
5480 * symtab.c (skip_prologue_sal)
5481 (default_make_symbol_completion_list_break_on)
5482 (skip_prologue_using_sal): Update.
5483 * stack.h (iterate_over_block_locals)
5484 (iterate_over_block_local_vars): Update.
5485 * stack.c (print_frame_args): Update.
5486 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5487 parameter const.
5488 (get_selected_block): Make return type const.
5489 * python/py-frame.c (frapy_block): Update.
5490 * python/py-block.c (gdbpy_block_for_pc): Update.
5491 * p-exp.y (%union) <bval>: Now const.
5492 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5493 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5494 * m2-exp.y (%union) <bval>: Now const.
5495 * linespec.c (get_current_search_block): Make return type const.
5496 (create_sals_line_offset, find_label_symbols): Update.
5497 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5498 Update.
5499 (block_starting_point_at): Make "block" const.
5500 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5501 (check_exception_resume): Update.
5502 * guile/scm-frame.c (gdbscm_frame_block): Update.
5503 * guile/scm-block.c (gdbscm_lookup_block): Update.
5504 * frame.h (get_frame_block): Update.
5505 (get_selected_block): Make return type const.
5506 * frame.c (frame_id_inner): Update.
5507 * f-valprint.c (info_common_command_for_block)
5508 (info_common_command): Update.
5509 * dwarf2loc.c (dwarf2_find_location_expression)
5510 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5511 (locexpr_describe_location_piece): Update.
5512 * c-exp.y (%union) <bval>: Now const.
5513 * breakpoint.c (resolve_sal_pc): Update.
5514 * blockframe.c (get_frame_block):Make return type const.
5515 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5516 (block_innermost_frame): Update.
5517 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5518 (block_for_pc, block_for_pc_sect): Update.
5519 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5520 'pblock' const.
5521 (block_for_pc_sect, block_for_pc): Make return type const.
5522 * ax-gdb.c (gen_expr): Update.
5523 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5524 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5525 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5526 (ada_read_var_value): Update.
5527 * ada-exp.y (struct name_info) <block>: Now const.
5528 (%union): Likewise.
5529 (block_lookup): Constify.
5530
5531 2014-06-18 Gary Benson <gbenson@redhat.com>
5532
5533 * nat/i386-dregs.h: New file.
5534 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5535 * i386-nat.h (i386-dregs.h): New include.
5536 (DR_FIRSTADDR): Now in i386-dregs.h.
5537 (DR_LASTADDR): Likewise.
5538 (DR_NADDR): Likewise.
5539 (DR_STATUS): Likewise.
5540 (DR_CONTROL): Likewise.
5541 (i386_debug_reg_state): Likewise.
5542 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5543
5544 2014-06-18 Don Breazeal <donb@codesourcery.com>
5545
5546 * breakpoint.c (set_longjmp_breakpoint): Call
5547 momentary_breakpoint_from_master with additional argument.
5548 (set_longjmp_breakpoint_for_call_dummy): Call
5549 momentary_breakpoint_from_master with additional argument.
5550 (set_std_terminate_breakpoint): Call
5551 momentary_breakpoint_from_master with additional argument.
5552 (momentary_breakpoint_from_master): Add argument to function
5553 definition and use it to initialize structure member flag.
5554 (clone_momentary_breakpoint): Call
5555 momentary_breakpoint_from_master with additional argument.
5556 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5557 member flags set in momentary_breakpoint_from_master.
5558
5559 2014-06-18 Gary Benson <gbenson@redhat.com>
5560
5561 * i386-nat.c (i386_show_dr): Renamed to
5562 i386_dr_show and made nonstatic. All uses updated.
5563 (i386_length_and_rw_bits): Renamed to
5564 i386_dr_length_and_rw_bits and made nonstatic.
5565 All uses updated.
5566 (i386_insert_aligned_watchpoint): Renamed to
5567 i386_dr_insert_aligned_watchpoint and made nonstatic.
5568 All uses updated.
5569 (i386_remove_aligned_watchpoint): Renamed to
5570 i386_dr_remove_aligned_watchpoint and made nonstatic.
5571 All uses updated.
5572 (i386_update_inferior_debug_regs): Renamed to
5573 i386_dr_update_inferior_debug_regs and made nonstatic.
5574 All uses updated.
5575
5576 2014-06-18 Gary Benson <gbenson@redhat.com>
5577
5578 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5579 (i386_dr_low_can_set_control): Likewise.
5580 (i386_dr_low_set_addr): Likewise.
5581 (i386_dr_low_set_control): Likewise.
5582 (i386_dr_low_get_addr): Likewise.
5583 (i386_dr_low_get_status): Likewise.
5584 (i386_dr_low_get_control): Likewise.
5585 (i386_insert_aligned_watchpoint): Use new macros.
5586 (i386_update_inferior_debug_regs): Likewise.
5587 (i386_stopped_data_address): Likewise.
5588
5589 2014-06-18 Gary Benson <gbenson@redhat.com>
5590
5591 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5592 New parameter. All uses updated.
5593
5594 2014-06-18 Gary Benson <gbenson@redhat.com>
5595
5596 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5597 All uses updated.
5598
5599 2014-06-18 Gary Benson <gbenson@redhat.com>
5600
5601 * i386-nat.c (debug_printf): New macro.
5602 (i386_get_debug_register_length): Likewise.
5603 (TARGET_HAS_DR_LEN_8): Use above macro.
5604 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5605 and printf_unfiltered. Use phex to format values.
5606
5607 2014-06-18 Gary Benson <gbenson@redhat.com>
5608
5609 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5610 Make const.
5611
5612 2014-06-18 Gary Benson <gbenson@redhat.com>
5613
5614 * i386-nat.c: Comment changes.
5615
5616 2014-06-18 Gary Benson <gbenson@redhat.com>
5617
5618 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5619
5620 2014-06-18 Gary Benson <gbenson@redhat.com>
5621
5622 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5623 (i386_insert_aligned_watchpoint): Likewise.
5624 (i386_remove_aligned_watchpoint): Likewise.
5625 (i386_handle_nonaligned_watchpoint): Likewise.
5626
5627 2014-06-18 Gary Benson <gbenson@redhat.com>
5628
5629 * i386-nat.c: Whitespace changes.
5630
5631 2014-06-17 Samuel Bronson <naesten@gmail.com>
5632
5633 * MAINTAINERS: Update Roland McGrath's email address.
5634 Thanks to Sergio Durigan Junior for pointing out that he left
5635 Red Hat a while ago, and giving me a current address.
5636
5637 2014-06-17 Tom Tromey <tromey@redhat.com>
5638
5639 * utils.h (savestring): Remove declaration.
5640
5641 2014-06-17 Tom Tromey <tromey@redhat.com>
5642
5643 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5644
5645 2014-06-16 Keith Seitz <keiths@redhat.com>
5646
5647 PR mi/15863
5648 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5649 to update the varobj if inferior_ptid is null_ptid.
5650
5651 2014-06-16 Tom Tromey <tromey@redhat.com>
5652
5653 * target.h (struct target_ops) <to_info_proc>: Make parameter
5654 const.
5655 (target_info_proc): Update.
5656 * target.c (target_info_proc): Make "args" const.
5657 * procfs.c (procfs_info_proc): Update.
5658 * linux-tdep.c (linux_info_proc): Update.
5659 (linux_core_info_proc_mappings): Make "args" const.
5660 (linux_core_info_proc): Update.
5661 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5662 * gdbarch.c: Rebuild.
5663 * gdbarch.h: Rebuild.
5664 * corelow.c (core_info_proc): Update.
5665
5666 2014-06-16 Tom Tromey <tromey@redhat.com>
5667
5668 * target.h (struct target_ops) <to_disconnect>: Make parameter
5669 const.
5670 (target_disconnect): Update.
5671 * target.c (target_disconnect): Make "args" const.
5672 * target-delegates.c: Rebuild.
5673 * remote.c (remote_disconnect): Update.
5674 * record.h (record_disconnect): Update.
5675 * record.c (record_disconnect): Update.
5676 * inf-child.c (inf_child_disconnect): Update.
5677
5678 2014-06-16 Tom Tromey <tromey@redhat.com>
5679
5680 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5681 * target.c (debug_to_rcmd, default_rcmd): Update.
5682 * target-delegates.c: Rebuild.
5683 * remote.c (remote_rcmd): Update.
5684 * monitor.c (monitor_rcmd): Update.
5685
5686 2014-06-16 Pedro Alves <palves@redhat.com>
5687
5688 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5689 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5690 have OBJF_SHARED set.
5691 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5692 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5693 instead of OBJF_USERLOADED.
5694 * objfiles.h (OBJF_SHARED): Update comment.
5695 (userloaded_objfile_contains_address_p): Rename to ...
5696 (shared_objfile_contains_address_p): ... this, and update
5697 comments.
5698 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5699 new objfile.
5700 (remove_symbol_file_command): Skip objfiles that don't have
5701 OBJF_SHARED set.
5702
5703 2014-06-16 Tom Tromey <tromey@redhat.com>
5704
5705 * minsyms.h (prim_record_minimal_symbol)
5706 (prim_record_minimal_symbol_and_info): Update comments.
5707
5708 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5709
5710 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5711 or --without-guile, according to how GDB was built.
5712
5713 2014-06-13 Tom Tromey <tromey@redhat.com>
5714
5715 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5716 to help_list.
5717 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5718 to help_list.
5719 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5720 help_list.
5721 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5722 help_list.Pass all_commands, not -1, to help_list.
5723 * cli/cli-dump.c (dump_command, append_command)
5724 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5725 (binary_dump_command, binary_append_command): Pass all_commands,
5726 not -1, to help_list.
5727 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5728 -1, to help_list.
5729 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5730 -1, to help_list.
5731 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5732 help_list.
5733 * top.c (set_history): Pass all_commands, not -1, to help_list.
5734 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5735 all_commands, not -1, to help_list.
5736 * symfile.c (overlay_command): Pass all_commands, not -1, to
5737 help_list.
5738 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5739 help_list.
5740 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5741 help_list.
5742 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5743 -1, to help_list.
5744 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5745 not -1, to help_list.
5746 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5747 not -1, to help_list.
5748 * maint.c (maintenance_command, maintenance_info_command)
5749 (maintenance_print_command, maintenance_set_cmd): Pass
5750 all_commands, not -1, to help_list.
5751 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5752 help_list.
5753 * language.c (set_check): Pass all_commands, not -1, to help_list.
5754 * infcmd.c (unset_command): Pass all_commands, not -1, to
5755 help_list.
5756 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5757 help_list.
5758 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5759 help_list.
5760 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5761 help_list.
5762 * breakpoint.c (save_command): Pass all_commands, not -1, to
5763 help_list.
5764 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5765 all_commands, not -1, to help_list.
5766
5767 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5768
5769 * regcache.c (struct register_to_invalidate): New structure.
5770 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5771 functions.
5772 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5773
5774 2014-06-12 Yao Qi <yao@codesourcery.com>
5775
5776 * varobj.c (varobj_get_num_children): Call
5777 varobj_is_dynamic_p.
5778 (varobj_list_children): Likewise.
5779 (varobj_update): Likewise. Update comments.
5780
5781 2014-06-12 Yao Qi <yao@codesourcery.com>
5782
5783 * varobj.c (varobj_pretty_printed_p): Rename to ...
5784 (varobj_is_dynamic_p): ... this. New function.
5785 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5786 (varobj_is_dynamic_p): Declare.
5787 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5788 (mi_print_value_p, varobj_update_one): Likewise.
5789
5790 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5791 Yao Qi <yao@codesourcery.com>
5792
5793 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5794 (varobj_get_iterator): Wrap up code for pretty-printer by
5795 "#if HAVE_PYTHON" and "#endif".
5796 (update_dynamic_varobj_children): Likewise.
5797
5798 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5799 Yao Qi <yao@codesourcery.com>
5800
5801 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5802 gdb_python_initialized is false. Move some code from varobj.c.
5803 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5804 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5805 (struct varobj_item): Moved to varobj-iter.h".
5806 (varobj_clear_saved_item): New function.
5807 (update_dynamic_varobj_children): Move python-related code to
5808 py-varobj.c.
5809 (free_variable): Call varobj_clear_saved_item and
5810 varobj_iter_delete.
5811
5812 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5813 Yao Qi <yao@codesourcery.com>
5814
5815 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5816 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5817 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5818 (py-varobj.o): New rule.
5819 * python/py-varobj.c: New file.
5820 * python/python-internal.h (py_varobj_get_iterator): Declare.
5821 * varobj-iter.h: New file.
5822 * varobj.c: Include "varobj-iter.h"
5823 (struct varobj) <child_iter>: Change its type from "PyObject *"
5824 to "struct varobj_iter *".
5825 <saved_item>: Likewise.
5826 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5827 [HAVE_PYTHON] (varobj_get_iterator): New function.
5828 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5829 python-specific code to python/py-varobj.c.
5830 (install_visualizer): Call varobj_iter_delete instead of
5831 Py_XDECREF.
5832 * varobj.h (varobj_ensure_python_env): Declare.
5833
5834 2014-06-12 Yao Qi <yao@codesourcery.com>
5835
5836 * varobj.c (struct varobj_item): New structure.
5837 (create_child_with_value): Update declaration.
5838 (varobj_add_child): Replace arguments 'name' and 'value' with
5839 'item'. All callers updated.
5840 (install_dynamic_child): Likewise.
5841 (update_dynamic_varobj_children): Likewise.
5842 (varobj_add_child): Likewise.
5843 (create_child_with_value): Likewise.
5844
5845 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5846
5847 * NEWS: Create a new section for the next release branch.
5848 Rename the section of the current branch, now that it has
5849 been cut.
5850
5851 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5852
5853 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5854 * version.in: Bump version to 7.8.50.DATE-cvs.
5855
5856 2014-06-11 Pedro Alves <palves@redhat.com>
5857
5858 PR remote/17028
5859 * ser-mingw.c (net_windows_socket_check_pending): New function.
5860 (net_windows_select_thread): Ignore spurious wakeups. Use
5861 net_windows_socket_check_pending.
5862 (net_windows_wait_handle): Check for pending events with
5863 ioctlsocket, through net_windows_socket_check_pending, instead of
5864 checking the socket's event.
5865
5866 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5867
5868 * python/python-internal.h (gdb_PyObject_GetAttrString)
5869 (gdb_PyObject_HasAttrString): New inline function definitions.
5870 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5871 char * of the second argument to PyObject_GetAttrString.
5872
5873 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5874
5875 * serial.c (serial_write): Fix index of character to be printed
5876 in call to serial_logchar when serial debug traces are enabled.
5877
5878 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5879
5880 * gdbtypes (resolve_dynamic_range): Add function description.
5881
5882 2014-06-09 Pedro Alves <palves@redhat.com>
5883
5884 * linux-nat.c (linux_child_follow_fork): Initialize status with
5885 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5886 inner block. Only pass the signal to PTRACE_DETACH if in pass
5887 state.
5888
5889 2014-06-09 Gary Benson <gbenson@redhat.com>
5890
5891 * common/signals.c (gdb_signal_from_host): Reorder to separate
5892 the always-available ANSI-standard signals from the signals that
5893 require checking.
5894 (do_gdb_signal_to_host): Likewise.
5895 * proc-events.c (signal_table): Likewise.
5896
5897 2014-06-08 Hui Zhu <hui@codesourcery.com>
5898
5899 * common/linux-ptrace.c (linux_disable_event_reporting): New
5900 function.
5901 * common/linux-ptrace.h (linux_disable_event_reporting): New
5902 declaration.
5903 * linux-nat.c (linux_child_follow_fork): Do a single step before
5904 detach.
5905
5906 2014-06-07 Keith Seitz <keiths@redhat.com>
5907
5908 Revert:
5909 PR c++/16253
5910 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5911 from symbol_matches_domain in symtab.c. All local callers
5912 of symbol_matches_domain updated.
5913 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5914 search STRUCT_DOMAIN.
5915 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5916 independently. standard_lookup will do that automatically.
5917 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5918 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5919 (cp_lookup_symbol_in_namespace): Likewise.
5920 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5921 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5922 may return a STRUCT_DOMAIN match.
5923 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5924 * cp-support.c: Include language.h.
5925 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5926 VAR_DOMAIN.
5927 * psymtab.c (match_partial_symbol): Compare the requested
5928 domain with the symbol's domain directly.
5929 (lookup_partial_symbol): Likewise.
5930 * symtab.c (lookup_symbol_in_language): Explain when/why
5931 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5932 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5933 appropriate languages.
5934 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5935 and moved to ada-lang.c
5936 (lookup_block_symbol): Explain that this function only returns
5937 symbol matching the requested DOMAIN.
5938 Compare the requested domain with the symbol's domain directly.
5939 (iterate_over_symbols): Compare the requested domain with the
5940 symbol's domain directly.
5941 * symtab.h (symbol_matches_domain): Remove.
5942
5943 2014-06-06 Doug Evans <xdje42@gmail.com>
5944
5945 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5946 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5947 (gdbscm_guile_version_is_at_least): Declare.
5948 (gdbscm_scm_string_to_int): Declare.
5949 * guile/guile.c (gdbscm_guile_major_version): New global.
5950 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5951 (guile_datadir): New static global.
5952 (gdbscm_guile_data_directory): New function.
5953 (initialize_scheme_side): Update.
5954 (misc_guile_functions): Add guile-data-directory.
5955 (initialize_gdb_module): Fetch guile version number.
5956 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5957 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5958 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5959 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5960 comments.
5961 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5962 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5963 * guile/scm-value.c (gdbscm_value_to_string): Only call
5964 scm_port_conversion_strategy if Guile version >= 2.0.6.
5965
5966 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5967
5968 * main.c (print_gdb_help): Add -q and --silent.
5969
5970 2014-06-06 Gary Benson <gbenson@redhat.com>
5971
5972 * common/signals.c: Remove preprocessor conditionals for
5973 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5974 SIGSEGV and SIGTERM.
5975 * proc-events.c: Likewise.
5976
5977 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5978
5979 * symfile.c (symfile_free_objfile): Remove restriction to
5980 OBJF_USERLOADED.
5981 * symfile-mem.c (symbol_file_add_from_memory): Call
5982 add_target_sections_of_objfile.
5983
5984 2014-06-05 Ludovic Courtès <ludo@gnu.org>
5985
5986 * guile/scm-value.c (gdbscm_history_append_x): Use
5987 'vlscm_get_value_smob_arg_unsafe' instead of
5988 'vlscm_scm_to_value'.
5989
5990 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
5991
5992 PR mi/15806
5993 * utils.c (printchar): Don't escape at all if quoter is NUL.
5994 Update function documentation to clarify effect of parameter
5995 QUOTER.
5996 * remote.c (escape_buffer): Pass '\\' as the quoter to
5997 fputstrn_unfiltered.
5998 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
5999 generate the output.
6000 (mi_solib_unloaded): Same.
6001
6002 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6003
6004 * development.sh: Delete.
6005 * Makefile.in (config.status): Adjust dependency on development.sh.
6006 * configure.ac: Adjust development.sh source call.
6007 * configure: Regenerate.
6008
6009 2014-06-04 Doug Evans <xdje42@gmail.com>
6010
6011 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6012 is_scheme_bkpt, spec.
6013 (bpscm_make_breakpoint_smob): Initialize new members.
6014 (gdbscm_create_breakpoint_x): Split into two ...
6015 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6016 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6017 (scheme_function breakpoint_functions): Update.
6018 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6019 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6020 register-breakpoint!.
6021
6022 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6023
6024 PR server/17023
6025 * mem-break.c (z_type_supported): Return zero if
6026 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6027
6028 2014-06-04 Tom Tromey <tromey@redhat.com>
6029
6030 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6031 value_from_contents_and_address_unresolved.
6032 (ada_template_to_fixed_record_type_1): Likewise.
6033 (ada_which_variant_applies): Likewise.
6034 * value.h (value_from_contents_and_address_unresolved): Declare.
6035 * value.c (value_from_contents_and_address_unresolved): New
6036 function.
6037 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6038 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6039 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6040
6041 2014-06-04 Tom Tromey <tromey@redhat.com>
6042
6043 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6044
6045 2014-06-04 Tom Tromey <tromey@redhat.com>
6046
6047 * procfs.c (procfs_attach): Make "args" const.
6048 * windows-nat.c (windows_attach): Make "args" const.
6049 * nto-procfs.c (procfs_attach): Make "args" const.
6050 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6051 * go32-nat.c (go32_attach): Make "args" const.
6052 * gnu-nat.c (gnu_attach): Make "args" const.
6053 * darwin-nat.c (darwin_attach): Make "args" const.
6054 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6055 * linux-nat.c (linux_nat_attach): Make "args" const.
6056 * remote.c (extended_remote_attach_1, extended_remote_attach):
6057 Make "args" const.
6058 * target.h (struct target_ops) <to_attach>: Make "args" const.
6059 (find_default_attach): Likewise.
6060 * utils.c (parse_pid_to_attach): Make "args" const.
6061 * utils.h (parse_pid_to_attach): Update.
6062
6063 2014-06-04 Tom Tromey <tromey@redhat.com>
6064
6065 * target-delegates.c: Rebuild.
6066 * target.c (default_thread_address_space): New function.
6067 (target_thread_address_space): Simplify.
6068 * target.h (struct target_ops) <to_thread_address_space>: Add
6069 TARGET_DEFAULT_FUNC.
6070
6071 2014-06-04 Doug Evans <xdje42@gmail.com>
6072
6073 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6074
6075 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6076
6077 * record-btrace.c: Include event-loop.h and inf-loop.h.
6078 (record_btrace_resume_exec_dir)
6079 (record_btrace_async_inferior_event_handler)
6080 (record_btrace_handle_async_inferior_event): New.
6081 (record_btrace_open): Create async event handler.
6082 (record_btrace_close): Delete async event handler.
6083 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6084 Mark async event handler.
6085 (record_btrace_execution_direction): New.
6086 (init_record_btrace_ops): Initialize to_execution_direction.
6087
6088 2014-06-03 Doug Evans <xdje42@gmail.com>
6089
6090 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6091 (gdbscm_make_parameter): Ditto.
6092
6093 2014-06-03 Doug Evans <dje@google.com>
6094
6095 * exec.c (exec_close_1): Call clear_section_table instead of
6096 resize_section_table.
6097 (clear_section_table): New function.
6098 (resize_section_table): Make static. Rename arg num_added to
6099 adjustment.
6100 * exec.h (clear_section_table): Declare.
6101 (resize_section_table): Delete.
6102 * progspace.c (release_program_space): Call clear_section_table
6103 instead of resize_section_table.
6104
6105 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6106
6107 * NEWS (Python Scripting): Add entry about the new xmethods
6108 feature.
6109
6110 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6111
6112 * python/py-xmethods.c: New file.
6113 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6114 (objfpy_dealloc): XDECREF on the new xmethods field.
6115 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6116 field.
6117 (objfpy_get_xmethods): New function.
6118 (objfile_getset): New entry 'xmethods'.
6119 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6120 (pspy_dealloc): XDECREF on the new xmethods field.
6121 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6122 field.
6123 (pspy_get_xmethods): New function.
6124 (pspace_getset): New entry 'xmethods'.
6125 * python/python-internal.h: Add declarations for new functions.
6126 * python/python.c (_initialize_python): Invoke
6127 gdbpy_initialize_xmethods.
6128 * python/lib/gdb/__init__.py (xmethods): New
6129 attribute.
6130 * python/lib/gdb/xmethod.py: New file.
6131 * python/lib/gdb/command/xmethods.py: New file.
6132
6133 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6134
6135 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6136 best match method returned by find_overload_match is an xmethod.
6137 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6138 the best matching operator returned by find_overload_match is an
6139 xmethod.
6140 * valops.c: #include "extension.h".
6141 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6142 Return void. The list of matching source methods is returned in
6143 "fn_list" and a vector of matching debug method workers is
6144 returned in "xm_worker_vec". Update all callers.
6145 (value_find_oload_method_list): Likewise.
6146 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6147 non-NULL, then the index of the best matching method in this
6148 vector is returned. Update all callers.
6149 (find_overload_match): Include xmethods while performing overload
6150 resolution.
6151
6152 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6153
6154 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6155 * extension-priv.h (struct extension_language_ops): Add the
6156 xmethod interface.
6157 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6158 get_matching_xmethod_workers, get_xmethod_argtypes,
6159 invoke_xmethod, free_xmethod_worker,
6160 free_xmethod_worker_vec): New functions.
6161 * extension.h: #include "common/vec.h".
6162 New function declarations.
6163 (struct xmethod_worker): New struct.
6164 (VEC (xmethod_worker_ptr)): New vector type.
6165 (xmethod_worker_ptr): New typedef.
6166 (xmethod_worker_vec): Likewise.
6167 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6168 builtin_type.
6169 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6170 (struct builtin_type): New field "xmethod".
6171 * valarith.c (value_ptradd): Assert that the value argument is not
6172 lval_xcallable.
6173 * valops.c (value_must_coerce_to_target): Return 0 for
6174 lval_xcallable values.
6175 * value.c (struct value): New field XM_WORKER in the field
6176 LOCATION.
6177 (value_address, value_raw_address): Return 0 for lval_xcallable
6178 values.
6179 (set_value_address): Assert that the value is not an
6180 lval_xcallable.
6181 (value_free): Free the associated xmethod worker when freeing
6182 lval_xcallable values.
6183 (set_value_component_location): Assert that the WHOLE value is not
6184 lval_xcallable.
6185 (value_of_xmethod, call_xmethod): New functions.
6186 * value.h: Declare "struct xmethod_worker".
6187 Declare new functions value_of_xmethod, call_xmethod.
6188
6189 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6190 Pedro Alves <palves@redhat.com>
6191
6192 PR breakpoints/17000
6193 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6194 New function, extracted from software_breakpoint_inserted_here_p.
6195 (software_breakpoint_inserted_here_p): Replace factored out code
6196 by call to find_non_raw_software_breakpoint_inserted_here.
6197 (bp_target_info_copy_insertion_state): New function.
6198 (bkpt_insert_location): Handle the case of a single-step
6199 breakpoint already inserted at the same address.
6200 (bkpt_remove_location): Handle the case of a single-step
6201 breakpoint still inserted at the same address.
6202 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6203 breakpoint already inserted at the same address.
6204 (deprecated_remove_raw_breakpoint): Handle the case of a
6205 non-raw breakpoint still inserted at the same address.
6206 (find_single_step_breakpoint): New function, extracted from
6207 single_step_breakpoint_inserted_here_p.
6208 (find_single_step_breakpoint): New function,
6209 factored out from single_step_breakpoint_inserted_here_p.
6210 (single_step_breakpoint_inserted_here_p): Reimplement.
6211
6212 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6213
6214 Pushed by Joel Brobecker <brobecker@adacore.com>
6215 * source.c (show_substitute_path_command): Fix display of matching
6216 substitution rules.
6217
6218 2014-06-03 Gary Benson <gbenson@redhat.com>
6219
6220 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6221
6222 2014-06-02 Doug Evans <xdje42@gmail.com>
6223
6224 Add parameter support for Guile.
6225 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6226 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6227 (scm-param.o): New rule.
6228 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6229 (gdbscm_misc_error): Declare.
6230 (gdbscm_canonicalize_command_name): Declare.
6231 (gdbscm_scm_to_host_string): Declare.
6232 (gdbscm_scm_from_host_string): Declare.
6233 (gdbscm_initialize_parameters): Declare.
6234 * guile/guile.c (initialize_gdb_module): Call
6235 gdbscm_initialize_parameters.
6236 * guile/lib/gdb.scm: Export parameter symbols.
6237 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6238 cmdscm_canonicalize_name and made public. All callers updated.
6239 * guile/scm-exception.c (gdbscm_misc_error): New function.
6240 * guile/scm-param.c: New file.
6241 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6242 (gdbscm_scm_to_host_string): New function.
6243 (gdbscm_scm_from_host_string): New function.
6244 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6245
6246 2014-06-02 Doug Evans <xdje42@gmail.com>
6247
6248 Add command support for Guile.
6249 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6250 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6251 (scm-cmd.o): New rule.
6252 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6253 (gdbscm_user_error_p): Declare.
6254 (gdbscm_parse_command_name): Declare.
6255 (gdbscm_valid_command_class_p): Declare.
6256 (gdbscm_initialize_commands): Declare.
6257 * guile/guile.c (initialize_gdb_module): Call
6258 gdbscm_initialize_commands.
6259 * guile/lib/gdb.scm: Export command symbols.
6260 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6261 (throw-user-error): New function.
6262 * guile/scm-cmd.c: New file.
6263 * guile/scm-exception.c (user_error_symbol): New static global.
6264 (gdbscm_user_error_p): New function.
6265 (gdbscm_initialize_exceptions): Set user_error_symbol.
6266 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6267
6268 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6269
6270 * top.c (command_loop): Handle comments here...
6271 (command_line_input): ... not here.
6272
6273 2014-06-02 Doug Evans <xdje42@gmail.com>
6274
6275 Add progspace support for Guile.
6276 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6277 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6278 (scm-progspace.o): New rule.
6279 * guile/guile-internal.h (pspace_smob): New typedef.
6280 (psscm_pspace_smob_pretty_printers): Declare.
6281 (psscm_pspace_smob_from_pspace): Declare.
6282 (psscm_scm_from_pspace): Declare.
6283 * guile/guile.c (initialize_gdb_module): Call
6284 gdbscm_initialize_pspaces.
6285 * guile/lib/gdb.scm: Export progspace symbols.
6286 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6287 support.
6288 (append-pretty-printer!): Ditto.
6289 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6290 Implement.
6291 * guile/scm-progspace.c: New file.
6292
6293 2014-06-03 Alan Modra <amodra@gmail.com>
6294
6295 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6296 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6297
6298 2014-06-02 Doug Evans <dje@google.com>
6299
6300 Add support for skeletonless type units.
6301 * dwarf2read.c (struct dwarf2_per_objfile): New member
6302 n_allocated_type_units.
6303 (struct dwarf2_per_objfile) <tu_stats>: New member
6304 nr_all_type_units_reallocs.
6305 (create_signatured_type_table_from_index): Initialize
6306 n_allocated_type_units
6307 (create_all_type_units): Ditto.
6308 (add_type_unit): Move up in file. New arg slot.
6309 All callers updated. Increase space for all_type_units more
6310 efficiently.
6311 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6312 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6313 (lookup_dwp_signatured_type): Ditto.
6314 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6315 All callers updated.
6316 (build_type_psymtabs_1): Leave type_unit_groups as
6317 NULL if no TUs present.
6318 (print_tu_stats): New function.
6319 (process_skeletonless_type_unit): New function.
6320 (process_dwo_file_for_skeletonless_type_units): New
6321 function.
6322 (process_skeletonless_type_units): New function.
6323 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6324 Call print tu_stats if debugging enabled.
6325
6326 2014-06-02 Pedro Alves <palves@redhat.com>
6327
6328 * breakpoint.c (build_target_command_list): Don't build a command
6329 list if we have any duplicate location that isn't a dprintf.
6330
6331 2014-06-02 Pedro Alves <palves@redhat.com>
6332
6333 * breakpoint.c (dprintf_breakpoint_hit): New function.
6334 (initialize_breakpoint_ops): Install it as dprintf's
6335 breakpoint_hit method.
6336
6337 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6338
6339 * source.c (substitute_path_rule_matches): Simplify using
6340 filename_ncmp instead of FILENAME_CMP.
6341
6342 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6343
6344 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6345
6346 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6347
6348 * configure.ac: When Guile is available, check for the
6349 availability of 'scm_new_smob'.
6350 * configure, config.h.in: Regenerate.
6351 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6352 function.
6353
6354 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6355
6356 * frame.c (struct frame_info): Add stop_string field.
6357 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6358 (get_prev_frame_always): Old content moved into
6359 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6360 TRY_CATCH, handle MEMORY_ERROR exceptions.
6361 (frame_stop_reason_string): New function definition.
6362 * frame.h (unwind_stop_reason_to_string): Extend comment to
6363 mention frame_stop_reason_string.
6364 (frame_stop_reason_string): New function declaration.
6365 * stack.c (frame_info): Switch to frame_stop_reason_string.
6366 (backtrace_command_1): Switch to frame_stop_reason_string.
6367 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6368 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6369 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6370
6371 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6372
6373 * frame.c (frame_stop_reason_string): Rename to ...
6374 (unwind_stop_reason_to_string): this.
6375 * frame.h (frame_stop_reason_string): Rename to ...
6376 (unwind_stop_reason_to_string): this.
6377 * stack.c (frame_info): Update call to frame_stop_reason_string.
6378 (backtrace_command_1): Likewise.
6379 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6380 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6381
6382 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6383
6384 * frame.c (remove_prev_frame): New function.
6385 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6386 remove_prev_frame.
6387
6388 2014-05-29 Pedro Alves <palves@redhat.com>
6389
6390 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6391 and make it const. When a single-step decays to a continue,
6392 clear 'step', not 'hw_step'. Pass whether the caller wanted
6393 to step to user_visible_resume_ptid, not what we ask the
6394 target to do.
6395
6396 2014-05-29 Pedro Alves <palves@redhat.com>
6397
6398 * infrun.c (process_event_stop_test, handle_step_into_function)
6399 (handle_step_into_function_backward): Adjust.
6400 Don't set the even thread's stop_step and call stop_waiting before
6401 calling end_stepping_range. Instead do that ...
6402 (end_stepping_range): ... here. Take an ecs pointer parameter.
6403
6404 2014-05-29 Pedro Alves <palves@redhat.com>
6405
6406 * infrun.c (stop_stepping): Rename to ...
6407 (stop_waiting): ... this.
6408 (proceed): Update comment.
6409 (process_event_stop_test, handle_inferior_event)
6410 (handle_signal_stop, handle_step_into_function)
6411 (handle_step_into_function_backward): Update.
6412
6413 2014-05-29 Pedro Alves <palves@redhat.com>
6414
6415 * infcall.c (run_inferior_call): Don't check whether the current
6416 thread is running after the proceed call.
6417
6418 2014-05-29 Pedro Alves <palves@redhat.com>
6419 Tom Tromey <tromey@redhat.com>
6420
6421 * NEWS: Mention "maint set target-async", "set mi-async", and that
6422 background execution commands are now always available.
6423 * target.h (target_async_permitted): Update comment.
6424 * target.c (target_async_permitted, target_async_permitted_1):
6425 Default to 1.
6426 (set_target_async_command): Rename to ...
6427 (maint_set_target_async_command): ... this.
6428 (show_target_async_command): Rename to ...
6429 (maint_show_target_async_command): ... this.
6430 (_initialize_target): Adjust.
6431 * infcmd.c (prepare_execution_command): Make extern.
6432 * inferior.h (prepare_execution_command): Declare.
6433 * infrun.c (set_observer_mode): Leave target async alone.
6434 * mi/mi-interp.c (mi_interpreter_init): Install
6435 mi_on_sync_execution_done as sync_execution_done observer.
6436 (mi_on_sync_execution_done): New function.
6437 (mi_execute_command_input_handler): Don't print the prompt if we
6438 just started a synchronous command with an async target.
6439 (mi_on_resume): Check sync_execution before printing prompt.
6440 * mi/mi-main.h (mi_async_p): Declare.
6441 * mi/mi-main.c: Include gdbcmd.h.
6442 (mi_async_p): New function.
6443 (mi_async, mi_async_1): New globals.
6444 (set_mi_async_command, show_mi_async_command, mi_async): New
6445 functions.
6446 (exec_continue): Call prepare_execution_command.
6447 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6448 (mi_execute_async_cli_command): Use mi_async_p.
6449 (_initialize_mi_main): Install "set mi-async". Make
6450 "target-async" a deprecated alias.
6451
6452 2014-05-29 Pedro Alves <palves@redhat.com>
6453
6454 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6455 (_initialize_cli_interp): Adjust.
6456 * event-loop.c: Include "observer.h".
6457 (start_event_loop): Notify 'command_error' observers instead of
6458 calling display_gdb_prompt. Remove FIXME comment.
6459 * event-top.c (display_gdb_prompt): Remove call into the
6460 interpreters.
6461 * inf-loop.c: Include "observer.h".
6462 (inferior_event_handler): Notify 'command_error' observers instead
6463 of calling display_gdb_prompt.
6464 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6465 observers instead of calling display_gdb_prompt.
6466 * interps.c (interp_set): Don't call display_gdb_prompt.
6467 (current_interp_display_prompt_p): Delete.
6468 * interps.h (interp_prompt_p): Delete declaration.
6469 (interp_prompt_p_ftype): Delete.
6470 (struct interp_procs) <prompt_proc_p>: Delete field.
6471 (current_interp_display_prompt_p): Delete declaration.
6472 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6473 (_initialize_mi_interp): Adjust.
6474 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6475 'command_error' observers.
6476 (tui_on_sync_execution_done, tui_on_command_error): New
6477 functions.
6478 (tui_display_prompt_p): Delete.
6479 (_initialize_tui_interp): Adjust.
6480
6481 2014-05-29 Pedro Alves <palves@redhat.com>
6482
6483 PR gdb/13860
6484 * cli/cli-interp.c: Include infrun.h and observer.h.
6485 (cli_uiout, cli_interp): New globals.
6486 (cli_on_signal_received, cli_on_end_stepping_range)
6487 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6488 functions.
6489 (cli_interpreter_init): Install them as 'end_stepping_range',
6490 'signal_received' 'signal_exited', 'exited' and 'no_history'
6491 observers.
6492 (_initialize_cli_interp): Remove cli_interp local.
6493 * infrun.c (handle_inferior_event): Call the several stop reason
6494 observers instead of printing the stop reason directly.
6495 (end_stepping_range): New function.
6496 (print_end_stepping_range_reason, print_signal_exited_reason)
6497 (print_exited_reason, print_signal_received_reason)
6498 (print_no_history_reason): Make static, and add an uiout
6499 parameter. Print to that instead of to CURRENT_UIOUT.
6500 * infrun.h (print_end_stepping_range_reason)
6501 (print_signal_exited_reason, print_exited_reason)
6502 (print_signal_received_reason print_no_history_reason): New
6503 declarations.
6504 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6505 'mi_uiout'.
6506 <cli_uiout>: New field.
6507 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6508 uiout for CLI output. Install 'signal_received',
6509 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6510 observers.
6511 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6512 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6513 (mi_on_no_history): New functions.
6514 (ui_out_free_cleanup): Delete function.
6515 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6516 instead use the one already stored in the MI interpreter data.
6517 (mi_ui_out): Adjust.
6518 * tui/tui-interp.c: Include infrun.h and observer.h.
6519 (tui_interp): New global.
6520 (tui_on_signal_received, tui_on_end_stepping_range)
6521 (tui_on_signal_exited, tui_on_exited)
6522 (tui_on_no_history): New functions.
6523 (tui_init): Install them as 'end_stepping_range',
6524 'signal_received' 'signal_exited', 'exited' and 'no_history'
6525 observers.
6526 (_initialize_tui_interp): Delete tui_interp local.
6527
6528 2014-05-29 Pedro Alves <palves@redhat.com>
6529
6530 PR gdb/15713
6531 * linux-nat.c (linux_nat_resume_callback): Rename the second
6532 parameter to 'except'. Skip LP if it points to EXCEPT.
6533 (linux_nat_resume): Don't mark the event lwp as not stopped
6534 before resuming sibling lwps. Instead ask
6535 linux_nat_resume_callback to skip the event lwp. Mark it as not
6536 stopped after actually resuming it.
6537 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6538 resuming it.
6539 (wait_lwp): Mark the lwp as stopped here.
6540 (stop_wait_callback): Mark the lwp as not stopped right after
6541 resuming it. Don't mark lwps as stopped here.
6542 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6543 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6544
6545 2014-05-29 Pedro Alves <palves@redhat.com>
6546
6547 PR PR15693
6548 * infrun.c (resume): Determine how much to resume depending on
6549 whether the caller wanted a step, not whether we can hardware step
6550 the target. Mark all threads that we intend to run as running,
6551 unless we're calling an inferior function.
6552 (normal_stop): If the thread is running an infcall, don't finish
6553 thread state.
6554 * target.c (target_resume): Don't mark threads as running here.
6555
6556 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6557
6558 * serial.c (_initialize_serial): Remove support for
6559 the "set remotebaud" and "show remotebaud" commands.
6560 * NEWS: Add entry documenting the removal of that command.
6561
6562 2014-05-28 Yao Qi <yao@codesourcery.com>
6563
6564 * charset.c: Fix typo in comments.
6565
6566 2014-05-27 Gary Benson <gbenson@redhat.com>
6567
6568 * utils.c (internal_vproblem): Prompt for a bug report.
6569
6570 2014-05-26 Andy Wingo <wingo@igalia.com>
6571
6572 * guile/scm-arch.c (arscm_mark_arch_smob):
6573 * guile/scm-block.c (bkscm_mark_block_smob)
6574 (bkscm_mark_block_syms_progress_smob):
6575 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6576 * guile/scm-exception.c (exscm_mark_exception_smob):
6577 * guile/scm-frame.c (frscm_mark_frame_smob):
6578 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6579 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6580 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6581 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6582 (ppscm_mark_pretty_printer_worker_smob):
6583 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6584 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6585 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6586 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6587 mark functions.
6588 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6589 function.
6590
6591 2014-05-26 Andy Wingo <wingo@igalia.com>
6592 Doug Evans <xdje42@gmail.com>
6593
6594 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6595 empty_base_class. All uses updated.
6596 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6597 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6598 Adapt all callers.
6599 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6600 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6601 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6602 (gdbscm_gsmob_has_property_p, add_property_name)
6603 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6604 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6605 (gdb-object-has-property?, gdb-object-properties): Remove.
6606 (gdb-object-kind): Renamed from gsmob-kind.
6607
6608 2014-05-26 Andy Wingo <wingo@igalia.com>
6609
6610 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6611 * configure: Regenerate.
6612
6613 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6614
6615 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6616
6617 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6618
6619 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6620 (replay_memory_access_read_only, replay_memory_access_read_write)
6621 (replay_memory_access_types, replay_memory_access)
6622 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6623 (cmd_set_record_btrace, cmd_show_record_btrace)
6624 (cmd_show_replay_memory_access): New.
6625 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6626 (record_btrace_remove_breakpoint): Replace
6627 record_btrace_allow_memory_access with replay_memory_access.
6628 (_initialize_record_btrace): Add commands.
6629 * NEWS: Announce it.
6630
6631 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6632
6633 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6634
6635 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6636
6637 * MAINTAINERS (Write After Approval): Move self back from
6638 paper trail.
6639
6640 2014-05-22 Pedro Alves <palves@redhat.com>
6641
6642 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6643 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6644 (disable_randomization, enum exec_direction_kind)
6645 (execution_direction, stop_registers, start_remote)
6646 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6647 (wait_for_inferior, normal_stop, get_last_target_status)
6648 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6649 (insert_step_resume_breakpoint_at_sal)
6650 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6651 (set_step_info, print_stop_event, signal_stop_state)
6652 (signal_print_state, signal_pass_state, signal_stop_update)
6653 (signal_print_update, signal_pass_update)
6654 (update_signals_program_target, clear_exit_convenience_vars)
6655 (displaced_step_dump_bytes, update_observer_mode)
6656 (signal_catch_update, gdb_signal_from_command): Move
6657 declarations ...
6658 * infrun.h: ... to this new file.
6659 * amd64-tdep.c: Include infrun.h.
6660 * annotate.c: Include infrun.h.
6661 * arch-utils.c: Include infrun.h.
6662 * arm-linux-tdep.c: Include infrun.h.
6663 * arm-tdep.c: Include infrun.h.
6664 * break-catch-sig.c: Include infrun.h.
6665 * breakpoint.c: Include infrun.h.
6666 * common/agent.c: Include infrun.h instead of inferior.h.
6667 * corelow.c: Include infrun.h.
6668 * event-top.c: Include infrun.h.
6669 * go32-nat.c: Include infrun.h.
6670 * i386-tdep.c: Include infrun.h.
6671 * inf-loop.c: Include infrun.h.
6672 * infcall.c: Include infrun.h.
6673 * infcmd.c: Include infrun.h.
6674 * infrun.c: Include infrun.h.
6675 * linux-fork.c: Include infrun.h.
6676 * linux-nat.c: Include infrun.h.
6677 * linux-thread-db.c: Include infrun.h.
6678 * monitor.c: Include infrun.h.
6679 * nto-tdep.c: Include infrun.h.
6680 * procfs.c: Include infrun.h.
6681 * record-btrace.c: Include infrun.h.
6682 * record-full.c: Include infrun.h.
6683 * remote-m32r-sdi.c: Include infrun.h.
6684 * remote-mips.c: Include infrun.h.
6685 * remote-notif.c: Include infrun.h.
6686 * remote-sim.c: Include infrun.h.
6687 * remote.c: Include infrun.h.
6688 * reverse.c: Include infrun.h.
6689 * rs6000-tdep.c: Include infrun.h.
6690 * s390-linux-tdep.c: Include infrun.h.
6691 * solib-irix.c: Include infrun.h.
6692 * solib-osf.c: Include infrun.h.
6693 * solib-svr4.c: Include infrun.h.
6694 * target.c: Include infrun.h.
6695 * top.c: Include infrun.h.
6696 * windows-nat.c: Include infrun.h.
6697 * mi/mi-interp.c: Include infrun.h.
6698 * mi/mi-main.c: Include infrun.h.
6699 * python/py-threadevent.c: Include infrun.h.
6700
6701 2014-05-22 Pedro Alves <palves@redhat.com>
6702
6703 * infrun.c (handle_inferior_event): Store the exit code for
6704 --return-child-result here, instead of ...
6705 (print_exited_reason): ... here.
6706
6707 2014-05-21 Pedro Alves <palves@redhat.com>
6708
6709 PR gdb/13860
6710 * gdbthread.h (struct thread_control_state): New field
6711 `command_interp'.
6712 * infrun.c (follow_fork): Copy the new thread control field to the
6713 child fork thread.
6714 (clear_proceed_status_thread): Clear the new thread control field.
6715 (proceed): Set the new thread control field.
6716 * interps.h (command_interp): Declare.
6717 * interps.c (command_interpreter): New global.
6718 (command_interp): New function.
6719 (interp_exec): Set `command_interpreter' while here.
6720 * cli-out.c (cli_uiout_dtor): New function.
6721 (cli_ui_out_impl): Install it.
6722 * mi/mi-interp.c: Include cli-out.h.
6723 (mi_cmd_interpreter_exec): Add comment.
6724 (restore_current_uiout_cleanup): New function.
6725 (ui_out_free_cleanup): New function.
6726 (mi_on_normal_stop): If finishing an execution command started by
6727 a CLI command, or any kind of breakpoint-like event triggered,
6728 print the stop event to the output (CLI) stream.
6729 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6730
6731 2014-05-21 Pedro Alves <palves@redhat.com>
6732
6733 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6734 current source line having changed.
6735 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6736 * infrun.c (normal_stop): Adjust call to
6737 set_current_sal_from_frame.
6738 * source.c (clear_lines_listed_range): New function.
6739 (set_current_source_symtab_and_line, identify_source_line): Clear
6740 the lines listed range.
6741 (line_info): Handle the first "info line" after the current source
6742 line having changed.
6743 * stack.c (print_stack_frame): Remove center handling.
6744 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6745 center sal.line.
6746
6747 2014-05-21 Pedro Alves <palves@redhat.com>
6748
6749 * inf-child.c (inf_child_mourn_inferior): New function.
6750 * inf-child.h (inf_child_mourn_inferior): New declaration.
6751 * darwin-nat.c (darwin_mourn_inferior): Use
6752 inf_child_mourn_inferior.
6753 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6754 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6755 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6756 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6757 * windows-nat.c (windows_mourn_inferior): Likewise.
6758
6759 2014-05-21 Doug Evans <xdje42@gmail.com>
6760
6761 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6762
6763 2014-05-21 Doug Evans <xdje42@gmail.com>
6764
6765 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6766 (gdbscm_out_of_range_error): Ditto.
6767 (gdbscm_memory_error): Ditto.
6768 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6769 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6770 (gdbscm_out_of_range_error): Update.
6771 (gdbscm_memory_error): Update.
6772 (gdbscm_scm_to_target_string_unsafe): Delete.
6773
6774 2014-05-21 Pedro Alves <palves@redhat.com>
6775
6776 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6777 globals.
6778 (inf_child_open_target): New function.
6779 (inf_child_open): Use inf_child_open_target to push the target
6780 instead of erroring out.
6781 (inf_child_disconnect, inf_child_close)
6782 (inf_child_maybe_unpush_target): New functions.
6783 (inf_child_target): Install inf_child_disconnect and
6784 inf_child_close. Store a pointer to the returned object.
6785 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6786 declarations.
6787 * target.c (auto_connect_native_target): New global.
6788 (show_default_run_target): New function.
6789 (find_default_run_target): Return NULL if automatically connecting
6790 to the native target is disabled.
6791 (_initialize_target): Install set/show auto-connect-native-target.
6792 * NEWS: Mention "set auto-connect-native-target", and "target
6793 native".
6794 * linux-nat.c (super_close): New global.
6795 (linux_nat_close): Call super_close.
6796 (linux_nat_add_target): Store a pointer to the base class's
6797 to_close method.
6798 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6799 inf_child_maybe_unpush.
6800 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6801 already pushed.
6802 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6803 the inferior. Use inf_child_maybe_unpush_target.
6804 (inf_ttrace_attach): Don't push the target if it is already
6805 pushed.
6806 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6807 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6808 after mourning the inferior. Use inf_child_maybe_unpush_target.
6809 (darwin_attach_pid): Don't push the target if it is already
6810 pushed.
6811 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6812 mourning the inferior. Use inf_child_maybe_unpush_target.
6813 (gnu_detach): Use inf_child_maybe_unpush_target.
6814 * go32-nat.c (go32_create_inferior): Don't push the target if it
6815 is already pushed.
6816 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6817 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6818 (procfs_open): Rename to ...
6819 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6820 comments. Can target_preopen before changing node. Call
6821 inf_child_open_target to push the target explicitly.
6822 (procfs_attach): Don't push the target if it is already pushed.
6823 (procfs_detach): Use inf_child_maybe_unpush_target.
6824 (procfs_create_inferior): Don't push the target if it is already
6825 pushed.
6826 (nto_native_ops): New global.
6827 (procfs_open): Reimplement.
6828 (procfs_native_open): New function.
6829 (init_procfs_targets): Install procfs_native_open as to_open of
6830 "target native". Store a pointer to the "native" target in
6831 nto_native_ops.
6832 * procfs.c (procfs_attach): Don't push the target if it is already
6833 pushed.
6834 (procfs_detach): Use inf_child_maybe_unpush_target.
6835 (procfs_mourn_inferior): Only unpush the target after mourning the
6836 inferior. Use inf_child_maybe_unpush_target.
6837 (procfs_init_inferior): Don't push the target if it is already
6838 pushed.
6839 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6840 if it is already pushed.
6841
6842 2014-05-21 Pedro Alves <palves@redhat.com>
6843
6844 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6845 and "procfs" targets are now called "native" instead.
6846
6847 2014-05-21 Pedro Alves <palves@redhat.com>
6848
6849 * go32-nat.c (go32_open): Delete.
6850 (go32_target): Don't override the to_open method.
6851
6852 2014-05-21 Pedro Alves <palves@redhat.com>
6853
6854 * nto-procfs.c (procfs_can_run): New function.
6855 (nto_procfs_ops): New global.
6856 (init_procfs_targets): New, based on procfs_target. Install
6857 "target native" in addition to "target procfs".
6858 (_initialize_procfs): Call init_procfs_targets instead of adding
6859 the target here.
6860
6861 2014-05-21 Pedro Alves <palves@redhat.com>
6862
6863 * windows-nat.c (windows_target): Don't override to_shortname,
6864 to_longname or to_doc.
6865
6866 2014-05-21 Pedro Alves <palves@redhat.com>
6867
6868 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6869 to_doc.
6870
6871 2014-05-21 Pedro Alves <palves@redhat.com>
6872
6873 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6874 to_shortname, to_longname or to_doc.
6875
6876 2014-05-21 Pedro Alves <palves@redhat.com>
6877
6878 * go32-nat.c (go32_target): Don't override to_shortname,
6879 to_longname or to_doc.
6880
6881 2014-05-21 Pedro Alves <palves@redhat.com>
6882
6883 * inf-child.c (inf_child_open): Remove mention of "child".
6884 (inf_child_target): Rename target to "native" instead of "child".
6885
6886 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6887
6888 * Makefile.in (SFILES): Delete "regset.c".
6889 (COMMON_OBS): Delete "regset.o".
6890 * regset.c: Remove.
6891 * regset.h (regset_alloc): Delete prototype.
6892
6893 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6894
6895 * sparc-linux-tdep.c (sparc32_linux_gregset)
6896 (sparc32_linux_fpregset): New static regset structures.
6897 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6898 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6899 'fpregset' fields.
6900 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6901 (sparc64_linux_fpregset): New static regset structures.
6902 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6903 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6904 New static regset structures.
6905 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6906 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6907 New static regset structures.
6908 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6909 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6910 New static regset structures.
6911 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6912 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6913 New static regset structures.
6914 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6915
6916 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6917
6918 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6919 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6920 register maps ("regmaps") from "*regset" to "*regmap". Do this
6921 for all regmap types and variables.
6922 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6923 (sparc32_linux_supply_core_gregset)
6924 (sparc32_linux_collect_core_gregset)
6925 (sparc32_linux_supply_core_fpregset)
6926 (sparc32_linux_collect_core_fpregset): Likewise.
6927 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6928 (sparc_gregmap, sparc_fpregmap): ... these.
6929 (sparc_supply_gregset, sparc_collect_gregset)
6930 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6931 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6932 (_initialize_sparc_nat): Rename regmaps.
6933 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6934 (sparc_gregmap, sparc_fpregmap): ... these.
6935 (sparc_supply_gregset, sparc_collect_gregset)
6936 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6937 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6938 Rename macros to...
6939 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6940 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6941 Likewise.
6942 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6943 Rename to...
6944 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6945 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6946 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6947 regmaps.
6948 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6949 (sparc32_bsd_fpregset): Rename to...
6950 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6951 (sparc32_bsd_fpregmap): ... these.
6952 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6953 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6954 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6955 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6956 (struct sparc_gregmap, struct sparc_fpregmap)
6957 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6958 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6959 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6960 (sparc32_supply_regset, sparc32_collect_gregset)
6961 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6962 prototypes.
6963 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6964 (sparc64_linux_ptrace_gregmap): ... this.
6965 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6966 (_initialize_sparc64_linux_nat): Rename regmaps.
6967 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6968 (sparc64_linux_core_gregmap): ... this.
6969 (sparc64_linux_supply_core_gregset)
6970 (sparc64_linux_collect_core_gregset)
6971 (sparc64_linux_supply_core_fpregset)
6972 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6973 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6974 (sparc64_sol2_fpregset): Rename to...
6975 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6976 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6977 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6978 regmaps.
6979 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6980 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6981 (sparc64_bsd_fpregset): Rename to...
6982 (struct sparc_gregmap, sparc64_sol2_gregmap)
6983 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6984 (sparc64_bsd_fpregmap): ... these.
6985 (sparc64_supply_gregset, sparc64_collect_gregset)
6986 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
6987 prototypes.
6988 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
6989 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
6990 (sparc64fbsd_gregmap): ... this.
6991 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
6992 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
6993 Rename regmaps.
6994 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
6995 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
6996 (sparc64nbsd_collect_fpregset): Likewise.
6997 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
6998 (sparc64nbsd_gregmap): ... this.
6999 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7000 regmaps.
7001 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7002 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7003 (sparc64obsd_gregmap): ... this.
7004 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7005 regmaps.
7006 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7007 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7008 (sparc32nbsd_gregmap): ... this.
7009 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7010 regmaps.
7011
7012 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7013
7014 * score-tdep.c (score7_linux_gregset): New static regset
7015 structure.
7016 (score7_linux_regset_from_core_section): Remove dynamic regset
7017 allocation.
7018 (score_gdbarch_init): Drop allocation of tdep structure.
7019 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7020
7021 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7022
7023 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7024 regset structures.
7025 (am33_regset_from_core_section): Remove dynamic regset
7026 allocations.
7027
7028 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7029
7030 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7031 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7032 structures.
7033 (mips_linux_regset_from_core_section): Remove dynamic regset
7034 allocations.
7035 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7036 'gregset64', 'fpregset', and 'fpregset64'.
7037 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7038 deleted tdep fields.
7039
7040 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7041
7042 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7043 regset structures.
7044 (amd64_regset_from_core_section): Remove dynamic regset
7045 allocations.
7046 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7047 structure.
7048 (amd64obsd_regset_from_core_section): Remove dynamic regset
7049 allocation.
7050 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7051 Likewise.
7052 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7053 x86-common regset supply function.
7054 * i386-tdep.c (i386_collect_gregset): Make static.
7055 (i386_gregset): New global regset structure.
7056 (i386_fpregset, i386_xstateregset): New static regset structures.
7057 (i386_regset_from_core_section): Remove dynamic regset
7058 allocations.
7059 (i386_gdbarch_init): Remove initialization of tdep fields
7060 'gregset', 'fpregset', and 'xstateregset'.
7061 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7062 'fpregset', and 'xstateregset'.
7063 (i386_collect_gregset): Remove prototype.
7064 (i386_gregset): New declaration.
7065 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7066 structure.
7067 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7068 allocation.
7069
7070 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7071
7072 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7073 (arm_linux_vfpregset): New static regset structures.
7074 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7075 regset structures.
7076 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7077 and 'vfpregset' fields.
7078
7079 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7080
7081 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7082 (aarch64_linux_fpregset): New static regset structures.
7083 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7084 of regset structures.
7085 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7086 'fpregset' fields.
7087
7088 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7089
7090 * regset.h (struct regset): Remove gdbarch field.
7091 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7092 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7093 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7094 Likewise.
7095 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7096 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7097 (ppc32_linux_vsxregset): Likewise.
7098 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7099 via the regcache instead of the regset.
7100 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7101 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7102 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7103 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7104 Likewise.
7105
7106 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7107
7108 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7109 Constify structures.
7110 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7111 (alphanbsd_aout_gregset): Likewise.
7112 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7113 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7114 Likewise.
7115 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7116 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7117 Likewise.
7118 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7119 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7120 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7121 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7122 * m88k-tdep.c (m88k_gregset): Likewise.
7123 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7124 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7125 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7126 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7127 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7128 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7129 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7130 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7131 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7132 Likewise.
7133 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7134 * sh-tdep.h (sh_corefile_gregset): Likewise.
7135 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7136 * vax-tdep.c (vax_gregset): Likewise.
7137
7138 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7139
7140 Fix TLS access for -static -pthread.
7141 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7142 (try_thread_db_load_1): Initialize it.
7143 (thread_db_get_thread_local_address): Call it if LM is zero.
7144 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7145 * target.h (struct target_ops) (to_get_thread_local_address): Add
7146 load_module_addr comment.
7147
7148 2014-05-21 Pedro Alves <palves@redhat.com>
7149
7150 * dcache.c (dcache_read_memory_partial): If reading the cache line
7151 fails, fallback to reading just the memory the caller wanted.
7152
7153 2014-05-20 Doug Evans <dje@google.com>
7154
7155 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7156 instead of get_current_arch.
7157
7158 2014-05-20 Pedro Alves <palves@redhat.com>
7159
7160 * NEWS: Mention that compare-sections now works with all targets.
7161
7162 * remote.c (PACKET_qCRC): New enum value.
7163 (remote_verify_memory): Don't send qCRC if the target has no
7164 execution. Use packet_support/packet_ok. If the target doesn't
7165 support the qCRC packet, fallback to a deep memory copy.
7166 (compare_sections_command): Say "target image" instead of "remote
7167 executable".
7168 (_initialize_remote): Add PACKET_qCRC to the list of config
7169 packets that have no associated command. Extend comment.
7170 * target.c (simple_verify_memory, default_verify_memory): New
7171 function.
7172 * target.h (struct target_ops) <to_verify_memory>: Default to
7173 default_verify_memory.
7174 (simple_verify_memory): New declaration.
7175 * target-delegates.c: Regenerate.
7176
7177 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7178
7179 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7180
7181 2014-05-20 Hui Zhu <hui@codesourcery.com>
7182 Yao Qi <yao@codesourcery.com>
7183
7184 PR backtrace/16558
7185 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7186 and change address of sp and pc.
7187
7188 2014-05-19 Tom Tromey <tromey@redhat.com>
7189
7190 * gdbtypes.c (rank_function): Use XNEWVEC.
7191 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7192
7193 2014-05-19 Doug Evans <dje@google.com>
7194
7195 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7196 build_type_unit_groups and moved closer to only caller. Remove
7197 arguments. All references updated. Remove outdated .gdb_index
7198 comment.
7199 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7200 build_type_psymtabs_1.
7201
7202 2014-05-19 Doug Evans <dje@google.com>
7203
7204 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7205 n_type_unit_groups, all_type_unit_groups. All uses removed.
7206 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7207 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7208 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7209 (add_type_unit_group_to_table): Delete.
7210
7211 2014-05-19 Doug Evans <dje@google.com>
7212
7213 * eval.c (evaluate_subexp_standard): Add some comments.
7214
7215 2014-05-17 Doug Evans <xdje42@gmail.com>
7216
7217 * progspace.c (remove_program_space): Delete, unused.
7218 * progspace.h (remove_program_space): Ditto.
7219
7220 2014-05-17 Doug Evans <xdje42@gmail.com>
7221
7222 * inferior.c (prune_inferiors): Fix comment.
7223 (remove_inferior_command): Call prune_program_spaces.
7224
7225 2014-05-16 Doug Evans <dje@google.com>
7226
7227 New command line option -D.
7228 * NEWS: Mention it.
7229 * main.c (set_gdb_data_directory): New function.
7230 (captured_main): Recognize -D. Flag error for --data-directory "".
7231 Call set_gdb_data_directory.
7232 (print_gdb_help): Print --data-directory, -D.
7233 * main.h (set_gdb_data_directory): Declare.
7234 * top.c (staged_gdb_datadir): New static global.
7235 (set_gdb_datadir): Call set_gdb_data_directory
7236 (show_gdb_datadir): New function.
7237 (init_main): Update init of data-directory parameter.
7238
7239 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7240
7241 Import the "dirfd" gnulib module.
7242 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7243 * gnulib/aclocal.m4: Update.
7244 * gnulib/config.in: Update.
7245 * gnulib/configure: Update.
7246 * gnulib/import/Makefile.am: Update.
7247 * gnulib/import/Makefile.in: Update.
7248 * gnulib/import/dirfd.c: New.
7249 * gnulib/import/m4/dirfd.m4: New.
7250 * gnulib/import/m4/gnulib-cache.m4: Update.
7251 * gnulib/import/m4/gnulib-comp.m4: Update.
7252
7253 2014-05-16 Pierre Muller <muller@sourceware.org>
7254 Yao Qi <yao@codesourcery.com>
7255
7256 * valprint.c (print_wchar): Move the code on checking whether
7257 W is a printable wide char to the default branch of switch
7258 statement below. Call wchar_printable instead of gdb_iswprint.
7259
7260 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7261
7262 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7263 ldr.w and ldrd instructions.
7264
7265 2014-05-15 Doug Evans <dje@google.com>
7266
7267 * dwarf2read.c (read_structure_type): Delete outdated comments.
7268
7269 2014-05-14 Tom Tromey <tromey@redhat.com>
7270
7271 * macrocmd.c (print_macro_definition): Reindent.
7272
7273 2014-05-13 Doug Evans <xdje42@gmail.com>
7274
7275 * python/py-cmd.c (cmdpy_completer): Add comment.
7276 (completers): Make const.
7277
7278 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7279
7280 * infrun.c (resume): Remove should_resume (unused). Move up
7281 declaration of resume_ptid.
7282
7283 2014-05-13 Tom Tromey <tromey@redhat.com>
7284
7285 * language.h (unop_type_check): Remove.
7286 (binop_type_check): Don't declare.
7287
7288 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7289
7290 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7291 call to regcache_raw_collect.
7292
7293 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7294
7295 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7296 mi_console->quote as the quoting character.
7297
7298 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7299
7300 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7301
7302 2014-04-29 Tom Tromey <tromey@redhat.com>
7303
7304 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7305 "show debug varobj".
7306
7307 2014-05-07 Kyle McMartin <kyle@redhat.com>
7308
7309 Pushed by Joel Brobecker <brobecker@adacore.com>.
7310 * aarch64-tdep.c (aarch64_software_single_step): New function.
7311 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7312 with aarch64_software_single_step.
7313
7314 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7315
7316 GDB 7.7.1 released.
7317
7318 2014-05-05 Keith Seitz <keiths@redhat.com>
7319
7320 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7321 variable or history value is successfully parsed.
7322
7323 2014-05-05 Yao Qi <yao@codesourcery.com>
7324 Pedro Alves <palves@redhat.com>
7325
7326 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7327 address of blocks that intersects the requested range. Trim
7328 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7329 sections.
7330 * ctf.c (ctf_xfer_partial): Likewise.
7331
7332 2014-05-05 Yao Qi <yao@codesourcery.com>
7333
7334 * printcmd.c (display_command): Remove the check to
7335 target_has_execution.
7336
7337 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7338
7339 * ppcobsd-nat.c: Include "obsd-nat.h".
7340 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7341 add_target.
7342 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7343
7344 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7345
7346 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7347 and 16-bit signed and unsigned arguments. Update comment.
7348 (stap_parse_probe_arguments): Extend code to handle such
7349 arguments. Use warning instead of complaint to notify about
7350 unrecognized bitness.
7351
7352 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7353
7354 PR breakpoints/16889
7355 * stap-probe.c (stap_parse_probe_arguments): Simplify
7356 check for non-prefixed probes (i.e., probes whose
7357 arguments do not start with "N@"). Always set the
7358 argument type to a sane value.
7359
7360 2014-05-01 David Taylor <dtaylor@emc.com>
7361
7362 * remote.c (compare_sections_command): Add -r option to compare
7363 all loadable read-only sections.
7364
7365 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7366
7367 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7368 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7369 Update all callers.
7370 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7371 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7372 Remove unused CORE_ADDR argument. Update all callers.
7373
7374 2014-04-29 Pedro Alves <palves@redhat.com>
7375
7376 * remote.c (struct packet_config) <detect>: Extend comment.
7377 (add_packet_config_cmd): Don't set the config's detect or support
7378 fields here.
7379 (init_all_packet_configs): Also initialize the config's 'detect'
7380 field.
7381 (reset_all_packet_configs_support): New function.
7382 (remote_open_1): Call reset_all_packet_configs_support instead of
7383 init_all_packet_configs.
7384 (_initialize_remote): Initialize all packet configs. Assert that
7385 all packets have an associated command, except a few known
7386 outliers.
7387
7388 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7389
7390 * dwarf2read.c (read_subrange_type): Handle dynamic
7391 DW_AT_lower_bound attributes.
7392
7393 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7394
7395 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7396 dynamic bounds before computing its upper bound.
7397 (ada_discrete_type_low_bound): Same as above with the lower bound.
7398
7399 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7400
7401 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7402 range types. Adjust the array handling implementation to
7403 take advantage of this change.
7404 (resolve_dynamic_range): New function, mostly extracted from
7405 resolve_dynamic_bounds.
7406 (resolve_dynamic_array): New function, mostly extracted from
7407 resolve_dynamic_bounds.
7408 (resolve_dynamic_bounds): Delete.
7409 (resolve_dynamic_type): Reimplement. Add handling of
7410 TYPE_CODE_RANGE types.
7411
7412 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7413
7414 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7415 handling of parallel ___XA types.
7416
7417 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7418
7419 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7420 unnecessary second call to static_unwrap_type.
7421
7422 2014-04-27 Hui Zhu <hui@codesourcery.com>
7423
7424 * stack.c (print_frame_info): Call do_gdb_disassembly with
7425 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7426
7427 2014-04-26 Doug Evans <xdje42@gmail.com>
7428
7429 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7430
7431 2014-04-25 Pedro Alves <palves@redhat.com>
7432
7433 PR server/16255
7434 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7435 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7436 and newline from built string.
7437 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7438 (linux_ptrace_attach_fail_reason): ... this.
7439 * linux-nat.c (linux_nat_attach): Adjust to use
7440 linux_ptrace_attach_fail_reason.
7441
7442 2014-04-25 Pedro Alves <palves@redhat.com>
7443
7444 * remote.c (struct remote_state): Remove multi_process_aware,
7445 non_stop_aware, cond_tracepoints, cond_breakpoints,
7446 breakpoint_commands, fast_tracepoints, static_tracepoints,
7447 install_in_trace, disconnected_tracing,
7448 enable_disable_tracepoints, string_tracing, and
7449 augmented_libraries_svr4_read fields.
7450 (remote_multi_process_p): Move further below in the file.
7451 (struct packet_config): Add comments.
7452 (update_packet_config): Delete function.
7453 (show_packet_config_cmd): Use packet_config_support.
7454 (add_packet_config_cmd): Use NULL as set callback.
7455 (packet_ok): "set remote foo-packet"-style commands no longer
7456 change config->supported -- adjust.
7457 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7458 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7459 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7460 (PACKET_QNonStop, PACKET_multiprocess_feature)
7461 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7462 (PACKET_DisconnectedTracing_feature)
7463 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7464 (set_remote_protocol_packet_cmd): Delete function.
7465 (packet_config_support, packet_support): New functions.
7466 (set_remote_protocol_Z_packet_cmd): Don't call
7467 update_packet_config.
7468 (remote_query_attached, remote_pass_signals)
7469 (remote_program_signals, remote_threads_info)
7470 (remote_threads_extra_info, remote_start_remote): Use
7471 packet_support.
7472 (remote_start_remote): Use packet_config_support and
7473 packet_support.
7474 (init_all_packet_configs): Set all packets to unknown support,
7475 instead of calling update_packet_config.
7476 (remote_check_symbols): Use packet_support.
7477 (remote_supported_packet): Unconditionally set the packet config's
7478 support status.
7479 (remote_multi_process_feature, remote_non_stop_feature)
7480 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7481 (remote_breakpoint_commands_feature)
7482 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7483 (remote_install_in_trace_feature)
7484 (remote_disconnected_tracing_feature)
7485 (remote_enable_disable_tracepoint_feature)
7486 (remote_string_tracing_feature)
7487 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7488 (remote_protocol_features): Adjust to use remote_supported_packet
7489 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7490 "ConditionalTracepoints", "ConditionalBreakpoints",
7491 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7492 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7493 "EnableDisableTracepoints", and "tracenz".
7494 (remote_query_supported): Use packet_support.
7495 (remote_open_1): Adjust.
7496 (extended_remote_attach_1): Use packet_support. Switch on the
7497 result of packet_ok instead of checking whether the packet ended
7498 up disabled.
7499 (remote_vcont_resume): Use packet_support.
7500 (remote_resume, remote_stop_ns, fetch_register_using_p)
7501 (remote_prepare_to_store, store_register_using_P)
7502 (check_binary_download, remote_write_bytes): Use packet_support.
7503 (remote_vkill): Use packet_support. Switch on the result of
7504 packet_ok instead of checking whether the packet ended up
7505 disabled.
7506 (extended_remote_supports_disable_randomization): Use
7507 packet_support.
7508 (extended_remote_run): Switch on the result of packet_ok instead
7509 of checking whether the packet ended up disabled.
7510 (remote_insert_breakpoint, remote_remove_breakpoint)
7511 (remote_insert_watchpoint, remote_remove_watchpoint)
7512 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7513 packet_support.
7514 (remote_search_memory): Use packet_config_support.
7515 (remote_get_thread_local_address, remote_get_tib_address)
7516 (remote_hostio_send_command, remote_can_execute_reverse): Use
7517 packet_support.
7518 (remote_supports_cond_tracepoints)
7519 (remote_supports_cond_breakpoints)
7520 (remote_supports_fast_tracepoints)
7521 (remote_supports_static_tracepoints)
7522 (remote_supports_install_in_trace)
7523 (remote_supports_enable_disable_tracepoint)
7524 (remote_supports_string_tracing)
7525 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7526 the packet config says the feature is enabled or disabled.
7527 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7528 (remote_get_trace_status): Use packet_support.
7529 (remote_set_disconnected_tracing): Adjust to check whether the
7530 feature is enabled with packet_support.
7531 (remote_set_trace_buffer_size, remote_use_agent)
7532 (remote_can_use_agent, remote_supports_btrace): Use
7533 packet_support.
7534 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7535 Use packet_config_support.
7536 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7537 the packet config says the feature is enabled or disabled.
7538 (set_range_stepping): Use packet_support.
7539
7540 2014-04-25 Tom Tromey <tromey@redhat.com>
7541
7542 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7543 argument.
7544
7545 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7546
7547 * NEWS: Mention support for C99 variable length arrays.
7548
7549 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7550
7551 * ada-lang.c (standard_exc): Expand introductory comment.
7552
7553 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7554 Walfred Tedeschi <walfred.tedeschi@intel.com>
7555
7556 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7557 AVX512 registers.
7558 (amd64_linux_read_description): Add code to handle AVX512 xstate
7559 mask and return respective tdesc.
7560 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7561 and features/i386/x32-avx512-linux.c.
7562 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7563 (amd64_linux_core_read_description): Add code to handle AVX512
7564 xstate mask and return respective tdesc.
7565 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7566 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7567 calculation.
7568 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7569 (tdesc_amd64_avx512_linux): New prototype.
7570 (tdesc_x32_avx512_linux): Likewise.
7571 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7572 features/i386/x32-avx512.c.
7573 (amd64_ymm_avx512_names): New register names for pseudo
7574 registers YMM16-31.
7575 (amd64_ymmh_avx512_names): New register names for raw registers
7576 YMMH16-31.
7577 (amd64_k_names): New register names for K registers.
7578 (amd64_zmmh_names): New register names for ZMM raw registers.
7579 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7580 (amd64_xmm_avx512_names): New register names for XMM16-31
7581 registers.
7582 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7583 registers.
7584 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7585 if feature is present.
7586 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7587 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7588 (AMD64_NUM_REGS): Adjust to new number of registers.
7589 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7590 registers supplied via XSTATE by AVX512 registers.
7591 (i386_linux_read_description): Add case for AVX512.
7592 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7593 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7594 (i386_linux_core_read_description): Add case for AVX512.
7595 (i386_linux_init_abi): Install supported register note section
7596 for AVX512.
7597 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7598 AVX512.
7599 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7600 registers to be number of zmm7h + 1.
7601 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7602 * i386-tdep.c: Include features/i386/i386-avx512.c.
7603 (i386_zmm_names): Add ZMM pseudo register names array.
7604 (i386_zmmh_names): Add ZMM raw register names array.
7605 (i386_k_names): Add K raw register names array.
7606 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7607 registers. AVX512 has 16 more ZMM registers than there are YMM
7608 registers.
7609 (i386_zmmh_regnum_p): Add function to look up register number of
7610 ZMM raw registers.
7611 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7612 (i386_k_regnum_p): Likewise for K raw registers.
7613 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7614 registers added by AVX512.
7615 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7616 registers added by AVX512.
7617 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7618 added by AVX512.
7619 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7620 (i386_pseudo_register_name): Add ZMM pseudo registers.
7621 (i386_zmm_type): Construct and return vector registers type for ZMM
7622 registers.
7623 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7624 ZMM0-31 pseudo registers and K registers.
7625 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7626 and YMM16-31 registers from register cache.
7627 (i386_pseudo_register_write): Add code to write K, ZMM and
7628 YMM16-31 registers.
7629 (i386_register_reggroup_p): Add code to include/exclude AVX512
7630 registers in/from respective register groups.
7631 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7632 registers if feature is present in xcr0.
7633 (i386_gdbarch_init): Add code to initialize AVX512 feature
7634 variables in tdep structure, wire in pseudo registers and call
7635 initialize_tdesc_i386_avx512.
7636 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7637 variables.
7638 (i386_regnum): Add AVX512 registers.
7639 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7640 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7641 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7642 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7643 512 bits wide.
7644 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7645 (i386_ymm_avx512_regnum_p): Likewise.
7646 (i386_k_regnum_p): Likewise.
7647 (i386_zmm_regnum_p): Likewise.
7648 (i386_zmmh_regnum_p): Likewise.
7649 * i387-tdep.c : Update year in copyright notice.
7650 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7651 XSAVE buffer.
7652 (XSAVE_YMM_AVX512_ADDR): New macro.
7653 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7654 XSAVE buffer.
7655 (XSAVE_XMM_AVX512_ADDR): New macro.
7656 (xsave_avx512_k_offset): New table for K register offsets in
7657 XSAVE buffer.
7658 (XSAVE_AVX512_K_ADDR): New macro.
7659 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7660 in XSAVE buffer.
7661 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7662 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7663 buffer.
7664 (i387_collect_xsave): Add code to collect AVX512 registers from
7665 XSAVE buffer.
7666 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7667 of XMM16-31 registers.
7668 (I387_NUM_K_REGS): New define for number of K registers.
7669 (I387_K0_REGNUM): New define for K0 register number.
7670 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7671 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7672 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7673 registers.
7674 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7675 (I387_XMM16_REGNUM): New define for XMM16 register number.
7676 (I387_YMM0_REGNUM): New define for YMM0 register number.
7677 (I387_KEND_REGNUM): New define for last K register number.
7678 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7679 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7680 number.
7681 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7682 number.
7683 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7684 size.
7685 * features/Makefile: Add AVX512 related files.
7686 * features/i386/32bit-avx512.xml: New file.
7687 * features/i386/64bit-avx512.xml: Likewise.
7688 * features/i386/amd64-avx512-linux.c: Likewise.
7689 * features/i386/amd64-avx512-linux.xml: Likewise.
7690 * features/i386/amd64-avx512.c: Likewise.
7691 * features/i386/amd64-avx512.xml: Likewise.
7692 * features/i386/i386-avx512-linux.c: Likewise.
7693 * features/i386/i386-avx512-linux.xml: Likewise.
7694 * features/i386/i386-avx512.c: Likewise.
7695 * features/i386/i386-avx512.xml: Likewise.
7696 * features/i386/x32-avx512-linux.c: Likewise.
7697 * features/i386/x32-avx512-linux.xml: Likewise.
7698 * features/i386/x32-avx512.c: Likewise.
7699 * features/i386/x32-avx512.xml: Likewise.
7700 * regformats/i386/amd64-avx512-linux.dat: New file.
7701 * regformats/i386/amd64-avx512.dat: Likewise.
7702 * regformats/i386/i386-avx512-linux.dat: Likewise.
7703 * regformats/i386/i386-avx512.dat: Likewise.
7704 * regformats/i386/x32-avx512-linux.dat: Likewise.
7705 * regformats/i386/x32-avx512.dat: Likewise.
7706 * NEWS: Add note about new support for AVX512.
7707
7708
7709 2014-04-23 Pedro Alves <palves@redhat.com>
7710
7711 * breakpoint.c (insert_bp_location): Tolerate errors if the
7712 breakpoint is set in a user-loaded objfile.
7713 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7714 location is marked shlib_disabled. If the breakpoint is set in a
7715 user-loaded objfile is a GDB-side memory breakpoint, validate it
7716 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7717 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7718 flag.
7719 * mem-break.c (memory_validate_breakpoint): New function.
7720 * objfiles.c (userloaded_objfile_contains_address_p): New
7721 function.
7722 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7723 * target.h (memory_validate_breakpoint): New declaration.
7724
7725 2014-04-23 Pedro Alves <palves@redhat.com>
7726
7727 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7728 the breakpoint is set in a shared library, only suppress
7729 errors for software breakpoints, not hardware breakpoints.
7730
7731 2014-04-22 Pedro Alves <palves@redhat.com>
7732
7733 * infrun.c (schedlock_applies): New function, factored out from
7734 find_thread_needs_step_over.
7735 (find_thread_needs_step_over): Use it.
7736 (switch_back_to_stepped_thread): Always clear trap_expected if the
7737 step over is finished. Return early if scheduler locking applies.
7738 Look for the stepping thread and a potential step-over thread with
7739 a single loop.
7740 (currently_stepping_or_nexting_callback): Delete.
7741
7742 2014-04-22 Nick Clifton <nickc@redhat.com>
7743
7744 * NEWS: Mention that ARM sim now supports tracing.
7745
7746 2014-04-22 Yao Qi <yao@codesourcery.com>
7747
7748 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7749 to ...
7750 * tracefile.c (tracefile_fetch_registers): ... it. New
7751 function.
7752 * tracefile.h (tracefile_fetch_registers): Declare.
7753 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7754 tracefile_fetch_registers.
7755
7756 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7757
7758 PR gdb/14018
7759 * windows-nat.c (thread_rec): Don't display a warning when
7760 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7761 fails for any reason, set th->suspended to -1, so that we don't
7762 try to resume such a thread. Also, don't return NULL in these
7763 cases, to avoid completely ruin the session due to "PC register is
7764 not available" error.
7765 (do_windows_fetch_inferior_registers): Check errors in
7766 GetThreadContext call.
7767 (windows_continue): Accept an additional argument KILLED; if not
7768 zero, ignore errors in the SetThreadContext call, since the
7769 inferior was killed and is shutting down.
7770 (windows_resume, get_windows_debug_event)
7771 (windows_create_inferior, windows_mourn_inferior)
7772 (windows_kill_inferior): All callers of windows_continue changed
7773 to adjust to its new calling sequence.
7774
7775 2014-04-19 Yao Qi <yao@codesourcery.com>
7776
7777 * ctf.c (ctf_open): Call post_create_inferior.
7778
7779 2014-04-19 Yao Qi <yao@codesourcery.com>
7780
7781 * ctf.c (handle_id): New static variable.
7782 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7783 value. Get the declaration of event "register" and get length
7784 of field "contents".
7785
7786 2014-04-19 Yao Qi <yao@codesourcery.com>
7787
7788 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7789
7790 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7791
7792 * valops.c (oload_method_static): Remove unnecessary argument
7793 METHOD. Update all callers.
7794
7795 2014-04-18 Pedro alves <palves@redhat.com>
7796 Tom Tromey <tromey@redhat.com>
7797
7798 PR backtrace/15558
7799 * frame.c (get_prev_frame_1): Rename to ...
7800 (get_prev_frame_always): ... this, and make extern. Adjust.
7801 (skip_artificial_frames): Use get_prev_frame_always.
7802 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7803 (get_frame_unwind_stop_reason): Adjust to rename.
7804 * frame.h (get_prev_frame_always): Declare.
7805 * inline-frame.c: Include frame.h.
7806 (inline_frame_this_id): Use get_prev_frame_always.
7807
7808 2014-04-18 Tristan Gingold <gingold@adacore.com>
7809
7810 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7811 code by using bfd_mach_o_get_base_address.
7812
7813 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7814
7815 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7816 (spu_ax_pseudo_register_collect): New function.
7817 (spu_ax_pseudo_register_push_stack): Likewise.
7818 (spu_dwarf_reg_to_regnum): Likewise.
7819 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7820
7821 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7822
7823 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7824 Replace FRAME argument with FRAME_ID.
7825 * gdbarch.c, gdbarch.h: Regenerate.
7826 * findvar.c (default_value_from_register): Add GDBARCH argument;
7827 replace FRAME by FRAME_ID. No longer call get_frame_id.
7828 (value_from_register): Update call to gdbarch_value_from_register.
7829 * value.h (default_value_from_register): Update prototype.
7830 * s390-linux-tdep.c (s390_value_from_register): Update interface
7831 and call to default_value_from_register.
7832 * spu-tdep.c (spu_value_from_register): Likewise.
7833
7834 * findvar.c (address_from_register): Remove TYPE argument.
7835 Do not call value_from_register; use gdbarch_value_from_register
7836 with null_frame_id instead.
7837 * value.h (address_from_register): Update prototype.
7838 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7839 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7840 address_from_register interface change.
7841
7842 2014-04-17 Yao Qi <yao@codesourcery.com>
7843
7844 * gdbtypes.h: Update comments to link to types and macros'
7845 definitions.
7846
7847 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7848
7849 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7850
7851 2014-04-16 Keith Seitz <keiths@redhat.com>
7852
7853 PR gdb/15827
7854 * dwarf2read.c (skip_one_die): Check that all relative-offset
7855 sibling DIEs fall within range of the current reader's buffer.
7856 (read_partial_die): Likewise.
7857
7858 2014-04-16 Keith Seitz <keiths@redhat.com>
7859
7860 PR c++/16597
7861 * cp-namespace.c (lookup_symbol_file): If the type name of
7862 `this' is NULL, return immediately.
7863
7864 2014-04-14 Keith Seitz <keiths@redhat.com>
7865
7866 PR c++/16253
7867 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7868 from symbol_matches_domain in symtab.c. All local callers
7869 of symbol_matches_domain updated.
7870 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7871 search STRUCT_DOMAIN.
7872 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7873 independently. standard_lookup will do that automatically.
7874 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7875 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7876 (cp_lookup_symbol_in_namespace): Likewise.
7877 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7878 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7879 may return a STRUCT_DOMAIN match.
7880 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7881 * cp-support.c: Include language.h.
7882 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7883 VAR_DOMAIN.
7884 * psymtab.c (match_partial_symbol): Compare the requested
7885 domain with the symbol's domain directly.
7886 (lookup_partial_symbol): Likewise.
7887 * symtab.c (lookup_symbol_in_language): Explain when/why
7888 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7889 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7890 appropriate languages.
7891 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7892 and moved to ada-lang.c
7893 (lookup_block_symbol): Explain that this function only returns
7894 symbol matching the requested DOMAIN.
7895 Compare the requested domain with the symbol's domain directly.
7896 (iterate_over_symbols): Compare the requested domain with the
7897 symbol's domain directly.
7898 * symtab.h (symbol_matches_domain): Remove.
7899
7900 2014-04-14 Tom Tromey <tromey@redhat.com>
7901
7902 PR c++/15246:
7903 * c-exp.y (type_aggregate_p): New function.
7904 (qualified_name, classify_inner_name): Use it.
7905 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7906 and TYPE_TARGET_TYPE of an enum type.
7907 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7908 an enum type.
7909 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7910 handle TYPE_DECLARED_CLASS.
7911 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7912 types.
7913 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7914 * valops.c (enum_constant_from_type): New function.
7915 (value_aggregate_elt): Use it.
7916 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7917 TYPE_CODE_ENUM.
7918
7919 2014-04-14 Tom Tromey <tromey@redhat.com>
7920
7921 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7922 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7923 const.
7924 * value.h (value_aggregate_elt): Update.
7925
7926 2014-04-14 Tom Tromey <tromey@redhat.com>
7927
7928 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7929
7930 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7931
7932 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7933 (evaluate_subexp_standard): Pass noside argument.
7934 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7935 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7936 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7937 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7938 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7939
7940 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7941
7942 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7943 points to a constant blob.
7944
7945 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7946
7947 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7948 property and store it as the high bound and flag the range accordingly.
7949 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7950 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7951 * gdbtypes.h (enum range_flags): New enum.
7952 (struct range_bounds): Add flags member.
7953
7954 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7955
7956 * c-typeprint.c (c_type_print_varspec_suffix): Added
7957 check for not yet resolved high bound. If unresolved, print
7958 "variable length" string to the console instead of random
7959 length.
7960
7961 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7962
7963 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7964 value.
7965 (ada_template_to_fixed_record_type_1): Likewise.
7966 (ada_to_fixed_type_1): Likewise.
7967 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7968 (cp_print_value): Likewise.
7969 * d-valprint.c (dynamic_array_type): Likewise.
7970 * findvar.c (address_of_variable): Likewise.
7971 * jv-valprint.c (java_value_print): Likewise.
7972 * valops.c (value_ind): Likewise.
7973 * value.c (coerce_ref): Likewise.
7974
7975 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7976
7977 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7978 value and retrieve the dynamic type size.
7979
7980 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7981
7982 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7983 passed to sizeof is dynamic evaluate the argument to compute the length.
7984
7985 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7986 Joel Brobecker <brobecker@adacore.com>
7987
7988 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
7989 (dwarf2_evaluate_property): New function.
7990 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
7991 * dwarf2read.c (attr_to_dynamic_prop): New function.
7992 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
7993 attribute.
7994 * gdbtypes.c: Include dwarf2loc.h.
7995 (is_dynamic_type): New function.
7996 (resolve_dynamic_type): New function.
7997 (resolve_dynamic_bounds): New function.
7998 (get_type_length): New function.
7999 (check_typedef): Use get_type_length to compute type length.
8000 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8001 (TYPE_LOW_BOUND_KIND): New macro.
8002 (is_dynamic_type): New function prototype.
8003 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8004 to resolve dynamic properties of the type. Update comment.
8005 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8006
8007 2014-04-14 Richard Henderson <rth@redhat.com>
8008
8009 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8010
8011 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8012 Doug Evans <xdje42@gmail.com>
8013
8014 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8015 dereference TYPE_CODE_REF values.
8016
8017 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8018
8019 Revert the following changes due to regressions:
8020
8021 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8022 (dwarf2_evaluate_property): New function.
8023 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8024 * dwarf2read.c (attr_to_dynamic_prop): New function.
8025 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8026 attribute.
8027 * gdbtypes.c: Include dwarf2loc.h.
8028 (is_dynamic_type): New function.
8029 (resolve_dynamic_type): New function.
8030 (resolve_dynamic_bounds): New function.
8031 (get_type_length): New function.
8032 (check_typedef): Use get_type_length to compute type length.
8033 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8034 (TYPE_LOW_BOUND_KIND): New macro.
8035 (is_dynamic_type): New function prototype.
8036 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8037 to resolve dynamic properties of the type. Update comment.
8038 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8039
8040 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8041 passed to sizeof is dynamic evaluate the argument to compute the length.
8042
8043 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8044 value and retrieve the dynamic type size.
8045
8046 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8047 (ada_template_to_fixed_record_type_1): Likewise.
8048 (ada_to_fixed_type_1): Likewise.
8049 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8050 (cp_print_value): Likewise.
8051 * d-valprint.c (dynamic_array_type): Likewise.
8052 * eval.c (evaluate_subexp_with_coercion): Likewise.
8053 * findvar.c (address_of_variable): Likewise.
8054 * jv-valprint.c (java_value_print): Likewise.
8055 * valops.c (value_ind): Likewise.
8056 * value.c (coerce_ref): Likewise.
8057
8058 * c-typeprint.c (c_type_print_varspec_suffix): Added
8059 check for not yet resolved high bound. If unresolved, print
8060 "variable length" string to the console instead of random
8061 length.
8062
8063 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8064 property and store it as the high bound and flag the range accordingly.
8065 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8066 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8067 * gdbtypes.h (enum range_flags): New enum.
8068 (struct range_bounds): Add flags member.
8069
8070 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8071 points to a constant blob.
8072
8073 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8074 (evaluate_subexp_standard): Pass noside argument.
8075 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8076 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8077 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8078 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8079 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8080
8081 2014-04-11 Keith Seitz <keiths@redhat.com>
8082
8083 PR c++/16675
8084 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8085 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8086 reference types.
8087
8088 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8089
8090 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8091 (evaluate_subexp_standard): Pass noside argument.
8092 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8093 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8094 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8095 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8096 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8097
8098 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8099
8100 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8101 points to a constant blob.
8102
8103 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8104
8105 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8106 property and store it as the high bound and flag the range accordingly.
8107 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8108 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8109 * gdbtypes.h (enum range_flags): New enum.
8110 (struct range_bounds): Add flags member.
8111
8112 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8113
8114 * c-typeprint.c (c_type_print_varspec_suffix): Added
8115 check for not yet resolved high bound. If unresolved, print
8116 "variable length" string to the console instead of random
8117 length.
8118
8119 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8120
8121 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8122 (ada_template_to_fixed_record_type_1): Likewise.
8123 (ada_to_fixed_type_1): Likewise.
8124 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8125 (cp_print_value): Likewise.
8126 * d-valprint.c (dynamic_array_type): Likewise.
8127 * eval.c (evaluate_subexp_with_coercion): Likewise.
8128 * findvar.c (address_of_variable): Likewise.
8129 * jv-valprint.c (java_value_print): Likewise.
8130 * valops.c (value_ind): Likewise.
8131 * value.c (coerce_ref): Likewise.
8132
8133 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8134
8135 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8136 value and retrieve the dynamic type size.
8137
8138 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8139
8140 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8141 passed to sizeof is dynamic evaluate the argument to compute the length.
8142
8143 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8144
8145 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8146 (dwarf2_evaluate_property): New function.
8147 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8148 * dwarf2read.c (attr_to_dynamic_prop): New function.
8149 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8150 attribute.
8151 * gdbtypes.c: Include dwarf2loc.h.
8152 (is_dynamic_type): New function.
8153 (resolve_dynamic_type): New function.
8154 (resolve_dynamic_bounds): New function.
8155 (get_type_length): New function.
8156 (check_typedef): Use get_type_length to compute type length.
8157 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8158 (TYPE_LOW_BOUND_KIND): New macro.
8159 (is_dynamic_type): New function prototype.
8160 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8161 to resolve dynamic properties of the type. Update comment.
8162 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8163
8164 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8165
8166 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8167 declaring high/low bounds and change uses accordingly. Call
8168 create_range_type instead of create_static_range_type.
8169 * gdbtypes.c (create_range_type): New function.
8170 (create_range_type): Convert bounds into struct bound_prop and pass
8171 them to create_range_type.
8172 * gdbtypes.h (struct bound_prop): New struct.
8173 (create_range_type): New function prototype.
8174 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8175 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8176 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8177 part of the bound.
8178 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8179
8180 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8181
8182 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8183 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8184 * ada-lang.c: All uses of create_range_type updated.
8185 * coffread.c: All uses of create_range_type updated.
8186 * dwarf2read.c: All uses of create_range_type updated.
8187 * f-exp.y: All uses of create_range_type updated.
8188 * m2-valprint.c: All uses of create_range_type updated.
8189 * mdebugread.c: All uses of create_range_type updated.
8190 * stabsread.c: All uses of create_range_type updated.
8191 * valops.c: All uses of create_range_type updated.
8192 * valprint.c: All uses of create_range_type updated.
8193
8194 2014-04-10 Pedro Alves <palves@redhat.com>
8195
8196 * breakpoint.c (single_step_breakpoints)
8197 (single_step_gdbarch): Move up in the file.
8198 (one_breakpoint_xfer_memory): New function, factored out from ...
8199 (breakpoint_xfer_memory): ... here. Also process single-step
8200 breakpoints.
8201
8202 2014-04-09 Tristan Gingold <gingold@adacore.com>
8203
8204 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8205 comments.
8206 (darwin_decode_exception_message): Free port only after use.
8207
8208 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8209
8210 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8211 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8212 when setting the size of call_length.
8213
8214 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8215
8216 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8217 dereference TYPE_CODE_REF values.
8218
8219 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8220
8221 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8222 end of warning message.
8223
8224 2014-04-03 Doug Evans <dje@google.com>
8225
8226 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8227 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8228
8229 2014-04-02 Alan Modra <amodra@gmail.com>
8230
8231 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8232 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8233 (struct symbol_file_add_from_memory_args): Add size field.
8234 (find_vdso_size): New function.
8235 (add_vsyscall_page): Attempt to find vdso size.
8236
8237 2014-04-01 Doug Evans <dje@google.com>
8238
8239 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8240
8241 2014-04-01 Tristan Gingold <gingold@adacore.com>
8242
8243 * darwin-nat.c (darwin_encode_reply): Add prototype.
8244 (darwin_decode_exception_message): Reply to unknown inferiors.
8245 (darwin_decode_message): Handle message by id. Ignore message
8246 to unknown inferior.
8247 (darwin_wait): Discard unknown messages, add debug trace.
8248
8249 2014-03-31 Doug Evans <dje@google.com>
8250
8251 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8252 comp_dir_string.
8253
8254 2014-03-31 Doug Evans <dje@google.com>
8255
8256 New option "set print symbol-loading".
8257 * NEWS: Mention it.
8258 * solib.c (solib_read_symbols): Only print symbol loading messages
8259 if requested.
8260 (solib_add): If symbol loading is in "brief" mode, notify user
8261 symbols are being loaded.
8262 (reload_shared_libraries_1): Ditto.
8263 * symfile.c (print_symbol_loading_off): New static global.
8264 (print_symbol_loading_brief): New static global.
8265 (print_symbol_loading_full): New static global.
8266 (print_symbol_loading_enums): New static global.
8267 (print_symbol_loading): New static global.
8268 (print_symbol_loading_p): New function.
8269 (symbol_file_add_with_addrs): Only print symbol loading messages
8270 if requested.
8271 (_initialize_symfile): Register "print symbol-loading" set/show
8272 command.
8273 * symfile.h (print_symbol_loading_p): Declare.
8274
8275 2014-03-30 Doug Evans <xdje42@gmail.com>
8276
8277 * infrun.c (set_last_target_status): New function.
8278 (handle_inferior_event): Call it.
8279
8280 2014-03-30 Doug Evans <xdje42@gmail.com>
8281
8282 * inferior.h (enum stop_kind): Improve comment.
8283
8284 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8285
8286 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8287 a reference, strip the reference layer before calling
8288 the lang_ops value_has_mutated callback.
8289
8290 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8291
8292 Remove some globals from our parser.
8293 * language.c (unk_lang_parser): Add "struct parser_state"
8294 argument.
8295 * language.h (struct language_defn) <la_parser>: Likewise.
8296 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8297 (initialize_expout): Add "struct parser_state" argument.
8298 Rewrite function to use the parser state.
8299 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8300 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8301 write_exp_elt_longcst, write_exp_elt_dblcst,
8302 write_exp_elt_decfloatcst, write_exp_elt_type,
8303 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8304 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8305 write_dollar_variable): Likewise.
8306 (parse_exp_in_context_1): Use parser state.
8307 (insert_type_address_space): Add "struct parser_state" argument.
8308 Use parser state.
8309 (increase_expout_size): New function.
8310 * parser-defs.h: Forward declare "struct language_defn" and
8311 "struct parser_state".
8312 (expout, expout_size, expout_ptr): Remove extern declarations.
8313 (parse_gdbarch, parse_language): Rewrite macro declarations to
8314 accept the parser state.
8315 (struct parser_state): New struct.
8316 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8317 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8318 write_exp_elt_decfloatcst, write_exp_elt_type,
8319 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8320 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8321 write_exp_msymbol, write_dollar_variable,
8322 mark_struct_expression, insert_type_address_space): Add "struct
8323 parser_state" argument.
8324 (increase_expout_size): New function.
8325 * utils.c (do_clear_parser_state): New function.
8326 (make_cleanup_clear_parser_state): Likewise.
8327 * utils.h (make_cleanup_clear_parser_state): New function
8328 prototype.
8329 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8330 Update calls to write_exp* in order to pass the parser state.
8331 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8332 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8333 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8334 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8335 * stap-probe.c (stap_parse_register_operand): Likewise.
8336 (stap_parse_single_operand): Likewise.
8337 (stap_parse_argument_1): Likewise.
8338 (stap_parse_argument): Use parser state.
8339 * stap-probe.h: Include "parser-defs.h".
8340 (struct stap_parse_info) <pstate>: New field.
8341 * c-exp.y (parse_type): Rewrite to use parser state.
8342 (yyparse): Redefine to c_parse_internal.
8343 (pstate): New global variable.
8344 (parse_number): Add "struct parser_state" argument.
8345 (write_destructor_name): Likewise.
8346 (type_exp): Update calls to write_exp* and similars in order to
8347 use parser state.
8348 (exp1, exp, variable, qualified_name, space_identifier,
8349 typename, typebase): Likewise.
8350 (write_destructor_name, parse_number, lex_one_token,
8351 classify_name, classify_inner_name, c_parse): Add "struct
8352 parser_state" argument. Update function to use parser state.
8353 * c-lang.h: Forward declare "struct parser_state".
8354 (c_parse): Add "struct parser_state" argument.
8355 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8356 (yyparse): Redefine macro to ada_parse_internal.
8357 (pstate): New variable.
8358 (write_int, write_object_renaming, write_var_or_type,
8359 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8360 type_int, type_long, type_long_long, type_float, type_double,
8361 type_long_double, type_char, type_boolean, type_system_address):
8362 Add "struct parser_state" argument.
8363 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8364 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8365 var_or_type, aggregate, aggregate_component_list,
8366 positional_list, others, component_group,
8367 component_associations): Update calls to write_exp* and similar
8368 functions in order to use parser state.
8369 (ada_parse, write_var_from_sym, write_int,
8370 write_exp_op_with_string, write_object_renaming,
8371 find_primitive_type, write_selectors, write_ambiguous_var,
8372 write_var_or_type, write_name_assoc, type_int, type_long,
8373 type_long_long, type_float, type_double, type_long_double,
8374 type_char, type_boolean, type_system_address): Add "struct
8375 parser_state" argument. Adjust function to use parser state.
8376 * ada-lang.c (parse): Likewise.
8377 * ada-lang.h: Forward declare "struct parser_state".
8378 (ada_parse): Add "struct parser_state" argument.
8379 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8380 calls to both functions.
8381 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8382 parser state.
8383 (yyparse): Redefine macro to f_parse_internal.
8384 (pstate): New variable.
8385 (parse_number): Add "struct parser_state" argument.
8386 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8387 and similars in order to use parser state.
8388 (parse_number): Adjust code to use parser state.
8389 (yylex): Likewise.
8390 (f_parse): New function.
8391 * f-lang.h: Forward declare "struct parser_state".
8392 (f_parse): Add "struct parser_state" argument.
8393 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8394 parser state.
8395 (yyparse): Redefine macro for java_parse_internal.
8396 (pstate): New variable.
8397 (push_expression_name, push_expression_name, insert_exp): Add
8398 "struct parser_state" argument.
8399 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8400 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8401 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8402 PostIncrementExpression, PostDecrementExpression,
8403 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8404 UnaryExpressionNotPlusMinus, CastExpression,
8405 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8406 RelationalExpression, EqualityExpression, AndExpression,
8407 ExclusiveOrExpression, InclusiveOrExpression,
8408 ConditionalAndExpression, ConditionalOrExpression,
8409 ConditionalExpression, Assignment, LeftHandSide): Update
8410 calls to write_exp* and similars in order to use parser state.
8411 (parse_number): Ajust code to use parser state.
8412 (yylex): Likewise.
8413 (java_parse): New function.
8414 (push_variable): Add "struct parser_state" argument. Adjust
8415 code to user parser state.
8416 (push_fieldnames, push_qualified_expression_name,
8417 push_expression_name, insert_exp): Likewise.
8418 * jv-lang.h: Forward declare "struct parser_state".
8419 (java_parse): Add "struct parser_state" argument.
8420 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8421 parser state.
8422 (yyparse): Redefine macro to m2_parse_internal.
8423 (pstate): New variable.
8424 (type_exp, exp, fblock, variable, type): Update calls to
8425 write_exp* and similars to use parser state.
8426 (yylex): Likewise.
8427 (m2_parse): New function.
8428 * m2-lang.h: Forward declare "struct parser_state".
8429 (m2_parse): Add "struct parser_state" argument.
8430 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8431 * objc-lang.h: Forward declare "struct parser_state".
8432 (end_msglist): Add "struct parser_state" argument.
8433 * p-exp.y (parse_type): Rewrite macro to use parser state.
8434 (yyparse): Redefine macro to pascal_parse_internal.
8435 (pstate): New variable.
8436 (parse_number): Add "struct parser_state" argument.
8437 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8438 write_exp* and similars in order to use parser state.
8439 (parse_number, yylex): Adjust code to use parser state.
8440 (pascal_parse): New function.
8441 * p-lang.h: Forward declare "struct parser_state".
8442 (pascal_parse): Add "struct parser_state" argument.
8443 * go-exp.y (parse_type): Rewrite macro to use parser state.
8444 (yyparse): Redefine macro to go_parse_internal.
8445 (pstate): New variable.
8446 (parse_number): Add "struct parser_state" argument.
8447 (type_exp, exp1, exp, variable, type): Update calls to
8448 write_exp* and similars in order to use parser state.
8449 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8450 to use parser state.
8451 (go_parse): Likewise.
8452 * go-lang.h: Forward declare "struct parser_state".
8453 (go_parse): Add "struct parser_state" argument.
8454
8455 2014-03-27 Doug Evans <dje@google.com>
8456
8457 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8458
8459 2014-03-27 Doug Evans <dje@google.com>
8460
8461 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8462 Remove argument abbrev_section. All callers updated.
8463
8464 2014-03-27 Doug Evans <dje@google.com>
8465
8466 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8467 addr_base, ranges_base.
8468
8469 2014-03-26 Keith Seitz <keiths@redhat.com>
8470
8471 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8472 types, not VAR_DOMAIN.
8473
8474 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8475
8476 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8477 "ra" registers.
8478 * features/nios2-linux.c: Regenerated.
8479 * features/nios2.c: Regenerated.
8480
8481 2014-03-25 Pedro Alves <palves@redhat.com>
8482
8483 * cli/cli-script.c (script_from_file): Force the interpreter to
8484 sync mode.
8485
8486 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8487
8488 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8489 small stack allocation.
8490
8491 2014-03-24 Tristan Gingold <gingold@adacore.com>
8492
8493 * darwin-nat.c (exc_server): Remove unused prototype.
8494 (darwin_dump_message): Correctly display data on x86_64.
8495 (darwin_encode_reply): Fix style.
8496 Add comments and fix indentation.
8497
8498 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8499
8500 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8501
8502 2014-03-22 Doug Evans <xdje42@gmail.com>
8503
8504 * infcmd.c: Whitespace fixes.
8505 (interrupt_command): Merge two function comments into one.
8506
8507 2014-03-22 Doug Evans <xdje42@gmail.com>
8508
8509 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8510 All uses updated.
8511
8512 2014-03-22 Yao Qi <yao@codesourcery.com>
8513
8514 * remote.c (target_read_live_memory): Remove.
8515 (memory_xfer_live_readonly_partial): Rename it to
8516 remote_xfer_live_readonly_partial. Remove argument 'object'.
8517 All callers updated. Call remote_read_bytes_1
8518 instead of target_read_live_memory.
8519 * tracepoint.c (set_traceframe_number): Remove.
8520 (make_cleanup_restore_traceframe_number): Likewise .
8521 * tracepoint.h (set_traceframe_number): Remove declaration.
8522 (make_cleanup_restore_traceframe_number): Likewise.
8523
8524 2014-03-22 Yao Qi <yao@codesourcery.com>
8525
8526 * remote.c (remote_read_bytes): Move code on reading from the
8527 remote stub to ...
8528 (remote_read_bytes_1): ... here. New function.
8529
8530 2014-03-22 Yao Qi <yao@codesourcery.com>
8531
8532 * ctf.c (ctf_xfer_partial): Check the return value of
8533 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8534 return TARGET_XFER_UNAVAILABLE.
8535 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8536 * target.c (target_read_live_memory): Move it to remote.c.
8537 (memory_xfer_live_readonly_partial): Likewise.
8538 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8539 * remote.c (target_read_live_memory): Moved from target.c.
8540 (memory_xfer_live_readonly_partial): Likewise.
8541 (remote_read_bytes): Factored out from
8542 memory_xfer_partial_1.
8543
8544 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8545
8546 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8547 NULL pointer.
8548
8549 2014-03-21 Pedro Alves <palves@redhat.com>
8550
8551 * infrun.c (normal_stop): Extend comment.
8552
8553 2014-03-21 Hui Zhu <hui@codesourcery.com>
8554 Pedro Alves <palves@redhat.com>
8555
8556 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8557 static buffer.
8558 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8559 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8560 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8561
8562 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8563
8564 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8565 `z' formatted output modifier.
8566
8567 2014-03-20 Tom Tromey <tromey@redhat.com>
8568 Sergio Durigan Junior <sergiodj@redhat.com>
8569
8570 * probe.c (parse_probes): Turn assert into an ordinary error.
8571 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8572 exceptions when parsing probes. Rearrange the code for clarity.
8573
8574 2014-03-20 Tom Tromey <tromey@redhat.com>
8575
8576 PR gdb/14135
8577 * top.c (execute_command): Only dispatch events if the command
8578 started the target.
8579
8580 2014-03-20 Tom Tromey <tromey@redhat.com>
8581
8582 PR cli/15718
8583 * infcall.c: Include event-top.h.
8584 (run_inferior_call): Call async_disable_stdin if needed.
8585
8586 2014-03-20 Pedro Alves <palves@redhat.com>
8587
8588 * infrun.c (prepare_to_proceed): Delete.
8589 (thread_still_needs_step_over): New function.
8590 (find_thread_needs_step_over): New function.
8591 (proceed): If the current thread needs a step-over, set its
8592 steping_over_breakpoint flag. Adjust to use
8593 find_thread_needs_step_over instead of prepare_to_proceed.
8594 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8595 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8596 breakpoint.
8597 (switch_back_to_stepped_thread): Step over breakpoints of all
8598 threads not the stepping thread, before switching back to the
8599 stepping thread.
8600
8601 2014-03-20 Pedro Alves <palves@redhat.com>
8602
8603 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8604 extern.
8605 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8606 * infrun.c (saved_singlestep_ptid)
8607 (stepping_past_singlestep_breakpoint): Delete.
8608 (resume): Remove stepping_past_singlestep_breakpoint handling.
8609 (proceed): Store the prev_pc of the stepping thread too.
8610 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8611 singlestep_pc.
8612 (enum infwait_states): Delete infwait_thread_hop_state.
8613 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8614 field.
8615 (handle_inferior_event): Adjust.
8616 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8617 handling and the thread-hop code. Before removing single-step
8618 breakpoints, check whether the thread hit a single-step breakpoint
8619 of another thread. If it did, the trap is not a random signal.
8620 (switch_back_to_stepped_thread): If the event thread hit a
8621 single-step breakpoint, unblock it before switching to the
8622 stepping thread. Handle the case of the stepped thread having
8623 advanced already.
8624 (keep_going): Handle the case of the current thread moving past a
8625 single-step breakpoint.
8626
8627 2014-03-20 Pedro Alves <palves@redhat.com>
8628
8629 PR breakpoints/7143
8630 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8631 are being stepped over.
8632 (breakpoint_address_match): Make extern.
8633 * breakpoint.h (breakpoint_address_match): New declaration.
8634 * inferior.h (stepping_past_instruction_at): New declaration.
8635 * infrun.c (struct step_over_info): New type.
8636 (step_over_info): New global.
8637 (set_step_over_info, clear_step_over_info)
8638 (stepping_past_instruction_at): New functions.
8639 (handle_inferior_event): Clear the step-over info when
8640 trap_expected is cleared.
8641 (resume): Remove now stale comment.
8642 (clear_proceed_status): Clear step-over info.
8643 (proceed): Adjust step-over handling to set or clear the step-over
8644 info instead of removing all breakpoints.
8645 (handle_signal_stop): When setting up a thread-hop, don't remove
8646 breakpoints here.
8647 (stop_stepping): Clear step-over info.
8648 (keep_going): Adjust step-over handling to set or clear step-over
8649 info and then always inserting breakpoints, instead of removing
8650 all breakpoints when stepping over one.
8651
8652 2014-03-20 Pedro Alves <palves@redhat.com>
8653
8654 * infrun.c (previous_inferior_ptid): Adjust comment.
8655 (deferred_step_ptid): Delete.
8656 (infrun_thread_ptid_changed, prepare_to_proceed)
8657 (init_wait_for_inferior): Adjust.
8658 (handle_signal_stop): Delete deferred_step_ptid handling.
8659
8660 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8661
8662 PR gdb/15358
8663 * defs.h (sync_quit_force_run): New declaration.
8664 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8665 * event-top.c (async_sigterm_handler): New declaration.
8666 (async_sigterm_token): New variable.
8667 (async_init_signals): Create also async_sigterm_token.
8668 (async_sigterm_handler): New function.
8669 (sync_quit_force_run): New variable.
8670 (handle_sigterm): Replace quit_force call by other calls.
8671 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8672
8673 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8674
8675 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8676 offset into SPE pseudo registers.
8677
8678 2014-03-18 Pedro Alves <palves@redhat.com>
8679
8680 PR gdb/13860
8681 * inferior.h (print_stop_event): Declare.
8682 * infrun.c (print_stop_event): New, factored out from ...
8683 (normal_stop): ... this.
8684 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8685 of bpstat_print/print_stack_frame.
8686
8687 2014-03-17 Tom Tromey <tromey@redhat.com>
8688
8689 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8690
8691 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8692
8693 * ada-lang.c (decode_constrained_packed_array): Perform a
8694 minimal coercion for reference with coerce_ref instead of
8695 ada_coerce_ref.
8696
8697 2014-03-17 Tristan Gingold <gingold@adacore.com>
8698
8699 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8700 (darwin_solib_create_inferior_hook): Emit a warning if version
8701 is unhandled.
8702
8703 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8704
8705 * python/py-value.c (get_field_flag): Cast flag_name argument to
8706 PyObject_GetAttrString to support Python 2.4.
8707
8708 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8709
8710 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8711 (Global Maintainers): Remove Jan Kratochvil.
8712
8713 2014-03-14 Pedro Alves <palves@redhat.com>
8714
8715 * inferior.h (terminal_ours_for_output): Rename to ...
8716 (child_terminal_ours_for_output): ... this.
8717 (terminal_save_ours): Rename to ...
8718 (child_terminal_save_ours): ... this.
8719 (terminal_ours): Rename to ...
8720 (child_terminal_ours): ... this.
8721 (terminal_inferior): Rename to ...
8722 (child_terminal_inferior): ... this.
8723 (terminal_init_inferior): Rename to ...
8724 (child_terminal_init_inferior): ... this.
8725 (terminal_init_inferior_with_pgrp): Rename to ...
8726 (child_terminal_init_inferior_with_pgrp): ... this.
8727 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8728 (child_terminal_init_with_pgrp): ... this.
8729 (terminal_save_ours): Rename to ...
8730 (child_terminal_save_ours): ... this.
8731 (terminal_init_inferior): Rename to ...
8732 (child_terminal_init): ... this. Adjust.
8733 (terminal_inferior): Rename to ...
8734 (child_terminal_inferior): ... this.
8735 (terminal_ours_for_output): Rename to ...
8736 (child_terminal_ours_for_output): ... this. Adjust.
8737 (terminal_ours): Rename to ...
8738 (child_terminal_ours): ... this.
8739 (terminal_ours_1): Rename to ...
8740 (child_terminal_ours_1): ... this. Adjust.
8741 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8742 * windows-nat.c (do_initial_windows_stuff): Adjust.
8743 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8744 (gnu_terminal_init): ... this. Adjust.
8745 (gnu_target): Adjust.
8746 * inf-child.c (inf_child_target): Adjust.
8747
8748 2014-03-13 Doug Evans <xdje42@gmail.com>
8749
8750 PR guile/16612
8751 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8752 new eq?-hashtab.
8753
8754 2014-03-13 Doug Evans <xdje42@gmail.com>
8755
8756 * value.c (record_latest_value): Call release_value_or_incref
8757 instead of release_value.
8758
8759 2014-03-13 Pedro Alves <palves@redhat.com>
8760
8761 * procfs.c (procfs_target): Don't override to_shortname,
8762 to_longname or to_doc.
8763
8764 2014-03-13 Pedro Alves <palves@redhat.com>
8765
8766 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8767 Unix in user visible strings.
8768
8769 2014-03-12 Stan Shebs <stan@codesourcery.com>
8770
8771 * gdbtypes.h: Annotate comments for Doxygen, add a page
8772 block comment with some general info.
8773
8774 2014-03-12 Pedro Alves <palves@redhat.com>
8775
8776 * infcmd.c (prepare_execution_command): New function, factored out
8777 from several execution commands.
8778 (run_command_1, continue_command, step_1, jump_command)
8779 (signal_command, until_command, advance_command, finish_command)
8780 (attach_command): Use prepare_execution_command.
8781
8782 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8783
8784 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8785 (MAX_BPTS): Define.
8786 (MAX_WPTS): Define.
8787 (struct arm_linux_thread_points): Removed.
8788 (struct arm_linux_process_info): New.
8789 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8790 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8791 (arm_linux_find_breakpoints_by_tid): Removed.
8792 (struct arch_lwp_info): New.
8793 (arm_linux_find_process_pid): New functions.
8794 (arm_linux_add_process): New functions.
8795 (arm_linux_process_info_get): New functions.
8796 (arm_linux_forget_process): New function.
8797 (arm_linux_get_debug_reg_state): New function.
8798 (struct update_registers_data): New.
8799 (update_registers_callback): New function.
8800 (arm_linux_insert_hw_breakpoint1): Updated.
8801 (arm_linux_remove_hw_breakpoint1): Updated.
8802 (arm_linux_insert_hw_breakpoint): Updated.
8803 (arm_linux_remove_hw_breakpoint): Updated.
8804 (arm_linux_insert_watchpoint): Updated.
8805 (arm_linux_remove_watchpoint): Updated.
8806 (arm_linux_new_thread): Updated.
8807 (arm_linux_prepare_to_resume): New function.
8808 (arm_linux_new_fork): New function.
8809 (_initialize_arm_linux_nat): Updated.
8810
8811 2014-03-12 Pedro Alves <palves@redhat.com>
8812
8813 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8814
8815 2014-03-12 Tom Tromey <tromey@redhat.com>
8816
8817 * inf-child.c (return_zero): New function.
8818 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8819 * aix-thread.c (aix_thread_inferior_created): New function.
8820 (aix_thread_attach): Remove.
8821 (init_aix_thread_ops): Don't set to_attach.
8822 (_initialize_aix_thread): Register inferior_created observer.
8823 * corelow.c (init_core_ops): Don't set to_attach or
8824 to_create_inferior.
8825 * exec.c (init_exec_ops): Don't set to_attach or
8826 to_create_inferior.
8827 * infcmd.c (run_command_1): Use find_run_target. Make direct
8828 target calls.
8829 (attach_command): Use find_attach_target. Make direct target
8830 calls.
8831 * record-btrace.c (init_record_btrace_ops): Don't set
8832 to_create_inferior.
8833 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8834 Remove.
8835 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8836 set to_create_inferior.
8837 * target.c (complete_target_initialization): Add assertion.
8838 (target_create_inferior): Remove.
8839 (find_default_attach, find_default_create_inferior): Remove.
8840 (find_attach_target, find_run_target): New functions.
8841 (find_default_is_async_p, find_default_can_async_p)
8842 (target_supports_non_stop, target_attach): Remove.
8843 (init_dummy_target): Don't set to_create_inferior or
8844 to_supports_non_stop.
8845 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8846 TARGET_DEFAULT_FUNC.
8847 <to_create_inferior>: Add comment.
8848 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8849 TARGET_DEFAULT_RETURN.
8850 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8851 (find_attach_target, find_run_target): Declare.
8852 (target_create_inferior): Remove.
8853 (target_has_execution_1): Update comment.
8854 (target_supports_non_stop): Remove.
8855 * target-delegates.c: Rebuild.
8856
8857 2014-03-12 Pedro Alves <palves@redhat.com>
8858
8859 * inf-child.h: Update comment to not mention Unix.
8860
8861 2014-03-12 Pedro Alves <palves@redhat.com>
8862
8863 * inf-child.c: Update top comment to not mention Unix. Add
8864 generic comment describing how this target is meant to be used.
8865 (inf_child_post_attach, inf_child_post_startup_inferior)
8866 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8867 Unix in comment.
8868
8869 2014-03-12 Pedro Alves <palves@redhat.com>
8870
8871 * nto-procfs.c: Include inf-child.h.
8872 (procfs_ops): Delete global.
8873 (procfs_can_run): Delete method.
8874 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8875 target pointer instead of referencing procfs_ops.
8876 (procfs_prepare_to_store): Delete.
8877 (init_procfs_ops): Delete function.
8878 (procfs_target): New function, based on init_procfs_ops, but
8879 inherit inf_child_target.
8880 (_initialize_procfs): Use procfs_target.
8881
8882 2014-03-12 Pedro Alves <palves@redhat.com>
8883
8884 * windows-nat.c: Include inf-child.h.
8885 (windows_ops): Delete global.
8886 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8887 methods.
8888 (init_windows_ops): Delete function.
8889 (windows_target): New function, based on init_windows_ops, but
8890 inherit inf_child_target.
8891 (_initialize_windows_nat): Use windows_target. Install x86
8892 specific target methods here.
8893
8894 2014-03-10 Doug Evans <xdje42@gmail.com>
8895
8896 * guile/guile.c (call_initialize_gdb_module): New function.
8897 (initialize_guile): Replace call to scm_init_guile with call to
8898 scm_with_guile.
8899
8900 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8901
8902 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8903 in call to TYPE_CODE macro.
8904
8905 2014-03-10 Jerome Guitton <guitton@adacore.com>
8906
8907 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8908 Resolve tagged types to full view.
8909
8910 2014-03-10 Hui Zhu <hui@codesourcery.com>
8911
8912 * target.h (target_insert_breakpoint): Remove "hardware" from its
8913 comments.
8914
8915 2014-03-07 Doug Evans <dje@google.com>
8916
8917 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8918
8919 2014-03-07 Doug Evans <dje@google.com>
8920
8921 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8922 Remove unused local comp_dir_attr. Assert exactly one of
8923 stub_comp_unit_die, stub_comp_dir is non-NULL.
8924
8925 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8926
8927 * target.h (complete_target_initialization, add_target):
8928 Add comment.
8929
8930 2014-03-07 Pedro Alves <palves@redhat.com>
8931
8932 * go32-nat.c: Include inf-child.h.
8933 (go32_ops): Delete global.
8934 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8935 Delete methods.
8936 (go32_create_inferior): Push the passed in target pointer instead
8937 of referencing go32_ops.
8938 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8939 (go32_target): New function, based on init_go32_ops, but inherit
8940 inf_child_target.
8941 (_initialize_go32_nat): Use go32_target. Move parts of
8942 init_go32_ops here.
8943
8944 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8945
8946 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8947 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8948 SYMBOL_VALUE_ADDRESS.
8949 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8950
8951 2014-03-06 Yao Qi <yao@codesourcery.com>
8952
8953 * breakpoint.c (get_tracepoint_by_number): Remove argument
8954 optional_p. All callers updated. Adjust comments. Update
8955 output message.
8956 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8957
8958 2014-03-06 Yao Qi <yao@codesourcery.com>
8959
8960 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8961 early if get_number returns zero. Use 'p' instead of 'args'.
8962
8963 2014-03-06 Yao Qi <yao@codesourcery.com>
8964
8965 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8966 message.
8967
8968 2014-03-06 Yao Qi <yao@codesourcery.com>
8969
8970 PR breakpoints/16508
8971 * tracepoint.c (check_trace_running): New function.
8972 (trace_find_command): Move code to check_trace_running and
8973 call check_trace_running.
8974 (trace_find_pc_command): Likewise.
8975 (trace_find_tracepoint_command): Likewise.
8976 (trace_find_line_command): Likewise.
8977 (trace_find_range_command): Likewise.
8978 * tracepoint.h (check_trace_running): Likewise.
8979 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8980
8981 2014-03-06 Yao Qi <yao@codesourcery.com>
8982
8983 * target.h (struct target_ops) <to_traceframe_info>: Use
8984 TARGET_DEFAULT_NORETURN (tcomplain ()).
8985 * target-delegates.c: Regenerated.
8986
8987 2014-03-05 Pedro Alves <palves@redhat.com>
8988
8989 PR gdb/16575
8990 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
8991 void. Update comment.
8992 (dcache_xfer_memory): Delete.
8993 (dcache_read_memory_partial): New, based on the read bits of
8994 dcache_xfer_memory.
8995 (dcache_update): Add status parameter. Use ULONGEST for len, and
8996 adjust. Discard cache lines if the reason for the update was
8997 error.
8998 * dcache.h (dcache_xfer_memory): Delete declaration.
8999 (dcache_read_memory_partial): New declaration.
9000 (dcache_update): Update prototype.
9001 * target.c (raw_memory_xfer_partial): Update the dcache here.
9002 (memory_xfer_partial_1): Don't handle dcache writes here.
9003
9004 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9005
9006 * remote-sim.c (gdbsim_load): Add const to prog.
9007
9008 2014-03-03 Tom Tromey <tromey@redhat.com>
9009
9010 * elfread.c (probe_key): Change to bfd_data.
9011 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9012 now per-BFD, not per-objfile.
9013 * stap-probe.c (stap_probe_destroy): Update comment.
9014 (handle_stap_probe): Allocate on the per-BFD obstack.
9015
9016 2014-03-03 Tom Tromey <tromey@redhat.com>
9017
9018 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9019 * breakpoint.c (create_longjmp_master_breakpoint): Use
9020 get_probe_address.
9021 (add_location_to_breakpoint, bkpt_probe_insert_location)
9022 (bkpt_probe_remove_location): Update.
9023 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9024 * elfread.c (elf_symfile_relocate_probe): Remove.
9025 (elf_probe_fns): Update.
9026 (insert_exception_resume_breakpoint): Change type of "probe"
9027 parameter to bound_probe.
9028 (check_exception_resume): Update.
9029 * objfiles.c (objfile_relocate1): Don't relocate probes.
9030 * probe.c (bound_probe_s): New typedef.
9031 (parse_probes): Use get_probe_address. Set sal's objfile.
9032 (find_probe_by_pc): Return a bound_probe.
9033 (collect_probes): Return a VEC(bound_probe_s).
9034 (compare_probes): Update.
9035 (gen_ui_out_table_header_info): Change type of "probes"
9036 parameter. Update.
9037 (info_probes_for_ops): Update.
9038 (get_probe_address): New function.
9039 (probe_safe_evaluate_at_pc): Update.
9040 * probe.h (struct probe_ops) <get_probe_address>: New field.
9041 <set_semaphore, clear_semaphore>: Add objfile parameter.
9042 (struct probe) <objfile>: Remove field.
9043 <arch>: New field.
9044 <address>: Update comment.
9045 (struct bound_probe): New.
9046 (find_probe_by_pc): Return a bound_probe.
9047 (get_probe_address): Declare.
9048 * solib-svr4.c (struct probe_and_action) <address>: New field.
9049 (hash_probe_and_action, equal_probe_and_action): Update.
9050 (register_solib_event_probe): Add address parameter.
9051 (solib_event_probe_at): Update.
9052 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9053 get_probe_address.
9054 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9055 (stap_get_probe_address): New function.
9056 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9057 (compile_probe_arg): Update.
9058 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9059 address.
9060 (handle_stap_probe): Don't relocate the probe.
9061 (stap_relocate): Remove.
9062 (stap_gen_info_probes_table_values): Update.
9063 (stap_probe_ops): Remove stap_relocate.
9064 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9065 (debug_sym_probe_fns): Update.
9066 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9067 * symtab.c (init_sal): Use memset.
9068 * symtab.h (struct symtab_and_line) <objfile>: New field.
9069 * tracepoint.c (start_tracing, stop_tracing): Update.
9070
9071 2014-03-03 Tom Tromey <tromey@redhat.com>
9072
9073 * probe.h (parse_probes, find_probe_by_pc)
9074 (find_probes_in_objfile): Fix comments.
9075
9076 2014-03-02 Doug Evans <xdje42@gmail.com>
9077
9078 * infrun.c (handle_signal_stop): Replace test for
9079 TARGET_WAITKIND_STOPPED with an assert.
9080
9081 2014-03-02 Doug Evans <xdje42@gmail.com>
9082
9083 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9084
9085 2014-03-02 Doug Evans <xdje42@gmail.com>
9086
9087 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9088
9089 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9090
9091 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9092
9093 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9094
9095 * i386obsd-nat.c: Include "obsd-nat.h".
9096 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9097 add_target.
9098 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9099
9100 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9101
9102 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9103
9104 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9105
9106 * mips64obsd-nat.c: Include "obsd-nath".
9107 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9108 add_target
9109 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9110
9111 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9112
9113 * amd64obsd-nat.c: Include "obsd-nat,h.
9114 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9115 add_target.
9116 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9117
9118 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9119
9120 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9121 (find_overload_match): Update call to find_oload_champ.
9122 (find_oload_champ_namespace_loop): Likewise
9123
9124 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9125
9126 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9127
9128 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9129 * config/sparc/obsd64.mh: New file.
9130 * sparc64obsd-nat.c: New file.
9131
9132 * obsd-nat.h: New file.
9133 * obsd-nat.c: New file.
9134 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9135 (ALLDEPFILES): Add obsd-nat.c.
9136
9137 2014-02-28 Tom Tromey <tromey@redhat.com>
9138
9139 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9140 * cli-out.h (cli_ui_out_impl): Now const.
9141 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9142 * ui-out.c (struct ui_out) <impl>: Now const.
9143 (default_ui_out_impl): Now const.
9144 (ui_out_new): Make 'impl' parameter const.
9145 * ui-out.h (ui_out_new): Update.
9146
9147 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9148
9149 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9150
9151 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9152
9153 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9154
9155 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9156
9157 Additional PR 8882 fix.
9158 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9159
9160 2014-02-27 Pedro Alves <palves@redhat.com>
9161
9162 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9163 isn't set.
9164
9165 2014-02-27 Pedro Alves <palves@redhat.com>
9166
9167 PR 12702
9168 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9169 * nat/linux-waitpid.c: Include string.h.
9170 (status_to_str): Moved here and made extern.
9171 * nat/linux-waitpid.h (status_to_str): New declaration.
9172
9173 2014-02-27 Hui Zhu <hui@codesourcery.com>
9174
9175 PR 12702
9176 * infrun.c (ptid_match): Move ...
9177 * common/ptid.c (ptid_match): ... here.
9178 * inferior.h (ptid_match): Move ...
9179 * common/ptid.h (ptid_match): ... here.
9180
9181 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9182
9183 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9184 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9185 gdb_target_obs.
9186
9187 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9188
9189 * obsd-tdep.c (obsd_auxv_parse): New function.
9190 (obsd_init_abi): Set auxv_parse.
9191
9192 * gdbarch.sh (auxv_parse): New.
9193 * gdbarch.h: Regenerated.
9194 * gdbarch.c: Regenerated.
9195 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9196
9197 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9198
9199 * guile/scm-value.c (gdbscm_history_append_x): New function.
9200 (value_functions): Add it.
9201
9202 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9203
9204 * dwarf2read.c (attr_value_as_address): New function.
9205 (dwarf2_find_base_address, read_call_site_scope): Use
9206 attr_value_as_address in place of DW_ADDR.
9207 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9208 the low and high addresses. Slight rework of the handling
9209 of the high pc being a constant form, and limit it to
9210 DWARF verson 4 or higher.
9211 (dwarf2_record_block_ranges): Likewise.
9212 (read_partial_die): Likewise.
9213 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9214
9215 2014-02-26 Tom Tromey <tromey@redhat.com>
9216
9217 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9218
9219 2014-02-26 Tom Tromey <tromey@redhat.com>
9220
9221 * elfread.c (elf_read_minimal_symbols): Return early if
9222 minimal symbols have already been read. Add "ei" parameter.
9223 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9224 * minsyms.c (prim_record_minimal_symbol_full): Update.
9225 * objfiles.h (struct objstats) <n_minsyms>: Move...
9226 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9227 * symmisc.c (print_objfile_statistics): Update.
9228
9229 2014-02-26 Tom Tromey <tromey@redhat.com>
9230
9231 * elfread.c (elf_read_minimal_symbols): New function, from
9232 elf_symfile_read.
9233 (elf_symfile_read): Call it.
9234
9235 2014-02-26 Tom Tromey <tromey@redhat.com>
9236
9237 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9238 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9239 (lookup_minimal_symbol_solib_trampoline)
9240 (lookup_minimal_symbol_by_pc_section_1)
9241 (lookup_minimal_symbol_and_objfile): Update.
9242 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9243 Don't allocate a minimal symbol if minsyms have already been read.
9244 (build_minimal_symbol_hash_tables): Update.
9245 (install_minimal_symbols): Do nothing if minsyms already read.
9246 Use the per-BFD obstack.
9247 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9248 * objfiles.c (allocate_objfile): Call
9249 terminate_minimal_symbol_table later.
9250 (have_minimal_symbols): Update.
9251 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9252 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9253 Move from struct objfile.
9254 <minsyms_read>: New field.
9255 (struct objfile) <msymbols, minimal_symbol_count,
9256 msymbol_hash, msymbol_demangled_hash>: Move.
9257 (ALL_OBJFILE_MSYMBOLS): Update.
9258 * symfile.c (read_symbols): Set minsyms_read.
9259 (reread_symbols): Update.
9260 * symmisc.c (dump_objfile, dump_msymbols): Update.
9261
9262 2014-02-26 Tom Tromey <tromey@redhat.com>
9263
9264 * minsyms.c (msymbols_sort): Remove.
9265 * minsyms.h (msymbols_sort): Remove.
9266 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9267 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9268 * elfread.c (elf_symtab_read): Don't add section offsets.
9269 * xcoffread.c (record_minimal_symbol): Don't add section offset
9270 to minimal symbol address.
9271 * somread.c (text_offset, data_offset): Remove.
9272 (som_symtab_read): Don't add section offsets to minimal symbol
9273 addresses.
9274 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9275 Don't add section offsets to minimal symbols.
9276 * coffread.c (coff_symtab_read): Don't add section offsets
9277 to minimal symbol addresses.
9278 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9279 to minimal symbol addresses.
9280 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9281 section offset to minimal symbol addresses.
9282 * mdebugread.c (parse_partial_symbols): Don't add section
9283 offset to minimal symbol addresses.
9284 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9285 offset to minimal symbol addresses.
9286
9287 2014-02-26 Tom Tromey <tromey@redhat.com>
9288
9289 * ada-lang.c (ada_main_name): Update.
9290 (ada_add_standard_exceptions): Update.
9291 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9292 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9293 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9294 * auxv.c (ld_so_xfer_auxv): Update.
9295 * avr-tdep.c (avr_scan_prologue): Update.
9296 * ax-gdb.c (gen_var_ref): Update.
9297 * blockframe.c (get_pc_function_start)
9298 (find_pc_partial_function_gnu_ifunc): Update.
9299 * breakpoint.c (create_overlay_event_breakpoint)
9300 (create_longjmp_master_breakpoint)
9301 (create_std_terminate_master_breakpoint)
9302 (create_exception_master_breakpoint): Update.
9303 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9304 * c-valprint.c (c_val_print): Update.
9305 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9306 * common/agent.c (agent_look_up_symbols): Update.
9307 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9308 * dwarf2loc.c (call_site_to_target_addr): Update.
9309 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9310 * elfread.c (elf_gnu_ifunc_record_cache)
9311 (elf_gnu_ifunc_resolve_by_got): Update.
9312 * findvar.c (default_read_var_value): Update.
9313 * frame.c (inside_main_func): Update.
9314 * frv-tdep.c (frv_frame_this_id): Update.
9315 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9316 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9317 Update.
9318 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9319 (hppa_hpux_find_dummy_bpaddr): Update.
9320 * hppa-tdep.c (hppa_symbol_address): Update.
9321 * infcmd.c (until_next_command): Update.
9322 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9323 Update.
9324 * linespec.c (minsym_found, add_minsym): Update.
9325 * linux-nat.c (get_signo): Update.
9326 * linux-thread-db.c (inferior_has_bug): Update.
9327 * m32c-tdep.c (m32c_return_value)
9328 (m32c_m16c_address_to_pointer): Update.
9329 * m32r-tdep.c (m32r_frame_this_id): Update.
9330 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9331 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9332 * maint.c (maintenance_translate_address): Update.
9333 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9334 (frob_address): New function.
9335 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9336 frob_address. Rename parameter to "pc_in".
9337 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9338 addresses.
9339 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9340 Update.
9341 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9342 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9343 * objc-lang.c (find_objc_msgsend): Update.
9344 * objfiles.c (objfile_relocate1): Update.
9345 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9346 * p-valprint.c (pascal_val_print): Update.
9347 * parse.c (write_exp_msymbol): Update.
9348 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9349 (ppc_elfv2_skip_entrypoint): Update.
9350 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9351 * printcmd.c (build_address_symbolic, msym_info)
9352 (address_info): Update.
9353 * proc-service.c (ps_pglobal_lookup): Update.
9354 * psymtab.c (find_pc_sect_psymtab_closer)
9355 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9356 Change msymbol parameter to bound_minimal_symbol.
9357 * ravenscar-thread.c (get_running_thread_id): Update.
9358 * remote.c (remote_check_symbols): Update.
9359 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9360 address.
9361 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9362 * solib-dsbt.c (lm_base): Update.
9363 * solib-frv.c (lm_base, main_got): Update.
9364 * solib-irix.c (locate_base): Update.
9365 * solib-som.c (som_solib_create_inferior_hook)
9366 (link_map_start): Update.
9367 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9368 * solib-svr4.c (elf_locate_base, enable_break): Update.
9369 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9370 (flush_ea_cache): Update.
9371 * stabsread.c (define_symbol, scan_file_globals): Update.
9372 * stack.c (find_frame_funname): Update.
9373 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9374 (debug_qf_find_pc_sect_symtab): Update.
9375 * symfile.c (simple_read_overlay_table)
9376 (simple_overlay_update): Update.
9377 * symfile.h (struct quick_symbol_functions)
9378 <find_pc_sect_symtab>: Change type of msymbol to
9379 bound_minimal_symbol.
9380 * symmisc.c (dump_msymbols): Update.
9381 * symtab.c (find_pc_sect_symtab_via_partial)
9382 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9383 (search_symbols, print_msymbol_info): Update.
9384 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9385 (MSYMBOL_VALUE_ADDRESS): Redefine.
9386 (BMSYMBOL_VALUE_ADDRESS): New macro.
9387 * tracepoint.c (scope_info): Update.
9388 * tui/tui-disasm.c (tui_find_disassembly_address)
9389 (tui_get_begin_asm_address): Update.
9390 * valops.c (find_function_in_inferior): Update.
9391 * value.c (value_static_field, value_fn_field): Update.
9392
9393 2014-02-26 Tom Tromey <tromey@redhat.com>
9394
9395 * ada-lang.c (ada_update_initial_language): Update.
9396 (ada_main_name, ada_has_this_exception_support): Update.
9397 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9398 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9399 * arm-tdep.c (arm_skip_stub): Update.
9400 * auxv.c (ld_so_xfer_auxv): Update.
9401 * avr-tdep.c (avr_scan_prologue): Update.
9402 * ax-gdb.c (gen_var_ref): Update.
9403 * breakpoint.c (struct breakpoint_objfile_data)
9404 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9405 type to bound_minimal_symbol.
9406 (create_overlay_event_breakpoint)
9407 (create_longjmp_master_breakpoint)
9408 (create_std_terminate_master_breakpoint)
9409 (create_exception_master_breakpoint): Update.
9410 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9411 * c-exp.y (classify_name): Update.
9412 * coffread.c (coff_symfile_read): Update.
9413 * common/agent.c (agent_look_up_symbols): Update.
9414 * d-lang.c (d_main_name): Update.
9415 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9416 * dec-thread.c (enable_dec_thread): Update.
9417 * dwarf2loc.c (call_site_to_target_addr): Update.
9418 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9419 * eval.c (evaluate_subexp_standard): Update.
9420 * findvar.c (struct minsym_lookup_data) <result>: Change type
9421 to bound_minimal_symbol.
9422 <objfile>: Remove.
9423 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9424 * frame.c (inside_main_func): Update.
9425 * frv-tdep.c (frv_frame_this_id): Update.
9426 * gcore.c (call_target_sbrk): Update.
9427 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9428 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9429 Update.
9430 * go-lang.c (go_main_name): Update.
9431 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9432 (hppa_hpux_find_import_stub_for_addr): Update.
9433 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9434 Update. Change return type.
9435 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9436 type.
9437 * jit.c (jit_breakpoint_re_set_internal): Update.
9438 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9439 Update.
9440 * linux-nat.c (get_signo): Update.
9441 * linux-thread-db.c (inferior_has_bug): Update
9442 * m32c-tdep.c (m32c_return_value)
9443 (m32c_m16c_address_to_pointer): Update.
9444 * m32r-tdep.c (m32r_frame_this_id): Update.
9445 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9446 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9447 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9448 lookup_minimal_symbol. Change return type.
9449 (lookup_minimal_symbol): Remove.
9450 (lookup_bound_minimal_symbol): Update.
9451 (lookup_minimal_symbol_text): Change return type.
9452 (lookup_minimal_symbol_solib_trampoline): Change return type.
9453 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9454 (lookup_minimal_symbol_solib_trampoline): Change return type.
9455 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9456 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9457 (value_nsstring, find_imps): Update.
9458 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9459 * p-lang.c (pascal_main_name): Update.
9460 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9461 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9462 * proc-service.c (ps_pglobal_lookup): Update.
9463 * ravenscar-thread.c (get_running_thread_msymbol): Change
9464 return type.
9465 (has_ravenscar_runtime, get_running_thread_id): Update.
9466 * remote.c (remote_check_symbols): Update.
9467 * sol-thread.c (ps_pglobal_lookup): Update.
9468 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9469 * solib-dsbt.c (lm_base): Update.
9470 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9471 Update.
9472 * solib-irix.c (locate_base): Update.
9473 * solib-som.c (som_solib_create_inferior_hook)
9474 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9475 Update.
9476 * solib-spu.c (spu_enable_break): Update.
9477 * solib-svr4.c (elf_locate_base, enable_break): Update.
9478 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9479 (flush_ea_cache): Update.
9480 * stabsread.c (define_symbol): Update.
9481 * symfile.c (simple_read_overlay_table): Update.
9482 * symtab.c (find_pc_sect_line): Update.
9483 * tracepoint.c (scope_info): Update.
9484 * tui-disasm.c (tui_get_begin_asm_address): Update.
9485 * value.c (value_static_field): Update.
9486
9487 2014-02-26 Tom Tromey <tromey@redhat.com>
9488
9489 * minsyms.c (prim_record_minimal_symbol_full): Use
9490 SET_MSYMBOL_VALUE_ADDRESS.
9491 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9492 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9493 SET_MSYMBOL_VALUE_ADDRESS.
9494 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9495 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9496
9497 2014-02-26 Tom Tromey <tromey@redhat.com>
9498
9499 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9500 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9501 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9502 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9503 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9504 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9505 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9506 * ada-lang.c (ada_main_name): Update.
9507 (ada_lookup_simple_minsym): Update.
9508 (ada_make_symbol_completion_list): Update.
9509 (ada_add_standard_exceptions): Update.
9510 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9511 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9512 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9513 * arm-tdep.c (skip_prologue_function): Update.
9514 (arm_skip_stack_protector, arm_skip_stub): Update.
9515 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9516 (arm_wince_skip_main_prologue): Update.
9517 * auxv.c (ld_so_xfer_auxv): Update.
9518 * avr-tdep.c (avr_scan_prologue): Update.
9519 * ax-gdb.c (gen_var_ref): Update.
9520 * block.c (call_site_for_pc): Update.
9521 * blockframe.c (get_pc_function_start): Update.
9522 (find_pc_partial_function_gnu_ifunc): Update.
9523 * breakpoint.c (create_overlay_event_breakpoint): Update.
9524 (create_longjmp_master_breakpoint): Update.
9525 (create_std_terminate_master_breakpoint): Update.
9526 (create_exception_master_breakpoint): Update.
9527 (resolve_sal_pc): Update.
9528 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9529 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9530 Update.
9531 * c-valprint.c (c_val_print): Update.
9532 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9533 * coffread.c (coff_symfile_read): Update.
9534 * common/agent.c (agent_look_up_symbols): Update.
9535 * dbxread.c (find_stab_function_addr): Update.
9536 (end_psymtab): Update.
9537 * dwarf2loc.c (call_site_to_target_addr): Update.
9538 (func_verify_no_selftailcall): Update.
9539 (tailcall_dump): Update.
9540 (call_site_find_chain_1): Update.
9541 (dwarf_expr_reg_to_entry_parameter): Update.
9542 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9543 (elf_gnu_ifunc_resolve_by_got): Update.
9544 * f-valprint.c (info_common_command): Update.
9545 * findvar.c (read_var_value): Update.
9546 * frame.c (get_prev_frame_1): Update.
9547 (inside_main_func): Update.
9548 * frv-tdep.c (frv_skip_main_prologue): Update.
9549 (frv_frame_this_id): Update.
9550 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9551 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9552 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9553 (gnuv3_skip_trampoline): Update.
9554 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9555 (hppa64_hpux_in_solib_call_trampoline): Update.
9556 (hppa_hpux_skip_trampoline_code): Update.
9557 (hppa64_hpux_search_dummy_call_sequence): Update.
9558 (hppa_hpux_find_import_stub_for_addr): Update.
9559 (hppa_hpux_find_dummy_bpaddr): Update.
9560 * hppa-tdep.c (hppa_symbol_address)
9561 (hppa_lookup_stub_minimal_symbol): Update.
9562 * i386-tdep.c (i386_skip_main_prologue): Update.
9563 (i386_pe_skip_trampoline_code): Update.
9564 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9565 * infcall.c (get_function_name): Update.
9566 * infcmd.c (until_next_command): Update.
9567 * jit.c (jit_breakpoint_re_set_internal): Update.
9568 (jit_inferior_init): Update.
9569 * linespec.c (minsym_found): Update.
9570 (add_minsym): Update.
9571 * linux-fork.c (info_checkpoints_command): Update.
9572 * linux-nat.c (get_signo): Update.
9573 * linux-thread-db.c (inferior_has_bug): Update.
9574 * m32c-tdep.c (m32c_return_value): Update.
9575 (m32c_m16c_address_to_pointer): Update.
9576 (m32c_m16c_pointer_to_address): Update.
9577 * m32r-tdep.c (m32r_frame_this_id): Update.
9578 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9579 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9580 * maint.c (maintenance_translate_address): Update.
9581 * minsyms.c (add_minsym_to_hash_table): Update.
9582 (add_minsym_to_demangled_hash_table): Update.
9583 (msymbol_objfile): Update.
9584 (lookup_minimal_symbol): Update.
9585 (iterate_over_minimal_symbols): Update.
9586 (lookup_minimal_symbol_text): Update.
9587 (lookup_minimal_symbol_by_pc_name): Update.
9588 (lookup_minimal_symbol_solib_trampoline): Update.
9589 (lookup_minimal_symbol_by_pc_section_1): Update.
9590 (lookup_minimal_symbol_and_objfile): Update.
9591 (prim_record_minimal_symbol_full): Update.
9592 (compare_minimal_symbols): Update.
9593 (compact_minimal_symbols): Update.
9594 (build_minimal_symbol_hash_tables): Update.
9595 (install_minimal_symbols): Update.
9596 (terminate_minimal_symbol_table): Update.
9597 (find_solib_trampoline_target): Update.
9598 (minimal_symbol_upper_bound): Update.
9599 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9600 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9601 (mips_skip_pic_trampoline_code): Update.
9602 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9603 * objc-lang.c (selectors_info): Update.
9604 (classes_info): Update.
9605 (find_methods): Update.
9606 (find_imps): Update.
9607 (find_objc_msgsend): Update.
9608 * objfiles.c (objfile_relocate1): Update.
9609 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9610 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9611 * p-valprint.c (pascal_val_print): Update.
9612 * parse.c (write_exp_msymbol): Update.
9613 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9614 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9615 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9616 * printcmd.c (build_address_symbolic): Update.
9617 (sym_info): Update.
9618 (address_info): Update.
9619 * proc-service.c (ps_pglobal_lookup): Update.
9620 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9621 (find_pc_sect_psymtab): Update.
9622 * python/py-framefilter.c (py_print_frame): Update.
9623 * ravenscar-thread.c (get_running_thread_id): Update.
9624 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9625 Update.
9626 * remote.c (remote_check_symbols): Update.
9627 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9628 (rs6000_skip_trampoline_code): Update.
9629 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9630 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9631 * solib-dsbt.c (lm_base): Update.
9632 * solib-frv.c (lm_base): Update.
9633 (main_got): Update.
9634 * solib-irix.c (locate_base): Update.
9635 * solib-som.c (som_solib_create_inferior_hook): Update.
9636 (som_solib_desire_dynamic_linker_symbols): Update.
9637 (link_map_start): Update.
9638 * solib-spu.c (spu_enable_break): Update.
9639 (ocl_enable_break): Update.
9640 * solib-svr4.c (elf_locate_base): Update.
9641 (enable_break): Update.
9642 * spu-tdep.c (spu_get_overlay_table): Update.
9643 (spu_catch_start): Update.
9644 (flush_ea_cache): Update.
9645 * stabsread.c (define_symbol): Update.
9646 (scan_file_globals): Update.
9647 * stack.c (find_frame_funname): Update.
9648 (frame_info): Update.
9649 * symfile.c (simple_read_overlay_table): Update.
9650 (simple_overlay_update): Update.
9651 * symmisc.c (dump_msymbols): Update.
9652 * symtab.c (fixup_section): Update.
9653 (find_pc_sect_line): Update.
9654 (skip_prologue_sal): Update.
9655 (search_symbols): Update.
9656 (print_msymbol_info): Update.
9657 (rbreak_command): Update.
9658 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9659 (completion_list_objc_symbol): Update.
9660 (default_make_symbol_completion_list_break_on): Update.
9661 * tracepoint.c (scope_info): Update.
9662 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9663 (tui_get_begin_asm_address): Update.
9664 * valops.c (find_function_in_inferior): Update.
9665 * value.c (value_static_field): Update.
9666 (value_fn_field): Update.
9667
9668 2014-02-26 Tom Tromey <tromey@redhat.com>
9669
9670 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9671 bound minimal symbols. Move code that knows about minsym
9672 table layout...
9673 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9674 function.
9675 * minsyms.h (minimal_symbol_upper_bound): Declare.
9676 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9677 minimal_symbol_upper_bound.
9678
9679 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9680
9681 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9682 Use the type's name if its basic type does not have a tag.
9683
9684 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9685
9686 * dwarf2read.c (read_subrange_type): Add comment.
9687
9688 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9689
9690 * dwarf2read.c (update_enumeration_type_from_children): New
9691 function, mostly extracted from process_structure_scope.
9692 (read_enumeration_type): Call update_enumeration_type_from_children.
9693 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9694 and flag_flag_enum fields.
9695
9696 2014-02-26 Pedro Alves <palves@redhat.com>
9697
9698 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9699 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9700 to_xfer_partial method.
9701
9702 2014-02-26 Pedro Alves <palves@redhat.com>
9703
9704 * target.c (complete_target_initialization): Don't install
9705 default_xfer_partial as to_xfer_partial hook.
9706 (nomemory): Delete.
9707 (update_current_target): Don't INHERIT nor de_fault
9708 deprecated_xfer_memory. Delete de_fault macro.
9709 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9710 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9711 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9712 field.
9713
9714 2014-02-26 Pedro Alves <palves@redhat.com>
9715
9716 * go32-nat.c (my_write_child): New function.
9717 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9718 (go32_xfer_partial): New function.
9719 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9720 Instead install a to_xfer_partial hook.
9721
9722 2014-02-26 Pedro Alves <palves@redhat.com>
9723
9724 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9725 to_xfer_partial helper. Rewrite.
9726 (procfs_xfer_partial): New function.
9727 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9728 Install a to_xfer_partial hook.
9729
9730 2014-02-26 Pedro Alves <palves@redhat.com>
9731
9732 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9733 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9734 (m32r_xfer_partial): New function.
9735 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9736 Install a to_xfer_partial hook.
9737
9738 2014-02-26 Pedro Alves <palves@redhat.com>
9739
9740 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9741 helper.
9742 (mips_xfer_partial): New function.
9743 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9744 hook. Install a to_xfer_partial hook.
9745
9746 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9747
9748 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9749 * gdbtypes.c (create_array_type_with_stride): New function,
9750 renaming create_array_type, but with an added parameter
9751 called "bit_stride".
9752 (create_array_type): Re-implement using
9753 create_array_type_with_stride.
9754 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9755 and DW_AT_bit_stride attributes.
9756
9757 2014-02-26 Pedro Alves <palves@redhat.com>
9758
9759 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9760 task-specific breakpoints.
9761
9762 2014-02-25 Pedro Alves <palves@redhat.com>
9763
9764 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9765 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9766
9767 2014-02-25 Stan Shebs <stan@codesourcery.com>
9768
9769 * defs.h: Annotate comments for Doxygen.
9770
9771 2014-02-25 Tom Tromey <tromey@redhat.com>
9772
9773 * target.h (target_ignore): Don't declare.
9774 * target.c (target_ignore): Remove.
9775
9776 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9777
9778 PR gdb/16626
9779 * auto-load.c (auto_load_objfile_script_1): Change filename to
9780 debugfile.
9781
9782 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9783
9784 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9785 documentation. Adjust prototype to match the target_ops
9786 to_xfer_partial method. Adjust implementation accordingly.
9787
9788 2014-02-25 Hui Zhu <hui@codesourcery.com>
9789
9790 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9791 to_traceframe_info.
9792
9793 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9794
9795 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9796 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9797 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9798 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9799 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9800 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9801 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9802 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9803 New constants.
9804 (rl78_register_type): Use a data pointer type for SP and
9805 new pseudo registers mentioned above. Use a 16 bit integer
9806 type for all other register pairs.
9807 (rl78_register_name, rl78_g10_register_name): Update for
9808 new pseudo registers.
9809 (rl78_pseudo_register_read): Likewise.
9810 (rl78_pseudo_register_write): Likewise.
9811 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9812 to the newly added pseudo registers.
9813
9814 2014-02-24 Doug Evans <dje@google.com>
9815
9816 * value.c (record_latest_value): Fix comment.
9817 * printcmd.c (print_command_1): Remove code to handle -1 return from
9818 record_latest_value.
9819
9820 2014-02-24 Pedro Alves <palves@redhat.com>
9821
9822 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9823 deprecated_xfer_memory hook.
9824 (procfs_xfer_partial): Call procfs_xfer_memory instead
9825 of the deprecated_xfer_memory target hook.
9826 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9827 helper.
9828
9829 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9830
9831 * windows-nat.c (windows_xfer_shared_libraries): Return
9832 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9833 requested object is TARGET_OBJECT_LIBRARIES.
9834
9835 2014-02-24 Yao Qi <yao@codesourcery.com>
9836
9837 * target.h (enum target_xfer_status)
9838 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9839 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9840 explicitly. New.
9841 * corefile.c (memory_error_message): User updated.
9842 * exec.c (section_table_read_available_memory): Likewise.
9843 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9844 * target.c (target_xfer_status_to_string): Likewise.
9845 (raw_memory_xfer_partial): Likewise.
9846 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9847 * valops.c (read_value_memory): Likewise.
9848 * exec.h: Update comments.
9849
9850 2014-02-24 Yao Qi <yao@codesourcery.com>
9851
9852 * target.c (target_xfer_status_to_string): Rename argument err
9853 to status.
9854 * target.h (target_xfer_status_to_string): Update declaration.
9855 Replace target_xfer_error_to_string with
9856 target_xfer_status_to_string in comment.
9857
9858 2014-02-24 Yao Qi <yao@codesourcery.com>
9859
9860 * mips-linux-nat.c (super_close): Update its type.
9861 (mips_linux_close): Pass 'self' to super_close.
9862
9863 2014-02-24 Yao Qi <yao@codesourcery.com>
9864
9865 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9866 * corefile.c (read_memory): Adjusted.
9867 * target.c (target_write_with_progress): Adjusted.
9868
9869 2014-02-23 Yao Qi <yao@codesourcery.com>
9870
9871 Revert two patches:
9872
9873 2013-10-25 Yao Qi <yao@codesourcery.com>
9874
9875 * remote.c (remote_traceframe_info): Return early if
9876 traceframe is not selected.
9877
9878 2013-07-19 Yao Qi <yao@codesourcery.com>
9879
9880 * target.c (update_current_target): Change the default action
9881 of 'to_traceframe_info' from tcomplain to return_zero.
9882 * target.h (struct target_ops) <to_traceframe_info>: Add more
9883 comments.
9884
9885 2014-02-23 Yao Qi <yao@codesourcery.com>
9886
9887 * valops.c (read_value_memory): Rewrite it. Call
9888 target_xfer_partial in a loop.
9889 * exec.h (section_table_available_memory): Remove declaration.
9890 Move comments to ...
9891 * exec.c (section_table_available_memory): ... here. Make it
9892 static.
9893
9894 2014-02-23 Yao Qi <yao@codesourcery.com>
9895
9896 * exec.c (section_table_read_available_memory): New function.
9897 * exec.h (section_table_read_available_memory): Declare.
9898 * ctf.c (ctf_xfer_partial): Call
9899 section_table_read_available_memory.
9900 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9901
9902 2014-02-23 Yao Qi <yao@codesourcery.com>
9903
9904 * ctf.c (ctf_xfer_partial): Move code to ...
9905 * exec.c (exec_read_partial_read_only): ... it. New function.
9906 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9907 * tracefile.c: Include "exec.h".
9908 * exec.h (exec_read_partial_read_only): Declare.
9909
9910 2014-02-23 Yao Qi <yao@codesourcery.com>
9911
9912 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9913 (tfile_has_memory): Remove.
9914 (init_tfile_ops): Don't set fields to_has_all_memory and
9915 to_has_memory of tfile_ops.
9916 * tracefile.c (tracefile_has_all_memory): New function.
9917 (tracefile_has_memory): New function.
9918 (init_tracefile_ops): Initialize fields to_has_all_memory and
9919 to_has_memory of 'ops'.
9920
9921 2014-02-23 Yao Qi <yao@codesourcery.com>
9922
9923 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9924 (ctf_thread_alive, ctf_get_trace_status): Remove.
9925 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9926 init_tracefile_ops.
9927 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9928 (tfile_has_stack, tfile_has_registers): Remove.
9929 (tfile_thread_alive): Remove.
9930 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9931 init_tracefile_ops.
9932 * tracefile.c (tracefile_has_stack): New function.
9933 (tracefile_has_registers): New function.
9934 (tracefile_thread_alive): New function.
9935 (tracefile_get_trace_status): New function.
9936 (init_tracefile_ops): New function.
9937 * tracefile.h (init_tracefile_ops): Declare.
9938
9939 2014-02-23 Yao Qi <yao@codesourcery.com>
9940
9941 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9942 (O_LARGEFILE): Likewise.
9943 (tfile_ops): Likewise.
9944 (TRACE_HEADER_SIZE): Likewise.
9945 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9946 (cur_data_size): Likewise.
9947 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9948 (tfile_close, tfile_files_info): Likewise.
9949 (tfile_get_trace_status): Likewise.
9950 (tfile_get_tracepoint_status): Likewise.
9951 (tfile_get_traceframe_address): Likewise.
9952 (tfile_trace_find, match_blocktype): Likewise.
9953 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9954 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9955 (tfile_get_trace_state_variable_value): Likewise.
9956 (tfile_has_all_memory, tfile_has_memory): Likewise.
9957 (tfile_has_stack, tfile_has_registers): Likewise.
9958 (tfile_thread_alive, build_traceframe_info): Likewise.
9959 (tfile_traceframe_info, init_tfile_ops): Likewise.
9960 (_initialize_tracepoint): Don't call init_tfile_ops
9961 and add_target_with_completer.
9962 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9963 exec.h, completer.h and filenames.h.
9964 (_initialize_tracefile_tfile): New function.
9965
9966 2014-02-23 Yao Qi <yao@codesourcery.com>
9967
9968 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9969 tracefile-tfile.o.
9970 (HFILES_NO_SRCDIR): Add tracefile.h.
9971 * ctf.c: Include "tracefile.h".
9972 * tracefile.h: New file.
9973 * tracefile.c: New file
9974 * tracefile-tfile.c: New file.
9975 * tracepoint.c: Include "tracefile.h".
9976 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9977 (stop_reason_names): Add const.
9978 (trace_file_writer_xfree): Move it to tracefile.c.
9979 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9980 (trace_save_ctf): Likewise.
9981 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9982 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9983 (tfile_write_header, tfile_write_regblock_type): Likewise.
9984 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
9985 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
9986 (tfile_write_raw_data, tfile_end): Likewise.
9987 (tfile_trace_file_writer_new): Likewise.
9988 (free_uploaded_tp): Make it extern.
9989 (free_uploaded_tsv): Make it extern.
9990 (_initialize_tracepoint): Move code to register command 'tsave'
9991 to tracefile.c.
9992 * tracepoint.h (stop_reason_names): Declare.
9993 (struct trace_frame_write_ops): Move it to tracefile.h.
9994 (struct trace_file_write_ops): Likewise.
9995 (struct trace_file_writer): Likewise.
9996 (free_uploaded_tsvs, free_uploaded_tps): Declare.
9997
9998 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9999
10000 PR gdb/16594
10001 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10002 process name.
10003 (get_cores_used_by_process): New parameter num_cores, use it.
10004 (linux_xfer_osdata_processes): Pass num_cores to it.
10005 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10006 process name.
10007
10008 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10009
10010 * target.c (memory_xfer_partial): Fix length arg in call to
10011 breakpoint_xfer_memory.
10012
10013 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10014
10015 PR tdep/16397
10016 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10017 number comes after the + or - signs. Adjust length of register
10018 name to be extracted.
10019
10020 2014-02-20 Tom Tromey <tromey@redhat.com>
10021
10022 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10023 (ada_varobj_ops): Mark "extern".
10024
10025 2014-02-20 Tom Tromey <tromey@redhat.com>
10026
10027 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10028
10029 2014-02-20 Doug Evans <xdje42@gmail.com>
10030
10031 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10032 All callers updated.
10033 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10034 All callers updated.
10035 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10036 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10037
10038 2014-02-20 lin zuojian <manjian2006@gmail.com>
10039 Joel Brobecker <brobecker@adacore.com>
10040 Doug Evans <xdje42@gmail.com>
10041
10042 PR symtab/16581
10043 * dwarf2read.c (struct die_info): New member in_process.
10044 (reset_die_in_process): New function.
10045 (process_die): Set it at the start, reset when returning.
10046 (inherit_abstract_dies): Only call process_die if origin_child_die
10047 not already being processed.
10048
10049 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10050
10051 * windows-nat.c (handle_unload_dll): Add function documentation.
10052 (do_initial_windows_stuff): Add comment explaining why we wait
10053 until after inferior initialization has finished before
10054 processing all DLLs.
10055
10056 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10057
10058 * windows-nat.c (get_module_name): Delete.
10059 (windows_get_exec_module_filename): New function, mostly
10060 inspired from get_module_name.
10061 (windows_pid_to_exec_file): Replace call to get_module_name
10062 by call to windows_get_exec_module_filename.
10063
10064 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10065
10066 * windows-nat.c (handle_load_dll): Rewrite this function's
10067 introductory comment. Remove code using get_module_name
10068 to get the DLL's name.
10069
10070 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10071
10072 * windows-nat.c (get_windows_debug_event): Ignore
10073 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10074 if windows_initialization_done == 0.
10075 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10076 Adjust implementation to always load all DLLs.
10077 (do_initial_windows_stuff): Replace call to
10078 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10079
10080 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10081
10082 * windows-nat.c (_initialize_windows_nat): Deprecate the
10083 "dll-symbols" command. Turn the "add-shared-symbol-files"
10084 and "assf" aliases into commands, and deprecate them as well.
10085 * NEWS: Add entry explaining that "dll-symbols" and its two
10086 aliases are now deprecated.
10087
10088 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10089
10090 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10091 new-line in debug string. Remove trailing spaces.
10092
10093 2014-02-19 Stan Shebs <stan@codesourcery.com>
10094
10095 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10096
10097 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10098
10099 * NEWS: Add entry for the new feature
10100 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10101 and class values.
10102
10103 2014-02-19 Stan Shebs <stan@codesourcery.com>
10104
10105 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10106
10107 2014-02-19 Pedro Alves <palves@redhat.com>
10108
10109 * common/ptid.h (struct ptid): Mention that process_stratum
10110 targets should prefer ptid.lwp.
10111
10112 2014-02-19 Pedro Alves <palves@redhat.com>
10113
10114 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10115 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10116 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10117 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10118 store remote thread ids rather than ptid.tid.
10119 (_initialize_remote): Adjust.
10120
10121 2014-02-19 Tom Tromey <tromey@redhat.com>
10122
10123 * target.c (target_get_unwinder): Rewrite.
10124 (target_get_tailcall_unwinder): Rewrite.
10125 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10126 (record_btrace_to_get_tailcall_unwinder): New function.
10127 (init_record_btrace_ops): Update.
10128 * target.h (struct target_ops) <to_get_unwinder,
10129 to_get_tailcall_unwinder>: Now function pointers. Use
10130 TARGET_DEFAULT_RETURN.
10131
10132 2014-02-19 Tom Tromey <tromey@redhat.com>
10133
10134 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10135 argument.
10136 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10137
10138 2014-02-19 Tom Tromey <tromey@redhat.com>
10139
10140 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10141 directly.
10142 * target-delegates.c: Rebuild.
10143 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10144 TARGET_DEFAULT_FUNC.
10145 * target.c (default_target_decr_pc_after_break): Rename from
10146 forward_target_decr_pc_after_break. Simplify.
10147 (target_decr_pc_after_break): Rely on delegation.
10148
10149 2014-02-19 Tom Tromey <tromey@redhat.com>
10150
10151 * target.c (update_current_target): Do not INHERIT to_doc or
10152 to_magic. Do not de_fault to_open or to_close.
10153
10154 2014-02-19 Tom Tromey <tromey@redhat.com>
10155
10156 * gcore.h (objfile_find_memory_regions): Declare.
10157 * gcore.c (objfile_find_memory_regions): No longer static. Add
10158 "self" argument.
10159 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10160 * exec.c: Include gcore.h.
10161 (exec_set_find_memory_regions): Remove.
10162 (exec_find_memory_regions): Remove.
10163 (exec_do_find_memory_regions): Remove.
10164 (init_exec_ops): Update.
10165 * defs.h (exec_set_find_memory_regions): Remove.
10166
10167 2014-02-19 Tom Tromey <tromey@redhat.com>
10168
10169 * target-delegates.c: Rebuild.
10170 * target.h (struct target_ops) <to_extra_thread_info,
10171 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10172 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10173 not 0, in TARGET_DEFAULT_RETURN.
10174
10175 2014-02-19 Tom Tromey <tromey@redhat.com>
10176
10177 * target.c (complete_target_initialization): Remove casts. Use
10178 return_zero_has_execution.
10179 (return_zero): Add "ignore" argument.
10180 (return_zero_has_execution): New function.
10181 (init_dummy_target): Remove casts. Use
10182 return_zero_has_execution.
10183
10184 2014-02-19 Tom Tromey <tromey@redhat.com>
10185
10186 * target.c (update_current_target): Update comments. Do not
10187 INHERIT to_stratum.
10188
10189 2014-02-19 Tom Tromey <tromey@redhat.com>
10190
10191 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10192 needed.
10193 * corelow.c (core_read_description): Delegate when needed.
10194 * remote.c (remote_read_description): Delegate when needed.
10195 * target-delegates.c: Rebuild.
10196 * target.c (target_read_description): Rewrite.
10197 * target.h (struct target_ops) <to_read_description>: Update
10198 comment. Use TARGET_DEFAULT_RETURN.
10199
10200 2014-02-19 Tom Tromey <tromey@redhat.com>
10201
10202 * target-delegates.c: Rebuild.
10203 * target.c (update_current_target): Don't inherit or default
10204 to_can_run.
10205 (find_default_run_target): Check against delegate_can_run.
10206 * target.h (struct target_ops) <to_can_run>: Use
10207 TARGET_DEFAULT_RETURN.
10208
10209 2014-02-19 Tom Tromey <tromey@redhat.com>
10210
10211 * target-delegates.c: Rebuild.
10212 * target.c (target_disconnect): Unconditionally delegate.
10213 * target.h (struct target_ops) <to_disconnect>: Use
10214 TARGET_DEFAULT_NORETURN.
10215
10216 2014-02-19 Tom Tromey <tromey@redhat.com>
10217
10218 * record.c (record_stop): Unconditionally delegate.
10219 * target-delegates.c: Rebuild.
10220 * target.c (target_stop_recording): Unconditionally delegate.
10221 * target.h (struct target_ops) <to_stop_recording>: Use
10222 TARGET_DEFAULT_IGNORE.
10223
10224 2014-02-19 Tom Tromey <tromey@redhat.com>
10225
10226 * target-delegates.c: Rebuild.
10227 * target.c (target_enable_btrace): Unconditionally delegate.
10228 * target.h (struct target_ops) <to_enable_btrace>: Use
10229 TARGET_DEFAULT_NORETURN.
10230
10231 2014-02-19 Tom Tromey <tromey@redhat.com>
10232
10233 * target-delegates.c: Rebuild.
10234 * target.c (target_read_btrace): Unconditionally delegate.
10235 * target.h (struct target_ops) <to_read_btrace>: Use
10236 TARGET_DEFAULT_NORETURN.
10237
10238 2014-02-19 Tom Tromey <tromey@redhat.com>
10239
10240 * target-delegates.c: Rebuild.
10241 * target.c (target_teardown_btrace): Unconditionally delegate.
10242 * target.h (struct target_ops) <to_teardown_btrace>: Use
10243 TARGET_DEFAULT_NORETURN.
10244
10245 2014-02-19 Tom Tromey <tromey@redhat.com>
10246
10247 * target-delegates.c: Rebuild.
10248 * target.c (target_disable_btrace): Unconditionally delegate.
10249 * target.h (struct target_ops) <to_disable_btrace>: Use
10250 TARGET_DEFAULT_NORETURN.
10251
10252 2014-02-19 Tom Tromey <tromey@redhat.com>
10253
10254 * target-delegates.c: Rebuild.
10255 * target.c (default_search_memory): New function.
10256 (simple_search_memory): Update comment.
10257 (target_search_memory): Unconditionally delegate.
10258 * target.h (struct target_ops) <to_search_memory>: Use
10259 TARGET_DEFAULT_FUNC.
10260
10261 2014-02-19 Tom Tromey <tromey@redhat.com>
10262
10263 * auxv.c (default_auxv_parse): No longer static.
10264 (target_auxv_parse): Unconditionally delegate.
10265 * auxv.h (default_auxv_parse): Declare.
10266 * target-delegates.c: Rebuild.
10267 * target.c: Include auxv.h.
10268 * target.h (struct target_ops) <to_auxv_parse>: Use
10269 TARGET_DEFAULT_FUNC.
10270
10271 2014-02-19 Tom Tromey <tromey@redhat.com>
10272
10273 * target-delegates.c: Rebuild.
10274 * target.c (target_memory_map): Unconditionally delegate.
10275 * target.h (struct target_ops) <to_memory_map>: Use
10276 TARGET_DEFAULT_RETURN.
10277
10278 2014-02-19 Tom Tromey <tromey@redhat.com>
10279
10280 * target-delegates.c: Rebuild.
10281 * target.c (target_thread_alive): Unconditionally delegate.
10282 * target.h (struct target_ops) <to_thread_alive>: Use
10283 TARGET_DEFAULT_RETURN.
10284
10285 2014-02-19 Tom Tromey <tromey@redhat.com>
10286
10287 * target-delegates.c: Rebuild.
10288 * target.c (target_save_record): Unconditionally delegate.
10289 * target.h (struct target_ops) <to_save_record>: Use
10290 TARGET_DEFAULT_NORETURN.
10291
10292 2014-02-19 Tom Tromey <tromey@redhat.com>
10293
10294 * target-delegates.c: Rebuild.
10295 * target.c (target_delete_record): Unconditionally delegate.
10296 * target.h (struct target_ops) <to_delete_record>: Use
10297 TARGET_DEFAULT_NORETURN.
10298
10299 2014-02-19 Tom Tromey <tromey@redhat.com>
10300
10301 * target-delegates.c: Rebuild.
10302 * target.c (target_record_is_replaying): Unconditionally
10303 delegate.
10304 * target.h (struct target_ops) <to_record_is_replaying>: Use
10305 TARGET_DEFAULT_RETURN.
10306
10307 2014-02-19 Tom Tromey <tromey@redhat.com>
10308
10309 * target-delegates.c: Rebuild.
10310 * target.c (target_goto_record_begin): Unconditionally delegate.
10311 * target.h (struct target_ops) <to_goto_record_begin>: Use
10312 TARGET_DEFAULT_NORETURN.
10313
10314 2014-02-19 Tom Tromey <tromey@redhat.com>
10315
10316 * target-delegates.c: Rebuild.
10317 * target.c (target_goto_record_end): Unconditionally delegate.
10318 * target.h (struct target_ops) <to_goto_record_end>: Use
10319 TARGET_DEFAULT_NORETURN.
10320
10321 2014-02-19 Tom Tromey <tromey@redhat.com>
10322
10323 * target-delegates.c: Rebuild.
10324 * target.c (target_goto_record): Unconditionally delegate.
10325 * target.h (struct target_ops) <to_goto_record>: Use
10326 TARGET_DEFAULT_NORETURN.
10327
10328 2014-02-19 Tom Tromey <tromey@redhat.com>
10329
10330 * target-delegates.c: Rebuild.
10331 * target.c (target_insn_history): Unconditionally delegate.
10332 * target.h (struct target_ops) <to_insn_history>: Use
10333 TARGET_DEFAULT_NORETURN.
10334
10335 2014-02-19 Tom Tromey <tromey@redhat.com>
10336
10337 * target-delegates.c: Rebuild.
10338 * target.c (target_insn_history_from): Unconditionally delegate.
10339 * target.h (struct target_ops) <to_insn_history_from>: Use
10340 TARGET_DEFAULT_NORETURN.
10341
10342 2014-02-19 Tom Tromey <tromey@redhat.com>
10343
10344 * target-delegates.c: Rebuild.
10345 * target.c (target_insn_history_range): Unconditionally delegate.
10346 * target.h (struct target_ops) <to_insn_history_range>: Use
10347 TARGET_DEFAULT_NORETURN.
10348
10349 2014-02-19 Tom Tromey <tromey@redhat.com>
10350
10351 * target-delegates.c: Rebuild.
10352 * target.c (target_call_history): Unconditionally delegate.
10353 * target.h (struct target_ops) <to_call_history>: Use
10354 TARGET_DEFAULT_NORETURN.
10355
10356 2014-02-19 Tom Tromey <tromey@redhat.com>
10357
10358 * target-delegates.c: Rebuild.
10359 * target.c (target_call_history_from): Unconditionally delegate.
10360 * target.h (struct target_ops) <to_call_history_from>: Use
10361 TARGET_DEFAULT_NORETURN.
10362
10363 2014-02-19 Tom Tromey <tromey@redhat.com>
10364
10365 * target-delegates.c: Rebuild.
10366 * target.c (target_call_history_range): Unconditionally delegate.
10367 * target.h (struct target_ops) <to_call_history_range>: Use
10368 TARGET_DEFAULT_NORETURN.
10369
10370 2014-02-19 Tom Tromey <tromey@redhat.com>
10371
10372 * target-delegates.c: Rebuild.
10373 * target.c (target_verify_memory): Unconditionally delegate.
10374 * target.h (struct target_ops) <to_verify_memory>: Use
10375 TARGET_DEFAULT_NORETURN.
10376
10377 2014-02-19 Tom Tromey <tromey@redhat.com>
10378
10379 * target-delegates.c: Rebuild.
10380 * target.c (target_core_of_thread): Unconditionally delegate.
10381 * target.h (struct target_ops) <to_core_of_thread>: Use
10382 TARGET_DEFAULT_RETURN.
10383
10384 2014-02-19 Tom Tromey <tromey@redhat.com>
10385
10386 * target-delegates.c: Rebuild.
10387 * target.c (target_flash_done): Unconditionally delegate.
10388 * target.h (struct target_ops) <to_flash_done>: Use
10389 TARGET_DEFAULT_NORETURN.
10390
10391 2014-02-19 Tom Tromey <tromey@redhat.com>
10392
10393 * target-delegates.c: Rebuild.
10394 * target.c (target_flash_erase): Unconditionally delegate.
10395 * target.h (struct target_ops) <to_flash_erase>: Use
10396 TARGET_DEFAULT_NORETURN.
10397
10398 2014-02-19 Tom Tromey <tromey@redhat.com>
10399
10400 * target-delegates.c: Rebuild.
10401 * target.c (target_get_section_table): Unconditionally delegate.
10402 * target.h (struct target_ops) <to_get_section_table>: Use
10403 TARGET_DEFAULT_RETURN.
10404
10405 2014-02-19 Tom Tromey <tromey@redhat.com>
10406
10407 * target-delegates.c: Rebuild.
10408 * target.c (target_pid_to_str): Unconditionally delegate.
10409 (init_dummy_target): Don't initialize to_pid_to_str.
10410 (default_pid_to_str): Rename from dummy_pid_to_str.
10411 * target.h (struct target_ops) <to_pid_to_str>: Use
10412 TARGET_DEFAULT_FUNC.
10413
10414 2014-02-19 Tom Tromey <tromey@redhat.com>
10415
10416 * target-delegates.c: Rebuild.
10417 * target.c (target_find_new_threads): Unconditionally delegate.
10418 * target.h (struct target_ops) <to_find_new_threads>: Use
10419 TARGET_DEFAULT_RETURN.
10420
10421 2014-02-19 Tom Tromey <tromey@redhat.com>
10422
10423 * target-delegates.c: Rebuild.
10424 * target.c (target_program_signals): Unconditionally delegate.
10425 * target.h (struct target_ops) <to_program_signals>: Use
10426 TARGET_DEFAULT_IGNORE.
10427
10428 2014-02-19 Tom Tromey <tromey@redhat.com>
10429
10430 * target-delegates.c: Rebuild.
10431 * target.c (target_pass_signals): Unconditionally delegate.
10432 * target.h (struct target_ops) <to_pass_signals>: Use
10433 TARGET_DEFAULT_IGNORE.
10434
10435 2014-02-19 Tom Tromey <tromey@redhat.com>
10436
10437 * target-delegates.c: Rebuild.
10438 * target.c (default_mourn_inferior): New function.
10439 (target_mourn_inferior): Unconditionally delegate.
10440 * target.h (struct target_ops) <to_mourn_inferior>: Use
10441 TARGET_DEFAULT_FUNC.
10442
10443 2014-02-19 Tom Tromey <tromey@redhat.com>
10444
10445 * target-delegates.c: Rebuild.
10446 * target.c (default_follow_fork): New function.
10447 (target_follow_fork): Unconditionally delegate.
10448 * target.h (struct target_ops) <to_follow_fork>: Use
10449 TARGET_DEFAULT_FUNC.
10450
10451 2014-02-19 Tom Tromey <tromey@redhat.com>
10452
10453 * target-delegates.c: Rebuild.
10454 * target.c (target_kill): Unconditionally delegate.
10455 * target.h (struct target_ops) <to_kill>: Use
10456 TARGET_DEFAULT_NORETURN.
10457
10458 2014-02-19 Tom Tromey <tromey@redhat.com>
10459
10460 * target-delegates.c: Rebuild.
10461 * target.c (target_masked_watch_num_registers): Unconditionally
10462 delegate.
10463 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10464 Use TARGET_DEFAULT_RETURN.
10465
10466 2014-02-19 Tom Tromey <tromey@redhat.com>
10467
10468 * target-delegates.c: Rebuild.
10469 * target.c (target_remove_mask_watchpoint): Unconditionally
10470 delegate.
10471 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10472 TARGET_DEFAULT_RETURN.
10473
10474 2014-02-19 Tom Tromey <tromey@redhat.com>
10475
10476 * target-delegates.c: Rebuild.
10477 * target.c (target_insert_mask_watchpoint): Unconditionally
10478 delegate.
10479 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10480 TARGET_DEFAULT_RETURN.
10481
10482 2014-02-19 Tom Tromey <tromey@redhat.com>
10483
10484 * target-delegates.c: Rebuild.
10485 * target.c (target_ranged_break_num_registers): Unconditionally
10486 delegate.
10487 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10488 Use TARGET_DEFAULT_RETURN.
10489
10490 2014-02-19 Tom Tromey <tromey@redhat.com>
10491
10492 * target-delegates.c: Rebuild.
10493 * target.c (target_fetch_registers): Unconditionally delegate.
10494 * target.h (struct target_ops) <to_fetch_registers>: Use
10495 TARGET_DEFAULT_NORETURN.
10496
10497 2014-02-19 Tom Tromey <tromey@redhat.com>
10498
10499 * target-delegates.c: Rebuild.
10500 * target.c (update_current_target): Don't inherit or default
10501 to_stop.
10502 * target.h (struct target_ops) <to_stop>: Use
10503 TARGET_DEFAULT_IGNORE.
10504
10505 2014-02-19 Tom Tromey <tromey@redhat.com>
10506
10507 * target-delegates.c: Rebuild.
10508 * target.c (update_current_target): Don't inherit or default
10509 to_can_run_breakpoint_commands.
10510 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10511 Use TARGET_DEFAULT_RETURN.
10512
10513 2014-02-19 Tom Tromey <tromey@redhat.com>
10514
10515 * target-delegates.c: Rebuild.
10516 * target.c (update_current_target): Don't inherit or default
10517 to_supports_evaluation_of_breakpoint_conditions.
10518 * target.h (struct target_ops)
10519 <to_supports_evaluation_of_breakpoint_conditions>: Use
10520 TARGET_DEFAULT_RETURN.
10521
10522 2014-02-19 Tom Tromey <tromey@redhat.com>
10523
10524 * target-delegates.c: Rebuild.
10525 * target.c (update_current_target): Don't inherit or default
10526 to_augmented_libraries_svr4_read.
10527 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10528 Use TARGET_DEFAULT_RETURN.
10529
10530 2014-02-19 Tom Tromey <tromey@redhat.com>
10531
10532 * target-delegates.c: Rebuild.
10533 * target.c (update_current_target): Don't inherit or default
10534 to_can_use_agent.
10535 * target.h (struct target_ops) <to_can_use_agent>: Use
10536 TARGET_DEFAULT_RETURN.
10537
10538 2014-02-19 Tom Tromey <tromey@redhat.com>
10539
10540 * target-delegates.c: Rebuild.
10541 * target.c (update_current_target): Don't inherit or default
10542 to_use_agent.
10543 * target.h (struct target_ops) <to_use_agent>: Use
10544 TARGET_DEFAULT_NORETURN.
10545
10546 2014-02-19 Tom Tromey <tromey@redhat.com>
10547
10548 * target-delegates.c: Rebuild.
10549 * target.c (update_current_target): Don't inherit or default
10550 to_traceframe_info.
10551 (return_null): Remove.
10552 * target.h (struct target_ops) <to_traceframe_info>: Use
10553 TARGET_DEFAULT_RETURN.
10554
10555 2014-02-19 Tom Tromey <tromey@redhat.com>
10556
10557 * target-delegates.c: Rebuild.
10558 * target.c (update_current_target): Don't inherit or default
10559 to_static_tracepoint_markers_by_strid.
10560 * target.h (struct target_ops)
10561 <to_static_tracepoint_markers_by_strid>: Use
10562 TARGET_DEFAULT_NORETURN.
10563
10564 2014-02-19 Tom Tromey <tromey@redhat.com>
10565
10566 * target-delegates.c: Rebuild.
10567 * target.c (update_current_target): Don't inherit or default
10568 to_static_tracepoint_marker_at.
10569 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10570 Use TARGET_DEFAULT_RETURN.
10571
10572 2014-02-19 Tom Tromey <tromey@redhat.com>
10573
10574 * target-delegates.c: Rebuild.
10575 * target.c (update_current_target): Don't inherit or default
10576 to_set_permissions.
10577 * target.h (struct target_ops) <to_set_permissions>: Use
10578 TARGET_DEFAULT_IGNORE.
10579
10580 2014-02-19 Tom Tromey <tromey@redhat.com>
10581
10582 * target-delegates.c: Rebuild.
10583 * target.c (update_current_target): Don't inherit or default
10584 to_get_tib_address.
10585 * target.h (struct target_ops) <to_get_tib_address>: Use
10586 TARGET_DEFAULT_NORETURN.
10587
10588 2014-02-19 Tom Tromey <tromey@redhat.com>
10589
10590 * target-delegates.c: Rebuild.
10591 * target.c (update_current_target): Don't inherit or default
10592 to_set_trace_notes.
10593 * target.h (struct target_ops) <to_set_trace_notes>: Use
10594 TARGET_DEFAULT_RETURN.
10595
10596 2014-02-19 Tom Tromey <tromey@redhat.com>
10597
10598 * target-delegates.c: Rebuild.
10599 * target.c (update_current_target): Don't initialize
10600 to_set_trace_buffer_size.
10601 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10602 TARGET_DEFAULT_IGNORE.
10603
10604 2014-02-19 Tom Tromey <tromey@redhat.com>
10605
10606 * target-delegates.c: Rebuild.
10607 * target.c (update_current_target): Don't inherit or default
10608 to_set_circular_trace_buffer.
10609 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10610 TARGET_DEFAULT_IGNORE.
10611
10612 2014-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_set_disconnected_tracing.
10617 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10618 TARGET_DEFAULT_IGNORE.
10619
10620 2014-02-19 Tom Tromey <tromey@redhat.com>
10621
10622 * target-delegates.c: Rebuild.
10623 * target.c (update_current_target): Don't inherit or default
10624 to_get_min_fast_tracepoint_insn_len.
10625 (return_minus_one): Remove.
10626 * target.h (struct target_ops)
10627 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10628
10629 2014-02-19 Tom Tromey <tromey@redhat.com>
10630
10631 * target-delegates.c: Rebuild.
10632 * target.c (update_current_target): Don't inherit or default
10633 to_get_raw_trace_data.
10634 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10635 TARGET_DEFAULT_NORETURN.
10636
10637 2014-02-19 Tom Tromey <tromey@redhat.com>
10638
10639 * target-delegates.c: Rebuild.
10640 * target.c (update_current_target): Don't inherit or default
10641 to_upload_trace_state_variables.
10642 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10643 Use TARGET_DEFAULT_RETURN.
10644
10645 2014-02-19 Tom Tromey <tromey@redhat.com>
10646
10647 * target-delegates.c: Rebuild.
10648 * target.c (update_current_target): Don't inherit or default
10649 to_upload_tracepoints.
10650 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10651 TARGET_DEFAULT_RETURN.
10652
10653 2014-02-19 Tom Tromey <tromey@redhat.com>
10654
10655 * target-delegates.c: Rebuild.
10656 * target.c (update_current_target): Don't inherit or default
10657 to_save_trace_data.
10658 * target.h (struct target_ops) <to_save_trace_data>: Use
10659 TARGET_DEFAULT_NORETURN.
10660
10661 2014-02-19 Tom Tromey <tromey@redhat.com>
10662
10663 * target-delegates.c: Rebuild.
10664 * target.c (update_current_target): Don't inherit or default
10665 to_get_trace_state_variable_value.
10666 * target.h (struct target_ops)
10667 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
10668
10669 2014-02-19 Tom Tromey <tromey@redhat.com>
10670
10671 * target-delegates.c: Rebuild.
10672 * target.c (update_current_target): Don't inherit or default
10673 to_trace_find.
10674 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10675
10676 2014-02-19 Tom Tromey <tromey@redhat.com>
10677
10678 * target-delegates.c: Rebuild.
10679 * target.c (update_current_target): Don't inherit or default
10680 to_trace_stop.
10681 * target.h (struct target_ops) <to_trace_stop>: Use
10682 TARGET_DEFAULT_NORETURN.
10683
10684 2014-02-19 Tom Tromey <tromey@redhat.com>
10685
10686 * target-delegates.c: Rebuild.
10687 * target.c (update_current_target): Don't inherit or default
10688 to_get_tracepoint_status.
10689 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10690 TARGET_DEFAULT_NORETURN.
10691
10692 2014-02-19 Tom Tromey <tromey@redhat.com>
10693
10694 * target-delegates.c: Rebuild.
10695 * target.c (update_current_target): Don't inherit or default
10696 to_get_trace_status.
10697 * target.h (struct target_ops) <to_get_trace_status>: Use
10698 TARGET_DEFAULT_RETURN.
10699
10700 2014-02-19 Tom Tromey <tromey@redhat.com>
10701
10702 * target-delegates.c: Rebuild.
10703 * target.c (update_current_target): Don't inherit or default
10704 to_trace_start.
10705 * target.h (struct target_ops) <to_trace_start>: Use
10706 TARGET_DEFAULT_NORETURN.
10707
10708 2014-02-19 Tom Tromey <tromey@redhat.com>
10709
10710 * target-delegates.c: Rebuild.
10711 * target.c (update_current_target): Don't inherit or default
10712 to_trace_set_readonly_regions.
10713 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10714 Use TARGET_DEFAULT_NORETURN.
10715
10716 2014-02-19 Tom Tromey <tromey@redhat.com>
10717
10718 * target-delegates.c: Rebuild.
10719 * target.c (update_current_target): Don't inherit or default
10720 to_disable_tracepoint.
10721 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10722 TARGET_DEFAULT_NORETURN.
10723
10724 2014-02-19 Tom Tromey <tromey@redhat.com>
10725
10726 * target-delegates.c: Rebuild.
10727 * target.c (update_current_target): Don't inherit or default
10728 to_enable_tracepoint.
10729 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10730 TARGET_DEFAULT_NORETURN.
10731
10732 2014-02-19 Tom Tromey <tromey@redhat.com>
10733
10734 * target-delegates.c: Rebuild.
10735 * target.c (update_current_target): Don't inherit or default
10736 to_download_trace_state_variable.
10737 * target.h (struct target_ops) <to_download_trace_state_variable>:
10738 Use TARGET_DEFAULT_NORETURN.
10739
10740 2014-02-19 Tom Tromey <tromey@redhat.com>
10741
10742 * target-delegates.c: Rebuild.
10743 * target.c (update_current_target): Don't inherit or default
10744 to_can_download_tracepoint.
10745 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10746 TARGET_DEFAULT_RETURN.
10747
10748 2014-02-19 Tom Tromey <tromey@redhat.com>
10749
10750 * target-delegates.c: Rebuild.
10751 * target.c (update_current_target): Don't inherit or default
10752 to_download_tracepoint.
10753 * target.h (struct target_ops) <to_download_tracepoint>: Use
10754 TARGET_DEFAULT_NORETURN.
10755
10756 2014-02-19 Tom Tromey <tromey@redhat.com>
10757
10758 * target-delegates.c: Rebuild.
10759 * target.c (update_current_target): Don't inherit or default
10760 to_trace_init.
10761 * target.h (struct target_ops) <to_trace_init>: Use
10762 TARGET_DEFAULT_RETURN.
10763
10764 2014-02-19 Tom Tromey <tromey@redhat.com>
10765
10766 * target-delegates.c: Rebuild.
10767 * target.c (update_current_target): Don't inherit or default
10768 to_supports_string_tracing.
10769 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10770 TARGET_DEFAULT_RETURN.
10771
10772 2014-02-19 Tom Tromey <tromey@redhat.com>
10773
10774 * target-delegates.c: Rebuild.
10775 * target.c (update_current_target): Don't inherit or default
10776 to_supports_enable_disable_tracepoint.
10777 * target.h (struct target_ops)
10778 <to_supports_enable_disable_tracepoint>: Use
10779 TARGET_DEFAULT_RETURN.
10780
10781 2014-02-19 Tom Tromey <tromey@redhat.com>
10782
10783 * target-delegates.c: Rebuild.
10784 * target.c (update_current_target): Don't inherit or default
10785 to_supports_multi_process.
10786 * target.h (struct target_ops) <to_supports_multi_process>: Use
10787 TARGET_DEFAULT_RETURN.
10788
10789 2014-02-19 Tom Tromey <tromey@redhat.com>
10790
10791 * target-delegates.c: Rebuild.
10792 * target.c (update_current_target): Don't inherit or default
10793 to_get_ada_task_ptid.
10794 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10795 TARGET_DEFAULT_FUNC.
10796
10797 2014-02-19 Tom Tromey <tromey@redhat.com>
10798
10799 * target-delegates.c: Rebuild.
10800 * target.c (update_current_target): Don't inherit or default
10801 to_thread_architecture.
10802 * target.h (struct target_ops) <to_thread_architecture>: Use
10803 TARGET_DEFAULT_FUNC.
10804
10805 2014-02-19 Tom Tromey <tromey@redhat.com>
10806
10807 * target-delegates.c: Rebuild.
10808 * target.c (update_current_target): Don't inherit or default
10809 to_execution_direction.
10810 * target.h (struct target_ops) <to_execution_direction>: Use
10811 TARGET_DEFAULT_FUNC.
10812
10813 2014-02-19 Tom Tromey <tromey@redhat.com>
10814
10815 * target-delegates.c: Rebuild.
10816 * target.c (update_current_target): Don't inherit or default
10817 to_can_execute_reverse.
10818 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10819 TARGET_DEFAULT_RETURN.
10820 (target_can_execute_reverse): Unconditionally delegate.
10821
10822 2014-02-19 Tom Tromey <tromey@redhat.com>
10823
10824 * target-delegates.c: Rebuild.
10825 * target.c (update_current_target): Don't inherit or default
10826 to_goto_bookmark.
10827 (dummy_goto_bookmark): Remove.
10828 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10829 * target.h (struct target_ops) <to_goto_bookmark>: Use
10830 TARGET_DEFAULT_NORETURN.
10831
10832 2014-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_get_bookmark.
10837 (dummy_get_bookmark): Remove.
10838 (init_dummy_target): Don't inherit or default to_get_bookmark.
10839 * target.h (struct target_ops) <to_get_bookmark>: Use
10840 TARGET_DEFAULT_NORETURN
10841
10842 2014-02-19 Tom Tromey <tromey@redhat.com>
10843
10844 * target-delegates.c: Rebuild.
10845 * target.c (update_current_target): Don't inherit or default
10846 to_make_corefile_notes.
10847 (init_dummy_target): Don't initialize to_make_corefile_notes.
10848 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10849 TARGET_DEFAULT_FUNC.
10850
10851 2014-02-19 Tom Tromey <tromey@redhat.com>
10852
10853 * target-delegates.c: Rebuild.
10854 * target.c (update_current_target): Don't inherit or default
10855 to_find_memory_regions.
10856 (init_dummy_target): Don't initialize to_find_memory_regions.
10857 * target.h (struct target_ops) <to_find_memory_regions>: Use
10858 TARGET_DEFAULT_FUNC.
10859
10860 2014-02-19 Tom Tromey <tromey@redhat.com>
10861
10862 * target-delegates.c: Rebuild.
10863 * target.c (update_current_target): Don't inherit or default
10864 to_log_command.
10865 * target.h (struct target_ops) <to_log_command>: Use
10866 TARGET_DEFAULT_IGNORE.
10867 (target_log_command): Unconditionally delegate.
10868
10869 2014-02-19 Tom Tromey <tromey@redhat.com>
10870
10871 * target-delegates.c: Rebuild.
10872 * target.c (update_current_target): Don't inherit or default
10873 to_pid_to_exec_file.
10874 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10875 TARGET_DEFAULT_RETURN.
10876
10877 2014-02-19 Tom Tromey <tromey@redhat.com>
10878
10879 * target-delegates.c: Rebuild.
10880 * target.c (update_current_target): Don't inherit or default
10881 to_thread_name.
10882 (target_thread_name): Unconditionally delegate.
10883 * target.h (struct target_ops) <to_thread_name>: Use
10884 TARGET_DEFAULT_RETURN.
10885
10886 2014-02-19 Tom Tromey <tromey@redhat.com>
10887
10888 * target-delegates.c: Rebuild.
10889 * target.c (update_current_target): Don't inherit or default
10890 to_extra_thread_info.
10891 * target.h (struct target_ops) <to_extra_thread_info>: Use
10892 TARGET_DEFAULT_RETURN.
10893
10894 2014-02-19 Tom Tromey <tromey@redhat.com>
10895
10896 * target-delegates.c: Rebuild.
10897 * target.c (update_current_target): Don't inherit or default
10898 to_has_exited.
10899 * target.h (struct target_ops) <to_has_exited>: Use
10900 TARGET_DEFAULT_RETURN..
10901
10902 2014-02-19 Tom Tromey <tromey@redhat.com>
10903
10904 * target-delegates.c: Rebuild.
10905 * target.c (update_current_target): Don't inherit or default
10906 to_set_syscall_catchpoint.
10907 (return_one): Remove.
10908 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10909 TARGET_DEFAULT_RETURN.
10910
10911 2014-02-19 Tom Tromey <tromey@redhat.com>
10912
10913 * target-delegates.c: Rebuild.
10914 * target.c (update_current_target): Don't inherit or default
10915 to_insert_exec_catchpoint.
10916 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10917 TARGET_DEFAULT_RETURN.
10918
10919 2014-01-08 Tom Tromey <tromey@redhat.com>
10920
10921 * target-delegates.c: Rebuild.
10922 * target.c (update_current_target): Don't inherit or default
10923 to_insert_exec_catchpoint.
10924 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10925 TARGET_DEFAULT_RETURN.
10926
10927 2014-02-19 Tom Tromey <tromey@redhat.com>
10928
10929 * target-delegates.c: Rebuild.
10930 * target.c (update_current_target): Don't inherit or default
10931 to_remove_vfork_catchpoint.
10932 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10933 TARGET_DEFAULT_RETURN.
10934
10935 2014-02-19 Tom Tromey <tromey@redhat.com>
10936
10937 * target-delegates.c: Rebuild.
10938 * target.c (update_current_target): Don't inherit or default
10939 to_insert_vfork_catchpoint.
10940 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10941 TARGET_DEFAULT_RETURN.
10942
10943 2014-02-19 Tom Tromey <tromey@redhat.com>
10944
10945 * target-delegates.c: Rebuild.
10946 * target.c (update_current_target): Don't inherit or default
10947 to_remove_fork_catchpoint.
10948 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10949 TARGET_DEFAULT_RETURN.
10950
10951 2014-02-19 Tom Tromey <tromey@redhat.com>
10952
10953 * target-delegates.c: Rebuild.
10954 * target.c (update_current_target): Don't inherit or default
10955 to_insert_fork_catchpoint.
10956 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10957 TARGET_DEFAULT_RETURN.
10958
10959 2014-02-19 Tom Tromey <tromey@redhat.com>
10960
10961 * target-delegates.c: Rebuild.
10962 * target.c (update_current_target): Don't inherit or default
10963 to_post_startup_inferior.
10964 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10965 TARGET_DEFAULT_IGNORE.
10966
10967 2014-02-19 Tom Tromey <tromey@redhat.com>
10968
10969 * target-delegates.c: Rebuild.
10970 * target.c (update_current_target): Don't inherit or default
10971 to_load.
10972 * target.h (struct target_ops) <to_load>: Use
10973 TARGET_DEFAULT_NORETURN.
10974
10975 2014-02-19 Tom Tromey <tromey@redhat.com>
10976
10977 * target-delegates.c: Rebuild.
10978 * target.c (update_current_target): Don't inherit or default
10979 to_terminal_info.
10980 * target.h (struct target_ops) <to_terminal_info>: Use
10981 TARGET_DEFAULT_FUNC.
10982
10983 2014-02-19 Tom Tromey <tromey@redhat.com>
10984
10985 * target-delegates.c: Rebuild.
10986 * target.c (update_current_target): Don't inherit or default
10987 to_terminal_save_ours.
10988 * target.h (struct target_ops) <to_terminal_save_ours>: Use
10989 TARGET_DEFAULT_IGNORE.
10990
10991 2014-02-19 Tom Tromey <tromey@redhat.com>
10992
10993 * target-delegates.c: Rebuild.
10994 * target.c (update_current_target): Don't inherit or default
10995 to_terminal_ours.
10996 * target.h (struct target_ops) <to_terminal_ours>: Use
10997 TARGET_DEFAULT_IGNORE.
10998
10999 2014-02-19 Tom Tromey <tromey@redhat.com>
11000
11001 * target-delegates.c: Rebuild.
11002 * target.c (update_current_target): Don't inherit or default
11003 to_terminal_ours_for_output.
11004 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11005 TARGET_DEFAULT_IGNORE.
11006
11007 2014-02-19 Tom Tromey <tromey@redhat.com>
11008
11009 * target-delegates.c: Rebuild.
11010 * target.c (update_current_target): Don't inherit or default
11011 to_terminal_inferior.
11012 * target.h (struct target_ops) <to_terminal_inferior>: Use
11013 TARGET_DEFAULT_IGNORE.
11014
11015 2014-02-19 Tom Tromey <tromey@redhat.com>
11016
11017 * target-delegates.c: Rebuild.
11018 * target.c (update_current_target): Don't inherit or default
11019 to_terminal_init.
11020 * target.h (struct target_ops) <to_terminal_init>: Use
11021 TARGET_DEFAULT_IGNORE.
11022
11023 2014-02-19 Tom Tromey <tromey@redhat.com>
11024
11025 * target-delegates.c: Rebuild.
11026 * target.c (update_current_target): Don't inherit or default
11027 to_can_accel_watchpoint_condition.
11028 * target.h (struct target_ops)
11029 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11030
11031 2014-02-19 Tom Tromey <tromey@redhat.com>
11032
11033 * target-delegates.c: Rebuild.
11034 * target.c (update_current_target): Don't inherit or default
11035 to_region_ok_for_hw_watchpoint.
11036 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11037 Use TARGET_DEFAULT_FUNC.
11038
11039 2014-02-19 Tom Tromey <tromey@redhat.com>
11040
11041 * target-delegates.c: Rebuild.
11042 * target.c (update_current_target): Don't inherit or default
11043 to_watchpoint_addr_within_range.
11044 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11045 Use TARGET_DEFAULT_FUNC.
11046
11047 2014-02-19 Tom Tromey <tromey@redhat.com>
11048
11049 * target-delegates.c: Rebuild.
11050 * target.c (update_current_target): Don't inherit or default
11051 to_remove_watchpoint.
11052 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11053 TARGET_DEFAULT_NORETURN.
11054
11055 2014-02-19 Tom Tromey <tromey@redhat.com>
11056
11057 * target-delegates.c: Rebuild.
11058 * target.c (update_current_target): Don't inherit or default
11059 to_insert_watchpoint.
11060 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11061 TARGET_DEFAULT_RETURN.
11062
11063 2014-02-19 Tom Tromey <tromey@redhat.com>
11064
11065 * target-delegates.c: Rebuild.
11066 * target.c (update_current_target): Don't inherit or default
11067 to_remove_hw_breakpoint.
11068 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11069 TARGET_DEFAULT_RETURN.
11070
11071 2014-02-19 Tom Tromey <tromey@redhat.com>
11072
11073 * target-delegates.c: Rebuild.
11074 * target.c (update_current_target): Don't inherit or default
11075 to_insert_hw_breakpoint.
11076 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11077 TARGET_DEFAULT_RETURN.
11078
11079 2014-02-19 Tom Tromey <tromey@redhat.com>
11080
11081 * target-delegates.c: Rebuild.
11082 * target.c (update_current_target): Don't inherit or default
11083 to_can_use_hw_breakpoint.
11084 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11085 TARGET_DEFAULT_RETURN.
11086
11087 2014-02-19 Tom Tromey <tromey@redhat.com>
11088
11089 * target-delegates.c: Rebuild.
11090 * target.c (update_current_target): Don't inherit or default
11091 to_files_info.
11092 * target.h (struct target_ops) <to_files_info>: Use
11093 TARGET_DEFAULT_IGNORE.
11094
11095 2014-02-19 Tom Tromey <tromey@redhat.com>
11096
11097 * target-delegates.c: Rebuild.
11098 * target.c (update_current_target): Don't inherit or default
11099 to_store.
11100 * target.h (struct target_ops) <to_store>: Use
11101 TARGET_DEFAULT_NORETURN.
11102
11103 2014-02-19 Tom Tromey <tromey@redhat.com>
11104
11105 * target-delegates.c: Rebuild.
11106 * target.c (update_current_target): Don't inherit or default
11107 to_post_attach.
11108 * target.h (struct target_ops) <to_post_attach>: Use
11109 TARGET_DEFAULT_IGNORE.
11110
11111 2014-02-19 Tom Tromey <tromey@redhat.com>
11112
11113 * target-delegates.c: Rebuild.
11114 * target.c (update_current_target): Don't inherit or default
11115 to_rcmd.
11116 (default_rcmd): New function.
11117 (do_monitor_command): Unconditionally delegate.
11118 * target.h (struct target_ops) <to_rmcd>: Use
11119 TARGET_DEFAULT_FUNC.
11120
11121 2014-02-19 Tom Tromey <tromey@redhat.com>
11122
11123 * target-delegates.c: Rebuild.
11124 * target.c (init_dummy_target): Don't initialize to_attach.
11125 (target_attach): Unconditionally delegate.
11126 * target.h (struct target_ops) <to_attach>: Use
11127 TARGET_DEFAULT_FUNC.
11128
11129 2014-02-19 Tom Tromey <tromey@redhat.com>
11130
11131 * target-delegates.c: Rebuild.
11132 * target.c (target_detach): Unconditionally delegate.
11133 (init_dummy_target): Don't initialize to_detach.
11134 * target.h (struct target_ops) <to_detach>: Use
11135 TARGET_DEFAULT_IGNORE.
11136
11137 2014-02-19 Tom Tromey <tromey@redhat.com>
11138
11139 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11140 Add argument.
11141 (target_augmented_libraries_svr4_read): Add argument.
11142 * target.c (update_current_target): Update.
11143 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11144 argument.
11145
11146 2014-02-19 Tom Tromey <tromey@redhat.com>
11147
11148 * target.h (struct target_ops) <to_call_history_range>: Add
11149 argument.
11150 * target.c (target_call_history_range): Add argument.
11151 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11152 argument.
11153 (record_btrace_call_history_from): Update.
11154
11155 2014-02-19 Tom Tromey <tromey@redhat.com>
11156
11157 * target.h (struct target_ops) <to_call_history_from>: Add
11158 argument.
11159 * target.c (target_call_history_from): Add argument.
11160 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11161 argument.
11162
11163 2014-02-19 Tom Tromey <tromey@redhat.com>
11164
11165 * target.h (struct target_ops) <to_call_history>: Add argument.
11166 * target.c (target_call_history): Add argument.
11167 * record-btrace.c (record_btrace_call_history): Add 'self'
11168 argument.
11169
11170 2014-02-19 Tom Tromey <tromey@redhat.com>
11171
11172 * target.h (struct target_ops) <to_insn_history_range>: Add
11173 argument.
11174 * target.c (target_insn_history_range): Add argument.
11175 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11176 argument.
11177 (record_btrace_insn_history_from): Update.
11178
11179 2014-02-19 Tom Tromey <tromey@redhat.com>
11180
11181 * target.h (struct target_ops) <to_insn_history_from>: Add
11182 argument.
11183 * target.c (target_insn_history_from): Add argument.
11184 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11185 argument.
11186
11187 2014-02-19 Tom Tromey <tromey@redhat.com>
11188
11189 * target.h (struct target_ops) <to_insn_history>: Add argument.
11190 * target.c (target_insn_history): Add argument.
11191 * record-btrace.c (record_btrace_insn_history): Add 'self'
11192 argument.
11193
11194 2014-02-19 Tom Tromey <tromey@redhat.com>
11195
11196 * target.h (struct target_ops) <to_goto_record>: Add argument.
11197 * target.c (target_goto_record): Add argument.
11198 * record-full.c (record_full_goto): Add 'self' argument.
11199 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11200
11201 2014-02-19 Tom Tromey <tromey@redhat.com>
11202
11203 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11204 * target.c (target_goto_record_end): Add argument.
11205 * record-full.c (record_full_goto_end): Add 'self' argument.
11206 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11207
11208 2014-02-19 Tom Tromey <tromey@redhat.com>
11209
11210 * target.h (struct target_ops) <to_goto_record_begin>: Add
11211 argument.
11212 * target.c (target_goto_record_begin): Add argument.
11213 * record-full.c (record_full_goto_begin): Add 'self' argument.
11214 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11215 argument.
11216
11217 2014-02-19 Tom Tromey <tromey@redhat.com>
11218
11219 * target.h (struct target_ops) <to_record_is_replaying>: Add
11220 argument.
11221 * target.c (target_record_is_replaying): Add argument.
11222 * record-full.c (record_full_is_replaying): Add 'self' argument.
11223 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11224 argument.
11225 (record_btrace_xfer_partial, record_btrace_store_registers)
11226 (record_btrace_prepare_to_store, record_btrace_resume)
11227 (record_btrace_wait, record_btrace_decr_pc_after_break)
11228 (record_btrace_find_new_threads, record_btrace_thread_alive):
11229 Update.
11230
11231 2014-02-19 Tom Tromey <tromey@redhat.com>
11232
11233 * target.h (struct target_ops) <to_delete_record>: Add argument.
11234 * target.c (target_delete_record): Add argument.
11235 * record-full.c (record_full_delete): Add 'self' argument.
11236
11237 2014-02-19 Tom Tromey <tromey@redhat.com>
11238
11239 * target.h (struct target_ops) <to_save_record>: Add argument.
11240 * target.c (target_save_record): Add argument.
11241 * record-full.c (record_full_save): Add 'self' argument.
11242 (record_full_save): Add 'self' argument.
11243
11244 2014-02-19 Tom Tromey <tromey@redhat.com>
11245
11246 * target.h (struct target_ops) <to_info_record>: Add argument.
11247 * target.c (target_info_record): Add argument.
11248 * record.c (info_record_command): Add argument.
11249 * record-full.c (record_full_info): Add 'self' argument.
11250 * record-btrace.c (record_btrace_info): Add 'self' argument.
11251
11252 2014-02-19 Tom Tromey <tromey@redhat.com>
11253
11254 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11255 * target.c (target_stop_recording): Add argument.
11256 * record.c (record_stop): Add argument.
11257 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11258 argument.
11259
11260 2014-02-19 Tom Tromey <tromey@redhat.com>
11261
11262 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11263 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11264 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11265 argument.
11266 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11267 (_initialize_amd64_linux_nat): Use it.
11268 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11269 (_initialize_i386_linux_nat): Use it.
11270
11271 2014-02-19 Tom Tromey <tromey@redhat.com>
11272
11273 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11274 * target.c (target_teardown_btrace): Add argument.
11275 * remote.c (remote_teardown_btrace): Add 'self' argument.
11276 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11277 argument.
11278 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11279 argument.
11280
11281 2014-02-19 Tom Tromey <tromey@redhat.com>
11282
11283 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11284 * target.c (target_disable_btrace): Add argument.
11285 * remote.c (remote_disable_btrace): Add 'self' argument.
11286 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11287 argument.
11288 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11289 argument.
11290
11291 2014-02-19 Tom Tromey <tromey@redhat.com>
11292
11293 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11294 * target.c (target_enable_btrace): Add argument.
11295 * remote.c (remote_enable_btrace): Add 'self' argument.
11296 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11297 argument.
11298 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11299 argument.
11300
11301 2014-02-19 Tom Tromey <tromey@redhat.com>
11302
11303 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11304 (target_can_use_agent): Add argument.
11305 * target.c (update_current_target): Update.
11306 * remote.c (remote_can_use_agent): Add 'self' argument.
11307 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11308
11309 2014-02-19 Tom Tromey <tromey@redhat.com>
11310
11311 * target.h (struct target_ops) <to_use_agent>: Add argument.
11312 (target_use_agent): Add argument.
11313 * target.c (update_current_target): Update.
11314 * remote.c (remote_use_agent): Add 'self' argument.
11315 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11316
11317 2014-02-19 Tom Tromey <tromey@redhat.com>
11318
11319 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11320 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11321 (target_traceframe_info): Add argument.
11322 * target.c (update_current_target): Update.
11323 * remote.c (remote_traceframe_info): Add 'self' argument.
11324 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11325
11326 2014-02-19 Tom Tromey <tromey@redhat.com>
11327
11328 * target.h (target_static_tracepoint_markers_by_strid): Add
11329 argument.
11330 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11331 'self' argument.
11332 * target.c (update_current_target): Update.
11333 * remote.c (struct target_ops)
11334 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11335 * linux-nat.c (struct target_ops)
11336 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11337
11338 2014-02-19 Tom Tromey <tromey@redhat.com>
11339
11340 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11341 Add argument.
11342 (target_static_tracepoint_marker_at): Add argument.
11343 * target.c (update_current_target): Update.
11344 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11345 argument.
11346
11347 2014-02-19 Tom Tromey <tromey@redhat.com>
11348
11349 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11350 (target_set_permissions): Add argument.
11351 * target.c (update_current_target): Update.
11352 * remote.c (remote_set_permissions): Add 'self' argument.
11353 (remote_start_remote): Update.
11354
11355 2014-02-19 Tom Tromey <tromey@redhat.com>
11356
11357 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11358 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11359 (target_get_tib_address): Add argument.
11360 * target.c (update_current_target): Update.
11361 * remote.c (remote_get_tib_address): Add 'self' argument.
11362
11363 2014-02-19 Tom Tromey <tromey@redhat.com>
11364
11365 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11366 (target_set_trace_notes): Add argument.
11367 * target.c (update_current_target): Update.
11368 * remote.c (remote_set_trace_notes): Add 'self' argument.
11369
11370 2014-02-19 Tom Tromey <tromey@redhat.com>
11371
11372 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11373 argument.
11374 (target_set_trace_buffer_size): Add argument.
11375 * target.c (update_current_target): Update.
11376 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11377
11378 2014-02-19 Tom Tromey <tromey@redhat.com>
11379
11380 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11381 argument.
11382 (target_set_circular_trace_buffer): Add argument.
11383 * target.c (update_current_target): Update.
11384 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11385 argument.
11386
11387 2014-02-19 Tom Tromey <tromey@redhat.com>
11388
11389 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11390 argument.
11391 (target_set_disconnected_tracing): Add argument.
11392 * target.c (update_current_target): Update.
11393 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11394
11395 2014-02-19 Tom Tromey <tromey@redhat.com>
11396
11397 * target.h (struct target_ops)
11398 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11399 (target_get_min_fast_tracepoint_insn_len): Add argument.
11400 * target.c (update_current_target): Update.
11401 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11402 argument.
11403
11404 2014-02-19 Tom Tromey <tromey@redhat.com>
11405
11406 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11407 argument.
11408 (target_get_raw_trace_data): Add argument.
11409 * target.c (update_current_target): Update.
11410 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11411
11412 2014-02-19 Tom Tromey <tromey@redhat.com>
11413
11414 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11415 Add argument.
11416 (target_upload_trace_state_variables): Add argument.
11417 * target.c (update_current_target): Update.
11418 * remote.c (remote_upload_trace_state_variables): Add 'self'
11419 argument.
11420 (remote_start_remote): Update.
11421
11422 2014-02-19 Tom Tromey <tromey@redhat.com>
11423
11424 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11425 argument.
11426 (target_upload_tracepoints): Add argument.
11427 * target.c (update_current_target): Update.
11428 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11429 (remote_start_remote): Update.
11430
11431 2014-02-19 Tom Tromey <tromey@redhat.com>
11432
11433 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11434 (target_save_trace_data): Add argument.
11435 * target.c (update_current_target): Update.
11436 * remote.c (remote_save_trace_data): Add 'self' argument.
11437
11438 2014-02-19 Tom Tromey <tromey@redhat.com>
11439
11440 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11441 argument.
11442 * target.h (struct target_ops)
11443 <to_get_trace_state_variable_value>: Add argument.
11444 (target_get_trace_state_variable_value): Add argument.
11445 * target.c (update_current_target): Update.
11446 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11447 argument.
11448 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11449
11450 2014-02-19 Tom Tromey <tromey@redhat.com>
11451
11452 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11453 * target.h (struct target_ops) <to_trace_find>: Add argument.
11454 (target_trace_find): Add argument.
11455 * target.c (update_current_target): Update.
11456 * remote.c (remote_trace_find): Add 'self' argument.
11457 * ctf.c (ctf_trace_find): Add 'self' argument.
11458
11459 2014-02-19 Tom Tromey <tromey@redhat.com>
11460
11461 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11462 (target_trace_stop): Add argument.
11463 * target.c (update_current_target): Update.
11464 * remote.c (remote_trace_stop): Add 'self' argument.
11465
11466 2014-02-19 Tom Tromey <tromey@redhat.com>
11467
11468 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11469 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11470 argument.
11471 (target_get_tracepoint_status): Add argument.
11472 * target.c (update_current_target): Update.
11473 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11474
11475 2014-02-19 Tom Tromey <tromey@redhat.com>
11476
11477 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11478 * target.h (struct target_ops) <to_get_trace_status>: Add
11479 argument.
11480 (target_get_trace_status): Add argument.
11481 * target.c (update_current_target): Update.
11482 * remote.c (remote_get_trace_status): Add 'self' argument.
11483 (remote_start_remote, remote_can_download_tracepoint): Update.
11484 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11485
11486 2014-02-19 Tom Tromey <tromey@redhat.com>
11487
11488 * target.h (struct target_ops) <to_trace_start>: Add argument.
11489 (target_trace_start): Add argument.
11490 * target.c (update_current_target): Update.
11491 * remote.c (remote_trace_start): Add 'self' argument.
11492
11493 2014-02-19 Tom Tromey <tromey@redhat.com>
11494
11495 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11496 Add argument.
11497 (target_trace_set_readonly_regions): Add argument.
11498 * target.c (update_current_target): Update.
11499 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11500 argument.
11501
11502 2014-02-19 Tom Tromey <tromey@redhat.com>
11503
11504 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11505 argument.
11506 (target_disable_tracepoint): Add argument.
11507 * target.c (update_current_target): Update.
11508 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11509
11510 2014-02-19 Tom Tromey <tromey@redhat.com>
11511
11512 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11513 argument.
11514 (target_enable_tracepoint): Add argument.
11515 * target.c (update_current_target): Update.
11516 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11517
11518 2014-02-19 Tom Tromey <tromey@redhat.com>
11519
11520 * target.h (struct target_ops) <to_download_trace_state_variable>:
11521 Add argument.
11522 (target_download_trace_state_variable): Add argument.
11523 * target.c (update_current_target): Update.
11524 * remote.c (remote_download_trace_state_variable): Add 'self'
11525 argument.
11526
11527 2014-02-19 Tom Tromey <tromey@redhat.com>
11528
11529 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11530 argument.
11531 (target_can_download_tracepoint): Add argument.
11532 * target.c (update_current_target): Update.
11533 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11534
11535 2014-02-19 Tom Tromey <tromey@redhat.com>
11536
11537 * target.h (struct target_ops) <to_download_tracepoint>: Add
11538 argument.
11539 (target_download_tracepoint): Add argument.
11540 * target.c (update_current_target): Update.
11541 * remote.c (remote_download_tracepoint): Add 'self' argument.
11542
11543 2014-02-19 Tom Tromey <tromey@redhat.com>
11544
11545 * target.h (struct target_ops) <to_trace_init>: Add argument.
11546 (target_trace_init): Add argument.
11547 * target.c (update_current_target): Update.
11548 * remote.c (remote_trace_init): Add 'self' argument.
11549
11550 2014-02-19 Tom Tromey <tromey@redhat.com>
11551
11552 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11553 * target.c (target_fileio_readlink): Add argument.
11554 * remote.c (remote_hostio_readlink): Add 'self' argument.
11555 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11556
11557 2014-02-19 Tom Tromey <tromey@redhat.com>
11558
11559 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11560 * target.c (target_fileio_unlink): Add argument.
11561 * remote.c (remote_hostio_unlink): Add 'self' argument.
11562 (remote_file_delete): Update.
11563 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11564
11565 2014-02-19 Tom Tromey <tromey@redhat.com>
11566
11567 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11568 * target.c (target_fileio_close): Add argument.
11569 * remote.c (remote_hostio_close): Add 'self' argument.
11570 (remote_hostio_close_cleanup): Update.
11571 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11572 Update.
11573 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11574
11575 2014-02-19 Tom Tromey <tromey@redhat.com>
11576
11577 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11578 * target.c (target_fileio_pread): Add argument.
11579 * remote.c (remote_hostio_pread): Add 'self' argument.
11580 (remote_bfd_iovec_pread, remote_file_get): Update.
11581 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11582
11583 2014-02-19 Tom Tromey <tromey@redhat.com>
11584
11585 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11586 * target.c (target_fileio_pwrite): Add argument.
11587 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11588 (remote_file_put): Update.
11589 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11590
11591 2014-02-19 Tom Tromey <tromey@redhat.com>
11592
11593 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11594 * target.c (target_fileio_open): Add argument.
11595 * remote.c (remote_hostio_open): Add 'self' argument.
11596 (remote_bfd_iovec_open): Add 'self' argument.
11597 (remote_file_put): Add 'self' argument.
11598 (remote_file_get): Add 'self' argument.
11599 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11600
11601 2014-02-19 Tom Tromey <tromey@redhat.com>
11602
11603 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11604 Add argument.
11605 (target_can_run_breakpoint_commands): Add argument.
11606 * target.c (update_current_target): Update.
11607 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11608 argument.
11609 (remote_insert_breakpoint): Add 'self' argument.
11610 (remote_insert_hw_breakpoint): Add 'self' argument.
11611 (remote_can_run_breakpoint_commands): Add 'self' argument.
11612
11613 2014-02-19 Tom Tromey <tromey@redhat.com>
11614
11615 * target.h (struct target_ops)
11616 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11617 (target_supports_evaluation_of_breakpoint_conditions): Add
11618 argument.
11619 * target.c (update_current_target): Update.
11620 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11621 argument.
11622 (remote_insert_breakpoint): Add 'self' argument.
11623 (remote_insert_hw_breakpoint): Add 'self' argument.
11624 (remote_supports_cond_breakpoints): Add 'self' argument.
11625
11626 2014-02-19 Tom Tromey <tromey@redhat.com>
11627
11628 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11629 argument.
11630 (target_supports_string_tracing): Add argument.
11631 * target.c (update_current_target): Update.
11632 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11633
11634 2014-02-19 Tom Tromey <tromey@redhat.com>
11635
11636 * target.h (struct target_ops)
11637 <to_supports_disable_randomization>: Add argument.
11638 * target.c (find_default_supports_disable_randomization): Add
11639 argument.
11640 (target_supports_disable_randomization): Add argument.
11641 (find_default_supports_disable_randomization): Add 'self'
11642 argument.
11643 * remote.c (extended_remote_supports_disable_randomization): Add
11644 'self' argument.
11645 (remote_supports_disable_randomization): Add 'self' argument.
11646 (extended_remote_create_inferior): Update.
11647 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11648 'self' argument.
11649
11650 2014-02-19 Tom Tromey <tromey@redhat.com>
11651
11652 * target.h (struct target_ops)
11653 <to_supports_enable_disable_tracepoint>: Add argument.
11654 (target_supports_enable_disable_tracepoint): Add argument.
11655 * target.c (update_current_target): Update.
11656 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11657 argument.
11658
11659 2014-02-19 Tom Tromey <tromey@redhat.com>
11660
11661 * target.h (struct target_ops) <to_supports_multi_process>: Add
11662 argument.
11663 (target_supports_multi_process): Add argument.
11664 * target.c (update_current_target): Update.
11665 * remote.c (remote_supports_multi_process): Add 'self' argument.
11666 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11667 argument.
11668 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11669 argument.
11670
11671 2014-02-19 Tom Tromey <tromey@redhat.com>
11672
11673 * target.h (struct target_ops) <to_execution_direction>: Add
11674 argument.
11675 (target_execution_direction): Add argument.
11676 * target.c (default_execution_direction): Add 'self' argument.
11677 * record-full.c (record_full_execution_direction): Add 'self'
11678 argument.
11679
11680 2014-02-19 Tom Tromey <tromey@redhat.com>
11681
11682 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11683 argument.
11684 (target_can_execute_reverse): Add argument.
11685 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11686 * record-full.c (record_full_can_execute_reverse): Add 'self'
11687 argument.
11688 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11689 argument.
11690
11691 2014-02-19 Tom Tromey <tromey@redhat.com>
11692
11693 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11694 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11695 argument.
11696 (target_get_ada_task_ptid): Add argument.
11697 * target.c (update_current_target): Update.
11698 (default_get_ada_task_ptid): Add 'self' argument.
11699 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11700 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11701 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11702 argument.
11703 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11704 argument.
11705 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11706 argument.
11707 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11708 argument.
11709 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11710 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11711 argument.
11712
11713 2014-02-19 Tom Tromey <tromey@redhat.com>
11714
11715 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11716 (target_goto_bookmark): Add argument.
11717 * target.c (dummy_goto_bookmark): Add 'self' argument.
11718 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11719
11720 2014-02-19 Tom Tromey <tromey@redhat.com>
11721
11722 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11723 (target_get_bookmark): Add argument.
11724 * target.c (dummy_get_bookmark): Add 'self' argument.
11725 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11726
11727 2014-02-19 Tom Tromey <tromey@redhat.com>
11728
11729 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11730 argument.
11731 (target_make_corefile_notes): Add argument.
11732 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11733 * procfs.c (procfs_make_note_section): Add 'self' argument.
11734 (procfs_make_note_section): Add 'self' argument.
11735 (procfs_make_note_section): Add 'self' argument.
11736 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11737 argument.
11738 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11739 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11740 * exec.c (exec_make_note_section): Add 'self' argument.
11741 (exec_make_note_section): Add 'self' argument.
11742
11743 2014-02-19 Tom Tromey <tromey@redhat.com>
11744
11745 * target.h (struct target_ops) <to_find_memory_regions>: Add
11746 argument.
11747 (target_find_memory_regions): Add argument.
11748 * target.c (dummy_find_memory_regions): Add 'self' argument.
11749 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11750 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11751 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11752 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11753 * exec. (exec_do_find_memory_regions): New global.
11754 (exec_set_find_memory_regions): Rewrite.
11755 (exec_find_memory_regions): New function.
11756 (init_exec_ops): Use exec_find_memory_regions.
11757
11758 2014-02-19 Tom Tromey <tromey@redhat.com>
11759
11760 * target.h (struct target_ops) <to_supports_non_stop>: Add
11761 argument.
11762 * target.c (find_default_supports_non_stop): Add argument.
11763 (target_supports_non_stop): Add argument.
11764 (find_default_supports_non_stop): Add 'self' argument.
11765 * remote.c (remote_supports_non_stop): Add 'self' argument.
11766 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11767
11768 2014-02-19 Tom Tromey <tromey@redhat.com>
11769
11770 * target.h (struct target_ops) <to_log_command>: Add argument.
11771 (target_log_command): Add argument.
11772 * serial.h (serial_log_command): Add 'self' argument.
11773 * serial.c (serial_log_command): Add 'self' argument.
11774
11775 2014-02-19 Tom Tromey <tromey@redhat.com>
11776
11777 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11778 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11779 argument.
11780 (target_pid_to_exec_file): Add argument.
11781 * target.c (debug_to_pid_to_exec_file): Add argument.
11782 (update_current_target): Update.
11783 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11784 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11785 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11786 (linux_handle_extended_wait): Update.
11787 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11788 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11789 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11790 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11791
11792 2014-02-19 Tom Tromey <tromey@redhat.com>
11793
11794 * target.h (struct target_ops) <to_rcmd>: Add argument.
11795 (target_rcmd): Add argument.
11796 * target.c (debug_to_rcmd): Add argument.
11797 (update_current_target, do_monitor_command): Update.
11798 * remote.c (remote_rcmd): Add 'self' argument.
11799 * monitor.c (monitor_rcmd): Add 'self' argument.
11800
11801 2014-02-19 Tom Tromey <tromey@redhat.com>
11802
11803 * windows-nat.c (windows_stop): Add 'self' argument.
11804 * target.h (struct target_ops) <to_stop>: Add argument.
11805 * target.c (target_stop): Add argument.
11806 (debug_to_stop): Add argument.
11807 (update_current_target): Update.
11808 * remote.c (remote_stop): Add 'self' argument.
11809 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11810 (gdbsim_cntrl_c): Update.
11811 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11812 * procfs.c (procfs_stop): Add 'self' argument.
11813 * nto-procfs.c (procfs_stop): Add 'self' argument.
11814 * monitor.c (monitor_stop): Add 'self' argument.
11815 (monitor_open): Update.
11816 * linux-nat.c (linux_nat_stop): Add argument.
11817 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11818 * gnu-nat.c (gnu_stop): Add 'self' argument.
11819 * darwin-nat.c (darwin_stop): Add 'self' argument.
11820
11821 2014-02-19 Tom Tromey <tromey@redhat.com>
11822
11823 * target.h (struct target_ops) <to_thread_name>: Add argument.
11824 * target.c (target_thread_name): Add argument.
11825 (update_current_target): Update.
11826 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11827
11828 2014-02-19 Tom Tromey <tromey@redhat.com>
11829
11830 * target.h (struct target_ops) <to_extra_thread_info>: Add
11831 argument.
11832 (target_extra_thread_info): Add argument.
11833 * target.c (update_current_target): Update.
11834 * remote.c (remote_threads_extra_info): Add 'self' argument.
11835 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11836 argument.
11837 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11838 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11839 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11840 argument.
11841 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11842 argument.
11843 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11844 argument.
11845 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11846 argument.
11847
11848 2014-02-19 Tom Tromey <tromey@redhat.com>
11849
11850 * target.h (struct target_ops) <to_program_signals>: Add argument.
11851 * target.c (target_program_signals): Add argument.
11852 * remote.c (remote_program_signals): Add 'self' argument.
11853
11854 2014-02-19 Tom Tromey <tromey@redhat.com>
11855
11856 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11857 * target.c (target_pass_signals): Add argument.
11858 * remote.c (remote_pass_signals): Add 'self' argument.
11859 (remote_start_remote): Update.
11860 * procfs.c (procfs_pass_signals): Add 'self' argument.
11861 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11862 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11863 (linux_nat_create_inferior, linux_nat_attach): Update.
11864
11865 2014-02-19 Tom Tromey <tromey@redhat.com>
11866
11867 * windows-nat.c (windows_can_run): Add 'self' argument.
11868 * target.h (struct target_ops) <to_can_run>: Add argument.
11869 (target_can_run): Add argument.
11870 * target.c (debug_to_can_run): Add argument.
11871 (update_current_target): Update.
11872 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11873 * inf-child.c (inf_child_can_run): Add 'self' argument.
11874 * go32-nat.c (go32_can_run): Add 'self' argument.
11875
11876 2014-02-19 Tom Tromey <tromey@redhat.com>
11877
11878 * target.h (struct target_ops) <to_has_exited>: Add argument.
11879 (target_has_exited): Add argument.
11880 * target.c (debug_to_has_exited): Add argument.
11881 (update_current_target): Update.
11882
11883 2014-02-19 Tom Tromey <tromey@redhat.com>
11884
11885 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11886 argument.
11887 (target_set_syscall_catchpoint): Add argument.
11888 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11889 argument.
11890 * target.c (update_current_target): Update.
11891
11892 2014-02-19 Tom Tromey <tromey@redhat.com>
11893
11894 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11895 argument.
11896 (target_remove_exec_catchpoint): Add argument.
11897 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11898 (update_current_target): Update.
11899 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11900 argument.
11901
11902 2014-02-19 Tom Tromey <tromey@redhat.com>
11903
11904 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11905 argument.
11906 (target_insert_exec_catchpoint): Add argument.
11907 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11908 (update_current_target): Update.
11909 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11910 argument.
11911
11912 2014-02-19 Tom Tromey <tromey@redhat.com>
11913
11914 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11915 argument.
11916 (target_remove_vfork_catchpoint): Add argument.
11917 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11918 (update_current_target): Update.
11919 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11920 argument.
11921
11922 2014-02-19 Tom Tromey <tromey@redhat.com>
11923
11924 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11925 argument.
11926 (target_insert_vfork_catchpoint): Add argument.
11927 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11928 (update_current_target): Update.
11929 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11930 argument.
11931
11932 2014-02-19 Tom Tromey <tromey@redhat.com>
11933
11934 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11935 argument.
11936 (target_remove_fork_catchpoint): Add argument.
11937 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11938 (update_current_target): Update.
11939 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11940 argument.
11941
11942 2014-02-19 Tom Tromey <tromey@redhat.com>
11943
11944 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11945 argument.
11946 (target_insert_fork_catchpoint): Add argument.
11947 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11948 (update_current_target): Update.
11949 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11950 argument.
11951
11952 2014-02-19 Tom Tromey <tromey@redhat.com>
11953
11954 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11955 argument.
11956 (target_post_startup_inferior): Add argument.
11957 * target.c (debug_to_post_startup_inferior): Add argument.
11958 (update_current_target): Update.
11959 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11960 argument.
11961 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11962 argument.
11963 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11964 argument.
11965 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11966 argument.
11967 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11968 'self' argument.
11969 (super_post_startup_inferior): Likewise.
11970 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11971 'self' argument.
11972 (super_post_startup_inferior): Likewise.
11973 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11974 Add 'self' argument.
11975 (super_post_startup_inferior): Likewise.
11976
11977 2014-02-19 Tom Tromey <tromey@redhat.com>
11978
11979 * target.h (struct target_ops) <to_load>: Add argument.
11980 * target.c (target_load): Add argument.
11981 (debug_to_load): Add argument.
11982 (update_current_target): Update.
11983 * remote.c (remote_load): Add 'self' argument.
11984 * remote-sim.c (gdbsim_load): Add 'self' argument.
11985 * remote-mips.c (mips_load): Add 'self' argument.
11986 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
11987 * monitor.c (monitor_load): Add 'self' argument.
11988 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
11989
11990 2014-02-19 Tom Tromey <tromey@redhat.com>
11991
11992 * target.h (struct target_ops) <to_terminal_info>: Add argument.
11993 (target_terminal_info): Add argument.
11994 * target.c (debug_to_terminal_info): Add argument.
11995 (default_terminal_info): Likewise.
11996 * inflow.c (child_terminal_info): Add 'self' argument.
11997 * inferior.h (child_terminal_info): Add 'self' argument.
11998 * go32-nat.c (go32_terminal_info): Add 'self' argument.
11999
12000 2014-02-19 Tom Tromey <tromey@redhat.com>
12001
12002 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12003 argument.
12004 (target_terminal_save_ours): Add argument.
12005 * target.c (debug_to_terminal_save_ours): Add argument.
12006 (update_current_target): Update.
12007 * inflow.c (terminal_save_ours): Add 'self' argument.
12008 * inferior.h (terminal_save_ours): Add 'self' argument.
12009
12010 2014-02-19 Tom Tromey <tromey@redhat.com>
12011
12012 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12013 (target_terminal_ours): Add argument.
12014 * target.c (debug_to_terminal_ours): Add argument.
12015 (update_current_target): Update.
12016 * remote.c (remote_terminal_ours): Add 'self' argument.
12017 (remote_close): Update.
12018 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12019 * inflow.c (terminal_ours): Add 'self' argument.
12020 * inferior.h (terminal_ours): Add 'self' argument.
12021 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12022
12023 2014-02-19 Pedro Alves <palves@redhat.com>
12024 Tom Tromey <tromey@redhat.com>
12025
12026 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12027 argument.
12028 (target_terminal_ours_for_output): Add argument.
12029 * target.c (debug_to_terminal_ours_for_output): Add argument.
12030 (update_current_target): Update.
12031 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12032 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12033 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12034
12035 2014-02-19 Tom Tromey <tromey@redhat.com>
12036
12037 * target.h (struct target_ops) <to_terminal_inferior>: Add
12038 argument.
12039 * target.c (target_terminal_inferior): Add argument.
12040 (update_current_target): Update.
12041 * remote.c (remote_terminal_inferior): Add 'self' argument.
12042 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12043 * inflow.c (terminal_inferior): Add 'self' argument.
12044 * inferior.h (terminal_inferior): Add 'self' argument.
12045 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12046 (go32_terminal_inferior): Add 'self' argument.
12047
12048 2014-02-19 Tom Tromey <tromey@redhat.com>
12049
12050 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12051 (target_terminal_init): Add argument.
12052 * target.c (debug_to_terminal_init): Add argument.
12053 (update_current_target): Update.
12054 * inflow.c (terminal_init_inferior): Add 'self' argument.
12055 * inferior.h (terminal_init_inferior): Add 'self' argument.
12056 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12057 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12058
12059 2014-02-19 Tom Tromey <tromey@redhat.com>
12060
12061 * target.h (struct target_ops)
12062 <to_can_accel_watchpoint_condition>: Add argument.
12063 (target_can_accel_watchpoint_condition): Add argument.
12064 * target.c (debug_to_can_accel_watchpoint_condition): Add
12065 argument.
12066 (update_current_target): Update.
12067 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12068 'self' argument.
12069
12070 2014-02-19 Tom Tromey <tromey@redhat.com>
12071
12072 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12073 Add argument.
12074 (target_region_ok_for_hw_watchpoint): Add argument.
12075 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12076 (default_region_ok_for_hw_watchpoint): Add argument.
12077 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12078 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12079 argument.
12080 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12081 argument.
12082 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12083 argument.
12084 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12085 'self' argument.
12086 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12087 'self' argument.
12088 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12089 'self' argument.
12090 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12091 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12092 'self' argument.
12093 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12094 Add 'self' argument.
12095
12096 2014-02-19 Tom Tromey <tromey@redhat.com>
12097
12098 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12099 argument.
12100 (target_insert_watchpoint): Add argument.
12101 * target.c (debug_to_insert_watchpoint): Add argument.
12102 (update_current_target): Update.
12103 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12104 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12105 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12106 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12107 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12108 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12109 argument.
12110 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12111 (procfs_insert_hw_watchpoint): Add 'self' argument.
12112 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12113 argument.
12114 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12115 argument.
12116 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12117 argument.
12118 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12119 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12120 argument.
12121 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12122 'self' argument.
12123
12124 2014-02-19 Tom Tromey <tromey@redhat.com>
12125
12126 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12127 argument.
12128 (target_remove_watchpoint): Add argument.
12129 * target.c (debug_to_remove_watchpoint): Add argument.
12130 (update_current_target): Update.
12131 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12132 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12133 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12134 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12135 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12136 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12137 argument.
12138 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12139 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12140 argument.
12141 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12142 argument.
12143 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12144 argument.
12145 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12146 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12147 argument.
12148 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12149 'self' argument.
12150
12151 2014-02-19 Tom Tromey <tromey@redhat.com>
12152
12153 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12154 argument.
12155 (target_remove_hw_breakpoint): Add argument.
12156 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12157 (update_current_target): Update.
12158 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12159 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12160 argument.
12161 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12162 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12163 argument.
12164 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12165 'self' argument.
12166
12167 2014-02-19 Tom Tromey <tromey@redhat.com>
12168
12169 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12170 argument.
12171 (target_insert_hw_breakpoint): Add argument.
12172 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12173 (update_current_target): Update.
12174 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12175 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12176 argument.
12177 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12178 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12179 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12180 argument.
12181 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12182 'self' argument.
12183
12184 2014-02-19 Tom Tromey <tromey@redhat.com>
12185
12186 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12187 argument.
12188 (target_can_use_hardware_watchpoint): Add argument.
12189 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12190 (update_current_target): Update.
12191 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12192 argument.
12193 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12194 argument.
12195 * remote.c (remote_check_watch_resources): Add 'self' argument.
12196 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12197 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12198 argument.
12199 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12200 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12201 argument.
12202 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12203 argument.
12204 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12205 argument.
12206 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12207 argument.
12208 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12209 argument.
12210 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12211 argument.
12212 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12213 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12214 argument.
12215 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12216 'self' argument.
12217
12218 2014-02-19 Tom Tromey <tromey@redhat.com>
12219
12220 * target.h (struct target_ops) <to_post_attach>: Add argument.
12221 (target_post_attach): Add argument.
12222 * target.c (debug_to_post_attach): Add argument.
12223 (update_current_target): Update.
12224 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12225 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12226 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12227 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12228 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12229
12230 2014-02-19 Tom Tromey <tromey@redhat.com>
12231
12232 * windows-nat.c (windows_close): Add 'self' argument.
12233 * tracepoint.c (tfile_close): Add 'self' argument.
12234 * target.h (struct target_ops) <to_close>: Add argument.
12235 * target.c (target_close): Add argument.
12236 (update_current_target): Update.
12237 * remote.c (remote_close): Add 'self' argument.
12238 * remote-sim.c (gdbsim_close): Add 'self' argument.
12239 * remote-mips.c (mips_close): Add 'self' argument.
12240 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12241 * record-full.c (record_full_close): Add 'self' argument.
12242 * record-btrace.c (record_btrace_close): Add 'self' argument.
12243 * monitor.h (monitor_close): Add 'self' argument.
12244 * monitor.c (monitor_close): Add 'self' argument.
12245 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12246 * linux-nat.c (linux_nat_close): Add argument.
12247 * go32-nat.c (go32_close): Add 'self' argument.
12248 * exec.c (exec_close_1): Add 'self' argument.
12249 * ctf.c (ctf_close): Add 'self' argument.
12250 * corelow.c (core_close): Add 'self' argument.
12251 (core_close_cleanup): Update.
12252 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12253 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12254
12255 2014-02-19 Tom Tromey <tromey@redhat.com>
12256
12257 * remote.c (remote_load): New function.
12258 (init_remote_ops): Use it.
12259
12260 2014-02-19 Tom Tromey <tromey@redhat.com>
12261
12262 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12263 argument.
12264 * common/linux-btrace.h (linux_supports_btrace): Update.
12265 * remote.c (remote_supports_btrace): Add "self" argument.
12266 * target-delegates.c: Rebuild.
12267 * target.c (target_supports_btrace): Remove.
12268 * target.h (struct target_ops) <to_supports_btrace>: Add
12269 target_ops argument.
12270 (target_supports_btrace): New define.
12271
12272 2014-02-19 Tom Tromey <tromey@redhat.com>
12273
12274 * record-full.c (record_full_beneath_to_resume_ops)
12275 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12276 (record_full_beneath_to_wait)
12277 (record_full_beneath_to_store_registers_ops)
12278 (record_full_beneath_to_store_registers)
12279 (record_full_beneath_to_xfer_partial_ops)
12280 (record_full_beneath_to_xfer_partial)
12281 (record_full_beneath_to_insert_breakpoint_ops)
12282 (record_full_beneath_to_insert_breakpoint)
12283 (record_full_beneath_to_remove_breakpoint_ops)
12284 (record_full_beneath_to_remove_breakpoint)
12285 (record_full_beneath_to_stopped_by_watchpoint)
12286 (record_full_beneath_to_stopped_data_address)
12287 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12288 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12289 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12290 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12291 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12292 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12293 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12294 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12295 (record_full_resume, record_full_wait_1)
12296 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12297 (record_full_store_registers, record_full_xfer_partial)
12298 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12299 (record_full_async, record_full_core_xfer_partial): Use target
12300 delegation.
12301 * target-delegates.c: Rebuild.
12302 * target.c (current_xfer_partial): Remove.
12303 (update_current_target): Do not INHERIT or de_fault
12304 to_insert_breakpoint, to_remove_breakpoint,
12305 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12306 to_is_async_p, to_async. Do not set to_xfer_partial field.
12307 (default_xfer_partial): Simplify.
12308 (current_xfer_partial): Remove.
12309 (target_wait, target_resume): Simplify.
12310 (find_default_can_async_p, find_default_is_async_p): Update.
12311 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12312 to_xfer_partial, to_stopped_by_watchpoint,
12313 to_stopped_data_address.
12314 (target_store_registers): Simplify.
12315 (forward_target_remove_breakpoint)
12316 (forward_target_insert_breakpoint): Remove.
12317 (target_remove_breakpoint, target_insert_breakpoint)
12318 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12319 * target.h (struct target_ops) <to_resume, to_wait,
12320 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12321 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12322 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12323 markup.
12324 (forward_target_remove_breakpoint)
12325 (forward_target_insert_breakpoint): Remove.
12326 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12327 directly.
12328 (record_btrace_insert_breakpoint): Delegate directly.
12329
12330 2014-02-19 Tom Tromey <tromey@redhat.com>
12331
12332 PR build/7701:
12333 * target-delegates.c: New file.
12334 * target.c: Include target-delegates.c.
12335 (init_dummy_target): Call install_dummy_methods.
12336 (complete_target_initialization): Call install_delegators.
12337 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12338 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12339 * make-target-delegates: New file.
12340
12341 2014-02-19 Tom Tromey <tromey@redhat.com>
12342
12343 * record.c (find_record_target): Use find_target_at.
12344 * target.c (find_target_at): New function.
12345 * target.h (find_target_at): Declare.
12346
12347 2014-02-19 Tom Tromey <tromey@redhat.com>
12348
12349 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12350 Add 'ops' argument.
12351 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12352 'ops' argument.
12353 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12354 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12355 'ops' argument.
12356 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12357 argument.
12358 * linux-nat.c (save_sigtrap): Update.
12359 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12360 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12361 (linux_nat_close): Update.
12362 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12363 argument.
12364 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12365 argument.
12366 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12367 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12368 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12369 (tmp_to_async): Add 'ops' argument.
12370 (record_full_stopped_by_watchpoint, record_full_async)
12371 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12372 argument.
12373 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12374 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12375 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12376 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12377 (remote_is_async_p, remote_async): Add 'ops' argument.
12378 (remote_stopped_data_address): Update.
12379 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12380 * target.c (update_current_target)
12381 (find_default_can_async_p, find_default_is_async_p): Update.
12382 (init_dummy_target): Update.
12383 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12384 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12385 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12386 (target_can_async_p, target_is_async_p, target_async)
12387 (target_stopped_by_watchpoint): Update.
12388
12389 2014-02-19 Yao Qi <yao@codesourcery.com>
12390
12391 PR gdb/16220
12392 * gdbarch.sh: Remove startup_gdbarch.
12393 * gdbarch.c: Regenerated.
12394 * gdbarch.h: Likewise.
12395
12396 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12397
12398 * rl78-tdep.c (rl78_g10_register_name): New function.
12399 (rl78_return_value): Add g10 support.
12400 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12401 g10.
12402
12403 2014-02-17 Doug Evans <xdje42@gmail.com>
12404
12405 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12406 (SUBDIR_GUILE_SRCS): Ditto.
12407 (scm-gsmob.o): Ditto.
12408
12409 2014-02-17 Yao Qi <yao@codesourcery.com>
12410
12411 * gnu-nat.c (ILL_RPC): Declare defined function.
12412
12413 2014-02-17 Yao Qi <yao@codesourcery.com>
12414
12415 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12416 mach_msg_type_number_t.
12417 (gnu_write_inferior): Likewise.
12418
12419 2014-02-17 Yao Qi <yao@codesourcery.com>
12420
12421 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12422 in format string.
12423 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12424 (inf_validate_procs, inf_signal): Likewise.
12425 (S_exception_raise_request): Likewise.
12426 (do_mach_notify_dead_name): Likewise.
12427 (steal_exc_port): Likewise.
12428 (gnu_read_inferior): Change 'copy_count''s type to
12429 mach_msg_type_number_t.
12430 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12431 format string.
12432
12433 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12434
12435 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12436 flag. Adjust all users; in particular...
12437 (gnu_wait): ..., don't decrement its value in here...
12438 (gnu_create_inferior): ..., and instead set the flag in here,
12439 around the startup_inferior call, and call that one with
12440 START_INFERIOR_TRAPS_EXPECTED.
12441
12442 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12443 (ILL_RPC): ... new macro.
12444 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12445 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12446 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12447 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12448 functions with ILL_RPC macro.
12449 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12450 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12451 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12452 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12453 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12454 (S_proc_getlogin_reply, S_proc_getsid_reply)
12455 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12456 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12457 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12458 (S_proc_getnports_reply, S_proc_is_important_reply)
12459 (S_proc_get_code_reply): New stub functions, generated with
12460 ILL_RPC macro.
12461
12462 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12463 collected the type check structures.
12464
12465 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12466
12467 2014-02-14 Doug Evans <dje@google.com>
12468
12469 * target.c (target_write_partial): Fix result type.
12470
12471 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12472
12473 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12474 the proper offsets to access fpregset_t.
12475
12476 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12477
12478 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12479 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12480 * h8300-tdep.c (setmachinelist): Remove global.
12481 * hppa-tdep.c (hppa_sigtramp): Remove global.
12482 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12483 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12484 * ravenscar-thread.c (update_target_observer): Remove global.
12485 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12486
12487 2014-02-12 Tom Tromey <tromey@redhat.com>
12488
12489 * common/rsp-low.c: Update comments.
12490 * common/rsp-low.h: Update comments.
12491
12492 2014-02-12 Tom Tromey <tromey@redhat.com>
12493
12494 * common/rsp-low.c (convert_ascii_to_int): Remove.
12495 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12496
12497 2014-02-12 Tom Tromey <tromey@redhat.com>
12498
12499 * common/rsp-low.h (unhexify): Don't declare.
12500 * common/rsp-low.c (unhexify): Remove.
12501
12502 2014-02-12 Tom Tromey <tromey@redhat.com>
12503
12504 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12505 * common/rsp-low.c (convert_int_to_ascii): Remove.
12506
12507 2014-02-12 Tom Tromey <tromey@redhat.com>
12508
12509 * common/rsp-low.h (hexify): Don't declare.
12510 * common/rsp-low.c (hexify): Remove.
12511
12512 2014-02-12 Tom Tromey <tromey@redhat.com>
12513
12514 * common/rsp-low.c (hexify): Never take strlen of argument.
12515
12516 2014-02-12 Tom Tromey <tromey@redhat.com>
12517
12518 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12519 * remote.c (extended_remote_run, remote_rcmd)
12520 (remote_download_trace_state_variable, remote_save_trace_data)
12521 (remote_set_trace_notes): Update.
12522 * tracepoint.c (encode_source_string, tfile_write_status)
12523 (tfile_write_uploaded_tsv): Update.
12524
12525 2014-02-12 Tom Tromey <tromey@redhat.com>
12526
12527 * tracepoint.c: Include rsp-low.h.
12528 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12529 * remote.c: Include rsp-low.h.
12530 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12531 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12532 (remote_unescape_input): Move to common/rsp-low.c.
12533 * common/rsp-low.h: New file.
12534 * common/rsp-low.c: New file.
12535 * Makefile.in (SFILES): Add common/rsp-low.c.
12536 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12537 (COMMON_OBS): Add rsp-low.o.
12538 (rsp-low.o): New target.
12539
12540 2014-02-12 Tom Tromey <tromey@redhat.com>
12541
12542 * utils.h: Include print-utils.h.
12543 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12544 (int_string, core_addr_to_string, core_addr_to_string_nz)
12545 (hex_string, hex_string_custom): Don't declare.
12546 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12547 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12548 (hex_string_custom, int_string, core_addr_to_string)
12549 (core_addr_to_string_nz, host_address_to_string): Move to
12550 common/print-utils.c.
12551 * common/print-utils.h: New file.
12552 * common/print-utils.c: New file
12553 * Makefile.in (SFILES): Add common/print-utils.c.
12554 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12555 (COMMON_OBS): Add print-utils.o.
12556 (print-utils.o): New target.
12557
12558 2014-02-12 Tom Tromey <tromey@redhat.com>
12559
12560 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12561
12562 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12563
12564 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12565
12566 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12567
12568 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12569 if a PT_IO ptrace request returns sucessfully but indicates that 0
12570 bytes were transferred.
12571
12572 2014-02-12 Pedro Alves <palves@redhat.com>
12573 Kevin Buettner <kevinb@redhat.com>
12574
12575 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12576 TYPE_INSTANCE_FLAG_CODE_SPACE.
12577
12578 2014-02-12 Pedro Alves <palves@redhat.com>
12579
12580 * h8300-tdep.c (pseudo_from_raw_register)
12581 (raw_from_pseudo_register): New functions.
12582 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12583 them.
12584
12585 2014-02-12 Pedro Alves <palves@redhat.com>
12586
12587 * h8300-tdep.c (h8300_register_sim_regno): New function.
12588 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12589 gdbarch_register_sim_regno hook.
12590
12591 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12592
12593 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12594
12595 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12596
12597 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12598
12599 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12600
12601 * obsd-tdep.h (obsd_init_abi): New prototype.
12602 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12603 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12604 (obsd_init_abi): New functions.
12605 * i386obsd-tdep.c: Include "obsd-tdep.h".
12606 (i386obsd_init_abi): Call obsd_init_abi.
12607 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12608 (amd64obsd_init_abi): Call obsd_init_abi.
12609 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12610 obsd-tdep.c to gdb_target_obs.
12611
12612 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12613
12614 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12615 double float arguments to 16-byte in the argument slots.
12616
12617 2014-02-11 Doug Evans <xdje42@gmail.com>
12618
12619 * configure.ac: Don't crash if pkg-config is not found and guile
12620 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12621 in guile checks.
12622 * configure: Regenerate.
12623
12624 2014-02-11 Yao Qi <yao@codesourcery.com>
12625
12626 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12627 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12628 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12629 * gnu-nat.c (gnu_xfer_memory): Likewise.
12630 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12631 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12632 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12633 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12634
12635 2014-02-11 Yao Qi <yao@codesourcery.com>
12636
12637 * target.h (enum target_xfer_error): Rename to ...
12638 (enum target_xfer_status): ... it. New. All users updated.
12639 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12640 New.
12641 (TARGET_XFER_STATUS_ERROR_P): New macro.
12642 (target_xfer_error_to_string): Remove declaration.
12643 (target_xfer_status_to_string): Declare.
12644 (target_xfer_partial_ftype): Adjust it.
12645 (struct target_ops) <to_xfer_partial>: Return
12646 target_xfer_status. Add argument xfered_len. Update
12647 comments.
12648 * target.c (target_xfer_error_to_string): Rename to ...
12649 (target_xfer_status_to_string): ... it. New. All callers
12650 updated.
12651 (target_read_live_memory): Likewise. Call target_xfer_partial
12652 instead of target_read.
12653 (memory_xfer_live_readonly_partial): Return
12654 target_xfer_status. Add argument xfered_len.
12655 (raw_memory_xfer_partial): Likewise.
12656 (memory_xfer_partial_1): Likewise.
12657 (memory_xfer_partial): Likewise.
12658 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12659 properly. Update debug message.
12660 (default_xfer_partial, current_xfer_partial): Likewise.
12661 (target_write_partial): Likewise.
12662 (target_read_partial): Likewise. All callers updated.
12663 (read_whatever_is_readable): Likewise.
12664 (target_write_with_progress): Likewise.
12665 (target_read_alloc_1): Likewise.
12666
12667 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12668 * auxv.c (procfs_xfer_auxv): Likewise.
12669 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12670 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12671 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12672 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12673 * corefile.c (read_memory): Adjust.
12674 * corelow.c (core_xfer_partial): Likewise.
12675 * ctf.c (ctf_xfer_partial): Likewise.
12676 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12677 updated.
12678 (darwin_xfer_partial): Likewise.
12679 * exec.c (section_table_xfer_memory_partial): Likewise. All
12680 callers updated.
12681 (exec_xfer_partial): Likewise.
12682 * exec.h (section_table_xfer_memory_partial): Update
12683 declaration.
12684 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12685 negative.
12686 (gnu_xfer_partial): Likewise.
12687 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12688 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12689 (ia64_hpux_xfer_solib_got): Likewise.
12690 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12691 type of 'partial_len' to ULONGEST.
12692 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12693 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12694 (linux_nat_xfer_partial): Likewise.
12695 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12696 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12697 * monitor.c (monitor_xfer_memory): Likewise.
12698 (monitor_xfer_partial): Likewise.
12699 * procfs.c (procfs_xfer_partial): Likewise.
12700 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12701 * record-full.c (record_full_xfer_partial): Likewise.
12702 (record_full_core_xfer_partial): Likewise.
12703 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12704 (gdbsim_xfer_partial): Likewise.
12705 * remote.c (remote_write_bytes_aux): Likewise. All callers
12706 updated.
12707 (remote_write_bytes, remote_read_bytes): Likewise. All
12708 callers updated.
12709 (remote_flash_erase): Likewise. All callers updated.
12710 (remote_write_qxfer): Likewise. All callers updated.
12711 (remote_read_qxfer): Likewise. All callers updated.
12712 (remote_xfer_partial): Likewise.
12713 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12714 (rs6000_xfer_shared_libraries): Likewise.
12715 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12716 (sol_thread_xfer_partial): Likewise.
12717 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12718 (sparc_xfer_partial): Likewise.
12719 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12720 updated.
12721 (spu_xfer_partial): Likewise.
12722 * spu-multiarch.c (spu_xfer_partial): Likewise.
12723 * tracepoint.c (tfile_xfer_partial): Likewise.
12724 * windows-nat.c (windows_xfer_memory): Likewise.
12725 (windows_xfer_shared_libraries): Likewise.
12726 (windows_xfer_partial): Likewise.
12727 * valprint.c: Replace 'target_xfer_error' with
12728 'target_xfer_status' in comments.
12729
12730 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12731
12732 Checked in by Joel Brobecker <brobecker@adacore.com>.
12733 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12734
12735 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12736
12737 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12738 function parameters.
12739
12740 2014-02-10 Will Newton <will.newton@linaro.org>
12741
12742 * elfread.c (elf_rel_plt_read): Look for a .got section if
12743 looking up .got.plt fails.
12744 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12745 on address passed to elf_gnu_ifunc_record_cache.
12746 (elf_gnu_ifunc_resolve_addr): Likewise.
12747 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12748
12749 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12750
12751 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12752 (X_RETTURN): New macro.
12753 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12754
12755 * sparc64-tdep.c (sparc64_init_abi): Hook
12756 sparc_in_function_epilogue_p.
12757
12758 2014-02-10 Gary Benson <gbenson@redhat.com>
12759
12760 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12761 Rename name_matcher to symbol_matcher.
12762
12763 2014-02-10 Gary Benson <gbenson@redhat.com>
12764
12765 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12766 Use expand_symtabs_file_matcher_ftype and
12767 expand_symtabs_symbol_matcher_ftype.
12768
12769 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12770
12771 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12772 (struct ada_symbol_cache): New.
12773 (ada_free_symbol_cache): Forward declare.
12774 (struct ada_pspace_data): New.
12775 (ada_pspace_data_handle): New static global.
12776 (get_ada_pspace_data, ada_pspace_data_cleanup)
12777 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12778 (cache_space, cache): Delete, now folded inside struct
12779 ada_pspace_data.
12780 (ada_get_symbol_cache): New function.
12781 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12782 implementation.
12783 (_initialize_ada_language): Remove initialization of cache_space.
12784 Move call to observer_attach_inferior_exit up, grouping it
12785 with the other observer registrations inside this function.
12786 Rename command to be more general. Add call to
12787 register_program_space_data_with_cleanup.
12788
12789 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12790
12791 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12792 ada_new_objfile_observer.
12793 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12794 (_initialize_tasks): Update uses of ada_new_objfile_observer
12795 and ada_tasks_normal_stop_observer.
12796
12797 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12798
12799 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12800 returned by the 'Length attribute to integer.
12801
12802 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12803
12804 * ada-lang.c (_initialize_ada_language): Initialize
12805 cache_space obstack.
12806
12807 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12808
12809 * ada-lang.c (HASH_SIZE): New macro.
12810 (struct cache_entry): New type.
12811 (cache_space, cache): New static globals.
12812 (ada_clear_symbol_cache, find_entry): New functions.
12813 (lookup_cached_symbol, cache_symbol): Implement.
12814 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12815 (_initialize_ada_language): Attach ada_new_objfile_observer
12816 and ada_free_objfile_observer.
12817
12818 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12819
12820 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12821 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12822 struct block * parameter.
12823 (ada_lookup_symbol_list_worker): Constify local variable "block".
12824 Remove cast which is no longer necessary.
12825
12826 2014-02-10 Doug Evans <xdje42@gmail.com>
12827
12828 Add Guile as an extension language.
12829 * NEWS: Mention Guile scripting.
12830 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12831 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12832 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12833 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12834 (CLIBS): Add GUILE_LIBS.
12835 (install-guile): New rule.
12836 (guile.o): New rule.
12837 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12838 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12839 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12840 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12841 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12842 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12843 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12844 * configure.ac: New option --with-guile.
12845 * configure: Regenerate.
12846 * config.in: Regenerate.
12847 * auto-load.c: Remove #include "python/python.h". Add #include
12848 "gdb/section-scripts.h".
12849 (source_section_scripts): Handle Guile scripts.
12850 (_initialize_auto_load): Add name of Guile objfile script to
12851 scripts-directory help text.
12852 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12853 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12854 (struct breakpoint): New member scm_bp_object.
12855 * defs.h (enum command_control_type): New value guile_control.
12856 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12857 "extension.h".
12858 (show_user): Update comment.
12859 (_initialize_cli_cmds): Update help text for "show user". Update help
12860 text for max-user-call-depth.
12861 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12862 "extension.h".
12863 (multi_line_command_p): Add guile_control.
12864 (print_command_lines): Handle guile_control.
12865 (execute_control_command, recurse_read_control_structure): Ditto.
12866 (process_next_line): Recognize "guile" commands.
12867 * disasm.c (gdb_disassemble_info): Make non-static.
12868 * disasm.h: #include "dis-asm.h".
12869 (struct gdbarch): Add forward decl.
12870 (gdb_disassemble_info): Declare.
12871 * extension.c: #include "guile/guile.h".
12872 (extension_languages): Add guile.
12873 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12874 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12875 * gdbtypes.c (get_unsigned_type_max): New function.
12876 (get_signed_type_minmax): New function.
12877 * gdbtypes.h (get_unsigned_type_max): Declare.
12878 (get_signed_type_minmax): Declare.
12879 * guile/README: New file.
12880 * guile/guile-internal.h: New file.
12881 * guile/guile.c: New file.
12882 * guile/guile.h: New file.
12883 * guile/scm-arch.c: New file.
12884 * guile/scm-auto-load.c: New file.
12885 * guile/scm-block.c: New file.
12886 * guile/scm-breakpoint.c: New file.
12887 * guile/scm-disasm.c: New file.
12888 * guile/scm-exception.c: New file.
12889 * guile/scm-frame.c: New file.
12890 * guile/scm-gsmob.c: New file.
12891 * guile/scm-iterator.c: New file.
12892 * guile/scm-lazy-string.c: New file.
12893 * guile/scm-math.c: New file.
12894 * guile/scm-objfile.c: New file.
12895 * guile/scm-ports.c: New file.
12896 * guile/scm-pretty-print.c: New file.
12897 * guile/scm-safe-call.c: New file.
12898 * guile/scm-string.c: New file.
12899 * guile/scm-symbol.c: New file.
12900 * guile/scm-symtab.c: New file.
12901 * guile/scm-type.c: New file.
12902 * guile/scm-utils.c: New file.
12903 * guile/scm-value.c: New file.
12904 * guile/lib/gdb.scm: New file.
12905 * guile/lib/gdb/boot.scm: New file.
12906 * guile/lib/gdb/experimental.scm: New file.
12907 * guile/lib/gdb/init.scm: New file.
12908 * guile/lib/gdb/iterator.scm: New file.
12909 * guile/lib/gdb/printing.scm: New file.
12910 * guile/lib/gdb/types.scm: New file.
12911 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12912 (VPATH): Add $(GUILE_SRCDIR).
12913 (GUILE_DIR): New variable.
12914 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12915 (all): Add stamp-guile dependency.
12916 (stamp-guile): New rule.
12917 (clean-guile, install-guile, uninstall-guile): New rules.
12918 (install-only): Add install-guile dependency.
12919 (uninstall): Add uninstall-guile dependency.
12920 (clean): Add clean-guile dependency.
12921
12922 2014-02-09 Doug Evans <xdje42@gmail.com>
12923
12924 Revert this patch (which I approved, mea culpa).
12925
12926 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12927
12928 * Makefile.in (all-lib): Remove.
12929 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12930
12931 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12932
12933 Fix Python stack corruption.
12934 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12935 gdb_py_longest.
12936
12937 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12938
12939 * Makefile.in (all-lib): Remove.
12940 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12941
12942 2014-02-07 Doug Evans <dje@google.com>
12943
12944 * extension-priv.h (extension_language_script_ops): Add comment.
12945 (extension_language_ops): Add comment.
12946 (active_ext_lang_state): Fix typo in comment.
12947
12948 2014-02-07 Pedro Alves <palves@redhat.com>
12949
12950 PR breakpoints/16292
12951 * infrun.c (handle_signal_stop) <signal arrives while stepping
12952 over a breakpoint>: Switch back to the stepping thread.
12953
12954 2014-02-07 Yao Qi <yao@codesourcery.com>
12955
12956 * target.c (target_xfer_partial): Return zero if LEN is zero.
12957
12958 2014-02-07 Yao Qi <yao@codesourcery.com>
12959
12960 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12961 (ld_so_xfer_auxv): Likewise.
12962 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12963 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12964 * corelow.c (core_xfer_partial): Likewise.
12965 * ctf.c (ctf_xfer_partial): Likewise.
12966 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12967 (darwin_xfer_partial): Likewise.
12968 * exec.c (exec_xfer_partial): Likewise.
12969 * gnu-nat.c (gnu_xfer_partial): Likewise.
12970 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12971 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12972 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12973 * linux-nat.c (linux_xfer_siginfo): Likewise.
12974 (linux_proc_xfer_spu): Likewise.
12975 * procfs.c (procfs_xfer_partial): Likewise.
12976 * record-full.c (record_full_xfer_partial): Likewise.
12977 (record_full_core_xfer_partial): Likewise.
12978 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12979 * remote.c (remote_write_qxfer): Likewise.
12980 (remote_write_qxfer, remote_read_qxfer): Likewise.
12981 (remote_xfer_partial): Likewise.
12982 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12983 (rs6000_xfer_shared_libraries): Likewise.
12984 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12985 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12986 (spu_xfer_partial): Likewise.
12987 * target.c (memory_xfer_partial_1): Likewise.
12988 * tracepoint.c (tfile_xfer_partial): Likewise.
12989 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
12990 (windows_xfer_partial): Likewise.
12991
12992 2014-02-07 Yao Qi <yao@codesourcery.com>
12993
12994 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
12995 comments.
12996 (core_xfer_shared_libraries_aix): Likewise.
12997 * gdbarch.c, gdbarch.h: Regenerated.
12998 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
12999 ULONGEST. Change 'len_avail' type to ULONGEST.
13000 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13001 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13002 declaration.
13003 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13004
13005 2014-02-07 Yao Qi <yao@codesourcery.com>
13006
13007 * corefile.c (memory_error): Get 'exception' from ERR and pass
13008 'exception' to throw_error.
13009
13010 2014-02-06 Doug Evans <xdje42@gmail.com>
13011
13012 * configure.ac (libpython checking): Remove all but python.o from
13013 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13014 * configure: Regenerate.
13015
13016 * Makefile.in (SFILES): Add extension.c.
13017 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13018 (COMMON_OBS): Add extension.o.
13019 * extension.h: New file.
13020 * extension-priv.h: New file.
13021 * extension.c: New file.
13022
13023 * python/python-internal.h: #include "extension.h".
13024 (gdbpy_auto_load_enabled): Declare.
13025 (gdbpy_apply_val_pretty_printer): Declare.
13026 (gdbpy_apply_frame_filter): Declare.
13027 (gdbpy_preserve_values): Declare.
13028 (gdbpy_breakpoint_cond_says_stop): Declare.
13029 (gdbpy_breakpoint_has_cond): Declare.
13030 (void source_python_script_for_objfile): Delete.
13031 * python/python.c: #include "extension-priv.h".
13032 Delete inclusion of "observer.h".
13033 (extension_language_python): Moved here and renamed from
13034 script_language_python in py-auto-load.c.
13035 Redefined to be of type extension_language_defn.
13036 (python_extension_script_ops): New global.
13037 (python_extension_ops): New global.
13038 (struct python_env): New member previous_active.
13039 (restore_python_env): Call restore_active_ext_lang.
13040 (ensure_python_env): Call set_active_ext_lang.
13041 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13042 New arg extlang.
13043 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13044 New arg extlang.
13045 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13046 New arg extlang.
13047 (gdbpy_eval_from_control_command): Renamed from
13048 eval_python_from_control_command, made static. New arg extlang.
13049 (gdbpy_source_script) Renamed from source_python_script, made static.
13050 New arg extlang.
13051 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13052 result to int. New arg extlang.
13053 (gdbpy_source_objfile_script): Renamed from
13054 source_python_script_for_objfile, made static. New arg extlang.
13055 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13056 static. New args extlang, extlang_printers. Change result type to
13057 "void".
13058 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13059 static. New arg extlang. Rename arg printers to extlang_printers
13060 and change type to ext_lang_type_printers *.
13061 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13062 static. Replace argument arg with extlang, extlang_printers.
13063 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13064 (!HAVE_PYTHON, source_python_script): Delete.
13065 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13066 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13067 (!HAVE_PYTHON, start_type_printers): Delete.
13068 (!HAVE_PYTHON, apply_type_printers): Delete.
13069 (!HAVE_PYTHON, free_type_printers): Delete.
13070 (_initialize_python): Delete call to observer_attach_before_prompt.
13071 (finalize_python): Set/restore active extension language.
13072 (gdbpy_finish_initialization) Renamed from
13073 finish_python_initialization, made static. New arg extlang.
13074 (gdbpy_initialized): New function.
13075 * python/python.h: #include "extension.h". Delete #include
13076 "value.h", "mi/mi-cmds.h".
13077 (extension_language_python): Declare.
13078 (GDBPY_AUTO_FILE_NAME): Delete.
13079 (enum py_bt_status): Moved to extension.h and renamed to
13080 ext_lang_bt_status.
13081 (enum frame_filter_flags): Moved to extension.h.
13082 (enum py_frame_args): Moved to extension.h and renamed to
13083 ext_lang_frame_args.
13084 (finish_python_initialization): Delete.
13085 (eval_python_from_control_command): Delete.
13086 (source_python_script): Delete.
13087 (apply_val_pretty_printer): Delete.
13088 (apply_frame_filter): Delete.
13089 (preserve_python_values): Delete.
13090 (gdbpy_script_language_defn): Delete.
13091 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13092 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13093
13094 * auto-load.c: #include "extension.h".
13095 (GDB_AUTO_FILE_NAME): Delete.
13096 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13097 (script_language_gdb): Delete, moved to extension.c and renamed to
13098 extension_language_gdb.
13099 (source_gdb_script_for_objfile): Delete.
13100 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13101 (loaded_script): Change type of language member to
13102 struct extension_language_defn *.
13103 (init_loaded_scripts_info): Initialize
13104 unsupported_script_warning_printed.
13105 (maybe_add_script): Make static. Change type of language arg to
13106 struct extension_language_defn *.
13107 (clear_section_scripts): Reset unsupported_script_warning_printed.
13108 (auto_load_objfile_script_1): Rewrite to use extension language API.
13109 (auto_load_objfile_script): Make public. Remove support-compiled-in
13110 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13111 (source_section_scripts): Rewrite to use extension language API.
13112 (load_auto_scripts_for_objfile): Rewrite to use
13113 auto_load_scripts_for_objfile.
13114 (collect_matching_scripts_data): Change type of language member to
13115 struct extension_language_defn *.
13116 (auto_load_info_scripts): Change type of language arg to
13117 struct extension_language_defn *.
13118 (unsupported_script_warning_print): New function.
13119 (script_not_found_warning_print): Make static.
13120 (_initialize_auto_load): Rewrite construction of scripts-directory
13121 help.
13122 * auto-load.h (struct objfile): Add forward decl.
13123 (struct script_language): Delete.
13124 (struct auto_load_pspace_info): Add forward decl.
13125 (struct extension_language_defn): Add forward decl.
13126 (maybe_add_script): Delete.
13127 (auto_load_objfile_script): Declare.
13128 (script_not_found_warning_print): Delete.
13129 (auto_load_info_scripts): Update prototype.
13130 (auto_load_gdb_scripts_enabled): Declare.
13131 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13132 auto_load_python_scripts_enabled and made public.
13133 (script_language_python): Delete, moved to python.c.
13134 (gdbpy_script_language_defn): Delete.
13135 (info_auto_load_python_scripts): Update to use
13136 extension_language_python.
13137
13138 * breakpoint.c (condition_command): Replace call to
13139 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13140 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13141 with call to breakpoint_ext_lang_cond_says_stop.
13142 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13143 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13144 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13145 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13146 New arg slang.
13147 (local_setattro): Print name of extension language with existing
13148 stop condition.
13149
13150 * valprint.c (val_print, value_print): Update to call
13151 apply_ext_lang_val_pretty_printer.
13152 * cp-valprint.c (cp_print_value): Update call to
13153 apply_ext_lang_val_pretty_printer.
13154 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13155 (gdbpy_apply_val_pretty_printer): Renamed from
13156 apply_val_pretty_printer. New arg extlang.
13157 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13158
13159 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13160 extension language API.
13161 * cli/cli-script.c (execute_control_command): Update to call
13162 eval_ext_lang_from_control_command.
13163
13164 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13165 enum ext_lang_bt_status values. Update call to
13166 apply_ext_lang_frame_filter.
13167 (mi_cmd_stack_list_locals): Ditto.
13168 (mi_cmd_stack_list_args): Ditto.
13169 (mi_cmd_stack_list_variables): Ditto.
13170 * mi/mi-main.c: Delete #include "python/python-internal.h".
13171 Add #include "extension.h".
13172 (mi_cmd_list_features): Replace reference to python internal variable
13173 gdb_python_initialized with call to ext_lang_initialized_p.
13174
13175 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13176 Update to use enum ext_lang_frame_args. Update to call
13177 apply_ext_lang_frame_filter.
13178 * python/py-framefilter.c (extract_sym): Update to use enum
13179 ext_lang_bt_status.
13180 (extract_value, py_print_type, py_print_value): Ditto.
13181 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13182 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13183 (py_print_frame): Ditto.
13184 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13185 New arg extlang. Update to use enum ext_lang_bt_status.
13186
13187 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13188 finish_python_initialization. Replace with call to
13189 finish_ext_lang_initialization.
13190
13191 * typeprint.c (do_free_global_table): Update to call
13192 free_ext_lang_type_printers.
13193 (create_global_typedef_table): Update to call
13194 start_ext_lang_type_printers.
13195 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13196 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13197 (type_print_options): Change type of global_printers from "void *"
13198 to "struct ext_lang_type_printers *".
13199
13200 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13201 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13202 (gdbpy_preserve_values): Renamed from preserve_python_values.
13203 New arg extlang.
13204 (!HAVE_PYTHON, preserve_python_values): Delete.
13205
13206 * utils.c (quit_flag): Delete, moved to extension.c.
13207 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13208 extension.c.
13209
13210 * eval.c: Delete #include "python/python.h".
13211 * main.c: Delete #include "python/python.h".
13212
13213 * defs.h: Update comment.
13214
13215 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13216
13217 GDB 7.7 released.
13218
13219 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13220
13221 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13222 defined.
13223
13224 2014-02-05 Yao Qi <yao@codesourcery.com>
13225
13226 * remote.c (remote_pass_signals): Remove local 'buf' and use
13227 rs->buf.
13228 (remote_program_signals): Likewise.
13229
13230 2014-02-05 Yao Qi <yao@codesourcery.com>
13231
13232 * ctf.c: Include "inferior.h" and "gdbthread.h".
13233 (CTF_PID): A new macro.
13234 (ctf_open): Call inferior_appeared and add_thread_silent.
13235 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13236 (ctf_thread_alive): New function.
13237 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13238
13239 2014-02-05 Yao Qi <yao@codesourcery.com>
13240
13241 Revert this patch:
13242
13243 2013-05-24 Yao Qi <yao@codesourcery.com>
13244
13245 * tracepoint.c (TFILE_PID): Remove.
13246 (tfile_open): Don't add thread and inferior.
13247 (tfile_close): Don't set 'inferior_ptid'. Don't call
13248 exit_inferior_silent.
13249 (tfile_thread_alive): Remove.
13250 (init_tfile_ops): Don't set field 'to_thread_alive' of
13251 tfile_ops.
13252
13253 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13254
13255 * remote.c (remote_start_remote): Call remote_check_symbols even
13256 if only symbol-file (not file) has been given.
13257
13258 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13259
13260 * gdbarch.sh (skip_entrypoint): New callback.
13261 * gdbarch.c, gdbarch.h: Regenerate.
13262 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13263 * infrun.c (fill_in_stop_func): Likewise.
13264 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13265 (ppc_elfv2_elf_make_msymbol_special): New function.
13266 (ppc_elfv2_skip_entrypoint): Likewise.
13267 (ppc_linux_init_abi): Install them for ELFv2.
13268
13269 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13270
13271 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13272 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13273 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13274 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13275 structures returned in GPRs.
13276
13277 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13278
13279 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13280 offset to the stack parameter list for the ELFv2 ABI.
13281
13282 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13283
13284 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13285 set_gdbarch_convert_from_func_ptr_addr and
13286 set_gdbarch_elf_make_msymbol_special for ELFv1.
13287 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13288 function descriptors on ELFv1.
13289 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13290 set up r12 at function entry.
13291
13292 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13293
13294 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13295 (struct gdbarch_tdep): New member elf_abi.
13296
13297 * rs6000-tdep.c: Include "elf/ppc64.h".
13298 (rs6000_gdbarch_init): Detect ELF ABI version.
13299
13300 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13301
13302 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13303 within a register pair holding a DFP 128-bit value on little-endian.
13304 (ppc64_sysv_abi_return_value_base): Likewise.
13305 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13306 (dfp_pseudo_register_write): Likewise.
13307
13308 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13309
13310 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13311 offset on little-endian when passing _Decimal32.
13312 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13313
13314 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13315
13316 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13317 of the overlapped FP register within the VSX register on little-
13318 endian platforms.
13319 (efpr_pseudo_register_write): Likewise.
13320
13321 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13322
13323 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13324 offset on little-endian when passing small structures.
13325
13326 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13327
13328 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13329 (struct ppc64_sysv_argpos): New data structure.
13330 (ppc64_sysv_abi_push_float): Remove.
13331 (ppc64_sysv_abi_push_val): New function.
13332 (ppc64_sysv_abi_push_integer): Likewise.
13333 (ppc64_sysv_abi_push_freg): Likewise.
13334 (ppc64_sysv_abi_push_vreg): Likewise.
13335 (ppc64_sysv_abi_push_param): Likewise.
13336 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13337 (ppc64_sysv_abi_return_value_base): New function.
13338 (ppc64_sysv_abi_return_value): Refactor to use it.
13339
13340 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13341
13342 * NEWS: Document new target powerpc64le-*-linux*.
13343
13344 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13345
13346 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13347 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13348 core dumps.
13349 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13350 register set used in ELF core dumps. Add floating-point register set.
13351
13352 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13353
13354 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13355 dwarf2_to_gdb[] table using symbolic constants. Adjust
13356 penultimate entry from number representing the PC register
13357 to symbolic constant representing the MDR register. Add
13358 constant for the PC register to the end of the table.
13359
13360 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13361
13362 * bsd-kvm.c: Include <sys/param.h>
13363
13364 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13365
13366 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13367
13368 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13369
13370 * ada-lang.h (clear_ada_sym_cache): Delete.
13371
13372 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13373
13374 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13375
13376 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13377
13378 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13379 the sigreturn register save area only if the syscall is
13380 sigreturn.
13381
13382 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13383
13384 * valops.c (value_slice): Minor reformatting.
13385
13386 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13387
13388 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13389
13390 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13391
13392 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13393 New static globals.
13394 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13395 (ada_ignore_descriptive_types_p): New static global.
13396 (find_parallel_type_by_descriptive_type): Return immediately
13397 if ada_ignore_descriptive_types_p is set.
13398 (_initialize_ada_language): Register new commands "maintenance
13399 set ada", "maintenance show ada", "maintenance set ada
13400 ignore-descriptive-types" and "maintenance show ada
13401 ignore-descriptive-types".
13402 * NEWS: Add entry for new "maint ada set/show
13403 ignore-descriptive-types" commands.
13404
13405 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13406
13407 * record-btrace.c (record_btrace_close): Call btrace_teardown
13408 for all threads.
13409
13410 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13411
13412 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13413 "ui-out.h".
13414
13415 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13416
13417 * ada-typeprint (type_is_full_subrange_of_target_type):
13418 New function.
13419 (print_range): Add parameter bounds_prefered_p. If not set,
13420 try printing range types using the name of their base type.
13421 (print_range_type): Add parameter bounds_prefered_p.
13422 Use it in call to print_range.
13423 (print_array_type, ada_print_type): Update calls to print_range
13424 and print_range_type.
13425
13426 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13427
13428 * ada-typeprint.c (print_array_type, print_choices, print_range)
13429 (print_range_bound, print_dynamic_range_bound, print_range_type):
13430 Remove declaration.
13431
13432 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13433
13434 * ada-typeprint.c (print_range): Add missing empty line
13435 after local declaration.
13436
13437 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13438
13439 * ada-valprint.c (print_optional_low_bound): Get index_type's
13440 target type for as long as it is a TYPE_CODE_RANGE.
13441
13442 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13443
13444 * procfs.c (procfs_make_note_section): Remove assertion and
13445 associated comment.
13446
13447 2014-01-24 Yao Qi <yao@codesourcery.com>
13448
13449 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13450 * corelow.c (get_core_siginfo): Likewise.
13451
13452 2014-01-24 Yao Qi <yao@codesourcery.com>
13453
13454 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13455 ULONGEST. Don't check 'len' is negative.
13456 (remote_write_bytes): Change type of 'len' to ULONGEST.
13457
13458 2014-01-23 Tom Tromey <tromey@redhat.com>
13459
13460 PR python/16485:
13461 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13462 Handle exception from frame.block.
13463 (FrameVars.fetch_frame_locals): Likewise.
13464
13465 2014-01-23 Tom Tromey <tromey@redhat.com>
13466
13467 PR python/16487:
13468 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13469 on a NULL pointer. Move "goto error" to correct place.
13470
13471 2014-01-23 Tom Tromey <tromey@redhat.com>
13472
13473 PR python/16491:
13474 * python/py-framefilter.c (apply_frame_filter): Call
13475 ensure_python_env after computing gdbarch.
13476
13477 2014-01-23 Yao Qi <yao@codesourcery.com>
13478
13479 * target.c (raw_memory_xfer_partial): Change argument type
13480 from void * to gdb_byte *.
13481 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13482
13483 2014-01-22 Doug Evans <dje@google.com>
13484
13485 New gdbserver option --debug-format=timestamp.
13486 * NEWS: Mention it.
13487
13488 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13489
13490 * syscalls/s390x-linux.xml: New file.
13491 * syscalls/s390-linux.xml: New file.
13492 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13493 (XML_SYSCALL_FILENAME_S390X): Likewise.
13494 (op_svc): New enum value for SVC opcode.
13495 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13496 (s390_linux_get_syscall_number): New function.
13497 (s390_gdbarch_init): Register '*get_syscall_number' and the
13498 syscall xml file name.
13499 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13500 "s390-linux.xml" and "s390x-linux.xml".
13501 * NEWS: Announce new feature.
13502
13503 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13504
13505 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13506
13507 2014-01-22 Pedro Alves <palves@redhat.com>
13508
13509 * xtensa-config.c: Include defs.h.
13510
13511 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13512
13513 * common/common-utils.h: Add "ARI:" comment beside __func__
13514 reference.
13515
13516 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13517
13518 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13519 documentation a bit.
13520
13521 2014-01-21 Roland McGrath <mcgrathr@google.com>
13522
13523 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13524 * configure: Regenerate.
13525 * aclocal.m4: Regenerate.
13526 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13527 New substituted variables.
13528 (install-strip): New target.
13529 (INSTALL_SCRIPT): New substituted variable.
13530 (FLAGS_TO_PASS): Add it.
13531 (install-only): Use $(INSTALL_SCRIPT) rather than
13532 $(INSTALL_PROGRAM) for gcore.
13533
13534 2014-01-20 Tom Tromey <tromey@redhat.com>
13535
13536 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13537 together.
13538
13539 2014-01-20 Tom Tromey <tromey@redhat.com>
13540
13541 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13542 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13543 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13544 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13545 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13546 (struct cmd_list_element) <flags>: Remove.
13547 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13548 doc_allocated>: New fields.
13549 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13550 bitfields.
13551 * maint.c (maintenance_do_deprecate): Update.
13552 * top.c (execute_command): Update.
13553
13554 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13555
13556 * xtensa-linux-nat.c: Include asm/ptrace.h.
13557
13558 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13559
13560 * Makefile.in (SFILES): Add d-support.c.
13561 (COMMON_OBS): Add d-support.o.
13562 * d-lang.h (d_parse_symbol): Add comment, now defined in
13563 d-support.c.
13564 * d-lang.c (parse_call_convention)
13565 (parse_attributes, parse_function_types)
13566 (parse_function_args, parse_type, parse_identifier)
13567 (call_convention_p, d_parse_symbol): Move functions to ...
13568 * d-support.c: ... New file.
13569
13570 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13571
13572 * d-lang.h (d_parse_symbol): Add declaration.
13573 * d-lang.c (extract_identifiers)
13574 (extract_type_info): Remove functions.
13575 (parse_call_convention, parse_attributes)
13576 (parse_function_types, parse_function_args)
13577 (parse_type, parse_identifier, call_convention_p)
13578 (d_parse_symbol): New functions.
13579 (d_demangle): Use d_parse_symbol to demangle D symbols.
13580
13581 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13582
13583 * d-lang.h (struct builtin_d_type): New data type.
13584 (builtin_d_type): Add declaration.
13585 * d-lang.c (d_language_arch_info, build_d_types)
13586 (builtin_d_type): New functions.
13587 (enum d_primitive_types): New data type.
13588 (d_language_defn): Change c_language_arch_info to
13589 d_language_arch_info.
13590 (d_type_data): New static variable.
13591 (_initialize_d_language): Initialize d_type_data.
13592
13593 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13594
13595 * d-lang.h (d_main_name): Add declaration.
13596 * d-lang.c (d_main_name): New function.
13597 * symtab.c (find_main_name): Add call to d_main_name.
13598
13599 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13600
13601 * d-lang.c (d_language_defn): Change macro_expansion_c to
13602 macro_expansion_no.
13603
13604 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13605
13606 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13607
13608 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13609
13610 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13611 gdb_exception" declaration.
13612 * remote.c (getpkt_or_notif_sane): Likewise.
13613
13614 2014-01-17 Doug Evans <dje@google.com>
13615
13616 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13617 function, contents of dirnames_to_char_ptr_vec_append moved here.
13618 (delim_string_to_char_ptr_vec): New function.
13619 (dirnames_to_char_ptr_vec_append): Rewrite.
13620 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13621
13622 2014-01-17 Doug Evans <dje@google.com>
13623
13624 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13625 and moved here ...
13626 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13627 #include "common-utils.h".
13628 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13629 * common/vec.h (VEC_ASSERT_PASS): Update.
13630 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13631 (MACH_CHECK_ERROR): Update.
13632
13633 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13634
13635 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13636 comments.
13637 * gdbarch.h: Regenerate.
13638
13639 2014-01-16 Tom Tromey <tromey@redhat.com>
13640
13641 * value.c (struct value) <regnum>: Move earlier.
13642
13643 2014-01-16 Tom Tromey <tromey@redhat.com>
13644
13645 * remote.c (extended_remote_create_inferior): Rename from
13646 extended_remote_create_inferior_1. Add "ops" argument. Remove
13647 old implementation.
13648
13649 2014-01-16 Pedro Alves <palves@redhat.com>
13650
13651 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13652 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13653 the backchain.
13654
13655 2014-01-16 Doug Evans <dje@google.com>
13656
13657 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13658
13659 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13660
13661 * btrace.h (btrace_thread_flag): New.
13662 (struct btrace_thread_info) <flags>: New.
13663 * record-btrace.c (record_btrace_resume_thread)
13664 (record_btrace_find_thread_to_move, btrace_step_no_history)
13665 (btrace_step_stopped, record_btrace_start_replaying)
13666 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13667 (record_btrace_find_resume_thread): New.
13668 (record_btrace_resume, record_btrace_wait): Extend.
13669 (record_btrace_can_execute_reverse): New.
13670 (record_btrace_open): Fail in non-stop mode.
13671 (record_btrace_set_replay): Split into this, ...
13672 (record_btrace_stop_replaying): ... this, ...
13673 (record_btrace_clear_histories): ... and this.
13674 (init_record_btrace_ops): Init to_can_execute_reverse.
13675 * NEWS: Announce it.
13676
13677 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13678
13679 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13680 (forward_target_decr_pc_after_break)
13681 (target_decr_pc_after_break): New.
13682 * target.c (forward_target_decr_pc_after_break)
13683 (target_decr_pc_after_break): New.
13684 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13685 instead of gdbarch_decr_pc_after_break.
13686 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13687 instead of gdbarch_decr_pc_after_break.
13688 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13689 instead of gdbarch_decr_pc_after_break.
13690 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13691 instead of gdbarch_decr_pc_after_break.
13692 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13693 instead of gdbarch_decr_pc_after_break.
13694 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13695 instead of gdbarch_decr_pc_after_break.
13696
13697 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13698
13699 * btrace.c: Include regcache.h.
13700 (btrace_add_pc): New.
13701 (btrace_enable): Call btrace_add_pc.
13702 (btrace_is_empty): New.
13703 * btrace.h (btrace_is_empty): New.
13704 * record-btrace.c (require_btrace, record_btrace_info): Call
13705 btrace_is_empty.
13706
13707 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13708
13709 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13710 Support delta reads.
13711 (linux_disable_btrace): Change return type.
13712 * common/linux-btrace.h (linux_read_btrace): Change parameters
13713 and return type to allow error reporting. Update users.
13714 (linux_disable_btrace): Change return type. Update users.
13715 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13716 New.
13717 (btrace_error): New.
13718 (btrace_block) <begin>: Comment on BEGIN == 0.
13719 * btrace.c (btrace_compute_ftrace): Start from the end of
13720 the current trace.
13721 (btrace_stitch_trace, btrace_clear_history): New.
13722 (btrace_fetch): Read delta trace, return if replaying.
13723 (btrace_clear): Move clear history code to btrace_clear_history.
13724 (parse_xml_btrace): Throw an error if parsing failed.
13725 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13726 and return type to allow error reporting.
13727 (target_read_btrace): Change parameters and return type to allow
13728 error reporting.
13729 * target.c (target_read_btrace): Update.
13730 * remote.c (remote_read_btrace): Support delta reads. Pass
13731 errors on.
13732 * NEWS: Announce it.
13733
13734 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13735
13736 * record.h (record_btrace_frame_unwind)
13737 (record_btrace_tailcall_frame_unwind): New declarations.
13738 * dwarf2-frame: Include record.h
13739 (dwarf2_frame_cfa): Throw an error for btrace frames.
13740 * record-btrace.c: Include hashtab.h.
13741 (btrace_get_bfun_name): New.
13742 (btrace_call_history): Call btrace_get_bfun_name.
13743 (struct btrace_frame_cache): New.
13744 (bfcache): New.
13745 (bfcache_hash, bfcache_eq, bfcache_new): New.
13746 (btrace_get_frame_function): New.
13747 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13748 (record_btrace_frame_this_id): Compute own id.
13749 (record_btrace_frame_prev_register): Provide PC, throw_error
13750 for all other registers.
13751 (record_btrace_frame_sniffer): Detect btrace frames.
13752 (record_btrace_tailcall_frame_sniffer): New.
13753 (record_btrace_frame_dealloc_cache): New.
13754 (record_btrace_frame_unwind): Add new functions.
13755 (record_btrace_tailcall_frame_unwind): New.
13756 (_initialize_record_btrace): Allocate cache.
13757 * btrace.c (btrace_clear): Call reinit_frame_cache.
13758 * NEWS: Announce it.
13759
13760 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13761
13762 * record-btrace.c (record_btrace_set_replay)
13763 (record_btrace_goto_begin, record_btrace_goto_end)
13764 (record_btrace_goto): New.
13765 (init_record_btrace_ops): Initialize them.
13766 * NEWS: Announce it.
13767
13768 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13769
13770 * record-btrace.c (record_btrace_find_new_threads)
13771 (record_btrace_thread_alive): New.
13772 (init_record_btrace_ops): Initialize to_find_new_threads and
13773 to_thread_alive.
13774
13775 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13776
13777 * record-btrace.c (record_btrace_resume): New.
13778 (record_btrace_wait): New.
13779 (init_record_btrace_ops): Initialize to_wait and to_resume.
13780
13781 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13782
13783 * record-btrace.c (record_btrace_xfer_partial)
13784 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13785 (record_btrace_allow_memory_access): New.
13786 (init_record_btrace_ops): Initialize new methods.
13787 * target.c (raw_memory_xfer_partial): Bail out if target reports
13788 that this memory is not available.
13789
13790 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13791
13792 * target.h (target_ops) <to_insert_breakpoint>
13793 <to_remove_breakpoint>: Add target_ops parameter.
13794 (forward_target_insert_breakpoint): New.
13795 (forward_target_remove_breakpoint): New.
13796 (memory_remove_breakpoint, memory_insert_breakpoint):
13797 Add target_ops parameter.
13798 * target.c (target_insert_breakpoint): Split into this and ...
13799 (forward_target_insert_breakpoint): ... this.
13800 (target_remove_breakpoint): Split into this and ...
13801 (forward_target_remove_breakpoint): ... this.
13802 (debug_to_insert_breakpoint): Add target_ops parameter.
13803 Call forward_target_insert_breakpoint.
13804 (debug_to_remove_breakpoint): Add target_ops parameter.
13805 Call forward_target_remove_breakpoint.
13806 (update_current_target): Do not inherit or default to_insert_breakpoint
13807 and to_remove_breakpoint.
13808 * corelow.c (ignore): Add target_ops parameter.
13809 * exec.c (ignore): Add target_ops parameter.
13810 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13811 Add target_ops parameter.
13812 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13813 Add target_ops parameter.
13814 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13815 Add target_ops parameter.
13816 * record-full.c (record_full_beneath_to_insert_breakpoint)
13817 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13818 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13819 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13820 (record_full_core_remove_breakpoint): Add target_ops parameter.
13821 Update users.
13822 (record_full_beneath_to_insert_breakpoint_ops)
13823 (record_full_beneath_to_remove_breakpoint_ops)
13824 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13825 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13826 tmp_to_remove_breakpoint_ops,
13827 record_full_beneath_to_insert_breakpoint_ops, and
13828 record_full_beneath_to_remove_breakpoint_ops.
13829 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13830 (m32r_remove_breakpoint): Add target_ops parameter.
13831 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13832 Add target_ops parameter.
13833 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13834 Add target_ops parameter.
13835
13836 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13837 Markus Metzger <markus.t.metzger@intel.com>
13838
13839 * record-btrace.c: Include frame-unwind.h.
13840 (record_btrace_frame_unwind_stop_reason)
13841 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13842 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13843 New.
13844 (init_record_btrace_ops): Install it.
13845
13846 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13847
13848 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13849 get_prev_frame_1.
13850
13851 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13852
13853 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13854 earlier.
13855
13856 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13857
13858 * frame-unwind.c: Include target.h.
13859 (frame_unwind_try_unwinder): New function with code from ...
13860 (frame_unwind_find_by_frame): ... here. New variable
13861 unwinder_from_target, call also target_get_unwinder)
13862 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13863 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13864 * target.h (struct target_ops): New fields to_get_unwinder and
13865 to_get_tailcall_unwinder.
13866 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13867
13868 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13869
13870 * record-btrace.c (record_btrace_fetch_registers)
13871 (record_btrace_store_registers)
13872 (record_btrace_to_prepare_to_store): New.
13873 (init_record_btrace_ops): Add the above.
13874
13875 2014-01-16 Tom Tromey <tromey@redhat.com>
13876
13877 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13878 * target.h (struct target_ops) <to_prepare_to_store>: Add
13879 argument.
13880 (target_prepare_to_store): Add argument.
13881 * target.c (debug_to_prepare_to_store): Add argument.
13882 (update_current_target): Update.
13883 * remote.c (remote_prepare_to_store): Add 'self' argument.
13884 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13885 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13886 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13887 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13888 argument.
13889 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13890 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13891 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13892 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13893 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13894
13895 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13896
13897 * btrace.h (replay) <replay>: New.
13898 (btrace_is_replaying): New.
13899 * btrace.c (btrace_clear): Free replay iterator.
13900 (btrace_is_replaying): New.
13901 * record-btrace.c (record_btrace_is_replaying): New.
13902 (record_btrace_info): Print insn number if replaying.
13903 (record_btrace_insn_history): Start at replay position.
13904 (record_btrace_call_history): Start at replay position.
13905 (init_record_btrace_ops): Init to_record_is_replaying.
13906
13907 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13908
13909 * record-btrace.c (record_btrace_insn_history_range): Include
13910 end.
13911 (record_btrace_insn_history_from): Adjust range.
13912 (record_btrace_call_history_range): Include
13913 end.
13914 (record_btrace_call_history_from): Adjust range.
13915 * NEWS: Announce changes.
13916
13917 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13918
13919 * record.h (enum record_print_flag)
13920 <record_print_indent_calls>: New.
13921 * record.c (get_call_history_modifiers): Recognize /c modifier.
13922 (_initialize_record): Document /c modifier.
13923 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13924 Reorder fields. Optionally indent the function name. Update
13925 all users.
13926 * NEWS: Announce changes.
13927
13928 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13929
13930 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13931
13932 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13933
13934 * btrace.c (ftrace_new_function): Start counting at one.
13935 * record-btrace.c (record_btrace_info): Adjust number of calls
13936 and insns.
13937 * NEWS: Announce it.
13938
13939 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13940
13941 * record-btrace.c (btrace_call_history_insn_range): Print
13942 insn range as [begin, end].
13943
13944 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13945
13946 * btrace.h (struct btrace_func_link): New.
13947 (enum btrace_function_flag): New.
13948 (struct btrace_inst): Rename to ...
13949 (struct btrace_insn): ...this. Update all users.
13950 (struct btrace_func) <ibegin, iend>: Remove.
13951 (struct btrace_func_link): New.
13952 (struct btrace_func): Rename to ...
13953 (struct btrace_function): ...this. Update all users.
13954 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13955 (number, level, flags>: New.
13956 (struct btrace_insn_iterator): Rename to ...
13957 (struct btrace_insn_history): ...this.
13958 Update all users.
13959 (struct btrace_insn_iterator, btrace_call_iterator): New.
13960 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13961 (struct btrace_target_info) <begin, end, level>
13962 <insn_history, call_history>: New.
13963 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13964 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13965 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13966 (btrace_call_number, btrace_call_begin, btrace_call_end)
13967 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13968 (btrace_find_function_by_number, btrace_set_insn_history)
13969 (btrace_set_call_history): New.
13970 * btrace.c (btrace_init_insn_iterator)
13971 (btrace_init_func_iterator, compute_itrace): Remove.
13972 (ftrace_print_function_name, ftrace_print_filename)
13973 (ftrace_skip_file): Change
13974 parameter to const.
13975 (ftrace_init_func): Remove.
13976 (ftrace_debug): Use new btrace_function fields.
13977 (ftrace_function_switched): Also consider gaining and
13978 losing symbol information).
13979 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13980 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13981 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13982 New.
13983 (ftrace_new_function): Move. Remove debug print.
13984 (ftrace_update_lines, ftrace_update_insns): New.
13985 (ftrace_update_function): Check for call, ret, and jump.
13986 (compute_ftrace): Renamed to ...
13987 (btrace_compute_ftrace): ...this. Rewritten to compute call
13988 stack.
13989 (btrace_fetch, btrace_clear): Updated.
13990 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13991 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13992 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13993 (btrace_call_number, btrace_call_begin, btrace_call_end)
13994 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13995 (btrace_find_function_by_number, btrace_set_insn_history)
13996 (btrace_set_call_history): New.
13997 * record-btrace.c (require_btrace): Use new btrace thread
13998 info fields.
13999 (record_btrace_info, btrace_insn_history)
14000 (record_btrace_insn_history, record_btrace_insn_history_range):
14001 Use new btrace thread info fields and new iterator.
14002 (btrace_func_history_src_line): Rename to ...
14003 (btrace_call_history_src_line): ...this. Use new btrace
14004 thread info fields.
14005 (btrace_func_history): Rename to ...
14006 (btrace_call_history): ...this. Use new btrace thread info
14007 fields and new iterator.
14008 (record_btrace_call_history, record_btrace_call_history_range):
14009 Use new btrace thread info fields and new iterator.
14010
14011 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14012
14013 * frame.h (frame_id_build_unavailable_stack_special): New.
14014 * frame.c (frame_id_build_unavailable_stack_special): New.
14015
14016 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14017
14018 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14019 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14020 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14021 to gdbarch.
14022 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14023 (i386_insn_is_jump, i386_jmp_p): New.
14024 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14025 insn_is_jump to gdbarch.
14026 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14027 * gdbarch.h: Regenerated.
14028 * gdbarch.c: Regenerated.
14029 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14030 (default_insn_is_jump): New.
14031 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14032 (default_insn_is_jump): New.
14033
14034 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14035
14036 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14037 Change to ...
14038 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14039 (btrace_read_type) <btrace_read_new>: Change to ...
14040 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14041
14042 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14043
14044 * common/linux-btrace.c (linux_read_btrace): Free trace from
14045 previous iteration.
14046
14047 2014-01-15 Doug Evans <dje@google.com>
14048
14049 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14050 uint32_t.
14051
14052 2014-01-15 Tom Tromey <tromey@redhat.com>
14053
14054 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14055 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14056 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14057 (set_objfile_main_name): New function.
14058 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14059 language_of_main>: New fields.
14060 (set_objfile_main_name): Declare.
14061 * symtab.c (find_main_name): Loop over objfiles to find the main
14062 name and language.
14063 (set_main_name): Now static.
14064 (get_main_info): Add comment.
14065 * symtab.h (set_main_name): Don't declare.
14066
14067 2014-01-15 Tom Tromey <tromey@redhat.com>
14068
14069 * symtab.c (main_progspace_key): New global.
14070 (struct main_info): New.
14071 (name_of_main, language_of_main): Remove.
14072 (get_main_info, main_info_cleanup): New function.
14073 (set_main_name, main_name, main_language): Use get_main_info.
14074 (_initialize_symtab): Initialize main_progspace_key.
14075
14076 2014-01-15 Tom Tromey <tromey@redhat.com>
14077
14078 * dbxread.c (process_one_symbol): Update.
14079 * dwarf2read.c (read_partial_die): Update.
14080 * symfile.c (set_initial_language): Call main_language.
14081 * symtab.c (language_of_main): Now static.
14082 (set_main_name): Add 'lang' parameter.
14083 (find_main_name): Update.
14084 (main_language): New function.
14085 (symtab_observer_executable_changed): Update.
14086 * symtab.h (set_main_name): Update.
14087 (language_of_main): Remove.
14088 (main_language): Declare.
14089
14090 2014-01-15 Tom Tromey <tromey@redhat.com>
14091
14092 * symfile.c (init_entry_point_info): Use new "initialized" field.
14093 Update.
14094 * objfiles.h (struct entry_point) <initialized>: New field.
14095 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14096 (struct objfile) <ei>: ...here. Remove.
14097 * objfiles.c (entry_point_address_query): Update.
14098
14099 2014-01-15 Tom Tromey <tromey@redhat.com>
14100
14101 * objfiles.c (entry_point_address_query): Relocate entry point
14102 address.
14103 (objfile_relocate1): Do not relocate entry point address.
14104 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14105 <the_bfd_section_index>: New field.
14106 * symfile.c (init_entry_point_info): Find the entry point's
14107 section.
14108
14109 2014-01-15 Tom Tromey <tromey@redhat.com>
14110
14111 * solib-frv.c (enable_break): Use entry_point_address_query.
14112
14113 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14114
14115 * NEWS: Add note on improved process record-replay on
14116 arm*-linux* targets.
14117
14118 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14119
14120 * arm-tdep.c (enum arm_record_result): New enum.
14121 (arm_record_unsupported_insn): New function.
14122 (arm_record_coproc_data_proc): Removed.
14123 (thumb2_record_ld_st_multiple): New function.
14124 (thumb2_record_ld_st_dual_ex_tbb): New function.
14125 (thumb2_record_data_proc_sreg_mimm): New function.
14126 (thumb2_record_ps_dest_generic): New function.
14127 (thumb2_record_branch_misc_cntrl): New function.
14128 (thumb2_record_str_single_data): New function.
14129 (thumb2_record_ld_mem_hints): New function.
14130 (thumb2_record_ld_word): New function.
14131 (thumb2_record_lmul_lmla_div): New function.
14132 (thumb2_record_decode_insn_handler): New function.
14133 (decode_insn): Add thumb32 instruction handlers.
14134
14135 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14136
14137 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14138 (struct arm_linux_record_tdep): Declare.
14139 (arm_canonicalize_syscall): New function.
14140 (arm_all_but_pc_registers_record): New function.
14141 (arm_linux_syscall_record): New function.
14142 (arm_linux_init_abi): Add syscall recording constructs.
14143 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14144 decoding. (arm_record_coproc_data_proc): Update arm syscall
14145 decoding.
14146 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14147 <arm_syscall_record>: New field.
14148 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14149 gdb_target_obs.
14150
14151 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14152
14153 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14154 register for push instruction recording.
14155
14156 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14157
14158 * arm-tdep.c (thumb_record_misc): Update to correct logical
14159 error while recording ldm, ldmia and pop instructions.
14160
14161 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14162
14163 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14164
14165 2014-01-15 Pedro Alves <palves@redhat.com>
14166
14167 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14168 (go32_resume, go32_fetch_registers, store_register)
14169 (go32_store_registers, go32_prepare_to_store)
14170 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14171 (go32_create_inferior, go32_can_run, go32_terminal_init)
14172 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14173 declarations.
14174
14175 2014-01-15 Tom Tromey <tromey@redhat.com>
14176
14177 * target.h (async_callback_ftype): New typedef.
14178 (struct target_ops) <to_async>: Use it.
14179
14180 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14181
14182 * python/py-value.c (get_field_type): Remove unnecessary curly
14183 braces for single-statement if block.
14184
14185 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14186
14187 * python/py-type.c (convert_field): Add missing empty line
14188 after declarations.
14189
14190 2014-01-14 Doug Evans <dje@google.com>
14191
14192 * symfile.h (expand_symtabs_matching): Renamed from
14193 expand_partial_symbol_names. Update prototype.
14194 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14195 * symfile.c (expand_symtabs_matching): Renamed from
14196 expand_partial_symbol_names. New args file_matcher, kind.
14197 Rename arg fun to symbol_matcher.
14198 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14199 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14200 ada_expand_partial_symbol_name.
14201 (ada_make_symbol_completion_list): Update to call
14202 expand_symtabs_matching.
14203 (ada_add_global_exceptions): Call expand_symtabs_matching.
14204 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14205 call map_symbol_filenames.
14206 * symtab.c (sources_info): Update to call map_symbol_filenames.
14207 (search_symbols): Call expand_symtabs_matching.
14208 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14209 (default_make_symbol_completion_list_break_on): Update to call
14210 expand_symtabs_matching.
14211 (make_source_files_completion_list): Update to call
14212 map_symbol_filenames.
14213
14214 2014-01-14 Doug Evans <dje@google.com>
14215
14216 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14217 (expand_symtabs_symbol_matcher_ftype): New typedef.
14218 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14219 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14220 * symfile.c (expand_partial_symbol_names): Update to use
14221 expand_symtabs_symbol_matcher_ftype.
14222 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14223 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14224 Arg name_matcher renamed to symbol_matcher.
14225 * psymtab.c (recursively_search_psymtabs): Update to use
14226 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14227 sym_matcher.
14228 (expand_symtabs_matching_via_partial): Update to use
14229 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14230 Arg name_matcher renamed to symbol_matcher.
14231
14232 2014-01-14 Doug Evans <dje@google.com>
14233
14234 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14235 (map_partial_symbol_filenames): Ditto.
14236 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14237 (map_partial_symbol_filenames): Ditto.
14238 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14239 (map_partial_symbol_filenames): Ditto.
14240 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14241 (map_partial_symbol_filenames): Ditto.
14242 * symtab.c: Delete #include "psymtab.h".
14243
14244 2014-01-14 Pedro Alves <palves@redhat.com>
14245 Tom Tromey <tromey@redhat.com>
14246
14247 * infrun.c (use_displaced_stepping): Use find_record_target
14248 instead of RECORD_IS_USED.
14249 (adjust_pc_after_break): Use record_full_is_used instead of
14250 RECORD_IS_USED.
14251 * record-btrace.c (record_btrace_open): Call record_preopen
14252 instead of checking RECORD_IS_USED.
14253 * record-full.c (record_full_shortname)
14254 (record_full_core_shortname): New globals.
14255 (record_full_is_used): New function.
14256 (find_full_open): Call record_preopen instead of checking
14257 RECORD_IS_USED.
14258 (init_record_full_ops): Set the target's shortname to
14259 record_full_shortname.
14260 (init_record_full_core_ops): Set the target's shortname to
14261 record_full_core_shortname.
14262 * record-full.h (record_full_is_used): Declare.
14263 * record.c (find_record_target): Make extern.
14264 (record_preopen): New function.
14265 * record.h (RECORD_IS_USED): Delete macro.
14266 (find_record_target, record_preopen): Declare functions.
14267
14268 2014-01-14 Yao Qi <yao@codesourcery.com>
14269
14270 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14271 'len''s type to ULONGEST.
14272 (core_xfer_shared_libraries_aix): Likewise.
14273 * gdbarch.c, gdbarch.h: Regenerated.
14274 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14275 Change type of 'len' to ULONGEST.
14276 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14277 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14278
14279 2014-01-14 Yao Qi <yao@codesourcery.com>
14280
14281 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14282 type of 'len' to ULONGEST.
14283 (linux_xfer_osdata_processgroups): Likewise.
14284 (linux_xfer_osdata_threads): Likewise.
14285 (linux_xfer_osdata_fds): Likewise.
14286 (linux_xfer_osdata_isockets): Likewise.
14287 (linux_xfer_osdata_shm): Likewise.
14288 (linux_xfer_osdata_sem): Likewise.
14289 (linux_xfer_osdata_msg): Likewise.
14290 (linux_common_xfer_osdata): Likewise.
14291 (struct osdata_type) <getter>: Likewise.
14292 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14293 the declaration.
14294
14295 2014-01-14 Yao Qi <yao@codesourcery.com>
14296
14297 * target.h (target_xfer_partial_ftype): Update.
14298 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14299 ULONGEST.
14300 * aix-thread.c (aix_thread_xfer_partial): Change type of
14301 argument 'len' to ULONGEST.
14302 * auxv.c (procfs_xfer_auxv): Likewise.
14303 (ld_so_xfer_auxv): Likewise.
14304 (memory_xfer_auxv): Likewise.
14305 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14306 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14307 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14308 * corelow.c (core_xfer_partial): Likewise.
14309 * ctf.c (ctf_xfer_partial): Likewise.
14310 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14311 '%u'.
14312 (darwin_read_dyld_info): Likewise.
14313 (darwin_xfer_partial): Likewise.
14314 * exec.c (section_table_xfer_memory_partial): Likewise.
14315 (exec_xfer_partial): Likewise.
14316 * exec.h (section_table_xfer_memory_partial): Update
14317 declaration.
14318 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14319 instead of plongest.
14320 (gnu_xfer_partial): Likewise.
14321 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14322 (ia64_hpux_xfer_solib_got): Likewise.
14323 (ia64_hpux_xfer_partial): Likewise.
14324 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14325 * inf-ptrace.c (inf_ptrace_xfer_partial):
14326 * inf-ttrace.c (inf_ttrace_xfer_partial):
14327 * linux-nat.c (linux_xfer_siginfo): Likewise.
14328 (linux_nat_xfer_partial): Likewise.
14329 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14330 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14331 * monitor.c (monitor_xfer_memory): Likewise.
14332 (monitor_xfer_partial): Likewise.
14333 * procfs.c (procfs_xfer_partial): Likewise.
14334 * record-full.c (record_full_xfer_partial): Likewise.
14335 (record_full_core_xfer_partial): Likewise.
14336 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14337 instead of plongest.
14338 (gdbsim_xfer_partial): Likewise.
14339 * remote.c (remote_xfer_partial): Likewise.
14340 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14341 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14342 declaration.
14343 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14344 (rs6000_xfer_shared_libraries): Likewise.
14345 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14346 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14347 (sparc_xfer_partial): Likewise.
14348 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14349 (spu_xfer_partial): Likewise.
14350 * spu-multiarch.c (spu_xfer_partial): Likewise.
14351 * target.c (target_read_live_memory): Likewise.
14352 (memory_xfer_live_readonly_partial): Likewise.
14353 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14354 (target_xfer_partial, default_xfer_partial): Likewise.
14355 (current_xfer_partial): Likewise.
14356 * tracepoint.c (tfile_xfer_partial): Likewise.
14357 * windows-nat.c (windows_xfer_memory): Likewise. Call
14358 pulongest instead of plongest.
14359 (windows_xfer_partial): Likewise.
14360 (windows_xfer_shared_libraries): Likewise.
14361
14362 2014-01-14 Yao Qi <yao@codesourcery.com>
14363
14364 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14365 target_xfer_partial_ftype.
14366
14367 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14368
14369 PR python/15464
14370 PR python/16113
14371 * valops.c (value_struct_elt_bitpos): New function
14372 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14373 object to 'None' if the field name is an empty string ("").
14374 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14375 attribute to look for a field when 'name' is 'None'.
14376 (get_field_type): New function
14377
14378 2014-01-13 Doug Evans <dje@google.com>
14379
14380 PR symtab/16426
14381 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14382 (try_open_dwop_file): Ditto.
14383 * gdb_bfd.c: #include "vec.h".
14384 (bfdp): New typedef.
14385 (struct gdb_bfd_data): New member included_bfds.
14386 (gdb_bfd_unref): Unref all included bfds.
14387 (gdb_bfd_record_inclusion): New function.
14388 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14389
14390 2014-01-13 Tom Tromey <tromey@redhat.com>
14391
14392 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14393
14394 2014-01-13 Tom Tromey <tromey@redhat.com>
14395
14396 * defs.h (use_windows): Remove.
14397 * gdb.c (main): Update.
14398 * main.c (captured_main, gdb_main): Update.
14399 * main.h (struct captured_main_args) <use_windows>: Remove.
14400 * top.c (use_windows): Remove.
14401
14402 2014-01-13 Tom Tromey <tromey@redhat.com>
14403
14404 * defs.h (deprecated_flush_hook): Remove.
14405
14406 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14407
14408 PR threads/16216
14409 * linux-thread-db.c (try_thread_db_load): Add parameter
14410 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14411 (try_thread_db_load_from_pdir_1): Move it there from here.
14412 (try_thread_db_load_from_sdir): Update caller.
14413 (try_thread_db_load_from_dir): Move it there from here.
14414
14415 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14416
14417 * regformats/regdat.sh: Always rewrite the register file.
14418
14419 2014-01-13 Pedro Alves <palves@redhat.com>
14420
14421 * Makefile.in (CHECK_HEADERS): New variable.
14422 (check-headers:): New rule.
14423
14424 2014-01-13 Tom Tromey <tromey@redhat.com>
14425
14426 * cli/cli-setshow.c (do_set_command): Update.
14427 * defs.h (deprecated_set_hook): Remove.
14428 * top.c (deprecated_set_hook): Remove.
14429
14430 2014-01-13 Pedro Alves <palves@redhat.com>
14431
14432 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14433 the tracepoint if the PC is a pseudo-register.
14434
14435 2014-01-13 Tom Tromey <tromey@redhat.com>
14436
14437 * defs.h (XCALLOC): Remove.
14438 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14439 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14440 * dwarf2loc.c (allocate_piece_closure): Likewise.
14441 * elfread.c (elf_symfile_segments): Likewise.
14442 (elf_symfile_segments): Likewise.
14443 * gdbtypes.c (copy_type_recursive): Likewise.
14444 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14445 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14446 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14447 XCALLOC.
14448 * mt-tdep.c (mt_gdbarch_init): Likewise.
14449 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14450 XCALLOC.
14451 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14452 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14453 * registry.c (registry_alloc_data): Likewise.
14454 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14455 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14456 * serial.c (serial_fdopen_ops): Likewise.
14457 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14458 XCALLOC.
14459 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14460 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14461 not XCALLOC.
14462
14463 2014-01-13 Tom Tromey <tromey@redhat.com>
14464
14465 * defs.h (XMALLOC): Remove.
14466 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14467 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14468 * cli-out.c (struct ui_out *): Likewise.
14469 * cli/cli-dump.c (add_dump_command): Likewise.
14470 (add_dump_command): Likewise.
14471 * complaints.c (get_complaints): Likewise.
14472 (find_complaint): Likewise.
14473 * dwarf2-frame.c (execute_cfa_program): Likewise.
14474 * dwarf2read.c (abbrev_table_read_table): Likewise.
14475 * gdbarch.sh: Likewise.
14476 * gdbarch.c: Rebuild.
14477 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14478 * interps.c (interp_new): Likewise.
14479 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14480 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14481 * mi/mi-console.c (mi_console_file_new): Likewise.
14482 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14483 * mi/mi-out.c (mi_out_new): Likewise.
14484 * mi/mi-parse.c (mi_parse): Likewise.
14485 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14486 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14487 * observer.c (xalloc_observer_list_node): Likewise.
14488 * regcache.c (regcache_xmalloc_1): Likewise.
14489 * reggroups.c (reggroup_new): Likewise.
14490 (_initialize_reggroup): Likewise.
14491 * registry.c (register_data_with_cleanup): Likewise.
14492 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14493 * ser-base.c (serial_ttystate): Likewise.
14494 * ser-mingw.c (make_pipe_state): Likewise.
14495 * ser-pipe.c (pipe_open): Likewise.
14496 * serial.c (serial_open): Likewise.
14497 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14498 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14499 (tui_alloc_win_info): Likewise.
14500 (tui_add_content_elements): Likewise.
14501 * tui/tui-file.c (tui_file_new): Likewise.
14502 * tui/tui-out.c (tui_out_new): Likewise.
14503 * ui-file.c (mem_file_new): Likewise.
14504 * ui-out.c (push_level): Likewise.
14505 (make_cleanup_ui_out_end): Likewise.
14506 (append_header_to_list): Likewise.
14507 (ui_out_new): Likewise.
14508 * user-regs.c (user_reg_add_builtin): Likewise.
14509
14510 2014-01-13 Tom Tromey <tromey@redhat.com>
14511
14512 * defs.h (XZALLOC): Remove.
14513 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14514 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14515 (get_ada_tasks_inferior_data): Likewise.
14516 * auto-load.c (get_auto_load_pspace_data): Likewise.
14517 * auxv.c (get_auxv_inferior_data): Likewise.
14518 * bfd-target.c (target_bfd_reopen): Likewise.
14519 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14520 (deprecated_insert_raw_breakpoint): Likewise.
14521 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14522 * corelow.c (core_open): Likewise.
14523 * darwin-nat.c (darwin_check_new_threads): Likewise.
14524 (darwin_attach_pid): Likewise.
14525 * dummy-frame.c (dummy_frame_push): Likewise.
14526 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14527 * dwarf2loc.c (allocate_piece_closure): Likewise.
14528 * elfread.c (elf_symfile_segments): Likewise.
14529 * eval.c (ptrmath_type_p): Likewise.
14530 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14531 * gdbtypes.c (alloc_type_arch): Likewise.
14532 (alloc_type_instance): Likewise.
14533 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14534 * inf-child.c (inf_child_can_use_agent): Likewise.
14535 * inflow.c (get_inflow_inferior_data): Likewise.
14536 * infrun.c (save_infcall_suspend_state): Likewise.
14537 * jit.c (jit_reader_load): Likewise.
14538 (get_jit_objfile_data): Likewise.
14539 (get_jit_program_space_data): Likewise.
14540 (jit_object_open_impl): Likewise.
14541 (jit_symtab_open_impl): Likewise.
14542 (jit_block_open_impl): Likewise.
14543 (jit_frame_sniffer): Likewise.
14544 * linux-fork.c (add_fork): Likewise.
14545 * maint.c (make_command_stats_cleanup): Likewise.
14546 * objfiles.c (get_objfile_pspace_data): Likewise.
14547 * opencl-lang.c (struct lval_closure): Likewise.
14548 * osdata.c (osdata_start_osdata): Likewise.
14549 * progspace.c (new_address_space): Likewise.
14550 (add_program_space): Likewise.
14551 * remote-sim.c (get_sim_inferior_data): Likewise.
14552 * sh-tdep.c (sh_gdbarch_init): Likewise.
14553 * skip.c (Ignore): Likewise.
14554 (skip_delete_command): Likewise.
14555 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14556 (library_list_start_library): Likewise.
14557 (solib_aix_current_sos): Likewise.
14558 * solib-darwin.c (get_darwin_info): Likewise.
14559 (darwin_current_sos): Likewise.
14560 * solib-dsbt.c (get_dsbt_info): Likewise.
14561 * solib-ia64-hpux.c (new_so_list): Likewise.
14562 (ia64_hpux_get_solib_linkage_addr): Likewise.
14563 * solib-spu.c (append_ocl_sos): Likewise.
14564 (spu_current_sos): Likewise.
14565 * solib-svr4.c (get_svr4_info): Likewise.
14566 (svr4_keep_data_in_core): Likewise.
14567 (library_list_start_library): Likewise.
14568 (svr4_default_sos): Likewise.
14569 (svr4_read_so_list): Likewise.
14570 * solib-target.c (library_list_start_library): Likewise.
14571 (solib_target_current_sos): Likewise.
14572 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14573 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14574 * symfile.c (default_symfile_segments): Likewise.
14575 * target-descriptions.c (tdesc_data_init): Likewise.
14576 (tdesc_create_reg): Likewise.
14577 (struct tdesc_type *): Likewise.
14578 (tdesc_create_vector): Likewise.
14579 (tdesc_set_struct_size): Likewise.
14580 (struct tdesc_type *): Likewise.
14581 (tdesc_free_feature): Likewise.
14582 (tdesc_create_feature): Likewise.
14583 * windows-nat.c (windows_add_thread): Likewise.
14584 (windows_make_so): Likewise.
14585 * xml-support.c (gdb_xml_body_text): Likewise.
14586 (gdb_xml_create_parser_and_cleanup): Likewise.
14587 (xml_process_xincludes): Likewise.
14588 * xml-syscall.c (allocate_syscalls_info): Likewise.
14589 (syscall_create_syscall_desc): Likewise.
14590
14591 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14592
14593 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14594 function, with code from i386_stap_parse_special_token.
14595 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14596 (i386_stap_parse_special_token): Move code to the two functions
14597 above; simplify it.
14598
14599 2014-01-09 Pedro Alves <palves@redhat.com>
14600 Hui Zhu <hui@codesourcery.com>
14601
14602 PR gdb/16101
14603 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14604 bp_err_string. Don't mark the location shlib_disabled if the
14605 error thrown wasn't a generic or memory error. Catch errors
14606 thrown while inserting breakpoints in overlayed code. Output
14607 error message of software breakpoints.
14608 * remote.c (remote_insert_breakpoint): If this breakpoint has
14609 target-side commands but this stub doesn't support Z0 packets,
14610 throw NOT_SUPPORTED_ERROR error.
14611 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14612 * target.h (target_insert_breakpoint): Extend comment.
14613 (target_insert_hw_breakpoint): Add comment.
14614
14615 2014-01-08 Pedro Alves <palves@redhat.com>
14616
14617 * remote.c (remote_add_thread): Add threads silently if starting
14618 up.
14619 (remote_notice_new_inferior): If in all-stop, and starting up,
14620 don't call notice_new_inferior.
14621 (get_current_thread): New function, factored out from ...
14622 (add_current_inferior_and_thread): ... this. Adjust.
14623 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14624 found any thread, then select the remote's current thread as GDB's
14625 current thread too.
14626
14627 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14628
14629 * NEWS: Create a new section for the next release branch.
14630 Rename the section of the current branch, now that it has
14631 been cut.
14632
14633 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14634
14635 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14636 * version.in: Bump version to 7.7.50.DATE-cvs.
14637
14638 2014-01-08 Yao Qi <yao@codesourcery.com>
14639
14640 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14641 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14642 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14643
14644 2014-01-08 Yao Qi <yao@codesourcery.com>
14645
14646 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14647 return value of bfd_get_filename to symbol_file_add_from_bfd.
14648
14649 2014-01-08 Pierre Muller <muller@sourceware.org>
14650
14651 Fix PR16201.
14652 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14653 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14654 to prim_record_mininal_symbol_and_info.
14655 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14656 in call to prim_record_minimal_symbol_and_info.
14657 (read_pe_exported_syms): Set index field of section_data.
14658
14659 2014-01-07 Andrew Pinski <apinski@cavium.com>
14660
14661 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14662 * features/aarch64.c: Regenerate.
14663
14664 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14665
14666 * target.c (return_null): Define.
14667 (update_current_target): Use it instead of return_zero for
14668 functions that return a pointer.
14669
14670 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14671
14672 * source.c (add_path): Fix check for duplicated paths in the previously
14673 included paths.
14674
14675 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14676
14677 * ada-lang.c: Remove duplicated include statements.
14678 * alphabsd-nat.c: Ditto.
14679 * amd64-darwin-tdep.c: Ditto.
14680 * amd64fbsd-nat.c: Ditto.
14681 * auto-load.c: Ditto.
14682 * ax-gdb.c: Ditto.
14683 * breakpoint.c: Ditto.
14684 * dbxread.c: Ditto.
14685 * fork-child.c: Ditto.
14686 * gdb_usleep.c: Ditto.
14687 * i386-darwin-tdep.c: Ditto.
14688 * i386fbsd-nat.c: Ditto.
14689 * infcmd.c: Ditto.
14690 * inferior.c: Ditto.
14691 * jv-lang.c: Ditto.
14692 * linux-nat.c: Ditto.
14693 * linux-tdep.c: Ditto.
14694 * m68kbsd-nat.c: Ditto.
14695 * m68klinux-nat.c: Ditto.
14696 * microblaze-tdep.c: Ditto.
14697 * mips-linux-tdep.c: Ditto.
14698 * mn10300-tdep.c: Ditto.
14699 * nto-tdep.c: Ditto.
14700 * opencl-lang.c: Ditto.
14701 * osdata.c: Ditto.
14702 * printcmd.c: Ditto.
14703 * regcache.c: Ditto.
14704 * remote-m32r-sdi.c: Ditto.
14705 * remote.c: Ditto.
14706 * symfile.c: Ditto.
14707 * symtab.c: Ditto.
14708 * tilegx-linux-nat.c: Ditto.
14709 * tilegx-tdep.c: Ditto.
14710 * tracepoint.c: Ditto.
14711 * valops.c: Ditto.
14712 * vaxbsd-nat.c: Ditto.
14713 * windows-nat.c: Ditto.
14714 * xtensa-tdep.c: Ditto.
14715
14716 2014-01-07 Yao Qi <yao@codesourcery.com>
14717
14718 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14719
14720 2014-01-07 Yao Qi <yao@codesourcery.com>
14721 Joel Brobecker <brobecker@adacore.com>
14722
14723 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14724 (pdc_write_regs): Likewise.
14725 (fetch_regs_kernel_thread): Likewise.
14726 (store_regs_kernel_thread): Likewise.
14727
14728 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14729
14730 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14731 tagged type objects to their actual type.
14732
14733 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14734
14735 * ada-valprint.c (print_field_values): Add "language" parameter.
14736 Update calls to print_field_values and print_variant_part.
14737 Pass new parameter "language" in call to val_print instead
14738 of "current_language". Replace call to ada_val_print by call
14739 to val_print.
14740 (print_variant_part): Add "language" parameter.
14741 (ada_val_print_struct_union): Update call to print_field_values.
14742
14743 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14744
14745 * ada-valprint.c (ui_memcpy): Delete.
14746 (ada_print_floating): Update documentation. Add empty line
14747 between between function documentation and implementation.
14748 Delete variable "buffer". Use ui_file_xstrdup in place of
14749 ui_file_put. Minor adjustments following this change.
14750
14751 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14752
14753 * ada-valprint.c (ada_val_print_string): New function,
14754 extracted from ada_val_print_array.
14755 (ada_val_print_array): Replace extracted code by call
14756 to ada_val_print_string followed by a return. Move
14757 "else" branch to the function's top block.
14758
14759 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14760
14761 * ada-valprint.c (ada_val_print_array): Move implementation
14762 down. Rename parameter "offset" and "val" into "offset_aligned"
14763 and "original_value" respectively. Add parameter "offset".
14764
14765 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14766
14767 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14768 re-organizing the code. Change the "???" message printed
14769 when target type is a TYPE_CODE_UNDEF into
14770 "<ref to undefined type>".
14771
14772 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14773
14774 * ada-valprint.c (print_record): Delete, implementation inlined...
14775 (ada_val_print_struct_union): ... here. Remove call to
14776 ada_check_typedef in inlined implementation.
14777
14778 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14779
14780 * ada-valprint.c (ada_val_print_gnat_array): New function,
14781 extracted from ada_val_print_1;
14782 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14783 (ada_val_print_flt, ada_val_print_struct_union)
14784 (ada_val_print_ref): Likewise.
14785 (ada_val_print_1): Delete variables i and elttype.
14786 Replace extracted-out code by call to corresponding
14787 new functions.
14788
14789 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14790
14791 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14792
14793 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14794
14795 * ada-valprint.c (ada_val_print_1): Replace calls to
14796 ada_val_print_1 by calls to val_print.
14797
14798 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14799
14800 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14801 Update calls to self accordingly. Replace calls to c_val_print
14802 by calls to val_print.
14803
14804 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14805
14806 * ada-valprint.c (print_record): Delete declaration.
14807 (adjust_type_signedness, ada_val_print_1): Likewise.
14808 (ada_val_print): Move function implementation down.
14809 (print_variant_part, print_field_values, print_record):
14810 Move function implementation up.
14811
14812 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14813
14814 * python/py-type.c (typy_get_name): New function.
14815 (type_object_getset): Add entry for attribute "name".
14816 * NEWS: Add entry mentioning this new attribute.
14817
14818 2014-01-07 Yao Qi <yao@codesourcery.com>
14819
14820 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14821 statement.
14822
14823 2014-01-07 Yao Qi <yao@codesourcery.com>
14824
14825 * gnu-nat.c (info_port_rights): Add qualifier const to
14826 argument args.
14827
14828 2014-01-07 Yao Qi <yao@codesourcery.com>
14829
14830 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14831
14832 2014-01-07 Yao Qi <yao@codesourcery.com>
14833
14834 * gnu-nat.c (make_inf) Update declaration.
14835 (make_inf): Make it static.
14836 (inf_set_traced): Likewise.
14837 (inf_port_to_thread, inf_task_died_status): Likewise.
14838
14839 2014-01-07 Yao Qi <yao@codesourcery.com>
14840
14841 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14842
14843 2014-01-07 Yao Qi <yao@codesourcery.com>
14844
14845 * gnu-nat.c (_initialize_gnu_nat): Declare.
14846
14847 2014-01-07 Yao Qi <yao@codesourcery.com>
14848
14849 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14850 'enum bfd_endian'.
14851 (struct gdbarch_info) <byte_order>: Change type to
14852 'enum bfd_endian'.
14853 <byte_order_for_code>: Likewise.
14854 * gdbarch.c, gdbarch.h: Regenerated.
14855
14856 2014-01-06 Sasha Smundak <asmundak@google.com>
14857
14858 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14859
14860 2014-01-06 Tom Tromey <tromey@redhat.com>
14861
14862 * doublest.c (convert_doublest_to_floatformat): Use const, not
14863 CONST.
14864 * somread.c (som_symtab_read): Likewise.
14865
14866 2014-01-07 Hui Zhu <hui@codesourcery.com>
14867
14868 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14869 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14870 (gdb_bfd_fopen): Ditto.
14871 (gdb_bfd_openr): Ditto.
14872 (gdb_bfd_openw): Ditto.
14873 (gdb_bfd_openr_iovec): Ditto.
14874 (gdb_bfd_fdopenr): Ditto.
14875 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14876 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14877 with xstrdup.
14878 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14879 with xstrdup.
14880 * symfile-mem.c (symbol_file_add_from_memory): Removed
14881 gdb_bfd_stash_filename.
14882
14883 2014-01-03 Doug Evans <dje@google.com>
14884
14885 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14886 output.
14887
14888 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14889
14890 Update year range in copyright notice of all files.
14891
14892 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14893
14894 * top.c (print_gdb_version): Set copyright year to 2014.
14895
14896 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14897
14898 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14899
14900 For older changes see ChangeLog-2013.
14901 \f
14902 Local Variables:
14903 mode: change-log
14904 left-margin: 8
14905 fill-column: 74
14906 version-control: never
14907 coding: utf-8
14908 End:
This page took 0.441154 seconds and 4 git commands to generate.