Add missing parenthesis
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-11-15 Yao Qi <yao@codesourcery.com>
2
3 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
4
5 2014-11-14 Joel Brobecker <brobecker@adacore.com>
6
7 * common/common-defs.h: Move <stdarg.h> #include ahead of
8 <stdio.h> #include.
9
10 2014-11-14 Pedro Alves <palves@redhat.com>
11
12 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
13 [!PHONY_ICONV] (gdb_iconv): New function.
14 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
15
16 2014-11-13 Doug Evans <dje@google.com>
17
18 PR symtab/17591
19 * dwarf2read.c (find_slot_in_mapped_hash): Handle
20 "(anonymous namespace)".
21
22 2014-11-13 Doug Evans <dje@google.com>
23
24 * dwarf2read.c (update_enumeration_type_from_children): Avoid
25 infinite loop.
26
27 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
28
29 * NEWS (maint set target-async): Fix typo.
30
31 2014-11-12 Pedro Alves <palves@redhat.com>
32
33 * infrun.c (enum infwait_states, infwait_state): Delete.
34
35 2014-11-12 Pedro Alves <palves@redhat.com>
36
37 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
38 Rewrite stepping over a permanent breakpoint.
39 (thread_still_needs_step_over, proceed): Don't set
40 stepping_over_breakpoint for permanent breakpoints.
41 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
42 single-step breakpoints out of the target on hardware step
43 targets.
44 (process_event_stop_test): If stepping a permanent breakpoint
45 doesn't hit the step-resume breakpoint, delete the step-resume
46 breakpoint.
47 (switch_back_to_stepped_thread): Also check if the stepped thread
48 has advanced already on hardware step targets.
49 (currently_stepping): Return true if the thread stepped a
50 breakpoint.
51
52 2014-11-12 Pedro Alves <palves@redhat.com>
53
54 Mark locations as permanent, not the whole breakpoint.
55 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
56 (mark_breakpoints_out): Don't mark permanent breakpoints as
57 uninserted.
58 (breakpoint_init_inferior): Use mark_breakpoints_out.
59 (breakpoint_here_p): Adjust.
60 (bpstat_stop_status, describe_other_breakpoints): Remove handling
61 of permanent breakpoints.
62 (make_breakpoint_permanent): Mark each location as permanent,
63 instead of marking the breakpoint.
64 (add_location_to_breakpoint): If the location is permanent, mark
65 it as such, and as inserted.
66 (init_breakpoint_sal): Don't make the breakpoint permanent here.
67 (bp_location_compare, update_global_location_list): Adjust.
68 (update_breakpoint_locations): Don't make the breakpoint permanent
69 here.
70 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
71 breakpoints.
72 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
73 (struct bp_location) <permanent>: New field.
74 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
75 reference to bp_permanent.
76
77 2014-11-12 Pedro Alves <palves@redhat.com>
78
79 * arch-utils.c (default_skip_permanent_breakpoint): New function.
80 * arch-utils.h (default_skip_permanent_breakpoint): New
81 declaration.
82 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
83 Install default_skip_permanent_breakpoint as default method.
84 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
85 (i386_gdbarch_init): Don't install it.
86 * infrun.c (resume): Assume there's always a
87 gdbarch_skip_permanent_breakpoint implementation.
88 * gdbarch.h, gdbarch.c: Regenerate.
89
90 2014-11-11 Daniel Colascione <dancol@dancol.org>
91
92 Warn about cross-PID-namespace debugging.
93 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
94 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
95 * linux-thread-db.c (check_pid_namespace_match): New function.
96 (thread_db_inferior_created): Call it.
97
98 2014-11-10 Doug Evans <xdje42@gmail.com>
99
100 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
101 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
102
103 2014-11-10 Doug Evans <xdje42@gmail.com>
104
105 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
106
107 2014-11-10 Doug Evans <xdje42@gmail.com>
108
109 PR symtab/17564
110 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
111 (lookup_static_symbol): Move definition to new location and rewrite.
112 (lookup_symbol_in_objfile): New function.
113 (lookup_symbol_global_iterator_cb): Call it.
114
115 2014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
116
117 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
118
119 2014-11-07 Pedro Alves <palves@redhat.com>
120
121 * infrun.c (process_event_stop_test) <subroutine check>: Don't
122 check if we did a "nexti" inside a prologue.
123 * symtab.c (in_prologue): Delete function.
124 * symtab.h (in_prologue): Delete declaration.
125
126 2014-11-06 Doug Evans <xdje42@gmail.com>
127
128 * symtab.h (lookup_global_symbol): Improve function comment.
129
130 2014-11-06 Doug Evans <xdje42@gmail.com>
131
132 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
133 All callers updated.
134 * symtab.h (lookup_global_symbol): Update decl.
135 (lookup_static_symbol): Move decl to better location.
136
137 2014-11-06 Doug Evans <xdje42@gmail.com>
138
139 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
140
141 2014-11-06 Doug Evans <xdje42@gmail.com>
142
143 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
144 All callers updated.
145 (lookup_symbol_in_all_objfiles): Renamed from
146 lookup_symbol_aux_symtabs. All callers updated.
147 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
148 All callers updated.
149 (lookup_symbol_in_objfile_symtabs): Renamed from
150 lookup_symbol_aux_objfile. All callers updated.
151
152 2014-11-06 Doug Evans <xdje42@gmail.com>
153
154 * symtab.c (lookup_symbol_in_block): Renamed from
155 lookup_symbol_aux_block. All callers updated.
156
157 2014-11-06 Doug Evans <xdje42@gmail.com>
158
159 * symtab.c (lookup_static_symbol): Renamed from
160 lookup_static_symbol_aux. All callers updated.
161 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
162 All callers updated.
163
164 2014-11-06 Doug Evans <xdje42@gmail.com>
165
166 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
167 * block.c (block_lookup_symbol): Use it.
168 * cp-support.c (make_symbol_overload_list_block): Use it.
169 * symtab.c (iterate_over_symbols): Use it.
170
171 2014-11-06 Doug Evans <xdje42@gmail.com>
172
173 * symtab.c (lookup_block_symbol): Moved to ...
174 * block.c (block_lookup_symbol): ... here and renamed.
175 All callers updated.
176 * block.h (block_lookup_symbol): Declare.
177 * symtab.h (lookup_block_symbol): Delete.
178
179 2014-11-06 Doug Evans <xdje42@gmail.com>
180
181 * ada-lang.c (ada_make_symbol_completion_list): Use
182 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
183 * symtab.c (lookup_objfile_from_block): Ditto.
184
185 2014-11-06 Doug Evans <xdje42@gmail.com>
186
187 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
188 TYPE_CODE_STRUCT.
189
190 2014-11-06 Doug Evans <xdje42@gmail.com>
191
192 * objfiles.c (get_objfile_arch): Constify.
193 * objfiles.h (get_objfile_arch): Update prototype.
194 * solib.c (solib_global_lookup): Fetch arch from objfile,
195 not target_gdbarch.
196
197 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
198
199 * nios2-tdep.c (wild_insn): Delete.
200 (profiler_insn, irqentry_insn): Delete.
201 (nios2_match_sequence): Delete.
202 (nios2_analyze_prologue): Update comments. Remove matching
203 of obsolete profiler_insn and irqentry_insn sequences.
204
205 2014-11-05 Alan Modra <amodra@gmail.com>
206
207 * charset.c (convert_between_encodings): Shrink obstack using
208 obstack_blank_fast.
209 * minsyms.c (install_minimal_symbols): Likewise.
210 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
211 to char* before doing pointer arithmetic.
212
213 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
214
215 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
216
217 2014-11-04 Pedro Alves <palves@redhat.com>
218
219 * breakpoint.c (breakpoint_thread_match): Delete function.
220 * breakpoint.h (breakpoint_thread_match): Delete declaration.
221
222 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
223
224 PR c++/17494
225 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
226 the method args also under EVAL_SKIP when evaluating method
227 calls under EVAL_SKIP.
228
229 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
230
231 * dwarf2loc.c (read_pieced_value): Do big endian
232 processing only if gdb_regnum is not -1.
233 (write_pieced_value): Ditto.
234
235 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
236
237 * arm-linux-tdep.c (arm_linux_init_abi): Use
238 info.byte_order_for_code to choose endianity of breakpoint
239 instructions snippets.
240
241 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
242
243 * arm-tdep.c (extract_arm_insn): Use
244 gdbarch_byte_order_for_code to read arm instruction.
245
246 2014-11-02 Doug Evans <xdje42@gmail.com>
247
248 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
249
250 2014-11-02 Doug Evans <xdje42@gmail.com>
251
252 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
253 main_subfile before returning.
254
255 2014-10-31 Doug Evans <xdje42@gmail.com>
256
257 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
258 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
259
260 2014-10-31 Doug Evans <xdje42@gmail.com>
261
262 * valops.c (value_cast_pointers): Fix whitespace.
263 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
264 Ditto.
265
266 2014-10-30 Doug Evans <dje@google.com>
267
268 * NEWS: Mention ability add attributes to gdb.Objfile and
269 gdb.Progspace objects.
270 * python/py-objfile.c (objfile_object): New member dict.
271 (objfpy_dealloc): Py_XDECREF dict.
272 (objfpy_initialize): Initialize dict.
273 (objfile_getset): Add __dict__.
274 (objfile_object_type): Set tp_dictoffset member.
275 * python/py-progspace.c (progspace_object): New member dict.
276 (pspy_dealloc): Py_XDECREF dict.
277 (pspy_initialize): Initialize dict.
278 (pspace_getset): Add __dict__.
279 (pspace_object_type): Set tp_dictoffset member.
280
281 2014-10-30 Yao Qi <yao@codesourcery.com>
282
283 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
284 replace '\\' with '\\\\'.
285
286 2014-10-29 Joel Brobecker <brobecker@adacore.com>
287
288 GDB 7.8.1 released.
289
290 2014-10-29 Pedro Alves <palves@redhat.com>
291
292 PR gdb/17408
293 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
294 instead of assuming a thread with a stepping range is always
295 stepping.
296
297 2014-10-29 Pedro Alves <palves@redhat.com>
298
299 PR python/17372
300 * event-top.c (change_line_handler): Call
301 gdb_rl_callback_handler_remove instead of
302 rl_callback_handler_remove.
303 (callback_handler_installed): New global.
304 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
305 (gdb_rl_callback_handler_reinstall): New functions.
306 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
307 gdb_rl_callback_handler_install instead of
308 rl_callback_handler_remove and rl_callback_handler_install.
309 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
310 instead of rl_callback_handler_remove.
311 * event-top.h (gdb_rl_callback_handler_remove)
312 (gdb_rl_callback_handler_install)
313 (gdb_rl_callback_handler_reinstall): New declarations.
314 * infrun.c (reinstall_readline_callback_handler_cleanup): New
315 cleanup function.
316 (fetch_inferior_event): Install it.
317 * top.c (gdb_readline_wrapper_line) Call
318 gdb_rl_callback_handler_remove instead of
319 rl_callback_handler_remove.
320 (gdb_readline_wrapper_cleanup): Don't call
321 rl_callback_handler_install.
322
323 2014-10-29 Pedro Alves <palves@redhat.com>
324
325 * event-top.c (command_line_handler): Clear the first byte of
326 linebuffer, when it is first allocated.
327
328 2014-10-29 Pedro Alves <palves@redhat.com>
329
330 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
331 TRY_CATCH.
332
333 2014-10-29 Pedro Alves <palves@redhat.com>
334
335 PR tui/16138
336 PR tui/17519
337 * tui/tui-interp.c (tui_is_toplevel): Delete global.
338 (tui_allowed_p): Delete function.
339 * tui/tui.c: Include "interps.h".
340 (tui_enable): Don't use tui_allowed_p. Error out here with
341 detailed error messages if the TUI is the top level interpreter,
342 or if output is not a terminal. Use newterm instead of initscr,
343 and error out if initializing the terminal fails. Also error out if
344 the terminal doesn't support cursor addressing.
345 * tui/tui.h (tui_allowed_p): Delete declaration.
346
347 2014-10-29 Joel Brobecker <brobecker@adacore.com>
348
349 * arm-tdep.c (arm_skip_stack_protector): Return early if
350 address loaded by first "ldr" instruction does not have
351 a corresponding minimal symbol. Update comment.
352
353 2014-10-29 Yao Qi <yao@codesourcery.com>
354
355 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
356 loaded address correctly of ldr instruction.
357
358 2014-10-28 Pedro Alves <palves@redhat.com>
359
360 PR gdb/12623
361 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
362 field.
363 * infrun.c (resume) <stepping breakpoint instruction>: Set the
364 thread's stepped_breakpoint field. Skip if reverse debugging.
365 Add comment.
366 (init_thread_stepping_state, handle_signal_stop): Clear the
367 thread's stepped_breakpoint field.
368
369 2014-10-27 Pedro Alves <palves@redhat.com>
370
371 * remote.c (remote_thread_alive): New, factored out from ...
372 (remote_thread_alive): ... this.
373 (remote_update_thread_list): Bail out before deleting threads if
374 the target returned an empty list, and, the current thread has a
375 magic/fake ptid.
376
377 2014-10-27 Pedro Alves <palves@redhat.com>
378
379 * infrun.c (handle_signal_stop): Also skip handlers when a random
380 signal arrives while handling a "stepi" or a "nexti". Set the
381 thread's 'step_after_step_resume_breakpoint' flag.
382
383 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
384
385 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
386 (arm_record_ld_st_imm_offset): Reimplement to cover all
387 load/store cases for ARM opcode 010.
388 (arm_record_ld_st_multiple): Reimplement to cover all
389 load/store cases for ARM opcode 100.
390
391 2014-10-26 Doug Evans <xdje42@gmail.com>
392
393 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
394
395 2014-10-26 Doug Evans <xdje42@gmail.com>
396
397 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
398 parameter "kind" to "block_index".
399 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
400 "block_index".
401 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
402
403 2014-10-26 Doug Evans <xdje42@gmail.com>
404
405 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
406
407 2014-10-26 Doug Evans <xdje42@gmail.com>
408
409 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
410 obstack_alloc.
411
412 2014-10-26 Doug Evans <xdje42@gmail.com>
413
414 * parser-defs.h (block_found): Move decl from here ...
415 * symtab.h (block_found): ... to here.
416
417 2014-10-26 Doug Evans <xdje42@gmail.com>
418
419 * symtab.h (struct field_of_this_result): Fix typo in comment.
420 (lookup_symbol_in_language): Move function comment here.
421 (lookup_symbol): Improve function comment.
422 (basic_lookup_symbol_nonlocal): Ditto.
423 (lookup_symbol_static, lookup_symbol_global): Ditto.
424 (lookup_symbol_aux_block): Ditto.
425 (lookup_language_this): Add function comment.
426 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
427 function comment.
428 (lookup_block_symbol): Improve function comment.
429 (lookup_struct): Fix capitalization in function comment.
430 (lookup_transparent_type): Add function comment.
431 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
432 Improve function comment.
433 (lookup_objfile_from_block): Add function comment.
434 * symtab.c (lookup_symbol_in_language): Update function comment.
435 (lookup_symbol, lookup_language_this): Ditto.
436 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
437 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
438 (basic_lookup_symbol_nonlocal): Ditto.
439 (lookup_symbol_static, lookup_symbol_global): Ditto.
440 (lookup_transparent_type, lookup_block_symbol): Ditto.
441
442 2014-10-25 Doug Evans <xdje42@gmail.com>
443
444 * symtab.c (types_info): Delete forward decl.
445 (functions_info, variables_info, sources_info): Ditto.
446 (_initialize_symtab): Rewrite forward decl to use
447 initialize_file_ftype.
448
449 2014-10-25 Doug Evans <xdje42@gmail.com>
450
451 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
452
453 2014-10-25 Doug Evans <xdje42@gmail.com>
454
455 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
456 of local var child_die.
457
458 2014-10-24 Don Breazeal <donb@codesourcery.com>
459
460 * infrun.c (follow_fork_inferior): Update fork message printing
461 to use target_terminal_ours_for_output instead of
462 target_terminal_ours, to use _() for all format strings, to print
463 "vfork" instead of "fork" for vforks, and to add a detach message.
464 (handle_vfork_child_exec_or_exit): Update message printing to use
465 target_terminal_ours_for_output instead of target_terminal_ours, to
466 use _() for all format strings, and to fix some formatting.
467
468 2014-10-24 Pedro Alves <palves@redhat.com>
469
470 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
471 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
472 * config/vax/vax.mh: Delete.
473 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
474 obsolete configurations section.
475 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
476 * vax-nat.c: Delete file.
477
478 2014-10-24 Pedro Alves <palves@redhat.com>
479
480 * NEWS (Removed targets): Add OS/arch column.
481
482 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
483
484 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
485 on the arg type of a constructor only if it is of reference type.
486
487 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
488
489 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
490 accessors and constants from nios2 opcodes update.
491 (nios2_get_next_pc): Likewise.
492
493 2014-10-19 Doug Evans <xdje42@gmail.com>
494
495 * gdbthread.h (set_running): Fix comment.
496 (set_executing, finish_thread_state): Fix comment.
497
498 2014-10-18 Doug Evans <xdje42@gmail.com>
499
500 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
501
502 2014-10-17 Doug Evans <dje@google.com>
503
504 * NEWS: Mention new event gdb.clear_objfiles.
505 * python/py-event.h (emit_clear_objfiles_event): Clear
506 * python/py-events.h (events_object): New member clear_objfiles.
507 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
508 event.
509 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
510 emit clear_objfiles event.
511 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
512 function.
513 (emit_clear_objfiles_event): New function.
514 (clear_objfiles): New event.
515 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
516 Declare.
517 * python/python.c (_initialize_python): Call
518 gdbpy_initialize_clear_objfiles_event.
519
520 2014-10-17 Doug Evans <dje@google.com>
521
522 * NEWS: Mention new gdb.Objfile.progspace attribute.
523 * python/py-objfile.c (objfpy_get_progspace): New function.
524 (objfile_getset): New entry for "progspace".
525
526 2014-10-17 Pedro Alves <palves@redhat.com>
527
528 PR gdb/17471
529 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
530 returns a copy of the input.
531 (run_command_1, continue_command, step_1, jump_command)
532 (signal_command, until_command, advance_command, finish_command)
533 (attach_command): Adjust and install a cleanup to free the
534 stripped args.
535
536 2014-10-17 Pedro Alves <palves@redhat.com>
537
538 PR gdb/17300
539 * infcmd.c (continue_1): If continuing all threads in the
540 foreground, make sure the inferior's terminal settings are put in
541 effect.
542
543 2014-10-17 Pedro Alves <palves@redhat.com>
544
545 PR gdb/17472
546 * annotate.c (annotate_breakpoints_invalid): Use
547 target_terminal_our_for_output instead of target_terminal_ours.
548 Give back the terminal to the target.
549 (annotate_frames_invalid): Likewise.
550
551 2014-10-17 Pedro Alves <palves@redhat.com>
552
553 * target.c (enum terminal_state): New enum.
554 (terminal_state): New global.
555 (target_terminal_init): New function.
556 (target_terminal_inferior): Skip if inferior already owns the
557 terminal.
558 (target_terminal_ours, target_terminal_ours_for_output): New
559 functions.
560 * target.h (target_terminal_init): Convert to function prototype.
561 (target_terminal_ours_for_output): Convert to function prototype
562 and tweak comment.
563 (target_terminal_ours): Convert to function prototype and tweak
564 comment.
565 * windows-nat.c (do_initial_windows_stuff): Call
566 target_terminal_init instead of child_terminal_init_with_pgrp.
567
568 2014-10-17 Pedro Alves <palves@redhat.com>
569
570 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
571 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
572 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
573 solib-osf.c.
574 * NEWS: Mention that support for alpha*-*-osf* has been removed.
575 * ada-lang.h [__alpha__ && __osf__]
576 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
577 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
578 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
579 GDB_OSABI_OSF1.
580 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
581 files.
582 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
583 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
584 * configure: Regenerate.
585 * configure.ac: Remove references to osf.
586 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
587 section. Remove all other references to osf.
588 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
589 Remove all other references to osf.
590 * dec-thread.c: Delete file.
591 * defs.h (GDB_OSABI_OSF1): Delete.
592 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
593 defined.
594 * osabi.c (gdb_osabi_names): Delete "OSF/1".
595 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
596 Delete code.
597 (unconditionally_kill_inferior)
598 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
599 * solib-osf.c: Delete file.
600
601 2014-10-17 Pedro Alves <palves@redhat.com>
602
603 * remote.c (clear_threads_listing_context): Move higher up, out of
604 the HAVE_LIBEXPAT guard.
605
606 2014-10-16 Tristan Gingold <gingold@adacore.com>
607
608 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
609 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
610 on amd64.
611
612 2014-10-15 Pedro Alves <palves@redhat.com>
613
614 * dec-thread.c (dec_thread_count_gdb_threads)
615 (dec_thread_add_gdb_thread): Delete.
616 (dec_thread_update_thread_list): Delete.
617 (dec_thread_find_new_threads): Rename to ...
618 (dec_thread_update_thread_list): ... this. Delete GDB-size
619 threads that are no longer found in dec_thread_list.
620 (resync_thread_list): Delete.
621 (dec_thread_wait): Call dec_thread_update_thread_list instead of
622 resync_thread_list.
623
624 2014-10-15 Pedro Alves <palves@redhat.com>
625
626 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
627 * remote.c (remote_update_thread_list): Skip calling prune_threads
628 if any thread listing method is supported, and instead walk over
629 the set of remote threads listed, deleting those that are not
630 found in GDB's thread list.
631
632 2014-10-15 Pedro Alves <palves@redhat.com>
633
634 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
635 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
636 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
637 (bsd_uthread_target): Adjust.
638 * corelow.c (core_open): Adjust.
639 * dec-thread.c (dec_thread_find_new_threads): Update comment.
640 (dec_thread_update_thread_list): New function.
641 (init_dec_thread_ops): Adjust.
642 * gdbthread.h (prune_threads): New declaration.
643 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
644 (thread_db_update_thread_list): ... this. Call prune_threads.
645 (init_thread_db_ops): Adjust.
646 * nto-procfs.c (procfs_find_new_threads): Rename to ...
647 (procfs_update_thread_list): ... this. Call prune_threads.
648 (procfs_attach, procfs_create_inferior, init_procfs_targets):
649 Adjust.
650 * obsd-nat.c (obsd_find_new_threads): Rename to ...
651 (obsd_update_thread_list): ... this. Call prune_threads.
652 (obsd_add_target): Adjust.
653 * procfs.c (procfs_target): Adjust.
654 (procfs_notice_thread): Update comment.
655 (procfs_find_new_threads): Rename to ...
656 (procfs_update_thread_list): ... this. Call prune_threads.
657 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
658 comment.
659 (ravenscar_wait): Adjust.
660 (ravenscar_find_new_threads): Rename to ...
661 (ravenscar_update_thread_list): ... this. Call prune_threads.
662 (init_ravenscar_thread_ops): Adjust.
663 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
664 (record_btrace_update_thread_list): ... this. Adjust comment.
665 (init_record_btrace_ops): Adjust.
666 * remote.c (remote_threads_info): Rename to ...
667 (remote_update_thread_list): ... this. Call prune_threads.
668 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
669 Adjust.
670 * sol-thread.c (check_for_thread_db): Adjust.
671 (sol_find_new_threads_callback): Rename to ...
672 (sol_update_thread_list_callback): ... this.
673 (sol_find_new_threads): Rename to ...
674 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
675 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
676 * target-delegates.c: Regenerate.
677 * target.c (target_find_new_threads): Rename to ...
678 (target_update_thread_list): ... this.
679 * target.h (struct target_ops): Rename to_find_new_threads field
680 to to_update_thread_list.
681 (target_find_new_threads): Rename to ...
682 (target_update_thread_list): ... this.
683 * thread.c (prune_threads): Make extern.
684 (update_thread_list): Adjust.
685
686 2014-10-15 Pedro Alves <palves@redhat.com>
687
688 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
689 Add describing comment. Return -1 if the qL packet is not
690 supported.
691 (struct thread_item, thread_item_t): Move higher up in
692 the file. Add comments.
693 (struct threads_parsing_context): Move higher up in
694 the file, add comments, and remote to ...
695 (struct threads_listing_context): ... this.
696 (remote_newthread_step): Don't add the thread to GDB's thread
697 database here. Instead push it to the thread_listing_context
698 list.
699 (remote_find_new_threads): Rename to ...
700 (remote_get_threads_with_ql): ... this. Add target_ops and
701 targets_listing_context parameters. Pass down context.
702 (start_thread): Adjust.
703 (clear_threads_parsing_context): Rename to ...
704 (clear_threads_listing_context): ... this.
705 (remote_get_threads_with_qxfer): New, with parts salvaged from old
706 remote_threads_info.
707 (remote_get_threads_with_qthreadinfo): Ditto.
708 (remote_threads_info): Reimplement.
709
710 2014-10-15 Pedro Alves <palves@redhat.com>
711
712 * infrun.c (resume): Don't force displaced-stepping for all
713 single-steps on software single-stepping archs.
714
715 2014-10-15 Pedro Alves <palves@redhat.com>
716
717 * breakpoint.c (single_step_breakpoints): Delete global.
718 (insert_single_step_breakpoint): Adjust to store the breakpoint
719 pointer in the current thread.
720 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
721 (cancel_single_step_breakpoints): Delete functions.
722 (breakpoint_has_location_inserted_here): Make extern.
723 (single_step_breakpoint_inserted_here_p): Adjust to walk the
724 breakpoint list.
725 * breakpoint.h (breakpoint_has_location_inserted_here): New
726 declaration.
727 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
728 (cancel_single_step_breakpoints): Remove declarations.
729 * gdbthread.h (struct thread_control_state)
730 <single_step_breakpoints>: New field.
731 (delete_single_step_breakpoints)
732 (thread_has_single_step_breakpoints_set)
733 (thread_has_single_step_breakpoint_here): New declarations.
734 * infrun.c (follow_exec): Also clear the single-step breakpoints.
735 (singlestep_breakpoints_inserted_p, singlestep_ptid)
736 (singlestep_pc): Delete globals.
737 (infrun_thread_ptid_changed): Remove references to removed
738 globals.
739 (resume_cleanups): Delete the current thread's single-step
740 breakpoints.
741 (maybe_software_singlestep): Remove references to removed globals.
742 (resume): Adjust to use thread_has_single_step_breakpoints_set and
743 delete_single_step_breakpoints.
744 (init_wait_for_inferior): Remove references to removed globals.
745 (delete_thread_infrun_breakpoints): Delete the thread's
746 single-step breakpoints too.
747 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
748 single-step breakpoints here.
749 (delete_stopped_threads_single_step_breakpoints): New function.
750 (adjust_pc_after_break): Adjust to use
751 thread_has_single_step_breakpoints_set.
752 (handle_inferior_event): Remove references to removed globals.
753 Use delete_stopped_threads_single_step_breakpoints.
754 (handle_signal_stop): Adjust to per-thread single-step
755 breakpoints. Swap test order to do cheaper tests first.
756 (switch_back_to_stepped_thread): Extend debug output. Remove
757 references to removed globals.
758 * record-full.c (record_full_wait_1): Adjust to per-thread
759 single-step breakpoints.
760 * thread.c (delete_single_step_breakpoints)
761 (thread_has_single_step_breakpoints_set)
762 (thread_has_single_step_breakpoint_here): New functions.
763 (clear_thread_inferior_resources): Also delete the thread's
764 single-step breakpoints.
765
766 2014-10-15 Pedro Alves <palves@redhat.com>
767
768 * thread.c (delete_thread_breakpoint): New function.
769 (delete_step_resume_breakpoint)
770 (delete_exception_resume_breakpoint): Use it.
771 (delete_at_next_stop): New function.
772 (clear_thread_inferior_resources): Use delete_at_next_stop.
773
774 2014-10-15 Pedro Alves <palves@redhat.com>
775
776 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
777 (breakpoint_inserted_here_p): ... here. Remove special case for
778 software single-step breakpoints.
779 (find_non_raw_software_breakpoint_inserted_here): Inline ...
780 (software_breakpoint_inserted_here_p): ... here. Remove special
781 case for software single-step breakpoints.
782 (bp_target_info_copy_insertion_state)
783 (deprecated_insert_raw_breakpoint)
784 (deprecated_remove_raw_breakpoint): Delete functions.
785 * breakpoint.h (deprecated_insert_raw_breakpoint)
786 (deprecated_remove_raw_breakpoint): Remove declarations.
787
788 2014-10-15 Pedro Alves <palves@redhat.com>
789
790 PR breakpoints/9649
791 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
792 Delete array globals.
793 (single_step_breakpoints): New global.
794 (breakpoint_xfer_memory): Remove special handling for single-step
795 breakpoints.
796 (update_breakpoints_after_exec): Delete bp_single_step
797 breakpoints.
798 (detach_breakpoints): Remove special handling for single-step
799 breakpoints.
800 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
801 (bpstat_stop_status): Add comment.
802 (bpstat_what, bptype_string, print_one_breakpoint_location)
803 (adjust_breakpoint_address, init_bp_location): Handle
804 bp_single_step.
805 (new_single_step_breakpoint): New function.
806 (set_momentary_breakpoint, bkpt_remove_location): Remove special
807 handling for single-step breakpoints.
808 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
809 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
810 Rewrite.
811 (detach_single_step_breakpoints, find_single_step_breakpoint):
812 Delete functions.
813 (breakpoint_has_location_inserted_here): New function.
814 (single_step_breakpoint_inserted_here_p): Rewrite.
815 * breakpoint.h: Remove FIXME.
816 (enum bptype) <bp_single_step>: New enum value.
817 (insert_single_step_breakpoint): Update comment.
818 * infrun.c (resume_cleanups)
819 (delete_step_thread_step_resume_breakpoint): Remove single-step
820 breakpoints.
821 (fetch_inferior_event): Install a cleanup that removes infrun
822 breakpoints.
823 (switch_back_to_stepped_thread) <expect thread advanced also>:
824 Clear step-over info.
825
826 2014-10-15 Pedro Alves <palves@redhat.com>
827
828 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
829 (delete_thread_infrun_breakpoints): New function, with parts
830 salvaged from delete_step_resume_breakpoint_callback.
831 (delete_step_thread_step_resume_breakpoint): Delete.
832 (for_each_just_stopped_thread_callback_func): New typedef.
833 (for_each_just_stopped_thread): New function.
834 (delete_just_stopped_threads_infrun_breakpoints): New function.
835 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
836 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
837 ... this. Adjust.
838 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
839
840 2014-10-15 Pedro Alves <palves@redhat.com>
841
842 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
843 trying to step past a non-steppable watchpoint.
844 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
845 field.
846 * infrun.c (struct step_over_info): Add new field
847 'nonsteppable_watchpoint_p' and adjust comments.
848 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
849 Adjust.
850 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
851 (stepping_past_nonsteppable_watchpoint): New function.
852 (step_over_info_valid_p): Also return true if stepping past a
853 nonsteppable watchpoint.
854 (proceed): Adjust call to set_step_over_info. Remove reference to
855 init_infwait_state.
856 (init_wait_for_inferior): Remove reference to init_infwait_state.
857 (waiton_ptid): Delete global.
858 (struct execution_control_state)
859 <stepped_after_stopped_by_watchpoint>: Delete field.
860 (wait_for_inferior, fetch_inferior_event): Always pass
861 minus_one_ptid to target_wait.
862 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
863 field.
864 (init_infwait_state): Delete function.
865 (handle_inferior_event): Remove infwait_state handling.
866 (handle_signal_stop) <watchpoints handling>: Adjust after
867 stepped_after_stopped_by_watchpoint removal. Don't remove
868 breakpoints here nor set infwait_state. Set the thread's
869 stepping_over_watchpoint flag, and call keep_going instead.
870 (keep_going): Handle stepping_over_watchpoint. Adjust
871 set_step_over_info calls.
872 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
873 function.
874
875 2014-10-15 Pedro Alves <palves@redhat.com>
876
877 * infrun.c (step_over_info_valid_p): New function.
878 (resume): Use step_over_info_valid_p instead of checking the
879 threads's trap_expected flag.
880
881 2014-10-15 Doug Evans <dje@google.com>
882 Walfred Tedeschi <walfred.tedeschi@intel.com>
883
884 PR python/17364
885 * python/lib/gdb/__init__.py (packages): Add "printer".
886 * python/lib/gdb/command/bound_registers.py: Moved to ...
887 * python/lib/gdb/printer/bound_registers.py: ... here.
888 Add printer to global set of builtin printers. Rename printer from
889 "bound" to "mpx_bound128".
890 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
891 registered as global "builtin" printer.
892 (add_builtin_pretty_printer): New function.
893 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
894 gdb/printer/__init__.py.
895
896 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
897
898 * Makefile.in (SFILES): Remove d-support.c.
899 (COMMON_OBS): Remove d-support.o.
900 * d-lang.h (d_parse_symbol): Remove declaration.
901 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
902 * d-support.c: Remove file.
903
904 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
905
906 * gdb/infrun.c (process_event_stop_test): Apply
907 gdbarch_addr_bits_remove to longjmp resume address.
908
909 2014-10-15 Pedro Alves <palves@redhat.com>
910
911 * regformats/microblaze.dat: Delete file.
912
913 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
914
915 * features/Makefile (microblaze-expedite): Replace pc with rpc.
916 * regformats/microblaze-with-stack-protect.dat: Regenerate.
917
918 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
919
920 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
921 as non-trivial.
922
923 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
924
925 PR c++/13403
926 PR c++/15154
927 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
928 with qualified args.
929
930 2014-10-14 Joel Brobecker <brobecker@adacore.com>
931
932 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
933 of the case where the second operand is a pointer.
934 <BINOP_SUB>: Likewise.
935
936 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
937
938 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
939 only if it is not NULL.
940 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
941 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
942 (struct probe_ops) <clear_semaphore>: Likewise.
943 * tracepoint.c (start_tracing): Call set_semaphore only if it is
944 not NULL.
945 (stop_tracing): Likewise, for clear_semaphore.
946
947 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
948
949 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
950 using language_c, instead of current_language.
951
952 2014-10-13 Doug Evans <dje@google.com>
953
954 * python/py-objfile.c (objfpy_initialize): New function.
955 (objfpy_new, objfile_to_objfile_object): Call it.
956 * python/py-progspace.c (pspy_initialize): New function.
957 (pspy_new, pspace_to_pspace_object): Call it.
958
959 2014-10-13 Miroslav Franc <mfranc@redhat.com>
960 Jan Kratochvil <jan.kratochvil@redhat.com>
961
962 Fix "save breakpoints" for "catch" command.
963 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
964 newline.
965
966 2014-10-12 Miroslav Franc <mfranc@redhat.com>
967
968 Fix "save breakpoints" for "disable $bpnum" command.
969 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
970
971 2014-10-10 Pedro Alves <palves@redhat.com>
972
973 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
974 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
975 (HFILES_NO_SRCDIR): Remove solib-irix.h.
976 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
977 and been removed.
978 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
979 * configure.ac: Remove references to IRIX.
980 * configure.host: Add *-*-irix* to the obsolete hosts section.
981 Remove all other references to irix.
982 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
983 Delete files.
984
985 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
986
987 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
988 isn't valid, release the tdesc arch data and return NULL.
989
990 2014-10-10 Pedro Alves <palves@redhat.com>
991
992 * linux-tdep.c: Include observer.h.
993 (linux_inferior_data): New global.
994 (struct linux_info): New structure.
995 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
996 (get_linux_inferior_data): New functions.
997 (linux_vsyscall_range): Rename to ...
998 (linux_vsyscall_range_raw): ... this.
999 (linux_vsyscall_range): New function; handles caching.
1000 (_initialize_linux_tdep): Register linux_inferior_data. Install
1001 inferior_exit and inferior_appeared observers.
1002
1003 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1004 Pedro Alves <palves@redhat.com>
1005
1006 PR symtab/14466
1007 * solib-svr4.c (svr4_read_so_list): Rename to ...
1008 (svr4_current_sos_1): ... this and change the function comment.
1009 (svr4_current_sos): New function.
1010
1011 2014-10-10 Pedro Alves <palves@redhat.com>
1012
1013 * arch-utils.c (default_vsyscall_range): New function.
1014 * arch-utils.h (default_vsyscall_range): New declaration.
1015 * gdbarch.sh (vsyscall_range): New hook.
1016 * gdbarch.h, gdbarch.c: Regenerate.
1017 * linux-tdep.c (linux_vsyscall_range): New function.
1018 (linux_init_abi): Install linux_vsyscall_range as
1019 vsyscall_range gdbarch hook.
1020 * memrange.c (address_in_mem_range): New function.
1021 * memrange.h (address_in_mem_range): New declaration.
1022 * symfile-mem.c (find_vdso_size): Delete function.
1023 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1024
1025 2014-10-10 Pedro Alves <palves@redhat.com>
1026
1027 * infrun.c (normal_stop): Fix typo in comment.
1028
1029 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
1030
1031 PR tdep/9390
1032 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1033 typo when using logical AND to determine instruction type.
1034
1035 2014-10-09 Yao Qi <yao@codesourcery.com>
1036
1037 * infrun.c (handle_signal_stop): Remove local variable
1038 'printed'.
1039
1040 2014-10-08 Stan Shebs <stan@codesourcery.com>
1041
1042 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1043
1044 2014-10-08 Gary Benson <gbenson@redhat.com>
1045
1046 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1047
1048 2014-10-08 Gary Benson <gbenson@redhat.com>
1049
1050 * common/common-defs.h: Include common-exceptions.h.
1051 * exceptions.h: Do not include common-exceptions.h.
1052
1053 2014-10-08 Gary Benson <gbenson@redhat.com>
1054
1055 * common/common-defs.h: Include cleanups.h.
1056 * common/common-exceptions.c: Do not include cleanups.h.
1057 * utils.h: Likewise.
1058
1059 2014-10-08 Gary Benson <gbenson@redhat.com>
1060
1061 * ada-lang.c: Do not include exceptions.h.
1062 * ada-valprint.c: Likewise.
1063 * amd64-tdep.c: Likewise.
1064 * auto-load.c: Likewise.
1065 * block.c: Likewise.
1066 * break-catch-throw.c: Likewise.
1067 * breakpoint.c: Likewise.
1068 * btrace.c: Likewise.
1069 * c-lang.c: Likewise.
1070 * cli/cli-cmds.c: Likewise.
1071 * cli/cli-interp.c: Likewise.
1072 * cli/cli-script.c: Likewise.
1073 * completer.c: Likewise.
1074 * corefile.c: Likewise.
1075 * corelow.c: Likewise.
1076 * cp-abi.c: Likewise.
1077 * cp-support.c: Likewise.
1078 * cp-valprint.c: Likewise.
1079 * darwin-nat.c: Likewise.
1080 * dwarf2-frame-tailcall.c: Likewise.
1081 * dwarf2-frame.c: Likewise.
1082 * dwarf2loc.c: Likewise.
1083 * dwarf2read.c: Likewise.
1084 * eval.c: Likewise.
1085 * event-loop.c: Likewise.
1086 * event-top.c: Likewise.
1087 * f-valprint.c: Likewise.
1088 * frame-unwind.c: Likewise.
1089 * frame.c: Likewise.
1090 * gdbtypes.c: Likewise.
1091 * gnu-v2-abi.c: Likewise.
1092 * gnu-v3-abi.c: Likewise.
1093 * guile/scm-auto-load.c: Likewise.
1094 * guile/scm-breakpoint.c: Likewise.
1095 * guile/scm-cmd.c: Likewise.
1096 * guile/scm-frame.c: Likewise.
1097 * guile/scm-lazy-string.c: Likewise.
1098 * guile/scm-param.c: Likewise.
1099 * guile/scm-symbol.c: Likewise.
1100 * guile/scm-type.c: Likewise.
1101 * hppa-hpux-tdep.c: Likewise.
1102 * i386-tdep.c: Likewise.
1103 * inf-loop.c: Likewise.
1104 * infcall.c: Likewise.
1105 * infcmd.c: Likewise.
1106 * infrun.c: Likewise.
1107 * interps.c: Likewise.
1108 * interps.h: Likewise.
1109 * jit.c: Likewise.
1110 * linespec.c: Likewise.
1111 * linux-nat.c: Likewise.
1112 * linux-thread-db.c: Likewise.
1113 * m32r-rom.c: Likewise.
1114 * main.c: Likewise.
1115 * memory-map.c: Likewise.
1116 * mi/mi-cmd-break.c: Likewise.
1117 * mi/mi-cmd-stack.c: Likewise.
1118 * mi/mi-interp.c: Likewise.
1119 * mi/mi-main.c: Likewise.
1120 * monitor.c: Likewise.
1121 * nto-procfs.c: Likewise.
1122 * objc-lang.c: Likewise.
1123 * p-valprint.c: Likewise.
1124 * parse.c: Likewise.
1125 * ppc-linux-tdep.c: Likewise.
1126 * printcmd.c: Likewise.
1127 * probe.c: Likewise.
1128 * python/py-auto-load.c: Likewise.
1129 * python/py-breakpoint.c: Likewise.
1130 * python/py-cmd.c: Likewise.
1131 * python/py-finishbreakpoint.c: Likewise.
1132 * python/py-frame.c: Likewise.
1133 * python/py-framefilter.c: Likewise.
1134 * python/py-function.c: Likewise.
1135 * python/py-gdb-readline.c: Likewise.
1136 * python/py-inferior.c: Likewise.
1137 * python/py-infthread.c: Likewise.
1138 * python/py-lazy-string.c: Likewise.
1139 * python/py-linetable.c: Likewise.
1140 * python/py-param.c: Likewise.
1141 * python/py-prettyprint.c: Likewise.
1142 * python/py-symbol.c: Likewise.
1143 * python/py-type.c: Likewise.
1144 * python/py-value.c: Likewise.
1145 * python/python-internal.h: Likewise.
1146 * python/python.c: Likewise.
1147 * record-btrace.c: Likewise.
1148 * record-full.c: Likewise.
1149 * regcache.c: Likewise.
1150 * remote-fileio.c: Likewise.
1151 * remote-mips.c: Likewise.
1152 * remote.c: Likewise.
1153 * rs6000-aix-tdep.c: Likewise.
1154 * rs6000-nat.c: Likewise.
1155 * skip.c: Likewise.
1156 * solib-darwin.c: Likewise.
1157 * solib-dsbt.c: Likewise.
1158 * solib-frv.c: Likewise.
1159 * solib-ia64-hpux.c: Likewise.
1160 * solib-spu.c: Likewise.
1161 * solib-svr4.c: Likewise.
1162 * solib.c: Likewise.
1163 * spu-tdep.c: Likewise.
1164 * stack.c: Likewise.
1165 * stap-probe.c: Likewise.
1166 * symfile-mem.c: Likewise.
1167 * symmisc.c: Likewise.
1168 * target.c: Likewise.
1169 * thread.c: Likewise.
1170 * top.c: Likewise.
1171 * tracepoint.c: Likewise.
1172 * tui/tui-interp.c: Likewise.
1173 * typeprint.c: Likewise.
1174 * utils.c: Likewise.
1175 * valarith.c: Likewise.
1176 * valops.c: Likewise.
1177 * valprint.c: Likewise.
1178 * value.c: Likewise.
1179 * varobj.c: Likewise.
1180 * windows-nat.c: Likewise.
1181 * xml-support.c: Likewise.
1182
1183 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1184
1185 * mips-tdep.c (add_offset_16): Rewrite to implement what the
1186 name implies.
1187 (extended_mips16_next_pc): Update accordingly.
1188
1189 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1190
1191 * mips-tdep.c (mips16_instruction_is_compact_branch): New
1192 function.
1193 (micromips_instruction_is_compact_branch): Likewise.
1194 (mips16_scan_prologue): Terminate scanning upon seeing a branch
1195 or a compact jump, reaching a jump delay slot, or seeing a
1196 second non-prologue instruction.
1197 (micromips_scan_prologue): Also terminate scanning upon seeing a
1198 compact branch or jump, or reaching a branch or jump delay slot.
1199 (mips32_scan_prologue): Terminate scanning upon reaching a branch
1200 or jump delay slot, or seeing a second non-prologue instruction.
1201 (mips32_instruction_has_delay_slot): Retain instruction
1202 examination code only, update arguments accordingly and move
1203 instruction fetch pieces to...
1204 (mips32_insn_at_pc_has_delay_slot): ... this new function.
1205 (micromips_instruction_has_delay_slot): Likewise and to...
1206 (micromips_insn_at_pc_has_delay_slot): ... this new function.
1207 (mips16_instruction_has_delay_slot): Likewise and to...
1208 (mips16_insn_at_pc_has_delay_slot): ... this new function.
1209 (mips_single_step_through_delay): Update accordingly.
1210 (mips_adjust_breakpoint_address): Likewise.
1211
1212 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
1213
1214 * mips-tdep.c (micromips_instruction_has_delay_slot): When
1215 !mustbe32 also return 1 for 32-bit instructions.
1216 (mips16_instruction_has_delay_slot): Likewise. Add an
1217 explanatory comment.
1218
1219 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1220
1221 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1222 symbols special.
1223
1224 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
1225
1226 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1227 update comments.
1228 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1229 for the breakpoint's address. Don't preinitialize `placed_size'.
1230 (insert_bp_location): Set `reqstd_address' rather than
1231 `placed_address'.
1232 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1233 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1234 address.
1235 (bkpt_remove_location): Likewise.
1236 (deprecated_insert_raw_breakpoint): Likewise.
1237 (deprecated_remove_raw_breakpoint): Likewise.
1238 (find_single_step_breakpoint): Likewise.
1239 * mem-break.c (default_memory_insert_breakpoint): Use
1240 `reqstd_address' for the breakpoint's address. Don't set
1241 `placed_address' or `placed_size' if breakpoint contents couldn't
1242 have been determined.
1243 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1244 the breakpoint's address.
1245 (remote_insert_hw_breakpoint): Likewise. Don't set
1246 `placed_address' or `placed_size' if breakpoint couldn't have been
1247 set.
1248 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1249 `reqstd_address' for the breakpoint's address.
1250 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1251 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1252 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1253 * microblaze-linux-tdep.c
1254 (microblaze_linux_memory_remove_breakpoint): Likewise.
1255 * monitor.c (monitor_insert_breakpoint): Likewise.
1256 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1257 (procfs_insert_hw_breakpoint): Likewise.
1258 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1259 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1260 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1261 * remote-mips.c (mips_insert_breakpoint): Likewise.
1262 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1263
1264 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
1265
1266 * valops.c (value_assign): Check for bit field assignments
1267 before calling architecture-specific register value
1268 conversion functions.
1269
1270 2014-10-03 Pierre Muller <muller@sourceware.org>
1271
1272 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1273
1274 2014-10-02 Pedro Alves <palves@redhat.com>
1275
1276 * breakpoint.c (breakpoints_should_be_inserted_now): Use
1277 threads_are_executing.
1278 * breakpoint.h (breakpoints_should_be_inserted_now): Add
1279 describing comment.
1280 * gdbthread.h (threads_are_executing): Declare.
1281 (handle_signal_stop) <random signals>: Don't print about the
1282 signal here if stopping.
1283 (end_stepping_range): Don't notify observers here.
1284 (normal_stop): Update the thread list. If stopped by a random
1285 signal or a stepping range ended, notify observers.
1286 * thread.c (threads_executing): New global.
1287 (init_thread_list): Clear 'threads_executing'.
1288 (set_executing): Set or clear 'threads_executing'.
1289 (threads_are_executing): New function.
1290 (update_threads_executing): New function.
1291 (update_thread_list): Use it.
1292
1293 2014-10-02 Pedro Alves <palves@redhat.com>
1294
1295 PR breakpoints/17431
1296 * breakpoint.c (update_breakpoints_after_exec): Don't create
1297 overlay, longjmp, std terminate nor exception breakpoints here.
1298
1299 2014-10-02 Pedro Alves <palves@redhat.com>
1300
1301 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1302 Adjust comments.
1303 * inferior.c (find_inferior_for_program_space): Give preference to
1304 the current inferior.
1305 * inferior.h (find_inferior_for_program_space): Update comment.
1306 * progspace.c (switch_to_program_space_and_thread): Prefer the
1307 current inferior if it's bound to the program space requested. If
1308 the inferior found doesn't have a PID yet, don't bother looking up
1309 a thread.
1310 * progspace.h (switch_to_program_space_and_thread): Adjust
1311 comment.
1312 * thread.c (any_thread_of_process, any_live_thread_of_process):
1313 Give preference to the current thread.
1314
1315 2014-10-01 Pedro Alves <palves@redhat.com>
1316
1317 * breakpoint.c (insert_bp_location): Error out if inserting a
1318 software breakpoint at a read-only address.
1319 * target.c (memory_xfer_check_region): New function, factored out
1320 from ...
1321 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
1322 ULONGEST.
1323 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1324 against the memory region attributes.
1325
1326 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
1327
1328 * NEWS: Announce new exit-code field in -list-thread-groups
1329 output.
1330 * inferior.c (exit_inferior_1): Don't clear exit code.
1331 (inferior_appeared): Clear exit code.
1332 * mi/mi-main.c (print_one_inferior): Add printing of the exit
1333 code.
1334
1335 2014-10-01 Pedro Alves <palves@redhat.com>
1336
1337 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1338 GENERATED" along with emacs/vi read-only markers.
1339 * regformats/aarch64.dat: Regenerate.
1340 * regformats/arm-with-iwmmxt.dat: Regenerate.
1341 * regformats/arm-with-neon.dat: Regenerate.
1342 * regformats/arm-with-vfpv2.dat: Regenerate.
1343 * regformats/arm-with-vfpv3.dat: Regenerate.
1344 * regformats/i386/amd64-avx-linux.dat: Regenerate.
1345 * regformats/i386/amd64-avx.dat: Regenerate.
1346 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1347 * regformats/i386/amd64-avx512.dat: Regenerate.
1348 * regformats/i386/amd64-linux.dat: Regenerate.
1349 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1350 * regformats/i386/amd64-mpx.dat: Regenerate.
1351 * regformats/i386/amd64.dat: Regenerate.
1352 * regformats/i386/i386-avx-linux.dat: Regenerate.
1353 * regformats/i386/i386-avx.dat: Regenerate.
1354 * regformats/i386/i386-avx512-linux.dat: Regenerate.
1355 * regformats/i386/i386-avx512.dat: Regenerate.
1356 * regformats/i386/i386-linux.dat: Regenerate.
1357 * regformats/i386/i386-mmx-linux.dat: Regenerate.
1358 * regformats/i386/i386-mmx.dat: Regenerate.
1359 * regformats/i386/i386-mpx-linux.dat: Regenerate.
1360 * regformats/i386/i386-mpx.dat: Regenerate.
1361 * regformats/i386/i386.dat: Regenerate.
1362 * regformats/i386/x32-avx-linux.dat: Regenerate.
1363 * regformats/i386/x32-avx.dat: Regenerate.
1364 * regformats/i386/x32-avx512-linux.dat: Regenerate.
1365 * regformats/i386/x32-avx512.dat: Regenerate.
1366 * regformats/i386/x32-linux.dat: Regenerate.
1367 * regformats/i386/x32.dat: Regenerate.
1368 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1369 * regformats/mips-dsp-linux.dat: Regenerate.
1370 * regformats/mips-linux.dat: Regenerate.
1371 * regformats/mips64-dsp-linux.dat: Regenerate.
1372 * regformats/mips64-linux.dat: Regenerate.
1373 * regformats/nios2-linux.dat: Regenerate.
1374 * regformats/rs6000/powerpc-32.dat: Regenerate.
1375 * regformats/rs6000/powerpc-32l.dat: Regenerate.
1376 * regformats/rs6000/powerpc-64l.dat: Regenerate.
1377 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1378 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1379 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1380 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1381 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1382 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1383 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1384 * regformats/s390-linux32.dat: Regenerate.
1385 * regformats/s390-linux32v1.dat: Regenerate.
1386 * regformats/s390-linux32v2.dat: Regenerate.
1387 * regformats/s390-linux64.dat: Regenerate.
1388 * regformats/s390-linux64v1.dat: Regenerate.
1389 * regformats/s390-linux64v2.dat: Regenerate.
1390 * regformats/s390-te-linux64.dat: Regenerate.
1391 * regformats/s390x-linux64.dat: Regenerate.
1392 * regformats/s390x-linux64v1.dat: Regenerate.
1393 * regformats/s390x-linux64v2.dat: Regenerate.
1394 * regformats/s390x-te-linux64.dat: Regenerate.
1395 * regformats/tic6x-c62x-linux.dat: Regenerate.
1396 * regformats/tic6x-c62x.dat: Regenerate.
1397 * regformats/tic6x-c64x-linux.dat: Regenerate.
1398 * regformats/tic6x-c64x.dat: Regenerate.
1399 * regformats/tic6x-c64xp-linux.dat: Regenerate.
1400 * regformats/tic6x-c64xp.dat: Regenerate.
1401
1402 2014-10-01 Pedro Alves <palves@redhat.com>
1403
1404 * features/Makefile: Update comments.
1405 (XMLTOC): List all xml files we build C files from.
1406 (clean-cfiles): New rule.
1407
1408 2014-10-01 Pedro Alves <palves@redhat.com>
1409
1410 * features/i386/amd64-avx512-linux.c: Regenerate.
1411 * features/i386/amd64-avx512.c: Regenerate.
1412 * features/i386/x32-avx512-linux.c: Regenerate.
1413 * features/i386/x32-avx512.c: Regenerate.
1414
1415 2014-10-01 Pedro Alves <palves@redhat.com>
1416
1417 * features/Makefile (WHICH): Remove arm-with-m,
1418 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1419
1420 2014-10-01 Pedro Alves <palves@redhat.com>
1421
1422 * features/Makefile (clean): New rule.
1423
1424 2014-10-01 Pedro Alves <palves@redhat.com>
1425
1426 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1427 (zmm14h): Add missing end quotes.
1428
1429 2014-10-01 Pedro Alves <palves@redhat.com>
1430
1431 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1432 * features/aarch64.c: Regenerate.
1433
1434 2014-09-30 Don Breazeal <donb@codesourcery.com>
1435
1436 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1437 code so as to work with follow_fork_inferior.
1438 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1439 (inf_ttrace_create_inferior): Remove reference to
1440 inf_ttrace_vfork_ppid.
1441 (inf_ttrace_attach): Ditto.
1442 (inf_ttrace_detach): Ditto.
1443 (inf_ttrace_kill): Use current_inferior instead of
1444 inf_ttrace_vfork_ppid.
1445 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1446 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1447 inferior away from the parent.
1448 * infrun.c (follow_fork): Call follow_fork_inferior instead of
1449 target_follow_fork.
1450 (follow_fork_inferior): New function.
1451 (follow_inferior_reset_breakpoints): Make function static.
1452 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1453 * linux-nat.c (linux_child_follow_fork): Move target-independent
1454 code to infrun.c:follow_fork_inferior.
1455
1456 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1457
1458 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1459 * gdbarch.c: Regenerate.
1460 * gdbarch.h: Likewise.
1461 * corelow.c (sniff_core_bfd): Drop presence check for deleted
1462 gdbarch method 'regset_from_core_section'.
1463 (get_core_register_section): Remove handling for the case that
1464 regset == NULL and regset_from_core_section is defined.
1465 (get_core_registers): Drop check for deleted method.
1466 * procfs.c (procfs_do_thread_registers): Adjust comment.
1467
1468 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1469
1470 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1471 (linux_nat_make_corefile_notes): Remove.
1472 (linux_target_install_ops): Do not set target method
1473 'make_corefile_notes'.
1474 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1475 Remove field.
1476 (linux_corefile_thread_callback): Instead of args->collect, call
1477 linux_collect_thread_registers.
1478 (linux_make_corefile_notes): Remove 'collect' parameter. Return
1479 NULL unless there is a regset iterator.
1480 (linux_make_corefile_notes_1): Remove.
1481 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1482 by linux_make_corefile_notes.
1483 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1484
1485 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1486
1487 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1488 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1489 Remove.
1490 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1491
1492 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1493
1494 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1495 (xtensa_iterate_over_regset_sections): New.
1496 (xtensa_gdbarch_init): Adjust gdbarch initialization.
1497
1498 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1499
1500 * vax-tdep.c (vax_regset_from_core_section): Remove.
1501 (vax_iterate_over_regset_sections): New.
1502 (vax_gdbarch_init): Adjust gdbarch initialization.
1503
1504 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1505
1506 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1507 (tilegx_regset_from_core_section): Remove.
1508 (tilegx_iterate_over_regset_sections): New.
1509 (tilegx_linux_init_abi): Adjust gdbarch initialization.
1510
1511 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1512
1513 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1514 (sparc_iterate_over_regset_sections): New.
1515 (sparc32_gdbarch_init): Adjust gdbarch initialization.
1516 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1517 targets.
1518 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1519 (sparc64fbsd_init_abi): Call fbsd_init_abi.
1520 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1521 target method 'make_corefile_notes'.
1522
1523 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1524
1525 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1526 'sizeof_gregset' and 'sizeof_fpregset'.
1527 * sh-tdep.c (sh_regset_from_core_section): Remove.
1528 (sh_iterate_over_regset_sections): New.
1529 (sh_gdbarch_init): Adjust gdbarch initialization.
1530 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1531 sizeof_fpregset.
1532 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1533 'sizeof_gregset'.
1534
1535 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1536
1537 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
1538 (score7_linux_iterate_over_regset_sections): New.
1539 (score_gdbarch_init): Adjust gdbarch initialization.
1540
1541 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1542
1543 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
1544 FreeBSD targets.
1545 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
1546 method 'make_corefile_notes'.
1547 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
1548 (ppcfbsd_regset_from_core_section): Remove.
1549 (ppcfbsd_iterate_over_regset_sections): New.
1550 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
1551 initialization.
1552 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
1553 (ppcnbsd_iterate_over_regset_sections): New.
1554 (ppcnbsd_init_abi): Adjust.
1555 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
1556 (ppcobsd_iterate_over_regset_sections): New.
1557 (ppcobsd_init_abi): Adjust.
1558 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
1559 (rs6000_aix_iterate_over_regset_sections): New.
1560 (rs6000_aix_init_osabi): Adjust.
1561
1562 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1563
1564 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
1565 (nios2_regset_from_core_section): Remove.
1566 (nios2_iterate_over_regset_sections): New.
1567 (nios2_linux_init_abi): Adjust gdbarch initialization.
1568
1569 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1570
1571 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
1572 (am33_iterate_over_regset_sections): New.
1573 (am33_linux_init_osabi): Adjust gdbarch initialization.
1574
1575 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1576
1577 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
1578 (mips_linux_iterate_over_regset_sections): New.
1579 (mips_linux_init_abi): Adjust gdbarch initialization.
1580 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
1581 (mips64obsd_iterate_over_regset_sections): New.
1582 (mips64obsd_init_abi): Adjust.
1583 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
1584 (mipsnbsd_iterate_over_regset_sections): New.
1585 (mipsnbsd_init_abi): Adjust.
1586
1587 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1588
1589 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
1590 (m88k_iterate_over_regset_sections): New.
1591 (m88k_gdbarch_init): Adjust gdbarch initialization.
1592
1593 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1594
1595 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
1596 (ia64_linux_iterate_over_regset_sections): New.
1597 (ia64_linux_init_abi): Adjust gdbarch initialization.
1598
1599 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1600
1601 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
1602 (m68kbsd_iterate_over_regset_sections): New.
1603 (m68kbsd_init_abi): Adjust gdbarch initialization.
1604 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
1605 (m68k_linux_iterate_over_regset_sections): New.
1606 (m68k_linux_init_abi): Adjust gdbarch initialization.
1607
1608 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1609
1610 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
1611 (m32r_linux_regset_from_core_section): Remove.
1612 (m32r_linux_iterate_over_regset_sections): New.
1613 (m32r_linux_init_abi): Adjust gdbarch initialization.
1614
1615 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1616
1617 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
1618 (amd64obsd_iterate_over_regset_sections): New.
1619 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
1620 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1621 Remove.
1622 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
1623 regset_from_core_section initialization.
1624 * i386-tdep.c (i386_regset_from_core_section): Remove.
1625 (i386_iterate_over_regset_sections): New.
1626 (i386_gdbarch_init): Adjust gdbarch initialization.
1627 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
1628 (i386_iterate_over_regset_sections): New prototype.
1629 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
1630 Remove.
1631 (i386obsd_aout_iterate_over_regset_sections): New.
1632 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
1633 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
1634 targets.
1635 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
1636 (amd64fbsd_init_abi): Call fbsd_init_abi.
1637 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
1638 (i386fbsd4_init_abi): Call fbsd_init_abi.
1639 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
1640 target method 'make_corefile_notes'.
1641 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
1642
1643 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1644
1645 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
1646 (hppa_hpux_iterate_over_regset_sections): New.
1647 (hppa_hpux_init_abi): Adjust gdbarch initialization.
1648 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
1649 (hppa_linux_iterate_over_regset_sections): New.
1650 (hppa_linux_init_abi): Adjust.
1651 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1652 (hppanbsd_iterate_over_regset_sections): New.
1653 (hppanbsd_init_abi): Adjust.
1654 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
1655 (hppaobsd_iterate_over_regset_sections): New.
1656 (hppaobsd_init_abi): Adjust.
1657
1658 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1659
1660 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
1661 (frv_linux_iterate_over_regset_sections): New.
1662 (frv_linux_init_abi): Adjust gdbarch initialization.
1663
1664 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1665
1666 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
1667 (armbsd_iterate_over_regset_sections): New prototype.
1668 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
1669 (armbsd_iterate_over_regset_sections): New.
1670 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
1671 initialization.
1672
1673 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1674
1675 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
1676 (alpha_linux_iterate_over_regset_sections): New.
1677 (alpha_linux_init_abi): Adjust gdbarch initialization.
1678 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
1679 prototype.
1680 (alphanbsd_iterate_over_regset_sections): New prototype.
1681
1682 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1683
1684 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
1685 Remove.
1686 (aarch64_linux_iterate_over_regset_sections): New.
1687 (aarch64_linux_init_abi): Adjust gdbarch initialization.
1688
1689 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1690
1691 * fbsd-tdep.c: New file.
1692 * fbsd-tdep.h: New file.
1693 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
1694 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
1695 (ALLDEPFILES): Add fbsd-tdep.c.
1696
1697 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1698
1699 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
1700 parameter.
1701 * gdbarch.h: Regenerate.
1702 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
1703 iterator.
1704 (get_core_register_section): Add parameter 'regset' and use it, if
1705 set. Add parameter 'min_size' and verify the bfd section size
1706 against it.
1707 (get_core_registers_cb): Add parameter 'regset' and pass it to
1708 get_core_register section. For the "standard" register sections
1709 ".reg" and ".reg2", set an appropriate default for human_name.
1710 (get_core_registers): Don't abort when the gdbarch has an iterator
1711 but no regset_from_core_section. Add NULL/0 for parameters
1712 'regset'/'min_size' in calls to get_core_register_section.
1713 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
1714 'regset' and use it instead of calling the
1715 regset_from_core_section gdbarch method.
1716 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
1717 * i386-tdep.c (i386_supply_xstateregset)
1718 (i386_collect_xstateregset, i386_xstateregset): Moved to
1719 i386-linux-tdep.c.
1720 (i386_regset_from_core_section): Drop handling for .reg-xfp and
1721 .reg-xstate.
1722 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
1723 core file support only if the regset iterator hasn't been set.
1724 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
1725 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
1726 Moved from i386-tdep.c and renamed to *_linux*.
1727 (i386_linux_iterate_over_regset_sections): Add regset parameter to
1728 each callback invocation. Allow any .reg-xstate size when reading
1729 from a core file.
1730 * amd64-tdep.c (amd64_supply_xstateregset)
1731 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
1732 amd64-linux-tdep.c.
1733 (amd64_regset_from_core_section): Remove.
1734 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
1735 install an amd64-specific regset_from_core_section gdbarch method.
1736 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
1737 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
1738 Moved from amd64-tdep.c and renamed to *_linux*.
1739 (amd64_linux_iterate_over_regset_sections): Add regset parameter
1740 to each callback invocation. Allow any .reg-xstate size when
1741 reading from a core file.
1742 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
1743 (arm_linux_iterate_over_regset_sections): Add regset parameter to
1744 each callback invocation.
1745 (arm_linux_init_abi): No longer set the regset_from_core_section
1746 gdbarch method.
1747 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
1748 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
1749 each callback invocation.
1750 (ppc_linux_init_abi): No longer set the regset_from_core_section
1751 gdbarch method.
1752 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
1753 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
1754 (s390_regset_from_core_section): Remove.
1755 (s390_iterate_over_regset_sections): Add regset parameter to each
1756 callback invocation.
1757 (s390_gdbarch_init): No longer set the regset_from_core_section
1758 gdbarch method. Drop initialization of deleted tdep fields.
1759
1760 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
1761
1762 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
1763 (amd64_linux_iterate_over_regset_sections): New.
1764 (amd64_linux_init_abi_common): Don't install the regset section
1765 list, but the new iterator in gdbarch.
1766 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
1767 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
1768 (arm_linux_iterate_over_regset_sections): ...here. New function.
1769 (arm_linux_init_abi): Set iterator instead of section list.
1770 * corelow.c (get_core_registers_cb): New function, logic moved
1771 from...
1772 (get_core_registers): ...loop body here. Use new iterator method
1773 instead of walking through the regset section list.
1774 * gdbarch.sh: Remove 'core_regset_sections'. New method
1775 'iterate_over_regset_sections'. New typedef
1776 'iterate_over_regset_sections_cb'.
1777 * gdbarch.c: Regenerate.
1778 * gdbarch.h: Likewise.
1779 * i386-linux-tdep.c (i386_linux_regset_sections)
1780 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
1781 Remove.
1782 (i386_linux_iterate_over_regset_sections): New.
1783 (i386_linux_init_abi): Don't choose a regset section list, but
1784 install new iterator in gdbarch.
1785 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
1786 (linux_collect_regset_section_cb): New function, logic moved
1787 from...
1788 (linux_collect_thread_registers): ...loop body here. Use iterator
1789 method instead of walking through list.
1790 (linux_make_corefile_notes_1): Check for presence of iterator
1791 method instead of regset section list.
1792 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
1793 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
1794 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
1795 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
1796 (ppc_linux_iterate_over_regset_sections): ...here. New function.
1797 (ppc_linux_init_abi): Don't choose from above regset section
1798 lists, but install new iterator in gdbarch.
1799 * regset.h (struct core_regset_section): Remove.
1800 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
1801 have_linux_v1, have_linux_v2, and have_tdb.
1802 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
1803 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
1804 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
1805 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
1806 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
1807 (s390_iterate_over_regset_sections): ...here. New function. Use
1808 new tdep fields.
1809 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
1810 regset section lists, but install new iterator.
1811
1812 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1813
1814 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
1815
1816 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
1817
1818 * progspace.c (print_program_space): Don't prune program spaces
1819 before printing them.
1820
1821 2014-09-25 Pedro Alves <palves@redhat.com>
1822
1823 * infrun.c (user_visible_resume_ptid): Don't check
1824 singlestep_breakpoints_inserted_p.
1825
1826 2014-09-25 Pedro Alves <palves@redhat.com>
1827
1828 * breakpoint.c (should_be_inserted): Add debug output.
1829
1830 2014-09-25 Pedro Alves <palves@redhat.com>
1831
1832 * infrun.c (stepping_past_instruction_at)
1833 (clear_exit_convenience_vars): Point at infrun.h instead of
1834 inferior.h.
1835 (handle_signal_stop): Fix typo.
1836
1837 2014-09-24 Yao Qi <yao@codesourcery.com>
1838
1839 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
1840 bitmask.
1841
1842 2014-09-22 Gary Benson <gbenson@redhat.com>
1843
1844 * target.c (target_stop): Updated comment.
1845
1846 2014-09-22 Gary Benson <gbenson@redhat.com>
1847
1848 * target/target.h (target_stop_ptid): Renamed as...
1849 (target_stop_and_wait): New function. Updated comment.
1850 All uses updated.
1851 (target_continue_ptid): Renamed as...
1852 (target_continue_no_signal): New function. Updated comment.
1853 All uses updated.
1854
1855 2014-09-22 Pedro Alves <palves@redhat.com>
1856
1857 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
1858 and "auto" merged.
1859 * breakpoint.c (enum ugll_insert_mode): New enum.
1860 (always_inserted_mode): Now a plain boolean.
1861 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
1862 (breakpoints_always_inserted_mode): Delete.
1863 (breakpoints_should_be_inserted_now): New function.
1864 (insert_breakpoints): Pass UGLL_INSERT to
1865 update_global_location_list instead of calling
1866 insert_breakpoint_locations manually.
1867 (create_solib_event_breakpoint_1): New, factored out from ...
1868 (create_solib_event_breakpoint): ... this.
1869 (create_and_insert_solib_event_breakpoint): Use
1870 create_solib_event_breakpoint_1 instead of calling
1871 insert_breakpoint_locations manually.
1872 (update_global_location_list): Change parameter type from boolean
1873 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1874 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1875 (update_global_location_list_nothrow): Change parameter type from
1876 boolean to enum ugll_insert_mode.
1877 (_initialize_breakpoint): "breakpoint always-inserted" option is
1878 now a boolean command. Update help text.
1879 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
1880 (breakpoints_should_be_inserted_now): New declaration.
1881 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
1882 Remove breakpoints_always_inserted_mode check.
1883 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
1884 * remote.c (remote_start_remote): Likewise.
1885
1886 2014-09-22 Pedro Alves <palves@redhat.com>
1887
1888 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
1889 (insert_breakpoints): Don't call insert_breakpoint_locations here.
1890 Instead, pass UGLL_INSERT to update_global_location_list.
1891 (update_global_location_list): Change parameter type from boolean
1892 to enum ugll_insert_mode. All callers adjusted. Adjust to use
1893 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
1894 (create_solib_event_breakpoint_1): New, factored out from ...
1895 (create_solib_event_breakpoint): ... this.
1896 (create_and_insert_solib_event_breakpoint): Use
1897 create_solib_event_breakpoint_1 instead of calling
1898 insert_breakpoint_locations manually.
1899 (update_global_location_list): Handle UGLL_INSERT.
1900
1901 2014-09-22 Pedro Alves <palves@redhat.com>
1902
1903 * breakpoint.c (enum ugll_insert_mode): New enum.
1904 (update_global_location_list)
1905 (update_global_location_list_nothrow): Change parameter type from
1906 boolean to enum ugll_insert_mode. All callers adjusted.
1907
1908 2014-09-19 Joel Brobecker <brobecker@adacore.com>
1909
1910 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
1911 SystemTap support in GDB.
1912
1913 2014-09-19 Don Breazeal <donb@codesourcery.com>
1914
1915 * linux-nat.c (linux_handle_extended_wait): Call
1916 linux_ptrace_get_extended_event.
1917 (wait_lwp): Call linux_is_extended_waitstatus.
1918 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
1919 and linux_is_extended_waitstatus.
1920 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
1921 linux_ptrace_get_extended_event.
1922 (linux_ptrace_get_extended_event): New function.
1923 (linux_is_extended_waitstatus): New function.
1924 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
1925 (linux_is_extended_waitstatus): New declarations.
1926
1927 2014-09-19 Yao Qi <yao@codesourcery.com>
1928
1929 * dwarf2read.c (dwarf_decode_lines): Update declaration.
1930 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
1931 comments. Callers update.
1932 (dwarf_decode_lines): Likewise.
1933 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
1934 comments. Skip the line table if 'lowpc' is greater than
1935 'address'. Don't check
1936 dwarf2_per_objfile->has_section_at_zero.
1937
1938 2014-09-18 Doug Evans <dje@google.com>
1939
1940 * NEWS: Mention new "producer" attribute of gdb.Symtab.
1941 * python/py-symtab.c (stpy_get_producer): New function.
1942 (symtab_object_getset): Add "producer" attribute.
1943
1944 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
1945
1946 PR gdb/17384
1947 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
1948 (do_captured_read_memory_integer): Remove.
1949 (safe_read_memory_integer): Use target_read_memory directly instead
1950 of catching errors in do_captured_read_memory_integer.
1951
1952 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
1953
1954 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
1955 not gdb/doc.
1956
1957 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1958
1959 * objc-lang.c (find_implementation_from_class): Remove dead code.
1960
1961 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
1962
1963 PR cli/7233
1964 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
1965 "fprintf_unfiltered (gdb_stdlog...)".
1966
1967 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
1968
1969 PR breakpoints/12526
1970 * breakpoint.h (struct watchpoint): New fields val_bitpos and
1971 val_bitsize.
1972 * breakpoint.c (watch_command_1): Use these fields to retain
1973 bitfield information.
1974 (extract_bitfield_from_watchpoint_value): New function.
1975 (watchpoint_check): Use it.
1976 (update_watchpoint): Use it. Optimize the address and length of a
1977 HW watchpoint pointing to a bitfield.
1978 * value.h (unpack_value_bitfield): New prototype.
1979 * value.c (unpack_value_bitfield): Make extern.
1980
1981 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1982
1983 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
1984 x86-dregs.o.
1985 * gnu-nat.c (inf_threads): New function.
1986 * gnu-nat.h (inf_threads_ftype): New typedef.
1987 (inf_threads): New declaration.
1988 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
1989 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
1990 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
1991 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
1992 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
1993 (i386_gnu_dr_get_control): New functions.
1994 (reg_addr): New structure.
1995 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
1996 i386 debugging register hooks.
1997 * NEWS: Mention this.
1998
1999 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2000
2001 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2002 vector data transfer instructions.
2003 (arm_record_coproc_data_proc): Updated.
2004
2005 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2006
2007 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2008 arm_record_exreg_ld_st_insn.
2009 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2010 load/store insns.
2011
2012 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2013
2014 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2015 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2016 processing instructions.
2017
2018 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2019
2020 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2021 for advance SIMD struct ld/st insn.
2022 (thumb2_record_decode_insn_handler): Replace stub handler with
2023 thumb2_record_asimd_struct_ld_st.
2024
2025 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
2026
2027 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2028 for asimd, vfp and coprocessor insns.
2029 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2030 and coprocessor insns.
2031 (thumb2_record_coproc_insn): New function.
2032 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2033 handlers.
2034 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2035 opcode 110 insns.
2036
2037 2014-09-13 Doug Evans <xdje42@gmail.com>
2038
2039 * NEWS: Mention new "queue-signal" command.
2040 * infcmd.c (queue_signal_command): New function.
2041 (_initialize_infcmd): Add new queue-signal command.
2042
2043 2014-09-13 Doug Evans <xdje42@gmail.com>
2044
2045 * linux-nat.c (wait_lwp): Add debugging printf.
2046 (linux_nat_wait_1): Ditto.
2047
2048 2014-09-12 Pedro Alves <palves@redhat.com>
2049
2050 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2051 (create_and_insert_solib_event_breakpoint): New functions.
2052 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2053 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2054 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2055 (remove_dbx_link_breakpoint): Delete function.
2056 (insert_dbx_link_bpt_in_file): Use
2057 create_and_insert_solib_event_breakpoint instead of
2058 deprecated_insert_raw_breakpoint.
2059 (procfs_wait): Don't check whether we hit __dbx_link here.
2060 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2061 here.
2062 * solib-irix.c (base_breakpoint): Delete global.
2063 (disable_break): Delete function.
2064 (enable_break): Use create_solib_event_breakpoint
2065 instead of deprecated_insert_raw_breakpoint.
2066 (irix_solib_handle_event): New function.
2067 (irix_solib_create_inferior_hook): Don't run the target or disable
2068 the mapping-complete breakpoint here.
2069 (_initialize_irix_solib): Install irix_solib_handle_event as
2070 so_ops->handle_event hook.
2071
2072 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2073 Ulrich Weigand  <uweigand@de.ibm.com>
2074
2075 PR tdep/17379
2076 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2077 instead of read_memory_unsigned_integer.
2078
2079 2014-09-12 Gary Benson <gbenson@redhat.com>
2080
2081 * nat/linux-waitpid.c: Include common-defs.h.
2082 [GDBSERVER]: Add FIXME comment.
2083 [!GDBSERVER]: Don't include defs.h or signal.h.
2084 (linux_debug) [!GDBSERVER]: Remove empty block.
2085
2086 2014-09-12 Gary Benson <gbenson@redhat.com>
2087
2088 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2089 Don't include defs.h or server.h.
2090
2091 2014-09-12 Gary Benson <gbenson@redhat.com>
2092
2093 * nat/linux-btrace.c: Include common-defs.h.
2094 Don't include defs.h, server.h or gdbthread.h.
2095 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2096
2097 2014-09-12 Gary Benson <gbenson@redhat.com>
2098
2099 * common/agent.c: Include common-defs.h.
2100 Don't include defs.h or server.h.
2101 * common/buffer.c: Likewise.
2102 * common/common-debug.c: Likewise.
2103 * common/common-utils.c: Likewise.
2104 * common/errors.c: Likewise.
2105 * common/filestuff.c: Likewise.
2106 * common/format.c: Likewise.
2107 * common/gdb_vecs.c: Likewise.
2108 * common/print-utils.c: Likewise.
2109 * common/ptid.c: Likewise.
2110 * common/rsp-low.c: Likewise.
2111 * common/signals.c: Likewise.
2112 * common/vec.c: Likewise.
2113 * common/xml-utils.c: Likewise.
2114 * nat/linux-osdata.c: Likewise.
2115 * nat/linux-procfs.c: Likewise.
2116 * nat/linux-ptrace.c: Likewise.
2117 * nat/mips-linux-watch.c: Likewise.
2118 * target/waitstatus.c: Likewise.
2119
2120 2014-09-12 Tom Tromey <tromey@redhat.com>
2121 Gary Benson <gbenson@redhat.com>
2122
2123 * common/common-regcache.h: New file.
2124 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2125 * regcache.h: Include common-regcache.h.
2126 (regcache_read_pc): Don't declare.
2127 * regcache.c (get_thread_regcache_for_ptid): New function.
2128 * nat/linux-btrace.c: Don't include regcache.h.
2129 Include common-regcache.h.
2130 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2131
2132 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
2133
2134 * regcache.h (struct regset): Declare.
2135
2136 2014-09-11 Pedro Alves <palves@redhat.com>
2137
2138 PR gdb/17347
2139 * main.c: Include "infrun.h".
2140 (catch_command_errors, catch_command_errors_const): Wait for the
2141 foreground command to complete.
2142 * top.c (maybe_wait_sync_command_done): New function, factored out
2143 from ...
2144 (maybe_wait_sync_command_done): ... here.
2145 * top.h (maybe_wait_sync_command_done): New declaration.
2146
2147 2014-09-11 Tom Tromey <tromey@redhat.com>
2148 Gary Benson <gbenson@redhat.com>
2149
2150 * common/symbol.h: New file.
2151 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2152 * minsyms.c (find_minimal_symbol_address): New function.
2153 * common/agent.c: Include common/symbol.h.
2154 [!GDBSERVER]: Don't include objfiles.h.
2155 (agent_look_up_symbols): Use find_minimal_symbol_address.
2156
2157 2014-09-11 Gary Benson <gbenson@redhat.com>
2158
2159 * target/target.h (target_stop_ptid, target_continue_ptid):
2160 Declare.
2161 * target.c (target_stop_ptid, target_continue_ptid): New
2162 functions.
2163 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2164 (agent_run_command): Always use target_stop_ptid and
2165 target_continue_ptid.
2166
2167 2014-09-11 Tom Tromey <tromey@redhat.com>
2168 Gary Benson <gbenson@redhat.com>
2169
2170 * target/target.h: New file.
2171 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2172 * target.h: Include target/target.h.
2173 (target_read_memory, target_write_memory): Don't declare.
2174 * target.c (target_read_uint32): New function.
2175 * common/agent.c: Include target/target.h.
2176 [!GDBSERVER]: Don't include target.h.
2177 (helper_thread_id): Type changed to uint32_t.
2178 (agent_get_helper_thread_id): Use target_read_uint32.
2179 (agent_run_command): Always use target_read_memory and
2180 target_write_memory.
2181 (agent_capability): Type changed to uint32_t.
2182 (agent_capability_check): Use target_read_uint32.
2183
2184 2014-09-11 Gary Benson <gbenson@redhat.com>
2185
2186 * common/common-debug.h (show_debug_regs): Declare.
2187 * common/common-debug.c (show_debug_regs): Define.
2188 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
2189 all uses with show_debug_regs. Replace all uses that considered
2190 debug_hw_points as a multi-value integer with straight boolean
2191 uses.
2192 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
2193 with show_debug_regs.
2194 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
2195 all uses with show_debug_regs.
2196 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
2197 uses with show_debug_regs.
2198
2199 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2200
2201 * findvar.c (address_from_register): Handle targets requiring
2202 a special conversion routine even for plain pointer types.
2203
2204 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
2205
2206 * rs6000-nat.c (exec_one_dummy_insn): Remove.
2207 (store_register): Do not call exec_one_dummy_insn.
2208
2209 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2210
2211 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2212 dereference it first. Use value_enclosing_type instead of
2213 value_type.
2214 (ada_array_length): Likewise.
2215
2216 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2217
2218 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2219 Adjust function implementation and documentation accordingly.
2220 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2221 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2222 Update call to ada_value_ptr_subscript.
2223
2224 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2225
2226 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2227 instead of VAL's type.
2228
2229 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2230
2231 * amd64-linux-nat.c: Add <sys/uio.h> #include.
2232
2233 2014-09-09 Doug Evans <xdje42@gmail.com>
2234
2235 PR guile/17367
2236 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2237 last parameter to pkg-config, not first.
2238 * configure.ac: Pass --with-guile provided pkg-config path to
2239 GDB_GUILE_PROGRAM_NAMES.
2240 * configure: Regenerate.
2241
2242 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2243
2244 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2245 Bertazi".
2246
2247 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
2248
2249 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2250 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2251 the list of sections determining GDB_OSABI_IRIX.
2252
2253 2014-09-09 James Hogan <james.hogan@imgtec.com>
2254
2255 * MAINTAINERS (Write After Approval): Add "James Hogan".
2256
2257 2014-09-09 James Hogan <james.hogan@imgtec.com>
2258
2259 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2260
2261 2014-09-09 Joel Brobecker <brobecker@adacore.com>
2262
2263 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2264
2265 2014-09-08 Doug Evans <xdje42@gmail.com>
2266
2267 PR 17247
2268 * guile.c: #include <signal.h>.
2269 (_initialize_guile): Block SIGCHLD while initializing Guile.
2270
2271 Replaces the following, which is reverted.
2272
2273 2014-07-26 Doug Evans <xdje42@gmail.com>
2274
2275 PR 17185
2276 * configure.ac: Add check for header gc/gc.h.
2277 Add check for function setenv.
2278 * configure: Regenerate.
2279 * config.in: Regenerate.
2280 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2281
2282 2014-09-08 Doug Evans <xdje42@gmail.com>
2283
2284 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2285 with named constant. Fix style of pointer comparison.
2286 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2287
2288 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2289
2290 PR gdb/17035
2291 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2292 decide whether we display the command on "show user".
2293 * cli/cli-script.c (show_user_1): Only verify cmdlines after
2294 printing command name.
2295 * cli/cli-decode.h (cli_user_command_p): Declare new function.
2296 * cli/cli-decode.c (cli_user_command_p): Create helper function
2297 to verify whether cmd_list_element is a user-defined command.
2298
2299 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2300
2301 PR python/17355
2302 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2303 Fix goto out of TRY_CATCH.
2304
2305 2014-09-06 Doug Evans <xdje42@gmail.com>
2306 Tom Tromey <tromey@redhat.com>
2307
2308 PR 15276
2309 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2310 $_any_caller_matches.
2311 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2312 * python/lib/gdb/function/caller_is.py: New file.
2313
2314 2014-09-06 Doug Evans <xdje42@gmail.com>
2315
2316 * infcmd.c (program_info): Fix typo.
2317
2318 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
2319
2320 PR gdb/17235
2321 * stap-probe.c (stap_parse_single_operand): Delete unused variable
2322 'number'. New variable 'has_digit'. Rewrite code to deal with
2323 subexpressions on SDT probes.
2324
2325 2014-09-04 Pedro Alves <palves@redhat.com>
2326
2327 * c-exp.y (parse_number): Skip handling base-switching prefixes if
2328 the input is only one character long.
2329
2330 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2331
2332 PR fortran/17237
2333 * f-valprint.c (f_val_print): Specify the correct print option to
2334 use when printing integer values.
2335
2336 2014-09-04 Gary Benson <gbenson@redhat.com>
2337
2338 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2339 Remove code to cope with LWPs wrapped as PIDs.
2340 Add assertions to ensure no wrapped LWPs are passed.
2341
2342 2014-09-04 Pedro Alves <palves@redhat.com>
2343
2344 * value.c (value_ranges_copy_adjusted): New function, factored out
2345 from ...
2346 (value_contents_copy_raw): ... here.
2347 (unpack_value_bits_as_long_1): Rename back to ...
2348 (unpack_bits_as_long): ... this. Remove 'original_value' and
2349 'result' parameters. Change return type to LONGEST.
2350 (unpack_value_bits_as_long): Delete.
2351 (unpack_value_field_as_long_1): Delete.
2352 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2353 (unpack_value_bitfield): New function.
2354 (value_field_bitfield): Reimplement using unpack_value_bitfield.
2355 (value_fetch_lazy): Use unpack_value_bitfield.
2356 * value.h (unpack_value_bits_as_long): Delete declaration.
2357
2358 2014-09-03 Sasha Smundak <asmundak@google.com>
2359
2360 * python/py-frame.c (frapy_read_register): New function.
2361
2362 2014-09-03 James Hogan <james.hogan@imgtec.com>
2363
2364 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2365 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2366
2367 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
2368
2369 PR python/16699
2370 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2371 function.
2372 (add_cmd): Set "completer_handle_brkchars" to NULL.
2373 * cli/cli-decode.h (struct cmd_list_element)
2374 <completer_handle_brkchars>: New field.
2375 * command.h (completer_ftype_void): New typedef.
2376 (set_cmd_completer_handle_brkchars): New prototype.
2377 * completer.c (set_gdb_completion_word_break_characters): New
2378 function.
2379 (complete_line_internal): Call "completer_handle_brkchars"
2380 callback from command.
2381 * completer.h: Include "command.h".
2382 (set_gdb_completion_word_break_characters): New prototype.
2383 * python/py-cmd.c (cmdpy_completer_helper): New function.
2384 (cmdpy_completer_handle_brkchars): New function.
2385 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2386 (cmdpy_init): Set completer_handle_brkchars to
2387 cmdpy_completer_handle_brkchars.
2388
2389 2014-09-03 Gary Benson <gbenson@redhat.com>
2390
2391 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2392 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
2393 Loop conditions changed to equivalent form.
2394 (struct x86_debug_reg_state): Updated dr_ref_count comment.
2395 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2396 ALL_DEBUG_ADDRESS_REGISTERS.
2397
2398 2014-09-03 Joel Brobecker <brobecker@adacore.com>
2399
2400 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2401 description fix.
2402
2403 2014-09-02 Doug Evans <dje@google.com>
2404
2405 * typeprint.c (find_global_typedef): Fix comment.
2406
2407 2014-09-02 Gary Benson <gbenson@redhat.com>
2408
2409 * i386-nat.h: Renamed as...
2410 * x86-nat.h: New file. All type, function and variable name
2411 prefixes changed from "i386_" to "x86_". All references updated.
2412 * i386-nat.c: Renamed as...
2413 * x86-nat.c: New file. All type, function and variable name
2414 prefixes changed from "i386_" to "x86_". All references updated.
2415 * common/i386-xstate.h: Renamed as...
2416 * common/x86-xstate.h: New file. All type, function and variable
2417 name prefixes changed from "i386_" to "x86_". All references
2418 updated.
2419 * nat/i386-cpuid.h: Renamed as...
2420 * nat/x86-cpuid.h: New file. All type, function and variable name
2421 prefixes changed from "i386_" to "x86_". All references updated.
2422 * nat/i386-gcc-cpuid.h: Renamed as...
2423 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
2424 name prefixes changed from "i386_" to "x86_". All references
2425 updated.
2426 * nat/i386-dregs.h: Renamed as...
2427 * nat/x86-dregs.h: New file. All type, function and variable name
2428 prefixes changed from "i386_" to "x86_". All references updated.
2429 * nat/i386-dregs.c: Renamed as...
2430 * nat/x86-dregs.c: New file. All type, function and variable name
2431 prefixes changed from "i386_" to "x86_". All references updated.
2432
2433 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
2434
2435 * varobj.c (_initialize_varobj): Move to the end of file.
2436
2437 2014-08-29 Gary Benson <gbenson@redhat.com>
2438
2439 * common/common-exceptions.h: New file.
2440 * common/common-exceptions.c: Likewise.
2441 * Makefile.in (SFILES): Add common/common-exceptions.c.
2442 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2443 (COMMON_OBS): Add common-exceptions.o.
2444 (common-exceptions.o): New rule.
2445 * exceptions.h (common-exceptions.h): Include.
2446 (gdb_setjmp.h): Do not include.
2447 (return_reason): Moved to common-exceptions.h.
2448 (enum return_reason): Likewise.
2449 (RETURN_MASK): Likewise.
2450 (typedef return_mask): Likewise.
2451 (enum errors): Likewise.
2452 (struct gdb_exception): Likewise.
2453 (exceptions_state_mc_init): Likewise.
2454 (exceptions_state_mc_action_iter): Likewise.
2455 (exceptions_state_mc_action_iter_1): Likewise.
2456 (TRY_CATCH): Likewise.
2457 (throw_exception): Likewise.
2458 (throw_verror): Likewise.
2459 (throw_vquit): Likewise.
2460 (throw_error): Likewise.
2461 (throw_quit): Likewise.
2462 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2463 (enum catcher_action): Likewise.
2464 (struct catcher): Likewise.
2465 (current_catcher): Likewise.
2466 (catcher_list_size): Likewise.
2467 (exceptions_state_mc_init): Likewise.
2468 (catcher_pop): Likewise.
2469 (exceptions_state_mc): Likewise.
2470 (exceptions_state_mc_action_iter): Likewise.
2471 (exceptions_state_mc_action_iter_1): Likewise.
2472 (throw_exception): Likewise.
2473 (exception_messages): Likewise.
2474 (exception_messages_size): Likewise.
2475 (throw_it): Likewise.
2476 (throw_verror): Likewise.
2477 (throw_vquit): Likewise.
2478 (throw_error): Likewise.
2479 (throw_quit): Likewise.
2480 (prepare_to_throw_exception): New function.
2481
2482 2014-08-29 Gary Benson <gbenson@redhat.com>
2483
2484 * common/gdb_setjmp.h: New file.
2485 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2486 * configure.ac: Move sigsetjmp check...
2487 * common/common.m4: ...here.
2488 * configure: Regenerate.
2489 * cp-support.c (SIGJMP_BUF): Delete.
2490 (SIGSETJMP): Likewise.
2491 (SIGLONGJMP): Likewise.
2492 * exceptions.h (gdb_setjmp.h): Include.
2493 (setjmp.h): Do not include.
2494 (EXCEPTIONS_SIGJMP_BUF): Delete.
2495 (EXCEPTIONS_SIGSETJMP): Likewise.
2496 (EXCEPTIONS_SIGLONGJMP): Likewise.
2497 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2498 from gdb_setjmp.h.
2499 * exceptions.c: Likewise.
2500
2501 2014-08-29 Gary Benson <gbenson@redhat.com>
2502
2503 * cleanups.h: Moved to...
2504 * common/cleanups.h: New file.
2505 * cleanups.c: Moved to...
2506 * common/cleanups.c: New file. Include common-defs.h and
2507 cleanups.h. Do not include defs.h.
2508 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2509 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2510 (cleanups.o): New rule.
2511
2512 2014-08-29 Gary Benson <gbenson@redhat.com>
2513
2514 * common/errors.h (internal_warning): New declaration.
2515 (internal_vwarning): Likewise.
2516 * common/errors.c (internal_warning): New function.
2517 * utils.h (internal_warning): Don't declare.
2518 (internal_vwarning): Likewise.
2519 * utils.c (internal_warning): Removed.
2520
2521 2014-08-29 Gary Benson <gbenson@redhat.com>
2522
2523 * main.c (captured_main): Use warning during startup.
2524 Prefix startup warning messages with command name.
2525
2526 2014-08-29 Gary Benson <gbenson@redhat.com>
2527
2528 * main.c (captured_main): Handle usage errors with error.
2529
2530 2014-08-29 Gary Benson <gbenson@redhat.com>
2531
2532 * go32-nat.c (go32_create_inferior): Replace a fprintf/
2533 exit pair with a call to error. Wrap the message with _().
2534
2535 2014-08-29 Gary Benson <gbenson@redhat.com>
2536
2537 * main.c (captured_main): Replace a fprintf/exit
2538 pair with a call to error. Wrap the message with _().
2539
2540 2014-08-29 Gary Benson <gbenson@redhat.com>
2541
2542 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
2543 pairs with calls to error. Wrap the message with _().
2544
2545 2014-08-29 Gary Benson <gbenson@redhat.com>
2546
2547 * utils.c (vwarning): Protect calls to target_terminal_ours
2548 and wrap_here.
2549
2550 2014-08-29 Gary Benson <gbenson@redhat.com>
2551
2552 * exceptions.c (print_flush): Protect calls to
2553 target_terminal_ours and wrap_here.
2554
2555 2014-08-29 Gary Benson <gbenson@redhat.com>
2556
2557 * utils.h (filtered_printing_initialized): New declaration.
2558 * utils.c (abort_with_message): New function.
2559 (internal_vproblem): Use abort_with_message for first level
2560 recursive internal problems, and if gdb_stderr is not set up.
2561 Protect calls to target_terminal_ours, begin_line and query.
2562
2563 2014-08-28 Doug Evans <dje@google.com>
2564
2565 * symtab.c (in_prologue): Move definition to better spot.
2566 (skip_prologue_using_sal): Ditto.
2567
2568 2014-08-28 Doug Evans <dje@google.com>
2569
2570 * symtab.c (find_function_start_sal): Move definition to better spot.
2571
2572 2014-08-28 Yao Qi <yao@codesourcery.com>
2573
2574 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
2575 found_stack_adjust in forward scan. Remove condition check
2576 on found_stack_adjust which is always true. Indent the code.
2577
2578 2014-08-28 Yao Qi <yao@codesourcery.com>
2579
2580 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2581 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
2582 (dwarf_decode_lines): Remove argument
2583 want_line_info. Remove condition check on want_line_info.
2584 Callers update.
2585
2586 2014-08-27 Doug Evans <dje@google.com>
2587
2588 * dwarf2read.c (dwarf_record_line): Fix typo.
2589
2590 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
2591
2592 * target.h (struct target_ops::to_terminal_save_ours): Remove
2593 declaration.
2594 (target_terminal_save_ours): Remove macro.
2595 * target-delegates.c: Regenerate.
2596 * inf-child.c (inf_child_target): Don't set the nonexistent
2597 field to_terminal_save_ours.
2598 * inferior.h (child_terminal_save_ours): Remove declaration.
2599 * terminal.h (gdb_save_tty_state): New declaration.
2600 * inflow.c (child_terminal_save_ours): Rename to ...
2601 (gdb_save_tty_state): ... this.
2602 * tui/tui.c: Include terminal.h.
2603 (tui_enable): Use gdb_save_tty_state instead of
2604 target_terminal_save_ours.
2605 (tui_disable): Likewise.
2606
2607 2014-08-25 Doug Evans <dje@google.com>
2608
2609 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
2610 Pass NULL instead of 0 for context pointer.
2611
2612 2014-08-25 Yao Qi <yao@codesourcery.com>
2613
2614 * dwarf2read.c: Fix grammatical error.
2615
2616 2014-08-24 Yao Qi <yao@codesourcery.com>
2617
2618 * dwarf2read.c (scan_partial_symbols): Update comments.
2619 Rename argument 'need_pc' with 'set_addrmap'.
2620 (add_partial_namespace): Rename argument 'need_pc' with
2621 'set_addrmap'.
2622 (add_partial_module): Likewise.
2623 (add_partial_subprogram): Likewise. Update comments.
2624 (dwarf2_name): Fix typo.
2625
2626 2014-08-22 Doug Evans <dje@google.com>
2627
2628 PR 17276
2629 * dwarf2read.c (dwarf_record_line_p): New function.
2630 (dwarf_decode_lines_1): Ignore subsequent line number entries
2631 for the same line if any entry had a non-zero discriminator.
2632
2633 2014-08-22 Doug Evans <dje@google.com>
2634
2635 * buildsym.h (record_line_ftype): New typedef.
2636 (record_line): Use it.
2637 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
2638 (dwarf_decode_lines_1): Call them.
2639
2640 2014-08-22 Yao Qi <yao@codesourcery.com>
2641
2642 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
2643 (ctf_end): Remove code.
2644
2645 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2646
2647 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
2648 (linux_make_corefile_notes): call update_thread_list, protected against
2649 exceptions.
2650
2651 2014-08-21 Pedro Alves <palves@redhat.com>
2652
2653 * infcmd.c (attach_command): Remove comment.
2654
2655 2014-08-21 Bin Cheng <bin.cheng@arm.com>
2656
2657 * aarch64-linux-nat.c (dr_changed_t): Change the type from
2658 unsigned LONGEST to ULONGEST.
2659
2660 2014-08-20 Pedro Alves <palves@redhat.com>
2661
2662 * Makefile.in (check-read1): New rule.
2663
2664 2014-08-20 Joel Brobecker <brobecker@adacore.com>
2665
2666 * value.c (value_from_contents_and_address): Strip resolved_type's
2667 typedef layers before checking its TYPE_DATA_LOCATION.
2668
2669 2014-08-20 Pedro Alves <palves@redhat.com>
2670
2671 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
2672
2673 2014-08-20 Yao Qi <yao@codesourcery.com>
2674
2675 * amd64-tdep.c (amd64_classify): Add a blank line after the
2676 example. Move "*/" to a new line.
2677 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
2678 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
2679 * dwarf2read.c (psymtab_include_file_name): Likewise.
2680
2681 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
2682 Pedro Alves <palves@redhat.com>
2683
2684 PR symtab/14604
2685 PR symtab/14605
2686 * ada-lang.c (coerce_unspec_val_to_type): Use
2687 value_contents_copy_raw.
2688 * ada-valprint.c (val_print_packed_array_elements): Adjust.
2689 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
2690 * cp-valprint.c (cp_print_value_fields): Let the common printing
2691 code handle optimized out values.
2692 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
2693 * d-valprint.c (dynamic_array_type): Use
2694 value_bits_any_optimized_out.
2695 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
2696 check_any_valid fields.
2697 (check_pieced_value_bits): Delete and inline ...
2698 (check_pieced_synthetic_pointer): ... here.
2699 (check_pieced_value_validity): Delete.
2700 (check_pieced_value_invalid): Delete.
2701 (pieced_value_funcs): Remove check_validity and check_any_valid
2702 fields.
2703 (read_pieced_value): Use mark_value_bits_optimized_out.
2704 (write_pieced_value): Switch to use
2705 mark_value_bytes_optimized_out.
2706 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
2707 of assuming the whole value is optimized out.
2708 * findvar.c (read_frame_register_value): Remove special handling
2709 of optimized out registers.
2710 (value_from_register): Use mark_value_bytes_optimized_out.
2711 * frame-unwind.c (frame_unwind_got_optimized): Use
2712 mark_value_bytes_optimized_out.
2713 * jv-valprint.c (java_value_print): Adjust.
2714 (java_print_value_fields): Let the common printing code handle
2715 optimized out values.
2716 * mips-tdep.c (mips_print_register): Remove special handling of
2717 optimized out registers.
2718 * opencl-lang.c (lval_func_check_validity): Delete.
2719 (lval_func_check_any_valid): Delete.
2720 (opencl_value_funcs): Remove check_validity and check_any_valid
2721 fields.
2722 * p-valprint.c (pascal_object_print_value_fields): Let the common
2723 printing code handle optimized out values.
2724 * stack.c (read_frame_arg): Remove special handling of optimized
2725 out values. Fetch both VAL and ENTRYVAL before comparing
2726 contents. Adjust to value_available_contents_eq rename.
2727 * valprint.c (valprint_check_validity)
2728 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
2729 (val_print_array_elements): Adjust.
2730 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
2731 (value_bits_any_optimized_out): New function.
2732 (value_entirely_covered_by_range_vector): New function, factored
2733 out from value_entirely_unavailable.
2734 (value_entirely_unavailable): Reimplement.
2735 (value_entirely_optimized_out): New function.
2736 (insert_into_bit_range_vector): New function, factored out from
2737 mark_value_bits_unavailable.
2738 (mark_value_bits_unavailable): Reimplement.
2739 (struct ranges_and_idx): New struct.
2740 (find_first_range_overlap_and_match): New function, factored out
2741 from value_available_contents_bits_eq.
2742 (value_available_contents_bits_eq): Rename to ...
2743 (value_contents_bits_eq): ... this. Check both unavailable
2744 contents and optimized out contents.
2745 (value_available_contents_eq): Rename to ...
2746 (value_contents_eq): ... this.
2747 (allocate_value_lazy): Remove reference to the old optimized_out
2748 boolean.
2749 (allocate_optimized_out_value): Use
2750 mark_value_bytes_optimized_out.
2751 (require_not_optimized_out): Adjust to check whether the
2752 optimized_out vec is empty.
2753 (ranges_copy_adjusted): New function, factored out from
2754 value_contents_copy_raw.
2755 (value_contents_copy_raw): Also copy the optimized out ranges.
2756 Assert the destination ranges aren't optimized out.
2757 (value_contents_copy): Update comment, remove call to
2758 require_not_optimized_out.
2759 (value_contents_equal): Adjust to check whether the optimized_out
2760 vec is empty.
2761 (set_value_optimized_out, value_optimized_out_const): Delete.
2762 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2763 New functions.
2764 (value_entirely_optimized_out, value_bits_valid): Delete.
2765 (value_copy): Take a VEC copy of the 'optimized_out' field.
2766 (value_primitive_field): Remove special handling of optimized out.
2767 (value_fetch_lazy): Assert that lazy values have no unavailable
2768 regions. Use value_bits_any_optimized_out. Remove some special
2769 handling for optimized out values.
2770 * value.h: Add intro comment about <optimized out> and
2771 <unavailable>.
2772 (struct lval_funcs): Remove check_validity and check_any_valid
2773 fields.
2774 (set_value_optimized_out, value_optimized_out_const): Remove.
2775 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
2776 New declarations.
2777 (value_bits_any_optimized_out): New declaration.
2778 (value_bits_valid): Delete declaration.
2779 (value_available_contents_eq): Rename to ...
2780 (value_contents_eq): ... this, and extend comments.
2781
2782 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2783
2784 Fix -fsanitize=address on unreadable inferior strings.
2785 * valprint.c (val_print_string): Fix access before BUFFER.
2786
2787 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
2788
2789 * target.c (target_struct_size): Remove.
2790 (target_struct_allocsize): Remove.
2791 (DEFAULT_ALLOCSIZE): Remove.
2792 (target_ops_p): New typedef.
2793 (DEF_VEC_P (target_ops_p)): New vector type.
2794 (target_structs): Change type to VEC (target_ops_p).
2795 (add_target_with_completer): Replace "push" code by VEC_safe_push.
2796 (find_default_run_target): Rewrite for loop following changes to
2797 target_structs.
2798
2799 2014-08-19 Joel Brobecker <brobecker@adacore.com>
2800
2801 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
2802 Adjust code accordingly. Adjust function description comment.
2803
2804 2014-08-19 Yao Qi <yao@codesourcery.com>
2805
2806 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
2807 types.
2808
2809 2014-08-19 Alan Modra <amodra@gmail.com>
2810
2811 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
2812 * config.in: Regenerate.
2813 * configure: Regenerate.
2814
2815 2014-08-19 Tom Tromey <tromey@redhat.com>
2816 Gary Benson <gbenson@redhat.com>
2817
2818 * common/common-debug.h: New file.
2819 * common/common-debug.c: Likewise.
2820 * debug.c: Likewise.
2821 * Makefile.in (SFILES): Add common/common-debug.c.
2822 (HFILES_NO_SRCDIR): Add common/common-debug.h.
2823 (COMMON_OBS): Add common-debug.o and debug.o.
2824 (common-debug.o): New rule.
2825 * common/common-defs.h: Include common-debug.h.
2826 * common/agent.c (debug_agent_printf): New function.
2827 (DEBUG_AGENT): Redefine.
2828 * nat/i386-dregs.c (debug_printf): Undefine.
2829
2830 2014-08-19 Gary Benson <gbenson@redhat.com>
2831
2832 * common/common-defs.h: Include print-utils.h.
2833 * utils.h: Do not include print-utils.h.
2834
2835 2014-08-19 Tom Tromey <tromey@redhat.com>
2836 Gary Benson <gbenson@redhat.com>
2837
2838 * common/common-types.h: New file.
2839 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
2840 * common/common-defs.h: Include common-types.h.
2841 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
2842 (ULONGEST): Remove.
2843
2844 2014-08-19 Tom Tromey <tromey@redhat.com>
2845 Gary Benson <gbenson@redhat.com>
2846
2847 * common/errors.h: New file.
2848 * common/errors.c: Likewise.
2849 * Makefile.in (SFILES): Add common/errors.c.
2850 (HFILES_NO_SRCDIR): Add common/errors.h.
2851 (COMMON_OBS): Add errors.o.
2852 (errors.o): New rule.
2853 * common/common-defs.h: Include errors.h.
2854 * utils.h (perror_with_name, error, verror, warning, vwarning):
2855 Don't declare.
2856 * common/common-utils.h: (malloc_failure, internal_error):
2857 Likewise.
2858
2859 2014-08-19 Gary Benson <gbenson@redhat.com>
2860
2861 * utils.c (internal_vproblem): Always print the message.
2862
2863 2014-08-18 Doug Evans <dje@google.com>
2864
2865 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
2866
2867 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2868
2869 * ada-typeprint.c (type_is_full_subrange_of_target_type):
2870 Return 0 if TYPE is dynamic.
2871 (print_range): Add handling of dynamic ranges.
2872
2873 2014-08-18 Keven Boell <keven.boell@intel.com>
2874 Joel Brobecker <brobecker@adacore.com>
2875
2876 * gdbtypes.h (struct main_type): Add field "data_location".
2877 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
2878 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
2879 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
2880 a dynamic data location.
2881 (resolve_dynamic_type): Add DW_AT_data_location handling.
2882 (copy_recursive, copy_type): Copy the data_location information
2883 when present.
2884 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
2885 * value.c (value_from_contents_and_address): Add
2886 DW_AT_data_location handling.
2887
2888 2014-08-18 Keven Boell <keven.boell@intel.com>
2889 Joel Brobecker <brobecker@adacore.com>
2890
2891 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
2892 field "get_object_address".
2893 * dwarf2expr.c (execute_stack_op): Add handling for
2894 DW_OP_push_object_address.
2895 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
2896 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
2897 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
2898 (dwarf_expr_get_obj_addr): New function.
2899 (dwarf_expr_ctx_funcs): Add get_object_address field.
2900 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
2901 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
2902 (dwarf2_evaluate_property): Add parameter "address". Use it.
2903 (needs_get_obj_addr): New function.
2904 (needs_frame_ctx_funcs): Add get_object_address field.
2905 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
2906 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
2907 (resolve_dynamic_array): Likewise.
2908
2909 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2910
2911 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
2912 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
2913 fixed value for records and unions for which some GNAT encodings
2914 are present.
2915
2916 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2917
2918 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
2919 rewrite to avoid "else if" and "else" constructs. Should be
2920 a no-op in practice.
2921
2922 2014-08-18 Joel Brobecker <brobecker@adacore.com>
2923
2924 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
2925 of lexical block.
2926
2927 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2928
2929 PR c++/17132
2930 * eval.c: Update all calls to find_overload_match.
2931 * valarith.c: Likewise.
2932 (value_user_defined_cpp_op, value_user_defined_op): New
2933 argument NOSIDE. Update all callers.
2934 * valops.c (find_overload_match): New argument NOSIDE.
2935 * value.h (find_overload_match): Update signature.
2936
2937 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
2938
2939 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
2940 'items' methods instead of 'iteritems' method on dictionaries.
2941
2942 2014-08-15 Doug Evans <dje@google.com>
2943
2944 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
2945 closer to use.
2946
2947 2014-08-15 Doug Evans <dje@google.com>
2948
2949 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
2950
2951 2014-08-15 Doug Evans <dje@google.com>
2952
2953 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
2954
2955 2014-08-15 Doug Evans <dje@google.com>
2956
2957 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
2958 unused.
2959
2960 2014-08-15 Eli Zaretskii <eliz@gnu.org>
2961
2962 * dcache.h: Include target.h, to avoid compile time warnings.
2963
2964 2014-08-15 Joel Brobecker <brobecker@adacore.com>
2965
2966 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
2967 frame_info" partial declaration.
2968 * gdbarch.h: Regenerate.
2969
2970 2014-08-15 Yao Qi <yao@codesourcery.com>
2971
2972 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
2973 Add parameter 'decode_for_pst_p'. Callers update.
2974
2975 2014-08-13 Yao Qi <yao@codesourcery.com>
2976
2977 PR build/17104
2978 * configure.ac: Use local variable 'pos'.
2979 * configure: Regenerated.
2980
2981 2014-08-11 Doug Evans <dje@google.com>
2982
2983 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
2984 message, it is redundant with "Reading symbols from ..." message.
2985
2986 2014-08-10 Doug Evans <xdje42@gmail.com>
2987
2988 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
2989
2990 2014-08-09 Yao Qi <yao@codesourcery.com>
2991
2992 PR remote/9053
2993 * remote.c (remote_xfer_partial): Remove dead code.
2994
2995 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
2996
2997 * ia64-linux-tdep.c: Include "regset.h".
2998 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
2999 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3000 (ia64_linux_supply_fpregset): New function.
3001 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3002 (ia64_linux_regset_from_core_section): New function.
3003 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3004 method.
3005
3006 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3007
3008 * m68klinux-tdep.c: Include "regset.h".
3009 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3010 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3011 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3012 (m68k_linux_regset_from_core_section): New function.
3013 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3014 method.
3015
3016 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3017
3018 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3019 function. Move logic to...
3020 (tilegx_linux_regmap): ... this new register map.
3021 (tilegx_linux_regset): Refer to register map, replace supply
3022 method by regcache_supply_regset, and add collect method.
3023 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3024 TILEGX_FIRST_EASY_REGNUM.
3025
3026 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3027
3028 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3029 that calls regcache_supply_regset and handles the EPC register
3030 separately. Move main logic to...
3031 (score7_linux_gregmap): ... this new register map.
3032 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3033 (score7_linux_gregset): Refer to register map. Add collect method.
3034 (score7_linux_regset_from_core_section): Replace
3035 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3036 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3037 (struct regset): Delete unused forward declaraction.
3038 (struct pt_regs): Delete structure definition.
3039 (elf_gregset_t): Delete typedef.
3040
3041 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3042
3043 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3044 (nios2_core_regset): Add collect method.
3045
3046 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3047
3048 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3049 platform-independent and don't write to read-only input buffer.
3050 (m32r_linux_collect_gregset): New function.
3051 (m32r_linux_gregset): Add collect method.
3052
3053 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3054
3055 * hppa-linux-tdep.c (greg_map): Rename to...
3056 (hppa_linux_gregmap): ... this. Also convert to
3057 regcache_map_entry format.
3058 (hppa_linux_supply_regset): Delete function.
3059 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3060 (hppa_linux_fpregmap): ... this new register map.
3061 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3062 register map, replace supply method by regcache_supply_regset, and
3063 add collect method regcache_collect_regset.
3064
3065 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3066
3067 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3068 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3069 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3070 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3071 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3072 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3073 (frv_linux_supply_gregset): Replace main logic by call to
3074 regcache_supply_regset, but keep clearing gr32-gr63.
3075 (frv_linux_supply_fpregset): Delete function.
3076 (frv_linux_gregset): Refer to appropriate register map and add
3077 regcache_collect_regset as the collect method.
3078 (frv_linux_fpregset): Likewise. Also exchange the supply method
3079 by regcache_supply_regset.
3080
3081 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3082
3083 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3084 by call to alpha_supply_int_regs.
3085 (alpha_linux_collect_gregset): New function.
3086 (alpha_linux_supply_fpregset): Replace logic by call to
3087 alpha_supply_fp_regs.
3088 (alpha_linux_collect_fpregset): New function.
3089 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3090
3091 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3092
3093 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3094 by call to regcache_collect_regset.
3095 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3096 instead of aarch64_linux_supply_gregset/_fpregset.
3097 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3098 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3099 header file instead.
3100 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3101 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3102 functions. Move logic to ...
3103 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3104 register maps.
3105 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3106 refer to new register maps, replace *_regset_from_core by
3107 regcache_supply_regset, and also use regcache_collect_regset.
3108 * aarch64-linux-tdep.h: Include "regset.h".
3109 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3110 Delete prototypes.
3111 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3112 macros, moved from C source file.
3113 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3114 variable declarations.
3115
3116 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3117
3118 * s390-linux-nat.c: Include "regset.h".
3119 (regmap_gregset): Delete macro.
3120 (s390_64_regmap_gregset): New register map for
3121 regcache_supply/_collect_regset.
3122 (s390_64_gregset): New regset.
3123 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3124 (regmap_fpregset): Delete macro.
3125 (s390_native_supply, s390_native_collect): Delete functions.
3126 (supply_gregset, fill_gregset): Replace s390-specific regmap
3127 handling by a call to regcache_supply/_collect_regset.
3128 (supply_fpregset, fill_fpregset): Call regcache_supply/
3129 _collect_regset instead of s390_native_supply/_collect.
3130 (fetch_regset, store_regset): Likewise. Also change the last
3131 parameter to a regset instead of a regmap.
3132 (s390_linux_fetch_inferior_registers)
3133 (390_linux_store_inferior_registers): Adjust last parameter in
3134 calls to fetch_regset and store_regset.
3135 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3136 (s390_gregmap): ... this. Also make static const and convert to
3137 regcache_map_entry format.
3138 (s390x_regmap_gregset): Delete.
3139 (s390_regmap_fpregset): Rename to...
3140 (s390_fpregmap): ... this. Make static const and convert to
3141 regcache_map_entry format.
3142 (s390_regmap_upper, s390_regmap_last_break)
3143 (s390x_regmap_last_break, s390_regmap_system_call)
3144 (s390_regmap_tdb): Likewise.
3145 (s390_supply_regset, s390_collect_regset): Remove functions.
3146 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3147 s390_supply_regset.
3148 (s390_gregset, s390_fpregset, s390_upper_regset)
3149 (s390_last_break_regset, s390x_last_break_regset)
3150 (s390_system_call_regset, s390_tdb_regset): Make global and
3151 replace s390_supply/_collect_regset by regcache_supply/
3152 _collect_regset.
3153 (s390x_gregset): Delete.
3154 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3155 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3156 (s390_regmap_fpregset, s390_regmap_last_break)
3157 (s390x_regmap_last_break, s390_regmap_system_call)
3158 (s390_regmap_tdb): Delete global variable declarations.
3159 (s390_gregset, s390_fpregset, s390_last_break_regset)
3160 (s390x_last_break_regset, s390_system_call_regset)
3161 (s390_tdb_regset): New global variable declarations.
3162
3163 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3164
3165 * regcache.c: Include "regset.h".
3166 (regcache_transfer_regset): New local function.
3167 (regcache_supply_regset, regcache_collect_regset): New functions.
3168 * regcache.h (struct regcache_map_entry): New structure.
3169 (REGCACHE_MAP_SKIP): New enum value.
3170 (regcache_supply_regset, regcache_collect_regset): New prototypes.
3171
3172 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
3173
3174 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3175 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3176 (ppc_linux_collect_gregset ): Likewise.
3177 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3178 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3179 (ppc_collect_vrregset): Likewise.
3180 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3181 Likewise.
3182
3183 2014-08-07 Yao Qi <yao@codesourcery.com>
3184
3185 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3186 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3187 * remote.c (remote_read_bytes): Likewise.
3188
3189 2014-08-07 Yao Qi <yao@codesourcery.com>
3190
3191 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3192
3193 2014-08-07 Yao Qi <yao@codesourcery.com>
3194
3195 PR remote/17230
3196 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3197 TARGET_XFER_OK instead of 0.
3198
3199 2014-08-07 Gary Benson <gbenson@redhat.com>
3200
3201 * common/common-defs.h: Include errno.h.
3202 * defs.h: Do not include errno.h.
3203 * ada-typeprint.c: Likewise.
3204 * c-typeprint.c: Likewise.
3205 * core-regset.c: Likewise.
3206 * corefile.c: Likewise.
3207 * corelow.c: Likewise.
3208 * event-loop.c: Likewise.
3209 * f-typeprint.c: Likewise.
3210 * gnu-nat.c: Likewise.
3211 * go32-nat.c: Likewise.
3212 * i386gnu-nat.c: Likewise.
3213 * m2-typeprint.c: Likewise.
3214 * nat/linux-btrace.c: Likewise.
3215 * p-typeprint.c: Likewise.
3216 * procfs.c: Likewise.
3217 * remote-sim.c: Likewise.
3218 * rs6000-nat.c: Likewise.
3219 * target.c: Likewise.
3220 * typeprint.c: Likewise.
3221 * ui-file.c: Likewise.
3222 * valops.c: Likewise.
3223 * valprint.c: Likewise.
3224
3225 2014-08-07 Gary Benson <gbenson@redhat.com>
3226
3227 * common/common-defs.h: Include string.h.
3228 * aarch64-tdep.c: Do not include string.h.
3229 * ada-exp.y: Likewise.
3230 * ada-lang.c: Likewise.
3231 * ada-lex.l: Likewise.
3232 * ada-typeprint.c: Likewise.
3233 * ada-valprint.c: Likewise.
3234 * aix-thread.c: Likewise.
3235 * alpha-linux-tdep.c: Likewise.
3236 * alpha-mdebug-tdep.c: Likewise.
3237 * alpha-nat.c: Likewise.
3238 * alpha-osf1-tdep.c: Likewise.
3239 * alpha-tdep.c: Likewise.
3240 * alphanbsd-tdep.c: Likewise.
3241 * amd64-dicos-tdep.c: Likewise.
3242 * amd64-linux-tdep.c: Likewise.
3243 * amd64-nat.c: Likewise.
3244 * amd64-sol2-tdep.c: Likewise.
3245 * amd64fbsd-tdep.c: Likewise.
3246 * amd64obsd-tdep.c: Likewise.
3247 * arch-utils.c: Likewise.
3248 * arm-linux-nat.c: Likewise.
3249 * arm-linux-tdep.c: Likewise.
3250 * arm-tdep.c: Likewise.
3251 * arm-wince-tdep.c: Likewise.
3252 * armbsd-tdep.c: Likewise.
3253 * armnbsd-nat.c: Likewise.
3254 * armnbsd-tdep.c: Likewise.
3255 * armobsd-tdep.c: Likewise.
3256 * avr-tdep.c: Likewise.
3257 * ax-gdb.c: Likewise.
3258 * ax-general.c: Likewise.
3259 * bcache.c: Likewise.
3260 * bfin-tdep.c: Likewise.
3261 * breakpoint.c: Likewise.
3262 * build-id.c: Likewise.
3263 * buildsym.c: Likewise.
3264 * c-exp.y: Likewise.
3265 * c-lang.c: Likewise.
3266 * c-typeprint.c: Likewise.
3267 * c-valprint.c: Likewise.
3268 * charset.c: Likewise.
3269 * cli-out.c: Likewise.
3270 * cli/cli-cmds.c: Likewise.
3271 * cli/cli-decode.c: Likewise.
3272 * cli/cli-dump.c: Likewise.
3273 * cli/cli-interp.c: Likewise.
3274 * cli/cli-logging.c: Likewise.
3275 * cli/cli-script.c: Likewise.
3276 * cli/cli-setshow.c: Likewise.
3277 * cli/cli-utils.c: Likewise.
3278 * coffread.c: Likewise.
3279 * common/agent.c: Likewise.
3280 * common/buffer.c: Likewise.
3281 * common/buffer.h: Likewise.
3282 * common/common-utils.c: Likewise.
3283 * common/filestuff.c: Likewise.
3284 * common/filestuff.c: Likewise.
3285 * common/format.c: Likewise.
3286 * common/print-utils.c: Likewise.
3287 * common/rsp-low.c: Likewise.
3288 * common/signals.c: Likewise.
3289 * common/vec.h: Likewise.
3290 * common/xml-utils.c: Likewise.
3291 * core-regset.c: Likewise.
3292 * corefile.c: Likewise.
3293 * corelow.c: Likewise.
3294 * cp-abi.c: Likewise.
3295 * cp-name-parser.y: Likewise.
3296 * cp-support.c: Likewise.
3297 * cp-valprint.c: Likewise.
3298 * cris-tdep.c: Likewise.
3299 * d-exp.y: Likewise.
3300 * darwin-nat.c: Likewise.
3301 * dbxread.c: Likewise.
3302 * dcache.c: Likewise.
3303 * demangle.c: Likewise.
3304 * dicos-tdep.c: Likewise.
3305 * disasm.c: Likewise.
3306 * doublest.c: Likewise.
3307 * dsrec.c: Likewise.
3308 * dummy-frame.c: Likewise.
3309 * dwarf2-frame.c: Likewise.
3310 * dwarf2loc.c: Likewise.
3311 * dwarf2read.c: Likewise.
3312 * elfread.c: Likewise.
3313 * environ.c: Likewise.
3314 * eval.c: Likewise.
3315 * event-loop.c: Likewise.
3316 * exceptions.c: Likewise.
3317 * exec.c: Likewise.
3318 * expprint.c: Likewise.
3319 * f-exp.y: Likewise.
3320 * f-lang.c: Likewise.
3321 * f-typeprint.c: Likewise.
3322 * f-valprint.c: Likewise.
3323 * fbsd-nat.c: Likewise.
3324 * findcmd.c: Likewise.
3325 * findvar.c: Likewise.
3326 * fork-child.c: Likewise.
3327 * frame.c: Likewise.
3328 * frv-linux-tdep.c: Likewise.
3329 * frv-tdep.c: Likewise.
3330 * gdb.c: Likewise.
3331 * gdb_bfd.c: Likewise.
3332 * gdbarch.c: Likewise.
3333 * gdbarch.sh: Likewise.
3334 * gdbtypes.c: Likewise.
3335 * gnu-nat.c: Likewise.
3336 * gnu-v2-abi.c: Likewise.
3337 * gnu-v3-abi.c: Likewise.
3338 * go-exp.y: Likewise.
3339 * go-lang.c: Likewise.
3340 * go32-nat.c: Likewise.
3341 * guile/guile.c: Likewise.
3342 * guile/scm-auto-load.c: Likewise.
3343 * hppa-hpux-tdep.c: Likewise.
3344 * hppa-linux-nat.c: Likewise.
3345 * hppanbsd-tdep.c: Likewise.
3346 * hppaobsd-tdep.c: Likewise.
3347 * i386-cygwin-tdep.c: Likewise.
3348 * i386-dicos-tdep.c: Likewise.
3349 * i386-linux-tdep.c: Likewise.
3350 * i386-nto-tdep.c: Likewise.
3351 * i386-sol2-tdep.c: Likewise.
3352 * i386-tdep.c: Likewise.
3353 * i386bsd-tdep.c: Likewise.
3354 * i386gnu-nat.c: Likewise.
3355 * i386nbsd-tdep.c: Likewise.
3356 * i386obsd-tdep.c: Likewise.
3357 * i387-tdep.c: Likewise.
3358 * ia64-libunwind-tdep.c: Likewise.
3359 * ia64-linux-nat.c: Likewise.
3360 * inf-child.c: Likewise.
3361 * inf-ptrace.c: Likewise.
3362 * inf-ttrace.c: Likewise.
3363 * infcall.c: Likewise.
3364 * infcmd.c: Likewise.
3365 * inflow.c: Likewise.
3366 * infrun.c: Likewise.
3367 * interps.c: Likewise.
3368 * iq2000-tdep.c: Likewise.
3369 * irix5-nat.c: Likewise.
3370 * jv-exp.y: Likewise.
3371 * jv-lang.c: Likewise.
3372 * jv-typeprint.c: Likewise.
3373 * jv-valprint.c: Likewise.
3374 * language.c: Likewise.
3375 * linux-fork.c: Likewise.
3376 * linux-nat.c: Likewise.
3377 * lm32-tdep.c: Likewise.
3378 * m2-exp.y: Likewise.
3379 * m2-typeprint.c: Likewise.
3380 * m32c-tdep.c: Likewise.
3381 * m32r-linux-nat.c: Likewise.
3382 * m32r-linux-tdep.c: Likewise.
3383 * m32r-rom.c: Likewise.
3384 * m32r-tdep.c: Likewise.
3385 * m68hc11-tdep.c: Likewise.
3386 * m68k-tdep.c: Likewise.
3387 * m68kbsd-tdep.c: Likewise.
3388 * m68klinux-nat.c: Likewise.
3389 * m68klinux-tdep.c: Likewise.
3390 * m88k-tdep.c: Likewise.
3391 * machoread.c: Likewise.
3392 * macrocmd.c: Likewise.
3393 * main.c: Likewise.
3394 * mdebugread.c: Likewise.
3395 * mem-break.c: Likewise.
3396 * memattr.c: Likewise.
3397 * memory-map.c: Likewise.
3398 * mep-tdep.c: Likewise.
3399 * mi/mi-cmd-break.c: Likewise.
3400 * mi/mi-cmd-disas.c: Likewise.
3401 * mi/mi-cmd-env.c: Likewise.
3402 * mi/mi-cmd-stack.c: Likewise.
3403 * mi/mi-cmd-var.c: Likewise.
3404 * mi/mi-cmds.c: Likewise.
3405 * mi/mi-console.c: Likewise.
3406 * mi/mi-getopt.c: Likewise.
3407 * mi/mi-interp.c: Likewise.
3408 * mi/mi-main.c: Likewise.
3409 * mi/mi-parse.c: Likewise.
3410 * microblaze-rom.c: Likewise.
3411 * microblaze-tdep.c: Likewise.
3412 * mingw-hdep.c: Likewise.
3413 * minidebug.c: Likewise.
3414 * minsyms.c: Likewise.
3415 * mips-irix-tdep.c: Likewise.
3416 * mips-linux-tdep.c: Likewise.
3417 * mips-tdep.c: Likewise.
3418 * mips64obsd-tdep.c: Likewise.
3419 * mipsnbsd-tdep.c: Likewise.
3420 * mipsread.c: Likewise.
3421 * mn10300-linux-tdep.c: Likewise.
3422 * mn10300-tdep.c: Likewise.
3423 * monitor.c: Likewise.
3424 * moxie-tdep.c: Likewise.
3425 * mt-tdep.c: Likewise.
3426 * nat/linux-btrace.c: Likewise.
3427 * nat/linux-osdata.c: Likewise.
3428 * nat/linux-procfs.c: Likewise.
3429 * nat/linux-ptrace.c: Likewise.
3430 * nat/linux-waitpid.c: Likewise.
3431 * nbsd-tdep.c: Likewise.
3432 * nios2-linux-tdep.c: Likewise.
3433 * nto-procfs.c: Likewise.
3434 * nto-tdep.c: Likewise.
3435 * objc-lang.c: Likewise.
3436 * objfiles.c: Likewise.
3437 * opencl-lang.c: Likewise.
3438 * osabi.c: Likewise.
3439 * osdata.c: Likewise.
3440 * p-exp.y: Likewise.
3441 * p-lang.c: Likewise.
3442 * p-typeprint.c: Likewise.
3443 * parse.c: Likewise.
3444 * posix-hdep.c: Likewise.
3445 * ppc-linux-nat.c: Likewise.
3446 * ppc-sysv-tdep.c: Likewise.
3447 * ppcfbsd-tdep.c: Likewise.
3448 * ppcnbsd-tdep.c: Likewise.
3449 * ppcobsd-tdep.c: Likewise.
3450 * printcmd.c: Likewise.
3451 * procfs.c: Likewise.
3452 * prologue-value.c: Likewise.
3453 * python/py-auto-load.c: Likewise.
3454 * python/py-gdb-readline.c: Likewise.
3455 * ravenscar-thread.c: Likewise.
3456 * regcache.c: Likewise.
3457 * registry.c: Likewise.
3458 * remote-fileio.c: Likewise.
3459 * remote-m32r-sdi.c: Likewise.
3460 * remote-mips.c: Likewise.
3461 * remote-notif.c: Likewise.
3462 * remote-sim.c: Likewise.
3463 * remote.c: Likewise.
3464 * reverse.c: Likewise.
3465 * rs6000-aix-tdep.c: Likewise.
3466 * ser-base.c: Likewise.
3467 * ser-go32.c: Likewise.
3468 * ser-mingw.c: Likewise.
3469 * ser-pipe.c: Likewise.
3470 * ser-tcp.c: Likewise.
3471 * ser-unix.c: Likewise.
3472 * serial.c: Likewise.
3473 * sh-tdep.c: Likewise.
3474 * sh64-tdep.c: Likewise.
3475 * shnbsd-tdep.c: Likewise.
3476 * skip.c: Likewise.
3477 * sol-thread.c: Likewise.
3478 * solib-dsbt.c: Likewise.
3479 * solib-frv.c: Likewise.
3480 * solib-osf.c: Likewise.
3481 * solib-som.c: Likewise.
3482 * solib-spu.c: Likewise.
3483 * solib-target.c: Likewise.
3484 * solib.c: Likewise.
3485 * somread.c: Likewise.
3486 * source.c: Likewise.
3487 * sparc-nat.c: Likewise.
3488 * sparc-sol2-tdep.c: Likewise.
3489 * sparc-tdep.c: Likewise.
3490 * sparc64-tdep.c: Likewise.
3491 * sparc64fbsd-tdep.c: Likewise.
3492 * sparc64nbsd-tdep.c: Likewise.
3493 * sparcnbsd-tdep.c: Likewise.
3494 * spu-linux-nat.c: Likewise.
3495 * spu-multiarch.c: Likewise.
3496 * spu-tdep.c: Likewise.
3497 * stabsread.c: Likewise.
3498 * stack.c: Likewise.
3499 * std-regs.c: Likewise.
3500 * symfile.c: Likewise.
3501 * symmisc.c: Likewise.
3502 * symtab.c: Likewise.
3503 * target.c: Likewise.
3504 * thread.c: Likewise.
3505 * tilegx-linux-nat.c: Likewise.
3506 * tilegx-tdep.c: Likewise.
3507 * top.c: Likewise.
3508 * tracepoint.c: Likewise.
3509 * tui/tui-command.c: Likewise.
3510 * tui/tui-data.c: Likewise.
3511 * tui/tui-disasm.c: Likewise.
3512 * tui/tui-file.c: Likewise.
3513 * tui/tui-layout.c: Likewise.
3514 * tui/tui-out.c: Likewise.
3515 * tui/tui-regs.c: Likewise.
3516 * tui/tui-source.c: Likewise.
3517 * tui/tui-stack.c: Likewise.
3518 * tui/tui-win.c: Likewise.
3519 * tui/tui-windata.c: Likewise.
3520 * tui/tui-winsource.c: Likewise.
3521 * typeprint.c: Likewise.
3522 * ui-file.c: Likewise.
3523 * ui-out.c: Likewise.
3524 * user-regs.c: Likewise.
3525 * utils.c: Likewise.
3526 * v850-tdep.c: Likewise.
3527 * valarith.c: Likewise.
3528 * valops.c: Likewise.
3529 * valprint.c: Likewise.
3530 * value.c: Likewise.
3531 * varobj.c: Likewise.
3532 * vax-tdep.c: Likewise.
3533 * vaxnbsd-tdep.c: Likewise.
3534 * vaxobsd-tdep.c: Likewise.
3535 * windows-nat.c: Likewise.
3536 * xcoffread.c: Likewise.
3537 * xml-support.c: Likewise.
3538 * xstormy16-tdep.c: Likewise.
3539 * xtensa-linux-nat.c: Likewise.
3540
3541 2014-08-07 Gary Benson <gbenson@redhat.com>
3542
3543 * common/common-defs.h: Include gdb_assert.h.
3544 * aarch64-tdep.c: Do not include gdb_assert.h.
3545 * addrmap.c: Likewise.
3546 * aix-thread.c: Likewise.
3547 * alpha-linux-tdep.c: Likewise.
3548 * alpha-mdebug-tdep.c: Likewise.
3549 * alphanbsd-tdep.c: Likewise.
3550 * amd64-nat.c: Likewise.
3551 * amd64-tdep.c: Likewise.
3552 * amd64bsd-nat.c: Likewise.
3553 * amd64fbsd-nat.c: Likewise.
3554 * amd64fbsd-tdep.c: Likewise.
3555 * amd64nbsd-nat.c: Likewise.
3556 * amd64nbsd-tdep.c: Likewise.
3557 * amd64obsd-nat.c: Likewise.
3558 * amd64obsd-tdep.c: Likewise.
3559 * arch-utils.c: Likewise.
3560 * arm-tdep.c: Likewise.
3561 * armbsd-tdep.c: Likewise.
3562 * auxv.c: Likewise.
3563 * bcache.c: Likewise.
3564 * bfin-tdep.c: Likewise.
3565 * blockframe.c: Likewise.
3566 * breakpoint.c: Likewise.
3567 * bsd-kvm.c: Likewise.
3568 * bsd-uthread.c: Likewise.
3569 * buildsym.c: Likewise.
3570 * c-exp.y: Likewise.
3571 * c-lang.c: Likewise.
3572 * charset.c: Likewise.
3573 * cleanups.c: Likewise.
3574 * cli-out.c: Likewise.
3575 * cli/cli-decode.c: Likewise.
3576 * cli/cli-dump.c: Likewise.
3577 * cli/cli-logging.c: Likewise.
3578 * cli/cli-script.c: Likewise.
3579 * cli/cli-utils.c: Likewise.
3580 * coffread.c: Likewise.
3581 * common/common-utils.c: Likewise.
3582 * common/queue.h: Likewise.
3583 * common/signals.c: Likewise.
3584 * common/vec.h: Likewise.
3585 * complaints.c: Likewise.
3586 * completer.c: Likewise.
3587 * corelow.c: Likewise.
3588 * cp-abi.c: Likewise.
3589 * cp-name-parser.y: Likewise.
3590 * cp-namespace.c: Likewise.
3591 * cp-support.c: Likewise.
3592 * cris-tdep.c: Likewise.
3593 * dbxread.c: Likewise.
3594 * dictionary.c: Likewise.
3595 * doublest.c: Likewise.
3596 * dsrec.c: Likewise.
3597 * dummy-frame.c: Likewise.
3598 * dwarf2-frame-tailcall.c: Likewise.
3599 * dwarf2-frame.c: Likewise.
3600 * dwarf2expr.c: Likewise.
3601 * dwarf2loc.c: Likewise.
3602 * dwarf2read.c: Likewise.
3603 * eval.c: Likewise.
3604 * event-loop.c: Likewise.
3605 * exceptions.c: Likewise.
3606 * expprint.c: Likewise.
3607 * f-valprint.c: Likewise.
3608 * fbsd-nat.c: Likewise.
3609 * findvar.c: Likewise.
3610 * frame-unwind.c: Likewise.
3611 * frame.c: Likewise.
3612 * frv-tdep.c: Likewise.
3613 * gcore.c: Likewise.
3614 * gdb-dlfcn.c: Likewise.
3615 * gdb_bfd.c: Likewise.
3616 * gdbarch.c: Likewise.
3617 * gdbarch.sh: Likewise.
3618 * gdbtypes.c: Likewise.
3619 * gnu-nat.c: Likewise.
3620 * gnu-v3-abi.c: Likewise.
3621 * go-lang.c: Likewise.
3622 * guile/scm-exception.c: Likewise.
3623 * guile/scm-gsmob.c: Likewise.
3624 * guile/scm-lazy-string.c: Likewise.
3625 * guile/scm-math.c: Likewise.
3626 * guile/scm-pretty-print.c: Likewise.
3627 * guile/scm-safe-call.c: Likewise.
3628 * guile/scm-utils.c: Likewise.
3629 * guile/scm-value.c: Likewise.
3630 * h8300-tdep.c: Likewise.
3631 * hppa-hpux-nat.c: Likewise.
3632 * hppa-tdep.c: Likewise.
3633 * hppanbsd-tdep.c: Likewise.
3634 * hppaobsd-tdep.c: Likewise.
3635 * i386-darwin-nat.c: Likewise.
3636 * i386-darwin-tdep.c: Likewise.
3637 * i386-nto-tdep.c: Likewise.
3638 * i386-tdep.c: Likewise.
3639 * i386bsd-nat.c: Likewise.
3640 * i386fbsd-tdep.c: Likewise.
3641 * i386gnu-nat.c: Likewise.
3642 * i386nbsd-tdep.c: Likewise.
3643 * i386obsd-tdep.c: Likewise.
3644 * i387-tdep.c: Likewise.
3645 * ia64-libunwind-tdep.c: Likewise.
3646 * ia64-tdep.c: Likewise.
3647 * inf-ptrace.c: Likewise.
3648 * inf-ttrace.c: Likewise.
3649 * infcall.c: Likewise.
3650 * infcmd.c: Likewise.
3651 * infrun.c: Likewise.
3652 * inline-frame.c: Likewise.
3653 * interps.c: Likewise.
3654 * jv-lang.c: Likewise.
3655 * jv-typeprint.c: Likewise.
3656 * linux-fork.c: Likewise.
3657 * linux-nat.c: Likewise.
3658 * linux-thread-db.c: Likewise.
3659 * m32c-tdep.c: Likewise.
3660 * m32r-linux-nat.c: Likewise.
3661 * m32r-tdep.c: Likewise.
3662 * m68k-tdep.c: Likewise.
3663 * m68kbsd-nat.c: Likewise.
3664 * m68kbsd-tdep.c: Likewise.
3665 * m88k-tdep.c: Likewise.
3666 * machoread.c: Likewise.
3667 * macroexp.c: Likewise.
3668 * macrotab.c: Likewise.
3669 * maint.c: Likewise.
3670 * mdebugread.c: Likewise.
3671 * memory-map.c: Likewise.
3672 * mep-tdep.c: Likewise.
3673 * mi/mi-common.c: Likewise.
3674 * microblaze-tdep.c: Likewise.
3675 * mingw-hdep.c: Likewise.
3676 * mips-linux-nat.c: Likewise.
3677 * mips-linux-tdep.c: Likewise.
3678 * mips-tdep.c: Likewise.
3679 * mips64obsd-tdep.c: Likewise.
3680 * mipsnbsd-tdep.c: Likewise.
3681 * mn10300-linux-tdep.c: Likewise.
3682 * mn10300-tdep.c: Likewise.
3683 * moxie-tdep.c: Likewise.
3684 * mt-tdep.c: Likewise.
3685 * nat/linux-btrace.c: Likewise.
3686 * nat/linux-osdata.c: Likewise.
3687 * nat/linux-ptrace.c: Likewise.
3688 * nat/mips-linux-watch.c: Likewise.
3689 * nios2-linux-tdep.c: Likewise.
3690 * nios2-tdep.c: Likewise.
3691 * objc-lang.c: Likewise.
3692 * objfiles.c: Likewise.
3693 * obsd-nat.c: Likewise.
3694 * opencl-lang.c: Likewise.
3695 * osabi.c: Likewise.
3696 * parse.c: Likewise.
3697 * ppc-linux-nat.c: Likewise.
3698 * ppc-sysv-tdep.c: Likewise.
3699 * ppcfbsd-nat.c: Likewise.
3700 * ppcfbsd-tdep.c: Likewise.
3701 * ppcnbsd-nat.c: Likewise.
3702 * ppcnbsd-tdep.c: Likewise.
3703 * ppcobsd-nat.c: Likewise.
3704 * ppcobsd-tdep.c: Likewise.
3705 * printcmd.c: Likewise.
3706 * procfs.c: Likewise.
3707 * prologue-value.c: Likewise.
3708 * psymtab.c: Likewise.
3709 * python/py-lazy-string.c: Likewise.
3710 * python/py-value.c: Likewise.
3711 * regcache.c: Likewise.
3712 * reggroups.c: Likewise.
3713 * registry.c: Likewise.
3714 * remote-sim.c: Likewise.
3715 * remote.c: Likewise.
3716 * rs6000-aix-tdep.c: Likewise.
3717 * rs6000-tdep.c: Likewise.
3718 * s390-linux-tdep.c: Likewise.
3719 * score-tdep.c: Likewise.
3720 * ser-base.c: Likewise.
3721 * ser-mingw.c: Likewise.
3722 * sh-tdep.c: Likewise.
3723 * sh64-tdep.c: Likewise.
3724 * solib-darwin.c: Likewise.
3725 * solib-spu.c: Likewise.
3726 * solib-svr4.c: Likewise.
3727 * source.c: Likewise.
3728 * sparc-nat.c: Likewise.
3729 * sparc-sol2-tdep.c: Likewise.
3730 * sparc-tdep.c: Likewise.
3731 * sparc64-sol2-tdep.c: Likewise.
3732 * sparc64-tdep.c: Likewise.
3733 * sparc64fbsd-tdep.c: Likewise.
3734 * sparc64nbsd-tdep.c: Likewise.
3735 * sparc64obsd-tdep.c: Likewise.
3736 * sparcnbsd-tdep.c: Likewise.
3737 * sparcobsd-tdep.c: Likewise.
3738 * spu-multiarch.c: Likewise.
3739 * spu-tdep.c: Likewise.
3740 * stabsread.c: Likewise.
3741 * stack.c: Likewise.
3742 * symfile.c: Likewise.
3743 * symtab.c: Likewise.
3744 * target-descriptions.c: Likewise.
3745 * target-memory.c: Likewise.
3746 * target.c: Likewise.
3747 * tic6x-linux-tdep.c: Likewise.
3748 * tic6x-tdep.c: Likewise.
3749 * tilegx-linux-nat.c: Likewise.
3750 * tilegx-tdep.c: Likewise.
3751 * top.c: Likewise.
3752 * tramp-frame.c: Likewise.
3753 * tui/tui-out.c: Likewise.
3754 * tui/tui-winsource.c: Likewise.
3755 * ui-out.c: Likewise.
3756 * user-regs.c: Likewise.
3757 * utils.c: Likewise.
3758 * v850-tdep.c: Likewise.
3759 * valops.c: Likewise.
3760 * value.c: Likewise.
3761 * varobj.c: Likewise.
3762 * vax-nat.c: Likewise.
3763 * xml-syscall.c: Likewise.
3764 * xml-tdesc.c: Likewise.
3765 * xstormy16-tdep.c: Likewise.
3766 * xtensa-linux-nat.c: Likewise.
3767 * xtensa-tdep.c: Likewise.
3768
3769 2014-08-07 Gary Benson <gbenson@redhat.com>
3770
3771 * common/common-defs.h: Include common-utils.h.
3772 * defs.h: Do not include common-utils.h.
3773 * common/gdb_assert.h: Likewise.
3774 * darwin-nat.h: Likewise.
3775 * nat/linux-btrace.c: Likewise.
3776 * target/waitstatus.h: Likewise.
3777
3778 2014-08-07 Gary Benson <gbenson@redhat.com>
3779
3780 * common/common-defs.h: Include ptid.h.
3781 * defs.h: Do not include ptid.h.
3782 * inferior.h: Likewise.
3783 * infrun.h: Likewise.
3784 * nat/linux-btrace.h: Likewise.
3785 * nat/linux-osdata.h: Likewise.
3786 * target/waitstatus.h: Likewise.
3787
3788 2014-08-07 Gary Benson <gbenson@redhat.com>
3789
3790 * common/common-defs.h: Include gdb_locale.h.
3791 * defs.h: Do not include gdb_locale.h.
3792
3793 2014-08-07 Gary Benson <gbenson@redhat.com>
3794
3795 * common/common-defs.h: Include gdb/signals.h.
3796 * defs.h: Do not include gdb/signals.h.
3797
3798 2014-08-07 Gary Benson <gbenson@redhat.com>
3799
3800 * common/common-defs.h: Include pathmax.h.
3801 * defs.h: Do not include pathmax.h.
3802
3803 2014-08-07 Gary Benson <gbenson@redhat.com>
3804
3805 * common/common-defs.h: Include libiberty.h.
3806 * defs.h: Do not include libiberty.h.
3807 * common/queue.h: Likewise.
3808 * cp-name-parser.y: Likewise.
3809 * mi/mi-cmd-catch.c: Likewise.
3810 * python/python.c: Likewise.
3811
3812 2014-08-07 Gary Benson <gbenson@redhat.com>
3813
3814 * common/common-defs.h: Include ansidecl.h.
3815 * defs.h: Do not include ansidecl.h.
3816 * common/buffer.h: Likewise.
3817 * common/common-utils.h: Likewise.
3818
3819 2014-08-07 Gary Benson <gbenson@redhat.com>
3820
3821 * common/common-defs.h: Include stddef.h.
3822 * defs.h: Do not include stddef.h.
3823 * common/common-utils.h: Likewise.
3824 * amd64fbsd-nat.c: Likewise.
3825 * bcache.c: Likewise.
3826 * charset.c: Likewise.
3827 * common/buffer.h: Likewise.
3828 * common/vec.h: Likewise.
3829 * i386bsd-nat.c: Likewise.
3830 * nat/linux-btrace.h: Likewise.
3831 * ppcfbsd-nat.c: Likewise.
3832 * ppcnbsd-tdep.h: Likewise.
3833 * ppcobsd-nat.c: Likewise.
3834 * ppcobsd-tdep.h: Likewise.
3835 * python/py-gdb-readline.c: Likewise.
3836
3837 2014-08-07 Gary Benson <gbenson@redhat.com>
3838
3839 * common/common-defs.h: Include stdarg.h.
3840 * defs.h: Do not include stdarg.h.
3841 * ada-lang.c: Likewise.
3842 * common/common-utils.h: Likewise.
3843 * guile/scm-string.c: Likewise.
3844 * guile/scm-utils.c: Likewise.
3845 * m32c-tdep.c: Likewise.
3846
3847 2014-08-07 Gary Benson <gbenson@redhat.com>
3848
3849 * common/common-defs.h: Include stdlib.h.
3850 * defs.h: Do not include stdlib.h.
3851 * addrmap.c: Likewise.
3852 * bcache.c: Likewise.
3853 * common/buffer.c: Likewise.
3854 * common/common-utils.c: Likewise.
3855 * cp-name-parser.y: Likewise.
3856 * go32-nat.c: Likewise.
3857 * mn10300-linux-tdep.c: Likewise.
3858 * nat/linux-osdata.c: Likewise.
3859 * tui/tui.c: Likewise.
3860 * windows-nat.c: Likewise.
3861
3862 2014-08-07 Gary Benson <gbenson@redhat.com>
3863
3864 * common/common-defs.h: Include stdio.h.
3865 * defs.h: Do not include stdio.h.
3866 * ada-lang.c: Likewise.
3867 * common/buffer.c: Likewise.
3868 * common/common-utils.c: Likewise.
3869 * cp-name-parser.y: Likewise.
3870 * gnu-nat.c: Likewise.
3871 * go32-nat.c: Likewise.
3872 * i386gnu-nat.c: Likewise.
3873 * proc-api.c: Likewise.
3874 * proc-events.c: Likewise.
3875 * proc-flags.c: Likewise.
3876 * proc-why.c: Likewise.
3877 * python/python-internal.h: Likewise.
3878 * target-memory.c: Likewise.
3879 * tui/tui-io.c: Likewise.
3880 * tui/tui.c: Likewise.
3881
3882 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
3883
3884 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
3885 (scan_dyntag_auxv): Same.
3886
3887 2014-08-06 Yao Qi <yao@codesourcery.com>
3888
3889 * amd64-linux-nat.c: Remove duplicated include
3890 "x86-linux-nat.h".
3891 * i386-linux-nat.c: Likewise.
3892
3893 2014-08-06 Yao Qi <yao@codesourcery.com>
3894
3895 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
3896 operand" with "Special opcode" in comments.
3897
3898 2014-08-05 Gary Benson <gbenson@redhat.com>
3899
3900 * interps.c (initialize_interps): Remove prototype.
3901 (interpreter_initialized): Remove static global.
3902 (interp_add): Do not call initialize_interps.
3903 (initialize_interps): Remove function.
3904
3905 2014-08-05 Gary Benson <gbenson@redhat.com>
3906
3907 * utils.c (vwarning): Remove spurious va_end.
3908
3909 2014-08-05 Alan Modra <amodra@gmail.com>
3910
3911 * charset.c (convert_between_encodings): Cast result of obstack_base.
3912 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
3913 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
3914 (read_unwind_info): Use size_t for some locals.
3915 * jit.c (finalize_symtab): Likewise.
3916 * utils.c (hashtab_obstack_allocate): Likewise.
3917 * symmisc.c (print_objfile_statistics): Update format strings.
3918
3919 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3920
3921 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
3922 (Changes in GDB 7.8): ... here.
3923
3924 2014-08-04 Tom Tromey <tromey@redhat.com>
3925
3926 * target.c (set_targetdebug): New function.
3927 (initialize_targets): Pass set_targetdebug when creating "set
3928 debug target".
3929
3930 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3931
3932 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
3933 if detecting a variable-sized field that is not the last field.
3934 Fix struct type length computation.
3935
3936 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3937
3938 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3939 Add debug trace.
3940
3941 2014-08-01 Joel Brobecker <brobecker@adacore.com>
3942
3943 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
3944 Remove "+ 8" offset in computation of CHAIN_VMA.
3945
3946 2014-07-31 Doug Evans <dje@google.com>
3947
3948 * inflow.c (child_terminal_inferior): Add comment.
3949 (child_terminal_ours_for_output): Add comment.
3950 (child_terminal_ours): Add comment.
3951 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
3952 (linux_nat_terminal_ours): Add comment.
3953
3954 2014-07-31 Gary Benson <gbenson@redhat.com>
3955
3956 * common/btrace-common.h: Do not include defs.h or server.h.
3957 * nat/mips-linux-watch.h: Likewise.
3958 * gdb-dlfcn.h: Do not include defs.h.
3959 * tracefile.h: Likewise.
3960
3961 2014-07-30 Roland McGrath <mcgrathr@google.com>
3962
3963 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
3964
3965 2014-07-30 Tom Tromey <tromey@redhat.com>
3966
3967 * bsd-kvm.c (bsd_kvm_open): Constify.
3968 * corelow.c (core_open): Constify.
3969 * ctf.c (ctf_open): Constify.
3970 * dbug-rom.c (dbug_open): Constify.
3971 * exec.c (exec_open): Constify.
3972 * m32r-rom.c (m32r_open, mon2000_open): Constify.
3973 * microblaze-rom.c (picobug_open): Constify.
3974 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
3975 Constify.
3976 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
3977 * record-btrace.c (record_btrace_open): Constify.
3978 * record-full.c (record_full_core_open_1, record_full_open_1)
3979 (record_full_open): Constify.
3980 * remote-m32r-sdi.c (m32r_open): Constify.
3981 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
3982 (rockhopper_open, lsi_open): Constify.
3983 * remote-sim.c (gdbsim_open): Constify.
3984 * remote.c (remote_open, extended_remote_open, remote_open_1):
3985 Constify.
3986 * target.h (struct target_ops) <to_open>: Make "arg" const.
3987 * tracefile-tfile.c (tfile_open): Constify.
3988
3989 2014-07-30 Tom Tromey <tromey@redhat.com>
3990
3991 * breakpoint.c (map_breakpoint_numbers): Update.
3992 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
3993 (get_number_const): New function.
3994 (get_number): Rewrite using get_number_const.
3995 (init_number_or_range): Make "string" const.
3996 (number_is_in_list): Make "list" const.
3997 * cli/cli-utils.h (get_number_const): Declare.
3998 (struct get_number_or_range_state) <string, end_ptr>: Now const.
3999 (init_number_or_range, number_is_in_list): Update.
4000 * printcmd.c (map_display_numbers): Update.
4001 * value.c (value_from_history_ref): Constify.
4002 * value.h (value_from_history_ref): Update.
4003
4004 2014-07-30 Tom Tromey <tromey@redhat.com>
4005
4006 * corefile.c (hook_type, call_extra_exec_file_hooks)
4007 (specify_exec_file_hook): Constify.
4008 * exec.c (exec_file_attach): Make "filename" const.
4009 * gdbcore.h (deprecated_exec_file_display_hook)
4010 (specify_exec_file_hook, exec_file_attach): Constify.
4011 * main.c (captured_main): Use catch_command_errors_const.
4012
4013 2014-07-30 Tom Tromey <tromey@redhat.com>
4014
4015 * target.c (open_target): New function.
4016 (add_target_with_completer, add_deprecated_target_alias): Use
4017 set_cmd_sfunc, set_cmd_context.
4018 (debug_to_open): Remove.
4019 (setup_target_debug): Update.
4020
4021 2014-07-30 Yao Qi <yao@codesourcery.com>
4022
4023 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4024 comments.
4025 * parse.c (exp_iterate): Update comments.
4026
4027 2014-07-30 Gary Benson <gbenson@redhat.com>
4028
4029 * common/common-defs.h: New file.
4030 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4031 * defs.h: Include common-defs.h.
4032 Do not include config.h or build-gnulib/config.h.
4033
4034 2014-07-30 Gary Benson <gbenson@redhat.com>
4035
4036 * common/common-utils.h: Do not include config.h.
4037 * nat/linux-btrace.h: Likewise.
4038
4039 2014-07-30 Gary Benson <gbenson@redhat.com>
4040
4041 * btrace.c: Include defs.h.
4042 * common/ptid.c: Include defs.h or server.h as appropriate.
4043 * nat/mips-linux-watch.c: Likewise.
4044
4045 2014-07-29 Tom Tromey <tromey@redhat.com>
4046
4047 * target.c (target_is_pushed): Simplify.
4048
4049 2014-07-29 Joel Brobecker <brobecker@adacore.com>
4050
4051 GDB 7.8 released.
4052
4053 2014-07-29 Yao Qi <yao@codesourcery.com>
4054
4055 PR gdb/17206
4056 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4057
4058 2014-07-28 Doug Evans <xdje42@gmail.com>
4059
4060 PR guile/17203
4061 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4062 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4063 parameters.
4064
4065 2014-07-28 Will Newton <will.newton@linaro.org>
4066
4067 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4068 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4069 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4070 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4071 (THUMB2_EABI_SYSCALL): Likewise.
4072 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4073 struct tramp_frame.
4074 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4075 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4076
4077 2014-07-27 Doug Evans <xdje42@gmail.com>
4078
4079 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4080
4081 2014-07-27 Doug Evans <xdje42@gmail.com>
4082
4083 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4084
4085 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4086 Doug Evans <xdje42@gmail.com>
4087
4088 PR guile/17146
4089 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4090 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4091 * configure.ac: Try to use guild to compile an scm file, if it fails
4092 then disable guile support.
4093 * configure: Regenerate.
4094 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4095 GUILE_FILE_LIST.
4096 (GUILE_COMPILED_FILES): New variable.
4097 (GUILE_FILES) Update.
4098 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4099 (stamp-guile): Compile scm files.
4100 * guile/guile.c (boot_guile_support): New function.
4101 (standard_throw_args_p): New function.
4102 (print_standard_throw_error, print_throw_error): New functions.
4103 (handle_boot_error): New function.
4104 (initialize_scheme_side): Rewrite to call boot_guile_support.
4105 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4106 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4107
4108 2014-07-26 Ludovic Courtès <ludo@gnu.org>
4109 Doug Evans <xdje42@gmail.com>
4110
4111 PR guile/17146
4112 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4113 * guile/lib/gdb/support.scm: New file.
4114 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4115 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4116 All uses updated.
4117 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4118 All uses updated.
4119 (%assert-type): Ditto, and renamed to assert-type.
4120 (%exception-print-style): Delete.
4121
4122 2014-07-26 Doug Evans <xdje42@gmail.com>
4123
4124 PR build/17105
4125 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4126 * configure: Regenerate.
4127 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4128 PYTHON_FILES.
4129 (PYTHON_FILES): New variable.
4130 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4131 (GUILE_FILES): New variable.
4132 (stamp-python, install-python, uninstall-python): Handle empty
4133 file list.
4134 (stamp-guile, install-guile, uninstall-guile): Ditto.
4135
4136 2014-07-26 Doug Evans <xdje42@gmail.com>
4137
4138 PR guile/17177
4139 * guile/lib/gdb.scm (pretty-printers): Export.
4140 (set-pretty-printers!): Export.
4141 * guile/lib/gdb/printing.scm (gdb module): Update.
4142 (prepend-pretty-printer!, append-pretty-printer!): Update.
4143 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4144 (pretty_printer_list_var): Delete.
4145 (pretty_printer_list): New static global.
4146 (gdbscm_pretty_printers): New function.
4147 (gdbscm_set_pretty_printers_x): New function.
4148 (ppscm_find_pretty_printer_from_gdb): Update.
4149 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4150 (gdbscm_initialize_pretty_printers): Update.
4151
4152 2014-07-26 Doug Evans <xdje42@gmail.com>
4153
4154 PR 17185
4155 * configure.ac: Add check for header gc/gc.h.
4156 Add check for function setenv.
4157 * configure: Regenerate.
4158 * config.in: Regenerate.
4159 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4160
4161 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
4162
4163 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4164 variation in gdbarch matching.
4165
4166 2014-07-25 Tom Tromey <tromey@redhat.com>
4167
4168 * exec.c (using_exec_ops): Remove.
4169 (exec_close_1): Update. Remove extraneous block, reindent.
4170 (add_target_sections): Use target_is_pushed.
4171
4172 2014-07-25 Pedro Alves <palves@redhat.com>
4173
4174 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4175 * monitor.c (monitor_create_inferior): Likewise.
4176 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4177 * remote-sim.c (gdbsim_create_inferior): Likewise.
4178 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4179 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4180 * windows-nat.c (do_initial_windows_stuff): Likewise.
4181
4182 2014-07-25 Pedro Alves <palves@redhat.com>
4183
4184 * NEWS: Mention signal passing and "signal" command changes.
4185 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4186 comment.
4187 * breakpoint.c (until_break_command): Adjust clear_proceed_status
4188 call.
4189 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4190 * infcmd.c (proceed_thread_callback, continue_1, step_once)
4191 (jump_command): Adjust clear_proceed_status call.
4192 (signal_command): Warn if other thread that are resumed have
4193 signals that will be delivered. Adjust clear_proceed_status call.
4194 (until_next_command, finish_command)
4195 (proceed_after_attach_callback, attach_command_post_wait)
4196 (attach_command): Adjust clear_proceed_status call.
4197 * infrun.c (proceed_after_vfork_done): Likewise.
4198 (proceed_after_attach_callback): Adjust comment.
4199 (clear_proceed_status_thread): Clear stop_signal if not in pass
4200 state.
4201 (clear_proceed_status_callback): Delete.
4202 (clear_proceed_status): New 'step' parameter. Only clear the
4203 proceed status of threads the command being prepared is about to
4204 resume.
4205 (proceed): If passed in an explicit signal, override stop_signal
4206 with it. Don't pass the last stop signal to the thread we're
4207 resuming.
4208 (init_wait_for_inferior): Adjust clear_proceed_status call.
4209 (switch_back_to_stepped_thread): Clear the signal if it should not
4210 be passed.
4211 * infrun.h (clear_proceed_status): New 'step' parameter.
4212 (user_visible_resume_ptid): Add comment.
4213 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4214 signal is in pass state.
4215 * remote.c (append_pending_thread_resumptions): Likewise.
4216 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4217
4218 2014-07-25 Tom Tromey <tromey@redhat.com>
4219
4220 * target.h (target_stopped_data_address)
4221 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
4222 parentheses.
4223
4224 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
4225
4226 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4227 comments.
4228 (avr_pointer_to_address): Likewise.
4229
4230 2014-07-24 Tom Tromey <tromey@redhat.com>
4231
4232 * monitor.c (compile_pattern): Update.
4233 * target.h (struct target_ops) <to_shortname, to_longname,
4234 to_doc>: Now const.
4235
4236 2014-07-24 Tom Tromey <tromey@redhat.com>
4237
4238 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4239 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4240 (add_info_alias, add_com): Make "doc" const.
4241 (print_doc_line): Make "str" const.
4242 (delete_cmd): Update.
4243 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4244 (print_doc_line): Update.
4245 * cli/cli-script.c (document_command): Update.
4246 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4247 (add_com, add_info, add_info_alias): Update.
4248 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4249 * python/py-cmd.c (cmdpy_destroyer): Update.
4250
4251 2014-07-24 Tom Tromey <tromey@redhat.com>
4252
4253 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4254 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4255 (help_cmd_list): Constify.
4256 (lookup_cmd): Update.
4257 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4258 const.
4259 (help_cmd_list, apropos_cmd): Update.
4260 * cli/cli-script.c (show_user): Update.
4261 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4262 * cli/cli-setshow.h (cmd_show_list): Update.
4263 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4264 (cmd_show_list): Update.
4265 * guile/scm-cmd.c (cmdscm_destroyer): Update.
4266 * python/py-cmd.c (cmdpy_destroyer): Update.
4267
4268 2014-07-24 Tom Tromey <tromey@redhat.com>
4269
4270 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4271 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4272 const.
4273 * command.h (deprecate_cmd): Update.
4274 * maint.c (maintenance_do_deprecate): Add casts.
4275
4276 2014-07-24 Tom Tromey <tromey@redhat.com>
4277
4278 * cli/cli-decode.c (help_cmd): Make parameter "const".
4279 * cli/cli-decode.h (help_cmd): Update.
4280
4281 2014-07-24 Tom Tromey <tromey@redhat.com>
4282
4283 * stack.c (up_silently_base, down_silently_base): Make argument
4284 const.
4285
4286 2014-07-24 Tom Tromey <tromey@redhat.com>
4287
4288 * solib.c (solib_add): Make "pattern" const.
4289 * solib.h (solib_add): Update.
4290
4291 2014-07-24 Tom Tromey <tromey@redhat.com>
4292
4293 * remote.c (remote_serial_open, print_packet, putpkt)
4294 (putpkt_binary): Constify.
4295 * remote.h (putpkt): Update.
4296
4297 2014-07-24 Tom Tromey <tromey@redhat.com>
4298
4299 * monitor.c (monitor_open): Make "args" const.
4300 * monitor.h (monitor_open): Update.
4301
4302 2014-07-24 Tom Tromey <tromey@redhat.com>
4303
4304 * maint.c (match_bfd_flags): Make "string" const.
4305 (print_bfd_section_info): Remove casts.
4306 (print_objfile_section_info): Make "string" const.
4307
4308 2014-07-24 Tom Tromey <tromey@redhat.com>
4309
4310 * inf-child.c (inf_child_open_target): Make "arg" const.
4311 * inf-child.h (inf_child_open_target): Update.
4312
4313 2014-07-24 Tom Tromey <tromey@redhat.com>
4314
4315 * environ.c (unset_in_environ): Make "var" const.
4316 * environ.h (unset_in_environ): Update.
4317
4318 2014-07-24 Tom Tromey <tromey@redhat.com>
4319
4320 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4321 Make "cmd" const.
4322 (scan_filename_with_cleanup): Likewise.
4323 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4324 Make arguments const.
4325 (restore_command): Update.
4326
4327 2014-07-24 Pedro Alves <palves@redhat.com>
4328
4329 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4330
4331 2014-07-24 Tom Tromey <tromey@redhat.com>
4332 Gary Benson <gbenson@redhat.com>
4333
4334 * nat/linux-ptrace.c (additional_flags): New global.
4335 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4336 additional_flags; don't check GDBSERVER.
4337 (linux_ptrace_set_additional_flags): New function.
4338 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4339 Declare.
4340 * linux-nat.c (_initialize_linux_nat): Call
4341 linux_ptrace_set_additional_flags.
4342
4343 2014-07-24 Tom Tromey <tromey@redhat.com>
4344
4345 * make-target-delegates (munge_type, write_debugmethod): New
4346 functions.
4347 (debug_names): New global.
4348 ($TARGET_DEBUG_PRINTER): New global.
4349 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4350 name.
4351 Write debug methods. Generate init_debug_target.
4352 * target-debug.h: New file.
4353 * target-delegates.c: Rebuild.
4354 * target.c: Include target-debug.h.
4355 (debug_target): Hoist definition.
4356 (target_kill, target_get_section_table, target_memory_map)
4357 (target_flash_erase, target_flash_done, target_detach)
4358 (target_disconnect, target_wait, target_resume)
4359 (target_pass_signals, target_program_signals, target_follow_fork)
4360 (target_mourn_inferior, target_search_memory)
4361 (target_thread_address_space, target_close)
4362 (target_find_new_threads, target_core_of_thread)
4363 (target_verify_memory, target_insert_mask_watchpoint)
4364 (target_remove_mask_watchpoint): Remove targetdebug code.
4365 (debug_to_post_attach, debug_to_prepare_to_store)
4366 (debug_to_files_info, debug_to_insert_breakpoint)
4367 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4368 (debug_to_region_ok_for_hw_watchpoint)
4369 (debug_to_can_accel_watchpoint_condition)
4370 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4371 (debug_to_watchpoint_addr_within_range)
4372 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4373 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4374 (debug_to_terminal_init, debug_to_terminal_inferior)
4375 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4376 (debug_to_terminal_save_ours, debug_to_terminal_info)
4377 (debug_to_load, debug_to_post_startup_inferior)
4378 (debug_to_insert_fork_catchpoint)
4379 (debug_to_remove_fork_catchpoint)
4380 (debug_to_insert_vfork_catchpoint)
4381 (debug_to_remove_vfork_catchpoint)
4382 (debug_to_insert_exec_catchpoint)
4383 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4384 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4385 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4386 (setup_target_debug): Call init_debug_target.
4387 * target.h (TARGET_DEBUG_PRINTER): New macro.
4388 (struct target_ops) <to_resume, to_wait, to_pass_signals,
4389 to_program_signals>: Use TARGET_DEBUG_PRINTER.
4390
4391 2014-07-24 Gary Benson <gbenson@redhat.com>
4392
4393 * exceptions.h (throw_vfatal): Renamed to...
4394 (throw_vquit): New declaration.
4395 (throw_quit): Likewise.
4396 * exceptions.c (throw_vfatal): Renamed to...
4397 (throw_vquit): New function.
4398 (throw_quit): Likewise.
4399 (throw_error): Call throw_verror rather than throw_it.
4400 * utils.h (vfatal): Removed.
4401 (fatal): Likewise.
4402 * utils.c (vfatal): Removed.
4403 (fatal): Likewise.
4404 (internal_verror): Replaced call to fatal with call to throw_quit.
4405 (quit): Replaced calls to fatal with calls to throw_quit.
4406
4407 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
4408
4409 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4410 target_read_code.
4411
4412 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
4413
4414 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4415 less than zero in conditional expression.
4416
4417 2014-07-23 Tom Tromey <tromey@redhat.com>
4418
4419 * make-target-delegates ($ARGS_PART): Match trailing close paren.
4420 ($INTRO_PART): Don't match whitespace.
4421 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
4422 argument matching.
4423 ($METHOD): Add $METHOD_TRAILER.
4424 (trim): Rewrite.
4425 (scan_target_h): New sub.
4426 Change main loop not to collect state.
4427 * target-delegates.c: Rebuild.
4428
4429 2014-07-23 Gary Benson <gbenson@redhat.com>
4430
4431 * cp-support.c (gdb_demangle): Fix build on systems without
4432 sigaltstack.
4433
4434 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4435
4436 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4437 for reference entry value target data value.
4438
4439 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4440
4441 * stack.c (read_frame_arg): Verify value_optimized_out before calling
4442 value_available_contents_eq.
4443
4444 2014-07-22 Pedro Alves <palves@redhat.com>
4445
4446 * value.c (allocate_optimized_out_value): Don't mark value as
4447 non-lazy.
4448
4449 2014-07-22 Jiong Wang <jiong.wang@arm.com>
4450
4451 * MAINTAINERS (Write After Approval): Update my email address.
4452
4453 2014-07-20 Doug Evans <dje@google.com>
4454
4455 PR server/17147
4456 * remote.c (putpkt_binary): Add text to error message.
4457
4458 2014-07-20 Yao Qi <yao@codesourcery.com>
4459
4460 * eval.c: Remove "Chill" from comments.
4461 * gdbtypes.h: Likewise.
4462 * symtab.h: Likewise.
4463
4464 2014-07-20 Yao Qi <yao@codesourcery.com>
4465
4466 * std-operator.def: Update comments to TERNOP_SLICE.
4467
4468 2014-07-20 Yao Qi <yao@codesourcery.com>
4469
4470 * std-operator.def: Remove BINOP_RANGE.
4471 * breakpoint.c (watchpoint_exp_is_const): Update.
4472 * expprint.c (dump_subexp_body_standard): Likewise.
4473 * eval.c (init_array_element): Remove dead code.
4474 (evaluate_subexp_standard): Likewise.
4475
4476 2014-07-20 Yao Qi <yao@codesourcery.com>
4477
4478 * std-operator.def: Remove BINOP_IN.
4479 * breakpoint.c (watchpoint_exp_is_const): Update.
4480 * eval.c (evaluate_subexp_standard): Likewise.
4481 * expprint.c (dump_subexp_body_standard): Likewise.
4482
4483 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
4484
4485 * microblaze-tdep.c (microblaze_register_names): Add
4486 the rshr and rslr register names.
4487 (microblaze_gdbarch_init): Use of tdesc_has_registers.
4488 Use of tdesc_find_feature. Use of tdesc_data_alloc.
4489 Use of tdesc_numbered_register. Use of
4490 microblaze_register_g_packet_guesses. Use of
4491 tdesc_use_registers. Use of set_gdbarch_register_type.
4492 (microblaze_register_g_packet_guesses): New.
4493 * microblaze-tdep.h (microblaze_reg_num): Add
4494 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4495 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4496 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4497 * features/microblaze-core.xml: New file.
4498 * features/microblaze-stack-protect.xml: New file.
4499 * features/microblaze-with-stack-protect.c: New file.
4500 * features/microblaze-with-stack-protect.xml: New file.
4501 * features/microblaze.xml: New file.
4502 * features/microblaze.c: New file.
4503 * features/Makefile (microblaze-with-stack-protect): Add
4504 microblaze-with-stack-protect microblaze and microblaze-expedite.
4505 * regformats/microblaze-with-stack-protect.dat: New file.
4506 * regformats/microblaze.dat: New file.
4507 * doc/gdb.texinfo (MicroBlaze Features): Added.
4508
4509 2014-07-18 Tom Tromey <tromey@redhat.com>
4510
4511 * exec.c (exec_ops): Now static.
4512 * exec.h (exec_ops): Don't declare.
4513
4514 2014-07-18 Tom Tromey <tromey@redhat.com>
4515
4516 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4517 to find_target_beneath.
4518 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4519 find_target_beneath.
4520 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4521
4522 2014-07-18 Tom Tromey <tromey@redhat.com>
4523
4524 PR gdb/17130:
4525 * utils.c (quit): Use target_supports_terminal_ours.
4526 * target.h (target_supports_terminal_ours): Declare.
4527 * target.c (target_supports_delete_record): Don't check
4528 to_delete_record against NULL.
4529 (target_supports_terminal_ours): New function.
4530
4531 2014-07-18 Tom Tromey <tromey@redhat.com>
4532
4533 PR gdb/17130:
4534 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
4535 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
4536 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
4537 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
4538 * windows-nat.c (windows_xfer_partial): Always delegate.
4539 * record-btrace.c (record_btrace_xfer_partial): Simplify
4540 delegation.
4541 (record_btrace_fetch_registers, record_btrace_store_registers)
4542 (record_btrace_prepare_to_store, record_btrace_resume)
4543 (record_btrace_wait, record_btrace_find_new_threads)
4544 (record_btrace_thread_alive): Likewise.
4545 * procfs.c (procfs_xfer_partial): Always delegate.
4546 * corelow.c (core_xfer_partial): Always delegate.
4547 * sol-thread.c (sol_find_new_threads): Simplify delegation.
4548
4549 2014-07-18 Tom Tromey <tromey@redhat.com>
4550
4551 * exec.c (exec_make_note_section): Move earlier.
4552
4553 2014-07-17 Doug Evans <dje@google.com>
4554
4555 PR gdb/17170
4556 * maint.c (count_symtabs_and_blocks): Handle NULL
4557 current_program_space.
4558 (report_command_stats): Check global enabled flag in addition to
4559 recorded enabled flag.
4560 (make_command_stats_cleanup): Handle msg_type == 0, startup.
4561
4562 2014-07-16 Pedro Alves <palves@redhat.com>
4563
4564 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
4565
4566 2014-07-16 Tom Tromey <tromey@redhat.com>
4567
4568 * target.h (struct target_ops) <to_delete_record>: Reformat
4569 comment.
4570
4571 2014-07-16 Tom Tromey <tromey@redhat.com>
4572
4573 * target-delegates.c: Rebuild.
4574
4575 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
4576
4577 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
4578 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
4579 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
4580 (avr_pointer_to_address): Likewise.
4581 (avr_address_class_type_flags): New function.
4582 (avr_address_class_type_flags_to_name): Likewise.
4583 (avr_address_class_name_to_type_flags): Likewise.
4584 (avr_gdbarch_init): Set address_class_type_flags,
4585 address_class_type_flags_to_name and
4586 address_class_name_to_type_flags.
4587
4588 2014-07-15 Pedro Alves <palves@redhat.com>
4589
4590 * linux-nat.c (kill_callback): Save errno and work with saved
4591 copy.
4592
4593 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
4594
4595 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
4596
4597 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
4598
4599 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
4600 breakpoint support correctly.
4601
4602 2014-07-14 Pedro Alves <palves@redhat.com>
4603
4604 * utils.c (prompt_for_continue): Call target_terminal_ours.
4605
4606 2014-07-14 Pedro Alves <palves@redhat.com>
4607
4608 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
4609 catch_errors. Don't re-enable stdin or notify observers where,
4610 and rethrow error.
4611 (fetch_inferior_event_wrapper): Delete.
4612
4613 2014-07-14 Pedro Alves <palves@redhat.com>
4614
4615 PR gdb/17072
4616 * top.c: Include "inf-loop.h".
4617 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
4618 field.
4619 (gdb_readline_wrapper_cleanup): Make the target async again, if it
4620 was async before.
4621 (gdb_readline_wrapper): Store whether the target is async, and
4622 make it sync.
4623
4624 2014-07-14 Pedro Alves <palves@redhat.com>
4625
4626 PR gdb/17072
4627 * top.c (gdb_readline_wrapper_line): Tweak comment.
4628 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
4629 the input handler callback.
4630
4631 2014-07-14 Pedro Alves <palves@redhat.com>
4632
4633 PR gdb/17072
4634 * main.c: Include event-top.h.
4635 (handle_command_errors): New function.
4636 (catch_command_errors, catch_command_errors_const): Use it.
4637
4638 2014-07-14 Pedro Alves <palves@redhat.com>
4639
4640 * exceptions.c (catch_command_errors, catch_command_errors_const):
4641 Moved to main.c.
4642 * exceptions.h (catch_command_errors_ftype)
4643 (catch_command_errors_const_ftype): Moved to main.c.
4644 (catch_command_errors, catch_command_errors_const): Delete
4645 declarations.
4646 * main.c (catch_command_errors_ftype)
4647 (catch_command_errors_const_ftype): Moved here from exceptions.h.
4648 (catch_command_errors, catch_command_errors_const)): Moved here
4649 from exceptions.c and make static.
4650
4651 2014-07-14 Pedro Alves <palves@redhat.com>
4652
4653 * exceptions.c (print_any_exception): Delete.
4654 (catch_exceptions_with_msg): Use exception_print instead of
4655 print_any_exception.
4656 (catch_errors): Use exception_fprintf instead of
4657 print_any_exception.
4658 (catch_command_errors, catch_command_errors_const): Use
4659 exception_print instead of print_any_exception.
4660
4661 2014-07-14 Pedro Alves <palves@redhat.com>
4662
4663 * infcall.c (run_inferior_call): Set 'sync_execution' while
4664 running the inferior call.
4665
4666 2014-07-14 Pedro Alves <palves@redhat.com>
4667
4668 * value.c (value_contents_equal): Delete function.
4669 * value.h (value_contents_equal): Delete declaration.
4670
4671 2014-07-14 Tom Tromey <tromey@redhat.com>
4672
4673 PR exp/17106:
4674 * gdbtypes.c (is_dynamic_type_internal): New function, from
4675 is_dynamic_type.
4676 (is_dynamic_type): Rewrite.
4677 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
4678 (resolve_dynamic_struct): Likewise.
4679 (resolve_dynamic_type_internal): New function, from
4680 resolve_dynamic_type.
4681 (resolve_dynamic_type): Rewrite.
4682
4683 2014-07-14 Tom Tromey <tromey@redhat.com>
4684
4685 * target.c (target_require_runnable): Also check record_stratum.
4686 Update comment.
4687
4688 2014-07-11 Yao Qi <yao@codesourcery.com>
4689
4690 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
4691 thumb_instruction_restores_sp return true.
4692
4693 2014-07-11 Yao Qi <yao@codesourcery.com>
4694
4695 * arm-tdep.c (thumb_instruction_restores_sp): New function.
4696 (thumb_in_function_epilogue_p): Call
4697 thumb_instruction_restores_sp.
4698
4699 2014-07-11 Yao Qi <yao@codesourcery.com>
4700
4701 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
4702 'add sp, #imm'.
4703 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
4704
4705 2014-07-11 Gary Benson <gbenson@redhat.com>
4706
4707 * amd64-linux-nat.c (gdbcore.h): Remove include.
4708 (regset.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/debugreg.h): Likewise.
4715 (sys/syscall.h): Likewise.
4716 (sys/procfs.h): Likewise.
4717 (sys/user.h): Likewise.
4718 (asm/ptrace.h): Likewise.
4719 (i386-nat.h): Likewise.
4720 * i386-linux-nat.c (i386-nat.h): Likewise.
4721 (regset.h): Likewise.
4722 (target.h): Likewise.
4723 (linux-nat.h): Likewise.
4724 (nat/linux-btrace.h): Likewise.
4725 (btrace.h): Likewise.
4726 (gdb_assert.h): Likewise.
4727 (string.h): Likewise.
4728 (sys/uio.h): Likewise.
4729 (sys/user.h): Likewise.
4730 (sys/procfs.h): Likewise.
4731 (sys/reg.h): Likewise.
4732 (sys/debugreg.h): Likewise.
4733 (ORIG_EAX): Remove definition.
4734
4735 2014-07-11 Gary Benson <gbenson@redhat.com>
4736
4737 * i386-linux-nat.h: New file.
4738 * x86-linux-nat.h: Likewise.
4739 * x86-linux-nat.c: Likewise.
4740 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
4741 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
4742 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4743 * amd64-linux-nat.c (x86-linux-nat.h): New include.
4744 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4745 (PTRACE_SETREGSET): Likewise.
4746 (arch_lwp_info): Now in x86-linux-nat.c.
4747 (have_ptrace_getregset): Now in x86-linux-nat.h.
4748 (x86_linux_dr_get): Now in x86-linux-nat.c.
4749 (x86_linux_dr_set): Likewise.
4750 (x86_linux_dr_get_addr): Likewise.
4751 (x86_linux_dr_get_control): Likewise.
4752 (x86_linux_dr_get_status): Likewise.
4753 (update_debug_registers_callback): Likewise.
4754 (x86_linux_dr_set_control): Likewise.
4755 (x86_linux_dr_set_addr): Likewise.
4756 (x86_linux_prepare_to_resume): Likewise.
4757 (x86_linux_new_thread): Likewise.
4758 (x86_linux_new_fork): Likewise.
4759 (x86_linux_get_thread_area): Likewise.
4760 (super_post_startup_inferior): Likewise.
4761 (x86_linux_child_post_startup_inferior): Likewise.
4762 (AMD64_LINUX_USER64_CS): Likewise.
4763 (AMD64_LINUX_X32_DS): Likewise.
4764 (x86_linux_read_description): Likewise.
4765 (x86_linux_enable_btrace): Likewise.
4766 (x86_linux_disable_btrace): Likewise.
4767 (x86_linux_teardown_btrace): Likewise.
4768 (x86_linux_read_btrace): Likewise.
4769 (x86_linux_create_target): Likewise.
4770 (x86_linux_add_target): Likewise.
4771 * i386-linux-nat.c (x86-linux-nat.h): New include.
4772 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
4773 (PTRACE_SETREGSET): Likewise.
4774 (arch_lwp_info): Now in x86-linux-nat.c.
4775 (have_ptrace_getregset): Now in x86-linux-nat.h.
4776 (x86_linux_dr_get): Now in x86-linux-nat.c.
4777 (x86_linux_dr_set): Likewise.
4778 (x86_linux_dr_get_addr): Likewise.
4779 (x86_linux_dr_get_control): Likewise.
4780 (x86_linux_dr_get_status): Likewise.
4781 (update_debug_registers_callback): Likewise.
4782 (x86_linux_dr_set_control): Likewise.
4783 (x86_linux_dr_set_addr): Likewise.
4784 (x86_linux_prepare_to_resume): Likewise.
4785 (x86_linux_new_thread): Likewise.
4786 (x86_linux_new_fork): Likewise.
4787 (x86_linux_get_thread_area): Likewise.
4788 (super_post_startup_inferior): Likewise.
4789 (x86_linux_child_post_startup_inferior): Likewise.
4790 (AMD64_LINUX_USER64_CS): Likewise.
4791 (AMD64_LINUX_X32_DS): Likewise.
4792 (x86_linux_read_description): Likewise.
4793 (x86_linux_enable_btrace): Likewise.
4794 (x86_linux_disable_btrace): Likewise.
4795 (x86_linux_teardown_btrace): Likewise.
4796 (x86_linux_read_btrace): Likewise.
4797 (x86_linux_create_target): Likewise.
4798 (x86_linux_add_target): Likewise.
4799
4800 2014-07-11 Gary Benson <gbenson@redhat.com>
4801
4802 * amd64-linux-nat.c: Comment and whitespace changes.
4803 * i386-linux-nat.c: Comment and whitespace changes.
4804
4805 2014-07-11 Gary Benson <gbenson@redhat.com>
4806
4807 * amd64-linux-nat.c (x86_linux_create_target): New function.
4808 (x86_linux_add_target): Likewise.
4809 (_initialize_amd64_linux_nat): Delegate to the above new functions.
4810 * i386-linux-nat.c (x86_linux_create_target): New function.
4811 (x86_linux_add_target): Likewise.
4812 (_initialize_i386_linux_nat): Delegate to the above new functions.
4813
4814 2014-07-11 Gary Benson <gbenson@redhat.com>
4815
4816 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
4817 (ps_get_thread_area): Delegate to the above in 32-bit mode.
4818 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
4819 (ps_get_thread_area): Delegate to the above.
4820
4821 2014-07-11 Gary Benson <gbenson@redhat.com>
4822
4823 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
4824 x86_linux_read_description. All uses updated. amd64-specific
4825 code conditionalized. Conditionalized i386-specific code added.
4826 Redundant cast removed.
4827 * i386-linux-nat.c (i386_linux_read_description): Renamed to
4828 x86_linux_read_description. All uses updated. i386-specific
4829 code conditionalized. Conditionalized amd64-specific code added.
4830 One sizeof replaced with the actual type it is describing.
4831
4832 2014-07-11 Gary Benson <gbenson@redhat.com>
4833
4834 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
4835 x86_linux_dr_get. All uses updated.
4836 (amd64_linux_dr_set): Renamed to
4837 x86_linux_dr_set. All uses updated.
4838 (amd64_linux_dr_get_addr): Renamed to
4839 x86_linux_dr_get_addr. All uses updated.
4840 (amd64_linux_dr_get_control): Renamed to
4841 x86_linux_dr_get_control. All uses updated.
4842 (amd64_linux_dr_get_status): Renamed to
4843 x86_linux_dr_get_status. All uses updated.
4844 (amd64_linux_dr_set_control): Renamed to
4845 x86_linux_dr_set_control. All uses updated.
4846 (amd64_linux_dr_set_addr): Renamed to
4847 x86_linux_dr_set_addr. All uses updated.
4848 (amd64_linux_prepare_to_resume): Renamed to
4849 x86_linux_prepare_to_resume. All uses updated.
4850 (amd64_linux_new_thread): Renamed to
4851 x86_linux_new_thread. All uses updated.
4852 (amd64_linux_new_fork): Renamed to
4853 x86_linux_new_fork. All uses updated.
4854 (amd64_linux_child_post_startup_inferior): Renamed to
4855 x86_linux_child_post_startup_inferior. All uses updated.
4856 (amd64_linux_enable_btrace): Renamed to
4857 x86_linux_enable_btrace. All uses updated.
4858 (amd64_linux_disable_btrace): Renamed to
4859 x86_linux_disable_btrace. All uses updated.
4860 (amd64_linux_teardown_btrace): Renamed to
4861 x86_linux_teardown_btrace. All uses updated.
4862 (amd64_linux_read_btrace): Renamed to
4863 x86_linux_read_btrace. All uses updated.
4864 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
4865 x86_linux_dr_get. All uses updated.
4866 (i386_linux_dr_set): Renamed to
4867 x86_linux_dr_set. All uses updated.
4868 (i386_linux_dr_get_addr): Renamed to
4869 x86_linux_dr_get_addr. All uses updated.
4870 (i386_linux_dr_get_control): Renamed to
4871 x86_linux_dr_get_control. All uses updated.
4872 (i386_linux_dr_get_status): Renamed to
4873 x86_linux_dr_get_status. All uses updated.
4874 (i386_linux_dr_set_control): Renamed to
4875 x86_linux_dr_set_control. All uses updated.
4876 (i386_linux_dr_set_addr): Renamed to
4877 x86_linux_dr_set_addr. All uses updated.
4878 (i386_linux_prepare_to_resume): Renamed to
4879 x86_linux_prepare_to_resume. All uses updated.
4880 (i386_linux_new_thread): Renamed to
4881 x86_linux_new_thread. All uses updated.
4882 (i386_linux_new_fork): Renamed to
4883 x86_linux_new_fork. All uses updated.
4884 (i386_linux_child_post_startup_inferior): Renamed to
4885 x86_linux_child_post_startup_inferior. All uses updated.
4886 (i386_linux_enable_btrace): Renamed to
4887 x86_linux_enable_btrace. All uses updated.
4888 (i386_linux_disable_btrace): Renamed to
4889 x86_linux_disable_btrace. All uses updated.
4890 (i386_linux_teardown_btrace): Renamed to
4891 x86_linux_teardown_btrace. All uses updated.
4892 (i386_linux_read_btrace): Renamed to
4893 x86_linux_read_btrace. All uses updated.
4894
4895 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4896
4897 * remote.c (extended_remote_post_attach): New function.
4898 (init_extended_remote_ops): Install it as to_post_attach method.
4899
4900 2014-07-09 Pedro Alves <palves@redhat.com>
4901
4902 * infcmd.c (attach_command_post_wait): Don't call
4903 target_terminal_inferior here.
4904 (attach_command): Call it here instead.
4905
4906 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4907
4908 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
4909 field.
4910 * c-varobj.c (c_is_path_expr_parent): New function, moved core
4911 from varobj.c, with additional checks.
4912 (c_varobj_ops): Fill in is_path_expr_parent field.
4913 (cplus_varobj_ops): Fill in is_path_expr_parent field.
4914 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
4915 field.
4916 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
4917 ops method.
4918 (varobj_default_is_path_expr_parent): New function.
4919 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
4920 (varobj_default_is_path_expr_parent): Declare new function.
4921
4922 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
4923
4924 * infcmd.c (finish_backward): Turn internal error into normal error.
4925
4926 2014-07-07 Pedro Alves <palves@redhat.com>
4927
4928 PR gdb/17096
4929 * remote.c (async_handle_remote_sigint)
4930 (async_handle_remote_sigint_twice): Call
4931 gdb_call_async_signal_handler instead of
4932 mark_async_signal_handler.
4933
4934 2014-07-07 Tom Tromey <tromey@redhat.com>
4935
4936 * target-delegates.c: Rebuild.
4937 * target.c (target_info_record): Remove.
4938 * record.c (info_record_command): Unconditionally call
4939 to_info_record.
4940 * target.h (struct target_ops) <to_info_record>: Use
4941 TARGET_DEFAULT_IGNORE.
4942 (target_info_record): Remove.
4943
4944 2014-07-07 Tom Tromey <tromey@redhat.com>
4945
4946 * target.h (struct target_ops) <to_get_thread_local_address>: Use
4947 TARGET_DEFAULT_NORETURN.
4948 * target.c (generic_tls_error): New function.
4949 (target_translate_tls_address): Don't search target stack.
4950 * target-delegates.c: Rebuild.
4951 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
4952 stack.
4953 * linux-thread-db.c (thread_db_get_thread_local_address):
4954 Unconditionally call beneath target.
4955
4956 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
4957
4958 * cli/cli-logging.c (pop_output_files): Assign targerr to
4959 gdb_stdtargerr.
4960
4961 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
4962
4963 * MAINTAINERS (Write After Approval): Update my email address.
4964
4965 2014-07-02 Gary Benson <gbenson@redhat.com>
4966
4967 * proc-service.c (ps_xfer_memory): Update comment.
4968 (ps_pstop): Remove unused function.
4969 (ps_pcontinue): Likewise.
4970 (ps_lstop): Likewise.
4971 (ps_lcontinue): Likewise.
4972 (ps_lgetxregsize): Likewise.
4973 (ps_lgetxregs): Likewise.
4974 (ps_lsetxregs): Likewise.
4975 (ps_plog): Likewise.
4976 (ps_ptread): Likewise.
4977 (ps_ptwrite): Likewise.
4978
4979 2014-07-01 Mark Wielaard <mjw@redhat.com>
4980
4981 * dwarf2read.c (add_array_cv_type): New function.
4982 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
4983 (read_tag_volatile_type): Likewise.
4984
4985 2014-07-01 Tom Tromey <tromey@redhat.com>
4986
4987 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
4988 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
4989 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
4990 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
4991 * command.h (cmd_cfunc_ftype): Move earlier.
4992 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
4993 (add_com, add_info): Use cmd_cfunc_ftype.
4994
4995 2014-06-30 Tom Tromey <tromey@redhat.com>
4996
4997 * symtab.c (operator_chars): Make parameters and return type
4998 const.
4999 (file_matches): Make "files" const.
5000 (struct search_symbols_data) <files>: Now const.
5001 (search_symbols): Make "regexp" and "files" parameters const.
5002 Update.
5003 (symtab_symbol_info): Remove cast.
5004 (rbreak_command): Update.
5005 * symtab.h (search_symbols): Update.
5006
5007 2014-06-27 Yao Qi <yao@codesourcery.com>
5008
5009 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5010 Change parameter type to 'struct thread_info *'. Caller
5011 updated.
5012 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5013 Update declaration.
5014 * dummy-frame.c (struct dummy_frame_id): New.
5015 (dummy_frame_id_eq): New function.
5016 (struct dummy_frame) <id>: Change its type to 'struct
5017 dummy_frame_id'.
5018 (dummy_frame_push): Add parameter ptid and save it in
5019 dummy_frame_id.
5020 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5021 inferior_ptid.
5022 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5023 to inferior_ptid.
5024 (lookup_dummy_frame): Change parameter type to 'struct
5025 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5026 instead of frame_id_eq.
5027 (dummy_frame_pop): Add parameter ptid. Callers updated.
5028 Update comments. Compose dummy_frame_id and pass it to
5029 lookup_dummy_frame.
5030 (dummy_frame_discard): Add parameter ptid.
5031 (dummy_frame_sniffer): Compose dummy_frame_id and call
5032 dummy_frame_id_eq instead of frame_id_eq.
5033 (fprint_dummy_frames): Print ptid.
5034 * dummy-frame.h: Remove comments.
5035 (dummy_frame_push): Add ptid in declaration.
5036 (dummy_frame_pop, dummy_frame_discard): Likewise.
5037
5038 2014-06-26 Tom Tromey <tromey@redhat.com>
5039
5040 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5041 * command.h (error_no_arg): Update.
5042
5043 2014-06-26 Tom Tromey <tromey@redhat.com>
5044
5045 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5046 (do_show_command): Make "arg" const.
5047 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5048
5049 2014-06-26 Tom Tromey <tromey@redhat.com>
5050
5051 * record-full.c (record_full_get_bookmark): Make "args" const.
5052 (record_full_goto_bookmark): Make "raw_bookmark" const.
5053 * record.c (record_goto): New function.
5054 (cmd_record_goto): Use it. Now static.
5055 * record.h (record_goto): Declare.
5056 (cmd_record_goto): Remove declaration.
5057 * target-delegates.c: Rebuild.
5058 * target.h (struct target_ops) <to_get_bookmark,
5059 to_goto_bookmark>: Make parameter const.
5060
5061 2014-06-26 Tom Tromey <tromey@redhat.com>
5062
5063 * defs.h (generic_load): Update.
5064 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5065 * monitor.c (monitor_load): Make "args" const.
5066 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5067 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5068 const.
5069 (mips_load): Make "file" const.
5070 * remote-sim.c (gdbsim_load): Make "args" const.
5071 * remote.c (remote_load): Make "name" const.
5072 * symfile.c (generic_load): Make "args" const.
5073 * target-delegates.c: Rebuild.
5074 * target.c (target_load): Make "arg" const.
5075 (debug_to_load): Make "args" const.
5076 * target.h (struct target_ops) <to_load>: Make parameter const.
5077 (target_load): Update.
5078
5079 2014-06-26 Tom Tromey <tromey@redhat.com>
5080
5081 PR symtab/16902:
5082 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5083 (dwarf2_physname, read_partial_die)
5084 (guess_partial_die_structure_name, fixup_partial_die)
5085 (guess_full_die_structure_name, anonymous_struct_prefix)
5086 (dwarf2_name): Use per-BFD obstack.
5087
5088 2014-06-26 Yao Qi <yao@codesourcery.com>
5089
5090 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5091 dummyframe and this_id into inner block below.
5092
5093 2014-06-26 Yao Qi <yao@codesourcery.com>
5094
5095 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5096 with "signal_pass[0]" in the initialization of signal_pass.
5097
5098 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5099
5100 * record-btrace.c (record_btrace_generating_corefile)
5101 (record_btrace_prepare_to_generate_core)
5102 (record_btrace_done_generating_core): New.
5103 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5104 (record_btrace_store_registers, record_btrace_prepare_to_store):
5105 Forward request when generating a core file.
5106 (record_btrace_open): Set record_btrace_generating_corefile to zero.
5107 (init_record_btrace_ops): Set to_prepare_to_generate_core and
5108 to_done_generating_core.
5109
5110 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5111
5112 * target.h (target_ops) <to_prepare_to_generate_core>
5113 <to_done_generating_core>: New.
5114 (target_prepare_to_generate_core, target_done_generating_core): New.
5115 * target.c (target_prepare_to_generate_core)
5116 (target_done_generating_core): New.
5117 * target-delegates.c: Regenerate.
5118 * gcore.c: (write_gcore_file): Rename to ...
5119 (write_gcore_file_1): ...this.
5120 (write_gcore_file): Call target_prepare_to_generate_core
5121 and target_done_generating_core.
5122
5123 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
5124
5125 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5126 * gcore.c (write_gcore_file): Free memory returned from
5127 make_corefile_notes.
5128 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5129 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5130
5131 2014-06-24 Yao Qi <yao@codesourcery.com>
5132
5133 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5134 (arm_linux_init_abi): Set skip_trampoline_code with
5135 gdbarch_skip_trampoline_code instead of
5136 find_solib_trampoline_target.
5137
5138 2014-06-24 Yao Qi <yao@codesourcery.com>
5139
5140 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5141 arm_skip_bx_reg returns non-zero.
5142
5143 2014-06-24 Yao Qi <yao@codesourcery.com>
5144
5145 * arm-tdep.c (arm_skip_bx_reg): New function.
5146 (arm_skip_stub): Call arm_skip_bx_reg.
5147
5148 2014-06-23 Don Breazeal <donb@codesourcery.com>
5149
5150 * MAINTAINERS: Add myself as write-after-approval maintainer.
5151
5152 2014-06-23 Pedro Alves <palves@redhat.com>
5153
5154 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5155 DR_CONTROL before setting DR0..DR3.
5156 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5157 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5158 bits of DR_CONTROL related to the debug register slot being
5159 disabled. If all slots are vacant, clear local slowdown as well,
5160 and assert DR_CONTROL is 0.
5161
5162 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
5163
5164 * python/lib/gdb/command/xmethods.py
5165 (get_method_matchers_in_loci): Lookup xmethod matchers in the
5166 current progspace only if the string "progspace" matches LOCUS_RE.
5167
5168 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5169
5170 Fix --with-system-readline with readline-6.3 patch 5.
5171 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5172 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5173 types.
5174
5175 2014-06-20 Tom Tromey <tromey@redhat.com>
5176
5177 * dwarf2read.c (dw2_get_real_path): Use correct type in
5178 OBSTACK_CALLOC.
5179 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5180
5181 2014-06-20 Gary Benson <gbenson@redhat.com>
5182
5183 * common/gdb_thread_db.h: Moved to nat. All includes updated.
5184 * common/glibc_thread_db.h: Likewise.
5185 * common/i386-cpuid.h: Likewise.
5186 * common/i386-gcc-cpuid.h: Likewise.
5187 * common/linux-btrace.h: Likewise.
5188 * common/linux-osdata.h: Likewise.
5189 * common/linux-procfs.h: Likewise.
5190 * common/linux-ptrace.h: Likewise.
5191 * common/mips-linux-watch.h: Likewise.
5192 * common/linux-btrace.c: Moved to nat.
5193 * common/linux-osdata.c: Likewise.
5194 * common/linux-procfs.c: Likewise.
5195 * common/linux-ptrace.c: Likewise.
5196 * common/mips-linux-watch.c: Likewise.
5197 * nat/gdb_thread_db.h: Moved from common.
5198 * nat/glibc_thread_db.h: Likewise.
5199 * nat/i386-cpuid.h: Likewise.
5200 * nat/i386-gcc-cpuid.h: Likewise.
5201 * nat/linux-btrace.c: Likewise.
5202 * nat/linux-btrace.h: Likewise.
5203 * nat/linux-osdata.c: Likewise.
5204 * nat/linux-osdata.h: Likewise.
5205 * nat/linux-procfs.c: Likewise.
5206 * nat/linux-procfs.h: Likewise.
5207 * nat/linux-ptrace.c: Likewise.
5208 * nat/linux-ptrace.h: Likewise.
5209 * nat/mips-linux-watch.c: Likewise.
5210 * nat/mips-linux-watch.h: Likewise.
5211 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5212 (object file files): Reordered.
5213 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5214 of glibc_thread_db.h.
5215
5216 2014-06-20 Gary Benson <gbenson@redhat.com>
5217
5218 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5219 (i386_dr_low_type): Moved to nat/i386-dregs.h.
5220 (i386_dr_low): Likewise.
5221 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5222 (i386_dr_low_set_addr): Likewise.
5223 (i386_dr_low_get_addr): Likewise.
5224 (i386_dr_low_can_set_control): Likewise.
5225 (i386_dr_low_set_control): Likewise.
5226 (i386_dr_low_get_control): Likewise.
5227 (i386_dr_low_get_status): Likewise.
5228 (i386_get_debug_register_length): Likewise.
5229 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5230 (i386_dr_low): Likewise.
5231 * nat/i386-dregs.c (i386-low.h): Remove include.
5232 (i386-nat.h): Likewise.
5233 (nat/i386-dregs.h): New include.
5234 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5235 (i386_dr_low_set_addr): Likewise.
5236 (i386_dr_low_get_addr): Likewise.
5237 (i386_dr_low_can_set_control): Likewise.
5238 (i386_dr_low_set_control): Likewise.
5239 (i386_dr_low_get_control): Likewise.
5240 (i386_dr_low_get_status): Likewise.
5241 (i386_get_debug_register_length): Likewise.
5242 (debug_hw_points): Likewise.
5243
5244 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
5245
5246 * Makefile.in (SFILES): Add d-exp.y.
5247 (YYFILES): Add d-exp.c.
5248 (YYOBJ): Add d-exp.o.
5249 (local-maintainer-clean): Delete d-exp.c.
5250 * d-exp.y: New file.
5251 * d-lang.h (d_parse): New declaration.
5252 (d_error): New declaration.
5253 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5254 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5255 PREC_ORDER operators.
5256 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5257
5258 2014-06-19 Yao Qi <yao@codesourcery.com>
5259
5260 * gdbthread.h (any_running): Remove the declaration.
5261 * thread.c (any_running): Remove.
5262
5263 2014-06-19 Yao Qi <yao@codesourcery.com>
5264
5265 * gdbthread.h (struct thread_info) <state>: Change its type to
5266 'enum thread_state'. Update comments.
5267
5268 2014-06-19 Pedro Alves <palves@redhat.com>
5269
5270 * gdbthread.h (ALL_THREADS): Delete.
5271 (ALL_NON_EXITED_THREADS): New macro.
5272 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5273 instead of ALL_THREADS.
5274 * infrun.c (find_thread_needs_step_over)
5275 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5276 instead of ALL_THREADS.
5277 * record-btrace.c (record_btrace_open)
5278 (record_btrace_stop_recording, record_btrace_close)
5279 (record_btrace_is_replaying, record_btrace_resume)
5280 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5281 * remote.c (append_pending_thread_resumptions): Likewise.
5282 * thread.c (thread_apply_all_command): Likewise.
5283
5284 2014-06-19 Gary Benson <gbenson@redhat.com>
5285
5286 * i386-nat.c (i386_stopped_by_watchpoint):
5287 Use i386_dr_stopped_by_watchpoint.
5288 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5289 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5290
5291 2014-06-19 Gary Benson <gbenson@redhat.com>
5292
5293 * nat/i386-dregs.c: New file.
5294 * Makefile.in (i386-dregs.o): New rule.
5295 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5296 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5297 * config/i386/darwin.mh (NATDEPFILES): Likewise.
5298 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5299 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5300 * config/i386/go32.mh (NATDEPFILES): Likewise.
5301 * config/i386/linux.mh (NATDEPFILES): Likewise.
5302 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5303 * config/i386/mingw.mh (NATDEPFILES): Likewise.
5304 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5305 * i386-nat.h (debug_hw_points): New declaration.
5306 * i386-nat.c (breakpoint.h): Remove include.
5307 (command.h): Likewise.
5308 (target.h): Likewise.
5309 (gdb_assert.h): Likewise.
5310 (debug_hw_points): Made nonstatic.
5311 (debug_printf): Now in i386-dregs.c.
5312 (TARGET_HAS_DR_LEN_8): Likewise.
5313 (DR_CONTROL_SHIFT): Likewise.
5314 (DR_CONTROL_SIZE): Likewise.
5315 (DR_RW_EXECUTE): Likewise.
5316 (DR_RW_WRITE): Likewise.
5317 (DR_RW_READ): Likewise.
5318 (DR_RW_IORW): Likewise.
5319 (DR_LEN_1): Likewise.
5320 (DR_LEN_2): Likewise.
5321 (DR_LEN_4): Likewise.
5322 (DR_LEN_8): Likewise.
5323 (DR_LOCAL_ENABLE_SHIFT): Likewise.
5324 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5325 (DR_ENABLE_SIZE): Likewise.
5326 (DR_LOCAL_SLOWDOWN): Likewise.
5327 (DR_GLOBAL_SLOWDOWN): Likewise.
5328 (DR_CONTROL_RESERVED): Likewise.
5329 (I386_DR_CONTROL_MASK): Likewise.
5330 (I386_DR_VACANT): Likewise.
5331 (I386_DR_LOCAL_ENABLE): Likewise.
5332 (I386_DR_GLOBAL_ENABLE): Likewise.
5333 (I386_DR_DISABLE): Likewise.
5334 (I386_DR_SET_RW_LEN): Likewise.
5335 (I386_DR_GET_RW_LEN): Likewise.
5336 (I386_DR_WATCH_HIT): Likewise.
5337 (i386_wp_op_t): Likewise.
5338 (i386_show_dr): Likewise.
5339 (i386_length_and_rw_bits): Likewise.
5340 (i386_insert_aligned_watchpoint): Likewise.
5341 (i386_remove_aligned_watchpoint): Likewise.
5342 (i386_handle_nonaligned_watchpoint): Likewise.
5343 (i386_update_inferior_debug_regs): Likewise.
5344 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5345 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5346 (i386_region_ok_for_watchpoint):
5347 Use i386_dr_region_ok_for_watchpoint.
5348 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5349
5350 2014-06-19 Gary Benson <gbenson@redhat.com>
5351
5352 * i386-nat.c (i386_insert_hw_breakpoint): Use
5353 i386_insert_watchpoint.
5354 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5355
5356 2014-06-19 Gary Benson <gbenson@redhat.com>
5357
5358 * i386-nat.c (i386_dr_show): Renamed to
5359 i386_show_dr and made static. All uses updated.
5360 (i386_dr_length_and_rw_bits): Renamed to
5361 i386_length_and_rw_bits and made static.
5362 All uses updated.
5363 (i386_dr_insert_aligned_watchpoint): Renamed to
5364 i386_insert_aligned_watchpoint and made static.
5365 All uses updated.
5366 (i386_dr_remove_aligned_watchpoint): Renamed to
5367 i386_remove_aligned_watchpoint and made static.
5368 All uses updated.
5369 (i386_dr_update_inferior_debug_regs): Renamed to
5370 i386_update_inferior_debug_regs and made static.
5371 All uses updated.
5372 * nat/i386-dregs.h (i386_dr_show): Removed.
5373 (i386_dr_length_and_rw_bits): Likewise.
5374 (i386_dr_insert_aligned_watchpoint): Likewise.
5375 (i386_dr_remove_aligned_watchpoint): Likewise.
5376 (i386_dr_update_inferior_debug_regs): Likewise.
5377
5378 2014-06-19 Gary Benson <gbenson@redhat.com>
5379
5380 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5381 * configure: Regenerate.
5382 * config.in: Likewise.
5383 * main.c (signal.h): New include.
5384 (setup_alternate_signal_stack): New function.
5385 (captured_main): Call the above.
5386 * cp-support.c (signal.h): New include.
5387 (catch_demangler_crashes): New flag.
5388 (SIGJMP_BUF): New define.
5389 (SIGSETJMP): Likewise.
5390 (SIGLONGJMP): Likewise.
5391 (gdb_demangle_jmp_buf): New static global.
5392 (gdb_demangle_attempt_core_dump): Likewise.
5393 (gdb_demangle_signal_handler): New function.
5394 (gdb_demangle): If catch_demangler_crashes is set, install the
5395 above signal handler before calling bfd_demangle, and restore
5396 the original signal handler afterwards. Display the offending
5397 symbol and call demangler_warning the first time a segmentation
5398 fault is caught.
5399 (_initialize_cp_support): New maint set/show command.
5400
5401 2014-06-19 Gary Benson <gbenson@redhat.com>
5402
5403 * utils.h (resource_limit_kind): New enum.
5404 (can_dump_core): New declaration.
5405 (warn_cant_dump_core): Likewise.
5406 (dump_core): Likewise.
5407 * utils.c (dump_core): Made nonstatic. Added new
5408 parameter "limit_kind".
5409 (can_dump_core): Made nonstatic. Moved printing code to...
5410 (warn_cant_dump_core): New function.
5411 (can_dump_core_warn): Likewise.
5412 (internal_vproblem): Replace calls to can_dump_core with
5413 calls to can_dump_core_warn. Supply new argument to each.
5414
5415 2014-06-19 Gary Benson <gbenson@redhat.com>
5416
5417 * utils.h (demangler_vwarning): New declaration.
5418 (demangler_warning): Likewise.
5419 * utils.c (struct internal_problem)
5420 <user_settable_should_quit>: New field.
5421 <user_settable_should_dump_core>: Likewise
5422 (internal_error_problem): Add values for above new fields.
5423 (internal_warning_problem): Likewise.
5424 (demangler_warning_problem): New static global.
5425 (demangler_vwarning): New function.
5426 (demangler_warning): Likewise.
5427 (add_internal_problem_command): Selectively add commands.
5428 (_initialize_utils): New internal problem command.
5429 * maint.c (maintenance_demangler_warning): New function.
5430 (_initialize_maint_cmds): New command.
5431
5432 2014-06-18 Tom Tromey <tromey@redhat.com>
5433
5434 * f-valprint.c (info_common_command_for_block): Update.
5435 * symtab.h (struct general_symbol_info) <common_block>: Now
5436 const.
5437
5438 2014-06-18 Tom Tromey <tromey@redhat.com>
5439
5440 * symtab.h (struct symtab) <blockvector>: Now const.
5441 * ada-lang.c (ada_add_global_exceptions): Update.
5442 * buildsym.c (augment_type_symtab): Update.
5443 * dwarf2read.c (dw2_lookup_symbol): Update.
5444 * jit.c (finalize_symtab): Update.
5445 * jv-lang.c (add_class_symtab_symbol): Update.
5446 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5447 Update.
5448 * objfiles.c (objfile_relocate1): Update.
5449 * psymtab.c (lookup_symbol_aux_psymtabs)
5450 (maintenance_check_psymtabs): Update.
5451 * python/py-symtab.c (stpy_global_block, stpy_static_block):
5452 Update.
5453 * spu-tdep.c (spu_catch_start): Update.
5454 * symmisc.c (dump_symtab_1): Update.
5455 * symtab.c (lookup_global_symbol_from_objfile)
5456 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5457 (basic_lookup_transparent_type_quick)
5458 (basic_lookup_transparent_type, find_pc_sect_symtab)
5459 (find_pc_sect_line, search_symbols): Update.
5460 * block.c (find_block_in_blockvector): Make "bl" const.
5461 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5462 const.
5463 (blockvector_contains_pc): Make "bv" const.
5464 (block_for_pc_sect): Update.
5465 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5466 (blockvector_contains_pc): Update.
5467 * breakpoint.c (resolve_sal_pc): Update.
5468 * inline-frame.c (block_starting_point_at): Update.
5469
5470 2014-06-18 Tom Tromey <tromey@redhat.com>
5471
5472 * completer.c (complete_line): Make "line_buffer" const.
5473 * completer.h (complete_line): Update.
5474
5475 2014-06-18 Tom Tromey <tromey@redhat.com>
5476
5477 * symtab.c (add_macro_name): Remove unneeded cast.
5478
5479 2014-06-18 Tom Tromey <tromey@redhat.com>
5480
5481 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5482 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5483
5484 2014-06-18 Tom Tromey <tromey@redhat.com>
5485
5486 * probe.c (info_probes_for_ops): Make "arg" const.
5487 * probe.h (info_probes_for_ops): Update.
5488
5489 2014-06-18 Tom Tromey <tromey@redhat.com>
5490
5491 * varobj.c (varobj_create): Update.
5492 * valops.c (value_of_this): Update.
5493 * tracepoint.c (add_local_symbols, scope_info): Update.
5494 * symtab.h (struct general_symbol_info) <block>: Now const.
5495 * symtab.c (skip_prologue_sal)
5496 (default_make_symbol_completion_list_break_on)
5497 (skip_prologue_using_sal): Update.
5498 * stack.h (iterate_over_block_locals)
5499 (iterate_over_block_local_vars): Update.
5500 * stack.c (print_frame_args): Update.
5501 (iterate_over_block_locals, iterate_over_block_local_vars): Make
5502 parameter const.
5503 (get_selected_block): Make return type const.
5504 * python/py-frame.c (frapy_block): Update.
5505 * python/py-block.c (gdbpy_block_for_pc): Update.
5506 * p-exp.y (%union) <bval>: Now const.
5507 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5508 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5509 * m2-exp.y (%union) <bval>: Now const.
5510 * linespec.c (get_current_search_block): Make return type const.
5511 (create_sals_line_offset, find_label_symbols): Update.
5512 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5513 Update.
5514 (block_starting_point_at): Make "block" const.
5515 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5516 (check_exception_resume): Update.
5517 * guile/scm-frame.c (gdbscm_frame_block): Update.
5518 * guile/scm-block.c (gdbscm_lookup_block): Update.
5519 * frame.h (get_frame_block): Update.
5520 (get_selected_block): Make return type const.
5521 * frame.c (frame_id_inner): Update.
5522 * f-valprint.c (info_common_command_for_block)
5523 (info_common_command): Update.
5524 * dwarf2loc.c (dwarf2_find_location_expression)
5525 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5526 (locexpr_describe_location_piece): Update.
5527 * c-exp.y (%union) <bval>: Now const.
5528 * breakpoint.c (resolve_sal_pc): Update.
5529 * blockframe.c (get_frame_block):Make return type const.
5530 (get_pc_function_start, get_frame_function, find_pc_sect_function)
5531 (block_innermost_frame): Update.
5532 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5533 (block_for_pc, block_for_pc_sect): Update.
5534 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
5535 'pblock' const.
5536 (block_for_pc_sect, block_for_pc): Make return type const.
5537 * ax-gdb.c (gen_expr): Update.
5538 * alpha-mdebug-tdep.c (find_proc_desc): Update.
5539 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
5540 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
5541 (ada_read_var_value): Update.
5542 * ada-exp.y (struct name_info) <block>: Now const.
5543 (%union): Likewise.
5544 (block_lookup): Constify.
5545
5546 2014-06-18 Gary Benson <gbenson@redhat.com>
5547
5548 * nat/i386-dregs.h: New file.
5549 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
5550 * i386-nat.h (i386-dregs.h): New include.
5551 (DR_FIRSTADDR): Now in i386-dregs.h.
5552 (DR_LASTADDR): Likewise.
5553 (DR_NADDR): Likewise.
5554 (DR_STATUS): Likewise.
5555 (DR_CONTROL): Likewise.
5556 (i386_debug_reg_state): Likewise.
5557 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
5558
5559 2014-06-18 Don Breazeal <donb@codesourcery.com>
5560
5561 * breakpoint.c (set_longjmp_breakpoint): Call
5562 momentary_breakpoint_from_master with additional argument.
5563 (set_longjmp_breakpoint_for_call_dummy): Call
5564 momentary_breakpoint_from_master with additional argument.
5565 (set_std_terminate_breakpoint): Call
5566 momentary_breakpoint_from_master with additional argument.
5567 (momentary_breakpoint_from_master): Add argument to function
5568 definition and use it to initialize structure member flag.
5569 (clone_momentary_breakpoint): Call
5570 momentary_breakpoint_from_master with additional argument.
5571 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
5572 member flags set in momentary_breakpoint_from_master.
5573
5574 2014-06-18 Gary Benson <gbenson@redhat.com>
5575
5576 * i386-nat.c (i386_show_dr): Renamed to
5577 i386_dr_show and made nonstatic. All uses updated.
5578 (i386_length_and_rw_bits): Renamed to
5579 i386_dr_length_and_rw_bits and made nonstatic.
5580 All uses updated.
5581 (i386_insert_aligned_watchpoint): Renamed to
5582 i386_dr_insert_aligned_watchpoint and made nonstatic.
5583 All uses updated.
5584 (i386_remove_aligned_watchpoint): Renamed to
5585 i386_dr_remove_aligned_watchpoint and made nonstatic.
5586 All uses updated.
5587 (i386_update_inferior_debug_regs): Renamed to
5588 i386_dr_update_inferior_debug_regs and made nonstatic.
5589 All uses updated.
5590
5591 2014-06-18 Gary Benson <gbenson@redhat.com>
5592
5593 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
5594 (i386_dr_low_can_set_control): Likewise.
5595 (i386_dr_low_set_addr): Likewise.
5596 (i386_dr_low_set_control): Likewise.
5597 (i386_dr_low_get_addr): Likewise.
5598 (i386_dr_low_get_status): Likewise.
5599 (i386_dr_low_get_control): Likewise.
5600 (i386_insert_aligned_watchpoint): Use new macros.
5601 (i386_update_inferior_debug_regs): Likewise.
5602 (i386_stopped_data_address): Likewise.
5603
5604 2014-06-18 Gary Benson <gbenson@redhat.com>
5605
5606 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
5607 New parameter. All uses updated.
5608
5609 2014-06-18 Gary Benson <gbenson@redhat.com>
5610
5611 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
5612 All uses updated.
5613
5614 2014-06-18 Gary Benson <gbenson@redhat.com>
5615
5616 * i386-nat.c (debug_printf): New macro.
5617 (i386_get_debug_register_length): Likewise.
5618 (TARGET_HAS_DR_LEN_8): Use above macro.
5619 (i386_show_dr): Use debug_printf instead of puts_unfiltered
5620 and printf_unfiltered. Use phex to format values.
5621
5622 2014-06-18 Gary Benson <gbenson@redhat.com>
5623
5624 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
5625 Make const.
5626
5627 2014-06-18 Gary Benson <gbenson@redhat.com>
5628
5629 * i386-nat.c: Comment changes.
5630
5631 2014-06-18 Gary Benson <gbenson@redhat.com>
5632
5633 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
5634
5635 2014-06-18 Gary Benson <gbenson@redhat.com>
5636
5637 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
5638 (i386_insert_aligned_watchpoint): Likewise.
5639 (i386_remove_aligned_watchpoint): Likewise.
5640 (i386_handle_nonaligned_watchpoint): Likewise.
5641
5642 2014-06-18 Gary Benson <gbenson@redhat.com>
5643
5644 * i386-nat.c: Whitespace changes.
5645
5646 2014-06-17 Samuel Bronson <naesten@gmail.com>
5647
5648 * MAINTAINERS: Update Roland McGrath's email address.
5649 Thanks to Sergio Durigan Junior for pointing out that he left
5650 Red Hat a while ago, and giving me a current address.
5651
5652 2014-06-17 Tom Tromey <tromey@redhat.com>
5653
5654 * utils.h (savestring): Remove declaration.
5655
5656 2014-06-17 Tom Tromey <tromey@redhat.com>
5657
5658 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
5659
5660 2014-06-16 Keith Seitz <keiths@redhat.com>
5661
5662 PR mi/15863
5663 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
5664 to update the varobj if inferior_ptid is null_ptid.
5665
5666 2014-06-16 Tom Tromey <tromey@redhat.com>
5667
5668 * target.h (struct target_ops) <to_info_proc>: Make parameter
5669 const.
5670 (target_info_proc): Update.
5671 * target.c (target_info_proc): Make "args" const.
5672 * procfs.c (procfs_info_proc): Update.
5673 * linux-tdep.c (linux_info_proc): Update.
5674 (linux_core_info_proc_mappings): Make "args" const.
5675 (linux_core_info_proc): Update.
5676 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
5677 * gdbarch.c: Rebuild.
5678 * gdbarch.h: Rebuild.
5679 * corelow.c (core_info_proc): Update.
5680
5681 2014-06-16 Tom Tromey <tromey@redhat.com>
5682
5683 * target.h (struct target_ops) <to_disconnect>: Make parameter
5684 const.
5685 (target_disconnect): Update.
5686 * target.c (target_disconnect): Make "args" const.
5687 * target-delegates.c: Rebuild.
5688 * remote.c (remote_disconnect): Update.
5689 * record.h (record_disconnect): Update.
5690 * record.c (record_disconnect): Update.
5691 * inf-child.c (inf_child_disconnect): Update.
5692
5693 2014-06-16 Tom Tromey <tromey@redhat.com>
5694
5695 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
5696 * target.c (debug_to_rcmd, default_rcmd): Update.
5697 * target-delegates.c: Rebuild.
5698 * remote.c (remote_rcmd): Update.
5699 * monitor.c (monitor_rcmd): Update.
5700
5701 2014-06-16 Pedro Alves <palves@redhat.com>
5702
5703 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
5704 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
5705 have OBJF_SHARED set.
5706 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
5707 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
5708 instead of OBJF_USERLOADED.
5709 * objfiles.h (OBJF_SHARED): Update comment.
5710 (userloaded_objfile_contains_address_p): Rename to ...
5711 (shared_objfile_contains_address_p): ... this, and update
5712 comments.
5713 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
5714 new objfile.
5715 (remove_symbol_file_command): Skip objfiles that don't have
5716 OBJF_SHARED set.
5717
5718 2014-06-16 Tom Tromey <tromey@redhat.com>
5719
5720 * minsyms.h (prim_record_minimal_symbol)
5721 (prim_record_minimal_symbol_and_info): Update comments.
5722
5723 2014-06-14 Eli Zaretskii <eliz@gnu.org>
5724
5725 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
5726 or --without-guile, according to how GDB was built.
5727
5728 2014-06-13 Tom Tromey <tromey@redhat.com>
5729
5730 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
5731 to help_list.
5732 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
5733 to help_list.
5734 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
5735 help_list.
5736 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
5737 help_list.Pass all_commands, not -1, to help_list.
5738 * cli/cli-dump.c (dump_command, append_command)
5739 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
5740 (binary_dump_command, binary_append_command): Pass all_commands,
5741 not -1, to help_list.
5742 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
5743 -1, to help_list.
5744 * valprint.c (set_print, set_print_raw): Pass all_commands, not
5745 -1, to help_list.
5746 * typeprint.c (set_print_type): Pass all_commands, not -1, to
5747 help_list.
5748 * top.c (set_history): Pass all_commands, not -1, to help_list.
5749 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
5750 all_commands, not -1, to help_list.
5751 * symfile.c (overlay_command): Pass all_commands, not -1, to
5752 help_list.
5753 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
5754 help_list.
5755 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
5756 help_list.
5757 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
5758 -1, to help_list.
5759 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
5760 not -1, to help_list.
5761 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
5762 not -1, to help_list.
5763 * maint.c (maintenance_command, maintenance_info_command)
5764 (maintenance_print_command, maintenance_set_cmd): Pass
5765 all_commands, not -1, to help_list.
5766 * macrocmd.c (macro_command): Pass all_commands, not -1, to
5767 help_list.
5768 * language.c (set_check): Pass all_commands, not -1, to help_list.
5769 * infcmd.c (unset_command): Pass all_commands, not -1, to
5770 help_list.
5771 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
5772 help_list.
5773 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
5774 help_list.
5775 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
5776 help_list.
5777 * breakpoint.c (save_command): Pass all_commands, not -1, to
5778 help_list.
5779 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
5780 all_commands, not -1, to help_list.
5781
5782 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
5783
5784 * regcache.c (struct register_to_invalidate): New structure.
5785 (do_register_invalidate, make_cleanup_regcache_invalidate): New
5786 functions.
5787 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
5788
5789 2014-06-12 Yao Qi <yao@codesourcery.com>
5790
5791 * varobj.c (varobj_get_num_children): Call
5792 varobj_is_dynamic_p.
5793 (varobj_list_children): Likewise.
5794 (varobj_update): Likewise. Update comments.
5795
5796 2014-06-12 Yao Qi <yao@codesourcery.com>
5797
5798 * varobj.c (varobj_pretty_printed_p): Rename to ...
5799 (varobj_is_dynamic_p): ... this. New function.
5800 * varobj.h (varobj_pretty_printed_p): Remove declaration.
5801 (varobj_is_dynamic_p): Declare.
5802 * mi/mi-cmd-var.c (print_varobj): All callers updated.
5803 (mi_print_value_p, varobj_update_one): Likewise.
5804
5805 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5806 Yao Qi <yao@codesourcery.com>
5807
5808 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
5809 (varobj_get_iterator): Wrap up code for pretty-printer by
5810 "#if HAVE_PYTHON" and "#endif".
5811 (update_dynamic_varobj_children): Likewise.
5812
5813 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5814 Yao Qi <yao@codesourcery.com>
5815
5816 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
5817 gdb_python_initialized is false. Move some code from varobj.c.
5818 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
5819 * varobj.c: Move "varobj-iter.h" inclusion earlier.
5820 (struct varobj_item): Moved to varobj-iter.h".
5821 (varobj_clear_saved_item): New function.
5822 (update_dynamic_varobj_children): Move python-related code to
5823 py-varobj.c.
5824 (free_variable): Call varobj_clear_saved_item and
5825 varobj_iter_delete.
5826
5827 2014-06-12 Pedro Alves <pedro@codesourcery.com>
5828 Yao Qi <yao@codesourcery.com>
5829
5830 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
5831 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
5832 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
5833 (py-varobj.o): New rule.
5834 * python/py-varobj.c: New file.
5835 * python/python-internal.h (py_varobj_get_iterator): Declare.
5836 * varobj-iter.h: New file.
5837 * varobj.c: Include "varobj-iter.h"
5838 (struct varobj) <child_iter>: Change its type from "PyObject *"
5839 to "struct varobj_iter *".
5840 <saved_item>: Likewise.
5841 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
5842 [HAVE_PYTHON] (varobj_get_iterator): New function.
5843 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
5844 python-specific code to python/py-varobj.c.
5845 (install_visualizer): Call varobj_iter_delete instead of
5846 Py_XDECREF.
5847 * varobj.h (varobj_ensure_python_env): Declare.
5848
5849 2014-06-12 Yao Qi <yao@codesourcery.com>
5850
5851 * varobj.c (struct varobj_item): New structure.
5852 (create_child_with_value): Update declaration.
5853 (varobj_add_child): Replace arguments 'name' and 'value' with
5854 'item'. All callers updated.
5855 (install_dynamic_child): Likewise.
5856 (update_dynamic_varobj_children): Likewise.
5857 (varobj_add_child): Likewise.
5858 (create_child_with_value): Likewise.
5859
5860 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5861
5862 * NEWS: Create a new section for the next release branch.
5863 Rename the section of the current branch, now that it has
5864 been cut.
5865
5866 2014-06-11 Joel Brobecker <brobecker@adacore.com>
5867
5868 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
5869 * version.in: Bump version to 7.8.50.DATE-cvs.
5870
5871 2014-06-11 Pedro Alves <palves@redhat.com>
5872
5873 PR remote/17028
5874 * ser-mingw.c (net_windows_socket_check_pending): New function.
5875 (net_windows_select_thread): Ignore spurious wakeups. Use
5876 net_windows_socket_check_pending.
5877 (net_windows_wait_handle): Check for pending events with
5878 ioctlsocket, through net_windows_socket_check_pending, instead of
5879 checking the socket's event.
5880
5881 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
5882
5883 * python/python-internal.h (gdb_PyObject_GetAttrString)
5884 (gdb_PyObject_HasAttrString): New inline function definitions.
5885 * py-value.c (get_field_flag): Remove the now unnecessary cast to
5886 char * of the second argument to PyObject_GetAttrString.
5887
5888 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5889
5890 * serial.c (serial_write): Fix index of character to be printed
5891 in call to serial_logchar when serial debug traces are enabled.
5892
5893 2014-06-10 Joel Brobecker <brobecker@adacore.com>
5894
5895 * gdbtypes (resolve_dynamic_range): Add function description.
5896
5897 2014-06-09 Pedro Alves <palves@redhat.com>
5898
5899 * linux-nat.c (linux_child_follow_fork): Initialize status with
5900 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
5901 inner block. Only pass the signal to PTRACE_DETACH if in pass
5902 state.
5903
5904 2014-06-09 Gary Benson <gbenson@redhat.com>
5905
5906 * common/signals.c (gdb_signal_from_host): Reorder to separate
5907 the always-available ANSI-standard signals from the signals that
5908 require checking.
5909 (do_gdb_signal_to_host): Likewise.
5910 * proc-events.c (signal_table): Likewise.
5911
5912 2014-06-08 Hui Zhu <hui@codesourcery.com>
5913
5914 * common/linux-ptrace.c (linux_disable_event_reporting): New
5915 function.
5916 * common/linux-ptrace.h (linux_disable_event_reporting): New
5917 declaration.
5918 * linux-nat.c (linux_child_follow_fork): Do a single step before
5919 detach.
5920
5921 2014-06-07 Keith Seitz <keiths@redhat.com>
5922
5923 Revert:
5924 PR c++/16253
5925 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5926 from symbol_matches_domain in symtab.c. All local callers
5927 of symbol_matches_domain updated.
5928 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5929 search STRUCT_DOMAIN.
5930 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5931 independently. standard_lookup will do that automatically.
5932 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5933 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5934 (cp_lookup_symbol_in_namespace): Likewise.
5935 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5936 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5937 may return a STRUCT_DOMAIN match.
5938 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5939 * cp-support.c: Include language.h.
5940 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5941 VAR_DOMAIN.
5942 * psymtab.c (match_partial_symbol): Compare the requested
5943 domain with the symbol's domain directly.
5944 (lookup_partial_symbol): Likewise.
5945 * symtab.c (lookup_symbol_in_language): Explain when/why
5946 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5947 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5948 appropriate languages.
5949 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5950 and moved to ada-lang.c
5951 (lookup_block_symbol): Explain that this function only returns
5952 symbol matching the requested DOMAIN.
5953 Compare the requested domain with the symbol's domain directly.
5954 (iterate_over_symbols): Compare the requested domain with the
5955 symbol's domain directly.
5956 * symtab.h (symbol_matches_domain): Remove.
5957
5958 2014-06-06 Doug Evans <xdje42@gmail.com>
5959
5960 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
5961 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
5962 (gdbscm_guile_version_is_at_least): Declare.
5963 (gdbscm_scm_string_to_int): Declare.
5964 * guile/guile.c (gdbscm_guile_major_version): New global.
5965 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
5966 (guile_datadir): New static global.
5967 (gdbscm_guile_data_directory): New function.
5968 (initialize_scheme_side): Update.
5969 (misc_guile_functions): Add guile-data-directory.
5970 (initialize_gdb_module): Fetch guile version number.
5971 * guile/lib/gdb.scm: Remove call to add-to-load-path.
5972 * guile/lib/gdb/init.scm (%initialize!): Ditto.
5973 * guile/lib/gdb/boot.scm: Use guile-data-directory.
5974 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
5975 comments.
5976 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
5977 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
5978 * guile/scm-value.c (gdbscm_value_to_string): Only call
5979 scm_port_conversion_strategy if Guile version >= 2.0.6.
5980
5981 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
5982
5983 * main.c (print_gdb_help): Add -q and --silent.
5984
5985 2014-06-06 Gary Benson <gbenson@redhat.com>
5986
5987 * common/signals.c: Remove preprocessor conditionals for
5988 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
5989 SIGSEGV and SIGTERM.
5990 * proc-events.c: Likewise.
5991
5992 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
5993
5994 * symfile.c (symfile_free_objfile): Remove restriction to
5995 OBJF_USERLOADED.
5996 * symfile-mem.c (symbol_file_add_from_memory): Call
5997 add_target_sections_of_objfile.
5998
5999 2014-06-05 Ludovic Courtès <ludo@gnu.org>
6000
6001 * guile/scm-value.c (gdbscm_history_append_x): Use
6002 'vlscm_get_value_smob_arg_unsafe' instead of
6003 'vlscm_scm_to_value'.
6004
6005 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
6006
6007 PR mi/15806
6008 * utils.c (printchar): Don't escape at all if quoter is NUL.
6009 Update function documentation to clarify effect of parameter
6010 QUOTER.
6011 * remote.c (escape_buffer): Pass '\\' as the quoter to
6012 fputstrn_unfiltered.
6013 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6014 generate the output.
6015 (mi_solib_unloaded): Same.
6016
6017 2014-06-05 Joel Brobecker <brobecker@adacore.com>
6018
6019 * development.sh: Delete.
6020 * Makefile.in (config.status): Adjust dependency on development.sh.
6021 * configure.ac: Adjust development.sh source call.
6022 * configure: Regenerate.
6023
6024 2014-06-04 Doug Evans <xdje42@gmail.com>
6025
6026 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6027 is_scheme_bkpt, spec.
6028 (bpscm_make_breakpoint_smob): Initialize new members.
6029 (gdbscm_create_breakpoint_x): Split into two ...
6030 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6031 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6032 (scheme_function breakpoint_functions): Update.
6033 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6034 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6035 register-breakpoint!.
6036
6037 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
6038
6039 PR server/17023
6040 * mem-break.c (z_type_supported): Return zero if
6041 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6042
6043 2014-06-04 Tom Tromey <tromey@redhat.com>
6044
6045 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6046 value_from_contents_and_address_unresolved.
6047 (ada_template_to_fixed_record_type_1): Likewise.
6048 (ada_which_variant_applies): Likewise.
6049 * value.h (value_from_contents_and_address_unresolved): Declare.
6050 * value.c (value_from_contents_and_address_unresolved): New
6051 function.
6052 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6053 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6054 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6055
6056 2014-06-04 Tom Tromey <tromey@redhat.com>
6057
6058 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6059
6060 2014-06-04 Tom Tromey <tromey@redhat.com>
6061
6062 * procfs.c (procfs_attach): Make "args" const.
6063 * windows-nat.c (windows_attach): Make "args" const.
6064 * nto-procfs.c (procfs_attach): Make "args" const.
6065 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6066 * go32-nat.c (go32_attach): Make "args" const.
6067 * gnu-nat.c (gnu_attach): Make "args" const.
6068 * darwin-nat.c (darwin_attach): Make "args" const.
6069 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6070 * linux-nat.c (linux_nat_attach): Make "args" const.
6071 * remote.c (extended_remote_attach_1, extended_remote_attach):
6072 Make "args" const.
6073 * target.h (struct target_ops) <to_attach>: Make "args" const.
6074 (find_default_attach): Likewise.
6075 * utils.c (parse_pid_to_attach): Make "args" const.
6076 * utils.h (parse_pid_to_attach): Update.
6077
6078 2014-06-04 Tom Tromey <tromey@redhat.com>
6079
6080 * target-delegates.c: Rebuild.
6081 * target.c (default_thread_address_space): New function.
6082 (target_thread_address_space): Simplify.
6083 * target.h (struct target_ops) <to_thread_address_space>: Add
6084 TARGET_DEFAULT_FUNC.
6085
6086 2014-06-04 Doug Evans <xdje42@gmail.com>
6087
6088 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6089
6090 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
6091
6092 * record-btrace.c: Include event-loop.h and inf-loop.h.
6093 (record_btrace_resume_exec_dir)
6094 (record_btrace_async_inferior_event_handler)
6095 (record_btrace_handle_async_inferior_event): New.
6096 (record_btrace_open): Create async event handler.
6097 (record_btrace_close): Delete async event handler.
6098 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6099 Mark async event handler.
6100 (record_btrace_execution_direction): New.
6101 (init_record_btrace_ops): Initialize to_execution_direction.
6102
6103 2014-06-03 Doug Evans <xdje42@gmail.com>
6104
6105 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6106 (gdbscm_make_parameter): Ditto.
6107
6108 2014-06-03 Doug Evans <dje@google.com>
6109
6110 * exec.c (exec_close_1): Call clear_section_table instead of
6111 resize_section_table.
6112 (clear_section_table): New function.
6113 (resize_section_table): Make static. Rename arg num_added to
6114 adjustment.
6115 * exec.h (clear_section_table): Declare.
6116 (resize_section_table): Delete.
6117 * progspace.c (release_program_space): Call clear_section_table
6118 instead of resize_section_table.
6119
6120 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6121
6122 * NEWS (Python Scripting): Add entry about the new xmethods
6123 feature.
6124
6125 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6126
6127 * python/py-xmethods.c: New file.
6128 * python/py-objfile.c (objfile_object): New field 'xmethods'.
6129 (objfpy_dealloc): XDECREF on the new xmethods field.
6130 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6131 field.
6132 (objfpy_get_xmethods): New function.
6133 (objfile_getset): New entry 'xmethods'.
6134 * python/py-progspace.c (pspace_object): New field 'xmethods'.
6135 (pspy_dealloc): XDECREF on the new xmethods field.
6136 (pspy_new, pspace_to_pspace_object): Initialize xmethods
6137 field.
6138 (pspy_get_xmethods): New function.
6139 (pspace_getset): New entry 'xmethods'.
6140 * python/python-internal.h: Add declarations for new functions.
6141 * python/python.c (_initialize_python): Invoke
6142 gdbpy_initialize_xmethods.
6143 * python/lib/gdb/__init__.py (xmethods): New
6144 attribute.
6145 * python/lib/gdb/xmethod.py: New file.
6146 * python/lib/gdb/command/xmethods.py: New file.
6147
6148 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6149
6150 * eval.c (evaluate_subexp_standard): Call the xmethod if the
6151 best match method returned by find_overload_match is an xmethod.
6152 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6153 the best matching operator returned by find_overload_match is an
6154 xmethod.
6155 * valops.c: #include "extension.h".
6156 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6157 Return void. The list of matching source methods is returned in
6158 "fn_list" and a vector of matching debug method workers is
6159 returned in "xm_worker_vec". Update all callers.
6160 (value_find_oload_method_list): Likewise.
6161 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
6162 non-NULL, then the index of the best matching method in this
6163 vector is returned. Update all callers.
6164 (find_overload_match): Include xmethods while performing overload
6165 resolution.
6166
6167 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
6168
6169 * defs.h (enum lval_type): New enumerator "lval_xcallable".
6170 * extension-priv.h (struct extension_language_ops): Add the
6171 xmethod interface.
6172 * extension.c (new_xmethod_worker, clone_xmethod_worker,
6173 get_matching_xmethod_workers, get_xmethod_argtypes,
6174 invoke_xmethod, free_xmethod_worker,
6175 free_xmethod_worker_vec): New functions.
6176 * extension.h: #include "common/vec.h".
6177 New function declarations.
6178 (struct xmethod_worker): New struct.
6179 (VEC (xmethod_worker_ptr)): New vector type.
6180 (xmethod_worker_ptr): New typedef.
6181 (xmethod_worker_vec): Likewise.
6182 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6183 builtin_type.
6184 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6185 (struct builtin_type): New field "xmethod".
6186 * valarith.c (value_ptradd): Assert that the value argument is not
6187 lval_xcallable.
6188 * valops.c (value_must_coerce_to_target): Return 0 for
6189 lval_xcallable values.
6190 * value.c (struct value): New field XM_WORKER in the field
6191 LOCATION.
6192 (value_address, value_raw_address): Return 0 for lval_xcallable
6193 values.
6194 (set_value_address): Assert that the value is not an
6195 lval_xcallable.
6196 (value_free): Free the associated xmethod worker when freeing
6197 lval_xcallable values.
6198 (set_value_component_location): Assert that the WHOLE value is not
6199 lval_xcallable.
6200 (value_of_xmethod, call_xmethod): New functions.
6201 * value.h: Declare "struct xmethod_worker".
6202 Declare new functions value_of_xmethod, call_xmethod.
6203
6204 2014-06-03 Joel Brobecker <brobecker@adacore.com>
6205 Pedro Alves <palves@redhat.com>
6206
6207 PR breakpoints/17000
6208 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6209 New function, extracted from software_breakpoint_inserted_here_p.
6210 (software_breakpoint_inserted_here_p): Replace factored out code
6211 by call to find_non_raw_software_breakpoint_inserted_here.
6212 (bp_target_info_copy_insertion_state): New function.
6213 (bkpt_insert_location): Handle the case of a single-step
6214 breakpoint already inserted at the same address.
6215 (bkpt_remove_location): Handle the case of a single-step
6216 breakpoint still inserted at the same address.
6217 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6218 breakpoint already inserted at the same address.
6219 (deprecated_remove_raw_breakpoint): Handle the case of a
6220 non-raw breakpoint still inserted at the same address.
6221 (find_single_step_breakpoint): New function, extracted from
6222 single_step_breakpoint_inserted_here_p.
6223 (find_single_step_breakpoint): New function,
6224 factored out from single_step_breakpoint_inserted_here_p.
6225 (single_step_breakpoint_inserted_here_p): Reimplement.
6226
6227 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
6228
6229 Pushed by Joel Brobecker <brobecker@adacore.com>
6230 * source.c (show_substitute_path_command): Fix display of matching
6231 substitution rules.
6232
6233 2014-06-03 Gary Benson <gbenson@redhat.com>
6234
6235 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6236
6237 2014-06-02 Doug Evans <xdje42@gmail.com>
6238
6239 Add parameter support for Guile.
6240 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6241 (SUBDIR_GUILE_SRCS): Add scm-param.c.
6242 (scm-param.o): New rule.
6243 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6244 (gdbscm_misc_error): Declare.
6245 (gdbscm_canonicalize_command_name): Declare.
6246 (gdbscm_scm_to_host_string): Declare.
6247 (gdbscm_scm_from_host_string): Declare.
6248 (gdbscm_initialize_parameters): Declare.
6249 * guile/guile.c (initialize_gdb_module): Call
6250 gdbscm_initialize_parameters.
6251 * guile/lib/gdb.scm: Export parameter symbols.
6252 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6253 cmdscm_canonicalize_name and made public. All callers updated.
6254 * guile/scm-exception.c (gdbscm_misc_error): New function.
6255 * guile/scm-param.c: New file.
6256 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6257 (gdbscm_scm_to_host_string): New function.
6258 (gdbscm_scm_from_host_string): New function.
6259 * scm-utils.c (gdbscm_gc_dup_argv): New function.
6260
6261 2014-06-02 Doug Evans <xdje42@gmail.com>
6262
6263 Add command support for Guile.
6264 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6265 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6266 (scm-cmd.o): New rule.
6267 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6268 (gdbscm_user_error_p): Declare.
6269 (gdbscm_parse_command_name): Declare.
6270 (gdbscm_valid_command_class_p): Declare.
6271 (gdbscm_initialize_commands): Declare.
6272 * guile/guile.c (initialize_gdb_module): Call
6273 gdbscm_initialize_commands.
6274 * guile/lib/gdb.scm: Export command symbols.
6275 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6276 (throw-user-error): New function.
6277 * guile/scm-cmd.c: New file.
6278 * guile/scm-exception.c (user_error_symbol): New static global.
6279 (gdbscm_user_error_p): New function.
6280 (gdbscm_initialize_exceptions): Set user_error_symbol.
6281 * scm-utils.c (gdbscm_gc_xstrdup): New function.
6282
6283 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
6284
6285 * top.c (command_loop): Handle comments here...
6286 (command_line_input): ... not here.
6287
6288 2014-06-02 Doug Evans <xdje42@gmail.com>
6289
6290 Add progspace support for Guile.
6291 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6292 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6293 (scm-progspace.o): New rule.
6294 * guile/guile-internal.h (pspace_smob): New typedef.
6295 (psscm_pspace_smob_pretty_printers): Declare.
6296 (psscm_pspace_smob_from_pspace): Declare.
6297 (psscm_scm_from_pspace): Declare.
6298 * guile/guile.c (initialize_gdb_module): Call
6299 gdbscm_initialize_pspaces.
6300 * guile/lib/gdb.scm: Export progspace symbols.
6301 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6302 support.
6303 (append-pretty-printer!): Ditto.
6304 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6305 Implement.
6306 * guile/scm-progspace.c: New file.
6307
6308 2014-06-03 Alan Modra <amodra@gmail.com>
6309
6310 * ppc64-tdep.c (ppc64_standard_linkage8): New.
6311 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6312
6313 2014-06-02 Doug Evans <dje@google.com>
6314
6315 Add support for skeletonless type units.
6316 * dwarf2read.c (struct dwarf2_per_objfile): New member
6317 n_allocated_type_units.
6318 (struct dwarf2_per_objfile) <tu_stats>: New member
6319 nr_all_type_units_reallocs.
6320 (create_signatured_type_table_from_index): Initialize
6321 n_allocated_type_units
6322 (create_all_type_units): Ditto.
6323 (add_type_unit): Move up in file. New arg slot.
6324 All callers updated. Increase space for all_type_units more
6325 efficiently.
6326 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6327 (lookup_dwo_signatured_type): Handle skeletonless TUs.
6328 (lookup_dwp_signatured_type): Ditto.
6329 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6330 All callers updated.
6331 (build_type_psymtabs_1): Leave type_unit_groups as
6332 NULL if no TUs present.
6333 (print_tu_stats): New function.
6334 (process_skeletonless_type_unit): New function.
6335 (process_dwo_file_for_skeletonless_type_units): New
6336 function.
6337 (process_skeletonless_type_units): New function.
6338 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6339 Call print tu_stats if debugging enabled.
6340
6341 2014-06-02 Pedro Alves <palves@redhat.com>
6342
6343 * breakpoint.c (build_target_command_list): Don't build a command
6344 list if we have any duplicate location that isn't a dprintf.
6345
6346 2014-06-02 Pedro Alves <palves@redhat.com>
6347
6348 * breakpoint.c (dprintf_breakpoint_hit): New function.
6349 (initialize_breakpoint_ops): Install it as dprintf's
6350 breakpoint_hit method.
6351
6352 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6353
6354 * source.c (substitute_path_rule_matches): Simplify using
6355 filename_ncmp instead of FILENAME_CMP.
6356
6357 2014-06-02 Joel Brobecker <brobecker@adacore.com>
6358
6359 * source.c (substitute_path_rule_matches): Remove trailing spaces.
6360
6361 2014-06-01 Ludovic Courtès <ludo@gnu.org>
6362
6363 * configure.ac: When Guile is available, check for the
6364 availability of 'scm_new_smob'.
6365 * configure, config.h.in: Regenerate.
6366 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6367 function.
6368
6369 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6370
6371 * frame.c (struct frame_info): Add stop_string field.
6372 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6373 (get_prev_frame_always): Old content moved into
6374 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
6375 TRY_CATCH, handle MEMORY_ERROR exceptions.
6376 (frame_stop_reason_string): New function definition.
6377 * frame.h (unwind_stop_reason_to_string): Extend comment to
6378 mention frame_stop_reason_string.
6379 (frame_stop_reason_string): New function declaration.
6380 * stack.c (frame_info): Switch to frame_stop_reason_string.
6381 (backtrace_command_1): Switch to frame_stop_reason_string.
6382 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6383 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6384 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6385
6386 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6387
6388 * frame.c (frame_stop_reason_string): Rename to ...
6389 (unwind_stop_reason_to_string): this.
6390 * frame.h (frame_stop_reason_string): Rename to ...
6391 (unwind_stop_reason_to_string): this.
6392 * stack.c (frame_info): Update call to frame_stop_reason_string.
6393 (backtrace_command_1): Likewise.
6394 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6395 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6396
6397 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
6398
6399 * frame.c (remove_prev_frame): New function.
6400 (get_prev_frame_if_no_cycle): Create / discard cleanup using
6401 remove_prev_frame.
6402
6403 2014-05-29 Pedro Alves <palves@redhat.com>
6404
6405 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6406 and make it const. When a single-step decays to a continue,
6407 clear 'step', not 'hw_step'. Pass whether the caller wanted
6408 to step to user_visible_resume_ptid, not what we ask the
6409 target to do.
6410
6411 2014-05-29 Pedro Alves <palves@redhat.com>
6412
6413 * infrun.c (process_event_stop_test, handle_step_into_function)
6414 (handle_step_into_function_backward): Adjust.
6415 Don't set the even thread's stop_step and call stop_waiting before
6416 calling end_stepping_range. Instead do that ...
6417 (end_stepping_range): ... here. Take an ecs pointer parameter.
6418
6419 2014-05-29 Pedro Alves <palves@redhat.com>
6420
6421 * infrun.c (stop_stepping): Rename to ...
6422 (stop_waiting): ... this.
6423 (proceed): Update comment.
6424 (process_event_stop_test, handle_inferior_event)
6425 (handle_signal_stop, handle_step_into_function)
6426 (handle_step_into_function_backward): Update.
6427
6428 2014-05-29 Pedro Alves <palves@redhat.com>
6429
6430 * infcall.c (run_inferior_call): Don't check whether the current
6431 thread is running after the proceed call.
6432
6433 2014-05-29 Pedro Alves <palves@redhat.com>
6434 Tom Tromey <tromey@redhat.com>
6435
6436 * NEWS: Mention "maint set target-async", "set mi-async", and that
6437 background execution commands are now always available.
6438 * target.h (target_async_permitted): Update comment.
6439 * target.c (target_async_permitted, target_async_permitted_1):
6440 Default to 1.
6441 (set_target_async_command): Rename to ...
6442 (maint_set_target_async_command): ... this.
6443 (show_target_async_command): Rename to ...
6444 (maint_show_target_async_command): ... this.
6445 (_initialize_target): Adjust.
6446 * infcmd.c (prepare_execution_command): Make extern.
6447 * inferior.h (prepare_execution_command): Declare.
6448 * infrun.c (set_observer_mode): Leave target async alone.
6449 * mi/mi-interp.c (mi_interpreter_init): Install
6450 mi_on_sync_execution_done as sync_execution_done observer.
6451 (mi_on_sync_execution_done): New function.
6452 (mi_execute_command_input_handler): Don't print the prompt if we
6453 just started a synchronous command with an async target.
6454 (mi_on_resume): Check sync_execution before printing prompt.
6455 * mi/mi-main.h (mi_async_p): Declare.
6456 * mi/mi-main.c: Include gdbcmd.h.
6457 (mi_async_p): New function.
6458 (mi_async, mi_async_1): New globals.
6459 (set_mi_async_command, show_mi_async_command, mi_async): New
6460 functions.
6461 (exec_continue): Call prepare_execution_command.
6462 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6463 (mi_execute_async_cli_command): Use mi_async_p.
6464 (_initialize_mi_main): Install "set mi-async". Make
6465 "target-async" a deprecated alias.
6466
6467 2014-05-29 Pedro Alves <palves@redhat.com>
6468
6469 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6470 (_initialize_cli_interp): Adjust.
6471 * event-loop.c: Include "observer.h".
6472 (start_event_loop): Notify 'command_error' observers instead of
6473 calling display_gdb_prompt. Remove FIXME comment.
6474 * event-top.c (display_gdb_prompt): Remove call into the
6475 interpreters.
6476 * inf-loop.c: Include "observer.h".
6477 (inferior_event_handler): Notify 'command_error' observers instead
6478 of calling display_gdb_prompt.
6479 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6480 observers instead of calling display_gdb_prompt.
6481 * interps.c (interp_set): Don't call display_gdb_prompt.
6482 (current_interp_display_prompt_p): Delete.
6483 * interps.h (interp_prompt_p): Delete declaration.
6484 (interp_prompt_p_ftype): Delete.
6485 (struct interp_procs) <prompt_proc_p>: Delete field.
6486 (current_interp_display_prompt_p): Delete declaration.
6487 * mi-interp.c (mi_interpreter_prompt_p): Delete.
6488 (_initialize_mi_interp): Adjust.
6489 * tui-interp.c (tui_init): Install 'sync_execution_done' and
6490 'command_error' observers.
6491 (tui_on_sync_execution_done, tui_on_command_error): New
6492 functions.
6493 (tui_display_prompt_p): Delete.
6494 (_initialize_tui_interp): Adjust.
6495
6496 2014-05-29 Pedro Alves <palves@redhat.com>
6497
6498 PR gdb/13860
6499 * cli/cli-interp.c: Include infrun.h and observer.h.
6500 (cli_uiout, cli_interp): New globals.
6501 (cli_on_signal_received, cli_on_end_stepping_range)
6502 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6503 functions.
6504 (cli_interpreter_init): Install them as 'end_stepping_range',
6505 'signal_received' 'signal_exited', 'exited' and 'no_history'
6506 observers.
6507 (_initialize_cli_interp): Remove cli_interp local.
6508 * infrun.c (handle_inferior_event): Call the several stop reason
6509 observers instead of printing the stop reason directly.
6510 (end_stepping_range): New function.
6511 (print_end_stepping_range_reason, print_signal_exited_reason)
6512 (print_exited_reason, print_signal_received_reason)
6513 (print_no_history_reason): Make static, and add an uiout
6514 parameter. Print to that instead of to CURRENT_UIOUT.
6515 * infrun.h (print_end_stepping_range_reason)
6516 (print_signal_exited_reason, print_exited_reason)
6517 (print_signal_received_reason print_no_history_reason): New
6518 declarations.
6519 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6520 'mi_uiout'.
6521 <cli_uiout>: New field.
6522 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
6523 uiout for CLI output. Install 'signal_received',
6524 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6525 observers.
6526 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6527 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6528 (mi_on_no_history): New functions.
6529 (ui_out_free_cleanup): Delete function.
6530 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6531 instead use the one already stored in the MI interpreter data.
6532 (mi_ui_out): Adjust.
6533 * tui/tui-interp.c: Include infrun.h and observer.h.
6534 (tui_interp): New global.
6535 (tui_on_signal_received, tui_on_end_stepping_range)
6536 (tui_on_signal_exited, tui_on_exited)
6537 (tui_on_no_history): New functions.
6538 (tui_init): Install them as 'end_stepping_range',
6539 'signal_received' 'signal_exited', 'exited' and 'no_history'
6540 observers.
6541 (_initialize_tui_interp): Delete tui_interp local.
6542
6543 2014-05-29 Pedro Alves <palves@redhat.com>
6544
6545 PR gdb/15713
6546 * linux-nat.c (linux_nat_resume_callback): Rename the second
6547 parameter to 'except'. Skip LP if it points to EXCEPT.
6548 (linux_nat_resume): Don't mark the event lwp as not stopped
6549 before resuming sibling lwps. Instead ask
6550 linux_nat_resume_callback to skip the event lwp. Mark it as not
6551 stopped after actually resuming it.
6552 (linux_handle_syscall_trap): Mark the lwp as not stopped after
6553 resuming it.
6554 (wait_lwp): Mark the lwp as stopped here.
6555 (stop_wait_callback): Mark the lwp as not stopped right after
6556 resuming it. Don't mark lwps as stopped here.
6557 (linux_nat_filter_event): Mark the lwp as stopped earlier.
6558 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
6559
6560 2014-05-29 Pedro Alves <palves@redhat.com>
6561
6562 PR PR15693
6563 * infrun.c (resume): Determine how much to resume depending on
6564 whether the caller wanted a step, not whether we can hardware step
6565 the target. Mark all threads that we intend to run as running,
6566 unless we're calling an inferior function.
6567 (normal_stop): If the thread is running an infcall, don't finish
6568 thread state.
6569 * target.c (target_resume): Don't mark threads as running here.
6570
6571 2014-05-28 Joel Brobecker <brobecker@adacore.com>
6572
6573 * serial.c (_initialize_serial): Remove support for
6574 the "set remotebaud" and "show remotebaud" commands.
6575 * NEWS: Add entry documenting the removal of that command.
6576
6577 2014-05-28 Yao Qi <yao@codesourcery.com>
6578
6579 * charset.c: Fix typo in comments.
6580
6581 2014-05-27 Gary Benson <gbenson@redhat.com>
6582
6583 * utils.c (internal_vproblem): Prompt for a bug report.
6584
6585 2014-05-26 Andy Wingo <wingo@igalia.com>
6586
6587 * guile/scm-arch.c (arscm_mark_arch_smob):
6588 * guile/scm-block.c (bkscm_mark_block_smob)
6589 (bkscm_mark_block_syms_progress_smob):
6590 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
6591 * guile/scm-exception.c (exscm_mark_exception_smob):
6592 * guile/scm-frame.c (frscm_mark_frame_smob):
6593 * guile/scm-iterator.c (itscm_mark_iterator_smob):
6594 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
6595 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
6596 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
6597 (ppscm_mark_pretty_printer_worker_smob):
6598 * guile/scm-symbol.c (syscm_mark_symbol_smob):
6599 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
6600 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
6601 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
6602 mark functions.
6603 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
6604 function.
6605
6606 2014-05-26 Andy Wingo <wingo@igalia.com>
6607 Doug Evans <xdje42@gmail.com>
6608
6609 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
6610 empty_base_class. All uses updated.
6611 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
6612 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
6613 Adapt all callers.
6614 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
6615 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
6616 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
6617 (gdbscm_gsmob_has_property_p, add_property_name)
6618 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
6619 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
6620 (gdb-object-has-property?, gdb-object-properties): Remove.
6621 (gdb-object-kind): Renamed from gsmob-kind.
6622
6623 2014-05-26 Andy Wingo <wingo@igalia.com>
6624
6625 * configure.ac (try_guile_versions): Allow building with guile 2.2.
6626 * configure: Regenerate.
6627
6628 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6629
6630 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
6631
6632 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
6633
6634 * record-btrace.c (record_btrace_allow_memory_access): Remove.
6635 (replay_memory_access_read_only, replay_memory_access_read_write)
6636 (replay_memory_access_types, replay_memory_access)
6637 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
6638 (cmd_set_record_btrace, cmd_show_record_btrace)
6639 (cmd_show_replay_memory_access): New.
6640 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
6641 (record_btrace_remove_breakpoint): Replace
6642 record_btrace_allow_memory_access with replay_memory_access.
6643 (_initialize_record_btrace): Add commands.
6644 * NEWS: Announce it.
6645
6646 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6647
6648 * aarch64-linux-nat.c (asm/ptrace.h): Include.
6649
6650 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6651
6652 * MAINTAINERS (Write After Approval): Move self back from
6653 paper trail.
6654
6655 2014-05-22 Pedro Alves <palves@redhat.com>
6656
6657 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
6658 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
6659 (disable_randomization, enum exec_direction_kind)
6660 (execution_direction, stop_registers, start_remote)
6661 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
6662 (wait_for_inferior, normal_stop, get_last_target_status)
6663 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
6664 (insert_step_resume_breakpoint_at_sal)
6665 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
6666 (set_step_info, print_stop_event, signal_stop_state)
6667 (signal_print_state, signal_pass_state, signal_stop_update)
6668 (signal_print_update, signal_pass_update)
6669 (update_signals_program_target, clear_exit_convenience_vars)
6670 (displaced_step_dump_bytes, update_observer_mode)
6671 (signal_catch_update, gdb_signal_from_command): Move
6672 declarations ...
6673 * infrun.h: ... to this new file.
6674 * amd64-tdep.c: Include infrun.h.
6675 * annotate.c: Include infrun.h.
6676 * arch-utils.c: Include infrun.h.
6677 * arm-linux-tdep.c: Include infrun.h.
6678 * arm-tdep.c: Include infrun.h.
6679 * break-catch-sig.c: Include infrun.h.
6680 * breakpoint.c: Include infrun.h.
6681 * common/agent.c: Include infrun.h instead of inferior.h.
6682 * corelow.c: Include infrun.h.
6683 * event-top.c: Include infrun.h.
6684 * go32-nat.c: Include infrun.h.
6685 * i386-tdep.c: Include infrun.h.
6686 * inf-loop.c: Include infrun.h.
6687 * infcall.c: Include infrun.h.
6688 * infcmd.c: Include infrun.h.
6689 * infrun.c: Include infrun.h.
6690 * linux-fork.c: Include infrun.h.
6691 * linux-nat.c: Include infrun.h.
6692 * linux-thread-db.c: Include infrun.h.
6693 * monitor.c: Include infrun.h.
6694 * nto-tdep.c: Include infrun.h.
6695 * procfs.c: Include infrun.h.
6696 * record-btrace.c: Include infrun.h.
6697 * record-full.c: Include infrun.h.
6698 * remote-m32r-sdi.c: Include infrun.h.
6699 * remote-mips.c: Include infrun.h.
6700 * remote-notif.c: Include infrun.h.
6701 * remote-sim.c: Include infrun.h.
6702 * remote.c: Include infrun.h.
6703 * reverse.c: Include infrun.h.
6704 * rs6000-tdep.c: Include infrun.h.
6705 * s390-linux-tdep.c: Include infrun.h.
6706 * solib-irix.c: Include infrun.h.
6707 * solib-osf.c: Include infrun.h.
6708 * solib-svr4.c: Include infrun.h.
6709 * target.c: Include infrun.h.
6710 * top.c: Include infrun.h.
6711 * windows-nat.c: Include infrun.h.
6712 * mi/mi-interp.c: Include infrun.h.
6713 * mi/mi-main.c: Include infrun.h.
6714 * python/py-threadevent.c: Include infrun.h.
6715
6716 2014-05-22 Pedro Alves <palves@redhat.com>
6717
6718 * infrun.c (handle_inferior_event): Store the exit code for
6719 --return-child-result here, instead of ...
6720 (print_exited_reason): ... here.
6721
6722 2014-05-21 Pedro Alves <palves@redhat.com>
6723
6724 PR gdb/13860
6725 * gdbthread.h (struct thread_control_state): New field
6726 `command_interp'.
6727 * infrun.c (follow_fork): Copy the new thread control field to the
6728 child fork thread.
6729 (clear_proceed_status_thread): Clear the new thread control field.
6730 (proceed): Set the new thread control field.
6731 * interps.h (command_interp): Declare.
6732 * interps.c (command_interpreter): New global.
6733 (command_interp): New function.
6734 (interp_exec): Set `command_interpreter' while here.
6735 * cli-out.c (cli_uiout_dtor): New function.
6736 (cli_ui_out_impl): Install it.
6737 * mi/mi-interp.c: Include cli-out.h.
6738 (mi_cmd_interpreter_exec): Add comment.
6739 (restore_current_uiout_cleanup): New function.
6740 (ui_out_free_cleanup): New function.
6741 (mi_on_normal_stop): If finishing an execution command started by
6742 a CLI command, or any kind of breakpoint-like event triggered,
6743 print the stop event to the output (CLI) stream.
6744 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
6745
6746 2014-05-21 Pedro Alves <palves@redhat.com>
6747
6748 * cli/cli-cmds.c (list_command): Handle the first "list" after the
6749 current source line having changed.
6750 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
6751 * infrun.c (normal_stop): Adjust call to
6752 set_current_sal_from_frame.
6753 * source.c (clear_lines_listed_range): New function.
6754 (set_current_source_symtab_and_line, identify_source_line): Clear
6755 the lines listed range.
6756 (line_info): Handle the first "info line" after the current source
6757 line having changed.
6758 * stack.c (print_stack_frame): Remove center handling.
6759 (set_current_sal_from_frame): Remove 'center' parameter. Don't
6760 center sal.line.
6761
6762 2014-05-21 Pedro Alves <palves@redhat.com>
6763
6764 * inf-child.c (inf_child_mourn_inferior): New function.
6765 * inf-child.h (inf_child_mourn_inferior): New declaration.
6766 * darwin-nat.c (darwin_mourn_inferior): Use
6767 inf_child_mourn_inferior.
6768 * gnu-nat.c (gnu_mourn_inferior): Likewise.
6769 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
6770 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
6771 * nto-procfs.c (procfs_mourn_inferior): Likewise.
6772 * windows-nat.c (windows_mourn_inferior): Likewise.
6773
6774 2014-05-21 Doug Evans <xdje42@gmail.com>
6775
6776 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
6777
6778 2014-05-21 Doug Evans <xdje42@gmail.com>
6779
6780 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
6781 (gdbscm_out_of_range_error): Ditto.
6782 (gdbscm_memory_error): Ditto.
6783 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
6784 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
6785 (gdbscm_out_of_range_error): Update.
6786 (gdbscm_memory_error): Update.
6787 (gdbscm_scm_to_target_string_unsafe): Delete.
6788
6789 2014-05-21 Pedro Alves <palves@redhat.com>
6790
6791 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
6792 globals.
6793 (inf_child_open_target): New function.
6794 (inf_child_open): Use inf_child_open_target to push the target
6795 instead of erroring out.
6796 (inf_child_disconnect, inf_child_close)
6797 (inf_child_maybe_unpush_target): New functions.
6798 (inf_child_target): Install inf_child_disconnect and
6799 inf_child_close. Store a pointer to the returned object.
6800 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
6801 declarations.
6802 * target.c (auto_connect_native_target): New global.
6803 (show_default_run_target): New function.
6804 (find_default_run_target): Return NULL if automatically connecting
6805 to the native target is disabled.
6806 (_initialize_target): Install set/show auto-connect-native-target.
6807 * NEWS: Mention "set auto-connect-native-target", and "target
6808 native".
6809 * linux-nat.c (super_close): New global.
6810 (linux_nat_close): Call super_close.
6811 (linux_nat_add_target): Store a pointer to the base class's
6812 to_close method.
6813 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
6814 inf_child_maybe_unpush.
6815 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
6816 already pushed.
6817 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
6818 the inferior. Use inf_child_maybe_unpush_target.
6819 (inf_ttrace_attach): Don't push the target if it is already
6820 pushed.
6821 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
6822 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
6823 after mourning the inferior. Use inf_child_maybe_unpush_target.
6824 (darwin_attach_pid): Don't push the target if it is already
6825 pushed.
6826 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
6827 mourning the inferior. Use inf_child_maybe_unpush_target.
6828 (gnu_detach): Use inf_child_maybe_unpush_target.
6829 * go32-nat.c (go32_create_inferior): Don't push the target if it
6830 is already pushed.
6831 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
6832 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
6833 (procfs_open): Rename to ...
6834 (procfs_open_1): ... this. Add target_ops parameter. Adjust
6835 comments. Can target_preopen before changing node. Call
6836 inf_child_open_target to push the target explicitly.
6837 (procfs_attach): Don't push the target if it is already pushed.
6838 (procfs_detach): Use inf_child_maybe_unpush_target.
6839 (procfs_create_inferior): Don't push the target if it is already
6840 pushed.
6841 (nto_native_ops): New global.
6842 (procfs_open): Reimplement.
6843 (procfs_native_open): New function.
6844 (init_procfs_targets): Install procfs_native_open as to_open of
6845 "target native". Store a pointer to the "native" target in
6846 nto_native_ops.
6847 * procfs.c (procfs_attach): Don't push the target if it is already
6848 pushed.
6849 (procfs_detach): Use inf_child_maybe_unpush_target.
6850 (procfs_mourn_inferior): Only unpush the target after mourning the
6851 inferior. Use inf_child_maybe_unpush_target.
6852 (procfs_init_inferior): Don't push the target if it is already
6853 pushed.
6854 * windows-nat.c (do_initial_windows_stuff): Don't push the target
6855 if it is already pushed.
6856
6857 2014-05-21 Pedro Alves <palves@redhat.com>
6858
6859 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
6860 and "procfs" targets are now called "native" instead.
6861
6862 2014-05-21 Pedro Alves <palves@redhat.com>
6863
6864 * go32-nat.c (go32_open): Delete.
6865 (go32_target): Don't override the to_open method.
6866
6867 2014-05-21 Pedro Alves <palves@redhat.com>
6868
6869 * nto-procfs.c (procfs_can_run): New function.
6870 (nto_procfs_ops): New global.
6871 (init_procfs_targets): New, based on procfs_target. Install
6872 "target native" in addition to "target procfs".
6873 (_initialize_procfs): Call init_procfs_targets instead of adding
6874 the target here.
6875
6876 2014-05-21 Pedro Alves <palves@redhat.com>
6877
6878 * windows-nat.c (windows_target): Don't override to_shortname,
6879 to_longname or to_doc.
6880
6881 2014-05-21 Pedro Alves <palves@redhat.com>
6882
6883 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
6884 to_doc.
6885
6886 2014-05-21 Pedro Alves <palves@redhat.com>
6887
6888 * darwin-nat.c (_initialize_darwin_inferior): Don't override
6889 to_shortname, to_longname or to_doc.
6890
6891 2014-05-21 Pedro Alves <palves@redhat.com>
6892
6893 * go32-nat.c (go32_target): Don't override to_shortname,
6894 to_longname or to_doc.
6895
6896 2014-05-21 Pedro Alves <palves@redhat.com>
6897
6898 * inf-child.c (inf_child_open): Remove mention of "child".
6899 (inf_child_target): Rename target to "native" instead of "child".
6900
6901 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6902
6903 * Makefile.in (SFILES): Delete "regset.c".
6904 (COMMON_OBS): Delete "regset.o".
6905 * regset.c: Remove.
6906 * regset.h (regset_alloc): Delete prototype.
6907
6908 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6909
6910 * sparc-linux-tdep.c (sparc32_linux_gregset)
6911 (sparc32_linux_fpregset): New static regset structures.
6912 (sparc32_linux_init_abi): Drop dynamic regset allocations.
6913 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
6914 'fpregset' fields.
6915 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
6916 (sparc64_linux_fpregset): New static regset structures.
6917 (sparc64_linux_init_abi): Drop dynamic regset allocations.
6918 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
6919 New static regset structures.
6920 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
6921 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
6922 New static regset structures.
6923 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
6924 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
6925 New static regset structures.
6926 (sparc64obsd_init_abi): Drop dynamic regset allocations.
6927 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
6928 New static regset structures.
6929 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
6930
6931 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6932
6933 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
6934 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
6935 register maps ("regmaps") from "*regset" to "*regmap". Do this
6936 for all regmap types and variables.
6937 * sparc-linux-tdep.c (sparc32_linux_step_trap)
6938 (sparc32_linux_supply_core_gregset)
6939 (sparc32_linux_collect_core_gregset)
6940 (sparc32_linux_supply_core_fpregset)
6941 (sparc32_linux_collect_core_fpregset): Likewise.
6942 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
6943 (sparc_gregmap, sparc_fpregmap): ... these.
6944 (sparc_supply_gregset, sparc_collect_gregset)
6945 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6946 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
6947 (_initialize_sparc_nat): Rename regmaps.
6948 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
6949 (sparc_gregmap, sparc_fpregmap): ... these.
6950 (sparc_supply_gregset, sparc_collect_gregset)
6951 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
6952 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
6953 Rename macros to...
6954 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
6955 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
6956 Likewise.
6957 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
6958 Rename to...
6959 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
6960 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
6961 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
6962 regmaps.
6963 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6964 (sparc32_bsd_fpregset): Rename to...
6965 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6966 (sparc32_bsd_fpregmap): ... these.
6967 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
6968 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
6969 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
6970 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
6971 (struct sparc_gregmap, struct sparc_fpregmap)
6972 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
6973 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
6974 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
6975 (sparc32_supply_regset, sparc32_collect_gregset)
6976 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
6977 prototypes.
6978 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
6979 (sparc64_linux_ptrace_gregmap): ... this.
6980 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
6981 (_initialize_sparc64_linux_nat): Rename regmaps.
6982 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
6983 (sparc64_linux_core_gregmap): ... this.
6984 (sparc64_linux_supply_core_gregset)
6985 (sparc64_linux_collect_core_gregset)
6986 (sparc64_linux_supply_core_fpregset)
6987 (sparc64_linux_collect_core_fpregset): Rename regmaps.
6988 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
6989 (sparc64_sol2_fpregset): Rename to...
6990 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
6991 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
6992 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
6993 regmaps.
6994 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
6995 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
6996 (sparc64_bsd_fpregset): Rename to...
6997 (struct sparc_gregmap, sparc64_sol2_gregmap)
6998 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
6999 (sparc64_bsd_fpregmap): ... these.
7000 (sparc64_supply_gregset, sparc64_collect_gregset)
7001 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7002 prototypes.
7003 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7004 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7005 (sparc64fbsd_gregmap): ... this.
7006 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7007 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7008 Rename regmaps.
7009 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7010 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7011 (sparc64nbsd_collect_fpregset): Likewise.
7012 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7013 (sparc64nbsd_gregmap): ... this.
7014 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7015 regmaps.
7016 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7017 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7018 (sparc64obsd_gregmap): ... this.
7019 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7020 regmaps.
7021 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7022 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7023 (sparc32nbsd_gregmap): ... this.
7024 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7025 regmaps.
7026
7027 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7028
7029 * score-tdep.c (score7_linux_gregset): New static regset
7030 structure.
7031 (score7_linux_regset_from_core_section): Remove dynamic regset
7032 allocation.
7033 (score_gdbarch_init): Drop allocation of tdep structure.
7034 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7035
7036 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7037
7038 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7039 regset structures.
7040 (am33_regset_from_core_section): Remove dynamic regset
7041 allocations.
7042
7043 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7044
7045 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7046 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7047 structures.
7048 (mips_linux_regset_from_core_section): Remove dynamic regset
7049 allocations.
7050 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7051 'gregset64', 'fpregset', and 'fpregset64'.
7052 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7053 deleted tdep fields.
7054
7055 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7056
7057 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7058 regset structures.
7059 (amd64_regset_from_core_section): Remove dynamic regset
7060 allocations.
7061 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7062 structure.
7063 (amd64obsd_regset_from_core_section): Remove dynamic regset
7064 allocation.
7065 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7066 Likewise.
7067 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7068 x86-common regset supply function.
7069 * i386-tdep.c (i386_collect_gregset): Make static.
7070 (i386_gregset): New global regset structure.
7071 (i386_fpregset, i386_xstateregset): New static regset structures.
7072 (i386_regset_from_core_section): Remove dynamic regset
7073 allocations.
7074 (i386_gdbarch_init): Remove initialization of tdep fields
7075 'gregset', 'fpregset', and 'xstateregset'.
7076 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7077 'fpregset', and 'xstateregset'.
7078 (i386_collect_gregset): Remove prototype.
7079 (i386_gregset): New declaration.
7080 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7081 structure.
7082 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7083 allocation.
7084
7085 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7086
7087 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7088 (arm_linux_vfpregset): New static regset structures.
7089 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7090 regset structures.
7091 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7092 and 'vfpregset' fields.
7093
7094 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7095
7096 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7097 (aarch64_linux_fpregset): New static regset structures.
7098 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7099 of regset structures.
7100 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7101 'fpregset' fields.
7102
7103 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7104
7105 * regset.h (struct regset): Remove gdbarch field.
7106 * regset.c (regset_alloc): Drop initialization of gdbarch field.
7107 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7108 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7109 Likewise.
7110 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7111 (ppc32_linux_fpregset, ppc32_linux_vrregset)
7112 (ppc32_linux_vsxregset): Likewise.
7113 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7114 via the regcache instead of the regset.
7115 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7116 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7117 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7118 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7119 Likewise.
7120
7121 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7122
7123 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7124 Constify structures.
7125 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7126 (alphanbsd_aout_gregset): Likewise.
7127 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7128 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7129 Likewise.
7130 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7131 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7132 Likewise.
7133 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7134 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7135 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7136 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7137 * m88k-tdep.c (m88k_gregset): Likewise.
7138 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7139 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7140 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7141 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7142 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7143 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7144 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7145 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7146 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7147 Likewise.
7148 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7149 * sh-tdep.h (sh_corefile_gregset): Likewise.
7150 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7151 * vax-tdep.c (vax_gregset): Likewise.
7152
7153 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7154
7155 Fix TLS access for -static -pthread.
7156 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7157 (try_thread_db_load_1): Initialize it.
7158 (thread_db_get_thread_local_address): Call it if LM is zero.
7159 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7160 * target.h (struct target_ops) (to_get_thread_local_address): Add
7161 load_module_addr comment.
7162
7163 2014-05-21 Pedro Alves <palves@redhat.com>
7164
7165 * dcache.c (dcache_read_memory_partial): If reading the cache line
7166 fails, fallback to reading just the memory the caller wanted.
7167
7168 2014-05-20 Doug Evans <dje@google.com>
7169
7170 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7171 instead of get_current_arch.
7172
7173 2014-05-20 Pedro Alves <palves@redhat.com>
7174
7175 * NEWS: Mention that compare-sections now works with all targets.
7176
7177 * remote.c (PACKET_qCRC): New enum value.
7178 (remote_verify_memory): Don't send qCRC if the target has no
7179 execution. Use packet_support/packet_ok. If the target doesn't
7180 support the qCRC packet, fallback to a deep memory copy.
7181 (compare_sections_command): Say "target image" instead of "remote
7182 executable".
7183 (_initialize_remote): Add PACKET_qCRC to the list of config
7184 packets that have no associated command. Extend comment.
7185 * target.c (simple_verify_memory, default_verify_memory): New
7186 function.
7187 * target.h (struct target_ops) <to_verify_memory>: Default to
7188 default_verify_memory.
7189 (simple_verify_memory): New declaration.
7190 * target-delegates.c: Regenerate.
7191
7192 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
7193
7194 * record-btrace.c (record_btrace_step_thread): Check for empty history.
7195
7196 2014-05-20 Hui Zhu <hui@codesourcery.com>
7197 Yao Qi <yao@codesourcery.com>
7198
7199 PR backtrace/16558
7200 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7201 and change address of sp and pc.
7202
7203 2014-05-19 Tom Tromey <tromey@redhat.com>
7204
7205 * gdbtypes.c (rank_function): Use XNEWVEC.
7206 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7207
7208 2014-05-19 Doug Evans <dje@google.com>
7209
7210 * dwarf2read.c (build_type_psymtabs_1): Renamed from
7211 build_type_unit_groups and moved closer to only caller. Remove
7212 arguments. All references updated. Remove outdated .gdb_index
7213 comment.
7214 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7215 build_type_psymtabs_1.
7216
7217 2014-05-19 Doug Evans <dje@google.com>
7218
7219 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7220 n_type_unit_groups, all_type_unit_groups. All uses removed.
7221 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7222 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
7223 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
7224 (add_type_unit_group_to_table): Delete.
7225
7226 2014-05-19 Doug Evans <dje@google.com>
7227
7228 * eval.c (evaluate_subexp_standard): Add some comments.
7229
7230 2014-05-17 Doug Evans <xdje42@gmail.com>
7231
7232 * progspace.c (remove_program_space): Delete, unused.
7233 * progspace.h (remove_program_space): Ditto.
7234
7235 2014-05-17 Doug Evans <xdje42@gmail.com>
7236
7237 * inferior.c (prune_inferiors): Fix comment.
7238 (remove_inferior_command): Call prune_program_spaces.
7239
7240 2014-05-16 Doug Evans <dje@google.com>
7241
7242 New command line option -D.
7243 * NEWS: Mention it.
7244 * main.c (set_gdb_data_directory): New function.
7245 (captured_main): Recognize -D. Flag error for --data-directory "".
7246 Call set_gdb_data_directory.
7247 (print_gdb_help): Print --data-directory, -D.
7248 * main.h (set_gdb_data_directory): Declare.
7249 * top.c (staged_gdb_datadir): New static global.
7250 (set_gdb_datadir): Call set_gdb_data_directory
7251 (show_gdb_datadir): New function.
7252 (init_main): Update init of data-directory parameter.
7253
7254 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
7255
7256 Import the "dirfd" gnulib module.
7257 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7258 * gnulib/aclocal.m4: Update.
7259 * gnulib/config.in: Update.
7260 * gnulib/configure: Update.
7261 * gnulib/import/Makefile.am: Update.
7262 * gnulib/import/Makefile.in: Update.
7263 * gnulib/import/dirfd.c: New.
7264 * gnulib/import/m4/dirfd.m4: New.
7265 * gnulib/import/m4/gnulib-cache.m4: Update.
7266 * gnulib/import/m4/gnulib-comp.m4: Update.
7267
7268 2014-05-16 Pierre Muller <muller@sourceware.org>
7269 Yao Qi <yao@codesourcery.com>
7270
7271 * valprint.c (print_wchar): Move the code on checking whether
7272 W is a printable wide char to the default branch of switch
7273 statement below. Call wchar_printable instead of gdb_iswprint.
7274
7275 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
7276
7277 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7278 ldr.w and ldrd instructions.
7279
7280 2014-05-15 Doug Evans <dje@google.com>
7281
7282 * dwarf2read.c (read_structure_type): Delete outdated comments.
7283
7284 2014-05-14 Tom Tromey <tromey@redhat.com>
7285
7286 * macrocmd.c (print_macro_definition): Reindent.
7287
7288 2014-05-13 Doug Evans <xdje42@gmail.com>
7289
7290 * python/py-cmd.c (cmdpy_completer): Add comment.
7291 (completers): Make const.
7292
7293 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
7294
7295 * infrun.c (resume): Remove should_resume (unused). Move up
7296 declaration of resume_ptid.
7297
7298 2014-05-13 Tom Tromey <tromey@redhat.com>
7299
7300 * language.h (unop_type_check): Remove.
7301 (binop_type_check): Don't declare.
7302
7303 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
7304
7305 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7306 call to regcache_raw_collect.
7307
7308 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7309
7310 * mi/mi-console.c (mi_console_raw_packet): Use the value from
7311 mi_console->quote as the quoting character.
7312
7313 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
7314
7315 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7316
7317 2014-04-29 Tom Tromey <tromey@redhat.com>
7318
7319 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7320 "show debug varobj".
7321
7322 2014-05-07 Kyle McMartin <kyle@redhat.com>
7323
7324 Pushed by Joel Brobecker <brobecker@adacore.com>.
7325 * aarch64-tdep.c (aarch64_software_single_step): New function.
7326 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7327 with aarch64_software_single_step.
7328
7329 2014-05-05 Joel Brobecker <brobecker@adacore.com>
7330
7331 GDB 7.7.1 released.
7332
7333 2014-05-05 Keith Seitz <keiths@redhat.com>
7334
7335 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7336 variable or history value is successfully parsed.
7337
7338 2014-05-05 Yao Qi <yao@codesourcery.com>
7339 Pedro Alves <palves@redhat.com>
7340
7341 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7342 address of blocks that intersects the requested range. Trim
7343 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7344 sections.
7345 * ctf.c (ctf_xfer_partial): Likewise.
7346
7347 2014-05-05 Yao Qi <yao@codesourcery.com>
7348
7349 * printcmd.c (display_command): Remove the check to
7350 target_has_execution.
7351
7352 2014-05-03 Mark Kettenis <kettenis@gnu.org>
7353
7354 * ppcobsd-nat.c: Include "obsd-nat.h".
7355 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7356 add_target.
7357 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7358
7359 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7360
7361 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7362 and 16-bit signed and unsigned arguments. Update comment.
7363 (stap_parse_probe_arguments): Extend code to handle such
7364 arguments. Use warning instead of complaint to notify about
7365 unrecognized bitness.
7366
7367 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
7368
7369 PR breakpoints/16889
7370 * stap-probe.c (stap_parse_probe_arguments): Simplify
7371 check for non-prefixed probes (i.e., probes whose
7372 arguments do not start with "N@"). Always set the
7373 argument type to a sane value.
7374
7375 2014-05-01 David Taylor <dtaylor@emc.com>
7376
7377 * remote.c (compare_sections_command): Add -r option to compare
7378 all loadable read-only sections.
7379
7380 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
7381
7382 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7383 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7384 Update all callers.
7385 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7386 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7387 Remove unused CORE_ADDR argument. Update all callers.
7388
7389 2014-04-29 Pedro Alves <palves@redhat.com>
7390
7391 * remote.c (struct packet_config) <detect>: Extend comment.
7392 (add_packet_config_cmd): Don't set the config's detect or support
7393 fields here.
7394 (init_all_packet_configs): Also initialize the config's 'detect'
7395 field.
7396 (reset_all_packet_configs_support): New function.
7397 (remote_open_1): Call reset_all_packet_configs_support instead of
7398 init_all_packet_configs.
7399 (_initialize_remote): Initialize all packet configs. Assert that
7400 all packets have an associated command, except a few known
7401 outliers.
7402
7403 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7404
7405 * dwarf2read.c (read_subrange_type): Handle dynamic
7406 DW_AT_lower_bound attributes.
7407
7408 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7409
7410 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7411 dynamic bounds before computing its upper bound.
7412 (ada_discrete_type_low_bound): Same as above with the lower bound.
7413
7414 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7415
7416 * dwarf2read.c (is_dynamic_type): Return true for dynamic
7417 range types. Adjust the array handling implementation to
7418 take advantage of this change.
7419 (resolve_dynamic_range): New function, mostly extracted from
7420 resolve_dynamic_bounds.
7421 (resolve_dynamic_array): New function, mostly extracted from
7422 resolve_dynamic_bounds.
7423 (resolve_dynamic_bounds): Delete.
7424 (resolve_dynamic_type): Reimplement. Add handling of
7425 TYPE_CODE_RANGE types.
7426
7427 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7428
7429 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7430 handling of parallel ___XA types.
7431
7432 2014-04-28 Joel Brobecker <brobecker@adacore.com>
7433
7434 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7435 unnecessary second call to static_unwrap_type.
7436
7437 2014-04-27 Hui Zhu <hui@codesourcery.com>
7438
7439 * stack.c (print_frame_info): Call do_gdb_disassembly with
7440 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7441
7442 2014-04-26 Doug Evans <xdje42@gmail.com>
7443
7444 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7445
7446 2014-04-25 Pedro Alves <palves@redhat.com>
7447
7448 PR server/16255
7449 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7450 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
7451 and newline from built string.
7452 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7453 (linux_ptrace_attach_fail_reason): ... this.
7454 * linux-nat.c (linux_nat_attach): Adjust to use
7455 linux_ptrace_attach_fail_reason.
7456
7457 2014-04-25 Pedro Alves <palves@redhat.com>
7458
7459 * remote.c (struct remote_state): Remove multi_process_aware,
7460 non_stop_aware, cond_tracepoints, cond_breakpoints,
7461 breakpoint_commands, fast_tracepoints, static_tracepoints,
7462 install_in_trace, disconnected_tracing,
7463 enable_disable_tracepoints, string_tracing, and
7464 augmented_libraries_svr4_read fields.
7465 (remote_multi_process_p): Move further below in the file.
7466 (struct packet_config): Add comments.
7467 (update_packet_config): Delete function.
7468 (show_packet_config_cmd): Use packet_config_support.
7469 (add_packet_config_cmd): Use NULL as set callback.
7470 (packet_ok): "set remote foo-packet"-style commands no longer
7471 change config->supported -- adjust.
7472 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7473 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7474 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7475 (PACKET_QNonStop, PACKET_multiprocess_feature)
7476 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7477 (PACKET_DisconnectedTracing_feature)
7478 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7479 (set_remote_protocol_packet_cmd): Delete function.
7480 (packet_config_support, packet_support): New functions.
7481 (set_remote_protocol_Z_packet_cmd): Don't call
7482 update_packet_config.
7483 (remote_query_attached, remote_pass_signals)
7484 (remote_program_signals, remote_threads_info)
7485 (remote_threads_extra_info, remote_start_remote): Use
7486 packet_support.
7487 (remote_start_remote): Use packet_config_support and
7488 packet_support.
7489 (init_all_packet_configs): Set all packets to unknown support,
7490 instead of calling update_packet_config.
7491 (remote_check_symbols): Use packet_support.
7492 (remote_supported_packet): Unconditionally set the packet config's
7493 support status.
7494 (remote_multi_process_feature, remote_non_stop_feature)
7495 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7496 (remote_breakpoint_commands_feature)
7497 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7498 (remote_install_in_trace_feature)
7499 (remote_disconnected_tracing_feature)
7500 (remote_enable_disable_tracepoint_feature)
7501 (remote_string_tracing_feature)
7502 (remote_augmented_libraries_svr4_read_feature): Delete functions.
7503 (remote_protocol_features): Adjust to use remote_supported_packet
7504 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7505 "ConditionalTracepoints", "ConditionalBreakpoints",
7506 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7507 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7508 "EnableDisableTracepoints", and "tracenz".
7509 (remote_query_supported): Use packet_support.
7510 (remote_open_1): Adjust.
7511 (extended_remote_attach_1): Use packet_support. Switch on the
7512 result of packet_ok instead of checking whether the packet ended
7513 up disabled.
7514 (remote_vcont_resume): Use packet_support.
7515 (remote_resume, remote_stop_ns, fetch_register_using_p)
7516 (remote_prepare_to_store, store_register_using_P)
7517 (check_binary_download, remote_write_bytes): Use packet_support.
7518 (remote_vkill): Use packet_support. Switch on the result of
7519 packet_ok instead of checking whether the packet ended up
7520 disabled.
7521 (extended_remote_supports_disable_randomization): Use
7522 packet_support.
7523 (extended_remote_run): Switch on the result of packet_ok instead
7524 of checking whether the packet ended up disabled.
7525 (remote_insert_breakpoint, remote_remove_breakpoint)
7526 (remote_insert_watchpoint, remote_remove_watchpoint)
7527 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7528 packet_support.
7529 (remote_search_memory): Use packet_config_support.
7530 (remote_get_thread_local_address, remote_get_tib_address)
7531 (remote_hostio_send_command, remote_can_execute_reverse): Use
7532 packet_support.
7533 (remote_supports_cond_tracepoints)
7534 (remote_supports_cond_breakpoints)
7535 (remote_supports_fast_tracepoints)
7536 (remote_supports_static_tracepoints)
7537 (remote_supports_install_in_trace)
7538 (remote_supports_enable_disable_tracepoint)
7539 (remote_supports_string_tracing)
7540 (remote_can_run_breakpoint_commands): Rewrite, checking whether
7541 the packet config says the feature is enabled or disabled.
7542 (remote_download_tracepoint, remote_trace_set_readonly_regions)
7543 (remote_get_trace_status): Use packet_support.
7544 (remote_set_disconnected_tracing): Adjust to check whether the
7545 feature is enabled with packet_support.
7546 (remote_set_trace_buffer_size, remote_use_agent)
7547 (remote_can_use_agent, remote_supports_btrace): Use
7548 packet_support.
7549 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
7550 Use packet_config_support.
7551 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
7552 the packet config says the feature is enabled or disabled.
7553 (set_range_stepping): Use packet_support.
7554
7555 2014-04-25 Tom Tromey <tromey@redhat.com>
7556
7557 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
7558 argument.
7559
7560 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
7561
7562 * NEWS: Mention support for C99 variable length arrays.
7563
7564 2014-04-24 Joel Brobecker <brobecker@adacore.com>
7565
7566 * ada-lang.c (standard_exc): Expand introductory comment.
7567
7568 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
7569 Walfred Tedeschi <walfred.tedeschi@intel.com>
7570
7571 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
7572 AVX512 registers.
7573 (amd64_linux_read_description): Add code to handle AVX512 xstate
7574 mask and return respective tdesc.
7575 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
7576 and features/i386/x32-avx512-linux.c.
7577 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
7578 (amd64_linux_core_read_description): Add code to handle AVX512
7579 xstate mask and return respective tdesc.
7580 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
7581 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
7582 calculation.
7583 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
7584 (tdesc_amd64_avx512_linux): New prototype.
7585 (tdesc_x32_avx512_linux): Likewise.
7586 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
7587 features/i386/x32-avx512.c.
7588 (amd64_ymm_avx512_names): New register names for pseudo
7589 registers YMM16-31.
7590 (amd64_ymmh_avx512_names): New register names for raw registers
7591 YMMH16-31.
7592 (amd64_k_names): New register names for K registers.
7593 (amd64_zmmh_names): New register names for ZMM raw registers.
7594 (amd64_zmm_names): New registers names for ZMM pseudo registers.
7595 (amd64_xmm_avx512_names): New register names for XMM16-31
7596 registers.
7597 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
7598 registers.
7599 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
7600 if feature is present.
7601 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
7602 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
7603 (AMD64_NUM_REGS): Adjust to new number of registers.
7604 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
7605 registers supplied via XSTATE by AVX512 registers.
7606 (i386_linux_read_description): Add case for AVX512.
7607 * i386-linux-tdep.c: Include i386-avx512-linux.c.
7608 (i386_linux_gregset_reg_offset): Add AVX512 registers.
7609 (i386_linux_core_read_description): Add case for AVX512.
7610 (i386_linux_init_abi): Install supported register note section
7611 for AVX512.
7612 (_initialize_i386_linux_tdep): Add call to tdesc init function for
7613 AVX512.
7614 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
7615 registers to be number of zmm7h + 1.
7616 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
7617 * i386-tdep.c: Include features/i386/i386-avx512.c.
7618 (i386_zmm_names): Add ZMM pseudo register names array.
7619 (i386_zmmh_names): Add ZMM raw register names array.
7620 (i386_k_names): Add K raw register names array.
7621 (num_lower_zmm_regs): Add constant for the number of lower ZMM
7622 registers. AVX512 has 16 more ZMM registers than there are YMM
7623 registers.
7624 (i386_zmmh_regnum_p): Add function to look up register number of
7625 ZMM raw registers.
7626 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
7627 (i386_k_regnum_p): Likewise for K raw registers.
7628 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
7629 registers added by AVX512.
7630 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
7631 registers added by AVX512.
7632 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
7633 added by AVX512.
7634 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
7635 (i386_pseudo_register_name): Add ZMM pseudo registers.
7636 (i386_zmm_type): Construct and return vector registers type for ZMM
7637 registers.
7638 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
7639 ZMM0-31 pseudo registers and K registers.
7640 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
7641 and YMM16-31 registers from register cache.
7642 (i386_pseudo_register_write): Add code to write K, ZMM and
7643 YMM16-31 registers.
7644 (i386_register_reggroup_p): Add code to include/exclude AVX512
7645 registers in/from respective register groups.
7646 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
7647 registers if feature is present in xcr0.
7648 (i386_gdbarch_init): Add code to initialize AVX512 feature
7649 variables in tdep structure, wire in pseudo registers and call
7650 initialize_tdesc_i386_avx512.
7651 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
7652 variables.
7653 (i386_regnum): Add AVX512 registers.
7654 (I386_SSE_NUM_REGS): New define for number of SSE registers.
7655 (I386_AVX_NUM_REGS): Likewise for AVX registers.
7656 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
7657 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
7658 512 bits wide.
7659 (i386_xmm_avx512_regnum_p): New prototype for register look up.
7660 (i386_ymm_avx512_regnum_p): Likewise.
7661 (i386_k_regnum_p): Likewise.
7662 (i386_zmm_regnum_p): Likewise.
7663 (i386_zmmh_regnum_p): Likewise.
7664 * i387-tdep.c : Update year in copyright notice.
7665 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
7666 XSAVE buffer.
7667 (XSAVE_YMM_AVX512_ADDR): New macro.
7668 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
7669 XSAVE buffer.
7670 (XSAVE_XMM_AVX512_ADDR): New macro.
7671 (xsave_avx512_k_offset): New table for K register offsets in
7672 XSAVE buffer.
7673 (XSAVE_AVX512_K_ADDR): New macro.
7674 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
7675 in XSAVE buffer.
7676 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
7677 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
7678 buffer.
7679 (i387_collect_xsave): Add code to collect AVX512 registers from
7680 XSAVE buffer.
7681 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
7682 of XMM16-31 registers.
7683 (I387_NUM_K_REGS): New define for number of K registers.
7684 (I387_K0_REGNUM): New define for K0 register number.
7685 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
7686 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
7687 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
7688 registers.
7689 (I387_YMM16H_REGNUM): New define for YMM16H register number.
7690 (I387_XMM16_REGNUM): New define for XMM16 register number.
7691 (I387_YMM0_REGNUM): New define for YMM0 register number.
7692 (I387_KEND_REGNUM): New define for last K register number.
7693 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
7694 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
7695 number.
7696 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
7697 number.
7698 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
7699 size.
7700 * features/Makefile: Add AVX512 related files.
7701 * features/i386/32bit-avx512.xml: New file.
7702 * features/i386/64bit-avx512.xml: Likewise.
7703 * features/i386/amd64-avx512-linux.c: Likewise.
7704 * features/i386/amd64-avx512-linux.xml: Likewise.
7705 * features/i386/amd64-avx512.c: Likewise.
7706 * features/i386/amd64-avx512.xml: Likewise.
7707 * features/i386/i386-avx512-linux.c: Likewise.
7708 * features/i386/i386-avx512-linux.xml: Likewise.
7709 * features/i386/i386-avx512.c: Likewise.
7710 * features/i386/i386-avx512.xml: Likewise.
7711 * features/i386/x32-avx512-linux.c: Likewise.
7712 * features/i386/x32-avx512-linux.xml: Likewise.
7713 * features/i386/x32-avx512.c: Likewise.
7714 * features/i386/x32-avx512.xml: Likewise.
7715 * regformats/i386/amd64-avx512-linux.dat: New file.
7716 * regformats/i386/amd64-avx512.dat: Likewise.
7717 * regformats/i386/i386-avx512-linux.dat: Likewise.
7718 * regformats/i386/i386-avx512.dat: Likewise.
7719 * regformats/i386/x32-avx512-linux.dat: Likewise.
7720 * regformats/i386/x32-avx512.dat: Likewise.
7721 * NEWS: Add note about new support for AVX512.
7722
7723
7724 2014-04-23 Pedro Alves <palves@redhat.com>
7725
7726 * breakpoint.c (insert_bp_location): Tolerate errors if the
7727 breakpoint is set in a user-loaded objfile.
7728 (remove_breakpoint_1): Likewise. Also tolerate errors if the
7729 location is marked shlib_disabled. If the breakpoint is set in a
7730 user-loaded objfile is a GDB-side memory breakpoint, validate it
7731 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
7732 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
7733 flag.
7734 * mem-break.c (memory_validate_breakpoint): New function.
7735 * objfiles.c (userloaded_objfile_contains_address_p): New
7736 function.
7737 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
7738 * target.h (memory_validate_breakpoint): New declaration.
7739
7740 2014-04-23 Pedro Alves <palves@redhat.com>
7741
7742 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
7743 the breakpoint is set in a shared library, only suppress
7744 errors for software breakpoints, not hardware breakpoints.
7745
7746 2014-04-22 Pedro Alves <palves@redhat.com>
7747
7748 * infrun.c (schedlock_applies): New function, factored out from
7749 find_thread_needs_step_over.
7750 (find_thread_needs_step_over): Use it.
7751 (switch_back_to_stepped_thread): Always clear trap_expected if the
7752 step over is finished. Return early if scheduler locking applies.
7753 Look for the stepping thread and a potential step-over thread with
7754 a single loop.
7755 (currently_stepping_or_nexting_callback): Delete.
7756
7757 2014-04-22 Nick Clifton <nickc@redhat.com>
7758
7759 * NEWS: Mention that ARM sim now supports tracing.
7760
7761 2014-04-22 Yao Qi <yao@codesourcery.com>
7762
7763 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
7764 to ...
7765 * tracefile.c (tracefile_fetch_registers): ... it. New
7766 function.
7767 * tracefile.h (tracefile_fetch_registers): Declare.
7768 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
7769 tracefile_fetch_registers.
7770
7771 2014-04-19 Eli Zaretskii <eliz@gnu.org>
7772
7773 PR gdb/14018
7774 * windows-nat.c (thread_rec): Don't display a warning when
7775 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
7776 fails for any reason, set th->suspended to -1, so that we don't
7777 try to resume such a thread. Also, don't return NULL in these
7778 cases, to avoid completely ruin the session due to "PC register is
7779 not available" error.
7780 (do_windows_fetch_inferior_registers): Check errors in
7781 GetThreadContext call.
7782 (windows_continue): Accept an additional argument KILLED; if not
7783 zero, ignore errors in the SetThreadContext call, since the
7784 inferior was killed and is shutting down.
7785 (windows_resume, get_windows_debug_event)
7786 (windows_create_inferior, windows_mourn_inferior)
7787 (windows_kill_inferior): All callers of windows_continue changed
7788 to adjust to its new calling sequence.
7789
7790 2014-04-19 Yao Qi <yao@codesourcery.com>
7791
7792 * ctf.c (ctf_open): Call post_create_inferior.
7793
7794 2014-04-19 Yao Qi <yao@codesourcery.com>
7795
7796 * ctf.c (handle_id): New static variable.
7797 (ctf_open_dir): Get handle_id from bt_context_add_trace return
7798 value. Get the declaration of event "register" and get length
7799 of field "contents".
7800
7801 2014-04-19 Yao Qi <yao@codesourcery.com>
7802
7803 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
7804
7805 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
7806
7807 * valops.c (oload_method_static): Remove unnecessary argument
7808 METHOD. Update all callers.
7809
7810 2014-04-18 Pedro alves <palves@redhat.com>
7811 Tom Tromey <tromey@redhat.com>
7812
7813 PR backtrace/15558
7814 * frame.c (get_prev_frame_1): Rename to ...
7815 (get_prev_frame_always): ... this, and make extern. Adjust.
7816 (skip_artificial_frames): Use get_prev_frame_always.
7817 (frame_unwind_caller_id, frame_pop, get_prev_frame)
7818 (get_frame_unwind_stop_reason): Adjust to rename.
7819 * frame.h (get_prev_frame_always): Declare.
7820 * inline-frame.c: Include frame.h.
7821 (inline_frame_this_id): Use get_prev_frame_always.
7822
7823 2014-04-18 Tristan Gingold <gingold@adacore.com>
7824
7825 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
7826 code by using bfd_mach_o_get_base_address.
7827
7828 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7829
7830 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
7831 (spu_ax_pseudo_register_collect): New function.
7832 (spu_ax_pseudo_register_push_stack): Likewise.
7833 (spu_dwarf_reg_to_regnum): Likewise.
7834 (spu_gdbarch_init): Install them. Append DWARF unwinders.
7835
7836 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
7837
7838 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
7839 Replace FRAME argument with FRAME_ID.
7840 * gdbarch.c, gdbarch.h: Regenerate.
7841 * findvar.c (default_value_from_register): Add GDBARCH argument;
7842 replace FRAME by FRAME_ID. No longer call get_frame_id.
7843 (value_from_register): Update call to gdbarch_value_from_register.
7844 * value.h (default_value_from_register): Update prototype.
7845 * s390-linux-tdep.c (s390_value_from_register): Update interface
7846 and call to default_value_from_register.
7847 * spu-tdep.c (spu_value_from_register): Likewise.
7848
7849 * findvar.c (address_from_register): Remove TYPE argument.
7850 Do not call value_from_register; use gdbarch_value_from_register
7851 with null_frame_id instead.
7852 * value.h (address_from_register): Update prototype.
7853 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
7854 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
7855 address_from_register interface change.
7856
7857 2014-04-17 Yao Qi <yao@codesourcery.com>
7858
7859 * gdbtypes.h: Update comments to link to types and macros'
7860 definitions.
7861
7862 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
7863
7864 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
7865
7866 2014-04-16 Keith Seitz <keiths@redhat.com>
7867
7868 PR gdb/15827
7869 * dwarf2read.c (skip_one_die): Check that all relative-offset
7870 sibling DIEs fall within range of the current reader's buffer.
7871 (read_partial_die): Likewise.
7872
7873 2014-04-16 Keith Seitz <keiths@redhat.com>
7874
7875 PR c++/16597
7876 * cp-namespace.c (lookup_symbol_file): If the type name of
7877 `this' is NULL, return immediately.
7878
7879 2014-04-14 Keith Seitz <keiths@redhat.com>
7880
7881 PR c++/16253
7882 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7883 from symbol_matches_domain in symtab.c. All local callers
7884 of symbol_matches_domain updated.
7885 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7886 search STRUCT_DOMAIN.
7887 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7888 independently. standard_lookup will do that automatically.
7889 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7890 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7891 (cp_lookup_symbol_in_namespace): Likewise.
7892 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7893 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7894 may return a STRUCT_DOMAIN match.
7895 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7896 * cp-support.c: Include language.h.
7897 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7898 VAR_DOMAIN.
7899 * psymtab.c (match_partial_symbol): Compare the requested
7900 domain with the symbol's domain directly.
7901 (lookup_partial_symbol): Likewise.
7902 * symtab.c (lookup_symbol_in_language): Explain when/why
7903 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7904 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7905 appropriate languages.
7906 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7907 and moved to ada-lang.c
7908 (lookup_block_symbol): Explain that this function only returns
7909 symbol matching the requested DOMAIN.
7910 Compare the requested domain with the symbol's domain directly.
7911 (iterate_over_symbols): Compare the requested domain with the
7912 symbol's domain directly.
7913 * symtab.h (symbol_matches_domain): Remove.
7914
7915 2014-04-14 Tom Tromey <tromey@redhat.com>
7916
7917 PR c++/15246:
7918 * c-exp.y (type_aggregate_p): New function.
7919 (qualified_name, classify_inner_name): Use it.
7920 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
7921 and TYPE_TARGET_TYPE of an enum type.
7922 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
7923 an enum type.
7924 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
7925 handle TYPE_DECLARED_CLASS.
7926 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
7927 types.
7928 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
7929 * valops.c (enum_constant_from_type): New function.
7930 (value_aggregate_elt): Use it.
7931 * cp-namespace.c (cp_lookup_nested_symbol): Handle
7932 TYPE_CODE_ENUM.
7933
7934 2014-04-14 Tom Tromey <tromey@redhat.com>
7935
7936 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
7937 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
7938 const.
7939 * value.h (value_aggregate_elt): Update.
7940
7941 2014-04-14 Tom Tromey <tromey@redhat.com>
7942
7943 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
7944
7945 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7946
7947 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
7948 (evaluate_subexp_standard): Pass noside argument.
7949 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
7950 if noside equals EVAL_NORMAL. If the subscript yields a vla type
7951 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
7952 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
7953 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
7954
7955 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7956
7957 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
7958 points to a constant blob.
7959
7960 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7961
7962 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
7963 property and store it as the high bound and flag the range accordingly.
7964 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
7965 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
7966 * gdbtypes.h (enum range_flags): New enum.
7967 (struct range_bounds): Add flags member.
7968
7969 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7970
7971 * c-typeprint.c (c_type_print_varspec_suffix): Added
7972 check for not yet resolved high bound. If unresolved, print
7973 "variable length" string to the console instead of random
7974 length.
7975
7976 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7977
7978 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
7979 value.
7980 (ada_template_to_fixed_record_type_1): Likewise.
7981 (ada_to_fixed_type_1): Likewise.
7982 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
7983 (cp_print_value): Likewise.
7984 * d-valprint.c (dynamic_array_type): Likewise.
7985 * findvar.c (address_of_variable): Likewise.
7986 * jv-valprint.c (java_value_print): Likewise.
7987 * valops.c (value_ind): Likewise.
7988 * value.c (coerce_ref): Likewise.
7989
7990 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7991
7992 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
7993 value and retrieve the dynamic type size.
7994
7995 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
7996
7997 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
7998 passed to sizeof is dynamic evaluate the argument to compute the length.
7999
8000 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
8001 Joel Brobecker <brobecker@adacore.com>
8002
8003 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8004 (dwarf2_evaluate_property): New function.
8005 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8006 * dwarf2read.c (attr_to_dynamic_prop): New function.
8007 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8008 attribute.
8009 * gdbtypes.c: Include dwarf2loc.h.
8010 (is_dynamic_type): New function.
8011 (resolve_dynamic_type): New function.
8012 (resolve_dynamic_bounds): New function.
8013 (get_type_length): New function.
8014 (check_typedef): Use get_type_length to compute type length.
8015 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8016 (TYPE_LOW_BOUND_KIND): New macro.
8017 (is_dynamic_type): New function prototype.
8018 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8019 to resolve dynamic properties of the type. Update comment.
8020 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8021
8022 2014-04-14 Richard Henderson <rth@redhat.com>
8023
8024 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8025
8026 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
8027 Doug Evans <xdje42@gmail.com>
8028
8029 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8030 dereference TYPE_CODE_REF values.
8031
8032 2014-04-11 Joel Brobecker <brobecker@adacore.com>
8033
8034 Revert the following changes due to regressions:
8035
8036 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8037 (dwarf2_evaluate_property): New function.
8038 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8039 * dwarf2read.c (attr_to_dynamic_prop): New function.
8040 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8041 attribute.
8042 * gdbtypes.c: Include dwarf2loc.h.
8043 (is_dynamic_type): New function.
8044 (resolve_dynamic_type): New function.
8045 (resolve_dynamic_bounds): New function.
8046 (get_type_length): New function.
8047 (check_typedef): Use get_type_length to compute type length.
8048 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8049 (TYPE_LOW_BOUND_KIND): New macro.
8050 (is_dynamic_type): New function prototype.
8051 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8052 to resolve dynamic properties of the type. Update comment.
8053 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8054
8055 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8056 passed to sizeof is dynamic evaluate the argument to compute the length.
8057
8058 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8059 value and retrieve the dynamic type size.
8060
8061 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8062 (ada_template_to_fixed_record_type_1): Likewise.
8063 (ada_to_fixed_type_1): Likewise.
8064 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8065 (cp_print_value): Likewise.
8066 * d-valprint.c (dynamic_array_type): Likewise.
8067 * eval.c (evaluate_subexp_with_coercion): Likewise.
8068 * findvar.c (address_of_variable): Likewise.
8069 * jv-valprint.c (java_value_print): Likewise.
8070 * valops.c (value_ind): Likewise.
8071 * value.c (coerce_ref): Likewise.
8072
8073 * c-typeprint.c (c_type_print_varspec_suffix): Added
8074 check for not yet resolved high bound. If unresolved, print
8075 "variable length" string to the console instead of random
8076 length.
8077
8078 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8079 property and store it as the high bound and flag the range accordingly.
8080 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8081 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8082 * gdbtypes.h (enum range_flags): New enum.
8083 (struct range_bounds): Add flags member.
8084
8085 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8086 points to a constant blob.
8087
8088 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8089 (evaluate_subexp_standard): Pass noside argument.
8090 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8091 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8092 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8093 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8094 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8095
8096 2014-04-11 Keith Seitz <keiths@redhat.com>
8097
8098 PR c++/16675
8099 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8100 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8101 reference types.
8102
8103 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8104
8105 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8106 (evaluate_subexp_standard): Pass noside argument.
8107 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8108 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8109 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8110 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8111 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8112
8113 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8114
8115 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8116 points to a constant blob.
8117
8118 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8119
8120 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8121 property and store it as the high bound and flag the range accordingly.
8122 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8123 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8124 * gdbtypes.h (enum range_flags): New enum.
8125 (struct range_bounds): Add flags member.
8126
8127 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8128
8129 * c-typeprint.c (c_type_print_varspec_suffix): Added
8130 check for not yet resolved high bound. If unresolved, print
8131 "variable length" string to the console instead of random
8132 length.
8133
8134 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8135
8136 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8137 (ada_template_to_fixed_record_type_1): Likewise.
8138 (ada_to_fixed_type_1): Likewise.
8139 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8140 (cp_print_value): Likewise.
8141 * d-valprint.c (dynamic_array_type): Likewise.
8142 * eval.c (evaluate_subexp_with_coercion): Likewise.
8143 * findvar.c (address_of_variable): Likewise.
8144 * jv-valprint.c (java_value_print): Likewise.
8145 * valops.c (value_ind): Likewise.
8146 * value.c (coerce_ref): Likewise.
8147
8148 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8149
8150 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8151 value and retrieve the dynamic type size.
8152
8153 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8154
8155 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8156 passed to sizeof is dynamic evaluate the argument to compute the length.
8157
8158 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8159
8160 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8161 (dwarf2_evaluate_property): New function.
8162 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8163 * dwarf2read.c (attr_to_dynamic_prop): New function.
8164 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8165 attribute.
8166 * gdbtypes.c: Include dwarf2loc.h.
8167 (is_dynamic_type): New function.
8168 (resolve_dynamic_type): New function.
8169 (resolve_dynamic_bounds): New function.
8170 (get_type_length): New function.
8171 (check_typedef): Use get_type_length to compute type length.
8172 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8173 (TYPE_LOW_BOUND_KIND): New macro.
8174 (is_dynamic_type): New function prototype.
8175 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8176 to resolve dynamic properties of the type. Update comment.
8177 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8178
8179 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8180
8181 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8182 declaring high/low bounds and change uses accordingly. Call
8183 create_range_type instead of create_static_range_type.
8184 * gdbtypes.c (create_range_type): New function.
8185 (create_range_type): Convert bounds into struct bound_prop and pass
8186 them to create_range_type.
8187 * gdbtypes.h (struct bound_prop): New struct.
8188 (create_range_type): New function prototype.
8189 (struct range_bounds): Use struct bound_prop instead of LONGEST for
8190 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8191 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8192 part of the bound.
8193 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8194
8195 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
8196
8197 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8198 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8199 * ada-lang.c: All uses of create_range_type updated.
8200 * coffread.c: All uses of create_range_type updated.
8201 * dwarf2read.c: All uses of create_range_type updated.
8202 * f-exp.y: All uses of create_range_type updated.
8203 * m2-valprint.c: All uses of create_range_type updated.
8204 * mdebugread.c: All uses of create_range_type updated.
8205 * stabsread.c: All uses of create_range_type updated.
8206 * valops.c: All uses of create_range_type updated.
8207 * valprint.c: All uses of create_range_type updated.
8208
8209 2014-04-10 Pedro Alves <palves@redhat.com>
8210
8211 * breakpoint.c (single_step_breakpoints)
8212 (single_step_gdbarch): Move up in the file.
8213 (one_breakpoint_xfer_memory): New function, factored out from ...
8214 (breakpoint_xfer_memory): ... here. Also process single-step
8215 breakpoints.
8216
8217 2014-04-09 Tristan Gingold <gingold@adacore.com>
8218
8219 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8220 comments.
8221 (darwin_decode_exception_message): Free port only after use.
8222
8223 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
8224
8225 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8226 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8227 when setting the size of call_length.
8228
8229 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
8230
8231 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8232 dereference TYPE_CODE_REF values.
8233
8234 2014-04-07 Joel Brobecker <brobecker@adacore.com>
8235
8236 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8237 end of warning message.
8238
8239 2014-04-03 Doug Evans <dje@google.com>
8240
8241 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8242 of stub_comp_unit_die, stub_comp_dir is non-NULL.
8243
8244 2014-04-02 Alan Modra <amodra@gmail.com>
8245
8246 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8247 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
8248 (struct symbol_file_add_from_memory_args): Add size field.
8249 (find_vdso_size): New function.
8250 (add_vsyscall_page): Attempt to find vdso size.
8251
8252 2014-04-01 Doug Evans <dje@google.com>
8253
8254 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8255
8256 2014-04-01 Tristan Gingold <gingold@adacore.com>
8257
8258 * darwin-nat.c (darwin_encode_reply): Add prototype.
8259 (darwin_decode_exception_message): Reply to unknown inferiors.
8260 (darwin_decode_message): Handle message by id. Ignore message
8261 to unknown inferior.
8262 (darwin_wait): Discard unknown messages, add debug trace.
8263
8264 2014-03-31 Doug Evans <dje@google.com>
8265
8266 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8267 comp_dir_string.
8268
8269 2014-03-31 Doug Evans <dje@google.com>
8270
8271 New option "set print symbol-loading".
8272 * NEWS: Mention it.
8273 * solib.c (solib_read_symbols): Only print symbol loading messages
8274 if requested.
8275 (solib_add): If symbol loading is in "brief" mode, notify user
8276 symbols are being loaded.
8277 (reload_shared_libraries_1): Ditto.
8278 * symfile.c (print_symbol_loading_off): New static global.
8279 (print_symbol_loading_brief): New static global.
8280 (print_symbol_loading_full): New static global.
8281 (print_symbol_loading_enums): New static global.
8282 (print_symbol_loading): New static global.
8283 (print_symbol_loading_p): New function.
8284 (symbol_file_add_with_addrs): Only print symbol loading messages
8285 if requested.
8286 (_initialize_symfile): Register "print symbol-loading" set/show
8287 command.
8288 * symfile.h (print_symbol_loading_p): Declare.
8289
8290 2014-03-30 Doug Evans <xdje42@gmail.com>
8291
8292 * infrun.c (set_last_target_status): New function.
8293 (handle_inferior_event): Call it.
8294
8295 2014-03-30 Doug Evans <xdje42@gmail.com>
8296
8297 * inferior.h (enum stop_kind): Improve comment.
8298
8299 2014-03-28 Joel Brobecker <brobecker@adacore.com>
8300
8301 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8302 a reference, strip the reference layer before calling
8303 the lang_ops value_has_mutated callback.
8304
8305 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
8306
8307 Remove some globals from our parser.
8308 * language.c (unk_lang_parser): Add "struct parser_state"
8309 argument.
8310 * language.h (struct language_defn) <la_parser>: Likewise.
8311 * parse.c (expout, expout_size, expout_ptr): Remove variables.
8312 (initialize_expout): Add "struct parser_state" argument.
8313 Rewrite function to use the parser state.
8314 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8315 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8316 write_exp_elt_longcst, write_exp_elt_dblcst,
8317 write_exp_elt_decfloatcst, write_exp_elt_type,
8318 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8319 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8320 write_dollar_variable): Likewise.
8321 (parse_exp_in_context_1): Use parser state.
8322 (insert_type_address_space): Add "struct parser_state" argument.
8323 Use parser state.
8324 (increase_expout_size): New function.
8325 * parser-defs.h: Forward declare "struct language_defn" and
8326 "struct parser_state".
8327 (expout, expout_size, expout_ptr): Remove extern declarations.
8328 (parse_gdbarch, parse_language): Rewrite macro declarations to
8329 accept the parser state.
8330 (struct parser_state): New struct.
8331 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8332 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8333 write_exp_elt_decfloatcst, write_exp_elt_type,
8334 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8335 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8336 write_exp_msymbol, write_dollar_variable,
8337 mark_struct_expression, insert_type_address_space): Add "struct
8338 parser_state" argument.
8339 (increase_expout_size): New function.
8340 * utils.c (do_clear_parser_state): New function.
8341 (make_cleanup_clear_parser_state): Likewise.
8342 * utils.h (make_cleanup_clear_parser_state): New function
8343 prototype.
8344 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8345 Update calls to write_exp* in order to pass the parser state.
8346 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8347 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8348 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8349 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8350 * stap-probe.c (stap_parse_register_operand): Likewise.
8351 (stap_parse_single_operand): Likewise.
8352 (stap_parse_argument_1): Likewise.
8353 (stap_parse_argument): Use parser state.
8354 * stap-probe.h: Include "parser-defs.h".
8355 (struct stap_parse_info) <pstate>: New field.
8356 * c-exp.y (parse_type): Rewrite to use parser state.
8357 (yyparse): Redefine to c_parse_internal.
8358 (pstate): New global variable.
8359 (parse_number): Add "struct parser_state" argument.
8360 (write_destructor_name): Likewise.
8361 (type_exp): Update calls to write_exp* and similars in order to
8362 use parser state.
8363 (exp1, exp, variable, qualified_name, space_identifier,
8364 typename, typebase): Likewise.
8365 (write_destructor_name, parse_number, lex_one_token,
8366 classify_name, classify_inner_name, c_parse): Add "struct
8367 parser_state" argument. Update function to use parser state.
8368 * c-lang.h: Forward declare "struct parser_state".
8369 (c_parse): Add "struct parser_state" argument.
8370 * ada-exp.y (parse_type): Rewrite macro to use parser state.
8371 (yyparse): Redefine macro to ada_parse_internal.
8372 (pstate): New variable.
8373 (write_int, write_object_renaming, write_var_or_type,
8374 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8375 type_int, type_long, type_long_long, type_float, type_double,
8376 type_long_double, type_char, type_boolean, type_system_address):
8377 Add "struct parser_state" argument.
8378 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8379 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8380 var_or_type, aggregate, aggregate_component_list,
8381 positional_list, others, component_group,
8382 component_associations): Update calls to write_exp* and similar
8383 functions in order to use parser state.
8384 (ada_parse, write_var_from_sym, write_int,
8385 write_exp_op_with_string, write_object_renaming,
8386 find_primitive_type, write_selectors, write_ambiguous_var,
8387 write_var_or_type, write_name_assoc, type_int, type_long,
8388 type_long_long, type_float, type_double, type_long_double,
8389 type_char, type_boolean, type_system_address): Add "struct
8390 parser_state" argument. Adjust function to use parser state.
8391 * ada-lang.c (parse): Likewise.
8392 * ada-lang.h: Forward declare "struct parser_state".
8393 (ada_parse): Add "struct parser_state" argument.
8394 * ada-lex.l (processInt, processReal): Likewise. Adjust all
8395 calls to both functions.
8396 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8397 parser state.
8398 (yyparse): Redefine macro to f_parse_internal.
8399 (pstate): New variable.
8400 (parse_number): Add "struct parser_state" argument.
8401 (type_exp, exp, subrange, typebase): Update calls to write_exp*
8402 and similars in order to use parser state.
8403 (parse_number): Adjust code to use parser state.
8404 (yylex): Likewise.
8405 (f_parse): New function.
8406 * f-lang.h: Forward declare "struct parser_state".
8407 (f_parse): Add "struct parser_state" argument.
8408 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8409 parser state.
8410 (yyparse): Redefine macro for java_parse_internal.
8411 (pstate): New variable.
8412 (push_expression_name, push_expression_name, insert_exp): Add
8413 "struct parser_state" argument.
8414 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8415 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8416 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8417 PostIncrementExpression, PostDecrementExpression,
8418 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8419 UnaryExpressionNotPlusMinus, CastExpression,
8420 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8421 RelationalExpression, EqualityExpression, AndExpression,
8422 ExclusiveOrExpression, InclusiveOrExpression,
8423 ConditionalAndExpression, ConditionalOrExpression,
8424 ConditionalExpression, Assignment, LeftHandSide): Update
8425 calls to write_exp* and similars in order to use parser state.
8426 (parse_number): Ajust code to use parser state.
8427 (yylex): Likewise.
8428 (java_parse): New function.
8429 (push_variable): Add "struct parser_state" argument. Adjust
8430 code to user parser state.
8431 (push_fieldnames, push_qualified_expression_name,
8432 push_expression_name, insert_exp): Likewise.
8433 * jv-lang.h: Forward declare "struct parser_state".
8434 (java_parse): Add "struct parser_state" argument.
8435 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8436 parser state.
8437 (yyparse): Redefine macro to m2_parse_internal.
8438 (pstate): New variable.
8439 (type_exp, exp, fblock, variable, type): Update calls to
8440 write_exp* and similars to use parser state.
8441 (yylex): Likewise.
8442 (m2_parse): New function.
8443 * m2-lang.h: Forward declare "struct parser_state".
8444 (m2_parse): Add "struct parser_state" argument.
8445 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8446 * objc-lang.h: Forward declare "struct parser_state".
8447 (end_msglist): Add "struct parser_state" argument.
8448 * p-exp.y (parse_type): Rewrite macro to use parser state.
8449 (yyparse): Redefine macro to pascal_parse_internal.
8450 (pstate): New variable.
8451 (parse_number): Add "struct parser_state" argument.
8452 (type_exp, exp1, exp, qualified_name, variable): Update calls to
8453 write_exp* and similars in order to use parser state.
8454 (parse_number, yylex): Adjust code to use parser state.
8455 (pascal_parse): New function.
8456 * p-lang.h: Forward declare "struct parser_state".
8457 (pascal_parse): Add "struct parser_state" argument.
8458 * go-exp.y (parse_type): Rewrite macro to use parser state.
8459 (yyparse): Redefine macro to go_parse_internal.
8460 (pstate): New variable.
8461 (parse_number): Add "struct parser_state" argument.
8462 (type_exp, exp1, exp, variable, type): Update calls to
8463 write_exp* and similars in order to use parser state.
8464 (parse_number, lex_one_token, classify_name, yylex): Adjust code
8465 to use parser state.
8466 (go_parse): Likewise.
8467 * go-lang.h: Forward declare "struct parser_state".
8468 (go_parse): Add "struct parser_state" argument.
8469
8470 2014-03-27 Doug Evans <dje@google.com>
8471
8472 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
8473
8474 2014-03-27 Doug Evans <dje@google.com>
8475
8476 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8477 Remove argument abbrev_section. All callers updated.
8478
8479 2014-03-27 Doug Evans <dje@google.com>
8480
8481 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8482 addr_base, ranges_base.
8483
8484 2014-03-26 Keith Seitz <keiths@redhat.com>
8485
8486 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8487 types, not VAR_DOMAIN.
8488
8489 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
8490
8491 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8492 "ra" registers.
8493 * features/nios2-linux.c: Regenerated.
8494 * features/nios2.c: Regenerated.
8495
8496 2014-03-25 Pedro Alves <palves@redhat.com>
8497
8498 * cli/cli-script.c (script_from_file): Force the interpreter to
8499 sync mode.
8500
8501 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8502
8503 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8504 small stack allocation.
8505
8506 2014-03-24 Tristan Gingold <gingold@adacore.com>
8507
8508 * darwin-nat.c (exc_server): Remove unused prototype.
8509 (darwin_dump_message): Correctly display data on x86_64.
8510 (darwin_encode_reply): Fix style.
8511 Add comments and fix indentation.
8512
8513 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
8514
8515 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8516
8517 2014-03-22 Doug Evans <xdje42@gmail.com>
8518
8519 * infcmd.c: Whitespace fixes.
8520 (interrupt_command): Merge two function comments into one.
8521
8522 2014-03-22 Doug Evans <xdje42@gmail.com>
8523
8524 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8525 All uses updated.
8526
8527 2014-03-22 Yao Qi <yao@codesourcery.com>
8528
8529 * remote.c (target_read_live_memory): Remove.
8530 (memory_xfer_live_readonly_partial): Rename it to
8531 remote_xfer_live_readonly_partial. Remove argument 'object'.
8532 All callers updated. Call remote_read_bytes_1
8533 instead of target_read_live_memory.
8534 * tracepoint.c (set_traceframe_number): Remove.
8535 (make_cleanup_restore_traceframe_number): Likewise .
8536 * tracepoint.h (set_traceframe_number): Remove declaration.
8537 (make_cleanup_restore_traceframe_number): Likewise.
8538
8539 2014-03-22 Yao Qi <yao@codesourcery.com>
8540
8541 * remote.c (remote_read_bytes): Move code on reading from the
8542 remote stub to ...
8543 (remote_read_bytes_1): ... here. New function.
8544
8545 2014-03-22 Yao Qi <yao@codesourcery.com>
8546
8547 * ctf.c (ctf_xfer_partial): Check the return value of
8548 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
8549 return TARGET_XFER_UNAVAILABLE.
8550 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8551 * target.c (target_read_live_memory): Move it to remote.c.
8552 (memory_xfer_live_readonly_partial): Likewise.
8553 (memory_xfer_partial_1): Move some code to remote_read_bytes.
8554 * remote.c (target_read_live_memory): Moved from target.c.
8555 (memory_xfer_live_readonly_partial): Likewise.
8556 (remote_read_bytes): Factored out from
8557 memory_xfer_partial_1.
8558
8559 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
8560
8561 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
8562 NULL pointer.
8563
8564 2014-03-21 Pedro Alves <palves@redhat.com>
8565
8566 * infrun.c (normal_stop): Extend comment.
8567
8568 2014-03-21 Hui Zhu <hui@codesourcery.com>
8569 Pedro Alves <palves@redhat.com>
8570
8571 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
8572 static buffer.
8573 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
8574 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8575 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
8576
8577 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
8578
8579 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
8580 `z' formatted output modifier.
8581
8582 2014-03-20 Tom Tromey <tromey@redhat.com>
8583 Sergio Durigan Junior <sergiodj@redhat.com>
8584
8585 * probe.c (parse_probes): Turn assert into an ordinary error.
8586 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
8587 exceptions when parsing probes. Rearrange the code for clarity.
8588
8589 2014-03-20 Tom Tromey <tromey@redhat.com>
8590
8591 PR gdb/14135
8592 * top.c (execute_command): Only dispatch events if the command
8593 started the target.
8594
8595 2014-03-20 Tom Tromey <tromey@redhat.com>
8596
8597 PR cli/15718
8598 * infcall.c: Include event-top.h.
8599 (run_inferior_call): Call async_disable_stdin if needed.
8600
8601 2014-03-20 Pedro Alves <palves@redhat.com>
8602
8603 * infrun.c (prepare_to_proceed): Delete.
8604 (thread_still_needs_step_over): New function.
8605 (find_thread_needs_step_over): New function.
8606 (proceed): If the current thread needs a step-over, set its
8607 steping_over_breakpoint flag. Adjust to use
8608 find_thread_needs_step_over instead of prepare_to_proceed.
8609 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
8610 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
8611 breakpoint.
8612 (switch_back_to_stepped_thread): Step over breakpoints of all
8613 threads not the stepping thread, before switching back to the
8614 stepping thread.
8615
8616 2014-03-20 Pedro Alves <palves@redhat.com>
8617
8618 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
8619 extern.
8620 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
8621 * infrun.c (saved_singlestep_ptid)
8622 (stepping_past_singlestep_breakpoint): Delete.
8623 (resume): Remove stepping_past_singlestep_breakpoint handling.
8624 (proceed): Store the prev_pc of the stepping thread too.
8625 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
8626 singlestep_pc.
8627 (enum infwait_states): Delete infwait_thread_hop_state.
8628 (struct execution_control_state) <hit_singlestep_breakpoint>: New
8629 field.
8630 (handle_inferior_event): Adjust.
8631 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
8632 handling and the thread-hop code. Before removing single-step
8633 breakpoints, check whether the thread hit a single-step breakpoint
8634 of another thread. If it did, the trap is not a random signal.
8635 (switch_back_to_stepped_thread): If the event thread hit a
8636 single-step breakpoint, unblock it before switching to the
8637 stepping thread. Handle the case of the stepped thread having
8638 advanced already.
8639 (keep_going): Handle the case of the current thread moving past a
8640 single-step breakpoint.
8641
8642 2014-03-20 Pedro Alves <palves@redhat.com>
8643
8644 PR breakpoints/7143
8645 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
8646 are being stepped over.
8647 (breakpoint_address_match): Make extern.
8648 * breakpoint.h (breakpoint_address_match): New declaration.
8649 * inferior.h (stepping_past_instruction_at): New declaration.
8650 * infrun.c (struct step_over_info): New type.
8651 (step_over_info): New global.
8652 (set_step_over_info, clear_step_over_info)
8653 (stepping_past_instruction_at): New functions.
8654 (handle_inferior_event): Clear the step-over info when
8655 trap_expected is cleared.
8656 (resume): Remove now stale comment.
8657 (clear_proceed_status): Clear step-over info.
8658 (proceed): Adjust step-over handling to set or clear the step-over
8659 info instead of removing all breakpoints.
8660 (handle_signal_stop): When setting up a thread-hop, don't remove
8661 breakpoints here.
8662 (stop_stepping): Clear step-over info.
8663 (keep_going): Adjust step-over handling to set or clear step-over
8664 info and then always inserting breakpoints, instead of removing
8665 all breakpoints when stepping over one.
8666
8667 2014-03-20 Pedro Alves <palves@redhat.com>
8668
8669 * infrun.c (previous_inferior_ptid): Adjust comment.
8670 (deferred_step_ptid): Delete.
8671 (infrun_thread_ptid_changed, prepare_to_proceed)
8672 (init_wait_for_inferior): Adjust.
8673 (handle_signal_stop): Delete deferred_step_ptid handling.
8674
8675 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8676
8677 PR gdb/15358
8678 * defs.h (sync_quit_force_run): New declaration.
8679 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
8680 * event-top.c (async_sigterm_handler): New declaration.
8681 (async_sigterm_token): New variable.
8682 (async_init_signals): Create also async_sigterm_token.
8683 (async_sigterm_handler): New function.
8684 (sync_quit_force_run): New variable.
8685 (handle_sigterm): Replace quit_force call by other calls.
8686 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
8687
8688 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
8689
8690 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
8691 offset into SPE pseudo registers.
8692
8693 2014-03-18 Pedro Alves <palves@redhat.com>
8694
8695 PR gdb/13860
8696 * inferior.h (print_stop_event): Declare.
8697 * infrun.c (print_stop_event): New, factored out from ...
8698 (normal_stop): ... this.
8699 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
8700 of bpstat_print/print_stack_frame.
8701
8702 2014-03-17 Tom Tromey <tromey@redhat.com>
8703
8704 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
8705
8706 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
8707
8708 * ada-lang.c (decode_constrained_packed_array): Perform a
8709 minimal coercion for reference with coerce_ref instead of
8710 ada_coerce_ref.
8711
8712 2014-03-17 Tristan Gingold <gingold@adacore.com>
8713
8714 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
8715 (darwin_solib_create_inferior_hook): Emit a warning if version
8716 is unhandled.
8717
8718 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
8719
8720 * python/py-value.c (get_field_flag): Cast flag_name argument to
8721 PyObject_GetAttrString to support Python 2.4.
8722
8723 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8724
8725 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
8726 (Global Maintainers): Remove Jan Kratochvil.
8727
8728 2014-03-14 Pedro Alves <palves@redhat.com>
8729
8730 * inferior.h (terminal_ours_for_output): Rename to ...
8731 (child_terminal_ours_for_output): ... this.
8732 (terminal_save_ours): Rename to ...
8733 (child_terminal_save_ours): ... this.
8734 (terminal_ours): Rename to ...
8735 (child_terminal_ours): ... this.
8736 (terminal_inferior): Rename to ...
8737 (child_terminal_inferior): ... this.
8738 (terminal_init_inferior): Rename to ...
8739 (child_terminal_init_inferior): ... this.
8740 (terminal_init_inferior_with_pgrp): Rename to ...
8741 (child_terminal_init_inferior_with_pgrp): ... this.
8742 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
8743 (child_terminal_init_with_pgrp): ... this.
8744 (terminal_save_ours): Rename to ...
8745 (child_terminal_save_ours): ... this.
8746 (terminal_init_inferior): Rename to ...
8747 (child_terminal_init): ... this. Adjust.
8748 (terminal_inferior): Rename to ...
8749 (child_terminal_inferior): ... this.
8750 (terminal_ours_for_output): Rename to ...
8751 (child_terminal_ours_for_output): ... this. Adjust.
8752 (terminal_ours): Rename to ...
8753 (child_terminal_ours): ... this.
8754 (terminal_ours_1): Rename to ...
8755 (child_terminal_ours_1): ... this. Adjust.
8756 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
8757 * windows-nat.c (do_initial_windows_stuff): Adjust.
8758 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
8759 (gnu_terminal_init): ... this. Adjust.
8760 (gnu_target): Adjust.
8761 * inf-child.c (inf_child_target): Adjust.
8762
8763 2014-03-13 Doug Evans <xdje42@gmail.com>
8764
8765 PR guile/16612
8766 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
8767 new eq?-hashtab.
8768
8769 2014-03-13 Doug Evans <xdje42@gmail.com>
8770
8771 * value.c (record_latest_value): Call release_value_or_incref
8772 instead of release_value.
8773
8774 2014-03-13 Pedro Alves <palves@redhat.com>
8775
8776 * procfs.c (procfs_target): Don't override to_shortname,
8777 to_longname or to_doc.
8778
8779 2014-03-13 Pedro Alves <palves@redhat.com>
8780
8781 * inf-child.c (inf_child_open, inf_child_target): Don't mention
8782 Unix in user visible strings.
8783
8784 2014-03-12 Stan Shebs <stan@codesourcery.com>
8785
8786 * gdbtypes.h: Annotate comments for Doxygen, add a page
8787 block comment with some general info.
8788
8789 2014-03-12 Pedro Alves <palves@redhat.com>
8790
8791 * infcmd.c (prepare_execution_command): New function, factored out
8792 from several execution commands.
8793 (run_command_1, continue_command, step_1, jump_command)
8794 (signal_command, until_command, advance_command, finish_command)
8795 (attach_command): Use prepare_execution_command.
8796
8797 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
8798
8799 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
8800 (MAX_BPTS): Define.
8801 (MAX_WPTS): Define.
8802 (struct arm_linux_thread_points): Removed.
8803 (struct arm_linux_process_info): New.
8804 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
8805 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
8806 (arm_linux_find_breakpoints_by_tid): Removed.
8807 (struct arch_lwp_info): New.
8808 (arm_linux_find_process_pid): New functions.
8809 (arm_linux_add_process): New functions.
8810 (arm_linux_process_info_get): New functions.
8811 (arm_linux_forget_process): New function.
8812 (arm_linux_get_debug_reg_state): New function.
8813 (struct update_registers_data): New.
8814 (update_registers_callback): New function.
8815 (arm_linux_insert_hw_breakpoint1): Updated.
8816 (arm_linux_remove_hw_breakpoint1): Updated.
8817 (arm_linux_insert_hw_breakpoint): Updated.
8818 (arm_linux_remove_hw_breakpoint): Updated.
8819 (arm_linux_insert_watchpoint): Updated.
8820 (arm_linux_remove_watchpoint): Updated.
8821 (arm_linux_new_thread): Updated.
8822 (arm_linux_prepare_to_resume): New function.
8823 (arm_linux_new_fork): New function.
8824 (_initialize_arm_linux_nat): Updated.
8825
8826 2014-03-12 Pedro Alves <palves@redhat.com>
8827
8828 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
8829
8830 2014-03-12 Tom Tromey <tromey@redhat.com>
8831
8832 * inf-child.c (return_zero): New function.
8833 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
8834 * aix-thread.c (aix_thread_inferior_created): New function.
8835 (aix_thread_attach): Remove.
8836 (init_aix_thread_ops): Don't set to_attach.
8837 (_initialize_aix_thread): Register inferior_created observer.
8838 * corelow.c (init_core_ops): Don't set to_attach or
8839 to_create_inferior.
8840 * exec.c (init_exec_ops): Don't set to_attach or
8841 to_create_inferior.
8842 * infcmd.c (run_command_1): Use find_run_target. Make direct
8843 target calls.
8844 (attach_command): Use find_attach_target. Make direct target
8845 calls.
8846 * record-btrace.c (init_record_btrace_ops): Don't set
8847 to_create_inferior.
8848 * record-full.c (record_full_can_async_p, record_full_is_async_p):
8849 Remove.
8850 (init_record_full_ops, init_record_full_core_ops): Update. Don't
8851 set to_create_inferior.
8852 * target.c (complete_target_initialization): Add assertion.
8853 (target_create_inferior): Remove.
8854 (find_default_attach, find_default_create_inferior): Remove.
8855 (find_attach_target, find_run_target): New functions.
8856 (find_default_is_async_p, find_default_can_async_p)
8857 (target_supports_non_stop, target_attach): Remove.
8858 (init_dummy_target): Don't set to_create_inferior or
8859 to_supports_non_stop.
8860 * target.h (struct target_ops) <to_attach>: Add comment. Remove
8861 TARGET_DEFAULT_FUNC.
8862 <to_create_inferior>: Add comment.
8863 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
8864 TARGET_DEFAULT_RETURN.
8865 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
8866 (find_attach_target, find_run_target): Declare.
8867 (target_create_inferior): Remove.
8868 (target_has_execution_1): Update comment.
8869 (target_supports_non_stop): Remove.
8870 * target-delegates.c: Rebuild.
8871
8872 2014-03-12 Pedro Alves <palves@redhat.com>
8873
8874 * inf-child.h: Update comment to not mention Unix.
8875
8876 2014-03-12 Pedro Alves <palves@redhat.com>
8877
8878 * inf-child.c: Update top comment to not mention Unix. Add
8879 generic comment describing how this target is meant to be used.
8880 (inf_child_post_attach, inf_child_post_startup_inferior)
8881 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
8882 Unix in comment.
8883
8884 2014-03-12 Pedro Alves <palves@redhat.com>
8885
8886 * nto-procfs.c: Include inf-child.h.
8887 (procfs_ops): Delete global.
8888 (procfs_can_run): Delete method.
8889 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
8890 target pointer instead of referencing procfs_ops.
8891 (procfs_prepare_to_store): Delete.
8892 (init_procfs_ops): Delete function.
8893 (procfs_target): New function, based on init_procfs_ops, but
8894 inherit inf_child_target.
8895 (_initialize_procfs): Use procfs_target.
8896
8897 2014-03-12 Pedro Alves <palves@redhat.com>
8898
8899 * windows-nat.c: Include inf-child.h.
8900 (windows_ops): Delete global.
8901 (windows_open, windows_prepare_to_store, windows_can_run): Delete
8902 methods.
8903 (init_windows_ops): Delete function.
8904 (windows_target): New function, based on init_windows_ops, but
8905 inherit inf_child_target.
8906 (_initialize_windows_nat): Use windows_target. Install x86
8907 specific target methods here.
8908
8909 2014-03-10 Doug Evans <xdje42@gmail.com>
8910
8911 * guile/guile.c (call_initialize_gdb_module): New function.
8912 (initialize_guile): Replace call to scm_init_guile with call to
8913 scm_with_guile.
8914
8915 2014-03-10 Joel Brobecker <brobecker@adacore.com>
8916
8917 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
8918 in call to TYPE_CODE macro.
8919
8920 2014-03-10 Jerome Guitton <guitton@adacore.com>
8921
8922 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
8923 Resolve tagged types to full view.
8924
8925 2014-03-10 Hui Zhu <hui@codesourcery.com>
8926
8927 * target.h (target_insert_breakpoint): Remove "hardware" from its
8928 comments.
8929
8930 2014-03-07 Doug Evans <dje@google.com>
8931
8932 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
8933
8934 2014-03-07 Doug Evans <dje@google.com>
8935
8936 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
8937 Remove unused local comp_dir_attr. Assert exactly one of
8938 stub_comp_unit_die, stub_comp_dir is non-NULL.
8939
8940 2014-03-07 Joel Brobecker <brobecker@adacore.com>
8941
8942 * target.h (complete_target_initialization, add_target):
8943 Add comment.
8944
8945 2014-03-07 Pedro Alves <palves@redhat.com>
8946
8947 * go32-nat.c: Include inf-child.h.
8948 (go32_ops): Delete global.
8949 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
8950 Delete methods.
8951 (go32_create_inferior): Push the passed in target pointer instead
8952 of referencing go32_ops.
8953 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
8954 (go32_target): New function, based on init_go32_ops, but inherit
8955 inf_child_target.
8956 (_initialize_go32_nat): Use go32_target. Move parts of
8957 init_go32_ops here.
8958
8959 2014-03-06 Joel Brobecker <brobecker@adacore.com>
8960
8961 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
8962 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
8963 SYMBOL_VALUE_ADDRESS.
8964 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
8965
8966 2014-03-06 Yao Qi <yao@codesourcery.com>
8967
8968 * breakpoint.c (get_tracepoint_by_number): Remove argument
8969 optional_p. All callers updated. Adjust comments. Update
8970 output message.
8971 * breakpoint.h (get_tracepoint_by_number): Update declaration.
8972
8973 2014-03-06 Yao Qi <yao@codesourcery.com>
8974
8975 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
8976 early if get_number returns zero. Use 'p' instead of 'args'.
8977
8978 2014-03-06 Yao Qi <yao@codesourcery.com>
8979
8980 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
8981 message.
8982
8983 2014-03-06 Yao Qi <yao@codesourcery.com>
8984
8985 PR breakpoints/16508
8986 * tracepoint.c (check_trace_running): New function.
8987 (trace_find_command): Move code to check_trace_running and
8988 call check_trace_running.
8989 (trace_find_pc_command): Likewise.
8990 (trace_find_tracepoint_command): Likewise.
8991 (trace_find_line_command): Likewise.
8992 (trace_find_range_command): Likewise.
8993 * tracepoint.h (check_trace_running): Likewise.
8994 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
8995
8996 2014-03-06 Yao Qi <yao@codesourcery.com>
8997
8998 * target.h (struct target_ops) <to_traceframe_info>: Use
8999 TARGET_DEFAULT_NORETURN (tcomplain ()).
9000 * target-delegates.c: Regenerated.
9001
9002 2014-03-05 Pedro Alves <palves@redhat.com>
9003
9004 PR gdb/16575
9005 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9006 void. Update comment.
9007 (dcache_xfer_memory): Delete.
9008 (dcache_read_memory_partial): New, based on the read bits of
9009 dcache_xfer_memory.
9010 (dcache_update): Add status parameter. Use ULONGEST for len, and
9011 adjust. Discard cache lines if the reason for the update was
9012 error.
9013 * dcache.h (dcache_xfer_memory): Delete declaration.
9014 (dcache_read_memory_partial): New declaration.
9015 (dcache_update): Update prototype.
9016 * target.c (raw_memory_xfer_partial): Update the dcache here.
9017 (memory_xfer_partial_1): Don't handle dcache writes here.
9018
9019 2014-03-05 Mike Frysinger <vapier@gentoo.org>
9020
9021 * remote-sim.c (gdbsim_load): Add const to prog.
9022
9023 2014-03-03 Tom Tromey <tromey@redhat.com>
9024
9025 * elfread.c (probe_key): Change to bfd_data.
9026 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9027 now per-BFD, not per-objfile.
9028 * stap-probe.c (stap_probe_destroy): Update comment.
9029 (handle_stap_probe): Allocate on the per-BFD obstack.
9030
9031 2014-03-03 Tom Tromey <tromey@redhat.com>
9032
9033 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9034 * breakpoint.c (create_longjmp_master_breakpoint): Use
9035 get_probe_address.
9036 (add_location_to_breakpoint, bkpt_probe_insert_location)
9037 (bkpt_probe_remove_location): Update.
9038 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9039 * elfread.c (elf_symfile_relocate_probe): Remove.
9040 (elf_probe_fns): Update.
9041 (insert_exception_resume_breakpoint): Change type of "probe"
9042 parameter to bound_probe.
9043 (check_exception_resume): Update.
9044 * objfiles.c (objfile_relocate1): Don't relocate probes.
9045 * probe.c (bound_probe_s): New typedef.
9046 (parse_probes): Use get_probe_address. Set sal's objfile.
9047 (find_probe_by_pc): Return a bound_probe.
9048 (collect_probes): Return a VEC(bound_probe_s).
9049 (compare_probes): Update.
9050 (gen_ui_out_table_header_info): Change type of "probes"
9051 parameter. Update.
9052 (info_probes_for_ops): Update.
9053 (get_probe_address): New function.
9054 (probe_safe_evaluate_at_pc): Update.
9055 * probe.h (struct probe_ops) <get_probe_address>: New field.
9056 <set_semaphore, clear_semaphore>: Add objfile parameter.
9057 (struct probe) <objfile>: Remove field.
9058 <arch>: New field.
9059 <address>: Update comment.
9060 (struct bound_probe): New.
9061 (find_probe_by_pc): Return a bound_probe.
9062 (get_probe_address): Declare.
9063 * solib-svr4.c (struct probe_and_action) <address>: New field.
9064 (hash_probe_and_action, equal_probe_and_action): Update.
9065 (register_solib_event_probe): Add address parameter.
9066 (solib_event_probe_at): Update.
9067 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9068 get_probe_address.
9069 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9070 (stap_get_probe_address): New function.
9071 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9072 (compile_probe_arg): Update.
9073 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9074 address.
9075 (handle_stap_probe): Don't relocate the probe.
9076 (stap_relocate): Remove.
9077 (stap_gen_info_probes_table_values): Update.
9078 (stap_probe_ops): Remove stap_relocate.
9079 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9080 (debug_sym_probe_fns): Update.
9081 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9082 * symtab.c (init_sal): Use memset.
9083 * symtab.h (struct symtab_and_line) <objfile>: New field.
9084 * tracepoint.c (start_tracing, stop_tracing): Update.
9085
9086 2014-03-03 Tom Tromey <tromey@redhat.com>
9087
9088 * probe.h (parse_probes, find_probe_by_pc)
9089 (find_probes_in_objfile): Fix comments.
9090
9091 2014-03-02 Doug Evans <xdje42@gmail.com>
9092
9093 * infrun.c (handle_signal_stop): Replace test for
9094 TARGET_WAITKIND_STOPPED with an assert.
9095
9096 2014-03-02 Doug Evans <xdje42@gmail.com>
9097
9098 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9099
9100 2014-03-02 Doug Evans <xdje42@gmail.com>
9101
9102 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9103
9104 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9105
9106 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9107
9108 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9109
9110 * i386obsd-nat.c: Include "obsd-nat.h".
9111 (_initialize_i386obsd_nat): Call obsd_add_target instead of
9112 add_target.
9113 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9114
9115 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9116
9117 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9118
9119 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9120
9121 * mips64obsd-nat.c: Include "obsd-nath".
9122 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9123 add_target
9124 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9125
9126 2014-03-01 Mark Kettenis <kettenis@gnu.org>
9127
9128 * amd64obsd-nat.c: Include "obsd-nat,h.
9129 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9130 add_target.
9131 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9132
9133 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
9134
9135 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9136 (find_overload_match): Update call to find_oload_champ.
9137 (find_oload_champ_namespace_loop): Likewise
9138
9139 2014-02-28 Mark Kettenis <kettenis@gnu.org>
9140
9141 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9142
9143 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9144 * config/sparc/obsd64.mh: New file.
9145 * sparc64obsd-nat.c: New file.
9146
9147 * obsd-nat.h: New file.
9148 * obsd-nat.c: New file.
9149 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9150 (ALLDEPFILES): Add obsd-nat.c.
9151
9152 2014-02-28 Tom Tromey <tromey@redhat.com>
9153
9154 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
9155 * cli-out.h (cli_ui_out_impl): Now const.
9156 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
9157 * ui-out.c (struct ui_out) <impl>: Now const.
9158 (default_ui_out_impl): Now const.
9159 (ui_out_new): Make 'impl' parameter const.
9160 * ui-out.h (ui_out_new): Update.
9161
9162 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9163
9164 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9165
9166 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9167
9168 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9169
9170 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9171
9172 Additional PR 8882 fix.
9173 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9174
9175 2014-02-27 Pedro Alves <palves@redhat.com>
9176
9177 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9178 isn't set.
9179
9180 2014-02-27 Pedro Alves <palves@redhat.com>
9181
9182 PR 12702
9183 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9184 * nat/linux-waitpid.c: Include string.h.
9185 (status_to_str): Moved here and made extern.
9186 * nat/linux-waitpid.h (status_to_str): New declaration.
9187
9188 2014-02-27 Hui Zhu <hui@codesourcery.com>
9189
9190 PR 12702
9191 * infrun.c (ptid_match): Move ...
9192 * common/ptid.c (ptid_match): ... here.
9193 * inferior.h (ptid_match): Move ...
9194 * common/ptid.h (ptid_match): ... here.
9195
9196 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9197
9198 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9199 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9200 gdb_target_obs.
9201
9202 2014-02-27 Mark Kettenis <kettenis@gnu.org>
9203
9204 * obsd-tdep.c (obsd_auxv_parse): New function.
9205 (obsd_init_abi): Set auxv_parse.
9206
9207 * gdbarch.sh (auxv_parse): New.
9208 * gdbarch.h: Regenerated.
9209 * gdbarch.c: Regenerated.
9210 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9211
9212 2014-02-26 Ludovic Courtès <ludo@gnu.org>
9213
9214 * guile/scm-value.c (gdbscm_history_append_x): New function.
9215 (value_functions): Add it.
9216
9217 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9218
9219 * dwarf2read.c (attr_value_as_address): New function.
9220 (dwarf2_find_base_address, read_call_site_scope): Use
9221 attr_value_as_address in place of DW_ADDR.
9222 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9223 the low and high addresses. Slight rework of the handling
9224 of the high pc being a constant form, and limit it to
9225 DWARF verson 4 or higher.
9226 (dwarf2_record_block_ranges): Likewise.
9227 (read_partial_die): Likewise.
9228 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9229
9230 2014-02-26 Tom Tromey <tromey@redhat.com>
9231
9232 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9233
9234 2014-02-26 Tom Tromey <tromey@redhat.com>
9235
9236 * elfread.c (elf_read_minimal_symbols): Return early if
9237 minimal symbols have already been read. Add "ei" parameter.
9238 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9239 * minsyms.c (prim_record_minimal_symbol_full): Update.
9240 * objfiles.h (struct objstats) <n_minsyms>: Move...
9241 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9242 * symmisc.c (print_objfile_statistics): Update.
9243
9244 2014-02-26 Tom Tromey <tromey@redhat.com>
9245
9246 * elfread.c (elf_read_minimal_symbols): New function, from
9247 elf_symfile_read.
9248 (elf_symfile_read): Call it.
9249
9250 2014-02-26 Tom Tromey <tromey@redhat.com>
9251
9252 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9253 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9254 (lookup_minimal_symbol_solib_trampoline)
9255 (lookup_minimal_symbol_by_pc_section_1)
9256 (lookup_minimal_symbol_and_objfile): Update.
9257 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9258 Don't allocate a minimal symbol if minsyms have already been read.
9259 (build_minimal_symbol_hash_tables): Update.
9260 (install_minimal_symbols): Do nothing if minsyms already read.
9261 Use the per-BFD obstack.
9262 (terminate_minimal_symbol_table): Use the per-BFD obstack.
9263 * objfiles.c (allocate_objfile): Call
9264 terminate_minimal_symbol_table later.
9265 (have_minimal_symbols): Update.
9266 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9267 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9268 Move from struct objfile.
9269 <minsyms_read>: New field.
9270 (struct objfile) <msymbols, minimal_symbol_count,
9271 msymbol_hash, msymbol_demangled_hash>: Move.
9272 (ALL_OBJFILE_MSYMBOLS): Update.
9273 * symfile.c (read_symbols): Set minsyms_read.
9274 (reread_symbols): Update.
9275 * symmisc.c (dump_objfile, dump_msymbols): Update.
9276
9277 2014-02-26 Tom Tromey <tromey@redhat.com>
9278
9279 * minsyms.c (msymbols_sort): Remove.
9280 * minsyms.h (msymbols_sort): Remove.
9281 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9282 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9283 * elfread.c (elf_symtab_read): Don't add section offsets.
9284 * xcoffread.c (record_minimal_symbol): Don't add section offset
9285 to minimal symbol address.
9286 * somread.c (text_offset, data_offset): Remove.
9287 (som_symtab_read): Don't add section offsets to minimal symbol
9288 addresses.
9289 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9290 Don't add section offsets to minimal symbols.
9291 * coffread.c (coff_symtab_read): Don't add section offsets
9292 to minimal symbol addresses.
9293 * machoread.c (macho_symtab_add_minsym): Don't add section offset
9294 to minimal symbol addresses.
9295 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9296 section offset to minimal symbol addresses.
9297 * mdebugread.c (parse_partial_symbols): Don't add section
9298 offset to minimal symbol addresses.
9299 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9300 offset to minimal symbol addresses.
9301
9302 2014-02-26 Tom Tromey <tromey@redhat.com>
9303
9304 * ada-lang.c (ada_main_name): Update.
9305 (ada_add_standard_exceptions): Update.
9306 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9307 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9308 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9309 * auxv.c (ld_so_xfer_auxv): Update.
9310 * avr-tdep.c (avr_scan_prologue): Update.
9311 * ax-gdb.c (gen_var_ref): Update.
9312 * blockframe.c (get_pc_function_start)
9313 (find_pc_partial_function_gnu_ifunc): Update.
9314 * breakpoint.c (create_overlay_event_breakpoint)
9315 (create_longjmp_master_breakpoint)
9316 (create_std_terminate_master_breakpoint)
9317 (create_exception_master_breakpoint): Update.
9318 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9319 * c-valprint.c (c_val_print): Update.
9320 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9321 * common/agent.c (agent_look_up_symbols): Update.
9322 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9323 * dwarf2loc.c (call_site_to_target_addr): Update.
9324 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9325 * elfread.c (elf_gnu_ifunc_record_cache)
9326 (elf_gnu_ifunc_resolve_by_got): Update.
9327 * findvar.c (default_read_var_value): Update.
9328 * frame.c (inside_main_func): Update.
9329 * frv-tdep.c (frv_frame_this_id): Update.
9330 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9331 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9332 Update.
9333 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9334 (hppa_hpux_find_dummy_bpaddr): Update.
9335 * hppa-tdep.c (hppa_symbol_address): Update.
9336 * infcmd.c (until_next_command): Update.
9337 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9338 Update.
9339 * linespec.c (minsym_found, add_minsym): Update.
9340 * linux-nat.c (get_signo): Update.
9341 * linux-thread-db.c (inferior_has_bug): Update.
9342 * m32c-tdep.c (m32c_return_value)
9343 (m32c_m16c_address_to_pointer): Update.
9344 * m32r-tdep.c (m32r_frame_this_id): Update.
9345 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9346 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9347 * maint.c (maintenance_translate_address): Update.
9348 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9349 (frob_address): New function.
9350 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9351 frob_address. Rename parameter to "pc_in".
9352 (compare_minimal_symbols, compact_minimal_symbols): Use raw
9353 addresses.
9354 (find_solib_trampoline_target, minimal_symbol_upper_bound):
9355 Update.
9356 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9357 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9358 * objc-lang.c (find_objc_msgsend): Update.
9359 * objfiles.c (objfile_relocate1): Update.
9360 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9361 * p-valprint.c (pascal_val_print): Update.
9362 * parse.c (write_exp_msymbol): Update.
9363 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9364 (ppc_elfv2_skip_entrypoint): Update.
9365 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9366 * printcmd.c (build_address_symbolic, msym_info)
9367 (address_info): Update.
9368 * proc-service.c (ps_pglobal_lookup): Update.
9369 * psymtab.c (find_pc_sect_psymtab_closer)
9370 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9371 Change msymbol parameter to bound_minimal_symbol.
9372 * ravenscar-thread.c (get_running_thread_id): Update.
9373 * remote.c (remote_check_symbols): Update.
9374 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9375 address.
9376 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9377 * solib-dsbt.c (lm_base): Update.
9378 * solib-frv.c (lm_base, main_got): Update.
9379 * solib-irix.c (locate_base): Update.
9380 * solib-som.c (som_solib_create_inferior_hook)
9381 (link_map_start): Update.
9382 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9383 * solib-svr4.c (elf_locate_base, enable_break): Update.
9384 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9385 (flush_ea_cache): Update.
9386 * stabsread.c (define_symbol, scan_file_globals): Update.
9387 * stack.c (find_frame_funname): Update.
9388 * symfile-debug.c (debug_qf_expand_symtabs_matching)
9389 (debug_qf_find_pc_sect_symtab): Update.
9390 * symfile.c (simple_read_overlay_table)
9391 (simple_overlay_update): Update.
9392 * symfile.h (struct quick_symbol_functions)
9393 <find_pc_sect_symtab>: Change type of msymbol to
9394 bound_minimal_symbol.
9395 * symmisc.c (dump_msymbols): Update.
9396 * symtab.c (find_pc_sect_symtab_via_partial)
9397 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9398 (search_symbols, print_msymbol_info): Update.
9399 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9400 (MSYMBOL_VALUE_ADDRESS): Redefine.
9401 (BMSYMBOL_VALUE_ADDRESS): New macro.
9402 * tracepoint.c (scope_info): Update.
9403 * tui/tui-disasm.c (tui_find_disassembly_address)
9404 (tui_get_begin_asm_address): Update.
9405 * valops.c (find_function_in_inferior): Update.
9406 * value.c (value_static_field, value_fn_field): Update.
9407
9408 2014-02-26 Tom Tromey <tromey@redhat.com>
9409
9410 * ada-lang.c (ada_update_initial_language): Update.
9411 (ada_main_name, ada_has_this_exception_support): Update.
9412 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9413 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9414 * arm-tdep.c (arm_skip_stub): Update.
9415 * auxv.c (ld_so_xfer_auxv): Update.
9416 * avr-tdep.c (avr_scan_prologue): Update.
9417 * ax-gdb.c (gen_var_ref): Update.
9418 * breakpoint.c (struct breakpoint_objfile_data)
9419 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9420 type to bound_minimal_symbol.
9421 (create_overlay_event_breakpoint)
9422 (create_longjmp_master_breakpoint)
9423 (create_std_terminate_master_breakpoint)
9424 (create_exception_master_breakpoint): Update.
9425 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9426 * c-exp.y (classify_name): Update.
9427 * coffread.c (coff_symfile_read): Update.
9428 * common/agent.c (agent_look_up_symbols): Update.
9429 * d-lang.c (d_main_name): Update.
9430 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9431 * dec-thread.c (enable_dec_thread): Update.
9432 * dwarf2loc.c (call_site_to_target_addr): Update.
9433 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9434 * eval.c (evaluate_subexp_standard): Update.
9435 * findvar.c (struct minsym_lookup_data) <result>: Change type
9436 to bound_minimal_symbol.
9437 <objfile>: Remove.
9438 (minsym_lookup_iterator_cb, default_read_var_value): Update.
9439 * frame.c (inside_main_func): Update.
9440 * frv-tdep.c (frv_frame_this_id): Update.
9441 * gcore.c (call_target_sbrk): Update.
9442 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9443 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9444 Update.
9445 * go-lang.c (go_main_name): Update.
9446 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9447 (hppa_hpux_find_import_stub_for_addr): Update.
9448 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9449 Update. Change return type.
9450 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9451 type.
9452 * jit.c (jit_breakpoint_re_set_internal): Update.
9453 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9454 Update.
9455 * linux-nat.c (get_signo): Update.
9456 * linux-thread-db.c (inferior_has_bug): Update
9457 * m32c-tdep.c (m32c_return_value)
9458 (m32c_m16c_address_to_pointer): Update.
9459 * m32r-tdep.c (m32r_frame_this_id): Update.
9460 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9461 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9462 * minsyms.c (lookup_minimal_symbol_internal): Rename to
9463 lookup_minimal_symbol. Change return type.
9464 (lookup_minimal_symbol): Remove.
9465 (lookup_bound_minimal_symbol): Update.
9466 (lookup_minimal_symbol_text): Change return type.
9467 (lookup_minimal_symbol_solib_trampoline): Change return type.
9468 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9469 (lookup_minimal_symbol_solib_trampoline): Change return type.
9470 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9471 * objc-lang.c (lookup_objc_class, lookup_child_selector)
9472 (value_nsstring, find_imps): Update.
9473 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9474 * p-lang.c (pascal_main_name): Update.
9475 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9476 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9477 * proc-service.c (ps_pglobal_lookup): Update.
9478 * ravenscar-thread.c (get_running_thread_msymbol): Change
9479 return type.
9480 (has_ravenscar_runtime, get_running_thread_id): Update.
9481 * remote.c (remote_check_symbols): Update.
9482 * sol-thread.c (ps_pglobal_lookup): Update.
9483 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9484 * solib-dsbt.c (lm_base): Update.
9485 * solib-frv.c (lm_base, frv_relocate_section_addresses):
9486 Update.
9487 * solib-irix.c (locate_base): Update.
9488 * solib-som.c (som_solib_create_inferior_hook)
9489 (som_solib_desire_dynamic_linker_symbols, link_map_start):
9490 Update.
9491 * solib-spu.c (spu_enable_break): Update.
9492 * solib-svr4.c (elf_locate_base, enable_break): Update.
9493 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9494 (flush_ea_cache): Update.
9495 * stabsread.c (define_symbol): Update.
9496 * symfile.c (simple_read_overlay_table): Update.
9497 * symtab.c (find_pc_sect_line): Update.
9498 * tracepoint.c (scope_info): Update.
9499 * tui-disasm.c (tui_get_begin_asm_address): Update.
9500 * value.c (value_static_field): Update.
9501
9502 2014-02-26 Tom Tromey <tromey@redhat.com>
9503
9504 * minsyms.c (prim_record_minimal_symbol_full): Use
9505 SET_MSYMBOL_VALUE_ADDRESS.
9506 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9507 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9508 SET_MSYMBOL_VALUE_ADDRESS.
9509 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9510 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9511
9512 2014-02-26 Tom Tromey <tromey@redhat.com>
9513
9514 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9515 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9516 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9517 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9518 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9519 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9520 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9521 * ada-lang.c (ada_main_name): Update.
9522 (ada_lookup_simple_minsym): Update.
9523 (ada_make_symbol_completion_list): Update.
9524 (ada_add_standard_exceptions): Update.
9525 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9526 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9527 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9528 * arm-tdep.c (skip_prologue_function): Update.
9529 (arm_skip_stack_protector, arm_skip_stub): Update.
9530 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9531 (arm_wince_skip_main_prologue): Update.
9532 * auxv.c (ld_so_xfer_auxv): Update.
9533 * avr-tdep.c (avr_scan_prologue): Update.
9534 * ax-gdb.c (gen_var_ref): Update.
9535 * block.c (call_site_for_pc): Update.
9536 * blockframe.c (get_pc_function_start): Update.
9537 (find_pc_partial_function_gnu_ifunc): Update.
9538 * breakpoint.c (create_overlay_event_breakpoint): Update.
9539 (create_longjmp_master_breakpoint): Update.
9540 (create_std_terminate_master_breakpoint): Update.
9541 (create_exception_master_breakpoint): Update.
9542 (resolve_sal_pc): Update.
9543 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9544 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
9545 Update.
9546 * c-valprint.c (c_val_print): Update.
9547 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9548 * coffread.c (coff_symfile_read): Update.
9549 * common/agent.c (agent_look_up_symbols): Update.
9550 * dbxread.c (find_stab_function_addr): Update.
9551 (end_psymtab): Update.
9552 * dwarf2loc.c (call_site_to_target_addr): Update.
9553 (func_verify_no_selftailcall): Update.
9554 (tailcall_dump): Update.
9555 (call_site_find_chain_1): Update.
9556 (dwarf_expr_reg_to_entry_parameter): Update.
9557 * elfread.c (elf_gnu_ifunc_record_cache): Update.
9558 (elf_gnu_ifunc_resolve_by_got): Update.
9559 * f-valprint.c (info_common_command): Update.
9560 * findvar.c (read_var_value): Update.
9561 * frame.c (get_prev_frame_1): Update.
9562 (inside_main_func): Update.
9563 * frv-tdep.c (frv_skip_main_prologue): Update.
9564 (frv_frame_this_id): Update.
9565 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9566 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
9567 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
9568 (gnuv3_skip_trampoline): Update.
9569 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
9570 (hppa64_hpux_in_solib_call_trampoline): Update.
9571 (hppa_hpux_skip_trampoline_code): Update.
9572 (hppa64_hpux_search_dummy_call_sequence): Update.
9573 (hppa_hpux_find_import_stub_for_addr): Update.
9574 (hppa_hpux_find_dummy_bpaddr): Update.
9575 * hppa-tdep.c (hppa_symbol_address)
9576 (hppa_lookup_stub_minimal_symbol): Update.
9577 * i386-tdep.c (i386_skip_main_prologue): Update.
9578 (i386_pe_skip_trampoline_code): Update.
9579 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
9580 * infcall.c (get_function_name): Update.
9581 * infcmd.c (until_next_command): Update.
9582 * jit.c (jit_breakpoint_re_set_internal): Update.
9583 (jit_inferior_init): Update.
9584 * linespec.c (minsym_found): Update.
9585 (add_minsym): Update.
9586 * linux-fork.c (info_checkpoints_command): Update.
9587 * linux-nat.c (get_signo): Update.
9588 * linux-thread-db.c (inferior_has_bug): Update.
9589 * m32c-tdep.c (m32c_return_value): Update.
9590 (m32c_m16c_address_to_pointer): Update.
9591 (m32c_m16c_pointer_to_address): Update.
9592 * m32r-tdep.c (m32r_frame_this_id): Update.
9593 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9594 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9595 * maint.c (maintenance_translate_address): Update.
9596 * minsyms.c (add_minsym_to_hash_table): Update.
9597 (add_minsym_to_demangled_hash_table): Update.
9598 (msymbol_objfile): Update.
9599 (lookup_minimal_symbol): Update.
9600 (iterate_over_minimal_symbols): Update.
9601 (lookup_minimal_symbol_text): Update.
9602 (lookup_minimal_symbol_by_pc_name): Update.
9603 (lookup_minimal_symbol_solib_trampoline): Update.
9604 (lookup_minimal_symbol_by_pc_section_1): Update.
9605 (lookup_minimal_symbol_and_objfile): Update.
9606 (prim_record_minimal_symbol_full): Update.
9607 (compare_minimal_symbols): Update.
9608 (compact_minimal_symbols): Update.
9609 (build_minimal_symbol_hash_tables): Update.
9610 (install_minimal_symbols): Update.
9611 (terminate_minimal_symbol_table): Update.
9612 (find_solib_trampoline_target): Update.
9613 (minimal_symbol_upper_bound): Update.
9614 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9615 * mips-tdep.c (mips_stub_frame_sniffer): Update.
9616 (mips_skip_pic_trampoline_code): Update.
9617 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
9618 * objc-lang.c (selectors_info): Update.
9619 (classes_info): Update.
9620 (find_methods): Update.
9621 (find_imps): Update.
9622 (find_objc_msgsend): Update.
9623 * objfiles.c (objfile_relocate1): Update.
9624 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
9625 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9626 * p-valprint.c (pascal_val_print): Update.
9627 * parse.c (write_exp_msymbol): Update.
9628 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
9629 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
9630 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9631 * printcmd.c (build_address_symbolic): Update.
9632 (sym_info): Update.
9633 (address_info): Update.
9634 * proc-service.c (ps_pglobal_lookup): Update.
9635 * psymtab.c (find_pc_sect_psymtab_closer): Update.
9636 (find_pc_sect_psymtab): Update.
9637 * python/py-framefilter.c (py_print_frame): Update.
9638 * ravenscar-thread.c (get_running_thread_id): Update.
9639 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
9640 Update.
9641 * remote.c (remote_check_symbols): Update.
9642 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
9643 (rs6000_skip_trampoline_code): Update.
9644 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
9645 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9646 * solib-dsbt.c (lm_base): Update.
9647 * solib-frv.c (lm_base): Update.
9648 (main_got): Update.
9649 * solib-irix.c (locate_base): Update.
9650 * solib-som.c (som_solib_create_inferior_hook): Update.
9651 (som_solib_desire_dynamic_linker_symbols): Update.
9652 (link_map_start): Update.
9653 * solib-spu.c (spu_enable_break): Update.
9654 (ocl_enable_break): Update.
9655 * solib-svr4.c (elf_locate_base): Update.
9656 (enable_break): Update.
9657 * spu-tdep.c (spu_get_overlay_table): Update.
9658 (spu_catch_start): Update.
9659 (flush_ea_cache): Update.
9660 * stabsread.c (define_symbol): Update.
9661 (scan_file_globals): Update.
9662 * stack.c (find_frame_funname): Update.
9663 (frame_info): Update.
9664 * symfile.c (simple_read_overlay_table): Update.
9665 (simple_overlay_update): Update.
9666 * symmisc.c (dump_msymbols): Update.
9667 * symtab.c (fixup_section): Update.
9668 (find_pc_sect_line): Update.
9669 (skip_prologue_sal): Update.
9670 (search_symbols): Update.
9671 (print_msymbol_info): Update.
9672 (rbreak_command): Update.
9673 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
9674 (completion_list_objc_symbol): Update.
9675 (default_make_symbol_completion_list_break_on): Update.
9676 * tracepoint.c (scope_info): Update.
9677 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
9678 (tui_get_begin_asm_address): Update.
9679 * valops.c (find_function_in_inferior): Update.
9680 * value.c (value_static_field): Update.
9681 (value_fn_field): Update.
9682
9683 2014-02-26 Tom Tromey <tromey@redhat.com>
9684
9685 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
9686 bound minimal symbols. Move code that knows about minsym
9687 table layout...
9688 * minsyms.c (minimal_symbol_upper_bound): ... here. New
9689 function.
9690 * minsyms.h (minimal_symbol_upper_bound): Declare.
9691 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
9692 minimal_symbol_upper_bound.
9693
9694 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9695
9696 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
9697 Use the type's name if its basic type does not have a tag.
9698
9699 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9700
9701 * dwarf2read.c (read_subrange_type): Add comment.
9702
9703 2014-02-27 Joel Brobecker <brobecker@adacore.com>
9704
9705 * dwarf2read.c (update_enumeration_type_from_children): New
9706 function, mostly extracted from process_structure_scope.
9707 (read_enumeration_type): Call update_enumeration_type_from_children.
9708 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
9709 and flag_flag_enum fields.
9710
9711 2014-02-26 Pedro Alves <palves@redhat.com>
9712
9713 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
9714 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
9715 to_xfer_partial method.
9716
9717 2014-02-26 Pedro Alves <palves@redhat.com>
9718
9719 * target.c (complete_target_initialization): Don't install
9720 default_xfer_partial as to_xfer_partial hook.
9721 (nomemory): Delete.
9722 (update_current_target): Don't INHERIT nor de_fault
9723 deprecated_xfer_memory. Delete de_fault macro.
9724 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
9725 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
9726 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
9727 field.
9728
9729 2014-02-26 Pedro Alves <palves@redhat.com>
9730
9731 * go32-nat.c (my_write_child): New function.
9732 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
9733 (go32_xfer_partial): New function.
9734 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
9735 Instead install a to_xfer_partial hook.
9736
9737 2014-02-26 Pedro Alves <palves@redhat.com>
9738
9739 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
9740 to_xfer_partial helper. Rewrite.
9741 (procfs_xfer_partial): New function.
9742 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
9743 Install a to_xfer_partial hook.
9744
9745 2014-02-26 Pedro Alves <palves@redhat.com>
9746
9747 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
9748 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
9749 (m32r_xfer_partial): New function.
9750 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
9751 Install a to_xfer_partial hook.
9752
9753 2014-02-26 Pedro Alves <palves@redhat.com>
9754
9755 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
9756 helper.
9757 (mips_xfer_partial): New function.
9758 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
9759 hook. Install a to_xfer_partial hook.
9760
9761 2014-02-26 Joel Brobecker <brobecker@adacore.com>
9762
9763 * gdbtypes.h (create_array_type_with_stride): Add declaration.
9764 * gdbtypes.c (create_array_type_with_stride): New function,
9765 renaming create_array_type, but with an added parameter
9766 called "bit_stride".
9767 (create_array_type): Re-implement using
9768 create_array_type_with_stride.
9769 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
9770 and DW_AT_bit_stride attributes.
9771
9772 2014-02-26 Pedro Alves <palves@redhat.com>
9773
9774 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
9775 task-specific breakpoints.
9776
9777 2014-02-25 Pedro Alves <palves@redhat.com>
9778
9779 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
9780 handling of object == TARGET_OBJECT_UNWIND_TABLE.
9781
9782 2014-02-25 Stan Shebs <stan@codesourcery.com>
9783
9784 * defs.h: Annotate comments for Doxygen.
9785
9786 2014-02-25 Tom Tromey <tromey@redhat.com>
9787
9788 * target.h (target_ignore): Don't declare.
9789 * target.c (target_ignore): Remove.
9790
9791 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9792
9793 PR gdb/16626
9794 * auto-load.c (auto_load_objfile_script_1): Change filename to
9795 debugfile.
9796
9797 2014-02-25 Joel Brobecker <brobecker@adacore.com>
9798
9799 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
9800 documentation. Adjust prototype to match the target_ops
9801 to_xfer_partial method. Adjust implementation accordingly.
9802
9803 2014-02-25 Hui Zhu <hui@codesourcery.com>
9804
9805 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
9806 to_traceframe_info.
9807
9808 2014-02-25 Kevin Buettner <kevinb@redhat.com>
9809
9810 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
9811 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
9812 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
9813 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
9814 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
9815 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
9816 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
9817 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
9818 New constants.
9819 (rl78_register_type): Use a data pointer type for SP and
9820 new pseudo registers mentioned above. Use a 16 bit integer
9821 type for all other register pairs.
9822 (rl78_register_name, rl78_g10_register_name): Update for
9823 new pseudo registers.
9824 (rl78_pseudo_register_read): Likewise.
9825 (rl78_pseudo_register_write): Likewise.
9826 (rl78_dwarf_reg_to_regnum): Return register numbers representing
9827 to the newly added pseudo registers.
9828
9829 2014-02-24 Doug Evans <dje@google.com>
9830
9831 * value.c (record_latest_value): Fix comment.
9832 * printcmd.c (print_command_1): Remove code to handle -1 return from
9833 record_latest_value.
9834
9835 2014-02-24 Pedro Alves <palves@redhat.com>
9836
9837 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
9838 deprecated_xfer_memory hook.
9839 (procfs_xfer_partial): Call procfs_xfer_memory instead
9840 of the deprecated_xfer_memory target hook.
9841 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
9842 helper.
9843
9844 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
9845
9846 * windows-nat.c (windows_xfer_shared_libraries): Return
9847 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
9848 requested object is TARGET_OBJECT_LIBRARIES.
9849
9850 2014-02-24 Yao Qi <yao@codesourcery.com>
9851
9852 * target.h (enum target_xfer_status)
9853 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
9854 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
9855 explicitly. New.
9856 * corefile.c (memory_error_message): User updated.
9857 * exec.c (section_table_read_available_memory): Likewise.
9858 * record-btrace.c (record_btrace_xfer_partial): Likewise.
9859 * target.c (target_xfer_status_to_string): Likewise.
9860 (raw_memory_xfer_partial): Likewise.
9861 (memory_xfer_partial_1, target_xfer_partial): Likewise.
9862 * valops.c (read_value_memory): Likewise.
9863 * exec.h: Update comments.
9864
9865 2014-02-24 Yao Qi <yao@codesourcery.com>
9866
9867 * target.c (target_xfer_status_to_string): Rename argument err
9868 to status.
9869 * target.h (target_xfer_status_to_string): Update declaration.
9870 Replace target_xfer_error_to_string with
9871 target_xfer_status_to_string in comment.
9872
9873 2014-02-24 Yao Qi <yao@codesourcery.com>
9874
9875 * mips-linux-nat.c (super_close): Update its type.
9876 (mips_linux_close): Pass 'self' to super_close.
9877
9878 2014-02-24 Yao Qi <yao@codesourcery.com>
9879
9880 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
9881 * corefile.c (read_memory): Adjusted.
9882 * target.c (target_write_with_progress): Adjusted.
9883
9884 2014-02-23 Yao Qi <yao@codesourcery.com>
9885
9886 Revert two patches:
9887
9888 2013-10-25 Yao Qi <yao@codesourcery.com>
9889
9890 * remote.c (remote_traceframe_info): Return early if
9891 traceframe is not selected.
9892
9893 2013-07-19 Yao Qi <yao@codesourcery.com>
9894
9895 * target.c (update_current_target): Change the default action
9896 of 'to_traceframe_info' from tcomplain to return_zero.
9897 * target.h (struct target_ops) <to_traceframe_info>: Add more
9898 comments.
9899
9900 2014-02-23 Yao Qi <yao@codesourcery.com>
9901
9902 * valops.c (read_value_memory): Rewrite it. Call
9903 target_xfer_partial in a loop.
9904 * exec.h (section_table_available_memory): Remove declaration.
9905 Move comments to ...
9906 * exec.c (section_table_available_memory): ... here. Make it
9907 static.
9908
9909 2014-02-23 Yao Qi <yao@codesourcery.com>
9910
9911 * exec.c (section_table_read_available_memory): New function.
9912 * exec.h (section_table_read_available_memory): Declare.
9913 * ctf.c (ctf_xfer_partial): Call
9914 section_table_read_available_memory.
9915 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9916
9917 2014-02-23 Yao Qi <yao@codesourcery.com>
9918
9919 * ctf.c (ctf_xfer_partial): Move code to ...
9920 * exec.c (exec_read_partial_read_only): ... it. New function.
9921 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9922 * tracefile.c: Include "exec.h".
9923 * exec.h (exec_read_partial_read_only): Declare.
9924
9925 2014-02-23 Yao Qi <yao@codesourcery.com>
9926
9927 * tracefile-tfile.c (tfile_has_all_memory): Remove.
9928 (tfile_has_memory): Remove.
9929 (init_tfile_ops): Don't set fields to_has_all_memory and
9930 to_has_memory of tfile_ops.
9931 * tracefile.c (tracefile_has_all_memory): New function.
9932 (tracefile_has_memory): New function.
9933 (init_tracefile_ops): Initialize fields to_has_all_memory and
9934 to_has_memory of 'ops'.
9935
9936 2014-02-23 Yao Qi <yao@codesourcery.com>
9937
9938 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
9939 (ctf_thread_alive, ctf_get_trace_status): Remove.
9940 (init_ctf_ops): Don't set some fields of ctf_ops. Call
9941 init_tracefile_ops.
9942 * tracefile-tfile.c (tfile_get_trace_status): Remove.
9943 (tfile_has_stack, tfile_has_registers): Remove.
9944 (tfile_thread_alive): Remove.
9945 (init_tfile_ops): Don't set some fields of tfile_ops. Call
9946 init_tracefile_ops.
9947 * tracefile.c (tracefile_has_stack): New function.
9948 (tracefile_has_registers): New function.
9949 (tracefile_thread_alive): New function.
9950 (tracefile_get_trace_status): New function.
9951 (init_tracefile_ops): New function.
9952 * tracefile.h (init_tracefile_ops): Declare.
9953
9954 2014-02-23 Yao Qi <yao@codesourcery.com>
9955
9956 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
9957 (O_LARGEFILE): Likewise.
9958 (tfile_ops): Likewise.
9959 (TRACE_HEADER_SIZE): Likewise.
9960 (trace_fd, trace_frames_offset, cur_offset): Likewise.
9961 (cur_data_size): Likewise.
9962 (tfile_read, tfile_open, tfile_interp_line): Likewise.
9963 (tfile_close, tfile_files_info): Likewise.
9964 (tfile_get_trace_status): Likewise.
9965 (tfile_get_tracepoint_status): Likewise.
9966 (tfile_get_traceframe_address): Likewise.
9967 (tfile_trace_find, match_blocktype): Likewise.
9968 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
9969 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
9970 (tfile_get_trace_state_variable_value): Likewise.
9971 (tfile_has_all_memory, tfile_has_memory): Likewise.
9972 (tfile_has_stack, tfile_has_registers): Likewise.
9973 (tfile_thread_alive, build_traceframe_info): Likewise.
9974 (tfile_traceframe_info, init_tfile_ops): Likewise.
9975 (_initialize_tracepoint): Don't call init_tfile_ops
9976 and add_target_with_completer.
9977 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
9978 exec.h, completer.h and filenames.h.
9979 (_initialize_tracefile_tfile): New function.
9980
9981 2014-02-23 Yao Qi <yao@codesourcery.com>
9982
9983 * Makefile.in (REMOTE_OBS): Append tracefile.o and
9984 tracefile-tfile.o.
9985 (HFILES_NO_SRCDIR): Add tracefile.h.
9986 * ctf.c: Include "tracefile.h".
9987 * tracefile.h: New file.
9988 * tracefile.c: New file
9989 * tracefile-tfile.c: New file.
9990 * tracepoint.c: Include "tracefile.h".
9991 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
9992 (stop_reason_names): Add const.
9993 (trace_file_writer_xfree): Move it to tracefile.c.
9994 (trace_save, trace_save_command, trace_save_tfile): Likewise.
9995 (trace_save_ctf): Likewise.
9996 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
9997 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
9998 (tfile_write_header, tfile_write_regblock_type): Likewise.
9999 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10000 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10001 (tfile_write_raw_data, tfile_end): Likewise.
10002 (tfile_trace_file_writer_new): Likewise.
10003 (free_uploaded_tp): Make it extern.
10004 (free_uploaded_tsv): Make it extern.
10005 (_initialize_tracepoint): Move code to register command 'tsave'
10006 to tracefile.c.
10007 * tracepoint.h (stop_reason_names): Declare.
10008 (struct trace_frame_write_ops): Move it to tracefile.h.
10009 (struct trace_file_write_ops): Likewise.
10010 (struct trace_file_writer): Likewise.
10011 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10012
10013 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10014
10015 PR gdb/16594
10016 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10017 process name.
10018 (get_cores_used_by_process): New parameter num_cores, use it.
10019 (linux_xfer_osdata_processes): Pass num_cores to it.
10020 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10021 process name.
10022
10023 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
10024
10025 * target.c (memory_xfer_partial): Fix length arg in call to
10026 breakpoint_xfer_memory.
10027
10028 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10029
10030 PR tdep/16397
10031 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10032 number comes after the + or - signs. Adjust length of register
10033 name to be extracted.
10034
10035 2014-02-20 Tom Tromey <tromey@redhat.com>
10036
10037 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10038 (ada_varobj_ops): Mark "extern".
10039
10040 2014-02-20 Tom Tromey <tromey@redhat.com>
10041
10042 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10043
10044 2014-02-20 Doug Evans <xdje42@gmail.com>
10045
10046 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10047 All callers updated.
10048 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10049 All callers updated.
10050 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10051 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10052
10053 2014-02-20 lin zuojian <manjian2006@gmail.com>
10054 Joel Brobecker <brobecker@adacore.com>
10055 Doug Evans <xdje42@gmail.com>
10056
10057 PR symtab/16581
10058 * dwarf2read.c (struct die_info): New member in_process.
10059 (reset_die_in_process): New function.
10060 (process_die): Set it at the start, reset when returning.
10061 (inherit_abstract_dies): Only call process_die if origin_child_die
10062 not already being processed.
10063
10064 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10065
10066 * windows-nat.c (handle_unload_dll): Add function documentation.
10067 (do_initial_windows_stuff): Add comment explaining why we wait
10068 until after inferior initialization has finished before
10069 processing all DLLs.
10070
10071 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10072
10073 * windows-nat.c (get_module_name): Delete.
10074 (windows_get_exec_module_filename): New function, mostly
10075 inspired from get_module_name.
10076 (windows_pid_to_exec_file): Replace call to get_module_name
10077 by call to windows_get_exec_module_filename.
10078
10079 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10080
10081 * windows-nat.c (handle_load_dll): Rewrite this function's
10082 introductory comment. Remove code using get_module_name
10083 to get the DLL's name.
10084
10085 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10086
10087 * windows-nat.c (get_windows_debug_event): Ignore
10088 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10089 if windows_initialization_done == 0.
10090 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10091 Adjust implementation to always load all DLLs.
10092 (do_initial_windows_stuff): Replace call to
10093 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10094
10095 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10096
10097 * windows-nat.c (_initialize_windows_nat): Deprecate the
10098 "dll-symbols" command. Turn the "add-shared-symbol-files"
10099 and "assf" aliases into commands, and deprecate them as well.
10100 * NEWS: Add entry explaining that "dll-symbols" and its two
10101 aliases are now deprecated.
10102
10103 2014-02-20 Joel Brobecker <brobecker@adacore.com>
10104
10105 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10106 new-line in debug string. Remove trailing spaces.
10107
10108 2014-02-19 Stan Shebs <stan@codesourcery.com>
10109
10110 * darwin-nat.c (darwin_xfer_partial): Fix return type.
10111
10112 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
10113
10114 * NEWS: Add entry for the new feature
10115 * python/py-value.c (valpy_binop): Call value_x_binop for struct
10116 and class values.
10117
10118 2014-02-19 Stan Shebs <stan@codesourcery.com>
10119
10120 * MAINTAINERS: List Yao Qi as nios2 maintainer.
10121
10122 2014-02-19 Pedro Alves <palves@redhat.com>
10123
10124 * common/ptid.h (struct ptid): Mention that process_stratum
10125 targets should prefer ptid.lwp.
10126
10127 2014-02-19 Pedro Alves <palves@redhat.com>
10128
10129 * remote.c (remote_thread_alive, write_ptid, read_ptid)
10130 (read_ptid, remote_newthread_step, remote_threads_extra_info)
10131 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10132 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10133 store remote thread ids rather than ptid.tid.
10134 (_initialize_remote): Adjust.
10135
10136 2014-02-19 Tom Tromey <tromey@redhat.com>
10137
10138 * target.c (target_get_unwinder): Rewrite.
10139 (target_get_tailcall_unwinder): Rewrite.
10140 * record-btrace.c (record_btrace_to_get_unwinder): New function.
10141 (record_btrace_to_get_tailcall_unwinder): New function.
10142 (init_record_btrace_ops): Update.
10143 * target.h (struct target_ops) <to_get_unwinder,
10144 to_get_tailcall_unwinder>: Now function pointers. Use
10145 TARGET_DEFAULT_RETURN.
10146
10147 2014-02-19 Tom Tromey <tromey@redhat.com>
10148
10149 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10150 argument.
10151 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10152
10153 2014-02-19 Tom Tromey <tromey@redhat.com>
10154
10155 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10156 directly.
10157 * target-delegates.c: Rebuild.
10158 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10159 TARGET_DEFAULT_FUNC.
10160 * target.c (default_target_decr_pc_after_break): Rename from
10161 forward_target_decr_pc_after_break. Simplify.
10162 (target_decr_pc_after_break): Rely on delegation.
10163
10164 2014-02-19 Tom Tromey <tromey@redhat.com>
10165
10166 * target.c (update_current_target): Do not INHERIT to_doc or
10167 to_magic. Do not de_fault to_open or to_close.
10168
10169 2014-02-19 Tom Tromey <tromey@redhat.com>
10170
10171 * gcore.h (objfile_find_memory_regions): Declare.
10172 * gcore.c (objfile_find_memory_regions): No longer static. Add
10173 "self" argument.
10174 (_initialize_gcore): Don't call exec_set_find_memory_regions.
10175 * exec.c: Include gcore.h.
10176 (exec_set_find_memory_regions): Remove.
10177 (exec_find_memory_regions): Remove.
10178 (exec_do_find_memory_regions): Remove.
10179 (init_exec_ops): Update.
10180 * defs.h (exec_set_find_memory_regions): Remove.
10181
10182 2014-02-19 Tom Tromey <tromey@redhat.com>
10183
10184 * target-delegates.c: Rebuild.
10185 * target.h (struct target_ops) <to_extra_thread_info,
10186 to_thread_name, to_pid_to_exec_file, to_get_section_table,
10187 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10188 not 0, in TARGET_DEFAULT_RETURN.
10189
10190 2014-02-19 Tom Tromey <tromey@redhat.com>
10191
10192 * target.c (complete_target_initialization): Remove casts. Use
10193 return_zero_has_execution.
10194 (return_zero): Add "ignore" argument.
10195 (return_zero_has_execution): New function.
10196 (init_dummy_target): Remove casts. Use
10197 return_zero_has_execution.
10198
10199 2014-02-19 Tom Tromey <tromey@redhat.com>
10200
10201 * target.c (update_current_target): Update comments. Do not
10202 INHERIT to_stratum.
10203
10204 2014-02-19 Tom Tromey <tromey@redhat.com>
10205
10206 * arm-linux-nat.c (arm_linux_read_description): Delegate when
10207 needed.
10208 * corelow.c (core_read_description): Delegate when needed.
10209 * remote.c (remote_read_description): Delegate when needed.
10210 * target-delegates.c: Rebuild.
10211 * target.c (target_read_description): Rewrite.
10212 * target.h (struct target_ops) <to_read_description>: Update
10213 comment. Use TARGET_DEFAULT_RETURN.
10214
10215 2014-02-19 Tom Tromey <tromey@redhat.com>
10216
10217 * target-delegates.c: Rebuild.
10218 * target.c (update_current_target): Don't inherit or default
10219 to_can_run.
10220 (find_default_run_target): Check against delegate_can_run.
10221 * target.h (struct target_ops) <to_can_run>: Use
10222 TARGET_DEFAULT_RETURN.
10223
10224 2014-02-19 Tom Tromey <tromey@redhat.com>
10225
10226 * target-delegates.c: Rebuild.
10227 * target.c (target_disconnect): Unconditionally delegate.
10228 * target.h (struct target_ops) <to_disconnect>: Use
10229 TARGET_DEFAULT_NORETURN.
10230
10231 2014-02-19 Tom Tromey <tromey@redhat.com>
10232
10233 * record.c (record_stop): Unconditionally delegate.
10234 * target-delegates.c: Rebuild.
10235 * target.c (target_stop_recording): Unconditionally delegate.
10236 * target.h (struct target_ops) <to_stop_recording>: Use
10237 TARGET_DEFAULT_IGNORE.
10238
10239 2014-02-19 Tom Tromey <tromey@redhat.com>
10240
10241 * target-delegates.c: Rebuild.
10242 * target.c (target_enable_btrace): Unconditionally delegate.
10243 * target.h (struct target_ops) <to_enable_btrace>: Use
10244 TARGET_DEFAULT_NORETURN.
10245
10246 2014-02-19 Tom Tromey <tromey@redhat.com>
10247
10248 * target-delegates.c: Rebuild.
10249 * target.c (target_read_btrace): Unconditionally delegate.
10250 * target.h (struct target_ops) <to_read_btrace>: Use
10251 TARGET_DEFAULT_NORETURN.
10252
10253 2014-02-19 Tom Tromey <tromey@redhat.com>
10254
10255 * target-delegates.c: Rebuild.
10256 * target.c (target_teardown_btrace): Unconditionally delegate.
10257 * target.h (struct target_ops) <to_teardown_btrace>: Use
10258 TARGET_DEFAULT_NORETURN.
10259
10260 2014-02-19 Tom Tromey <tromey@redhat.com>
10261
10262 * target-delegates.c: Rebuild.
10263 * target.c (target_disable_btrace): Unconditionally delegate.
10264 * target.h (struct target_ops) <to_disable_btrace>: Use
10265 TARGET_DEFAULT_NORETURN.
10266
10267 2014-02-19 Tom Tromey <tromey@redhat.com>
10268
10269 * target-delegates.c: Rebuild.
10270 * target.c (default_search_memory): New function.
10271 (simple_search_memory): Update comment.
10272 (target_search_memory): Unconditionally delegate.
10273 * target.h (struct target_ops) <to_search_memory>: Use
10274 TARGET_DEFAULT_FUNC.
10275
10276 2014-02-19 Tom Tromey <tromey@redhat.com>
10277
10278 * auxv.c (default_auxv_parse): No longer static.
10279 (target_auxv_parse): Unconditionally delegate.
10280 * auxv.h (default_auxv_parse): Declare.
10281 * target-delegates.c: Rebuild.
10282 * target.c: Include auxv.h.
10283 * target.h (struct target_ops) <to_auxv_parse>: Use
10284 TARGET_DEFAULT_FUNC.
10285
10286 2014-02-19 Tom Tromey <tromey@redhat.com>
10287
10288 * target-delegates.c: Rebuild.
10289 * target.c (target_memory_map): Unconditionally delegate.
10290 * target.h (struct target_ops) <to_memory_map>: Use
10291 TARGET_DEFAULT_RETURN.
10292
10293 2014-02-19 Tom Tromey <tromey@redhat.com>
10294
10295 * target-delegates.c: Rebuild.
10296 * target.c (target_thread_alive): Unconditionally delegate.
10297 * target.h (struct target_ops) <to_thread_alive>: Use
10298 TARGET_DEFAULT_RETURN.
10299
10300 2014-02-19 Tom Tromey <tromey@redhat.com>
10301
10302 * target-delegates.c: Rebuild.
10303 * target.c (target_save_record): Unconditionally delegate.
10304 * target.h (struct target_ops) <to_save_record>: Use
10305 TARGET_DEFAULT_NORETURN.
10306
10307 2014-02-19 Tom Tromey <tromey@redhat.com>
10308
10309 * target-delegates.c: Rebuild.
10310 * target.c (target_delete_record): Unconditionally delegate.
10311 * target.h (struct target_ops) <to_delete_record>: 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_record_is_replaying): Unconditionally
10318 delegate.
10319 * target.h (struct target_ops) <to_record_is_replaying>: Use
10320 TARGET_DEFAULT_RETURN.
10321
10322 2014-02-19 Tom Tromey <tromey@redhat.com>
10323
10324 * target-delegates.c: Rebuild.
10325 * target.c (target_goto_record_begin): Unconditionally delegate.
10326 * target.h (struct target_ops) <to_goto_record_begin>: Use
10327 TARGET_DEFAULT_NORETURN.
10328
10329 2014-02-19 Tom Tromey <tromey@redhat.com>
10330
10331 * target-delegates.c: Rebuild.
10332 * target.c (target_goto_record_end): Unconditionally delegate.
10333 * target.h (struct target_ops) <to_goto_record_end>: Use
10334 TARGET_DEFAULT_NORETURN.
10335
10336 2014-02-19 Tom Tromey <tromey@redhat.com>
10337
10338 * target-delegates.c: Rebuild.
10339 * target.c (target_goto_record): Unconditionally delegate.
10340 * target.h (struct target_ops) <to_goto_record>: Use
10341 TARGET_DEFAULT_NORETURN.
10342
10343 2014-02-19 Tom Tromey <tromey@redhat.com>
10344
10345 * target-delegates.c: Rebuild.
10346 * target.c (target_insn_history): Unconditionally delegate.
10347 * target.h (struct target_ops) <to_insn_history>: Use
10348 TARGET_DEFAULT_NORETURN.
10349
10350 2014-02-19 Tom Tromey <tromey@redhat.com>
10351
10352 * target-delegates.c: Rebuild.
10353 * target.c (target_insn_history_from): Unconditionally delegate.
10354 * target.h (struct target_ops) <to_insn_history_from>: Use
10355 TARGET_DEFAULT_NORETURN.
10356
10357 2014-02-19 Tom Tromey <tromey@redhat.com>
10358
10359 * target-delegates.c: Rebuild.
10360 * target.c (target_insn_history_range): Unconditionally delegate.
10361 * target.h (struct target_ops) <to_insn_history_range>: Use
10362 TARGET_DEFAULT_NORETURN.
10363
10364 2014-02-19 Tom Tromey <tromey@redhat.com>
10365
10366 * target-delegates.c: Rebuild.
10367 * target.c (target_call_history): Unconditionally delegate.
10368 * target.h (struct target_ops) <to_call_history>: Use
10369 TARGET_DEFAULT_NORETURN.
10370
10371 2014-02-19 Tom Tromey <tromey@redhat.com>
10372
10373 * target-delegates.c: Rebuild.
10374 * target.c (target_call_history_from): Unconditionally delegate.
10375 * target.h (struct target_ops) <to_call_history_from>: Use
10376 TARGET_DEFAULT_NORETURN.
10377
10378 2014-02-19 Tom Tromey <tromey@redhat.com>
10379
10380 * target-delegates.c: Rebuild.
10381 * target.c (target_call_history_range): Unconditionally delegate.
10382 * target.h (struct target_ops) <to_call_history_range>: Use
10383 TARGET_DEFAULT_NORETURN.
10384
10385 2014-02-19 Tom Tromey <tromey@redhat.com>
10386
10387 * target-delegates.c: Rebuild.
10388 * target.c (target_verify_memory): Unconditionally delegate.
10389 * target.h (struct target_ops) <to_verify_memory>: Use
10390 TARGET_DEFAULT_NORETURN.
10391
10392 2014-02-19 Tom Tromey <tromey@redhat.com>
10393
10394 * target-delegates.c: Rebuild.
10395 * target.c (target_core_of_thread): Unconditionally delegate.
10396 * target.h (struct target_ops) <to_core_of_thread>: Use
10397 TARGET_DEFAULT_RETURN.
10398
10399 2014-02-19 Tom Tromey <tromey@redhat.com>
10400
10401 * target-delegates.c: Rebuild.
10402 * target.c (target_flash_done): Unconditionally delegate.
10403 * target.h (struct target_ops) <to_flash_done>: Use
10404 TARGET_DEFAULT_NORETURN.
10405
10406 2014-02-19 Tom Tromey <tromey@redhat.com>
10407
10408 * target-delegates.c: Rebuild.
10409 * target.c (target_flash_erase): Unconditionally delegate.
10410 * target.h (struct target_ops) <to_flash_erase>: Use
10411 TARGET_DEFAULT_NORETURN.
10412
10413 2014-02-19 Tom Tromey <tromey@redhat.com>
10414
10415 * target-delegates.c: Rebuild.
10416 * target.c (target_get_section_table): Unconditionally delegate.
10417 * target.h (struct target_ops) <to_get_section_table>: Use
10418 TARGET_DEFAULT_RETURN.
10419
10420 2014-02-19 Tom Tromey <tromey@redhat.com>
10421
10422 * target-delegates.c: Rebuild.
10423 * target.c (target_pid_to_str): Unconditionally delegate.
10424 (init_dummy_target): Don't initialize to_pid_to_str.
10425 (default_pid_to_str): Rename from dummy_pid_to_str.
10426 * target.h (struct target_ops) <to_pid_to_str>: Use
10427 TARGET_DEFAULT_FUNC.
10428
10429 2014-02-19 Tom Tromey <tromey@redhat.com>
10430
10431 * target-delegates.c: Rebuild.
10432 * target.c (target_find_new_threads): Unconditionally delegate.
10433 * target.h (struct target_ops) <to_find_new_threads>: Use
10434 TARGET_DEFAULT_RETURN.
10435
10436 2014-02-19 Tom Tromey <tromey@redhat.com>
10437
10438 * target-delegates.c: Rebuild.
10439 * target.c (target_program_signals): Unconditionally delegate.
10440 * target.h (struct target_ops) <to_program_signals>: Use
10441 TARGET_DEFAULT_IGNORE.
10442
10443 2014-02-19 Tom Tromey <tromey@redhat.com>
10444
10445 * target-delegates.c: Rebuild.
10446 * target.c (target_pass_signals): Unconditionally delegate.
10447 * target.h (struct target_ops) <to_pass_signals>: Use
10448 TARGET_DEFAULT_IGNORE.
10449
10450 2014-02-19 Tom Tromey <tromey@redhat.com>
10451
10452 * target-delegates.c: Rebuild.
10453 * target.c (default_mourn_inferior): New function.
10454 (target_mourn_inferior): Unconditionally delegate.
10455 * target.h (struct target_ops) <to_mourn_inferior>: Use
10456 TARGET_DEFAULT_FUNC.
10457
10458 2014-02-19 Tom Tromey <tromey@redhat.com>
10459
10460 * target-delegates.c: Rebuild.
10461 * target.c (default_follow_fork): New function.
10462 (target_follow_fork): Unconditionally delegate.
10463 * target.h (struct target_ops) <to_follow_fork>: Use
10464 TARGET_DEFAULT_FUNC.
10465
10466 2014-02-19 Tom Tromey <tromey@redhat.com>
10467
10468 * target-delegates.c: Rebuild.
10469 * target.c (target_kill): Unconditionally delegate.
10470 * target.h (struct target_ops) <to_kill>: Use
10471 TARGET_DEFAULT_NORETURN.
10472
10473 2014-02-19 Tom Tromey <tromey@redhat.com>
10474
10475 * target-delegates.c: Rebuild.
10476 * target.c (target_masked_watch_num_registers): Unconditionally
10477 delegate.
10478 * target.h (struct target_ops) <to_masked_watch_num_registers>:
10479 Use TARGET_DEFAULT_RETURN.
10480
10481 2014-02-19 Tom Tromey <tromey@redhat.com>
10482
10483 * target-delegates.c: Rebuild.
10484 * target.c (target_remove_mask_watchpoint): Unconditionally
10485 delegate.
10486 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10487 TARGET_DEFAULT_RETURN.
10488
10489 2014-02-19 Tom Tromey <tromey@redhat.com>
10490
10491 * target-delegates.c: Rebuild.
10492 * target.c (target_insert_mask_watchpoint): Unconditionally
10493 delegate.
10494 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10495 TARGET_DEFAULT_RETURN.
10496
10497 2014-02-19 Tom Tromey <tromey@redhat.com>
10498
10499 * target-delegates.c: Rebuild.
10500 * target.c (target_ranged_break_num_registers): Unconditionally
10501 delegate.
10502 * target.h (struct target_ops) <to_ranged_break_num_registers>:
10503 Use TARGET_DEFAULT_RETURN.
10504
10505 2014-02-19 Tom Tromey <tromey@redhat.com>
10506
10507 * target-delegates.c: Rebuild.
10508 * target.c (target_fetch_registers): Unconditionally delegate.
10509 * target.h (struct target_ops) <to_fetch_registers>: Use
10510 TARGET_DEFAULT_NORETURN.
10511
10512 2014-02-19 Tom Tromey <tromey@redhat.com>
10513
10514 * target-delegates.c: Rebuild.
10515 * target.c (update_current_target): Don't inherit or default
10516 to_stop.
10517 * target.h (struct target_ops) <to_stop>: Use
10518 TARGET_DEFAULT_IGNORE.
10519
10520 2014-02-19 Tom Tromey <tromey@redhat.com>
10521
10522 * target-delegates.c: Rebuild.
10523 * target.c (update_current_target): Don't inherit or default
10524 to_can_run_breakpoint_commands.
10525 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10526 Use TARGET_DEFAULT_RETURN.
10527
10528 2014-02-19 Tom Tromey <tromey@redhat.com>
10529
10530 * target-delegates.c: Rebuild.
10531 * target.c (update_current_target): Don't inherit or default
10532 to_supports_evaluation_of_breakpoint_conditions.
10533 * target.h (struct target_ops)
10534 <to_supports_evaluation_of_breakpoint_conditions>: Use
10535 TARGET_DEFAULT_RETURN.
10536
10537 2014-02-19 Tom Tromey <tromey@redhat.com>
10538
10539 * target-delegates.c: Rebuild.
10540 * target.c (update_current_target): Don't inherit or default
10541 to_augmented_libraries_svr4_read.
10542 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
10543 Use TARGET_DEFAULT_RETURN.
10544
10545 2014-02-19 Tom Tromey <tromey@redhat.com>
10546
10547 * target-delegates.c: Rebuild.
10548 * target.c (update_current_target): Don't inherit or default
10549 to_can_use_agent.
10550 * target.h (struct target_ops) <to_can_use_agent>: Use
10551 TARGET_DEFAULT_RETURN.
10552
10553 2014-02-19 Tom Tromey <tromey@redhat.com>
10554
10555 * target-delegates.c: Rebuild.
10556 * target.c (update_current_target): Don't inherit or default
10557 to_use_agent.
10558 * target.h (struct target_ops) <to_use_agent>: Use
10559 TARGET_DEFAULT_NORETURN.
10560
10561 2014-02-19 Tom Tromey <tromey@redhat.com>
10562
10563 * target-delegates.c: Rebuild.
10564 * target.c (update_current_target): Don't inherit or default
10565 to_traceframe_info.
10566 (return_null): Remove.
10567 * target.h (struct target_ops) <to_traceframe_info>: Use
10568 TARGET_DEFAULT_RETURN.
10569
10570 2014-02-19 Tom Tromey <tromey@redhat.com>
10571
10572 * target-delegates.c: Rebuild.
10573 * target.c (update_current_target): Don't inherit or default
10574 to_static_tracepoint_markers_by_strid.
10575 * target.h (struct target_ops)
10576 <to_static_tracepoint_markers_by_strid>: Use
10577 TARGET_DEFAULT_NORETURN.
10578
10579 2014-02-19 Tom Tromey <tromey@redhat.com>
10580
10581 * target-delegates.c: Rebuild.
10582 * target.c (update_current_target): Don't inherit or default
10583 to_static_tracepoint_marker_at.
10584 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
10585 Use TARGET_DEFAULT_RETURN.
10586
10587 2014-02-19 Tom Tromey <tromey@redhat.com>
10588
10589 * target-delegates.c: Rebuild.
10590 * target.c (update_current_target): Don't inherit or default
10591 to_set_permissions.
10592 * target.h (struct target_ops) <to_set_permissions>: Use
10593 TARGET_DEFAULT_IGNORE.
10594
10595 2014-02-19 Tom Tromey <tromey@redhat.com>
10596
10597 * target-delegates.c: Rebuild.
10598 * target.c (update_current_target): Don't inherit or default
10599 to_get_tib_address.
10600 * target.h (struct target_ops) <to_get_tib_address>: Use
10601 TARGET_DEFAULT_NORETURN.
10602
10603 2014-02-19 Tom Tromey <tromey@redhat.com>
10604
10605 * target-delegates.c: Rebuild.
10606 * target.c (update_current_target): Don't inherit or default
10607 to_set_trace_notes.
10608 * target.h (struct target_ops) <to_set_trace_notes>: Use
10609 TARGET_DEFAULT_RETURN.
10610
10611 2014-02-19 Tom Tromey <tromey@redhat.com>
10612
10613 * target-delegates.c: Rebuild.
10614 * target.c (update_current_target): Don't initialize
10615 to_set_trace_buffer_size.
10616 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
10617 TARGET_DEFAULT_IGNORE.
10618
10619 2014-02-19 Tom Tromey <tromey@redhat.com>
10620
10621 * target-delegates.c: Rebuild.
10622 * target.c (update_current_target): Don't inherit or default
10623 to_set_circular_trace_buffer.
10624 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
10625 TARGET_DEFAULT_IGNORE.
10626
10627 2014-02-19 Tom Tromey <tromey@redhat.com>
10628
10629 * target-delegates.c: Rebuild.
10630 * target.c (update_current_target): Don't inherit or default
10631 to_set_disconnected_tracing.
10632 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
10633 TARGET_DEFAULT_IGNORE.
10634
10635 2014-02-19 Tom Tromey <tromey@redhat.com>
10636
10637 * target-delegates.c: Rebuild.
10638 * target.c (update_current_target): Don't inherit or default
10639 to_get_min_fast_tracepoint_insn_len.
10640 (return_minus_one): Remove.
10641 * target.h (struct target_ops)
10642 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
10643
10644 2014-02-19 Tom Tromey <tromey@redhat.com>
10645
10646 * target-delegates.c: Rebuild.
10647 * target.c (update_current_target): Don't inherit or default
10648 to_get_raw_trace_data.
10649 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
10650 TARGET_DEFAULT_NORETURN.
10651
10652 2014-02-19 Tom Tromey <tromey@redhat.com>
10653
10654 * target-delegates.c: Rebuild.
10655 * target.c (update_current_target): Don't inherit or default
10656 to_upload_trace_state_variables.
10657 * target.h (struct target_ops) <to_upload_trace_state_variables>:
10658 Use TARGET_DEFAULT_RETURN.
10659
10660 2014-02-19 Tom Tromey <tromey@redhat.com>
10661
10662 * target-delegates.c: Rebuild.
10663 * target.c (update_current_target): Don't inherit or default
10664 to_upload_tracepoints.
10665 * target.h (struct target_ops) <to_upload_tracepoints>: Use
10666 TARGET_DEFAULT_RETURN.
10667
10668 2014-02-19 Tom Tromey <tromey@redhat.com>
10669
10670 * target-delegates.c: Rebuild.
10671 * target.c (update_current_target): Don't inherit or default
10672 to_save_trace_data.
10673 * target.h (struct target_ops) <to_save_trace_data>: Use
10674 TARGET_DEFAULT_NORETURN.
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_get_trace_state_variable_value.
10681 * target.h (struct target_ops)
10682 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
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_trace_find.
10689 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
10690
10691 2014-02-19 Tom Tromey <tromey@redhat.com>
10692
10693 * target-delegates.c: Rebuild.
10694 * target.c (update_current_target): Don't inherit or default
10695 to_trace_stop.
10696 * target.h (struct target_ops) <to_trace_stop>: Use
10697 TARGET_DEFAULT_NORETURN.
10698
10699 2014-02-19 Tom Tromey <tromey@redhat.com>
10700
10701 * target-delegates.c: Rebuild.
10702 * target.c (update_current_target): Don't inherit or default
10703 to_get_tracepoint_status.
10704 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
10705 TARGET_DEFAULT_NORETURN.
10706
10707 2014-02-19 Tom Tromey <tromey@redhat.com>
10708
10709 * target-delegates.c: Rebuild.
10710 * target.c (update_current_target): Don't inherit or default
10711 to_get_trace_status.
10712 * target.h (struct target_ops) <to_get_trace_status>: Use
10713 TARGET_DEFAULT_RETURN.
10714
10715 2014-02-19 Tom Tromey <tromey@redhat.com>
10716
10717 * target-delegates.c: Rebuild.
10718 * target.c (update_current_target): Don't inherit or default
10719 to_trace_start.
10720 * target.h (struct target_ops) <to_trace_start>: Use
10721 TARGET_DEFAULT_NORETURN.
10722
10723 2014-02-19 Tom Tromey <tromey@redhat.com>
10724
10725 * target-delegates.c: Rebuild.
10726 * target.c (update_current_target): Don't inherit or default
10727 to_trace_set_readonly_regions.
10728 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10729 Use TARGET_DEFAULT_NORETURN.
10730
10731 2014-02-19 Tom Tromey <tromey@redhat.com>
10732
10733 * target-delegates.c: Rebuild.
10734 * target.c (update_current_target): Don't inherit or default
10735 to_disable_tracepoint.
10736 * target.h (struct target_ops) <to_disable_tracepoint>: Use
10737 TARGET_DEFAULT_NORETURN.
10738
10739 2014-02-19 Tom Tromey <tromey@redhat.com>
10740
10741 * target-delegates.c: Rebuild.
10742 * target.c (update_current_target): Don't inherit or default
10743 to_enable_tracepoint.
10744 * target.h (struct target_ops) <to_enable_tracepoint>: Use
10745 TARGET_DEFAULT_NORETURN.
10746
10747 2014-02-19 Tom Tromey <tromey@redhat.com>
10748
10749 * target-delegates.c: Rebuild.
10750 * target.c (update_current_target): Don't inherit or default
10751 to_download_trace_state_variable.
10752 * target.h (struct target_ops) <to_download_trace_state_variable>:
10753 Use TARGET_DEFAULT_NORETURN.
10754
10755 2014-02-19 Tom Tromey <tromey@redhat.com>
10756
10757 * target-delegates.c: Rebuild.
10758 * target.c (update_current_target): Don't inherit or default
10759 to_can_download_tracepoint.
10760 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
10761 TARGET_DEFAULT_RETURN.
10762
10763 2014-02-19 Tom Tromey <tromey@redhat.com>
10764
10765 * target-delegates.c: Rebuild.
10766 * target.c (update_current_target): Don't inherit or default
10767 to_download_tracepoint.
10768 * target.h (struct target_ops) <to_download_tracepoint>: Use
10769 TARGET_DEFAULT_NORETURN.
10770
10771 2014-02-19 Tom Tromey <tromey@redhat.com>
10772
10773 * target-delegates.c: Rebuild.
10774 * target.c (update_current_target): Don't inherit or default
10775 to_trace_init.
10776 * target.h (struct target_ops) <to_trace_init>: Use
10777 TARGET_DEFAULT_RETURN.
10778
10779 2014-02-19 Tom Tromey <tromey@redhat.com>
10780
10781 * target-delegates.c: Rebuild.
10782 * target.c (update_current_target): Don't inherit or default
10783 to_supports_string_tracing.
10784 * target.h (struct target_ops) <to_supports_string_tracing>: Use
10785 TARGET_DEFAULT_RETURN.
10786
10787 2014-02-19 Tom Tromey <tromey@redhat.com>
10788
10789 * target-delegates.c: Rebuild.
10790 * target.c (update_current_target): Don't inherit or default
10791 to_supports_enable_disable_tracepoint.
10792 * target.h (struct target_ops)
10793 <to_supports_enable_disable_tracepoint>: Use
10794 TARGET_DEFAULT_RETURN.
10795
10796 2014-02-19 Tom Tromey <tromey@redhat.com>
10797
10798 * target-delegates.c: Rebuild.
10799 * target.c (update_current_target): Don't inherit or default
10800 to_supports_multi_process.
10801 * target.h (struct target_ops) <to_supports_multi_process>: Use
10802 TARGET_DEFAULT_RETURN.
10803
10804 2014-02-19 Tom Tromey <tromey@redhat.com>
10805
10806 * target-delegates.c: Rebuild.
10807 * target.c (update_current_target): Don't inherit or default
10808 to_get_ada_task_ptid.
10809 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
10810 TARGET_DEFAULT_FUNC.
10811
10812 2014-02-19 Tom Tromey <tromey@redhat.com>
10813
10814 * target-delegates.c: Rebuild.
10815 * target.c (update_current_target): Don't inherit or default
10816 to_thread_architecture.
10817 * target.h (struct target_ops) <to_thread_architecture>: Use
10818 TARGET_DEFAULT_FUNC.
10819
10820 2014-02-19 Tom Tromey <tromey@redhat.com>
10821
10822 * target-delegates.c: Rebuild.
10823 * target.c (update_current_target): Don't inherit or default
10824 to_execution_direction.
10825 * target.h (struct target_ops) <to_execution_direction>: Use
10826 TARGET_DEFAULT_FUNC.
10827
10828 2014-02-19 Tom Tromey <tromey@redhat.com>
10829
10830 * target-delegates.c: Rebuild.
10831 * target.c (update_current_target): Don't inherit or default
10832 to_can_execute_reverse.
10833 * target.h (struct target_ops) <to_can_execute_reverse>: Use
10834 TARGET_DEFAULT_RETURN.
10835 (target_can_execute_reverse): Unconditionally delegate.
10836
10837 2014-02-19 Tom Tromey <tromey@redhat.com>
10838
10839 * target-delegates.c: Rebuild.
10840 * target.c (update_current_target): Don't inherit or default
10841 to_goto_bookmark.
10842 (dummy_goto_bookmark): Remove.
10843 (init_dummy_target): Don't inherit or default to_goto_bookmark.
10844 * target.h (struct target_ops) <to_goto_bookmark>: Use
10845 TARGET_DEFAULT_NORETURN.
10846
10847 2014-02-19 Tom Tromey <tromey@redhat.com>
10848
10849 * target-delegates.c: Rebuild.
10850 * target.c (update_current_target): Don't inherit or default
10851 to_get_bookmark.
10852 (dummy_get_bookmark): Remove.
10853 (init_dummy_target): Don't inherit or default to_get_bookmark.
10854 * target.h (struct target_ops) <to_get_bookmark>: Use
10855 TARGET_DEFAULT_NORETURN
10856
10857 2014-02-19 Tom Tromey <tromey@redhat.com>
10858
10859 * target-delegates.c: Rebuild.
10860 * target.c (update_current_target): Don't inherit or default
10861 to_make_corefile_notes.
10862 (init_dummy_target): Don't initialize to_make_corefile_notes.
10863 * target.h (struct target_ops) <to_make_corefile_notes>: Use
10864 TARGET_DEFAULT_FUNC.
10865
10866 2014-02-19 Tom Tromey <tromey@redhat.com>
10867
10868 * target-delegates.c: Rebuild.
10869 * target.c (update_current_target): Don't inherit or default
10870 to_find_memory_regions.
10871 (init_dummy_target): Don't initialize to_find_memory_regions.
10872 * target.h (struct target_ops) <to_find_memory_regions>: Use
10873 TARGET_DEFAULT_FUNC.
10874
10875 2014-02-19 Tom Tromey <tromey@redhat.com>
10876
10877 * target-delegates.c: Rebuild.
10878 * target.c (update_current_target): Don't inherit or default
10879 to_log_command.
10880 * target.h (struct target_ops) <to_log_command>: Use
10881 TARGET_DEFAULT_IGNORE.
10882 (target_log_command): Unconditionally delegate.
10883
10884 2014-02-19 Tom Tromey <tromey@redhat.com>
10885
10886 * target-delegates.c: Rebuild.
10887 * target.c (update_current_target): Don't inherit or default
10888 to_pid_to_exec_file.
10889 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
10890 TARGET_DEFAULT_RETURN.
10891
10892 2014-02-19 Tom Tromey <tromey@redhat.com>
10893
10894 * target-delegates.c: Rebuild.
10895 * target.c (update_current_target): Don't inherit or default
10896 to_thread_name.
10897 (target_thread_name): Unconditionally delegate.
10898 * target.h (struct target_ops) <to_thread_name>: Use
10899 TARGET_DEFAULT_RETURN.
10900
10901 2014-02-19 Tom Tromey <tromey@redhat.com>
10902
10903 * target-delegates.c: Rebuild.
10904 * target.c (update_current_target): Don't inherit or default
10905 to_extra_thread_info.
10906 * target.h (struct target_ops) <to_extra_thread_info>: Use
10907 TARGET_DEFAULT_RETURN.
10908
10909 2014-02-19 Tom Tromey <tromey@redhat.com>
10910
10911 * target-delegates.c: Rebuild.
10912 * target.c (update_current_target): Don't inherit or default
10913 to_has_exited.
10914 * target.h (struct target_ops) <to_has_exited>: Use
10915 TARGET_DEFAULT_RETURN..
10916
10917 2014-02-19 Tom Tromey <tromey@redhat.com>
10918
10919 * target-delegates.c: Rebuild.
10920 * target.c (update_current_target): Don't inherit or default
10921 to_set_syscall_catchpoint.
10922 (return_one): Remove.
10923 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
10924 TARGET_DEFAULT_RETURN.
10925
10926 2014-02-19 Tom Tromey <tromey@redhat.com>
10927
10928 * target-delegates.c: Rebuild.
10929 * target.c (update_current_target): Don't inherit or default
10930 to_insert_exec_catchpoint.
10931 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10932 TARGET_DEFAULT_RETURN.
10933
10934 2014-01-08 Tom Tromey <tromey@redhat.com>
10935
10936 * target-delegates.c: Rebuild.
10937 * target.c (update_current_target): Don't inherit or default
10938 to_insert_exec_catchpoint.
10939 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
10940 TARGET_DEFAULT_RETURN.
10941
10942 2014-02-19 Tom Tromey <tromey@redhat.com>
10943
10944 * target-delegates.c: Rebuild.
10945 * target.c (update_current_target): Don't inherit or default
10946 to_remove_vfork_catchpoint.
10947 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
10948 TARGET_DEFAULT_RETURN.
10949
10950 2014-02-19 Tom Tromey <tromey@redhat.com>
10951
10952 * target-delegates.c: Rebuild.
10953 * target.c (update_current_target): Don't inherit or default
10954 to_insert_vfork_catchpoint.
10955 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
10956 TARGET_DEFAULT_RETURN.
10957
10958 2014-02-19 Tom Tromey <tromey@redhat.com>
10959
10960 * target-delegates.c: Rebuild.
10961 * target.c (update_current_target): Don't inherit or default
10962 to_remove_fork_catchpoint.
10963 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
10964 TARGET_DEFAULT_RETURN.
10965
10966 2014-02-19 Tom Tromey <tromey@redhat.com>
10967
10968 * target-delegates.c: Rebuild.
10969 * target.c (update_current_target): Don't inherit or default
10970 to_insert_fork_catchpoint.
10971 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
10972 TARGET_DEFAULT_RETURN.
10973
10974 2014-02-19 Tom Tromey <tromey@redhat.com>
10975
10976 * target-delegates.c: Rebuild.
10977 * target.c (update_current_target): Don't inherit or default
10978 to_post_startup_inferior.
10979 * target.h (struct target_ops) <to_post_startup_inferior>: Use
10980 TARGET_DEFAULT_IGNORE.
10981
10982 2014-02-19 Tom Tromey <tromey@redhat.com>
10983
10984 * target-delegates.c: Rebuild.
10985 * target.c (update_current_target): Don't inherit or default
10986 to_load.
10987 * target.h (struct target_ops) <to_load>: Use
10988 TARGET_DEFAULT_NORETURN.
10989
10990 2014-02-19 Tom Tromey <tromey@redhat.com>
10991
10992 * target-delegates.c: Rebuild.
10993 * target.c (update_current_target): Don't inherit or default
10994 to_terminal_info.
10995 * target.h (struct target_ops) <to_terminal_info>: Use
10996 TARGET_DEFAULT_FUNC.
10997
10998 2014-02-19 Tom Tromey <tromey@redhat.com>
10999
11000 * target-delegates.c: Rebuild.
11001 * target.c (update_current_target): Don't inherit or default
11002 to_terminal_save_ours.
11003 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11004 TARGET_DEFAULT_IGNORE.
11005
11006 2014-02-19 Tom Tromey <tromey@redhat.com>
11007
11008 * target-delegates.c: Rebuild.
11009 * target.c (update_current_target): Don't inherit or default
11010 to_terminal_ours.
11011 * target.h (struct target_ops) <to_terminal_ours>: Use
11012 TARGET_DEFAULT_IGNORE.
11013
11014 2014-02-19 Tom Tromey <tromey@redhat.com>
11015
11016 * target-delegates.c: Rebuild.
11017 * target.c (update_current_target): Don't inherit or default
11018 to_terminal_ours_for_output.
11019 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11020 TARGET_DEFAULT_IGNORE.
11021
11022 2014-02-19 Tom Tromey <tromey@redhat.com>
11023
11024 * target-delegates.c: Rebuild.
11025 * target.c (update_current_target): Don't inherit or default
11026 to_terminal_inferior.
11027 * target.h (struct target_ops) <to_terminal_inferior>: Use
11028 TARGET_DEFAULT_IGNORE.
11029
11030 2014-02-19 Tom Tromey <tromey@redhat.com>
11031
11032 * target-delegates.c: Rebuild.
11033 * target.c (update_current_target): Don't inherit or default
11034 to_terminal_init.
11035 * target.h (struct target_ops) <to_terminal_init>: Use
11036 TARGET_DEFAULT_IGNORE.
11037
11038 2014-02-19 Tom Tromey <tromey@redhat.com>
11039
11040 * target-delegates.c: Rebuild.
11041 * target.c (update_current_target): Don't inherit or default
11042 to_can_accel_watchpoint_condition.
11043 * target.h (struct target_ops)
11044 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11045
11046 2014-02-19 Tom Tromey <tromey@redhat.com>
11047
11048 * target-delegates.c: Rebuild.
11049 * target.c (update_current_target): Don't inherit or default
11050 to_region_ok_for_hw_watchpoint.
11051 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11052 Use TARGET_DEFAULT_FUNC.
11053
11054 2014-02-19 Tom Tromey <tromey@redhat.com>
11055
11056 * target-delegates.c: Rebuild.
11057 * target.c (update_current_target): Don't inherit or default
11058 to_watchpoint_addr_within_range.
11059 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11060 Use TARGET_DEFAULT_FUNC.
11061
11062 2014-02-19 Tom Tromey <tromey@redhat.com>
11063
11064 * target-delegates.c: Rebuild.
11065 * target.c (update_current_target): Don't inherit or default
11066 to_remove_watchpoint.
11067 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11068 TARGET_DEFAULT_NORETURN.
11069
11070 2014-02-19 Tom Tromey <tromey@redhat.com>
11071
11072 * target-delegates.c: Rebuild.
11073 * target.c (update_current_target): Don't inherit or default
11074 to_insert_watchpoint.
11075 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11076 TARGET_DEFAULT_RETURN.
11077
11078 2014-02-19 Tom Tromey <tromey@redhat.com>
11079
11080 * target-delegates.c: Rebuild.
11081 * target.c (update_current_target): Don't inherit or default
11082 to_remove_hw_breakpoint.
11083 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11084 TARGET_DEFAULT_RETURN.
11085
11086 2014-02-19 Tom Tromey <tromey@redhat.com>
11087
11088 * target-delegates.c: Rebuild.
11089 * target.c (update_current_target): Don't inherit or default
11090 to_insert_hw_breakpoint.
11091 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11092 TARGET_DEFAULT_RETURN.
11093
11094 2014-02-19 Tom Tromey <tromey@redhat.com>
11095
11096 * target-delegates.c: Rebuild.
11097 * target.c (update_current_target): Don't inherit or default
11098 to_can_use_hw_breakpoint.
11099 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11100 TARGET_DEFAULT_RETURN.
11101
11102 2014-02-19 Tom Tromey <tromey@redhat.com>
11103
11104 * target-delegates.c: Rebuild.
11105 * target.c (update_current_target): Don't inherit or default
11106 to_files_info.
11107 * target.h (struct target_ops) <to_files_info>: Use
11108 TARGET_DEFAULT_IGNORE.
11109
11110 2014-02-19 Tom Tromey <tromey@redhat.com>
11111
11112 * target-delegates.c: Rebuild.
11113 * target.c (update_current_target): Don't inherit or default
11114 to_store.
11115 * target.h (struct target_ops) <to_store>: Use
11116 TARGET_DEFAULT_NORETURN.
11117
11118 2014-02-19 Tom Tromey <tromey@redhat.com>
11119
11120 * target-delegates.c: Rebuild.
11121 * target.c (update_current_target): Don't inherit or default
11122 to_post_attach.
11123 * target.h (struct target_ops) <to_post_attach>: Use
11124 TARGET_DEFAULT_IGNORE.
11125
11126 2014-02-19 Tom Tromey <tromey@redhat.com>
11127
11128 * target-delegates.c: Rebuild.
11129 * target.c (update_current_target): Don't inherit or default
11130 to_rcmd.
11131 (default_rcmd): New function.
11132 (do_monitor_command): Unconditionally delegate.
11133 * target.h (struct target_ops) <to_rmcd>: Use
11134 TARGET_DEFAULT_FUNC.
11135
11136 2014-02-19 Tom Tromey <tromey@redhat.com>
11137
11138 * target-delegates.c: Rebuild.
11139 * target.c (init_dummy_target): Don't initialize to_attach.
11140 (target_attach): Unconditionally delegate.
11141 * target.h (struct target_ops) <to_attach>: Use
11142 TARGET_DEFAULT_FUNC.
11143
11144 2014-02-19 Tom Tromey <tromey@redhat.com>
11145
11146 * target-delegates.c: Rebuild.
11147 * target.c (target_detach): Unconditionally delegate.
11148 (init_dummy_target): Don't initialize to_detach.
11149 * target.h (struct target_ops) <to_detach>: Use
11150 TARGET_DEFAULT_IGNORE.
11151
11152 2014-02-19 Tom Tromey <tromey@redhat.com>
11153
11154 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11155 Add argument.
11156 (target_augmented_libraries_svr4_read): Add argument.
11157 * target.c (update_current_target): Update.
11158 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11159 argument.
11160
11161 2014-02-19 Tom Tromey <tromey@redhat.com>
11162
11163 * target.h (struct target_ops) <to_call_history_range>: Add
11164 argument.
11165 * target.c (target_call_history_range): Add argument.
11166 * record-btrace.c (record_btrace_call_history_range): Add 'self'
11167 argument.
11168 (record_btrace_call_history_from): Update.
11169
11170 2014-02-19 Tom Tromey <tromey@redhat.com>
11171
11172 * target.h (struct target_ops) <to_call_history_from>: Add
11173 argument.
11174 * target.c (target_call_history_from): Add argument.
11175 * record-btrace.c (record_btrace_call_history_from): Add 'self'
11176 argument.
11177
11178 2014-02-19 Tom Tromey <tromey@redhat.com>
11179
11180 * target.h (struct target_ops) <to_call_history>: Add argument.
11181 * target.c (target_call_history): Add argument.
11182 * record-btrace.c (record_btrace_call_history): Add 'self'
11183 argument.
11184
11185 2014-02-19 Tom Tromey <tromey@redhat.com>
11186
11187 * target.h (struct target_ops) <to_insn_history_range>: Add
11188 argument.
11189 * target.c (target_insn_history_range): Add argument.
11190 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11191 argument.
11192 (record_btrace_insn_history_from): Update.
11193
11194 2014-02-19 Tom Tromey <tromey@redhat.com>
11195
11196 * target.h (struct target_ops) <to_insn_history_from>: Add
11197 argument.
11198 * target.c (target_insn_history_from): Add argument.
11199 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11200 argument.
11201
11202 2014-02-19 Tom Tromey <tromey@redhat.com>
11203
11204 * target.h (struct target_ops) <to_insn_history>: Add argument.
11205 * target.c (target_insn_history): Add argument.
11206 * record-btrace.c (record_btrace_insn_history): Add 'self'
11207 argument.
11208
11209 2014-02-19 Tom Tromey <tromey@redhat.com>
11210
11211 * target.h (struct target_ops) <to_goto_record>: Add argument.
11212 * target.c (target_goto_record): Add argument.
11213 * record-full.c (record_full_goto): Add 'self' argument.
11214 * record-btrace.c (record_btrace_goto): Add 'self' argument.
11215
11216 2014-02-19 Tom Tromey <tromey@redhat.com>
11217
11218 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11219 * target.c (target_goto_record_end): Add argument.
11220 * record-full.c (record_full_goto_end): Add 'self' argument.
11221 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11222
11223 2014-02-19 Tom Tromey <tromey@redhat.com>
11224
11225 * target.h (struct target_ops) <to_goto_record_begin>: Add
11226 argument.
11227 * target.c (target_goto_record_begin): Add argument.
11228 * record-full.c (record_full_goto_begin): Add 'self' argument.
11229 * record-btrace.c (record_btrace_goto_begin): Add 'self'
11230 argument.
11231
11232 2014-02-19 Tom Tromey <tromey@redhat.com>
11233
11234 * target.h (struct target_ops) <to_record_is_replaying>: Add
11235 argument.
11236 * target.c (target_record_is_replaying): Add argument.
11237 * record-full.c (record_full_is_replaying): Add 'self' argument.
11238 * record-btrace.c (record_btrace_is_replaying): Add 'self'
11239 argument.
11240 (record_btrace_xfer_partial, record_btrace_store_registers)
11241 (record_btrace_prepare_to_store, record_btrace_resume)
11242 (record_btrace_wait, record_btrace_decr_pc_after_break)
11243 (record_btrace_find_new_threads, record_btrace_thread_alive):
11244 Update.
11245
11246 2014-02-19 Tom Tromey <tromey@redhat.com>
11247
11248 * target.h (struct target_ops) <to_delete_record>: Add argument.
11249 * target.c (target_delete_record): Add argument.
11250 * record-full.c (record_full_delete): Add 'self' argument.
11251
11252 2014-02-19 Tom Tromey <tromey@redhat.com>
11253
11254 * target.h (struct target_ops) <to_save_record>: Add argument.
11255 * target.c (target_save_record): Add argument.
11256 * record-full.c (record_full_save): Add 'self' argument.
11257 (record_full_save): Add 'self' argument.
11258
11259 2014-02-19 Tom Tromey <tromey@redhat.com>
11260
11261 * target.h (struct target_ops) <to_info_record>: Add argument.
11262 * target.c (target_info_record): Add argument.
11263 * record.c (info_record_command): Add argument.
11264 * record-full.c (record_full_info): Add 'self' argument.
11265 * record-btrace.c (record_btrace_info): Add 'self' argument.
11266
11267 2014-02-19 Tom Tromey <tromey@redhat.com>
11268
11269 * target.h (struct target_ops) <to_stop_recording>: Add argument.
11270 * target.c (target_stop_recording): Add argument.
11271 * record.c (record_stop): Add argument.
11272 * record-btrace.c (record_btrace_stop_recording): Add 'self'
11273 argument.
11274
11275 2014-02-19 Tom Tromey <tromey@redhat.com>
11276
11277 * target.h (struct target_ops) <to_read_btrace>: Add argument.
11278 * target.c (struct target_ops) <to_read_btrace>: Add argument.
11279 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11280 argument.
11281 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11282 (_initialize_amd64_linux_nat): Use it.
11283 * i386-linux-nat.c (i386_linux_read_btrace): New function.
11284 (_initialize_i386_linux_nat): Use it.
11285
11286 2014-02-19 Tom Tromey <tromey@redhat.com>
11287
11288 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11289 * target.c (target_teardown_btrace): Add argument.
11290 * remote.c (remote_teardown_btrace): Add 'self' argument.
11291 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11292 argument.
11293 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11294 argument.
11295
11296 2014-02-19 Tom Tromey <tromey@redhat.com>
11297
11298 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11299 * target.c (target_disable_btrace): Add argument.
11300 * remote.c (remote_disable_btrace): Add 'self' argument.
11301 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11302 argument.
11303 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11304 argument.
11305
11306 2014-02-19 Tom Tromey <tromey@redhat.com>
11307
11308 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11309 * target.c (target_enable_btrace): Add argument.
11310 * remote.c (remote_enable_btrace): Add 'self' argument.
11311 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11312 argument.
11313 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11314 argument.
11315
11316 2014-02-19 Tom Tromey <tromey@redhat.com>
11317
11318 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11319 (target_can_use_agent): Add argument.
11320 * target.c (update_current_target): Update.
11321 * remote.c (remote_can_use_agent): Add 'self' argument.
11322 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11323
11324 2014-02-19 Tom Tromey <tromey@redhat.com>
11325
11326 * target.h (struct target_ops) <to_use_agent>: Add argument.
11327 (target_use_agent): Add argument.
11328 * target.c (update_current_target): Update.
11329 * remote.c (remote_use_agent): Add 'self' argument.
11330 * inf-child.c (inf_child_use_agent): Add 'self' argument.
11331
11332 2014-02-19 Tom Tromey <tromey@redhat.com>
11333
11334 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11335 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11336 (target_traceframe_info): Add argument.
11337 * target.c (update_current_target): Update.
11338 * remote.c (remote_traceframe_info): Add 'self' argument.
11339 * ctf.c (ctf_traceframe_info): Add 'self' argument.
11340
11341 2014-02-19 Tom Tromey <tromey@redhat.com>
11342
11343 * target.h (target_static_tracepoint_markers_by_strid): Add
11344 argument.
11345 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11346 'self' argument.
11347 * target.c (update_current_target): Update.
11348 * remote.c (struct target_ops)
11349 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11350 * linux-nat.c (struct target_ops)
11351 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11352
11353 2014-02-19 Tom Tromey <tromey@redhat.com>
11354
11355 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11356 Add argument.
11357 (target_static_tracepoint_marker_at): Add argument.
11358 * target.c (update_current_target): Update.
11359 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11360 argument.
11361
11362 2014-02-19 Tom Tromey <tromey@redhat.com>
11363
11364 * target.h (struct target_ops) <to_set_permissions>: Add argument.
11365 (target_set_permissions): Add argument.
11366 * target.c (update_current_target): Update.
11367 * remote.c (remote_set_permissions): Add 'self' argument.
11368 (remote_start_remote): Update.
11369
11370 2014-02-19 Tom Tromey <tromey@redhat.com>
11371
11372 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11373 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11374 (target_get_tib_address): Add argument.
11375 * target.c (update_current_target): Update.
11376 * remote.c (remote_get_tib_address): Add 'self' argument.
11377
11378 2014-02-19 Tom Tromey <tromey@redhat.com>
11379
11380 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11381 (target_set_trace_notes): Add argument.
11382 * target.c (update_current_target): Update.
11383 * remote.c (remote_set_trace_notes): Add 'self' argument.
11384
11385 2014-02-19 Tom Tromey <tromey@redhat.com>
11386
11387 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11388 argument.
11389 (target_set_trace_buffer_size): Add argument.
11390 * target.c (update_current_target): Update.
11391 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11392
11393 2014-02-19 Tom Tromey <tromey@redhat.com>
11394
11395 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11396 argument.
11397 (target_set_circular_trace_buffer): Add argument.
11398 * target.c (update_current_target): Update.
11399 * remote.c (remote_set_circular_trace_buffer): Add 'self'
11400 argument.
11401
11402 2014-02-19 Tom Tromey <tromey@redhat.com>
11403
11404 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11405 argument.
11406 (target_set_disconnected_tracing): Add argument.
11407 * target.c (update_current_target): Update.
11408 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11409
11410 2014-02-19 Tom Tromey <tromey@redhat.com>
11411
11412 * target.h (struct target_ops)
11413 <to_get_min_fast_tracepoint_insn_len>: Add argument.
11414 (target_get_min_fast_tracepoint_insn_len): Add argument.
11415 * target.c (update_current_target): Update.
11416 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11417 argument.
11418
11419 2014-02-19 Tom Tromey <tromey@redhat.com>
11420
11421 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11422 argument.
11423 (target_get_raw_trace_data): Add argument.
11424 * target.c (update_current_target): Update.
11425 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11426
11427 2014-02-19 Tom Tromey <tromey@redhat.com>
11428
11429 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11430 Add argument.
11431 (target_upload_trace_state_variables): Add argument.
11432 * target.c (update_current_target): Update.
11433 * remote.c (remote_upload_trace_state_variables): Add 'self'
11434 argument.
11435 (remote_start_remote): Update.
11436
11437 2014-02-19 Tom Tromey <tromey@redhat.com>
11438
11439 * target.h (struct target_ops) <to_upload_tracepoints>: Add
11440 argument.
11441 (target_upload_tracepoints): Add argument.
11442 * target.c (update_current_target): Update.
11443 * remote.c (remote_upload_tracepoints): Add 'self' argument.
11444 (remote_start_remote): Update.
11445
11446 2014-02-19 Tom Tromey <tromey@redhat.com>
11447
11448 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11449 (target_save_trace_data): Add argument.
11450 * target.c (update_current_target): Update.
11451 * remote.c (remote_save_trace_data): Add 'self' argument.
11452
11453 2014-02-19 Tom Tromey <tromey@redhat.com>
11454
11455 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11456 argument.
11457 * target.h (struct target_ops)
11458 <to_get_trace_state_variable_value>: Add argument.
11459 (target_get_trace_state_variable_value): Add argument.
11460 * target.c (update_current_target): Update.
11461 * remote.c (remote_get_trace_state_variable_value): Add 'self'
11462 argument.
11463 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11464
11465 2014-02-19 Tom Tromey <tromey@redhat.com>
11466
11467 * tracepoint.c (tfile_trace_find): Add 'self' argument.
11468 * target.h (struct target_ops) <to_trace_find>: Add argument.
11469 (target_trace_find): Add argument.
11470 * target.c (update_current_target): Update.
11471 * remote.c (remote_trace_find): Add 'self' argument.
11472 * ctf.c (ctf_trace_find): Add 'self' argument.
11473
11474 2014-02-19 Tom Tromey <tromey@redhat.com>
11475
11476 * target.h (struct target_ops) <to_trace_stop>: Add argument.
11477 (target_trace_stop): Add argument.
11478 * target.c (update_current_target): Update.
11479 * remote.c (remote_trace_stop): Add 'self' argument.
11480
11481 2014-02-19 Tom Tromey <tromey@redhat.com>
11482
11483 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11484 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11485 argument.
11486 (target_get_tracepoint_status): Add argument.
11487 * target.c (update_current_target): Update.
11488 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11489
11490 2014-02-19 Tom Tromey <tromey@redhat.com>
11491
11492 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11493 * target.h (struct target_ops) <to_get_trace_status>: Add
11494 argument.
11495 (target_get_trace_status): Add argument.
11496 * target.c (update_current_target): Update.
11497 * remote.c (remote_get_trace_status): Add 'self' argument.
11498 (remote_start_remote, remote_can_download_tracepoint): Update.
11499 * ctf.c (ctf_get_trace_status): Add 'self' argument.
11500
11501 2014-02-19 Tom Tromey <tromey@redhat.com>
11502
11503 * target.h (struct target_ops) <to_trace_start>: Add argument.
11504 (target_trace_start): Add argument.
11505 * target.c (update_current_target): Update.
11506 * remote.c (remote_trace_start): Add 'self' argument.
11507
11508 2014-02-19 Tom Tromey <tromey@redhat.com>
11509
11510 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11511 Add argument.
11512 (target_trace_set_readonly_regions): Add argument.
11513 * target.c (update_current_target): Update.
11514 * remote.c (remote_trace_set_readonly_regions): Add 'self'
11515 argument.
11516
11517 2014-02-19 Tom Tromey <tromey@redhat.com>
11518
11519 * target.h (struct target_ops) <to_disable_tracepoint>: Add
11520 argument.
11521 (target_disable_tracepoint): Add argument.
11522 * target.c (update_current_target): Update.
11523 * remote.c (remote_disable_tracepoint): Add 'self' argument.
11524
11525 2014-02-19 Tom Tromey <tromey@redhat.com>
11526
11527 * target.h (struct target_ops) <to_enable_tracepoint>: Add
11528 argument.
11529 (target_enable_tracepoint): Add argument.
11530 * target.c (update_current_target): Update.
11531 * remote.c (remote_enable_tracepoint): Add 'self' argument.
11532
11533 2014-02-19 Tom Tromey <tromey@redhat.com>
11534
11535 * target.h (struct target_ops) <to_download_trace_state_variable>:
11536 Add argument.
11537 (target_download_trace_state_variable): Add argument.
11538 * target.c (update_current_target): Update.
11539 * remote.c (remote_download_trace_state_variable): Add 'self'
11540 argument.
11541
11542 2014-02-19 Tom Tromey <tromey@redhat.com>
11543
11544 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
11545 argument.
11546 (target_can_download_tracepoint): Add argument.
11547 * target.c (update_current_target): Update.
11548 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
11549
11550 2014-02-19 Tom Tromey <tromey@redhat.com>
11551
11552 * target.h (struct target_ops) <to_download_tracepoint>: Add
11553 argument.
11554 (target_download_tracepoint): Add argument.
11555 * target.c (update_current_target): Update.
11556 * remote.c (remote_download_tracepoint): Add 'self' argument.
11557
11558 2014-02-19 Tom Tromey <tromey@redhat.com>
11559
11560 * target.h (struct target_ops) <to_trace_init>: Add argument.
11561 (target_trace_init): Add argument.
11562 * target.c (update_current_target): Update.
11563 * remote.c (remote_trace_init): Add 'self' argument.
11564
11565 2014-02-19 Tom Tromey <tromey@redhat.com>
11566
11567 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
11568 * target.c (target_fileio_readlink): Add argument.
11569 * remote.c (remote_hostio_readlink): Add 'self' argument.
11570 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
11571
11572 2014-02-19 Tom Tromey <tromey@redhat.com>
11573
11574 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
11575 * target.c (target_fileio_unlink): Add argument.
11576 * remote.c (remote_hostio_unlink): Add 'self' argument.
11577 (remote_file_delete): Update.
11578 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
11579
11580 2014-02-19 Tom Tromey <tromey@redhat.com>
11581
11582 * target.h (struct target_ops) <to_fileio_close>: Add argument.
11583 * target.c (target_fileio_close): Add argument.
11584 * remote.c (remote_hostio_close): Add 'self' argument.
11585 (remote_hostio_close_cleanup): Update.
11586 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
11587 Update.
11588 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
11589
11590 2014-02-19 Tom Tromey <tromey@redhat.com>
11591
11592 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
11593 * target.c (target_fileio_pread): Add argument.
11594 * remote.c (remote_hostio_pread): Add 'self' argument.
11595 (remote_bfd_iovec_pread, remote_file_get): Update.
11596 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
11597
11598 2014-02-19 Tom Tromey <tromey@redhat.com>
11599
11600 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
11601 * target.c (target_fileio_pwrite): Add argument.
11602 * remote.c (remote_hostio_pwrite): Add 'self' argument.
11603 (remote_file_put): Update.
11604 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
11605
11606 2014-02-19 Tom Tromey <tromey@redhat.com>
11607
11608 * target.h (struct target_ops) <to_fileio_open>: Add argument.
11609 * target.c (target_fileio_open): Add argument.
11610 * remote.c (remote_hostio_open): Add 'self' argument.
11611 (remote_bfd_iovec_open): Add 'self' argument.
11612 (remote_file_put): Add 'self' argument.
11613 (remote_file_get): Add 'self' argument.
11614 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
11615
11616 2014-02-19 Tom Tromey <tromey@redhat.com>
11617
11618 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11619 Add argument.
11620 (target_can_run_breakpoint_commands): Add argument.
11621 * target.c (update_current_target): Update.
11622 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
11623 argument.
11624 (remote_insert_breakpoint): Add 'self' argument.
11625 (remote_insert_hw_breakpoint): Add 'self' argument.
11626 (remote_can_run_breakpoint_commands): Add 'self' argument.
11627
11628 2014-02-19 Tom Tromey <tromey@redhat.com>
11629
11630 * target.h (struct target_ops)
11631 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
11632 (target_supports_evaluation_of_breakpoint_conditions): Add
11633 argument.
11634 * target.c (update_current_target): Update.
11635 * remote.c (remote_supports_cond_breakpoints): Add 'self'
11636 argument.
11637 (remote_insert_breakpoint): Add 'self' argument.
11638 (remote_insert_hw_breakpoint): Add 'self' argument.
11639 (remote_supports_cond_breakpoints): Add 'self' argument.
11640
11641 2014-02-19 Tom Tromey <tromey@redhat.com>
11642
11643 * target.h (struct target_ops) <to_supports_string_tracing>: Add
11644 argument.
11645 (target_supports_string_tracing): Add argument.
11646 * target.c (update_current_target): Update.
11647 * remote.c (remote_supports_string_tracing): Add 'self' argument.
11648
11649 2014-02-19 Tom Tromey <tromey@redhat.com>
11650
11651 * target.h (struct target_ops)
11652 <to_supports_disable_randomization>: Add argument.
11653 * target.c (find_default_supports_disable_randomization): Add
11654 argument.
11655 (target_supports_disable_randomization): Add argument.
11656 (find_default_supports_disable_randomization): Add 'self'
11657 argument.
11658 * remote.c (extended_remote_supports_disable_randomization): Add
11659 'self' argument.
11660 (remote_supports_disable_randomization): Add 'self' argument.
11661 (extended_remote_create_inferior): Update.
11662 * linux-nat.c (linux_nat_supports_disable_randomization): Add
11663 'self' argument.
11664
11665 2014-02-19 Tom Tromey <tromey@redhat.com>
11666
11667 * target.h (struct target_ops)
11668 <to_supports_enable_disable_tracepoint>: Add argument.
11669 (target_supports_enable_disable_tracepoint): Add argument.
11670 * target.c (update_current_target): Update.
11671 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
11672 argument.
11673
11674 2014-02-19 Tom Tromey <tromey@redhat.com>
11675
11676 * target.h (struct target_ops) <to_supports_multi_process>: Add
11677 argument.
11678 (target_supports_multi_process): Add argument.
11679 * target.c (update_current_target): Update.
11680 * remote.c (remote_supports_multi_process): Add 'self' argument.
11681 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
11682 argument.
11683 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
11684 argument.
11685
11686 2014-02-19 Tom Tromey <tromey@redhat.com>
11687
11688 * target.h (struct target_ops) <to_execution_direction>: Add
11689 argument.
11690 (target_execution_direction): Add argument.
11691 * target.c (default_execution_direction): Add 'self' argument.
11692 * record-full.c (record_full_execution_direction): Add 'self'
11693 argument.
11694
11695 2014-02-19 Tom Tromey <tromey@redhat.com>
11696
11697 * target.h (struct target_ops) <to_can_execute_reverse>: Add
11698 argument.
11699 (target_can_execute_reverse): Add argument.
11700 * remote.c (remote_can_execute_reverse): Add 'self' argument.
11701 * record-full.c (record_full_can_execute_reverse): Add 'self'
11702 argument.
11703 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
11704 argument.
11705
11706 2014-02-19 Tom Tromey <tromey@redhat.com>
11707
11708 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
11709 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
11710 argument.
11711 (target_get_ada_task_ptid): Add argument.
11712 * target.c (update_current_target): Update.
11713 (default_get_ada_task_ptid): Add 'self' argument.
11714 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
11715 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
11716 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
11717 argument.
11718 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
11719 argument.
11720 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
11721 argument.
11722 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
11723 argument.
11724 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
11725 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
11726 argument.
11727
11728 2014-02-19 Tom Tromey <tromey@redhat.com>
11729
11730 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
11731 (target_goto_bookmark): Add argument.
11732 * target.c (dummy_goto_bookmark): Add 'self' argument.
11733 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
11734
11735 2014-02-19 Tom Tromey <tromey@redhat.com>
11736
11737 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
11738 (target_get_bookmark): Add argument.
11739 * target.c (dummy_get_bookmark): Add 'self' argument.
11740 * record-full.c (record_full_get_bookmark): Add 'self' argument.
11741
11742 2014-02-19 Tom Tromey <tromey@redhat.com>
11743
11744 * target.h (struct target_ops) <to_make_corefile_notes>: Add
11745 argument.
11746 (target_make_corefile_notes): Add argument.
11747 * target.c (dummy_make_corefile_notes): Add 'self' argument.
11748 * procfs.c (procfs_make_note_section): Add 'self' argument.
11749 (procfs_make_note_section): Add 'self' argument.
11750 (procfs_make_note_section): Add 'self' argument.
11751 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
11752 argument.
11753 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
11754 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
11755 * exec.c (exec_make_note_section): Add 'self' argument.
11756 (exec_make_note_section): Add 'self' argument.
11757
11758 2014-02-19 Tom Tromey <tromey@redhat.com>
11759
11760 * target.h (struct target_ops) <to_find_memory_regions>: Add
11761 argument.
11762 (target_find_memory_regions): Add argument.
11763 * target.c (dummy_find_memory_regions): Add 'self' argument.
11764 * procfs.c (proc_find_memory_regions): Add 'self' argument.
11765 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
11766 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
11767 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
11768 * exec. (exec_do_find_memory_regions): New global.
11769 (exec_set_find_memory_regions): Rewrite.
11770 (exec_find_memory_regions): New function.
11771 (init_exec_ops): Use exec_find_memory_regions.
11772
11773 2014-02-19 Tom Tromey <tromey@redhat.com>
11774
11775 * target.h (struct target_ops) <to_supports_non_stop>: Add
11776 argument.
11777 * target.c (find_default_supports_non_stop): Add argument.
11778 (target_supports_non_stop): Add argument.
11779 (find_default_supports_non_stop): Add 'self' argument.
11780 * remote.c (remote_supports_non_stop): Add 'self' argument.
11781 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
11782
11783 2014-02-19 Tom Tromey <tromey@redhat.com>
11784
11785 * target.h (struct target_ops) <to_log_command>: Add argument.
11786 (target_log_command): Add argument.
11787 * serial.h (serial_log_command): Add 'self' argument.
11788 * serial.c (serial_log_command): Add 'self' argument.
11789
11790 2014-02-19 Tom Tromey <tromey@redhat.com>
11791
11792 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
11793 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
11794 argument.
11795 (target_pid_to_exec_file): Add argument.
11796 * target.c (debug_to_pid_to_exec_file): Add argument.
11797 (update_current_target): Update.
11798 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
11799 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
11800 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
11801 (linux_handle_extended_wait): Update.
11802 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
11803 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
11804 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
11805 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
11806
11807 2014-02-19 Tom Tromey <tromey@redhat.com>
11808
11809 * target.h (struct target_ops) <to_rcmd>: Add argument.
11810 (target_rcmd): Add argument.
11811 * target.c (debug_to_rcmd): Add argument.
11812 (update_current_target, do_monitor_command): Update.
11813 * remote.c (remote_rcmd): Add 'self' argument.
11814 * monitor.c (monitor_rcmd): Add 'self' argument.
11815
11816 2014-02-19 Tom Tromey <tromey@redhat.com>
11817
11818 * windows-nat.c (windows_stop): Add 'self' argument.
11819 * target.h (struct target_ops) <to_stop>: Add argument.
11820 * target.c (target_stop): Add argument.
11821 (debug_to_stop): Add argument.
11822 (update_current_target): Update.
11823 * remote.c (remote_stop): Add 'self' argument.
11824 * remote-sim.c (gdbsim_stop): Add 'self' argument.
11825 (gdbsim_cntrl_c): Update.
11826 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
11827 * procfs.c (procfs_stop): Add 'self' argument.
11828 * nto-procfs.c (procfs_stop): Add 'self' argument.
11829 * monitor.c (monitor_stop): Add 'self' argument.
11830 (monitor_open): Update.
11831 * linux-nat.c (linux_nat_stop): Add argument.
11832 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
11833 * gnu-nat.c (gnu_stop): Add 'self' argument.
11834 * darwin-nat.c (darwin_stop): Add 'self' argument.
11835
11836 2014-02-19 Tom Tromey <tromey@redhat.com>
11837
11838 * target.h (struct target_ops) <to_thread_name>: Add argument.
11839 * target.c (target_thread_name): Add argument.
11840 (update_current_target): Update.
11841 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
11842
11843 2014-02-19 Tom Tromey <tromey@redhat.com>
11844
11845 * target.h (struct target_ops) <to_extra_thread_info>: Add
11846 argument.
11847 (target_extra_thread_info): Add argument.
11848 * target.c (update_current_target): Update.
11849 * remote.c (remote_threads_extra_info): Add 'self' argument.
11850 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
11851 argument.
11852 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
11853 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
11854 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
11855 argument.
11856 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
11857 argument.
11858 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
11859 argument.
11860 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
11861 argument.
11862
11863 2014-02-19 Tom Tromey <tromey@redhat.com>
11864
11865 * target.h (struct target_ops) <to_program_signals>: Add argument.
11866 * target.c (target_program_signals): Add argument.
11867 * remote.c (remote_program_signals): Add 'self' argument.
11868
11869 2014-02-19 Tom Tromey <tromey@redhat.com>
11870
11871 * target.h (struct target_ops) <to_pass_signals>: Add argument.
11872 * target.c (target_pass_signals): Add argument.
11873 * remote.c (remote_pass_signals): Add 'self' argument.
11874 (remote_start_remote): Update.
11875 * procfs.c (procfs_pass_signals): Add 'self' argument.
11876 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
11877 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
11878 (linux_nat_create_inferior, linux_nat_attach): Update.
11879
11880 2014-02-19 Tom Tromey <tromey@redhat.com>
11881
11882 * windows-nat.c (windows_can_run): Add 'self' argument.
11883 * target.h (struct target_ops) <to_can_run>: Add argument.
11884 (target_can_run): Add argument.
11885 * target.c (debug_to_can_run): Add argument.
11886 (update_current_target): Update.
11887 * nto-procfs.c (procfs_can_run): Add 'self' argument.
11888 * inf-child.c (inf_child_can_run): Add 'self' argument.
11889 * go32-nat.c (go32_can_run): Add 'self' argument.
11890
11891 2014-02-19 Tom Tromey <tromey@redhat.com>
11892
11893 * target.h (struct target_ops) <to_has_exited>: Add argument.
11894 (target_has_exited): Add argument.
11895 * target.c (debug_to_has_exited): Add argument.
11896 (update_current_target): Update.
11897
11898 2014-02-19 Tom Tromey <tromey@redhat.com>
11899
11900 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
11901 argument.
11902 (target_set_syscall_catchpoint): Add argument.
11903 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
11904 argument.
11905 * target.c (update_current_target): Update.
11906
11907 2014-02-19 Tom Tromey <tromey@redhat.com>
11908
11909 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
11910 argument.
11911 (target_remove_exec_catchpoint): Add argument.
11912 * target.c (debug_to_remove_exec_catchpoint): Add argument.
11913 (update_current_target): Update.
11914 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
11915 argument.
11916
11917 2014-02-19 Tom Tromey <tromey@redhat.com>
11918
11919 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
11920 argument.
11921 (target_insert_exec_catchpoint): Add argument.
11922 * target.c (debug_to_insert_exec_catchpoint): Add argument.
11923 (update_current_target): Update.
11924 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
11925 argument.
11926
11927 2014-02-19 Tom Tromey <tromey@redhat.com>
11928
11929 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
11930 argument.
11931 (target_remove_vfork_catchpoint): Add argument.
11932 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
11933 (update_current_target): Update.
11934 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
11935 argument.
11936
11937 2014-02-19 Tom Tromey <tromey@redhat.com>
11938
11939 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
11940 argument.
11941 (target_insert_vfork_catchpoint): Add argument.
11942 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
11943 (update_current_target): Update.
11944 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
11945 argument.
11946
11947 2014-02-19 Tom Tromey <tromey@redhat.com>
11948
11949 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
11950 argument.
11951 (target_remove_fork_catchpoint): Add argument.
11952 * target.c (debug_to_remove_fork_catchpoint): Add argument.
11953 (update_current_target): Update.
11954 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
11955 argument.
11956
11957 2014-02-19 Tom Tromey <tromey@redhat.com>
11958
11959 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
11960 argument.
11961 (target_insert_fork_catchpoint): Add argument.
11962 * target.c (debug_to_insert_fork_catchpoint): Add argument.
11963 (update_current_target): Update.
11964 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
11965 argument.
11966
11967 2014-02-19 Tom Tromey <tromey@redhat.com>
11968
11969 * target.h (struct target_ops) <to_post_startup_inferior>: Add
11970 argument.
11971 (target_post_startup_inferior): Add argument.
11972 * target.c (debug_to_post_startup_inferior): Add argument.
11973 (update_current_target): Update.
11974 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
11975 argument.
11976 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
11977 argument.
11978 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
11979 argument.
11980 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
11981 argument.
11982 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
11983 'self' argument.
11984 (super_post_startup_inferior): Likewise.
11985 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
11986 'self' argument.
11987 (super_post_startup_inferior): Likewise.
11988 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
11989 Add 'self' argument.
11990 (super_post_startup_inferior): Likewise.
11991
11992 2014-02-19 Tom Tromey <tromey@redhat.com>
11993
11994 * target.h (struct target_ops) <to_load>: Add argument.
11995 * target.c (target_load): Add argument.
11996 (debug_to_load): Add argument.
11997 (update_current_target): Update.
11998 * remote.c (remote_load): Add 'self' argument.
11999 * remote-sim.c (gdbsim_load): Add 'self' argument.
12000 * remote-mips.c (mips_load): Add 'self' argument.
12001 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12002 * monitor.c (monitor_load): Add 'self' argument.
12003 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12004
12005 2014-02-19 Tom Tromey <tromey@redhat.com>
12006
12007 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12008 (target_terminal_info): Add argument.
12009 * target.c (debug_to_terminal_info): Add argument.
12010 (default_terminal_info): Likewise.
12011 * inflow.c (child_terminal_info): Add 'self' argument.
12012 * inferior.h (child_terminal_info): Add 'self' argument.
12013 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12014
12015 2014-02-19 Tom Tromey <tromey@redhat.com>
12016
12017 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12018 argument.
12019 (target_terminal_save_ours): Add argument.
12020 * target.c (debug_to_terminal_save_ours): Add argument.
12021 (update_current_target): Update.
12022 * inflow.c (terminal_save_ours): Add 'self' argument.
12023 * inferior.h (terminal_save_ours): Add 'self' argument.
12024
12025 2014-02-19 Tom Tromey <tromey@redhat.com>
12026
12027 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12028 (target_terminal_ours): Add argument.
12029 * target.c (debug_to_terminal_ours): Add argument.
12030 (update_current_target): Update.
12031 * remote.c (remote_terminal_ours): Add 'self' argument.
12032 (remote_close): Update.
12033 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12034 * inflow.c (terminal_ours): Add 'self' argument.
12035 * inferior.h (terminal_ours): Add 'self' argument.
12036 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12037
12038 2014-02-19 Pedro Alves <palves@redhat.com>
12039 Tom Tromey <tromey@redhat.com>
12040
12041 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12042 argument.
12043 (target_terminal_ours_for_output): Add argument.
12044 * target.c (debug_to_terminal_ours_for_output): Add argument.
12045 (update_current_target): Update.
12046 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12047 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12048 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12049
12050 2014-02-19 Tom Tromey <tromey@redhat.com>
12051
12052 * target.h (struct target_ops) <to_terminal_inferior>: Add
12053 argument.
12054 * target.c (target_terminal_inferior): Add argument.
12055 (update_current_target): Update.
12056 * remote.c (remote_terminal_inferior): Add 'self' argument.
12057 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12058 * inflow.c (terminal_inferior): Add 'self' argument.
12059 * inferior.h (terminal_inferior): Add 'self' argument.
12060 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12061 (go32_terminal_inferior): Add 'self' argument.
12062
12063 2014-02-19 Tom Tromey <tromey@redhat.com>
12064
12065 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12066 (target_terminal_init): Add argument.
12067 * target.c (debug_to_terminal_init): Add argument.
12068 (update_current_target): Update.
12069 * inflow.c (terminal_init_inferior): Add 'self' argument.
12070 * inferior.h (terminal_init_inferior): Add 'self' argument.
12071 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12072 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12073
12074 2014-02-19 Tom Tromey <tromey@redhat.com>
12075
12076 * target.h (struct target_ops)
12077 <to_can_accel_watchpoint_condition>: Add argument.
12078 (target_can_accel_watchpoint_condition): Add argument.
12079 * target.c (debug_to_can_accel_watchpoint_condition): Add
12080 argument.
12081 (update_current_target): Update.
12082 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12083 'self' argument.
12084
12085 2014-02-19 Tom Tromey <tromey@redhat.com>
12086
12087 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12088 Add argument.
12089 (target_region_ok_for_hw_watchpoint): Add argument.
12090 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12091 (default_region_ok_for_hw_watchpoint): Add argument.
12092 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12093 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12094 argument.
12095 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12096 argument.
12097 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12098 argument.
12099 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12100 'self' argument.
12101 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12102 'self' argument.
12103 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12104 'self' argument.
12105 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12106 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12107 'self' argument.
12108 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12109 Add 'self' argument.
12110
12111 2014-02-19 Tom Tromey <tromey@redhat.com>
12112
12113 * target.h (struct target_ops) <to_insert_watchpoint>: Add
12114 argument.
12115 (target_insert_watchpoint): Add argument.
12116 * target.c (debug_to_insert_watchpoint): Add argument.
12117 (update_current_target): Update.
12118 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12119 * remote.c (remote_insert_watchpoint): Add 'self' argument.
12120 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12121 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12122 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12123 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12124 argument.
12125 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12126 (procfs_insert_hw_watchpoint): Add 'self' argument.
12127 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12128 argument.
12129 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12130 argument.
12131 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12132 argument.
12133 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12134 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12135 argument.
12136 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12137 'self' argument.
12138
12139 2014-02-19 Tom Tromey <tromey@redhat.com>
12140
12141 * target.h (struct target_ops) <to_remove_watchpoint>: Add
12142 argument.
12143 (target_remove_watchpoint): Add argument.
12144 * target.c (debug_to_remove_watchpoint): Add argument.
12145 (update_current_target): Update.
12146 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12147 * remote.c (remote_remove_watchpoint): Add 'self' argument.
12148 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12149 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12150 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12151 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12152 argument.
12153 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12154 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12155 argument.
12156 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12157 argument.
12158 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12159 argument.
12160 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12161 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12162 argument.
12163 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12164 'self' argument.
12165
12166 2014-02-19 Tom Tromey <tromey@redhat.com>
12167
12168 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12169 argument.
12170 (target_remove_hw_breakpoint): Add argument.
12171 * target.c (debug_to_remove_hw_breakpoint): Add argument.
12172 (update_current_target): Update.
12173 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12174 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12175 argument.
12176 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12177 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12178 argument.
12179 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12180 'self' argument.
12181
12182 2014-02-19 Tom Tromey <tromey@redhat.com>
12183
12184 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12185 argument.
12186 (target_insert_hw_breakpoint): Add argument.
12187 * target.c (debug_to_insert_hw_breakpoint): Add argument.
12188 (update_current_target): Update.
12189 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12190 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12191 argument.
12192 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12193 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12194 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12195 argument.
12196 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12197 'self' argument.
12198
12199 2014-02-19 Tom Tromey <tromey@redhat.com>
12200
12201 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12202 argument.
12203 (target_can_use_hardware_watchpoint): Add argument.
12204 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12205 (update_current_target): Update.
12206 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12207 argument.
12208 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12209 argument.
12210 * remote.c (remote_check_watch_resources): Add 'self' argument.
12211 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12212 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12213 argument.
12214 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12215 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12216 argument.
12217 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12218 argument.
12219 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12220 argument.
12221 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12222 argument.
12223 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12224 argument.
12225 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12226 argument.
12227 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12228 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12229 argument.
12230 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12231 'self' argument.
12232
12233 2014-02-19 Tom Tromey <tromey@redhat.com>
12234
12235 * target.h (struct target_ops) <to_post_attach>: Add argument.
12236 (target_post_attach): Add argument.
12237 * target.c (debug_to_post_attach): Add argument.
12238 (update_current_target): Update.
12239 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12240 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12241 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12242 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12243 * inf-child.c (inf_child_post_attach): Add 'self' argument.
12244
12245 2014-02-19 Tom Tromey <tromey@redhat.com>
12246
12247 * windows-nat.c (windows_close): Add 'self' argument.
12248 * tracepoint.c (tfile_close): Add 'self' argument.
12249 * target.h (struct target_ops) <to_close>: Add argument.
12250 * target.c (target_close): Add argument.
12251 (update_current_target): Update.
12252 * remote.c (remote_close): Add 'self' argument.
12253 * remote-sim.c (gdbsim_close): Add 'self' argument.
12254 * remote-mips.c (mips_close): Add 'self' argument.
12255 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12256 * record-full.c (record_full_close): Add 'self' argument.
12257 * record-btrace.c (record_btrace_close): Add 'self' argument.
12258 * monitor.h (monitor_close): Add 'self' argument.
12259 * monitor.c (monitor_close): Add 'self' argument.
12260 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12261 * linux-nat.c (linux_nat_close): Add argument.
12262 * go32-nat.c (go32_close): Add 'self' argument.
12263 * exec.c (exec_close_1): Add 'self' argument.
12264 * ctf.c (ctf_close): Add 'self' argument.
12265 * corelow.c (core_close): Add 'self' argument.
12266 (core_close_cleanup): Update.
12267 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12268 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12269
12270 2014-02-19 Tom Tromey <tromey@redhat.com>
12271
12272 * remote.c (remote_load): New function.
12273 (init_remote_ops): Use it.
12274
12275 2014-02-19 Tom Tromey <tromey@redhat.com>
12276
12277 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12278 argument.
12279 * common/linux-btrace.h (linux_supports_btrace): Update.
12280 * remote.c (remote_supports_btrace): Add "self" argument.
12281 * target-delegates.c: Rebuild.
12282 * target.c (target_supports_btrace): Remove.
12283 * target.h (struct target_ops) <to_supports_btrace>: Add
12284 target_ops argument.
12285 (target_supports_btrace): New define.
12286
12287 2014-02-19 Tom Tromey <tromey@redhat.com>
12288
12289 * record-full.c (record_full_beneath_to_resume_ops)
12290 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12291 (record_full_beneath_to_wait)
12292 (record_full_beneath_to_store_registers_ops)
12293 (record_full_beneath_to_store_registers)
12294 (record_full_beneath_to_xfer_partial_ops)
12295 (record_full_beneath_to_xfer_partial)
12296 (record_full_beneath_to_insert_breakpoint_ops)
12297 (record_full_beneath_to_insert_breakpoint)
12298 (record_full_beneath_to_remove_breakpoint_ops)
12299 (record_full_beneath_to_remove_breakpoint)
12300 (record_full_beneath_to_stopped_by_watchpoint)
12301 (record_full_beneath_to_stopped_data_address)
12302 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12303 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12304 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12305 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12306 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12307 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12308 (tmp_to_stopped_data_address, tmp_to_async): Remove.
12309 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
12310 (record_full_resume, record_full_wait_1)
12311 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12312 (record_full_store_registers, record_full_xfer_partial)
12313 (record_full_insert_breakpoint, record_full_remove_breakpoint)
12314 (record_full_async, record_full_core_xfer_partial): Use target
12315 delegation.
12316 * target-delegates.c: Rebuild.
12317 * target.c (current_xfer_partial): Remove.
12318 (update_current_target): Do not INHERIT or de_fault
12319 to_insert_breakpoint, to_remove_breakpoint,
12320 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12321 to_is_async_p, to_async. Do not set to_xfer_partial field.
12322 (default_xfer_partial): Simplify.
12323 (current_xfer_partial): Remove.
12324 (target_wait, target_resume): Simplify.
12325 (find_default_can_async_p, find_default_is_async_p): Update.
12326 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12327 to_xfer_partial, to_stopped_by_watchpoint,
12328 to_stopped_data_address.
12329 (target_store_registers): Simplify.
12330 (forward_target_remove_breakpoint)
12331 (forward_target_insert_breakpoint): Remove.
12332 (target_remove_breakpoint, target_insert_breakpoint)
12333 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12334 * target.h (struct target_ops) <to_resume, to_wait,
12335 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12336 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12337 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12338 markup.
12339 (forward_target_remove_breakpoint)
12340 (forward_target_insert_breakpoint): Remove.
12341 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12342 directly.
12343 (record_btrace_insert_breakpoint): Delegate directly.
12344
12345 2014-02-19 Tom Tromey <tromey@redhat.com>
12346
12347 PR build/7701:
12348 * target-delegates.c: New file.
12349 * target.c: Include target-delegates.c.
12350 (init_dummy_target): Call install_dummy_methods.
12351 (complete_target_initialization): Call install_delegators.
12352 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12353 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12354 * make-target-delegates: New file.
12355
12356 2014-02-19 Tom Tromey <tromey@redhat.com>
12357
12358 * record.c (find_record_target): Use find_target_at.
12359 * target.c (find_target_at): New function.
12360 * target.h (find_target_at): Declare.
12361
12362 2014-02-19 Tom Tromey <tromey@redhat.com>
12363
12364 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12365 Add 'ops' argument.
12366 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12367 'ops' argument.
12368 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12369 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12370 'ops' argument.
12371 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12372 argument.
12373 * linux-nat.c (save_sigtrap): Update.
12374 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12375 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12376 (linux_nat_close): Update.
12377 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12378 argument.
12379 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12380 argument.
12381 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12382 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12383 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12384 (tmp_to_async): Add 'ops' argument.
12385 (record_full_stopped_by_watchpoint, record_full_async)
12386 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12387 argument.
12388 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12389 (m32r_stopped_by_watchpoint): Add 'ops' argument.
12390 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12391 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12392 (remote_is_async_p, remote_async): Add 'ops' argument.
12393 (remote_stopped_data_address): Update.
12394 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12395 * target.c (update_current_target)
12396 (find_default_can_async_p, find_default_is_async_p): Update.
12397 (init_dummy_target): Update.
12398 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12399 * target.h (struct target_ops) <to_stopped_by_watchpoint,
12400 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12401 (target_can_async_p, target_is_async_p, target_async)
12402 (target_stopped_by_watchpoint): Update.
12403
12404 2014-02-19 Yao Qi <yao@codesourcery.com>
12405
12406 PR gdb/16220
12407 * gdbarch.sh: Remove startup_gdbarch.
12408 * gdbarch.c: Regenerated.
12409 * gdbarch.h: Likewise.
12410
12411 2014-02-17 Kevin Buettner <kevinb@redhat.com>
12412
12413 * rl78-tdep.c (rl78_g10_register_name): New function.
12414 (rl78_return_value): Add g10 support.
12415 (rl78_gdbarch_init): Register rl78_g10_register_name for the
12416 g10.
12417
12418 2014-02-17 Doug Evans <xdje42@gmail.com>
12419
12420 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12421 (SUBDIR_GUILE_SRCS): Ditto.
12422 (scm-gsmob.o): Ditto.
12423
12424 2014-02-17 Yao Qi <yao@codesourcery.com>
12425
12426 * gnu-nat.c (ILL_RPC): Declare defined function.
12427
12428 2014-02-17 Yao Qi <yao@codesourcery.com>
12429
12430 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12431 mach_msg_type_number_t.
12432 (gnu_write_inferior): Likewise.
12433
12434 2014-02-17 Yao Qi <yao@codesourcery.com>
12435
12436 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12437 in format string.
12438 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12439 (inf_validate_procs, inf_signal): Likewise.
12440 (S_exception_raise_request): Likewise.
12441 (do_mach_notify_dead_name): Likewise.
12442 (steal_exc_port): Likewise.
12443 (gnu_read_inferior): Change 'copy_count''s type to
12444 mach_msg_type_number_t.
12445 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
12446 format string.
12447
12448 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
12449
12450 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12451 flag. Adjust all users; in particular...
12452 (gnu_wait): ..., don't decrement its value in here...
12453 (gnu_create_inferior): ..., and instead set the flag in here,
12454 around the startup_inferior call, and call that one with
12455 START_INFERIOR_TRAPS_EXPECTED.
12456
12457 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12458 (ILL_RPC): ... new macro.
12459 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12460 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12461 (do_mach_notify_send_once, S_proc_setmsgport_reply)
12462 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12463 functions with ILL_RPC macro.
12464 (S_proc_pid2task_reply, S_proc_task2pid_reply)
12465 (S_proc_task2proc_reply, S_proc_proc2task_reply)
12466 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12467 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12468 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12469 (S_proc_getlogin_reply, S_proc_getsid_reply)
12470 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12471 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12472 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12473 (S_proc_getnports_reply, S_proc_is_important_reply)
12474 (S_proc_get_code_reply): New stub functions, generated with
12475 ILL_RPC macro.
12476
12477 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12478 collected the type check structures.
12479
12480 * reply_mig_hack.awk: Don't expect to see the auto keyword.
12481
12482 2014-02-14 Doug Evans <dje@google.com>
12483
12484 * target.c (target_write_partial): Fix result type.
12485
12486 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
12487
12488 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12489 the proper offsets to access fpregset_t.
12490
12491 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
12492
12493 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12494 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12495 * h8300-tdep.c (setmachinelist): Remove global.
12496 * hppa-tdep.c (hppa_sigtramp): Remove global.
12497 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12498 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12499 * ravenscar-thread.c (update_target_observer): Remove global.
12500 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12501
12502 2014-02-12 Tom Tromey <tromey@redhat.com>
12503
12504 * common/rsp-low.c: Update comments.
12505 * common/rsp-low.h: Update comments.
12506
12507 2014-02-12 Tom Tromey <tromey@redhat.com>
12508
12509 * common/rsp-low.c (convert_ascii_to_int): Remove.
12510 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12511
12512 2014-02-12 Tom Tromey <tromey@redhat.com>
12513
12514 * common/rsp-low.h (unhexify): Don't declare.
12515 * common/rsp-low.c (unhexify): Remove.
12516
12517 2014-02-12 Tom Tromey <tromey@redhat.com>
12518
12519 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12520 * common/rsp-low.c (convert_int_to_ascii): Remove.
12521
12522 2014-02-12 Tom Tromey <tromey@redhat.com>
12523
12524 * common/rsp-low.h (hexify): Don't declare.
12525 * common/rsp-low.c (hexify): Remove.
12526
12527 2014-02-12 Tom Tromey <tromey@redhat.com>
12528
12529 * common/rsp-low.c (hexify): Never take strlen of argument.
12530
12531 2014-02-12 Tom Tromey <tromey@redhat.com>
12532
12533 * common/rsp-low.c (bin2hex): Never take strlen of argument.
12534 * remote.c (extended_remote_run, remote_rcmd)
12535 (remote_download_trace_state_variable, remote_save_trace_data)
12536 (remote_set_trace_notes): Update.
12537 * tracepoint.c (encode_source_string, tfile_write_status)
12538 (tfile_write_uploaded_tsv): Update.
12539
12540 2014-02-12 Tom Tromey <tromey@redhat.com>
12541
12542 * tracepoint.c: Include rsp-low.h.
12543 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
12544 * remote.c: Include rsp-low.h.
12545 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
12546 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
12547 (remote_unescape_input): Move to common/rsp-low.c.
12548 * common/rsp-low.h: New file.
12549 * common/rsp-low.c: New file.
12550 * Makefile.in (SFILES): Add common/rsp-low.c.
12551 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
12552 (COMMON_OBS): Add rsp-low.o.
12553 (rsp-low.o): New target.
12554
12555 2014-02-12 Tom Tromey <tromey@redhat.com>
12556
12557 * utils.h: Include print-utils.h.
12558 (host_address_to_string, plongest, pulongest, phex, phex_nz)
12559 (int_string, core_addr_to_string, core_addr_to_string_nz)
12560 (hex_string, hex_string_custom): Don't declare.
12561 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
12562 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
12563 (hex_string_custom, int_string, core_addr_to_string)
12564 (core_addr_to_string_nz, host_address_to_string): Move to
12565 common/print-utils.c.
12566 * common/print-utils.h: New file.
12567 * common/print-utils.c: New file
12568 * Makefile.in (SFILES): Add common/print-utils.c.
12569 (HFILES_NO_SRCDIR): Add common/print-utils.h.
12570 (COMMON_OBS): Add print-utils.o.
12571 (print-utils.o): New target.
12572
12573 2014-02-12 Tom Tromey <tromey@redhat.com>
12574
12575 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
12576
12577 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12578
12579 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
12580
12581 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12582
12583 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
12584 if a PT_IO ptrace request returns sucessfully but indicates that 0
12585 bytes were transferred.
12586
12587 2014-02-12 Pedro Alves <palves@redhat.com>
12588 Kevin Buettner <kevinb@redhat.com>
12589
12590 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
12591 TYPE_INSTANCE_FLAG_CODE_SPACE.
12592
12593 2014-02-12 Pedro Alves <palves@redhat.com>
12594
12595 * h8300-tdep.c (pseudo_from_raw_register)
12596 (raw_from_pseudo_register): New functions.
12597 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
12598 them.
12599
12600 2014-02-12 Pedro Alves <palves@redhat.com>
12601
12602 * h8300-tdep.c (h8300_register_sim_regno): New function.
12603 (h8300_gdbarch_init): Install h8300_register_sim_regno as
12604 gdbarch_register_sim_regno hook.
12605
12606 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12607
12608 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
12609
12610 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
12611
12612 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
12613
12614 2014-02-12 Mark Kettenis <kettenis@gnu.org>
12615
12616 * obsd-tdep.h (obsd_init_abi): New prototype.
12617 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
12618 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
12619 (obsd_init_abi): New functions.
12620 * i386obsd-tdep.c: Include "obsd-tdep.h".
12621 (i386obsd_init_abi): Call obsd_init_abi.
12622 * amd64obsd-tdep.c: Include "obsd-tdep.h".
12623 (amd64obsd_init_abi): Call obsd_init_abi.
12624 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
12625 obsd-tdep.c to gdb_target_obs.
12626
12627 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
12628
12629 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
12630 double float arguments to 16-byte in the argument slots.
12631
12632 2014-02-11 Doug Evans <xdje42@gmail.com>
12633
12634 * configure.ac: Don't crash if pkg-config is not found and guile
12635 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
12636 in guile checks.
12637 * configure: Regenerate.
12638
12639 2014-02-11 Yao Qi <yao@codesourcery.com>
12640
12641 * aix-thread.c (aix_thread_xfer_partial): Update comments.
12642 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
12643 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12644 * gnu-nat.c (gnu_xfer_memory): Likewise.
12645 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12646 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12647 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12648 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12649
12650 2014-02-11 Yao Qi <yao@codesourcery.com>
12651
12652 * target.h (enum target_xfer_error): Rename to ...
12653 (enum target_xfer_status): ... it. New. All users updated.
12654 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
12655 New.
12656 (TARGET_XFER_STATUS_ERROR_P): New macro.
12657 (target_xfer_error_to_string): Remove declaration.
12658 (target_xfer_status_to_string): Declare.
12659 (target_xfer_partial_ftype): Adjust it.
12660 (struct target_ops) <to_xfer_partial>: Return
12661 target_xfer_status. Add argument xfered_len. Update
12662 comments.
12663 * target.c (target_xfer_error_to_string): Rename to ...
12664 (target_xfer_status_to_string): ... it. New. All callers
12665 updated.
12666 (target_read_live_memory): Likewise. Call target_xfer_partial
12667 instead of target_read.
12668 (memory_xfer_live_readonly_partial): Return
12669 target_xfer_status. Add argument xfered_len.
12670 (raw_memory_xfer_partial): Likewise.
12671 (memory_xfer_partial_1): Likewise.
12672 (memory_xfer_partial): Likewise.
12673 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
12674 properly. Update debug message.
12675 (default_xfer_partial, current_xfer_partial): Likewise.
12676 (target_write_partial): Likewise.
12677 (target_read_partial): Likewise. All callers updated.
12678 (read_whatever_is_readable): Likewise.
12679 (target_write_with_progress): Likewise.
12680 (target_read_alloc_1): Likewise.
12681
12682 * aix-thread.c (aix_thread_xfer_partial): Likewise.
12683 * auxv.c (procfs_xfer_auxv): Likewise.
12684 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
12685 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12686 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12687 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
12688 * corefile.c (read_memory): Adjust.
12689 * corelow.c (core_xfer_partial): Likewise.
12690 * ctf.c (ctf_xfer_partial): Likewise.
12691 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
12692 updated.
12693 (darwin_xfer_partial): Likewise.
12694 * exec.c (section_table_xfer_memory_partial): Likewise. All
12695 callers updated.
12696 (exec_xfer_partial): Likewise.
12697 * exec.h (section_table_xfer_memory_partial): Update
12698 declaration.
12699 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
12700 negative.
12701 (gnu_xfer_partial): Likewise.
12702 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
12703 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
12704 (ia64_hpux_xfer_solib_got): Likewise.
12705 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
12706 type of 'partial_len' to ULONGEST.
12707 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12708 * linux-nat.c (linux_xfer_siginfo ): Likewise.
12709 (linux_nat_xfer_partial): Likewise.
12710 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
12711 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
12712 * monitor.c (monitor_xfer_memory): Likewise.
12713 (monitor_xfer_partial): Likewise.
12714 * procfs.c (procfs_xfer_partial): Likewise.
12715 * record-btrace.c (record_btrace_xfer_partial): Likewise.
12716 * record-full.c (record_full_xfer_partial): Likewise.
12717 (record_full_core_xfer_partial): Likewise.
12718 * remote-sim.c (gdbsim_xfer_memory): Likewise.
12719 (gdbsim_xfer_partial): Likewise.
12720 * remote.c (remote_write_bytes_aux): Likewise. All callers
12721 updated.
12722 (remote_write_bytes, remote_read_bytes): Likewise. All
12723 callers updated.
12724 (remote_flash_erase): Likewise. All callers updated.
12725 (remote_write_qxfer): Likewise. All callers updated.
12726 (remote_read_qxfer): Likewise. All callers updated.
12727 (remote_xfer_partial): Likewise.
12728 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12729 (rs6000_xfer_shared_libraries): Likewise.
12730 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12731 (sol_thread_xfer_partial): Likewise.
12732 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12733 (sparc_xfer_partial): Likewise.
12734 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
12735 updated.
12736 (spu_xfer_partial): Likewise.
12737 * spu-multiarch.c (spu_xfer_partial): Likewise.
12738 * tracepoint.c (tfile_xfer_partial): Likewise.
12739 * windows-nat.c (windows_xfer_memory): Likewise.
12740 (windows_xfer_shared_libraries): Likewise.
12741 (windows_xfer_partial): Likewise.
12742 * valprint.c: Replace 'target_xfer_error' with
12743 'target_xfer_status' in comments.
12744
12745 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
12746
12747 Checked in by Joel Brobecker <brobecker@adacore.com>.
12748 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
12749
12750 2014-02-11 Joel Brobecker <brobecker@adacore.com>
12751
12752 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
12753 function parameters.
12754
12755 2014-02-10 Will Newton <will.newton@linaro.org>
12756
12757 * elfread.c (elf_rel_plt_read): Look for a .got section if
12758 looking up .got.plt fails.
12759 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
12760 on address passed to elf_gnu_ifunc_record_cache.
12761 (elf_gnu_ifunc_resolve_addr): Likewise.
12762 (elf_gnu_ifunc_resolver_return_stop): Likewise.
12763
12764 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
12765
12766 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
12767 (X_RETTURN): New macro.
12768 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
12769
12770 * sparc64-tdep.c (sparc64_init_abi): Hook
12771 sparc_in_function_epilogue_p.
12772
12773 2014-02-10 Gary Benson <gbenson@redhat.com>
12774
12775 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12776 Rename name_matcher to symbol_matcher.
12777
12778 2014-02-10 Gary Benson <gbenson@redhat.com>
12779
12780 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12781 Use expand_symtabs_file_matcher_ftype and
12782 expand_symtabs_symbol_matcher_ftype.
12783
12784 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12785
12786 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
12787 (struct ada_symbol_cache): New.
12788 (ada_free_symbol_cache): Forward declare.
12789 (struct ada_pspace_data): New.
12790 (ada_pspace_data_handle): New static global.
12791 (get_ada_pspace_data, ada_pspace_data_cleanup)
12792 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
12793 (cache_space, cache): Delete, now folded inside struct
12794 ada_pspace_data.
12795 (ada_get_symbol_cache): New function.
12796 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
12797 implementation.
12798 (_initialize_ada_language): Remove initialization of cache_space.
12799 Move call to observer_attach_inferior_exit up, grouping it
12800 with the other observer registrations inside this function.
12801 Rename command to be more general. Add call to
12802 register_program_space_data_with_cleanup.
12803
12804 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12805
12806 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
12807 ada_new_objfile_observer.
12808 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
12809 (_initialize_tasks): Update uses of ada_new_objfile_observer
12810 and ada_tasks_normal_stop_observer.
12811
12812 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12813
12814 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
12815 returned by the 'Length attribute to integer.
12816
12817 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12818
12819 * ada-lang.c (_initialize_ada_language): Initialize
12820 cache_space obstack.
12821
12822 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12823
12824 * ada-lang.c (HASH_SIZE): New macro.
12825 (struct cache_entry): New type.
12826 (cache_space, cache): New static globals.
12827 (ada_clear_symbol_cache, find_entry): New functions.
12828 (lookup_cached_symbol, cache_symbol): Implement.
12829 (ada_new_objfile_observer, ada_free_objfile_observer): New.
12830 (_initialize_ada_language): Attach ada_new_objfile_observer
12831 and ada_free_objfile_observer.
12832
12833 2014-02-10 Joel Brobecker <brobecker@adacore.com>
12834
12835 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
12836 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
12837 struct block * parameter.
12838 (ada_lookup_symbol_list_worker): Constify local variable "block".
12839 Remove cast which is no longer necessary.
12840
12841 2014-02-10 Doug Evans <xdje42@gmail.com>
12842
12843 Add Guile as an extension language.
12844 * NEWS: Mention Guile scripting.
12845 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
12846 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
12847 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
12848 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
12849 (CLIBS): Add GUILE_LIBS.
12850 (install-guile): New rule.
12851 (guile.o): New rule.
12852 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
12853 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
12854 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
12855 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
12856 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
12857 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
12858 (scm-type.o, scm-utils.o, scm-value.o): New rules.
12859 * configure.ac: New option --with-guile.
12860 * configure: Regenerate.
12861 * config.in: Regenerate.
12862 * auto-load.c: Remove #include "python/python.h". Add #include
12863 "gdb/section-scripts.h".
12864 (source_section_scripts): Handle Guile scripts.
12865 (_initialize_auto_load): Add name of Guile objfile script to
12866 scripts-directory help text.
12867 * breakpoint.c (condition_command): Tweak comment to include Scheme.
12868 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
12869 (struct breakpoint): New member scm_bp_object.
12870 * defs.h (enum command_control_type): New value guile_control.
12871 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
12872 "extension.h".
12873 (show_user): Update comment.
12874 (_initialize_cli_cmds): Update help text for "show user". Update help
12875 text for max-user-call-depth.
12876 * cli/cli-script.c: Remove #include "python/python.h". Add #include
12877 "extension.h".
12878 (multi_line_command_p): Add guile_control.
12879 (print_command_lines): Handle guile_control.
12880 (execute_control_command, recurse_read_control_structure): Ditto.
12881 (process_next_line): Recognize "guile" commands.
12882 * disasm.c (gdb_disassemble_info): Make non-static.
12883 * disasm.h: #include "dis-asm.h".
12884 (struct gdbarch): Add forward decl.
12885 (gdb_disassemble_info): Declare.
12886 * extension.c: #include "guile/guile.h".
12887 (extension_languages): Add guile.
12888 (get_ext_lang_defn): Handle EXT_LANG_GDB.
12889 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
12890 * gdbtypes.c (get_unsigned_type_max): New function.
12891 (get_signed_type_minmax): New function.
12892 * gdbtypes.h (get_unsigned_type_max): Declare.
12893 (get_signed_type_minmax): Declare.
12894 * guile/README: New file.
12895 * guile/guile-internal.h: New file.
12896 * guile/guile.c: New file.
12897 * guile/guile.h: New file.
12898 * guile/scm-arch.c: New file.
12899 * guile/scm-auto-load.c: New file.
12900 * guile/scm-block.c: New file.
12901 * guile/scm-breakpoint.c: New file.
12902 * guile/scm-disasm.c: New file.
12903 * guile/scm-exception.c: New file.
12904 * guile/scm-frame.c: New file.
12905 * guile/scm-gsmob.c: New file.
12906 * guile/scm-iterator.c: New file.
12907 * guile/scm-lazy-string.c: New file.
12908 * guile/scm-math.c: New file.
12909 * guile/scm-objfile.c: New file.
12910 * guile/scm-ports.c: New file.
12911 * guile/scm-pretty-print.c: New file.
12912 * guile/scm-safe-call.c: New file.
12913 * guile/scm-string.c: New file.
12914 * guile/scm-symbol.c: New file.
12915 * guile/scm-symtab.c: New file.
12916 * guile/scm-type.c: New file.
12917 * guile/scm-utils.c: New file.
12918 * guile/scm-value.c: New file.
12919 * guile/lib/gdb.scm: New file.
12920 * guile/lib/gdb/boot.scm: New file.
12921 * guile/lib/gdb/experimental.scm: New file.
12922 * guile/lib/gdb/init.scm: New file.
12923 * guile/lib/gdb/iterator.scm: New file.
12924 * guile/lib/gdb/printing.scm: New file.
12925 * guile/lib/gdb/types.scm: New file.
12926 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
12927 (VPATH): Add $(GUILE_SRCDIR).
12928 (GUILE_DIR): New variable.
12929 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
12930 (all): Add stamp-guile dependency.
12931 (stamp-guile): New rule.
12932 (clean-guile, install-guile, uninstall-guile): New rules.
12933 (install-only): Add install-guile dependency.
12934 (uninstall): Add uninstall-guile dependency.
12935 (clean): Add clean-guile dependency.
12936
12937 2014-02-09 Doug Evans <xdje42@gmail.com>
12938
12939 Revert this patch (which I approved, mea culpa).
12940
12941 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12942
12943 * Makefile.in (all-lib): Remove.
12944 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12945
12946 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12947
12948 Fix Python stack corruption.
12949 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
12950 gdb_py_longest.
12951
12952 2014-02-08 Mark Kettenis <kettenis@gnu.org>
12953
12954 * Makefile.in (all-lib): Remove.
12955 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
12956
12957 2014-02-07 Doug Evans <dje@google.com>
12958
12959 * extension-priv.h (extension_language_script_ops): Add comment.
12960 (extension_language_ops): Add comment.
12961 (active_ext_lang_state): Fix typo in comment.
12962
12963 2014-02-07 Pedro Alves <palves@redhat.com>
12964
12965 PR breakpoints/16292
12966 * infrun.c (handle_signal_stop) <signal arrives while stepping
12967 over a breakpoint>: Switch back to the stepping thread.
12968
12969 2014-02-07 Yao Qi <yao@codesourcery.com>
12970
12971 * target.c (target_xfer_partial): Return zero if LEN is zero.
12972
12973 2014-02-07 Yao Qi <yao@codesourcery.com>
12974
12975 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
12976 (ld_so_xfer_auxv): Likewise.
12977 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12978 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12979 * corelow.c (core_xfer_partial): Likewise.
12980 * ctf.c (ctf_xfer_partial): Likewise.
12981 * darwin-nat.c (darwin_read_dyld_info): Likewise.
12982 (darwin_xfer_partial): Likewise.
12983 * exec.c (exec_xfer_partial): Likewise.
12984 * gnu-nat.c (gnu_xfer_partial): Likewise.
12985 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
12986 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
12987 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
12988 * linux-nat.c (linux_xfer_siginfo): Likewise.
12989 (linux_proc_xfer_spu): Likewise.
12990 * procfs.c (procfs_xfer_partial): Likewise.
12991 * record-full.c (record_full_xfer_partial): Likewise.
12992 (record_full_core_xfer_partial): Likewise.
12993 * remote-sim.c (gdbsim_xfer_partial): Likewise.
12994 * remote.c (remote_write_qxfer): Likewise.
12995 (remote_write_qxfer, remote_read_qxfer): Likewise.
12996 (remote_xfer_partial): Likewise.
12997 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12998 (rs6000_xfer_shared_libraries): Likewise.
12999 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13000 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13001 (spu_xfer_partial): Likewise.
13002 * target.c (memory_xfer_partial_1): Likewise.
13003 * tracepoint.c (tfile_xfer_partial): Likewise.
13004 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13005 (windows_xfer_partial): Likewise.
13006
13007 2014-02-07 Yao Qi <yao@codesourcery.com>
13008
13009 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13010 comments.
13011 (core_xfer_shared_libraries_aix): Likewise.
13012 * gdbarch.c, gdbarch.h: Regenerated.
13013 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13014 ULONGEST. Change 'len_avail' type to ULONGEST.
13015 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13016 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13017 declaration.
13018 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13019
13020 2014-02-07 Yao Qi <yao@codesourcery.com>
13021
13022 * corefile.c (memory_error): Get 'exception' from ERR and pass
13023 'exception' to throw_error.
13024
13025 2014-02-06 Doug Evans <xdje42@gmail.com>
13026
13027 * configure.ac (libpython checking): Remove all but python.o from
13028 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13029 * configure: Regenerate.
13030
13031 * Makefile.in (SFILES): Add extension.c.
13032 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13033 (COMMON_OBS): Add extension.o.
13034 * extension.h: New file.
13035 * extension-priv.h: New file.
13036 * extension.c: New file.
13037
13038 * python/python-internal.h: #include "extension.h".
13039 (gdbpy_auto_load_enabled): Declare.
13040 (gdbpy_apply_val_pretty_printer): Declare.
13041 (gdbpy_apply_frame_filter): Declare.
13042 (gdbpy_preserve_values): Declare.
13043 (gdbpy_breakpoint_cond_says_stop): Declare.
13044 (gdbpy_breakpoint_has_cond): Declare.
13045 (void source_python_script_for_objfile): Delete.
13046 * python/python.c: #include "extension-priv.h".
13047 Delete inclusion of "observer.h".
13048 (extension_language_python): Moved here and renamed from
13049 script_language_python in py-auto-load.c.
13050 Redefined to be of type extension_language_defn.
13051 (python_extension_script_ops): New global.
13052 (python_extension_ops): New global.
13053 (struct python_env): New member previous_active.
13054 (restore_python_env): Call restore_active_ext_lang.
13055 (ensure_python_env): Call set_active_ext_lang.
13056 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13057 New arg extlang.
13058 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13059 New arg extlang.
13060 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13061 New arg extlang.
13062 (gdbpy_eval_from_control_command): Renamed from
13063 eval_python_from_control_command, made static. New arg extlang.
13064 (gdbpy_source_script) Renamed from source_python_script, made static.
13065 New arg extlang.
13066 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13067 result to int. New arg extlang.
13068 (gdbpy_source_objfile_script): Renamed from
13069 source_python_script_for_objfile, made static. New arg extlang.
13070 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13071 static. New args extlang, extlang_printers. Change result type to
13072 "void".
13073 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13074 static. New arg extlang. Rename arg printers to extlang_printers
13075 and change type to ext_lang_type_printers *.
13076 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13077 static. Replace argument arg with extlang, extlang_printers.
13078 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13079 (!HAVE_PYTHON, source_python_script): Delete.
13080 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13081 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13082 (!HAVE_PYTHON, start_type_printers): Delete.
13083 (!HAVE_PYTHON, apply_type_printers): Delete.
13084 (!HAVE_PYTHON, free_type_printers): Delete.
13085 (_initialize_python): Delete call to observer_attach_before_prompt.
13086 (finalize_python): Set/restore active extension language.
13087 (gdbpy_finish_initialization) Renamed from
13088 finish_python_initialization, made static. New arg extlang.
13089 (gdbpy_initialized): New function.
13090 * python/python.h: #include "extension.h". Delete #include
13091 "value.h", "mi/mi-cmds.h".
13092 (extension_language_python): Declare.
13093 (GDBPY_AUTO_FILE_NAME): Delete.
13094 (enum py_bt_status): Moved to extension.h and renamed to
13095 ext_lang_bt_status.
13096 (enum frame_filter_flags): Moved to extension.h.
13097 (enum py_frame_args): Moved to extension.h and renamed to
13098 ext_lang_frame_args.
13099 (finish_python_initialization): Delete.
13100 (eval_python_from_control_command): Delete.
13101 (source_python_script): Delete.
13102 (apply_val_pretty_printer): Delete.
13103 (apply_frame_filter): Delete.
13104 (preserve_python_values): Delete.
13105 (gdbpy_script_language_defn): Delete.
13106 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13107 (start_type_printers, apply_type_printers, free_type_printers): Delete.
13108
13109 * auto-load.c: #include "extension.h".
13110 (GDB_AUTO_FILE_NAME): Delete.
13111 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
13112 (script_language_gdb): Delete, moved to extension.c and renamed to
13113 extension_language_gdb.
13114 (source_gdb_script_for_objfile): Delete.
13115 (auto_load_pspace_info): New member unsupported_script_warning_printed.
13116 (loaded_script): Change type of language member to
13117 struct extension_language_defn *.
13118 (init_loaded_scripts_info): Initialize
13119 unsupported_script_warning_printed.
13120 (maybe_add_script): Make static. Change type of language arg to
13121 struct extension_language_defn *.
13122 (clear_section_scripts): Reset unsupported_script_warning_printed.
13123 (auto_load_objfile_script_1): Rewrite to use extension language API.
13124 (auto_load_objfile_script): Make public. Remove support-compiled-in
13125 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13126 (source_section_scripts): Rewrite to use extension language API.
13127 (load_auto_scripts_for_objfile): Rewrite to use
13128 auto_load_scripts_for_objfile.
13129 (collect_matching_scripts_data): Change type of language member to
13130 struct extension_language_defn *.
13131 (auto_load_info_scripts): Change type of language arg to
13132 struct extension_language_defn *.
13133 (unsupported_script_warning_print): New function.
13134 (script_not_found_warning_print): Make static.
13135 (_initialize_auto_load): Rewrite construction of scripts-directory
13136 help.
13137 * auto-load.h (struct objfile): Add forward decl.
13138 (struct script_language): Delete.
13139 (struct auto_load_pspace_info): Add forward decl.
13140 (struct extension_language_defn): Add forward decl.
13141 (maybe_add_script): Delete.
13142 (auto_load_objfile_script): Declare.
13143 (script_not_found_warning_print): Delete.
13144 (auto_load_info_scripts): Update prototype.
13145 (auto_load_gdb_scripts_enabled): Declare.
13146 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13147 auto_load_python_scripts_enabled and made public.
13148 (script_language_python): Delete, moved to python.c.
13149 (gdbpy_script_language_defn): Delete.
13150 (info_auto_load_python_scripts): Update to use
13151 extension_language_python.
13152
13153 * breakpoint.c (condition_command): Replace call to
13154 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13155 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13156 with call to breakpoint_ext_lang_cond_says_stop.
13157 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13158 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
13159 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13160 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13161 New arg slang.
13162 (local_setattro): Print name of extension language with existing
13163 stop condition.
13164
13165 * valprint.c (val_print, value_print): Update to call
13166 apply_ext_lang_val_pretty_printer.
13167 * cp-valprint.c (cp_print_value): Update call to
13168 apply_ext_lang_val_pretty_printer.
13169 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13170 (gdbpy_apply_val_pretty_printer): Renamed from
13171 apply_val_pretty_printer. New arg extlang.
13172 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13173
13174 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13175 extension language API.
13176 * cli/cli-script.c (execute_control_command): Update to call
13177 eval_ext_lang_from_control_command.
13178
13179 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13180 enum ext_lang_bt_status values. Update call to
13181 apply_ext_lang_frame_filter.
13182 (mi_cmd_stack_list_locals): Ditto.
13183 (mi_cmd_stack_list_args): Ditto.
13184 (mi_cmd_stack_list_variables): Ditto.
13185 * mi/mi-main.c: Delete #include "python/python-internal.h".
13186 Add #include "extension.h".
13187 (mi_cmd_list_features): Replace reference to python internal variable
13188 gdb_python_initialized with call to ext_lang_initialized_p.
13189
13190 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13191 Update to use enum ext_lang_frame_args. Update to call
13192 apply_ext_lang_frame_filter.
13193 * python/py-framefilter.c (extract_sym): Update to use enum
13194 ext_lang_bt_status.
13195 (extract_value, py_print_type, py_print_value): Ditto.
13196 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13197 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13198 (py_print_frame): Ditto.
13199 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13200 New arg extlang. Update to use enum ext_lang_bt_status.
13201
13202 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13203 finish_python_initialization. Replace with call to
13204 finish_ext_lang_initialization.
13205
13206 * typeprint.c (do_free_global_table): Update to call
13207 free_ext_lang_type_printers.
13208 (create_global_typedef_table): Update to call
13209 start_ext_lang_type_printers.
13210 (find_global_typedef): Update to call apply_ext_lang_type_printers.
13211 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13212 (type_print_options): Change type of global_printers from "void *"
13213 to "struct ext_lang_type_printers *".
13214
13215 * value.c (preserve_values): Update to call preserve_ext_lang_values.
13216 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13217 (gdbpy_preserve_values): Renamed from preserve_python_values.
13218 New arg extlang.
13219 (!HAVE_PYTHON, preserve_python_values): Delete.
13220
13221 * utils.c (quit_flag): Delete, moved to extension.c.
13222 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13223 extension.c.
13224
13225 * eval.c: Delete #include "python/python.h".
13226 * main.c: Delete #include "python/python.h".
13227
13228 * defs.h: Update comment.
13229
13230 2014-02-06 Joel Brobecker <brobecker@adacore.com>
13231
13232 GDB 7.7 released.
13233
13234 2014-02-05 Mark Kettenis <kettenis@gnu.org>
13235
13236 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13237 defined.
13238
13239 2014-02-05 Yao Qi <yao@codesourcery.com>
13240
13241 * remote.c (remote_pass_signals): Remove local 'buf' and use
13242 rs->buf.
13243 (remote_program_signals): Likewise.
13244
13245 2014-02-05 Yao Qi <yao@codesourcery.com>
13246
13247 * ctf.c: Include "inferior.h" and "gdbthread.h".
13248 (CTF_PID): A new macro.
13249 (ctf_open): Call inferior_appeared and add_thread_silent.
13250 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13251 (ctf_thread_alive): New function.
13252 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13253
13254 2014-02-05 Yao Qi <yao@codesourcery.com>
13255
13256 Revert this patch:
13257
13258 2013-05-24 Yao Qi <yao@codesourcery.com>
13259
13260 * tracepoint.c (TFILE_PID): Remove.
13261 (tfile_open): Don't add thread and inferior.
13262 (tfile_close): Don't set 'inferior_ptid'. Don't call
13263 exit_inferior_silent.
13264 (tfile_thread_alive): Remove.
13265 (init_tfile_ops): Don't set field 'to_thread_alive' of
13266 tfile_ops.
13267
13268 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
13269
13270 * remote.c (remote_start_remote): Call remote_check_symbols even
13271 if only symbol-file (not file) has been given.
13272
13273 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13274
13275 * gdbarch.sh (skip_entrypoint): New callback.
13276 * gdbarch.c, gdbarch.h: Regenerate.
13277 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13278 * infrun.c (fill_in_stop_func): Likewise.
13279 * ppc-linux-tdep.c: Include "elf/ppc64.h".
13280 (ppc_elfv2_elf_make_msymbol_special): New function.
13281 (ppc_elfv2_skip_entrypoint): Likewise.
13282 (ppc_linux_init_abi): Install them for ELFv2.
13283
13284 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13285
13286 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13287 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13288 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13289 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
13290 structures returned in GPRs.
13291
13292 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13293
13294 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13295 offset to the stack parameter list for the ELFv2 ABI.
13296
13297 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13298
13299 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13300 set_gdbarch_convert_from_func_ptr_addr and
13301 set_gdbarch_elf_make_msymbol_special for ELFv1.
13302 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13303 function descriptors on ELFv1.
13304 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
13305 set up r12 at function entry.
13306
13307 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13308
13309 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13310 (struct gdbarch_tdep): New member elf_abi.
13311
13312 * rs6000-tdep.c: Include "elf/ppc64.h".
13313 (rs6000_gdbarch_init): Detect ELF ABI version.
13314
13315 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13316
13317 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13318 within a register pair holding a DFP 128-bit value on little-endian.
13319 (ppc64_sysv_abi_return_value_base): Likewise.
13320 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13321 (dfp_pseudo_register_write): Likewise.
13322
13323 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13324
13325 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13326 offset on little-endian when passing _Decimal32.
13327 (ppc64_sysv_abi_return_value_base): Likewise for return values.
13328
13329 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13330
13331 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13332 of the overlapped FP register within the VSX register on little-
13333 endian platforms.
13334 (efpr_pseudo_register_write): Likewise.
13335
13336 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13337
13338 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13339 offset on little-endian when passing small structures.
13340
13341 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13342
13343 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13344 (struct ppc64_sysv_argpos): New data structure.
13345 (ppc64_sysv_abi_push_float): Remove.
13346 (ppc64_sysv_abi_push_val): New function.
13347 (ppc64_sysv_abi_push_integer): Likewise.
13348 (ppc64_sysv_abi_push_freg): Likewise.
13349 (ppc64_sysv_abi_push_vreg): Likewise.
13350 (ppc64_sysv_abi_push_param): Likewise.
13351 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13352 (ppc64_sysv_abi_return_value_base): New function.
13353 (ppc64_sysv_abi_return_value): Refactor to use it.
13354
13355 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
13356
13357 * NEWS: Document new target powerpc64le-*-linux*.
13358
13359 2014-02-04 Mark Kettenis <kettenis@gnu.org>
13360
13361 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13362 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13363 core dumps.
13364 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13365 register set used in ELF core dumps. Add floating-point register set.
13366
13367 2014-02-03 Kevin Buettner <kevinb@redhat.com>
13368
13369 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13370 dwarf2_to_gdb[] table using symbolic constants. Adjust
13371 penultimate entry from number representing the PC register
13372 to symbolic constant representing the MDR register. Add
13373 constant for the PC register to the end of the table.
13374
13375 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13376
13377 * bsd-kvm.c: Include <sys/param.h>
13378
13379 2014-02-03 Mark Kettenis <kettenis@gnu.org>
13380
13381 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13382
13383 2014-01-31 Joel Brobecker <brobecker@adacore.com>
13384
13385 * ada-lang.h (clear_ada_sym_cache): Delete.
13386
13387 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
13388
13389 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13390
13391 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
13392
13393 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13394 the sigreturn register save area only if the syscall is
13395 sigreturn.
13396
13397 2014-01-29 Joel Brobecker <brobecker@adacore.com>
13398
13399 * valops.c (value_slice): Minor reformatting.
13400
13401 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
13402
13403 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13404
13405 2014-01-28 Joel Brobecker <brobecker@adacore.com>
13406
13407 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13408 New static globals.
13409 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13410 (ada_ignore_descriptive_types_p): New static global.
13411 (find_parallel_type_by_descriptive_type): Return immediately
13412 if ada_ignore_descriptive_types_p is set.
13413 (_initialize_ada_language): Register new commands "maintenance
13414 set ada", "maintenance show ada", "maintenance set ada
13415 ignore-descriptive-types" and "maintenance show ada
13416 ignore-descriptive-types".
13417 * NEWS: Add entry for new "maint ada set/show
13418 ignore-descriptive-types" commands.
13419
13420 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
13421
13422 * record-btrace.c (record_btrace_close): Call btrace_teardown
13423 for all threads.
13424
13425 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13426
13427 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13428 "ui-out.h".
13429
13430 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13431
13432 * ada-typeprint (type_is_full_subrange_of_target_type):
13433 New function.
13434 (print_range): Add parameter bounds_prefered_p. If not set,
13435 try printing range types using the name of their base type.
13436 (print_range_type): Add parameter bounds_prefered_p.
13437 Use it in call to print_range.
13438 (print_array_type, ada_print_type): Update calls to print_range
13439 and print_range_type.
13440
13441 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13442
13443 * ada-typeprint.c (print_array_type, print_choices, print_range)
13444 (print_range_bound, print_dynamic_range_bound, print_range_type):
13445 Remove declaration.
13446
13447 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13448
13449 * ada-typeprint.c (print_range): Add missing empty line
13450 after local declaration.
13451
13452 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13453
13454 * ada-valprint.c (print_optional_low_bound): Get index_type's
13455 target type for as long as it is a TYPE_CODE_RANGE.
13456
13457 2014-01-27 Joel Brobecker <brobecker@adacore.com>
13458
13459 * procfs.c (procfs_make_note_section): Remove assertion and
13460 associated comment.
13461
13462 2014-01-24 Yao Qi <yao@codesourcery.com>
13463
13464 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13465 * corelow.c (get_core_siginfo): Likewise.
13466
13467 2014-01-24 Yao Qi <yao@codesourcery.com>
13468
13469 * remote.c (remote_write_bytes_aux): Change type of 'len' to
13470 ULONGEST. Don't check 'len' is negative.
13471 (remote_write_bytes): Change type of 'len' to ULONGEST.
13472
13473 2014-01-23 Tom Tromey <tromey@redhat.com>
13474
13475 PR python/16485:
13476 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13477 Handle exception from frame.block.
13478 (FrameVars.fetch_frame_locals): Likewise.
13479
13480 2014-01-23 Tom Tromey <tromey@redhat.com>
13481
13482 PR python/16487:
13483 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13484 on a NULL pointer. Move "goto error" to correct place.
13485
13486 2014-01-23 Tom Tromey <tromey@redhat.com>
13487
13488 PR python/16491:
13489 * python/py-framefilter.c (apply_frame_filter): Call
13490 ensure_python_env after computing gdbarch.
13491
13492 2014-01-23 Yao Qi <yao@codesourcery.com>
13493
13494 * target.c (raw_memory_xfer_partial): Change argument type
13495 from void * to gdb_byte *.
13496 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13497
13498 2014-01-22 Doug Evans <dje@google.com>
13499
13500 New gdbserver option --debug-format=timestamp.
13501 * NEWS: Mention it.
13502
13503 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
13504
13505 * syscalls/s390x-linux.xml: New file.
13506 * syscalls/s390-linux.xml: New file.
13507 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13508 (XML_SYSCALL_FILENAME_S390X): Likewise.
13509 (op_svc): New enum value for SVC opcode.
13510 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13511 (s390_linux_get_syscall_number): New function.
13512 (s390_gdbarch_init): Register '*get_syscall_number' and the
13513 syscall xml file name.
13514 * data-directory/Makefile.in (SYSCALLS_FILES): Add
13515 "s390-linux.xml" and "s390x-linux.xml".
13516 * NEWS: Announce new feature.
13517
13518 2014-01-22 Baruch Siach <baruch@tkos.co.il>
13519
13520 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13521
13522 2014-01-22 Pedro Alves <palves@redhat.com>
13523
13524 * xtensa-config.c: Include defs.h.
13525
13526 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13527
13528 * common/common-utils.h: Add "ARI:" comment beside __func__
13529 reference.
13530
13531 2014-01-22 Joel Brobecker <brobecker@adacore.com>
13532
13533 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13534 documentation a bit.
13535
13536 2014-01-21 Roland McGrath <mcgrathr@google.com>
13537
13538 * configure.ac: Call AM_PROG_INSTALL_STRIP.
13539 * configure: Regenerate.
13540 * aclocal.m4: Regenerate.
13541 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
13542 New substituted variables.
13543 (install-strip): New target.
13544 (INSTALL_SCRIPT): New substituted variable.
13545 (FLAGS_TO_PASS): Add it.
13546 (install-only): Use $(INSTALL_SCRIPT) rather than
13547 $(INSTALL_PROGRAM) for gcore.
13548
13549 2014-01-20 Tom Tromey <tromey@redhat.com>
13550
13551 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
13552 together.
13553
13554 2014-01-20 Tom Tromey <tromey@redhat.com>
13555
13556 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
13557 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
13558 (deprecated_cmd_warning, complete_on_cmdlist): Update.
13559 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
13560 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
13561 (struct cmd_list_element) <flags>: Remove.
13562 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
13563 doc_allocated>: New fields.
13564 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
13565 bitfields.
13566 * maint.c (maintenance_do_deprecate): Update.
13567 * top.c (execute_command): Update.
13568
13569 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13570
13571 * xtensa-linux-nat.c: Include asm/ptrace.h.
13572
13573 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13574
13575 * Makefile.in (SFILES): Add d-support.c.
13576 (COMMON_OBS): Add d-support.o.
13577 * d-lang.h (d_parse_symbol): Add comment, now defined in
13578 d-support.c.
13579 * d-lang.c (parse_call_convention)
13580 (parse_attributes, parse_function_types)
13581 (parse_function_args, parse_type, parse_identifier)
13582 (call_convention_p, d_parse_symbol): Move functions to ...
13583 * d-support.c: ... New file.
13584
13585 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13586
13587 * d-lang.h (d_parse_symbol): Add declaration.
13588 * d-lang.c (extract_identifiers)
13589 (extract_type_info): Remove functions.
13590 (parse_call_convention, parse_attributes)
13591 (parse_function_types, parse_function_args)
13592 (parse_type, parse_identifier, call_convention_p)
13593 (d_parse_symbol): New functions.
13594 (d_demangle): Use d_parse_symbol to demangle D symbols.
13595
13596 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13597
13598 * d-lang.h (struct builtin_d_type): New data type.
13599 (builtin_d_type): Add declaration.
13600 * d-lang.c (d_language_arch_info, build_d_types)
13601 (builtin_d_type): New functions.
13602 (enum d_primitive_types): New data type.
13603 (d_language_defn): Change c_language_arch_info to
13604 d_language_arch_info.
13605 (d_type_data): New static variable.
13606 (_initialize_d_language): Initialize d_type_data.
13607
13608 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13609
13610 * d-lang.h (d_main_name): Add declaration.
13611 * d-lang.c (d_main_name): New function.
13612 * symtab.c (find_main_name): Add call to d_main_name.
13613
13614 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13615
13616 * d-lang.c (d_language_defn): Change macro_expansion_c to
13617 macro_expansion_no.
13618
13619 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
13620
13621 * MAINTAINERS: Add myself as a write-after-approval maintainer.
13622
13623 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13624
13625 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
13626 gdb_exception" declaration.
13627 * remote.c (getpkt_or_notif_sane): Likewise.
13628
13629 2014-01-17 Doug Evans <dje@google.com>
13630
13631 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
13632 function, contents of dirnames_to_char_ptr_vec_append moved here.
13633 (delim_string_to_char_ptr_vec): New function.
13634 (dirnames_to_char_ptr_vec_append): Rewrite.
13635 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
13636
13637 2014-01-17 Doug Evans <dje@google.com>
13638
13639 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
13640 and moved here ...
13641 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
13642 #include "common-utils.h".
13643 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
13644 * common/vec.h (VEC_ASSERT_PASS): Update.
13645 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
13646 (MACH_CHECK_ERROR): Update.
13647
13648 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
13649
13650 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
13651 comments.
13652 * gdbarch.h: Regenerate.
13653
13654 2014-01-16 Tom Tromey <tromey@redhat.com>
13655
13656 * value.c (struct value) <regnum>: Move earlier.
13657
13658 2014-01-16 Tom Tromey <tromey@redhat.com>
13659
13660 * remote.c (extended_remote_create_inferior): Rename from
13661 extended_remote_create_inferior_1. Add "ops" argument. Remove
13662 old implementation.
13663
13664 2014-01-16 Pedro Alves <palves@redhat.com>
13665
13666 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
13667 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
13668 the backchain.
13669
13670 2014-01-16 Doug Evans <dje@google.com>
13671
13672 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
13673
13674 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13675
13676 * btrace.h (btrace_thread_flag): New.
13677 (struct btrace_thread_info) <flags>: New.
13678 * record-btrace.c (record_btrace_resume_thread)
13679 (record_btrace_find_thread_to_move, btrace_step_no_history)
13680 (btrace_step_stopped, record_btrace_start_replaying)
13681 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
13682 (record_btrace_find_resume_thread): New.
13683 (record_btrace_resume, record_btrace_wait): Extend.
13684 (record_btrace_can_execute_reverse): New.
13685 (record_btrace_open): Fail in non-stop mode.
13686 (record_btrace_set_replay): Split into this, ...
13687 (record_btrace_stop_replaying): ... this, ...
13688 (record_btrace_clear_histories): ... and this.
13689 (init_record_btrace_ops): Init to_can_execute_reverse.
13690 * NEWS: Announce it.
13691
13692 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13693
13694 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
13695 (forward_target_decr_pc_after_break)
13696 (target_decr_pc_after_break): New.
13697 * target.c (forward_target_decr_pc_after_break)
13698 (target_decr_pc_after_break): New.
13699 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
13700 instead of gdbarch_decr_pc_after_break.
13701 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13702 instead of gdbarch_decr_pc_after_break.
13703 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
13704 instead of gdbarch_decr_pc_after_break.
13705 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
13706 instead of gdbarch_decr_pc_after_break.
13707 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
13708 instead of gdbarch_decr_pc_after_break.
13709 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
13710 instead of gdbarch_decr_pc_after_break.
13711
13712 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13713
13714 * btrace.c: Include regcache.h.
13715 (btrace_add_pc): New.
13716 (btrace_enable): Call btrace_add_pc.
13717 (btrace_is_empty): New.
13718 * btrace.h (btrace_is_empty): New.
13719 * record-btrace.c (require_btrace, record_btrace_info): Call
13720 btrace_is_empty.
13721
13722 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13723
13724 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
13725 Support delta reads.
13726 (linux_disable_btrace): Change return type.
13727 * common/linux-btrace.h (linux_read_btrace): Change parameters
13728 and return type to allow error reporting. Update users.
13729 (linux_disable_btrace): Change return type. Update users.
13730 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
13731 New.
13732 (btrace_error): New.
13733 (btrace_block) <begin>: Comment on BEGIN == 0.
13734 * btrace.c (btrace_compute_ftrace): Start from the end of
13735 the current trace.
13736 (btrace_stitch_trace, btrace_clear_history): New.
13737 (btrace_fetch): Read delta trace, return if replaying.
13738 (btrace_clear): Move clear history code to btrace_clear_history.
13739 (parse_xml_btrace): Throw an error if parsing failed.
13740 * target.h (struct target_ops) <to_read_btrace>: Change parameters
13741 and return type to allow error reporting.
13742 (target_read_btrace): Change parameters and return type to allow
13743 error reporting.
13744 * target.c (target_read_btrace): Update.
13745 * remote.c (remote_read_btrace): Support delta reads. Pass
13746 errors on.
13747 * NEWS: Announce it.
13748
13749 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13750
13751 * record.h (record_btrace_frame_unwind)
13752 (record_btrace_tailcall_frame_unwind): New declarations.
13753 * dwarf2-frame: Include record.h
13754 (dwarf2_frame_cfa): Throw an error for btrace frames.
13755 * record-btrace.c: Include hashtab.h.
13756 (btrace_get_bfun_name): New.
13757 (btrace_call_history): Call btrace_get_bfun_name.
13758 (struct btrace_frame_cache): New.
13759 (bfcache): New.
13760 (bfcache_hash, bfcache_eq, bfcache_new): New.
13761 (btrace_get_frame_function): New.
13762 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
13763 (record_btrace_frame_this_id): Compute own id.
13764 (record_btrace_frame_prev_register): Provide PC, throw_error
13765 for all other registers.
13766 (record_btrace_frame_sniffer): Detect btrace frames.
13767 (record_btrace_tailcall_frame_sniffer): New.
13768 (record_btrace_frame_dealloc_cache): New.
13769 (record_btrace_frame_unwind): Add new functions.
13770 (record_btrace_tailcall_frame_unwind): New.
13771 (_initialize_record_btrace): Allocate cache.
13772 * btrace.c (btrace_clear): Call reinit_frame_cache.
13773 * NEWS: Announce it.
13774
13775 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13776
13777 * record-btrace.c (record_btrace_set_replay)
13778 (record_btrace_goto_begin, record_btrace_goto_end)
13779 (record_btrace_goto): New.
13780 (init_record_btrace_ops): Initialize them.
13781 * NEWS: Announce it.
13782
13783 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13784
13785 * record-btrace.c (record_btrace_find_new_threads)
13786 (record_btrace_thread_alive): New.
13787 (init_record_btrace_ops): Initialize to_find_new_threads and
13788 to_thread_alive.
13789
13790 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13791
13792 * record-btrace.c (record_btrace_resume): New.
13793 (record_btrace_wait): New.
13794 (init_record_btrace_ops): Initialize to_wait and to_resume.
13795
13796 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13797
13798 * record-btrace.c (record_btrace_xfer_partial)
13799 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
13800 (record_btrace_allow_memory_access): New.
13801 (init_record_btrace_ops): Initialize new methods.
13802 * target.c (raw_memory_xfer_partial): Bail out if target reports
13803 that this memory is not available.
13804
13805 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13806
13807 * target.h (target_ops) <to_insert_breakpoint>
13808 <to_remove_breakpoint>: Add target_ops parameter.
13809 (forward_target_insert_breakpoint): New.
13810 (forward_target_remove_breakpoint): New.
13811 (memory_remove_breakpoint, memory_insert_breakpoint):
13812 Add target_ops parameter.
13813 * target.c (target_insert_breakpoint): Split into this and ...
13814 (forward_target_insert_breakpoint): ... this.
13815 (target_remove_breakpoint): Split into this and ...
13816 (forward_target_remove_breakpoint): ... this.
13817 (debug_to_insert_breakpoint): Add target_ops parameter.
13818 Call forward_target_insert_breakpoint.
13819 (debug_to_remove_breakpoint): Add target_ops parameter.
13820 Call forward_target_remove_breakpoint.
13821 (update_current_target): Do not inherit or default to_insert_breakpoint
13822 and to_remove_breakpoint.
13823 * corelow.c (ignore): Add target_ops parameter.
13824 * exec.c (ignore): Add target_ops parameter.
13825 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
13826 Add target_ops parameter.
13827 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
13828 Add target_ops parameter.
13829 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
13830 Add target_ops parameter.
13831 * record-full.c (record_full_beneath_to_insert_breakpoint)
13832 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
13833 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
13834 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
13835 (record_full_core_remove_breakpoint): Add target_ops parameter.
13836 Update users.
13837 (record_full_beneath_to_insert_breakpoint_ops)
13838 (record_full_beneath_to_remove_breakpoint_ops)
13839 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
13840 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
13841 tmp_to_remove_breakpoint_ops,
13842 record_full_beneath_to_insert_breakpoint_ops, and
13843 record_full_beneath_to_remove_breakpoint_ops.
13844 * remote-m32r-sdi.c (m32r_insert_breakpoint)
13845 (m32r_remove_breakpoint): Add target_ops parameter.
13846 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
13847 Add target_ops parameter.
13848 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
13849 Add target_ops parameter.
13850
13851 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13852 Markus Metzger <markus.t.metzger@intel.com>
13853
13854 * record-btrace.c: Include frame-unwind.h.
13855 (record_btrace_frame_unwind_stop_reason)
13856 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
13857 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
13858 New.
13859 (init_record_btrace_ops): Install it.
13860
13861 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13862
13863 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
13864 get_prev_frame_1.
13865
13866 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13867
13868 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
13869 earlier.
13870
13871 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
13872
13873 * frame-unwind.c: Include target.h.
13874 (frame_unwind_try_unwinder): New function with code from ...
13875 (frame_unwind_find_by_frame): ... here. New variable
13876 unwinder_from_target, call also target_get_unwinder)
13877 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
13878 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
13879 * target.h (struct target_ops): New fields to_get_unwinder and
13880 to_get_tailcall_unwinder.
13881 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
13882
13883 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13884
13885 * record-btrace.c (record_btrace_fetch_registers)
13886 (record_btrace_store_registers)
13887 (record_btrace_to_prepare_to_store): New.
13888 (init_record_btrace_ops): Add the above.
13889
13890 2014-01-16 Tom Tromey <tromey@redhat.com>
13891
13892 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
13893 * target.h (struct target_ops) <to_prepare_to_store>: Add
13894 argument.
13895 (target_prepare_to_store): Add argument.
13896 * target.c (debug_to_prepare_to_store): Add argument.
13897 (update_current_target): Update.
13898 * remote.c (remote_prepare_to_store): Add 'self' argument.
13899 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
13900 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
13901 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
13902 * record-full.c (record_full_core_prepare_to_store): Add 'self'
13903 argument.
13904 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
13905 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
13906 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
13907 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
13908 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
13909
13910 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13911
13912 * btrace.h (replay) <replay>: New.
13913 (btrace_is_replaying): New.
13914 * btrace.c (btrace_clear): Free replay iterator.
13915 (btrace_is_replaying): New.
13916 * record-btrace.c (record_btrace_is_replaying): New.
13917 (record_btrace_info): Print insn number if replaying.
13918 (record_btrace_insn_history): Start at replay position.
13919 (record_btrace_call_history): Start at replay position.
13920 (init_record_btrace_ops): Init to_record_is_replaying.
13921
13922 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13923
13924 * record-btrace.c (record_btrace_insn_history_range): Include
13925 end.
13926 (record_btrace_insn_history_from): Adjust range.
13927 (record_btrace_call_history_range): Include
13928 end.
13929 (record_btrace_call_history_from): Adjust range.
13930 * NEWS: Announce changes.
13931
13932 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13933
13934 * record.h (enum record_print_flag)
13935 <record_print_indent_calls>: New.
13936 * record.c (get_call_history_modifiers): Recognize /c modifier.
13937 (_initialize_record): Document /c modifier.
13938 * record-btrace.c (btrace_call_history): Add btinfo parameter.
13939 Reorder fields. Optionally indent the function name. Update
13940 all users.
13941 * NEWS: Announce changes.
13942
13943 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13944
13945 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
13946
13947 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13948
13949 * btrace.c (ftrace_new_function): Start counting at one.
13950 * record-btrace.c (record_btrace_info): Adjust number of calls
13951 and insns.
13952 * NEWS: Announce it.
13953
13954 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13955
13956 * record-btrace.c (btrace_call_history_insn_range): Print
13957 insn range as [begin, end].
13958
13959 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13960
13961 * btrace.h (struct btrace_func_link): New.
13962 (enum btrace_function_flag): New.
13963 (struct btrace_inst): Rename to ...
13964 (struct btrace_insn): ...this. Update all users.
13965 (struct btrace_func) <ibegin, iend>: Remove.
13966 (struct btrace_func_link): New.
13967 (struct btrace_func): Rename to ...
13968 (struct btrace_function): ...this. Update all users.
13969 (struct btrace_function) <segment, flow, up, insn, insn_offset)
13970 (number, level, flags>: New.
13971 (struct btrace_insn_iterator): Rename to ...
13972 (struct btrace_insn_history): ...this.
13973 Update all users.
13974 (struct btrace_insn_iterator, btrace_call_iterator): New.
13975 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
13976 (struct btrace_target_info) <begin, end, level>
13977 <insn_history, call_history>: New.
13978 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
13979 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
13980 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
13981 (btrace_call_number, btrace_call_begin, btrace_call_end)
13982 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
13983 (btrace_find_function_by_number, btrace_set_insn_history)
13984 (btrace_set_call_history): New.
13985 * btrace.c (btrace_init_insn_iterator)
13986 (btrace_init_func_iterator, compute_itrace): Remove.
13987 (ftrace_print_function_name, ftrace_print_filename)
13988 (ftrace_skip_file): Change
13989 parameter to const.
13990 (ftrace_init_func): Remove.
13991 (ftrace_debug): Use new btrace_function fields.
13992 (ftrace_function_switched): Also consider gaining and
13993 losing symbol information).
13994 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
13995 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
13996 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
13997 New.
13998 (ftrace_new_function): Move. Remove debug print.
13999 (ftrace_update_lines, ftrace_update_insns): New.
14000 (ftrace_update_function): Check for call, ret, and jump.
14001 (compute_ftrace): Renamed to ...
14002 (btrace_compute_ftrace): ...this. Rewritten to compute call
14003 stack.
14004 (btrace_fetch, btrace_clear): Updated.
14005 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14006 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14007 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14008 (btrace_call_number, btrace_call_begin, btrace_call_end)
14009 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14010 (btrace_find_function_by_number, btrace_set_insn_history)
14011 (btrace_set_call_history): New.
14012 * record-btrace.c (require_btrace): Use new btrace thread
14013 info fields.
14014 (record_btrace_info, btrace_insn_history)
14015 (record_btrace_insn_history, record_btrace_insn_history_range):
14016 Use new btrace thread info fields and new iterator.
14017 (btrace_func_history_src_line): Rename to ...
14018 (btrace_call_history_src_line): ...this. Use new btrace
14019 thread info fields.
14020 (btrace_func_history): Rename to ...
14021 (btrace_call_history): ...this. Use new btrace thread info
14022 fields and new iterator.
14023 (record_btrace_call_history, record_btrace_call_history_range):
14024 Use new btrace thread info fields and new iterator.
14025
14026 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14027
14028 * frame.h (frame_id_build_unavailable_stack_special): New.
14029 * frame.c (frame_id_build_unavailable_stack_special): New.
14030
14031 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14032
14033 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14034 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14035 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14036 to gdbarch.
14037 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14038 (i386_insn_is_jump, i386_jmp_p): New.
14039 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14040 insn_is_jump to gdbarch.
14041 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14042 * gdbarch.h: Regenerated.
14043 * gdbarch.c: Regenerated.
14044 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14045 (default_insn_is_jump): New.
14046 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14047 (default_insn_is_jump): New.
14048
14049 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14050
14051 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14052 Change to ...
14053 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14054 (btrace_read_type) <btrace_read_new>: Change to ...
14055 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14056
14057 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14058
14059 * common/linux-btrace.c (linux_read_btrace): Free trace from
14060 previous iteration.
14061
14062 2014-01-15 Doug Evans <dje@google.com>
14063
14064 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14065 uint32_t.
14066
14067 2014-01-15 Tom Tromey <tromey@redhat.com>
14068
14069 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14070 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14071 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14072 (set_objfile_main_name): New function.
14073 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14074 language_of_main>: New fields.
14075 (set_objfile_main_name): Declare.
14076 * symtab.c (find_main_name): Loop over objfiles to find the main
14077 name and language.
14078 (set_main_name): Now static.
14079 (get_main_info): Add comment.
14080 * symtab.h (set_main_name): Don't declare.
14081
14082 2014-01-15 Tom Tromey <tromey@redhat.com>
14083
14084 * symtab.c (main_progspace_key): New global.
14085 (struct main_info): New.
14086 (name_of_main, language_of_main): Remove.
14087 (get_main_info, main_info_cleanup): New function.
14088 (set_main_name, main_name, main_language): Use get_main_info.
14089 (_initialize_symtab): Initialize main_progspace_key.
14090
14091 2014-01-15 Tom Tromey <tromey@redhat.com>
14092
14093 * dbxread.c (process_one_symbol): Update.
14094 * dwarf2read.c (read_partial_die): Update.
14095 * symfile.c (set_initial_language): Call main_language.
14096 * symtab.c (language_of_main): Now static.
14097 (set_main_name): Add 'lang' parameter.
14098 (find_main_name): Update.
14099 (main_language): New function.
14100 (symtab_observer_executable_changed): Update.
14101 * symtab.h (set_main_name): Update.
14102 (language_of_main): Remove.
14103 (main_language): Declare.
14104
14105 2014-01-15 Tom Tromey <tromey@redhat.com>
14106
14107 * symfile.c (init_entry_point_info): Use new "initialized" field.
14108 Update.
14109 * objfiles.h (struct entry_point) <initialized>: New field.
14110 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14111 (struct objfile) <ei>: ...here. Remove.
14112 * objfiles.c (entry_point_address_query): Update.
14113
14114 2014-01-15 Tom Tromey <tromey@redhat.com>
14115
14116 * objfiles.c (entry_point_address_query): Relocate entry point
14117 address.
14118 (objfile_relocate1): Do not relocate entry point address.
14119 * objfiles.h (struct entry_info) <entry_point>: Update comment.
14120 <the_bfd_section_index>: New field.
14121 * symfile.c (init_entry_point_info): Find the entry point's
14122 section.
14123
14124 2014-01-15 Tom Tromey <tromey@redhat.com>
14125
14126 * solib-frv.c (enable_break): Use entry_point_address_query.
14127
14128 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14129
14130 * NEWS: Add note on improved process record-replay on
14131 arm*-linux* targets.
14132
14133 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14134
14135 * arm-tdep.c (enum arm_record_result): New enum.
14136 (arm_record_unsupported_insn): New function.
14137 (arm_record_coproc_data_proc): Removed.
14138 (thumb2_record_ld_st_multiple): New function.
14139 (thumb2_record_ld_st_dual_ex_tbb): New function.
14140 (thumb2_record_data_proc_sreg_mimm): New function.
14141 (thumb2_record_ps_dest_generic): New function.
14142 (thumb2_record_branch_misc_cntrl): New function.
14143 (thumb2_record_str_single_data): New function.
14144 (thumb2_record_ld_mem_hints): New function.
14145 (thumb2_record_ld_word): New function.
14146 (thumb2_record_lmul_lmla_div): New function.
14147 (thumb2_record_decode_insn_handler): New function.
14148 (decode_insn): Add thumb32 instruction handlers.
14149
14150 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14151
14152 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14153 (struct arm_linux_record_tdep): Declare.
14154 (arm_canonicalize_syscall): New function.
14155 (arm_all_but_pc_registers_record): New function.
14156 (arm_linux_syscall_record): New function.
14157 (arm_linux_init_abi): Add syscall recording constructs.
14158 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14159 decoding. (arm_record_coproc_data_proc): Update arm syscall
14160 decoding.
14161 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14162 <arm_syscall_record>: New field.
14163 * configure.tgt (arm*-*-linux*): Add linux-record.o to
14164 gdb_target_obs.
14165
14166 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14167
14168 * arm-tdep.c (thumb_record_misc): Update to use sp as base
14169 register for push instruction recording.
14170
14171 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14172
14173 * arm-tdep.c (thumb_record_misc): Update to correct logical
14174 error while recording ldm, ldmia and pop instructions.
14175
14176 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
14177
14178 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14179
14180 2014-01-15 Pedro Alves <palves@redhat.com>
14181
14182 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14183 (go32_resume, go32_fetch_registers, store_register)
14184 (go32_store_registers, go32_prepare_to_store)
14185 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14186 (go32_create_inferior, go32_can_run, go32_terminal_init)
14187 (go32_terminal_inferior, go32_terminal_ours): Delete forward
14188 declarations.
14189
14190 2014-01-15 Tom Tromey <tromey@redhat.com>
14191
14192 * target.h (async_callback_ftype): New typedef.
14193 (struct target_ops) <to_async>: Use it.
14194
14195 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14196
14197 * python/py-value.c (get_field_type): Remove unnecessary curly
14198 braces for single-statement if block.
14199
14200 2014-01-15 Joel Brobecker <brobecker@adacore.com>
14201
14202 * python/py-type.c (convert_field): Add missing empty line
14203 after declarations.
14204
14205 2014-01-14 Doug Evans <dje@google.com>
14206
14207 * symfile.h (expand_symtabs_matching): Renamed from
14208 expand_partial_symbol_names. Update prototype.
14209 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14210 * symfile.c (expand_symtabs_matching): Renamed from
14211 expand_partial_symbol_names. New args file_matcher, kind.
14212 Rename arg fun to symbol_matcher.
14213 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14214 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14215 ada_expand_partial_symbol_name.
14216 (ada_make_symbol_completion_list): Update to call
14217 expand_symtabs_matching.
14218 (ada_add_global_exceptions): Call expand_symtabs_matching.
14219 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14220 call map_symbol_filenames.
14221 * symtab.c (sources_info): Update to call map_symbol_filenames.
14222 (search_symbols): Call expand_symtabs_matching.
14223 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14224 (default_make_symbol_completion_list_break_on): Update to call
14225 expand_symtabs_matching.
14226 (make_source_files_completion_list): Update to call
14227 map_symbol_filenames.
14228
14229 2014-01-14 Doug Evans <dje@google.com>
14230
14231 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14232 (expand_symtabs_symbol_matcher_ftype): New typedef.
14233 (quick_symbol_functions.expand_symtabs_matching): Update to use.
14234 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14235 * symfile.c (expand_partial_symbol_names): Update to use
14236 expand_symtabs_symbol_matcher_ftype.
14237 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14238 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14239 Arg name_matcher renamed to symbol_matcher.
14240 * psymtab.c (recursively_search_psymtabs): Update to use
14241 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
14242 sym_matcher.
14243 (expand_symtabs_matching_via_partial): Update to use
14244 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14245 Arg name_matcher renamed to symbol_matcher.
14246
14247 2014-01-14 Doug Evans <dje@google.com>
14248
14249 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14250 (map_partial_symbol_filenames): Ditto.
14251 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14252 (map_partial_symbol_filenames): Ditto.
14253 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14254 (map_partial_symbol_filenames): Ditto.
14255 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14256 (map_partial_symbol_filenames): Ditto.
14257 * symtab.c: Delete #include "psymtab.h".
14258
14259 2014-01-14 Pedro Alves <palves@redhat.com>
14260 Tom Tromey <tromey@redhat.com>
14261
14262 * infrun.c (use_displaced_stepping): Use find_record_target
14263 instead of RECORD_IS_USED.
14264 (adjust_pc_after_break): Use record_full_is_used instead of
14265 RECORD_IS_USED.
14266 * record-btrace.c (record_btrace_open): Call record_preopen
14267 instead of checking RECORD_IS_USED.
14268 * record-full.c (record_full_shortname)
14269 (record_full_core_shortname): New globals.
14270 (record_full_is_used): New function.
14271 (find_full_open): Call record_preopen instead of checking
14272 RECORD_IS_USED.
14273 (init_record_full_ops): Set the target's shortname to
14274 record_full_shortname.
14275 (init_record_full_core_ops): Set the target's shortname to
14276 record_full_core_shortname.
14277 * record-full.h (record_full_is_used): Declare.
14278 * record.c (find_record_target): Make extern.
14279 (record_preopen): New function.
14280 * record.h (RECORD_IS_USED): Delete macro.
14281 (find_record_target, record_preopen): Declare functions.
14282
14283 2014-01-14 Yao Qi <yao@codesourcery.com>
14284
14285 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14286 'len''s type to ULONGEST.
14287 (core_xfer_shared_libraries_aix): Likewise.
14288 * gdbarch.c, gdbarch.h: Regenerated.
14289 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14290 Change type of 'len' to ULONGEST.
14291 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14292 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14293
14294 2014-01-14 Yao Qi <yao@codesourcery.com>
14295
14296 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14297 type of 'len' to ULONGEST.
14298 (linux_xfer_osdata_processgroups): Likewise.
14299 (linux_xfer_osdata_threads): Likewise.
14300 (linux_xfer_osdata_fds): Likewise.
14301 (linux_xfer_osdata_isockets): Likewise.
14302 (linux_xfer_osdata_shm): Likewise.
14303 (linux_xfer_osdata_sem): Likewise.
14304 (linux_xfer_osdata_msg): Likewise.
14305 (linux_common_xfer_osdata): Likewise.
14306 (struct osdata_type) <getter>: Likewise.
14307 * common/linux-osdata.h (linux_common_xfer_osdata): Update
14308 the declaration.
14309
14310 2014-01-14 Yao Qi <yao@codesourcery.com>
14311
14312 * target.h (target_xfer_partial_ftype): Update.
14313 (struct target_ops) <to_xfer_partial>: Change 'len' type to
14314 ULONGEST.
14315 * aix-thread.c (aix_thread_xfer_partial): Change type of
14316 argument 'len' to ULONGEST.
14317 * auxv.c (procfs_xfer_auxv): Likewise.
14318 (ld_so_xfer_auxv): Likewise.
14319 (memory_xfer_auxv): Likewise.
14320 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14321 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14322 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14323 * corelow.c (core_xfer_partial): Likewise.
14324 * ctf.c (ctf_xfer_partial): Likewise.
14325 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
14326 '%u'.
14327 (darwin_read_dyld_info): Likewise.
14328 (darwin_xfer_partial): Likewise.
14329 * exec.c (section_table_xfer_memory_partial): Likewise.
14330 (exec_xfer_partial): Likewise.
14331 * exec.h (section_table_xfer_memory_partial): Update
14332 declaration.
14333 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
14334 instead of plongest.
14335 (gnu_xfer_partial): Likewise.
14336 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14337 (ia64_hpux_xfer_solib_got): Likewise.
14338 (ia64_hpux_xfer_partial): Likewise.
14339 * ia64-linux-nat.c (ia64_linux_xfer_partial):
14340 * inf-ptrace.c (inf_ptrace_xfer_partial):
14341 * inf-ttrace.c (inf_ttrace_xfer_partial):
14342 * linux-nat.c (linux_xfer_siginfo): Likewise.
14343 (linux_nat_xfer_partial): Likewise.
14344 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14345 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14346 * monitor.c (monitor_xfer_memory): Likewise.
14347 (monitor_xfer_partial): Likewise.
14348 * procfs.c (procfs_xfer_partial): Likewise.
14349 * record-full.c (record_full_xfer_partial): Likewise.
14350 (record_full_core_xfer_partial): Likewise.
14351 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
14352 instead of plongest.
14353 (gdbsim_xfer_partial): Likewise.
14354 * remote.c (remote_xfer_partial): Likewise.
14355 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14356 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14357 declaration.
14358 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14359 (rs6000_xfer_shared_libraries): Likewise.
14360 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14361 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14362 (sparc_xfer_partial): Likewise.
14363 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14364 (spu_xfer_partial): Likewise.
14365 * spu-multiarch.c (spu_xfer_partial): Likewise.
14366 * target.c (target_read_live_memory): Likewise.
14367 (memory_xfer_live_readonly_partial): Likewise.
14368 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14369 (target_xfer_partial, default_xfer_partial): Likewise.
14370 (current_xfer_partial): Likewise.
14371 * tracepoint.c (tfile_xfer_partial): Likewise.
14372 * windows-nat.c (windows_xfer_memory): Likewise. Call
14373 pulongest instead of plongest.
14374 (windows_xfer_partial): Likewise.
14375 (windows_xfer_shared_libraries): Likewise.
14376
14377 2014-01-14 Yao Qi <yao@codesourcery.com>
14378
14379 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14380 target_xfer_partial_ftype.
14381
14382 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
14383
14384 PR python/15464
14385 PR python/16113
14386 * valops.c (value_struct_elt_bitpos): New function
14387 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14388 object to 'None' if the field name is an empty string ("").
14389 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14390 attribute to look for a field when 'name' is 'None'.
14391 (get_field_type): New function
14392
14393 2014-01-13 Doug Evans <dje@google.com>
14394
14395 PR symtab/16426
14396 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14397 (try_open_dwop_file): Ditto.
14398 * gdb_bfd.c: #include "vec.h".
14399 (bfdp): New typedef.
14400 (struct gdb_bfd_data): New member included_bfds.
14401 (gdb_bfd_unref): Unref all included bfds.
14402 (gdb_bfd_record_inclusion): New function.
14403 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14404
14405 2014-01-13 Tom Tromey <tromey@redhat.com>
14406
14407 * gdbcore.h (deprecated_core_resize_section_table): Remove.
14408
14409 2014-01-13 Tom Tromey <tromey@redhat.com>
14410
14411 * defs.h (use_windows): Remove.
14412 * gdb.c (main): Update.
14413 * main.c (captured_main, gdb_main): Update.
14414 * main.h (struct captured_main_args) <use_windows>: Remove.
14415 * top.c (use_windows): Remove.
14416
14417 2014-01-13 Tom Tromey <tromey@redhat.com>
14418
14419 * defs.h (deprecated_flush_hook): Remove.
14420
14421 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
14422
14423 PR threads/16216
14424 * linux-thread-db.c (try_thread_db_load): Add parameter
14425 check_auto_load_safe. Move here the file_is_auto_load_safe call.
14426 (try_thread_db_load_from_pdir_1): Move it there from here.
14427 (try_thread_db_load_from_sdir): Update caller.
14428 (try_thread_db_load_from_dir): Move it there from here.
14429
14430 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
14431
14432 * regformats/regdat.sh: Always rewrite the register file.
14433
14434 2014-01-13 Pedro Alves <palves@redhat.com>
14435
14436 * Makefile.in (CHECK_HEADERS): New variable.
14437 (check-headers:): New rule.
14438
14439 2014-01-13 Tom Tromey <tromey@redhat.com>
14440
14441 * cli/cli-setshow.c (do_set_command): Update.
14442 * defs.h (deprecated_set_hook): Remove.
14443 * top.c (deprecated_set_hook): Remove.
14444
14445 2014-01-13 Pedro Alves <palves@redhat.com>
14446
14447 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14448 the tracepoint if the PC is a pseudo-register.
14449
14450 2014-01-13 Tom Tromey <tromey@redhat.com>
14451
14452 * defs.h (XCALLOC): Remove.
14453 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14454 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14455 * dwarf2loc.c (allocate_piece_closure): Likewise.
14456 * elfread.c (elf_symfile_segments): Likewise.
14457 (elf_symfile_segments): Likewise.
14458 * gdbtypes.c (copy_type_recursive): Likewise.
14459 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14460 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14461 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14462 XCALLOC.
14463 * mt-tdep.c (mt_gdbarch_init): Likewise.
14464 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14465 XCALLOC.
14466 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14467 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14468 * registry.c (registry_alloc_data): Likewise.
14469 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14470 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14471 * serial.c (serial_fdopen_ops): Likewise.
14472 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14473 XCALLOC.
14474 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14475 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14476 not XCALLOC.
14477
14478 2014-01-13 Tom Tromey <tromey@redhat.com>
14479
14480 * defs.h (XMALLOC): Remove.
14481 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14482 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14483 * cli-out.c (struct ui_out *): Likewise.
14484 * cli/cli-dump.c (add_dump_command): Likewise.
14485 (add_dump_command): Likewise.
14486 * complaints.c (get_complaints): Likewise.
14487 (find_complaint): Likewise.
14488 * dwarf2-frame.c (execute_cfa_program): Likewise.
14489 * dwarf2read.c (abbrev_table_read_table): Likewise.
14490 * gdbarch.sh: Likewise.
14491 * gdbarch.c: Rebuild.
14492 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14493 * interps.c (interp_new): Likewise.
14494 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14495 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14496 * mi/mi-console.c (mi_console_file_new): Likewise.
14497 * mi/mi-interp.c (mi_interpreter_init): Likewise.
14498 * mi/mi-out.c (mi_out_new): Likewise.
14499 * mi/mi-parse.c (mi_parse): Likewise.
14500 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14501 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14502 * observer.c (xalloc_observer_list_node): Likewise.
14503 * regcache.c (regcache_xmalloc_1): Likewise.
14504 * reggroups.c (reggroup_new): Likewise.
14505 (_initialize_reggroup): Likewise.
14506 * registry.c (register_data_with_cleanup): Likewise.
14507 * remote.c (remote_notif_stop_alloc_reply): Likewise.
14508 * ser-base.c (serial_ttystate): Likewise.
14509 * ser-mingw.c (make_pipe_state): Likewise.
14510 * ser-pipe.c (pipe_open): Likewise.
14511 * serial.c (serial_open): Likewise.
14512 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14513 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14514 (tui_alloc_win_info): Likewise.
14515 (tui_add_content_elements): Likewise.
14516 * tui/tui-file.c (tui_file_new): Likewise.
14517 * tui/tui-out.c (tui_out_new): Likewise.
14518 * ui-file.c (mem_file_new): Likewise.
14519 * ui-out.c (push_level): Likewise.
14520 (make_cleanup_ui_out_end): Likewise.
14521 (append_header_to_list): Likewise.
14522 (ui_out_new): Likewise.
14523 * user-regs.c (user_reg_add_builtin): Likewise.
14524
14525 2014-01-13 Tom Tromey <tromey@redhat.com>
14526
14527 * defs.h (XZALLOC): Remove.
14528 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14529 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14530 (get_ada_tasks_inferior_data): Likewise.
14531 * auto-load.c (get_auto_load_pspace_data): Likewise.
14532 * auxv.c (get_auxv_inferior_data): Likewise.
14533 * bfd-target.c (target_bfd_reopen): Likewise.
14534 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
14535 (deprecated_insert_raw_breakpoint): Likewise.
14536 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
14537 * corelow.c (core_open): Likewise.
14538 * darwin-nat.c (darwin_check_new_threads): Likewise.
14539 (darwin_attach_pid): Likewise.
14540 * dummy-frame.c (dummy_frame_push): Likewise.
14541 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
14542 * dwarf2loc.c (allocate_piece_closure): Likewise.
14543 * elfread.c (elf_symfile_segments): Likewise.
14544 * eval.c (ptrmath_type_p): Likewise.
14545 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
14546 * gdbtypes.c (alloc_type_arch): Likewise.
14547 (alloc_type_instance): Likewise.
14548 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
14549 * inf-child.c (inf_child_can_use_agent): Likewise.
14550 * inflow.c (get_inflow_inferior_data): Likewise.
14551 * infrun.c (save_infcall_suspend_state): Likewise.
14552 * jit.c (jit_reader_load): Likewise.
14553 (get_jit_objfile_data): Likewise.
14554 (get_jit_program_space_data): Likewise.
14555 (jit_object_open_impl): Likewise.
14556 (jit_symtab_open_impl): Likewise.
14557 (jit_block_open_impl): Likewise.
14558 (jit_frame_sniffer): Likewise.
14559 * linux-fork.c (add_fork): Likewise.
14560 * maint.c (make_command_stats_cleanup): Likewise.
14561 * objfiles.c (get_objfile_pspace_data): Likewise.
14562 * opencl-lang.c (struct lval_closure): Likewise.
14563 * osdata.c (osdata_start_osdata): Likewise.
14564 * progspace.c (new_address_space): Likewise.
14565 (add_program_space): Likewise.
14566 * remote-sim.c (get_sim_inferior_data): Likewise.
14567 * sh-tdep.c (sh_gdbarch_init): Likewise.
14568 * skip.c (Ignore): Likewise.
14569 (skip_delete_command): Likewise.
14570 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
14571 (library_list_start_library): Likewise.
14572 (solib_aix_current_sos): Likewise.
14573 * solib-darwin.c (get_darwin_info): Likewise.
14574 (darwin_current_sos): Likewise.
14575 * solib-dsbt.c (get_dsbt_info): Likewise.
14576 * solib-ia64-hpux.c (new_so_list): Likewise.
14577 (ia64_hpux_get_solib_linkage_addr): Likewise.
14578 * solib-spu.c (append_ocl_sos): Likewise.
14579 (spu_current_sos): Likewise.
14580 * solib-svr4.c (get_svr4_info): Likewise.
14581 (svr4_keep_data_in_core): Likewise.
14582 (library_list_start_library): Likewise.
14583 (svr4_default_sos): Likewise.
14584 (svr4_read_so_list): Likewise.
14585 * solib-target.c (library_list_start_library): Likewise.
14586 (solib_target_current_sos): Likewise.
14587 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
14588 * symfile-debug.c (install_symfile_debug_logging): Likewise.
14589 * symfile.c (default_symfile_segments): Likewise.
14590 * target-descriptions.c (tdesc_data_init): Likewise.
14591 (tdesc_create_reg): Likewise.
14592 (struct tdesc_type *): Likewise.
14593 (tdesc_create_vector): Likewise.
14594 (tdesc_set_struct_size): Likewise.
14595 (struct tdesc_type *): Likewise.
14596 (tdesc_free_feature): Likewise.
14597 (tdesc_create_feature): Likewise.
14598 * windows-nat.c (windows_add_thread): Likewise.
14599 (windows_make_so): Likewise.
14600 * xml-support.c (gdb_xml_body_text): Likewise.
14601 (gdb_xml_create_parser_and_cleanup): Likewise.
14602 (xml_process_xincludes): Likewise.
14603 * xml-syscall.c (allocate_syscalls_info): Likewise.
14604 (syscall_create_syscall_desc): Likewise.
14605
14606 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
14607
14608 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
14609 function, with code from i386_stap_parse_special_token.
14610 (i386_stap_parse_special_token_three_arg_disp): Likewise.
14611 (i386_stap_parse_special_token): Move code to the two functions
14612 above; simplify it.
14613
14614 2014-01-09 Pedro Alves <palves@redhat.com>
14615 Hui Zhu <hui@codesourcery.com>
14616
14617 PR gdb/16101
14618 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
14619 bp_err_string. Don't mark the location shlib_disabled if the
14620 error thrown wasn't a generic or memory error. Catch errors
14621 thrown while inserting breakpoints in overlayed code. Output
14622 error message of software breakpoints.
14623 * remote.c (remote_insert_breakpoint): If this breakpoint has
14624 target-side commands but this stub doesn't support Z0 packets,
14625 throw NOT_SUPPORTED_ERROR error.
14626 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
14627 * target.h (target_insert_breakpoint): Extend comment.
14628 (target_insert_hw_breakpoint): Add comment.
14629
14630 2014-01-08 Pedro Alves <palves@redhat.com>
14631
14632 * remote.c (remote_add_thread): Add threads silently if starting
14633 up.
14634 (remote_notice_new_inferior): If in all-stop, and starting up,
14635 don't call notice_new_inferior.
14636 (get_current_thread): New function, factored out from ...
14637 (add_current_inferior_and_thread): ... this. Adjust.
14638 (remote_start_remote) <all-stop>: Fetch the thread list. If we
14639 found any thread, then select the remote's current thread as GDB's
14640 current thread too.
14641
14642 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14643
14644 * NEWS: Create a new section for the next release branch.
14645 Rename the section of the current branch, now that it has
14646 been cut.
14647
14648 2014-01-08 Joel Brobecker <brobecker@adacore.com>
14649
14650 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
14651 * version.in: Bump version to 7.7.50.DATE-cvs.
14652
14653 2014-01-08 Yao Qi <yao@codesourcery.com>
14654
14655 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
14656 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
14657 (spu_xfer_partial): Cast 'buf' to 'const char *'.
14658
14659 2014-01-08 Yao Qi <yao@codesourcery.com>
14660
14661 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
14662 return value of bfd_get_filename to symbol_file_add_from_bfd.
14663
14664 2014-01-08 Pierre Muller <muller@sourceware.org>
14665
14666 Fix PR16201.
14667 * coff-pe-read.c (struct read_pe_section_data): Add index field.
14668 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
14669 to prim_record_mininal_symbol_and_info.
14670 (add_pe_forwarded_sym): Use known section number of forwarded symbol
14671 in call to prim_record_minimal_symbol_and_info.
14672 (read_pe_exported_syms): Set index field of section_data.
14673
14674 2014-01-07 Andrew Pinski <apinski@cavium.com>
14675
14676 * features/aarch64-core.xml (cpsr): Change to be 64bit.
14677 * features/aarch64.c: Regenerate.
14678
14679 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
14680
14681 * target.c (return_null): Define.
14682 (update_current_target): Use it instead of return_zero for
14683 functions that return a pointer.
14684
14685 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
14686
14687 * source.c (add_path): Fix check for duplicated paths in the previously
14688 included paths.
14689
14690 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
14691
14692 * ada-lang.c: Remove duplicated include statements.
14693 * alphabsd-nat.c: Ditto.
14694 * amd64-darwin-tdep.c: Ditto.
14695 * amd64fbsd-nat.c: Ditto.
14696 * auto-load.c: Ditto.
14697 * ax-gdb.c: Ditto.
14698 * breakpoint.c: Ditto.
14699 * dbxread.c: Ditto.
14700 * fork-child.c: Ditto.
14701 * gdb_usleep.c: Ditto.
14702 * i386-darwin-tdep.c: Ditto.
14703 * i386fbsd-nat.c: Ditto.
14704 * infcmd.c: Ditto.
14705 * inferior.c: Ditto.
14706 * jv-lang.c: Ditto.
14707 * linux-nat.c: Ditto.
14708 * linux-tdep.c: Ditto.
14709 * m68kbsd-nat.c: Ditto.
14710 * m68klinux-nat.c: Ditto.
14711 * microblaze-tdep.c: Ditto.
14712 * mips-linux-tdep.c: Ditto.
14713 * mn10300-tdep.c: Ditto.
14714 * nto-tdep.c: Ditto.
14715 * opencl-lang.c: Ditto.
14716 * osdata.c: Ditto.
14717 * printcmd.c: Ditto.
14718 * regcache.c: Ditto.
14719 * remote-m32r-sdi.c: Ditto.
14720 * remote.c: Ditto.
14721 * symfile.c: Ditto.
14722 * symtab.c: Ditto.
14723 * tilegx-linux-nat.c: Ditto.
14724 * tilegx-tdep.c: Ditto.
14725 * tracepoint.c: Ditto.
14726 * valops.c: Ditto.
14727 * vaxbsd-nat.c: Ditto.
14728 * windows-nat.c: Ditto.
14729 * xtensa-tdep.c: Ditto.
14730
14731 2014-01-07 Yao Qi <yao@codesourcery.com>
14732
14733 * spu-linux-nat.c (_initialize_spu_nat): Declare.
14734
14735 2014-01-07 Yao Qi <yao@codesourcery.com>
14736 Joel Brobecker <brobecker@adacore.com>
14737
14738 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
14739 (pdc_write_regs): Likewise.
14740 (fetch_regs_kernel_thread): Likewise.
14741 (store_regs_kernel_thread): Likewise.
14742
14743 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14744
14745 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
14746 tagged type objects to their actual type.
14747
14748 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14749
14750 * ada-valprint.c (print_field_values): Add "language" parameter.
14751 Update calls to print_field_values and print_variant_part.
14752 Pass new parameter "language" in call to val_print instead
14753 of "current_language". Replace call to ada_val_print by call
14754 to val_print.
14755 (print_variant_part): Add "language" parameter.
14756 (ada_val_print_struct_union): Update call to print_field_values.
14757
14758 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14759
14760 * ada-valprint.c (ui_memcpy): Delete.
14761 (ada_print_floating): Update documentation. Add empty line
14762 between between function documentation and implementation.
14763 Delete variable "buffer". Use ui_file_xstrdup in place of
14764 ui_file_put. Minor adjustments following this change.
14765
14766 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14767
14768 * ada-valprint.c (ada_val_print_string): New function,
14769 extracted from ada_val_print_array.
14770 (ada_val_print_array): Replace extracted code by call
14771 to ada_val_print_string followed by a return. Move
14772 "else" branch to the function's top block.
14773
14774 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14775
14776 * ada-valprint.c (ada_val_print_array): Move implementation
14777 down. Rename parameter "offset" and "val" into "offset_aligned"
14778 and "original_value" respectively. Add parameter "offset".
14779
14780 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14781
14782 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
14783 re-organizing the code. Change the "???" message printed
14784 when target type is a TYPE_CODE_UNDEF into
14785 "<ref to undefined type>".
14786
14787 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14788
14789 * ada-valprint.c (print_record): Delete, implementation inlined...
14790 (ada_val_print_struct_union): ... here. Remove call to
14791 ada_check_typedef in inlined implementation.
14792
14793 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14794
14795 * ada-valprint.c (ada_val_print_gnat_array): New function,
14796 extracted from ada_val_print_1;
14797 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
14798 (ada_val_print_flt, ada_val_print_struct_union)
14799 (ada_val_print_ref): Likewise.
14800 (ada_val_print_1): Delete variables i and elttype.
14801 Replace extracted-out code by call to corresponding
14802 new functions.
14803
14804 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14805
14806 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
14807
14808 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14809
14810 * ada-valprint.c (ada_val_print_1): Replace calls to
14811 ada_val_print_1 by calls to val_print.
14812
14813 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14814
14815 * ada-valprint.c (ada_val_print_1): Add parameter "language".
14816 Update calls to self accordingly. Replace calls to c_val_print
14817 by calls to val_print.
14818
14819 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14820
14821 * ada-valprint.c (print_record): Delete declaration.
14822 (adjust_type_signedness, ada_val_print_1): Likewise.
14823 (ada_val_print): Move function implementation down.
14824 (print_variant_part, print_field_values, print_record):
14825 Move function implementation up.
14826
14827 2014-01-07 Joel Brobecker <brobecker@adacore.com>
14828
14829 * python/py-type.c (typy_get_name): New function.
14830 (type_object_getset): Add entry for attribute "name".
14831 * NEWS: Add entry mentioning this new attribute.
14832
14833 2014-01-07 Yao Qi <yao@codesourcery.com>
14834
14835 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
14836 statement.
14837
14838 2014-01-07 Yao Qi <yao@codesourcery.com>
14839
14840 * gnu-nat.c (info_port_rights): Add qualifier const to
14841 argument args.
14842
14843 2014-01-07 Yao Qi <yao@codesourcery.com>
14844
14845 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
14846
14847 2014-01-07 Yao Qi <yao@codesourcery.com>
14848
14849 * gnu-nat.c (make_inf) Update declaration.
14850 (make_inf): Make it static.
14851 (inf_set_traced): Likewise.
14852 (inf_port_to_thread, inf_task_died_status): Likewise.
14853
14854 2014-01-07 Yao Qi <yao@codesourcery.com>
14855
14856 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
14857
14858 2014-01-07 Yao Qi <yao@codesourcery.com>
14859
14860 * gnu-nat.c (_initialize_gnu_nat): Declare.
14861
14862 2014-01-07 Yao Qi <yao@codesourcery.com>
14863
14864 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
14865 'enum bfd_endian'.
14866 (struct gdbarch_info) <byte_order>: Change type to
14867 'enum bfd_endian'.
14868 <byte_order_for_code>: Likewise.
14869 * gdbarch.c, gdbarch.h: Regenerated.
14870
14871 2014-01-06 Sasha Smundak <asmundak@google.com>
14872
14873 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
14874
14875 2014-01-06 Tom Tromey <tromey@redhat.com>
14876
14877 * doublest.c (convert_doublest_to_floatformat): Use const, not
14878 CONST.
14879 * somread.c (som_symtab_read): Likewise.
14880
14881 2014-01-07 Hui Zhu <hui@codesourcery.com>
14882
14883 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
14884 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
14885 (gdb_bfd_fopen): Ditto.
14886 (gdb_bfd_openr): Ditto.
14887 (gdb_bfd_openw): Ditto.
14888 (gdb_bfd_openr_iovec): Ditto.
14889 (gdb_bfd_fdopenr): Ditto.
14890 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
14891 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
14892 with xstrdup.
14893 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
14894 with xstrdup.
14895 * symfile-mem.c (symbol_file_add_from_memory): Removed
14896 gdb_bfd_stash_filename.
14897
14898 2014-01-03 Doug Evans <dje@google.com>
14899
14900 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
14901 output.
14902
14903 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14904
14905 Update year range in copyright notice of all files.
14906
14907 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14908
14909 * top.c (print_gdb_version): Set copyright year to 2014.
14910
14911 2014-01-01 Joel Brobecker <brobecker@adacore.com>
14912
14913 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
14914
14915 For older changes see ChangeLog-2013.
14916 \f
14917 Local Variables:
14918 mode: change-log
14919 left-margin: 8
14920 fill-column: 74
14921 version-control: never
14922 coding: utf-8
14923 End:
This page took 0.549847 seconds and 5 git commands to generate.