infrun.c: comment/typo fixes
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2014-09-25  Pedro Alves  <palves@redhat.com>
2
3         * infrun.c (stepping_past_instruction_at)
4         (clear_exit_convenience_vars): Point at infrun.h instead of
5         inferior.h.
6         (handle_signal_stop): Fix typo.
7
8 2014-09-24  Yao Qi  <yao@codesourcery.com>
9
10         * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
11         bitmask.
12
13 2014-09-22  Gary Benson  <gbenson@redhat.com>
14
15         * target.c (target_stop): Updated comment.
16
17 2014-09-22  Gary Benson  <gbenson@redhat.com>
18
19         * target/target.h (target_stop_ptid): Renamed as...
20         (target_stop_and_wait): New function.  Updated comment.
21         All uses updated.
22         (target_continue_ptid): Renamed as...
23         (target_continue_no_signal): New function.  Updated comment.
24         All uses updated.
25
26 2014-09-22  Pedro Alves  <palves@redhat.com>
27
28         * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
29         and "auto" merged.
30         * breakpoint.c (enum ugll_insert_mode): New enum.
31         (always_inserted_mode): Now a plain boolean.
32         (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
33         (breakpoints_always_inserted_mode): Delete.
34         (breakpoints_should_be_inserted_now): New function.
35         (insert_breakpoints): Pass UGLL_INSERT to
36         update_global_location_list instead of calling
37         insert_breakpoint_locations manually.
38         (create_solib_event_breakpoint_1): New, factored out from ...
39         (create_solib_event_breakpoint): ... this.
40         (create_and_insert_solib_event_breakpoint): Use
41         create_solib_event_breakpoint_1 instead of calling
42         insert_breakpoint_locations manually.
43         (update_global_location_list): Change parameter type from boolean
44         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
45         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
46         (update_global_location_list_nothrow): Change parameter type from
47         boolean to enum ugll_insert_mode.
48         (_initialize_breakpoint): "breakpoint always-inserted" option is
49         now a boolean command.  Update help text.
50         * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
51         (breakpoints_should_be_inserted_now): New declaration.
52         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
53         Remove breakpoints_always_inserted_mode check.
54         (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
55         * remote.c (remote_start_remote): Likewise.
56
57 2014-09-22  Pedro Alves  <palves@redhat.com>
58
59         * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
60         (insert_breakpoints): Don't call insert_breakpoint_locations here.
61         Instead, pass UGLL_INSERT to update_global_location_list.
62         (update_global_location_list): Change parameter type from boolean
63         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
64         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
65         (create_solib_event_breakpoint_1): New, factored out from ...
66         (create_solib_event_breakpoint): ... this.
67         (create_and_insert_solib_event_breakpoint): Use
68         create_solib_event_breakpoint_1 instead of calling
69         insert_breakpoint_locations manually.
70         (update_global_location_list): Handle UGLL_INSERT.
71
72 2014-09-22  Pedro Alves  <palves@redhat.com>
73
74         * breakpoint.c (enum ugll_insert_mode): New enum.
75         (update_global_location_list)
76         (update_global_location_list_nothrow): Change parameter type from
77         boolean to enum ugll_insert_mode.  All callers adjusted.
78
79 2014-09-19  Joel Brobecker  <brobecker@adacore.com>
80
81         * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
82         SystemTap support in GDB.
83
84 2014-09-19  Don Breazeal  <donb@codesourcery.com>
85
86         * linux-nat.c (linux_handle_extended_wait): Call
87         linux_ptrace_get_extended_event.
88         (wait_lwp): Call linux_is_extended_waitstatus.
89         (linux_nat_filter_event): Call linux_ptrace_get_extended_event
90         and linux_is_extended_waitstatus.
91         * nat/linux-ptrace.c (linux_test_for_tracefork): Call
92         linux_ptrace_get_extended_event.
93         (linux_ptrace_get_extended_event): New function.
94         (linux_is_extended_waitstatus): New function.
95         * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
96         (linux_is_extended_waitstatus): New declarations.
97
98 2014-09-19  Yao Qi  <yao@codesourcery.com>
99
100         * dwarf2read.c (dwarf_decode_lines): Update declaration.
101         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
102         comments.  Callers update.
103         (dwarf_decode_lines): Likewise.
104         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
105         comments.  Skip the line table if  'lowpc' is greater than
106         'address'.  Don't check
107         dwarf2_per_objfile->has_section_at_zero.
108
109 2014-09-18  Doug Evans  <dje@google.com>
110
111         * NEWS: Mention new "producer" attribute of gdb.Symtab.
112         * python/py-symtab.c (stpy_get_producer): New function.
113         (symtab_object_getset): Add "producer" attribute.
114
115 2014-09-17  Ulrich Weigand  <uweigand@de.ibm.com>
116
117         PR gdb/17384
118         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
119         (do_captured_read_memory_integer): Remove.
120         (safe_read_memory_integer): Use target_read_memory directly instead
121         of catching errors in do_captured_read_memory_integer.
122
123 2014-09-16  Maciej W. Rozycki  <macro@codesourcery.com>
124
125         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
126         not gdb/doc.
127
128 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
129
130         * objc-lang.c (find_implementation_from_class): Remove dead code.
131
132 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
133
134         PR cli/7233
135         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
136         "fprintf_unfiltered (gdb_stdlog...)".
137
138 2014-09-16  Patrick Palka  <patrick@parcs.ath.cx>
139
140         PR breakpoints/12526
141         * breakpoint.h (struct watchpoint): New fields val_bitpos and
142         val_bitsize.
143         * breakpoint.c (watch_command_1): Use these fields to retain
144         bitfield information.
145         (extract_bitfield_from_watchpoint_value): New function.
146         (watchpoint_check): Use it.
147         (update_watchpoint): Use it.  Optimize the address and length of a
148         HW watchpoint pointing to a bitfield.
149         * value.h (unpack_value_bitfield): New prototype.
150         * value.c (unpack_value_bitfield): Make extern.
151
152 2014-09-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
153
154         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
155         x86-dregs.o.
156         * gnu-nat.c (inf_threads): New function.
157         * gnu-nat.h (inf_threads_ftype): New typedef.
158         (inf_threads): New declaration.
159         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
160         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
161         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
162         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
163         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
164         (i386_gnu_dr_get_control): New functions.
165         (reg_addr): New structure.
166         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
167         i386 debugging register hooks.
168         * NEWS: Mention this.
169
170 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
171
172         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
173         vector data transfer instructions.
174         (arm_record_coproc_data_proc): Updated.
175
176 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
177
178         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
179         arm_record_exreg_ld_st_insn.
180         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
181         load/store insns.
182
183 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
184
185         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
186         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
187         processing instructions.
188
189 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
190
191         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
192         for advance SIMD struct ld/st insn.
193         (thumb2_record_decode_insn_handler): Replace stub handler with
194         thumb2_record_asimd_struct_ld_st.
195
196 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
197
198         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
199         for asimd, vfp and coprocessor insns.
200         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
201         and coprocessor insns.
202         (thumb2_record_coproc_insn): New function.
203         (thumb2_record_decode_insn_handler): Update coprocessor insns record
204         handlers.
205         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
206         opcode 110 insns.
207
208 2014-09-13  Doug Evans  <xdje42@gmail.com>
209
210         * NEWS: Mention new "queue-signal" command.
211         * infcmd.c (queue_signal_command): New function.
212         (_initialize_infcmd): Add new queue-signal command.
213
214 2014-09-13  Doug Evans  <xdje42@gmail.com>
215
216         * linux-nat.c (wait_lwp): Add debugging printf.
217         (linux_nat_wait_1): Ditto.
218
219 2014-09-12  Pedro Alves  <palves@redhat.com>
220
221         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
222         (create_and_insert_solib_event_breakpoint): New functions.
223         * breakpoint.h (create_and_insert_solib_event_breakpoint)
224         (remove_solib_event_breakpoints_at_next_stop): New declarations.
225         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
226         (remove_dbx_link_breakpoint): Delete function.
227         (insert_dbx_link_bpt_in_file): Use
228         create_and_insert_solib_event_breakpoint instead of
229         deprecated_insert_raw_breakpoint.
230         (procfs_wait): Don't check whether we hit __dbx_link here.
231         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
232         here.
233         * solib-irix.c (base_breakpoint): Delete global.
234         (disable_break): Delete function.
235         (enable_break): Use create_solib_event_breakpoint
236         instead of deprecated_insert_raw_breakpoint.
237         (irix_solib_handle_event): New function.
238         (irix_solib_create_inferior_hook): Don't run the target or disable
239         the mapping-complete breakpoint here.
240         (_initialize_irix_solib): Install irix_solib_handle_event as
241         so_ops->handle_event hook.
242
243 2014-09-12  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
244             Ulrich Weigand  <uweigand@de.ibm.com>
245
246         PR tdep/17379
247         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
248         instead of read_memory_unsigned_integer.
249
250 2014-09-12  Gary Benson  <gbenson@redhat.com>
251
252         * nat/linux-waitpid.c: Include common-defs.h.
253         [GDBSERVER]: Add FIXME comment.
254         [!GDBSERVER]: Don't include defs.h or signal.h.
255         (linux_debug) [!GDBSERVER]: Remove empty block.
256
257 2014-09-12  Gary Benson  <gbenson@redhat.com>
258
259         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
260         Don't include defs.h or server.h.
261
262 2014-09-12  Gary Benson  <gbenson@redhat.com>
263
264         * nat/linux-btrace.c: Include common-defs.h.
265         Don't include defs.h, server.h or gdbthread.h.
266         * nat/linux-btrace.h (struct target_ops): New forward declaration.
267
268 2014-09-12  Gary Benson  <gbenson@redhat.com>
269
270         * common/agent.c: Include common-defs.h.
271         Don't include defs.h or server.h.
272         * common/buffer.c: Likewise.
273         * common/common-debug.c: Likewise.
274         * common/common-utils.c: Likewise.
275         * common/errors.c: Likewise.
276         * common/filestuff.c: Likewise.
277         * common/format.c: Likewise.
278         * common/gdb_vecs.c: Likewise.
279         * common/print-utils.c: Likewise.
280         * common/ptid.c: Likewise.
281         * common/rsp-low.c: Likewise.
282         * common/signals.c: Likewise.
283         * common/vec.c: Likewise.
284         * common/xml-utils.c: Likewise.
285         * nat/linux-osdata.c: Likewise.
286         * nat/linux-procfs.c: Likewise.
287         * nat/linux-ptrace.c: Likewise.
288         * nat/mips-linux-watch.c: Likewise.
289         * target/waitstatus.c: Likewise.
290
291 2014-09-12  Tom Tromey  <tromey@redhat.com>
292             Gary Benson  <gbenson@redhat.com>
293
294         * common/common-regcache.h: New file.
295         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
296         * regcache.h: Include common-regcache.h.
297         (regcache_read_pc): Don't declare.
298         * regcache.c (get_thread_regcache_for_ptid): New function.
299         * nat/linux-btrace.c: Don't include regcache.h.
300         Include common-regcache.h.
301         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
302
303 2014-09-11  Thomas Schwinge  <thomas@codesourcery.com>
304
305         * regcache.h (struct regset): Declare.
306
307 2014-09-11  Pedro Alves  <palves@redhat.com>
308
309         PR gdb/17347
310         * main.c: Include "infrun.h".
311         (catch_command_errors, catch_command_errors_const): Wait for the
312         foreground command to complete.
313         * top.c (maybe_wait_sync_command_done): New function, factored out
314         from ...
315         (maybe_wait_sync_command_done): ... here.
316         * top.h (maybe_wait_sync_command_done): New declaration.
317
318 2014-09-11  Tom Tromey  <tromey@redhat.com>
319             Gary Benson  <gbenson@redhat.com>
320
321         * common/symbol.h: New file.
322         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
323         * minsyms.c (find_minimal_symbol_address): New function.
324         * common/agent.c: Include common/symbol.h.
325         [!GDBSERVER]: Don't include objfiles.h.
326         (agent_look_up_symbols): Use find_minimal_symbol_address.
327
328 2014-09-11  Gary Benson  <gbenson@redhat.com>
329
330         * target/target.h (target_stop_ptid, target_continue_ptid):
331         Declare.
332         * target.c (target_stop_ptid, target_continue_ptid): New
333         functions.
334         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
335         (agent_run_command): Always use target_stop_ptid and
336         target_continue_ptid.
337
338 2014-09-11  Tom Tromey  <tromey@redhat.com>
339             Gary Benson  <gbenson@redhat.com>
340
341         * target/target.h: New file.
342         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
343         * target.h: Include target/target.h.
344         (target_read_memory, target_write_memory): Don't declare.
345         * target.c (target_read_uint32): New function.
346         * common/agent.c: Include target/target.h.
347         [!GDBSERVER]: Don't include target.h.
348         (helper_thread_id): Type changed to uint32_t.
349         (agent_get_helper_thread_id): Use target_read_uint32.
350         (agent_run_command): Always use target_read_memory and
351         target_write_memory.
352         (agent_capability): Type changed to uint32_t.
353         (agent_capability_check): Use target_read_uint32.
354
355 2014-09-11  Gary Benson  <gbenson@redhat.com>
356
357         * common/common-debug.h (show_debug_regs): Declare.
358         * common/common-debug.c (show_debug_regs): Define.
359         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
360         all uses with show_debug_regs.  Replace all uses that considered
361         debug_hw_points as a multi-value integer with straight boolean
362         uses.
363         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
364         with show_debug_regs.
365         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
366         all uses with show_debug_regs.
367         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
368         uses with show_debug_regs.
369
370 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
371
372         * findvar.c (address_from_register): Handle targets requiring
373         a special conversion routine even for plain pointer types.
374
375 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
376
377         * rs6000-nat.c (exec_one_dummy_insn): Remove.
378         (store_register): Do not call exec_one_dummy_insn.
379
380 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
381
382         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
383         dereference it first.  Use value_enclosing_type instead of
384         value_type.
385         (ada_array_length): Likewise.
386
387 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
388
389         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
390         Adjust function implementation and documentation accordingly.
391         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
392         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
393         Update call to ada_value_ptr_subscript.
394
395 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
396
397         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
398         instead of VAL's type.
399
400 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
401
402         * amd64-linux-nat.c: Add <sys/uio.h> #include.
403
404 2014-09-09  Doug Evans  <xdje42@gmail.com>
405
406         PR guile/17367
407         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
408         last parameter to pkg-config, not first.
409         * configure.ac: Pass --with-guile provided pkg-config path to
410         GDB_GUILE_PROGRAM_NAMES.
411         * configure: Regenerate.
412
413 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
414
415         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
416         Bertazi".
417
418 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
419
420         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
421         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
422         the list of sections determining GDB_OSABI_IRIX.
423
424 2014-09-09  James Hogan  <james.hogan@imgtec.com>
425
426         * MAINTAINERS (Write After Approval): Add "James Hogan".
427
428 2014-09-09  James Hogan  <james.hogan@imgtec.com>
429
430         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
431
432 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
433
434         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
435
436 2014-09-08  Doug Evans  <xdje42@gmail.com>
437
438         PR 17247
439         * guile.c: #include <signal.h>.
440         (_initialize_guile): Block SIGCHLD while initializing Guile.
441
442         Replaces the following, which is reverted.
443
444         2014-07-26  Doug Evans  <xdje42@gmail.com>
445
446         PR 17185
447         * configure.ac: Add check for header gc/gc.h.
448         Add check for function setenv.
449         * configure: Regenerate.
450         * config.in: Regenerate.
451         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
452
453 2014-09-08  Doug Evans  <xdje42@gmail.com>
454
455         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
456         with named constant.  Fix style of pointer comparison.
457         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
458
459 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
460
461         PR gdb/17035
462         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
463         decide whether we display the command on "show user".
464         * cli/cli-script.c (show_user_1): Only verify cmdlines after
465         printing command name.
466         * cli/cli-decode.h (cli_user_command_p): Declare new function.
467         * cli/cli-decode.c (cli_user_command_p): Create helper function
468         to verify whether cmd_list_element is a user-defined command.
469
470 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
471
472         PR python/17355
473         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
474         Fix goto out of TRY_CATCH.
475
476 2014-09-06  Doug Evans  <xdje42@gmail.com>
477             Tom Tromey  <tromey@redhat.com>
478
479         PR 15276
480         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
481         $_any_caller_matches.
482         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
483         * python/lib/gdb/function/caller_is.py: New file.
484
485 2014-09-06  Doug Evans  <xdje42@gmail.com>
486
487         * infcmd.c (program_info): Fix typo.
488
489 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
490
491         PR gdb/17235
492         * stap-probe.c (stap_parse_single_operand): Delete unused variable
493         'number'.  New variable 'has_digit'.  Rewrite code to deal with
494         subexpressions on SDT probes.
495
496 2014-09-04  Pedro Alves  <palves@redhat.com>
497
498         * c-exp.y (parse_number): Skip handling base-switching prefixes if
499         the input is only one character long.
500
501 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
502
503         PR fortran/17237
504         * f-valprint.c (f_val_print): Specify the correct print option to
505         use when printing integer values.
506
507 2014-09-04  Gary Benson  <gbenson@redhat.com>
508
509         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
510         Remove code to cope with LWPs wrapped as PIDs.
511         Add assertions to ensure no wrapped LWPs are passed.
512
513 2014-09-04  Pedro Alves  <palves@redhat.com>
514
515         * value.c (value_ranges_copy_adjusted): New function, factored out
516         from ...
517         (value_contents_copy_raw): ... here.
518         (unpack_value_bits_as_long_1): Rename back to ...
519         (unpack_bits_as_long): ... this.  Remove 'original_value' and
520         'result' parameters.  Change return type to LONGEST.
521         (unpack_value_bits_as_long): Delete.
522         (unpack_value_field_as_long_1): Delete.
523         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
524         (unpack_value_bitfield): New function.
525         (value_field_bitfield): Reimplement using unpack_value_bitfield.
526         (value_fetch_lazy): Use unpack_value_bitfield.
527         * value.h (unpack_value_bits_as_long): Delete declaration.
528
529 2014-09-03  Sasha Smundak  <asmundak@google.com>
530
531         * python/py-frame.c (frapy_read_register): New function.
532
533 2014-09-03  James Hogan  <james.hogan@imgtec.com>
534
535         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
536         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
537
538 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
539
540         PR python/16699
541         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
542         function.
543         (add_cmd): Set "completer_handle_brkchars" to NULL.
544         * cli/cli-decode.h (struct cmd_list_element)
545         <completer_handle_brkchars>: New field.
546         * command.h (completer_ftype_void): New typedef.
547         (set_cmd_completer_handle_brkchars): New prototype.
548         * completer.c (set_gdb_completion_word_break_characters): New
549         function.
550         (complete_line_internal): Call "completer_handle_brkchars"
551         callback from command.
552         * completer.h: Include "command.h".
553         (set_gdb_completion_word_break_characters): New prototype.
554         * python/py-cmd.c (cmdpy_completer_helper): New function.
555         (cmdpy_completer_handle_brkchars): New function.
556         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
557         (cmdpy_init): Set completer_handle_brkchars to
558         cmdpy_completer_handle_brkchars.
559
560 2014-09-03  Gary Benson  <gbenson@redhat.com>
561
562         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
563         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
564         Loop conditions changed to equivalent form.
565         (struct x86_debug_reg_state): Updated dr_ref_count comment.
566         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
567         ALL_DEBUG_ADDRESS_REGISTERS.
568
569 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
570
571         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
572         description fix.
573
574 2014-09-02  Doug Evans  <dje@google.com>
575
576         * typeprint.c (find_global_typedef): Fix comment.
577
578 2014-09-02  Gary Benson  <gbenson@redhat.com>
579
580         * i386-nat.h: Renamed as...
581         * x86-nat.h: New file.  All type, function and variable name
582         prefixes changed from "i386_" to "x86_".  All references updated.
583         * i386-nat.c: Renamed as...
584         * x86-nat.c: New file.  All type, function and variable name
585         prefixes changed from "i386_" to "x86_".  All references updated.
586         * common/i386-xstate.h: Renamed as...
587         * common/x86-xstate.h: New file.  All type, function and variable
588         name prefixes changed from "i386_" to "x86_".  All references
589         updated.
590         * nat/i386-cpuid.h: Renamed as...
591         * nat/x86-cpuid.h: New file.  All type, function and variable name
592         prefixes changed from "i386_" to "x86_".  All references updated.
593         * nat/i386-gcc-cpuid.h: Renamed as...
594         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
595         name prefixes changed from "i386_" to "x86_".  All references
596         updated.
597         * nat/i386-dregs.h: Renamed as...
598         * nat/x86-dregs.h: New file.  All type, function and variable name
599         prefixes changed from "i386_" to "x86_".  All references updated.
600         * nat/i386-dregs.c: Renamed as...
601         * nat/x86-dregs.c: New file.  All type, function and variable name
602         prefixes changed from "i386_" to "x86_".  All references updated.
603
604 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
605
606         * varobj.c (_initialize_varobj): Move to the end of file.
607
608 2014-08-29  Gary Benson  <gbenson@redhat.com>
609
610         * common/common-exceptions.h: New file.
611         * common/common-exceptions.c: Likewise.
612         * Makefile.in (SFILES): Add common/common-exceptions.c.
613         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
614         (COMMON_OBS): Add common-exceptions.o.
615         (common-exceptions.o): New rule.
616         * exceptions.h (common-exceptions.h): Include.
617         (gdb_setjmp.h): Do not include.
618         (return_reason): Moved to common-exceptions.h.
619         (enum return_reason): Likewise.
620         (RETURN_MASK): Likewise.
621         (typedef return_mask): Likewise.
622         (enum errors): Likewise.
623         (struct gdb_exception): Likewise.
624         (exceptions_state_mc_init): Likewise.
625         (exceptions_state_mc_action_iter): Likewise.
626         (exceptions_state_mc_action_iter_1): Likewise.
627         (TRY_CATCH): Likewise.
628         (throw_exception): Likewise.
629         (throw_verror): Likewise.
630         (throw_vquit): Likewise.
631         (throw_error): Likewise.
632         (throw_quit): Likewise.
633         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
634         (enum catcher_action): Likewise.
635         (struct catcher): Likewise.
636         (current_catcher): Likewise.
637         (catcher_list_size): Likewise.
638         (exceptions_state_mc_init): Likewise.
639         (catcher_pop): Likewise.
640         (exceptions_state_mc): Likewise.
641         (exceptions_state_mc_action_iter): Likewise.
642         (exceptions_state_mc_action_iter_1): Likewise.
643         (throw_exception): Likewise.
644         (exception_messages): Likewise.
645         (exception_messages_size): Likewise.
646         (throw_it): Likewise.
647         (throw_verror): Likewise.
648         (throw_vquit): Likewise.
649         (throw_error): Likewise.
650         (throw_quit): Likewise.
651         (prepare_to_throw_exception): New function.
652
653 2014-08-29  Gary Benson  <gbenson@redhat.com>
654
655         * common/gdb_setjmp.h: New file.
656         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
657         * configure.ac: Move sigsetjmp check...
658         * common/common.m4: ...here.
659         * configure: Regenerate.
660         * cp-support.c (SIGJMP_BUF): Delete.
661         (SIGSETJMP): Likewise.
662         (SIGLONGJMP): Likewise.
663         * exceptions.h (gdb_setjmp.h): Include.
664         (setjmp.h): Do not include.
665         (EXCEPTIONS_SIGJMP_BUF): Delete.
666         (EXCEPTIONS_SIGSETJMP): Likewise.
667         (EXCEPTIONS_SIGLONGJMP): Likewise.
668         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
669         from gdb_setjmp.h.
670         * exceptions.c: Likewise.
671
672 2014-08-29  Gary Benson  <gbenson@redhat.com>
673
674         * cleanups.h: Moved to...
675         * common/cleanups.h: New file.
676         * cleanups.c: Moved to...
677         * common/cleanups.c: New file.  Include common-defs.h and
678         cleanups.h.  Do not include defs.h.
679         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
680         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
681         (cleanups.o): New rule.
682
683 2014-08-29  Gary Benson  <gbenson@redhat.com>
684
685         * common/errors.h (internal_warning): New declaration.
686         (internal_vwarning): Likewise.
687         * common/errors.c (internal_warning): New function.
688         * utils.h (internal_warning): Don't declare.
689         (internal_vwarning): Likewise.
690         * utils.c (internal_warning): Removed.
691
692 2014-08-29  Gary Benson  <gbenson@redhat.com>
693
694         * main.c (captured_main): Use warning during startup.
695         Prefix startup warning messages with command name.
696
697 2014-08-29  Gary Benson  <gbenson@redhat.com>
698
699         * main.c (captured_main): Handle usage errors with error.
700
701 2014-08-29  Gary Benson  <gbenson@redhat.com>
702
703         * go32-nat.c (go32_create_inferior): Replace a fprintf/
704         exit pair with a call to error.  Wrap the message with _().
705
706 2014-08-29  Gary Benson  <gbenson@redhat.com>
707
708         * main.c (captured_main): Replace a fprintf/exit
709         pair with a call to error.  Wrap the message with _().
710
711 2014-08-29  Gary Benson  <gbenson@redhat.com>
712
713         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
714         pairs with calls to error.  Wrap the message with _().
715
716 2014-08-29  Gary Benson  <gbenson@redhat.com>
717
718         * utils.c (vwarning): Protect calls to target_terminal_ours
719         and wrap_here.
720
721 2014-08-29  Gary Benson  <gbenson@redhat.com>
722
723         * exceptions.c (print_flush): Protect calls to
724         target_terminal_ours and wrap_here.
725
726 2014-08-29  Gary Benson  <gbenson@redhat.com>
727
728         * utils.h (filtered_printing_initialized): New declaration.
729         * utils.c (abort_with_message): New function.
730         (internal_vproblem): Use abort_with_message for first level
731         recursive internal problems, and if gdb_stderr is not set up.
732         Protect calls to target_terminal_ours, begin_line and query.
733
734 2014-08-28  Doug Evans  <dje@google.com>
735
736         * symtab.c (in_prologue): Move definition to better spot.
737         (skip_prologue_using_sal): Ditto.
738
739 2014-08-28  Doug Evans  <dje@google.com>
740
741         * symtab.c (find_function_start_sal): Move definition to better spot.
742
743 2014-08-28  Yao Qi  <yao@codesourcery.com>
744
745         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
746         found_stack_adjust in forward scan.  Remove condition check
747         on found_stack_adjust which is always true.  Indent the code.
748
749 2014-08-28  Yao Qi  <yao@codesourcery.com>
750
751         * dwarf2read.c (dwarf_decode_lines): Update declaration.
752         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
753         (dwarf_decode_lines): Remove argument
754         want_line_info.  Remove condition check on want_line_info.
755         Callers update.
756
757 2014-08-27  Doug Evans  <dje@google.com>
758
759         * dwarf2read.c (dwarf_record_line): Fix typo.
760
761 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
762
763         * target.h (struct target_ops::to_terminal_save_ours): Remove
764         declaration.
765         (target_terminal_save_ours): Remove macro.
766         * target-delegates.c: Regenerate.
767         * inf-child.c (inf_child_target): Don't set the nonexistent
768         field to_terminal_save_ours.
769         * inferior.h (child_terminal_save_ours): Remove declaration.
770         * terminal.h (gdb_save_tty_state): New declaration.
771         * inflow.c (child_terminal_save_ours): Rename to ...
772         (gdb_save_tty_state): ... this.
773         * tui/tui.c: Include terminal.h.
774         (tui_enable): Use gdb_save_tty_state instead of
775         target_terminal_save_ours.
776         (tui_disable): Likewise.
777
778 2014-08-25  Doug Evans  <dje@google.com>
779
780         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
781         Pass NULL instead of 0 for context pointer.
782
783 2014-08-25  Yao Qi  <yao@codesourcery.com>
784
785         * dwarf2read.c: Fix grammatical error.
786
787 2014-08-24  Yao Qi  <yao@codesourcery.com>
788
789         * dwarf2read.c (scan_partial_symbols):  Update comments.
790         Rename argument 'need_pc' with 'set_addrmap'.
791         (add_partial_namespace): Rename argument 'need_pc' with
792         'set_addrmap'.
793         (add_partial_module): Likewise.
794         (add_partial_subprogram): Likewise.  Update comments.
795         (dwarf2_name): Fix typo.
796
797 2014-08-22  Doug Evans  <dje@google.com>
798
799         PR 17276
800         * dwarf2read.c (dwarf_record_line_p): New function.
801         (dwarf_decode_lines_1): Ignore subsequent line number entries
802         for the same line if any entry had a non-zero discriminator.
803
804 2014-08-22  Doug Evans  <dje@google.com>
805
806         * buildsym.h (record_line_ftype): New typedef.
807         (record_line): Use it.
808         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
809         (dwarf_decode_lines_1): Call them.
810
811 2014-08-22  Yao Qi  <yao@codesourcery.com>
812
813         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
814         (ctf_end): Remove code.
815
816 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
817
818         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
819         (linux_make_corefile_notes): call update_thread_list, protected against
820         exceptions.
821
822 2014-08-21  Pedro Alves  <palves@redhat.com>
823
824         * infcmd.c (attach_command): Remove comment.
825
826 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
827
828         * aarch64-linux-nat.c (dr_changed_t): Change the type from
829         unsigned LONGEST to ULONGEST.
830
831 2014-08-20  Pedro Alves  <palves@redhat.com>
832
833         * Makefile.in (check-read1): New rule.
834
835 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
836
837         * value.c (value_from_contents_and_address): Strip resolved_type's
838         typedef layers before checking its TYPE_DATA_LOCATION.
839
840 2014-08-20  Pedro Alves  <palves@redhat.com>
841
842         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
843
844 2014-08-20  Yao Qi  <yao@codesourcery.com>
845
846         * amd64-tdep.c (amd64_classify): Add a blank line after the
847         example.  Move "*/" to a new line.
848         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
849         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
850         * dwarf2read.c (psymtab_include_file_name): Likewise.
851
852 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
853             Pedro Alves  <palves@redhat.com>
854
855         PR symtab/14604
856         PR symtab/14605
857         * ada-lang.c (coerce_unspec_val_to_type): Use
858         value_contents_copy_raw.
859         * ada-valprint.c (val_print_packed_array_elements): Adjust.
860         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
861         * cp-valprint.c (cp_print_value_fields): Let the common printing
862         code handle optimized out values.
863         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
864         * d-valprint.c (dynamic_array_type): Use
865         value_bits_any_optimized_out.
866         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
867         check_any_valid fields.
868         (check_pieced_value_bits): Delete and inline ...
869         (check_pieced_synthetic_pointer): ... here.
870         (check_pieced_value_validity): Delete.
871         (check_pieced_value_invalid): Delete.
872         (pieced_value_funcs): Remove check_validity and check_any_valid
873         fields.
874         (read_pieced_value): Use mark_value_bits_optimized_out.
875         (write_pieced_value): Switch to use
876         mark_value_bytes_optimized_out.
877         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
878         of assuming the whole value is optimized out.
879         * findvar.c (read_frame_register_value): Remove special handling
880         of optimized out registers.
881         (value_from_register): Use mark_value_bytes_optimized_out.
882         * frame-unwind.c (frame_unwind_got_optimized): Use
883         mark_value_bytes_optimized_out.
884         * jv-valprint.c (java_value_print): Adjust.
885         (java_print_value_fields): Let the common printing code handle
886         optimized out values.
887         * mips-tdep.c (mips_print_register): Remove special handling of
888         optimized out registers.
889         * opencl-lang.c (lval_func_check_validity): Delete.
890         (lval_func_check_any_valid): Delete.
891         (opencl_value_funcs): Remove check_validity and check_any_valid
892         fields.
893         * p-valprint.c (pascal_object_print_value_fields): Let the common
894         printing code handle optimized out values.
895         * stack.c (read_frame_arg): Remove special handling of optimized
896         out values.  Fetch both VAL and ENTRYVAL before comparing
897         contents.  Adjust to value_available_contents_eq rename.
898         * valprint.c (valprint_check_validity)
899         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
900         (val_print_array_elements): Adjust.
901         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
902         (value_bits_any_optimized_out): New function.
903         (value_entirely_covered_by_range_vector): New function, factored
904         out from value_entirely_unavailable.
905         (value_entirely_unavailable): Reimplement.
906         (value_entirely_optimized_out): New function.
907         (insert_into_bit_range_vector): New function, factored out from
908         mark_value_bits_unavailable.
909         (mark_value_bits_unavailable): Reimplement.
910         (struct ranges_and_idx): New struct.
911         (find_first_range_overlap_and_match): New function, factored out
912         from value_available_contents_bits_eq.
913         (value_available_contents_bits_eq): Rename to ...
914         (value_contents_bits_eq): ... this.  Check both unavailable
915         contents and optimized out contents.
916         (value_available_contents_eq): Rename to ...
917         (value_contents_eq): ... this.
918         (allocate_value_lazy): Remove reference to the old optimized_out
919         boolean.
920         (allocate_optimized_out_value): Use
921         mark_value_bytes_optimized_out.
922         (require_not_optimized_out): Adjust to check whether the
923         optimized_out vec is empty.
924         (ranges_copy_adjusted): New function, factored out from
925         value_contents_copy_raw.
926         (value_contents_copy_raw): Also copy the optimized out ranges.
927         Assert the destination ranges aren't optimized out.
928         (value_contents_copy): Update comment, remove call to
929         require_not_optimized_out.
930         (value_contents_equal): Adjust to check whether the optimized_out
931         vec is empty.
932         (set_value_optimized_out, value_optimized_out_const): Delete.
933         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
934         New functions.
935         (value_entirely_optimized_out, value_bits_valid): Delete.
936         (value_copy): Take a VEC copy of the 'optimized_out' field.
937         (value_primitive_field): Remove special handling of optimized out.
938         (value_fetch_lazy): Assert that lazy values have no unavailable
939         regions.  Use value_bits_any_optimized_out.  Remove some special
940         handling for optimized out values.
941         * value.h: Add intro comment about <optimized out> and
942         <unavailable>.
943         (struct lval_funcs): Remove check_validity and check_any_valid
944         fields.
945         (set_value_optimized_out, value_optimized_out_const): Remove.
946         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
947         New declarations.
948         (value_bits_any_optimized_out): New declaration.
949         (value_bits_valid): Delete declaration.
950         (value_available_contents_eq): Rename to ...
951         (value_contents_eq): ... this, and extend comments.
952
953 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
954
955         Fix -fsanitize=address on unreadable inferior strings.
956         * valprint.c (val_print_string): Fix access before BUFFER.
957
958 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
959
960         * target.c (target_struct_size): Remove.
961         (target_struct_allocsize): Remove.
962         (DEFAULT_ALLOCSIZE): Remove.
963         (target_ops_p): New typedef.
964         (DEF_VEC_P (target_ops_p)): New vector type.
965         (target_structs): Change type to VEC (target_ops_p).
966         (add_target_with_completer): Replace "push" code by VEC_safe_push.
967         (find_default_run_target): Rewrite for loop following changes to
968         target_structs.
969
970 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
971
972         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
973         Adjust code accordingly.  Adjust function description comment.
974
975 2014-08-19  Yao Qi  <yao@codesourcery.com>
976
977         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
978         types.
979
980 2014-08-19  Alan Modra  <amodra@gmail.com>
981
982         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
983         * config.in: Regenerate.
984         * configure: Regenerate.
985
986 2014-08-19  Tom Tromey  <tromey@redhat.com>
987             Gary Benson  <gbenson@redhat.com>
988
989         * common/common-debug.h: New file.
990         * common/common-debug.c: Likewise.
991         * debug.c: Likewise.
992         * Makefile.in (SFILES): Add common/common-debug.c.
993         (HFILES_NO_SRCDIR): Add common/common-debug.h.
994         (COMMON_OBS): Add common-debug.o and debug.o.
995         (common-debug.o): New rule.
996         * common/common-defs.h: Include common-debug.h.
997         * common/agent.c (debug_agent_printf): New function.
998         (DEBUG_AGENT): Redefine.
999         * nat/i386-dregs.c (debug_printf): Undefine.
1000
1001 2014-08-19  Gary Benson  <gbenson@redhat.com>
1002
1003         * common/common-defs.h: Include print-utils.h.
1004         * utils.h: Do not include print-utils.h.
1005
1006 2014-08-19  Tom Tromey  <tromey@redhat.com>
1007             Gary Benson  <gbenson@redhat.com>
1008
1009         * common/common-types.h: New file.
1010         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1011         * common/common-defs.h: Include common-types.h.
1012         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1013         (ULONGEST): Remove.
1014
1015 2014-08-19  Tom Tromey  <tromey@redhat.com>
1016             Gary Benson  <gbenson@redhat.com>
1017
1018         * common/errors.h: New file.
1019         * common/errors.c: Likewise.
1020         * Makefile.in (SFILES): Add common/errors.c.
1021         (HFILES_NO_SRCDIR): Add common/errors.h.
1022         (COMMON_OBS): Add errors.o.
1023         (errors.o): New rule.
1024         * common/common-defs.h: Include errors.h.
1025         * utils.h (perror_with_name, error, verror, warning, vwarning):
1026         Don't declare.
1027         * common/common-utils.h: (malloc_failure, internal_error):
1028         Likewise.
1029
1030 2014-08-19  Gary Benson  <gbenson@redhat.com>
1031
1032         * utils.c (internal_vproblem): Always print the message.
1033
1034 2014-08-18  Doug Evans  <dje@google.com>
1035
1036         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1037
1038 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1039
1040         * ada-typeprint.c (type_is_full_subrange_of_target_type):
1041         Return 0 if TYPE is dynamic.
1042         (print_range): Add handling of dynamic ranges.
1043
1044 2014-08-18  Keven Boell  <keven.boell@intel.com>
1045             Joel Brobecker  <brobecker@adacore.com>
1046
1047         * gdbtypes.h (struct main_type): Add field "data_location".
1048         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1049         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1050         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1051         a dynamic data location.
1052         (resolve_dynamic_type): Add DW_AT_data_location handling.
1053         (copy_recursive, copy_type): Copy the data_location information
1054         when present.
1055         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1056         * value.c (value_from_contents_and_address): Add
1057         DW_AT_data_location handling.
1058
1059 2014-08-18  Keven Boell  <keven.boell@intel.com>
1060             Joel Brobecker  <brobecker@adacore.com>
1061
1062         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1063         field "get_object_address".
1064         * dwarf2expr.c (execute_stack_op): Add handling for
1065         DW_OP_push_object_address.
1066         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1067         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1068         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1069         (dwarf_expr_get_obj_addr): New function.
1070         (dwarf_expr_ctx_funcs): Add get_object_address field.
1071         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1072         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
1073         (dwarf2_evaluate_property): Add parameter "address".  Use it.
1074         (needs_get_obj_addr): New function.
1075         (needs_frame_ctx_funcs): Add get_object_address field.
1076         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1077         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
1078         (resolve_dynamic_array): Likewise.
1079
1080 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1081
1082         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1083         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1084         fixed value for records and unions for which some GNAT encodings
1085         are present.
1086
1087 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1088
1089         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1090         rewrite to avoid "else if" and "else" constructs.  Should be
1091         a no-op in practice.
1092
1093 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1094
1095         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1096         of lexical block.
1097
1098 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
1099
1100         PR c++/17132
1101         * eval.c: Update all calls to find_overload_match.
1102         * valarith.c: Likewise.
1103         (value_user_defined_cpp_op, value_user_defined_op): New
1104         argument NOSIDE.  Update all callers.
1105         * valops.c (find_overload_match): New argument NOSIDE.
1106         * value.h (find_overload_match): Update signature.
1107
1108 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
1109
1110         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1111         'items' methods instead of 'iteritems' method on dictionaries.
1112
1113 2014-08-15  Doug Evans  <dje@google.com>
1114
1115         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1116         closer to use.
1117
1118 2014-08-15  Doug Evans  <dje@google.com>
1119
1120         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1121
1122 2014-08-15  Doug Evans  <dje@google.com>
1123
1124         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1125
1126 2014-08-15  Doug Evans  <dje@google.com>
1127
1128         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1129         unused.
1130
1131 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
1132
1133         * dcache.h: Include target.h, to avoid compile time warnings.
1134
1135 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
1136
1137         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
1138         frame_info" partial declaration.
1139         * gdbarch.h: Regenerate.
1140
1141 2014-08-15  Yao Qi  <yao@codesourcery.com>
1142
1143         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1144         Add parameter 'decode_for_pst_p'.  Callers update.
1145
1146 2014-08-13  Yao Qi  <yao@codesourcery.com>
1147
1148         PR build/17104
1149         * configure.ac: Use local variable 'pos'.
1150         * configure: Regenerated.
1151
1152 2014-08-11  Doug Evans  <dje@google.com>
1153
1154         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1155         message, it is redundant with "Reading symbols from ..." message.
1156
1157 2014-08-10  Doug Evans  <xdje42@gmail.com>
1158
1159         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1160
1161 2014-08-09  Yao Qi  <yao@codesourcery.com>
1162
1163         PR remote/9053
1164         * remote.c (remote_xfer_partial): Remove dead code.
1165
1166 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1167
1168         * ia64-linux-tdep.c: Include "regset.h".
1169         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1170         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1171         (ia64_linux_supply_fpregset): New function.
1172         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1173         (ia64_linux_regset_from_core_section): New function.
1174         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1175         method.
1176
1177 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1178
1179         * m68klinux-tdep.c: Include "regset.h".
1180         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1181         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1182         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1183         (m68k_linux_regset_from_core_section): New function.
1184         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1185         method.
1186
1187 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1188
1189         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1190         function.  Move logic to...
1191         (tilegx_linux_regmap): ... this new register map.
1192         (tilegx_linux_regset): Refer to register map, replace supply
1193         method by regcache_supply_regset, and add collect method.
1194         * tilegx-tdep.h (enum tilegx_regnum): New enum value
1195         TILEGX_FIRST_EASY_REGNUM.
1196
1197 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1198
1199         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1200         that calls regcache_supply_regset and handles the EPC register
1201         separately.  Move main logic to...
1202         (score7_linux_gregmap): ... this new register map.
1203         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1204         (score7_linux_gregset): Refer to register map.  Add collect method.
1205         (score7_linux_regset_from_core_section): Replace
1206         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1207         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1208         (struct regset): Delete unused forward declaraction.
1209         (struct pt_regs): Delete structure definition.
1210         (elf_gregset_t): Delete typedef.
1211
1212 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1213
1214         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1215         (nios2_core_regset): Add collect method.
1216
1217 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1218
1219         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1220         platform-independent and don't write to read-only input buffer.
1221         (m32r_linux_collect_gregset): New function.
1222         (m32r_linux_gregset): Add collect method.
1223
1224 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1225
1226         * hppa-linux-tdep.c (greg_map): Rename to...
1227         (hppa_linux_gregmap): ... this.  Also convert to
1228         regcache_map_entry format.
1229         (hppa_linux_supply_regset): Delete function.
1230         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
1231         (hppa_linux_fpregmap): ... this new register map.
1232         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1233         register map, replace supply method by regcache_supply_regset, and
1234         add collect method regcache_collect_regset.
1235
1236 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1237
1238         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1239         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1240         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1241         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1242         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1243         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1244         (frv_linux_supply_gregset): Replace main logic by call to
1245         regcache_supply_regset, but keep clearing gr32-gr63.
1246         (frv_linux_supply_fpregset): Delete function.
1247         (frv_linux_gregset): Refer to appropriate register map and add
1248         regcache_collect_regset as the collect method.
1249         (frv_linux_fpregset): Likewise.  Also exchange the supply method
1250         by regcache_supply_regset.
1251
1252 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1253
1254         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1255         by call to alpha_supply_int_regs.
1256         (alpha_linux_collect_gregset): New function.
1257         (alpha_linux_supply_fpregset): Replace logic by call to
1258         alpha_supply_fp_regs.
1259         (alpha_linux_collect_fpregset): New function.
1260         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1261
1262 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1263
1264         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1265         by call to regcache_collect_regset.
1266         (supply_gregset, supply_fpregset): Call regcache_supply_regset
1267         instead of aarch64_linux_supply_gregset/_fpregset.
1268         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1269         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1270         header file instead.
1271         (aarch64_linux_supply_gregset, supply_gregset_from_core)
1272         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1273         functions.  Move logic to ...
1274         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1275         register maps.
1276         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1277         refer to new register maps, replace *_regset_from_core by
1278         regcache_supply_regset, and also use regcache_collect_regset.
1279         * aarch64-linux-tdep.h: Include "regset.h".
1280         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1281         Delete prototypes.
1282         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1283         macros, moved from C source file.
1284         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1285         variable declarations.
1286
1287 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1288
1289         * s390-linux-nat.c: Include "regset.h".
1290         (regmap_gregset): Delete macro.
1291         (s390_64_regmap_gregset): New register map for
1292         regcache_supply/_collect_regset.
1293         (s390_64_gregset): New regset.
1294         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1295         (regmap_fpregset): Delete macro.
1296         (s390_native_supply, s390_native_collect): Delete functions.
1297         (supply_gregset, fill_gregset): Replace s390-specific regmap
1298         handling by a call to regcache_supply/_collect_regset.
1299         (supply_fpregset, fill_fpregset): Call regcache_supply/
1300         _collect_regset instead of s390_native_supply/_collect.
1301         (fetch_regset, store_regset): Likewise.  Also change the last
1302         parameter to a regset instead of a regmap.
1303         (s390_linux_fetch_inferior_registers)
1304         (390_linux_store_inferior_registers): Adjust last parameter in
1305         calls to fetch_regset and store_regset.
1306         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1307         (s390_gregmap): ... this.  Also make static const and convert to
1308         regcache_map_entry format.
1309         (s390x_regmap_gregset): Delete.
1310         (s390_regmap_fpregset): Rename to...
1311         (s390_fpregmap): ... this.  Make static const and convert to
1312         regcache_map_entry format.
1313         (s390_regmap_upper, s390_regmap_last_break)
1314         (s390x_regmap_last_break, s390_regmap_system_call)
1315         (s390_regmap_tdb): Likewise.
1316         (s390_supply_regset, s390_collect_regset): Remove functions.
1317         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1318         s390_supply_regset.
1319         (s390_gregset, s390_fpregset, s390_upper_regset)
1320         (s390_last_break_regset, s390x_last_break_regset)
1321         (s390_system_call_regset, s390_tdb_regset): Make global and
1322         replace s390_supply/_collect_regset by regcache_supply/
1323         _collect_regset.
1324         (s390x_gregset): Delete.
1325         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1326         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1327         (s390_regmap_fpregset, s390_regmap_last_break)
1328         (s390x_regmap_last_break, s390_regmap_system_call)
1329         (s390_regmap_tdb): Delete global variable declarations.
1330         (s390_gregset, s390_fpregset, s390_last_break_regset)
1331         (s390x_last_break_regset, s390_system_call_regset)
1332         (s390_tdb_regset): New global variable declarations.
1333
1334 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1335
1336         * regcache.c: Include "regset.h".
1337         (regcache_transfer_regset): New local function.
1338         (regcache_supply_regset, regcache_collect_regset): New functions.
1339         * regcache.h (struct regcache_map_entry): New structure.
1340         (REGCACHE_MAP_SKIP): New enum value.
1341         (regcache_supply_regset, regcache_collect_regset): New prototypes.
1342
1343 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1344
1345         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1346         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1347         (ppc_linux_collect_gregset ): Likewise.
1348         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1349         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1350         (ppc_collect_vrregset): Likewise.
1351         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1352         Likewise.
1353
1354 2014-08-07  Yao Qi  <yao@codesourcery.com>
1355
1356         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1357         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1358         * remote.c (remote_read_bytes): Likewise.
1359
1360 2014-08-07  Yao Qi  <yao@codesourcery.com>
1361
1362         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1363
1364 2014-08-07  Yao Qi  <yao@codesourcery.com>
1365
1366         PR remote/17230
1367         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1368         TARGET_XFER_OK instead of 0.
1369
1370 2014-08-07  Gary Benson  <gbenson@redhat.com>
1371
1372         * common/common-defs.h: Include errno.h.
1373         * defs.h: Do not include errno.h.
1374         * ada-typeprint.c: Likewise.
1375         * c-typeprint.c: Likewise.
1376         * core-regset.c: Likewise.
1377         * corefile.c: Likewise.
1378         * corelow.c: Likewise.
1379         * event-loop.c: Likewise.
1380         * f-typeprint.c: Likewise.
1381         * gnu-nat.c: Likewise.
1382         * go32-nat.c: Likewise.
1383         * i386gnu-nat.c: Likewise.
1384         * m2-typeprint.c: Likewise.
1385         * nat/linux-btrace.c: Likewise.
1386         * p-typeprint.c: Likewise.
1387         * procfs.c: Likewise.
1388         * remote-sim.c: Likewise.
1389         * rs6000-nat.c: Likewise.
1390         * target.c: Likewise.
1391         * typeprint.c: Likewise.
1392         * ui-file.c: Likewise.
1393         * valops.c: Likewise.
1394         * valprint.c: Likewise.
1395
1396 2014-08-07  Gary Benson  <gbenson@redhat.com>
1397
1398         * common/common-defs.h: Include string.h.
1399         * aarch64-tdep.c: Do not include string.h.
1400         * ada-exp.y: Likewise.
1401         * ada-lang.c: Likewise.
1402         * ada-lex.l: Likewise.
1403         * ada-typeprint.c: Likewise.
1404         * ada-valprint.c: Likewise.
1405         * aix-thread.c: Likewise.
1406         * alpha-linux-tdep.c: Likewise.
1407         * alpha-mdebug-tdep.c: Likewise.
1408         * alpha-nat.c: Likewise.
1409         * alpha-osf1-tdep.c: Likewise.
1410         * alpha-tdep.c: Likewise.
1411         * alphanbsd-tdep.c: Likewise.
1412         * amd64-dicos-tdep.c: Likewise.
1413         * amd64-linux-tdep.c: Likewise.
1414         * amd64-nat.c: Likewise.
1415         * amd64-sol2-tdep.c: Likewise.
1416         * amd64fbsd-tdep.c: Likewise.
1417         * amd64obsd-tdep.c: Likewise.
1418         * arch-utils.c: Likewise.
1419         * arm-linux-nat.c: Likewise.
1420         * arm-linux-tdep.c: Likewise.
1421         * arm-tdep.c: Likewise.
1422         * arm-wince-tdep.c: Likewise.
1423         * armbsd-tdep.c: Likewise.
1424         * armnbsd-nat.c: Likewise.
1425         * armnbsd-tdep.c: Likewise.
1426         * armobsd-tdep.c: Likewise.
1427         * avr-tdep.c: Likewise.
1428         * ax-gdb.c: Likewise.
1429         * ax-general.c: Likewise.
1430         * bcache.c: Likewise.
1431         * bfin-tdep.c: Likewise.
1432         * breakpoint.c: Likewise.
1433         * build-id.c: Likewise.
1434         * buildsym.c: Likewise.
1435         * c-exp.y: Likewise.
1436         * c-lang.c: Likewise.
1437         * c-typeprint.c: Likewise.
1438         * c-valprint.c: Likewise.
1439         * charset.c: Likewise.
1440         * cli-out.c: Likewise.
1441         * cli/cli-cmds.c: Likewise.
1442         * cli/cli-decode.c: Likewise.
1443         * cli/cli-dump.c: Likewise.
1444         * cli/cli-interp.c: Likewise.
1445         * cli/cli-logging.c: Likewise.
1446         * cli/cli-script.c: Likewise.
1447         * cli/cli-setshow.c: Likewise.
1448         * cli/cli-utils.c: Likewise.
1449         * coffread.c: Likewise.
1450         * common/agent.c: Likewise.
1451         * common/buffer.c: Likewise.
1452         * common/buffer.h: Likewise.
1453         * common/common-utils.c: Likewise.
1454         * common/filestuff.c: Likewise.
1455         * common/filestuff.c: Likewise.
1456         * common/format.c: Likewise.
1457         * common/print-utils.c: Likewise.
1458         * common/rsp-low.c: Likewise.
1459         * common/signals.c: Likewise.
1460         * common/vec.h: Likewise.
1461         * common/xml-utils.c: Likewise.
1462         * core-regset.c: Likewise.
1463         * corefile.c: Likewise.
1464         * corelow.c: Likewise.
1465         * cp-abi.c: Likewise.
1466         * cp-name-parser.y: Likewise.
1467         * cp-support.c: Likewise.
1468         * cp-valprint.c: Likewise.
1469         * cris-tdep.c: Likewise.
1470         * d-exp.y: Likewise.
1471         * darwin-nat.c: Likewise.
1472         * dbxread.c: Likewise.
1473         * dcache.c: Likewise.
1474         * demangle.c: Likewise.
1475         * dicos-tdep.c: Likewise.
1476         * disasm.c: Likewise.
1477         * doublest.c: Likewise.
1478         * dsrec.c: Likewise.
1479         * dummy-frame.c: Likewise.
1480         * dwarf2-frame.c: Likewise.
1481         * dwarf2loc.c: Likewise.
1482         * dwarf2read.c: Likewise.
1483         * elfread.c: Likewise.
1484         * environ.c: Likewise.
1485         * eval.c: Likewise.
1486         * event-loop.c: Likewise.
1487         * exceptions.c: Likewise.
1488         * exec.c: Likewise.
1489         * expprint.c: Likewise.
1490         * f-exp.y: Likewise.
1491         * f-lang.c: Likewise.
1492         * f-typeprint.c: Likewise.
1493         * f-valprint.c: Likewise.
1494         * fbsd-nat.c: Likewise.
1495         * findcmd.c: Likewise.
1496         * findvar.c: Likewise.
1497         * fork-child.c: Likewise.
1498         * frame.c: Likewise.
1499         * frv-linux-tdep.c: Likewise.
1500         * frv-tdep.c: Likewise.
1501         * gdb.c: Likewise.
1502         * gdb_bfd.c: Likewise.
1503         * gdbarch.c: Likewise.
1504         * gdbarch.sh: Likewise.
1505         * gdbtypes.c: Likewise.
1506         * gnu-nat.c: Likewise.
1507         * gnu-v2-abi.c: Likewise.
1508         * gnu-v3-abi.c: Likewise.
1509         * go-exp.y: Likewise.
1510         * go-lang.c: Likewise.
1511         * go32-nat.c: Likewise.
1512         * guile/guile.c: Likewise.
1513         * guile/scm-auto-load.c: Likewise.
1514         * hppa-hpux-tdep.c: Likewise.
1515         * hppa-linux-nat.c: Likewise.
1516         * hppanbsd-tdep.c: Likewise.
1517         * hppaobsd-tdep.c: Likewise.
1518         * i386-cygwin-tdep.c: Likewise.
1519         * i386-dicos-tdep.c: Likewise.
1520         * i386-linux-tdep.c: Likewise.
1521         * i386-nto-tdep.c: Likewise.
1522         * i386-sol2-tdep.c: Likewise.
1523         * i386-tdep.c: Likewise.
1524         * i386bsd-tdep.c: Likewise.
1525         * i386gnu-nat.c: Likewise.
1526         * i386nbsd-tdep.c: Likewise.
1527         * i386obsd-tdep.c: Likewise.
1528         * i387-tdep.c: Likewise.
1529         * ia64-libunwind-tdep.c: Likewise.
1530         * ia64-linux-nat.c: Likewise.
1531         * inf-child.c: Likewise.
1532         * inf-ptrace.c: Likewise.
1533         * inf-ttrace.c: Likewise.
1534         * infcall.c: Likewise.
1535         * infcmd.c: Likewise.
1536         * inflow.c: Likewise.
1537         * infrun.c: Likewise.
1538         * interps.c: Likewise.
1539         * iq2000-tdep.c: Likewise.
1540         * irix5-nat.c: Likewise.
1541         * jv-exp.y: Likewise.
1542         * jv-lang.c: Likewise.
1543         * jv-typeprint.c: Likewise.
1544         * jv-valprint.c: Likewise.
1545         * language.c: Likewise.
1546         * linux-fork.c: Likewise.
1547         * linux-nat.c: Likewise.
1548         * lm32-tdep.c: Likewise.
1549         * m2-exp.y: Likewise.
1550         * m2-typeprint.c: Likewise.
1551         * m32c-tdep.c: Likewise.
1552         * m32r-linux-nat.c: Likewise.
1553         * m32r-linux-tdep.c: Likewise.
1554         * m32r-rom.c: Likewise.
1555         * m32r-tdep.c: Likewise.
1556         * m68hc11-tdep.c: Likewise.
1557         * m68k-tdep.c: Likewise.
1558         * m68kbsd-tdep.c: Likewise.
1559         * m68klinux-nat.c: Likewise.
1560         * m68klinux-tdep.c: Likewise.
1561         * m88k-tdep.c: Likewise.
1562         * machoread.c: Likewise.
1563         * macrocmd.c: Likewise.
1564         * main.c: Likewise.
1565         * mdebugread.c: Likewise.
1566         * mem-break.c: Likewise.
1567         * memattr.c: Likewise.
1568         * memory-map.c: Likewise.
1569         * mep-tdep.c: Likewise.
1570         * mi/mi-cmd-break.c: Likewise.
1571         * mi/mi-cmd-disas.c: Likewise.
1572         * mi/mi-cmd-env.c: Likewise.
1573         * mi/mi-cmd-stack.c: Likewise.
1574         * mi/mi-cmd-var.c: Likewise.
1575         * mi/mi-cmds.c: Likewise.
1576         * mi/mi-console.c: Likewise.
1577         * mi/mi-getopt.c: Likewise.
1578         * mi/mi-interp.c: Likewise.
1579         * mi/mi-main.c: Likewise.
1580         * mi/mi-parse.c: Likewise.
1581         * microblaze-rom.c: Likewise.
1582         * microblaze-tdep.c: Likewise.
1583         * mingw-hdep.c: Likewise.
1584         * minidebug.c: Likewise.
1585         * minsyms.c: Likewise.
1586         * mips-irix-tdep.c: Likewise.
1587         * mips-linux-tdep.c: Likewise.
1588         * mips-tdep.c: Likewise.
1589         * mips64obsd-tdep.c: Likewise.
1590         * mipsnbsd-tdep.c: Likewise.
1591         * mipsread.c: Likewise.
1592         * mn10300-linux-tdep.c: Likewise.
1593         * mn10300-tdep.c: Likewise.
1594         * monitor.c: Likewise.
1595         * moxie-tdep.c: Likewise.
1596         * mt-tdep.c: Likewise.
1597         * nat/linux-btrace.c: Likewise.
1598         * nat/linux-osdata.c: Likewise.
1599         * nat/linux-procfs.c: Likewise.
1600         * nat/linux-ptrace.c: Likewise.
1601         * nat/linux-waitpid.c: Likewise.
1602         * nbsd-tdep.c: Likewise.
1603         * nios2-linux-tdep.c: Likewise.
1604         * nto-procfs.c: Likewise.
1605         * nto-tdep.c: Likewise.
1606         * objc-lang.c: Likewise.
1607         * objfiles.c: Likewise.
1608         * opencl-lang.c: Likewise.
1609         * osabi.c: Likewise.
1610         * osdata.c: Likewise.
1611         * p-exp.y: Likewise.
1612         * p-lang.c: Likewise.
1613         * p-typeprint.c: Likewise.
1614         * parse.c: Likewise.
1615         * posix-hdep.c: Likewise.
1616         * ppc-linux-nat.c: Likewise.
1617         * ppc-sysv-tdep.c: Likewise.
1618         * ppcfbsd-tdep.c: Likewise.
1619         * ppcnbsd-tdep.c: Likewise.
1620         * ppcobsd-tdep.c: Likewise.
1621         * printcmd.c: Likewise.
1622         * procfs.c: Likewise.
1623         * prologue-value.c: Likewise.
1624         * python/py-auto-load.c: Likewise.
1625         * python/py-gdb-readline.c: Likewise.
1626         * ravenscar-thread.c: Likewise.
1627         * regcache.c: Likewise.
1628         * registry.c: Likewise.
1629         * remote-fileio.c: Likewise.
1630         * remote-m32r-sdi.c: Likewise.
1631         * remote-mips.c: Likewise.
1632         * remote-notif.c: Likewise.
1633         * remote-sim.c: Likewise.
1634         * remote.c: Likewise.
1635         * reverse.c: Likewise.
1636         * rs6000-aix-tdep.c: Likewise.
1637         * ser-base.c: Likewise.
1638         * ser-go32.c: Likewise.
1639         * ser-mingw.c: Likewise.
1640         * ser-pipe.c: Likewise.
1641         * ser-tcp.c: Likewise.
1642         * ser-unix.c: Likewise.
1643         * serial.c: Likewise.
1644         * sh-tdep.c: Likewise.
1645         * sh64-tdep.c: Likewise.
1646         * shnbsd-tdep.c: Likewise.
1647         * skip.c: Likewise.
1648         * sol-thread.c: Likewise.
1649         * solib-dsbt.c: Likewise.
1650         * solib-frv.c: Likewise.
1651         * solib-osf.c: Likewise.
1652         * solib-som.c: Likewise.
1653         * solib-spu.c: Likewise.
1654         * solib-target.c: Likewise.
1655         * solib.c: Likewise.
1656         * somread.c: Likewise.
1657         * source.c: Likewise.
1658         * sparc-nat.c: Likewise.
1659         * sparc-sol2-tdep.c: Likewise.
1660         * sparc-tdep.c: Likewise.
1661         * sparc64-tdep.c: Likewise.
1662         * sparc64fbsd-tdep.c: Likewise.
1663         * sparc64nbsd-tdep.c: Likewise.
1664         * sparcnbsd-tdep.c: Likewise.
1665         * spu-linux-nat.c: Likewise.
1666         * spu-multiarch.c: Likewise.
1667         * spu-tdep.c: Likewise.
1668         * stabsread.c: Likewise.
1669         * stack.c: Likewise.
1670         * std-regs.c: Likewise.
1671         * symfile.c: Likewise.
1672         * symmisc.c: Likewise.
1673         * symtab.c: Likewise.
1674         * target.c: Likewise.
1675         * thread.c: Likewise.
1676         * tilegx-linux-nat.c: Likewise.
1677         * tilegx-tdep.c: Likewise.
1678         * top.c: Likewise.
1679         * tracepoint.c: Likewise.
1680         * tui/tui-command.c: Likewise.
1681         * tui/tui-data.c: Likewise.
1682         * tui/tui-disasm.c: Likewise.
1683         * tui/tui-file.c: Likewise.
1684         * tui/tui-layout.c: Likewise.
1685         * tui/tui-out.c: Likewise.
1686         * tui/tui-regs.c: Likewise.
1687         * tui/tui-source.c: Likewise.
1688         * tui/tui-stack.c: Likewise.
1689         * tui/tui-win.c: Likewise.
1690         * tui/tui-windata.c: Likewise.
1691         * tui/tui-winsource.c: Likewise.
1692         * typeprint.c: Likewise.
1693         * ui-file.c: Likewise.
1694         * ui-out.c: Likewise.
1695         * user-regs.c: Likewise.
1696         * utils.c: Likewise.
1697         * v850-tdep.c: Likewise.
1698         * valarith.c: Likewise.
1699         * valops.c: Likewise.
1700         * valprint.c: Likewise.
1701         * value.c: Likewise.
1702         * varobj.c: Likewise.
1703         * vax-tdep.c: Likewise.
1704         * vaxnbsd-tdep.c: Likewise.
1705         * vaxobsd-tdep.c: Likewise.
1706         * windows-nat.c: Likewise.
1707         * xcoffread.c: Likewise.
1708         * xml-support.c: Likewise.
1709         * xstormy16-tdep.c: Likewise.
1710         * xtensa-linux-nat.c: Likewise.
1711
1712 2014-08-07  Gary Benson  <gbenson@redhat.com>
1713
1714         * common/common-defs.h: Include gdb_assert.h.
1715         * aarch64-tdep.c: Do not include gdb_assert.h.
1716         * addrmap.c: Likewise.
1717         * aix-thread.c: Likewise.
1718         * alpha-linux-tdep.c: Likewise.
1719         * alpha-mdebug-tdep.c: Likewise.
1720         * alphanbsd-tdep.c: Likewise.
1721         * amd64-nat.c: Likewise.
1722         * amd64-tdep.c: Likewise.
1723         * amd64bsd-nat.c: Likewise.
1724         * amd64fbsd-nat.c: Likewise.
1725         * amd64fbsd-tdep.c: Likewise.
1726         * amd64nbsd-nat.c: Likewise.
1727         * amd64nbsd-tdep.c: Likewise.
1728         * amd64obsd-nat.c: Likewise.
1729         * amd64obsd-tdep.c: Likewise.
1730         * arch-utils.c: Likewise.
1731         * arm-tdep.c: Likewise.
1732         * armbsd-tdep.c: Likewise.
1733         * auxv.c: Likewise.
1734         * bcache.c: Likewise.
1735         * bfin-tdep.c: Likewise.
1736         * blockframe.c: Likewise.
1737         * breakpoint.c: Likewise.
1738         * bsd-kvm.c: Likewise.
1739         * bsd-uthread.c: Likewise.
1740         * buildsym.c: Likewise.
1741         * c-exp.y: Likewise.
1742         * c-lang.c: Likewise.
1743         * charset.c: Likewise.
1744         * cleanups.c: Likewise.
1745         * cli-out.c: Likewise.
1746         * cli/cli-decode.c: Likewise.
1747         * cli/cli-dump.c: Likewise.
1748         * cli/cli-logging.c: Likewise.
1749         * cli/cli-script.c: Likewise.
1750         * cli/cli-utils.c: Likewise.
1751         * coffread.c: Likewise.
1752         * common/common-utils.c: Likewise.
1753         * common/queue.h: Likewise.
1754         * common/signals.c: Likewise.
1755         * common/vec.h: Likewise.
1756         * complaints.c: Likewise.
1757         * completer.c: Likewise.
1758         * corelow.c: Likewise.
1759         * cp-abi.c: Likewise.
1760         * cp-name-parser.y: Likewise.
1761         * cp-namespace.c: Likewise.
1762         * cp-support.c: Likewise.
1763         * cris-tdep.c: Likewise.
1764         * dbxread.c: Likewise.
1765         * dictionary.c: Likewise.
1766         * doublest.c: Likewise.
1767         * dsrec.c: Likewise.
1768         * dummy-frame.c: Likewise.
1769         * dwarf2-frame-tailcall.c: Likewise.
1770         * dwarf2-frame.c: Likewise.
1771         * dwarf2expr.c: Likewise.
1772         * dwarf2loc.c: Likewise.
1773         * dwarf2read.c: Likewise.
1774         * eval.c: Likewise.
1775         * event-loop.c: Likewise.
1776         * exceptions.c: Likewise.
1777         * expprint.c: Likewise.
1778         * f-valprint.c: Likewise.
1779         * fbsd-nat.c: Likewise.
1780         * findvar.c: Likewise.
1781         * frame-unwind.c: Likewise.
1782         * frame.c: Likewise.
1783         * frv-tdep.c: Likewise.
1784         * gcore.c: Likewise.
1785         * gdb-dlfcn.c: Likewise.
1786         * gdb_bfd.c: Likewise.
1787         * gdbarch.c: Likewise.
1788         * gdbarch.sh: Likewise.
1789         * gdbtypes.c: Likewise.
1790         * gnu-nat.c: Likewise.
1791         * gnu-v3-abi.c: Likewise.
1792         * go-lang.c: Likewise.
1793         * guile/scm-exception.c: Likewise.
1794         * guile/scm-gsmob.c: Likewise.
1795         * guile/scm-lazy-string.c: Likewise.
1796         * guile/scm-math.c: Likewise.
1797         * guile/scm-pretty-print.c: Likewise.
1798         * guile/scm-safe-call.c: Likewise.
1799         * guile/scm-utils.c: Likewise.
1800         * guile/scm-value.c: Likewise.
1801         * h8300-tdep.c: Likewise.
1802         * hppa-hpux-nat.c: Likewise.
1803         * hppa-tdep.c: Likewise.
1804         * hppanbsd-tdep.c: Likewise.
1805         * hppaobsd-tdep.c: Likewise.
1806         * i386-darwin-nat.c: Likewise.
1807         * i386-darwin-tdep.c: Likewise.
1808         * i386-nto-tdep.c: Likewise.
1809         * i386-tdep.c: Likewise.
1810         * i386bsd-nat.c: Likewise.
1811         * i386fbsd-tdep.c: Likewise.
1812         * i386gnu-nat.c: Likewise.
1813         * i386nbsd-tdep.c: Likewise.
1814         * i386obsd-tdep.c: Likewise.
1815         * i387-tdep.c: Likewise.
1816         * ia64-libunwind-tdep.c: Likewise.
1817         * ia64-tdep.c: Likewise.
1818         * inf-ptrace.c: Likewise.
1819         * inf-ttrace.c: Likewise.
1820         * infcall.c: Likewise.
1821         * infcmd.c: Likewise.
1822         * infrun.c: Likewise.
1823         * inline-frame.c: Likewise.
1824         * interps.c: Likewise.
1825         * jv-lang.c: Likewise.
1826         * jv-typeprint.c: Likewise.
1827         * linux-fork.c: Likewise.
1828         * linux-nat.c: Likewise.
1829         * linux-thread-db.c: Likewise.
1830         * m32c-tdep.c: Likewise.
1831         * m32r-linux-nat.c: Likewise.
1832         * m32r-tdep.c: Likewise.
1833         * m68k-tdep.c: Likewise.
1834         * m68kbsd-nat.c: Likewise.
1835         * m68kbsd-tdep.c: Likewise.
1836         * m88k-tdep.c: Likewise.
1837         * machoread.c: Likewise.
1838         * macroexp.c: Likewise.
1839         * macrotab.c: Likewise.
1840         * maint.c: Likewise.
1841         * mdebugread.c: Likewise.
1842         * memory-map.c: Likewise.
1843         * mep-tdep.c: Likewise.
1844         * mi/mi-common.c: Likewise.
1845         * microblaze-tdep.c: Likewise.
1846         * mingw-hdep.c: Likewise.
1847         * mips-linux-nat.c: Likewise.
1848         * mips-linux-tdep.c: Likewise.
1849         * mips-tdep.c: Likewise.
1850         * mips64obsd-tdep.c: Likewise.
1851         * mipsnbsd-tdep.c: Likewise.
1852         * mn10300-linux-tdep.c: Likewise.
1853         * mn10300-tdep.c: Likewise.
1854         * moxie-tdep.c: Likewise.
1855         * mt-tdep.c: Likewise.
1856         * nat/linux-btrace.c: Likewise.
1857         * nat/linux-osdata.c: Likewise.
1858         * nat/linux-ptrace.c: Likewise.
1859         * nat/mips-linux-watch.c: Likewise.
1860         * nios2-linux-tdep.c: Likewise.
1861         * nios2-tdep.c: Likewise.
1862         * objc-lang.c: Likewise.
1863         * objfiles.c: Likewise.
1864         * obsd-nat.c: Likewise.
1865         * opencl-lang.c: Likewise.
1866         * osabi.c: Likewise.
1867         * parse.c: Likewise.
1868         * ppc-linux-nat.c: Likewise.
1869         * ppc-sysv-tdep.c: Likewise.
1870         * ppcfbsd-nat.c: Likewise.
1871         * ppcfbsd-tdep.c: Likewise.
1872         * ppcnbsd-nat.c: Likewise.
1873         * ppcnbsd-tdep.c: Likewise.
1874         * ppcobsd-nat.c: Likewise.
1875         * ppcobsd-tdep.c: Likewise.
1876         * printcmd.c: Likewise.
1877         * procfs.c: Likewise.
1878         * prologue-value.c: Likewise.
1879         * psymtab.c: Likewise.
1880         * python/py-lazy-string.c: Likewise.
1881         * python/py-value.c: Likewise.
1882         * regcache.c: Likewise.
1883         * reggroups.c: Likewise.
1884         * registry.c: Likewise.
1885         * remote-sim.c: Likewise.
1886         * remote.c: Likewise.
1887         * rs6000-aix-tdep.c: Likewise.
1888         * rs6000-tdep.c: Likewise.
1889         * s390-linux-tdep.c: Likewise.
1890         * score-tdep.c: Likewise.
1891         * ser-base.c: Likewise.
1892         * ser-mingw.c: Likewise.
1893         * sh-tdep.c: Likewise.
1894         * sh64-tdep.c: Likewise.
1895         * solib-darwin.c: Likewise.
1896         * solib-spu.c: Likewise.
1897         * solib-svr4.c: Likewise.
1898         * source.c: Likewise.
1899         * sparc-nat.c: Likewise.
1900         * sparc-sol2-tdep.c: Likewise.
1901         * sparc-tdep.c: Likewise.
1902         * sparc64-sol2-tdep.c: Likewise.
1903         * sparc64-tdep.c: Likewise.
1904         * sparc64fbsd-tdep.c: Likewise.
1905         * sparc64nbsd-tdep.c: Likewise.
1906         * sparc64obsd-tdep.c: Likewise.
1907         * sparcnbsd-tdep.c: Likewise.
1908         * sparcobsd-tdep.c: Likewise.
1909         * spu-multiarch.c: Likewise.
1910         * spu-tdep.c: Likewise.
1911         * stabsread.c: Likewise.
1912         * stack.c: Likewise.
1913         * symfile.c: Likewise.
1914         * symtab.c: Likewise.
1915         * target-descriptions.c: Likewise.
1916         * target-memory.c: Likewise.
1917         * target.c: Likewise.
1918         * tic6x-linux-tdep.c: Likewise.
1919         * tic6x-tdep.c: Likewise.
1920         * tilegx-linux-nat.c: Likewise.
1921         * tilegx-tdep.c: Likewise.
1922         * top.c: Likewise.
1923         * tramp-frame.c: Likewise.
1924         * tui/tui-out.c: Likewise.
1925         * tui/tui-winsource.c: Likewise.
1926         * ui-out.c: Likewise.
1927         * user-regs.c: Likewise.
1928         * utils.c: Likewise.
1929         * v850-tdep.c: Likewise.
1930         * valops.c: Likewise.
1931         * value.c: Likewise.
1932         * varobj.c: Likewise.
1933         * vax-nat.c: Likewise.
1934         * xml-syscall.c: Likewise.
1935         * xml-tdesc.c: Likewise.
1936         * xstormy16-tdep.c: Likewise.
1937         * xtensa-linux-nat.c: Likewise.
1938         * xtensa-tdep.c: Likewise.
1939
1940 2014-08-07  Gary Benson  <gbenson@redhat.com>
1941
1942         * common/common-defs.h: Include common-utils.h.
1943         * defs.h: Do not include common-utils.h.
1944         * common/gdb_assert.h: Likewise.
1945         * darwin-nat.h: Likewise.
1946         * nat/linux-btrace.c: Likewise.
1947         * target/waitstatus.h: Likewise.
1948
1949 2014-08-07  Gary Benson  <gbenson@redhat.com>
1950
1951         * common/common-defs.h: Include ptid.h.
1952         * defs.h: Do not include ptid.h.
1953         * inferior.h: Likewise.
1954         * infrun.h: Likewise.
1955         * nat/linux-btrace.h: Likewise.
1956         * nat/linux-osdata.h: Likewise.
1957         * target/waitstatus.h: Likewise.
1958
1959 2014-08-07  Gary Benson  <gbenson@redhat.com>
1960
1961         * common/common-defs.h: Include gdb_locale.h.
1962         * defs.h: Do not include gdb_locale.h.
1963
1964 2014-08-07  Gary Benson  <gbenson@redhat.com>
1965
1966         * common/common-defs.h: Include gdb/signals.h.
1967         * defs.h: Do not include gdb/signals.h.
1968
1969 2014-08-07  Gary Benson  <gbenson@redhat.com>
1970
1971         * common/common-defs.h: Include pathmax.h.
1972         * defs.h: Do not include pathmax.h.
1973
1974 2014-08-07  Gary Benson  <gbenson@redhat.com>
1975
1976         * common/common-defs.h: Include libiberty.h.
1977         * defs.h: Do not include libiberty.h.
1978         * common/queue.h: Likewise.
1979         * cp-name-parser.y: Likewise.
1980         * mi/mi-cmd-catch.c: Likewise.
1981         * python/python.c: Likewise.
1982
1983 2014-08-07  Gary Benson  <gbenson@redhat.com>
1984
1985         * common/common-defs.h: Include ansidecl.h.
1986         * defs.h: Do not include ansidecl.h.
1987         * common/buffer.h: Likewise.
1988         * common/common-utils.h: Likewise.
1989
1990 2014-08-07  Gary Benson  <gbenson@redhat.com>
1991
1992         * common/common-defs.h: Include stddef.h.
1993         * defs.h: Do not include stddef.h.
1994         * common/common-utils.h: Likewise.
1995         * amd64fbsd-nat.c: Likewise.
1996         * bcache.c: Likewise.
1997         * charset.c: Likewise.
1998         * common/buffer.h: Likewise.
1999         * common/vec.h: Likewise.
2000         * i386bsd-nat.c: Likewise.
2001         * nat/linux-btrace.h: Likewise.
2002         * ppcfbsd-nat.c: Likewise.
2003         * ppcnbsd-tdep.h: Likewise.
2004         * ppcobsd-nat.c: Likewise.
2005         * ppcobsd-tdep.h: Likewise.
2006         * python/py-gdb-readline.c: Likewise.
2007
2008 2014-08-07  Gary Benson  <gbenson@redhat.com>
2009
2010         * common/common-defs.h: Include stdarg.h.
2011         * defs.h: Do not include stdarg.h.
2012         * ada-lang.c: Likewise.
2013         * common/common-utils.h: Likewise.
2014         * guile/scm-string.c: Likewise.
2015         * guile/scm-utils.c: Likewise.
2016         * m32c-tdep.c: Likewise.
2017
2018 2014-08-07  Gary Benson  <gbenson@redhat.com>
2019
2020         * common/common-defs.h: Include stdlib.h.
2021         * defs.h: Do not include stdlib.h.
2022         * addrmap.c: Likewise.
2023         * bcache.c: Likewise.
2024         * common/buffer.c: Likewise.
2025         * common/common-utils.c: Likewise.
2026         * cp-name-parser.y: Likewise.
2027         * go32-nat.c: Likewise.
2028         * mn10300-linux-tdep.c: Likewise.
2029         * nat/linux-osdata.c: Likewise.
2030         * tui/tui.c: Likewise.
2031         * windows-nat.c: Likewise.
2032
2033 2014-08-07  Gary Benson  <gbenson@redhat.com>
2034
2035         * common/common-defs.h: Include stdio.h.
2036         * defs.h: Do not include stdio.h.
2037         * ada-lang.c: Likewise.
2038         * common/buffer.c: Likewise.
2039         * common/common-utils.c: Likewise.
2040         * cp-name-parser.y: Likewise.
2041         * gnu-nat.c: Likewise.
2042         * go32-nat.c: Likewise.
2043         * i386gnu-nat.c: Likewise.
2044         * proc-api.c: Likewise.
2045         * proc-events.c: Likewise.
2046         * proc-flags.c: Likewise.
2047         * proc-why.c: Likewise.
2048         * python/python-internal.h: Likewise.
2049         * target-memory.c: Likewise.
2050         * tui/tui-io.c: Likewise.
2051         * tui/tui.c: Likewise.
2052
2053 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
2054
2055         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2056         (scan_dyntag_auxv): Same.
2057
2058 2014-08-06  Yao Qi  <yao@codesourcery.com>
2059
2060         * amd64-linux-nat.c: Remove duplicated include
2061         "x86-linux-nat.h".
2062         * i386-linux-nat.c: Likewise.
2063
2064 2014-08-06  Yao Qi  <yao@codesourcery.com>
2065
2066         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2067         operand" with "Special opcode" in comments.
2068
2069 2014-08-05  Gary Benson  <gbenson@redhat.com>
2070
2071         * interps.c (initialize_interps): Remove prototype.
2072         (interpreter_initialized): Remove static global.
2073         (interp_add): Do not call initialize_interps.
2074         (initialize_interps): Remove function.
2075
2076 2014-08-05  Gary Benson  <gbenson@redhat.com>
2077
2078         * utils.c (vwarning): Remove spurious va_end.
2079
2080 2014-08-05  Alan Modra  <amodra@gmail.com>
2081
2082         * charset.c (convert_between_encodings): Cast result of obstack_base.
2083         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2084         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2085         (read_unwind_info): Use size_t for some locals.
2086         * jit.c (finalize_symtab): Likewise.
2087         * utils.c (hashtab_obstack_allocate): Likewise.
2088         * symmisc.c (print_objfile_statistics): Update format strings.
2089
2090 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
2091
2092         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2093         (Changes in GDB 7.8): ... here.
2094
2095 2014-08-04  Tom Tromey  <tromey@redhat.com>
2096
2097         * target.c (set_targetdebug): New function.
2098         (initialize_targets): Pass set_targetdebug when creating "set
2099         debug target".
2100
2101 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2102
2103         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2104         if detecting a variable-sized field that is not the last field.
2105         Fix struct type length computation.
2106
2107 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2108
2109         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2110         Add debug trace.
2111
2112 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2113
2114         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2115         Remove "+ 8" offset in computation of CHAIN_VMA.
2116
2117 2014-07-31  Doug Evans  <dje@google.com>
2118
2119         * inflow.c (child_terminal_inferior): Add comment.
2120         (child_terminal_ours_for_output): Add comment.
2121         (child_terminal_ours): Add comment.
2122         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2123         (linux_nat_terminal_ours): Add comment.
2124
2125 2014-07-31  Gary Benson  <gbenson@redhat.com>
2126
2127         * common/btrace-common.h: Do not include defs.h or server.h.
2128         * nat/mips-linux-watch.h: Likewise.
2129         * gdb-dlfcn.h: Do not include defs.h.
2130         * tracefile.h: Likewise.
2131
2132 2014-07-30  Roland McGrath  <mcgrathr@google.com>
2133
2134         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2135
2136 2014-07-30  Tom Tromey  <tromey@redhat.com>
2137
2138         * bsd-kvm.c (bsd_kvm_open): Constify.
2139         * corelow.c (core_open): Constify.
2140         * ctf.c (ctf_open): Constify.
2141         * dbug-rom.c (dbug_open): Constify.
2142         * exec.c (exec_open): Constify.
2143         * m32r-rom.c (m32r_open, mon2000_open): Constify.
2144         * microblaze-rom.c (picobug_open): Constify.
2145         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2146         Constify.
2147         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2148         * record-btrace.c (record_btrace_open): Constify.
2149         * record-full.c (record_full_core_open_1, record_full_open_1)
2150         (record_full_open): Constify.
2151         * remote-m32r-sdi.c (m32r_open): Constify.
2152         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2153         (rockhopper_open, lsi_open): Constify.
2154         * remote-sim.c (gdbsim_open): Constify.
2155         * remote.c (remote_open, extended_remote_open, remote_open_1):
2156         Constify.
2157         * target.h (struct target_ops) <to_open>: Make "arg" const.
2158         * tracefile-tfile.c (tfile_open): Constify.
2159
2160 2014-07-30  Tom Tromey  <tromey@redhat.com>
2161
2162         * breakpoint.c (map_breakpoint_numbers): Update.
2163         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
2164         (get_number_const): New function.
2165         (get_number): Rewrite using get_number_const.
2166         (init_number_or_range): Make "string" const.
2167         (number_is_in_list): Make "list" const.
2168         * cli/cli-utils.h (get_number_const): Declare.
2169         (struct get_number_or_range_state) <string, end_ptr>: Now const.
2170         (init_number_or_range, number_is_in_list): Update.
2171         * printcmd.c (map_display_numbers): Update.
2172         * value.c (value_from_history_ref): Constify.
2173         * value.h (value_from_history_ref): Update.
2174
2175 2014-07-30  Tom Tromey  <tromey@redhat.com>
2176
2177         * corefile.c (hook_type, call_extra_exec_file_hooks)
2178         (specify_exec_file_hook): Constify.
2179         * exec.c (exec_file_attach): Make "filename" const.
2180         * gdbcore.h (deprecated_exec_file_display_hook)
2181         (specify_exec_file_hook, exec_file_attach): Constify.
2182         * main.c (captured_main): Use catch_command_errors_const.
2183
2184 2014-07-30  Tom Tromey  <tromey@redhat.com>
2185
2186         * target.c (open_target): New function.
2187         (add_target_with_completer, add_deprecated_target_alias): Use
2188         set_cmd_sfunc, set_cmd_context.
2189         (debug_to_open): Remove.
2190         (setup_target_debug): Update.
2191
2192 2014-07-30  Yao Qi  <yao@codesourcery.com>
2193
2194         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2195         comments.
2196         * parse.c (exp_iterate): Update comments.
2197
2198 2014-07-30  Gary Benson  <gbenson@redhat.com>
2199
2200         * common/common-defs.h: New file.
2201         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2202         * defs.h: Include common-defs.h.
2203         Do not include config.h or build-gnulib/config.h.
2204
2205 2014-07-30  Gary Benson  <gbenson@redhat.com>
2206
2207         * common/common-utils.h: Do not include config.h.
2208         * nat/linux-btrace.h: Likewise.
2209
2210 2014-07-30  Gary Benson  <gbenson@redhat.com>
2211
2212         * btrace.c: Include defs.h.
2213         * common/ptid.c: Include defs.h or server.h as appropriate.
2214         * nat/mips-linux-watch.c: Likewise.
2215
2216 2014-07-29  Tom Tromey  <tromey@redhat.com>
2217
2218         * target.c (target_is_pushed): Simplify.
2219
2220 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
2221
2222         GDB 7.8 released.
2223
2224 2014-07-29  Yao Qi  <yao@codesourcery.com>
2225
2226         PR gdb/17206
2227         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2228
2229 2014-07-28  Doug Evans  <xdje42@gmail.com>
2230
2231         PR guile/17203
2232         * guile/scm-param.c (pascm_parameter_defined_p): New function.
2233         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
2234         parameters.
2235
2236 2014-07-28  Will Newton  <will.newton@linaro.org>
2237
2238         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2239         (THUMB2_SET_R7_SIGRETURN2): Likewise.
2240         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2241         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2242         (THUMB2_EABI_SYSCALL): Likewise.
2243         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2244         struct tramp_frame.
2245         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2246         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2247
2248 2014-07-27  Doug Evans  <xdje42@gmail.com>
2249
2250         * guile/scm-param.c (pascm_print_param_smob): Fix output.
2251
2252 2014-07-27  Doug Evans  <xdje42@gmail.com>
2253
2254         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2255
2256 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
2257             Doug Evans  <xdje42@gmail.com>
2258
2259         PR guile/17146
2260         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2261         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2262         * configure.ac: Try to use guild to compile an scm file, if it fails
2263         then disable guile support.
2264         * configure: Regenerate.
2265         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2266         GUILE_FILE_LIST.
2267         (GUILE_COMPILED_FILES): New variable.
2268         (GUILE_FILES) Update.
2269         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2270         (stamp-guile): Compile scm files.
2271         * guile/guile.c (boot_guile_support): New function.
2272         (standard_throw_args_p): New function.
2273         (print_standard_throw_error, print_throw_error): New functions.
2274         (handle_boot_error): New function.
2275         (initialize_scheme_side): Rewrite to call boot_guile_support.
2276         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
2277         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2278
2279 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
2280             Doug Evans  <xdje42@gmail.com>
2281
2282         PR guile/17146
2283         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2284         * guile/lib/gdb/support.scm: New file.
2285         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2286         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2287         All uses updated.
2288         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2289         All uses updated.
2290         (%assert-type): Ditto, and renamed to assert-type.
2291         (%exception-print-style): Delete.
2292
2293 2014-07-26  Doug Evans  <xdje42@gmail.com>
2294
2295         PR build/17105
2296         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2297         * configure: Regenerate.
2298         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2299         PYTHON_FILES.
2300         (PYTHON_FILES): New variable.
2301         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2302         (GUILE_FILES): New variable.
2303         (stamp-python, install-python, uninstall-python): Handle empty
2304         file list.
2305         (stamp-guile, install-guile, uninstall-guile): Ditto.
2306
2307 2014-07-26  Doug Evans  <xdje42@gmail.com>
2308
2309         PR guile/17177
2310         * guile/lib/gdb.scm (pretty-printers): Export.
2311         (set-pretty-printers!): Export.
2312         * guile/lib/gdb/printing.scm (gdb module): Update.
2313         (prepend-pretty-printer!, append-pretty-printer!): Update.
2314         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2315         (pretty_printer_list_var): Delete.
2316         (pretty_printer_list): New static global.
2317         (gdbscm_pretty_printers): New function.
2318         (gdbscm_set_pretty_printers_x): New function.
2319         (ppscm_find_pretty_printer_from_gdb): Update.
2320         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2321         (gdbscm_initialize_pretty_printers): Update.
2322
2323 2014-07-26  Doug Evans  <xdje42@gmail.com>
2324
2325         PR 17185
2326         * configure.ac: Add check for header gc/gc.h.
2327         Add check for function setenv.
2328         * configure: Regenerate.
2329         * config.in: Regenerate.
2330         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2331
2332 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
2333
2334         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2335         variation in gdbarch matching.
2336
2337 2014-07-25  Tom Tromey  <tromey@redhat.com>
2338
2339         * exec.c (using_exec_ops): Remove.
2340         (exec_close_1): Update.  Remove extraneous block, reindent.
2341         (add_target_sections): Use target_is_pushed.
2342
2343 2014-07-25  Pedro Alves  <palves@redhat.com>
2344
2345         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2346         * monitor.c (monitor_create_inferior): Likewise.
2347         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2348         * remote-sim.c (gdbsim_create_inferior): Likewise.
2349         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2350         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2351         * windows-nat.c (do_initial_windows_stuff): Likewise.
2352
2353 2014-07-25  Pedro Alves  <palves@redhat.com>
2354
2355         * NEWS: Mention signal passing and "signal" command changes.
2356         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2357         comment.
2358         * breakpoint.c (until_break_command): Adjust clear_proceed_status
2359         call.
2360         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2361         * infcmd.c (proceed_thread_callback, continue_1, step_once)
2362         (jump_command): Adjust clear_proceed_status call.
2363         (signal_command): Warn if other thread that are resumed have
2364         signals that will be delivered.  Adjust clear_proceed_status call.
2365         (until_next_command, finish_command)
2366         (proceed_after_attach_callback, attach_command_post_wait)
2367         (attach_command): Adjust clear_proceed_status call.
2368         * infrun.c (proceed_after_vfork_done): Likewise.
2369         (proceed_after_attach_callback): Adjust comment.
2370         (clear_proceed_status_thread): Clear stop_signal if not in pass
2371         state.
2372         (clear_proceed_status_callback): Delete.
2373         (clear_proceed_status): New 'step' parameter.  Only clear the
2374         proceed status of threads the command being prepared is about to
2375         resume.
2376         (proceed): If passed in an explicit signal, override stop_signal
2377         with it.  Don't pass the last stop signal to the thread we're
2378         resuming.
2379         (init_wait_for_inferior): Adjust clear_proceed_status call.
2380         (switch_back_to_stepped_thread): Clear the signal if it should not
2381         be passed.
2382         * infrun.h (clear_proceed_status): New 'step' parameter.
2383         (user_visible_resume_ptid): Add comment.
2384         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2385         signal is in pass state.
2386         * remote.c (append_pending_thread_resumptions): Likewise.
2387         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2388
2389 2014-07-25  Tom Tromey  <tromey@redhat.com>
2390
2391         * target.h (target_stopped_data_address)
2392         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
2393         parentheses.
2394
2395 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
2396
2397         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2398         comments.
2399         (avr_pointer_to_address): Likewise.
2400
2401 2014-07-24  Tom Tromey  <tromey@redhat.com>
2402
2403         * monitor.c (compile_pattern): Update.
2404         * target.h (struct target_ops) <to_shortname, to_longname,
2405         to_doc>: Now const.
2406
2407 2014-07-24  Tom Tromey  <tromey@redhat.com>
2408
2409         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2410         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2411         (add_info_alias, add_com): Make "doc" const.
2412         (print_doc_line): Make "str" const.
2413         (delete_cmd): Update.
2414         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2415         (print_doc_line): Update.
2416         * cli/cli-script.c (document_command): Update.
2417         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2418         (add_com, add_info, add_info_alias): Update.
2419         * guile/scm-cmd.c (cmdscm_destroyer): Update.
2420         * python/py-cmd.c (cmdpy_destroyer): Update.
2421
2422 2014-07-24  Tom Tromey  <tromey@redhat.com>
2423
2424         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2425         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2426         (help_cmd_list): Constify.
2427         (lookup_cmd): Update.
2428         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2429         const.
2430         (help_cmd_list, apropos_cmd): Update.
2431         * cli/cli-script.c (show_user): Update.
2432         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2433         * cli/cli-setshow.h (cmd_show_list): Update.
2434         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2435         (cmd_show_list): Update.
2436         * guile/scm-cmd.c (cmdscm_destroyer): Update.
2437         * python/py-cmd.c (cmdpy_destroyer): Update.
2438
2439 2014-07-24  Tom Tromey  <tromey@redhat.com>
2440
2441         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2442         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2443         const.
2444         * command.h (deprecate_cmd): Update.
2445         * maint.c (maintenance_do_deprecate): Add casts.
2446
2447 2014-07-24  Tom Tromey  <tromey@redhat.com>
2448
2449         * cli/cli-decode.c (help_cmd): Make parameter "const".
2450         * cli/cli-decode.h (help_cmd): Update.
2451
2452 2014-07-24  Tom Tromey  <tromey@redhat.com>
2453
2454         * stack.c (up_silently_base, down_silently_base): Make argument
2455         const.
2456
2457 2014-07-24  Tom Tromey  <tromey@redhat.com>
2458
2459         * solib.c (solib_add): Make "pattern" const.
2460         * solib.h (solib_add): Update.
2461
2462 2014-07-24  Tom Tromey  <tromey@redhat.com>
2463
2464         * remote.c (remote_serial_open, print_packet, putpkt)
2465         (putpkt_binary): Constify.
2466         * remote.h (putpkt): Update.
2467
2468 2014-07-24  Tom Tromey  <tromey@redhat.com>
2469
2470         * monitor.c (monitor_open): Make "args" const.
2471         * monitor.h (monitor_open): Update.
2472
2473 2014-07-24  Tom Tromey  <tromey@redhat.com>
2474
2475         * maint.c (match_bfd_flags): Make "string" const.
2476         (print_bfd_section_info): Remove casts.
2477         (print_objfile_section_info): Make "string" const.
2478
2479 2014-07-24  Tom Tromey  <tromey@redhat.com>
2480
2481         * inf-child.c (inf_child_open_target): Make "arg" const.
2482         * inf-child.h (inf_child_open_target): Update.
2483
2484 2014-07-24  Tom Tromey  <tromey@redhat.com>
2485
2486         * environ.c (unset_in_environ): Make "var" const.
2487         * environ.h (unset_in_environ): Update.
2488
2489 2014-07-24  Tom Tromey  <tromey@redhat.com>
2490
2491         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2492         Make "cmd" const.
2493         (scan_filename_with_cleanup): Likewise.
2494         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2495         Make arguments const.
2496         (restore_command): Update.
2497
2498 2014-07-24  Pedro Alves  <palves@redhat.com>
2499
2500         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2501
2502 2014-07-24  Tom Tromey  <tromey@redhat.com>
2503             Gary Benson  <gbenson@redhat.com>
2504
2505         * nat/linux-ptrace.c (additional_flags): New global.
2506         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2507         additional_flags; don't check GDBSERVER.
2508         (linux_ptrace_set_additional_flags): New function.
2509         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2510         Declare.
2511         * linux-nat.c (_initialize_linux_nat): Call
2512         linux_ptrace_set_additional_flags.
2513
2514 2014-07-24  Tom Tromey  <tromey@redhat.com>
2515
2516         * make-target-delegates (munge_type, write_debugmethod): New
2517         functions.
2518         (debug_names): New global.
2519         ($TARGET_DEBUG_PRINTER): New global.
2520         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2521         name.
2522         Write debug methods.  Generate init_debug_target.
2523         * target-debug.h: New file.
2524         * target-delegates.c: Rebuild.
2525         * target.c: Include target-debug.h.
2526         (debug_target): Hoist definition.
2527         (target_kill, target_get_section_table, target_memory_map)
2528         (target_flash_erase, target_flash_done, target_detach)
2529         (target_disconnect, target_wait, target_resume)
2530         (target_pass_signals, target_program_signals, target_follow_fork)
2531         (target_mourn_inferior, target_search_memory)
2532         (target_thread_address_space, target_close)
2533         (target_find_new_threads, target_core_of_thread)
2534         (target_verify_memory, target_insert_mask_watchpoint)
2535         (target_remove_mask_watchpoint): Remove targetdebug code.
2536         (debug_to_post_attach, debug_to_prepare_to_store)
2537         (debug_to_files_info, debug_to_insert_breakpoint)
2538         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2539         (debug_to_region_ok_for_hw_watchpoint)
2540         (debug_to_can_accel_watchpoint_condition)
2541         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2542         (debug_to_watchpoint_addr_within_range)
2543         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2544         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2545         (debug_to_terminal_init, debug_to_terminal_inferior)
2546         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2547         (debug_to_terminal_save_ours, debug_to_terminal_info)
2548         (debug_to_load, debug_to_post_startup_inferior)
2549         (debug_to_insert_fork_catchpoint)
2550         (debug_to_remove_fork_catchpoint)
2551         (debug_to_insert_vfork_catchpoint)
2552         (debug_to_remove_vfork_catchpoint)
2553         (debug_to_insert_exec_catchpoint)
2554         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2555         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2556         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2557         (setup_target_debug): Call init_debug_target.
2558         * target.h (TARGET_DEBUG_PRINTER): New macro.
2559         (struct target_ops) <to_resume, to_wait, to_pass_signals,
2560         to_program_signals>: Use TARGET_DEBUG_PRINTER.
2561
2562 2014-07-24  Gary Benson  <gbenson@redhat.com>
2563
2564         * exceptions.h (throw_vfatal): Renamed to...
2565         (throw_vquit): New declaration.
2566         (throw_quit): Likewise.
2567         * exceptions.c (throw_vfatal): Renamed to...
2568         (throw_vquit): New function.
2569         (throw_quit): Likewise.
2570         (throw_error): Call throw_verror rather than throw_it.
2571         * utils.h (vfatal): Removed.
2572         (fatal): Likewise.
2573         * utils.c (vfatal): Removed.
2574         (fatal): Likewise.
2575         (internal_verror): Replaced call to fatal with call to throw_quit.
2576         (quit): Replaced calls to fatal with calls to throw_quit.
2577
2578 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
2579
2580         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2581         target_read_code.
2582
2583 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
2584
2585         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2586         less than zero in conditional expression.
2587
2588 2014-07-23  Tom Tromey  <tromey@redhat.com>
2589
2590         * make-target-delegates ($ARGS_PART): Match trailing close paren.
2591         ($INTRO_PART): Don't match whitespace.
2592         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
2593         argument matching.
2594         ($METHOD): Add $METHOD_TRAILER.
2595         (trim): Rewrite.
2596         (scan_target_h): New sub.
2597         Change main loop not to collect state.
2598         * target-delegates.c: Rebuild.
2599
2600 2014-07-23  Gary Benson  <gbenson@redhat.com>
2601
2602         * cp-support.c (gdb_demangle): Fix build on systems without
2603         sigaltstack.
2604
2605 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
2606
2607         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2608         for reference entry value target data value.
2609
2610 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
2611
2612         * stack.c (read_frame_arg): Verify value_optimized_out before calling
2613         value_available_contents_eq.
2614
2615 2014-07-22  Pedro Alves  <palves@redhat.com>
2616
2617         * value.c (allocate_optimized_out_value): Don't mark value as
2618         non-lazy.
2619
2620 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
2621
2622         * MAINTAINERS (Write After Approval): Update my email address.
2623
2624 2014-07-20  Doug Evans  <dje@google.com>
2625
2626         PR server/17147
2627         * remote.c (putpkt_binary): Add text to error message.
2628
2629 2014-07-20  Yao Qi  <yao@codesourcery.com>
2630
2631         * eval.c: Remove "Chill" from comments.
2632         * gdbtypes.h: Likewise.
2633         * symtab.h: Likewise.
2634
2635 2014-07-20  Yao Qi  <yao@codesourcery.com>
2636
2637         * std-operator.def: Update comments to TERNOP_SLICE.
2638
2639 2014-07-20  Yao Qi  <yao@codesourcery.com>
2640
2641         * std-operator.def: Remove BINOP_RANGE.
2642         * breakpoint.c (watchpoint_exp_is_const): Update.
2643         * expprint.c (dump_subexp_body_standard): Likewise.
2644         * eval.c (init_array_element): Remove dead code.
2645         (evaluate_subexp_standard): Likewise.
2646
2647 2014-07-20  Yao Qi  <yao@codesourcery.com>
2648
2649         * std-operator.def: Remove BINOP_IN.
2650         * breakpoint.c (watchpoint_exp_is_const): Update.
2651         * eval.c (evaluate_subexp_standard): Likewise.
2652         * expprint.c (dump_subexp_body_standard): Likewise.
2653
2654 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
2655
2656         * microblaze-tdep.c (microblaze_register_names): Add
2657         the rshr and rslr register names.
2658         (microblaze_gdbarch_init): Use of tdesc_has_registers.
2659         Use of tdesc_find_feature. Use of tdesc_data_alloc.
2660         Use of tdesc_numbered_register. Use of
2661         microblaze_register_g_packet_guesses. Use of
2662         tdesc_use_registers. Use of set_gdbarch_register_type.
2663         (microblaze_register_g_packet_guesses): New.
2664         * microblaze-tdep.h (microblaze_reg_num): Add
2665         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2666         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2667         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2668         * features/microblaze-core.xml: New file.
2669         * features/microblaze-stack-protect.xml: New file.
2670         * features/microblaze-with-stack-protect.c: New file.
2671         * features/microblaze-with-stack-protect.xml: New file.
2672         * features/microblaze.xml: New file.
2673         * features/microblaze.c: New file.
2674         * features/Makefile (microblaze-with-stack-protect): Add
2675         microblaze-with-stack-protect microblaze and microblaze-expedite.
2676         * regformats/microblaze-with-stack-protect.dat: New file.
2677         * regformats/microblaze.dat: New file.
2678         * doc/gdb.texinfo (MicroBlaze Features): Added.
2679
2680 2014-07-18  Tom Tromey  <tromey@redhat.com>
2681
2682         * exec.c (exec_ops): Now static.
2683         * exec.h (exec_ops): Don't declare.
2684
2685 2014-07-18  Tom Tromey  <tromey@redhat.com>
2686
2687         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2688         to find_target_beneath.
2689         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2690         find_target_beneath.
2691         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2692
2693 2014-07-18  Tom Tromey  <tromey@redhat.com>
2694
2695         PR gdb/17130:
2696         * utils.c (quit): Use target_supports_terminal_ours.
2697         * target.h (target_supports_terminal_ours): Declare.
2698         * target.c (target_supports_delete_record): Don't check
2699         to_delete_record against NULL.
2700         (target_supports_terminal_ours): New function.
2701
2702 2014-07-18  Tom Tromey  <tromey@redhat.com>
2703
2704         PR gdb/17130:
2705         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2706         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2707         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2708         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2709         * windows-nat.c (windows_xfer_partial): Always delegate.
2710         * record-btrace.c (record_btrace_xfer_partial): Simplify
2711         delegation.
2712         (record_btrace_fetch_registers, record_btrace_store_registers)
2713         (record_btrace_prepare_to_store, record_btrace_resume)
2714         (record_btrace_wait, record_btrace_find_new_threads)
2715         (record_btrace_thread_alive): Likewise.
2716         * procfs.c (procfs_xfer_partial): Always delegate.
2717         * corelow.c (core_xfer_partial): Always delegate.
2718         * sol-thread.c (sol_find_new_threads): Simplify delegation.
2719
2720 2014-07-18  Tom Tromey  <tromey@redhat.com>
2721
2722         * exec.c (exec_make_note_section): Move earlier.
2723
2724 2014-07-17  Doug Evans  <dje@google.com>
2725
2726         PR gdb/17170
2727         * maint.c (count_symtabs_and_blocks): Handle NULL
2728         current_program_space.
2729         (report_command_stats): Check global enabled flag in addition to
2730         recorded enabled flag.
2731         (make_command_stats_cleanup): Handle msg_type == 0, startup.
2732
2733 2014-07-16  Pedro Alves  <palves@redhat.com>
2734
2735         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2736
2737 2014-07-16  Tom Tromey  <tromey@redhat.com>
2738
2739         * target.h (struct target_ops) <to_delete_record>: Reformat
2740         comment.
2741
2742 2014-07-16  Tom Tromey  <tromey@redhat.com>
2743
2744         * target-delegates.c: Rebuild.
2745
2746 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
2747
2748         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2749         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2750         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2751         (avr_pointer_to_address): Likewise.
2752         (avr_address_class_type_flags): New function.
2753         (avr_address_class_type_flags_to_name): Likewise.
2754         (avr_address_class_name_to_type_flags): Likewise.
2755         (avr_gdbarch_init): Set address_class_type_flags,
2756         address_class_type_flags_to_name and
2757         address_class_name_to_type_flags.
2758
2759 2014-07-15  Pedro Alves  <palves@redhat.com>
2760
2761         * linux-nat.c (kill_callback): Save errno and work with saved
2762         copy.
2763
2764 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
2765
2766         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2767
2768 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
2769
2770         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2771         breakpoint support correctly.
2772
2773 2014-07-14  Pedro Alves  <palves@redhat.com>
2774
2775         * utils.c (prompt_for_continue): Call target_terminal_ours.
2776
2777 2014-07-14  Pedro Alves  <palves@redhat.com>
2778
2779         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2780         catch_errors.  Don't re-enable stdin or notify observers where,
2781         and rethrow error.
2782         (fetch_inferior_event_wrapper): Delete.
2783
2784 2014-07-14  Pedro Alves  <palves@redhat.com>
2785
2786         PR gdb/17072
2787         * top.c: Include "inf-loop.h".
2788         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2789         field.
2790         (gdb_readline_wrapper_cleanup): Make the target async again, if it
2791         was async before.
2792         (gdb_readline_wrapper): Store whether the target is async, and
2793         make it sync.
2794
2795 2014-07-14  Pedro Alves  <palves@redhat.com>
2796
2797         PR gdb/17072
2798         * top.c (gdb_readline_wrapper_line): Tweak comment.
2799         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2800         the input handler callback.
2801
2802 2014-07-14  Pedro Alves  <palves@redhat.com>
2803
2804         PR gdb/17072
2805         * main.c: Include event-top.h.
2806         (handle_command_errors): New function.
2807         (catch_command_errors, catch_command_errors_const): Use it.
2808
2809 2014-07-14  Pedro Alves  <palves@redhat.com>
2810
2811         * exceptions.c (catch_command_errors, catch_command_errors_const):
2812         Moved to main.c.
2813         * exceptions.h (catch_command_errors_ftype)
2814         (catch_command_errors_const_ftype): Moved to main.c.
2815         (catch_command_errors, catch_command_errors_const): Delete
2816         declarations.
2817         * main.c (catch_command_errors_ftype)
2818         (catch_command_errors_const_ftype): Moved here from exceptions.h.
2819         (catch_command_errors, catch_command_errors_const)): Moved here
2820         from exceptions.c and make static.
2821
2822 2014-07-14  Pedro Alves  <palves@redhat.com>
2823
2824         * exceptions.c (print_any_exception): Delete.
2825         (catch_exceptions_with_msg): Use exception_print instead of
2826         print_any_exception.
2827         (catch_errors): Use exception_fprintf instead of
2828         print_any_exception.
2829         (catch_command_errors, catch_command_errors_const): Use
2830         exception_print instead of print_any_exception.
2831
2832 2014-07-14  Pedro Alves  <palves@redhat.com>
2833
2834         * infcall.c (run_inferior_call): Set 'sync_execution' while
2835         running the inferior call.
2836
2837 2014-07-14  Pedro Alves  <palves@redhat.com>
2838
2839         * value.c (value_contents_equal): Delete function.
2840         * value.h (value_contents_equal): Delete declaration.
2841
2842 2014-07-14  Tom Tromey  <tromey@redhat.com>
2843
2844         PR exp/17106:
2845         * gdbtypes.c (is_dynamic_type_internal): New function, from
2846         is_dynamic_type.
2847         (is_dynamic_type): Rewrite.
2848         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2849         (resolve_dynamic_struct): Likewise.
2850         (resolve_dynamic_type_internal): New function, from
2851         resolve_dynamic_type.
2852         (resolve_dynamic_type): Rewrite.
2853
2854 2014-07-14  Tom Tromey  <tromey@redhat.com>
2855
2856         * target.c (target_require_runnable): Also check record_stratum.
2857         Update comment.
2858
2859 2014-07-11  Yao Qi  <yao@codesourcery.com>
2860
2861         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2862         thumb_instruction_restores_sp return true.
2863
2864 2014-07-11  Yao Qi  <yao@codesourcery.com>
2865
2866         * arm-tdep.c (thumb_instruction_restores_sp): New function.
2867         (thumb_in_function_epilogue_p): Call
2868         thumb_instruction_restores_sp.
2869
2870 2014-07-11  Yao Qi  <yao@codesourcery.com>
2871
2872         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2873         'add sp, #imm'.
2874         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2875
2876 2014-07-11  Gary Benson  <gbenson@redhat.com>
2877
2878         * amd64-linux-nat.c (gdbcore.h): Remove include.
2879         (regset.h): Likewise.
2880         (nat/linux-btrace.h): Likewise.
2881         (btrace.h): Likewise.
2882         (gdb_assert.h): Likewise.
2883         (string.h): Likewise.
2884         (sys/uio.h): Likewise.
2885         (sys/debugreg.h): Likewise.
2886         (sys/syscall.h): Likewise.
2887         (sys/procfs.h): Likewise.
2888         (sys/user.h): Likewise.
2889         (asm/ptrace.h): Likewise.
2890         (i386-nat.h): Likewise.
2891         * i386-linux-nat.c (i386-nat.h): Likewise.
2892         (regset.h): Likewise.
2893         (target.h): Likewise.
2894         (linux-nat.h): Likewise.
2895         (nat/linux-btrace.h): Likewise.
2896         (btrace.h): Likewise.
2897         (gdb_assert.h): Likewise.
2898         (string.h): Likewise.
2899         (sys/uio.h): Likewise.
2900         (sys/user.h): Likewise.
2901         (sys/procfs.h): Likewise.
2902         (sys/reg.h): Likewise.
2903         (sys/debugreg.h): Likewise.
2904         (ORIG_EAX): Remove definition.
2905
2906 2014-07-11  Gary Benson  <gbenson@redhat.com>
2907
2908         * i386-linux-nat.h: New file.
2909         * x86-linux-nat.h: Likewise.
2910         * x86-linux-nat.c: Likewise.
2911         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2912         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2913         * config/i386/linux64.mh (NATDEPFILES): Likewise.
2914         * amd64-linux-nat.c (x86-linux-nat.h): New include.
2915         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2916         (PTRACE_SETREGSET): Likewise.
2917         (arch_lwp_info): Now in x86-linux-nat.c.
2918         (have_ptrace_getregset): Now in x86-linux-nat.h.
2919         (x86_linux_dr_get): Now in x86-linux-nat.c.
2920         (x86_linux_dr_set): Likewise.
2921         (x86_linux_dr_get_addr): Likewise.
2922         (x86_linux_dr_get_control): Likewise.
2923         (x86_linux_dr_get_status): Likewise.
2924         (update_debug_registers_callback): Likewise.
2925         (x86_linux_dr_set_control): Likewise.
2926         (x86_linux_dr_set_addr): Likewise.
2927         (x86_linux_prepare_to_resume): Likewise.
2928         (x86_linux_new_thread): Likewise.
2929         (x86_linux_new_fork): Likewise.
2930         (x86_linux_get_thread_area): Likewise.
2931         (super_post_startup_inferior): Likewise.
2932         (x86_linux_child_post_startup_inferior): Likewise.
2933         (AMD64_LINUX_USER64_CS): Likewise.
2934         (AMD64_LINUX_X32_DS): Likewise.
2935         (x86_linux_read_description): Likewise.
2936         (x86_linux_enable_btrace): Likewise.
2937         (x86_linux_disable_btrace): Likewise.
2938         (x86_linux_teardown_btrace): Likewise.
2939         (x86_linux_read_btrace): Likewise.
2940         (x86_linux_create_target): Likewise.
2941         (x86_linux_add_target): Likewise.
2942         * i386-linux-nat.c (x86-linux-nat.h): New include.
2943         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2944         (PTRACE_SETREGSET): Likewise.
2945         (arch_lwp_info): Now in x86-linux-nat.c.
2946         (have_ptrace_getregset): Now in x86-linux-nat.h.
2947         (x86_linux_dr_get): Now in x86-linux-nat.c.
2948         (x86_linux_dr_set): Likewise.
2949         (x86_linux_dr_get_addr): Likewise.
2950         (x86_linux_dr_get_control): Likewise.
2951         (x86_linux_dr_get_status): Likewise.
2952         (update_debug_registers_callback): Likewise.
2953         (x86_linux_dr_set_control): Likewise.
2954         (x86_linux_dr_set_addr): Likewise.
2955         (x86_linux_prepare_to_resume): Likewise.
2956         (x86_linux_new_thread): Likewise.
2957         (x86_linux_new_fork): Likewise.
2958         (x86_linux_get_thread_area): Likewise.
2959         (super_post_startup_inferior): Likewise.
2960         (x86_linux_child_post_startup_inferior): Likewise.
2961         (AMD64_LINUX_USER64_CS): Likewise.
2962         (AMD64_LINUX_X32_DS): Likewise.
2963         (x86_linux_read_description): Likewise.
2964         (x86_linux_enable_btrace): Likewise.
2965         (x86_linux_disable_btrace): Likewise.
2966         (x86_linux_teardown_btrace): Likewise.
2967         (x86_linux_read_btrace): Likewise.
2968         (x86_linux_create_target): Likewise.
2969         (x86_linux_add_target): Likewise.
2970
2971 2014-07-11  Gary Benson  <gbenson@redhat.com>
2972
2973         * amd64-linux-nat.c: Comment and whitespace changes.
2974         * i386-linux-nat.c: Comment and whitespace changes.
2975
2976 2014-07-11  Gary Benson  <gbenson@redhat.com>
2977
2978         * amd64-linux-nat.c (x86_linux_create_target): New function.
2979         (x86_linux_add_target): Likewise.
2980         (_initialize_amd64_linux_nat): Delegate to the above new functions.
2981         * i386-linux-nat.c (x86_linux_create_target): New function.
2982         (x86_linux_add_target): Likewise.
2983         (_initialize_i386_linux_nat): Delegate to the above new functions.
2984
2985 2014-07-11  Gary Benson  <gbenson@redhat.com>
2986
2987         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2988         (ps_get_thread_area): Delegate to the above in 32-bit mode.
2989         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2990         (ps_get_thread_area): Delegate to the above.
2991
2992 2014-07-11  Gary Benson  <gbenson@redhat.com>
2993
2994         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2995         x86_linux_read_description.  All uses updated.  amd64-specific
2996         code conditionalized.  Conditionalized i386-specific code added.
2997         Redundant cast removed.
2998         * i386-linux-nat.c (i386_linux_read_description): Renamed to
2999         x86_linux_read_description.  All uses updated.  i386-specific
3000         code conditionalized.  Conditionalized amd64-specific code added.
3001         One sizeof replaced with the actual type it is describing.
3002
3003 2014-07-11  Gary Benson  <gbenson@redhat.com>
3004
3005         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3006         x86_linux_dr_get.  All uses updated.
3007         (amd64_linux_dr_set): Renamed to
3008         x86_linux_dr_set.  All uses updated.
3009         (amd64_linux_dr_get_addr): Renamed to
3010         x86_linux_dr_get_addr.  All uses updated.
3011         (amd64_linux_dr_get_control): Renamed to
3012         x86_linux_dr_get_control.  All uses updated.
3013         (amd64_linux_dr_get_status): Renamed to
3014         x86_linux_dr_get_status.  All uses updated.
3015         (amd64_linux_dr_set_control): Renamed to
3016         x86_linux_dr_set_control.  All uses updated.
3017         (amd64_linux_dr_set_addr): Renamed to
3018         x86_linux_dr_set_addr.  All uses updated.
3019         (amd64_linux_prepare_to_resume): Renamed to
3020         x86_linux_prepare_to_resume.  All uses updated.
3021         (amd64_linux_new_thread): Renamed to
3022         x86_linux_new_thread.  All uses updated.
3023         (amd64_linux_new_fork): Renamed to
3024         x86_linux_new_fork.  All uses updated.
3025         (amd64_linux_child_post_startup_inferior): Renamed to
3026         x86_linux_child_post_startup_inferior.  All uses updated.
3027         (amd64_linux_enable_btrace): Renamed to
3028         x86_linux_enable_btrace.  All uses updated.
3029         (amd64_linux_disable_btrace): Renamed to
3030         x86_linux_disable_btrace.  All uses updated.
3031         (amd64_linux_teardown_btrace): Renamed to
3032         x86_linux_teardown_btrace.  All uses updated.
3033         (amd64_linux_read_btrace): Renamed to
3034         x86_linux_read_btrace.  All uses updated.
3035         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3036         x86_linux_dr_get.  All uses updated.
3037         (i386_linux_dr_set): Renamed to
3038         x86_linux_dr_set.  All uses updated.
3039         (i386_linux_dr_get_addr): Renamed to
3040         x86_linux_dr_get_addr.  All uses updated.
3041         (i386_linux_dr_get_control): Renamed to
3042         x86_linux_dr_get_control.  All uses updated.
3043         (i386_linux_dr_get_status): Renamed to
3044         x86_linux_dr_get_status.  All uses updated.
3045         (i386_linux_dr_set_control): Renamed to
3046         x86_linux_dr_set_control.  All uses updated.
3047         (i386_linux_dr_set_addr): Renamed to
3048         x86_linux_dr_set_addr.  All uses updated.
3049         (i386_linux_prepare_to_resume): Renamed to
3050         x86_linux_prepare_to_resume.  All uses updated.
3051         (i386_linux_new_thread): Renamed to
3052         x86_linux_new_thread.  All uses updated.
3053         (i386_linux_new_fork): Renamed to
3054         x86_linux_new_fork.  All uses updated.
3055         (i386_linux_child_post_startup_inferior): Renamed to
3056         x86_linux_child_post_startup_inferior.  All uses updated.
3057         (i386_linux_enable_btrace): Renamed to
3058         x86_linux_enable_btrace.  All uses updated.
3059         (i386_linux_disable_btrace): Renamed to
3060         x86_linux_disable_btrace.  All uses updated.
3061         (i386_linux_teardown_btrace): Renamed to
3062         x86_linux_teardown_btrace.  All uses updated.
3063         (i386_linux_read_btrace): Renamed to
3064         x86_linux_read_btrace.  All uses updated.
3065
3066 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
3067
3068         * remote.c (extended_remote_post_attach): New function.
3069         (init_extended_remote_ops): Install it as to_post_attach method.
3070
3071 2014-07-09  Pedro Alves  <palves@redhat.com>
3072
3073         * infcmd.c (attach_command_post_wait): Don't call
3074         target_terminal_inferior here.
3075         (attach_command): Call it here instead.
3076
3077 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
3078
3079         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3080         field.
3081         * c-varobj.c (c_is_path_expr_parent): New function, moved core
3082         from varobj.c, with additional checks.
3083         (c_varobj_ops): Fill in is_path_expr_parent field.
3084         (cplus_varobj_ops): Fill in is_path_expr_parent field.
3085         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3086         field.
3087         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3088         ops method.
3089         (varobj_default_is_path_expr_parent): New function.
3090         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3091         (varobj_default_is_path_expr_parent): Declare new function.
3092
3093 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
3094
3095         * infcmd.c (finish_backward): Turn internal error into normal error.
3096
3097 2014-07-07  Pedro Alves  <palves@redhat.com>
3098
3099         PR gdb/17096
3100         * remote.c (async_handle_remote_sigint)
3101         (async_handle_remote_sigint_twice): Call
3102         gdb_call_async_signal_handler instead of
3103         mark_async_signal_handler.
3104
3105 2014-07-07  Tom Tromey  <tromey@redhat.com>
3106
3107         * target-delegates.c: Rebuild.
3108         * target.c (target_info_record): Remove.
3109         * record.c (info_record_command): Unconditionally call
3110         to_info_record.
3111         * target.h (struct target_ops) <to_info_record>: Use
3112         TARGET_DEFAULT_IGNORE.
3113         (target_info_record): Remove.
3114
3115 2014-07-07  Tom Tromey  <tromey@redhat.com>
3116
3117         * target.h (struct target_ops) <to_get_thread_local_address>: Use
3118         TARGET_DEFAULT_NORETURN.
3119         * target.c (generic_tls_error): New function.
3120         (target_translate_tls_address): Don't search target stack.
3121         * target-delegates.c: Rebuild.
3122         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3123         stack.
3124         * linux-thread-db.c (thread_db_get_thread_local_address):
3125         Unconditionally call beneath target.
3126
3127 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
3128
3129         * cli/cli-logging.c (pop_output_files): Assign targerr to
3130         gdb_stdtargerr.
3131
3132 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
3133
3134         * MAINTAINERS (Write After Approval): Update my email address.
3135
3136 2014-07-02  Gary Benson  <gbenson@redhat.com>
3137
3138         * proc-service.c (ps_xfer_memory): Update comment.
3139         (ps_pstop): Remove unused function.
3140         (ps_pcontinue): Likewise.
3141         (ps_lstop): Likewise.
3142         (ps_lcontinue): Likewise.
3143         (ps_lgetxregsize): Likewise.
3144         (ps_lgetxregs): Likewise.
3145         (ps_lsetxregs): Likewise.
3146         (ps_plog): Likewise.
3147         (ps_ptread): Likewise.
3148         (ps_ptwrite): Likewise.
3149
3150 2014-07-01  Mark Wielaard  <mjw@redhat.com>
3151
3152         * dwarf2read.c (add_array_cv_type): New function.
3153         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3154         (read_tag_volatile_type): Likewise.
3155
3156 2014-07-01  Tom Tromey  <tromey@redhat.com>
3157
3158         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3159         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3160         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3161         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3162         * command.h (cmd_cfunc_ftype): Move earlier.
3163         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3164         (add_com, add_info): Use cmd_cfunc_ftype.
3165
3166 2014-06-30  Tom Tromey  <tromey@redhat.com>
3167
3168         * symtab.c (operator_chars): Make parameters and return type
3169         const.
3170         (file_matches): Make "files" const.
3171         (struct search_symbols_data) <files>: Now const.
3172         (search_symbols): Make "regexp" and "files" parameters const.
3173         Update.
3174         (symtab_symbol_info): Remove cast.
3175         (rbreak_command): Update.
3176         * symtab.h (search_symbols): Update.
3177
3178 2014-06-27  Yao Qi  <yao@codesourcery.com>
3179
3180         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3181         Change parameter type to 'struct thread_info *'.  Caller
3182         updated.
3183         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3184         Update declaration.
3185         * dummy-frame.c (struct dummy_frame_id): New.
3186         (dummy_frame_id_eq): New function.
3187         (struct dummy_frame) <id>: Change its type to 'struct
3188         dummy_frame_id'.
3189         (dummy_frame_push): Add parameter ptid and save it in
3190         dummy_frame_id.
3191         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3192         inferior_ptid.
3193         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3194         to inferior_ptid.
3195         (lookup_dummy_frame): Change parameter type to 'struct
3196         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
3197         instead of frame_id_eq.
3198         (dummy_frame_pop): Add parameter ptid.  Callers updated.
3199         Update comments.  Compose dummy_frame_id and pass it to
3200         lookup_dummy_frame.
3201         (dummy_frame_discard): Add parameter ptid.
3202         (dummy_frame_sniffer): Compose dummy_frame_id and call
3203         dummy_frame_id_eq instead of frame_id_eq.
3204         (fprint_dummy_frames): Print ptid.
3205         * dummy-frame.h: Remove comments.
3206         (dummy_frame_push): Add ptid in declaration.
3207         (dummy_frame_pop, dummy_frame_discard): Likewise.
3208
3209 2014-06-26  Tom Tromey  <tromey@redhat.com>
3210
3211         * cli/cli-cmds.c (error_no_arg): Make "why" const.
3212         * command.h (error_no_arg): Update.
3213
3214 2014-06-26  Tom Tromey  <tromey@redhat.com>
3215
3216         * cli/cli-setshow.c (do_set_command): Make "arg" const.
3217         (do_show_command): Make "arg" const.
3218         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3219
3220 2014-06-26  Tom Tromey  <tromey@redhat.com>
3221
3222         * record-full.c (record_full_get_bookmark): Make "args" const.
3223         (record_full_goto_bookmark): Make "raw_bookmark" const.
3224         * record.c (record_goto): New function.
3225         (cmd_record_goto): Use it.  Now static.
3226         * record.h (record_goto): Declare.
3227         (cmd_record_goto): Remove declaration.
3228         * target-delegates.c: Rebuild.
3229         * target.h (struct target_ops) <to_get_bookmark,
3230         to_goto_bookmark>: Make parameter const.
3231
3232 2014-06-26  Tom Tromey  <tromey@redhat.com>
3233
3234         * defs.h (generic_load): Update.
3235         * m32r-rom.c (m32r_load_gen): Make "filename" const.
3236         * monitor.c (monitor_load): Make "args" const.
3237         * remote-m32r-sdi.c (m32r_load): Make "args" const.
3238         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3239         const.
3240         (mips_load): Make "file" const.
3241         * remote-sim.c (gdbsim_load): Make "args" const.
3242         * remote.c (remote_load): Make "name" const.
3243         * symfile.c (generic_load): Make "args" const.
3244         * target-delegates.c: Rebuild.
3245         * target.c (target_load): Make "arg" const.
3246         (debug_to_load): Make "args" const.
3247         * target.h (struct target_ops) <to_load>: Make parameter const.
3248         (target_load): Update.
3249
3250 2014-06-26  Tom Tromey  <tromey@redhat.com>
3251
3252         PR symtab/16902:
3253         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3254         (dwarf2_physname, read_partial_die)
3255         (guess_partial_die_structure_name, fixup_partial_die)
3256         (guess_full_die_structure_name, anonymous_struct_prefix)
3257         (dwarf2_name): Use per-BFD obstack.
3258
3259 2014-06-26  Yao Qi  <yao@codesourcery.com>
3260
3261         * dummy-frame.c (dummy_frame_sniffer): Move local variables
3262         dummyframe and this_id into inner block below.
3263
3264 2014-06-26  Yao Qi  <yao@codesourcery.com>
3265
3266         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3267         with "signal_pass[0]" in the initialization of signal_pass.
3268
3269 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
3270
3271         * record-btrace.c (record_btrace_generating_corefile)
3272         (record_btrace_prepare_to_generate_core)
3273         (record_btrace_done_generating_core): New.
3274         (record_btrace_xfer_partial, record_btrace_fetch_registers)
3275         (record_btrace_store_registers, record_btrace_prepare_to_store):
3276         Forward request when generating a core file.
3277         (record_btrace_open): Set record_btrace_generating_corefile to zero.
3278         (init_record_btrace_ops): Set to_prepare_to_generate_core and
3279         to_done_generating_core.
3280
3281 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
3282
3283         * target.h (target_ops) <to_prepare_to_generate_core>
3284         <to_done_generating_core>: New.
3285         (target_prepare_to_generate_core, target_done_generating_core): New.
3286         * target.c (target_prepare_to_generate_core)
3287         (target_done_generating_core): New.
3288         * target-delegates.c: Regenerate.
3289         * gcore.c: (write_gcore_file): Rename to ...
3290         (write_gcore_file_1): ...this.
3291         (write_gcore_file): Call target_prepare_to_generate_core
3292         and target_done_generating_core.
3293
3294 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
3295
3296         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3297         * gcore.c (write_gcore_file): Free memory returned from
3298         make_corefile_notes.
3299         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3300         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3301
3302 2014-06-24  Yao Qi  <yao@codesourcery.com>
3303
3304         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3305         (arm_linux_init_abi): Set skip_trampoline_code with
3306         gdbarch_skip_trampoline_code instead of
3307         find_solib_trampoline_target.
3308
3309 2014-06-24  Yao Qi  <yao@codesourcery.com>
3310
3311         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3312         arm_skip_bx_reg returns non-zero.
3313
3314 2014-06-24  Yao Qi  <yao@codesourcery.com>
3315
3316         * arm-tdep.c (arm_skip_bx_reg): New function.
3317         (arm_skip_stub): Call arm_skip_bx_reg.
3318
3319 2014-06-23  Don Breazeal  <donb@codesourcery.com>
3320
3321         * MAINTAINERS: Add myself as write-after-approval maintainer.
3322
3323 2014-06-23  Pedro Alves  <palves@redhat.com>
3324
3325         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3326         DR_CONTROL before setting DR0..DR3.
3327         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3328         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3329         bits of DR_CONTROL related to the debug register slot being
3330         disabled.  If all slots are vacant, clear local slowdown as well,
3331         and assert DR_CONTROL is 0.
3332
3333 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
3334
3335         * python/lib/gdb/command/xmethods.py
3336         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
3337         current progspace only if the string "progspace" matches LOCUS_RE.
3338
3339 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
3340
3341         Fix --with-system-readline with readline-6.3 patch 5.
3342         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3343         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3344         types.
3345
3346 2014-06-20  Tom Tromey  <tromey@redhat.com>
3347
3348         * dwarf2read.c (dw2_get_real_path): Use correct type in
3349         OBSTACK_CALLOC.
3350         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3351
3352 2014-06-20  Gary Benson  <gbenson@redhat.com>
3353
3354         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
3355         * common/glibc_thread_db.h: Likewise.
3356         * common/i386-cpuid.h: Likewise.
3357         * common/i386-gcc-cpuid.h: Likewise.
3358         * common/linux-btrace.h: Likewise.
3359         * common/linux-osdata.h: Likewise.
3360         * common/linux-procfs.h: Likewise.
3361         * common/linux-ptrace.h: Likewise.
3362         * common/mips-linux-watch.h: Likewise.
3363         * common/linux-btrace.c: Moved to nat.
3364         * common/linux-osdata.c: Likewise.
3365         * common/linux-procfs.c: Likewise.
3366         * common/linux-ptrace.c: Likewise.
3367         * common/mips-linux-watch.c: Likewise.
3368         * nat/gdb_thread_db.h: Moved from common.
3369         * nat/glibc_thread_db.h: Likewise.
3370         * nat/i386-cpuid.h: Likewise.
3371         * nat/i386-gcc-cpuid.h: Likewise.
3372         * nat/linux-btrace.c: Likewise.
3373         * nat/linux-btrace.h: Likewise.
3374         * nat/linux-osdata.c: Likewise.
3375         * nat/linux-osdata.h: Likewise.
3376         * nat/linux-procfs.c: Likewise.
3377         * nat/linux-procfs.h: Likewise.
3378         * nat/linux-ptrace.c: Likewise.
3379         * nat/linux-ptrace.h: Likewise.
3380         * nat/mips-linux-watch.c: Likewise.
3381         * nat/mips-linux-watch.h: Likewise.
3382         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3383         (object file files): Reordered.
3384         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3385         of glibc_thread_db.h.
3386
3387 2014-06-20  Gary Benson  <gbenson@redhat.com>
3388
3389         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3390         (i386_dr_low_type): Moved to nat/i386-dregs.h.
3391         (i386_dr_low): Likewise.
3392         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3393         (i386_dr_low_set_addr): Likewise.
3394         (i386_dr_low_get_addr): Likewise.
3395         (i386_dr_low_can_set_control): Likewise.
3396         (i386_dr_low_set_control): Likewise.
3397         (i386_dr_low_get_control): Likewise.
3398         (i386_dr_low_get_status): Likewise.
3399         (i386_get_debug_register_length): Likewise.
3400         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3401         (i386_dr_low): Likewise.
3402         * nat/i386-dregs.c (i386-low.h): Remove include.
3403         (i386-nat.h): Likewise.
3404         (nat/i386-dregs.h): New include.
3405         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3406         (i386_dr_low_set_addr): Likewise.
3407         (i386_dr_low_get_addr): Likewise.
3408         (i386_dr_low_can_set_control): Likewise.
3409         (i386_dr_low_set_control): Likewise.
3410         (i386_dr_low_get_control): Likewise.
3411         (i386_dr_low_get_status): Likewise.
3412         (i386_get_debug_register_length): Likewise.
3413         (debug_hw_points): Likewise.
3414
3415 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
3416
3417         * Makefile.in (SFILES): Add d-exp.y.
3418         (YYFILES): Add d-exp.c.
3419         (YYOBJ): Add d-exp.o.
3420         (local-maintainer-clean): Delete d-exp.c.
3421         * d-exp.y: New file.
3422         * d-lang.h (d_parse): New declaration.
3423         (d_error): New declaration.
3424         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3425         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3426         PREC_ORDER operators.
3427         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3428
3429 2014-06-19  Yao Qi  <yao@codesourcery.com>
3430
3431         * gdbthread.h (any_running): Remove the declaration.
3432         * thread.c (any_running): Remove.
3433
3434 2014-06-19  Yao Qi  <yao@codesourcery.com>
3435
3436         * gdbthread.h (struct thread_info) <state>: Change its type to
3437         'enum thread_state'.  Update comments.
3438
3439 2014-06-19  Pedro Alves  <palves@redhat.com>
3440
3441         * gdbthread.h (ALL_THREADS): Delete.
3442         (ALL_NON_EXITED_THREADS): New macro.
3443         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3444         instead of ALL_THREADS.
3445         * infrun.c (find_thread_needs_step_over)
3446         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3447         instead of ALL_THREADS.
3448         * record-btrace.c (record_btrace_open)
3449         (record_btrace_stop_recording, record_btrace_close)
3450         (record_btrace_is_replaying, record_btrace_resume)
3451         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3452         * remote.c (append_pending_thread_resumptions): Likewise.
3453         * thread.c (thread_apply_all_command): Likewise.
3454
3455 2014-06-19  Gary Benson  <gbenson@redhat.com>
3456
3457         * i386-nat.c (i386_stopped_by_watchpoint):
3458         Use i386_dr_stopped_by_watchpoint.
3459         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3460         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3461
3462 2014-06-19  Gary Benson  <gbenson@redhat.com>
3463
3464         * nat/i386-dregs.c: New file.
3465         * Makefile.in (i386-dregs.o): New rule.
3466         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3467         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3468         * config/i386/darwin.mh (NATDEPFILES): Likewise.
3469         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3470         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3471         * config/i386/go32.mh (NATDEPFILES): Likewise.
3472         * config/i386/linux.mh (NATDEPFILES): Likewise.
3473         * config/i386/linux64.mh (NATDEPFILES): Likewise.
3474         * config/i386/mingw.mh (NATDEPFILES): Likewise.
3475         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3476         * i386-nat.h (debug_hw_points): New declaration.
3477         * i386-nat.c (breakpoint.h): Remove include.
3478         (command.h): Likewise.
3479         (target.h): Likewise.
3480         (gdb_assert.h): Likewise.
3481         (debug_hw_points): Made nonstatic.
3482         (debug_printf): Now in i386-dregs.c.
3483         (TARGET_HAS_DR_LEN_8): Likewise.
3484         (DR_CONTROL_SHIFT): Likewise.
3485         (DR_CONTROL_SIZE): Likewise.
3486         (DR_RW_EXECUTE): Likewise.
3487         (DR_RW_WRITE): Likewise.
3488         (DR_RW_READ): Likewise.
3489         (DR_RW_IORW): Likewise.
3490         (DR_LEN_1): Likewise.
3491         (DR_LEN_2): Likewise.
3492         (DR_LEN_4): Likewise.
3493         (DR_LEN_8): Likewise.
3494         (DR_LOCAL_ENABLE_SHIFT): Likewise.
3495         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3496         (DR_ENABLE_SIZE): Likewise.
3497         (DR_LOCAL_SLOWDOWN): Likewise.
3498         (DR_GLOBAL_SLOWDOWN): Likewise.
3499         (DR_CONTROL_RESERVED): Likewise.
3500         (I386_DR_CONTROL_MASK): Likewise.
3501         (I386_DR_VACANT): Likewise.
3502         (I386_DR_LOCAL_ENABLE): Likewise.
3503         (I386_DR_GLOBAL_ENABLE): Likewise.
3504         (I386_DR_DISABLE): Likewise.
3505         (I386_DR_SET_RW_LEN): Likewise.
3506         (I386_DR_GET_RW_LEN): Likewise.
3507         (I386_DR_WATCH_HIT): Likewise.
3508         (i386_wp_op_t): Likewise.
3509         (i386_show_dr): Likewise.
3510         (i386_length_and_rw_bits): Likewise.
3511         (i386_insert_aligned_watchpoint): Likewise.
3512         (i386_remove_aligned_watchpoint): Likewise.
3513         (i386_handle_nonaligned_watchpoint): Likewise.
3514         (i386_update_inferior_debug_regs): Likewise.
3515         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3516         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3517         (i386_region_ok_for_watchpoint):
3518         Use i386_dr_region_ok_for_watchpoint.
3519         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3520
3521 2014-06-19  Gary Benson  <gbenson@redhat.com>
3522
3523         * i386-nat.c (i386_insert_hw_breakpoint): Use
3524         i386_insert_watchpoint.
3525         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3526
3527 2014-06-19  Gary Benson  <gbenson@redhat.com>
3528
3529         * i386-nat.c (i386_dr_show): Renamed to
3530         i386_show_dr and made static.  All uses updated.
3531         (i386_dr_length_and_rw_bits): Renamed to
3532         i386_length_and_rw_bits and made static.
3533         All uses updated.
3534         (i386_dr_insert_aligned_watchpoint): Renamed to
3535         i386_insert_aligned_watchpoint and made static.
3536         All uses updated.
3537         (i386_dr_remove_aligned_watchpoint): Renamed to
3538         i386_remove_aligned_watchpoint and made static.
3539         All uses updated.
3540         (i386_dr_update_inferior_debug_regs): Renamed to
3541         i386_update_inferior_debug_regs and made static.
3542         All uses updated.
3543         * nat/i386-dregs.h (i386_dr_show): Removed.
3544         (i386_dr_length_and_rw_bits): Likewise.
3545         (i386_dr_insert_aligned_watchpoint): Likewise.
3546         (i386_dr_remove_aligned_watchpoint): Likewise.
3547         (i386_dr_update_inferior_debug_regs): Likewise.
3548
3549 2014-06-19  Gary Benson  <gbenson@redhat.com>
3550
3551         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3552         * configure: Regenerate.
3553         * config.in: Likewise.
3554         * main.c (signal.h): New include.
3555         (setup_alternate_signal_stack): New function.
3556         (captured_main): Call the above.
3557         * cp-support.c (signal.h): New include.
3558         (catch_demangler_crashes): New flag.
3559         (SIGJMP_BUF): New define.
3560         (SIGSETJMP): Likewise.
3561         (SIGLONGJMP): Likewise.
3562         (gdb_demangle_jmp_buf): New static global.
3563         (gdb_demangle_attempt_core_dump): Likewise.
3564         (gdb_demangle_signal_handler): New function.
3565         (gdb_demangle): If catch_demangler_crashes is set, install the
3566         above signal handler before calling bfd_demangle, and restore
3567         the original signal handler afterwards.  Display the offending
3568         symbol and call demangler_warning the first time a segmentation
3569         fault is caught.
3570         (_initialize_cp_support): New maint set/show command.
3571
3572 2014-06-19  Gary Benson  <gbenson@redhat.com>
3573
3574         * utils.h (resource_limit_kind): New enum.
3575         (can_dump_core): New declaration.
3576         (warn_cant_dump_core): Likewise.
3577         (dump_core): Likewise.
3578         * utils.c (dump_core): Made nonstatic.  Added new
3579         parameter "limit_kind".
3580         (can_dump_core): Made nonstatic. Moved printing code to...
3581         (warn_cant_dump_core): New function.
3582         (can_dump_core_warn): Likewise.
3583         (internal_vproblem): Replace calls to can_dump_core with
3584         calls to can_dump_core_warn.  Supply new argument to each.
3585
3586 2014-06-19  Gary Benson  <gbenson@redhat.com>
3587
3588         * utils.h (demangler_vwarning): New declaration.
3589         (demangler_warning): Likewise.
3590         * utils.c (struct internal_problem)
3591         <user_settable_should_quit>: New field.
3592         <user_settable_should_dump_core>: Likewise
3593         (internal_error_problem): Add values for above new fields.
3594         (internal_warning_problem): Likewise.
3595         (demangler_warning_problem): New static global.
3596         (demangler_vwarning): New function.
3597         (demangler_warning): Likewise.
3598         (add_internal_problem_command): Selectively add commands.
3599         (_initialize_utils): New internal problem command.
3600         * maint.c (maintenance_demangler_warning): New function.
3601         (_initialize_maint_cmds): New command.
3602
3603 2014-06-18  Tom Tromey  <tromey@redhat.com>
3604
3605         * f-valprint.c (info_common_command_for_block): Update.
3606         * symtab.h (struct general_symbol_info) <common_block>: Now
3607         const.
3608
3609 2014-06-18  Tom Tromey  <tromey@redhat.com>
3610
3611         * symtab.h (struct symtab) <blockvector>: Now const.
3612         * ada-lang.c (ada_add_global_exceptions): Update.
3613         * buildsym.c (augment_type_symtab): Update.
3614         * dwarf2read.c (dw2_lookup_symbol): Update.
3615         * jit.c (finalize_symtab): Update.
3616         * jv-lang.c (add_class_symtab_symbol): Update.
3617         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3618         Update.
3619         * objfiles.c (objfile_relocate1): Update.
3620         * psymtab.c (lookup_symbol_aux_psymtabs)
3621         (maintenance_check_psymtabs): Update.
3622         * python/py-symtab.c (stpy_global_block, stpy_static_block):
3623         Update.
3624         * spu-tdep.c (spu_catch_start): Update.
3625         * symmisc.c (dump_symtab_1): Update.
3626         * symtab.c (lookup_global_symbol_from_objfile)
3627         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3628         (basic_lookup_transparent_type_quick)
3629         (basic_lookup_transparent_type, find_pc_sect_symtab)
3630         (find_pc_sect_line, search_symbols): Update.
3631         * block.c (find_block_in_blockvector): Make "bl" const.
3632         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3633         const.
3634         (blockvector_contains_pc): Make "bv" const.
3635         (block_for_pc_sect): Update.
3636         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3637         (blockvector_contains_pc): Update.
3638         * breakpoint.c (resolve_sal_pc): Update.
3639         * inline-frame.c (block_starting_point_at): Update.
3640
3641 2014-06-18  Tom Tromey  <tromey@redhat.com>
3642
3643         * completer.c (complete_line): Make "line_buffer" const.
3644         * completer.h (complete_line): Update.
3645
3646 2014-06-18  Tom Tromey  <tromey@redhat.com>
3647
3648         * symtab.c (add_macro_name): Remove unneeded cast.
3649
3650 2014-06-18  Tom Tromey  <tromey@redhat.com>
3651
3652         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3653         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3654
3655 2014-06-18  Tom Tromey  <tromey@redhat.com>
3656
3657         * probe.c (info_probes_for_ops): Make "arg" const.
3658         * probe.h (info_probes_for_ops): Update.
3659
3660 2014-06-18  Tom Tromey  <tromey@redhat.com>
3661
3662         * varobj.c (varobj_create): Update.
3663         * valops.c (value_of_this): Update.
3664         * tracepoint.c (add_local_symbols, scope_info): Update.
3665         * symtab.h (struct general_symbol_info) <block>: Now const.
3666         * symtab.c (skip_prologue_sal)
3667         (default_make_symbol_completion_list_break_on)
3668         (skip_prologue_using_sal): Update.
3669         * stack.h (iterate_over_block_locals)
3670         (iterate_over_block_local_vars): Update.
3671         * stack.c (print_frame_args): Update.
3672         (iterate_over_block_locals, iterate_over_block_local_vars): Make
3673         parameter const.
3674         (get_selected_block): Make return type const.
3675         * python/py-frame.c (frapy_block): Update.
3676         * python/py-block.c (gdbpy_block_for_pc): Update.
3677         * p-exp.y (%union) <bval>: Now const.
3678         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3679         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3680         * m2-exp.y (%union) <bval>: Now const.
3681         * linespec.c (get_current_search_block): Make return type const.
3682         (create_sals_line_offset, find_label_symbols): Update.
3683         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3684         Update.
3685         (block_starting_point_at): Make "block" const.
3686         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3687         (check_exception_resume): Update.
3688         * guile/scm-frame.c (gdbscm_frame_block): Update.
3689         * guile/scm-block.c (gdbscm_lookup_block): Update.
3690         * frame.h (get_frame_block): Update.
3691         (get_selected_block): Make return type const.
3692         * frame.c (frame_id_inner): Update.
3693         * f-valprint.c (info_common_command_for_block)
3694         (info_common_command): Update.
3695         * dwarf2loc.c (dwarf2_find_location_expression)
3696         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3697         (locexpr_describe_location_piece): Update.
3698         * c-exp.y (%union) <bval>: Now const.
3699         * breakpoint.c (resolve_sal_pc): Update.
3700         * blockframe.c (get_frame_block):Make return type const.
3701         (get_pc_function_start, get_frame_function, find_pc_sect_function)
3702         (block_innermost_frame): Update.
3703         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3704         (block_for_pc, block_for_pc_sect): Update.
3705         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3706         'pblock' const.
3707         (block_for_pc_sect, block_for_pc): Make return type const.
3708         * ax-gdb.c (gen_expr): Update.
3709         * alpha-mdebug-tdep.c (find_proc_desc): Update.
3710         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3711         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3712         (ada_read_var_value): Update.
3713         * ada-exp.y (struct name_info) <block>: Now const.
3714         (%union): Likewise.
3715         (block_lookup): Constify.
3716
3717 2014-06-18  Gary Benson  <gbenson@redhat.com>
3718
3719         * nat/i386-dregs.h: New file.
3720         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3721         * i386-nat.h (i386-dregs.h): New include.
3722         (DR_FIRSTADDR): Now in i386-dregs.h.
3723         (DR_LASTADDR): Likewise.
3724         (DR_NADDR): Likewise.
3725         (DR_STATUS): Likewise.
3726         (DR_CONTROL): Likewise.
3727         (i386_debug_reg_state): Likewise.
3728         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3729
3730 2014-06-18  Don Breazeal  <donb@codesourcery.com>
3731
3732         * breakpoint.c (set_longjmp_breakpoint): Call
3733         momentary_breakpoint_from_master with additional argument.
3734         (set_longjmp_breakpoint_for_call_dummy): Call
3735         momentary_breakpoint_from_master with additional argument.
3736         (set_std_terminate_breakpoint): Call
3737         momentary_breakpoint_from_master with additional argument.
3738         (momentary_breakpoint_from_master): Add argument to function
3739         definition and use it to initialize structure member flag.
3740         (clone_momentary_breakpoint): Call
3741         momentary_breakpoint_from_master with additional argument.
3742         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3743         member flags set in momentary_breakpoint_from_master.
3744
3745 2014-06-18  Gary Benson  <gbenson@redhat.com>
3746
3747         * i386-nat.c (i386_show_dr): Renamed to
3748         i386_dr_show and made nonstatic.  All uses updated.
3749         (i386_length_and_rw_bits): Renamed to
3750         i386_dr_length_and_rw_bits and made nonstatic.
3751         All uses updated.
3752         (i386_insert_aligned_watchpoint): Renamed to
3753         i386_dr_insert_aligned_watchpoint and made nonstatic.
3754         All uses updated.
3755         (i386_remove_aligned_watchpoint): Renamed to
3756         i386_dr_remove_aligned_watchpoint and made nonstatic.
3757         All uses updated.
3758         (i386_update_inferior_debug_regs): Renamed to
3759         i386_dr_update_inferior_debug_regs and made nonstatic.
3760         All uses updated.
3761
3762 2014-06-18  Gary Benson  <gbenson@redhat.com>
3763
3764         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3765         (i386_dr_low_can_set_control): Likewise.
3766         (i386_dr_low_set_addr): Likewise.
3767         (i386_dr_low_set_control): Likewise.
3768         (i386_dr_low_get_addr): Likewise.
3769         (i386_dr_low_get_status): Likewise.
3770         (i386_dr_low_get_control): Likewise.
3771         (i386_insert_aligned_watchpoint): Use new macros.
3772         (i386_update_inferior_debug_regs): Likewise.
3773         (i386_stopped_data_address): Likewise.
3774
3775 2014-06-18  Gary Benson  <gbenson@redhat.com>
3776
3777         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3778         New parameter.  All uses updated.
3779
3780 2014-06-18  Gary Benson  <gbenson@redhat.com>
3781
3782         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3783         All uses updated.
3784
3785 2014-06-18  Gary Benson  <gbenson@redhat.com>
3786
3787         * i386-nat.c (debug_printf): New macro.
3788         (i386_get_debug_register_length): Likewise.
3789         (TARGET_HAS_DR_LEN_8): Use above macro.
3790         (i386_show_dr): Use debug_printf instead of puts_unfiltered
3791         and printf_unfiltered.  Use phex to format values.
3792
3793 2014-06-18  Gary Benson  <gbenson@redhat.com>
3794
3795         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3796         Make const.
3797
3798 2014-06-18  Gary Benson  <gbenson@redhat.com>
3799
3800         * i386-nat.c: Comment changes.
3801
3802 2014-06-18  Gary Benson  <gbenson@redhat.com>
3803
3804         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3805
3806 2014-06-18  Gary Benson  <gbenson@redhat.com>
3807
3808         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3809         (i386_insert_aligned_watchpoint): Likewise.
3810         (i386_remove_aligned_watchpoint): Likewise.
3811         (i386_handle_nonaligned_watchpoint): Likewise.
3812
3813 2014-06-18  Gary Benson  <gbenson@redhat.com>
3814
3815         * i386-nat.c: Whitespace changes.
3816
3817 2014-06-17  Samuel Bronson  <naesten@gmail.com>
3818
3819         * MAINTAINERS: Update Roland McGrath's email address.
3820         Thanks to Sergio Durigan Junior for pointing out that he left
3821         Red Hat a while ago, and giving me a current address.
3822
3823 2014-06-17  Tom Tromey  <tromey@redhat.com>
3824
3825         * utils.h (savestring): Remove declaration.
3826
3827 2014-06-17  Tom Tromey  <tromey@redhat.com>
3828
3829         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3830
3831 2014-06-16  Keith Seitz  <keiths@redhat.com>
3832
3833         PR mi/15863
3834         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3835         to update the varobj if inferior_ptid is null_ptid.
3836
3837 2014-06-16  Tom Tromey  <tromey@redhat.com>
3838
3839         * target.h (struct target_ops) <to_info_proc>: Make parameter
3840         const.
3841         (target_info_proc): Update.
3842         * target.c (target_info_proc): Make "args" const.
3843         * procfs.c (procfs_info_proc): Update.
3844         * linux-tdep.c (linux_info_proc): Update.
3845         (linux_core_info_proc_mappings): Make "args" const.
3846         (linux_core_info_proc): Update.
3847         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3848         * gdbarch.c: Rebuild.
3849         * gdbarch.h: Rebuild.
3850         * corelow.c (core_info_proc): Update.
3851
3852 2014-06-16  Tom Tromey  <tromey@redhat.com>
3853
3854         * target.h (struct target_ops) <to_disconnect>: Make parameter
3855         const.
3856         (target_disconnect): Update.
3857         * target.c (target_disconnect): Make "args" const.
3858         * target-delegates.c: Rebuild.
3859         * remote.c (remote_disconnect): Update.
3860         * record.h (record_disconnect): Update.
3861         * record.c (record_disconnect): Update.
3862         * inf-child.c (inf_child_disconnect): Update.
3863
3864 2014-06-16  Tom Tromey  <tromey@redhat.com>
3865
3866         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3867         * target.c (debug_to_rcmd, default_rcmd): Update.
3868         * target-delegates.c: Rebuild.
3869         * remote.c (remote_rcmd): Update.
3870         * monitor.c (monitor_rcmd): Update.
3871
3872 2014-06-16  Pedro Alves  <palves@redhat.com>
3873
3874         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3875         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3876         have OBJF_SHARED set.
3877         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3878         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
3879         instead of OBJF_USERLOADED.
3880         * objfiles.h (OBJF_SHARED): Update comment.
3881         (userloaded_objfile_contains_address_p): Rename to ...
3882         (shared_objfile_contains_address_p): ... this, and update
3883         comments.
3884         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3885         new objfile.
3886         (remove_symbol_file_command): Skip objfiles that don't have
3887         OBJF_SHARED set.
3888
3889 2014-06-16  Tom Tromey  <tromey@redhat.com>
3890
3891         * minsyms.h (prim_record_minimal_symbol)
3892         (prim_record_minimal_symbol_and_info): Update comments.
3893
3894 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
3895
3896         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3897         or --without-guile, according to how GDB was built.
3898
3899 2014-06-13  Tom Tromey  <tromey@redhat.com>
3900
3901         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3902         to help_list.
3903         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3904         to help_list.
3905         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3906         help_list.
3907         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3908         help_list.Pass all_commands, not -1, to help_list.
3909         * cli/cli-dump.c (dump_command, append_command)
3910         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3911         (binary_dump_command, binary_append_command): Pass all_commands,
3912         not -1, to help_list.
3913         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3914         -1, to help_list.
3915         * valprint.c (set_print, set_print_raw): Pass all_commands, not
3916         -1, to help_list.
3917         * typeprint.c (set_print_type): Pass all_commands, not -1, to
3918         help_list.
3919         * top.c (set_history): Pass all_commands, not -1, to help_list.
3920         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3921         all_commands, not -1, to help_list.
3922         * symfile.c (overlay_command): Pass all_commands, not -1, to
3923         help_list.
3924         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3925         help_list.
3926         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3927         help_list.
3928         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3929         -1, to help_list.
3930         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3931         not -1, to help_list.
3932         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3933         not -1, to help_list.
3934         * maint.c (maintenance_command, maintenance_info_command)
3935         (maintenance_print_command, maintenance_set_cmd): Pass
3936         all_commands, not -1, to help_list.
3937         * macrocmd.c (macro_command): Pass all_commands, not -1, to
3938         help_list.
3939         * language.c (set_check): Pass all_commands, not -1, to help_list.
3940         * infcmd.c (unset_command): Pass all_commands, not -1, to
3941         help_list.
3942         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3943         help_list.
3944         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3945         help_list.
3946         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3947         help_list.
3948         * breakpoint.c (save_command): Pass all_commands, not -1, to
3949         help_list.
3950         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3951         all_commands, not -1, to help_list.
3952
3953 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
3954
3955         * regcache.c (struct register_to_invalidate): New structure.
3956         (do_register_invalidate, make_cleanup_regcache_invalidate): New
3957         functions.
3958         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3959
3960 2014-06-12  Yao Qi  <yao@codesourcery.com>
3961
3962         * varobj.c (varobj_get_num_children): Call
3963         varobj_is_dynamic_p.
3964         (varobj_list_children): Likewise.
3965         (varobj_update): Likewise.  Update comments.
3966
3967 2014-06-12  Yao Qi  <yao@codesourcery.com>
3968
3969         * varobj.c (varobj_pretty_printed_p): Rename to ...
3970         (varobj_is_dynamic_p): ... this.  New function.
3971         * varobj.h (varobj_pretty_printed_p): Remove declaration.
3972         (varobj_is_dynamic_p): Declare.
3973         * mi/mi-cmd-var.c (print_varobj): All callers updated.
3974         (mi_print_value_p, varobj_update_one): Likewise.
3975
3976 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
3977             Yao Qi  <yao@codesourcery.com>
3978
3979         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3980         (varobj_get_iterator): Wrap up code for pretty-printer by
3981         "#if HAVE_PYTHON" and "#endif".
3982         (update_dynamic_varobj_children): Likewise.
3983
3984 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
3985             Yao Qi  <yao@codesourcery.com>
3986
3987         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3988         gdb_python_initialized is false.  Move some code from varobj.c.
3989         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3990         * varobj.c: Move "varobj-iter.h" inclusion earlier.
3991         (struct varobj_item): Moved to varobj-iter.h".
3992         (varobj_clear_saved_item): New function.
3993         (update_dynamic_varobj_children): Move python-related code to
3994         py-varobj.c.
3995         (free_variable): Call varobj_clear_saved_item and
3996         varobj_iter_delete.
3997
3998 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
3999             Yao Qi  <yao@codesourcery.com>
4000
4001         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4002         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4003         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4004         (py-varobj.o): New rule.
4005         * python/py-varobj.c: New file.
4006         * python/python-internal.h (py_varobj_get_iterator): Declare.
4007         * varobj-iter.h: New file.
4008         * varobj.c: Include "varobj-iter.h"
4009         (struct varobj) <child_iter>: Change its type from "PyObject *"
4010         to "struct varobj_iter *".
4011         <saved_item>: Likewise.
4012         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4013         [HAVE_PYTHON] (varobj_get_iterator): New function.
4014         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4015         python-specific code to python/py-varobj.c.
4016         (install_visualizer): Call varobj_iter_delete instead of
4017         Py_XDECREF.
4018         * varobj.h (varobj_ensure_python_env): Declare.
4019
4020 2014-06-12  Yao Qi  <yao@codesourcery.com>
4021
4022         * varobj.c (struct varobj_item): New structure.
4023         (create_child_with_value): Update declaration.
4024         (varobj_add_child): Replace arguments 'name' and 'value' with
4025         'item'.  All callers updated.
4026         (install_dynamic_child): Likewise.
4027         (update_dynamic_varobj_children): Likewise.
4028         (varobj_add_child): Likewise.
4029         (create_child_with_value): Likewise.
4030
4031 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
4032
4033         * NEWS: Create a new section for the next release branch.
4034         Rename the section of the current branch, now that it has
4035         been cut.
4036
4037 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
4038
4039         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4040         * version.in: Bump version to 7.8.50.DATE-cvs.
4041
4042 2014-06-11  Pedro Alves  <palves@redhat.com>
4043
4044         PR remote/17028
4045         * ser-mingw.c (net_windows_socket_check_pending): New function.
4046         (net_windows_select_thread): Ignore spurious wakeups.  Use
4047         net_windows_socket_check_pending.
4048         (net_windows_wait_handle): Check for pending events with
4049         ioctlsocket, through net_windows_socket_check_pending, instead of
4050         checking the socket's event.
4051
4052 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
4053
4054         * python/python-internal.h (gdb_PyObject_GetAttrString)
4055         (gdb_PyObject_HasAttrString): New inline function definitions.
4056         * py-value.c (get_field_flag): Remove the now unnecessary cast to
4057         char * of the second argument to PyObject_GetAttrString.
4058
4059 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
4060
4061         * serial.c (serial_write): Fix index of character to be printed
4062         in call to serial_logchar when serial debug traces are enabled.
4063
4064 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
4065
4066         * gdbtypes (resolve_dynamic_range): Add function description.
4067
4068 2014-06-09  Pedro Alves  <palves@redhat.com>
4069
4070         * linux-nat.c (linux_child_follow_fork): Initialize status with
4071         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
4072         inner block.  Only pass the signal to PTRACE_DETACH if in pass
4073         state.
4074
4075 2014-06-09  Gary Benson  <gbenson@redhat.com>
4076
4077         * common/signals.c (gdb_signal_from_host): Reorder to separate
4078         the always-available ANSI-standard signals from the signals that
4079         require checking.
4080         (do_gdb_signal_to_host): Likewise.
4081         * proc-events.c (signal_table): Likewise.
4082
4083 2014-06-08  Hui Zhu  <hui@codesourcery.com>
4084
4085         * common/linux-ptrace.c (linux_disable_event_reporting): New
4086         function.
4087         * common/linux-ptrace.h (linux_disable_event_reporting): New
4088         declaration.
4089         * linux-nat.c (linux_child_follow_fork): Do a single step before
4090         detach.
4091
4092 2014-06-07  Keith Seitz  <keiths@redhat.com>
4093
4094         Revert:
4095         PR c++/16253
4096         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4097         from symbol_matches_domain in symtab.c. All local callers
4098         of symbol_matches_domain updated.
4099         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4100         search STRUCT_DOMAIN.
4101         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4102         independently.  standard_lookup will do that automatically.
4103         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4104         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4105         (cp_lookup_symbol_in_namespace): Likewise.
4106         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4107         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4108         may return a STRUCT_DOMAIN match.
4109         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4110         * cp-support.c: Include language.h.
4111         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4112         VAR_DOMAIN.
4113         * psymtab.c (match_partial_symbol): Compare the requested
4114         domain with the symbol's domain directly.
4115         (lookup_partial_symbol): Likewise.
4116         * symtab.c (lookup_symbol_in_language): Explain when/why
4117         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4118         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4119         appropriate languages.
4120         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4121         and moved to ada-lang.c
4122         (lookup_block_symbol): Explain that this function only returns
4123         symbol matching the requested DOMAIN.
4124         Compare the requested domain with the symbol's domain directly.
4125         (iterate_over_symbols): Compare the requested domain with the
4126         symbol's domain directly.
4127         * symtab.h (symbol_matches_domain): Remove.
4128
4129 2014-06-06  Doug Evans  <xdje42@gmail.com>
4130
4131         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4132         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4133         (gdbscm_guile_version_is_at_least): Declare.
4134         (gdbscm_scm_string_to_int): Declare.
4135         * guile/guile.c (gdbscm_guile_major_version): New global.
4136         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4137         (guile_datadir): New static global.
4138         (gdbscm_guile_data_directory): New function.
4139         (initialize_scheme_side): Update.
4140         (misc_guile_functions): Add guile-data-directory.
4141         (initialize_gdb_module): Fetch guile version number.
4142         * guile/lib/gdb.scm: Remove call to add-to-load-path.
4143         * guile/lib/gdb/init.scm (%initialize!): Ditto.
4144         * guile/lib/gdb/boot.scm: Use guile-data-directory.
4145         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4146         comments.
4147         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4148         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4149         * guile/scm-value.c (gdbscm_value_to_string): Only call
4150         scm_port_conversion_strategy if Guile version >= 2.0.6.
4151
4152 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
4153
4154         * main.c (print_gdb_help): Add -q and --silent.
4155
4156 2014-06-06  Gary Benson  <gbenson@redhat.com>
4157
4158         * common/signals.c: Remove preprocessor conditionals for
4159         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4160         SIGSEGV and SIGTERM.
4161         * proc-events.c: Likewise.
4162
4163 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
4164
4165         * symfile.c (symfile_free_objfile): Remove restriction to
4166         OBJF_USERLOADED.
4167         * symfile-mem.c (symbol_file_add_from_memory): Call
4168         add_target_sections_of_objfile.
4169
4170 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
4171
4172         * guile/scm-value.c (gdbscm_history_append_x): Use
4173         'vlscm_get_value_smob_arg_unsafe' instead of
4174         'vlscm_scm_to_value'.
4175
4176 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
4177
4178         PR mi/15806
4179         * utils.c (printchar): Don't escape at all if quoter is NUL.
4180         Update function documentation to clarify effect of parameter
4181         QUOTER.
4182         * remote.c (escape_buffer): Pass '\\' as the quoter to
4183         fputstrn_unfiltered.
4184         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4185         generate the output.
4186         (mi_solib_unloaded): Same.
4187
4188 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
4189
4190         * development.sh: Delete.
4191         * Makefile.in (config.status): Adjust dependency on development.sh.
4192         * configure.ac: Adjust development.sh source call.
4193         * configure: Regenerate.
4194
4195 2014-06-04  Doug Evans  <xdje42@gmail.com>
4196
4197         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4198         is_scheme_bkpt, spec.
4199         (bpscm_make_breakpoint_smob): Initialize new members.
4200         (gdbscm_create_breakpoint_x): Split into two ...
4201         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4202         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4203         (scheme_function breakpoint_functions): Update.
4204         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
4205         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
4206         register-breakpoint!.
4207
4208 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
4209
4210         PR server/17023
4211         * mem-break.c (z_type_supported): Return zero if
4212         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4213
4214 2014-06-04  Tom Tromey  <tromey@redhat.com>
4215
4216         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4217         value_from_contents_and_address_unresolved.
4218         (ada_template_to_fixed_record_type_1): Likewise.
4219         (ada_which_variant_applies): Likewise.
4220         * value.h (value_from_contents_and_address_unresolved): Declare.
4221         * value.c (value_from_contents_and_address_unresolved): New
4222         function.
4223         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4224         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4225         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4226
4227 2014-06-04  Tom Tromey  <tromey@redhat.com>
4228
4229         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4230
4231 2014-06-04  Tom Tromey  <tromey@redhat.com>
4232
4233         * procfs.c (procfs_attach): Make "args" const.
4234         * windows-nat.c (windows_attach): Make "args" const.
4235         * nto-procfs.c (procfs_attach): Make "args" const.
4236         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4237         * go32-nat.c (go32_attach): Make "args" const.
4238         * gnu-nat.c (gnu_attach): Make "args" const.
4239         * darwin-nat.c (darwin_attach): Make "args" const.
4240         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4241         * linux-nat.c (linux_nat_attach): Make "args" const.
4242         * remote.c (extended_remote_attach_1, extended_remote_attach):
4243         Make "args" const.
4244         * target.h (struct target_ops) <to_attach>: Make "args" const.
4245         (find_default_attach): Likewise.
4246         * utils.c (parse_pid_to_attach): Make "args" const.
4247         * utils.h (parse_pid_to_attach): Update.
4248
4249 2014-06-04  Tom Tromey  <tromey@redhat.com>
4250
4251         * target-delegates.c: Rebuild.
4252         * target.c (default_thread_address_space): New function.
4253         (target_thread_address_space): Simplify.
4254         * target.h (struct target_ops) <to_thread_address_space>: Add
4255         TARGET_DEFAULT_FUNC.
4256
4257 2014-06-04  Doug Evans  <xdje42@gmail.com>
4258
4259         * guile/scm-type.c (type_smob): Remove duplicate typedef.
4260
4261 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
4262
4263         * record-btrace.c: Include event-loop.h and inf-loop.h.
4264         (record_btrace_resume_exec_dir)
4265         (record_btrace_async_inferior_event_handler)
4266         (record_btrace_handle_async_inferior_event): New.
4267         (record_btrace_open): Create async event handler.
4268         (record_btrace_close): Delete async event handler.
4269         (record_btrace_resume): Set record_btrace_resume_exec_dir,
4270         Mark async event handler.
4271         (record_btrace_execution_direction): New.
4272         (init_record_btrace_ops): Initialize to_execution_direction.
4273
4274 2014-06-03  Doug Evans  <xdje42@gmail.com>
4275
4276         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4277         (gdbscm_make_parameter): Ditto.
4278
4279 2014-06-03  Doug Evans  <dje@google.com>
4280
4281         * exec.c (exec_close_1): Call clear_section_table instead of
4282         resize_section_table.
4283         (clear_section_table): New function.
4284         (resize_section_table): Make static.  Rename arg num_added to
4285         adjustment.
4286         * exec.h (clear_section_table): Declare.
4287         (resize_section_table): Delete.
4288         * progspace.c (release_program_space): Call clear_section_table
4289         instead of resize_section_table.
4290
4291 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4292
4293         * NEWS (Python Scripting): Add entry about the new xmethods
4294         feature.
4295
4296 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4297
4298         * python/py-xmethods.c: New file.
4299         * python/py-objfile.c (objfile_object): New field 'xmethods'.
4300         (objfpy_dealloc): XDECREF on the new xmethods field.
4301         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4302         field.
4303         (objfpy_get_xmethods): New function.
4304         (objfile_getset): New entry 'xmethods'.
4305         * python/py-progspace.c (pspace_object): New field 'xmethods'.
4306         (pspy_dealloc): XDECREF on the new xmethods field.
4307         (pspy_new, pspace_to_pspace_object): Initialize xmethods
4308         field.
4309         (pspy_get_xmethods): New function.
4310         (pspace_getset): New entry 'xmethods'.
4311         * python/python-internal.h: Add declarations for new functions.
4312         * python/python.c (_initialize_python): Invoke
4313         gdbpy_initialize_xmethods.
4314         * python/lib/gdb/__init__.py (xmethods): New
4315         attribute.
4316         * python/lib/gdb/xmethod.py: New file.
4317         * python/lib/gdb/command/xmethods.py: New file.
4318
4319 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4320
4321         * eval.c (evaluate_subexp_standard): Call the xmethod if the
4322         best match method returned by find_overload_match is an xmethod.
4323         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4324         the best matching operator returned by find_overload_match is an
4325         xmethod.
4326         * valops.c: #include "extension.h".
4327         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4328         Return void.  The list of matching source methods is returned in
4329         "fn_list" and a vector of matching debug method workers is
4330         returned in "xm_worker_vec".  Update all callers.
4331         (value_find_oload_method_list): Likewise.
4332         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
4333         non-NULL, then the index of the best matching method in this
4334         vector is returned.  Update all callers.
4335         (find_overload_match): Include xmethods while performing overload
4336         resolution.
4337
4338 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4339
4340         * defs.h (enum lval_type): New enumerator "lval_xcallable".
4341         * extension-priv.h (struct extension_language_ops): Add the
4342         xmethod interface.
4343         * extension.c (new_xmethod_worker, clone_xmethod_worker,
4344         get_matching_xmethod_workers, get_xmethod_argtypes,
4345         invoke_xmethod, free_xmethod_worker,
4346         free_xmethod_worker_vec): New functions.
4347         * extension.h: #include "common/vec.h".
4348         New function declarations.
4349         (struct xmethod_worker): New struct.
4350         (VEC (xmethod_worker_ptr)): New vector type.
4351         (xmethod_worker_ptr): New typedef.
4352         (xmethod_worker_vec): Likewise.
4353         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4354         builtin_type.
4355         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4356         (struct builtin_type): New field "xmethod".
4357         * valarith.c (value_ptradd): Assert that the value argument is not
4358         lval_xcallable.
4359         * valops.c (value_must_coerce_to_target): Return 0 for
4360         lval_xcallable values.
4361         * value.c (struct value): New field XM_WORKER in the field
4362         LOCATION.
4363         (value_address, value_raw_address): Return 0 for lval_xcallable
4364         values.
4365         (set_value_address): Assert that the value is not an
4366         lval_xcallable.
4367         (value_free): Free the associated xmethod worker when freeing
4368         lval_xcallable values.
4369         (set_value_component_location): Assert that the WHOLE value is not
4370         lval_xcallable.
4371         (value_of_xmethod, call_xmethod): New functions.
4372         * value.h: Declare "struct xmethod_worker".
4373         Declare new functions value_of_xmethod, call_xmethod.
4374
4375 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
4376             Pedro Alves  <palves@redhat.com>
4377
4378         PR breakpoints/17000
4379         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4380         New function, extracted from software_breakpoint_inserted_here_p.
4381         (software_breakpoint_inserted_here_p): Replace factored out code
4382         by call to find_non_raw_software_breakpoint_inserted_here.
4383         (bp_target_info_copy_insertion_state): New function.
4384         (bkpt_insert_location): Handle the case of a single-step
4385         breakpoint already inserted at the same address.
4386         (bkpt_remove_location): Handle the case of a single-step
4387         breakpoint still inserted at the same address.
4388         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4389         breakpoint already inserted at the same address.
4390         (deprecated_remove_raw_breakpoint): Handle the case of a
4391         non-raw breakpoint still inserted at the same address.
4392         (find_single_step_breakpoint): New function, extracted from
4393         single_step_breakpoint_inserted_here_p.
4394         (find_single_step_breakpoint): New function,
4395         factored out from single_step_breakpoint_inserted_here_p.
4396         (single_step_breakpoint_inserted_here_p): Reimplement.
4397
4398 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
4399
4400         Pushed by Joel Brobecker  <brobecker@adacore.com>
4401         * source.c (show_substitute_path_command): Fix display of matching
4402         substitution rules.
4403
4404 2014-06-03  Gary Benson  <gbenson@redhat.com>
4405
4406         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4407
4408 2014-06-02  Doug Evans  <xdje42@gmail.com>
4409
4410         Add parameter support for Guile.
4411         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4412         (SUBDIR_GUILE_SRCS): Add scm-param.c.
4413         (scm-param.o): New rule.
4414         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4415         (gdbscm_misc_error): Declare.
4416         (gdbscm_canonicalize_command_name): Declare.
4417         (gdbscm_scm_to_host_string): Declare.
4418         (gdbscm_scm_from_host_string): Declare.
4419         (gdbscm_initialize_parameters): Declare.
4420         * guile/guile.c (initialize_gdb_module): Call
4421         gdbscm_initialize_parameters.
4422         * guile/lib/gdb.scm: Export parameter symbols.
4423         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4424         cmdscm_canonicalize_name and made public.  All callers updated.
4425         * guile/scm-exception.c (gdbscm_misc_error): New function.
4426         * guile/scm-param.c: New file.
4427         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4428         (gdbscm_scm_to_host_string): New function.
4429         (gdbscm_scm_from_host_string): New function.
4430         * scm-utils.c (gdbscm_gc_dup_argv): New function.
4431
4432 2014-06-02  Doug Evans  <xdje42@gmail.com>
4433
4434         Add command support for Guile.
4435         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4436         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4437         (scm-cmd.o): New rule.
4438         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4439         (gdbscm_user_error_p): Declare.
4440         (gdbscm_parse_command_name): Declare.
4441         (gdbscm_valid_command_class_p): Declare.
4442         (gdbscm_initialize_commands): Declare.
4443         * guile/guile.c (initialize_gdb_module): Call
4444         gdbscm_initialize_commands.
4445         * guile/lib/gdb.scm: Export command symbols.
4446         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4447         (throw-user-error): New function.
4448         * guile/scm-cmd.c: New file.
4449         * guile/scm-exception.c (user_error_symbol): New static global.
4450         (gdbscm_user_error_p): New function.
4451         (gdbscm_initialize_exceptions): Set user_error_symbol.
4452         * scm-utils.c (gdbscm_gc_xstrdup): New function.
4453
4454 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
4455
4456         * top.c (command_loop): Handle comments here...
4457         (command_line_input): ... not here.
4458
4459 2014-06-02  Doug Evans  <xdje42@gmail.com>
4460
4461         Add progspace support for Guile.
4462         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4463         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4464         (scm-progspace.o): New rule.
4465         * guile/guile-internal.h (pspace_smob): New typedef.
4466         (psscm_pspace_smob_pretty_printers): Declare.
4467         (psscm_pspace_smob_from_pspace): Declare.
4468         (psscm_scm_from_pspace): Declare.
4469         * guile/guile.c (initialize_gdb_module): Call
4470         gdbscm_initialize_pspaces.
4471         * guile/lib/gdb.scm: Export progspace symbols.
4472         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4473         support.
4474         (append-pretty-printer!): Ditto.
4475         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4476         Implement.
4477         * guile/scm-progspace.c: New file.
4478
4479 2014-06-03  Alan Modra  <amodra@gmail.com>
4480
4481         * ppc64-tdep.c (ppc64_standard_linkage8): New.
4482         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4483
4484 2014-06-02  Doug Evans  <dje@google.com>
4485
4486         Add support for skeletonless type units.
4487         * dwarf2read.c (struct dwarf2_per_objfile): New member
4488         n_allocated_type_units.
4489         (struct dwarf2_per_objfile) <tu_stats>: New member
4490         nr_all_type_units_reallocs.
4491         (create_signatured_type_table_from_index): Initialize
4492         n_allocated_type_units
4493         (create_all_type_units): Ditto.
4494         (add_type_unit): Move up in file.  New arg slot.
4495         All callers updated.  Increase space for all_type_units more
4496         efficiently.
4497         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4498         (lookup_dwo_signatured_type): Handle skeletonless TUs.
4499         (lookup_dwp_signatured_type): Ditto.
4500         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4501         All callers updated.
4502         (build_type_psymtabs_1): Leave type_unit_groups as
4503         NULL if no TUs present.
4504         (print_tu_stats): New function.
4505         (process_skeletonless_type_unit): New function.
4506         (process_dwo_file_for_skeletonless_type_units): New
4507         function.
4508         (process_skeletonless_type_units): New function.
4509         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4510         Call print tu_stats if debugging enabled.
4511
4512 2014-06-02  Pedro Alves  <palves@redhat.com>
4513
4514         * breakpoint.c (build_target_command_list): Don't build a command
4515         list if we have any duplicate location that isn't a dprintf.
4516
4517 2014-06-02  Pedro Alves  <palves@redhat.com>
4518
4519         * breakpoint.c (dprintf_breakpoint_hit): New function.
4520         (initialize_breakpoint_ops): Install it as dprintf's
4521         breakpoint_hit method.
4522
4523 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
4524
4525         * source.c (substitute_path_rule_matches): Simplify using
4526         filename_ncmp instead of FILENAME_CMP.
4527
4528 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
4529
4530         * source.c (substitute_path_rule_matches): Remove trailing spaces.
4531
4532 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
4533
4534         * configure.ac: When Guile is available, check for the
4535         availability of 'scm_new_smob'.
4536         * configure, config.h.in: Regenerate.
4537         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4538         function.
4539
4540 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
4541
4542         * frame.c (struct frame_info): Add stop_string field.
4543         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4544         (get_prev_frame_always): Old content moved into
4545         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
4546         TRY_CATCH, handle MEMORY_ERROR exceptions.
4547         (frame_stop_reason_string): New function definition.
4548         * frame.h (unwind_stop_reason_to_string): Extend comment to
4549         mention frame_stop_reason_string.
4550         (frame_stop_reason_string): New function declaration.
4551         * stack.c (frame_info): Switch to frame_stop_reason_string.
4552         (backtrace_command_1): Switch to frame_stop_reason_string.
4553         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4554         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4555         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4556
4557 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
4558
4559         * frame.c (frame_stop_reason_string): Rename to ...
4560         (unwind_stop_reason_to_string): this.
4561         * frame.h (frame_stop_reason_string): Rename to ...
4562         (unwind_stop_reason_to_string): this.
4563         * stack.c (frame_info): Update call to frame_stop_reason_string.
4564         (backtrace_command_1): Likewise.
4565         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4566         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4567
4568 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
4569
4570         * frame.c (remove_prev_frame): New function.
4571         (get_prev_frame_if_no_cycle): Create / discard cleanup using
4572         remove_prev_frame.
4573
4574 2014-05-29  Pedro Alves  <palves@redhat.com>
4575
4576         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4577         and make it const.  When a single-step decays to a continue,
4578         clear 'step', not 'hw_step'.  Pass whether the caller wanted
4579         to step to user_visible_resume_ptid, not what we ask the
4580         target to do.
4581
4582 2014-05-29  Pedro Alves  <palves@redhat.com>
4583
4584         * infrun.c (process_event_stop_test, handle_step_into_function)
4585         (handle_step_into_function_backward): Adjust.
4586         Don't set the even thread's stop_step and call stop_waiting before
4587         calling end_stepping_range.  Instead do that ...
4588         (end_stepping_range): ... here.  Take an ecs pointer parameter.
4589
4590 2014-05-29  Pedro Alves  <palves@redhat.com>
4591
4592         * infrun.c (stop_stepping): Rename to ...
4593         (stop_waiting): ... this.
4594         (proceed): Update comment.
4595         (process_event_stop_test, handle_inferior_event)
4596         (handle_signal_stop, handle_step_into_function)
4597         (handle_step_into_function_backward): Update.
4598
4599 2014-05-29  Pedro Alves  <palves@redhat.com>
4600
4601         * infcall.c (run_inferior_call): Don't check whether the current
4602         thread is running after the proceed call.
4603
4604 2014-05-29  Pedro Alves  <palves@redhat.com>
4605             Tom Tromey  <tromey@redhat.com>
4606
4607         * NEWS: Mention "maint set target-async", "set mi-async", and that
4608         background execution commands are now always available.
4609         * target.h (target_async_permitted): Update comment.
4610         * target.c (target_async_permitted, target_async_permitted_1):
4611         Default to 1.
4612         (set_target_async_command): Rename to ...
4613         (maint_set_target_async_command): ... this.
4614         (show_target_async_command): Rename to ...
4615         (maint_show_target_async_command): ... this.
4616         (_initialize_target): Adjust.
4617         * infcmd.c (prepare_execution_command): Make extern.
4618         * inferior.h (prepare_execution_command): Declare.
4619         * infrun.c (set_observer_mode): Leave target async alone.
4620         * mi/mi-interp.c (mi_interpreter_init): Install
4621         mi_on_sync_execution_done as sync_execution_done observer.
4622         (mi_on_sync_execution_done): New function.
4623         (mi_execute_command_input_handler): Don't print the prompt if we
4624         just started a synchronous command with an async target.
4625         (mi_on_resume): Check sync_execution before printing prompt.
4626         * mi/mi-main.h (mi_async_p): Declare.
4627         * mi/mi-main.c: Include gdbcmd.h.
4628         (mi_async_p): New function.
4629         (mi_async, mi_async_1): New globals.
4630         (set_mi_async_command, show_mi_async_command, mi_async): New
4631         functions.
4632         (exec_continue): Call prepare_execution_command.
4633         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4634         (mi_execute_async_cli_command): Use mi_async_p.
4635         (_initialize_mi_main): Install "set mi-async".  Make
4636         "target-async" a deprecated alias.
4637
4638 2014-05-29  Pedro Alves  <palves@redhat.com>
4639
4640         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4641         (_initialize_cli_interp): Adjust.
4642         * event-loop.c: Include "observer.h".
4643         (start_event_loop): Notify 'command_error' observers instead of
4644         calling display_gdb_prompt.  Remove FIXME comment.
4645         * event-top.c (display_gdb_prompt): Remove call into the
4646         interpreters.
4647         * inf-loop.c: Include "observer.h".
4648         (inferior_event_handler): Notify 'command_error' observers instead
4649         of calling display_gdb_prompt.
4650         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4651         observers instead of calling display_gdb_prompt.
4652         * interps.c (interp_set): Don't call display_gdb_prompt.
4653         (current_interp_display_prompt_p): Delete.
4654         * interps.h (interp_prompt_p): Delete declaration.
4655         (interp_prompt_p_ftype): Delete.
4656         (struct interp_procs) <prompt_proc_p>: Delete field.
4657         (current_interp_display_prompt_p): Delete declaration.
4658         * mi-interp.c (mi_interpreter_prompt_p): Delete.
4659         (_initialize_mi_interp): Adjust.
4660         * tui-interp.c (tui_init): Install 'sync_execution_done' and
4661         'command_error' observers.
4662         (tui_on_sync_execution_done, tui_on_command_error): New
4663         functions.
4664         (tui_display_prompt_p): Delete.
4665         (_initialize_tui_interp): Adjust.
4666
4667 2014-05-29  Pedro Alves  <palves@redhat.com>
4668
4669         PR gdb/13860
4670         * cli/cli-interp.c: Include infrun.h and observer.h.
4671         (cli_uiout, cli_interp): New globals.
4672         (cli_on_signal_received, cli_on_end_stepping_range)
4673         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4674         functions.
4675         (cli_interpreter_init): Install them as 'end_stepping_range',
4676         'signal_received' 'signal_exited', 'exited' and 'no_history'
4677         observers.
4678         (_initialize_cli_interp): Remove cli_interp local.
4679         * infrun.c (handle_inferior_event): Call the several stop reason
4680         observers instead of printing the stop reason directly.
4681         (end_stepping_range): New function.
4682         (print_end_stepping_range_reason, print_signal_exited_reason)
4683         (print_exited_reason, print_signal_received_reason)
4684         (print_no_history_reason): Make static, and add an uiout
4685         parameter.  Print to that instead of to CURRENT_UIOUT.
4686         * infrun.h (print_end_stepping_range_reason)
4687         (print_signal_exited_reason, print_exited_reason)
4688         (print_signal_received_reason print_no_history_reason): New
4689         declarations.
4690         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4691         'mi_uiout'.
4692         <cli_uiout>: New field.
4693         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
4694         uiout for CLI output.  Install 'signal_received',
4695         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4696         observers.
4697         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4698         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4699         (mi_on_no_history): New functions.
4700         (ui_out_free_cleanup): Delete function.
4701         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4702         instead use the one already stored in the MI interpreter data.
4703         (mi_ui_out): Adjust.
4704         * tui/tui-interp.c: Include infrun.h and observer.h.
4705         (tui_interp): New global.
4706         (tui_on_signal_received, tui_on_end_stepping_range)
4707         (tui_on_signal_exited, tui_on_exited)
4708         (tui_on_no_history): New functions.
4709         (tui_init): Install them as 'end_stepping_range',
4710         'signal_received' 'signal_exited', 'exited' and 'no_history'
4711         observers.
4712         (_initialize_tui_interp): Delete tui_interp local.
4713
4714 2014-05-29  Pedro Alves  <palves@redhat.com>
4715
4716         PR gdb/15713
4717         * linux-nat.c (linux_nat_resume_callback): Rename the second
4718         parameter to 'except'.  Skip LP if it points to EXCEPT.
4719         (linux_nat_resume): Don't mark the event lwp as not stopped
4720         before resuming sibling lwps.  Instead ask
4721         linux_nat_resume_callback to skip the event lwp.  Mark it as not
4722         stopped after actually resuming it.
4723         (linux_handle_syscall_trap): Mark the lwp as not stopped after
4724         resuming it.
4725         (wait_lwp): Mark the lwp as stopped here.
4726         (stop_wait_callback): Mark the lwp as not stopped right after
4727         resuming it.  Don't mark lwps as stopped here.
4728         (linux_nat_filter_event): Mark the lwp as stopped earlier.
4729         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4730
4731 2014-05-29  Pedro Alves  <palves@redhat.com>
4732
4733         PR PR15693
4734         * infrun.c (resume): Determine how much to resume depending on
4735         whether the caller wanted a step, not whether we can hardware step
4736         the target.  Mark all threads that we intend to run as running,
4737         unless we're calling an inferior function.
4738         (normal_stop): If the thread is running an infcall, don't finish
4739         thread state.
4740         * target.c (target_resume): Don't mark threads as running here.
4741
4742 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
4743
4744         * serial.c (_initialize_serial): Remove support for
4745         the "set remotebaud" and "show remotebaud" commands.
4746         * NEWS: Add entry documenting the removal of that command.
4747
4748 2014-05-28  Yao Qi  <yao@codesourcery.com>
4749
4750         * charset.c: Fix typo in comments.
4751
4752 2014-05-27  Gary Benson  <gbenson@redhat.com>
4753
4754         * utils.c (internal_vproblem): Prompt for a bug report.
4755
4756 2014-05-26  Andy Wingo  <wingo@igalia.com>
4757
4758         * guile/scm-arch.c (arscm_mark_arch_smob):
4759         * guile/scm-block.c (bkscm_mark_block_smob)
4760         (bkscm_mark_block_syms_progress_smob):
4761         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4762         * guile/scm-exception.c (exscm_mark_exception_smob):
4763         * guile/scm-frame.c (frscm_mark_frame_smob):
4764         * guile/scm-iterator.c (itscm_mark_iterator_smob):
4765         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4766         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4767         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4768         (ppscm_mark_pretty_printer_worker_smob):
4769         * guile/scm-symbol.c (syscm_mark_symbol_smob):
4770         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4771         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4772         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4773         mark functions.
4774         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4775         function.
4776
4777 2014-05-26  Andy Wingo  <wingo@igalia.com>
4778             Doug Evans  <xdje42@gmail.com>
4779
4780         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4781         empty_base_class.  All uses updated.
4782         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4783         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4784         Adapt all callers.
4785         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4786         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4787         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4788         (gdbscm_gsmob_has_property_p, add_property_name)
4789         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4790         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4791         (gdb-object-has-property?, gdb-object-properties): Remove.
4792         (gdb-object-kind): Renamed from gsmob-kind.
4793
4794 2014-05-26  Andy Wingo  <wingo@igalia.com>
4795
4796         * configure.ac (try_guile_versions): Allow building with guile 2.2.
4797         * configure: Regenerate.
4798
4799 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
4800
4801         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4802
4803 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
4804
4805         * record-btrace.c (record_btrace_allow_memory_access): Remove.
4806         (replay_memory_access_read_only, replay_memory_access_read_write)
4807         (replay_memory_access_types, replay_memory_access)
4808         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4809         (cmd_set_record_btrace, cmd_show_record_btrace)
4810         (cmd_show_replay_memory_access): New.
4811         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4812         (record_btrace_remove_breakpoint): Replace
4813         record_btrace_allow_memory_access with replay_memory_access.
4814         (_initialize_record_btrace): Add commands.
4815         * NEWS: Announce it.
4816
4817 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4818
4819         * aarch64-linux-nat.c (asm/ptrace.h): Include.
4820
4821 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4822
4823         * MAINTAINERS (Write After Approval): Move self back from
4824         paper trail.
4825
4826 2014-05-22  Pedro Alves  <palves@redhat.com>
4827
4828         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4829         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4830         (disable_randomization, enum exec_direction_kind)
4831         (execution_direction, stop_registers, start_remote)
4832         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4833         (wait_for_inferior, normal_stop, get_last_target_status)
4834         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4835         (insert_step_resume_breakpoint_at_sal)
4836         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4837         (set_step_info, print_stop_event, signal_stop_state)
4838         (signal_print_state, signal_pass_state, signal_stop_update)
4839         (signal_print_update, signal_pass_update)
4840         (update_signals_program_target, clear_exit_convenience_vars)
4841         (displaced_step_dump_bytes, update_observer_mode)
4842         (signal_catch_update, gdb_signal_from_command): Move
4843         declarations ...
4844         * infrun.h: ... to this new file.
4845         * amd64-tdep.c: Include infrun.h.
4846         * annotate.c: Include infrun.h.
4847         * arch-utils.c: Include infrun.h.
4848         * arm-linux-tdep.c: Include infrun.h.
4849         * arm-tdep.c: Include infrun.h.
4850         * break-catch-sig.c: Include infrun.h.
4851         * breakpoint.c: Include infrun.h.
4852         * common/agent.c: Include infrun.h instead of inferior.h.
4853         * corelow.c: Include infrun.h.
4854         * event-top.c: Include infrun.h.
4855         * go32-nat.c: Include infrun.h.
4856         * i386-tdep.c: Include infrun.h.
4857         * inf-loop.c: Include infrun.h.
4858         * infcall.c: Include infrun.h.
4859         * infcmd.c: Include infrun.h.
4860         * infrun.c: Include infrun.h.
4861         * linux-fork.c: Include infrun.h.
4862         * linux-nat.c: Include infrun.h.
4863         * linux-thread-db.c: Include infrun.h.
4864         * monitor.c: Include infrun.h.
4865         * nto-tdep.c: Include infrun.h.
4866         * procfs.c: Include infrun.h.
4867         * record-btrace.c: Include infrun.h.
4868         * record-full.c: Include infrun.h.
4869         * remote-m32r-sdi.c: Include infrun.h.
4870         * remote-mips.c: Include infrun.h.
4871         * remote-notif.c: Include infrun.h.
4872         * remote-sim.c: Include infrun.h.
4873         * remote.c: Include infrun.h.
4874         * reverse.c: Include infrun.h.
4875         * rs6000-tdep.c: Include infrun.h.
4876         * s390-linux-tdep.c: Include infrun.h.
4877         * solib-irix.c: Include infrun.h.
4878         * solib-osf.c: Include infrun.h.
4879         * solib-svr4.c: Include infrun.h.
4880         * target.c: Include infrun.h.
4881         * top.c: Include infrun.h.
4882         * windows-nat.c: Include infrun.h.
4883         * mi/mi-interp.c: Include infrun.h.
4884         * mi/mi-main.c: Include infrun.h.
4885         * python/py-threadevent.c: Include infrun.h.
4886
4887 2014-05-22  Pedro Alves  <palves@redhat.com>
4888
4889         * infrun.c (handle_inferior_event): Store the exit code for
4890         --return-child-result here, instead of ...
4891         (print_exited_reason): ... here.
4892
4893 2014-05-21  Pedro Alves  <palves@redhat.com>
4894
4895         PR gdb/13860
4896         * gdbthread.h (struct thread_control_state): New field
4897         `command_interp'.
4898         * infrun.c (follow_fork): Copy the new thread control field to the
4899         child fork thread.
4900         (clear_proceed_status_thread): Clear the new thread control field.
4901         (proceed): Set the new thread control field.
4902         * interps.h (command_interp): Declare.
4903         * interps.c (command_interpreter): New global.
4904         (command_interp): New function.
4905         (interp_exec): Set `command_interpreter' while here.
4906         * cli-out.c (cli_uiout_dtor): New function.
4907         (cli_ui_out_impl): Install it.
4908         * mi/mi-interp.c: Include cli-out.h.
4909         (mi_cmd_interpreter_exec): Add comment.
4910         (restore_current_uiout_cleanup): New function.
4911         (ui_out_free_cleanup): New function.
4912         (mi_on_normal_stop): If finishing an execution command started by
4913         a CLI command, or any kind of breakpoint-like event triggered,
4914         print the stop event to the output (CLI) stream.
4915         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4916
4917 2014-05-21  Pedro Alves  <palves@redhat.com>
4918
4919         * cli/cli-cmds.c (list_command): Handle the first "list" after the
4920         current source line having changed.
4921         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4922         * infrun.c (normal_stop): Adjust call to
4923         set_current_sal_from_frame.
4924         * source.c (clear_lines_listed_range): New function.
4925         (set_current_source_symtab_and_line, identify_source_line): Clear
4926         the lines listed range.
4927         (line_info): Handle the first "info line" after the current source
4928         line having changed.
4929         * stack.c (print_stack_frame): Remove center handling.
4930         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
4931         center sal.line.
4932
4933 2014-05-21  Pedro Alves  <palves@redhat.com>
4934
4935         * inf-child.c (inf_child_mourn_inferior): New function.
4936         * inf-child.h (inf_child_mourn_inferior): New declaration.
4937         * darwin-nat.c (darwin_mourn_inferior): Use
4938         inf_child_mourn_inferior.
4939         * gnu-nat.c (gnu_mourn_inferior): Likewise.
4940         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4941         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4942         * nto-procfs.c (procfs_mourn_inferior): Likewise.
4943         * windows-nat.c (windows_mourn_inferior): Likewise.
4944
4945 2014-05-21  Doug Evans  <xdje42@gmail.com>
4946
4947         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4948
4949 2014-05-21  Doug Evans  <xdje42@gmail.com>
4950
4951         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4952         (gdbscm_out_of_range_error): Ditto.
4953         (gdbscm_memory_error): Ditto.
4954         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4955         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4956         (gdbscm_out_of_range_error): Update.
4957         (gdbscm_memory_error): Update.
4958         (gdbscm_scm_to_target_string_unsafe): Delete.
4959
4960 2014-05-21  Pedro Alves  <palves@redhat.com>
4961
4962         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4963         globals.
4964         (inf_child_open_target): New function.
4965         (inf_child_open): Use inf_child_open_target to push the target
4966         instead of erroring out.
4967         (inf_child_disconnect, inf_child_close)
4968         (inf_child_maybe_unpush_target): New functions.
4969         (inf_child_target): Install inf_child_disconnect and
4970         inf_child_close.  Store a pointer to the returned object.
4971         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4972         declarations.
4973         * target.c (auto_connect_native_target): New global.
4974         (show_default_run_target): New function.
4975         (find_default_run_target): Return NULL if automatically connecting
4976         to the native target is disabled.
4977         (_initialize_target): Install set/show auto-connect-native-target.
4978         * NEWS: Mention "set auto-connect-native-target", and "target
4979         native".
4980         * linux-nat.c (super_close): New global.
4981         (linux_nat_close): Call super_close.
4982         (linux_nat_add_target): Store a pointer to the base class's
4983         to_close method.
4984         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4985         inf_child_maybe_unpush.
4986         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4987         already pushed.
4988         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4989         the inferior.  Use inf_child_maybe_unpush_target.
4990         (inf_ttrace_attach): Don't push the target if it is already
4991         pushed.
4992         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4993         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4994         after mourning the inferior.  Use inf_child_maybe_unpush_target.
4995         (darwin_attach_pid): Don't push the target if it is already
4996         pushed.
4997         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4998         mourning the inferior.  Use inf_child_maybe_unpush_target.
4999         (gnu_detach): Use inf_child_maybe_unpush_target.
5000         * go32-nat.c (go32_create_inferior): Don't push the target if it
5001         is already pushed.
5002         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5003         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5004         (procfs_open): Rename to ...
5005         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
5006         comments.  Can target_preopen before changing node.  Call
5007         inf_child_open_target to push the target explicitly.
5008         (procfs_attach): Don't push the target if it is already pushed.
5009         (procfs_detach): Use inf_child_maybe_unpush_target.
5010         (procfs_create_inferior): Don't push the target if it is already
5011         pushed.
5012         (nto_native_ops): New global.
5013         (procfs_open): Reimplement.
5014         (procfs_native_open): New function.
5015         (init_procfs_targets): Install procfs_native_open as to_open of
5016         "target native".  Store a pointer to the "native" target in
5017         nto_native_ops.
5018         * procfs.c (procfs_attach): Don't push the target if it is already
5019         pushed.
5020         (procfs_detach): Use inf_child_maybe_unpush_target.
5021         (procfs_mourn_inferior): Only unpush the target after mourning the
5022         inferior.  Use inf_child_maybe_unpush_target.
5023         (procfs_init_inferior): Don't push the target if it is already
5024         pushed.
5025         * windows-nat.c (do_initial_windows_stuff): Don't push the target
5026         if it is already pushed.
5027
5028 2014-05-21  Pedro Alves  <palves@redhat.com>
5029
5030         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5031         and "procfs" targets are now called "native" instead.
5032
5033 2014-05-21  Pedro Alves  <palves@redhat.com>
5034
5035         * go32-nat.c (go32_open): Delete.
5036         (go32_target): Don't override the to_open method.
5037
5038 2014-05-21  Pedro Alves  <palves@redhat.com>
5039
5040         * nto-procfs.c (procfs_can_run): New function.
5041         (nto_procfs_ops): New global.
5042         (init_procfs_targets): New, based on procfs_target.  Install
5043         "target native" in addition to "target procfs".
5044         (_initialize_procfs): Call init_procfs_targets instead of adding
5045         the target here.
5046
5047 2014-05-21  Pedro Alves  <palves@redhat.com>
5048
5049         * windows-nat.c (windows_target): Don't override to_shortname,
5050         to_longname or to_doc.
5051
5052 2014-05-21  Pedro Alves  <palves@redhat.com>
5053
5054         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5055         to_doc.
5056
5057 2014-05-21  Pedro Alves  <palves@redhat.com>
5058
5059         * darwin-nat.c (_initialize_darwin_inferior): Don't override
5060         to_shortname, to_longname or to_doc.
5061
5062 2014-05-21  Pedro Alves  <palves@redhat.com>
5063
5064         * go32-nat.c (go32_target): Don't override to_shortname,
5065         to_longname or to_doc.
5066
5067 2014-05-21  Pedro Alves  <palves@redhat.com>
5068
5069         * inf-child.c (inf_child_open): Remove mention of "child".
5070         (inf_child_target): Rename target to "native" instead of "child".
5071
5072 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5073
5074         * Makefile.in (SFILES): Delete "regset.c".
5075         (COMMON_OBS): Delete "regset.o".
5076         * regset.c: Remove.
5077         * regset.h (regset_alloc): Delete prototype.
5078
5079 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5080
5081         * sparc-linux-tdep.c (sparc32_linux_gregset)
5082         (sparc32_linux_fpregset): New static regset structures.
5083         (sparc32_linux_init_abi): Drop dynamic regset allocations.
5084         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5085         'fpregset' fields.
5086         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5087         (sparc64_linux_fpregset): New static regset structures.
5088         (sparc64_linux_init_abi): Drop dynamic regset allocations.
5089         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5090         New static regset structures.
5091         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5092         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5093         New static regset structures.
5094         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5095         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5096         New static regset structures.
5097         (sparc64obsd_init_abi): Drop dynamic regset allocations.
5098         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5099         New static regset structures.
5100         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5101
5102 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5103
5104         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5105         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5106         register maps ("regmaps") from "*regset" to "*regmap".  Do this
5107         for all regmap types and variables.
5108         * sparc-linux-tdep.c (sparc32_linux_step_trap)
5109         (sparc32_linux_supply_core_gregset)
5110         (sparc32_linux_collect_core_gregset)
5111         (sparc32_linux_supply_core_fpregset)
5112         (sparc32_linux_collect_core_fpregset): Likewise.
5113         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5114         (sparc_gregmap, sparc_fpregmap): ... these.
5115         (sparc_supply_gregset, sparc_collect_gregset)
5116         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5117         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5118         (_initialize_sparc_nat): Rename regmaps.
5119         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5120         (sparc_gregmap, sparc_fpregmap): ... these.
5121         (sparc_supply_gregset, sparc_collect_gregset)
5122         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5123         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5124         Rename macros to...
5125         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5126         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5127         Likewise.
5128         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5129         Rename to...
5130         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5131         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5132         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5133         regmaps.
5134         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5135         (sparc32_bsd_fpregset): Rename to...
5136         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5137         (sparc32_bsd_fpregmap): ... these.
5138         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5139         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5140         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5141         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5142         (struct sparc_gregmap, struct sparc_fpregmap)
5143         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5144         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5145         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5146         (sparc32_supply_regset, sparc32_collect_gregset)
5147         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5148         prototypes.
5149         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5150         (sparc64_linux_ptrace_gregmap): ... this.
5151         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5152         (_initialize_sparc64_linux_nat): Rename regmaps.
5153         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5154         (sparc64_linux_core_gregmap): ... this.
5155         (sparc64_linux_supply_core_gregset)
5156         (sparc64_linux_collect_core_gregset)
5157         (sparc64_linux_supply_core_fpregset)
5158         (sparc64_linux_collect_core_fpregset): Rename regmaps.
5159         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5160         (sparc64_sol2_fpregset): Rename to...
5161         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5162         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5163         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5164         regmaps.
5165         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5166         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5167         (sparc64_bsd_fpregset): Rename to...
5168         (struct sparc_gregmap, sparc64_sol2_gregmap)
5169         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5170         (sparc64_bsd_fpregmap): ... these.
5171         (sparc64_supply_gregset, sparc64_collect_gregset)
5172         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5173         prototypes.
5174         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5175         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5176         (sparc64fbsd_gregmap): ... this.
5177         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5178         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5179         Rename regmaps.
5180         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5181         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5182         (sparc64nbsd_collect_fpregset): Likewise.
5183         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5184         (sparc64nbsd_gregmap): ... this.
5185         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5186         regmaps.
5187         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5188         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5189         (sparc64obsd_gregmap): ... this.
5190         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5191         regmaps.
5192         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5193         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5194         (sparc32nbsd_gregmap): ... this.
5195         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5196         regmaps.
5197
5198 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5199
5200         * score-tdep.c (score7_linux_gregset): New static regset
5201         structure.
5202         (score7_linux_regset_from_core_section): Remove dynamic regset
5203         allocation.
5204         (score_gdbarch_init): Drop allocation of tdep structure.
5205         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5206
5207 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5208
5209         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5210         regset structures.
5211         (am33_regset_from_core_section): Remove dynamic regset
5212         allocations.
5213
5214 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5215
5216         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5217         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5218         structures.
5219         (mips_linux_regset_from_core_section): Remove dynamic regset
5220         allocations.
5221         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5222         'gregset64', 'fpregset', and 'fpregset64'.
5223         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5224         deleted tdep fields.
5225
5226 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5227
5228         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5229         regset structures.
5230         (amd64_regset_from_core_section): Remove dynamic regset
5231         allocations.
5232         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5233         structure.
5234         (amd64obsd_regset_from_core_section): Remove dynamic regset
5235         allocation.
5236         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5237         Likewise.
5238         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5239         x86-common regset supply function.
5240         * i386-tdep.c (i386_collect_gregset): Make static.
5241         (i386_gregset): New global regset structure.
5242         (i386_fpregset, i386_xstateregset): New static regset structures.
5243         (i386_regset_from_core_section): Remove dynamic regset
5244         allocations.
5245         (i386_gdbarch_init): Remove initialization of tdep fields
5246         'gregset', 'fpregset', and 'xstateregset'.
5247         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5248         'fpregset', and 'xstateregset'.
5249         (i386_collect_gregset): Remove prototype.
5250         (i386_gregset): New declaration.
5251         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5252         structure.
5253         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5254         allocation.
5255
5256 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5257
5258         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5259         (arm_linux_vfpregset): New static regset structures.
5260         (arm_linux_regset_from_core_section): Remove dynamic allocation of
5261         regset structures.
5262         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5263         and 'vfpregset' fields.
5264
5265 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5266
5267         * aarch64-linux-tdep.c (aarch64_linux_gregset)
5268         (aarch64_linux_fpregset): New static regset structures.
5269         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5270         of regset structures.
5271         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5272         'fpregset' fields.
5273
5274 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5275
5276         * regset.h (struct regset): Remove gdbarch field.
5277         * regset.c (regset_alloc): Drop initialization of gdbarch field.
5278         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5279         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5280         Likewise.
5281         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5282         (ppc32_linux_fpregset, ppc32_linux_vrregset)
5283         (ppc32_linux_vsxregset): Likewise.
5284         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5285         via the regcache instead of the regset.
5286         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5287         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5288         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5289         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5290         Likewise.
5291
5292 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5293
5294         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5295         Constify structures.
5296         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5297         (alphanbsd_aout_gregset): Likewise.
5298         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5299         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5300         Likewise.
5301         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5302         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5303         Likewise.
5304         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5305         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5306         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5307         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5308         * m88k-tdep.c (m88k_gregset): Likewise.
5309         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5310         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5311         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5312         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5313         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5314         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5315         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5316         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5317         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5318         Likewise.
5319         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5320         * sh-tdep.h (sh_corefile_gregset): Likewise.
5321         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5322         * vax-tdep.c (vax_gregset): Likewise.
5323
5324 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5325
5326         Fix TLS access for -static -pthread.
5327         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5328         (try_thread_db_load_1): Initialize it.
5329         (thread_db_get_thread_local_address): Call it if LM is zero.
5330         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5331         * target.h (struct target_ops) (to_get_thread_local_address): Add
5332         load_module_addr comment.
5333
5334 2014-05-21  Pedro Alves  <palves@redhat.com>
5335
5336         * dcache.c (dcache_read_memory_partial): If reading the cache line
5337         fails, fallback to reading just the memory the caller wanted.
5338
5339 2014-05-20  Doug Evans  <dje@google.com>
5340
5341         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5342         instead of get_current_arch.
5343
5344 2014-05-20  Pedro Alves  <palves@redhat.com>
5345
5346         * NEWS: Mention that compare-sections now works with all targets.
5347
5348         * remote.c (PACKET_qCRC): New enum value.
5349         (remote_verify_memory): Don't send qCRC if the target has no
5350         execution.  Use packet_support/packet_ok.  If the target doesn't
5351         support the qCRC packet, fallback to a deep memory copy.
5352         (compare_sections_command): Say "target image" instead of "remote
5353         executable".
5354         (_initialize_remote): Add PACKET_qCRC to the list of config
5355         packets that have no associated command.  Extend comment.
5356         * target.c (simple_verify_memory, default_verify_memory): New
5357         function.
5358         * target.h (struct target_ops) <to_verify_memory>: Default to
5359         default_verify_memory.
5360         (simple_verify_memory): New declaration.
5361         * target-delegates.c: Regenerate.
5362
5363 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
5364
5365         * record-btrace.c (record_btrace_step_thread): Check for empty history.
5366
5367 2014-05-20  Hui Zhu  <hui@codesourcery.com>
5368             Yao Qi  <yao@codesourcery.com>
5369
5370         PR backtrace/16558
5371         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5372         and change address of sp and pc.
5373
5374 2014-05-19  Tom Tromey  <tromey@redhat.com>
5375
5376         * gdbtypes.c (rank_function): Use XNEWVEC.
5377         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5378
5379 2014-05-19  Doug Evans  <dje@google.com>
5380
5381         * dwarf2read.c (build_type_psymtabs_1): Renamed from
5382         build_type_unit_groups and moved closer to only caller.  Remove
5383         arguments.  All references updated.  Remove outdated .gdb_index
5384         comment.
5385         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5386         build_type_psymtabs_1.
5387
5388 2014-05-19  Doug Evans  <dje@google.com>
5389
5390         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5391         n_type_unit_groups, all_type_unit_groups.  All uses removed.
5392         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5393         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
5394         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
5395         (add_type_unit_group_to_table): Delete.
5396
5397 2014-05-19  Doug Evans  <dje@google.com>
5398
5399         * eval.c (evaluate_subexp_standard): Add some comments.
5400
5401 2014-05-17  Doug Evans  <xdje42@gmail.com>
5402
5403         * progspace.c (remove_program_space): Delete, unused.
5404         * progspace.h (remove_program_space): Ditto.
5405
5406 2014-05-17  Doug Evans  <xdje42@gmail.com>
5407
5408         * inferior.c (prune_inferiors): Fix comment.
5409         (remove_inferior_command): Call prune_program_spaces.
5410
5411 2014-05-16  Doug Evans  <dje@google.com>
5412
5413         New command line option -D.
5414         * NEWS: Mention it.
5415         * main.c (set_gdb_data_directory): New function.
5416         (captured_main): Recognize -D.  Flag error for --data-directory "".
5417         Call set_gdb_data_directory.
5418         (print_gdb_help): Print --data-directory, -D.
5419         * main.h (set_gdb_data_directory): Declare.
5420         * top.c (staged_gdb_datadir): New static global.
5421         (set_gdb_datadir): Call set_gdb_data_directory
5422         (show_gdb_datadir): New function.
5423         (init_main): Update init of data-directory parameter.
5424
5425 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
5426
5427         Import the "dirfd" gnulib module.
5428         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5429         * gnulib/aclocal.m4: Update.
5430         * gnulib/config.in: Update.
5431         * gnulib/configure: Update.
5432         * gnulib/import/Makefile.am: Update.
5433         * gnulib/import/Makefile.in: Update.
5434         * gnulib/import/dirfd.c: New.
5435         * gnulib/import/m4/dirfd.m4: New.
5436         * gnulib/import/m4/gnulib-cache.m4: Update.
5437         * gnulib/import/m4/gnulib-comp.m4: Update.
5438
5439 2014-05-16  Pierre Muller  <muller@sourceware.org>
5440             Yao Qi  <yao@codesourcery.com>
5441
5442         * valprint.c (print_wchar): Move the code on checking whether
5443         W is a printable wide char to the default branch of switch
5444         statement below.  Call wchar_printable instead of gdb_iswprint.
5445
5446 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
5447
5448         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5449         ldr.w and ldrd instructions.
5450
5451 2014-05-15  Doug Evans  <dje@google.com>
5452
5453         * dwarf2read.c (read_structure_type): Delete outdated comments.
5454
5455 2014-05-14  Tom Tromey  <tromey@redhat.com>
5456
5457         * macrocmd.c (print_macro_definition): Reindent.
5458
5459 2014-05-13  Doug Evans  <xdje42@gmail.com>
5460
5461         * python/py-cmd.c (cmdpy_completer): Add comment.
5462         (completers): Make const.
5463
5464 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
5465
5466         * infrun.c (resume): Remove should_resume (unused).  Move up
5467         declaration of resume_ptid.
5468
5469 2014-05-13  Tom Tromey  <tromey@redhat.com>
5470
5471         * language.h (unop_type_check): Remove.
5472         (binop_type_check): Don't declare.
5473
5474 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
5475
5476         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5477         call to regcache_raw_collect.
5478
5479 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
5480
5481         * mi/mi-console.c (mi_console_raw_packet): Use the value from
5482         mi_console->quote as the quoting character.
5483
5484 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
5485
5486         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5487
5488 2014-04-29  Tom Tromey  <tromey@redhat.com>
5489
5490         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5491         "show debug varobj".
5492
5493 2014-05-07  Kyle McMartin  <kyle@redhat.com>
5494
5495         Pushed by Joel Brobecker  <brobecker@adacore.com>.
5496         * aarch64-tdep.c (aarch64_software_single_step): New function.
5497         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5498         with aarch64_software_single_step.
5499
5500 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
5501
5502         GDB 7.7.1 released.
5503
5504 2014-05-05  Keith Seitz  <keiths@redhat.com>
5505
5506         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5507         variable or history value is successfully parsed.
5508
5509 2014-05-05  Yao Qi  <yao@codesourcery.com>
5510             Pedro Alves  <palves@redhat.com>
5511
5512         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5513         address of blocks that intersects the requested range.  Trim
5514         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5515         sections.
5516         * ctf.c (ctf_xfer_partial): Likewise.
5517
5518 2014-05-05  Yao Qi  <yao@codesourcery.com>
5519
5520         * printcmd.c (display_command): Remove the check to
5521         target_has_execution.
5522
5523 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
5524
5525         * ppcobsd-nat.c: Include "obsd-nat.h".
5526         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5527         add_target.
5528         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5529
5530 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
5531
5532         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5533         and 16-bit signed and unsigned arguments.  Update comment.
5534         (stap_parse_probe_arguments): Extend code to handle such
5535         arguments.  Use warning instead of complaint to notify about
5536         unrecognized bitness.
5537
5538 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
5539
5540         PR breakpoints/16889
5541         * stap-probe.c (stap_parse_probe_arguments): Simplify
5542         check for non-prefixed probes (i.e., probes whose
5543         arguments do not start with "N@").  Always set the
5544         argument type to a sane value.
5545
5546 2014-05-01  David Taylor  <dtaylor@emc.com>
5547
5548         * remote.c (compare_sections_command): Add -r option to compare
5549         all loadable read-only sections.
5550
5551 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
5552
5553         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5554         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5555         Update all callers.
5556         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5557         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5558         Remove unused CORE_ADDR argument.  Update all callers.
5559
5560 2014-04-29  Pedro Alves  <palves@redhat.com>
5561
5562         * remote.c (struct packet_config) <detect>: Extend comment.
5563         (add_packet_config_cmd): Don't set the config's detect or support
5564         fields here.
5565         (init_all_packet_configs): Also initialize the config's 'detect'
5566         field.
5567         (reset_all_packet_configs_support): New function.
5568         (remote_open_1): Call reset_all_packet_configs_support instead of
5569         init_all_packet_configs.
5570         (_initialize_remote): Initialize all packet configs.  Assert that
5571         all packets have an associated command, except a few known
5572         outliers.
5573
5574 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5575
5576         * dwarf2read.c (read_subrange_type): Handle dynamic
5577         DW_AT_lower_bound attributes.
5578
5579 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5580
5581         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5582         dynamic bounds before computing its upper bound.
5583         (ada_discrete_type_low_bound): Same as above with the lower bound.
5584
5585 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5586
5587         * dwarf2read.c (is_dynamic_type): Return true for dynamic
5588         range types.  Adjust the array handling implementation to
5589         take advantage of this change.
5590         (resolve_dynamic_range): New function, mostly extracted from
5591         resolve_dynamic_bounds.
5592         (resolve_dynamic_array): New function, mostly extracted from
5593         resolve_dynamic_bounds.
5594         (resolve_dynamic_bounds): Delete.
5595         (resolve_dynamic_type): Reimplement.  Add handling of
5596         TYPE_CODE_RANGE types.
5597
5598 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5599
5600         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5601         handling of parallel ___XA types.
5602
5603 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5604
5605         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5606         unnecessary second call to static_unwrap_type.
5607
5608 2014-04-27  Hui Zhu  <hui@codesourcery.com>
5609
5610         * stack.c (print_frame_info): Call do_gdb_disassembly with
5611         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5612
5613 2014-04-26  Doug Evans  <xdje42@gmail.com>
5614
5615         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5616
5617 2014-04-25  Pedro Alves  <palves@redhat.com>
5618
5619         PR server/16255
5620         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5621         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
5622         and newline from built string.
5623         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5624         (linux_ptrace_attach_fail_reason): ... this.
5625         * linux-nat.c (linux_nat_attach): Adjust to use
5626         linux_ptrace_attach_fail_reason.
5627
5628 2014-04-25  Pedro Alves  <palves@redhat.com>
5629
5630         * remote.c (struct remote_state): Remove multi_process_aware,
5631         non_stop_aware, cond_tracepoints, cond_breakpoints,
5632         breakpoint_commands, fast_tracepoints, static_tracepoints,
5633         install_in_trace, disconnected_tracing,
5634         enable_disable_tracepoints, string_tracing, and
5635         augmented_libraries_svr4_read fields.
5636         (remote_multi_process_p): Move further below in the file.
5637         (struct packet_config): Add comments.
5638         (update_packet_config): Delete function.
5639         (show_packet_config_cmd): Use packet_config_support.
5640         (add_packet_config_cmd): Use NULL as set callback.
5641         (packet_ok): "set remote foo-packet"-style commands no longer
5642         change config->supported -- adjust.
5643         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5644         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5645         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5646         (PACKET_QNonStop, PACKET_multiprocess_feature)
5647         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5648         (PACKET_DisconnectedTracing_feature)
5649         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5650         (set_remote_protocol_packet_cmd): Delete function.
5651         (packet_config_support, packet_support): New functions.
5652         (set_remote_protocol_Z_packet_cmd): Don't call
5653         update_packet_config.
5654         (remote_query_attached, remote_pass_signals)
5655         (remote_program_signals, remote_threads_info)
5656         (remote_threads_extra_info, remote_start_remote): Use
5657         packet_support.
5658         (remote_start_remote): Use packet_config_support and
5659         packet_support.
5660         (init_all_packet_configs): Set all packets to unknown support,
5661         instead of calling update_packet_config.
5662         (remote_check_symbols): Use packet_support.
5663         (remote_supported_packet): Unconditionally set the packet config's
5664         support status.
5665         (remote_multi_process_feature, remote_non_stop_feature)
5666         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5667         (remote_breakpoint_commands_feature)
5668         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5669         (remote_install_in_trace_feature)
5670         (remote_disconnected_tracing_feature)
5671         (remote_enable_disable_tracepoint_feature)
5672         (remote_string_tracing_feature)
5673         (remote_augmented_libraries_svr4_read_feature): Delete functions.
5674         (remote_protocol_features): Adjust to use remote_supported_packet
5675         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5676         "ConditionalTracepoints", "ConditionalBreakpoints",
5677         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5678         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5679         "EnableDisableTracepoints", and "tracenz".
5680         (remote_query_supported): Use packet_support.
5681         (remote_open_1): Adjust.
5682         (extended_remote_attach_1): Use packet_support.  Switch on the
5683         result of packet_ok instead of checking whether the packet ended
5684         up disabled.
5685         (remote_vcont_resume): Use packet_support.
5686         (remote_resume, remote_stop_ns, fetch_register_using_p)
5687         (remote_prepare_to_store, store_register_using_P)
5688         (check_binary_download, remote_write_bytes): Use packet_support.
5689         (remote_vkill): Use packet_support.  Switch on the result of
5690         packet_ok instead of checking whether the packet ended up
5691         disabled.
5692         (extended_remote_supports_disable_randomization): Use
5693         packet_support.
5694         (extended_remote_run): Switch on the result of packet_ok instead
5695         of checking whether the packet ended up disabled.
5696         (remote_insert_breakpoint, remote_remove_breakpoint)
5697         (remote_insert_watchpoint, remote_remove_watchpoint)
5698         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5699         packet_support.
5700         (remote_search_memory): Use packet_config_support.
5701         (remote_get_thread_local_address, remote_get_tib_address)
5702         (remote_hostio_send_command, remote_can_execute_reverse): Use
5703         packet_support.
5704         (remote_supports_cond_tracepoints)
5705         (remote_supports_cond_breakpoints)
5706         (remote_supports_fast_tracepoints)
5707         (remote_supports_static_tracepoints)
5708         (remote_supports_install_in_trace)
5709         (remote_supports_enable_disable_tracepoint)
5710         (remote_supports_string_tracing)
5711         (remote_can_run_breakpoint_commands): Rewrite, checking whether
5712         the packet config says the feature is enabled or disabled.
5713         (remote_download_tracepoint, remote_trace_set_readonly_regions)
5714         (remote_get_trace_status): Use packet_support.
5715         (remote_set_disconnected_tracing): Adjust to check whether the
5716         feature is enabled with packet_support.
5717         (remote_set_trace_buffer_size, remote_use_agent)
5718         (remote_can_use_agent, remote_supports_btrace): Use
5719         packet_support.
5720         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5721         Use packet_config_support.
5722         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5723         the packet config says the feature is enabled or disabled.
5724         (set_range_stepping): Use packet_support.
5725
5726 2014-04-25  Tom Tromey  <tromey@redhat.com>
5727
5728         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5729         argument.
5730
5731 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
5732
5733         * NEWS: Mention support for C99 variable length arrays.
5734
5735 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
5736
5737         * ada-lang.c (standard_exc): Expand introductory comment.
5738
5739 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
5740             Walfred Tedeschi  <walfred.tedeschi@intel.com>
5741
5742         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5743         AVX512 registers.
5744         (amd64_linux_read_description): Add code to handle AVX512 xstate
5745         mask and return respective tdesc.
5746         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5747         and features/i386/x32-avx512-linux.c.
5748         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5749         (amd64_linux_core_read_description): Add code to handle AVX512
5750         xstate mask and return respective tdesc.
5751         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5752         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5753         calculation.
5754         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5755         (tdesc_amd64_avx512_linux): New prototype.
5756         (tdesc_x32_avx512_linux): Likewise.
5757         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5758         features/i386/x32-avx512.c.
5759         (amd64_ymm_avx512_names): New register names for pseudo
5760         registers YMM16-31.
5761         (amd64_ymmh_avx512_names): New register names for raw registers
5762         YMMH16-31.
5763         (amd64_k_names): New register names for K registers.
5764         (amd64_zmmh_names): New register names for ZMM raw registers.
5765         (amd64_zmm_names): New registers names for ZMM pseudo registers.
5766         (amd64_xmm_avx512_names): New register names for XMM16-31
5767         registers.
5768         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5769         registers.
5770         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5771         if feature is present.
5772         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5773         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5774         (AMD64_NUM_REGS): Adjust to new number of registers.
5775         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5776         registers supplied via XSTATE by AVX512 registers.
5777         (i386_linux_read_description): Add case for AVX512.
5778         * i386-linux-tdep.c: Include i386-avx512-linux.c.
5779         (i386_linux_gregset_reg_offset): Add AVX512 registers.
5780         (i386_linux_core_read_description): Add case for AVX512.
5781         (i386_linux_init_abi): Install supported register note section
5782         for AVX512.
5783         (_initialize_i386_linux_tdep): Add call to tdesc init function for
5784         AVX512.
5785         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5786         registers to be number of zmm7h + 1.
5787         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5788         * i386-tdep.c: Include features/i386/i386-avx512.c.
5789         (i386_zmm_names): Add ZMM pseudo register names array.
5790         (i386_zmmh_names): Add ZMM raw register names array.
5791         (i386_k_names): Add K raw register names array.
5792         (num_lower_zmm_regs): Add constant for the number of lower ZMM
5793         registers. AVX512 has 16 more ZMM registers than there are YMM
5794         registers.
5795         (i386_zmmh_regnum_p): Add function to look up register number of
5796         ZMM raw registers.
5797         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5798         (i386_k_regnum_p): Likewise for K raw registers.
5799         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5800         registers added by AVX512.
5801         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5802         registers added by AVX512.
5803         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5804         added by AVX512.
5805         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5806         (i386_pseudo_register_name): Add ZMM pseudo registers.
5807         (i386_zmm_type): Construct and return vector registers type for ZMM
5808         registers.
5809         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5810         ZMM0-31 pseudo registers and K registers.
5811         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5812         and YMM16-31 registers from register cache.
5813         (i386_pseudo_register_write): Add code to write  K, ZMM and
5814         YMM16-31 registers.
5815         (i386_register_reggroup_p): Add code to include/exclude AVX512
5816         registers in/from respective register groups.
5817         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5818         registers if feature is present in xcr0.
5819         (i386_gdbarch_init): Add code to initialize AVX512 feature
5820         variables in tdep structure, wire in pseudo registers and call
5821         initialize_tdesc_i386_avx512.
5822         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5823         variables.
5824         (i386_regnum): Add AVX512 registers.
5825         (I386_SSE_NUM_REGS): New define for number of SSE registers.
5826         (I386_AVX_NUM_REGS): Likewise for AVX registers.
5827         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5828         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5829         512 bits wide.
5830         (i386_xmm_avx512_regnum_p): New prototype for register look up.
5831         (i386_ymm_avx512_regnum_p): Likewise.
5832         (i386_k_regnum_p): Likewise.
5833         (i386_zmm_regnum_p): Likewise.
5834         (i386_zmmh_regnum_p): Likewise.
5835         * i387-tdep.c : Update year in copyright notice.
5836         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5837         XSAVE buffer.
5838         (XSAVE_YMM_AVX512_ADDR): New macro.
5839         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5840         XSAVE buffer.
5841         (XSAVE_XMM_AVX512_ADDR): New macro.
5842         (xsave_avx512_k_offset): New table for K register offsets in
5843         XSAVE buffer.
5844         (XSAVE_AVX512_K_ADDR): New macro.
5845         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5846         in XSAVE buffer.
5847         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5848         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5849         buffer.
5850         (i387_collect_xsave): Add code to collect AVX512 registers from
5851         XSAVE buffer.
5852         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5853         of XMM16-31 registers.
5854         (I387_NUM_K_REGS): New define for number of K registers.
5855         (I387_K0_REGNUM): New define for K0 register number.
5856         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5857         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5858         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5859         registers.
5860         (I387_YMM16H_REGNUM): New define for YMM16H register number.
5861         (I387_XMM16_REGNUM): New define for XMM16 register number.
5862         (I387_YMM0_REGNUM): New define for YMM0 register number.
5863         (I387_KEND_REGNUM): New define for last K register number.
5864         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5865         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5866         number.
5867         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5868         number.
5869         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5870         size.
5871         * features/Makefile: Add AVX512 related files.
5872         * features/i386/32bit-avx512.xml: New file.
5873         * features/i386/64bit-avx512.xml: Likewise.
5874         * features/i386/amd64-avx512-linux.c: Likewise.
5875         * features/i386/amd64-avx512-linux.xml: Likewise.
5876         * features/i386/amd64-avx512.c: Likewise.
5877         * features/i386/amd64-avx512.xml: Likewise.
5878         * features/i386/i386-avx512-linux.c: Likewise.
5879         * features/i386/i386-avx512-linux.xml: Likewise.
5880         * features/i386/i386-avx512.c: Likewise.
5881         * features/i386/i386-avx512.xml: Likewise.
5882         * features/i386/x32-avx512-linux.c: Likewise.
5883         * features/i386/x32-avx512-linux.xml: Likewise.
5884         * features/i386/x32-avx512.c: Likewise.
5885         * features/i386/x32-avx512.xml: Likewise.
5886         * regformats/i386/amd64-avx512-linux.dat: New file.
5887         * regformats/i386/amd64-avx512.dat: Likewise.
5888         * regformats/i386/i386-avx512-linux.dat: Likewise.
5889         * regformats/i386/i386-avx512.dat: Likewise.
5890         * regformats/i386/x32-avx512-linux.dat: Likewise.
5891         * regformats/i386/x32-avx512.dat: Likewise.
5892         * NEWS: Add note about new support for AVX512.
5893
5894
5895 2014-04-23  Pedro Alves  <palves@redhat.com>
5896
5897         * breakpoint.c (insert_bp_location): Tolerate errors if the
5898         breakpoint is set in a user-loaded objfile.
5899         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
5900         location is marked shlib_disabled.  If the breakpoint is set in a
5901         user-loaded objfile is a GDB-side memory breakpoint, validate it
5902         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
5903         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
5904         flag.
5905         * mem-break.c (memory_validate_breakpoint): New function.
5906         * objfiles.c (userloaded_objfile_contains_address_p): New
5907         function.
5908         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5909         * target.h (memory_validate_breakpoint): New declaration.
5910
5911 2014-04-23  Pedro Alves  <palves@redhat.com>
5912
5913         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5914         the breakpoint is set in a shared library, only suppress
5915         errors for software breakpoints, not hardware breakpoints.
5916
5917 2014-04-22  Pedro Alves  <palves@redhat.com>
5918
5919         * infrun.c (schedlock_applies): New function, factored out from
5920         find_thread_needs_step_over.
5921         (find_thread_needs_step_over): Use it.
5922         (switch_back_to_stepped_thread): Always clear trap_expected if the
5923         step over is finished.  Return early if scheduler locking applies.
5924         Look for the stepping thread and a potential step-over thread with
5925         a single loop.
5926         (currently_stepping_or_nexting_callback): Delete.
5927
5928 2014-04-22  Nick Clifton  <nickc@redhat.com>
5929
5930         * NEWS: Mention that ARM sim now supports tracing.
5931
5932 2014-04-22  Yao Qi  <yao@codesourcery.com>
5933
5934         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5935         to ...
5936         * tracefile.c (tracefile_fetch_registers): ... it.  New
5937         function.
5938         * tracefile.h (tracefile_fetch_registers): Declare.
5939         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
5940         tracefile_fetch_registers.
5941
5942 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
5943
5944         PR gdb/14018
5945         * windows-nat.c (thread_rec): Don't display a warning when
5946         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
5947         fails for any reason, set th->suspended to -1, so that we don't
5948         try to resume such a thread.  Also, don't return NULL in these
5949         cases, to avoid completely ruin the session due to "PC register is
5950         not available" error.
5951         (do_windows_fetch_inferior_registers): Check errors in
5952         GetThreadContext call.
5953         (windows_continue): Accept an additional argument KILLED; if not
5954         zero, ignore errors in the SetThreadContext call, since the
5955         inferior was killed and is shutting down.
5956         (windows_resume, get_windows_debug_event)
5957         (windows_create_inferior, windows_mourn_inferior)
5958         (windows_kill_inferior): All callers of windows_continue changed
5959         to adjust to its new calling sequence.
5960
5961 2014-04-19  Yao Qi  <yao@codesourcery.com>
5962
5963         * ctf.c (ctf_open): Call post_create_inferior.
5964
5965 2014-04-19  Yao Qi  <yao@codesourcery.com>
5966
5967         * ctf.c (handle_id): New static variable.
5968         (ctf_open_dir): Get handle_id from bt_context_add_trace return
5969         value.  Get the declaration of event "register" and get length
5970         of field "contents".
5971
5972 2014-04-19  Yao Qi  <yao@codesourcery.com>
5973
5974         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5975
5976 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
5977
5978         * valops.c (oload_method_static): Remove unnecessary argument
5979         METHOD.  Update all callers.
5980
5981 2014-04-18  Pedro alves  <palves@redhat.com>
5982             Tom Tromey  <tromey@redhat.com>
5983
5984         PR backtrace/15558
5985         * frame.c (get_prev_frame_1): Rename to ...
5986         (get_prev_frame_always): ... this, and make extern.  Adjust.
5987         (skip_artificial_frames): Use get_prev_frame_always.
5988         (frame_unwind_caller_id, frame_pop, get_prev_frame)
5989         (get_frame_unwind_stop_reason): Adjust to rename.
5990         * frame.h (get_prev_frame_always): Declare.
5991         * inline-frame.c: Include frame.h.
5992         (inline_frame_this_id): Use get_prev_frame_always.
5993
5994 2014-04-18  Tristan Gingold  <gingold@adacore.com>
5995
5996         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5997         code by using bfd_mach_o_get_base_address.
5998
5999 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6000
6001         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6002         (spu_ax_pseudo_register_collect): New function.
6003         (spu_ax_pseudo_register_push_stack): Likewise.
6004         (spu_dwarf_reg_to_regnum): Likewise.
6005         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
6006
6007 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6008
6009         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6010         Replace FRAME argument with FRAME_ID.
6011         * gdbarch.c, gdbarch.h: Regenerate.
6012         * findvar.c (default_value_from_register): Add GDBARCH argument;
6013         replace FRAME by FRAME_ID.  No longer call get_frame_id.
6014         (value_from_register): Update call to gdbarch_value_from_register.
6015         * value.h (default_value_from_register): Update prototype.
6016         * s390-linux-tdep.c (s390_value_from_register): Update interface
6017         and call to default_value_from_register.
6018         * spu-tdep.c (spu_value_from_register): Likewise.
6019
6020         * findvar.c (address_from_register): Remove TYPE argument.
6021         Do not call value_from_register; use gdbarch_value_from_register
6022         with null_frame_id instead.
6023         * value.h (address_from_register): Update prototype.
6024         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6025         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6026         address_from_register interface change.
6027
6028 2014-04-17  Yao Qi  <yao@codesourcery.com>
6029
6030         * gdbtypes.h: Update comments to link to types and macros'
6031         definitions.
6032
6033 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
6034
6035         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6036
6037 2014-04-16  Keith Seitz  <keiths@redhat.com>
6038
6039         PR gdb/15827
6040         * dwarf2read.c (skip_one_die): Check that all relative-offset
6041         sibling DIEs fall within range of the current reader's buffer.
6042         (read_partial_die): Likewise.
6043
6044 2014-04-16  Keith Seitz  <keiths@redhat.com>
6045
6046         PR c++/16597
6047         * cp-namespace.c (lookup_symbol_file): If the type name of
6048         `this' is NULL, return immediately.
6049
6050 2014-04-14  Keith Seitz  <keiths@redhat.com>
6051
6052         PR c++/16253
6053         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6054         from symbol_matches_domain in symtab.c. All local callers
6055         of symbol_matches_domain updated.
6056         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6057         search STRUCT_DOMAIN.
6058         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6059         independently.  standard_lookup will do that automatically.
6060         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6061         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6062         (cp_lookup_symbol_in_namespace): Likewise.
6063         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6064         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6065         may return a STRUCT_DOMAIN match.
6066         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6067         * cp-support.c: Include language.h.
6068         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6069         VAR_DOMAIN.
6070         * psymtab.c (match_partial_symbol): Compare the requested
6071         domain with the symbol's domain directly.
6072         (lookup_partial_symbol): Likewise.
6073         * symtab.c (lookup_symbol_in_language): Explain when/why
6074         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6075         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6076         appropriate languages.
6077         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6078         and moved to ada-lang.c
6079         (lookup_block_symbol): Explain that this function only returns
6080         symbol matching the requested DOMAIN.
6081         Compare the requested domain with the symbol's domain directly.
6082         (iterate_over_symbols): Compare the requested domain with the
6083         symbol's domain directly.
6084         * symtab.h (symbol_matches_domain): Remove.
6085
6086 2014-04-14  Tom Tromey  <tromey@redhat.com>
6087
6088         PR c++/15246:
6089         * c-exp.y (type_aggregate_p): New function.
6090         (qualified_name, classify_inner_name): Use it.
6091         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6092         and TYPE_TARGET_TYPE of an enum type.
6093         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6094         an enum type.
6095         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6096         handle TYPE_DECLARED_CLASS.
6097         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6098         types.
6099         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6100         * valops.c (enum_constant_from_type): New function.
6101         (value_aggregate_elt): Use it.
6102         * cp-namespace.c (cp_lookup_nested_symbol): Handle
6103         TYPE_CODE_ENUM.
6104
6105 2014-04-14  Tom Tromey  <tromey@redhat.com>
6106
6107         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6108         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6109         const.
6110         * value.h (value_aggregate_elt): Update.
6111
6112 2014-04-14  Tom Tromey  <tromey@redhat.com>
6113
6114         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6115
6116 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6117
6118         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6119         (evaluate_subexp_standard): Pass noside argument.
6120         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6121         if noside equals EVAL_NORMAL. If the subscript yields a vla type
6122         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6123         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6124         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6125
6126 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6127
6128         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6129         points to a constant blob.
6130
6131 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6132
6133         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6134         property and store it as the high bound and flag the range accordingly.
6135         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6136         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6137         * gdbtypes.h (enum range_flags): New enum.
6138         (struct range_bounds): Add flags member.
6139
6140 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6141
6142         * c-typeprint.c (c_type_print_varspec_suffix): Added
6143         check for not yet resolved high bound. If unresolved, print
6144         "variable length" string to the console instead of random
6145         length.
6146
6147 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6148
6149         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6150         value.
6151         (ada_template_to_fixed_record_type_1): Likewise.
6152         (ada_to_fixed_type_1): Likewise.
6153         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6154         (cp_print_value): Likewise.
6155         * d-valprint.c (dynamic_array_type): Likewise.
6156         * findvar.c (address_of_variable): Likewise.
6157         * jv-valprint.c (java_value_print): Likewise.
6158         * valops.c (value_ind): Likewise.
6159         * value.c (coerce_ref): Likewise.
6160
6161 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6162
6163         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6164         value and retrieve the dynamic type size.
6165
6166 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6167
6168         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6169         passed to sizeof is dynamic evaluate the argument to compute the length.
6170
6171 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6172             Joel Brobecker  <brobecker@adacore.com>
6173
6174         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6175         (dwarf2_evaluate_property): New function.
6176         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6177         * dwarf2read.c (attr_to_dynamic_prop): New function.
6178         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6179         attribute.
6180         * gdbtypes.c: Include dwarf2loc.h.
6181         (is_dynamic_type): New function.
6182         (resolve_dynamic_type): New function.
6183         (resolve_dynamic_bounds): New function.
6184         (get_type_length): New function.
6185         (check_typedef): Use get_type_length to compute type length.
6186         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6187         (TYPE_LOW_BOUND_KIND): New macro.
6188         (is_dynamic_type): New function prototype.
6189         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6190         to resolve dynamic properties of the type. Update comment.
6191         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6192
6193 2014-04-14  Richard Henderson  <rth@redhat.com>
6194
6195         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6196
6197 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
6198             Doug Evans  <xdje42@gmail.com>
6199
6200         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6201         dereference TYPE_CODE_REF values.
6202
6203 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
6204
6205         Revert the following changes due to regressions:
6206
6207         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6208         (dwarf2_evaluate_property): New function.
6209         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6210         * dwarf2read.c (attr_to_dynamic_prop): New function.
6211         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6212         attribute.
6213         * gdbtypes.c: Include dwarf2loc.h.
6214         (is_dynamic_type): New function.
6215         (resolve_dynamic_type): New function.
6216         (resolve_dynamic_bounds): New function.
6217         (get_type_length): New function.
6218         (check_typedef): Use get_type_length to compute type length.
6219         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6220         (TYPE_LOW_BOUND_KIND): New macro.
6221         (is_dynamic_type): New function prototype.
6222         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6223         to resolve dynamic properties of the type. Update comment.
6224         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6225
6226         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6227         passed to sizeof is dynamic evaluate the argument to compute the length.
6228
6229         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6230         value and retrieve the dynamic type size.
6231
6232         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6233         (ada_template_to_fixed_record_type_1): Likewise.
6234         (ada_to_fixed_type_1): Likewise.
6235         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6236         (cp_print_value): Likewise.
6237         * d-valprint.c (dynamic_array_type): Likewise.
6238         * eval.c (evaluate_subexp_with_coercion): Likewise.
6239         * findvar.c (address_of_variable): Likewise.
6240         * jv-valprint.c (java_value_print): Likewise.
6241         * valops.c (value_ind): Likewise.
6242         * value.c (coerce_ref): Likewise.
6243
6244         * c-typeprint.c (c_type_print_varspec_suffix): Added
6245         check for not yet resolved high bound. If unresolved, print
6246         "variable length" string to the console instead of random
6247         length.
6248
6249         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6250         property and store it as the high bound and flag the range accordingly.
6251         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6252         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6253         * gdbtypes.h (enum range_flags): New enum.
6254         (struct range_bounds): Add flags member.
6255
6256         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6257         points to a constant blob.
6258
6259         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6260         (evaluate_subexp_standard): Pass noside argument.
6261         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6262         if noside equals EVAL_NORMAL. If the subscript yields a vla type
6263         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6264         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6265         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6266
6267 2014-04-11  Keith Seitz  <keiths@redhat.com>
6268
6269         PR c++/16675
6270         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6271         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6272         reference types.
6273
6274 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6275
6276         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6277         (evaluate_subexp_standard): Pass noside argument.
6278         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6279         if noside equals EVAL_NORMAL. If the subscript yields a vla type
6280         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6281         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6282         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6283
6284 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6285
6286         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6287         points to a constant blob.
6288
6289 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6290
6291         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6292         property and store it as the high bound and flag the range accordingly.
6293         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6294         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6295         * gdbtypes.h (enum range_flags): New enum.
6296         (struct range_bounds): Add flags member.
6297
6298 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6299
6300         * c-typeprint.c (c_type_print_varspec_suffix): Added
6301         check for not yet resolved high bound. If unresolved, print
6302         "variable length" string to the console instead of random
6303         length.
6304
6305 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6306
6307         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6308         (ada_template_to_fixed_record_type_1): Likewise.
6309         (ada_to_fixed_type_1): Likewise.
6310         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6311         (cp_print_value): Likewise.
6312         * d-valprint.c (dynamic_array_type): Likewise.
6313         * eval.c (evaluate_subexp_with_coercion): Likewise.
6314         * findvar.c (address_of_variable): Likewise.
6315         * jv-valprint.c (java_value_print): Likewise.
6316         * valops.c (value_ind): Likewise.
6317         * value.c (coerce_ref): Likewise.
6318
6319 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6320
6321         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6322         value and retrieve the dynamic type size.
6323
6324 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6325
6326         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6327         passed to sizeof is dynamic evaluate the argument to compute the length.
6328
6329 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6330
6331         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6332         (dwarf2_evaluate_property): New function.
6333         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6334         * dwarf2read.c (attr_to_dynamic_prop): New function.
6335         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6336         attribute.
6337         * gdbtypes.c: Include dwarf2loc.h.
6338         (is_dynamic_type): New function.
6339         (resolve_dynamic_type): New function.
6340         (resolve_dynamic_bounds): New function.
6341         (get_type_length): New function.
6342         (check_typedef): Use get_type_length to compute type length.
6343         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6344         (TYPE_LOW_BOUND_KIND): New macro.
6345         (is_dynamic_type): New function prototype.
6346         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6347         to resolve dynamic properties of the type. Update comment.
6348         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6349
6350 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6351
6352         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6353         declaring high/low bounds and change uses accordingly. Call
6354         create_range_type instead of create_static_range_type.
6355         * gdbtypes.c (create_range_type): New function.
6356         (create_range_type): Convert bounds into struct bound_prop and pass
6357         them to create_range_type.
6358         * gdbtypes.h (struct bound_prop): New struct.
6359         (create_range_type): New function prototype.
6360         (struct range_bounds): Use struct bound_prop instead of LONGEST for
6361         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6362         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6363         part of the bound.
6364         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6365
6366 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6367
6368         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6369         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6370         * ada-lang.c: All uses of create_range_type updated.
6371         * coffread.c: All uses of create_range_type updated.
6372         * dwarf2read.c: All uses of create_range_type updated.
6373         * f-exp.y: All uses of create_range_type updated.
6374         * m2-valprint.c: All uses of create_range_type updated.
6375         * mdebugread.c: All uses of create_range_type updated.
6376         * stabsread.c: All uses of create_range_type updated.
6377         * valops.c: All uses of create_range_type updated.
6378         * valprint.c: All uses of create_range_type updated.
6379
6380 2014-04-10  Pedro Alves  <palves@redhat.com>
6381
6382         * breakpoint.c (single_step_breakpoints)
6383         (single_step_gdbarch): Move up in the file.
6384         (one_breakpoint_xfer_memory): New function, factored out from ...
6385         (breakpoint_xfer_memory): ... here.  Also process single-step
6386         breakpoints.
6387
6388 2014-04-09  Tristan Gingold  <gingold@adacore.com>
6389
6390         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6391         comments.
6392         (darwin_decode_exception_message): Free port only after use.
6393
6394 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
6395
6396         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6397         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6398         when setting the size of call_length.
6399
6400 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
6401
6402         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6403         dereference TYPE_CODE_REF values.
6404
6405 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
6406
6407         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6408         end of warning message.
6409
6410 2014-04-03  Doug Evans  <dje@google.com>
6411
6412         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6413         of stub_comp_unit_die, stub_comp_dir is non-NULL.
6414
6415 2014-04-02  Alan Modra  <amodra@gmail.com>
6416
6417         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6418         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
6419         (struct symbol_file_add_from_memory_args): Add size field.
6420         (find_vdso_size): New function.
6421         (add_vsyscall_page): Attempt to find vdso size.
6422
6423 2014-04-01  Doug Evans  <dje@google.com>
6424
6425         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6426
6427 2014-04-01  Tristan Gingold  <gingold@adacore.com>
6428
6429         * darwin-nat.c (darwin_encode_reply): Add prototype.
6430         (darwin_decode_exception_message): Reply to unknown inferiors.
6431         (darwin_decode_message): Handle message by id.  Ignore message
6432         to unknown inferior.
6433         (darwin_wait): Discard unknown messages, add debug trace.
6434
6435 2014-03-31  Doug Evans  <dje@google.com>
6436
6437         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6438         comp_dir_string.
6439
6440 2014-03-31  Doug Evans  <dje@google.com>
6441
6442         New option "set print symbol-loading".
6443         * NEWS: Mention it.
6444         * solib.c (solib_read_symbols): Only print symbol loading messages
6445         if requested.
6446         (solib_add): If symbol loading is in "brief" mode, notify user
6447         symbols are being loaded.
6448         (reload_shared_libraries_1): Ditto.
6449         * symfile.c (print_symbol_loading_off): New static global.
6450         (print_symbol_loading_brief): New static global.
6451         (print_symbol_loading_full): New static global.
6452         (print_symbol_loading_enums): New static global.
6453         (print_symbol_loading): New static global.
6454         (print_symbol_loading_p): New function.
6455         (symbol_file_add_with_addrs): Only print symbol loading messages
6456         if requested.
6457         (_initialize_symfile): Register "print symbol-loading" set/show
6458         command.
6459         * symfile.h (print_symbol_loading_p): Declare.
6460
6461 2014-03-30  Doug Evans  <xdje42@gmail.com>
6462
6463         * infrun.c (set_last_target_status): New function.
6464         (handle_inferior_event): Call it.
6465
6466 2014-03-30  Doug Evans  <xdje42@gmail.com>
6467
6468         * inferior.h (enum stop_kind): Improve comment.
6469
6470 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
6471
6472         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6473         a reference, strip the reference layer before calling
6474         the lang_ops value_has_mutated callback.
6475
6476 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6477
6478         Remove some globals from our parser.
6479         * language.c (unk_lang_parser): Add "struct parser_state"
6480         argument.
6481         * language.h (struct language_defn) <la_parser>: Likewise.
6482         * parse.c (expout, expout_size, expout_ptr): Remove variables.
6483         (initialize_expout): Add "struct parser_state" argument.
6484         Rewrite function to use the parser state.
6485         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6486         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6487         write_exp_elt_longcst, write_exp_elt_dblcst,
6488         write_exp_elt_decfloatcst, write_exp_elt_type,
6489         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6490         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6491         write_dollar_variable): Likewise.
6492         (parse_exp_in_context_1): Use parser state.
6493         (insert_type_address_space): Add "struct parser_state" argument.
6494         Use parser state.
6495         (increase_expout_size): New function.
6496         * parser-defs.h: Forward declare "struct language_defn" and
6497         "struct parser_state".
6498         (expout, expout_size, expout_ptr): Remove extern declarations.
6499         (parse_gdbarch, parse_language): Rewrite macro declarations to
6500         accept the parser state.
6501         (struct parser_state): New struct.
6502         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6503         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6504         write_exp_elt_decfloatcst, write_exp_elt_type,
6505         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6506         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6507         write_exp_msymbol, write_dollar_variable,
6508         mark_struct_expression, insert_type_address_space): Add "struct
6509         parser_state" argument.
6510         (increase_expout_size): New function.
6511         * utils.c (do_clear_parser_state): New function.
6512         (make_cleanup_clear_parser_state): Likewise.
6513         * utils.h (make_cleanup_clear_parser_state): New function
6514         prototype.
6515         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6516         Update calls to write_exp* in order to pass the parser state.
6517         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6518         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6519         (i386_stap_parse_special_token_three_arg_disp): Likewise.
6520         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6521         * stap-probe.c (stap_parse_register_operand): Likewise.
6522         (stap_parse_single_operand): Likewise.
6523         (stap_parse_argument_1): Likewise.
6524         (stap_parse_argument): Use parser state.
6525         * stap-probe.h: Include "parser-defs.h".
6526         (struct stap_parse_info) <pstate>: New field.
6527         * c-exp.y (parse_type): Rewrite to use parser state.
6528         (yyparse): Redefine to c_parse_internal.
6529         (pstate): New global variable.
6530         (parse_number): Add "struct parser_state" argument.
6531         (write_destructor_name): Likewise.
6532         (type_exp): Update calls to write_exp* and similars in order to
6533         use parser state.
6534         (exp1, exp, variable, qualified_name, space_identifier,
6535         typename, typebase): Likewise.
6536         (write_destructor_name, parse_number, lex_one_token,
6537         classify_name, classify_inner_name, c_parse): Add "struct
6538         parser_state" argument.  Update function to use parser state.
6539         * c-lang.h: Forward declare "struct parser_state".
6540         (c_parse): Add "struct parser_state" argument.
6541         * ada-exp.y (parse_type): Rewrite macro to use parser state.
6542         (yyparse): Redefine macro to ada_parse_internal.
6543         (pstate): New variable.
6544         (write_int, write_object_renaming, write_var_or_type,
6545         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6546         type_int, type_long, type_long_long, type_float, type_double,
6547         type_long_double, type_char, type_boolean, type_system_address):
6548         Add "struct parser_state" argument.
6549         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6550         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6551         var_or_type, aggregate, aggregate_component_list,
6552         positional_list, others, component_group,
6553         component_associations): Update calls to write_exp* and similar
6554         functions in order to use parser state.
6555         (ada_parse, write_var_from_sym, write_int,
6556         write_exp_op_with_string, write_object_renaming,
6557         find_primitive_type, write_selectors, write_ambiguous_var,
6558         write_var_or_type, write_name_assoc, type_int, type_long,
6559         type_long_long, type_float, type_double, type_long_double,
6560         type_char, type_boolean, type_system_address): Add "struct
6561         parser_state" argument.  Adjust function to use parser state.
6562         * ada-lang.c (parse): Likewise.
6563         * ada-lang.h: Forward declare "struct parser_state".
6564         (ada_parse): Add "struct parser_state" argument.
6565         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
6566         calls to both functions.
6567         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6568         parser state.
6569         (yyparse): Redefine macro to f_parse_internal.
6570         (pstate): New variable.
6571         (parse_number): Add "struct parser_state" argument.
6572         (type_exp, exp, subrange, typebase): Update calls to write_exp*
6573         and similars in order to use parser state.
6574         (parse_number): Adjust code to use parser state.
6575         (yylex): Likewise.
6576         (f_parse): New function.
6577         * f-lang.h: Forward declare "struct parser_state".
6578         (f_parse): Add "struct parser_state" argument.
6579         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6580         parser state.
6581         (yyparse): Redefine macro for java_parse_internal.
6582         (pstate): New variable.
6583         (push_expression_name, push_expression_name, insert_exp): Add
6584         "struct parser_state" argument.
6585         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6586         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6587         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6588         PostIncrementExpression, PostDecrementExpression,
6589         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6590         UnaryExpressionNotPlusMinus, CastExpression,
6591         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6592         RelationalExpression, EqualityExpression, AndExpression,
6593         ExclusiveOrExpression, InclusiveOrExpression,
6594         ConditionalAndExpression, ConditionalOrExpression,
6595         ConditionalExpression, Assignment, LeftHandSide): Update
6596         calls to write_exp* and similars in order to use parser state.
6597         (parse_number): Ajust code to use parser state.
6598         (yylex): Likewise.
6599         (java_parse): New function.
6600         (push_variable): Add "struct parser_state" argument.  Adjust
6601         code to user parser state.
6602         (push_fieldnames, push_qualified_expression_name,
6603         push_expression_name, insert_exp): Likewise.
6604         * jv-lang.h: Forward declare "struct parser_state".
6605         (java_parse): Add "struct parser_state" argument.
6606         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6607         parser state.
6608         (yyparse): Redefine macro to m2_parse_internal.
6609         (pstate): New variable.
6610         (type_exp, exp, fblock, variable, type): Update calls to
6611         write_exp* and similars to use parser state.
6612         (yylex): Likewise.
6613         (m2_parse): New function.
6614         * m2-lang.h: Forward declare "struct parser_state".
6615         (m2_parse): Add "struct parser_state" argument.
6616         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6617         * objc-lang.h: Forward declare "struct parser_state".
6618         (end_msglist): Add "struct parser_state" argument.
6619         * p-exp.y (parse_type): Rewrite macro to use parser state.
6620         (yyparse): Redefine macro to pascal_parse_internal.
6621         (pstate): New variable.
6622         (parse_number): Add "struct parser_state" argument.
6623         (type_exp, exp1, exp, qualified_name, variable): Update calls to
6624         write_exp* and similars in order to use parser state.
6625         (parse_number, yylex): Adjust code to use parser state.
6626         (pascal_parse): New function.
6627         * p-lang.h: Forward declare "struct parser_state".
6628         (pascal_parse): Add "struct parser_state" argument.
6629         * go-exp.y (parse_type): Rewrite macro to use parser state.
6630         (yyparse): Redefine macro to go_parse_internal.
6631         (pstate): New variable.
6632         (parse_number): Add "struct parser_state" argument.
6633         (type_exp, exp1, exp, variable, type): Update calls to
6634         write_exp* and similars in order to use parser state.
6635         (parse_number, lex_one_token, classify_name, yylex): Adjust code
6636         to use parser state.
6637         (go_parse): Likewise.
6638         * go-lang.h: Forward declare "struct parser_state".
6639         (go_parse): Add "struct parser_state" argument.
6640
6641 2014-03-27  Doug Evans  <dje@google.com>
6642
6643         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
6644
6645 2014-03-27  Doug Evans  <dje@google.com>
6646
6647         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6648         Remove argument abbrev_section.  All callers updated.
6649
6650 2014-03-27  Doug Evans  <dje@google.com>
6651
6652         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6653         addr_base, ranges_base.
6654
6655 2014-03-26  Keith Seitz  <keiths@redhat.com>
6656
6657         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6658         types, not VAR_DOMAIN.
6659
6660 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
6661
6662         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6663         "ra" registers.
6664         * features/nios2-linux.c: Regenerated.
6665         * features/nios2.c: Regenerated.
6666
6667 2014-03-25  Pedro Alves  <palves@redhat.com>
6668
6669         * cli/cli-script.c (script_from_file): Force the interpreter to
6670         sync mode.
6671
6672 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
6673
6674         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6675         small stack allocation.
6676
6677 2014-03-24  Tristan Gingold  <gingold@adacore.com>
6678
6679         * darwin-nat.c (exc_server): Remove unused prototype.
6680         (darwin_dump_message): Correctly display data on x86_64.
6681         (darwin_encode_reply): Fix style.
6682         Add comments and fix indentation.
6683
6684 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
6685
6686         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6687
6688 2014-03-22  Doug Evans  <xdje42@gmail.com>
6689
6690         * infcmd.c: Whitespace fixes.
6691         (interrupt_command): Merge two function comments into one.
6692
6693 2014-03-22  Doug Evans  <xdje42@gmail.com>
6694
6695         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6696         All uses updated.
6697
6698 2014-03-22  Yao Qi  <yao@codesourcery.com>
6699
6700         * remote.c (target_read_live_memory): Remove.
6701         (memory_xfer_live_readonly_partial): Rename it to
6702         remote_xfer_live_readonly_partial.  Remove argument 'object'.
6703         All callers updated.  Call remote_read_bytes_1
6704         instead of target_read_live_memory.
6705         * tracepoint.c (set_traceframe_number): Remove.
6706         (make_cleanup_restore_traceframe_number): Likewise .
6707         * tracepoint.h (set_traceframe_number): Remove declaration.
6708         (make_cleanup_restore_traceframe_number): Likewise.
6709
6710 2014-03-22  Yao Qi  <yao@codesourcery.com>
6711
6712         * remote.c (remote_read_bytes): Move code on reading from the
6713         remote stub to ...
6714         (remote_read_bytes_1): ... here.  New function.
6715
6716 2014-03-22  Yao Qi  <yao@codesourcery.com>
6717
6718         * ctf.c (ctf_xfer_partial): Check the return value of
6719         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6720         return TARGET_XFER_UNAVAILABLE.
6721         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6722         * target.c (target_read_live_memory): Move it to remote.c.
6723         (memory_xfer_live_readonly_partial): Likewise.
6724         (memory_xfer_partial_1): Move some code to remote_read_bytes.
6725         * remote.c (target_read_live_memory): Moved from target.c.
6726         (memory_xfer_live_readonly_partial): Likewise.
6727         (remote_read_bytes): Factored out from
6728         memory_xfer_partial_1.
6729
6730 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
6731
6732         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6733         NULL pointer.
6734
6735 2014-03-21  Pedro Alves  <palves@redhat.com>
6736
6737         * infrun.c (normal_stop): Extend comment.
6738
6739 2014-03-21  Hui Zhu  <hui@codesourcery.com>
6740             Pedro Alves  <palves@redhat.com>
6741
6742         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6743         static buffer.
6744         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6745         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6746         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6747
6748 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
6749
6750         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6751         `z' formatted output modifier.
6752
6753 2014-03-20  Tom Tromey  <tromey@redhat.com>
6754             Sergio Durigan Junior  <sergiodj@redhat.com>
6755
6756         * probe.c (parse_probes): Turn assert into an ordinary error.
6757         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6758         exceptions when parsing probes.  Rearrange the code for clarity.
6759
6760 2014-03-20  Tom Tromey  <tromey@redhat.com>
6761
6762         PR gdb/14135
6763         * top.c (execute_command): Only dispatch events if the command
6764         started the target.
6765
6766 2014-03-20  Tom Tromey  <tromey@redhat.com>
6767
6768         PR cli/15718
6769         * infcall.c: Include event-top.h.
6770         (run_inferior_call): Call async_disable_stdin if needed.
6771
6772 2014-03-20  Pedro Alves  <palves@redhat.com>
6773
6774         * infrun.c (prepare_to_proceed): Delete.
6775         (thread_still_needs_step_over): New function.
6776         (find_thread_needs_step_over): New function.
6777         (proceed): If the current thread needs a step-over, set its
6778         steping_over_breakpoint flag.  Adjust to use
6779         find_thread_needs_step_over instead of prepare_to_proceed.
6780         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6781         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6782         breakpoint.
6783         (switch_back_to_stepped_thread): Step over breakpoints of all
6784         threads not the stepping thread, before switching back to the
6785         stepping thread.
6786
6787 2014-03-20  Pedro Alves  <palves@redhat.com>
6788
6789         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6790         extern.
6791         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6792         * infrun.c (saved_singlestep_ptid)
6793         (stepping_past_singlestep_breakpoint): Delete.
6794         (resume): Remove stepping_past_singlestep_breakpoint handling.
6795         (proceed): Store the prev_pc of the stepping thread too.
6796         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
6797         singlestep_pc.
6798         (enum infwait_states): Delete infwait_thread_hop_state.
6799         (struct execution_control_state) <hit_singlestep_breakpoint>: New
6800         field.
6801         (handle_inferior_event): Adjust.
6802         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6803         handling and the thread-hop code.  Before removing single-step
6804         breakpoints, check whether the thread hit a single-step breakpoint
6805         of another thread.  If it did, the trap is not a random signal.
6806         (switch_back_to_stepped_thread): If the event thread hit a
6807         single-step breakpoint, unblock it before switching to the
6808         stepping thread.  Handle the case of the stepped thread having
6809         advanced already.
6810         (keep_going): Handle the case of the current thread moving past a
6811         single-step breakpoint.
6812
6813 2014-03-20  Pedro Alves  <palves@redhat.com>
6814
6815         PR breakpoints/7143
6816         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6817         are being stepped over.
6818         (breakpoint_address_match): Make extern.
6819         * breakpoint.h (breakpoint_address_match): New declaration.
6820         * inferior.h (stepping_past_instruction_at): New declaration.
6821         * infrun.c (struct step_over_info): New type.
6822         (step_over_info): New global.
6823         (set_step_over_info, clear_step_over_info)
6824         (stepping_past_instruction_at): New functions.
6825         (handle_inferior_event): Clear the step-over info when
6826         trap_expected is cleared.
6827         (resume): Remove now stale comment.
6828         (clear_proceed_status): Clear step-over info.
6829         (proceed): Adjust step-over handling to set or clear the step-over
6830         info instead of removing all breakpoints.
6831         (handle_signal_stop): When setting up a thread-hop, don't remove
6832         breakpoints here.
6833         (stop_stepping): Clear step-over info.
6834         (keep_going): Adjust step-over handling to set or clear step-over
6835         info and then always inserting breakpoints, instead of removing
6836         all breakpoints when stepping over one.
6837
6838 2014-03-20  Pedro Alves  <palves@redhat.com>
6839
6840         * infrun.c (previous_inferior_ptid): Adjust comment.
6841         (deferred_step_ptid): Delete.
6842         (infrun_thread_ptid_changed, prepare_to_proceed)
6843         (init_wait_for_inferior): Adjust.
6844         (handle_signal_stop): Delete deferred_step_ptid handling.
6845
6846 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6847
6848         PR gdb/15358
6849         * defs.h (sync_quit_force_run): New declaration.
6850         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6851         * event-top.c (async_sigterm_handler): New declaration.
6852         (async_sigterm_token): New variable.
6853         (async_init_signals): Create also async_sigterm_token.
6854         (async_sigterm_handler): New function.
6855         (sync_quit_force_run): New variable.
6856         (handle_sigterm): Replace quit_force call by other calls.
6857         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6858
6859 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
6860
6861         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6862         offset into SPE pseudo registers.
6863
6864 2014-03-18  Pedro Alves  <palves@redhat.com>
6865
6866         PR gdb/13860
6867         * inferior.h (print_stop_event): Declare.
6868         * infrun.c (print_stop_event): New, factored out from ...
6869         (normal_stop): ... this.
6870         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6871         of bpstat_print/print_stack_frame.
6872
6873 2014-03-17  Tom Tromey  <tromey@redhat.com>
6874
6875         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6876
6877 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
6878
6879         * ada-lang.c (decode_constrained_packed_array): Perform a
6880         minimal coercion for reference with coerce_ref instead of
6881         ada_coerce_ref.
6882
6883 2014-03-17  Tristan Gingold  <gingold@adacore.com>
6884
6885         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6886         (darwin_solib_create_inferior_hook): Emit a warning if version
6887         is unhandled.
6888
6889 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
6890
6891         * python/py-value.c (get_field_flag): Cast flag_name argument to
6892         PyObject_GetAttrString to support Python 2.4.
6893
6894 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
6895
6896         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6897         (Global Maintainers): Remove Jan Kratochvil.
6898
6899 2014-03-14  Pedro Alves  <palves@redhat.com>
6900
6901         * inferior.h (terminal_ours_for_output): Rename to ...
6902         (child_terminal_ours_for_output): ... this.
6903         (terminal_save_ours): Rename to ...
6904         (child_terminal_save_ours): ... this.
6905         (terminal_ours): Rename to ...
6906         (child_terminal_ours): ... this.
6907         (terminal_inferior): Rename to ...
6908         (child_terminal_inferior): ... this.
6909         (terminal_init_inferior): Rename to ...
6910         (child_terminal_init_inferior): ... this.
6911         (terminal_init_inferior_with_pgrp): Rename to ...
6912         (child_terminal_init_inferior_with_pgrp): ... this.
6913         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6914         (child_terminal_init_with_pgrp): ... this.
6915         (terminal_save_ours): Rename to ...
6916         (child_terminal_save_ours): ... this.
6917         (terminal_init_inferior): Rename to ...
6918         (child_terminal_init): ... this.  Adjust.
6919         (terminal_inferior): Rename to ...
6920         (child_terminal_inferior): ... this.
6921         (terminal_ours_for_output): Rename to ...
6922         (child_terminal_ours_for_output): ... this.  Adjust.
6923         (terminal_ours): Rename to ...
6924         (child_terminal_ours): ... this.
6925         (terminal_ours_1): Rename to ...
6926         (child_terminal_ours_1): ... this.  Adjust.
6927         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6928         * windows-nat.c (do_initial_windows_stuff): Adjust.
6929         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6930         (gnu_terminal_init): ... this.  Adjust.
6931         (gnu_target): Adjust.
6932         * inf-child.c (inf_child_target): Adjust.
6933
6934 2014-03-13  Doug Evans  <xdje42@gmail.com>
6935
6936         PR guile/16612
6937         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6938         new eq?-hashtab.
6939
6940 2014-03-13  Doug Evans  <xdje42@gmail.com>
6941
6942         * value.c (record_latest_value): Call release_value_or_incref
6943         instead of release_value.
6944
6945 2014-03-13  Pedro Alves  <palves@redhat.com>
6946
6947         * procfs.c (procfs_target): Don't override to_shortname,
6948         to_longname or to_doc.
6949
6950 2014-03-13  Pedro Alves  <palves@redhat.com>
6951
6952         * inf-child.c (inf_child_open, inf_child_target): Don't mention
6953         Unix in user visible strings.
6954
6955 2014-03-12  Stan Shebs  <stan@codesourcery.com>
6956
6957         * gdbtypes.h: Annotate comments for Doxygen, add a page
6958         block comment with some general info.
6959
6960 2014-03-12  Pedro Alves  <palves@redhat.com>
6961
6962         * infcmd.c (prepare_execution_command): New function, factored out
6963         from several execution commands.
6964         (run_command_1, continue_command, step_1, jump_command)
6965         (signal_command, until_command, advance_command, finish_command)
6966         (attach_command): Use prepare_execution_command.
6967
6968 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
6969
6970         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6971         (MAX_BPTS): Define.
6972         (MAX_WPTS): Define.
6973         (struct arm_linux_thread_points): Removed.
6974         (struct arm_linux_process_info): New.
6975         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6976         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6977         (arm_linux_find_breakpoints_by_tid): Removed.
6978         (struct arch_lwp_info): New.
6979         (arm_linux_find_process_pid): New functions.
6980         (arm_linux_add_process): New functions.
6981         (arm_linux_process_info_get): New functions.
6982         (arm_linux_forget_process): New function.
6983         (arm_linux_get_debug_reg_state): New function.
6984         (struct update_registers_data): New.
6985         (update_registers_callback): New function.
6986         (arm_linux_insert_hw_breakpoint1): Updated.
6987         (arm_linux_remove_hw_breakpoint1): Updated.
6988         (arm_linux_insert_hw_breakpoint): Updated.
6989         (arm_linux_remove_hw_breakpoint): Updated.
6990         (arm_linux_insert_watchpoint): Updated.
6991         (arm_linux_remove_watchpoint): Updated.
6992         (arm_linux_new_thread): Updated.
6993         (arm_linux_prepare_to_resume): New function.
6994         (arm_linux_new_fork): New function.
6995         (_initialize_arm_linux_nat): Updated.
6996
6997 2014-03-12  Pedro Alves  <palves@redhat.com>
6998
6999         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7000
7001 2014-03-12  Tom Tromey  <tromey@redhat.com>
7002
7003         * inf-child.c (return_zero): New function.
7004         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7005         * aix-thread.c (aix_thread_inferior_created): New function.
7006         (aix_thread_attach): Remove.
7007         (init_aix_thread_ops): Don't set to_attach.
7008         (_initialize_aix_thread): Register inferior_created observer.
7009         * corelow.c (init_core_ops): Don't set to_attach or
7010         to_create_inferior.
7011         * exec.c (init_exec_ops): Don't set to_attach or
7012         to_create_inferior.
7013         * infcmd.c (run_command_1): Use find_run_target.  Make direct
7014         target calls.
7015         (attach_command): Use find_attach_target.  Make direct target
7016         calls.
7017         * record-btrace.c (init_record_btrace_ops): Don't set
7018         to_create_inferior.
7019         * record-full.c (record_full_can_async_p, record_full_is_async_p):
7020         Remove.
7021         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
7022         set to_create_inferior.
7023         * target.c (complete_target_initialization): Add assertion.
7024         (target_create_inferior): Remove.
7025         (find_default_attach, find_default_create_inferior): Remove.
7026         (find_attach_target, find_run_target): New functions.
7027         (find_default_is_async_p, find_default_can_async_p)
7028         (target_supports_non_stop, target_attach): Remove.
7029         (init_dummy_target): Don't set to_create_inferior or
7030         to_supports_non_stop.
7031         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
7032         TARGET_DEFAULT_FUNC.
7033         <to_create_inferior>: Add comment.
7034         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7035         TARGET_DEFAULT_RETURN.
7036         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7037         (find_attach_target, find_run_target): Declare.
7038         (target_create_inferior): Remove.
7039         (target_has_execution_1): Update comment.
7040         (target_supports_non_stop): Remove.
7041         * target-delegates.c: Rebuild.
7042
7043 2014-03-12  Pedro Alves  <palves@redhat.com>
7044
7045         * inf-child.h: Update comment to not mention Unix.
7046
7047 2014-03-12  Pedro Alves  <palves@redhat.com>
7048
7049         * inf-child.c: Update top comment to not mention Unix.  Add
7050         generic comment describing how this target is meant to be used.
7051         (inf_child_post_attach, inf_child_post_startup_inferior)
7052         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7053         Unix in comment.
7054
7055 2014-03-12  Pedro Alves  <palves@redhat.com>
7056
7057         * nto-procfs.c: Include inf-child.h.
7058         (procfs_ops): Delete global.
7059         (procfs_can_run): Delete method.
7060         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7061         target pointer instead of referencing procfs_ops.
7062         (procfs_prepare_to_store): Delete.
7063         (init_procfs_ops): Delete function.
7064         (procfs_target): New function, based on init_procfs_ops, but
7065         inherit inf_child_target.
7066         (_initialize_procfs): Use procfs_target.
7067
7068 2014-03-12  Pedro Alves  <palves@redhat.com>
7069
7070         * windows-nat.c: Include inf-child.h.
7071         (windows_ops): Delete global.
7072         (windows_open, windows_prepare_to_store, windows_can_run): Delete
7073         methods.
7074         (init_windows_ops): Delete function.
7075         (windows_target): New function, based on init_windows_ops, but
7076         inherit inf_child_target.
7077         (_initialize_windows_nat): Use windows_target.  Install x86
7078         specific target methods here.
7079
7080 2014-03-10  Doug Evans  <xdje42@gmail.com>
7081
7082         * guile/guile.c (call_initialize_gdb_module): New function.
7083         (initialize_guile): Replace call to scm_init_guile with call to
7084         scm_with_guile.
7085
7086 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
7087
7088         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7089         in call to TYPE_CODE macro.
7090
7091 2014-03-10  Jerome Guitton  <guitton@adacore.com>
7092
7093         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7094         Resolve tagged types to full view.
7095
7096 2014-03-10  Hui Zhu  <hui@codesourcery.com>
7097
7098         * target.h (target_insert_breakpoint): Remove "hardware" from its
7099         comments.
7100
7101 2014-03-07  Doug Evans  <dje@google.com>
7102
7103         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7104
7105 2014-03-07  Doug Evans  <dje@google.com>
7106
7107         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7108         Remove unused local comp_dir_attr.  Assert exactly one of
7109         stub_comp_unit_die, stub_comp_dir is non-NULL.
7110
7111 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
7112
7113         * target.h (complete_target_initialization, add_target):
7114         Add comment.
7115
7116 2014-03-07  Pedro Alves  <palves@redhat.com>
7117
7118         * go32-nat.c: Include inf-child.h.
7119         (go32_ops): Delete global.
7120         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7121         Delete methods.
7122         (go32_create_inferior): Push the passed in target pointer instead
7123         of referencing go32_ops.
7124         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
7125         (go32_target): New function, based on init_go32_ops, but inherit
7126         inf_child_target.
7127         (_initialize_go32_nat): Use go32_target.  Move parts of
7128         init_go32_ops here.
7129
7130 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
7131
7132         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7133         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7134         SYMBOL_VALUE_ADDRESS.
7135         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7136
7137 2014-03-06  Yao Qi  <yao@codesourcery.com>
7138
7139         * breakpoint.c (get_tracepoint_by_number): Remove argument
7140         optional_p.  All callers updated.  Adjust comments.  Update
7141         output message.
7142         * breakpoint.h (get_tracepoint_by_number): Update declaration.
7143
7144 2014-03-06  Yao Qi  <yao@codesourcery.com>
7145
7146         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
7147         early if get_number returns zero.  Use 'p' instead of 'args'.
7148
7149 2014-03-06  Yao Qi  <yao@codesourcery.com>
7150
7151         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7152         message.
7153
7154 2014-03-06  Yao Qi  <yao@codesourcery.com>
7155
7156         PR breakpoints/16508
7157         * tracepoint.c (check_trace_running): New function.
7158         (trace_find_command): Move code to check_trace_running and
7159         call check_trace_running.
7160         (trace_find_pc_command): Likewise.
7161         (trace_find_tracepoint_command): Likewise.
7162         (trace_find_line_command): Likewise.
7163         (trace_find_range_command): Likewise.
7164         * tracepoint.h (check_trace_running): Likewise.
7165         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7166
7167 2014-03-06  Yao Qi  <yao@codesourcery.com>
7168
7169         * target.h (struct target_ops) <to_traceframe_info>: Use
7170         TARGET_DEFAULT_NORETURN (tcomplain ()).
7171         * target-delegates.c: Regenerated.
7172
7173 2014-03-05  Pedro Alves  <palves@redhat.com>
7174
7175         PR gdb/16575
7176         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
7177         void.  Update comment.
7178         (dcache_xfer_memory): Delete.
7179         (dcache_read_memory_partial): New, based on the read bits of
7180         dcache_xfer_memory.
7181         (dcache_update): Add status parameter.  Use ULONGEST for len, and
7182         adjust.  Discard cache lines if the reason for the update was
7183         error.
7184         * dcache.h (dcache_xfer_memory): Delete declaration.
7185         (dcache_read_memory_partial): New declaration.
7186         (dcache_update): Update prototype.
7187         * target.c (raw_memory_xfer_partial): Update the dcache here.
7188         (memory_xfer_partial_1): Don't handle dcache writes here.
7189
7190 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
7191
7192         * remote-sim.c (gdbsim_load): Add const to prog.
7193
7194 2014-03-03  Tom Tromey  <tromey@redhat.com>
7195
7196         * elfread.c (probe_key): Change to bfd_data.
7197         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7198         now per-BFD, not per-objfile.
7199         * stap-probe.c (stap_probe_destroy): Update comment.
7200         (handle_stap_probe): Allocate on the per-BFD obstack.
7201
7202 2014-03-03  Tom Tromey  <tromey@redhat.com>
7203
7204         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7205         * breakpoint.c (create_longjmp_master_breakpoint): Use
7206         get_probe_address.
7207         (add_location_to_breakpoint, bkpt_probe_insert_location)
7208         (bkpt_probe_remove_location): Update.
7209         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7210         * elfread.c (elf_symfile_relocate_probe): Remove.
7211         (elf_probe_fns): Update.
7212         (insert_exception_resume_breakpoint): Change type of "probe"
7213         parameter to bound_probe.
7214         (check_exception_resume): Update.
7215         * objfiles.c (objfile_relocate1): Don't relocate probes.
7216         * probe.c (bound_probe_s): New typedef.
7217         (parse_probes): Use get_probe_address.  Set sal's objfile.
7218         (find_probe_by_pc): Return a bound_probe.
7219         (collect_probes): Return a VEC(bound_probe_s).
7220         (compare_probes): Update.
7221         (gen_ui_out_table_header_info): Change type of "probes"
7222         parameter.  Update.
7223         (info_probes_for_ops): Update.
7224         (get_probe_address): New function.
7225         (probe_safe_evaluate_at_pc): Update.
7226         * probe.h (struct probe_ops) <get_probe_address>: New field.
7227         <set_semaphore, clear_semaphore>: Add objfile parameter.
7228         (struct probe) <objfile>: Remove field.
7229         <arch>: New field.
7230         <address>: Update comment.
7231         (struct bound_probe): New.
7232         (find_probe_by_pc): Return a bound_probe.
7233         (get_probe_address): Declare.
7234         * solib-svr4.c (struct probe_and_action) <address>: New field.
7235         (hash_probe_and_action, equal_probe_and_action): Update.
7236         (register_solib_event_probe): Add address parameter.
7237         (solib_event_probe_at): Update.
7238         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
7239         get_probe_address.
7240         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7241         (stap_get_probe_address): New function.
7242         (stap_can_evaluate_probe_arguments, compute_probe_arg)
7243         (compile_probe_arg): Update.
7244         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7245         address.
7246         (handle_stap_probe): Don't relocate the probe.
7247         (stap_relocate): Remove.
7248         (stap_gen_info_probes_table_values): Update.
7249         (stap_probe_ops): Remove stap_relocate.
7250         * symfile-debug.c (debug_sym_relocate_probe): Remove.
7251         (debug_sym_probe_fns): Update.
7252         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7253         * symtab.c (init_sal): Use memset.
7254         * symtab.h (struct symtab_and_line) <objfile>: New field.
7255         * tracepoint.c (start_tracing, stop_tracing): Update.
7256
7257 2014-03-03  Tom Tromey  <tromey@redhat.com>
7258
7259         * probe.h (parse_probes, find_probe_by_pc)
7260         (find_probes_in_objfile): Fix comments.
7261
7262 2014-03-02  Doug Evans  <xdje42@gmail.com>
7263
7264         * infrun.c (handle_signal_stop): Replace test for
7265         TARGET_WAITKIND_STOPPED with an assert.
7266
7267 2014-03-02  Doug Evans  <xdje42@gmail.com>
7268
7269         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7270
7271 2014-03-02  Doug Evans  <xdje42@gmail.com>
7272
7273         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7274
7275 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7276
7277         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7278
7279 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7280
7281         * i386obsd-nat.c: Include "obsd-nat.h".
7282         (_initialize_i386obsd_nat): Call obsd_add_target instead of
7283         add_target.
7284         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7285
7286 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7287
7288         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7289
7290 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7291
7292         * mips64obsd-nat.c: Include "obsd-nath".
7293         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7294         add_target
7295         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7296
7297 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7298
7299         * amd64obsd-nat.c: Include "obsd-nat,h.
7300         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7301         add_target.
7302         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7303
7304 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
7305
7306         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7307         (find_overload_match): Update call to find_oload_champ.
7308         (find_oload_champ_namespace_loop): Likewise
7309
7310 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
7311
7312         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7313
7314         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7315         * config/sparc/obsd64.mh: New file.
7316         * sparc64obsd-nat.c: New file.
7317
7318         * obsd-nat.h: New file.
7319         * obsd-nat.c: New file.
7320         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7321         (ALLDEPFILES): Add obsd-nat.c.
7322
7323 2014-02-28  Tom Tromey  <tromey@redhat.com>
7324
7325         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
7326         * cli-out.h (cli_ui_out_impl): Now const.
7327         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
7328         * ui-out.c (struct ui_out) <impl>: Now const.
7329         (default_ui_out_impl): Now const.
7330         (ui_out_new): Make 'impl' parameter const.
7331         * ui-out.h (ui_out_new): Update.
7332
7333 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7334
7335         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7336
7337 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7338
7339         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7340
7341 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
7342
7343         Additional PR 8882 fix.
7344         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7345
7346 2014-02-27  Pedro Alves  <palves@redhat.com>
7347
7348         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7349         isn't set.
7350
7351 2014-02-27  Pedro Alves  <palves@redhat.com>
7352
7353         PR 12702
7354         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7355         * nat/linux-waitpid.c: Include string.h.
7356         (status_to_str): Moved here and made extern.
7357         * nat/linux-waitpid.h (status_to_str): New declaration.
7358
7359 2014-02-27  Hui Zhu  <hui@codesourcery.com>
7360
7361         PR 12702
7362         * infrun.c (ptid_match): Move ...
7363         * common/ptid.c (ptid_match): ... here.
7364         * inferior.h (ptid_match): Move ...
7365         * common/ptid.h (ptid_match): ... here.
7366
7367 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7368
7369         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7370         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7371         gdb_target_obs.
7372
7373 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7374
7375         * obsd-tdep.c (obsd_auxv_parse): New function.
7376         (obsd_init_abi): Set auxv_parse.
7377
7378         * gdbarch.sh (auxv_parse): New.
7379         * gdbarch.h: Regenerated.
7380         * gdbarch.c: Regenerated.
7381         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7382
7383 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
7384
7385         * guile/scm-value.c (gdbscm_history_append_x): New function.
7386         (value_functions): Add it.
7387
7388 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
7389
7390         * dwarf2read.c (attr_value_as_address): New function.
7391         (dwarf2_find_base_address, read_call_site_scope): Use
7392         attr_value_as_address in place of DW_ADDR.
7393         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7394         the low and high addresses.  Slight rework of the handling
7395         of the high pc being a constant form, and limit it to
7396         DWARF verson 4 or higher.
7397         (dwarf2_record_block_ranges): Likewise.
7398         (read_partial_die): Likewise.
7399         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7400
7401 2014-02-26  Tom Tromey  <tromey@redhat.com>
7402
7403         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7404
7405 2014-02-26  Tom Tromey  <tromey@redhat.com>
7406
7407         * elfread.c (elf_read_minimal_symbols): Return early if
7408         minimal symbols have already been read.  Add "ei" parameter.
7409         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7410         * minsyms.c (prim_record_minimal_symbol_full): Update.
7411         * objfiles.h (struct objstats) <n_minsyms>: Move...
7412         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7413         * symmisc.c (print_objfile_statistics): Update.
7414
7415 2014-02-26  Tom Tromey  <tromey@redhat.com>
7416
7417         * elfread.c (elf_read_minimal_symbols): New function, from
7418         elf_symfile_read.
7419         (elf_symfile_read): Call it.
7420
7421 2014-02-26  Tom Tromey  <tromey@redhat.com>
7422
7423         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7424         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7425         (lookup_minimal_symbol_solib_trampoline)
7426         (lookup_minimal_symbol_by_pc_section_1)
7427         (lookup_minimal_symbol_and_objfile): Update.
7428         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7429         Don't allocate a minimal symbol if minsyms have already been read.
7430         (build_minimal_symbol_hash_tables): Update.
7431         (install_minimal_symbols): Do nothing if minsyms already read.
7432         Use the per-BFD obstack.
7433         (terminate_minimal_symbol_table): Use the per-BFD obstack.
7434         * objfiles.c (allocate_objfile): Call
7435         terminate_minimal_symbol_table later.
7436         (have_minimal_symbols): Update.
7437         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7438         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7439         Move from struct objfile.
7440         <minsyms_read>: New field.
7441         (struct objfile) <msymbols, minimal_symbol_count,
7442         msymbol_hash, msymbol_demangled_hash>: Move.
7443         (ALL_OBJFILE_MSYMBOLS): Update.
7444         * symfile.c (read_symbols): Set minsyms_read.
7445         (reread_symbols): Update.
7446         * symmisc.c (dump_objfile, dump_msymbols): Update.
7447
7448 2014-02-26  Tom Tromey  <tromey@redhat.com>
7449
7450         * minsyms.c (msymbols_sort): Remove.
7451         * minsyms.h (msymbols_sort): Remove.
7452         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7453         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7454         * elfread.c (elf_symtab_read): Don't add section offsets.
7455         * xcoffread.c (record_minimal_symbol): Don't add section offset
7456         to minimal symbol address.
7457         * somread.c (text_offset, data_offset): Remove.
7458         (som_symtab_read): Don't add section offsets to minimal symbol
7459         addresses.
7460         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7461         Don't add section offsets to minimal symbols.
7462         * coffread.c (coff_symtab_read): Don't add section offsets
7463         to minimal symbol addresses.
7464         * machoread.c (macho_symtab_add_minsym): Don't add section offset
7465         to minimal symbol addresses.
7466         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7467         section offset to minimal symbol addresses.
7468         * mdebugread.c (parse_partial_symbols): Don't add section
7469         offset to minimal symbol addresses.
7470         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7471         offset to minimal symbol addresses.
7472
7473 2014-02-26  Tom Tromey  <tromey@redhat.com>
7474
7475         * ada-lang.c (ada_main_name): Update.
7476         (ada_add_standard_exceptions): Update.
7477         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7478         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7479         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7480         * auxv.c (ld_so_xfer_auxv): Update.
7481         * avr-tdep.c (avr_scan_prologue): Update.
7482         * ax-gdb.c (gen_var_ref): Update.
7483         * blockframe.c (get_pc_function_start)
7484         (find_pc_partial_function_gnu_ifunc): Update.
7485         * breakpoint.c (create_overlay_event_breakpoint)
7486         (create_longjmp_master_breakpoint)
7487         (create_std_terminate_master_breakpoint)
7488         (create_exception_master_breakpoint): Update.
7489         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7490         * c-valprint.c (c_val_print): Update.
7491         * coff-pe-read.c (add_pe_forwarded_sym): Update.
7492         * common/agent.c (agent_look_up_symbols): Update.
7493         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7494         * dwarf2loc.c (call_site_to_target_addr): Update.
7495         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7496         * elfread.c (elf_gnu_ifunc_record_cache)
7497         (elf_gnu_ifunc_resolve_by_got): Update.
7498         * findvar.c (default_read_var_value): Update.
7499         * frame.c (inside_main_func): Update.
7500         * frv-tdep.c (frv_frame_this_id): Update.
7501         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7502         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7503         Update.
7504         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7505         (hppa_hpux_find_dummy_bpaddr): Update.
7506         * hppa-tdep.c (hppa_symbol_address): Update.
7507         * infcmd.c (until_next_command): Update.
7508         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7509         Update.
7510         * linespec.c (minsym_found, add_minsym): Update.
7511         * linux-nat.c (get_signo): Update.
7512         * linux-thread-db.c (inferior_has_bug): Update.
7513         * m32c-tdep.c (m32c_return_value)
7514         (m32c_m16c_address_to_pointer): Update.
7515         * m32r-tdep.c (m32r_frame_this_id): Update.
7516         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7517         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7518         * maint.c (maintenance_translate_address): Update.
7519         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7520         (frob_address): New function.
7521         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7522         frob_address.  Rename parameter to "pc_in".
7523         (compare_minimal_symbols, compact_minimal_symbols): Use raw
7524         addresses.
7525         (find_solib_trampoline_target, minimal_symbol_upper_bound):
7526         Update.
7527         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7528         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7529         * objc-lang.c (find_objc_msgsend): Update.
7530         * objfiles.c (objfile_relocate1): Update.
7531         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7532         * p-valprint.c (pascal_val_print): Update.
7533         * parse.c (write_exp_msymbol): Update.
7534         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7535         (ppc_elfv2_skip_entrypoint): Update.
7536         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7537         * printcmd.c (build_address_symbolic, msym_info)
7538         (address_info): Update.
7539         * proc-service.c (ps_pglobal_lookup): Update.
7540         * psymtab.c (find_pc_sect_psymtab_closer)
7541         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7542         Change msymbol parameter to bound_minimal_symbol.
7543         * ravenscar-thread.c (get_running_thread_id): Update.
7544         * remote.c (remote_check_symbols): Update.
7545         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7546         address.
7547         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7548         * solib-dsbt.c (lm_base): Update.
7549         * solib-frv.c (lm_base, main_got): Update.
7550         * solib-irix.c (locate_base): Update.
7551         * solib-som.c (som_solib_create_inferior_hook)
7552         (link_map_start): Update.
7553         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7554         * solib-svr4.c (elf_locate_base, enable_break): Update.
7555         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7556         (flush_ea_cache): Update.
7557         * stabsread.c (define_symbol, scan_file_globals): Update.
7558         * stack.c (find_frame_funname): Update.
7559         * symfile-debug.c (debug_qf_expand_symtabs_matching)
7560         (debug_qf_find_pc_sect_symtab): Update.
7561         * symfile.c (simple_read_overlay_table)
7562         (simple_overlay_update): Update.
7563         * symfile.h (struct quick_symbol_functions)
7564         <find_pc_sect_symtab>: Change type of msymbol to
7565         bound_minimal_symbol.
7566         * symmisc.c (dump_msymbols): Update.
7567         * symtab.c (find_pc_sect_symtab_via_partial)
7568         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7569         (search_symbols, print_msymbol_info): Update.
7570         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7571         (MSYMBOL_VALUE_ADDRESS): Redefine.
7572         (BMSYMBOL_VALUE_ADDRESS): New macro.
7573         * tracepoint.c (scope_info): Update.
7574         * tui/tui-disasm.c (tui_find_disassembly_address)
7575         (tui_get_begin_asm_address): Update.
7576         * valops.c (find_function_in_inferior): Update.
7577         * value.c (value_static_field, value_fn_field): Update.
7578
7579 2014-02-26  Tom Tromey  <tromey@redhat.com>
7580
7581         * ada-lang.c (ada_update_initial_language): Update.
7582         (ada_main_name, ada_has_this_exception_support): Update.
7583         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7584         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7585         * arm-tdep.c (arm_skip_stub): Update.
7586         * auxv.c (ld_so_xfer_auxv): Update.
7587         * avr-tdep.c (avr_scan_prologue): Update.
7588         * ax-gdb.c (gen_var_ref): Update.
7589         * breakpoint.c (struct breakpoint_objfile_data)
7590         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7591         type to bound_minimal_symbol.
7592         (create_overlay_event_breakpoint)
7593         (create_longjmp_master_breakpoint)
7594         (create_std_terminate_master_breakpoint)
7595         (create_exception_master_breakpoint): Update.
7596         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7597         * c-exp.y (classify_name): Update.
7598         * coffread.c (coff_symfile_read): Update.
7599         * common/agent.c (agent_look_up_symbols): Update.
7600         * d-lang.c (d_main_name): Update.
7601         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7602         * dec-thread.c (enable_dec_thread): Update.
7603         * dwarf2loc.c (call_site_to_target_addr): Update.
7604         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7605         * eval.c (evaluate_subexp_standard): Update.
7606         * findvar.c (struct minsym_lookup_data) <result>: Change type
7607         to bound_minimal_symbol.
7608         <objfile>: Remove.
7609         (minsym_lookup_iterator_cb, default_read_var_value): Update.
7610         * frame.c (inside_main_func): Update.
7611         * frv-tdep.c (frv_frame_this_id): Update.
7612         * gcore.c (call_target_sbrk): Update.
7613         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7614         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7615         Update.
7616         * go-lang.c (go_main_name): Update.
7617         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7618         (hppa_hpux_find_import_stub_for_addr): Update.
7619         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7620         Update.  Change return type.
7621         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7622         type.
7623         * jit.c (jit_breakpoint_re_set_internal): Update.
7624         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7625         Update.
7626         * linux-nat.c (get_signo): Update.
7627         * linux-thread-db.c (inferior_has_bug): Update
7628         * m32c-tdep.c (m32c_return_value)
7629         (m32c_m16c_address_to_pointer): Update.
7630         * m32r-tdep.c (m32r_frame_this_id): Update.
7631         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7632         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7633         * minsyms.c (lookup_minimal_symbol_internal): Rename to
7634         lookup_minimal_symbol.  Change return type.
7635         (lookup_minimal_symbol): Remove.
7636         (lookup_bound_minimal_symbol): Update.
7637         (lookup_minimal_symbol_text): Change return type.
7638         (lookup_minimal_symbol_solib_trampoline): Change return type.
7639         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7640         (lookup_minimal_symbol_solib_trampoline): Change return type.
7641         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7642         * objc-lang.c (lookup_objc_class, lookup_child_selector)
7643         (value_nsstring, find_imps): Update.
7644         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7645         * p-lang.c (pascal_main_name): Update.
7646         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7647         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7648         * proc-service.c (ps_pglobal_lookup): Update.
7649         * ravenscar-thread.c (get_running_thread_msymbol): Change
7650         return type.
7651         (has_ravenscar_runtime, get_running_thread_id): Update.
7652         * remote.c (remote_check_symbols): Update.
7653         * sol-thread.c (ps_pglobal_lookup): Update.
7654         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7655         * solib-dsbt.c (lm_base): Update.
7656         * solib-frv.c (lm_base, frv_relocate_section_addresses):
7657         Update.
7658         * solib-irix.c (locate_base): Update.
7659         * solib-som.c (som_solib_create_inferior_hook)
7660         (som_solib_desire_dynamic_linker_symbols, link_map_start):
7661         Update.
7662         * solib-spu.c (spu_enable_break): Update.
7663         * solib-svr4.c (elf_locate_base, enable_break): Update.
7664         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7665         (flush_ea_cache): Update.
7666         * stabsread.c (define_symbol): Update.
7667         * symfile.c (simple_read_overlay_table): Update.
7668         * symtab.c (find_pc_sect_line): Update.
7669         * tracepoint.c (scope_info): Update.
7670         * tui-disasm.c (tui_get_begin_asm_address): Update.
7671         * value.c (value_static_field): Update.
7672
7673 2014-02-26  Tom Tromey  <tromey@redhat.com>
7674
7675         * minsyms.c (prim_record_minimal_symbol_full): Use
7676         SET_MSYMBOL_VALUE_ADDRESS.
7677         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7678         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7679         SET_MSYMBOL_VALUE_ADDRESS.
7680         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7681         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7682
7683 2014-02-26  Tom Tromey  <tromey@redhat.com>
7684
7685         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7686         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7687         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7688         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7689         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7690         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7691         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7692         * ada-lang.c (ada_main_name): Update.
7693         (ada_lookup_simple_minsym): Update.
7694         (ada_make_symbol_completion_list): Update.
7695         (ada_add_standard_exceptions): Update.
7696         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7697         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7698         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7699         * arm-tdep.c (skip_prologue_function): Update.
7700         (arm_skip_stack_protector, arm_skip_stub): Update.
7701         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7702         (arm_wince_skip_main_prologue): Update.
7703         * auxv.c (ld_so_xfer_auxv): Update.
7704         * avr-tdep.c (avr_scan_prologue): Update.
7705         * ax-gdb.c (gen_var_ref): Update.
7706         * block.c (call_site_for_pc): Update.
7707         * blockframe.c (get_pc_function_start): Update.
7708         (find_pc_partial_function_gnu_ifunc): Update.
7709         * breakpoint.c (create_overlay_event_breakpoint): Update.
7710         (create_longjmp_master_breakpoint): Update.
7711         (create_std_terminate_master_breakpoint): Update.
7712         (create_exception_master_breakpoint): Update.
7713         (resolve_sal_pc): Update.
7714         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7715         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7716         Update.
7717         * c-valprint.c (c_val_print): Update.
7718         * coff-pe-read.c (add_pe_forwarded_sym): Update.
7719         * coffread.c (coff_symfile_read): Update.
7720         * common/agent.c (agent_look_up_symbols): Update.
7721         * dbxread.c (find_stab_function_addr): Update.
7722         (end_psymtab): Update.
7723         * dwarf2loc.c (call_site_to_target_addr): Update.
7724         (func_verify_no_selftailcall): Update.
7725         (tailcall_dump): Update.
7726         (call_site_find_chain_1): Update.
7727         (dwarf_expr_reg_to_entry_parameter): Update.
7728         * elfread.c (elf_gnu_ifunc_record_cache): Update.
7729         (elf_gnu_ifunc_resolve_by_got): Update.
7730         * f-valprint.c (info_common_command): Update.
7731         * findvar.c (read_var_value): Update.
7732         * frame.c (get_prev_frame_1): Update.
7733         (inside_main_func): Update.
7734         * frv-tdep.c (frv_skip_main_prologue): Update.
7735         (frv_frame_this_id): Update.
7736         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7737         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7738         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7739         (gnuv3_skip_trampoline): Update.
7740         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7741         (hppa64_hpux_in_solib_call_trampoline): Update.
7742         (hppa_hpux_skip_trampoline_code): Update.
7743         (hppa64_hpux_search_dummy_call_sequence): Update.
7744         (hppa_hpux_find_import_stub_for_addr): Update.
7745         (hppa_hpux_find_dummy_bpaddr): Update.
7746         * hppa-tdep.c (hppa_symbol_address)
7747         (hppa_lookup_stub_minimal_symbol): Update.
7748         * i386-tdep.c (i386_skip_main_prologue): Update.
7749         (i386_pe_skip_trampoline_code): Update.
7750         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7751         * infcall.c (get_function_name): Update.
7752         * infcmd.c (until_next_command): Update.
7753         * jit.c (jit_breakpoint_re_set_internal): Update.
7754         (jit_inferior_init): Update.
7755         * linespec.c (minsym_found): Update.
7756         (add_minsym): Update.
7757         * linux-fork.c (info_checkpoints_command): Update.
7758         * linux-nat.c (get_signo): Update.
7759         * linux-thread-db.c (inferior_has_bug): Update.
7760         * m32c-tdep.c (m32c_return_value): Update.
7761         (m32c_m16c_address_to_pointer): Update.
7762         (m32c_m16c_pointer_to_address): Update.
7763         * m32r-tdep.c (m32r_frame_this_id): Update.
7764         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7765         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7766         * maint.c (maintenance_translate_address): Update.
7767         * minsyms.c (add_minsym_to_hash_table): Update.
7768         (add_minsym_to_demangled_hash_table): Update.
7769         (msymbol_objfile): Update.
7770         (lookup_minimal_symbol): Update.
7771         (iterate_over_minimal_symbols): Update.
7772         (lookup_minimal_symbol_text): Update.
7773         (lookup_minimal_symbol_by_pc_name): Update.
7774         (lookup_minimal_symbol_solib_trampoline): Update.
7775         (lookup_minimal_symbol_by_pc_section_1): Update.
7776         (lookup_minimal_symbol_and_objfile): Update.
7777         (prim_record_minimal_symbol_full): Update.
7778         (compare_minimal_symbols): Update.
7779         (compact_minimal_symbols): Update.
7780         (build_minimal_symbol_hash_tables): Update.
7781         (install_minimal_symbols): Update.
7782         (terminate_minimal_symbol_table): Update.
7783         (find_solib_trampoline_target): Update.
7784         (minimal_symbol_upper_bound): Update.
7785         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7786         * mips-tdep.c (mips_stub_frame_sniffer): Update.
7787         (mips_skip_pic_trampoline_code): Update.
7788         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7789         * objc-lang.c (selectors_info): Update.
7790         (classes_info): Update.
7791         (find_methods): Update.
7792         (find_imps): Update.
7793         (find_objc_msgsend): Update.
7794         * objfiles.c (objfile_relocate1): Update.
7795         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7796         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7797         * p-valprint.c (pascal_val_print): Update.
7798         * parse.c (write_exp_msymbol): Update.
7799         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7800         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7801         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7802         * printcmd.c (build_address_symbolic): Update.
7803         (sym_info): Update.
7804         (address_info): Update.
7805         * proc-service.c (ps_pglobal_lookup): Update.
7806         * psymtab.c (find_pc_sect_psymtab_closer): Update.
7807         (find_pc_sect_psymtab): Update.
7808         * python/py-framefilter.c (py_print_frame): Update.
7809         * ravenscar-thread.c (get_running_thread_id): Update.
7810         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7811         Update.
7812         * remote.c (remote_check_symbols): Update.
7813         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7814         (rs6000_skip_trampoline_code): Update.
7815         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7816         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7817         * solib-dsbt.c (lm_base): Update.
7818         * solib-frv.c (lm_base): Update.
7819         (main_got): Update.
7820         * solib-irix.c (locate_base): Update.
7821         * solib-som.c (som_solib_create_inferior_hook): Update.
7822         (som_solib_desire_dynamic_linker_symbols): Update.
7823         (link_map_start): Update.
7824         * solib-spu.c (spu_enable_break): Update.
7825         (ocl_enable_break): Update.
7826         * solib-svr4.c (elf_locate_base): Update.
7827         (enable_break): Update.
7828         * spu-tdep.c (spu_get_overlay_table): Update.
7829         (spu_catch_start): Update.
7830         (flush_ea_cache): Update.
7831         * stabsread.c (define_symbol): Update.
7832         (scan_file_globals): Update.
7833         * stack.c (find_frame_funname): Update.
7834         (frame_info): Update.
7835         * symfile.c (simple_read_overlay_table): Update.
7836         (simple_overlay_update): Update.
7837         * symmisc.c (dump_msymbols): Update.
7838         * symtab.c (fixup_section): Update.
7839         (find_pc_sect_line): Update.
7840         (skip_prologue_sal): Update.
7841         (search_symbols): Update.
7842         (print_msymbol_info): Update.
7843         (rbreak_command): Update.
7844         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7845         (completion_list_objc_symbol): Update.
7846         (default_make_symbol_completion_list_break_on): Update.
7847         * tracepoint.c (scope_info): Update.
7848         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7849         (tui_get_begin_asm_address): Update.
7850         * valops.c (find_function_in_inferior): Update.
7851         * value.c (value_static_field): Update.
7852         (value_fn_field): Update.
7853
7854 2014-02-26  Tom Tromey  <tromey@redhat.com>
7855
7856         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7857         bound minimal symbols.  Move code that knows about minsym
7858         table layout...
7859         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
7860         function.
7861         * minsyms.h (minimal_symbol_upper_bound): Declare.
7862         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7863         minimal_symbol_upper_bound.
7864
7865 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
7866
7867         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7868         Use the type's name if its basic type does not have a tag.
7869
7870 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
7871
7872         * dwarf2read.c (read_subrange_type): Add comment.
7873
7874 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
7875
7876         * dwarf2read.c (update_enumeration_type_from_children): New
7877         function, mostly extracted from process_structure_scope.
7878         (read_enumeration_type): Call update_enumeration_type_from_children.
7879         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7880         and flag_flag_enum fields.
7881
7882 2014-02-26  Pedro Alves  <palves@redhat.com>
7883
7884         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7885         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7886         to_xfer_partial method.
7887
7888 2014-02-26  Pedro Alves  <palves@redhat.com>
7889
7890         * target.c (complete_target_initialization): Don't install
7891         default_xfer_partial as to_xfer_partial hook.
7892         (nomemory): Delete.
7893         (update_current_target): Don't INHERIT nor de_fault
7894         deprecated_xfer_memory.  Delete de_fault macro.
7895         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7896         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7897         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7898         field.
7899
7900 2014-02-26  Pedro Alves  <palves@redhat.com>
7901
7902         * go32-nat.c (my_write_child): New function.
7903         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7904         (go32_xfer_partial): New function.
7905         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7906         Instead install a to_xfer_partial hook.
7907
7908 2014-02-26  Pedro Alves  <palves@redhat.com>
7909
7910         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7911         to_xfer_partial helper.  Rewrite.
7912         (procfs_xfer_partial): New function.
7913         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7914         Install a to_xfer_partial hook.
7915
7916 2014-02-26  Pedro Alves  <palves@redhat.com>
7917
7918         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7919         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7920         (m32r_xfer_partial): New function.
7921         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7922         Install a to_xfer_partial hook.
7923
7924 2014-02-26  Pedro Alves  <palves@redhat.com>
7925
7926         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7927         helper.
7928         (mips_xfer_partial): New function.
7929         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7930         hook.  Install a to_xfer_partial hook.
7931
7932 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
7933
7934         * gdbtypes.h (create_array_type_with_stride): Add declaration.
7935         * gdbtypes.c (create_array_type_with_stride): New function,
7936         renaming create_array_type, but with an added parameter
7937         called "bit_stride".
7938         (create_array_type): Re-implement using
7939         create_array_type_with_stride.
7940         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7941         and DW_AT_bit_stride attributes.
7942
7943 2014-02-26  Pedro Alves  <palves@redhat.com>
7944
7945         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7946         task-specific breakpoints.
7947
7948 2014-02-25  Pedro Alves  <palves@redhat.com>
7949
7950         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7951         handling of object == TARGET_OBJECT_UNWIND_TABLE.
7952
7953 2014-02-25  Stan Shebs  <stan@codesourcery.com>
7954
7955         * defs.h: Annotate comments for Doxygen.
7956
7957 2014-02-25  Tom Tromey  <tromey@redhat.com>
7958
7959         * target.h (target_ignore): Don't declare.
7960         * target.c (target_ignore): Remove.
7961
7962 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7963
7964         PR gdb/16626
7965         * auto-load.c (auto_load_objfile_script_1): Change filename to
7966         debugfile.
7967
7968 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
7969
7970         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7971         documentation.  Adjust prototype to match the target_ops
7972         to_xfer_partial method.  Adjust implementation accordingly.
7973
7974 2014-02-25  Hui Zhu  <hui@codesourcery.com>
7975
7976         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7977         to_traceframe_info.
7978
7979 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
7980
7981         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7982         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7983         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7984         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7985         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7986         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7987         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7988         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7989         New constants.
7990         (rl78_register_type): Use a data pointer type for SP and
7991         new pseudo registers mentioned above.  Use a 16 bit integer
7992         type for all other register pairs.
7993         (rl78_register_name, rl78_g10_register_name): Update for
7994         new pseudo registers.
7995         (rl78_pseudo_register_read): Likewise.
7996         (rl78_pseudo_register_write): Likewise.
7997         (rl78_dwarf_reg_to_regnum): Return register numbers representing
7998         to the newly added pseudo registers.
7999
8000 2014-02-24  Doug Evans  <dje@google.com>
8001
8002         * value.c (record_latest_value): Fix comment.
8003         * printcmd.c (print_command_1): Remove code to handle -1 return from
8004         record_latest_value.
8005
8006 2014-02-24  Pedro Alves  <palves@redhat.com>
8007
8008         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8009         deprecated_xfer_memory hook.
8010         (procfs_xfer_partial): Call procfs_xfer_memory instead
8011         of the deprecated_xfer_memory target hook.
8012         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8013         helper.
8014
8015 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
8016
8017         * windows-nat.c (windows_xfer_shared_libraries): Return
8018         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8019         requested object is TARGET_OBJECT_LIBRARIES.
8020
8021 2014-02-24  Yao Qi  <yao@codesourcery.com>
8022
8023         * target.h (enum target_xfer_status)
8024         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8025         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8026         explicitly.  New.
8027         * corefile.c (memory_error_message): User updated.
8028         * exec.c (section_table_read_available_memory): Likewise.
8029         * record-btrace.c (record_btrace_xfer_partial): Likewise.
8030         * target.c (target_xfer_status_to_string): Likewise.
8031         (raw_memory_xfer_partial): Likewise.
8032         (memory_xfer_partial_1, target_xfer_partial): Likewise.
8033         * valops.c (read_value_memory): Likewise.
8034         * exec.h: Update comments.
8035
8036 2014-02-24  Yao Qi  <yao@codesourcery.com>
8037
8038         * target.c (target_xfer_status_to_string): Rename argument err
8039         to status.
8040         * target.h (target_xfer_status_to_string): Update declaration.
8041         Replace target_xfer_error_to_string with
8042         target_xfer_status_to_string in comment.
8043
8044 2014-02-24  Yao Qi  <yao@codesourcery.com>
8045
8046         * mips-linux-nat.c (super_close): Update its type.
8047         (mips_linux_close): Pass 'self' to super_close.
8048
8049 2014-02-24  Yao Qi  <yao@codesourcery.com>
8050
8051         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8052         * corefile.c (read_memory): Adjusted.
8053         * target.c (target_write_with_progress): Adjusted.
8054
8055 2014-02-23  Yao Qi  <yao@codesourcery.com>
8056
8057         Revert two patches:
8058
8059         2013-10-25  Yao Qi  <yao@codesourcery.com>
8060
8061         * remote.c (remote_traceframe_info): Return early if
8062         traceframe is not selected.
8063
8064         2013-07-19  Yao Qi  <yao@codesourcery.com>
8065
8066         * target.c (update_current_target): Change the default action
8067         of 'to_traceframe_info' from tcomplain to return_zero.
8068         * target.h (struct target_ops) <to_traceframe_info>: Add more
8069         comments.
8070
8071 2014-02-23  Yao Qi  <yao@codesourcery.com>
8072
8073         * valops.c (read_value_memory): Rewrite it.  Call
8074         target_xfer_partial in a loop.
8075         * exec.h (section_table_available_memory): Remove declaration.
8076         Move comments to ...
8077         * exec.c (section_table_available_memory): ... here.  Make it
8078         static.
8079
8080 2014-02-23  Yao Qi  <yao@codesourcery.com>
8081
8082         * exec.c (section_table_read_available_memory): New function.
8083         * exec.h (section_table_read_available_memory): Declare.
8084         * ctf.c (ctf_xfer_partial): Call
8085         section_table_read_available_memory.
8086         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8087
8088 2014-02-23  Yao Qi  <yao@codesourcery.com>
8089
8090         * ctf.c (ctf_xfer_partial): Move code to ...
8091         * exec.c (exec_read_partial_read_only): ... it.  New function.
8092         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8093         * tracefile.c: Include "exec.h".
8094         * exec.h (exec_read_partial_read_only): Declare.
8095
8096 2014-02-23  Yao Qi  <yao@codesourcery.com>
8097
8098         * tracefile-tfile.c (tfile_has_all_memory): Remove.
8099         (tfile_has_memory): Remove.
8100         (init_tfile_ops): Don't set fields to_has_all_memory and
8101         to_has_memory of tfile_ops.
8102         * tracefile.c (tracefile_has_all_memory): New function.
8103         (tracefile_has_memory): New function.
8104         (init_tracefile_ops): Initialize fields to_has_all_memory and
8105         to_has_memory of 'ops'.
8106
8107 2014-02-23  Yao Qi  <yao@codesourcery.com>
8108
8109         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8110         (ctf_thread_alive, ctf_get_trace_status): Remove.
8111         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
8112         init_tracefile_ops.
8113         * tracefile-tfile.c (tfile_get_trace_status): Remove.
8114         (tfile_has_stack, tfile_has_registers): Remove.
8115         (tfile_thread_alive): Remove.
8116         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
8117         init_tracefile_ops.
8118         * tracefile.c (tracefile_has_stack): New function.
8119         (tracefile_has_registers): New function.
8120         (tracefile_thread_alive): New function.
8121         (tracefile_get_trace_status): New function.
8122         (init_tracefile_ops): New function.
8123         * tracefile.h (init_tracefile_ops): Declare.
8124
8125 2014-02-23  Yao Qi  <yao@codesourcery.com>
8126
8127         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8128         (O_LARGEFILE): Likewise.
8129         (tfile_ops): Likewise.
8130         (TRACE_HEADER_SIZE): Likewise.
8131         (trace_fd, trace_frames_offset, cur_offset): Likewise.
8132         (cur_data_size): Likewise.
8133         (tfile_read, tfile_open, tfile_interp_line): Likewise.
8134         (tfile_close, tfile_files_info): Likewise.
8135         (tfile_get_trace_status): Likewise.
8136         (tfile_get_tracepoint_status): Likewise.
8137         (tfile_get_traceframe_address): Likewise.
8138         (tfile_trace_find, match_blocktype): Likewise.
8139         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8140         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8141         (tfile_get_trace_state_variable_value): Likewise.
8142         (tfile_has_all_memory, tfile_has_memory): Likewise.
8143         (tfile_has_stack, tfile_has_registers): Likewise.
8144         (tfile_thread_alive, build_traceframe_info): Likewise.
8145         (tfile_traceframe_info, init_tfile_ops): Likewise.
8146         (_initialize_tracepoint): Don't call init_tfile_ops
8147         and add_target_with_completer.
8148         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8149         exec.h, completer.h and filenames.h.
8150         (_initialize_tracefile_tfile): New function.
8151
8152 2014-02-23  Yao Qi  <yao@codesourcery.com>
8153
8154         * Makefile.in (REMOTE_OBS): Append tracefile.o and
8155         tracefile-tfile.o.
8156         (HFILES_NO_SRCDIR): Add tracefile.h.
8157         * ctf.c: Include "tracefile.h".
8158         * tracefile.h: New file.
8159         * tracefile.c: New file
8160         * tracefile-tfile.c: New file.
8161         * tracepoint.c: Include "tracefile.h".
8162         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8163         (stop_reason_names): Add const.
8164         (trace_file_writer_xfree): Move it to tracefile.c.
8165         (trace_save, trace_save_command, trace_save_tfile): Likewise.
8166         (trace_save_ctf): Likewise.
8167         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8168         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8169         (tfile_write_header, tfile_write_regblock_type): Likewise.
8170         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8171         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8172         (tfile_write_raw_data, tfile_end): Likewise.
8173         (tfile_trace_file_writer_new): Likewise.
8174         (free_uploaded_tp): Make it extern.
8175         (free_uploaded_tsv): Make it extern.
8176         (_initialize_tracepoint): Move code to register command 'tsave'
8177         to tracefile.c.
8178         * tracepoint.h (stop_reason_names): Declare.
8179         (struct trace_frame_write_ops): Move it to tracefile.h.
8180         (struct trace_file_write_ops): Likewise.
8181         (struct trace_file_writer): Likewise.
8182         (free_uploaded_tsvs, free_uploaded_tps): Declare.
8183
8184 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8185
8186         PR gdb/16594
8187         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8188         process name.
8189         (get_cores_used_by_process): New parameter num_cores, use it.
8190         (linux_xfer_osdata_processes): Pass num_cores to it.
8191         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8192         process name.
8193
8194 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
8195
8196         * target.c (memory_xfer_partial): Fix length arg in call to
8197         breakpoint_xfer_memory.
8198
8199 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
8200
8201         PR tdep/16397
8202         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8203         number comes after the + or - signs.  Adjust length of register
8204         name to be extracted.
8205
8206 2014-02-20  Tom Tromey  <tromey@redhat.com>
8207
8208         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8209         (ada_varobj_ops): Mark "extern".
8210
8211 2014-02-20  Tom Tromey  <tromey@redhat.com>
8212
8213         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8214
8215 2014-02-20  Doug Evans  <xdje42@gmail.com>
8216
8217         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8218         All callers updated.
8219         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8220         All callers updated.
8221         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8222         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8223
8224 2014-02-20  lin zuojian  <manjian2006@gmail.com>
8225             Joel Brobecker  <brobecker@adacore.com>
8226             Doug Evans  <xdje42@gmail.com>
8227
8228         PR symtab/16581
8229         * dwarf2read.c (struct die_info): New member in_process.
8230         (reset_die_in_process): New function.
8231         (process_die): Set it at the start, reset when returning.
8232         (inherit_abstract_dies): Only call process_die if origin_child_die
8233         not already being processed.
8234
8235 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8236
8237         * windows-nat.c (handle_unload_dll): Add function documentation.
8238         (do_initial_windows_stuff): Add comment explaining why we wait
8239         until after inferior initialization has finished before
8240         processing all DLLs.
8241
8242 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8243
8244         * windows-nat.c (get_module_name): Delete.
8245         (windows_get_exec_module_filename): New function, mostly
8246         inspired from get_module_name.
8247         (windows_pid_to_exec_file): Replace call to get_module_name
8248         by call to windows_get_exec_module_filename.
8249
8250 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8251
8252         * windows-nat.c (handle_load_dll): Rewrite this function's
8253         introductory comment.  Remove code using get_module_name
8254         to get the DLL's name.
8255
8256 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8257
8258         * windows-nat.c (get_windows_debug_event): Ignore
8259         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8260         if windows_initialization_done == 0.
8261         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8262         Adjust implementation to always load all DLLs.
8263         (do_initial_windows_stuff): Replace call to
8264         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8265
8266 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8267
8268         * windows-nat.c (_initialize_windows_nat): Deprecate the
8269         "dll-symbols" command.  Turn the "add-shared-symbol-files"
8270         and "assf" aliases into commands, and deprecate them as well.
8271         * NEWS: Add entry explaining that "dll-symbols" and its two
8272         aliases are now deprecated.
8273
8274 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8275
8276         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8277         new-line in debug string.  Remove trailing spaces.
8278
8279 2014-02-19  Stan Shebs  <stan@codesourcery.com>
8280
8281         * darwin-nat.c (darwin_xfer_partial): Fix return type.
8282
8283 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
8284
8285         * NEWS: Add entry for the new feature
8286         * python/py-value.c (valpy_binop): Call value_x_binop for struct
8287         and class values.
8288
8289 2014-02-19  Stan Shebs  <stan@codesourcery.com>
8290
8291         * MAINTAINERS: List Yao Qi as nios2 maintainer.
8292
8293 2014-02-19  Pedro Alves  <palves@redhat.com>
8294
8295         * common/ptid.h (struct ptid): Mention that process_stratum
8296         targets should prefer ptid.lwp.
8297
8298 2014-02-19  Pedro Alves  <palves@redhat.com>
8299
8300         * remote.c (remote_thread_alive, write_ptid, read_ptid)
8301         (read_ptid, remote_newthread_step, remote_threads_extra_info)
8302         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8303         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8304         store remote thread ids rather than ptid.tid.
8305         (_initialize_remote): Adjust.
8306
8307 2014-02-19  Tom Tromey  <tromey@redhat.com>
8308
8309         * target.c (target_get_unwinder): Rewrite.
8310         (target_get_tailcall_unwinder): Rewrite.
8311         * record-btrace.c (record_btrace_to_get_unwinder): New function.
8312         (record_btrace_to_get_tailcall_unwinder): New function.
8313         (init_record_btrace_ops): Update.
8314         * target.h (struct target_ops) <to_get_unwinder,
8315         to_get_tailcall_unwinder>: Now function pointers.  Use
8316         TARGET_DEFAULT_RETURN.
8317
8318 2014-02-19  Tom Tromey  <tromey@redhat.com>
8319
8320         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8321         argument.
8322         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8323
8324 2014-02-19  Tom Tromey  <tromey@redhat.com>
8325
8326         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8327         directly.
8328         * target-delegates.c: Rebuild.
8329         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8330         TARGET_DEFAULT_FUNC.
8331         * target.c (default_target_decr_pc_after_break): Rename from
8332         forward_target_decr_pc_after_break.  Simplify.
8333         (target_decr_pc_after_break): Rely on delegation.
8334
8335 2014-02-19  Tom Tromey  <tromey@redhat.com>
8336
8337         * target.c (update_current_target): Do not INHERIT to_doc or
8338         to_magic.  Do not de_fault to_open or to_close.
8339
8340 2014-02-19  Tom Tromey  <tromey@redhat.com>
8341
8342         * gcore.h (objfile_find_memory_regions): Declare.
8343         * gcore.c (objfile_find_memory_regions): No longer static.  Add
8344         "self" argument.
8345         (_initialize_gcore): Don't call exec_set_find_memory_regions.
8346         * exec.c: Include gcore.h.
8347         (exec_set_find_memory_regions): Remove.
8348         (exec_find_memory_regions): Remove.
8349         (exec_do_find_memory_regions): Remove.
8350         (init_exec_ops): Update.
8351         * defs.h (exec_set_find_memory_regions): Remove.
8352
8353 2014-02-19  Tom Tromey  <tromey@redhat.com>
8354
8355         * target-delegates.c: Rebuild.
8356         * target.h (struct target_ops) <to_extra_thread_info,
8357         to_thread_name, to_pid_to_exec_file, to_get_section_table,
8358         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8359         not 0, in TARGET_DEFAULT_RETURN.
8360
8361 2014-02-19  Tom Tromey  <tromey@redhat.com>
8362
8363         * target.c (complete_target_initialization): Remove casts.  Use
8364         return_zero_has_execution.
8365         (return_zero): Add "ignore" argument.
8366         (return_zero_has_execution): New function.
8367         (init_dummy_target): Remove casts.  Use
8368         return_zero_has_execution.
8369
8370 2014-02-19  Tom Tromey  <tromey@redhat.com>
8371
8372         * target.c (update_current_target): Update comments.  Do not
8373         INHERIT to_stratum.
8374
8375 2014-02-19  Tom Tromey  <tromey@redhat.com>
8376
8377         * arm-linux-nat.c (arm_linux_read_description): Delegate when
8378         needed.
8379         * corelow.c (core_read_description): Delegate when needed.
8380         * remote.c (remote_read_description): Delegate when needed.
8381         * target-delegates.c: Rebuild.
8382         * target.c (target_read_description): Rewrite.
8383         * target.h (struct target_ops) <to_read_description>: Update
8384         comment.  Use TARGET_DEFAULT_RETURN.
8385
8386 2014-02-19  Tom Tromey  <tromey@redhat.com>
8387
8388         * target-delegates.c: Rebuild.
8389         * target.c (update_current_target): Don't inherit or default
8390         to_can_run.
8391         (find_default_run_target): Check against delegate_can_run.
8392         * target.h (struct target_ops) <to_can_run>: Use
8393         TARGET_DEFAULT_RETURN.
8394
8395 2014-02-19  Tom Tromey  <tromey@redhat.com>
8396
8397         * target-delegates.c: Rebuild.
8398         * target.c (target_disconnect): Unconditionally delegate.
8399         * target.h (struct target_ops) <to_disconnect>: Use
8400         TARGET_DEFAULT_NORETURN.
8401
8402 2014-02-19  Tom Tromey  <tromey@redhat.com>
8403
8404         * record.c (record_stop): Unconditionally delegate.
8405         * target-delegates.c: Rebuild.
8406         * target.c (target_stop_recording): Unconditionally delegate.
8407         * target.h (struct target_ops) <to_stop_recording>: Use
8408         TARGET_DEFAULT_IGNORE.
8409
8410 2014-02-19  Tom Tromey  <tromey@redhat.com>
8411
8412         * target-delegates.c: Rebuild.
8413         * target.c (target_enable_btrace): Unconditionally delegate.
8414         * target.h (struct target_ops) <to_enable_btrace>: Use
8415         TARGET_DEFAULT_NORETURN.
8416
8417 2014-02-19  Tom Tromey  <tromey@redhat.com>
8418
8419         * target-delegates.c: Rebuild.
8420         * target.c (target_read_btrace): Unconditionally delegate.
8421         * target.h (struct target_ops) <to_read_btrace>: Use
8422         TARGET_DEFAULT_NORETURN.
8423
8424 2014-02-19  Tom Tromey  <tromey@redhat.com>
8425
8426         * target-delegates.c: Rebuild.
8427         * target.c (target_teardown_btrace): Unconditionally delegate.
8428         * target.h (struct target_ops) <to_teardown_btrace>: Use
8429         TARGET_DEFAULT_NORETURN.
8430
8431 2014-02-19  Tom Tromey  <tromey@redhat.com>
8432
8433         * target-delegates.c: Rebuild.
8434         * target.c (target_disable_btrace): Unconditionally delegate.
8435         * target.h (struct target_ops) <to_disable_btrace>: Use
8436         TARGET_DEFAULT_NORETURN.
8437
8438 2014-02-19  Tom Tromey  <tromey@redhat.com>
8439
8440         * target-delegates.c: Rebuild.
8441         * target.c (default_search_memory): New function.
8442         (simple_search_memory): Update comment.
8443         (target_search_memory): Unconditionally delegate.
8444         * target.h (struct target_ops) <to_search_memory>: Use
8445         TARGET_DEFAULT_FUNC.
8446
8447 2014-02-19  Tom Tromey  <tromey@redhat.com>
8448
8449         * auxv.c (default_auxv_parse): No longer static.
8450         (target_auxv_parse): Unconditionally delegate.
8451         * auxv.h (default_auxv_parse): Declare.
8452         * target-delegates.c: Rebuild.
8453         * target.c: Include auxv.h.
8454         * target.h (struct target_ops) <to_auxv_parse>: Use
8455         TARGET_DEFAULT_FUNC.
8456
8457 2014-02-19  Tom Tromey  <tromey@redhat.com>
8458
8459         * target-delegates.c: Rebuild.
8460         * target.c (target_memory_map): Unconditionally delegate.
8461         * target.h (struct target_ops) <to_memory_map>: Use
8462         TARGET_DEFAULT_RETURN.
8463
8464 2014-02-19  Tom Tromey  <tromey@redhat.com>
8465
8466         * target-delegates.c: Rebuild.
8467         * target.c (target_thread_alive): Unconditionally delegate.
8468         * target.h (struct target_ops) <to_thread_alive>: Use
8469         TARGET_DEFAULT_RETURN.
8470
8471 2014-02-19  Tom Tromey  <tromey@redhat.com>
8472
8473         * target-delegates.c: Rebuild.
8474         * target.c (target_save_record): Unconditionally delegate.
8475         * target.h (struct target_ops) <to_save_record>: Use
8476         TARGET_DEFAULT_NORETURN.
8477
8478 2014-02-19  Tom Tromey  <tromey@redhat.com>
8479
8480         * target-delegates.c: Rebuild.
8481         * target.c (target_delete_record): Unconditionally delegate.
8482         * target.h (struct target_ops) <to_delete_record>: Use
8483         TARGET_DEFAULT_NORETURN.
8484
8485 2014-02-19  Tom Tromey  <tromey@redhat.com>
8486
8487         * target-delegates.c: Rebuild.
8488         * target.c (target_record_is_replaying): Unconditionally
8489         delegate.
8490         * target.h (struct target_ops) <to_record_is_replaying>: Use
8491         TARGET_DEFAULT_RETURN.
8492
8493 2014-02-19  Tom Tromey  <tromey@redhat.com>
8494
8495         * target-delegates.c: Rebuild.
8496         * target.c (target_goto_record_begin): Unconditionally delegate.
8497         * target.h (struct target_ops) <to_goto_record_begin>: Use
8498         TARGET_DEFAULT_NORETURN.
8499
8500 2014-02-19  Tom Tromey  <tromey@redhat.com>
8501
8502         * target-delegates.c: Rebuild.
8503         * target.c (target_goto_record_end): Unconditionally delegate.
8504         * target.h (struct target_ops) <to_goto_record_end>: Use
8505         TARGET_DEFAULT_NORETURN.
8506
8507 2014-02-19  Tom Tromey  <tromey@redhat.com>
8508
8509         * target-delegates.c: Rebuild.
8510         * target.c (target_goto_record): Unconditionally delegate.
8511         * target.h (struct target_ops) <to_goto_record>: Use
8512         TARGET_DEFAULT_NORETURN.
8513
8514 2014-02-19  Tom Tromey  <tromey@redhat.com>
8515
8516         * target-delegates.c: Rebuild.
8517         * target.c (target_insn_history): Unconditionally delegate.
8518         * target.h (struct target_ops) <to_insn_history>: Use
8519         TARGET_DEFAULT_NORETURN.
8520
8521 2014-02-19  Tom Tromey  <tromey@redhat.com>
8522
8523         * target-delegates.c: Rebuild.
8524         * target.c (target_insn_history_from): Unconditionally delegate.
8525         * target.h (struct target_ops) <to_insn_history_from>: Use
8526         TARGET_DEFAULT_NORETURN.
8527
8528 2014-02-19  Tom Tromey  <tromey@redhat.com>
8529
8530         * target-delegates.c: Rebuild.
8531         * target.c (target_insn_history_range): Unconditionally delegate.
8532         * target.h (struct target_ops) <to_insn_history_range>: Use
8533         TARGET_DEFAULT_NORETURN.
8534
8535 2014-02-19  Tom Tromey  <tromey@redhat.com>
8536
8537         * target-delegates.c: Rebuild.
8538         * target.c (target_call_history): Unconditionally delegate.
8539         * target.h (struct target_ops) <to_call_history>: Use
8540         TARGET_DEFAULT_NORETURN.
8541
8542 2014-02-19  Tom Tromey  <tromey@redhat.com>
8543
8544         * target-delegates.c: Rebuild.
8545         * target.c (target_call_history_from): Unconditionally delegate.
8546         * target.h (struct target_ops) <to_call_history_from>: Use
8547         TARGET_DEFAULT_NORETURN.
8548
8549 2014-02-19  Tom Tromey  <tromey@redhat.com>
8550
8551         * target-delegates.c: Rebuild.
8552         * target.c (target_call_history_range): Unconditionally delegate.
8553         * target.h (struct target_ops) <to_call_history_range>: Use
8554         TARGET_DEFAULT_NORETURN.
8555
8556 2014-02-19  Tom Tromey  <tromey@redhat.com>
8557
8558         * target-delegates.c: Rebuild.
8559         * target.c (target_verify_memory): Unconditionally delegate.
8560         * target.h (struct target_ops) <to_verify_memory>: Use
8561         TARGET_DEFAULT_NORETURN.
8562
8563 2014-02-19  Tom Tromey  <tromey@redhat.com>
8564
8565         * target-delegates.c: Rebuild.
8566         * target.c (target_core_of_thread): Unconditionally delegate.
8567         * target.h (struct target_ops) <to_core_of_thread>: Use
8568         TARGET_DEFAULT_RETURN.
8569
8570 2014-02-19  Tom Tromey  <tromey@redhat.com>
8571
8572         * target-delegates.c: Rebuild.
8573         * target.c (target_flash_done): Unconditionally delegate.
8574         * target.h (struct target_ops) <to_flash_done>: Use
8575         TARGET_DEFAULT_NORETURN.
8576
8577 2014-02-19  Tom Tromey  <tromey@redhat.com>
8578
8579         * target-delegates.c: Rebuild.
8580         * target.c (target_flash_erase): Unconditionally delegate.
8581         * target.h (struct target_ops) <to_flash_erase>: Use
8582         TARGET_DEFAULT_NORETURN.
8583
8584 2014-02-19  Tom Tromey  <tromey@redhat.com>
8585
8586         * target-delegates.c: Rebuild.
8587         * target.c (target_get_section_table): Unconditionally delegate.
8588         * target.h (struct target_ops) <to_get_section_table>: Use
8589         TARGET_DEFAULT_RETURN.
8590
8591 2014-02-19  Tom Tromey  <tromey@redhat.com>
8592
8593         * target-delegates.c: Rebuild.
8594         * target.c (target_pid_to_str): Unconditionally delegate.
8595         (init_dummy_target): Don't initialize to_pid_to_str.
8596         (default_pid_to_str): Rename from dummy_pid_to_str.
8597         * target.h (struct target_ops) <to_pid_to_str>: Use
8598         TARGET_DEFAULT_FUNC.
8599
8600 2014-02-19  Tom Tromey  <tromey@redhat.com>
8601
8602         * target-delegates.c: Rebuild.
8603         * target.c (target_find_new_threads): Unconditionally delegate.
8604         * target.h (struct target_ops) <to_find_new_threads>: Use
8605         TARGET_DEFAULT_RETURN.
8606
8607 2014-02-19  Tom Tromey  <tromey@redhat.com>
8608
8609         * target-delegates.c: Rebuild.
8610         * target.c (target_program_signals): Unconditionally delegate.
8611         * target.h (struct target_ops) <to_program_signals>: Use
8612         TARGET_DEFAULT_IGNORE.
8613
8614 2014-02-19  Tom Tromey  <tromey@redhat.com>
8615
8616         * target-delegates.c: Rebuild.
8617         * target.c (target_pass_signals): Unconditionally delegate.
8618         * target.h (struct target_ops) <to_pass_signals>: Use
8619         TARGET_DEFAULT_IGNORE.
8620
8621 2014-02-19  Tom Tromey  <tromey@redhat.com>
8622
8623         * target-delegates.c: Rebuild.
8624         * target.c (default_mourn_inferior): New function.
8625         (target_mourn_inferior): Unconditionally delegate.
8626         * target.h (struct target_ops) <to_mourn_inferior>: Use
8627         TARGET_DEFAULT_FUNC.
8628
8629 2014-02-19  Tom Tromey  <tromey@redhat.com>
8630
8631         * target-delegates.c: Rebuild.
8632         * target.c (default_follow_fork): New function.
8633         (target_follow_fork): Unconditionally delegate.
8634         * target.h (struct target_ops) <to_follow_fork>: Use
8635         TARGET_DEFAULT_FUNC.
8636
8637 2014-02-19  Tom Tromey  <tromey@redhat.com>
8638
8639         * target-delegates.c: Rebuild.
8640         * target.c (target_kill): Unconditionally delegate.
8641         * target.h (struct target_ops) <to_kill>: Use
8642         TARGET_DEFAULT_NORETURN.
8643
8644 2014-02-19  Tom Tromey  <tromey@redhat.com>
8645
8646         * target-delegates.c: Rebuild.
8647         * target.c (target_masked_watch_num_registers): Unconditionally
8648         delegate.
8649         * target.h (struct target_ops) <to_masked_watch_num_registers>:
8650         Use TARGET_DEFAULT_RETURN.
8651
8652 2014-02-19  Tom Tromey  <tromey@redhat.com>
8653
8654         * target-delegates.c: Rebuild.
8655         * target.c (target_remove_mask_watchpoint): Unconditionally
8656         delegate.
8657         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8658         TARGET_DEFAULT_RETURN.
8659
8660 2014-02-19  Tom Tromey  <tromey@redhat.com>
8661
8662         * target-delegates.c: Rebuild.
8663         * target.c (target_insert_mask_watchpoint): Unconditionally
8664         delegate.
8665         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8666         TARGET_DEFAULT_RETURN.
8667
8668 2014-02-19  Tom Tromey  <tromey@redhat.com>
8669
8670         * target-delegates.c: Rebuild.
8671         * target.c (target_ranged_break_num_registers): Unconditionally
8672         delegate.
8673         * target.h (struct target_ops) <to_ranged_break_num_registers>:
8674         Use TARGET_DEFAULT_RETURN.
8675
8676 2014-02-19  Tom Tromey  <tromey@redhat.com>
8677
8678         * target-delegates.c: Rebuild.
8679         * target.c (target_fetch_registers): Unconditionally delegate.
8680         * target.h (struct target_ops) <to_fetch_registers>: Use
8681         TARGET_DEFAULT_NORETURN.
8682
8683 2014-02-19  Tom Tromey  <tromey@redhat.com>
8684
8685         * target-delegates.c: Rebuild.
8686         * target.c (update_current_target): Don't inherit or default
8687         to_stop.
8688         * target.h (struct target_ops) <to_stop>: Use
8689         TARGET_DEFAULT_IGNORE.
8690
8691 2014-02-19  Tom Tromey  <tromey@redhat.com>
8692
8693         * target-delegates.c: Rebuild.
8694         * target.c (update_current_target): Don't inherit or default
8695         to_can_run_breakpoint_commands.
8696         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8697         Use TARGET_DEFAULT_RETURN.
8698
8699 2014-02-19  Tom Tromey  <tromey@redhat.com>
8700
8701         * target-delegates.c: Rebuild.
8702         * target.c (update_current_target): Don't inherit or default
8703         to_supports_evaluation_of_breakpoint_conditions.
8704         * target.h (struct target_ops)
8705         <to_supports_evaluation_of_breakpoint_conditions>: Use
8706         TARGET_DEFAULT_RETURN.
8707
8708 2014-02-19  Tom Tromey  <tromey@redhat.com>
8709
8710         * target-delegates.c: Rebuild.
8711         * target.c (update_current_target): Don't inherit or default
8712         to_augmented_libraries_svr4_read.
8713         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8714         Use TARGET_DEFAULT_RETURN.
8715
8716 2014-02-19  Tom Tromey  <tromey@redhat.com>
8717
8718         * target-delegates.c: Rebuild.
8719         * target.c (update_current_target): Don't inherit or default
8720         to_can_use_agent.
8721         * target.h (struct target_ops) <to_can_use_agent>: Use
8722         TARGET_DEFAULT_RETURN.
8723
8724 2014-02-19  Tom Tromey  <tromey@redhat.com>
8725
8726         * target-delegates.c: Rebuild.
8727         * target.c (update_current_target): Don't inherit or default
8728         to_use_agent.
8729         * target.h (struct target_ops) <to_use_agent>: Use
8730         TARGET_DEFAULT_NORETURN.
8731
8732 2014-02-19  Tom Tromey  <tromey@redhat.com>
8733
8734         * target-delegates.c: Rebuild.
8735         * target.c (update_current_target): Don't inherit or default
8736         to_traceframe_info.
8737         (return_null): Remove.
8738         * target.h (struct target_ops) <to_traceframe_info>: Use
8739         TARGET_DEFAULT_RETURN.
8740
8741 2014-02-19  Tom Tromey  <tromey@redhat.com>
8742
8743         * target-delegates.c: Rebuild.
8744         * target.c (update_current_target): Don't inherit or default
8745         to_static_tracepoint_markers_by_strid.
8746         * target.h (struct target_ops)
8747         <to_static_tracepoint_markers_by_strid>: Use
8748         TARGET_DEFAULT_NORETURN.
8749
8750 2014-02-19  Tom Tromey  <tromey@redhat.com>
8751
8752         * target-delegates.c: Rebuild.
8753         * target.c (update_current_target): Don't inherit or default
8754         to_static_tracepoint_marker_at.
8755         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8756         Use TARGET_DEFAULT_RETURN.
8757
8758 2014-02-19  Tom Tromey  <tromey@redhat.com>
8759
8760         * target-delegates.c: Rebuild.
8761         * target.c (update_current_target): Don't inherit or default
8762         to_set_permissions.
8763         * target.h (struct target_ops) <to_set_permissions>: Use
8764         TARGET_DEFAULT_IGNORE.
8765
8766 2014-02-19  Tom Tromey  <tromey@redhat.com>
8767
8768         * target-delegates.c: Rebuild.
8769         * target.c (update_current_target): Don't inherit or default
8770         to_get_tib_address.
8771         * target.h (struct target_ops) <to_get_tib_address>: Use
8772         TARGET_DEFAULT_NORETURN.
8773
8774 2014-02-19  Tom Tromey  <tromey@redhat.com>
8775
8776         * target-delegates.c: Rebuild.
8777         * target.c (update_current_target): Don't inherit or default
8778         to_set_trace_notes.
8779         * target.h (struct target_ops) <to_set_trace_notes>: Use
8780         TARGET_DEFAULT_RETURN.
8781
8782 2014-02-19  Tom Tromey  <tromey@redhat.com>
8783
8784         * target-delegates.c: Rebuild.
8785         * target.c (update_current_target): Don't initialize
8786         to_set_trace_buffer_size.
8787         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8788         TARGET_DEFAULT_IGNORE.
8789
8790 2014-02-19  Tom Tromey  <tromey@redhat.com>
8791
8792         * target-delegates.c: Rebuild.
8793         * target.c (update_current_target): Don't inherit or default
8794         to_set_circular_trace_buffer.
8795         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8796         TARGET_DEFAULT_IGNORE.
8797
8798 2014-02-19  Tom Tromey  <tromey@redhat.com>
8799
8800         * target-delegates.c: Rebuild.
8801         * target.c (update_current_target): Don't inherit or default
8802         to_set_disconnected_tracing.
8803         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8804         TARGET_DEFAULT_IGNORE.
8805
8806 2014-02-19  Tom Tromey  <tromey@redhat.com>
8807
8808         * target-delegates.c: Rebuild.
8809         * target.c (update_current_target): Don't inherit or default
8810         to_get_min_fast_tracepoint_insn_len.
8811         (return_minus_one): Remove.
8812         * target.h (struct target_ops)
8813         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8814
8815 2014-02-19  Tom Tromey  <tromey@redhat.com>
8816
8817         * target-delegates.c: Rebuild.
8818         * target.c (update_current_target): Don't inherit or default
8819         to_get_raw_trace_data.
8820         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8821         TARGET_DEFAULT_NORETURN.
8822
8823 2014-02-19  Tom Tromey  <tromey@redhat.com>
8824
8825         * target-delegates.c: Rebuild.
8826         * target.c (update_current_target): Don't inherit or default
8827         to_upload_trace_state_variables.
8828         * target.h (struct target_ops) <to_upload_trace_state_variables>:
8829         Use TARGET_DEFAULT_RETURN.
8830
8831 2014-02-19  Tom Tromey  <tromey@redhat.com>
8832
8833         * target-delegates.c: Rebuild.
8834         * target.c (update_current_target): Don't inherit or default
8835         to_upload_tracepoints.
8836         * target.h (struct target_ops) <to_upload_tracepoints>: Use
8837         TARGET_DEFAULT_RETURN.
8838
8839 2014-02-19  Tom Tromey  <tromey@redhat.com>
8840
8841         * target-delegates.c: Rebuild.
8842         * target.c (update_current_target): Don't inherit or default
8843         to_save_trace_data.
8844         * target.h (struct target_ops) <to_save_trace_data>: Use
8845         TARGET_DEFAULT_NORETURN.
8846
8847 2014-02-19  Tom Tromey  <tromey@redhat.com>
8848
8849         * target-delegates.c: Rebuild.
8850         * target.c (update_current_target): Don't inherit or default
8851         to_get_trace_state_variable_value.
8852         * target.h (struct target_ops)
8853         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8854
8855 2014-02-19  Tom Tromey  <tromey@redhat.com>
8856
8857         * target-delegates.c: Rebuild.
8858         * target.c (update_current_target): Don't inherit or default
8859         to_trace_find.
8860         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8861
8862 2014-02-19  Tom Tromey  <tromey@redhat.com>
8863
8864         * target-delegates.c: Rebuild.
8865         * target.c (update_current_target): Don't inherit or default
8866         to_trace_stop.
8867         * target.h (struct target_ops) <to_trace_stop>: Use
8868         TARGET_DEFAULT_NORETURN.
8869
8870 2014-02-19  Tom Tromey  <tromey@redhat.com>
8871
8872         * target-delegates.c: Rebuild.
8873         * target.c (update_current_target): Don't inherit or default
8874         to_get_tracepoint_status.
8875         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8876         TARGET_DEFAULT_NORETURN.
8877
8878 2014-02-19  Tom Tromey  <tromey@redhat.com>
8879
8880         * target-delegates.c: Rebuild.
8881         * target.c (update_current_target): Don't inherit or default
8882         to_get_trace_status.
8883         * target.h (struct target_ops) <to_get_trace_status>: Use
8884         TARGET_DEFAULT_RETURN.
8885
8886 2014-02-19  Tom Tromey  <tromey@redhat.com>
8887
8888         * target-delegates.c: Rebuild.
8889         * target.c (update_current_target): Don't inherit or default
8890         to_trace_start.
8891         * target.h (struct target_ops) <to_trace_start>: Use
8892         TARGET_DEFAULT_NORETURN.
8893
8894 2014-02-19  Tom Tromey  <tromey@redhat.com>
8895
8896         * target-delegates.c: Rebuild.
8897         * target.c (update_current_target): Don't inherit or default
8898         to_trace_set_readonly_regions.
8899         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8900         Use TARGET_DEFAULT_NORETURN.
8901
8902 2014-02-19  Tom Tromey  <tromey@redhat.com>
8903
8904         * target-delegates.c: Rebuild.
8905         * target.c (update_current_target): Don't inherit or default
8906         to_disable_tracepoint.
8907         * target.h (struct target_ops) <to_disable_tracepoint>: Use
8908         TARGET_DEFAULT_NORETURN.
8909
8910 2014-02-19  Tom Tromey  <tromey@redhat.com>
8911
8912         * target-delegates.c: Rebuild.
8913         * target.c (update_current_target): Don't inherit or default
8914         to_enable_tracepoint.
8915         * target.h (struct target_ops) <to_enable_tracepoint>: Use
8916         TARGET_DEFAULT_NORETURN.
8917
8918 2014-02-19  Tom Tromey  <tromey@redhat.com>
8919
8920         * target-delegates.c: Rebuild.
8921         * target.c (update_current_target): Don't inherit or default
8922         to_download_trace_state_variable.
8923         * target.h (struct target_ops) <to_download_trace_state_variable>:
8924         Use TARGET_DEFAULT_NORETURN.
8925
8926 2014-02-19  Tom Tromey  <tromey@redhat.com>
8927
8928         * target-delegates.c: Rebuild.
8929         * target.c (update_current_target): Don't inherit or default
8930         to_can_download_tracepoint.
8931         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8932         TARGET_DEFAULT_RETURN.
8933
8934 2014-02-19  Tom Tromey  <tromey@redhat.com>
8935
8936         * target-delegates.c: Rebuild.
8937         * target.c (update_current_target): Don't inherit or default
8938         to_download_tracepoint.
8939         * target.h (struct target_ops) <to_download_tracepoint>: Use
8940         TARGET_DEFAULT_NORETURN.
8941
8942 2014-02-19  Tom Tromey  <tromey@redhat.com>
8943
8944         * target-delegates.c: Rebuild.
8945         * target.c (update_current_target): Don't inherit or default
8946         to_trace_init.
8947         * target.h (struct target_ops) <to_trace_init>: Use
8948         TARGET_DEFAULT_RETURN.
8949
8950 2014-02-19  Tom Tromey  <tromey@redhat.com>
8951
8952         * target-delegates.c: Rebuild.
8953         * target.c (update_current_target): Don't inherit or default
8954         to_supports_string_tracing.
8955         * target.h (struct target_ops) <to_supports_string_tracing>: Use
8956         TARGET_DEFAULT_RETURN.
8957
8958 2014-02-19  Tom Tromey  <tromey@redhat.com>
8959
8960         * target-delegates.c: Rebuild.
8961         * target.c (update_current_target): Don't inherit or default
8962         to_supports_enable_disable_tracepoint.
8963         * target.h (struct target_ops)
8964         <to_supports_enable_disable_tracepoint>: Use
8965         TARGET_DEFAULT_RETURN.
8966
8967 2014-02-19  Tom Tromey  <tromey@redhat.com>
8968
8969         * target-delegates.c: Rebuild.
8970         * target.c (update_current_target): Don't inherit or default
8971         to_supports_multi_process.
8972         * target.h (struct target_ops) <to_supports_multi_process>: Use
8973         TARGET_DEFAULT_RETURN.
8974
8975 2014-02-19  Tom Tromey  <tromey@redhat.com>
8976
8977         * target-delegates.c: Rebuild.
8978         * target.c (update_current_target): Don't inherit or default
8979         to_get_ada_task_ptid.
8980         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8981         TARGET_DEFAULT_FUNC.
8982
8983 2014-02-19  Tom Tromey  <tromey@redhat.com>
8984
8985         * target-delegates.c: Rebuild.
8986         * target.c (update_current_target): Don't inherit or default
8987         to_thread_architecture.
8988         * target.h (struct target_ops) <to_thread_architecture>: Use
8989         TARGET_DEFAULT_FUNC.
8990
8991 2014-02-19  Tom Tromey  <tromey@redhat.com>
8992
8993         * target-delegates.c: Rebuild.
8994         * target.c (update_current_target): Don't inherit or default
8995         to_execution_direction.
8996         * target.h (struct target_ops) <to_execution_direction>: Use
8997         TARGET_DEFAULT_FUNC.
8998
8999 2014-02-19  Tom Tromey  <tromey@redhat.com>
9000
9001         * target-delegates.c: Rebuild.
9002         * target.c (update_current_target): Don't inherit or default
9003         to_can_execute_reverse.
9004         * target.h (struct target_ops) <to_can_execute_reverse>: Use
9005         TARGET_DEFAULT_RETURN.
9006         (target_can_execute_reverse): Unconditionally delegate.
9007
9008 2014-02-19  Tom Tromey  <tromey@redhat.com>
9009
9010         * target-delegates.c: Rebuild.
9011         * target.c (update_current_target): Don't inherit or default
9012         to_goto_bookmark.
9013         (dummy_goto_bookmark): Remove.
9014         (init_dummy_target): Don't inherit or default to_goto_bookmark.
9015         * target.h (struct target_ops) <to_goto_bookmark>: Use
9016         TARGET_DEFAULT_NORETURN.
9017
9018 2014-02-19  Tom Tromey  <tromey@redhat.com>
9019
9020         * target-delegates.c: Rebuild.
9021         * target.c (update_current_target): Don't inherit or default
9022         to_get_bookmark.
9023         (dummy_get_bookmark): Remove.
9024         (init_dummy_target): Don't inherit or default to_get_bookmark.
9025         * target.h (struct target_ops) <to_get_bookmark>: Use
9026         TARGET_DEFAULT_NORETURN
9027
9028 2014-02-19  Tom Tromey  <tromey@redhat.com>
9029
9030         * target-delegates.c: Rebuild.
9031         * target.c (update_current_target): Don't inherit or default
9032         to_make_corefile_notes.
9033         (init_dummy_target): Don't initialize to_make_corefile_notes.
9034         * target.h (struct target_ops) <to_make_corefile_notes>: Use
9035         TARGET_DEFAULT_FUNC.
9036
9037 2014-02-19  Tom Tromey  <tromey@redhat.com>
9038
9039         * target-delegates.c: Rebuild.
9040         * target.c (update_current_target): Don't inherit or default
9041         to_find_memory_regions.
9042         (init_dummy_target): Don't initialize to_find_memory_regions.
9043         * target.h (struct target_ops) <to_find_memory_regions>: Use
9044         TARGET_DEFAULT_FUNC.
9045
9046 2014-02-19  Tom Tromey  <tromey@redhat.com>
9047
9048         * target-delegates.c: Rebuild.
9049         * target.c (update_current_target): Don't inherit or default
9050         to_log_command.
9051         * target.h (struct target_ops) <to_log_command>: Use
9052         TARGET_DEFAULT_IGNORE.
9053         (target_log_command): Unconditionally delegate.
9054
9055 2014-02-19  Tom Tromey  <tromey@redhat.com>
9056
9057         * target-delegates.c: Rebuild.
9058         * target.c (update_current_target): Don't inherit or default
9059         to_pid_to_exec_file.
9060         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9061         TARGET_DEFAULT_RETURN.
9062
9063 2014-02-19  Tom Tromey  <tromey@redhat.com>
9064
9065         * target-delegates.c: Rebuild.
9066         * target.c (update_current_target): Don't inherit or default
9067         to_thread_name.
9068         (target_thread_name): Unconditionally delegate.
9069         * target.h (struct target_ops) <to_thread_name>: Use
9070         TARGET_DEFAULT_RETURN.
9071
9072 2014-02-19  Tom Tromey  <tromey@redhat.com>
9073
9074         * target-delegates.c: Rebuild.
9075         * target.c (update_current_target): Don't inherit or default
9076         to_extra_thread_info.
9077         * target.h (struct target_ops) <to_extra_thread_info>: Use
9078         TARGET_DEFAULT_RETURN.
9079
9080 2014-02-19  Tom Tromey  <tromey@redhat.com>
9081
9082         * target-delegates.c: Rebuild.
9083         * target.c (update_current_target): Don't inherit or default
9084         to_has_exited.
9085         * target.h (struct target_ops) <to_has_exited>: Use
9086         TARGET_DEFAULT_RETURN..
9087
9088 2014-02-19  Tom Tromey  <tromey@redhat.com>
9089
9090         * target-delegates.c: Rebuild.
9091         * target.c (update_current_target): Don't inherit or default
9092         to_set_syscall_catchpoint.
9093         (return_one): Remove.
9094         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9095         TARGET_DEFAULT_RETURN.
9096
9097 2014-02-19  Tom Tromey  <tromey@redhat.com>
9098
9099         * target-delegates.c: Rebuild.
9100         * target.c (update_current_target): Don't inherit or default
9101         to_insert_exec_catchpoint.
9102         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9103         TARGET_DEFAULT_RETURN.
9104
9105 2014-01-08  Tom Tromey  <tromey@redhat.com>
9106
9107         * target-delegates.c: Rebuild.
9108         * target.c (update_current_target): Don't inherit or default
9109         to_insert_exec_catchpoint.
9110         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9111         TARGET_DEFAULT_RETURN.
9112
9113 2014-02-19  Tom Tromey  <tromey@redhat.com>
9114
9115         * target-delegates.c: Rebuild.
9116         * target.c (update_current_target): Don't inherit or default
9117         to_remove_vfork_catchpoint.
9118         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9119         TARGET_DEFAULT_RETURN.
9120
9121 2014-02-19  Tom Tromey  <tromey@redhat.com>
9122
9123         * target-delegates.c: Rebuild.
9124         * target.c (update_current_target): Don't inherit or default
9125         to_insert_vfork_catchpoint.
9126         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9127         TARGET_DEFAULT_RETURN.
9128
9129 2014-02-19  Tom Tromey  <tromey@redhat.com>
9130
9131         * target-delegates.c: Rebuild.
9132         * target.c (update_current_target): Don't inherit or default
9133         to_remove_fork_catchpoint.
9134         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9135         TARGET_DEFAULT_RETURN.
9136
9137 2014-02-19  Tom Tromey  <tromey@redhat.com>
9138
9139         * target-delegates.c: Rebuild.
9140         * target.c (update_current_target): Don't inherit or default
9141         to_insert_fork_catchpoint.
9142         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9143         TARGET_DEFAULT_RETURN.
9144
9145 2014-02-19  Tom Tromey  <tromey@redhat.com>
9146
9147         * target-delegates.c: Rebuild.
9148         * target.c (update_current_target): Don't inherit or default
9149         to_post_startup_inferior.
9150         * target.h (struct target_ops) <to_post_startup_inferior>: Use
9151         TARGET_DEFAULT_IGNORE.
9152
9153 2014-02-19  Tom Tromey  <tromey@redhat.com>
9154
9155         * target-delegates.c: Rebuild.
9156         * target.c (update_current_target): Don't inherit or default
9157         to_load.
9158         * target.h (struct target_ops) <to_load>: Use
9159         TARGET_DEFAULT_NORETURN.
9160
9161 2014-02-19  Tom Tromey  <tromey@redhat.com>
9162
9163         * target-delegates.c: Rebuild.
9164         * target.c (update_current_target): Don't inherit or default
9165         to_terminal_info.
9166         * target.h (struct target_ops) <to_terminal_info>: Use
9167         TARGET_DEFAULT_FUNC.
9168
9169 2014-02-19  Tom Tromey  <tromey@redhat.com>
9170
9171         * target-delegates.c: Rebuild.
9172         * target.c (update_current_target): Don't inherit or default
9173         to_terminal_save_ours.
9174         * target.h (struct target_ops) <to_terminal_save_ours>: Use
9175         TARGET_DEFAULT_IGNORE.
9176
9177 2014-02-19  Tom Tromey  <tromey@redhat.com>
9178
9179         * target-delegates.c: Rebuild.
9180         * target.c (update_current_target): Don't inherit or default
9181         to_terminal_ours.
9182         * target.h (struct target_ops) <to_terminal_ours>: Use
9183         TARGET_DEFAULT_IGNORE.
9184
9185 2014-02-19  Tom Tromey  <tromey@redhat.com>
9186
9187         * target-delegates.c: Rebuild.
9188         * target.c (update_current_target): Don't inherit or default
9189         to_terminal_ours_for_output.
9190         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9191         TARGET_DEFAULT_IGNORE.
9192
9193 2014-02-19  Tom Tromey  <tromey@redhat.com>
9194
9195         * target-delegates.c: Rebuild.
9196         * target.c (update_current_target): Don't inherit or default
9197         to_terminal_inferior.
9198         * target.h (struct target_ops) <to_terminal_inferior>: Use
9199         TARGET_DEFAULT_IGNORE.
9200
9201 2014-02-19  Tom Tromey  <tromey@redhat.com>
9202
9203         * target-delegates.c: Rebuild.
9204         * target.c (update_current_target): Don't inherit or default
9205         to_terminal_init.
9206         * target.h (struct target_ops) <to_terminal_init>: Use
9207         TARGET_DEFAULT_IGNORE.
9208
9209 2014-02-19  Tom Tromey  <tromey@redhat.com>
9210
9211         * target-delegates.c: Rebuild.
9212         * target.c (update_current_target): Don't inherit or default
9213         to_can_accel_watchpoint_condition.
9214         * target.h (struct target_ops)
9215         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9216
9217 2014-02-19  Tom Tromey  <tromey@redhat.com>
9218
9219         * target-delegates.c: Rebuild.
9220         * target.c (update_current_target): Don't inherit or default
9221         to_region_ok_for_hw_watchpoint.
9222         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9223         Use TARGET_DEFAULT_FUNC.
9224
9225 2014-02-19  Tom Tromey  <tromey@redhat.com>
9226
9227         * target-delegates.c: Rebuild.
9228         * target.c (update_current_target): Don't inherit or default
9229         to_watchpoint_addr_within_range.
9230         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9231         Use TARGET_DEFAULT_FUNC.
9232
9233 2014-02-19  Tom Tromey  <tromey@redhat.com>
9234
9235         * target-delegates.c: Rebuild.
9236         * target.c (update_current_target): Don't inherit or default
9237         to_remove_watchpoint.
9238         * target.h (struct target_ops) <to_remove_watchpoint>: Use
9239         TARGET_DEFAULT_NORETURN.
9240
9241 2014-02-19  Tom Tromey  <tromey@redhat.com>
9242
9243         * target-delegates.c: Rebuild.
9244         * target.c (update_current_target): Don't inherit or default
9245         to_insert_watchpoint.
9246         * target.h (struct target_ops) <to_insert_watchpoint>: Use
9247         TARGET_DEFAULT_RETURN.
9248
9249 2014-02-19  Tom Tromey  <tromey@redhat.com>
9250
9251         * target-delegates.c: Rebuild.
9252         * target.c (update_current_target): Don't inherit or default
9253         to_remove_hw_breakpoint.
9254         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9255         TARGET_DEFAULT_RETURN.
9256
9257 2014-02-19  Tom Tromey  <tromey@redhat.com>
9258
9259         * target-delegates.c: Rebuild.
9260         * target.c (update_current_target): Don't inherit or default
9261         to_insert_hw_breakpoint.
9262         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9263         TARGET_DEFAULT_RETURN.
9264
9265 2014-02-19  Tom Tromey  <tromey@redhat.com>
9266
9267         * target-delegates.c: Rebuild.
9268         * target.c (update_current_target): Don't inherit or default
9269         to_can_use_hw_breakpoint.
9270         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9271         TARGET_DEFAULT_RETURN.
9272
9273 2014-02-19  Tom Tromey  <tromey@redhat.com>
9274
9275         * target-delegates.c: Rebuild.
9276         * target.c (update_current_target): Don't inherit or default
9277         to_files_info.
9278         * target.h (struct target_ops) <to_files_info>: Use
9279         TARGET_DEFAULT_IGNORE.
9280
9281 2014-02-19  Tom Tromey  <tromey@redhat.com>
9282
9283         * target-delegates.c: Rebuild.
9284         * target.c (update_current_target): Don't inherit or default
9285         to_store.
9286         * target.h (struct target_ops) <to_store>: Use
9287         TARGET_DEFAULT_NORETURN.
9288
9289 2014-02-19  Tom Tromey  <tromey@redhat.com>
9290
9291         * target-delegates.c: Rebuild.
9292         * target.c (update_current_target): Don't inherit or default
9293         to_post_attach.
9294         * target.h (struct target_ops) <to_post_attach>: Use
9295         TARGET_DEFAULT_IGNORE.
9296
9297 2014-02-19  Tom Tromey  <tromey@redhat.com>
9298
9299         * target-delegates.c: Rebuild.
9300         * target.c (update_current_target): Don't inherit or default
9301         to_rcmd.
9302         (default_rcmd): New function.
9303         (do_monitor_command): Unconditionally delegate.
9304         * target.h (struct target_ops) <to_rmcd>: Use
9305         TARGET_DEFAULT_FUNC.
9306
9307 2014-02-19  Tom Tromey  <tromey@redhat.com>
9308
9309         * target-delegates.c: Rebuild.
9310         * target.c (init_dummy_target): Don't initialize to_attach.
9311         (target_attach): Unconditionally delegate.
9312         * target.h (struct target_ops) <to_attach>: Use
9313         TARGET_DEFAULT_FUNC.
9314
9315 2014-02-19  Tom Tromey  <tromey@redhat.com>
9316
9317         * target-delegates.c: Rebuild.
9318         * target.c (target_detach): Unconditionally delegate.
9319         (init_dummy_target): Don't initialize to_detach.
9320         * target.h (struct target_ops) <to_detach>: Use
9321         TARGET_DEFAULT_IGNORE.
9322
9323 2014-02-19  Tom Tromey  <tromey@redhat.com>
9324
9325         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9326         Add argument.
9327         (target_augmented_libraries_svr4_read): Add argument.
9328         * target.c (update_current_target): Update.
9329         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9330         argument.
9331
9332 2014-02-19  Tom Tromey  <tromey@redhat.com>
9333
9334         * target.h (struct target_ops) <to_call_history_range>: Add
9335         argument.
9336         * target.c (target_call_history_range): Add argument.
9337         * record-btrace.c (record_btrace_call_history_range): Add 'self'
9338         argument.
9339         (record_btrace_call_history_from): Update.
9340
9341 2014-02-19  Tom Tromey  <tromey@redhat.com>
9342
9343         * target.h (struct target_ops) <to_call_history_from>: Add
9344         argument.
9345         * target.c (target_call_history_from): Add argument.
9346         * record-btrace.c (record_btrace_call_history_from): Add 'self'
9347         argument.
9348
9349 2014-02-19  Tom Tromey  <tromey@redhat.com>
9350
9351         * target.h (struct target_ops) <to_call_history>: Add argument.
9352         * target.c (target_call_history): Add argument.
9353         * record-btrace.c (record_btrace_call_history): Add 'self'
9354         argument.
9355
9356 2014-02-19  Tom Tromey  <tromey@redhat.com>
9357
9358         * target.h (struct target_ops) <to_insn_history_range>: Add
9359         argument.
9360         * target.c (target_insn_history_range): Add argument.
9361         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9362         argument.
9363         (record_btrace_insn_history_from): Update.
9364
9365 2014-02-19  Tom Tromey  <tromey@redhat.com>
9366
9367         * target.h (struct target_ops) <to_insn_history_from>: Add
9368         argument.
9369         * target.c (target_insn_history_from): Add argument.
9370         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9371         argument.
9372
9373 2014-02-19  Tom Tromey  <tromey@redhat.com>
9374
9375         * target.h (struct target_ops) <to_insn_history>: Add argument.
9376         * target.c (target_insn_history): Add argument.
9377         * record-btrace.c (record_btrace_insn_history): Add 'self'
9378         argument.
9379
9380 2014-02-19  Tom Tromey  <tromey@redhat.com>
9381
9382         * target.h (struct target_ops) <to_goto_record>: Add argument.
9383         * target.c (target_goto_record): Add argument.
9384         * record-full.c (record_full_goto): Add 'self' argument.
9385         * record-btrace.c (record_btrace_goto): Add 'self' argument.
9386
9387 2014-02-19  Tom Tromey  <tromey@redhat.com>
9388
9389         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9390         * target.c (target_goto_record_end): Add argument.
9391         * record-full.c (record_full_goto_end): Add 'self' argument.
9392         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9393
9394 2014-02-19  Tom Tromey  <tromey@redhat.com>
9395
9396         * target.h (struct target_ops) <to_goto_record_begin>: Add
9397         argument.
9398         * target.c (target_goto_record_begin): Add argument.
9399         * record-full.c (record_full_goto_begin): Add 'self' argument.
9400         * record-btrace.c (record_btrace_goto_begin): Add 'self'
9401         argument.
9402
9403 2014-02-19  Tom Tromey  <tromey@redhat.com>
9404
9405         * target.h (struct target_ops) <to_record_is_replaying>: Add
9406         argument.
9407         * target.c (target_record_is_replaying): Add argument.
9408         * record-full.c (record_full_is_replaying): Add 'self' argument.
9409         * record-btrace.c (record_btrace_is_replaying): Add 'self'
9410         argument.
9411         (record_btrace_xfer_partial, record_btrace_store_registers)
9412         (record_btrace_prepare_to_store, record_btrace_resume)
9413         (record_btrace_wait, record_btrace_decr_pc_after_break)
9414         (record_btrace_find_new_threads, record_btrace_thread_alive):
9415         Update.
9416
9417 2014-02-19  Tom Tromey  <tromey@redhat.com>
9418
9419         * target.h (struct target_ops) <to_delete_record>: Add argument.
9420         * target.c (target_delete_record): Add argument.
9421         * record-full.c (record_full_delete): Add 'self' argument.
9422
9423 2014-02-19  Tom Tromey  <tromey@redhat.com>
9424
9425         * target.h (struct target_ops) <to_save_record>: Add argument.
9426         * target.c (target_save_record): Add argument.
9427         * record-full.c (record_full_save): Add 'self' argument.
9428         (record_full_save): Add 'self' argument.
9429
9430 2014-02-19  Tom Tromey  <tromey@redhat.com>
9431
9432         * target.h (struct target_ops) <to_info_record>: Add argument.
9433         * target.c (target_info_record): Add argument.
9434         * record.c (info_record_command): Add argument.
9435         * record-full.c (record_full_info): Add 'self' argument.
9436         * record-btrace.c (record_btrace_info): Add 'self' argument.
9437
9438 2014-02-19  Tom Tromey  <tromey@redhat.com>
9439
9440         * target.h (struct target_ops) <to_stop_recording>: Add argument.
9441         * target.c (target_stop_recording): Add argument.
9442         * record.c (record_stop): Add argument.
9443         * record-btrace.c (record_btrace_stop_recording): Add 'self'
9444         argument.
9445
9446 2014-02-19  Tom Tromey  <tromey@redhat.com>
9447
9448         * target.h (struct target_ops) <to_read_btrace>: Add argument.
9449         * target.c (struct target_ops) <to_read_btrace>: Add argument.
9450         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9451         argument.
9452         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9453         (_initialize_amd64_linux_nat): Use it.
9454         * i386-linux-nat.c (i386_linux_read_btrace): New function.
9455         (_initialize_i386_linux_nat): Use it.
9456
9457 2014-02-19  Tom Tromey  <tromey@redhat.com>
9458
9459         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9460         * target.c (target_teardown_btrace): Add argument.
9461         * remote.c (remote_teardown_btrace): Add 'self' argument.
9462         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9463         argument.
9464         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9465         argument.
9466
9467 2014-02-19  Tom Tromey  <tromey@redhat.com>
9468
9469         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9470         * target.c (target_disable_btrace): Add argument.
9471         * remote.c (remote_disable_btrace): Add 'self' argument.
9472         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9473         argument.
9474         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9475         argument.
9476
9477 2014-02-19  Tom Tromey  <tromey@redhat.com>
9478
9479         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9480         * target.c (target_enable_btrace): Add argument.
9481         * remote.c (remote_enable_btrace): Add 'self' argument.
9482         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9483         argument.
9484         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9485         argument.
9486
9487 2014-02-19  Tom Tromey  <tromey@redhat.com>
9488
9489         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9490         (target_can_use_agent): Add argument.
9491         * target.c (update_current_target): Update.
9492         * remote.c (remote_can_use_agent): Add 'self' argument.
9493         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9494
9495 2014-02-19  Tom Tromey  <tromey@redhat.com>
9496
9497         * target.h (struct target_ops) <to_use_agent>: Add argument.
9498         (target_use_agent): Add argument.
9499         * target.c (update_current_target): Update.
9500         * remote.c (remote_use_agent): Add 'self' argument.
9501         * inf-child.c (inf_child_use_agent): Add 'self' argument.
9502
9503 2014-02-19  Tom Tromey  <tromey@redhat.com>
9504
9505         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9506         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9507         (target_traceframe_info): Add argument.
9508         * target.c (update_current_target): Update.
9509         * remote.c (remote_traceframe_info): Add 'self' argument.
9510         * ctf.c (ctf_traceframe_info): Add 'self' argument.
9511
9512 2014-02-19  Tom Tromey  <tromey@redhat.com>
9513
9514         * target.h (target_static_tracepoint_markers_by_strid): Add
9515         argument.
9516         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9517         'self' argument.
9518         * target.c (update_current_target): Update.
9519         * remote.c (struct target_ops)
9520         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9521         * linux-nat.c (struct target_ops)
9522         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9523
9524 2014-02-19  Tom Tromey  <tromey@redhat.com>
9525
9526         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9527         Add argument.
9528         (target_static_tracepoint_marker_at): Add argument.
9529         * target.c (update_current_target): Update.
9530         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9531         argument.
9532
9533 2014-02-19  Tom Tromey  <tromey@redhat.com>
9534
9535         * target.h (struct target_ops) <to_set_permissions>: Add argument.
9536         (target_set_permissions): Add argument.
9537         * target.c (update_current_target): Update.
9538         * remote.c (remote_set_permissions): Add 'self' argument.
9539         (remote_start_remote): Update.
9540
9541 2014-02-19  Tom Tromey  <tromey@redhat.com>
9542
9543         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9544         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9545         (target_get_tib_address): Add argument.
9546         * target.c (update_current_target): Update.
9547         * remote.c (remote_get_tib_address): Add 'self' argument.
9548
9549 2014-02-19  Tom Tromey  <tromey@redhat.com>
9550
9551         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9552         (target_set_trace_notes): Add argument.
9553         * target.c (update_current_target): Update.
9554         * remote.c (remote_set_trace_notes): Add 'self' argument.
9555
9556 2014-02-19  Tom Tromey  <tromey@redhat.com>
9557
9558         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9559         argument.
9560         (target_set_trace_buffer_size): Add argument.
9561         * target.c (update_current_target): Update.
9562         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9563
9564 2014-02-19  Tom Tromey  <tromey@redhat.com>
9565
9566         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9567         argument.
9568         (target_set_circular_trace_buffer): Add argument.
9569         * target.c (update_current_target): Update.
9570         * remote.c (remote_set_circular_trace_buffer): Add 'self'
9571         argument.
9572
9573 2014-02-19  Tom Tromey  <tromey@redhat.com>
9574
9575         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9576         argument.
9577         (target_set_disconnected_tracing): Add argument.
9578         * target.c (update_current_target): Update.
9579         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9580
9581 2014-02-19  Tom Tromey  <tromey@redhat.com>
9582
9583         * target.h (struct target_ops)
9584         <to_get_min_fast_tracepoint_insn_len>: Add argument.
9585         (target_get_min_fast_tracepoint_insn_len): Add argument.
9586         * target.c (update_current_target): Update.
9587         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9588         argument.
9589
9590 2014-02-19  Tom Tromey  <tromey@redhat.com>
9591
9592         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9593         argument.
9594         (target_get_raw_trace_data): Add argument.
9595         * target.c (update_current_target): Update.
9596         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9597
9598 2014-02-19  Tom Tromey  <tromey@redhat.com>
9599
9600         * target.h (struct target_ops) <to_upload_trace_state_variables>:
9601         Add argument.
9602         (target_upload_trace_state_variables): Add argument.
9603         * target.c (update_current_target): Update.
9604         * remote.c (remote_upload_trace_state_variables): Add 'self'
9605         argument.
9606         (remote_start_remote): Update.
9607
9608 2014-02-19  Tom Tromey  <tromey@redhat.com>
9609
9610         * target.h (struct target_ops) <to_upload_tracepoints>: Add
9611         argument.
9612         (target_upload_tracepoints): Add argument.
9613         * target.c (update_current_target): Update.
9614         * remote.c (remote_upload_tracepoints): Add 'self' argument.
9615         (remote_start_remote): Update.
9616
9617 2014-02-19  Tom Tromey  <tromey@redhat.com>
9618
9619         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9620         (target_save_trace_data): Add argument.
9621         * target.c (update_current_target): Update.
9622         * remote.c (remote_save_trace_data): Add 'self' argument.
9623
9624 2014-02-19  Tom Tromey  <tromey@redhat.com>
9625
9626         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9627         argument.
9628         * target.h (struct target_ops)
9629         <to_get_trace_state_variable_value>: Add argument.
9630         (target_get_trace_state_variable_value): Add argument.
9631         * target.c (update_current_target): Update.
9632         * remote.c (remote_get_trace_state_variable_value): Add 'self'
9633         argument.
9634         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9635
9636 2014-02-19  Tom Tromey  <tromey@redhat.com>
9637
9638         * tracepoint.c (tfile_trace_find): Add 'self' argument.
9639         * target.h (struct target_ops) <to_trace_find>: Add argument.
9640         (target_trace_find): Add argument.
9641         * target.c (update_current_target): Update.
9642         * remote.c (remote_trace_find): Add 'self' argument.
9643         * ctf.c (ctf_trace_find): Add 'self' argument.
9644
9645 2014-02-19  Tom Tromey  <tromey@redhat.com>
9646
9647         * target.h (struct target_ops) <to_trace_stop>: Add argument.
9648         (target_trace_stop): Add argument.
9649         * target.c (update_current_target): Update.
9650         * remote.c (remote_trace_stop): Add 'self' argument.
9651
9652 2014-02-19  Tom Tromey  <tromey@redhat.com>
9653
9654         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9655         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9656         argument.
9657         (target_get_tracepoint_status): Add argument.
9658         * target.c (update_current_target): Update.
9659         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9660
9661 2014-02-19  Tom Tromey  <tromey@redhat.com>
9662
9663         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9664         * target.h (struct target_ops) <to_get_trace_status>: Add
9665         argument.
9666         (target_get_trace_status): Add argument.
9667         * target.c (update_current_target): Update.
9668         * remote.c (remote_get_trace_status): Add 'self' argument.
9669         (remote_start_remote, remote_can_download_tracepoint): Update.
9670         * ctf.c (ctf_get_trace_status): Add 'self' argument.
9671
9672 2014-02-19  Tom Tromey  <tromey@redhat.com>
9673
9674         * target.h (struct target_ops) <to_trace_start>: Add argument.
9675         (target_trace_start): Add argument.
9676         * target.c (update_current_target): Update.
9677         * remote.c (remote_trace_start): Add 'self' argument.
9678
9679 2014-02-19  Tom Tromey  <tromey@redhat.com>
9680
9681         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9682         Add argument.
9683         (target_trace_set_readonly_regions): Add argument.
9684         * target.c (update_current_target): Update.
9685         * remote.c (remote_trace_set_readonly_regions): Add 'self'
9686         argument.
9687
9688 2014-02-19  Tom Tromey  <tromey@redhat.com>
9689
9690         * target.h (struct target_ops) <to_disable_tracepoint>: Add
9691         argument.
9692         (target_disable_tracepoint): Add argument.
9693         * target.c (update_current_target): Update.
9694         * remote.c (remote_disable_tracepoint): Add 'self' argument.
9695
9696 2014-02-19  Tom Tromey  <tromey@redhat.com>
9697
9698         * target.h (struct target_ops) <to_enable_tracepoint>: Add
9699         argument.
9700         (target_enable_tracepoint): Add argument.
9701         * target.c (update_current_target): Update.
9702         * remote.c (remote_enable_tracepoint): Add 'self' argument.
9703
9704 2014-02-19  Tom Tromey  <tromey@redhat.com>
9705
9706         * target.h (struct target_ops) <to_download_trace_state_variable>:
9707         Add argument.
9708         (target_download_trace_state_variable): Add argument.
9709         * target.c (update_current_target): Update.
9710         * remote.c (remote_download_trace_state_variable): Add 'self'
9711         argument.
9712
9713 2014-02-19  Tom Tromey  <tromey@redhat.com>
9714
9715         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9716         argument.
9717         (target_can_download_tracepoint): Add argument.
9718         * target.c (update_current_target): Update.
9719         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9720
9721 2014-02-19  Tom Tromey  <tromey@redhat.com>
9722
9723         * target.h (struct target_ops) <to_download_tracepoint>: Add
9724         argument.
9725         (target_download_tracepoint): Add argument.
9726         * target.c (update_current_target): Update.
9727         * remote.c (remote_download_tracepoint): Add 'self' argument.
9728
9729 2014-02-19  Tom Tromey  <tromey@redhat.com>
9730
9731         * target.h (struct target_ops) <to_trace_init>: Add argument.
9732         (target_trace_init): Add argument.
9733         * target.c (update_current_target): Update.
9734         * remote.c (remote_trace_init): Add 'self' argument.
9735
9736 2014-02-19  Tom Tromey  <tromey@redhat.com>
9737
9738         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9739         * target.c (target_fileio_readlink): Add argument.
9740         * remote.c (remote_hostio_readlink): Add 'self' argument.
9741         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9742
9743 2014-02-19  Tom Tromey  <tromey@redhat.com>
9744
9745         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9746         * target.c (target_fileio_unlink): Add argument.
9747         * remote.c (remote_hostio_unlink): Add 'self' argument.
9748         (remote_file_delete): Update.
9749         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9750
9751 2014-02-19  Tom Tromey  <tromey@redhat.com>
9752
9753         * target.h (struct target_ops) <to_fileio_close>: Add argument.
9754         * target.c (target_fileio_close): Add argument.
9755         * remote.c (remote_hostio_close): Add 'self' argument.
9756         (remote_hostio_close_cleanup): Update.
9757         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9758         Update.
9759         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9760
9761 2014-02-19  Tom Tromey  <tromey@redhat.com>
9762
9763         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9764         * target.c (target_fileio_pread): Add argument.
9765         * remote.c (remote_hostio_pread): Add 'self' argument.
9766         (remote_bfd_iovec_pread, remote_file_get): Update.
9767         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9768
9769 2014-02-19  Tom Tromey  <tromey@redhat.com>
9770
9771         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9772         * target.c (target_fileio_pwrite): Add argument.
9773         * remote.c (remote_hostio_pwrite): Add 'self' argument.
9774         (remote_file_put): Update.
9775         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9776
9777 2014-02-19  Tom Tromey  <tromey@redhat.com>
9778
9779         * target.h (struct target_ops) <to_fileio_open>: Add argument.
9780         * target.c (target_fileio_open): Add argument.
9781         * remote.c (remote_hostio_open): Add 'self' argument.
9782         (remote_bfd_iovec_open): Add 'self' argument.
9783         (remote_file_put): Add 'self' argument.
9784         (remote_file_get): Add 'self' argument.
9785         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9786
9787 2014-02-19  Tom Tromey  <tromey@redhat.com>
9788
9789         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9790         Add argument.
9791         (target_can_run_breakpoint_commands): Add argument.
9792         * target.c (update_current_target): Update.
9793         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9794         argument.
9795         (remote_insert_breakpoint): Add 'self' argument.
9796         (remote_insert_hw_breakpoint): Add 'self' argument.
9797         (remote_can_run_breakpoint_commands): Add 'self' argument.
9798
9799 2014-02-19  Tom Tromey  <tromey@redhat.com>
9800
9801         * target.h (struct target_ops)
9802         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9803         (target_supports_evaluation_of_breakpoint_conditions): Add
9804         argument.
9805         * target.c (update_current_target): Update.
9806         * remote.c (remote_supports_cond_breakpoints): Add 'self'
9807         argument.
9808         (remote_insert_breakpoint): Add 'self' argument.
9809         (remote_insert_hw_breakpoint): Add 'self' argument.
9810         (remote_supports_cond_breakpoints): Add 'self' argument.
9811
9812 2014-02-19  Tom Tromey  <tromey@redhat.com>
9813
9814         * target.h (struct target_ops) <to_supports_string_tracing>: Add
9815         argument.
9816         (target_supports_string_tracing): Add argument.
9817         * target.c (update_current_target): Update.
9818         * remote.c (remote_supports_string_tracing): Add 'self' argument.
9819
9820 2014-02-19  Tom Tromey  <tromey@redhat.com>
9821
9822         * target.h (struct target_ops)
9823         <to_supports_disable_randomization>: Add argument.
9824         * target.c (find_default_supports_disable_randomization): Add
9825         argument.
9826         (target_supports_disable_randomization): Add argument.
9827         (find_default_supports_disable_randomization): Add 'self'
9828         argument.
9829         * remote.c (extended_remote_supports_disable_randomization): Add
9830         'self' argument.
9831         (remote_supports_disable_randomization): Add 'self' argument.
9832         (extended_remote_create_inferior): Update.
9833         * linux-nat.c (linux_nat_supports_disable_randomization): Add
9834         'self' argument.
9835
9836 2014-02-19  Tom Tromey  <tromey@redhat.com>
9837
9838         * target.h (struct target_ops)
9839         <to_supports_enable_disable_tracepoint>: Add argument.
9840         (target_supports_enable_disable_tracepoint): Add argument.
9841         * target.c (update_current_target): Update.
9842         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9843         argument.
9844
9845 2014-02-19  Tom Tromey  <tromey@redhat.com>
9846
9847         * target.h (struct target_ops) <to_supports_multi_process>: Add
9848         argument.
9849         (target_supports_multi_process): Add argument.
9850         * target.c (update_current_target): Update.
9851         * remote.c (remote_supports_multi_process): Add 'self' argument.
9852         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9853         argument.
9854         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9855         argument.
9856
9857 2014-02-19  Tom Tromey  <tromey@redhat.com>
9858
9859         * target.h (struct target_ops) <to_execution_direction>: Add
9860         argument.
9861         (target_execution_direction): Add argument.
9862         * target.c (default_execution_direction): Add 'self' argument.
9863         * record-full.c (record_full_execution_direction): Add 'self'
9864         argument.
9865
9866 2014-02-19  Tom Tromey  <tromey@redhat.com>
9867
9868         * target.h (struct target_ops) <to_can_execute_reverse>: Add
9869         argument.
9870         (target_can_execute_reverse): Add argument.
9871         * remote.c (remote_can_execute_reverse): Add 'self' argument.
9872         * record-full.c (record_full_can_execute_reverse): Add 'self'
9873         argument.
9874         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9875         argument.
9876
9877 2014-02-19  Tom Tromey  <tromey@redhat.com>
9878
9879         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9880         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9881         argument.
9882         (target_get_ada_task_ptid): Add argument.
9883         * target.c (update_current_target): Update.
9884         (default_get_ada_task_ptid): Add 'self' argument.
9885         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9886         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9887         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9888         argument.
9889         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9890         argument.
9891         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9892         argument.
9893         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9894         argument.
9895         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9896         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9897         argument.
9898
9899 2014-02-19  Tom Tromey  <tromey@redhat.com>
9900
9901         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9902         (target_goto_bookmark): Add argument.
9903         * target.c (dummy_goto_bookmark): Add 'self' argument.
9904         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9905
9906 2014-02-19  Tom Tromey  <tromey@redhat.com>
9907
9908         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9909         (target_get_bookmark): Add argument.
9910         * target.c (dummy_get_bookmark): Add 'self' argument.
9911         * record-full.c (record_full_get_bookmark): Add 'self' argument.
9912
9913 2014-02-19  Tom Tromey  <tromey@redhat.com>
9914
9915         * target.h (struct target_ops) <to_make_corefile_notes>: Add
9916         argument.
9917         (target_make_corefile_notes): Add argument.
9918         * target.c (dummy_make_corefile_notes): Add 'self' argument.
9919         * procfs.c (procfs_make_note_section): Add 'self' argument.
9920         (procfs_make_note_section): Add 'self' argument.
9921         (procfs_make_note_section): Add 'self' argument.
9922         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9923         argument.
9924         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9925         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9926         * exec.c (exec_make_note_section): Add 'self' argument.
9927         (exec_make_note_section): Add 'self' argument.
9928
9929 2014-02-19  Tom Tromey  <tromey@redhat.com>
9930
9931         * target.h (struct target_ops) <to_find_memory_regions>: Add
9932         argument.
9933         (target_find_memory_regions): Add argument.
9934         * target.c (dummy_find_memory_regions): Add 'self' argument.
9935         * procfs.c (proc_find_memory_regions): Add 'self' argument.
9936         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9937         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9938         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9939         * exec. (exec_do_find_memory_regions): New global.
9940         (exec_set_find_memory_regions): Rewrite.
9941         (exec_find_memory_regions): New function.
9942         (init_exec_ops): Use exec_find_memory_regions.
9943
9944 2014-02-19  Tom Tromey  <tromey@redhat.com>
9945
9946         * target.h (struct target_ops) <to_supports_non_stop>: Add
9947         argument.
9948         * target.c (find_default_supports_non_stop): Add argument.
9949         (target_supports_non_stop): Add argument.
9950         (find_default_supports_non_stop): Add 'self' argument.
9951         * remote.c (remote_supports_non_stop): Add 'self' argument.
9952         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9953
9954 2014-02-19  Tom Tromey  <tromey@redhat.com>
9955
9956         * target.h (struct target_ops) <to_log_command>: Add argument.
9957         (target_log_command): Add argument.
9958         * serial.h (serial_log_command): Add 'self' argument.
9959         * serial.c (serial_log_command): Add 'self' argument.
9960
9961 2014-02-19  Tom Tromey  <tromey@redhat.com>
9962
9963         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9964         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9965         argument.
9966         (target_pid_to_exec_file): Add argument.
9967         * target.c (debug_to_pid_to_exec_file): Add argument.
9968         (update_current_target): Update.
9969         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9970         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9971         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9972         (linux_handle_extended_wait): Update.
9973         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9974         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9975         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9976         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9977
9978 2014-02-19  Tom Tromey  <tromey@redhat.com>
9979
9980         * target.h (struct target_ops) <to_rcmd>: Add argument.
9981         (target_rcmd): Add argument.
9982         * target.c (debug_to_rcmd): Add argument.
9983         (update_current_target, do_monitor_command): Update.
9984         * remote.c (remote_rcmd): Add 'self' argument.
9985         * monitor.c (monitor_rcmd): Add 'self' argument.
9986
9987 2014-02-19  Tom Tromey  <tromey@redhat.com>
9988
9989         * windows-nat.c (windows_stop): Add 'self' argument.
9990         * target.h (struct target_ops) <to_stop>: Add argument.
9991         * target.c (target_stop): Add argument.
9992         (debug_to_stop): Add argument.
9993         (update_current_target): Update.
9994         * remote.c (remote_stop): Add 'self' argument.
9995         * remote-sim.c (gdbsim_stop): Add 'self' argument.
9996         (gdbsim_cntrl_c): Update.
9997         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9998         * procfs.c (procfs_stop): Add 'self' argument.
9999         * nto-procfs.c (procfs_stop): Add 'self' argument.
10000         * monitor.c (monitor_stop): Add 'self' argument.
10001         (monitor_open): Update.
10002         * linux-nat.c (linux_nat_stop): Add argument.
10003         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10004         * gnu-nat.c (gnu_stop): Add 'self' argument.
10005         * darwin-nat.c (darwin_stop): Add 'self' argument.
10006
10007 2014-02-19  Tom Tromey  <tromey@redhat.com>
10008
10009         * target.h (struct target_ops) <to_thread_name>: Add argument.
10010         * target.c (target_thread_name): Add argument.
10011         (update_current_target): Update.
10012         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10013
10014 2014-02-19  Tom Tromey  <tromey@redhat.com>
10015
10016         * target.h (struct target_ops) <to_extra_thread_info>: Add
10017         argument.
10018         (target_extra_thread_info): Add argument.
10019         * target.c (update_current_target): Update.
10020         * remote.c (remote_threads_extra_info): Add 'self' argument.
10021         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10022         argument.
10023         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10024         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10025         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10026         argument.
10027         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10028         argument.
10029         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10030         argument.
10031         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10032         argument.
10033
10034 2014-02-19  Tom Tromey  <tromey@redhat.com>
10035
10036         * target.h (struct target_ops) <to_program_signals>: Add argument.
10037         * target.c (target_program_signals): Add argument.
10038         * remote.c (remote_program_signals): Add 'self' argument.
10039
10040 2014-02-19  Tom Tromey  <tromey@redhat.com>
10041
10042         * target.h (struct target_ops) <to_pass_signals>: Add argument.
10043         * target.c (target_pass_signals): Add argument.
10044         * remote.c (remote_pass_signals): Add 'self' argument.
10045         (remote_start_remote): Update.
10046         * procfs.c (procfs_pass_signals): Add 'self' argument.
10047         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10048         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10049         (linux_nat_create_inferior, linux_nat_attach): Update.
10050
10051 2014-02-19  Tom Tromey  <tromey@redhat.com>
10052
10053         * windows-nat.c (windows_can_run): Add 'self' argument.
10054         * target.h (struct target_ops) <to_can_run>: Add argument.
10055         (target_can_run): Add argument.
10056         * target.c (debug_to_can_run): Add argument.
10057         (update_current_target): Update.
10058         * nto-procfs.c (procfs_can_run): Add 'self' argument.
10059         * inf-child.c (inf_child_can_run): Add 'self' argument.
10060         * go32-nat.c (go32_can_run): Add 'self' argument.
10061
10062 2014-02-19  Tom Tromey  <tromey@redhat.com>
10063
10064         * target.h (struct target_ops) <to_has_exited>: Add argument.
10065         (target_has_exited): Add argument.
10066         * target.c (debug_to_has_exited): Add argument.
10067         (update_current_target): Update.
10068
10069 2014-02-19  Tom Tromey  <tromey@redhat.com>
10070
10071         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10072         argument.
10073         (target_set_syscall_catchpoint): Add argument.
10074         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10075         argument.
10076         * target.c (update_current_target): Update.
10077
10078 2014-02-19  Tom Tromey  <tromey@redhat.com>
10079
10080         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10081         argument.
10082         (target_remove_exec_catchpoint): Add argument.
10083         * target.c (debug_to_remove_exec_catchpoint): Add argument.
10084         (update_current_target): Update.
10085         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10086         argument.
10087
10088 2014-02-19  Tom Tromey  <tromey@redhat.com>
10089
10090         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10091         argument.
10092         (target_insert_exec_catchpoint): Add argument.
10093         * target.c (debug_to_insert_exec_catchpoint): Add argument.
10094         (update_current_target): Update.
10095         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10096         argument.
10097
10098 2014-02-19  Tom Tromey  <tromey@redhat.com>
10099
10100         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10101         argument.
10102         (target_remove_vfork_catchpoint): Add argument.
10103         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10104         (update_current_target): Update.
10105         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10106         argument.
10107
10108 2014-02-19  Tom Tromey  <tromey@redhat.com>
10109
10110         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10111         argument.
10112         (target_insert_vfork_catchpoint): Add argument.
10113         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10114         (update_current_target): Update.
10115         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10116         argument.
10117
10118 2014-02-19  Tom Tromey  <tromey@redhat.com>
10119
10120         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10121         argument.
10122         (target_remove_fork_catchpoint): Add argument.
10123         * target.c (debug_to_remove_fork_catchpoint): Add argument.
10124         (update_current_target): Update.
10125         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10126         argument.
10127
10128 2014-02-19  Tom Tromey  <tromey@redhat.com>
10129
10130         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10131         argument.
10132         (target_insert_fork_catchpoint): Add argument.
10133         * target.c (debug_to_insert_fork_catchpoint): Add argument.
10134         (update_current_target): Update.
10135         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10136         argument.
10137
10138 2014-02-19  Tom Tromey  <tromey@redhat.com>
10139
10140         * target.h (struct target_ops) <to_post_startup_inferior>: Add
10141         argument.
10142         (target_post_startup_inferior): Add argument.
10143         * target.c (debug_to_post_startup_inferior): Add argument.
10144         (update_current_target): Update.
10145         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10146         argument.
10147         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10148         argument.
10149         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10150         argument.
10151         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10152         argument.
10153         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10154         'self' argument.
10155         (super_post_startup_inferior): Likewise.
10156         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10157         'self' argument.
10158         (super_post_startup_inferior): Likewise.
10159         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10160         Add 'self' argument.
10161         (super_post_startup_inferior): Likewise.
10162
10163 2014-02-19  Tom Tromey  <tromey@redhat.com>
10164
10165         * target.h (struct target_ops) <to_load>: Add argument.
10166         * target.c (target_load): Add argument.
10167         (debug_to_load): Add argument.
10168         (update_current_target): Update.
10169         * remote.c (remote_load): Add 'self' argument.
10170         * remote-sim.c (gdbsim_load): Add 'self' argument.
10171         * remote-mips.c (mips_load): Add 'self' argument.
10172         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10173         * monitor.c (monitor_load): Add 'self' argument.
10174         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10175
10176 2014-02-19  Tom Tromey  <tromey@redhat.com>
10177
10178         * target.h (struct target_ops) <to_terminal_info>: Add argument.
10179         (target_terminal_info): Add argument.
10180         * target.c (debug_to_terminal_info): Add argument.
10181         (default_terminal_info): Likewise.
10182         * inflow.c (child_terminal_info): Add 'self' argument.
10183         * inferior.h (child_terminal_info): Add 'self' argument.
10184         * go32-nat.c (go32_terminal_info): Add 'self' argument.
10185
10186 2014-02-19  Tom Tromey  <tromey@redhat.com>
10187
10188         * target.h (struct target_ops) <to_terminal_save_ours>: Add
10189         argument.
10190         (target_terminal_save_ours): Add argument.
10191         * target.c (debug_to_terminal_save_ours): Add argument.
10192         (update_current_target): Update.
10193         * inflow.c (terminal_save_ours): Add 'self' argument.
10194         * inferior.h (terminal_save_ours): Add 'self' argument.
10195
10196 2014-02-19  Tom Tromey  <tromey@redhat.com>
10197
10198         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10199         (target_terminal_ours): Add argument.
10200         * target.c (debug_to_terminal_ours): Add argument.
10201         (update_current_target): Update.
10202         * remote.c (remote_terminal_ours): Add 'self' argument.
10203         (remote_close): Update.
10204         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10205         * inflow.c (terminal_ours): Add 'self' argument.
10206         * inferior.h (terminal_ours): Add 'self' argument.
10207         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10208
10209 2014-02-19  Pedro Alves  <palves@redhat.com>
10210             Tom Tromey  <tromey@redhat.com>
10211
10212         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10213         argument.
10214         (target_terminal_ours_for_output): Add argument.
10215         * target.c (debug_to_terminal_ours_for_output): Add argument.
10216         (update_current_target): Update.
10217         * inflow.c (terminal_ours_for_output): Add 'self' argument.
10218         * inferior.h (terminal_ours_for_output): Add 'self' argument.
10219         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10220
10221 2014-02-19  Tom Tromey  <tromey@redhat.com>
10222
10223         * target.h (struct target_ops) <to_terminal_inferior>: Add
10224         argument.
10225         * target.c (target_terminal_inferior): Add argument.
10226         (update_current_target): Update.
10227         * remote.c (remote_terminal_inferior): Add 'self' argument.
10228         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10229         * inflow.c (terminal_inferior): Add 'self' argument.
10230         * inferior.h (terminal_inferior): Add 'self' argument.
10231         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10232         (go32_terminal_inferior): Add 'self' argument.
10233
10234 2014-02-19  Tom Tromey  <tromey@redhat.com>
10235
10236         * target.h (struct target_ops) <to_terminal_init>: Add argument.
10237         (target_terminal_init): Add argument.
10238         * target.c (debug_to_terminal_init): Add argument.
10239         (update_current_target): Update.
10240         * inflow.c (terminal_init_inferior): Add 'self' argument.
10241         * inferior.h (terminal_init_inferior): Add 'self' argument.
10242         * go32-nat.c (go32_terminal_init): Add 'self' argument.
10243         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10244
10245 2014-02-19  Tom Tromey  <tromey@redhat.com>
10246
10247         * target.h (struct target_ops)
10248         <to_can_accel_watchpoint_condition>: Add argument.
10249         (target_can_accel_watchpoint_condition): Add argument.
10250         * target.c (debug_to_can_accel_watchpoint_condition): Add
10251         argument.
10252         (update_current_target): Update.
10253         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10254         'self' argument.
10255
10256 2014-02-19  Tom Tromey  <tromey@redhat.com>
10257
10258         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10259         Add argument.
10260         (target_region_ok_for_hw_watchpoint): Add argument.
10261         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10262         (default_region_ok_for_hw_watchpoint): Add argument.
10263         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10264         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10265         argument.
10266         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10267         argument.
10268         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10269         argument.
10270         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10271         'self' argument.
10272         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10273         'self' argument.
10274         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10275         'self' argument.
10276         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10277         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10278         'self' argument.
10279         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10280         Add 'self' argument.
10281
10282 2014-02-19  Tom Tromey  <tromey@redhat.com>
10283
10284         * target.h (struct target_ops) <to_insert_watchpoint>: Add
10285         argument.
10286         (target_insert_watchpoint): Add argument.
10287         * target.c (debug_to_insert_watchpoint): Add argument.
10288         (update_current_target): Update.
10289         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10290         * remote.c (remote_insert_watchpoint): Add 'self' argument.
10291         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10292         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10293         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10294         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10295         argument.
10296         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10297         (procfs_insert_hw_watchpoint): Add 'self' argument.
10298         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10299         argument.
10300         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10301         argument.
10302         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10303         argument.
10304         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10305         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10306         argument.
10307         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10308         'self' argument.
10309
10310 2014-02-19  Tom Tromey  <tromey@redhat.com>
10311
10312         * target.h (struct target_ops) <to_remove_watchpoint>: Add
10313         argument.
10314         (target_remove_watchpoint): Add argument.
10315         * target.c (debug_to_remove_watchpoint): Add argument.
10316         (update_current_target): Update.
10317         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10318         * remote.c (remote_remove_watchpoint): Add 'self' argument.
10319         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10320         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10321         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10322         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10323         argument.
10324         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10325         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10326         argument.
10327         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10328         argument.
10329         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10330         argument.
10331         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10332         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10333         argument.
10334         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10335         'self' argument.
10336
10337 2014-02-19  Tom Tromey  <tromey@redhat.com>
10338
10339         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10340         argument.
10341         (target_remove_hw_breakpoint): Add argument.
10342         * target.c (debug_to_remove_hw_breakpoint): Add argument.
10343         (update_current_target): Update.
10344         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10345         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10346         argument.
10347         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10348         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10349         argument.
10350         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10351         'self' argument.
10352
10353 2014-02-19  Tom Tromey  <tromey@redhat.com>
10354
10355         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10356         argument.
10357         (target_insert_hw_breakpoint): Add argument.
10358         * target.c (debug_to_insert_hw_breakpoint): Add argument.
10359         (update_current_target): Update.
10360         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10361         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10362         argument.
10363         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10364         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10365         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10366         argument.
10367         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10368         'self' argument.
10369
10370 2014-02-19  Tom Tromey  <tromey@redhat.com>
10371
10372         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10373         argument.
10374         (target_can_use_hardware_watchpoint): Add argument.
10375         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10376         (update_current_target): Update.
10377         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10378         argument.
10379         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10380         argument.
10381         * remote.c (remote_check_watch_resources): Add 'self' argument.
10382         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10383         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10384         argument.
10385         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10386         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10387         argument.
10388         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10389         argument.
10390         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10391         argument.
10392         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10393         argument.
10394         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10395         argument.
10396         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10397         argument.
10398         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10399         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10400         argument.
10401         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10402         'self' argument.
10403
10404 2014-02-19  Tom Tromey  <tromey@redhat.com>
10405
10406         * target.h (struct target_ops) <to_post_attach>: Add argument.
10407         (target_post_attach): Add argument.
10408         * target.c (debug_to_post_attach): Add argument.
10409         (update_current_target): Update.
10410         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10411         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10412         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10413         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10414         * inf-child.c (inf_child_post_attach): Add 'self' argument.
10415
10416 2014-02-19  Tom Tromey  <tromey@redhat.com>
10417
10418         * windows-nat.c (windows_close): Add 'self' argument.
10419         * tracepoint.c (tfile_close): Add 'self' argument.
10420         * target.h (struct target_ops) <to_close>: Add argument.
10421         * target.c (target_close): Add argument.
10422         (update_current_target): Update.
10423         * remote.c (remote_close): Add 'self' argument.
10424         * remote-sim.c (gdbsim_close): Add 'self' argument.
10425         * remote-mips.c (mips_close): Add 'self' argument.
10426         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10427         * record-full.c (record_full_close): Add 'self' argument.
10428         * record-btrace.c (record_btrace_close): Add 'self' argument.
10429         * monitor.h (monitor_close): Add 'self' argument.
10430         * monitor.c (monitor_close): Add 'self' argument.
10431         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10432         * linux-nat.c (linux_nat_close): Add argument.
10433         * go32-nat.c (go32_close): Add 'self' argument.
10434         * exec.c (exec_close_1): Add 'self' argument.
10435         * ctf.c (ctf_close): Add 'self' argument.
10436         * corelow.c (core_close): Add 'self' argument.
10437         (core_close_cleanup): Update.
10438         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10439         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10440
10441 2014-02-19  Tom Tromey  <tromey@redhat.com>
10442
10443         * remote.c (remote_load): New function.
10444         (init_remote_ops): Use it.
10445
10446 2014-02-19  Tom Tromey  <tromey@redhat.com>
10447
10448         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10449         argument.
10450         * common/linux-btrace.h (linux_supports_btrace): Update.
10451         * remote.c (remote_supports_btrace): Add "self" argument.
10452         * target-delegates.c: Rebuild.
10453         * target.c (target_supports_btrace): Remove.
10454         * target.h (struct target_ops) <to_supports_btrace>: Add
10455         target_ops argument.
10456         (target_supports_btrace): New define.
10457
10458 2014-02-19  Tom Tromey  <tromey@redhat.com>
10459
10460         * record-full.c (record_full_beneath_to_resume_ops)
10461         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10462         (record_full_beneath_to_wait)
10463         (record_full_beneath_to_store_registers_ops)
10464         (record_full_beneath_to_store_registers)
10465         (record_full_beneath_to_xfer_partial_ops)
10466         (record_full_beneath_to_xfer_partial)
10467         (record_full_beneath_to_insert_breakpoint_ops)
10468         (record_full_beneath_to_insert_breakpoint)
10469         (record_full_beneath_to_remove_breakpoint_ops)
10470         (record_full_beneath_to_remove_breakpoint)
10471         (record_full_beneath_to_stopped_by_watchpoint)
10472         (record_full_beneath_to_stopped_data_address)
10473         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10474         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10475         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10476         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10477         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10478         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10479         (tmp_to_stopped_data_address, tmp_to_async): Remove.
10480         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
10481         (record_full_resume, record_full_wait_1)
10482         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10483         (record_full_store_registers, record_full_xfer_partial)
10484         (record_full_insert_breakpoint, record_full_remove_breakpoint)
10485         (record_full_async, record_full_core_xfer_partial): Use target
10486         delegation.
10487         * target-delegates.c: Rebuild.
10488         * target.c (current_xfer_partial): Remove.
10489         (update_current_target): Do not INHERIT or de_fault
10490         to_insert_breakpoint, to_remove_breakpoint,
10491         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10492         to_is_async_p, to_async.  Do not set to_xfer_partial field.
10493         (default_xfer_partial): Simplify.
10494         (current_xfer_partial): Remove.
10495         (target_wait, target_resume): Simplify.
10496         (find_default_can_async_p, find_default_is_async_p): Update.
10497         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10498         to_xfer_partial, to_stopped_by_watchpoint,
10499         to_stopped_data_address.
10500         (target_store_registers): Simplify.
10501         (forward_target_remove_breakpoint)
10502         (forward_target_insert_breakpoint): Remove.
10503         (target_remove_breakpoint, target_insert_breakpoint)
10504         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10505         * target.h (struct target_ops) <to_resume, to_wait,
10506         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10507         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10508         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10509         markup.
10510         (forward_target_remove_breakpoint)
10511         (forward_target_insert_breakpoint): Remove.
10512         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10513         directly.
10514         (record_btrace_insert_breakpoint): Delegate directly.
10515
10516 2014-02-19  Tom Tromey  <tromey@redhat.com>
10517
10518         PR build/7701:
10519         * target-delegates.c: New file.
10520         * target.c: Include target-delegates.c.
10521         (init_dummy_target): Call install_dummy_methods.
10522         (complete_target_initialization): Call install_delegators.
10523         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10524         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10525         * make-target-delegates: New file.
10526
10527 2014-02-19  Tom Tromey  <tromey@redhat.com>
10528
10529         * record.c (find_record_target): Use find_target_at.
10530         * target.c (find_target_at): New function.
10531         * target.h (find_target_at): Declare.
10532
10533 2014-02-19  Tom Tromey  <tromey@redhat.com>
10534
10535         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10536         Add 'ops' argument.
10537         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10538         'ops' argument.
10539         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10540         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10541         'ops' argument.
10542         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10543         argument.
10544         * linux-nat.c (save_sigtrap): Update.
10545         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10546         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10547         (linux_nat_close): Update.
10548         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10549         argument.
10550         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10551         argument.
10552         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10553         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10554         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10555         (tmp_to_async): Add 'ops' argument.
10556         (record_full_stopped_by_watchpoint, record_full_async)
10557         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10558         argument.
10559         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10560         (m32r_stopped_by_watchpoint): Add 'ops' argument.
10561         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10562         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10563         (remote_is_async_p, remote_async): Add 'ops' argument.
10564         (remote_stopped_data_address): Update.
10565         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10566         * target.c (update_current_target)
10567         (find_default_can_async_p, find_default_is_async_p): Update.
10568         (init_dummy_target): Update.
10569         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10570         * target.h (struct target_ops) <to_stopped_by_watchpoint,
10571         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10572         (target_can_async_p, target_is_async_p, target_async)
10573         (target_stopped_by_watchpoint): Update.
10574
10575 2014-02-19  Yao Qi  <yao@codesourcery.com>
10576
10577         PR gdb/16220
10578         * gdbarch.sh: Remove startup_gdbarch.
10579         * gdbarch.c: Regenerated.
10580         * gdbarch.h: Likewise.
10581
10582 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
10583
10584         * rl78-tdep.c (rl78_g10_register_name): New function.
10585         (rl78_return_value): Add g10 support.
10586         (rl78_gdbarch_init): Register rl78_g10_register_name for the
10587         g10.
10588
10589 2014-02-17  Doug Evans  <xdje42@gmail.com>
10590
10591         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10592         (SUBDIR_GUILE_SRCS): Ditto.
10593         (scm-gsmob.o): Ditto.
10594
10595 2014-02-17  Yao Qi  <yao@codesourcery.com>
10596
10597         * gnu-nat.c (ILL_RPC): Declare defined function.
10598
10599 2014-02-17  Yao Qi  <yao@codesourcery.com>
10600
10601         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10602         mach_msg_type_number_t.
10603         (gnu_write_inferior): Likewise.
10604
10605 2014-02-17  Yao Qi  <yao@codesourcery.com>
10606
10607         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10608         in format string.
10609         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10610         (inf_validate_procs, inf_signal): Likewise.
10611         (S_exception_raise_request): Likewise.
10612         (do_mach_notify_dead_name): Likewise.
10613         (steal_exc_port): Likewise.
10614         (gnu_read_inferior): Change 'copy_count''s type to
10615         mach_msg_type_number_t.
10616         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
10617         format string.
10618
10619 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
10620
10621         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10622         flag.  Adjust all users; in particular...
10623         (gnu_wait): ..., don't decrement its value in here...
10624         (gnu_create_inferior): ..., and instead set the flag in here,
10625         around the startup_inferior call, and call that one with
10626         START_INFERIOR_TRAPS_EXPECTED.
10627
10628         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10629         (ILL_RPC): ... new macro.
10630         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10631         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10632         (do_mach_notify_send_once, S_proc_setmsgport_reply)
10633         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10634         functions with ILL_RPC macro.
10635         (S_proc_pid2task_reply, S_proc_task2pid_reply)
10636         (S_proc_task2proc_reply, S_proc_proc2task_reply)
10637         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10638         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10639         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10640         (S_proc_getlogin_reply, S_proc_getsid_reply)
10641         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10642         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10643         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10644         (S_proc_getnports_reply, S_proc_is_important_reply)
10645         (S_proc_get_code_reply): New stub functions, generated with
10646         ILL_RPC macro.
10647
10648         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10649         collected the type check structures.
10650
10651         * reply_mig_hack.awk: Don't expect to see the auto keyword.
10652
10653 2014-02-14  Doug Evans  <dje@google.com>
10654
10655         * target.c (target_write_partial): Fix result type.
10656
10657 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
10658
10659         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10660         the proper offsets to access fpregset_t.
10661
10662 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
10663
10664         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10665         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10666         * h8300-tdep.c (setmachinelist): Remove global.
10667         * hppa-tdep.c (hppa_sigtramp): Remove global.
10668         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10669         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10670         * ravenscar-thread.c (update_target_observer): Remove global.
10671         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10672
10673 2014-02-12  Tom Tromey  <tromey@redhat.com>
10674
10675         * common/rsp-low.c: Update comments.
10676         * common/rsp-low.h: Update comments.
10677
10678 2014-02-12  Tom Tromey  <tromey@redhat.com>
10679
10680         * common/rsp-low.c (convert_ascii_to_int): Remove.
10681         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10682
10683 2014-02-12  Tom Tromey  <tromey@redhat.com>
10684
10685         * common/rsp-low.h (unhexify): Don't declare.
10686         * common/rsp-low.c (unhexify): Remove.
10687
10688 2014-02-12  Tom Tromey  <tromey@redhat.com>
10689
10690         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10691         * common/rsp-low.c (convert_int_to_ascii): Remove.
10692
10693 2014-02-12  Tom Tromey  <tromey@redhat.com>
10694
10695         * common/rsp-low.h (hexify): Don't declare.
10696         * common/rsp-low.c (hexify): Remove.
10697
10698 2014-02-12  Tom Tromey  <tromey@redhat.com>
10699
10700         * common/rsp-low.c (hexify): Never take strlen of argument.
10701
10702 2014-02-12  Tom Tromey  <tromey@redhat.com>
10703
10704         * common/rsp-low.c (bin2hex): Never take strlen of argument.
10705         * remote.c (extended_remote_run, remote_rcmd)
10706         (remote_download_trace_state_variable, remote_save_trace_data)
10707         (remote_set_trace_notes): Update.
10708         * tracepoint.c (encode_source_string, tfile_write_status)
10709         (tfile_write_uploaded_tsv): Update.
10710
10711 2014-02-12  Tom Tromey  <tromey@redhat.com>
10712
10713         * tracepoint.c: Include rsp-low.h.
10714         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10715         * remote.c: Include rsp-low.h.
10716         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10717         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10718         (remote_unescape_input): Move to common/rsp-low.c.
10719         * common/rsp-low.h: New file.
10720         * common/rsp-low.c: New file.
10721         * Makefile.in (SFILES): Add common/rsp-low.c.
10722         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10723         (COMMON_OBS): Add rsp-low.o.
10724         (rsp-low.o): New target.
10725
10726 2014-02-12  Tom Tromey  <tromey@redhat.com>
10727
10728         * utils.h: Include print-utils.h.
10729         (host_address_to_string, plongest, pulongest, phex, phex_nz)
10730         (int_string, core_addr_to_string, core_addr_to_string_nz)
10731         (hex_string, hex_string_custom): Don't declare.
10732         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10733         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10734         (hex_string_custom, int_string, core_addr_to_string)
10735         (core_addr_to_string_nz, host_address_to_string): Move to
10736         common/print-utils.c.
10737         * common/print-utils.h: New file.
10738         * common/print-utils.c: New file
10739         * Makefile.in (SFILES): Add common/print-utils.c.
10740         (HFILES_NO_SRCDIR): Add common/print-utils.h.
10741         (COMMON_OBS): Add print-utils.o.
10742         (print-utils.o): New target.
10743
10744 2014-02-12  Tom Tromey  <tromey@redhat.com>
10745
10746         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10747
10748 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
10749
10750         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10751
10752 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
10753
10754         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10755         if a PT_IO ptrace request returns sucessfully but indicates that 0
10756         bytes were transferred.
10757
10758 2014-02-12  Pedro Alves  <palves@redhat.com>
10759             Kevin Buettner <kevinb@redhat.com>
10760
10761         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10762         TYPE_INSTANCE_FLAG_CODE_SPACE.
10763
10764 2014-02-12  Pedro Alves  <palves@redhat.com>
10765
10766         * h8300-tdep.c (pseudo_from_raw_register)
10767         (raw_from_pseudo_register): New functions.
10768         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10769         them.
10770
10771 2014-02-12  Pedro Alves  <palves@redhat.com>
10772
10773         * h8300-tdep.c (h8300_register_sim_regno): New function.
10774         (h8300_gdbarch_init): Install h8300_register_sim_regno as
10775         gdbarch_register_sim_regno hook.
10776
10777 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
10778
10779         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10780
10781 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
10782
10783         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10784
10785 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
10786
10787         * obsd-tdep.h (obsd_init_abi): New prototype.
10788         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10789         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10790         (obsd_init_abi): New functions.
10791         * i386obsd-tdep.c: Include "obsd-tdep.h".
10792         (i386obsd_init_abi): Call obsd_init_abi.
10793         * amd64obsd-tdep.c: Include "obsd-tdep.h".
10794         (amd64obsd_init_abi): Call obsd_init_abi.
10795         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10796         obsd-tdep.c to gdb_target_obs.
10797
10798 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
10799
10800         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10801         double float arguments to 16-byte in the argument slots.
10802
10803 2014-02-11  Doug Evans  <xdje42@gmail.com>
10804
10805         * configure.ac: Don't crash if pkg-config is not found and guile
10806         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
10807         in guile checks.
10808         * configure: Regenerate.
10809
10810 2014-02-11  Yao Qi  <yao@codesourcery.com>
10811
10812         * aix-thread.c (aix_thread_xfer_partial): Update comments.
10813         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10814         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10815         * gnu-nat.c (gnu_xfer_memory): Likewise.
10816         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
10817         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10818         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10819         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10820
10821 2014-02-11  Yao Qi  <yao@codesourcery.com>
10822
10823         * target.h (enum target_xfer_error): Rename to ...
10824         (enum target_xfer_status): ... it.  New.  All users updated.
10825         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10826         New.
10827         (TARGET_XFER_STATUS_ERROR_P): New macro.
10828         (target_xfer_error_to_string): Remove declaration.
10829         (target_xfer_status_to_string): Declare.
10830         (target_xfer_partial_ftype): Adjust it.
10831         (struct target_ops) <to_xfer_partial>: Return
10832         target_xfer_status.  Add argument xfered_len.  Update
10833         comments.
10834         * target.c (target_xfer_error_to_string): Rename to ...
10835         (target_xfer_status_to_string): ... it.  New.  All callers
10836         updated.
10837         (target_read_live_memory): Likewise.  Call target_xfer_partial
10838         instead of target_read.
10839         (memory_xfer_live_readonly_partial): Return
10840         target_xfer_status.  Add argument xfered_len.
10841         (raw_memory_xfer_partial): Likewise.
10842         (memory_xfer_partial_1): Likewise.
10843         (memory_xfer_partial): Likewise.
10844         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
10845         properly.  Update debug message.
10846         (default_xfer_partial, current_xfer_partial): Likewise.
10847         (target_write_partial): Likewise.
10848         (target_read_partial): Likewise.  All callers updated.
10849         (read_whatever_is_readable): Likewise.
10850         (target_write_with_progress): Likewise.
10851         (target_read_alloc_1): Likewise.
10852
10853         * aix-thread.c (aix_thread_xfer_partial): Likewise.
10854         * auxv.c (procfs_xfer_auxv): Likewise.
10855         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10856         * bfd-target.c (target_bfd_xfer_partial): Likewise.
10857         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10858         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10859         * corefile.c (read_memory): Adjust.
10860         * corelow.c (core_xfer_partial): Likewise.
10861         * ctf.c (ctf_xfer_partial): Likewise.
10862         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
10863         updated.
10864         (darwin_xfer_partial): Likewise.
10865         * exec.c (section_table_xfer_memory_partial): Likewise.  All
10866         callers updated.
10867         (exec_xfer_partial): Likewise.
10868         * exec.h (section_table_xfer_memory_partial): Update
10869         declaration.
10870         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
10871         negative.
10872         (gnu_xfer_partial): Likewise.
10873         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10874         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10875         (ia64_hpux_xfer_solib_got): Likewise.
10876         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
10877         type of 'partial_len' to ULONGEST.
10878         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10879         * linux-nat.c (linux_xfer_siginfo ): Likewise.
10880         (linux_nat_xfer_partial): Likewise.
10881         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10882         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10883         * monitor.c (monitor_xfer_memory): Likewise.
10884         (monitor_xfer_partial): Likewise.
10885         * procfs.c (procfs_xfer_partial): Likewise.
10886         * record-btrace.c (record_btrace_xfer_partial): Likewise.
10887         * record-full.c (record_full_xfer_partial): Likewise.
10888         (record_full_core_xfer_partial): Likewise.
10889         * remote-sim.c (gdbsim_xfer_memory): Likewise.
10890         (gdbsim_xfer_partial): Likewise.
10891         * remote.c (remote_write_bytes_aux): Likewise.  All callers
10892         updated.
10893         (remote_write_bytes, remote_read_bytes): Likewise.  All
10894         callers updated.
10895         (remote_flash_erase): Likewise.  All callers updated.
10896         (remote_write_qxfer): Likewise.  All callers updated.
10897         (remote_read_qxfer): Likewise.  All callers updated.
10898         (remote_xfer_partial): Likewise.
10899         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10900         (rs6000_xfer_shared_libraries): Likewise.
10901         * sol-thread.c (sol_thread_xfer_partial): Likewise.
10902         (sol_thread_xfer_partial): Likewise.
10903         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10904         (sparc_xfer_partial): Likewise.
10905         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
10906         updated.
10907         (spu_xfer_partial): Likewise.
10908         * spu-multiarch.c (spu_xfer_partial): Likewise.
10909         * tracepoint.c (tfile_xfer_partial): Likewise.
10910         * windows-nat.c (windows_xfer_memory): Likewise.
10911         (windows_xfer_shared_libraries): Likewise.
10912         (windows_xfer_partial): Likewise.
10913         * valprint.c: Replace 'target_xfer_error' with
10914         'target_xfer_status' in comments.
10915
10916 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
10917
10918         Checked in by Joel Brobecker <brobecker@adacore.com>.
10919         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10920
10921 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
10922
10923         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10924         function parameters.
10925
10926 2014-02-10  Will Newton  <will.newton@linaro.org>
10927
10928         * elfread.c (elf_rel_plt_read): Look for a .got section if
10929         looking up .got.plt fails.
10930         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10931         on address passed to elf_gnu_ifunc_record_cache.
10932         (elf_gnu_ifunc_resolve_addr): Likewise.
10933         (elf_gnu_ifunc_resolver_return_stop): Likewise.
10934
10935 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
10936
10937         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10938         (X_RETTURN): New macro.
10939         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10940
10941         * sparc64-tdep.c (sparc64_init_abi): Hook
10942         sparc_in_function_epilogue_p.
10943
10944 2014-02-10  Gary Benson  <gbenson@redhat.com>
10945
10946         * symfile-debug.c (debug_qf_expand_symtabs_matching):
10947         Rename name_matcher to symbol_matcher.
10948
10949 2014-02-10  Gary Benson  <gbenson@redhat.com>
10950
10951         * symfile-debug.c (debug_qf_expand_symtabs_matching):
10952         Use expand_symtabs_file_matcher_ftype and
10953         expand_symtabs_symbol_matcher_ftype.
10954
10955 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
10956
10957         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10958         (struct ada_symbol_cache): New.
10959         (ada_free_symbol_cache): Forward declare.
10960         (struct ada_pspace_data): New.
10961         (ada_pspace_data_handle): New static global.
10962         (get_ada_pspace_data, ada_pspace_data_cleanup)
10963         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10964         (cache_space, cache): Delete, now folded inside struct
10965         ada_pspace_data.
10966         (ada_get_symbol_cache): New function.
10967         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10968         implementation.
10969         (_initialize_ada_language): Remove initialization of cache_space.
10970         Move call to observer_attach_inferior_exit up, grouping it
10971         with the other observer registrations inside this function.
10972         Rename command to be more general.  Add call to
10973         register_program_space_data_with_cleanup.
10974
10975 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
10976
10977         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10978         ada_new_objfile_observer.
10979         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10980         (_initialize_tasks): Update uses of ada_new_objfile_observer
10981         and ada_tasks_normal_stop_observer.
10982
10983 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
10984
10985         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10986         returned by the 'Length attribute to integer.
10987
10988 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
10989
10990         * ada-lang.c (_initialize_ada_language): Initialize
10991         cache_space obstack.
10992
10993 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
10994
10995         * ada-lang.c (HASH_SIZE): New macro.
10996         (struct cache_entry): New type.
10997         (cache_space, cache): New static globals.
10998         (ada_clear_symbol_cache, find_entry): New functions.
10999         (lookup_cached_symbol, cache_symbol): Implement.
11000         (ada_new_objfile_observer, ada_free_objfile_observer): New.
11001         (_initialize_ada_language): Attach ada_new_objfile_observer
11002         and ada_free_objfile_observer.
11003
11004 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11005
11006         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11007         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11008         struct block * parameter.
11009         (ada_lookup_symbol_list_worker): Constify local variable "block".
11010         Remove cast which is no longer necessary.
11011
11012 2014-02-10  Doug Evans  <xdje42@gmail.com>
11013
11014         Add Guile as an extension language.
11015         * NEWS: Mention Guile scripting.
11016         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11017         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11018         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11019         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11020         (CLIBS): Add GUILE_LIBS.
11021         (install-guile): New rule.
11022         (guile.o): New rule.
11023         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11024         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11025         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11026         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11027         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11028         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11029         (scm-type.o, scm-utils.o, scm-value.o): New rules.
11030         * configure.ac: New option --with-guile.
11031         * configure: Regenerate.
11032         * config.in: Regenerate.
11033         * auto-load.c: Remove #include "python/python.h".  Add #include
11034         "gdb/section-scripts.h".
11035         (source_section_scripts): Handle Guile scripts.
11036         (_initialize_auto_load): Add name of Guile objfile script to
11037         scripts-directory help text.
11038         * breakpoint.c (condition_command): Tweak comment to include Scheme.
11039         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11040         (struct breakpoint): New member scm_bp_object.
11041         * defs.h (enum command_control_type): New value guile_control.
11042         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
11043         "extension.h".
11044         (show_user): Update comment.
11045         (_initialize_cli_cmds): Update help text for "show user".  Update help
11046         text for max-user-call-depth.
11047         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
11048         "extension.h".
11049         (multi_line_command_p): Add guile_control.
11050         (print_command_lines): Handle guile_control.
11051         (execute_control_command, recurse_read_control_structure): Ditto.
11052         (process_next_line): Recognize "guile" commands.
11053         * disasm.c (gdb_disassemble_info): Make non-static.
11054         * disasm.h: #include "dis-asm.h".
11055         (struct gdbarch): Add forward decl.
11056         (gdb_disassemble_info): Declare.
11057         * extension.c: #include "guile/guile.h".
11058         (extension_languages): Add guile.
11059         (get_ext_lang_defn): Handle EXT_LANG_GDB.
11060         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11061         * gdbtypes.c (get_unsigned_type_max): New function.
11062         (get_signed_type_minmax): New function.
11063         * gdbtypes.h (get_unsigned_type_max): Declare.
11064         (get_signed_type_minmax): Declare.
11065         * guile/README: New file.
11066         * guile/guile-internal.h: New file.
11067         * guile/guile.c: New file.
11068         * guile/guile.h: New file.
11069         * guile/scm-arch.c: New file.
11070         * guile/scm-auto-load.c: New file.
11071         * guile/scm-block.c: New file.
11072         * guile/scm-breakpoint.c: New file.
11073         * guile/scm-disasm.c: New file.
11074         * guile/scm-exception.c: New file.
11075         * guile/scm-frame.c: New file.
11076         * guile/scm-gsmob.c: New file.
11077         * guile/scm-iterator.c: New file.
11078         * guile/scm-lazy-string.c: New file.
11079         * guile/scm-math.c: New file.
11080         * guile/scm-objfile.c: New file.
11081         * guile/scm-ports.c: New file.
11082         * guile/scm-pretty-print.c: New file.
11083         * guile/scm-safe-call.c: New file.
11084         * guile/scm-string.c: New file.
11085         * guile/scm-symbol.c: New file.
11086         * guile/scm-symtab.c: New file.
11087         * guile/scm-type.c: New file.
11088         * guile/scm-utils.c: New file.
11089         * guile/scm-value.c: New file.
11090         * guile/lib/gdb.scm: New file.
11091         * guile/lib/gdb/boot.scm: New file.
11092         * guile/lib/gdb/experimental.scm: New file.
11093         * guile/lib/gdb/init.scm: New file.
11094         * guile/lib/gdb/iterator.scm: New file.
11095         * guile/lib/gdb/printing.scm: New file.
11096         * guile/lib/gdb/types.scm: New file.
11097         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11098         (VPATH): Add $(GUILE_SRCDIR).
11099         (GUILE_DIR): New variable.
11100         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11101         (all): Add stamp-guile dependency.
11102         (stamp-guile): New rule.
11103         (clean-guile, install-guile, uninstall-guile): New rules.
11104         (install-only): Add install-guile dependency.
11105         (uninstall): Add uninstall-guile dependency.
11106         (clean): Add clean-guile dependency.
11107
11108 2014-02-09  Doug Evans  <xdje42@gmail.com>
11109
11110         Revert this patch (which I approved, mea culpa).
11111
11112         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
11113
11114         * Makefile.in (all-lib): Remove.
11115         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11116
11117 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
11118
11119         Fix Python stack corruption.
11120         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11121         gdb_py_longest.
11122
11123 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
11124
11125         * Makefile.in (all-lib): Remove.
11126         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11127
11128 2014-02-07  Doug Evans  <dje@google.com>
11129
11130         * extension-priv.h (extension_language_script_ops): Add comment.
11131         (extension_language_ops): Add comment.
11132         (active_ext_lang_state): Fix typo in comment.
11133
11134 2014-02-07  Pedro Alves  <palves@redhat.com>
11135
11136         PR breakpoints/16292
11137         * infrun.c (handle_signal_stop) <signal arrives while stepping
11138         over a breakpoint>: Switch back to the stepping thread.
11139
11140 2014-02-07  Yao Qi  <yao@codesourcery.com>
11141
11142         * target.c (target_xfer_partial): Return zero if LEN is zero.
11143
11144 2014-02-07  Yao Qi  <yao@codesourcery.com>
11145
11146         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11147         (ld_so_xfer_auxv): Likewise.
11148         * bfd-target.c (target_bfd_xfer_partial): Likewise.
11149         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11150         * corelow.c (core_xfer_partial): Likewise.
11151         * ctf.c (ctf_xfer_partial): Likewise.
11152         * darwin-nat.c (darwin_read_dyld_info): Likewise.
11153         (darwin_xfer_partial): Likewise.
11154         * exec.c (exec_xfer_partial): Likewise.
11155         * gnu-nat.c (gnu_xfer_partial): Likewise.
11156         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11157         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11158         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11159         * linux-nat.c (linux_xfer_siginfo): Likewise.
11160         (linux_proc_xfer_spu): Likewise.
11161         * procfs.c (procfs_xfer_partial): Likewise.
11162         * record-full.c (record_full_xfer_partial): Likewise.
11163         (record_full_core_xfer_partial): Likewise.
11164         * remote-sim.c (gdbsim_xfer_partial): Likewise.
11165         * remote.c (remote_write_qxfer): Likewise.
11166         (remote_write_qxfer, remote_read_qxfer): Likewise.
11167         (remote_xfer_partial): Likewise.
11168         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11169         (rs6000_xfer_shared_libraries): Likewise.
11170         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11171         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11172         (spu_xfer_partial): Likewise.
11173         * target.c (memory_xfer_partial_1): Likewise.
11174         * tracepoint.c (tfile_xfer_partial): Likewise.
11175         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11176         (windows_xfer_partial): Likewise.
11177
11178 2014-02-07  Yao Qi  <yao@codesourcery.com>
11179
11180         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
11181         comments.
11182         (core_xfer_shared_libraries_aix): Likewise.
11183         * gdbarch.c, gdbarch.h: Regenerated.
11184         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11185         ULONGEST.  Change 'len_avail' type to ULONGEST.
11186         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11187         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11188         declaration.
11189         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11190
11191 2014-02-07  Yao Qi  <yao@codesourcery.com>
11192
11193         * corefile.c (memory_error): Get 'exception' from ERR and pass
11194         'exception' to throw_error.
11195
11196 2014-02-06  Doug Evans  <xdje42@gmail.com>
11197
11198         * configure.ac (libpython checking): Remove all but python.o from
11199         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
11200         * configure: Regenerate.
11201
11202         * Makefile.in (SFILES): Add extension.c.
11203         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11204         (COMMON_OBS): Add extension.o.
11205         * extension.h: New file.
11206         * extension-priv.h: New file.
11207         * extension.c: New file.
11208
11209         * python/python-internal.h: #include "extension.h".
11210         (gdbpy_auto_load_enabled): Declare.
11211         (gdbpy_apply_val_pretty_printer): Declare.
11212         (gdbpy_apply_frame_filter): Declare.
11213         (gdbpy_preserve_values): Declare.
11214         (gdbpy_breakpoint_cond_says_stop): Declare.
11215         (gdbpy_breakpoint_has_cond): Declare.
11216         (void source_python_script_for_objfile): Delete.
11217         * python/python.c: #include "extension-priv.h".
11218         Delete inclusion of "observer.h".
11219         (extension_language_python): Moved here and renamed from
11220         script_language_python in py-auto-load.c.
11221         Redefined to be of type extension_language_defn.
11222         (python_extension_script_ops): New global.
11223         (python_extension_ops): New global.
11224         (struct python_env): New member previous_active.
11225         (restore_python_env): Call restore_active_ext_lang.
11226         (ensure_python_env): Call set_active_ext_lang.
11227         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11228         New arg extlang.
11229         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11230         New arg extlang.
11231         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11232         New arg extlang.
11233         (gdbpy_eval_from_control_command): Renamed from
11234         eval_python_from_control_command, made static.  New arg extlang.
11235         (gdbpy_source_script) Renamed from source_python_script, made static.
11236         New arg extlang.
11237         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
11238         result to int.  New arg extlang.
11239         (gdbpy_source_objfile_script): Renamed from
11240         source_python_script_for_objfile, made static.  New arg extlang.
11241         (gdbpy_start_type_printers): Renamed from start_type_printers, made
11242         static.  New args extlang, extlang_printers.  Change result type to
11243         "void".
11244         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11245         static.  New arg extlang.  Rename arg printers to extlang_printers
11246         and change type to ext_lang_type_printers *.
11247         (gdbpy_free_type_printers): Renamed from free_type_printers, made
11248         static.  Replace argument arg with extlang, extlang_printers.
11249         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11250         (!HAVE_PYTHON, source_python_script): Delete.
11251         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11252         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11253         (!HAVE_PYTHON, start_type_printers): Delete.
11254         (!HAVE_PYTHON, apply_type_printers): Delete.
11255         (!HAVE_PYTHON, free_type_printers): Delete.
11256         (_initialize_python): Delete call to observer_attach_before_prompt.
11257         (finalize_python): Set/restore active extension language.
11258         (gdbpy_finish_initialization) Renamed from
11259         finish_python_initialization, made static.  New arg extlang.
11260         (gdbpy_initialized): New function.
11261         * python/python.h: #include "extension.h".  Delete #include
11262         "value.h", "mi/mi-cmds.h".
11263         (extension_language_python): Declare.
11264         (GDBPY_AUTO_FILE_NAME): Delete.
11265         (enum py_bt_status): Moved to extension.h and renamed to
11266         ext_lang_bt_status.
11267         (enum frame_filter_flags): Moved to extension.h.
11268         (enum py_frame_args): Moved to extension.h and renamed to
11269         ext_lang_frame_args.
11270         (finish_python_initialization): Delete.
11271         (eval_python_from_control_command): Delete.
11272         (source_python_script): Delete.
11273         (apply_val_pretty_printer): Delete.
11274         (apply_frame_filter): Delete.
11275         (preserve_python_values): Delete.
11276         (gdbpy_script_language_defn): Delete.
11277         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11278         (start_type_printers, apply_type_printers, free_type_printers): Delete.
11279
11280         * auto-load.c: #include "extension.h".
11281         (GDB_AUTO_FILE_NAME): Delete.
11282         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
11283         (script_language_gdb): Delete, moved to extension.c and renamed to
11284         extension_language_gdb.
11285         (source_gdb_script_for_objfile): Delete.
11286         (auto_load_pspace_info): New member unsupported_script_warning_printed.
11287         (loaded_script): Change type of language member to
11288         struct extension_language_defn *.
11289         (init_loaded_scripts_info): Initialize
11290         unsupported_script_warning_printed.
11291         (maybe_add_script): Make static.  Change type of language arg to
11292         struct extension_language_defn *.
11293         (clear_section_scripts): Reset unsupported_script_warning_printed.
11294         (auto_load_objfile_script_1): Rewrite to use extension language API.
11295         (auto_load_objfile_script): Make public.  Remove support-compiled-in
11296         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11297         (source_section_scripts): Rewrite to use extension language API.
11298         (load_auto_scripts_for_objfile): Rewrite to use
11299         auto_load_scripts_for_objfile.
11300         (collect_matching_scripts_data): Change type of language member to
11301         struct extension_language_defn *.
11302         (auto_load_info_scripts): Change type of language arg to
11303         struct extension_language_defn *.
11304         (unsupported_script_warning_print): New function.
11305         (script_not_found_warning_print): Make static.
11306         (_initialize_auto_load): Rewrite construction of scripts-directory
11307         help.
11308         * auto-load.h (struct objfile): Add forward decl.
11309         (struct script_language): Delete.
11310         (struct auto_load_pspace_info): Add forward decl.
11311         (struct extension_language_defn): Add forward decl.
11312         (maybe_add_script): Delete.
11313         (auto_load_objfile_script): Declare.
11314         (script_not_found_warning_print): Delete.
11315         (auto_load_info_scripts): Update prototype.
11316         (auto_load_gdb_scripts_enabled): Declare.
11317         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11318         auto_load_python_scripts_enabled and made public.
11319         (script_language_python): Delete, moved to python.c.
11320         (gdbpy_script_language_defn): Delete.
11321         (info_auto_load_python_scripts): Update to use
11322         extension_language_python.
11323
11324         * breakpoint.c (condition_command): Replace call to
11325         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11326         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11327         with call to breakpoint_ext_lang_cond_says_stop.
11328         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11329         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
11330         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11331         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11332         New arg slang.
11333         (local_setattro): Print name of extension language with existing
11334         stop condition.
11335
11336         * valprint.c (val_print, value_print): Update to call
11337         apply_ext_lang_val_pretty_printer.
11338         * cp-valprint.c (cp_print_value): Update call to
11339         apply_ext_lang_val_pretty_printer.
11340         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11341         (gdbpy_apply_val_pretty_printer): Renamed from
11342         apply_val_pretty_printer.  New arg extlang.
11343         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11344
11345         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11346         extension language API.
11347         * cli/cli-script.c (execute_control_command): Update to call
11348         eval_ext_lang_from_control_command.
11349
11350         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11351         enum ext_lang_bt_status values.  Update call to
11352         apply_ext_lang_frame_filter.
11353         (mi_cmd_stack_list_locals): Ditto.
11354         (mi_cmd_stack_list_args): Ditto.
11355         (mi_cmd_stack_list_variables): Ditto.
11356         * mi/mi-main.c: Delete #include "python/python-internal.h".
11357         Add #include "extension.h".
11358         (mi_cmd_list_features): Replace reference to python internal variable
11359         gdb_python_initialized with call to ext_lang_initialized_p.
11360
11361         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11362         Update to use enum ext_lang_frame_args.  Update to call
11363         apply_ext_lang_frame_filter.
11364         * python/py-framefilter.c (extract_sym): Update to use enum
11365         ext_lang_bt_status.
11366         (extract_value, py_print_type, py_print_value): Ditto.
11367         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11368         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11369         (py_print_frame): Ditto.
11370         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11371         New arg extlang.  Update to use enum ext_lang_bt_status.
11372
11373         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11374         finish_python_initialization.  Replace with call to
11375         finish_ext_lang_initialization.
11376
11377         * typeprint.c (do_free_global_table): Update to call
11378         free_ext_lang_type_printers.
11379         (create_global_typedef_table): Update to call
11380         start_ext_lang_type_printers.
11381         (find_global_typedef): Update to call apply_ext_lang_type_printers.
11382         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11383         (type_print_options): Change type of global_printers from "void *"
11384         to "struct ext_lang_type_printers *".
11385
11386         * value.c (preserve_values): Update to call preserve_ext_lang_values.
11387         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11388         (gdbpy_preserve_values): Renamed from preserve_python_values.
11389         New arg extlang.
11390         (!HAVE_PYTHON, preserve_python_values): Delete.
11391
11392         * utils.c (quit_flag): Delete, moved to extension.c.
11393         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11394         extension.c.
11395
11396         * eval.c: Delete #include "python/python.h".
11397         * main.c: Delete #include "python/python.h".
11398
11399         * defs.h: Update comment.
11400
11401 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
11402
11403         GDB 7.7 released.
11404
11405 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
11406
11407         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11408         defined.
11409
11410 2014-02-05  Yao Qi  <yao@codesourcery.com>
11411
11412         * remote.c (remote_pass_signals): Remove local 'buf' and use
11413         rs->buf.
11414         (remote_program_signals): Likewise.
11415
11416 2014-02-05  Yao Qi  <yao@codesourcery.com>
11417
11418         * ctf.c: Include "inferior.h" and "gdbthread.h".
11419         (CTF_PID): A new macro.
11420         (ctf_open): Call inferior_appeared and add_thread_silent.
11421         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11422         (ctf_thread_alive): New function.
11423         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11424
11425 2014-02-05  Yao Qi  <yao@codesourcery.com>
11426
11427         Revert this patch:
11428
11429         2013-05-24  Yao Qi  <yao@codesourcery.com>
11430
11431         * tracepoint.c (TFILE_PID): Remove.
11432         (tfile_open): Don't add thread and inferior.
11433         (tfile_close): Don't set 'inferior_ptid'.  Don't call
11434         exit_inferior_silent.
11435         (tfile_thread_alive): Remove.
11436         (init_tfile_ops): Don't set field 'to_thread_alive' of
11437         tfile_ops.
11438
11439 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
11440
11441         * remote.c (remote_start_remote): Call remote_check_symbols even
11442         if only symbol-file (not file) has been given.
11443
11444 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11445
11446         * gdbarch.sh (skip_entrypoint): New callback.
11447         * gdbarch.c, gdbarch.h: Regenerate.
11448         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11449         * infrun.c (fill_in_stop_func): Likewise.
11450         * ppc-linux-tdep.c: Include "elf/ppc64.h".
11451         (ppc_elfv2_elf_make_msymbol_special): New function.
11452         (ppc_elfv2_skip_entrypoint): Likewise.
11453         (ppc_linux_init_abi): Install them for ELFv2.
11454
11455 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11456
11457         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11458         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11459         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11460         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
11461         structures returned in GPRs.
11462
11463 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11464
11465         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11466         offset to the stack parameter list for the ELFv2 ABI.
11467
11468 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11469
11470         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11471         set_gdbarch_convert_from_func_ptr_addr and
11472         set_gdbarch_elf_make_msymbol_special for ELFv1.
11473         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11474         function descriptors on ELFv1.
11475         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
11476         set up r12 at function entry.
11477
11478 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11479
11480         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11481         (struct gdbarch_tdep): New member elf_abi.
11482
11483         * rs6000-tdep.c: Include "elf/ppc64.h".
11484         (rs6000_gdbarch_init): Detect ELF ABI version.
11485
11486 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11487
11488         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11489         within a register pair holding a DFP 128-bit value on little-endian.
11490         (ppc64_sysv_abi_return_value_base): Likewise.
11491         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11492         (dfp_pseudo_register_write): Likewise.
11493
11494 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11495
11496         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11497         offset on little-endian when passing _Decimal32.
11498         (ppc64_sysv_abi_return_value_base): Likewise for return values.
11499
11500 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11501
11502         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11503         of the overlapped FP register within the VSX register on little-
11504         endian platforms.
11505         (efpr_pseudo_register_write): Likewise.
11506
11507 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11508
11509         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11510         offset on little-endian when passing small structures.
11511
11512 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11513
11514         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11515         (struct ppc64_sysv_argpos): New data structure.
11516         (ppc64_sysv_abi_push_float): Remove.
11517         (ppc64_sysv_abi_push_val): New function.
11518         (ppc64_sysv_abi_push_integer): Likewise.
11519         (ppc64_sysv_abi_push_freg): Likewise.
11520         (ppc64_sysv_abi_push_vreg): Likewise.
11521         (ppc64_sysv_abi_push_param): Likewise.
11522         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11523         (ppc64_sysv_abi_return_value_base): New function.
11524         (ppc64_sysv_abi_return_value): Refactor to use it.
11525
11526 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11527
11528         * NEWS: Document new target powerpc64le-*-linux*.
11529
11530 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
11531
11532         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11533         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11534         core dumps.
11535         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11536         register set used in ELF core dumps.  Add floating-point register set.
11537
11538 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
11539
11540         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11541         dwarf2_to_gdb[] table using symbolic constants.  Adjust
11542         penultimate entry from number representing the PC register
11543         to symbolic constant representing the MDR register.  Add
11544         constant for the PC register to the end of the table.
11545
11546 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
11547
11548         * bsd-kvm.c: Include <sys/param.h>
11549
11550 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
11551
11552         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11553
11554 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
11555
11556         * ada-lang.h (clear_ada_sym_cache): Delete.
11557
11558 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
11559
11560         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11561
11562 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
11563
11564         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11565           the sigreturn register save area only if the syscall is
11566           sigreturn.
11567
11568 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
11569
11570         * valops.c (value_slice): Minor reformatting.
11571
11572 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
11573
11574         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11575
11576 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
11577
11578         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11579         New static globals.
11580         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11581         (ada_ignore_descriptive_types_p): New static global.
11582         (find_parallel_type_by_descriptive_type): Return immediately
11583         if ada_ignore_descriptive_types_p is set.
11584         (_initialize_ada_language): Register new commands "maintenance
11585         set ada", "maintenance show ada", "maintenance set ada
11586         ignore-descriptive-types" and "maintenance show ada
11587         ignore-descriptive-types".
11588         * NEWS: Add entry for new "maint ada set/show
11589         ignore-descriptive-types" commands.
11590
11591 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
11592
11593         * record-btrace.c (record_btrace_close): Call btrace_teardown
11594         for all threads.
11595
11596 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11597
11598         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11599         "ui-out.h".
11600
11601 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11602
11603         * ada-typeprint (type_is_full_subrange_of_target_type):
11604         New function.
11605         (print_range): Add parameter bounds_prefered_p.  If not set,
11606         try printing range types using the name of their base type.
11607         (print_range_type): Add parameter bounds_prefered_p.
11608         Use it in call to print_range.
11609         (print_array_type, ada_print_type): Update calls to print_range
11610         and print_range_type.
11611
11612 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11613
11614         * ada-typeprint.c (print_array_type, print_choices, print_range)
11615         (print_range_bound, print_dynamic_range_bound, print_range_type):
11616         Remove declaration.
11617
11618 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11619
11620         * ada-typeprint.c (print_range): Add missing empty line
11621         after local declaration.
11622
11623 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11624
11625         * ada-valprint.c (print_optional_low_bound): Get index_type's
11626         target type for as long as it is a TYPE_CODE_RANGE.
11627
11628 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11629
11630         * procfs.c (procfs_make_note_section): Remove assertion and
11631         associated comment.
11632
11633 2014-01-24  Yao Qi  <yao@codesourcery.com>
11634
11635         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11636         * corelow.c (get_core_siginfo): Likewise.
11637
11638 2014-01-24  Yao Qi  <yao@codesourcery.com>
11639
11640         * remote.c (remote_write_bytes_aux): Change type of 'len' to
11641         ULONGEST.  Don't check 'len' is negative.
11642         (remote_write_bytes):  Change type of 'len' to ULONGEST.
11643
11644 2014-01-23  Tom Tromey  <tromey@redhat.com>
11645
11646         PR python/16485:
11647         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11648         Handle exception from frame.block.
11649         (FrameVars.fetch_frame_locals): Likewise.
11650
11651 2014-01-23  Tom Tromey  <tromey@redhat.com>
11652
11653         PR python/16487:
11654         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11655         on a NULL pointer.  Move "goto error" to correct place.
11656
11657 2014-01-23  Tom Tromey  <tromey@redhat.com>
11658
11659         PR python/16491:
11660         * python/py-framefilter.c (apply_frame_filter): Call
11661         ensure_python_env after computing gdbarch.
11662
11663 2014-01-23  Yao Qi  <yao@codesourcery.com>
11664
11665         * target.c (raw_memory_xfer_partial): Change argument type
11666         from void * to gdb_byte *.
11667         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11668
11669 2014-01-22  Doug Evans  <dje@google.com>
11670
11671         New gdbserver option --debug-format=timestamp.
11672         * NEWS: Mention it.
11673
11674 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
11675
11676         * syscalls/s390x-linux.xml: New file.
11677         * syscalls/s390-linux.xml: New file.
11678         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11679         (XML_SYSCALL_FILENAME_S390X): Likewise.
11680         (op_svc): New enum value for SVC opcode.
11681         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11682         (s390_linux_get_syscall_number): New function.
11683         (s390_gdbarch_init): Register '*get_syscall_number' and the
11684         syscall xml file name.
11685         * data-directory/Makefile.in (SYSCALLS_FILES): Add
11686         "s390-linux.xml" and "s390x-linux.xml".
11687         * NEWS: Announce new feature.
11688
11689 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
11690
11691         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11692
11693 2014-01-22  Pedro Alves  <palves@redhat.com>
11694
11695         * xtensa-config.c: Include defs.h.
11696
11697 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
11698
11699         * common/common-utils.h: Add "ARI:" comment beside __func__
11700         reference.
11701
11702 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
11703
11704         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11705         documentation a bit.
11706
11707 2014-01-21  Roland McGrath  <mcgrathr@google.com>
11708
11709         * configure.ac: Call AM_PROG_INSTALL_STRIP.
11710         * configure: Regenerate.
11711         * aclocal.m4: Regenerate.
11712         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11713         New substituted variables.
11714         (install-strip): New target.
11715         (INSTALL_SCRIPT): New substituted variable.
11716         (FLAGS_TO_PASS): Add it.
11717         (install-only): Use $(INSTALL_SCRIPT) rather than
11718         $(INSTALL_PROGRAM) for gcore.
11719
11720 2014-01-20  Tom Tromey  <tromey@redhat.com>
11721
11722         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11723         together.
11724
11725 2014-01-20  Tom Tromey  <tromey@redhat.com>
11726
11727         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11728         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11729         (deprecated_cmd_warning, complete_on_cmdlist): Update.
11730         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11731         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11732         (struct cmd_list_element) <flags>: Remove.
11733         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11734         doc_allocated>: New fields.
11735         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11736         bitfields.
11737         * maint.c (maintenance_do_deprecate): Update.
11738         * top.c (execute_command): Update.
11739
11740 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
11741
11742         * xtensa-linux-nat.c: Include asm/ptrace.h.
11743
11744 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
11745
11746         * Makefile.in (SFILES): Add d-support.c.
11747         (COMMON_OBS): Add d-support.o.
11748         * d-lang.h (d_parse_symbol): Add comment, now defined in
11749         d-support.c.
11750         * d-lang.c (parse_call_convention)
11751         (parse_attributes, parse_function_types)
11752         (parse_function_args, parse_type, parse_identifier)
11753         (call_convention_p, d_parse_symbol): Move functions to ...
11754         * d-support.c: ... New file.
11755
11756 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
11757
11758         * d-lang.h (d_parse_symbol): Add declaration.
11759         * d-lang.c (extract_identifiers)
11760         (extract_type_info): Remove functions.
11761         (parse_call_convention, parse_attributes)
11762         (parse_function_types, parse_function_args)
11763         (parse_type, parse_identifier, call_convention_p)
11764         (d_parse_symbol): New functions.
11765         (d_demangle): Use d_parse_symbol to demangle D symbols.
11766
11767 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
11768
11769         * d-lang.h (struct builtin_d_type): New data type.
11770         (builtin_d_type): Add declaration.
11771         * d-lang.c (d_language_arch_info, build_d_types)
11772         (builtin_d_type): New functions.
11773         (enum d_primitive_types): New data type.
11774         (d_language_defn): Change c_language_arch_info to
11775         d_language_arch_info.
11776         (d_type_data): New static variable.
11777         (_initialize_d_language): Initialize d_type_data.
11778
11779 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
11780
11781         * d-lang.h (d_main_name): Add declaration.
11782         * d-lang.c (d_main_name): New function.
11783         * symtab.c (find_main_name): Add call to d_main_name.
11784
11785 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
11786
11787         * d-lang.c (d_language_defn): Change macro_expansion_c to
11788         macro_expansion_no.
11789
11790 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
11791
11792         * MAINTAINERS: Add myself as a write-after-approval maintainer.
11793
11794 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
11795
11796         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11797         gdb_exception" declaration.
11798         * remote.c (getpkt_or_notif_sane): Likewise.
11799
11800 2014-01-17  Doug Evans  <dje@google.com>
11801
11802         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11803         function, contents of dirnames_to_char_ptr_vec_append moved here.
11804         (delim_string_to_char_ptr_vec): New function.
11805         (dirnames_to_char_ptr_vec_append): Rewrite.
11806         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11807
11808 2014-01-17  Doug Evans  <dje@google.com>
11809
11810         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11811         and moved here ...
11812         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11813         #include "common-utils.h".
11814         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11815         * common/vec.h (VEC_ASSERT_PASS): Update.
11816         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11817         (MACH_CHECK_ERROR): Update.
11818
11819 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
11820
11821         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11822         comments.
11823         * gdbarch.h: Regenerate.
11824
11825 2014-01-16  Tom Tromey  <tromey@redhat.com>
11826
11827         * value.c (struct value) <regnum>: Move earlier.
11828
11829 2014-01-16  Tom Tromey  <tromey@redhat.com>
11830
11831         * remote.c (extended_remote_create_inferior): Rename from
11832         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
11833         old implementation.
11834
11835 2014-01-16  Pedro Alves  <palves@redhat.com>
11836
11837         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11838         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11839         the backchain.
11840
11841 2014-01-16  Doug Evans  <dje@google.com>
11842
11843         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11844
11845 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11846
11847         * btrace.h (btrace_thread_flag): New.
11848         (struct btrace_thread_info) <flags>: New.
11849         * record-btrace.c (record_btrace_resume_thread)
11850         (record_btrace_find_thread_to_move, btrace_step_no_history)
11851         (btrace_step_stopped, record_btrace_start_replaying)
11852         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11853         (record_btrace_find_resume_thread): New.
11854         (record_btrace_resume, record_btrace_wait): Extend.
11855         (record_btrace_can_execute_reverse): New.
11856         (record_btrace_open): Fail in non-stop mode.
11857         (record_btrace_set_replay): Split into this, ...
11858         (record_btrace_stop_replaying): ... this, ...
11859         (record_btrace_clear_histories): ... and this.
11860         (init_record_btrace_ops): Init to_can_execute_reverse.
11861         * NEWS: Announce it.
11862
11863 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11864
11865         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11866         (forward_target_decr_pc_after_break)
11867         (target_decr_pc_after_break): New.
11868         * target.c (forward_target_decr_pc_after_break)
11869         (target_decr_pc_after_break): New.
11870         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11871         instead of gdbarch_decr_pc_after_break.
11872         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11873         instead of gdbarch_decr_pc_after_break.
11874         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11875         instead of gdbarch_decr_pc_after_break.
11876         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11877         instead of gdbarch_decr_pc_after_break.
11878         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11879         instead of gdbarch_decr_pc_after_break.
11880         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11881         instead of gdbarch_decr_pc_after_break.
11882
11883 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11884
11885         * btrace.c: Include regcache.h.
11886         (btrace_add_pc): New.
11887         (btrace_enable): Call btrace_add_pc.
11888         (btrace_is_empty): New.
11889         * btrace.h (btrace_is_empty): New.
11890         * record-btrace.c (require_btrace, record_btrace_info): Call
11891         btrace_is_empty.
11892
11893 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11894
11895         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11896         Support delta reads.
11897         (linux_disable_btrace): Change return type.
11898         * common/linux-btrace.h (linux_read_btrace): Change parameters
11899         and return type to allow error reporting.  Update users.
11900         (linux_disable_btrace): Change return type.  Update users.
11901         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11902         New.
11903         (btrace_error): New.
11904         (btrace_block) <begin>: Comment on BEGIN == 0.
11905         * btrace.c (btrace_compute_ftrace): Start from the end of
11906         the current trace.
11907         (btrace_stitch_trace, btrace_clear_history): New.
11908         (btrace_fetch): Read delta trace, return if replaying.
11909         (btrace_clear): Move clear history code to btrace_clear_history.
11910         (parse_xml_btrace): Throw an error if parsing failed.
11911         * target.h (struct target_ops) <to_read_btrace>: Change parameters
11912         and return type to allow error reporting.
11913         (target_read_btrace): Change parameters and return type to allow
11914         error reporting.
11915         * target.c (target_read_btrace): Update.
11916         * remote.c (remote_read_btrace): Support delta reads.  Pass
11917         errors on.
11918         * NEWS: Announce it.
11919
11920 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11921
11922         * record.h (record_btrace_frame_unwind)
11923         (record_btrace_tailcall_frame_unwind): New declarations.
11924         * dwarf2-frame: Include record.h
11925         (dwarf2_frame_cfa): Throw an error for btrace frames.
11926         * record-btrace.c: Include hashtab.h.
11927         (btrace_get_bfun_name): New.
11928         (btrace_call_history): Call btrace_get_bfun_name.
11929         (struct btrace_frame_cache): New.
11930         (bfcache): New.
11931         (bfcache_hash, bfcache_eq, bfcache_new): New.
11932         (btrace_get_frame_function): New.
11933         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11934         (record_btrace_frame_this_id): Compute own id.
11935         (record_btrace_frame_prev_register): Provide PC, throw_error
11936         for all other registers.
11937         (record_btrace_frame_sniffer): Detect btrace frames.
11938         (record_btrace_tailcall_frame_sniffer): New.
11939         (record_btrace_frame_dealloc_cache): New.
11940         (record_btrace_frame_unwind): Add new functions.
11941         (record_btrace_tailcall_frame_unwind): New.
11942         (_initialize_record_btrace): Allocate cache.
11943         * btrace.c (btrace_clear): Call reinit_frame_cache.
11944         * NEWS: Announce it.
11945
11946 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11947
11948         * record-btrace.c (record_btrace_set_replay)
11949         (record_btrace_goto_begin, record_btrace_goto_end)
11950         (record_btrace_goto): New.
11951         (init_record_btrace_ops): Initialize them.
11952         * NEWS: Announce it.
11953
11954 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11955
11956         * record-btrace.c (record_btrace_find_new_threads)
11957         (record_btrace_thread_alive): New.
11958         (init_record_btrace_ops): Initialize to_find_new_threads and
11959         to_thread_alive.
11960
11961 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11962
11963         * record-btrace.c (record_btrace_resume): New.
11964         (record_btrace_wait): New.
11965         (init_record_btrace_ops): Initialize to_wait and to_resume.
11966
11967 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11968
11969         * record-btrace.c (record_btrace_xfer_partial)
11970         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11971         (record_btrace_allow_memory_access): New.
11972         (init_record_btrace_ops): Initialize new methods.
11973         * target.c (raw_memory_xfer_partial): Bail out if target reports
11974         that this memory is not available.
11975
11976 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11977
11978         * target.h (target_ops) <to_insert_breakpoint>
11979         <to_remove_breakpoint>: Add target_ops parameter.
11980         (forward_target_insert_breakpoint): New.
11981         (forward_target_remove_breakpoint): New.
11982         (memory_remove_breakpoint, memory_insert_breakpoint):
11983         Add target_ops parameter.
11984         * target.c (target_insert_breakpoint): Split into this and ...
11985         (forward_target_insert_breakpoint): ... this.
11986         (target_remove_breakpoint): Split into this and ...
11987         (forward_target_remove_breakpoint): ... this.
11988         (debug_to_insert_breakpoint): Add target_ops parameter.
11989         Call forward_target_insert_breakpoint.
11990         (debug_to_remove_breakpoint): Add target_ops parameter.
11991         Call forward_target_remove_breakpoint.
11992         (update_current_target): Do not inherit or default to_insert_breakpoint
11993         and to_remove_breakpoint.
11994         * corelow.c (ignore): Add target_ops parameter.
11995         * exec.c (ignore): Add target_ops parameter.
11996         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11997         Add target_ops parameter.
11998         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11999         Add target_ops parameter.
12000         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12001         Add target_ops parameter.
12002         * record-full.c (record_full_beneath_to_insert_breakpoint)
12003         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12004         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12005         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12006         (record_full_core_remove_breakpoint): Add target_ops parameter.
12007         Update users.
12008         (record_full_beneath_to_insert_breakpoint_ops)
12009         (record_full_beneath_to_remove_breakpoint_ops)
12010         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12011         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12012         tmp_to_remove_breakpoint_ops,
12013         record_full_beneath_to_insert_breakpoint_ops, and
12014         record_full_beneath_to_remove_breakpoint_ops.
12015         * remote-m32r-sdi.c (m32r_insert_breakpoint)
12016         (m32r_remove_breakpoint): Add target_ops parameter.
12017         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12018         Add target_ops parameter.
12019         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12020         Add target_ops parameter.
12021
12022 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12023             Markus Metzger  <markus.t.metzger@intel.com>
12024
12025         * record-btrace.c: Include frame-unwind.h.
12026         (record_btrace_frame_unwind_stop_reason)
12027         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12028         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12029         New.
12030         (init_record_btrace_ops): Install it.
12031
12032 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12033
12034         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12035         get_prev_frame_1.
12036
12037 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12038
12039         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12040         earlier.
12041
12042 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12043
12044         * frame-unwind.c: Include target.h.
12045         (frame_unwind_try_unwinder): New function with code from ...
12046         (frame_unwind_find_by_frame): ... here.  New variable
12047         unwinder_from_target, call also target_get_unwinder)
12048         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12049         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12050         * target.h (struct target_ops): New fields to_get_unwinder and
12051         to_get_tailcall_unwinder.
12052         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12053
12054 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12055
12056         * record-btrace.c (record_btrace_fetch_registers)
12057         (record_btrace_store_registers)
12058         (record_btrace_to_prepare_to_store): New.
12059         (init_record_btrace_ops): Add the above.
12060
12061 2014-01-16  Tom Tromey  <tromey@redhat.com>
12062
12063         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12064         * target.h (struct target_ops) <to_prepare_to_store>: Add
12065         argument.
12066         (target_prepare_to_store): Add argument.
12067         * target.c (debug_to_prepare_to_store): Add argument.
12068         (update_current_target): Update.
12069         * remote.c (remote_prepare_to_store): Add 'self' argument.
12070         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12071         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12072         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12073         * record-full.c (record_full_core_prepare_to_store): Add 'self'
12074         argument.
12075         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12076         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12077         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12078         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12079         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12080
12081 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12082
12083         * btrace.h (replay) <replay>: New.
12084         (btrace_is_replaying): New.
12085         * btrace.c (btrace_clear): Free replay iterator.
12086         (btrace_is_replaying): New.
12087         * record-btrace.c (record_btrace_is_replaying): New.
12088         (record_btrace_info): Print insn number if replaying.
12089         (record_btrace_insn_history): Start at replay position.
12090         (record_btrace_call_history): Start at replay position.
12091         (init_record_btrace_ops): Init to_record_is_replaying.
12092
12093 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12094
12095         * record-btrace.c (record_btrace_insn_history_range): Include
12096         end.
12097         (record_btrace_insn_history_from): Adjust range.
12098         (record_btrace_call_history_range): Include
12099         end.
12100         (record_btrace_call_history_from): Adjust range.
12101         * NEWS: Announce changes.
12102
12103 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12104
12105         * record.h (enum record_print_flag)
12106         <record_print_indent_calls>: New.
12107         * record.c (get_call_history_modifiers): Recognize /c modifier.
12108         (_initialize_record): Document /c modifier.
12109         * record-btrace.c (btrace_call_history): Add btinfo parameter.
12110         Reorder fields.  Optionally indent the function name.  Update
12111         all users.
12112         * NEWS: Announce changes.
12113
12114 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12115
12116         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12117
12118 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12119
12120         * btrace.c (ftrace_new_function): Start counting at one.
12121         * record-btrace.c (record_btrace_info): Adjust number of calls
12122         and insns.
12123         * NEWS: Announce it.
12124
12125 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12126
12127         * record-btrace.c (btrace_call_history_insn_range): Print
12128         insn range as [begin, end].
12129
12130 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12131
12132         * btrace.h (struct btrace_func_link): New.
12133         (enum btrace_function_flag): New.
12134         (struct btrace_inst): Rename to ...
12135         (struct btrace_insn): ...this. Update all users.
12136         (struct btrace_func) <ibegin, iend>: Remove.
12137         (struct btrace_func_link): New.
12138         (struct btrace_func): Rename to ...
12139         (struct btrace_function): ...this. Update all users.
12140         (struct btrace_function) <segment, flow, up, insn, insn_offset)
12141         (number, level, flags>: New.
12142         (struct btrace_insn_iterator): Rename to ...
12143         (struct btrace_insn_history): ...this.
12144         Update all users.
12145         (struct btrace_insn_iterator, btrace_call_iterator): New.
12146         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12147         (struct btrace_target_info) <begin, end, level>
12148         <insn_history, call_history>: New.
12149         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12150         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12151         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12152         (btrace_call_number, btrace_call_begin, btrace_call_end)
12153         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12154         (btrace_find_function_by_number, btrace_set_insn_history)
12155         (btrace_set_call_history): New.
12156         * btrace.c (btrace_init_insn_iterator)
12157         (btrace_init_func_iterator, compute_itrace): Remove.
12158         (ftrace_print_function_name, ftrace_print_filename)
12159         (ftrace_skip_file): Change
12160         parameter to const.
12161         (ftrace_init_func): Remove.
12162         (ftrace_debug): Use new btrace_function fields.
12163         (ftrace_function_switched): Also consider gaining and
12164         losing symbol information).
12165         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12166         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12167         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12168         New.
12169         (ftrace_new_function): Move. Remove debug print.
12170         (ftrace_update_lines, ftrace_update_insns): New.
12171         (ftrace_update_function): Check for call, ret, and jump.
12172         (compute_ftrace): Renamed to ...
12173         (btrace_compute_ftrace): ...this. Rewritten to compute call
12174         stack.
12175         (btrace_fetch, btrace_clear): Updated.
12176         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12177         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12178         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12179         (btrace_call_number, btrace_call_begin, btrace_call_end)
12180         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12181         (btrace_find_function_by_number, btrace_set_insn_history)
12182         (btrace_set_call_history): New.
12183         * record-btrace.c (require_btrace): Use new btrace thread
12184         info fields.
12185         (record_btrace_info, btrace_insn_history)
12186         (record_btrace_insn_history, record_btrace_insn_history_range):
12187         Use new btrace thread info fields and new iterator.
12188         (btrace_func_history_src_line): Rename to ...
12189         (btrace_call_history_src_line): ...this. Use new btrace
12190         thread info fields.
12191         (btrace_func_history): Rename to ...
12192         (btrace_call_history): ...this. Use new btrace thread info
12193         fields and new iterator.
12194         (record_btrace_call_history, record_btrace_call_history_range):
12195         Use new btrace thread info fields and new iterator.
12196
12197 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12198
12199         * frame.h (frame_id_build_unavailable_stack_special): New.
12200         * frame.c (frame_id_build_unavailable_stack_special): New.
12201
12202 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12203
12204         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12205         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12206         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12207         to gdbarch.
12208         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12209         (i386_insn_is_jump, i386_jmp_p): New.
12210         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12211         insn_is_jump to gdbarch.
12212         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12213         * gdbarch.h: Regenerated.
12214         * gdbarch.c: Regenerated.
12215         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12216         (default_insn_is_jump): New.
12217         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12218         (default_insn_is_jump): New.
12219
12220 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12221
12222         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12223         Change to ...
12224         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
12225         (btrace_read_type) <btrace_read_new>: Change to ...
12226         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
12227
12228 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12229
12230         * common/linux-btrace.c (linux_read_btrace): Free trace from
12231         previous iteration.
12232
12233 2014-01-15  Doug Evans  <dje@google.com>
12234
12235         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12236         uint32_t.
12237
12238 2014-01-15  Tom Tromey  <tromey@redhat.com>
12239
12240         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12241         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12242         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12243         (set_objfile_main_name): New function.
12244         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12245         language_of_main>: New fields.
12246         (set_objfile_main_name): Declare.
12247         * symtab.c (find_main_name): Loop over objfiles to find the main
12248         name and language.
12249         (set_main_name): Now static.
12250         (get_main_info): Add comment.
12251         * symtab.h (set_main_name): Don't declare.
12252
12253 2014-01-15  Tom Tromey  <tromey@redhat.com>
12254
12255         * symtab.c (main_progspace_key): New global.
12256         (struct main_info): New.
12257         (name_of_main, language_of_main): Remove.
12258         (get_main_info, main_info_cleanup): New function.
12259         (set_main_name, main_name, main_language): Use get_main_info.
12260         (_initialize_symtab): Initialize main_progspace_key.
12261
12262 2014-01-15  Tom Tromey  <tromey@redhat.com>
12263
12264         * dbxread.c (process_one_symbol): Update.
12265         * dwarf2read.c (read_partial_die): Update.
12266         * symfile.c (set_initial_language): Call main_language.
12267         * symtab.c (language_of_main): Now static.
12268         (set_main_name): Add 'lang' parameter.
12269         (find_main_name): Update.
12270         (main_language): New function.
12271         (symtab_observer_executable_changed): Update.
12272         * symtab.h (set_main_name): Update.
12273         (language_of_main): Remove.
12274         (main_language): Declare.
12275
12276 2014-01-15  Tom Tromey  <tromey@redhat.com>
12277
12278         * symfile.c (init_entry_point_info): Use new "initialized" field.
12279         Update.
12280         * objfiles.h (struct entry_point) <initialized>: New field.
12281         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12282         (struct objfile) <ei>: ...here.  Remove.
12283         * objfiles.c (entry_point_address_query): Update.
12284
12285 2014-01-15  Tom Tromey  <tromey@redhat.com>
12286
12287         * objfiles.c (entry_point_address_query): Relocate entry point
12288         address.
12289         (objfile_relocate1): Do not relocate entry point address.
12290         * objfiles.h (struct entry_info) <entry_point>: Update comment.
12291         <the_bfd_section_index>: New field.
12292         * symfile.c (init_entry_point_info): Find the entry point's
12293         section.
12294
12295 2014-01-15  Tom Tromey  <tromey@redhat.com>
12296
12297         * solib-frv.c (enable_break): Use entry_point_address_query.
12298
12299 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12300
12301         * NEWS: Add note on improved process record-replay on
12302         arm*-linux* targets.
12303
12304 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12305
12306         * arm-tdep.c (enum arm_record_result): New enum.
12307         (arm_record_unsupported_insn): New function.
12308         (arm_record_coproc_data_proc): Removed.
12309         (thumb2_record_ld_st_multiple): New function.
12310         (thumb2_record_ld_st_dual_ex_tbb): New function.
12311         (thumb2_record_data_proc_sreg_mimm): New function.
12312         (thumb2_record_ps_dest_generic): New function.
12313         (thumb2_record_branch_misc_cntrl): New function.
12314         (thumb2_record_str_single_data): New function.
12315         (thumb2_record_ld_mem_hints): New function.
12316         (thumb2_record_ld_word): New function.
12317         (thumb2_record_lmul_lmla_div): New function.
12318         (thumb2_record_decode_insn_handler): New function.
12319         (decode_insn): Add thumb32 instruction handlers.
12320
12321 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12322
12323         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12324         (struct arm_linux_record_tdep): Declare.
12325         (arm_canonicalize_syscall): New function.
12326         (arm_all_but_pc_registers_record): New function.
12327         (arm_linux_syscall_record): New function.
12328         (arm_linux_init_abi): Add syscall recording constructs.
12329         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12330         decoding.  (arm_record_coproc_data_proc): Update arm syscall
12331         decoding.
12332         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12333         <arm_syscall_record>: New field.
12334         * configure.tgt (arm*-*-linux*): Add linux-record.o to
12335         gdb_target_obs.
12336
12337 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12338
12339         * arm-tdep.c (thumb_record_misc): Update to use sp as base
12340         register for push instruction recording.
12341
12342 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12343
12344         * arm-tdep.c (thumb_record_misc): Update to correct logical
12345         error while recording ldm, ldmia and pop instructions.
12346
12347 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12348
12349         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12350
12351 2014-01-15  Pedro Alves  <palves@redhat.com>
12352
12353         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12354         (go32_resume, go32_fetch_registers, store_register)
12355         (go32_store_registers, go32_prepare_to_store)
12356         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12357         (go32_create_inferior, go32_can_run, go32_terminal_init)
12358         (go32_terminal_inferior, go32_terminal_ours): Delete forward
12359         declarations.
12360
12361 2014-01-15  Tom Tromey  <tromey@redhat.com>
12362
12363         * target.h (async_callback_ftype): New typedef.
12364         (struct target_ops) <to_async>: Use it.
12365
12366 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
12367
12368         * python/py-value.c (get_field_type): Remove unnecessary curly
12369         braces for single-statement if block.
12370
12371 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
12372
12373         * python/py-type.c (convert_field): Add missing empty line
12374         after declarations.
12375
12376 2014-01-14  Doug Evans  <dje@google.com>
12377
12378         * symfile.h (expand_symtabs_matching): Renamed from
12379         expand_partial_symbol_names.  Update prototype.
12380         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12381         * symfile.c (expand_symtabs_matching): Renamed from
12382         expand_partial_symbol_names.  New args file_matcher, kind.
12383         Rename arg fun to symbol_matcher.
12384         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12385         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12386         ada_expand_partial_symbol_name.
12387         (ada_make_symbol_completion_list): Update to call
12388         expand_symtabs_matching.
12389         (ada_add_global_exceptions): Call expand_symtabs_matching.
12390         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12391         call map_symbol_filenames.
12392         * symtab.c (sources_info): Update to call map_symbol_filenames.
12393         (search_symbols): Call expand_symtabs_matching.
12394         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12395         (default_make_symbol_completion_list_break_on): Update to call
12396         expand_symtabs_matching.
12397         (make_source_files_completion_list): Update to call
12398         map_symbol_filenames.
12399
12400 2014-01-14  Doug Evans  <dje@google.com>
12401
12402         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12403         (expand_symtabs_symbol_matcher_ftype): New typedef.
12404         (quick_symbol_functions.expand_symtabs_matching): Update to use.
12405         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12406         * symfile.c (expand_partial_symbol_names): Update to use
12407         expand_symtabs_symbol_matcher_ftype.
12408         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12409         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12410         Arg name_matcher renamed to symbol_matcher.
12411         * psymtab.c (recursively_search_psymtabs): Update to use
12412         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
12413         sym_matcher.
12414         (expand_symtabs_matching_via_partial): Update to use
12415         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12416         Arg name_matcher renamed to symbol_matcher.
12417
12418 2014-01-14  Doug Evans  <dje@google.com>
12419
12420         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12421         (map_partial_symbol_filenames): Ditto.
12422         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12423         (map_partial_symbol_filenames): Ditto.
12424         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12425         (map_partial_symbol_filenames): Ditto.
12426         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12427         (map_partial_symbol_filenames): Ditto.
12428         * symtab.c: Delete #include "psymtab.h".
12429
12430 2014-01-14  Pedro Alves  <palves@redhat.com>
12431             Tom Tromey  <tromey@redhat.com>
12432
12433         * infrun.c (use_displaced_stepping): Use find_record_target
12434         instead of RECORD_IS_USED.
12435         (adjust_pc_after_break): Use record_full_is_used instead of
12436         RECORD_IS_USED.
12437         * record-btrace.c (record_btrace_open): Call record_preopen
12438         instead of checking RECORD_IS_USED.
12439         * record-full.c (record_full_shortname)
12440         (record_full_core_shortname): New globals.
12441         (record_full_is_used): New function.
12442         (find_full_open): Call record_preopen instead of checking
12443         RECORD_IS_USED.
12444         (init_record_full_ops): Set the target's shortname to
12445         record_full_shortname.
12446         (init_record_full_core_ops): Set the target's shortname to
12447         record_full_core_shortname.
12448         * record-full.h (record_full_is_used): Declare.
12449         * record.c (find_record_target): Make extern.
12450         (record_preopen): New function.
12451         * record.h (RECORD_IS_USED): Delete macro.
12452         (find_record_target, record_preopen): Declare functions.
12453
12454 2014-01-14  Yao Qi  <yao@codesourcery.com>
12455
12456         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12457         'len''s type to ULONGEST.
12458         (core_xfer_shared_libraries_aix): Likewise.
12459         * gdbarch.c, gdbarch.h: Regenerated.
12460         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12461         Change type of 'len' to ULONGEST.
12462         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12463         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12464
12465 2014-01-14  Yao Qi  <yao@codesourcery.com>
12466
12467         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12468         type of 'len' to ULONGEST.
12469         (linux_xfer_osdata_processgroups): Likewise.
12470         (linux_xfer_osdata_threads): Likewise.
12471         (linux_xfer_osdata_fds): Likewise.
12472         (linux_xfer_osdata_isockets): Likewise.
12473         (linux_xfer_osdata_shm): Likewise.
12474         (linux_xfer_osdata_sem): Likewise.
12475         (linux_xfer_osdata_msg): Likewise.
12476         (linux_common_xfer_osdata): Likewise.
12477         (struct osdata_type) <getter>: Likewise.
12478         * common/linux-osdata.h (linux_common_xfer_osdata): Update
12479         the declaration.
12480
12481 2014-01-14  Yao Qi  <yao@codesourcery.com>
12482
12483         * target.h (target_xfer_partial_ftype): Update.
12484         (struct target_ops) <to_xfer_partial>: Change 'len' type to
12485         ULONGEST.
12486         * aix-thread.c (aix_thread_xfer_partial): Change type of
12487         argument 'len' to ULONGEST.
12488         * auxv.c (procfs_xfer_auxv): Likewise.
12489         (ld_so_xfer_auxv): Likewise.
12490         (memory_xfer_auxv): Likewise.
12491         * bfd-target.c (target_bfd_xfer_partial): Likewise.
12492         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12493         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12494         * corelow.c (core_xfer_partial): Likewise.
12495         * ctf.c (ctf_xfer_partial): Likewise.
12496         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
12497         '%u'.
12498         (darwin_read_dyld_info): Likewise.
12499         (darwin_xfer_partial): Likewise.
12500         * exec.c (section_table_xfer_memory_partial): Likewise.
12501         (exec_xfer_partial): Likewise.
12502         * exec.h (section_table_xfer_memory_partial): Update
12503         declaration.
12504         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
12505         instead of plongest.
12506         (gnu_xfer_partial): Likewise.
12507         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12508         (ia64_hpux_xfer_solib_got): Likewise.
12509         (ia64_hpux_xfer_partial): Likewise.
12510         * ia64-linux-nat.c (ia64_linux_xfer_partial):
12511         * inf-ptrace.c (inf_ptrace_xfer_partial):
12512         * inf-ttrace.c (inf_ttrace_xfer_partial):
12513         * linux-nat.c (linux_xfer_siginfo): Likewise.
12514         (linux_nat_xfer_partial): Likewise.
12515         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12516         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12517         * monitor.c (monitor_xfer_memory): Likewise.
12518         (monitor_xfer_partial): Likewise.
12519         * procfs.c (procfs_xfer_partial): Likewise.
12520         * record-full.c (record_full_xfer_partial): Likewise.
12521         (record_full_core_xfer_partial): Likewise.
12522         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
12523         instead of plongest.
12524         (gdbsim_xfer_partial): Likewise.
12525         * remote.c (remote_xfer_partial): Likewise.
12526         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12527         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12528         declaration.
12529         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12530         (rs6000_xfer_shared_libraries): Likewise.
12531         * sol-thread.c (sol_thread_xfer_partial): Likewise.
12532         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12533         (sparc_xfer_partial): Likewise.
12534         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12535         (spu_xfer_partial): Likewise.
12536         * spu-multiarch.c (spu_xfer_partial): Likewise.
12537         * target.c (target_read_live_memory): Likewise.
12538         (memory_xfer_live_readonly_partial): Likewise.
12539         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12540         (target_xfer_partial, default_xfer_partial): Likewise.
12541         (current_xfer_partial): Likewise.
12542         * tracepoint.c (tfile_xfer_partial): Likewise.
12543         * windows-nat.c (windows_xfer_memory): Likewise.  Call
12544         pulongest instead of plongest.
12545         (windows_xfer_partial): Likewise.
12546         (windows_xfer_shared_libraries): Likewise.
12547
12548 2014-01-14  Yao Qi  <yao@codesourcery.com>
12549
12550         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12551         target_xfer_partial_ftype.
12552
12553 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
12554
12555         PR python/15464
12556         PR python/16113
12557         * valops.c (value_struct_elt_bitpos): New function
12558         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12559         object to 'None' if the field name is an empty string ("").
12560         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12561         attribute to look for a field when 'name' is 'None'.
12562         (get_field_type): New function
12563
12564 2014-01-13  Doug Evans  <dje@google.com>
12565
12566         PR symtab/16426
12567         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12568         (try_open_dwop_file): Ditto.
12569         * gdb_bfd.c: #include "vec.h".
12570         (bfdp): New typedef.
12571         (struct gdb_bfd_data): New member included_bfds.
12572         (gdb_bfd_unref): Unref all included bfds.
12573         (gdb_bfd_record_inclusion): New function.
12574         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12575
12576 2014-01-13  Tom Tromey  <tromey@redhat.com>
12577
12578         * gdbcore.h (deprecated_core_resize_section_table): Remove.
12579
12580 2014-01-13  Tom Tromey  <tromey@redhat.com>
12581
12582         * defs.h (use_windows): Remove.
12583         * gdb.c (main): Update.
12584         * main.c (captured_main, gdb_main): Update.
12585         * main.h (struct captured_main_args) <use_windows>: Remove.
12586         * top.c (use_windows): Remove.
12587
12588 2014-01-13  Tom Tromey  <tromey@redhat.com>
12589
12590         * defs.h (deprecated_flush_hook): Remove.
12591
12592 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
12593
12594         PR threads/16216
12595         * linux-thread-db.c (try_thread_db_load): Add parameter
12596         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
12597         (try_thread_db_load_from_pdir_1): Move it there from here.
12598         (try_thread_db_load_from_sdir): Update caller.
12599         (try_thread_db_load_from_dir): Move it there from here.
12600
12601 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
12602
12603         * regformats/regdat.sh: Always rewrite the register file.
12604
12605 2014-01-13  Pedro Alves  <palves@redhat.com>
12606
12607         * Makefile.in (CHECK_HEADERS): New variable.
12608         (check-headers:): New rule.
12609
12610 2014-01-13  Tom Tromey  <tromey@redhat.com>
12611
12612         * cli/cli-setshow.c (do_set_command): Update.
12613         * defs.h (deprecated_set_hook): Remove.
12614         * top.c (deprecated_set_hook): Remove.
12615
12616 2014-01-13  Pedro Alves  <palves@redhat.com>
12617
12618         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12619         the tracepoint if the PC is a pseudo-register.
12620
12621 2014-01-13  Tom Tromey  <tromey@redhat.com>
12622
12623         * defs.h (XCALLOC): Remove.
12624         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12625         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12626         * dwarf2loc.c (allocate_piece_closure): Likewise.
12627         * elfread.c (elf_symfile_segments): Likewise.
12628         (elf_symfile_segments): Likewise.
12629         * gdbtypes.c (copy_type_recursive): Likewise.
12630         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12631         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12632         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12633         XCALLOC.
12634         * mt-tdep.c (mt_gdbarch_init): Likewise.
12635         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12636         XCALLOC.
12637         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12638         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12639         * registry.c (registry_alloc_data): Likewise.
12640         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12641         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12642         * serial.c (serial_fdopen_ops): Likewise.
12643         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12644         XCALLOC.
12645         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12646         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12647         not XCALLOC.
12648
12649 2014-01-13  Tom Tromey  <tromey@redhat.com>
12650
12651         * defs.h (XMALLOC): Remove.
12652         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12653         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12654         * cli-out.c (struct ui_out *): Likewise.
12655         * cli/cli-dump.c (add_dump_command): Likewise.
12656         (add_dump_command): Likewise.
12657         * complaints.c (get_complaints): Likewise.
12658         (find_complaint): Likewise.
12659         * dwarf2-frame.c (execute_cfa_program): Likewise.
12660         * dwarf2read.c (abbrev_table_read_table): Likewise.
12661         * gdbarch.sh: Likewise.
12662         * gdbarch.c: Rebuild.
12663         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12664         * interps.c (interp_new): Likewise.
12665         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12666         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12667         * mi/mi-console.c (mi_console_file_new): Likewise.
12668         * mi/mi-interp.c (mi_interpreter_init): Likewise.
12669         * mi/mi-out.c (mi_out_new): Likewise.
12670         * mi/mi-parse.c (mi_parse): Likewise.
12671         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12672         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12673         * observer.c (xalloc_observer_list_node): Likewise.
12674         * regcache.c (regcache_xmalloc_1): Likewise.
12675         * reggroups.c (reggroup_new): Likewise.
12676         (_initialize_reggroup): Likewise.
12677         * registry.c (register_data_with_cleanup): Likewise.
12678         * remote.c (remote_notif_stop_alloc_reply): Likewise.
12679         * ser-base.c (serial_ttystate): Likewise.
12680         * ser-mingw.c (make_pipe_state): Likewise.
12681         * ser-pipe.c (pipe_open): Likewise.
12682         * serial.c (serial_open): Likewise.
12683         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12684         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12685         (tui_alloc_win_info): Likewise.
12686         (tui_add_content_elements): Likewise.
12687         * tui/tui-file.c (tui_file_new): Likewise.
12688         * tui/tui-out.c (tui_out_new): Likewise.
12689         * ui-file.c (mem_file_new): Likewise.
12690         * ui-out.c (push_level): Likewise.
12691         (make_cleanup_ui_out_end): Likewise.
12692         (append_header_to_list): Likewise.
12693         (ui_out_new): Likewise.
12694         * user-regs.c (user_reg_add_builtin): Likewise.
12695
12696 2014-01-13  Tom Tromey  <tromey@redhat.com>
12697
12698         * defs.h (XZALLOC): Remove.
12699         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12700         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12701         (get_ada_tasks_inferior_data): Likewise.
12702         * auto-load.c (get_auto_load_pspace_data): Likewise.
12703         * auxv.c (get_auxv_inferior_data): Likewise.
12704         * bfd-target.c (target_bfd_reopen): Likewise.
12705         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12706         (deprecated_insert_raw_breakpoint): Likewise.
12707         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12708         * corelow.c (core_open): Likewise.
12709         * darwin-nat.c (darwin_check_new_threads): Likewise.
12710         (darwin_attach_pid): Likewise.
12711         * dummy-frame.c (dummy_frame_push): Likewise.
12712         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12713         * dwarf2loc.c (allocate_piece_closure): Likewise.
12714         * elfread.c (elf_symfile_segments): Likewise.
12715         * eval.c (ptrmath_type_p): Likewise.
12716         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12717         * gdbtypes.c (alloc_type_arch): Likewise.
12718         (alloc_type_instance): Likewise.
12719         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12720         * inf-child.c (inf_child_can_use_agent): Likewise.
12721         * inflow.c (get_inflow_inferior_data): Likewise.
12722         * infrun.c (save_infcall_suspend_state): Likewise.
12723         * jit.c (jit_reader_load): Likewise.
12724         (get_jit_objfile_data): Likewise.
12725         (get_jit_program_space_data): Likewise.
12726         (jit_object_open_impl): Likewise.
12727         (jit_symtab_open_impl): Likewise.
12728         (jit_block_open_impl): Likewise.
12729         (jit_frame_sniffer): Likewise.
12730         * linux-fork.c (add_fork): Likewise.
12731         * maint.c (make_command_stats_cleanup): Likewise.
12732         * objfiles.c (get_objfile_pspace_data): Likewise.
12733         * opencl-lang.c (struct lval_closure): Likewise.
12734         * osdata.c (osdata_start_osdata): Likewise.
12735         * progspace.c (new_address_space): Likewise.
12736         (add_program_space): Likewise.
12737         * remote-sim.c (get_sim_inferior_data): Likewise.
12738         * sh-tdep.c (sh_gdbarch_init): Likewise.
12739         * skip.c (Ignore): Likewise.
12740         (skip_delete_command): Likewise.
12741         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12742         (library_list_start_library): Likewise.
12743         (solib_aix_current_sos): Likewise.
12744         * solib-darwin.c (get_darwin_info): Likewise.
12745         (darwin_current_sos): Likewise.
12746         * solib-dsbt.c (get_dsbt_info): Likewise.
12747         * solib-ia64-hpux.c (new_so_list): Likewise.
12748         (ia64_hpux_get_solib_linkage_addr): Likewise.
12749         * solib-spu.c (append_ocl_sos): Likewise.
12750         (spu_current_sos): Likewise.
12751         * solib-svr4.c (get_svr4_info): Likewise.
12752         (svr4_keep_data_in_core): Likewise.
12753         (library_list_start_library): Likewise.
12754         (svr4_default_sos): Likewise.
12755         (svr4_read_so_list): Likewise.
12756         * solib-target.c (library_list_start_library): Likewise.
12757         (solib_target_current_sos): Likewise.
12758         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12759         * symfile-debug.c (install_symfile_debug_logging): Likewise.
12760         * symfile.c (default_symfile_segments): Likewise.
12761         * target-descriptions.c (tdesc_data_init): Likewise.
12762         (tdesc_create_reg): Likewise.
12763         (struct tdesc_type *): Likewise.
12764         (tdesc_create_vector): Likewise.
12765         (tdesc_set_struct_size): Likewise.
12766         (struct tdesc_type *): Likewise.
12767         (tdesc_free_feature): Likewise.
12768         (tdesc_create_feature): Likewise.
12769         * windows-nat.c (windows_add_thread): Likewise.
12770         (windows_make_so): Likewise.
12771         * xml-support.c (gdb_xml_body_text): Likewise.
12772         (gdb_xml_create_parser_and_cleanup): Likewise.
12773         (xml_process_xincludes): Likewise.
12774         * xml-syscall.c (allocate_syscalls_info): Likewise.
12775         (syscall_create_syscall_desc): Likewise.
12776
12777 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
12778
12779         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12780         function, with code from i386_stap_parse_special_token.
12781         (i386_stap_parse_special_token_three_arg_disp): Likewise.
12782         (i386_stap_parse_special_token): Move code to the two functions
12783         above; simplify it.
12784
12785 2014-01-09  Pedro Alves  <palves@redhat.com>
12786             Hui Zhu  <hui@codesourcery.com>
12787
12788         PR gdb/16101
12789         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12790         bp_err_string.  Don't mark the location shlib_disabled if the
12791         error thrown wasn't a generic or memory error.  Catch errors
12792         thrown while inserting breakpoints in overlayed code.  Output
12793         error message of software breakpoints.
12794         * remote.c (remote_insert_breakpoint): If this breakpoint has
12795         target-side commands but this stub doesn't support Z0 packets,
12796         throw NOT_SUPPORTED_ERROR error.
12797         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12798         * target.h (target_insert_breakpoint): Extend comment.
12799         (target_insert_hw_breakpoint): Add comment.
12800
12801 2014-01-08  Pedro Alves  <palves@redhat.com>
12802
12803         * remote.c (remote_add_thread): Add threads silently if starting
12804         up.
12805         (remote_notice_new_inferior): If in all-stop, and starting up,
12806         don't call notice_new_inferior.
12807         (get_current_thread): New function, factored out from ...
12808         (add_current_inferior_and_thread): ... this.  Adjust.
12809         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
12810         found any thread, then select the remote's current thread as GDB's
12811         current thread too.
12812
12813 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
12814
12815         * NEWS: Create a new section for the next release branch.
12816         Rename the section of the current branch, now that it has
12817         been cut.
12818
12819 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
12820
12821         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12822         * version.in: Bump version to 7.7.50.DATE-cvs.
12823
12824 2014-01-08  Yao Qi  <yao@codesourcery.com>
12825
12826         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12827         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
12828         (spu_xfer_partial): Cast 'buf' to 'const char *'.
12829
12830 2014-01-08  Yao Qi  <yao@codesourcery.com>
12831
12832         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12833         return value of bfd_get_filename to symbol_file_add_from_bfd.
12834
12835 2014-01-08  Pierre Muller  <muller@sourceware.org>
12836
12837         Fix PR16201.
12838         * coff-pe-read.c (struct read_pe_section_data): Add index field.
12839         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12840         to prim_record_mininal_symbol_and_info.
12841         (add_pe_forwarded_sym): Use known section number of forwarded symbol
12842         in call to prim_record_minimal_symbol_and_info.
12843         (read_pe_exported_syms): Set index field of section_data.
12844
12845 2014-01-07  Andrew Pinski  <apinski@cavium.com>
12846
12847         * features/aarch64-core.xml (cpsr): Change to be 64bit.
12848         * features/aarch64.c: Regenerate.
12849
12850 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
12851
12852         * target.c (return_null): Define.
12853         (update_current_target): Use it instead of return_zero for
12854         functions that return a pointer.
12855
12856 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
12857
12858         * source.c (add_path): Fix check for duplicated paths in the previously
12859         included paths.
12860
12861 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
12862
12863         * ada-lang.c: Remove duplicated include statements.
12864         * alphabsd-nat.c: Ditto.
12865         * amd64-darwin-tdep.c: Ditto.
12866         * amd64fbsd-nat.c: Ditto.
12867         * auto-load.c: Ditto.
12868         * ax-gdb.c: Ditto.
12869         * breakpoint.c: Ditto.
12870         * dbxread.c: Ditto.
12871         * fork-child.c: Ditto.
12872         * gdb_usleep.c: Ditto.
12873         * i386-darwin-tdep.c: Ditto.
12874         * i386fbsd-nat.c: Ditto.
12875         * infcmd.c: Ditto.
12876         * inferior.c: Ditto.
12877         * jv-lang.c: Ditto.
12878         * linux-nat.c: Ditto.
12879         * linux-tdep.c: Ditto.
12880         * m68kbsd-nat.c: Ditto.
12881         * m68klinux-nat.c: Ditto.
12882         * microblaze-tdep.c: Ditto.
12883         * mips-linux-tdep.c: Ditto.
12884         * mn10300-tdep.c: Ditto.
12885         * nto-tdep.c: Ditto.
12886         * opencl-lang.c: Ditto.
12887         * osdata.c: Ditto.
12888         * printcmd.c: Ditto.
12889         * regcache.c: Ditto.
12890         * remote-m32r-sdi.c: Ditto.
12891         * remote.c: Ditto.
12892         * symfile.c: Ditto.
12893         * symtab.c: Ditto.
12894         * tilegx-linux-nat.c: Ditto.
12895         * tilegx-tdep.c: Ditto.
12896         * tracepoint.c: Ditto.
12897         * valops.c: Ditto.
12898         * vaxbsd-nat.c: Ditto.
12899         * windows-nat.c: Ditto.
12900         * xtensa-tdep.c: Ditto.
12901
12902 2014-01-07  Yao Qi  <yao@codesourcery.com>
12903
12904         * spu-linux-nat.c (_initialize_spu_nat): Declare.
12905
12906 2014-01-07  Yao Qi  <yao@codesourcery.com>
12907             Joel Brobecker  <brobecker@adacore.com>
12908
12909         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12910         (pdc_write_regs): Likewise.
12911         (fetch_regs_kernel_thread): Likewise.
12912         (store_regs_kernel_thread): Likewise.
12913
12914 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12915
12916         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12917         tagged type objects to their actual type.
12918
12919 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12920
12921         * ada-valprint.c (print_field_values): Add "language" parameter.
12922         Update calls to print_field_values and print_variant_part.
12923         Pass new parameter "language" in call to val_print instead
12924         of "current_language".  Replace call to ada_val_print by call
12925         to val_print.
12926         (print_variant_part): Add "language" parameter.
12927         (ada_val_print_struct_union): Update call to print_field_values.
12928
12929 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12930
12931         * ada-valprint.c (ui_memcpy): Delete.
12932         (ada_print_floating): Update documentation.  Add empty line
12933         between between function documentation and implementation.
12934         Delete variable "buffer".  Use ui_file_xstrdup in place of
12935         ui_file_put.  Minor adjustments following this change.
12936
12937 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12938
12939         * ada-valprint.c (ada_val_print_string): New function,
12940         extracted from ada_val_print_array.
12941         (ada_val_print_array): Replace extracted code by call
12942         to ada_val_print_string followed by a return.  Move
12943         "else" branch to the function's top block.
12944
12945 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12946
12947         * ada-valprint.c (ada_val_print_array): Move implementation
12948         down.  Rename parameter "offset" and "val" into "offset_aligned"
12949         and "original_value" respectively.  Add parameter "offset".
12950
12951 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12952
12953         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12954         re-organizing the code. Change the "???" message printed
12955         when target type is a TYPE_CODE_UNDEF into
12956         "<ref to undefined type>".
12957
12958 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12959
12960         * ada-valprint.c (print_record): Delete, implementation inlined...
12961         (ada_val_print_struct_union): ... here.  Remove call to
12962         ada_check_typedef in inlined implementation.
12963
12964 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12965
12966         * ada-valprint.c (ada_val_print_gnat_array): New function,
12967         extracted from ada_val_print_1;
12968         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12969         (ada_val_print_flt, ada_val_print_struct_union)
12970         (ada_val_print_ref): Likewise.
12971         (ada_val_print_1): Delete variables i and elttype.
12972         Replace extracted-out code by call to corresponding
12973         new functions.
12974
12975 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12976
12977         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12978
12979 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12980
12981         * ada-valprint.c (ada_val_print_1): Replace calls to
12982         ada_val_print_1 by calls to val_print.
12983
12984 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12985
12986         * ada-valprint.c (ada_val_print_1): Add parameter "language".
12987         Update calls to self accordingly.  Replace calls to c_val_print
12988         by calls to val_print.
12989
12990 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12991
12992         * ada-valprint.c (print_record): Delete declaration.
12993         (adjust_type_signedness, ada_val_print_1): Likewise.
12994         (ada_val_print): Move function implementation down.
12995         (print_variant_part, print_field_values, print_record):
12996         Move function implementation up.
12997
12998 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12999
13000         * python/py-type.c (typy_get_name): New function.
13001         (type_object_getset): Add entry for attribute "name".
13002         * NEWS: Add entry mentioning this new attribute.
13003
13004 2014-01-07  Yao Qi  <yao@codesourcery.com>
13005
13006         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13007         statement.
13008
13009 2014-01-07  Yao Qi  <yao@codesourcery.com>
13010
13011         * gnu-nat.c (info_port_rights): Add qualifier const to
13012         argument args.
13013
13014 2014-01-07  Yao Qi  <yao@codesourcery.com>
13015
13016         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13017
13018 2014-01-07  Yao Qi  <yao@codesourcery.com>
13019
13020         * gnu-nat.c (make_inf) Update declaration.
13021         (make_inf): Make it static.
13022         (inf_set_traced): Likewise.
13023         (inf_port_to_thread, inf_task_died_status): Likewise.
13024
13025 2014-01-07  Yao Qi  <yao@codesourcery.com>
13026
13027         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13028
13029 2014-01-07  Yao Qi  <yao@codesourcery.com>
13030
13031         * gnu-nat.c (_initialize_gnu_nat): Declare.
13032
13033 2014-01-07  Yao Qi  <yao@codesourcery.com>
13034
13035         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13036         'enum bfd_endian'.
13037         (struct gdbarch_info) <byte_order>: Change type to
13038         'enum bfd_endian'.
13039         <byte_order_for_code>: Likewise.
13040         * gdbarch.c, gdbarch.h: Regenerated.
13041
13042 2014-01-06  Sasha Smundak  <asmundak@google.com>
13043
13044         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13045
13046 2014-01-06  Tom Tromey  <tromey@redhat.com>
13047
13048         * doublest.c (convert_doublest_to_floatformat): Use const, not
13049         CONST.
13050         * somread.c (som_symtab_read): Likewise.
13051
13052 2014-01-07  Hui Zhu  <hui@codesourcery.com>
13053
13054         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13055         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13056         (gdb_bfd_fopen): Ditto.
13057         (gdb_bfd_openr): Ditto.
13058         (gdb_bfd_openw): Ditto.
13059         (gdb_bfd_openr_iovec): Ditto.
13060         (gdb_bfd_fdopenr): Ditto.
13061         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13062         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13063         with xstrdup.
13064         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13065         with xstrdup.
13066         * symfile-mem.c (symbol_file_add_from_memory): Removed
13067         gdb_bfd_stash_filename.
13068
13069 2014-01-03  Doug Evans  <dje@google.com>
13070
13071         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13072         output.
13073
13074 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
13075
13076         Update year range in copyright notice of all files.
13077
13078 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
13079
13080         * top.c (print_gdb_version): Set copyright year to 2014.
13081
13082 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
13083
13084         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13085
13086 For older changes see ChangeLog-2013.
13087 \f
13088 Local Variables:
13089 mode: change-log
13090 left-margin: 8
13091 fill-column: 74
13092 version-control: never
13093 coding: utf-8
13094 End: