37577080dd8d860136012332fc68b8ae5fd5ff1f
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2014-09-19  Yao Qi  <yao@codesourcery.com>
2
3         * dwarf2read.c (dwarf_decode_lines): Update declaration.
4         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
5         comments.  Callers update.
6         (dwarf_decode_lines): Likewise.
7         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
8         comments.  Skip the line table if  'lowpc' is greater than
9         'address'.  Don't check
10         dwarf2_per_objfile->has_section_at_zero.
11
12 2014-09-18  Doug Evans  <dje@google.com>
13
14         * NEWS: Mention new "producer" attribute of gdb.Symtab.
15         * python/py-symtab.c (stpy_get_producer): New function.
16         (symtab_object_getset): Add "producer" attribute.
17
18 2014-09-17  Ulrich Weigand  <uweigand@de.ibm.com>
19
20         PR gdb/17384
21         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
22         (do_captured_read_memory_integer): Remove.
23         (safe_read_memory_integer): Use target_read_memory directly instead
24         of catching errors in do_captured_read_memory_integer.
25
26 2014-09-16  Maciej W. Rozycki  <macro@codesourcery.com>
27
28         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
29         not gdb/doc.
30
31 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
32
33         * objc-lang.c (find_implementation_from_class): Remove dead code.
34
35 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
36
37         PR cli/7233
38         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
39         "fprintf_unfiltered (gdb_stdlog...)".
40
41 2014-09-16  Patrick Palka  <patrick@parcs.ath.cx>
42
43         PR breakpoints/12526
44         * breakpoint.h (struct watchpoint): New fields val_bitpos and
45         val_bitsize.
46         * breakpoint.c (watch_command_1): Use these fields to retain
47         bitfield information.
48         (extract_bitfield_from_watchpoint_value): New function.
49         (watchpoint_check): Use it.
50         (update_watchpoint): Use it.  Optimize the address and length of a
51         HW watchpoint pointing to a bitfield.
52         * value.h (unpack_value_bitfield): New prototype.
53         * value.c (unpack_value_bitfield): Make extern.
54
55 2014-09-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
56
57         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
58         x86-dregs.o.
59         * gnu-nat.c (inf_threads): New function.
60         * gnu-nat.h (inf_threads_ftype): New typedef.
61         (inf_threads): New declaration.
62         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
63         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
64         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
65         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
66         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
67         (i386_gnu_dr_get_control): New functions.
68         (reg_addr): New structure.
69         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
70         i386 debugging register hooks.
71         * NEWS: Mention this.
72
73 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
74
75         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
76         vector data transfer instructions.
77         (arm_record_coproc_data_proc): Updated.
78
79 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
80
81         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
82         arm_record_exreg_ld_st_insn.
83         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
84         load/store insns.
85
86 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
87
88         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
89         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
90         processing instructions.
91
92 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
93
94         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
95         for advance SIMD struct ld/st insn.
96         (thumb2_record_decode_insn_handler): Replace stub handler with
97         thumb2_record_asimd_struct_ld_st.
98
99 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
100
101         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
102         for asimd, vfp and coprocessor insns.
103         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
104         and coprocessor insns.
105         (thumb2_record_coproc_insn): New function.
106         (thumb2_record_decode_insn_handler): Update coprocessor insns record
107         handlers.
108         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
109         opcode 110 insns.
110
111 2014-09-13  Doug Evans  <xdje42@gmail.com>
112
113         * NEWS: Mention new "queue-signal" command.
114         * infcmd.c (queue_signal_command): New function.
115         (_initialize_infcmd): Add new queue-signal command.
116
117 2014-09-13  Doug Evans  <xdje42@gmail.com>
118
119         * linux-nat.c (wait_lwp): Add debugging printf.
120         (linux_nat_wait_1): Ditto.
121
122 2014-09-12  Pedro Alves  <palves@redhat.com>
123
124         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
125         (create_and_insert_solib_event_breakpoint): New functions.
126         * breakpoint.h (create_and_insert_solib_event_breakpoint)
127         (remove_solib_event_breakpoints_at_next_stop): New declarations.
128         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
129         (remove_dbx_link_breakpoint): Delete function.
130         (insert_dbx_link_bpt_in_file): Use
131         create_and_insert_solib_event_breakpoint instead of
132         deprecated_insert_raw_breakpoint.
133         (procfs_wait): Don't check whether we hit __dbx_link here.
134         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
135         here.
136         * solib-irix.c (base_breakpoint): Delete global.
137         (disable_break): Delete function.
138         (enable_break): Use create_solib_event_breakpoint
139         instead of deprecated_insert_raw_breakpoint.
140         (irix_solib_handle_event): New function.
141         (irix_solib_create_inferior_hook): Don't run the target or disable
142         the mapping-complete breakpoint here.
143         (_initialize_irix_solib): Install irix_solib_handle_event as
144         so_ops->handle_event hook.
145
146 2014-09-12  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
147             Ulrich Weigand  <uweigand@de.ibm.com>
148
149         PR tdep/17379
150         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
151         instead of read_memory_unsigned_integer.
152
153 2014-09-12  Gary Benson  <gbenson@redhat.com>
154
155         * nat/linux-waitpid.c: Include common-defs.h.
156         [GDBSERVER]: Add FIXME comment.
157         [!GDBSERVER]: Don't include defs.h or signal.h.
158         (linux_debug) [!GDBSERVER]: Remove empty block.
159
160 2014-09-12  Gary Benson  <gbenson@redhat.com>
161
162         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
163         Don't include defs.h or server.h.
164
165 2014-09-12  Gary Benson  <gbenson@redhat.com>
166
167         * nat/linux-btrace.c: Include common-defs.h.
168         Don't include defs.h, server.h or gdbthread.h.
169         * nat/linux-btrace.h (struct target_ops): New forward declaration.
170
171 2014-09-12  Gary Benson  <gbenson@redhat.com>
172
173         * common/agent.c: Include common-defs.h.
174         Don't include defs.h or server.h.
175         * common/buffer.c: Likewise.
176         * common/common-debug.c: Likewise.
177         * common/common-utils.c: Likewise.
178         * common/errors.c: Likewise.
179         * common/filestuff.c: Likewise.
180         * common/format.c: Likewise.
181         * common/gdb_vecs.c: Likewise.
182         * common/print-utils.c: Likewise.
183         * common/ptid.c: Likewise.
184         * common/rsp-low.c: Likewise.
185         * common/signals.c: Likewise.
186         * common/vec.c: Likewise.
187         * common/xml-utils.c: Likewise.
188         * nat/linux-osdata.c: Likewise.
189         * nat/linux-procfs.c: Likewise.
190         * nat/linux-ptrace.c: Likewise.
191         * nat/mips-linux-watch.c: Likewise.
192         * target/waitstatus.c: Likewise.
193
194 2014-09-12  Tom Tromey  <tromey@redhat.com>
195             Gary Benson  <gbenson@redhat.com>
196
197         * common/common-regcache.h: New file.
198         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
199         * regcache.h: Include common-regcache.h.
200         (regcache_read_pc): Don't declare.
201         * regcache.c (get_thread_regcache_for_ptid): New function.
202         * nat/linux-btrace.c: Don't include regcache.h.
203         Include common-regcache.h.
204         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
205
206 2014-09-11  Thomas Schwinge  <thomas@codesourcery.com>
207
208         * regcache.h (struct regset): Declare.
209
210 2014-09-11  Pedro Alves  <palves@redhat.com>
211
212         PR gdb/17347
213         * main.c: Include "infrun.h".
214         (catch_command_errors, catch_command_errors_const): Wait for the
215         foreground command to complete.
216         * top.c (maybe_wait_sync_command_done): New function, factored out
217         from ...
218         (maybe_wait_sync_command_done): ... here.
219         * top.h (maybe_wait_sync_command_done): New declaration.
220
221 2014-09-11  Tom Tromey  <tromey@redhat.com>
222             Gary Benson  <gbenson@redhat.com>
223
224         * common/symbol.h: New file.
225         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
226         * minsyms.c (find_minimal_symbol_address): New function.
227         * common/agent.c: Include common/symbol.h.
228         [!GDBSERVER]: Don't include objfiles.h.
229         (agent_look_up_symbols): Use find_minimal_symbol_address.
230
231 2014-09-11  Gary Benson  <gbenson@redhat.com>
232
233         * target/target.h (target_stop_ptid, target_continue_ptid):
234         Declare.
235         * target.c (target_stop_ptid, target_continue_ptid): New
236         functions.
237         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
238         (agent_run_command): Always use target_stop_ptid and
239         target_continue_ptid.
240
241 2014-09-11  Tom Tromey  <tromey@redhat.com>
242             Gary Benson  <gbenson@redhat.com>
243
244         * target/target.h: New file.
245         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
246         * target.h: Include target/target.h.
247         (target_read_memory, target_write_memory): Don't declare.
248         * target.c (target_read_uint32): New function.
249         * common/agent.c: Include target/target.h.
250         [!GDBSERVER]: Don't include target.h.
251         (helper_thread_id): Type changed to uint32_t.
252         (agent_get_helper_thread_id): Use target_read_uint32.
253         (agent_run_command): Always use target_read_memory and
254         target_write_memory.
255         (agent_capability): Type changed to uint32_t.
256         (agent_capability_check): Use target_read_uint32.
257
258 2014-09-11  Gary Benson  <gbenson@redhat.com>
259
260         * common/common-debug.h (show_debug_regs): Declare.
261         * common/common-debug.c (show_debug_regs): Define.
262         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
263         all uses with show_debug_regs.  Replace all uses that considered
264         debug_hw_points as a multi-value integer with straight boolean
265         uses.
266         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
267         with show_debug_regs.
268         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
269         all uses with show_debug_regs.
270         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
271         uses with show_debug_regs.
272
273 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
274
275         * findvar.c (address_from_register): Handle targets requiring
276         a special conversion routine even for plain pointer types.
277
278 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
279
280         * rs6000-nat.c (exec_one_dummy_insn): Remove.
281         (store_register): Do not call exec_one_dummy_insn.
282
283 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
284
285         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
286         dereference it first.  Use value_enclosing_type instead of
287         value_type.
288         (ada_array_length): Likewise.
289
290 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
291
292         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
293         Adjust function implementation and documentation accordingly.
294         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
295         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
296         Update call to ada_value_ptr_subscript.
297
298 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
299
300         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
301         instead of VAL's type.
302
303 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
304
305         * amd64-linux-nat.c: Add <sys/uio.h> #include.
306
307 2014-09-09  Doug Evans  <xdje42@gmail.com>
308
309         PR guile/17367
310         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
311         last parameter to pkg-config, not first.
312         * configure.ac: Pass --with-guile provided pkg-config path to
313         GDB_GUILE_PROGRAM_NAMES.
314         * configure: Regenerate.
315
316 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
317
318         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
319         Bertazi".
320
321 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
322
323         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
324         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
325         the list of sections determining GDB_OSABI_IRIX.
326
327 2014-09-09  James Hogan  <james.hogan@imgtec.com>
328
329         * MAINTAINERS (Write After Approval): Add "James Hogan".
330
331 2014-09-09  James Hogan  <james.hogan@imgtec.com>
332
333         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
334
335 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
336
337         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
338
339 2014-09-08  Doug Evans  <xdje42@gmail.com>
340
341         PR 17247
342         * guile.c: #include <signal.h>.
343         (_initialize_guile): Block SIGCHLD while initializing Guile.
344
345         Replaces the following, which is reverted.
346
347         2014-07-26  Doug Evans  <xdje42@gmail.com>
348
349         PR 17185
350         * configure.ac: Add check for header gc/gc.h.
351         Add check for function setenv.
352         * configure: Regenerate.
353         * config.in: Regenerate.
354         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
355
356 2014-09-08  Doug Evans  <xdje42@gmail.com>
357
358         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
359         with named constant.  Fix style of pointer comparison.
360         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
361
362 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
363
364         PR gdb/17035
365         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
366         decide whether we display the command on "show user".
367         * cli/cli-script.c (show_user_1): Only verify cmdlines after
368         printing command name.
369         * cli/cli-decode.h (cli_user_command_p): Declare new function.
370         * cli/cli-decode.c (cli_user_command_p): Create helper function
371         to verify whether cmd_list_element is a user-defined command.
372
373 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
374
375         PR python/17355
376         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
377         Fix goto out of TRY_CATCH.
378
379 2014-09-06  Doug Evans  <xdje42@gmail.com>
380             Tom Tromey  <tromey@redhat.com>
381
382         PR 15276
383         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
384         $_any_caller_matches.
385         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
386         * python/lib/gdb/function/caller_is.py: New file.
387
388 2014-09-06  Doug Evans  <xdje42@gmail.com>
389
390         * infcmd.c (program_info): Fix typo.
391
392 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
393
394         PR gdb/17235
395         * stap-probe.c (stap_parse_single_operand): Delete unused variable
396         'number'.  New variable 'has_digit'.  Rewrite code to deal with
397         subexpressions on SDT probes.
398
399 2014-09-04  Pedro Alves  <palves@redhat.com>
400
401         * c-exp.y (parse_number): Skip handling base-switching prefixes if
402         the input is only one character long.
403
404 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
405
406         PR fortran/17237
407         * f-valprint.c (f_val_print): Specify the correct print option to
408         use when printing integer values.
409
410 2014-09-04  Gary Benson  <gbenson@redhat.com>
411
412         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
413         Remove code to cope with LWPs wrapped as PIDs.
414         Add assertions to ensure no wrapped LWPs are passed.
415
416 2014-09-04  Pedro Alves  <palves@redhat.com>
417
418         * value.c (value_ranges_copy_adjusted): New function, factored out
419         from ...
420         (value_contents_copy_raw): ... here.
421         (unpack_value_bits_as_long_1): Rename back to ...
422         (unpack_bits_as_long): ... this.  Remove 'original_value' and
423         'result' parameters.  Change return type to LONGEST.
424         (unpack_value_bits_as_long): Delete.
425         (unpack_value_field_as_long_1): Delete.
426         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
427         (unpack_value_bitfield): New function.
428         (value_field_bitfield): Reimplement using unpack_value_bitfield.
429         (value_fetch_lazy): Use unpack_value_bitfield.
430         * value.h (unpack_value_bits_as_long): Delete declaration.
431
432 2014-09-03  Sasha Smundak  <asmundak@google.com>
433
434         * python/py-frame.c (frapy_read_register): New function.
435
436 2014-09-03  James Hogan  <james.hogan@imgtec.com>
437
438         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
439         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
440
441 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
442
443         PR python/16699
444         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
445         function.
446         (add_cmd): Set "completer_handle_brkchars" to NULL.
447         * cli/cli-decode.h (struct cmd_list_element)
448         <completer_handle_brkchars>: New field.
449         * command.h (completer_ftype_void): New typedef.
450         (set_cmd_completer_handle_brkchars): New prototype.
451         * completer.c (set_gdb_completion_word_break_characters): New
452         function.
453         (complete_line_internal): Call "completer_handle_brkchars"
454         callback from command.
455         * completer.h: Include "command.h".
456         (set_gdb_completion_word_break_characters): New prototype.
457         * python/py-cmd.c (cmdpy_completer_helper): New function.
458         (cmdpy_completer_handle_brkchars): New function.
459         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
460         (cmdpy_init): Set completer_handle_brkchars to
461         cmdpy_completer_handle_brkchars.
462
463 2014-09-03  Gary Benson  <gbenson@redhat.com>
464
465         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
466         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
467         Loop conditions changed to equivalent form.
468         (struct x86_debug_reg_state): Updated dr_ref_count comment.
469         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
470         ALL_DEBUG_ADDRESS_REGISTERS.
471
472 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
473
474         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
475         description fix.
476
477 2014-09-02  Doug Evans  <dje@google.com>
478
479         * typeprint.c (find_global_typedef): Fix comment.
480
481 2014-09-02  Gary Benson  <gbenson@redhat.com>
482
483         * i386-nat.h: Renamed as...
484         * x86-nat.h: New file.  All type, function and variable name
485         prefixes changed from "i386_" to "x86_".  All references updated.
486         * i386-nat.c: Renamed as...
487         * x86-nat.c: New file.  All type, function and variable name
488         prefixes changed from "i386_" to "x86_".  All references updated.
489         * common/i386-xstate.h: Renamed as...
490         * common/x86-xstate.h: New file.  All type, function and variable
491         name prefixes changed from "i386_" to "x86_".  All references
492         updated.
493         * nat/i386-cpuid.h: Renamed as...
494         * nat/x86-cpuid.h: New file.  All type, function and variable name
495         prefixes changed from "i386_" to "x86_".  All references updated.
496         * nat/i386-gcc-cpuid.h: Renamed as...
497         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
498         name prefixes changed from "i386_" to "x86_".  All references
499         updated.
500         * nat/i386-dregs.h: Renamed as...
501         * nat/x86-dregs.h: New file.  All type, function and variable name
502         prefixes changed from "i386_" to "x86_".  All references updated.
503         * nat/i386-dregs.c: Renamed as...
504         * nat/x86-dregs.c: New file.  All type, function and variable name
505         prefixes changed from "i386_" to "x86_".  All references updated.
506
507 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
508
509         * varobj.c (_initialize_varobj): Move to the end of file.
510
511 2014-08-29  Gary Benson  <gbenson@redhat.com>
512
513         * common/common-exceptions.h: New file.
514         * common/common-exceptions.c: Likewise.
515         * Makefile.in (SFILES): Add common/common-exceptions.c.
516         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
517         (COMMON_OBS): Add common-exceptions.o.
518         (common-exceptions.o): New rule.
519         * exceptions.h (common-exceptions.h): Include.
520         (gdb_setjmp.h): Do not include.
521         (return_reason): Moved to common-exceptions.h.
522         (enum return_reason): Likewise.
523         (RETURN_MASK): Likewise.
524         (typedef return_mask): Likewise.
525         (enum errors): Likewise.
526         (struct gdb_exception): Likewise.
527         (exceptions_state_mc_init): Likewise.
528         (exceptions_state_mc_action_iter): Likewise.
529         (exceptions_state_mc_action_iter_1): Likewise.
530         (TRY_CATCH): Likewise.
531         (throw_exception): Likewise.
532         (throw_verror): Likewise.
533         (throw_vquit): Likewise.
534         (throw_error): Likewise.
535         (throw_quit): Likewise.
536         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
537         (enum catcher_action): Likewise.
538         (struct catcher): Likewise.
539         (current_catcher): Likewise.
540         (catcher_list_size): Likewise.
541         (exceptions_state_mc_init): Likewise.
542         (catcher_pop): Likewise.
543         (exceptions_state_mc): Likewise.
544         (exceptions_state_mc_action_iter): Likewise.
545         (exceptions_state_mc_action_iter_1): Likewise.
546         (throw_exception): Likewise.
547         (exception_messages): Likewise.
548         (exception_messages_size): Likewise.
549         (throw_it): Likewise.
550         (throw_verror): Likewise.
551         (throw_vquit): Likewise.
552         (throw_error): Likewise.
553         (throw_quit): Likewise.
554         (prepare_to_throw_exception): New function.
555
556 2014-08-29  Gary Benson  <gbenson@redhat.com>
557
558         * common/gdb_setjmp.h: New file.
559         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
560         * configure.ac: Move sigsetjmp check...
561         * common/common.m4: ...here.
562         * configure: Regenerate.
563         * cp-support.c (SIGJMP_BUF): Delete.
564         (SIGSETJMP): Likewise.
565         (SIGLONGJMP): Likewise.
566         * exceptions.h (gdb_setjmp.h): Include.
567         (setjmp.h): Do not include.
568         (EXCEPTIONS_SIGJMP_BUF): Delete.
569         (EXCEPTIONS_SIGSETJMP): Likewise.
570         (EXCEPTIONS_SIGLONGJMP): Likewise.
571         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
572         from gdb_setjmp.h.
573         * exceptions.c: Likewise.
574
575 2014-08-29  Gary Benson  <gbenson@redhat.com>
576
577         * cleanups.h: Moved to...
578         * common/cleanups.h: New file.
579         * cleanups.c: Moved to...
580         * common/cleanups.c: New file.  Include common-defs.h and
581         cleanups.h.  Do not include defs.h.
582         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
583         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
584         (cleanups.o): New rule.
585
586 2014-08-29  Gary Benson  <gbenson@redhat.com>
587
588         * common/errors.h (internal_warning): New declaration.
589         (internal_vwarning): Likewise.
590         * common/errors.c (internal_warning): New function.
591         * utils.h (internal_warning): Don't declare.
592         (internal_vwarning): Likewise.
593         * utils.c (internal_warning): Removed.
594
595 2014-08-29  Gary Benson  <gbenson@redhat.com>
596
597         * main.c (captured_main): Use warning during startup.
598         Prefix startup warning messages with command name.
599
600 2014-08-29  Gary Benson  <gbenson@redhat.com>
601
602         * main.c (captured_main): Handle usage errors with error.
603
604 2014-08-29  Gary Benson  <gbenson@redhat.com>
605
606         * go32-nat.c (go32_create_inferior): Replace a fprintf/
607         exit pair with a call to error.  Wrap the message with _().
608
609 2014-08-29  Gary Benson  <gbenson@redhat.com>
610
611         * main.c (captured_main): Replace a fprintf/exit
612         pair with a call to error.  Wrap the message with _().
613
614 2014-08-29  Gary Benson  <gbenson@redhat.com>
615
616         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
617         pairs with calls to error.  Wrap the message with _().
618
619 2014-08-29  Gary Benson  <gbenson@redhat.com>
620
621         * utils.c (vwarning): Protect calls to target_terminal_ours
622         and wrap_here.
623
624 2014-08-29  Gary Benson  <gbenson@redhat.com>
625
626         * exceptions.c (print_flush): Protect calls to
627         target_terminal_ours and wrap_here.
628
629 2014-08-29  Gary Benson  <gbenson@redhat.com>
630
631         * utils.h (filtered_printing_initialized): New declaration.
632         * utils.c (abort_with_message): New function.
633         (internal_vproblem): Use abort_with_message for first level
634         recursive internal problems, and if gdb_stderr is not set up.
635         Protect calls to target_terminal_ours, begin_line and query.
636
637 2014-08-28  Doug Evans  <dje@google.com>
638
639         * symtab.c (in_prologue): Move definition to better spot.
640         (skip_prologue_using_sal): Ditto.
641
642 2014-08-28  Doug Evans  <dje@google.com>
643
644         * symtab.c (find_function_start_sal): Move definition to better spot.
645
646 2014-08-28  Yao Qi  <yao@codesourcery.com>
647
648         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
649         found_stack_adjust in forward scan.  Remove condition check
650         on found_stack_adjust which is always true.  Indent the code.
651
652 2014-08-28  Yao Qi  <yao@codesourcery.com>
653
654         * dwarf2read.c (dwarf_decode_lines): Update declaration.
655         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
656         (dwarf_decode_lines): Remove argument
657         want_line_info.  Remove condition check on want_line_info.
658         Callers update.
659
660 2014-08-27  Doug Evans  <dje@google.com>
661
662         * dwarf2read.c (dwarf_record_line): Fix typo.
663
664 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
665
666         * target.h (struct target_ops::to_terminal_save_ours): Remove
667         declaration.
668         (target_terminal_save_ours): Remove macro.
669         * target-delegates.c: Regenerate.
670         * inf-child.c (inf_child_target): Don't set the nonexistent
671         field to_terminal_save_ours.
672         * inferior.h (child_terminal_save_ours): Remove declaration.
673         * terminal.h (gdb_save_tty_state): New declaration.
674         * inflow.c (child_terminal_save_ours): Rename to ...
675         (gdb_save_tty_state): ... this.
676         * tui/tui.c: Include terminal.h.
677         (tui_enable): Use gdb_save_tty_state instead of
678         target_terminal_save_ours.
679         (tui_disable): Likewise.
680
681 2014-08-25  Doug Evans  <dje@google.com>
682
683         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
684         Pass NULL instead of 0 for context pointer.
685
686 2014-08-25  Yao Qi  <yao@codesourcery.com>
687
688         * dwarf2read.c: Fix grammatical error.
689
690 2014-08-24  Yao Qi  <yao@codesourcery.com>
691
692         * dwarf2read.c (scan_partial_symbols):  Update comments.
693         Rename argument 'need_pc' with 'set_addrmap'.
694         (add_partial_namespace): Rename argument 'need_pc' with
695         'set_addrmap'.
696         (add_partial_module): Likewise.
697         (add_partial_subprogram): Likewise.  Update comments.
698         (dwarf2_name): Fix typo.
699
700 2014-08-22  Doug Evans  <dje@google.com>
701
702         PR 17276
703         * dwarf2read.c (dwarf_record_line_p): New function.
704         (dwarf_decode_lines_1): Ignore subsequent line number entries
705         for the same line if any entry had a non-zero discriminator.
706
707 2014-08-22  Doug Evans  <dje@google.com>
708
709         * buildsym.h (record_line_ftype): New typedef.
710         (record_line): Use it.
711         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
712         (dwarf_decode_lines_1): Call them.
713
714 2014-08-22  Yao Qi  <yao@codesourcery.com>
715
716         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
717         (ctf_end): Remove code.
718
719 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
720
721         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
722         (linux_make_corefile_notes): call update_thread_list, protected against
723         exceptions.
724
725 2014-08-21  Pedro Alves  <palves@redhat.com>
726
727         * infcmd.c (attach_command): Remove comment.
728
729 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
730
731         * aarch64-linux-nat.c (dr_changed_t): Change the type from
732         unsigned LONGEST to ULONGEST.
733
734 2014-08-20  Pedro Alves  <palves@redhat.com>
735
736         * Makefile.in (check-read1): New rule.
737
738 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
739
740         * value.c (value_from_contents_and_address): Strip resolved_type's
741         typedef layers before checking its TYPE_DATA_LOCATION.
742
743 2014-08-20  Pedro Alves  <palves@redhat.com>
744
745         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
746
747 2014-08-20  Yao Qi  <yao@codesourcery.com>
748
749         * amd64-tdep.c (amd64_classify): Add a blank line after the
750         example.  Move "*/" to a new line.
751         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
752         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
753         * dwarf2read.c (psymtab_include_file_name): Likewise.
754
755 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
756             Pedro Alves  <palves@redhat.com>
757
758         PR symtab/14604
759         PR symtab/14605
760         * ada-lang.c (coerce_unspec_val_to_type): Use
761         value_contents_copy_raw.
762         * ada-valprint.c (val_print_packed_array_elements): Adjust.
763         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
764         * cp-valprint.c (cp_print_value_fields): Let the common printing
765         code handle optimized out values.
766         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
767         * d-valprint.c (dynamic_array_type): Use
768         value_bits_any_optimized_out.
769         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
770         check_any_valid fields.
771         (check_pieced_value_bits): Delete and inline ...
772         (check_pieced_synthetic_pointer): ... here.
773         (check_pieced_value_validity): Delete.
774         (check_pieced_value_invalid): Delete.
775         (pieced_value_funcs): Remove check_validity and check_any_valid
776         fields.
777         (read_pieced_value): Use mark_value_bits_optimized_out.
778         (write_pieced_value): Switch to use
779         mark_value_bytes_optimized_out.
780         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
781         of assuming the whole value is optimized out.
782         * findvar.c (read_frame_register_value): Remove special handling
783         of optimized out registers.
784         (value_from_register): Use mark_value_bytes_optimized_out.
785         * frame-unwind.c (frame_unwind_got_optimized): Use
786         mark_value_bytes_optimized_out.
787         * jv-valprint.c (java_value_print): Adjust.
788         (java_print_value_fields): Let the common printing code handle
789         optimized out values.
790         * mips-tdep.c (mips_print_register): Remove special handling of
791         optimized out registers.
792         * opencl-lang.c (lval_func_check_validity): Delete.
793         (lval_func_check_any_valid): Delete.
794         (opencl_value_funcs): Remove check_validity and check_any_valid
795         fields.
796         * p-valprint.c (pascal_object_print_value_fields): Let the common
797         printing code handle optimized out values.
798         * stack.c (read_frame_arg): Remove special handling of optimized
799         out values.  Fetch both VAL and ENTRYVAL before comparing
800         contents.  Adjust to value_available_contents_eq rename.
801         * valprint.c (valprint_check_validity)
802         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
803         (val_print_array_elements): Adjust.
804         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
805         (value_bits_any_optimized_out): New function.
806         (value_entirely_covered_by_range_vector): New function, factored
807         out from value_entirely_unavailable.
808         (value_entirely_unavailable): Reimplement.
809         (value_entirely_optimized_out): New function.
810         (insert_into_bit_range_vector): New function, factored out from
811         mark_value_bits_unavailable.
812         (mark_value_bits_unavailable): Reimplement.
813         (struct ranges_and_idx): New struct.
814         (find_first_range_overlap_and_match): New function, factored out
815         from value_available_contents_bits_eq.
816         (value_available_contents_bits_eq): Rename to ...
817         (value_contents_bits_eq): ... this.  Check both unavailable
818         contents and optimized out contents.
819         (value_available_contents_eq): Rename to ...
820         (value_contents_eq): ... this.
821         (allocate_value_lazy): Remove reference to the old optimized_out
822         boolean.
823         (allocate_optimized_out_value): Use
824         mark_value_bytes_optimized_out.
825         (require_not_optimized_out): Adjust to check whether the
826         optimized_out vec is empty.
827         (ranges_copy_adjusted): New function, factored out from
828         value_contents_copy_raw.
829         (value_contents_copy_raw): Also copy the optimized out ranges.
830         Assert the destination ranges aren't optimized out.
831         (value_contents_copy): Update comment, remove call to
832         require_not_optimized_out.
833         (value_contents_equal): Adjust to check whether the optimized_out
834         vec is empty.
835         (set_value_optimized_out, value_optimized_out_const): Delete.
836         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
837         New functions.
838         (value_entirely_optimized_out, value_bits_valid): Delete.
839         (value_copy): Take a VEC copy of the 'optimized_out' field.
840         (value_primitive_field): Remove special handling of optimized out.
841         (value_fetch_lazy): Assert that lazy values have no unavailable
842         regions.  Use value_bits_any_optimized_out.  Remove some special
843         handling for optimized out values.
844         * value.h: Add intro comment about <optimized out> and
845         <unavailable>.
846         (struct lval_funcs): Remove check_validity and check_any_valid
847         fields.
848         (set_value_optimized_out, value_optimized_out_const): Remove.
849         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
850         New declarations.
851         (value_bits_any_optimized_out): New declaration.
852         (value_bits_valid): Delete declaration.
853         (value_available_contents_eq): Rename to ...
854         (value_contents_eq): ... this, and extend comments.
855
856 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
857
858         Fix -fsanitize=address on unreadable inferior strings.
859         * valprint.c (val_print_string): Fix access before BUFFER.
860
861 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
862
863         * target.c (target_struct_size): Remove.
864         (target_struct_allocsize): Remove.
865         (DEFAULT_ALLOCSIZE): Remove.
866         (target_ops_p): New typedef.
867         (DEF_VEC_P (target_ops_p)): New vector type.
868         (target_structs): Change type to VEC (target_ops_p).
869         (add_target_with_completer): Replace "push" code by VEC_safe_push.
870         (find_default_run_target): Rewrite for loop following changes to
871         target_structs.
872
873 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
874
875         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
876         Adjust code accordingly.  Adjust function description comment.
877
878 2014-08-19  Yao Qi  <yao@codesourcery.com>
879
880         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
881         types.
882
883 2014-08-19  Alan Modra  <amodra@gmail.com>
884
885         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
886         * config.in: Regenerate.
887         * configure: Regenerate.
888
889 2014-08-19  Tom Tromey  <tromey@redhat.com>
890             Gary Benson  <gbenson@redhat.com>
891
892         * common/common-debug.h: New file.
893         * common/common-debug.c: Likewise.
894         * debug.c: Likewise.
895         * Makefile.in (SFILES): Add common/common-debug.c.
896         (HFILES_NO_SRCDIR): Add common/common-debug.h.
897         (COMMON_OBS): Add common-debug.o and debug.o.
898         (common-debug.o): New rule.
899         * common/common-defs.h: Include common-debug.h.
900         * common/agent.c (debug_agent_printf): New function.
901         (DEBUG_AGENT): Redefine.
902         * nat/i386-dregs.c (debug_printf): Undefine.
903
904 2014-08-19  Gary Benson  <gbenson@redhat.com>
905
906         * common/common-defs.h: Include print-utils.h.
907         * utils.h: Do not include print-utils.h.
908
909 2014-08-19  Tom Tromey  <tromey@redhat.com>
910             Gary Benson  <gbenson@redhat.com>
911
912         * common/common-types.h: New file.
913         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
914         * common/common-defs.h: Include common-types.h.
915         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
916         (ULONGEST): Remove.
917
918 2014-08-19  Tom Tromey  <tromey@redhat.com>
919             Gary Benson  <gbenson@redhat.com>
920
921         * common/errors.h: New file.
922         * common/errors.c: Likewise.
923         * Makefile.in (SFILES): Add common/errors.c.
924         (HFILES_NO_SRCDIR): Add common/errors.h.
925         (COMMON_OBS): Add errors.o.
926         (errors.o): New rule.
927         * common/common-defs.h: Include errors.h.
928         * utils.h (perror_with_name, error, verror, warning, vwarning):
929         Don't declare.
930         * common/common-utils.h: (malloc_failure, internal_error):
931         Likewise.
932
933 2014-08-19  Gary Benson  <gbenson@redhat.com>
934
935         * utils.c (internal_vproblem): Always print the message.
936
937 2014-08-18  Doug Evans  <dje@google.com>
938
939         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
940
941 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
942
943         * ada-typeprint.c (type_is_full_subrange_of_target_type):
944         Return 0 if TYPE is dynamic.
945         (print_range): Add handling of dynamic ranges.
946
947 2014-08-18  Keven Boell  <keven.boell@intel.com>
948             Joel Brobecker  <brobecker@adacore.com>
949
950         * gdbtypes.h (struct main_type): Add field "data_location".
951         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
952         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
953         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
954         a dynamic data location.
955         (resolve_dynamic_type): Add DW_AT_data_location handling.
956         (copy_recursive, copy_type): Copy the data_location information
957         when present.
958         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
959         * value.c (value_from_contents_and_address): Add
960         DW_AT_data_location handling.
961
962 2014-08-18  Keven Boell  <keven.boell@intel.com>
963             Joel Brobecker  <brobecker@adacore.com>
964
965         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
966         field "get_object_address".
967         * dwarf2expr.c (execute_stack_op): Add handling for
968         DW_OP_push_object_address.
969         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
970         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
971         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
972         (dwarf_expr_get_obj_addr): New function.
973         (dwarf_expr_ctx_funcs): Add get_object_address field.
974         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
975         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
976         (dwarf2_evaluate_property): Add parameter "address".  Use it.
977         (needs_get_obj_addr): New function.
978         (needs_frame_ctx_funcs): Add get_object_address field.
979         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
980         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
981         (resolve_dynamic_array): Likewise.
982
983 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
984
985         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
986         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
987         fixed value for records and unions for which some GNAT encodings
988         are present.
989
990 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
991
992         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
993         rewrite to avoid "else if" and "else" constructs.  Should be
994         a no-op in practice.
995
996 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
997
998         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
999         of lexical block.
1000
1001 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
1002
1003         PR c++/17132
1004         * eval.c: Update all calls to find_overload_match.
1005         * valarith.c: Likewise.
1006         (value_user_defined_cpp_op, value_user_defined_op): New
1007         argument NOSIDE.  Update all callers.
1008         * valops.c (find_overload_match): New argument NOSIDE.
1009         * value.h (find_overload_match): Update signature.
1010
1011 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
1012
1013         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1014         'items' methods instead of 'iteritems' method on dictionaries.
1015
1016 2014-08-15  Doug Evans  <dje@google.com>
1017
1018         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1019         closer to use.
1020
1021 2014-08-15  Doug Evans  <dje@google.com>
1022
1023         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1024
1025 2014-08-15  Doug Evans  <dje@google.com>
1026
1027         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1028
1029 2014-08-15  Doug Evans  <dje@google.com>
1030
1031         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1032         unused.
1033
1034 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
1035
1036         * dcache.h: Include target.h, to avoid compile time warnings.
1037
1038 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
1039
1040         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
1041         frame_info" partial declaration.
1042         * gdbarch.h: Regenerate.
1043
1044 2014-08-15  Yao Qi  <yao@codesourcery.com>
1045
1046         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1047         Add parameter 'decode_for_pst_p'.  Callers update.
1048
1049 2014-08-13  Yao Qi  <yao@codesourcery.com>
1050
1051         PR build/17104
1052         * configure.ac: Use local variable 'pos'.
1053         * configure: Regenerated.
1054
1055 2014-08-11  Doug Evans  <dje@google.com>
1056
1057         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1058         message, it is redundant with "Reading symbols from ..." message.
1059
1060 2014-08-10  Doug Evans  <xdje42@gmail.com>
1061
1062         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1063
1064 2014-08-09  Yao Qi  <yao@codesourcery.com>
1065
1066         PR remote/9053
1067         * remote.c (remote_xfer_partial): Remove dead code.
1068
1069 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1070
1071         * ia64-linux-tdep.c: Include "regset.h".
1072         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1073         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1074         (ia64_linux_supply_fpregset): New function.
1075         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1076         (ia64_linux_regset_from_core_section): New function.
1077         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1078         method.
1079
1080 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1081
1082         * m68klinux-tdep.c: Include "regset.h".
1083         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1084         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1085         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1086         (m68k_linux_regset_from_core_section): New function.
1087         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1088         method.
1089
1090 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1091
1092         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1093         function.  Move logic to...
1094         (tilegx_linux_regmap): ... this new register map.
1095         (tilegx_linux_regset): Refer to register map, replace supply
1096         method by regcache_supply_regset, and add collect method.
1097         * tilegx-tdep.h (enum tilegx_regnum): New enum value
1098         TILEGX_FIRST_EASY_REGNUM.
1099
1100 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1101
1102         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1103         that calls regcache_supply_regset and handles the EPC register
1104         separately.  Move main logic to...
1105         (score7_linux_gregmap): ... this new register map.
1106         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1107         (score7_linux_gregset): Refer to register map.  Add collect method.
1108         (score7_linux_regset_from_core_section): Replace
1109         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1110         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1111         (struct regset): Delete unused forward declaraction.
1112         (struct pt_regs): Delete structure definition.
1113         (elf_gregset_t): Delete typedef.
1114
1115 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1116
1117         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1118         (nios2_core_regset): Add collect method.
1119
1120 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1121
1122         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1123         platform-independent and don't write to read-only input buffer.
1124         (m32r_linux_collect_gregset): New function.
1125         (m32r_linux_gregset): Add collect method.
1126
1127 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1128
1129         * hppa-linux-tdep.c (greg_map): Rename to...
1130         (hppa_linux_gregmap): ... this.  Also convert to
1131         regcache_map_entry format.
1132         (hppa_linux_supply_regset): Delete function.
1133         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
1134         (hppa_linux_fpregmap): ... this new register map.
1135         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1136         register map, replace supply method by regcache_supply_regset, and
1137         add collect method regcache_collect_regset.
1138
1139 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1140
1141         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1142         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1143         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1144         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1145         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1146         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1147         (frv_linux_supply_gregset): Replace main logic by call to
1148         regcache_supply_regset, but keep clearing gr32-gr63.
1149         (frv_linux_supply_fpregset): Delete function.
1150         (frv_linux_gregset): Refer to appropriate register map and add
1151         regcache_collect_regset as the collect method.
1152         (frv_linux_fpregset): Likewise.  Also exchange the supply method
1153         by regcache_supply_regset.
1154
1155 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1156
1157         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1158         by call to alpha_supply_int_regs.
1159         (alpha_linux_collect_gregset): New function.
1160         (alpha_linux_supply_fpregset): Replace logic by call to
1161         alpha_supply_fp_regs.
1162         (alpha_linux_collect_fpregset): New function.
1163         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1164
1165 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1166
1167         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1168         by call to regcache_collect_regset.
1169         (supply_gregset, supply_fpregset): Call regcache_supply_regset
1170         instead of aarch64_linux_supply_gregset/_fpregset.
1171         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1172         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1173         header file instead.
1174         (aarch64_linux_supply_gregset, supply_gregset_from_core)
1175         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1176         functions.  Move logic to ...
1177         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1178         register maps.
1179         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1180         refer to new register maps, replace *_regset_from_core by
1181         regcache_supply_regset, and also use regcache_collect_regset.
1182         * aarch64-linux-tdep.h: Include "regset.h".
1183         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1184         Delete prototypes.
1185         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1186         macros, moved from C source file.
1187         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1188         variable declarations.
1189
1190 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1191
1192         * s390-linux-nat.c: Include "regset.h".
1193         (regmap_gregset): Delete macro.
1194         (s390_64_regmap_gregset): New register map for
1195         regcache_supply/_collect_regset.
1196         (s390_64_gregset): New regset.
1197         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1198         (regmap_fpregset): Delete macro.
1199         (s390_native_supply, s390_native_collect): Delete functions.
1200         (supply_gregset, fill_gregset): Replace s390-specific regmap
1201         handling by a call to regcache_supply/_collect_regset.
1202         (supply_fpregset, fill_fpregset): Call regcache_supply/
1203         _collect_regset instead of s390_native_supply/_collect.
1204         (fetch_regset, store_regset): Likewise.  Also change the last
1205         parameter to a regset instead of a regmap.
1206         (s390_linux_fetch_inferior_registers)
1207         (390_linux_store_inferior_registers): Adjust last parameter in
1208         calls to fetch_regset and store_regset.
1209         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1210         (s390_gregmap): ... this.  Also make static const and convert to
1211         regcache_map_entry format.
1212         (s390x_regmap_gregset): Delete.
1213         (s390_regmap_fpregset): Rename to...
1214         (s390_fpregmap): ... this.  Make static const and convert to
1215         regcache_map_entry format.
1216         (s390_regmap_upper, s390_regmap_last_break)
1217         (s390x_regmap_last_break, s390_regmap_system_call)
1218         (s390_regmap_tdb): Likewise.
1219         (s390_supply_regset, s390_collect_regset): Remove functions.
1220         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1221         s390_supply_regset.
1222         (s390_gregset, s390_fpregset, s390_upper_regset)
1223         (s390_last_break_regset, s390x_last_break_regset)
1224         (s390_system_call_regset, s390_tdb_regset): Make global and
1225         replace s390_supply/_collect_regset by regcache_supply/
1226         _collect_regset.
1227         (s390x_gregset): Delete.
1228         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1229         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1230         (s390_regmap_fpregset, s390_regmap_last_break)
1231         (s390x_regmap_last_break, s390_regmap_system_call)
1232         (s390_regmap_tdb): Delete global variable declarations.
1233         (s390_gregset, s390_fpregset, s390_last_break_regset)
1234         (s390x_last_break_regset, s390_system_call_regset)
1235         (s390_tdb_regset): New global variable declarations.
1236
1237 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1238
1239         * regcache.c: Include "regset.h".
1240         (regcache_transfer_regset): New local function.
1241         (regcache_supply_regset, regcache_collect_regset): New functions.
1242         * regcache.h (struct regcache_map_entry): New structure.
1243         (REGCACHE_MAP_SKIP): New enum value.
1244         (regcache_supply_regset, regcache_collect_regset): New prototypes.
1245
1246 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1247
1248         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1249         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1250         (ppc_linux_collect_gregset ): Likewise.
1251         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1252         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1253         (ppc_collect_vrregset): Likewise.
1254         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1255         Likewise.
1256
1257 2014-08-07  Yao Qi  <yao@codesourcery.com>
1258
1259         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1260         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1261         * remote.c (remote_read_bytes): Likewise.
1262
1263 2014-08-07  Yao Qi  <yao@codesourcery.com>
1264
1265         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1266
1267 2014-08-07  Yao Qi  <yao@codesourcery.com>
1268
1269         PR remote/17230
1270         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1271         TARGET_XFER_OK instead of 0.
1272
1273 2014-08-07  Gary Benson  <gbenson@redhat.com>
1274
1275         * common/common-defs.h: Include errno.h.
1276         * defs.h: Do not include errno.h.
1277         * ada-typeprint.c: Likewise.
1278         * c-typeprint.c: Likewise.
1279         * core-regset.c: Likewise.
1280         * corefile.c: Likewise.
1281         * corelow.c: Likewise.
1282         * event-loop.c: Likewise.
1283         * f-typeprint.c: Likewise.
1284         * gnu-nat.c: Likewise.
1285         * go32-nat.c: Likewise.
1286         * i386gnu-nat.c: Likewise.
1287         * m2-typeprint.c: Likewise.
1288         * nat/linux-btrace.c: Likewise.
1289         * p-typeprint.c: Likewise.
1290         * procfs.c: Likewise.
1291         * remote-sim.c: Likewise.
1292         * rs6000-nat.c: Likewise.
1293         * target.c: Likewise.
1294         * typeprint.c: Likewise.
1295         * ui-file.c: Likewise.
1296         * valops.c: Likewise.
1297         * valprint.c: Likewise.
1298
1299 2014-08-07  Gary Benson  <gbenson@redhat.com>
1300
1301         * common/common-defs.h: Include string.h.
1302         * aarch64-tdep.c: Do not include string.h.
1303         * ada-exp.y: Likewise.
1304         * ada-lang.c: Likewise.
1305         * ada-lex.l: Likewise.
1306         * ada-typeprint.c: Likewise.
1307         * ada-valprint.c: Likewise.
1308         * aix-thread.c: Likewise.
1309         * alpha-linux-tdep.c: Likewise.
1310         * alpha-mdebug-tdep.c: Likewise.
1311         * alpha-nat.c: Likewise.
1312         * alpha-osf1-tdep.c: Likewise.
1313         * alpha-tdep.c: Likewise.
1314         * alphanbsd-tdep.c: Likewise.
1315         * amd64-dicos-tdep.c: Likewise.
1316         * amd64-linux-tdep.c: Likewise.
1317         * amd64-nat.c: Likewise.
1318         * amd64-sol2-tdep.c: Likewise.
1319         * amd64fbsd-tdep.c: Likewise.
1320         * amd64obsd-tdep.c: Likewise.
1321         * arch-utils.c: Likewise.
1322         * arm-linux-nat.c: Likewise.
1323         * arm-linux-tdep.c: Likewise.
1324         * arm-tdep.c: Likewise.
1325         * arm-wince-tdep.c: Likewise.
1326         * armbsd-tdep.c: Likewise.
1327         * armnbsd-nat.c: Likewise.
1328         * armnbsd-tdep.c: Likewise.
1329         * armobsd-tdep.c: Likewise.
1330         * avr-tdep.c: Likewise.
1331         * ax-gdb.c: Likewise.
1332         * ax-general.c: Likewise.
1333         * bcache.c: Likewise.
1334         * bfin-tdep.c: Likewise.
1335         * breakpoint.c: Likewise.
1336         * build-id.c: Likewise.
1337         * buildsym.c: Likewise.
1338         * c-exp.y: Likewise.
1339         * c-lang.c: Likewise.
1340         * c-typeprint.c: Likewise.
1341         * c-valprint.c: Likewise.
1342         * charset.c: Likewise.
1343         * cli-out.c: Likewise.
1344         * cli/cli-cmds.c: Likewise.
1345         * cli/cli-decode.c: Likewise.
1346         * cli/cli-dump.c: Likewise.
1347         * cli/cli-interp.c: Likewise.
1348         * cli/cli-logging.c: Likewise.
1349         * cli/cli-script.c: Likewise.
1350         * cli/cli-setshow.c: Likewise.
1351         * cli/cli-utils.c: Likewise.
1352         * coffread.c: Likewise.
1353         * common/agent.c: Likewise.
1354         * common/buffer.c: Likewise.
1355         * common/buffer.h: Likewise.
1356         * common/common-utils.c: Likewise.
1357         * common/filestuff.c: Likewise.
1358         * common/filestuff.c: Likewise.
1359         * common/format.c: Likewise.
1360         * common/print-utils.c: Likewise.
1361         * common/rsp-low.c: Likewise.
1362         * common/signals.c: Likewise.
1363         * common/vec.h: Likewise.
1364         * common/xml-utils.c: Likewise.
1365         * core-regset.c: Likewise.
1366         * corefile.c: Likewise.
1367         * corelow.c: Likewise.
1368         * cp-abi.c: Likewise.
1369         * cp-name-parser.y: Likewise.
1370         * cp-support.c: Likewise.
1371         * cp-valprint.c: Likewise.
1372         * cris-tdep.c: Likewise.
1373         * d-exp.y: Likewise.
1374         * darwin-nat.c: Likewise.
1375         * dbxread.c: Likewise.
1376         * dcache.c: Likewise.
1377         * demangle.c: Likewise.
1378         * dicos-tdep.c: Likewise.
1379         * disasm.c: Likewise.
1380         * doublest.c: Likewise.
1381         * dsrec.c: Likewise.
1382         * dummy-frame.c: Likewise.
1383         * dwarf2-frame.c: Likewise.
1384         * dwarf2loc.c: Likewise.
1385         * dwarf2read.c: Likewise.
1386         * elfread.c: Likewise.
1387         * environ.c: Likewise.
1388         * eval.c: Likewise.
1389         * event-loop.c: Likewise.
1390         * exceptions.c: Likewise.
1391         * exec.c: Likewise.
1392         * expprint.c: Likewise.
1393         * f-exp.y: Likewise.
1394         * f-lang.c: Likewise.
1395         * f-typeprint.c: Likewise.
1396         * f-valprint.c: Likewise.
1397         * fbsd-nat.c: Likewise.
1398         * findcmd.c: Likewise.
1399         * findvar.c: Likewise.
1400         * fork-child.c: Likewise.
1401         * frame.c: Likewise.
1402         * frv-linux-tdep.c: Likewise.
1403         * frv-tdep.c: Likewise.
1404         * gdb.c: Likewise.
1405         * gdb_bfd.c: Likewise.
1406         * gdbarch.c: Likewise.
1407         * gdbarch.sh: Likewise.
1408         * gdbtypes.c: Likewise.
1409         * gnu-nat.c: Likewise.
1410         * gnu-v2-abi.c: Likewise.
1411         * gnu-v3-abi.c: Likewise.
1412         * go-exp.y: Likewise.
1413         * go-lang.c: Likewise.
1414         * go32-nat.c: Likewise.
1415         * guile/guile.c: Likewise.
1416         * guile/scm-auto-load.c: Likewise.
1417         * hppa-hpux-tdep.c: Likewise.
1418         * hppa-linux-nat.c: Likewise.
1419         * hppanbsd-tdep.c: Likewise.
1420         * hppaobsd-tdep.c: Likewise.
1421         * i386-cygwin-tdep.c: Likewise.
1422         * i386-dicos-tdep.c: Likewise.
1423         * i386-linux-tdep.c: Likewise.
1424         * i386-nto-tdep.c: Likewise.
1425         * i386-sol2-tdep.c: Likewise.
1426         * i386-tdep.c: Likewise.
1427         * i386bsd-tdep.c: Likewise.
1428         * i386gnu-nat.c: Likewise.
1429         * i386nbsd-tdep.c: Likewise.
1430         * i386obsd-tdep.c: Likewise.
1431         * i387-tdep.c: Likewise.
1432         * ia64-libunwind-tdep.c: Likewise.
1433         * ia64-linux-nat.c: Likewise.
1434         * inf-child.c: Likewise.
1435         * inf-ptrace.c: Likewise.
1436         * inf-ttrace.c: Likewise.
1437         * infcall.c: Likewise.
1438         * infcmd.c: Likewise.
1439         * inflow.c: Likewise.
1440         * infrun.c: Likewise.
1441         * interps.c: Likewise.
1442         * iq2000-tdep.c: Likewise.
1443         * irix5-nat.c: Likewise.
1444         * jv-exp.y: Likewise.
1445         * jv-lang.c: Likewise.
1446         * jv-typeprint.c: Likewise.
1447         * jv-valprint.c: Likewise.
1448         * language.c: Likewise.
1449         * linux-fork.c: Likewise.
1450         * linux-nat.c: Likewise.
1451         * lm32-tdep.c: Likewise.
1452         * m2-exp.y: Likewise.
1453         * m2-typeprint.c: Likewise.
1454         * m32c-tdep.c: Likewise.
1455         * m32r-linux-nat.c: Likewise.
1456         * m32r-linux-tdep.c: Likewise.
1457         * m32r-rom.c: Likewise.
1458         * m32r-tdep.c: Likewise.
1459         * m68hc11-tdep.c: Likewise.
1460         * m68k-tdep.c: Likewise.
1461         * m68kbsd-tdep.c: Likewise.
1462         * m68klinux-nat.c: Likewise.
1463         * m68klinux-tdep.c: Likewise.
1464         * m88k-tdep.c: Likewise.
1465         * machoread.c: Likewise.
1466         * macrocmd.c: Likewise.
1467         * main.c: Likewise.
1468         * mdebugread.c: Likewise.
1469         * mem-break.c: Likewise.
1470         * memattr.c: Likewise.
1471         * memory-map.c: Likewise.
1472         * mep-tdep.c: Likewise.
1473         * mi/mi-cmd-break.c: Likewise.
1474         * mi/mi-cmd-disas.c: Likewise.
1475         * mi/mi-cmd-env.c: Likewise.
1476         * mi/mi-cmd-stack.c: Likewise.
1477         * mi/mi-cmd-var.c: Likewise.
1478         * mi/mi-cmds.c: Likewise.
1479         * mi/mi-console.c: Likewise.
1480         * mi/mi-getopt.c: Likewise.
1481         * mi/mi-interp.c: Likewise.
1482         * mi/mi-main.c: Likewise.
1483         * mi/mi-parse.c: Likewise.
1484         * microblaze-rom.c: Likewise.
1485         * microblaze-tdep.c: Likewise.
1486         * mingw-hdep.c: Likewise.
1487         * minidebug.c: Likewise.
1488         * minsyms.c: Likewise.
1489         * mips-irix-tdep.c: Likewise.
1490         * mips-linux-tdep.c: Likewise.
1491         * mips-tdep.c: Likewise.
1492         * mips64obsd-tdep.c: Likewise.
1493         * mipsnbsd-tdep.c: Likewise.
1494         * mipsread.c: Likewise.
1495         * mn10300-linux-tdep.c: Likewise.
1496         * mn10300-tdep.c: Likewise.
1497         * monitor.c: Likewise.
1498         * moxie-tdep.c: Likewise.
1499         * mt-tdep.c: Likewise.
1500         * nat/linux-btrace.c: Likewise.
1501         * nat/linux-osdata.c: Likewise.
1502         * nat/linux-procfs.c: Likewise.
1503         * nat/linux-ptrace.c: Likewise.
1504         * nat/linux-waitpid.c: Likewise.
1505         * nbsd-tdep.c: Likewise.
1506         * nios2-linux-tdep.c: Likewise.
1507         * nto-procfs.c: Likewise.
1508         * nto-tdep.c: Likewise.
1509         * objc-lang.c: Likewise.
1510         * objfiles.c: Likewise.
1511         * opencl-lang.c: Likewise.
1512         * osabi.c: Likewise.
1513         * osdata.c: Likewise.
1514         * p-exp.y: Likewise.
1515         * p-lang.c: Likewise.
1516         * p-typeprint.c: Likewise.
1517         * parse.c: Likewise.
1518         * posix-hdep.c: Likewise.
1519         * ppc-linux-nat.c: Likewise.
1520         * ppc-sysv-tdep.c: Likewise.
1521         * ppcfbsd-tdep.c: Likewise.
1522         * ppcnbsd-tdep.c: Likewise.
1523         * ppcobsd-tdep.c: Likewise.
1524         * printcmd.c: Likewise.
1525         * procfs.c: Likewise.
1526         * prologue-value.c: Likewise.
1527         * python/py-auto-load.c: Likewise.
1528         * python/py-gdb-readline.c: Likewise.
1529         * ravenscar-thread.c: Likewise.
1530         * regcache.c: Likewise.
1531         * registry.c: Likewise.
1532         * remote-fileio.c: Likewise.
1533         * remote-m32r-sdi.c: Likewise.
1534         * remote-mips.c: Likewise.
1535         * remote-notif.c: Likewise.
1536         * remote-sim.c: Likewise.
1537         * remote.c: Likewise.
1538         * reverse.c: Likewise.
1539         * rs6000-aix-tdep.c: Likewise.
1540         * ser-base.c: Likewise.
1541         * ser-go32.c: Likewise.
1542         * ser-mingw.c: Likewise.
1543         * ser-pipe.c: Likewise.
1544         * ser-tcp.c: Likewise.
1545         * ser-unix.c: Likewise.
1546         * serial.c: Likewise.
1547         * sh-tdep.c: Likewise.
1548         * sh64-tdep.c: Likewise.
1549         * shnbsd-tdep.c: Likewise.
1550         * skip.c: Likewise.
1551         * sol-thread.c: Likewise.
1552         * solib-dsbt.c: Likewise.
1553         * solib-frv.c: Likewise.
1554         * solib-osf.c: Likewise.
1555         * solib-som.c: Likewise.
1556         * solib-spu.c: Likewise.
1557         * solib-target.c: Likewise.
1558         * solib.c: Likewise.
1559         * somread.c: Likewise.
1560         * source.c: Likewise.
1561         * sparc-nat.c: Likewise.
1562         * sparc-sol2-tdep.c: Likewise.
1563         * sparc-tdep.c: Likewise.
1564         * sparc64-tdep.c: Likewise.
1565         * sparc64fbsd-tdep.c: Likewise.
1566         * sparc64nbsd-tdep.c: Likewise.
1567         * sparcnbsd-tdep.c: Likewise.
1568         * spu-linux-nat.c: Likewise.
1569         * spu-multiarch.c: Likewise.
1570         * spu-tdep.c: Likewise.
1571         * stabsread.c: Likewise.
1572         * stack.c: Likewise.
1573         * std-regs.c: Likewise.
1574         * symfile.c: Likewise.
1575         * symmisc.c: Likewise.
1576         * symtab.c: Likewise.
1577         * target.c: Likewise.
1578         * thread.c: Likewise.
1579         * tilegx-linux-nat.c: Likewise.
1580         * tilegx-tdep.c: Likewise.
1581         * top.c: Likewise.
1582         * tracepoint.c: Likewise.
1583         * tui/tui-command.c: Likewise.
1584         * tui/tui-data.c: Likewise.
1585         * tui/tui-disasm.c: Likewise.
1586         * tui/tui-file.c: Likewise.
1587         * tui/tui-layout.c: Likewise.
1588         * tui/tui-out.c: Likewise.
1589         * tui/tui-regs.c: Likewise.
1590         * tui/tui-source.c: Likewise.
1591         * tui/tui-stack.c: Likewise.
1592         * tui/tui-win.c: Likewise.
1593         * tui/tui-windata.c: Likewise.
1594         * tui/tui-winsource.c: Likewise.
1595         * typeprint.c: Likewise.
1596         * ui-file.c: Likewise.
1597         * ui-out.c: Likewise.
1598         * user-regs.c: Likewise.
1599         * utils.c: Likewise.
1600         * v850-tdep.c: Likewise.
1601         * valarith.c: Likewise.
1602         * valops.c: Likewise.
1603         * valprint.c: Likewise.
1604         * value.c: Likewise.
1605         * varobj.c: Likewise.
1606         * vax-tdep.c: Likewise.
1607         * vaxnbsd-tdep.c: Likewise.
1608         * vaxobsd-tdep.c: Likewise.
1609         * windows-nat.c: Likewise.
1610         * xcoffread.c: Likewise.
1611         * xml-support.c: Likewise.
1612         * xstormy16-tdep.c: Likewise.
1613         * xtensa-linux-nat.c: Likewise.
1614
1615 2014-08-07  Gary Benson  <gbenson@redhat.com>
1616
1617         * common/common-defs.h: Include gdb_assert.h.
1618         * aarch64-tdep.c: Do not include gdb_assert.h.
1619         * addrmap.c: Likewise.
1620         * aix-thread.c: Likewise.
1621         * alpha-linux-tdep.c: Likewise.
1622         * alpha-mdebug-tdep.c: Likewise.
1623         * alphanbsd-tdep.c: Likewise.
1624         * amd64-nat.c: Likewise.
1625         * amd64-tdep.c: Likewise.
1626         * amd64bsd-nat.c: Likewise.
1627         * amd64fbsd-nat.c: Likewise.
1628         * amd64fbsd-tdep.c: Likewise.
1629         * amd64nbsd-nat.c: Likewise.
1630         * amd64nbsd-tdep.c: Likewise.
1631         * amd64obsd-nat.c: Likewise.
1632         * amd64obsd-tdep.c: Likewise.
1633         * arch-utils.c: Likewise.
1634         * arm-tdep.c: Likewise.
1635         * armbsd-tdep.c: Likewise.
1636         * auxv.c: Likewise.
1637         * bcache.c: Likewise.
1638         * bfin-tdep.c: Likewise.
1639         * blockframe.c: Likewise.
1640         * breakpoint.c: Likewise.
1641         * bsd-kvm.c: Likewise.
1642         * bsd-uthread.c: Likewise.
1643         * buildsym.c: Likewise.
1644         * c-exp.y: Likewise.
1645         * c-lang.c: Likewise.
1646         * charset.c: Likewise.
1647         * cleanups.c: Likewise.
1648         * cli-out.c: Likewise.
1649         * cli/cli-decode.c: Likewise.
1650         * cli/cli-dump.c: Likewise.
1651         * cli/cli-logging.c: Likewise.
1652         * cli/cli-script.c: Likewise.
1653         * cli/cli-utils.c: Likewise.
1654         * coffread.c: Likewise.
1655         * common/common-utils.c: Likewise.
1656         * common/queue.h: Likewise.
1657         * common/signals.c: Likewise.
1658         * common/vec.h: Likewise.
1659         * complaints.c: Likewise.
1660         * completer.c: Likewise.
1661         * corelow.c: Likewise.
1662         * cp-abi.c: Likewise.
1663         * cp-name-parser.y: Likewise.
1664         * cp-namespace.c: Likewise.
1665         * cp-support.c: Likewise.
1666         * cris-tdep.c: Likewise.
1667         * dbxread.c: Likewise.
1668         * dictionary.c: Likewise.
1669         * doublest.c: Likewise.
1670         * dsrec.c: Likewise.
1671         * dummy-frame.c: Likewise.
1672         * dwarf2-frame-tailcall.c: Likewise.
1673         * dwarf2-frame.c: Likewise.
1674         * dwarf2expr.c: Likewise.
1675         * dwarf2loc.c: Likewise.
1676         * dwarf2read.c: Likewise.
1677         * eval.c: Likewise.
1678         * event-loop.c: Likewise.
1679         * exceptions.c: Likewise.
1680         * expprint.c: Likewise.
1681         * f-valprint.c: Likewise.
1682         * fbsd-nat.c: Likewise.
1683         * findvar.c: Likewise.
1684         * frame-unwind.c: Likewise.
1685         * frame.c: Likewise.
1686         * frv-tdep.c: Likewise.
1687         * gcore.c: Likewise.
1688         * gdb-dlfcn.c: Likewise.
1689         * gdb_bfd.c: Likewise.
1690         * gdbarch.c: Likewise.
1691         * gdbarch.sh: Likewise.
1692         * gdbtypes.c: Likewise.
1693         * gnu-nat.c: Likewise.
1694         * gnu-v3-abi.c: Likewise.
1695         * go-lang.c: Likewise.
1696         * guile/scm-exception.c: Likewise.
1697         * guile/scm-gsmob.c: Likewise.
1698         * guile/scm-lazy-string.c: Likewise.
1699         * guile/scm-math.c: Likewise.
1700         * guile/scm-pretty-print.c: Likewise.
1701         * guile/scm-safe-call.c: Likewise.
1702         * guile/scm-utils.c: Likewise.
1703         * guile/scm-value.c: Likewise.
1704         * h8300-tdep.c: Likewise.
1705         * hppa-hpux-nat.c: Likewise.
1706         * hppa-tdep.c: Likewise.
1707         * hppanbsd-tdep.c: Likewise.
1708         * hppaobsd-tdep.c: Likewise.
1709         * i386-darwin-nat.c: Likewise.
1710         * i386-darwin-tdep.c: Likewise.
1711         * i386-nto-tdep.c: Likewise.
1712         * i386-tdep.c: Likewise.
1713         * i386bsd-nat.c: Likewise.
1714         * i386fbsd-tdep.c: Likewise.
1715         * i386gnu-nat.c: Likewise.
1716         * i386nbsd-tdep.c: Likewise.
1717         * i386obsd-tdep.c: Likewise.
1718         * i387-tdep.c: Likewise.
1719         * ia64-libunwind-tdep.c: Likewise.
1720         * ia64-tdep.c: Likewise.
1721         * inf-ptrace.c: Likewise.
1722         * inf-ttrace.c: Likewise.
1723         * infcall.c: Likewise.
1724         * infcmd.c: Likewise.
1725         * infrun.c: Likewise.
1726         * inline-frame.c: Likewise.
1727         * interps.c: Likewise.
1728         * jv-lang.c: Likewise.
1729         * jv-typeprint.c: Likewise.
1730         * linux-fork.c: Likewise.
1731         * linux-nat.c: Likewise.
1732         * linux-thread-db.c: Likewise.
1733         * m32c-tdep.c: Likewise.
1734         * m32r-linux-nat.c: Likewise.
1735         * m32r-tdep.c: Likewise.
1736         * m68k-tdep.c: Likewise.
1737         * m68kbsd-nat.c: Likewise.
1738         * m68kbsd-tdep.c: Likewise.
1739         * m88k-tdep.c: Likewise.
1740         * machoread.c: Likewise.
1741         * macroexp.c: Likewise.
1742         * macrotab.c: Likewise.
1743         * maint.c: Likewise.
1744         * mdebugread.c: Likewise.
1745         * memory-map.c: Likewise.
1746         * mep-tdep.c: Likewise.
1747         * mi/mi-common.c: Likewise.
1748         * microblaze-tdep.c: Likewise.
1749         * mingw-hdep.c: Likewise.
1750         * mips-linux-nat.c: Likewise.
1751         * mips-linux-tdep.c: Likewise.
1752         * mips-tdep.c: Likewise.
1753         * mips64obsd-tdep.c: Likewise.
1754         * mipsnbsd-tdep.c: Likewise.
1755         * mn10300-linux-tdep.c: Likewise.
1756         * mn10300-tdep.c: Likewise.
1757         * moxie-tdep.c: Likewise.
1758         * mt-tdep.c: Likewise.
1759         * nat/linux-btrace.c: Likewise.
1760         * nat/linux-osdata.c: Likewise.
1761         * nat/linux-ptrace.c: Likewise.
1762         * nat/mips-linux-watch.c: Likewise.
1763         * nios2-linux-tdep.c: Likewise.
1764         * nios2-tdep.c: Likewise.
1765         * objc-lang.c: Likewise.
1766         * objfiles.c: Likewise.
1767         * obsd-nat.c: Likewise.
1768         * opencl-lang.c: Likewise.
1769         * osabi.c: Likewise.
1770         * parse.c: Likewise.
1771         * ppc-linux-nat.c: Likewise.
1772         * ppc-sysv-tdep.c: Likewise.
1773         * ppcfbsd-nat.c: Likewise.
1774         * ppcfbsd-tdep.c: Likewise.
1775         * ppcnbsd-nat.c: Likewise.
1776         * ppcnbsd-tdep.c: Likewise.
1777         * ppcobsd-nat.c: Likewise.
1778         * ppcobsd-tdep.c: Likewise.
1779         * printcmd.c: Likewise.
1780         * procfs.c: Likewise.
1781         * prologue-value.c: Likewise.
1782         * psymtab.c: Likewise.
1783         * python/py-lazy-string.c: Likewise.
1784         * python/py-value.c: Likewise.
1785         * regcache.c: Likewise.
1786         * reggroups.c: Likewise.
1787         * registry.c: Likewise.
1788         * remote-sim.c: Likewise.
1789         * remote.c: Likewise.
1790         * rs6000-aix-tdep.c: Likewise.
1791         * rs6000-tdep.c: Likewise.
1792         * s390-linux-tdep.c: Likewise.
1793         * score-tdep.c: Likewise.
1794         * ser-base.c: Likewise.
1795         * ser-mingw.c: Likewise.
1796         * sh-tdep.c: Likewise.
1797         * sh64-tdep.c: Likewise.
1798         * solib-darwin.c: Likewise.
1799         * solib-spu.c: Likewise.
1800         * solib-svr4.c: Likewise.
1801         * source.c: Likewise.
1802         * sparc-nat.c: Likewise.
1803         * sparc-sol2-tdep.c: Likewise.
1804         * sparc-tdep.c: Likewise.
1805         * sparc64-sol2-tdep.c: Likewise.
1806         * sparc64-tdep.c: Likewise.
1807         * sparc64fbsd-tdep.c: Likewise.
1808         * sparc64nbsd-tdep.c: Likewise.
1809         * sparc64obsd-tdep.c: Likewise.
1810         * sparcnbsd-tdep.c: Likewise.
1811         * sparcobsd-tdep.c: Likewise.
1812         * spu-multiarch.c: Likewise.
1813         * spu-tdep.c: Likewise.
1814         * stabsread.c: Likewise.
1815         * stack.c: Likewise.
1816         * symfile.c: Likewise.
1817         * symtab.c: Likewise.
1818         * target-descriptions.c: Likewise.
1819         * target-memory.c: Likewise.
1820         * target.c: Likewise.
1821         * tic6x-linux-tdep.c: Likewise.
1822         * tic6x-tdep.c: Likewise.
1823         * tilegx-linux-nat.c: Likewise.
1824         * tilegx-tdep.c: Likewise.
1825         * top.c: Likewise.
1826         * tramp-frame.c: Likewise.
1827         * tui/tui-out.c: Likewise.
1828         * tui/tui-winsource.c: Likewise.
1829         * ui-out.c: Likewise.
1830         * user-regs.c: Likewise.
1831         * utils.c: Likewise.
1832         * v850-tdep.c: Likewise.
1833         * valops.c: Likewise.
1834         * value.c: Likewise.
1835         * varobj.c: Likewise.
1836         * vax-nat.c: Likewise.
1837         * xml-syscall.c: Likewise.
1838         * xml-tdesc.c: Likewise.
1839         * xstormy16-tdep.c: Likewise.
1840         * xtensa-linux-nat.c: Likewise.
1841         * xtensa-tdep.c: Likewise.
1842
1843 2014-08-07  Gary Benson  <gbenson@redhat.com>
1844
1845         * common/common-defs.h: Include common-utils.h.
1846         * defs.h: Do not include common-utils.h.
1847         * common/gdb_assert.h: Likewise.
1848         * darwin-nat.h: Likewise.
1849         * nat/linux-btrace.c: Likewise.
1850         * target/waitstatus.h: Likewise.
1851
1852 2014-08-07  Gary Benson  <gbenson@redhat.com>
1853
1854         * common/common-defs.h: Include ptid.h.
1855         * defs.h: Do not include ptid.h.
1856         * inferior.h: Likewise.
1857         * infrun.h: Likewise.
1858         * nat/linux-btrace.h: Likewise.
1859         * nat/linux-osdata.h: Likewise.
1860         * target/waitstatus.h: Likewise.
1861
1862 2014-08-07  Gary Benson  <gbenson@redhat.com>
1863
1864         * common/common-defs.h: Include gdb_locale.h.
1865         * defs.h: Do not include gdb_locale.h.
1866
1867 2014-08-07  Gary Benson  <gbenson@redhat.com>
1868
1869         * common/common-defs.h: Include gdb/signals.h.
1870         * defs.h: Do not include gdb/signals.h.
1871
1872 2014-08-07  Gary Benson  <gbenson@redhat.com>
1873
1874         * common/common-defs.h: Include pathmax.h.
1875         * defs.h: Do not include pathmax.h.
1876
1877 2014-08-07  Gary Benson  <gbenson@redhat.com>
1878
1879         * common/common-defs.h: Include libiberty.h.
1880         * defs.h: Do not include libiberty.h.
1881         * common/queue.h: Likewise.
1882         * cp-name-parser.y: Likewise.
1883         * mi/mi-cmd-catch.c: Likewise.
1884         * python/python.c: Likewise.
1885
1886 2014-08-07  Gary Benson  <gbenson@redhat.com>
1887
1888         * common/common-defs.h: Include ansidecl.h.
1889         * defs.h: Do not include ansidecl.h.
1890         * common/buffer.h: Likewise.
1891         * common/common-utils.h: Likewise.
1892
1893 2014-08-07  Gary Benson  <gbenson@redhat.com>
1894
1895         * common/common-defs.h: Include stddef.h.
1896         * defs.h: Do not include stddef.h.
1897         * common/common-utils.h: Likewise.
1898         * amd64fbsd-nat.c: Likewise.
1899         * bcache.c: Likewise.
1900         * charset.c: Likewise.
1901         * common/buffer.h: Likewise.
1902         * common/vec.h: Likewise.
1903         * i386bsd-nat.c: Likewise.
1904         * nat/linux-btrace.h: Likewise.
1905         * ppcfbsd-nat.c: Likewise.
1906         * ppcnbsd-tdep.h: Likewise.
1907         * ppcobsd-nat.c: Likewise.
1908         * ppcobsd-tdep.h: Likewise.
1909         * python/py-gdb-readline.c: Likewise.
1910
1911 2014-08-07  Gary Benson  <gbenson@redhat.com>
1912
1913         * common/common-defs.h: Include stdarg.h.
1914         * defs.h: Do not include stdarg.h.
1915         * ada-lang.c: Likewise.
1916         * common/common-utils.h: Likewise.
1917         * guile/scm-string.c: Likewise.
1918         * guile/scm-utils.c: Likewise.
1919         * m32c-tdep.c: Likewise.
1920
1921 2014-08-07  Gary Benson  <gbenson@redhat.com>
1922
1923         * common/common-defs.h: Include stdlib.h.
1924         * defs.h: Do not include stdlib.h.
1925         * addrmap.c: Likewise.
1926         * bcache.c: Likewise.
1927         * common/buffer.c: Likewise.
1928         * common/common-utils.c: Likewise.
1929         * cp-name-parser.y: Likewise.
1930         * go32-nat.c: Likewise.
1931         * mn10300-linux-tdep.c: Likewise.
1932         * nat/linux-osdata.c: Likewise.
1933         * tui/tui.c: Likewise.
1934         * windows-nat.c: Likewise.
1935
1936 2014-08-07  Gary Benson  <gbenson@redhat.com>
1937
1938         * common/common-defs.h: Include stdio.h.
1939         * defs.h: Do not include stdio.h.
1940         * ada-lang.c: Likewise.
1941         * common/buffer.c: Likewise.
1942         * common/common-utils.c: Likewise.
1943         * cp-name-parser.y: Likewise.
1944         * gnu-nat.c: Likewise.
1945         * go32-nat.c: Likewise.
1946         * i386gnu-nat.c: Likewise.
1947         * proc-api.c: Likewise.
1948         * proc-events.c: Likewise.
1949         * proc-flags.c: Likewise.
1950         * proc-why.c: Likewise.
1951         * python/python-internal.h: Likewise.
1952         * target-memory.c: Likewise.
1953         * tui/tui-io.c: Likewise.
1954         * tui/tui.c: Likewise.
1955
1956 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
1957
1958         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1959         (scan_dyntag_auxv): Same.
1960
1961 2014-08-06  Yao Qi  <yao@codesourcery.com>
1962
1963         * amd64-linux-nat.c: Remove duplicated include
1964         "x86-linux-nat.h".
1965         * i386-linux-nat.c: Likewise.
1966
1967 2014-08-06  Yao Qi  <yao@codesourcery.com>
1968
1969         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1970         operand" with "Special opcode" in comments.
1971
1972 2014-08-05  Gary Benson  <gbenson@redhat.com>
1973
1974         * interps.c (initialize_interps): Remove prototype.
1975         (interpreter_initialized): Remove static global.
1976         (interp_add): Do not call initialize_interps.
1977         (initialize_interps): Remove function.
1978
1979 2014-08-05  Gary Benson  <gbenson@redhat.com>
1980
1981         * utils.c (vwarning): Remove spurious va_end.
1982
1983 2014-08-05  Alan Modra  <amodra@gmail.com>
1984
1985         * charset.c (convert_between_encodings): Cast result of obstack_base.
1986         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1987         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1988         (read_unwind_info): Use size_t for some locals.
1989         * jit.c (finalize_symtab): Likewise.
1990         * utils.c (hashtab_obstack_allocate): Likewise.
1991         * symmisc.c (print_objfile_statistics): Update format strings.
1992
1993 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
1994
1995         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1996         (Changes in GDB 7.8): ... here.
1997
1998 2014-08-04  Tom Tromey  <tromey@redhat.com>
1999
2000         * target.c (set_targetdebug): New function.
2001         (initialize_targets): Pass set_targetdebug when creating "set
2002         debug target".
2003
2004 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2005
2006         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2007         if detecting a variable-sized field that is not the last field.
2008         Fix struct type length computation.
2009
2010 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2011
2012         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2013         Add debug trace.
2014
2015 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2016
2017         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2018         Remove "+ 8" offset in computation of CHAIN_VMA.
2019
2020 2014-07-31  Doug Evans  <dje@google.com>
2021
2022         * inflow.c (child_terminal_inferior): Add comment.
2023         (child_terminal_ours_for_output): Add comment.
2024         (child_terminal_ours): Add comment.
2025         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2026         (linux_nat_terminal_ours): Add comment.
2027
2028 2014-07-31  Gary Benson  <gbenson@redhat.com>
2029
2030         * common/btrace-common.h: Do not include defs.h or server.h.
2031         * nat/mips-linux-watch.h: Likewise.
2032         * gdb-dlfcn.h: Do not include defs.h.
2033         * tracefile.h: Likewise.
2034
2035 2014-07-30  Roland McGrath  <mcgrathr@google.com>
2036
2037         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2038
2039 2014-07-30  Tom Tromey  <tromey@redhat.com>
2040
2041         * bsd-kvm.c (bsd_kvm_open): Constify.
2042         * corelow.c (core_open): Constify.
2043         * ctf.c (ctf_open): Constify.
2044         * dbug-rom.c (dbug_open): Constify.
2045         * exec.c (exec_open): Constify.
2046         * m32r-rom.c (m32r_open, mon2000_open): Constify.
2047         * microblaze-rom.c (picobug_open): Constify.
2048         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2049         Constify.
2050         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2051         * record-btrace.c (record_btrace_open): Constify.
2052         * record-full.c (record_full_core_open_1, record_full_open_1)
2053         (record_full_open): Constify.
2054         * remote-m32r-sdi.c (m32r_open): Constify.
2055         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2056         (rockhopper_open, lsi_open): Constify.
2057         * remote-sim.c (gdbsim_open): Constify.
2058         * remote.c (remote_open, extended_remote_open, remote_open_1):
2059         Constify.
2060         * target.h (struct target_ops) <to_open>: Make "arg" const.
2061         * tracefile-tfile.c (tfile_open): Constify.
2062
2063 2014-07-30  Tom Tromey  <tromey@redhat.com>
2064
2065         * breakpoint.c (map_breakpoint_numbers): Update.
2066         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
2067         (get_number_const): New function.
2068         (get_number): Rewrite using get_number_const.
2069         (init_number_or_range): Make "string" const.
2070         (number_is_in_list): Make "list" const.
2071         * cli/cli-utils.h (get_number_const): Declare.
2072         (struct get_number_or_range_state) <string, end_ptr>: Now const.
2073         (init_number_or_range, number_is_in_list): Update.
2074         * printcmd.c (map_display_numbers): Update.
2075         * value.c (value_from_history_ref): Constify.
2076         * value.h (value_from_history_ref): Update.
2077
2078 2014-07-30  Tom Tromey  <tromey@redhat.com>
2079
2080         * corefile.c (hook_type, call_extra_exec_file_hooks)
2081         (specify_exec_file_hook): Constify.
2082         * exec.c (exec_file_attach): Make "filename" const.
2083         * gdbcore.h (deprecated_exec_file_display_hook)
2084         (specify_exec_file_hook, exec_file_attach): Constify.
2085         * main.c (captured_main): Use catch_command_errors_const.
2086
2087 2014-07-30  Tom Tromey  <tromey@redhat.com>
2088
2089         * target.c (open_target): New function.
2090         (add_target_with_completer, add_deprecated_target_alias): Use
2091         set_cmd_sfunc, set_cmd_context.
2092         (debug_to_open): Remove.
2093         (setup_target_debug): Update.
2094
2095 2014-07-30  Yao Qi  <yao@codesourcery.com>
2096
2097         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2098         comments.
2099         * parse.c (exp_iterate): Update comments.
2100
2101 2014-07-30  Gary Benson  <gbenson@redhat.com>
2102
2103         * common/common-defs.h: New file.
2104         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2105         * defs.h: Include common-defs.h.
2106         Do not include config.h or build-gnulib/config.h.
2107
2108 2014-07-30  Gary Benson  <gbenson@redhat.com>
2109
2110         * common/common-utils.h: Do not include config.h.
2111         * nat/linux-btrace.h: Likewise.
2112
2113 2014-07-30  Gary Benson  <gbenson@redhat.com>
2114
2115         * btrace.c: Include defs.h.
2116         * common/ptid.c: Include defs.h or server.h as appropriate.
2117         * nat/mips-linux-watch.c: Likewise.
2118
2119 2014-07-29  Tom Tromey  <tromey@redhat.com>
2120
2121         * target.c (target_is_pushed): Simplify.
2122
2123 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
2124
2125         GDB 7.8 released.
2126
2127 2014-07-29  Yao Qi  <yao@codesourcery.com>
2128
2129         PR gdb/17206
2130         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2131
2132 2014-07-28  Doug Evans  <xdje42@gmail.com>
2133
2134         PR guile/17203
2135         * guile/scm-param.c (pascm_parameter_defined_p): New function.
2136         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
2137         parameters.
2138
2139 2014-07-28  Will Newton  <will.newton@linaro.org>
2140
2141         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2142         (THUMB2_SET_R7_SIGRETURN2): Likewise.
2143         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2144         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2145         (THUMB2_EABI_SYSCALL): Likewise.
2146         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2147         struct tramp_frame.
2148         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2149         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2150
2151 2014-07-27  Doug Evans  <xdje42@gmail.com>
2152
2153         * guile/scm-param.c (pascm_print_param_smob): Fix output.
2154
2155 2014-07-27  Doug Evans  <xdje42@gmail.com>
2156
2157         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2158
2159 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
2160             Doug Evans  <xdje42@gmail.com>
2161
2162         PR guile/17146
2163         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2164         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2165         * configure.ac: Try to use guild to compile an scm file, if it fails
2166         then disable guile support.
2167         * configure: Regenerate.
2168         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2169         GUILE_FILE_LIST.
2170         (GUILE_COMPILED_FILES): New variable.
2171         (GUILE_FILES) Update.
2172         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2173         (stamp-guile): Compile scm files.
2174         * guile/guile.c (boot_guile_support): New function.
2175         (standard_throw_args_p): New function.
2176         (print_standard_throw_error, print_throw_error): New functions.
2177         (handle_boot_error): New function.
2178         (initialize_scheme_side): Rewrite to call boot_guile_support.
2179         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
2180         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2181
2182 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
2183             Doug Evans  <xdje42@gmail.com>
2184
2185         PR guile/17146
2186         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2187         * guile/lib/gdb/support.scm: New file.
2188         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2189         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2190         All uses updated.
2191         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2192         All uses updated.
2193         (%assert-type): Ditto, and renamed to assert-type.
2194         (%exception-print-style): Delete.
2195
2196 2014-07-26  Doug Evans  <xdje42@gmail.com>
2197
2198         PR build/17105
2199         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2200         * configure: Regenerate.
2201         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2202         PYTHON_FILES.
2203         (PYTHON_FILES): New variable.
2204         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2205         (GUILE_FILES): New variable.
2206         (stamp-python, install-python, uninstall-python): Handle empty
2207         file list.
2208         (stamp-guile, install-guile, uninstall-guile): Ditto.
2209
2210 2014-07-26  Doug Evans  <xdje42@gmail.com>
2211
2212         PR guile/17177
2213         * guile/lib/gdb.scm (pretty-printers): Export.
2214         (set-pretty-printers!): Export.
2215         * guile/lib/gdb/printing.scm (gdb module): Update.
2216         (prepend-pretty-printer!, append-pretty-printer!): Update.
2217         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2218         (pretty_printer_list_var): Delete.
2219         (pretty_printer_list): New static global.
2220         (gdbscm_pretty_printers): New function.
2221         (gdbscm_set_pretty_printers_x): New function.
2222         (ppscm_find_pretty_printer_from_gdb): Update.
2223         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2224         (gdbscm_initialize_pretty_printers): Update.
2225
2226 2014-07-26  Doug Evans  <xdje42@gmail.com>
2227
2228         PR 17185
2229         * configure.ac: Add check for header gc/gc.h.
2230         Add check for function setenv.
2231         * configure: Regenerate.
2232         * config.in: Regenerate.
2233         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2234
2235 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
2236
2237         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2238         variation in gdbarch matching.
2239
2240 2014-07-25  Tom Tromey  <tromey@redhat.com>
2241
2242         * exec.c (using_exec_ops): Remove.
2243         (exec_close_1): Update.  Remove extraneous block, reindent.
2244         (add_target_sections): Use target_is_pushed.
2245
2246 2014-07-25  Pedro Alves  <palves@redhat.com>
2247
2248         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2249         * monitor.c (monitor_create_inferior): Likewise.
2250         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2251         * remote-sim.c (gdbsim_create_inferior): Likewise.
2252         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2253         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2254         * windows-nat.c (do_initial_windows_stuff): Likewise.
2255
2256 2014-07-25  Pedro Alves  <palves@redhat.com>
2257
2258         * NEWS: Mention signal passing and "signal" command changes.
2259         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2260         comment.
2261         * breakpoint.c (until_break_command): Adjust clear_proceed_status
2262         call.
2263         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2264         * infcmd.c (proceed_thread_callback, continue_1, step_once)
2265         (jump_command): Adjust clear_proceed_status call.
2266         (signal_command): Warn if other thread that are resumed have
2267         signals that will be delivered.  Adjust clear_proceed_status call.
2268         (until_next_command, finish_command)
2269         (proceed_after_attach_callback, attach_command_post_wait)
2270         (attach_command): Adjust clear_proceed_status call.
2271         * infrun.c (proceed_after_vfork_done): Likewise.
2272         (proceed_after_attach_callback): Adjust comment.
2273         (clear_proceed_status_thread): Clear stop_signal if not in pass
2274         state.
2275         (clear_proceed_status_callback): Delete.
2276         (clear_proceed_status): New 'step' parameter.  Only clear the
2277         proceed status of threads the command being prepared is about to
2278         resume.
2279         (proceed): If passed in an explicit signal, override stop_signal
2280         with it.  Don't pass the last stop signal to the thread we're
2281         resuming.
2282         (init_wait_for_inferior): Adjust clear_proceed_status call.
2283         (switch_back_to_stepped_thread): Clear the signal if it should not
2284         be passed.
2285         * infrun.h (clear_proceed_status): New 'step' parameter.
2286         (user_visible_resume_ptid): Add comment.
2287         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2288         signal is in pass state.
2289         * remote.c (append_pending_thread_resumptions): Likewise.
2290         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2291
2292 2014-07-25  Tom Tromey  <tromey@redhat.com>
2293
2294         * target.h (target_stopped_data_address)
2295         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
2296         parentheses.
2297
2298 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
2299
2300         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2301         comments.
2302         (avr_pointer_to_address): Likewise.
2303
2304 2014-07-24  Tom Tromey  <tromey@redhat.com>
2305
2306         * monitor.c (compile_pattern): Update.
2307         * target.h (struct target_ops) <to_shortname, to_longname,
2308         to_doc>: Now const.
2309
2310 2014-07-24  Tom Tromey  <tromey@redhat.com>
2311
2312         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2313         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2314         (add_info_alias, add_com): Make "doc" const.
2315         (print_doc_line): Make "str" const.
2316         (delete_cmd): Update.
2317         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2318         (print_doc_line): Update.
2319         * cli/cli-script.c (document_command): Update.
2320         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2321         (add_com, add_info, add_info_alias): Update.
2322         * guile/scm-cmd.c (cmdscm_destroyer): Update.
2323         * python/py-cmd.c (cmdpy_destroyer): Update.
2324
2325 2014-07-24  Tom Tromey  <tromey@redhat.com>
2326
2327         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2328         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2329         (help_cmd_list): Constify.
2330         (lookup_cmd): Update.
2331         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2332         const.
2333         (help_cmd_list, apropos_cmd): Update.
2334         * cli/cli-script.c (show_user): Update.
2335         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2336         * cli/cli-setshow.h (cmd_show_list): Update.
2337         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2338         (cmd_show_list): Update.
2339         * guile/scm-cmd.c (cmdscm_destroyer): Update.
2340         * python/py-cmd.c (cmdpy_destroyer): Update.
2341
2342 2014-07-24  Tom Tromey  <tromey@redhat.com>
2343
2344         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2345         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2346         const.
2347         * command.h (deprecate_cmd): Update.
2348         * maint.c (maintenance_do_deprecate): Add casts.
2349
2350 2014-07-24  Tom Tromey  <tromey@redhat.com>
2351
2352         * cli/cli-decode.c (help_cmd): Make parameter "const".
2353         * cli/cli-decode.h (help_cmd): Update.
2354
2355 2014-07-24  Tom Tromey  <tromey@redhat.com>
2356
2357         * stack.c (up_silently_base, down_silently_base): Make argument
2358         const.
2359
2360 2014-07-24  Tom Tromey  <tromey@redhat.com>
2361
2362         * solib.c (solib_add): Make "pattern" const.
2363         * solib.h (solib_add): Update.
2364
2365 2014-07-24  Tom Tromey  <tromey@redhat.com>
2366
2367         * remote.c (remote_serial_open, print_packet, putpkt)
2368         (putpkt_binary): Constify.
2369         * remote.h (putpkt): Update.
2370
2371 2014-07-24  Tom Tromey  <tromey@redhat.com>
2372
2373         * monitor.c (monitor_open): Make "args" const.
2374         * monitor.h (monitor_open): Update.
2375
2376 2014-07-24  Tom Tromey  <tromey@redhat.com>
2377
2378         * maint.c (match_bfd_flags): Make "string" const.
2379         (print_bfd_section_info): Remove casts.
2380         (print_objfile_section_info): Make "string" const.
2381
2382 2014-07-24  Tom Tromey  <tromey@redhat.com>
2383
2384         * inf-child.c (inf_child_open_target): Make "arg" const.
2385         * inf-child.h (inf_child_open_target): Update.
2386
2387 2014-07-24  Tom Tromey  <tromey@redhat.com>
2388
2389         * environ.c (unset_in_environ): Make "var" const.
2390         * environ.h (unset_in_environ): Update.
2391
2392 2014-07-24  Tom Tromey  <tromey@redhat.com>
2393
2394         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2395         Make "cmd" const.
2396         (scan_filename_with_cleanup): Likewise.
2397         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2398         Make arguments const.
2399         (restore_command): Update.
2400
2401 2014-07-24  Pedro Alves  <palves@redhat.com>
2402
2403         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2404
2405 2014-07-24  Tom Tromey  <tromey@redhat.com>
2406             Gary Benson  <gbenson@redhat.com>
2407
2408         * nat/linux-ptrace.c (additional_flags): New global.
2409         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2410         additional_flags; don't check GDBSERVER.
2411         (linux_ptrace_set_additional_flags): New function.
2412         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2413         Declare.
2414         * linux-nat.c (_initialize_linux_nat): Call
2415         linux_ptrace_set_additional_flags.
2416
2417 2014-07-24  Tom Tromey  <tromey@redhat.com>
2418
2419         * make-target-delegates (munge_type, write_debugmethod): New
2420         functions.
2421         (debug_names): New global.
2422         ($TARGET_DEBUG_PRINTER): New global.
2423         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2424         name.
2425         Write debug methods.  Generate init_debug_target.
2426         * target-debug.h: New file.
2427         * target-delegates.c: Rebuild.
2428         * target.c: Include target-debug.h.
2429         (debug_target): Hoist definition.
2430         (target_kill, target_get_section_table, target_memory_map)
2431         (target_flash_erase, target_flash_done, target_detach)
2432         (target_disconnect, target_wait, target_resume)
2433         (target_pass_signals, target_program_signals, target_follow_fork)
2434         (target_mourn_inferior, target_search_memory)
2435         (target_thread_address_space, target_close)
2436         (target_find_new_threads, target_core_of_thread)
2437         (target_verify_memory, target_insert_mask_watchpoint)
2438         (target_remove_mask_watchpoint): Remove targetdebug code.
2439         (debug_to_post_attach, debug_to_prepare_to_store)
2440         (debug_to_files_info, debug_to_insert_breakpoint)
2441         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2442         (debug_to_region_ok_for_hw_watchpoint)
2443         (debug_to_can_accel_watchpoint_condition)
2444         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2445         (debug_to_watchpoint_addr_within_range)
2446         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2447         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2448         (debug_to_terminal_init, debug_to_terminal_inferior)
2449         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2450         (debug_to_terminal_save_ours, debug_to_terminal_info)
2451         (debug_to_load, debug_to_post_startup_inferior)
2452         (debug_to_insert_fork_catchpoint)
2453         (debug_to_remove_fork_catchpoint)
2454         (debug_to_insert_vfork_catchpoint)
2455         (debug_to_remove_vfork_catchpoint)
2456         (debug_to_insert_exec_catchpoint)
2457         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2458         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2459         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2460         (setup_target_debug): Call init_debug_target.
2461         * target.h (TARGET_DEBUG_PRINTER): New macro.
2462         (struct target_ops) <to_resume, to_wait, to_pass_signals,
2463         to_program_signals>: Use TARGET_DEBUG_PRINTER.
2464
2465 2014-07-24  Gary Benson  <gbenson@redhat.com>
2466
2467         * exceptions.h (throw_vfatal): Renamed to...
2468         (throw_vquit): New declaration.
2469         (throw_quit): Likewise.
2470         * exceptions.c (throw_vfatal): Renamed to...
2471         (throw_vquit): New function.
2472         (throw_quit): Likewise.
2473         (throw_error): Call throw_verror rather than throw_it.
2474         * utils.h (vfatal): Removed.
2475         (fatal): Likewise.
2476         * utils.c (vfatal): Removed.
2477         (fatal): Likewise.
2478         (internal_verror): Replaced call to fatal with call to throw_quit.
2479         (quit): Replaced calls to fatal with calls to throw_quit.
2480
2481 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
2482
2483         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2484         target_read_code.
2485
2486 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
2487
2488         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2489         less than zero in conditional expression.
2490
2491 2014-07-23  Tom Tromey  <tromey@redhat.com>
2492
2493         * make-target-delegates ($ARGS_PART): Match trailing close paren.
2494         ($INTRO_PART): Don't match whitespace.
2495         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
2496         argument matching.
2497         ($METHOD): Add $METHOD_TRAILER.
2498         (trim): Rewrite.
2499         (scan_target_h): New sub.
2500         Change main loop not to collect state.
2501         * target-delegates.c: Rebuild.
2502
2503 2014-07-23  Gary Benson  <gbenson@redhat.com>
2504
2505         * cp-support.c (gdb_demangle): Fix build on systems without
2506         sigaltstack.
2507
2508 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
2509
2510         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2511         for reference entry value target data value.
2512
2513 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
2514
2515         * stack.c (read_frame_arg): Verify value_optimized_out before calling
2516         value_available_contents_eq.
2517
2518 2014-07-22  Pedro Alves  <palves@redhat.com>
2519
2520         * value.c (allocate_optimized_out_value): Don't mark value as
2521         non-lazy.
2522
2523 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
2524
2525         * MAINTAINERS (Write After Approval): Update my email address.
2526
2527 2014-07-20  Doug Evans  <dje@google.com>
2528
2529         PR server/17147
2530         * remote.c (putpkt_binary): Add text to error message.
2531
2532 2014-07-20  Yao Qi  <yao@codesourcery.com>
2533
2534         * eval.c: Remove "Chill" from comments.
2535         * gdbtypes.h: Likewise.
2536         * symtab.h: Likewise.
2537
2538 2014-07-20  Yao Qi  <yao@codesourcery.com>
2539
2540         * std-operator.def: Update comments to TERNOP_SLICE.
2541
2542 2014-07-20  Yao Qi  <yao@codesourcery.com>
2543
2544         * std-operator.def: Remove BINOP_RANGE.
2545         * breakpoint.c (watchpoint_exp_is_const): Update.
2546         * expprint.c (dump_subexp_body_standard): Likewise.
2547         * eval.c (init_array_element): Remove dead code.
2548         (evaluate_subexp_standard): Likewise.
2549
2550 2014-07-20  Yao Qi  <yao@codesourcery.com>
2551
2552         * std-operator.def: Remove BINOP_IN.
2553         * breakpoint.c (watchpoint_exp_is_const): Update.
2554         * eval.c (evaluate_subexp_standard): Likewise.
2555         * expprint.c (dump_subexp_body_standard): Likewise.
2556
2557 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
2558
2559         * microblaze-tdep.c (microblaze_register_names): Add
2560         the rshr and rslr register names.
2561         (microblaze_gdbarch_init): Use of tdesc_has_registers.
2562         Use of tdesc_find_feature. Use of tdesc_data_alloc.
2563         Use of tdesc_numbered_register. Use of
2564         microblaze_register_g_packet_guesses. Use of
2565         tdesc_use_registers. Use of set_gdbarch_register_type.
2566         (microblaze_register_g_packet_guesses): New.
2567         * microblaze-tdep.h (microblaze_reg_num): Add
2568         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2569         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2570         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2571         * features/microblaze-core.xml: New file.
2572         * features/microblaze-stack-protect.xml: New file.
2573         * features/microblaze-with-stack-protect.c: New file.
2574         * features/microblaze-with-stack-protect.xml: New file.
2575         * features/microblaze.xml: New file.
2576         * features/microblaze.c: New file.
2577         * features/Makefile (microblaze-with-stack-protect): Add
2578         microblaze-with-stack-protect microblaze and microblaze-expedite.
2579         * regformats/microblaze-with-stack-protect.dat: New file.
2580         * regformats/microblaze.dat: New file.
2581         * doc/gdb.texinfo (MicroBlaze Features): Added.
2582
2583 2014-07-18  Tom Tromey  <tromey@redhat.com>
2584
2585         * exec.c (exec_ops): Now static.
2586         * exec.h (exec_ops): Don't declare.
2587
2588 2014-07-18  Tom Tromey  <tromey@redhat.com>
2589
2590         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2591         to find_target_beneath.
2592         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2593         find_target_beneath.
2594         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2595
2596 2014-07-18  Tom Tromey  <tromey@redhat.com>
2597
2598         PR gdb/17130:
2599         * utils.c (quit): Use target_supports_terminal_ours.
2600         * target.h (target_supports_terminal_ours): Declare.
2601         * target.c (target_supports_delete_record): Don't check
2602         to_delete_record against NULL.
2603         (target_supports_terminal_ours): New function.
2604
2605 2014-07-18  Tom Tromey  <tromey@redhat.com>
2606
2607         PR gdb/17130:
2608         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2609         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2610         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2611         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2612         * windows-nat.c (windows_xfer_partial): Always delegate.
2613         * record-btrace.c (record_btrace_xfer_partial): Simplify
2614         delegation.
2615         (record_btrace_fetch_registers, record_btrace_store_registers)
2616         (record_btrace_prepare_to_store, record_btrace_resume)
2617         (record_btrace_wait, record_btrace_find_new_threads)
2618         (record_btrace_thread_alive): Likewise.
2619         * procfs.c (procfs_xfer_partial): Always delegate.
2620         * corelow.c (core_xfer_partial): Always delegate.
2621         * sol-thread.c (sol_find_new_threads): Simplify delegation.
2622
2623 2014-07-18  Tom Tromey  <tromey@redhat.com>
2624
2625         * exec.c (exec_make_note_section): Move earlier.
2626
2627 2014-07-17  Doug Evans  <dje@google.com>
2628
2629         PR gdb/17170
2630         * maint.c (count_symtabs_and_blocks): Handle NULL
2631         current_program_space.
2632         (report_command_stats): Check global enabled flag in addition to
2633         recorded enabled flag.
2634         (make_command_stats_cleanup): Handle msg_type == 0, startup.
2635
2636 2014-07-16  Pedro Alves  <palves@redhat.com>
2637
2638         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2639
2640 2014-07-16  Tom Tromey  <tromey@redhat.com>
2641
2642         * target.h (struct target_ops) <to_delete_record>: Reformat
2643         comment.
2644
2645 2014-07-16  Tom Tromey  <tromey@redhat.com>
2646
2647         * target-delegates.c: Rebuild.
2648
2649 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
2650
2651         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2652         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2653         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2654         (avr_pointer_to_address): Likewise.
2655         (avr_address_class_type_flags): New function.
2656         (avr_address_class_type_flags_to_name): Likewise.
2657         (avr_address_class_name_to_type_flags): Likewise.
2658         (avr_gdbarch_init): Set address_class_type_flags,
2659         address_class_type_flags_to_name and
2660         address_class_name_to_type_flags.
2661
2662 2014-07-15  Pedro Alves  <palves@redhat.com>
2663
2664         * linux-nat.c (kill_callback): Save errno and work with saved
2665         copy.
2666
2667 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
2668
2669         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2670
2671 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
2672
2673         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2674         breakpoint support correctly.
2675
2676 2014-07-14  Pedro Alves  <palves@redhat.com>
2677
2678         * utils.c (prompt_for_continue): Call target_terminal_ours.
2679
2680 2014-07-14  Pedro Alves  <palves@redhat.com>
2681
2682         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2683         catch_errors.  Don't re-enable stdin or notify observers where,
2684         and rethrow error.
2685         (fetch_inferior_event_wrapper): Delete.
2686
2687 2014-07-14  Pedro Alves  <palves@redhat.com>
2688
2689         PR gdb/17072
2690         * top.c: Include "inf-loop.h".
2691         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2692         field.
2693         (gdb_readline_wrapper_cleanup): Make the target async again, if it
2694         was async before.
2695         (gdb_readline_wrapper): Store whether the target is async, and
2696         make it sync.
2697
2698 2014-07-14  Pedro Alves  <palves@redhat.com>
2699
2700         PR gdb/17072
2701         * top.c (gdb_readline_wrapper_line): Tweak comment.
2702         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2703         the input handler callback.
2704
2705 2014-07-14  Pedro Alves  <palves@redhat.com>
2706
2707         PR gdb/17072
2708         * main.c: Include event-top.h.
2709         (handle_command_errors): New function.
2710         (catch_command_errors, catch_command_errors_const): Use it.
2711
2712 2014-07-14  Pedro Alves  <palves@redhat.com>
2713
2714         * exceptions.c (catch_command_errors, catch_command_errors_const):
2715         Moved to main.c.
2716         * exceptions.h (catch_command_errors_ftype)
2717         (catch_command_errors_const_ftype): Moved to main.c.
2718         (catch_command_errors, catch_command_errors_const): Delete
2719         declarations.
2720         * main.c (catch_command_errors_ftype)
2721         (catch_command_errors_const_ftype): Moved here from exceptions.h.
2722         (catch_command_errors, catch_command_errors_const)): Moved here
2723         from exceptions.c and make static.
2724
2725 2014-07-14  Pedro Alves  <palves@redhat.com>
2726
2727         * exceptions.c (print_any_exception): Delete.
2728         (catch_exceptions_with_msg): Use exception_print instead of
2729         print_any_exception.
2730         (catch_errors): Use exception_fprintf instead of
2731         print_any_exception.
2732         (catch_command_errors, catch_command_errors_const): Use
2733         exception_print instead of print_any_exception.
2734
2735 2014-07-14  Pedro Alves  <palves@redhat.com>
2736
2737         * infcall.c (run_inferior_call): Set 'sync_execution' while
2738         running the inferior call.
2739
2740 2014-07-14  Pedro Alves  <palves@redhat.com>
2741
2742         * value.c (value_contents_equal): Delete function.
2743         * value.h (value_contents_equal): Delete declaration.
2744
2745 2014-07-14  Tom Tromey  <tromey@redhat.com>
2746
2747         PR exp/17106:
2748         * gdbtypes.c (is_dynamic_type_internal): New function, from
2749         is_dynamic_type.
2750         (is_dynamic_type): Rewrite.
2751         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2752         (resolve_dynamic_struct): Likewise.
2753         (resolve_dynamic_type_internal): New function, from
2754         resolve_dynamic_type.
2755         (resolve_dynamic_type): Rewrite.
2756
2757 2014-07-14  Tom Tromey  <tromey@redhat.com>
2758
2759         * target.c (target_require_runnable): Also check record_stratum.
2760         Update comment.
2761
2762 2014-07-11  Yao Qi  <yao@codesourcery.com>
2763
2764         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2765         thumb_instruction_restores_sp return true.
2766
2767 2014-07-11  Yao Qi  <yao@codesourcery.com>
2768
2769         * arm-tdep.c (thumb_instruction_restores_sp): New function.
2770         (thumb_in_function_epilogue_p): Call
2771         thumb_instruction_restores_sp.
2772
2773 2014-07-11  Yao Qi  <yao@codesourcery.com>
2774
2775         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2776         'add sp, #imm'.
2777         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2778
2779 2014-07-11  Gary Benson  <gbenson@redhat.com>
2780
2781         * amd64-linux-nat.c (gdbcore.h): Remove include.
2782         (regset.h): Likewise.
2783         (nat/linux-btrace.h): Likewise.
2784         (btrace.h): Likewise.
2785         (gdb_assert.h): Likewise.
2786         (string.h): Likewise.
2787         (sys/uio.h): Likewise.
2788         (sys/debugreg.h): Likewise.
2789         (sys/syscall.h): Likewise.
2790         (sys/procfs.h): Likewise.
2791         (sys/user.h): Likewise.
2792         (asm/ptrace.h): Likewise.
2793         (i386-nat.h): Likewise.
2794         * i386-linux-nat.c (i386-nat.h): Likewise.
2795         (regset.h): Likewise.
2796         (target.h): Likewise.
2797         (linux-nat.h): Likewise.
2798         (nat/linux-btrace.h): Likewise.
2799         (btrace.h): Likewise.
2800         (gdb_assert.h): Likewise.
2801         (string.h): Likewise.
2802         (sys/uio.h): Likewise.
2803         (sys/user.h): Likewise.
2804         (sys/procfs.h): Likewise.
2805         (sys/reg.h): Likewise.
2806         (sys/debugreg.h): Likewise.
2807         (ORIG_EAX): Remove definition.
2808
2809 2014-07-11  Gary Benson  <gbenson@redhat.com>
2810
2811         * i386-linux-nat.h: New file.
2812         * x86-linux-nat.h: Likewise.
2813         * x86-linux-nat.c: Likewise.
2814         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2815         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2816         * config/i386/linux64.mh (NATDEPFILES): Likewise.
2817         * amd64-linux-nat.c (x86-linux-nat.h): New include.
2818         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2819         (PTRACE_SETREGSET): Likewise.
2820         (arch_lwp_info): Now in x86-linux-nat.c.
2821         (have_ptrace_getregset): Now in x86-linux-nat.h.
2822         (x86_linux_dr_get): Now in x86-linux-nat.c.
2823         (x86_linux_dr_set): Likewise.
2824         (x86_linux_dr_get_addr): Likewise.
2825         (x86_linux_dr_get_control): Likewise.
2826         (x86_linux_dr_get_status): Likewise.
2827         (update_debug_registers_callback): Likewise.
2828         (x86_linux_dr_set_control): Likewise.
2829         (x86_linux_dr_set_addr): Likewise.
2830         (x86_linux_prepare_to_resume): Likewise.
2831         (x86_linux_new_thread): Likewise.
2832         (x86_linux_new_fork): Likewise.
2833         (x86_linux_get_thread_area): Likewise.
2834         (super_post_startup_inferior): Likewise.
2835         (x86_linux_child_post_startup_inferior): Likewise.
2836         (AMD64_LINUX_USER64_CS): Likewise.
2837         (AMD64_LINUX_X32_DS): Likewise.
2838         (x86_linux_read_description): Likewise.
2839         (x86_linux_enable_btrace): Likewise.
2840         (x86_linux_disable_btrace): Likewise.
2841         (x86_linux_teardown_btrace): Likewise.
2842         (x86_linux_read_btrace): Likewise.
2843         (x86_linux_create_target): Likewise.
2844         (x86_linux_add_target): Likewise.
2845         * i386-linux-nat.c (x86-linux-nat.h): New include.
2846         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2847         (PTRACE_SETREGSET): Likewise.
2848         (arch_lwp_info): Now in x86-linux-nat.c.
2849         (have_ptrace_getregset): Now in x86-linux-nat.h.
2850         (x86_linux_dr_get): Now in x86-linux-nat.c.
2851         (x86_linux_dr_set): Likewise.
2852         (x86_linux_dr_get_addr): Likewise.
2853         (x86_linux_dr_get_control): Likewise.
2854         (x86_linux_dr_get_status): Likewise.
2855         (update_debug_registers_callback): Likewise.
2856         (x86_linux_dr_set_control): Likewise.
2857         (x86_linux_dr_set_addr): Likewise.
2858         (x86_linux_prepare_to_resume): Likewise.
2859         (x86_linux_new_thread): Likewise.
2860         (x86_linux_new_fork): Likewise.
2861         (x86_linux_get_thread_area): Likewise.
2862         (super_post_startup_inferior): Likewise.
2863         (x86_linux_child_post_startup_inferior): Likewise.
2864         (AMD64_LINUX_USER64_CS): Likewise.
2865         (AMD64_LINUX_X32_DS): Likewise.
2866         (x86_linux_read_description): Likewise.
2867         (x86_linux_enable_btrace): Likewise.
2868         (x86_linux_disable_btrace): Likewise.
2869         (x86_linux_teardown_btrace): Likewise.
2870         (x86_linux_read_btrace): Likewise.
2871         (x86_linux_create_target): Likewise.
2872         (x86_linux_add_target): Likewise.
2873
2874 2014-07-11  Gary Benson  <gbenson@redhat.com>
2875
2876         * amd64-linux-nat.c: Comment and whitespace changes.
2877         * i386-linux-nat.c: Comment and whitespace changes.
2878
2879 2014-07-11  Gary Benson  <gbenson@redhat.com>
2880
2881         * amd64-linux-nat.c (x86_linux_create_target): New function.
2882         (x86_linux_add_target): Likewise.
2883         (_initialize_amd64_linux_nat): Delegate to the above new functions.
2884         * i386-linux-nat.c (x86_linux_create_target): New function.
2885         (x86_linux_add_target): Likewise.
2886         (_initialize_i386_linux_nat): Delegate to the above new functions.
2887
2888 2014-07-11  Gary Benson  <gbenson@redhat.com>
2889
2890         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2891         (ps_get_thread_area): Delegate to the above in 32-bit mode.
2892         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2893         (ps_get_thread_area): Delegate to the above.
2894
2895 2014-07-11  Gary Benson  <gbenson@redhat.com>
2896
2897         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2898         x86_linux_read_description.  All uses updated.  amd64-specific
2899         code conditionalized.  Conditionalized i386-specific code added.
2900         Redundant cast removed.
2901         * i386-linux-nat.c (i386_linux_read_description): Renamed to
2902         x86_linux_read_description.  All uses updated.  i386-specific
2903         code conditionalized.  Conditionalized amd64-specific code added.
2904         One sizeof replaced with the actual type it is describing.
2905
2906 2014-07-11  Gary Benson  <gbenson@redhat.com>
2907
2908         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2909         x86_linux_dr_get.  All uses updated.
2910         (amd64_linux_dr_set): Renamed to
2911         x86_linux_dr_set.  All uses updated.
2912         (amd64_linux_dr_get_addr): Renamed to
2913         x86_linux_dr_get_addr.  All uses updated.
2914         (amd64_linux_dr_get_control): Renamed to
2915         x86_linux_dr_get_control.  All uses updated.
2916         (amd64_linux_dr_get_status): Renamed to
2917         x86_linux_dr_get_status.  All uses updated.
2918         (amd64_linux_dr_set_control): Renamed to
2919         x86_linux_dr_set_control.  All uses updated.
2920         (amd64_linux_dr_set_addr): Renamed to
2921         x86_linux_dr_set_addr.  All uses updated.
2922         (amd64_linux_prepare_to_resume): Renamed to
2923         x86_linux_prepare_to_resume.  All uses updated.
2924         (amd64_linux_new_thread): Renamed to
2925         x86_linux_new_thread.  All uses updated.
2926         (amd64_linux_new_fork): Renamed to
2927         x86_linux_new_fork.  All uses updated.
2928         (amd64_linux_child_post_startup_inferior): Renamed to
2929         x86_linux_child_post_startup_inferior.  All uses updated.
2930         (amd64_linux_enable_btrace): Renamed to
2931         x86_linux_enable_btrace.  All uses updated.
2932         (amd64_linux_disable_btrace): Renamed to
2933         x86_linux_disable_btrace.  All uses updated.
2934         (amd64_linux_teardown_btrace): Renamed to
2935         x86_linux_teardown_btrace.  All uses updated.
2936         (amd64_linux_read_btrace): Renamed to
2937         x86_linux_read_btrace.  All uses updated.
2938         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2939         x86_linux_dr_get.  All uses updated.
2940         (i386_linux_dr_set): Renamed to
2941         x86_linux_dr_set.  All uses updated.
2942         (i386_linux_dr_get_addr): Renamed to
2943         x86_linux_dr_get_addr.  All uses updated.
2944         (i386_linux_dr_get_control): Renamed to
2945         x86_linux_dr_get_control.  All uses updated.
2946         (i386_linux_dr_get_status): Renamed to
2947         x86_linux_dr_get_status.  All uses updated.
2948         (i386_linux_dr_set_control): Renamed to
2949         x86_linux_dr_set_control.  All uses updated.
2950         (i386_linux_dr_set_addr): Renamed to
2951         x86_linux_dr_set_addr.  All uses updated.
2952         (i386_linux_prepare_to_resume): Renamed to
2953         x86_linux_prepare_to_resume.  All uses updated.
2954         (i386_linux_new_thread): Renamed to
2955         x86_linux_new_thread.  All uses updated.
2956         (i386_linux_new_fork): Renamed to
2957         x86_linux_new_fork.  All uses updated.
2958         (i386_linux_child_post_startup_inferior): Renamed to
2959         x86_linux_child_post_startup_inferior.  All uses updated.
2960         (i386_linux_enable_btrace): Renamed to
2961         x86_linux_enable_btrace.  All uses updated.
2962         (i386_linux_disable_btrace): Renamed to
2963         x86_linux_disable_btrace.  All uses updated.
2964         (i386_linux_teardown_btrace): Renamed to
2965         x86_linux_teardown_btrace.  All uses updated.
2966         (i386_linux_read_btrace): Renamed to
2967         x86_linux_read_btrace.  All uses updated.
2968
2969 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
2970
2971         * remote.c (extended_remote_post_attach): New function.
2972         (init_extended_remote_ops): Install it as to_post_attach method.
2973
2974 2014-07-09  Pedro Alves  <palves@redhat.com>
2975
2976         * infcmd.c (attach_command_post_wait): Don't call
2977         target_terminal_inferior here.
2978         (attach_command): Call it here instead.
2979
2980 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
2981
2982         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2983         field.
2984         * c-varobj.c (c_is_path_expr_parent): New function, moved core
2985         from varobj.c, with additional checks.
2986         (c_varobj_ops): Fill in is_path_expr_parent field.
2987         (cplus_varobj_ops): Fill in is_path_expr_parent field.
2988         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2989         field.
2990         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2991         ops method.
2992         (varobj_default_is_path_expr_parent): New function.
2993         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2994         (varobj_default_is_path_expr_parent): Declare new function.
2995
2996 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
2997
2998         * infcmd.c (finish_backward): Turn internal error into normal error.
2999
3000 2014-07-07  Pedro Alves  <palves@redhat.com>
3001
3002         PR gdb/17096
3003         * remote.c (async_handle_remote_sigint)
3004         (async_handle_remote_sigint_twice): Call
3005         gdb_call_async_signal_handler instead of
3006         mark_async_signal_handler.
3007
3008 2014-07-07  Tom Tromey  <tromey@redhat.com>
3009
3010         * target-delegates.c: Rebuild.
3011         * target.c (target_info_record): Remove.
3012         * record.c (info_record_command): Unconditionally call
3013         to_info_record.
3014         * target.h (struct target_ops) <to_info_record>: Use
3015         TARGET_DEFAULT_IGNORE.
3016         (target_info_record): Remove.
3017
3018 2014-07-07  Tom Tromey  <tromey@redhat.com>
3019
3020         * target.h (struct target_ops) <to_get_thread_local_address>: Use
3021         TARGET_DEFAULT_NORETURN.
3022         * target.c (generic_tls_error): New function.
3023         (target_translate_tls_address): Don't search target stack.
3024         * target-delegates.c: Rebuild.
3025         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3026         stack.
3027         * linux-thread-db.c (thread_db_get_thread_local_address):
3028         Unconditionally call beneath target.
3029
3030 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
3031
3032         * cli/cli-logging.c (pop_output_files): Assign targerr to
3033         gdb_stdtargerr.
3034
3035 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
3036
3037         * MAINTAINERS (Write After Approval): Update my email address.
3038
3039 2014-07-02  Gary Benson  <gbenson@redhat.com>
3040
3041         * proc-service.c (ps_xfer_memory): Update comment.
3042         (ps_pstop): Remove unused function.
3043         (ps_pcontinue): Likewise.
3044         (ps_lstop): Likewise.
3045         (ps_lcontinue): Likewise.
3046         (ps_lgetxregsize): Likewise.
3047         (ps_lgetxregs): Likewise.
3048         (ps_lsetxregs): Likewise.
3049         (ps_plog): Likewise.
3050         (ps_ptread): Likewise.
3051         (ps_ptwrite): Likewise.
3052
3053 2014-07-01  Mark Wielaard  <mjw@redhat.com>
3054
3055         * dwarf2read.c (add_array_cv_type): New function.
3056         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3057         (read_tag_volatile_type): Likewise.
3058
3059 2014-07-01  Tom Tromey  <tromey@redhat.com>
3060
3061         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3062         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3063         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3064         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3065         * command.h (cmd_cfunc_ftype): Move earlier.
3066         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3067         (add_com, add_info): Use cmd_cfunc_ftype.
3068
3069 2014-06-30  Tom Tromey  <tromey@redhat.com>
3070
3071         * symtab.c (operator_chars): Make parameters and return type
3072         const.
3073         (file_matches): Make "files" const.
3074         (struct search_symbols_data) <files>: Now const.
3075         (search_symbols): Make "regexp" and "files" parameters const.
3076         Update.
3077         (symtab_symbol_info): Remove cast.
3078         (rbreak_command): Update.
3079         * symtab.h (search_symbols): Update.
3080
3081 2014-06-27  Yao Qi  <yao@codesourcery.com>
3082
3083         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3084         Change parameter type to 'struct thread_info *'.  Caller
3085         updated.
3086         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3087         Update declaration.
3088         * dummy-frame.c (struct dummy_frame_id): New.
3089         (dummy_frame_id_eq): New function.
3090         (struct dummy_frame) <id>: Change its type to 'struct
3091         dummy_frame_id'.
3092         (dummy_frame_push): Add parameter ptid and save it in
3093         dummy_frame_id.
3094         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3095         inferior_ptid.
3096         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3097         to inferior_ptid.
3098         (lookup_dummy_frame): Change parameter type to 'struct
3099         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
3100         instead of frame_id_eq.
3101         (dummy_frame_pop): Add parameter ptid.  Callers updated.
3102         Update comments.  Compose dummy_frame_id and pass it to
3103         lookup_dummy_frame.
3104         (dummy_frame_discard): Add parameter ptid.
3105         (dummy_frame_sniffer): Compose dummy_frame_id and call
3106         dummy_frame_id_eq instead of frame_id_eq.
3107         (fprint_dummy_frames): Print ptid.
3108         * dummy-frame.h: Remove comments.
3109         (dummy_frame_push): Add ptid in declaration.
3110         (dummy_frame_pop, dummy_frame_discard): Likewise.
3111
3112 2014-06-26  Tom Tromey  <tromey@redhat.com>
3113
3114         * cli/cli-cmds.c (error_no_arg): Make "why" const.
3115         * command.h (error_no_arg): Update.
3116
3117 2014-06-26  Tom Tromey  <tromey@redhat.com>
3118
3119         * cli/cli-setshow.c (do_set_command): Make "arg" const.
3120         (do_show_command): Make "arg" const.
3121         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3122
3123 2014-06-26  Tom Tromey  <tromey@redhat.com>
3124
3125         * record-full.c (record_full_get_bookmark): Make "args" const.
3126         (record_full_goto_bookmark): Make "raw_bookmark" const.
3127         * record.c (record_goto): New function.
3128         (cmd_record_goto): Use it.  Now static.
3129         * record.h (record_goto): Declare.
3130         (cmd_record_goto): Remove declaration.
3131         * target-delegates.c: Rebuild.
3132         * target.h (struct target_ops) <to_get_bookmark,
3133         to_goto_bookmark>: Make parameter const.
3134
3135 2014-06-26  Tom Tromey  <tromey@redhat.com>
3136
3137         * defs.h (generic_load): Update.
3138         * m32r-rom.c (m32r_load_gen): Make "filename" const.
3139         * monitor.c (monitor_load): Make "args" const.
3140         * remote-m32r-sdi.c (m32r_load): Make "args" const.
3141         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3142         const.
3143         (mips_load): Make "file" const.
3144         * remote-sim.c (gdbsim_load): Make "args" const.
3145         * remote.c (remote_load): Make "name" const.
3146         * symfile.c (generic_load): Make "args" const.
3147         * target-delegates.c: Rebuild.
3148         * target.c (target_load): Make "arg" const.
3149         (debug_to_load): Make "args" const.
3150         * target.h (struct target_ops) <to_load>: Make parameter const.
3151         (target_load): Update.
3152
3153 2014-06-26  Tom Tromey  <tromey@redhat.com>
3154
3155         PR symtab/16902:
3156         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3157         (dwarf2_physname, read_partial_die)
3158         (guess_partial_die_structure_name, fixup_partial_die)
3159         (guess_full_die_structure_name, anonymous_struct_prefix)
3160         (dwarf2_name): Use per-BFD obstack.
3161
3162 2014-06-26  Yao Qi  <yao@codesourcery.com>
3163
3164         * dummy-frame.c (dummy_frame_sniffer): Move local variables
3165         dummyframe and this_id into inner block below.
3166
3167 2014-06-26  Yao Qi  <yao@codesourcery.com>
3168
3169         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3170         with "signal_pass[0]" in the initialization of signal_pass.
3171
3172 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
3173
3174         * record-btrace.c (record_btrace_generating_corefile)
3175         (record_btrace_prepare_to_generate_core)
3176         (record_btrace_done_generating_core): New.
3177         (record_btrace_xfer_partial, record_btrace_fetch_registers)
3178         (record_btrace_store_registers, record_btrace_prepare_to_store):
3179         Forward request when generating a core file.
3180         (record_btrace_open): Set record_btrace_generating_corefile to zero.
3181         (init_record_btrace_ops): Set to_prepare_to_generate_core and
3182         to_done_generating_core.
3183
3184 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
3185
3186         * target.h (target_ops) <to_prepare_to_generate_core>
3187         <to_done_generating_core>: New.
3188         (target_prepare_to_generate_core, target_done_generating_core): New.
3189         * target.c (target_prepare_to_generate_core)
3190         (target_done_generating_core): New.
3191         * target-delegates.c: Regenerate.
3192         * gcore.c: (write_gcore_file): Rename to ...
3193         (write_gcore_file_1): ...this.
3194         (write_gcore_file): Call target_prepare_to_generate_core
3195         and target_done_generating_core.
3196
3197 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
3198
3199         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3200         * gcore.c (write_gcore_file): Free memory returned from
3201         make_corefile_notes.
3202         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3203         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3204
3205 2014-06-24  Yao Qi  <yao@codesourcery.com>
3206
3207         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3208         (arm_linux_init_abi): Set skip_trampoline_code with
3209         gdbarch_skip_trampoline_code instead of
3210         find_solib_trampoline_target.
3211
3212 2014-06-24  Yao Qi  <yao@codesourcery.com>
3213
3214         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3215         arm_skip_bx_reg returns non-zero.
3216
3217 2014-06-24  Yao Qi  <yao@codesourcery.com>
3218
3219         * arm-tdep.c (arm_skip_bx_reg): New function.
3220         (arm_skip_stub): Call arm_skip_bx_reg.
3221
3222 2014-06-23  Don Breazeal  <donb@codesourcery.com>
3223
3224         * MAINTAINERS: Add myself as write-after-approval maintainer.
3225
3226 2014-06-23  Pedro Alves  <palves@redhat.com>
3227
3228         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3229         DR_CONTROL before setting DR0..DR3.
3230         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3231         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3232         bits of DR_CONTROL related to the debug register slot being
3233         disabled.  If all slots are vacant, clear local slowdown as well,
3234         and assert DR_CONTROL is 0.
3235
3236 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
3237
3238         * python/lib/gdb/command/xmethods.py
3239         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
3240         current progspace only if the string "progspace" matches LOCUS_RE.
3241
3242 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
3243
3244         Fix --with-system-readline with readline-6.3 patch 5.
3245         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3246         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3247         types.
3248
3249 2014-06-20  Tom Tromey  <tromey@redhat.com>
3250
3251         * dwarf2read.c (dw2_get_real_path): Use correct type in
3252         OBSTACK_CALLOC.
3253         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3254
3255 2014-06-20  Gary Benson  <gbenson@redhat.com>
3256
3257         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
3258         * common/glibc_thread_db.h: Likewise.
3259         * common/i386-cpuid.h: Likewise.
3260         * common/i386-gcc-cpuid.h: Likewise.
3261         * common/linux-btrace.h: Likewise.
3262         * common/linux-osdata.h: Likewise.
3263         * common/linux-procfs.h: Likewise.
3264         * common/linux-ptrace.h: Likewise.
3265         * common/mips-linux-watch.h: Likewise.
3266         * common/linux-btrace.c: Moved to nat.
3267         * common/linux-osdata.c: Likewise.
3268         * common/linux-procfs.c: Likewise.
3269         * common/linux-ptrace.c: Likewise.
3270         * common/mips-linux-watch.c: Likewise.
3271         * nat/gdb_thread_db.h: Moved from common.
3272         * nat/glibc_thread_db.h: Likewise.
3273         * nat/i386-cpuid.h: Likewise.
3274         * nat/i386-gcc-cpuid.h: Likewise.
3275         * nat/linux-btrace.c: Likewise.
3276         * nat/linux-btrace.h: Likewise.
3277         * nat/linux-osdata.c: Likewise.
3278         * nat/linux-osdata.h: Likewise.
3279         * nat/linux-procfs.c: Likewise.
3280         * nat/linux-procfs.h: Likewise.
3281         * nat/linux-ptrace.c: Likewise.
3282         * nat/linux-ptrace.h: Likewise.
3283         * nat/mips-linux-watch.c: Likewise.
3284         * nat/mips-linux-watch.h: Likewise.
3285         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3286         (object file files): Reordered.
3287         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3288         of glibc_thread_db.h.
3289
3290 2014-06-20  Gary Benson  <gbenson@redhat.com>
3291
3292         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3293         (i386_dr_low_type): Moved to nat/i386-dregs.h.
3294         (i386_dr_low): Likewise.
3295         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3296         (i386_dr_low_set_addr): Likewise.
3297         (i386_dr_low_get_addr): Likewise.
3298         (i386_dr_low_can_set_control): Likewise.
3299         (i386_dr_low_set_control): Likewise.
3300         (i386_dr_low_get_control): Likewise.
3301         (i386_dr_low_get_status): Likewise.
3302         (i386_get_debug_register_length): Likewise.
3303         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3304         (i386_dr_low): Likewise.
3305         * nat/i386-dregs.c (i386-low.h): Remove include.
3306         (i386-nat.h): Likewise.
3307         (nat/i386-dregs.h): New include.
3308         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3309         (i386_dr_low_set_addr): Likewise.
3310         (i386_dr_low_get_addr): Likewise.
3311         (i386_dr_low_can_set_control): Likewise.
3312         (i386_dr_low_set_control): Likewise.
3313         (i386_dr_low_get_control): Likewise.
3314         (i386_dr_low_get_status): Likewise.
3315         (i386_get_debug_register_length): Likewise.
3316         (debug_hw_points): Likewise.
3317
3318 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
3319
3320         * Makefile.in (SFILES): Add d-exp.y.
3321         (YYFILES): Add d-exp.c.
3322         (YYOBJ): Add d-exp.o.
3323         (local-maintainer-clean): Delete d-exp.c.
3324         * d-exp.y: New file.
3325         * d-lang.h (d_parse): New declaration.
3326         (d_error): New declaration.
3327         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3328         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3329         PREC_ORDER operators.
3330         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3331
3332 2014-06-19  Yao Qi  <yao@codesourcery.com>
3333
3334         * gdbthread.h (any_running): Remove the declaration.
3335         * thread.c (any_running): Remove.
3336
3337 2014-06-19  Yao Qi  <yao@codesourcery.com>
3338
3339         * gdbthread.h (struct thread_info) <state>: Change its type to
3340         'enum thread_state'.  Update comments.
3341
3342 2014-06-19  Pedro Alves  <palves@redhat.com>
3343
3344         * gdbthread.h (ALL_THREADS): Delete.
3345         (ALL_NON_EXITED_THREADS): New macro.
3346         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3347         instead of ALL_THREADS.
3348         * infrun.c (find_thread_needs_step_over)
3349         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3350         instead of ALL_THREADS.
3351         * record-btrace.c (record_btrace_open)
3352         (record_btrace_stop_recording, record_btrace_close)
3353         (record_btrace_is_replaying, record_btrace_resume)
3354         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3355         * remote.c (append_pending_thread_resumptions): Likewise.
3356         * thread.c (thread_apply_all_command): Likewise.
3357
3358 2014-06-19  Gary Benson  <gbenson@redhat.com>
3359
3360         * i386-nat.c (i386_stopped_by_watchpoint):
3361         Use i386_dr_stopped_by_watchpoint.
3362         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3363         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3364
3365 2014-06-19  Gary Benson  <gbenson@redhat.com>
3366
3367         * nat/i386-dregs.c: New file.
3368         * Makefile.in (i386-dregs.o): New rule.
3369         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3370         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3371         * config/i386/darwin.mh (NATDEPFILES): Likewise.
3372         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3373         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3374         * config/i386/go32.mh (NATDEPFILES): Likewise.
3375         * config/i386/linux.mh (NATDEPFILES): Likewise.
3376         * config/i386/linux64.mh (NATDEPFILES): Likewise.
3377         * config/i386/mingw.mh (NATDEPFILES): Likewise.
3378         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3379         * i386-nat.h (debug_hw_points): New declaration.
3380         * i386-nat.c (breakpoint.h): Remove include.
3381         (command.h): Likewise.
3382         (target.h): Likewise.
3383         (gdb_assert.h): Likewise.
3384         (debug_hw_points): Made nonstatic.
3385         (debug_printf): Now in i386-dregs.c.
3386         (TARGET_HAS_DR_LEN_8): Likewise.
3387         (DR_CONTROL_SHIFT): Likewise.
3388         (DR_CONTROL_SIZE): Likewise.
3389         (DR_RW_EXECUTE): Likewise.
3390         (DR_RW_WRITE): Likewise.
3391         (DR_RW_READ): Likewise.
3392         (DR_RW_IORW): Likewise.
3393         (DR_LEN_1): Likewise.
3394         (DR_LEN_2): Likewise.
3395         (DR_LEN_4): Likewise.
3396         (DR_LEN_8): Likewise.
3397         (DR_LOCAL_ENABLE_SHIFT): Likewise.
3398         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3399         (DR_ENABLE_SIZE): Likewise.
3400         (DR_LOCAL_SLOWDOWN): Likewise.
3401         (DR_GLOBAL_SLOWDOWN): Likewise.
3402         (DR_CONTROL_RESERVED): Likewise.
3403         (I386_DR_CONTROL_MASK): Likewise.
3404         (I386_DR_VACANT): Likewise.
3405         (I386_DR_LOCAL_ENABLE): Likewise.
3406         (I386_DR_GLOBAL_ENABLE): Likewise.
3407         (I386_DR_DISABLE): Likewise.
3408         (I386_DR_SET_RW_LEN): Likewise.
3409         (I386_DR_GET_RW_LEN): Likewise.
3410         (I386_DR_WATCH_HIT): Likewise.
3411         (i386_wp_op_t): Likewise.
3412         (i386_show_dr): Likewise.
3413         (i386_length_and_rw_bits): Likewise.
3414         (i386_insert_aligned_watchpoint): Likewise.
3415         (i386_remove_aligned_watchpoint): Likewise.
3416         (i386_handle_nonaligned_watchpoint): Likewise.
3417         (i386_update_inferior_debug_regs): Likewise.
3418         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3419         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3420         (i386_region_ok_for_watchpoint):
3421         Use i386_dr_region_ok_for_watchpoint.
3422         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3423
3424 2014-06-19  Gary Benson  <gbenson@redhat.com>
3425
3426         * i386-nat.c (i386_insert_hw_breakpoint): Use
3427         i386_insert_watchpoint.
3428         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3429
3430 2014-06-19  Gary Benson  <gbenson@redhat.com>
3431
3432         * i386-nat.c (i386_dr_show): Renamed to
3433         i386_show_dr and made static.  All uses updated.
3434         (i386_dr_length_and_rw_bits): Renamed to
3435         i386_length_and_rw_bits and made static.
3436         All uses updated.
3437         (i386_dr_insert_aligned_watchpoint): Renamed to
3438         i386_insert_aligned_watchpoint and made static.
3439         All uses updated.
3440         (i386_dr_remove_aligned_watchpoint): Renamed to
3441         i386_remove_aligned_watchpoint and made static.
3442         All uses updated.
3443         (i386_dr_update_inferior_debug_regs): Renamed to
3444         i386_update_inferior_debug_regs and made static.
3445         All uses updated.
3446         * nat/i386-dregs.h (i386_dr_show): Removed.
3447         (i386_dr_length_and_rw_bits): Likewise.
3448         (i386_dr_insert_aligned_watchpoint): Likewise.
3449         (i386_dr_remove_aligned_watchpoint): Likewise.
3450         (i386_dr_update_inferior_debug_regs): Likewise.
3451
3452 2014-06-19  Gary Benson  <gbenson@redhat.com>
3453
3454         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3455         * configure: Regenerate.
3456         * config.in: Likewise.
3457         * main.c (signal.h): New include.
3458         (setup_alternate_signal_stack): New function.
3459         (captured_main): Call the above.
3460         * cp-support.c (signal.h): New include.
3461         (catch_demangler_crashes): New flag.
3462         (SIGJMP_BUF): New define.
3463         (SIGSETJMP): Likewise.
3464         (SIGLONGJMP): Likewise.
3465         (gdb_demangle_jmp_buf): New static global.
3466         (gdb_demangle_attempt_core_dump): Likewise.
3467         (gdb_demangle_signal_handler): New function.
3468         (gdb_demangle): If catch_demangler_crashes is set, install the
3469         above signal handler before calling bfd_demangle, and restore
3470         the original signal handler afterwards.  Display the offending
3471         symbol and call demangler_warning the first time a segmentation
3472         fault is caught.
3473         (_initialize_cp_support): New maint set/show command.
3474
3475 2014-06-19  Gary Benson  <gbenson@redhat.com>
3476
3477         * utils.h (resource_limit_kind): New enum.
3478         (can_dump_core): New declaration.
3479         (warn_cant_dump_core): Likewise.
3480         (dump_core): Likewise.
3481         * utils.c (dump_core): Made nonstatic.  Added new
3482         parameter "limit_kind".
3483         (can_dump_core): Made nonstatic. Moved printing code to...
3484         (warn_cant_dump_core): New function.
3485         (can_dump_core_warn): Likewise.
3486         (internal_vproblem): Replace calls to can_dump_core with
3487         calls to can_dump_core_warn.  Supply new argument to each.
3488
3489 2014-06-19  Gary Benson  <gbenson@redhat.com>
3490
3491         * utils.h (demangler_vwarning): New declaration.
3492         (demangler_warning): Likewise.
3493         * utils.c (struct internal_problem)
3494         <user_settable_should_quit>: New field.
3495         <user_settable_should_dump_core>: Likewise
3496         (internal_error_problem): Add values for above new fields.
3497         (internal_warning_problem): Likewise.
3498         (demangler_warning_problem): New static global.
3499         (demangler_vwarning): New function.
3500         (demangler_warning): Likewise.
3501         (add_internal_problem_command): Selectively add commands.
3502         (_initialize_utils): New internal problem command.
3503         * maint.c (maintenance_demangler_warning): New function.
3504         (_initialize_maint_cmds): New command.
3505
3506 2014-06-18  Tom Tromey  <tromey@redhat.com>
3507
3508         * f-valprint.c (info_common_command_for_block): Update.
3509         * symtab.h (struct general_symbol_info) <common_block>: Now
3510         const.
3511
3512 2014-06-18  Tom Tromey  <tromey@redhat.com>
3513
3514         * symtab.h (struct symtab) <blockvector>: Now const.
3515         * ada-lang.c (ada_add_global_exceptions): Update.
3516         * buildsym.c (augment_type_symtab): Update.
3517         * dwarf2read.c (dw2_lookup_symbol): Update.
3518         * jit.c (finalize_symtab): Update.
3519         * jv-lang.c (add_class_symtab_symbol): Update.
3520         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3521         Update.
3522         * objfiles.c (objfile_relocate1): Update.
3523         * psymtab.c (lookup_symbol_aux_psymtabs)
3524         (maintenance_check_psymtabs): Update.
3525         * python/py-symtab.c (stpy_global_block, stpy_static_block):
3526         Update.
3527         * spu-tdep.c (spu_catch_start): Update.
3528         * symmisc.c (dump_symtab_1): Update.
3529         * symtab.c (lookup_global_symbol_from_objfile)
3530         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3531         (basic_lookup_transparent_type_quick)
3532         (basic_lookup_transparent_type, find_pc_sect_symtab)
3533         (find_pc_sect_line, search_symbols): Update.
3534         * block.c (find_block_in_blockvector): Make "bl" const.
3535         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3536         const.
3537         (blockvector_contains_pc): Make "bv" const.
3538         (block_for_pc_sect): Update.
3539         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3540         (blockvector_contains_pc): Update.
3541         * breakpoint.c (resolve_sal_pc): Update.
3542         * inline-frame.c (block_starting_point_at): Update.
3543
3544 2014-06-18  Tom Tromey  <tromey@redhat.com>
3545
3546         * completer.c (complete_line): Make "line_buffer" const.
3547         * completer.h (complete_line): Update.
3548
3549 2014-06-18  Tom Tromey  <tromey@redhat.com>
3550
3551         * symtab.c (add_macro_name): Remove unneeded cast.
3552
3553 2014-06-18  Tom Tromey  <tromey@redhat.com>
3554
3555         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3556         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3557
3558 2014-06-18  Tom Tromey  <tromey@redhat.com>
3559
3560         * probe.c (info_probes_for_ops): Make "arg" const.
3561         * probe.h (info_probes_for_ops): Update.
3562
3563 2014-06-18  Tom Tromey  <tromey@redhat.com>
3564
3565         * varobj.c (varobj_create): Update.
3566         * valops.c (value_of_this): Update.
3567         * tracepoint.c (add_local_symbols, scope_info): Update.
3568         * symtab.h (struct general_symbol_info) <block>: Now const.
3569         * symtab.c (skip_prologue_sal)
3570         (default_make_symbol_completion_list_break_on)
3571         (skip_prologue_using_sal): Update.
3572         * stack.h (iterate_over_block_locals)
3573         (iterate_over_block_local_vars): Update.
3574         * stack.c (print_frame_args): Update.
3575         (iterate_over_block_locals, iterate_over_block_local_vars): Make
3576         parameter const.
3577         (get_selected_block): Make return type const.
3578         * python/py-frame.c (frapy_block): Update.
3579         * python/py-block.c (gdbpy_block_for_pc): Update.
3580         * p-exp.y (%union) <bval>: Now const.
3581         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3582         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3583         * m2-exp.y (%union) <bval>: Now const.
3584         * linespec.c (get_current_search_block): Make return type const.
3585         (create_sals_line_offset, find_label_symbols): Update.
3586         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3587         Update.
3588         (block_starting_point_at): Make "block" const.
3589         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3590         (check_exception_resume): Update.
3591         * guile/scm-frame.c (gdbscm_frame_block): Update.
3592         * guile/scm-block.c (gdbscm_lookup_block): Update.
3593         * frame.h (get_frame_block): Update.
3594         (get_selected_block): Make return type const.
3595         * frame.c (frame_id_inner): Update.
3596         * f-valprint.c (info_common_command_for_block)
3597         (info_common_command): Update.
3598         * dwarf2loc.c (dwarf2_find_location_expression)
3599         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3600         (locexpr_describe_location_piece): Update.
3601         * c-exp.y (%union) <bval>: Now const.
3602         * breakpoint.c (resolve_sal_pc): Update.
3603         * blockframe.c (get_frame_block):Make return type const.
3604         (get_pc_function_start, get_frame_function, find_pc_sect_function)
3605         (block_innermost_frame): Update.
3606         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3607         (block_for_pc, block_for_pc_sect): Update.
3608         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3609         'pblock' const.
3610         (block_for_pc_sect, block_for_pc): Make return type const.
3611         * ax-gdb.c (gen_expr): Update.
3612         * alpha-mdebug-tdep.c (find_proc_desc): Update.
3613         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3614         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3615         (ada_read_var_value): Update.
3616         * ada-exp.y (struct name_info) <block>: Now const.
3617         (%union): Likewise.
3618         (block_lookup): Constify.
3619
3620 2014-06-18  Gary Benson  <gbenson@redhat.com>
3621
3622         * nat/i386-dregs.h: New file.
3623         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3624         * i386-nat.h (i386-dregs.h): New include.
3625         (DR_FIRSTADDR): Now in i386-dregs.h.
3626         (DR_LASTADDR): Likewise.
3627         (DR_NADDR): Likewise.
3628         (DR_STATUS): Likewise.
3629         (DR_CONTROL): Likewise.
3630         (i386_debug_reg_state): Likewise.
3631         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3632
3633 2014-06-18  Don Breazeal  <donb@codesourcery.com>
3634
3635         * breakpoint.c (set_longjmp_breakpoint): Call
3636         momentary_breakpoint_from_master with additional argument.
3637         (set_longjmp_breakpoint_for_call_dummy): Call
3638         momentary_breakpoint_from_master with additional argument.
3639         (set_std_terminate_breakpoint): Call
3640         momentary_breakpoint_from_master with additional argument.
3641         (momentary_breakpoint_from_master): Add argument to function
3642         definition and use it to initialize structure member flag.
3643         (clone_momentary_breakpoint): Call
3644         momentary_breakpoint_from_master with additional argument.
3645         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3646         member flags set in momentary_breakpoint_from_master.
3647
3648 2014-06-18  Gary Benson  <gbenson@redhat.com>
3649
3650         * i386-nat.c (i386_show_dr): Renamed to
3651         i386_dr_show and made nonstatic.  All uses updated.
3652         (i386_length_and_rw_bits): Renamed to
3653         i386_dr_length_and_rw_bits and made nonstatic.
3654         All uses updated.
3655         (i386_insert_aligned_watchpoint): Renamed to
3656         i386_dr_insert_aligned_watchpoint and made nonstatic.
3657         All uses updated.
3658         (i386_remove_aligned_watchpoint): Renamed to
3659         i386_dr_remove_aligned_watchpoint and made nonstatic.
3660         All uses updated.
3661         (i386_update_inferior_debug_regs): Renamed to
3662         i386_dr_update_inferior_debug_regs and made nonstatic.
3663         All uses updated.
3664
3665 2014-06-18  Gary Benson  <gbenson@redhat.com>
3666
3667         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3668         (i386_dr_low_can_set_control): Likewise.
3669         (i386_dr_low_set_addr): Likewise.
3670         (i386_dr_low_set_control): Likewise.
3671         (i386_dr_low_get_addr): Likewise.
3672         (i386_dr_low_get_status): Likewise.
3673         (i386_dr_low_get_control): Likewise.
3674         (i386_insert_aligned_watchpoint): Use new macros.
3675         (i386_update_inferior_debug_regs): Likewise.
3676         (i386_stopped_data_address): Likewise.
3677
3678 2014-06-18  Gary Benson  <gbenson@redhat.com>
3679
3680         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3681         New parameter.  All uses updated.
3682
3683 2014-06-18  Gary Benson  <gbenson@redhat.com>
3684
3685         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3686         All uses updated.
3687
3688 2014-06-18  Gary Benson  <gbenson@redhat.com>
3689
3690         * i386-nat.c (debug_printf): New macro.
3691         (i386_get_debug_register_length): Likewise.
3692         (TARGET_HAS_DR_LEN_8): Use above macro.
3693         (i386_show_dr): Use debug_printf instead of puts_unfiltered
3694         and printf_unfiltered.  Use phex to format values.
3695
3696 2014-06-18  Gary Benson  <gbenson@redhat.com>
3697
3698         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3699         Make const.
3700
3701 2014-06-18  Gary Benson  <gbenson@redhat.com>
3702
3703         * i386-nat.c: Comment changes.
3704
3705 2014-06-18  Gary Benson  <gbenson@redhat.com>
3706
3707         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3708
3709 2014-06-18  Gary Benson  <gbenson@redhat.com>
3710
3711         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3712         (i386_insert_aligned_watchpoint): Likewise.
3713         (i386_remove_aligned_watchpoint): Likewise.
3714         (i386_handle_nonaligned_watchpoint): Likewise.
3715
3716 2014-06-18  Gary Benson  <gbenson@redhat.com>
3717
3718         * i386-nat.c: Whitespace changes.
3719
3720 2014-06-17  Samuel Bronson  <naesten@gmail.com>
3721
3722         * MAINTAINERS: Update Roland McGrath's email address.
3723         Thanks to Sergio Durigan Junior for pointing out that he left
3724         Red Hat a while ago, and giving me a current address.
3725
3726 2014-06-17  Tom Tromey  <tromey@redhat.com>
3727
3728         * utils.h (savestring): Remove declaration.
3729
3730 2014-06-17  Tom Tromey  <tromey@redhat.com>
3731
3732         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3733
3734 2014-06-16  Keith Seitz  <keiths@redhat.com>
3735
3736         PR mi/15863
3737         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3738         to update the varobj if inferior_ptid is null_ptid.
3739
3740 2014-06-16  Tom Tromey  <tromey@redhat.com>
3741
3742         * target.h (struct target_ops) <to_info_proc>: Make parameter
3743         const.
3744         (target_info_proc): Update.
3745         * target.c (target_info_proc): Make "args" const.
3746         * procfs.c (procfs_info_proc): Update.
3747         * linux-tdep.c (linux_info_proc): Update.
3748         (linux_core_info_proc_mappings): Make "args" const.
3749         (linux_core_info_proc): Update.
3750         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3751         * gdbarch.c: Rebuild.
3752         * gdbarch.h: Rebuild.
3753         * corelow.c (core_info_proc): Update.
3754
3755 2014-06-16  Tom Tromey  <tromey@redhat.com>
3756
3757         * target.h (struct target_ops) <to_disconnect>: Make parameter
3758         const.
3759         (target_disconnect): Update.
3760         * target.c (target_disconnect): Make "args" const.
3761         * target-delegates.c: Rebuild.
3762         * remote.c (remote_disconnect): Update.
3763         * record.h (record_disconnect): Update.
3764         * record.c (record_disconnect): Update.
3765         * inf-child.c (inf_child_disconnect): Update.
3766
3767 2014-06-16  Tom Tromey  <tromey@redhat.com>
3768
3769         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3770         * target.c (debug_to_rcmd, default_rcmd): Update.
3771         * target-delegates.c: Rebuild.
3772         * remote.c (remote_rcmd): Update.
3773         * monitor.c (monitor_rcmd): Update.
3774
3775 2014-06-16  Pedro Alves  <palves@redhat.com>
3776
3777         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3778         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3779         have OBJF_SHARED set.
3780         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3781         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
3782         instead of OBJF_USERLOADED.
3783         * objfiles.h (OBJF_SHARED): Update comment.
3784         (userloaded_objfile_contains_address_p): Rename to ...
3785         (shared_objfile_contains_address_p): ... this, and update
3786         comments.
3787         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3788         new objfile.
3789         (remove_symbol_file_command): Skip objfiles that don't have
3790         OBJF_SHARED set.
3791
3792 2014-06-16  Tom Tromey  <tromey@redhat.com>
3793
3794         * minsyms.h (prim_record_minimal_symbol)
3795         (prim_record_minimal_symbol_and_info): Update comments.
3796
3797 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
3798
3799         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3800         or --without-guile, according to how GDB was built.
3801
3802 2014-06-13  Tom Tromey  <tromey@redhat.com>
3803
3804         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3805         to help_list.
3806         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3807         to help_list.
3808         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3809         help_list.
3810         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3811         help_list.Pass all_commands, not -1, to help_list.
3812         * cli/cli-dump.c (dump_command, append_command)
3813         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3814         (binary_dump_command, binary_append_command): Pass all_commands,
3815         not -1, to help_list.
3816         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3817         -1, to help_list.
3818         * valprint.c (set_print, set_print_raw): Pass all_commands, not
3819         -1, to help_list.
3820         * typeprint.c (set_print_type): Pass all_commands, not -1, to
3821         help_list.
3822         * top.c (set_history): Pass all_commands, not -1, to help_list.
3823         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3824         all_commands, not -1, to help_list.
3825         * symfile.c (overlay_command): Pass all_commands, not -1, to
3826         help_list.
3827         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3828         help_list.
3829         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3830         help_list.
3831         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3832         -1, to help_list.
3833         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3834         not -1, to help_list.
3835         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3836         not -1, to help_list.
3837         * maint.c (maintenance_command, maintenance_info_command)
3838         (maintenance_print_command, maintenance_set_cmd): Pass
3839         all_commands, not -1, to help_list.
3840         * macrocmd.c (macro_command): Pass all_commands, not -1, to
3841         help_list.
3842         * language.c (set_check): Pass all_commands, not -1, to help_list.
3843         * infcmd.c (unset_command): Pass all_commands, not -1, to
3844         help_list.
3845         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3846         help_list.
3847         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3848         help_list.
3849         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3850         help_list.
3851         * breakpoint.c (save_command): Pass all_commands, not -1, to
3852         help_list.
3853         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3854         all_commands, not -1, to help_list.
3855
3856 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
3857
3858         * regcache.c (struct register_to_invalidate): New structure.
3859         (do_register_invalidate, make_cleanup_regcache_invalidate): New
3860         functions.
3861         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3862
3863 2014-06-12  Yao Qi  <yao@codesourcery.com>
3864
3865         * varobj.c (varobj_get_num_children): Call
3866         varobj_is_dynamic_p.
3867         (varobj_list_children): Likewise.
3868         (varobj_update): Likewise.  Update comments.
3869
3870 2014-06-12  Yao Qi  <yao@codesourcery.com>
3871
3872         * varobj.c (varobj_pretty_printed_p): Rename to ...
3873         (varobj_is_dynamic_p): ... this.  New function.
3874         * varobj.h (varobj_pretty_printed_p): Remove declaration.
3875         (varobj_is_dynamic_p): Declare.
3876         * mi/mi-cmd-var.c (print_varobj): All callers updated.
3877         (mi_print_value_p, varobj_update_one): Likewise.
3878
3879 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
3880             Yao Qi  <yao@codesourcery.com>
3881
3882         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3883         (varobj_get_iterator): Wrap up code for pretty-printer by
3884         "#if HAVE_PYTHON" and "#endif".
3885         (update_dynamic_varobj_children): Likewise.
3886
3887 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
3888             Yao Qi  <yao@codesourcery.com>
3889
3890         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3891         gdb_python_initialized is false.  Move some code from varobj.c.
3892         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3893         * varobj.c: Move "varobj-iter.h" inclusion earlier.
3894         (struct varobj_item): Moved to varobj-iter.h".
3895         (varobj_clear_saved_item): New function.
3896         (update_dynamic_varobj_children): Move python-related code to
3897         py-varobj.c.
3898         (free_variable): Call varobj_clear_saved_item and
3899         varobj_iter_delete.
3900
3901 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
3902             Yao Qi  <yao@codesourcery.com>
3903
3904         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3905         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3906         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3907         (py-varobj.o): New rule.
3908         * python/py-varobj.c: New file.
3909         * python/python-internal.h (py_varobj_get_iterator): Declare.
3910         * varobj-iter.h: New file.
3911         * varobj.c: Include "varobj-iter.h"
3912         (struct varobj) <child_iter>: Change its type from "PyObject *"
3913         to "struct varobj_iter *".
3914         <saved_item>: Likewise.
3915         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3916         [HAVE_PYTHON] (varobj_get_iterator): New function.
3917         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3918         python-specific code to python/py-varobj.c.
3919         (install_visualizer): Call varobj_iter_delete instead of
3920         Py_XDECREF.
3921         * varobj.h (varobj_ensure_python_env): Declare.
3922
3923 2014-06-12  Yao Qi  <yao@codesourcery.com>
3924
3925         * varobj.c (struct varobj_item): New structure.
3926         (create_child_with_value): Update declaration.
3927         (varobj_add_child): Replace arguments 'name' and 'value' with
3928         'item'.  All callers updated.
3929         (install_dynamic_child): Likewise.
3930         (update_dynamic_varobj_children): Likewise.
3931         (varobj_add_child): Likewise.
3932         (create_child_with_value): Likewise.
3933
3934 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
3935
3936         * NEWS: Create a new section for the next release branch.
3937         Rename the section of the current branch, now that it has
3938         been cut.
3939
3940 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
3941
3942         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3943         * version.in: Bump version to 7.8.50.DATE-cvs.
3944
3945 2014-06-11  Pedro Alves  <palves@redhat.com>
3946
3947         PR remote/17028
3948         * ser-mingw.c (net_windows_socket_check_pending): New function.
3949         (net_windows_select_thread): Ignore spurious wakeups.  Use
3950         net_windows_socket_check_pending.
3951         (net_windows_wait_handle): Check for pending events with
3952         ioctlsocket, through net_windows_socket_check_pending, instead of
3953         checking the socket's event.
3954
3955 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
3956
3957         * python/python-internal.h (gdb_PyObject_GetAttrString)
3958         (gdb_PyObject_HasAttrString): New inline function definitions.
3959         * py-value.c (get_field_flag): Remove the now unnecessary cast to
3960         char * of the second argument to PyObject_GetAttrString.
3961
3962 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
3963
3964         * serial.c (serial_write): Fix index of character to be printed
3965         in call to serial_logchar when serial debug traces are enabled.
3966
3967 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
3968
3969         * gdbtypes (resolve_dynamic_range): Add function description.
3970
3971 2014-06-09  Pedro Alves  <palves@redhat.com>
3972
3973         * linux-nat.c (linux_child_follow_fork): Initialize status with
3974         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
3975         inner block.  Only pass the signal to PTRACE_DETACH if in pass
3976         state.
3977
3978 2014-06-09  Gary Benson  <gbenson@redhat.com>
3979
3980         * common/signals.c (gdb_signal_from_host): Reorder to separate
3981         the always-available ANSI-standard signals from the signals that
3982         require checking.
3983         (do_gdb_signal_to_host): Likewise.
3984         * proc-events.c (signal_table): Likewise.
3985
3986 2014-06-08  Hui Zhu  <hui@codesourcery.com>
3987
3988         * common/linux-ptrace.c (linux_disable_event_reporting): New
3989         function.
3990         * common/linux-ptrace.h (linux_disable_event_reporting): New
3991         declaration.
3992         * linux-nat.c (linux_child_follow_fork): Do a single step before
3993         detach.
3994
3995 2014-06-07  Keith Seitz  <keiths@redhat.com>
3996
3997         Revert:
3998         PR c++/16253
3999         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4000         from symbol_matches_domain in symtab.c. All local callers
4001         of symbol_matches_domain updated.
4002         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4003         search STRUCT_DOMAIN.
4004         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4005         independently.  standard_lookup will do that automatically.
4006         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4007         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4008         (cp_lookup_symbol_in_namespace): Likewise.
4009         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4010         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4011         may return a STRUCT_DOMAIN match.
4012         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4013         * cp-support.c: Include language.h.
4014         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4015         VAR_DOMAIN.
4016         * psymtab.c (match_partial_symbol): Compare the requested
4017         domain with the symbol's domain directly.
4018         (lookup_partial_symbol): Likewise.
4019         * symtab.c (lookup_symbol_in_language): Explain when/why
4020         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4021         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4022         appropriate languages.
4023         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4024         and moved to ada-lang.c
4025         (lookup_block_symbol): Explain that this function only returns
4026         symbol matching the requested DOMAIN.
4027         Compare the requested domain with the symbol's domain directly.
4028         (iterate_over_symbols): Compare the requested domain with the
4029         symbol's domain directly.
4030         * symtab.h (symbol_matches_domain): Remove.
4031
4032 2014-06-06  Doug Evans  <xdje42@gmail.com>
4033
4034         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4035         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4036         (gdbscm_guile_version_is_at_least): Declare.
4037         (gdbscm_scm_string_to_int): Declare.
4038         * guile/guile.c (gdbscm_guile_major_version): New global.
4039         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4040         (guile_datadir): New static global.
4041         (gdbscm_guile_data_directory): New function.
4042         (initialize_scheme_side): Update.
4043         (misc_guile_functions): Add guile-data-directory.
4044         (initialize_gdb_module): Fetch guile version number.
4045         * guile/lib/gdb.scm: Remove call to add-to-load-path.
4046         * guile/lib/gdb/init.scm (%initialize!): Ditto.
4047         * guile/lib/gdb/boot.scm: Use guile-data-directory.
4048         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4049         comments.
4050         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4051         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4052         * guile/scm-value.c (gdbscm_value_to_string): Only call
4053         scm_port_conversion_strategy if Guile version >= 2.0.6.
4054
4055 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
4056
4057         * main.c (print_gdb_help): Add -q and --silent.
4058
4059 2014-06-06  Gary Benson  <gbenson@redhat.com>
4060
4061         * common/signals.c: Remove preprocessor conditionals for
4062         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4063         SIGSEGV and SIGTERM.
4064         * proc-events.c: Likewise.
4065
4066 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
4067
4068         * symfile.c (symfile_free_objfile): Remove restriction to
4069         OBJF_USERLOADED.
4070         * symfile-mem.c (symbol_file_add_from_memory): Call
4071         add_target_sections_of_objfile.
4072
4073 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
4074
4075         * guile/scm-value.c (gdbscm_history_append_x): Use
4076         'vlscm_get_value_smob_arg_unsafe' instead of
4077         'vlscm_scm_to_value'.
4078
4079 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
4080
4081         PR mi/15806
4082         * utils.c (printchar): Don't escape at all if quoter is NUL.
4083         Update function documentation to clarify effect of parameter
4084         QUOTER.
4085         * remote.c (escape_buffer): Pass '\\' as the quoter to
4086         fputstrn_unfiltered.
4087         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4088         generate the output.
4089         (mi_solib_unloaded): Same.
4090
4091 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
4092
4093         * development.sh: Delete.
4094         * Makefile.in (config.status): Adjust dependency on development.sh.
4095         * configure.ac: Adjust development.sh source call.
4096         * configure: Regenerate.
4097
4098 2014-06-04  Doug Evans  <xdje42@gmail.com>
4099
4100         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4101         is_scheme_bkpt, spec.
4102         (bpscm_make_breakpoint_smob): Initialize new members.
4103         (gdbscm_create_breakpoint_x): Split into two ...
4104         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4105         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4106         (scheme_function breakpoint_functions): Update.
4107         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
4108         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
4109         register-breakpoint!.
4110
4111 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
4112
4113         PR server/17023
4114         * mem-break.c (z_type_supported): Return zero if
4115         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4116
4117 2014-06-04  Tom Tromey  <tromey@redhat.com>
4118
4119         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4120         value_from_contents_and_address_unresolved.
4121         (ada_template_to_fixed_record_type_1): Likewise.
4122         (ada_which_variant_applies): Likewise.
4123         * value.h (value_from_contents_and_address_unresolved): Declare.
4124         * value.c (value_from_contents_and_address_unresolved): New
4125         function.
4126         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4127         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4128         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4129
4130 2014-06-04  Tom Tromey  <tromey@redhat.com>
4131
4132         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4133
4134 2014-06-04  Tom Tromey  <tromey@redhat.com>
4135
4136         * procfs.c (procfs_attach): Make "args" const.
4137         * windows-nat.c (windows_attach): Make "args" const.
4138         * nto-procfs.c (procfs_attach): Make "args" const.
4139         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4140         * go32-nat.c (go32_attach): Make "args" const.
4141         * gnu-nat.c (gnu_attach): Make "args" const.
4142         * darwin-nat.c (darwin_attach): Make "args" const.
4143         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4144         * linux-nat.c (linux_nat_attach): Make "args" const.
4145         * remote.c (extended_remote_attach_1, extended_remote_attach):
4146         Make "args" const.
4147         * target.h (struct target_ops) <to_attach>: Make "args" const.
4148         (find_default_attach): Likewise.
4149         * utils.c (parse_pid_to_attach): Make "args" const.
4150         * utils.h (parse_pid_to_attach): Update.
4151
4152 2014-06-04  Tom Tromey  <tromey@redhat.com>
4153
4154         * target-delegates.c: Rebuild.
4155         * target.c (default_thread_address_space): New function.
4156         (target_thread_address_space): Simplify.
4157         * target.h (struct target_ops) <to_thread_address_space>: Add
4158         TARGET_DEFAULT_FUNC.
4159
4160 2014-06-04  Doug Evans  <xdje42@gmail.com>
4161
4162         * guile/scm-type.c (type_smob): Remove duplicate typedef.
4163
4164 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
4165
4166         * record-btrace.c: Include event-loop.h and inf-loop.h.
4167         (record_btrace_resume_exec_dir)
4168         (record_btrace_async_inferior_event_handler)
4169         (record_btrace_handle_async_inferior_event): New.
4170         (record_btrace_open): Create async event handler.
4171         (record_btrace_close): Delete async event handler.
4172         (record_btrace_resume): Set record_btrace_resume_exec_dir,
4173         Mark async event handler.
4174         (record_btrace_execution_direction): New.
4175         (init_record_btrace_ops): Initialize to_execution_direction.
4176
4177 2014-06-03  Doug Evans  <xdje42@gmail.com>
4178
4179         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4180         (gdbscm_make_parameter): Ditto.
4181
4182 2014-06-03  Doug Evans  <dje@google.com>
4183
4184         * exec.c (exec_close_1): Call clear_section_table instead of
4185         resize_section_table.
4186         (clear_section_table): New function.
4187         (resize_section_table): Make static.  Rename arg num_added to
4188         adjustment.
4189         * exec.h (clear_section_table): Declare.
4190         (resize_section_table): Delete.
4191         * progspace.c (release_program_space): Call clear_section_table
4192         instead of resize_section_table.
4193
4194 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4195
4196         * NEWS (Python Scripting): Add entry about the new xmethods
4197         feature.
4198
4199 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4200
4201         * python/py-xmethods.c: New file.
4202         * python/py-objfile.c (objfile_object): New field 'xmethods'.
4203         (objfpy_dealloc): XDECREF on the new xmethods field.
4204         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4205         field.
4206         (objfpy_get_xmethods): New function.
4207         (objfile_getset): New entry 'xmethods'.
4208         * python/py-progspace.c (pspace_object): New field 'xmethods'.
4209         (pspy_dealloc): XDECREF on the new xmethods field.
4210         (pspy_new, pspace_to_pspace_object): Initialize xmethods
4211         field.
4212         (pspy_get_xmethods): New function.
4213         (pspace_getset): New entry 'xmethods'.
4214         * python/python-internal.h: Add declarations for new functions.
4215         * python/python.c (_initialize_python): Invoke
4216         gdbpy_initialize_xmethods.
4217         * python/lib/gdb/__init__.py (xmethods): New
4218         attribute.
4219         * python/lib/gdb/xmethod.py: New file.
4220         * python/lib/gdb/command/xmethods.py: New file.
4221
4222 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4223
4224         * eval.c (evaluate_subexp_standard): Call the xmethod if the
4225         best match method returned by find_overload_match is an xmethod.
4226         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4227         the best matching operator returned by find_overload_match is an
4228         xmethod.
4229         * valops.c: #include "extension.h".
4230         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4231         Return void.  The list of matching source methods is returned in
4232         "fn_list" and a vector of matching debug method workers is
4233         returned in "xm_worker_vec".  Update all callers.
4234         (value_find_oload_method_list): Likewise.
4235         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
4236         non-NULL, then the index of the best matching method in this
4237         vector is returned.  Update all callers.
4238         (find_overload_match): Include xmethods while performing overload
4239         resolution.
4240
4241 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4242
4243         * defs.h (enum lval_type): New enumerator "lval_xcallable".
4244         * extension-priv.h (struct extension_language_ops): Add the
4245         xmethod interface.
4246         * extension.c (new_xmethod_worker, clone_xmethod_worker,
4247         get_matching_xmethod_workers, get_xmethod_argtypes,
4248         invoke_xmethod, free_xmethod_worker,
4249         free_xmethod_worker_vec): New functions.
4250         * extension.h: #include "common/vec.h".
4251         New function declarations.
4252         (struct xmethod_worker): New struct.
4253         (VEC (xmethod_worker_ptr)): New vector type.
4254         (xmethod_worker_ptr): New typedef.
4255         (xmethod_worker_vec): Likewise.
4256         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4257         builtin_type.
4258         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4259         (struct builtin_type): New field "xmethod".
4260         * valarith.c (value_ptradd): Assert that the value argument is not
4261         lval_xcallable.
4262         * valops.c (value_must_coerce_to_target): Return 0 for
4263         lval_xcallable values.
4264         * value.c (struct value): New field XM_WORKER in the field
4265         LOCATION.
4266         (value_address, value_raw_address): Return 0 for lval_xcallable
4267         values.
4268         (set_value_address): Assert that the value is not an
4269         lval_xcallable.
4270         (value_free): Free the associated xmethod worker when freeing
4271         lval_xcallable values.
4272         (set_value_component_location): Assert that the WHOLE value is not
4273         lval_xcallable.
4274         (value_of_xmethod, call_xmethod): New functions.
4275         * value.h: Declare "struct xmethod_worker".
4276         Declare new functions value_of_xmethod, call_xmethod.
4277
4278 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
4279             Pedro Alves  <palves@redhat.com>
4280
4281         PR breakpoints/17000
4282         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4283         New function, extracted from software_breakpoint_inserted_here_p.
4284         (software_breakpoint_inserted_here_p): Replace factored out code
4285         by call to find_non_raw_software_breakpoint_inserted_here.
4286         (bp_target_info_copy_insertion_state): New function.
4287         (bkpt_insert_location): Handle the case of a single-step
4288         breakpoint already inserted at the same address.
4289         (bkpt_remove_location): Handle the case of a single-step
4290         breakpoint still inserted at the same address.
4291         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4292         breakpoint already inserted at the same address.
4293         (deprecated_remove_raw_breakpoint): Handle the case of a
4294         non-raw breakpoint still inserted at the same address.
4295         (find_single_step_breakpoint): New function, extracted from
4296         single_step_breakpoint_inserted_here_p.
4297         (find_single_step_breakpoint): New function,
4298         factored out from single_step_breakpoint_inserted_here_p.
4299         (single_step_breakpoint_inserted_here_p): Reimplement.
4300
4301 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
4302
4303         Pushed by Joel Brobecker  <brobecker@adacore.com>
4304         * source.c (show_substitute_path_command): Fix display of matching
4305         substitution rules.
4306
4307 2014-06-03  Gary Benson  <gbenson@redhat.com>
4308
4309         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4310
4311 2014-06-02  Doug Evans  <xdje42@gmail.com>
4312
4313         Add parameter support for Guile.
4314         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4315         (SUBDIR_GUILE_SRCS): Add scm-param.c.
4316         (scm-param.o): New rule.
4317         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4318         (gdbscm_misc_error): Declare.
4319         (gdbscm_canonicalize_command_name): Declare.
4320         (gdbscm_scm_to_host_string): Declare.
4321         (gdbscm_scm_from_host_string): Declare.
4322         (gdbscm_initialize_parameters): Declare.
4323         * guile/guile.c (initialize_gdb_module): Call
4324         gdbscm_initialize_parameters.
4325         * guile/lib/gdb.scm: Export parameter symbols.
4326         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4327         cmdscm_canonicalize_name and made public.  All callers updated.
4328         * guile/scm-exception.c (gdbscm_misc_error): New function.
4329         * guile/scm-param.c: New file.
4330         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4331         (gdbscm_scm_to_host_string): New function.
4332         (gdbscm_scm_from_host_string): New function.
4333         * scm-utils.c (gdbscm_gc_dup_argv): New function.
4334
4335 2014-06-02  Doug Evans  <xdje42@gmail.com>
4336
4337         Add command support for Guile.
4338         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4339         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4340         (scm-cmd.o): New rule.
4341         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4342         (gdbscm_user_error_p): Declare.
4343         (gdbscm_parse_command_name): Declare.
4344         (gdbscm_valid_command_class_p): Declare.
4345         (gdbscm_initialize_commands): Declare.
4346         * guile/guile.c (initialize_gdb_module): Call
4347         gdbscm_initialize_commands.
4348         * guile/lib/gdb.scm: Export command symbols.
4349         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4350         (throw-user-error): New function.
4351         * guile/scm-cmd.c: New file.
4352         * guile/scm-exception.c (user_error_symbol): New static global.
4353         (gdbscm_user_error_p): New function.
4354         (gdbscm_initialize_exceptions): Set user_error_symbol.
4355         * scm-utils.c (gdbscm_gc_xstrdup): New function.
4356
4357 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
4358
4359         * top.c (command_loop): Handle comments here...
4360         (command_line_input): ... not here.
4361
4362 2014-06-02  Doug Evans  <xdje42@gmail.com>
4363
4364         Add progspace support for Guile.
4365         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4366         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4367         (scm-progspace.o): New rule.
4368         * guile/guile-internal.h (pspace_smob): New typedef.
4369         (psscm_pspace_smob_pretty_printers): Declare.
4370         (psscm_pspace_smob_from_pspace): Declare.
4371         (psscm_scm_from_pspace): Declare.
4372         * guile/guile.c (initialize_gdb_module): Call
4373         gdbscm_initialize_pspaces.
4374         * guile/lib/gdb.scm: Export progspace symbols.
4375         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4376         support.
4377         (append-pretty-printer!): Ditto.
4378         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4379         Implement.
4380         * guile/scm-progspace.c: New file.
4381
4382 2014-06-03  Alan Modra  <amodra@gmail.com>
4383
4384         * ppc64-tdep.c (ppc64_standard_linkage8): New.
4385         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4386
4387 2014-06-02  Doug Evans  <dje@google.com>
4388
4389         Add support for skeletonless type units.
4390         * dwarf2read.c (struct dwarf2_per_objfile): New member
4391         n_allocated_type_units.
4392         (struct dwarf2_per_objfile) <tu_stats>: New member
4393         nr_all_type_units_reallocs.
4394         (create_signatured_type_table_from_index): Initialize
4395         n_allocated_type_units
4396         (create_all_type_units): Ditto.
4397         (add_type_unit): Move up in file.  New arg slot.
4398         All callers updated.  Increase space for all_type_units more
4399         efficiently.
4400         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4401         (lookup_dwo_signatured_type): Handle skeletonless TUs.
4402         (lookup_dwp_signatured_type): Ditto.
4403         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4404         All callers updated.
4405         (build_type_psymtabs_1): Leave type_unit_groups as
4406         NULL if no TUs present.
4407         (print_tu_stats): New function.
4408         (process_skeletonless_type_unit): New function.
4409         (process_dwo_file_for_skeletonless_type_units): New
4410         function.
4411         (process_skeletonless_type_units): New function.
4412         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4413         Call print tu_stats if debugging enabled.
4414
4415 2014-06-02  Pedro Alves  <palves@redhat.com>
4416
4417         * breakpoint.c (build_target_command_list): Don't build a command
4418         list if we have any duplicate location that isn't a dprintf.
4419
4420 2014-06-02  Pedro Alves  <palves@redhat.com>
4421
4422         * breakpoint.c (dprintf_breakpoint_hit): New function.
4423         (initialize_breakpoint_ops): Install it as dprintf's
4424         breakpoint_hit method.
4425
4426 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
4427
4428         * source.c (substitute_path_rule_matches): Simplify using
4429         filename_ncmp instead of FILENAME_CMP.
4430
4431 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
4432
4433         * source.c (substitute_path_rule_matches): Remove trailing spaces.
4434
4435 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
4436
4437         * configure.ac: When Guile is available, check for the
4438         availability of 'scm_new_smob'.
4439         * configure, config.h.in: Regenerate.
4440         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4441         function.
4442
4443 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
4444
4445         * frame.c (struct frame_info): Add stop_string field.
4446         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4447         (get_prev_frame_always): Old content moved into
4448         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
4449         TRY_CATCH, handle MEMORY_ERROR exceptions.
4450         (frame_stop_reason_string): New function definition.
4451         * frame.h (unwind_stop_reason_to_string): Extend comment to
4452         mention frame_stop_reason_string.
4453         (frame_stop_reason_string): New function declaration.
4454         * stack.c (frame_info): Switch to frame_stop_reason_string.
4455         (backtrace_command_1): Switch to frame_stop_reason_string.
4456         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4457         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4458         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4459
4460 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
4461
4462         * frame.c (frame_stop_reason_string): Rename to ...
4463         (unwind_stop_reason_to_string): this.
4464         * frame.h (frame_stop_reason_string): Rename to ...
4465         (unwind_stop_reason_to_string): this.
4466         * stack.c (frame_info): Update call to frame_stop_reason_string.
4467         (backtrace_command_1): Likewise.
4468         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4469         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4470
4471 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
4472
4473         * frame.c (remove_prev_frame): New function.
4474         (get_prev_frame_if_no_cycle): Create / discard cleanup using
4475         remove_prev_frame.
4476
4477 2014-05-29  Pedro Alves  <palves@redhat.com>
4478
4479         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4480         and make it const.  When a single-step decays to a continue,
4481         clear 'step', not 'hw_step'.  Pass whether the caller wanted
4482         to step to user_visible_resume_ptid, not what we ask the
4483         target to do.
4484
4485 2014-05-29  Pedro Alves  <palves@redhat.com>
4486
4487         * infrun.c (process_event_stop_test, handle_step_into_function)
4488         (handle_step_into_function_backward): Adjust.
4489         Don't set the even thread's stop_step and call stop_waiting before
4490         calling end_stepping_range.  Instead do that ...
4491         (end_stepping_range): ... here.  Take an ecs pointer parameter.
4492
4493 2014-05-29  Pedro Alves  <palves@redhat.com>
4494
4495         * infrun.c (stop_stepping): Rename to ...
4496         (stop_waiting): ... this.
4497         (proceed): Update comment.
4498         (process_event_stop_test, handle_inferior_event)
4499         (handle_signal_stop, handle_step_into_function)
4500         (handle_step_into_function_backward): Update.
4501
4502 2014-05-29  Pedro Alves  <palves@redhat.com>
4503
4504         * infcall.c (run_inferior_call): Don't check whether the current
4505         thread is running after the proceed call.
4506
4507 2014-05-29  Pedro Alves  <palves@redhat.com>
4508             Tom Tromey  <tromey@redhat.com>
4509
4510         * NEWS: Mention "maint set target-async", "set mi-async", and that
4511         background execution commands are now always available.
4512         * target.h (target_async_permitted): Update comment.
4513         * target.c (target_async_permitted, target_async_permitted_1):
4514         Default to 1.
4515         (set_target_async_command): Rename to ...
4516         (maint_set_target_async_command): ... this.
4517         (show_target_async_command): Rename to ...
4518         (maint_show_target_async_command): ... this.
4519         (_initialize_target): Adjust.
4520         * infcmd.c (prepare_execution_command): Make extern.
4521         * inferior.h (prepare_execution_command): Declare.
4522         * infrun.c (set_observer_mode): Leave target async alone.
4523         * mi/mi-interp.c (mi_interpreter_init): Install
4524         mi_on_sync_execution_done as sync_execution_done observer.
4525         (mi_on_sync_execution_done): New function.
4526         (mi_execute_command_input_handler): Don't print the prompt if we
4527         just started a synchronous command with an async target.
4528         (mi_on_resume): Check sync_execution before printing prompt.
4529         * mi/mi-main.h (mi_async_p): Declare.
4530         * mi/mi-main.c: Include gdbcmd.h.
4531         (mi_async_p): New function.
4532         (mi_async, mi_async_1): New globals.
4533         (set_mi_async_command, show_mi_async_command, mi_async): New
4534         functions.
4535         (exec_continue): Call prepare_execution_command.
4536         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4537         (mi_execute_async_cli_command): Use mi_async_p.
4538         (_initialize_mi_main): Install "set mi-async".  Make
4539         "target-async" a deprecated alias.
4540
4541 2014-05-29  Pedro Alves  <palves@redhat.com>
4542
4543         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4544         (_initialize_cli_interp): Adjust.
4545         * event-loop.c: Include "observer.h".
4546         (start_event_loop): Notify 'command_error' observers instead of
4547         calling display_gdb_prompt.  Remove FIXME comment.
4548         * event-top.c (display_gdb_prompt): Remove call into the
4549         interpreters.
4550         * inf-loop.c: Include "observer.h".
4551         (inferior_event_handler): Notify 'command_error' observers instead
4552         of calling display_gdb_prompt.
4553         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4554         observers instead of calling display_gdb_prompt.
4555         * interps.c (interp_set): Don't call display_gdb_prompt.
4556         (current_interp_display_prompt_p): Delete.
4557         * interps.h (interp_prompt_p): Delete declaration.
4558         (interp_prompt_p_ftype): Delete.
4559         (struct interp_procs) <prompt_proc_p>: Delete field.
4560         (current_interp_display_prompt_p): Delete declaration.
4561         * mi-interp.c (mi_interpreter_prompt_p): Delete.
4562         (_initialize_mi_interp): Adjust.
4563         * tui-interp.c (tui_init): Install 'sync_execution_done' and
4564         'command_error' observers.
4565         (tui_on_sync_execution_done, tui_on_command_error): New
4566         functions.
4567         (tui_display_prompt_p): Delete.
4568         (_initialize_tui_interp): Adjust.
4569
4570 2014-05-29  Pedro Alves  <palves@redhat.com>
4571
4572         PR gdb/13860
4573         * cli/cli-interp.c: Include infrun.h and observer.h.
4574         (cli_uiout, cli_interp): New globals.
4575         (cli_on_signal_received, cli_on_end_stepping_range)
4576         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4577         functions.
4578         (cli_interpreter_init): Install them as 'end_stepping_range',
4579         'signal_received' 'signal_exited', 'exited' and 'no_history'
4580         observers.
4581         (_initialize_cli_interp): Remove cli_interp local.
4582         * infrun.c (handle_inferior_event): Call the several stop reason
4583         observers instead of printing the stop reason directly.
4584         (end_stepping_range): New function.
4585         (print_end_stepping_range_reason, print_signal_exited_reason)
4586         (print_exited_reason, print_signal_received_reason)
4587         (print_no_history_reason): Make static, and add an uiout
4588         parameter.  Print to that instead of to CURRENT_UIOUT.
4589         * infrun.h (print_end_stepping_range_reason)
4590         (print_signal_exited_reason, print_exited_reason)
4591         (print_signal_received_reason print_no_history_reason): New
4592         declarations.
4593         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4594         'mi_uiout'.
4595         <cli_uiout>: New field.
4596         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
4597         uiout for CLI output.  Install 'signal_received',
4598         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4599         observers.
4600         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4601         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4602         (mi_on_no_history): New functions.
4603         (ui_out_free_cleanup): Delete function.
4604         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4605         instead use the one already stored in the MI interpreter data.
4606         (mi_ui_out): Adjust.
4607         * tui/tui-interp.c: Include infrun.h and observer.h.
4608         (tui_interp): New global.
4609         (tui_on_signal_received, tui_on_end_stepping_range)
4610         (tui_on_signal_exited, tui_on_exited)
4611         (tui_on_no_history): New functions.
4612         (tui_init): Install them as 'end_stepping_range',
4613         'signal_received' 'signal_exited', 'exited' and 'no_history'
4614         observers.
4615         (_initialize_tui_interp): Delete tui_interp local.
4616
4617 2014-05-29  Pedro Alves  <palves@redhat.com>
4618
4619         PR gdb/15713
4620         * linux-nat.c (linux_nat_resume_callback): Rename the second
4621         parameter to 'except'.  Skip LP if it points to EXCEPT.
4622         (linux_nat_resume): Don't mark the event lwp as not stopped
4623         before resuming sibling lwps.  Instead ask
4624         linux_nat_resume_callback to skip the event lwp.  Mark it as not
4625         stopped after actually resuming it.
4626         (linux_handle_syscall_trap): Mark the lwp as not stopped after
4627         resuming it.
4628         (wait_lwp): Mark the lwp as stopped here.
4629         (stop_wait_callback): Mark the lwp as not stopped right after
4630         resuming it.  Don't mark lwps as stopped here.
4631         (linux_nat_filter_event): Mark the lwp as stopped earlier.
4632         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4633
4634 2014-05-29  Pedro Alves  <palves@redhat.com>
4635
4636         PR PR15693
4637         * infrun.c (resume): Determine how much to resume depending on
4638         whether the caller wanted a step, not whether we can hardware step
4639         the target.  Mark all threads that we intend to run as running,
4640         unless we're calling an inferior function.
4641         (normal_stop): If the thread is running an infcall, don't finish
4642         thread state.
4643         * target.c (target_resume): Don't mark threads as running here.
4644
4645 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
4646
4647         * serial.c (_initialize_serial): Remove support for
4648         the "set remotebaud" and "show remotebaud" commands.
4649         * NEWS: Add entry documenting the removal of that command.
4650
4651 2014-05-28  Yao Qi  <yao@codesourcery.com>
4652
4653         * charset.c: Fix typo in comments.
4654
4655 2014-05-27  Gary Benson  <gbenson@redhat.com>
4656
4657         * utils.c (internal_vproblem): Prompt for a bug report.
4658
4659 2014-05-26  Andy Wingo  <wingo@igalia.com>
4660
4661         * guile/scm-arch.c (arscm_mark_arch_smob):
4662         * guile/scm-block.c (bkscm_mark_block_smob)
4663         (bkscm_mark_block_syms_progress_smob):
4664         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4665         * guile/scm-exception.c (exscm_mark_exception_smob):
4666         * guile/scm-frame.c (frscm_mark_frame_smob):
4667         * guile/scm-iterator.c (itscm_mark_iterator_smob):
4668         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4669         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4670         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4671         (ppscm_mark_pretty_printer_worker_smob):
4672         * guile/scm-symbol.c (syscm_mark_symbol_smob):
4673         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4674         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4675         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4676         mark functions.
4677         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4678         function.
4679
4680 2014-05-26  Andy Wingo  <wingo@igalia.com>
4681             Doug Evans  <xdje42@gmail.com>
4682
4683         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4684         empty_base_class.  All uses updated.
4685         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4686         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4687         Adapt all callers.
4688         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4689         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4690         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4691         (gdbscm_gsmob_has_property_p, add_property_name)
4692         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4693         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4694         (gdb-object-has-property?, gdb-object-properties): Remove.
4695         (gdb-object-kind): Renamed from gsmob-kind.
4696
4697 2014-05-26  Andy Wingo  <wingo@igalia.com>
4698
4699         * configure.ac (try_guile_versions): Allow building with guile 2.2.
4700         * configure: Regenerate.
4701
4702 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
4703
4704         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4705
4706 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
4707
4708         * record-btrace.c (record_btrace_allow_memory_access): Remove.
4709         (replay_memory_access_read_only, replay_memory_access_read_write)
4710         (replay_memory_access_types, replay_memory_access)
4711         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4712         (cmd_set_record_btrace, cmd_show_record_btrace)
4713         (cmd_show_replay_memory_access): New.
4714         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4715         (record_btrace_remove_breakpoint): Replace
4716         record_btrace_allow_memory_access with replay_memory_access.
4717         (_initialize_record_btrace): Add commands.
4718         * NEWS: Announce it.
4719
4720 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4721
4722         * aarch64-linux-nat.c (asm/ptrace.h): Include.
4723
4724 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4725
4726         * MAINTAINERS (Write After Approval): Move self back from
4727         paper trail.
4728
4729 2014-05-22  Pedro Alves  <palves@redhat.com>
4730
4731         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4732         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4733         (disable_randomization, enum exec_direction_kind)
4734         (execution_direction, stop_registers, start_remote)
4735         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4736         (wait_for_inferior, normal_stop, get_last_target_status)
4737         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4738         (insert_step_resume_breakpoint_at_sal)
4739         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4740         (set_step_info, print_stop_event, signal_stop_state)
4741         (signal_print_state, signal_pass_state, signal_stop_update)
4742         (signal_print_update, signal_pass_update)
4743         (update_signals_program_target, clear_exit_convenience_vars)
4744         (displaced_step_dump_bytes, update_observer_mode)
4745         (signal_catch_update, gdb_signal_from_command): Move
4746         declarations ...
4747         * infrun.h: ... to this new file.
4748         * amd64-tdep.c: Include infrun.h.
4749         * annotate.c: Include infrun.h.
4750         * arch-utils.c: Include infrun.h.
4751         * arm-linux-tdep.c: Include infrun.h.
4752         * arm-tdep.c: Include infrun.h.
4753         * break-catch-sig.c: Include infrun.h.
4754         * breakpoint.c: Include infrun.h.
4755         * common/agent.c: Include infrun.h instead of inferior.h.
4756         * corelow.c: Include infrun.h.
4757         * event-top.c: Include infrun.h.
4758         * go32-nat.c: Include infrun.h.
4759         * i386-tdep.c: Include infrun.h.
4760         * inf-loop.c: Include infrun.h.
4761         * infcall.c: Include infrun.h.
4762         * infcmd.c: Include infrun.h.
4763         * infrun.c: Include infrun.h.
4764         * linux-fork.c: Include infrun.h.
4765         * linux-nat.c: Include infrun.h.
4766         * linux-thread-db.c: Include infrun.h.
4767         * monitor.c: Include infrun.h.
4768         * nto-tdep.c: Include infrun.h.
4769         * procfs.c: Include infrun.h.
4770         * record-btrace.c: Include infrun.h.
4771         * record-full.c: Include infrun.h.
4772         * remote-m32r-sdi.c: Include infrun.h.
4773         * remote-mips.c: Include infrun.h.
4774         * remote-notif.c: Include infrun.h.
4775         * remote-sim.c: Include infrun.h.
4776         * remote.c: Include infrun.h.
4777         * reverse.c: Include infrun.h.
4778         * rs6000-tdep.c: Include infrun.h.
4779         * s390-linux-tdep.c: Include infrun.h.
4780         * solib-irix.c: Include infrun.h.
4781         * solib-osf.c: Include infrun.h.
4782         * solib-svr4.c: Include infrun.h.
4783         * target.c: Include infrun.h.
4784         * top.c: Include infrun.h.
4785         * windows-nat.c: Include infrun.h.
4786         * mi/mi-interp.c: Include infrun.h.
4787         * mi/mi-main.c: Include infrun.h.
4788         * python/py-threadevent.c: Include infrun.h.
4789
4790 2014-05-22  Pedro Alves  <palves@redhat.com>
4791
4792         * infrun.c (handle_inferior_event): Store the exit code for
4793         --return-child-result here, instead of ...
4794         (print_exited_reason): ... here.
4795
4796 2014-05-21  Pedro Alves  <palves@redhat.com>
4797
4798         PR gdb/13860
4799         * gdbthread.h (struct thread_control_state): New field
4800         `command_interp'.
4801         * infrun.c (follow_fork): Copy the new thread control field to the
4802         child fork thread.
4803         (clear_proceed_status_thread): Clear the new thread control field.
4804         (proceed): Set the new thread control field.
4805         * interps.h (command_interp): Declare.
4806         * interps.c (command_interpreter): New global.
4807         (command_interp): New function.
4808         (interp_exec): Set `command_interpreter' while here.
4809         * cli-out.c (cli_uiout_dtor): New function.
4810         (cli_ui_out_impl): Install it.
4811         * mi/mi-interp.c: Include cli-out.h.
4812         (mi_cmd_interpreter_exec): Add comment.
4813         (restore_current_uiout_cleanup): New function.
4814         (ui_out_free_cleanup): New function.
4815         (mi_on_normal_stop): If finishing an execution command started by
4816         a CLI command, or any kind of breakpoint-like event triggered,
4817         print the stop event to the output (CLI) stream.
4818         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4819
4820 2014-05-21  Pedro Alves  <palves@redhat.com>
4821
4822         * cli/cli-cmds.c (list_command): Handle the first "list" after the
4823         current source line having changed.
4824         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4825         * infrun.c (normal_stop): Adjust call to
4826         set_current_sal_from_frame.
4827         * source.c (clear_lines_listed_range): New function.
4828         (set_current_source_symtab_and_line, identify_source_line): Clear
4829         the lines listed range.
4830         (line_info): Handle the first "info line" after the current source
4831         line having changed.
4832         * stack.c (print_stack_frame): Remove center handling.
4833         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
4834         center sal.line.
4835
4836 2014-05-21  Pedro Alves  <palves@redhat.com>
4837
4838         * inf-child.c (inf_child_mourn_inferior): New function.
4839         * inf-child.h (inf_child_mourn_inferior): New declaration.
4840         * darwin-nat.c (darwin_mourn_inferior): Use
4841         inf_child_mourn_inferior.
4842         * gnu-nat.c (gnu_mourn_inferior): Likewise.
4843         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4844         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4845         * nto-procfs.c (procfs_mourn_inferior): Likewise.
4846         * windows-nat.c (windows_mourn_inferior): Likewise.
4847
4848 2014-05-21  Doug Evans  <xdje42@gmail.com>
4849
4850         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4851
4852 2014-05-21  Doug Evans  <xdje42@gmail.com>
4853
4854         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4855         (gdbscm_out_of_range_error): Ditto.
4856         (gdbscm_memory_error): Ditto.
4857         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4858         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4859         (gdbscm_out_of_range_error): Update.
4860         (gdbscm_memory_error): Update.
4861         (gdbscm_scm_to_target_string_unsafe): Delete.
4862
4863 2014-05-21  Pedro Alves  <palves@redhat.com>
4864
4865         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4866         globals.
4867         (inf_child_open_target): New function.
4868         (inf_child_open): Use inf_child_open_target to push the target
4869         instead of erroring out.
4870         (inf_child_disconnect, inf_child_close)
4871         (inf_child_maybe_unpush_target): New functions.
4872         (inf_child_target): Install inf_child_disconnect and
4873         inf_child_close.  Store a pointer to the returned object.
4874         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4875         declarations.
4876         * target.c (auto_connect_native_target): New global.
4877         (show_default_run_target): New function.
4878         (find_default_run_target): Return NULL if automatically connecting
4879         to the native target is disabled.
4880         (_initialize_target): Install set/show auto-connect-native-target.
4881         * NEWS: Mention "set auto-connect-native-target", and "target
4882         native".
4883         * linux-nat.c (super_close): New global.
4884         (linux_nat_close): Call super_close.
4885         (linux_nat_add_target): Store a pointer to the base class's
4886         to_close method.
4887         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4888         inf_child_maybe_unpush.
4889         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4890         already pushed.
4891         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4892         the inferior.  Use inf_child_maybe_unpush_target.
4893         (inf_ttrace_attach): Don't push the target if it is already
4894         pushed.
4895         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4896         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4897         after mourning the inferior.  Use inf_child_maybe_unpush_target.
4898         (darwin_attach_pid): Don't push the target if it is already
4899         pushed.
4900         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4901         mourning the inferior.  Use inf_child_maybe_unpush_target.
4902         (gnu_detach): Use inf_child_maybe_unpush_target.
4903         * go32-nat.c (go32_create_inferior): Don't push the target if it
4904         is already pushed.
4905         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4906         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4907         (procfs_open): Rename to ...
4908         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
4909         comments.  Can target_preopen before changing node.  Call
4910         inf_child_open_target to push the target explicitly.
4911         (procfs_attach): Don't push the target if it is already pushed.
4912         (procfs_detach): Use inf_child_maybe_unpush_target.
4913         (procfs_create_inferior): Don't push the target if it is already
4914         pushed.
4915         (nto_native_ops): New global.
4916         (procfs_open): Reimplement.
4917         (procfs_native_open): New function.
4918         (init_procfs_targets): Install procfs_native_open as to_open of
4919         "target native".  Store a pointer to the "native" target in
4920         nto_native_ops.
4921         * procfs.c (procfs_attach): Don't push the target if it is already
4922         pushed.
4923         (procfs_detach): Use inf_child_maybe_unpush_target.
4924         (procfs_mourn_inferior): Only unpush the target after mourning the
4925         inferior.  Use inf_child_maybe_unpush_target.
4926         (procfs_init_inferior): Don't push the target if it is already
4927         pushed.
4928         * windows-nat.c (do_initial_windows_stuff): Don't push the target
4929         if it is already pushed.
4930
4931 2014-05-21  Pedro Alves  <palves@redhat.com>
4932
4933         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4934         and "procfs" targets are now called "native" instead.
4935
4936 2014-05-21  Pedro Alves  <palves@redhat.com>
4937
4938         * go32-nat.c (go32_open): Delete.
4939         (go32_target): Don't override the to_open method.
4940
4941 2014-05-21  Pedro Alves  <palves@redhat.com>
4942
4943         * nto-procfs.c (procfs_can_run): New function.
4944         (nto_procfs_ops): New global.
4945         (init_procfs_targets): New, based on procfs_target.  Install
4946         "target native" in addition to "target procfs".
4947         (_initialize_procfs): Call init_procfs_targets instead of adding
4948         the target here.
4949
4950 2014-05-21  Pedro Alves  <palves@redhat.com>
4951
4952         * windows-nat.c (windows_target): Don't override to_shortname,
4953         to_longname or to_doc.
4954
4955 2014-05-21  Pedro Alves  <palves@redhat.com>
4956
4957         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4958         to_doc.
4959
4960 2014-05-21  Pedro Alves  <palves@redhat.com>
4961
4962         * darwin-nat.c (_initialize_darwin_inferior): Don't override
4963         to_shortname, to_longname or to_doc.
4964
4965 2014-05-21  Pedro Alves  <palves@redhat.com>
4966
4967         * go32-nat.c (go32_target): Don't override to_shortname,
4968         to_longname or to_doc.
4969
4970 2014-05-21  Pedro Alves  <palves@redhat.com>
4971
4972         * inf-child.c (inf_child_open): Remove mention of "child".
4973         (inf_child_target): Rename target to "native" instead of "child".
4974
4975 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4976
4977         * Makefile.in (SFILES): Delete "regset.c".
4978         (COMMON_OBS): Delete "regset.o".
4979         * regset.c: Remove.
4980         * regset.h (regset_alloc): Delete prototype.
4981
4982 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4983
4984         * sparc-linux-tdep.c (sparc32_linux_gregset)
4985         (sparc32_linux_fpregset): New static regset structures.
4986         (sparc32_linux_init_abi): Drop dynamic regset allocations.
4987         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4988         'fpregset' fields.
4989         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4990         (sparc64_linux_fpregset): New static regset structures.
4991         (sparc64_linux_init_abi): Drop dynamic regset allocations.
4992         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4993         New static regset structures.
4994         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4995         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4996         New static regset structures.
4997         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4998         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4999         New static regset structures.
5000         (sparc64obsd_init_abi): Drop dynamic regset allocations.
5001         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5002         New static regset structures.
5003         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5004
5005 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5006
5007         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5008         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5009         register maps ("regmaps") from "*regset" to "*regmap".  Do this
5010         for all regmap types and variables.
5011         * sparc-linux-tdep.c (sparc32_linux_step_trap)
5012         (sparc32_linux_supply_core_gregset)
5013         (sparc32_linux_collect_core_gregset)
5014         (sparc32_linux_supply_core_fpregset)
5015         (sparc32_linux_collect_core_fpregset): Likewise.
5016         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5017         (sparc_gregmap, sparc_fpregmap): ... these.
5018         (sparc_supply_gregset, sparc_collect_gregset)
5019         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5020         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5021         (_initialize_sparc_nat): Rename regmaps.
5022         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5023         (sparc_gregmap, sparc_fpregmap): ... these.
5024         (sparc_supply_gregset, sparc_collect_gregset)
5025         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5026         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5027         Rename macros to...
5028         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5029         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5030         Likewise.
5031         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5032         Rename to...
5033         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5034         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5035         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5036         regmaps.
5037         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5038         (sparc32_bsd_fpregset): Rename to...
5039         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5040         (sparc32_bsd_fpregmap): ... these.
5041         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5042         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5043         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5044         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5045         (struct sparc_gregmap, struct sparc_fpregmap)
5046         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5047         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5048         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5049         (sparc32_supply_regset, sparc32_collect_gregset)
5050         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5051         prototypes.
5052         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5053         (sparc64_linux_ptrace_gregmap): ... this.
5054         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5055         (_initialize_sparc64_linux_nat): Rename regmaps.
5056         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5057         (sparc64_linux_core_gregmap): ... this.
5058         (sparc64_linux_supply_core_gregset)
5059         (sparc64_linux_collect_core_gregset)
5060         (sparc64_linux_supply_core_fpregset)
5061         (sparc64_linux_collect_core_fpregset): Rename regmaps.
5062         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5063         (sparc64_sol2_fpregset): Rename to...
5064         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5065         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5066         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5067         regmaps.
5068         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5069         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5070         (sparc64_bsd_fpregset): Rename to...
5071         (struct sparc_gregmap, sparc64_sol2_gregmap)
5072         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5073         (sparc64_bsd_fpregmap): ... these.
5074         (sparc64_supply_gregset, sparc64_collect_gregset)
5075         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5076         prototypes.
5077         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5078         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5079         (sparc64fbsd_gregmap): ... this.
5080         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5081         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5082         Rename regmaps.
5083         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5084         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5085         (sparc64nbsd_collect_fpregset): Likewise.
5086         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5087         (sparc64nbsd_gregmap): ... this.
5088         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5089         regmaps.
5090         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5091         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5092         (sparc64obsd_gregmap): ... this.
5093         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5094         regmaps.
5095         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5096         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5097         (sparc32nbsd_gregmap): ... this.
5098         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5099         regmaps.
5100
5101 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5102
5103         * score-tdep.c (score7_linux_gregset): New static regset
5104         structure.
5105         (score7_linux_regset_from_core_section): Remove dynamic regset
5106         allocation.
5107         (score_gdbarch_init): Drop allocation of tdep structure.
5108         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5109
5110 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5111
5112         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5113         regset structures.
5114         (am33_regset_from_core_section): Remove dynamic regset
5115         allocations.
5116
5117 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5118
5119         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5120         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5121         structures.
5122         (mips_linux_regset_from_core_section): Remove dynamic regset
5123         allocations.
5124         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5125         'gregset64', 'fpregset', and 'fpregset64'.
5126         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5127         deleted tdep fields.
5128
5129 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5130
5131         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5132         regset structures.
5133         (amd64_regset_from_core_section): Remove dynamic regset
5134         allocations.
5135         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5136         structure.
5137         (amd64obsd_regset_from_core_section): Remove dynamic regset
5138         allocation.
5139         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5140         Likewise.
5141         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5142         x86-common regset supply function.
5143         * i386-tdep.c (i386_collect_gregset): Make static.
5144         (i386_gregset): New global regset structure.
5145         (i386_fpregset, i386_xstateregset): New static regset structures.
5146         (i386_regset_from_core_section): Remove dynamic regset
5147         allocations.
5148         (i386_gdbarch_init): Remove initialization of tdep fields
5149         'gregset', 'fpregset', and 'xstateregset'.
5150         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5151         'fpregset', and 'xstateregset'.
5152         (i386_collect_gregset): Remove prototype.
5153         (i386_gregset): New declaration.
5154         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5155         structure.
5156         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5157         allocation.
5158
5159 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5160
5161         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5162         (arm_linux_vfpregset): New static regset structures.
5163         (arm_linux_regset_from_core_section): Remove dynamic allocation of
5164         regset structures.
5165         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5166         and 'vfpregset' fields.
5167
5168 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5169
5170         * aarch64-linux-tdep.c (aarch64_linux_gregset)
5171         (aarch64_linux_fpregset): New static regset structures.
5172         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5173         of regset structures.
5174         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5175         'fpregset' fields.
5176
5177 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5178
5179         * regset.h (struct regset): Remove gdbarch field.
5180         * regset.c (regset_alloc): Drop initialization of gdbarch field.
5181         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5182         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5183         Likewise.
5184         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5185         (ppc32_linux_fpregset, ppc32_linux_vrregset)
5186         (ppc32_linux_vsxregset): Likewise.
5187         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5188         via the regcache instead of the regset.
5189         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5190         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5191         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5192         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5193         Likewise.
5194
5195 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5196
5197         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5198         Constify structures.
5199         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5200         (alphanbsd_aout_gregset): Likewise.
5201         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5202         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5203         Likewise.
5204         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5205         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5206         Likewise.
5207         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5208         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5209         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5210         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5211         * m88k-tdep.c (m88k_gregset): Likewise.
5212         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5213         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5214         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5215         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5216         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5217         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5218         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5219         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5220         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5221         Likewise.
5222         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5223         * sh-tdep.h (sh_corefile_gregset): Likewise.
5224         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5225         * vax-tdep.c (vax_gregset): Likewise.
5226
5227 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5228
5229         Fix TLS access for -static -pthread.
5230         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5231         (try_thread_db_load_1): Initialize it.
5232         (thread_db_get_thread_local_address): Call it if LM is zero.
5233         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5234         * target.h (struct target_ops) (to_get_thread_local_address): Add
5235         load_module_addr comment.
5236
5237 2014-05-21  Pedro Alves  <palves@redhat.com>
5238
5239         * dcache.c (dcache_read_memory_partial): If reading the cache line
5240         fails, fallback to reading just the memory the caller wanted.
5241
5242 2014-05-20  Doug Evans  <dje@google.com>
5243
5244         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5245         instead of get_current_arch.
5246
5247 2014-05-20  Pedro Alves  <palves@redhat.com>
5248
5249         * NEWS: Mention that compare-sections now works with all targets.
5250
5251         * remote.c (PACKET_qCRC): New enum value.
5252         (remote_verify_memory): Don't send qCRC if the target has no
5253         execution.  Use packet_support/packet_ok.  If the target doesn't
5254         support the qCRC packet, fallback to a deep memory copy.
5255         (compare_sections_command): Say "target image" instead of "remote
5256         executable".
5257         (_initialize_remote): Add PACKET_qCRC to the list of config
5258         packets that have no associated command.  Extend comment.
5259         * target.c (simple_verify_memory, default_verify_memory): New
5260         function.
5261         * target.h (struct target_ops) <to_verify_memory>: Default to
5262         default_verify_memory.
5263         (simple_verify_memory): New declaration.
5264         * target-delegates.c: Regenerate.
5265
5266 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
5267
5268         * record-btrace.c (record_btrace_step_thread): Check for empty history.
5269
5270 2014-05-20  Hui Zhu  <hui@codesourcery.com>
5271             Yao Qi  <yao@codesourcery.com>
5272
5273         PR backtrace/16558
5274         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5275         and change address of sp and pc.
5276
5277 2014-05-19  Tom Tromey  <tromey@redhat.com>
5278
5279         * gdbtypes.c (rank_function): Use XNEWVEC.
5280         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5281
5282 2014-05-19  Doug Evans  <dje@google.com>
5283
5284         * dwarf2read.c (build_type_psymtabs_1): Renamed from
5285         build_type_unit_groups and moved closer to only caller.  Remove
5286         arguments.  All references updated.  Remove outdated .gdb_index
5287         comment.
5288         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5289         build_type_psymtabs_1.
5290
5291 2014-05-19  Doug Evans  <dje@google.com>
5292
5293         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5294         n_type_unit_groups, all_type_unit_groups.  All uses removed.
5295         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5296         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
5297         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
5298         (add_type_unit_group_to_table): Delete.
5299
5300 2014-05-19  Doug Evans  <dje@google.com>
5301
5302         * eval.c (evaluate_subexp_standard): Add some comments.
5303
5304 2014-05-17  Doug Evans  <xdje42@gmail.com>
5305
5306         * progspace.c (remove_program_space): Delete, unused.
5307         * progspace.h (remove_program_space): Ditto.
5308
5309 2014-05-17  Doug Evans  <xdje42@gmail.com>
5310
5311         * inferior.c (prune_inferiors): Fix comment.
5312         (remove_inferior_command): Call prune_program_spaces.
5313
5314 2014-05-16  Doug Evans  <dje@google.com>
5315
5316         New command line option -D.
5317         * NEWS: Mention it.
5318         * main.c (set_gdb_data_directory): New function.
5319         (captured_main): Recognize -D.  Flag error for --data-directory "".
5320         Call set_gdb_data_directory.
5321         (print_gdb_help): Print --data-directory, -D.
5322         * main.h (set_gdb_data_directory): Declare.
5323         * top.c (staged_gdb_datadir): New static global.
5324         (set_gdb_datadir): Call set_gdb_data_directory
5325         (show_gdb_datadir): New function.
5326         (init_main): Update init of data-directory parameter.
5327
5328 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
5329
5330         Import the "dirfd" gnulib module.
5331         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5332         * gnulib/aclocal.m4: Update.
5333         * gnulib/config.in: Update.
5334         * gnulib/configure: Update.
5335         * gnulib/import/Makefile.am: Update.
5336         * gnulib/import/Makefile.in: Update.
5337         * gnulib/import/dirfd.c: New.
5338         * gnulib/import/m4/dirfd.m4: New.
5339         * gnulib/import/m4/gnulib-cache.m4: Update.
5340         * gnulib/import/m4/gnulib-comp.m4: Update.
5341
5342 2014-05-16  Pierre Muller  <muller@sourceware.org>
5343             Yao Qi  <yao@codesourcery.com>
5344
5345         * valprint.c (print_wchar): Move the code on checking whether
5346         W is a printable wide char to the default branch of switch
5347         statement below.  Call wchar_printable instead of gdb_iswprint.
5348
5349 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
5350
5351         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5352         ldr.w and ldrd instructions.
5353
5354 2014-05-15  Doug Evans  <dje@google.com>
5355
5356         * dwarf2read.c (read_structure_type): Delete outdated comments.
5357
5358 2014-05-14  Tom Tromey  <tromey@redhat.com>
5359
5360         * macrocmd.c (print_macro_definition): Reindent.
5361
5362 2014-05-13  Doug Evans  <xdje42@gmail.com>
5363
5364         * python/py-cmd.c (cmdpy_completer): Add comment.
5365         (completers): Make const.
5366
5367 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
5368
5369         * infrun.c (resume): Remove should_resume (unused).  Move up
5370         declaration of resume_ptid.
5371
5372 2014-05-13  Tom Tromey  <tromey@redhat.com>
5373
5374         * language.h (unop_type_check): Remove.
5375         (binop_type_check): Don't declare.
5376
5377 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
5378
5379         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5380         call to regcache_raw_collect.
5381
5382 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
5383
5384         * mi/mi-console.c (mi_console_raw_packet): Use the value from
5385         mi_console->quote as the quoting character.
5386
5387 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
5388
5389         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5390
5391 2014-04-29  Tom Tromey  <tromey@redhat.com>
5392
5393         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5394         "show debug varobj".
5395
5396 2014-05-07  Kyle McMartin  <kyle@redhat.com>
5397
5398         Pushed by Joel Brobecker  <brobecker@adacore.com>.
5399         * aarch64-tdep.c (aarch64_software_single_step): New function.
5400         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5401         with aarch64_software_single_step.
5402
5403 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
5404
5405         GDB 7.7.1 released.
5406
5407 2014-05-05  Keith Seitz  <keiths@redhat.com>
5408
5409         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5410         variable or history value is successfully parsed.
5411
5412 2014-05-05  Yao Qi  <yao@codesourcery.com>
5413             Pedro Alves  <palves@redhat.com>
5414
5415         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5416         address of blocks that intersects the requested range.  Trim
5417         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5418         sections.
5419         * ctf.c (ctf_xfer_partial): Likewise.
5420
5421 2014-05-05  Yao Qi  <yao@codesourcery.com>
5422
5423         * printcmd.c (display_command): Remove the check to
5424         target_has_execution.
5425
5426 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
5427
5428         * ppcobsd-nat.c: Include "obsd-nat.h".
5429         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5430         add_target.
5431         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5432
5433 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
5434
5435         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5436         and 16-bit signed and unsigned arguments.  Update comment.
5437         (stap_parse_probe_arguments): Extend code to handle such
5438         arguments.  Use warning instead of complaint to notify about
5439         unrecognized bitness.
5440
5441 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
5442
5443         PR breakpoints/16889
5444         * stap-probe.c (stap_parse_probe_arguments): Simplify
5445         check for non-prefixed probes (i.e., probes whose
5446         arguments do not start with "N@").  Always set the
5447         argument type to a sane value.
5448
5449 2014-05-01  David Taylor  <dtaylor@emc.com>
5450
5451         * remote.c (compare_sections_command): Add -r option to compare
5452         all loadable read-only sections.
5453
5454 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
5455
5456         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5457         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5458         Update all callers.
5459         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5460         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5461         Remove unused CORE_ADDR argument.  Update all callers.
5462
5463 2014-04-29  Pedro Alves  <palves@redhat.com>
5464
5465         * remote.c (struct packet_config) <detect>: Extend comment.
5466         (add_packet_config_cmd): Don't set the config's detect or support
5467         fields here.
5468         (init_all_packet_configs): Also initialize the config's 'detect'
5469         field.
5470         (reset_all_packet_configs_support): New function.
5471         (remote_open_1): Call reset_all_packet_configs_support instead of
5472         init_all_packet_configs.
5473         (_initialize_remote): Initialize all packet configs.  Assert that
5474         all packets have an associated command, except a few known
5475         outliers.
5476
5477 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5478
5479         * dwarf2read.c (read_subrange_type): Handle dynamic
5480         DW_AT_lower_bound attributes.
5481
5482 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5483
5484         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5485         dynamic bounds before computing its upper bound.
5486         (ada_discrete_type_low_bound): Same as above with the lower bound.
5487
5488 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5489
5490         * dwarf2read.c (is_dynamic_type): Return true for dynamic
5491         range types.  Adjust the array handling implementation to
5492         take advantage of this change.
5493         (resolve_dynamic_range): New function, mostly extracted from
5494         resolve_dynamic_bounds.
5495         (resolve_dynamic_array): New function, mostly extracted from
5496         resolve_dynamic_bounds.
5497         (resolve_dynamic_bounds): Delete.
5498         (resolve_dynamic_type): Reimplement.  Add handling of
5499         TYPE_CODE_RANGE types.
5500
5501 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5502
5503         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5504         handling of parallel ___XA types.
5505
5506 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5507
5508         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5509         unnecessary second call to static_unwrap_type.
5510
5511 2014-04-27  Hui Zhu  <hui@codesourcery.com>
5512
5513         * stack.c (print_frame_info): Call do_gdb_disassembly with
5514         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5515
5516 2014-04-26  Doug Evans  <xdje42@gmail.com>
5517
5518         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5519
5520 2014-04-25  Pedro Alves  <palves@redhat.com>
5521
5522         PR server/16255
5523         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5524         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
5525         and newline from built string.
5526         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5527         (linux_ptrace_attach_fail_reason): ... this.
5528         * linux-nat.c (linux_nat_attach): Adjust to use
5529         linux_ptrace_attach_fail_reason.
5530
5531 2014-04-25  Pedro Alves  <palves@redhat.com>
5532
5533         * remote.c (struct remote_state): Remove multi_process_aware,
5534         non_stop_aware, cond_tracepoints, cond_breakpoints,
5535         breakpoint_commands, fast_tracepoints, static_tracepoints,
5536         install_in_trace, disconnected_tracing,
5537         enable_disable_tracepoints, string_tracing, and
5538         augmented_libraries_svr4_read fields.
5539         (remote_multi_process_p): Move further below in the file.
5540         (struct packet_config): Add comments.
5541         (update_packet_config): Delete function.
5542         (show_packet_config_cmd): Use packet_config_support.
5543         (add_packet_config_cmd): Use NULL as set callback.
5544         (packet_ok): "set remote foo-packet"-style commands no longer
5545         change config->supported -- adjust.
5546         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5547         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5548         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5549         (PACKET_QNonStop, PACKET_multiprocess_feature)
5550         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5551         (PACKET_DisconnectedTracing_feature)
5552         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5553         (set_remote_protocol_packet_cmd): Delete function.
5554         (packet_config_support, packet_support): New functions.
5555         (set_remote_protocol_Z_packet_cmd): Don't call
5556         update_packet_config.
5557         (remote_query_attached, remote_pass_signals)
5558         (remote_program_signals, remote_threads_info)
5559         (remote_threads_extra_info, remote_start_remote): Use
5560         packet_support.
5561         (remote_start_remote): Use packet_config_support and
5562         packet_support.
5563         (init_all_packet_configs): Set all packets to unknown support,
5564         instead of calling update_packet_config.
5565         (remote_check_symbols): Use packet_support.
5566         (remote_supported_packet): Unconditionally set the packet config's
5567         support status.
5568         (remote_multi_process_feature, remote_non_stop_feature)
5569         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5570         (remote_breakpoint_commands_feature)
5571         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5572         (remote_install_in_trace_feature)
5573         (remote_disconnected_tracing_feature)
5574         (remote_enable_disable_tracepoint_feature)
5575         (remote_string_tracing_feature)
5576         (remote_augmented_libraries_svr4_read_feature): Delete functions.
5577         (remote_protocol_features): Adjust to use remote_supported_packet
5578         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5579         "ConditionalTracepoints", "ConditionalBreakpoints",
5580         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5581         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5582         "EnableDisableTracepoints", and "tracenz".
5583         (remote_query_supported): Use packet_support.
5584         (remote_open_1): Adjust.
5585         (extended_remote_attach_1): Use packet_support.  Switch on the
5586         result of packet_ok instead of checking whether the packet ended
5587         up disabled.
5588         (remote_vcont_resume): Use packet_support.
5589         (remote_resume, remote_stop_ns, fetch_register_using_p)
5590         (remote_prepare_to_store, store_register_using_P)
5591         (check_binary_download, remote_write_bytes): Use packet_support.
5592         (remote_vkill): Use packet_support.  Switch on the result of
5593         packet_ok instead of checking whether the packet ended up
5594         disabled.
5595         (extended_remote_supports_disable_randomization): Use
5596         packet_support.
5597         (extended_remote_run): Switch on the result of packet_ok instead
5598         of checking whether the packet ended up disabled.
5599         (remote_insert_breakpoint, remote_remove_breakpoint)
5600         (remote_insert_watchpoint, remote_remove_watchpoint)
5601         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5602         packet_support.
5603         (remote_search_memory): Use packet_config_support.
5604         (remote_get_thread_local_address, remote_get_tib_address)
5605         (remote_hostio_send_command, remote_can_execute_reverse): Use
5606         packet_support.
5607         (remote_supports_cond_tracepoints)
5608         (remote_supports_cond_breakpoints)
5609         (remote_supports_fast_tracepoints)
5610         (remote_supports_static_tracepoints)
5611         (remote_supports_install_in_trace)
5612         (remote_supports_enable_disable_tracepoint)
5613         (remote_supports_string_tracing)
5614         (remote_can_run_breakpoint_commands): Rewrite, checking whether
5615         the packet config says the feature is enabled or disabled.
5616         (remote_download_tracepoint, remote_trace_set_readonly_regions)
5617         (remote_get_trace_status): Use packet_support.
5618         (remote_set_disconnected_tracing): Adjust to check whether the
5619         feature is enabled with packet_support.
5620         (remote_set_trace_buffer_size, remote_use_agent)
5621         (remote_can_use_agent, remote_supports_btrace): Use
5622         packet_support.
5623         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5624         Use packet_config_support.
5625         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5626         the packet config says the feature is enabled or disabled.
5627         (set_range_stepping): Use packet_support.
5628
5629 2014-04-25  Tom Tromey  <tromey@redhat.com>
5630
5631         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5632         argument.
5633
5634 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
5635
5636         * NEWS: Mention support for C99 variable length arrays.
5637
5638 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
5639
5640         * ada-lang.c (standard_exc): Expand introductory comment.
5641
5642 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
5643             Walfred Tedeschi  <walfred.tedeschi@intel.com>
5644
5645         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5646         AVX512 registers.
5647         (amd64_linux_read_description): Add code to handle AVX512 xstate
5648         mask and return respective tdesc.
5649         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5650         and features/i386/x32-avx512-linux.c.
5651         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5652         (amd64_linux_core_read_description): Add code to handle AVX512
5653         xstate mask and return respective tdesc.
5654         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5655         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5656         calculation.
5657         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5658         (tdesc_amd64_avx512_linux): New prototype.
5659         (tdesc_x32_avx512_linux): Likewise.
5660         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5661         features/i386/x32-avx512.c.
5662         (amd64_ymm_avx512_names): New register names for pseudo
5663         registers YMM16-31.
5664         (amd64_ymmh_avx512_names): New register names for raw registers
5665         YMMH16-31.
5666         (amd64_k_names): New register names for K registers.
5667         (amd64_zmmh_names): New register names for ZMM raw registers.
5668         (amd64_zmm_names): New registers names for ZMM pseudo registers.
5669         (amd64_xmm_avx512_names): New register names for XMM16-31
5670         registers.
5671         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5672         registers.
5673         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5674         if feature is present.
5675         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5676         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5677         (AMD64_NUM_REGS): Adjust to new number of registers.
5678         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5679         registers supplied via XSTATE by AVX512 registers.
5680         (i386_linux_read_description): Add case for AVX512.
5681         * i386-linux-tdep.c: Include i386-avx512-linux.c.
5682         (i386_linux_gregset_reg_offset): Add AVX512 registers.
5683         (i386_linux_core_read_description): Add case for AVX512.
5684         (i386_linux_init_abi): Install supported register note section
5685         for AVX512.
5686         (_initialize_i386_linux_tdep): Add call to tdesc init function for
5687         AVX512.
5688         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5689         registers to be number of zmm7h + 1.
5690         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5691         * i386-tdep.c: Include features/i386/i386-avx512.c.
5692         (i386_zmm_names): Add ZMM pseudo register names array.
5693         (i386_zmmh_names): Add ZMM raw register names array.
5694         (i386_k_names): Add K raw register names array.
5695         (num_lower_zmm_regs): Add constant for the number of lower ZMM
5696         registers. AVX512 has 16 more ZMM registers than there are YMM
5697         registers.
5698         (i386_zmmh_regnum_p): Add function to look up register number of
5699         ZMM raw registers.
5700         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5701         (i386_k_regnum_p): Likewise for K raw registers.
5702         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5703         registers added by AVX512.
5704         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5705         registers added by AVX512.
5706         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5707         added by AVX512.
5708         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5709         (i386_pseudo_register_name): Add ZMM pseudo registers.
5710         (i386_zmm_type): Construct and return vector registers type for ZMM
5711         registers.
5712         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5713         ZMM0-31 pseudo registers and K registers.
5714         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5715         and YMM16-31 registers from register cache.
5716         (i386_pseudo_register_write): Add code to write  K, ZMM and
5717         YMM16-31 registers.
5718         (i386_register_reggroup_p): Add code to include/exclude AVX512
5719         registers in/from respective register groups.
5720         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5721         registers if feature is present in xcr0.
5722         (i386_gdbarch_init): Add code to initialize AVX512 feature
5723         variables in tdep structure, wire in pseudo registers and call
5724         initialize_tdesc_i386_avx512.
5725         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5726         variables.
5727         (i386_regnum): Add AVX512 registers.
5728         (I386_SSE_NUM_REGS): New define for number of SSE registers.
5729         (I386_AVX_NUM_REGS): Likewise for AVX registers.
5730         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5731         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5732         512 bits wide.
5733         (i386_xmm_avx512_regnum_p): New prototype for register look up.
5734         (i386_ymm_avx512_regnum_p): Likewise.
5735         (i386_k_regnum_p): Likewise.
5736         (i386_zmm_regnum_p): Likewise.
5737         (i386_zmmh_regnum_p): Likewise.
5738         * i387-tdep.c : Update year in copyright notice.
5739         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5740         XSAVE buffer.
5741         (XSAVE_YMM_AVX512_ADDR): New macro.
5742         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5743         XSAVE buffer.
5744         (XSAVE_XMM_AVX512_ADDR): New macro.
5745         (xsave_avx512_k_offset): New table for K register offsets in
5746         XSAVE buffer.
5747         (XSAVE_AVX512_K_ADDR): New macro.
5748         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5749         in XSAVE buffer.
5750         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5751         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5752         buffer.
5753         (i387_collect_xsave): Add code to collect AVX512 registers from
5754         XSAVE buffer.
5755         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5756         of XMM16-31 registers.
5757         (I387_NUM_K_REGS): New define for number of K registers.
5758         (I387_K0_REGNUM): New define for K0 register number.
5759         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5760         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5761         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5762         registers.
5763         (I387_YMM16H_REGNUM): New define for YMM16H register number.
5764         (I387_XMM16_REGNUM): New define for XMM16 register number.
5765         (I387_YMM0_REGNUM): New define for YMM0 register number.
5766         (I387_KEND_REGNUM): New define for last K register number.
5767         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5768         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5769         number.
5770         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5771         number.
5772         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5773         size.
5774         * features/Makefile: Add AVX512 related files.
5775         * features/i386/32bit-avx512.xml: New file.
5776         * features/i386/64bit-avx512.xml: Likewise.
5777         * features/i386/amd64-avx512-linux.c: Likewise.
5778         * features/i386/amd64-avx512-linux.xml: Likewise.
5779         * features/i386/amd64-avx512.c: Likewise.
5780         * features/i386/amd64-avx512.xml: Likewise.
5781         * features/i386/i386-avx512-linux.c: Likewise.
5782         * features/i386/i386-avx512-linux.xml: Likewise.
5783         * features/i386/i386-avx512.c: Likewise.
5784         * features/i386/i386-avx512.xml: Likewise.
5785         * features/i386/x32-avx512-linux.c: Likewise.
5786         * features/i386/x32-avx512-linux.xml: Likewise.
5787         * features/i386/x32-avx512.c: Likewise.
5788         * features/i386/x32-avx512.xml: Likewise.
5789         * regformats/i386/amd64-avx512-linux.dat: New file.
5790         * regformats/i386/amd64-avx512.dat: Likewise.
5791         * regformats/i386/i386-avx512-linux.dat: Likewise.
5792         * regformats/i386/i386-avx512.dat: Likewise.
5793         * regformats/i386/x32-avx512-linux.dat: Likewise.
5794         * regformats/i386/x32-avx512.dat: Likewise.
5795         * NEWS: Add note about new support for AVX512.
5796
5797
5798 2014-04-23  Pedro Alves  <palves@redhat.com>
5799
5800         * breakpoint.c (insert_bp_location): Tolerate errors if the
5801         breakpoint is set in a user-loaded objfile.
5802         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
5803         location is marked shlib_disabled.  If the breakpoint is set in a
5804         user-loaded objfile is a GDB-side memory breakpoint, validate it
5805         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
5806         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
5807         flag.
5808         * mem-break.c (memory_validate_breakpoint): New function.
5809         * objfiles.c (userloaded_objfile_contains_address_p): New
5810         function.
5811         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5812         * target.h (memory_validate_breakpoint): New declaration.
5813
5814 2014-04-23  Pedro Alves  <palves@redhat.com>
5815
5816         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5817         the breakpoint is set in a shared library, only suppress
5818         errors for software breakpoints, not hardware breakpoints.
5819
5820 2014-04-22  Pedro Alves  <palves@redhat.com>
5821
5822         * infrun.c (schedlock_applies): New function, factored out from
5823         find_thread_needs_step_over.
5824         (find_thread_needs_step_over): Use it.
5825         (switch_back_to_stepped_thread): Always clear trap_expected if the
5826         step over is finished.  Return early if scheduler locking applies.
5827         Look for the stepping thread and a potential step-over thread with
5828         a single loop.
5829         (currently_stepping_or_nexting_callback): Delete.
5830
5831 2014-04-22  Nick Clifton  <nickc@redhat.com>
5832
5833         * NEWS: Mention that ARM sim now supports tracing.
5834
5835 2014-04-22  Yao Qi  <yao@codesourcery.com>
5836
5837         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5838         to ...
5839         * tracefile.c (tracefile_fetch_registers): ... it.  New
5840         function.
5841         * tracefile.h (tracefile_fetch_registers): Declare.
5842         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
5843         tracefile_fetch_registers.
5844
5845 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
5846
5847         PR gdb/14018
5848         * windows-nat.c (thread_rec): Don't display a warning when
5849         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
5850         fails for any reason, set th->suspended to -1, so that we don't
5851         try to resume such a thread.  Also, don't return NULL in these
5852         cases, to avoid completely ruin the session due to "PC register is
5853         not available" error.
5854         (do_windows_fetch_inferior_registers): Check errors in
5855         GetThreadContext call.
5856         (windows_continue): Accept an additional argument KILLED; if not
5857         zero, ignore errors in the SetThreadContext call, since the
5858         inferior was killed and is shutting down.
5859         (windows_resume, get_windows_debug_event)
5860         (windows_create_inferior, windows_mourn_inferior)
5861         (windows_kill_inferior): All callers of windows_continue changed
5862         to adjust to its new calling sequence.
5863
5864 2014-04-19  Yao Qi  <yao@codesourcery.com>
5865
5866         * ctf.c (ctf_open): Call post_create_inferior.
5867
5868 2014-04-19  Yao Qi  <yao@codesourcery.com>
5869
5870         * ctf.c (handle_id): New static variable.
5871         (ctf_open_dir): Get handle_id from bt_context_add_trace return
5872         value.  Get the declaration of event "register" and get length
5873         of field "contents".
5874
5875 2014-04-19  Yao Qi  <yao@codesourcery.com>
5876
5877         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5878
5879 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
5880
5881         * valops.c (oload_method_static): Remove unnecessary argument
5882         METHOD.  Update all callers.
5883
5884 2014-04-18  Pedro alves  <palves@redhat.com>
5885             Tom Tromey  <tromey@redhat.com>
5886
5887         PR backtrace/15558
5888         * frame.c (get_prev_frame_1): Rename to ...
5889         (get_prev_frame_always): ... this, and make extern.  Adjust.
5890         (skip_artificial_frames): Use get_prev_frame_always.
5891         (frame_unwind_caller_id, frame_pop, get_prev_frame)
5892         (get_frame_unwind_stop_reason): Adjust to rename.
5893         * frame.h (get_prev_frame_always): Declare.
5894         * inline-frame.c: Include frame.h.
5895         (inline_frame_this_id): Use get_prev_frame_always.
5896
5897 2014-04-18  Tristan Gingold  <gingold@adacore.com>
5898
5899         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5900         code by using bfd_mach_o_get_base_address.
5901
5902 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
5903
5904         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5905         (spu_ax_pseudo_register_collect): New function.
5906         (spu_ax_pseudo_register_push_stack): Likewise.
5907         (spu_dwarf_reg_to_regnum): Likewise.
5908         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
5909
5910 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
5911
5912         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5913         Replace FRAME argument with FRAME_ID.
5914         * gdbarch.c, gdbarch.h: Regenerate.
5915         * findvar.c (default_value_from_register): Add GDBARCH argument;
5916         replace FRAME by FRAME_ID.  No longer call get_frame_id.
5917         (value_from_register): Update call to gdbarch_value_from_register.
5918         * value.h (default_value_from_register): Update prototype.
5919         * s390-linux-tdep.c (s390_value_from_register): Update interface
5920         and call to default_value_from_register.
5921         * spu-tdep.c (spu_value_from_register): Likewise.
5922
5923         * findvar.c (address_from_register): Remove TYPE argument.
5924         Do not call value_from_register; use gdbarch_value_from_register
5925         with null_frame_id instead.
5926         * value.h (address_from_register): Update prototype.
5927         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5928         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5929         address_from_register interface change.
5930
5931 2014-04-17  Yao Qi  <yao@codesourcery.com>
5932
5933         * gdbtypes.h: Update comments to link to types and macros'
5934         definitions.
5935
5936 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
5937
5938         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5939
5940 2014-04-16  Keith Seitz  <keiths@redhat.com>
5941
5942         PR gdb/15827
5943         * dwarf2read.c (skip_one_die): Check that all relative-offset
5944         sibling DIEs fall within range of the current reader's buffer.
5945         (read_partial_die): Likewise.
5946
5947 2014-04-16  Keith Seitz  <keiths@redhat.com>
5948
5949         PR c++/16597
5950         * cp-namespace.c (lookup_symbol_file): If the type name of
5951         `this' is NULL, return immediately.
5952
5953 2014-04-14  Keith Seitz  <keiths@redhat.com>
5954
5955         PR c++/16253
5956         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5957         from symbol_matches_domain in symtab.c. All local callers
5958         of symbol_matches_domain updated.
5959         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5960         search STRUCT_DOMAIN.
5961         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5962         independently.  standard_lookup will do that automatically.
5963         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5964         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5965         (cp_lookup_symbol_in_namespace): Likewise.
5966         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5967         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5968         may return a STRUCT_DOMAIN match.
5969         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5970         * cp-support.c: Include language.h.
5971         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5972         VAR_DOMAIN.
5973         * psymtab.c (match_partial_symbol): Compare the requested
5974         domain with the symbol's domain directly.
5975         (lookup_partial_symbol): Likewise.
5976         * symtab.c (lookup_symbol_in_language): Explain when/why
5977         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5978         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5979         appropriate languages.
5980         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5981         and moved to ada-lang.c
5982         (lookup_block_symbol): Explain that this function only returns
5983         symbol matching the requested DOMAIN.
5984         Compare the requested domain with the symbol's domain directly.
5985         (iterate_over_symbols): Compare the requested domain with the
5986         symbol's domain directly.
5987         * symtab.h (symbol_matches_domain): Remove.
5988
5989 2014-04-14  Tom Tromey  <tromey@redhat.com>
5990
5991         PR c++/15246:
5992         * c-exp.y (type_aggregate_p): New function.
5993         (qualified_name, classify_inner_name): Use it.
5994         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5995         and TYPE_TARGET_TYPE of an enum type.
5996         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5997         an enum type.
5998         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5999         handle TYPE_DECLARED_CLASS.
6000         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6001         types.
6002         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6003         * valops.c (enum_constant_from_type): New function.
6004         (value_aggregate_elt): Use it.
6005         * cp-namespace.c (cp_lookup_nested_symbol): Handle
6006         TYPE_CODE_ENUM.
6007
6008 2014-04-14  Tom Tromey  <tromey@redhat.com>
6009
6010         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6011         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6012         const.
6013         * value.h (value_aggregate_elt): Update.
6014
6015 2014-04-14  Tom Tromey  <tromey@redhat.com>
6016
6017         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6018
6019 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6020
6021         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6022         (evaluate_subexp_standard): Pass noside argument.
6023         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6024         if noside equals EVAL_NORMAL. If the subscript yields a vla type
6025         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6026         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6027         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6028
6029 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6030
6031         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6032         points to a constant blob.
6033
6034 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6035
6036         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6037         property and store it as the high bound and flag the range accordingly.
6038         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6039         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6040         * gdbtypes.h (enum range_flags): New enum.
6041         (struct range_bounds): Add flags member.
6042
6043 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6044
6045         * c-typeprint.c (c_type_print_varspec_suffix): Added
6046         check for not yet resolved high bound. If unresolved, print
6047         "variable length" string to the console instead of random
6048         length.
6049
6050 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6051
6052         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6053         value.
6054         (ada_template_to_fixed_record_type_1): Likewise.
6055         (ada_to_fixed_type_1): Likewise.
6056         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6057         (cp_print_value): Likewise.
6058         * d-valprint.c (dynamic_array_type): Likewise.
6059         * findvar.c (address_of_variable): Likewise.
6060         * jv-valprint.c (java_value_print): Likewise.
6061         * valops.c (value_ind): Likewise.
6062         * value.c (coerce_ref): Likewise.
6063
6064 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6065
6066         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6067         value and retrieve the dynamic type size.
6068
6069 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6070
6071         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6072         passed to sizeof is dynamic evaluate the argument to compute the length.
6073
6074 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6075             Joel Brobecker  <brobecker@adacore.com>
6076
6077         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6078         (dwarf2_evaluate_property): New function.
6079         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6080         * dwarf2read.c (attr_to_dynamic_prop): New function.
6081         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6082         attribute.
6083         * gdbtypes.c: Include dwarf2loc.h.
6084         (is_dynamic_type): New function.
6085         (resolve_dynamic_type): New function.
6086         (resolve_dynamic_bounds): New function.
6087         (get_type_length): New function.
6088         (check_typedef): Use get_type_length to compute type length.
6089         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6090         (TYPE_LOW_BOUND_KIND): New macro.
6091         (is_dynamic_type): New function prototype.
6092         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6093         to resolve dynamic properties of the type. Update comment.
6094         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6095
6096 2014-04-14  Richard Henderson  <rth@redhat.com>
6097
6098         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6099
6100 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
6101             Doug Evans  <xdje42@gmail.com>
6102
6103         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6104         dereference TYPE_CODE_REF values.
6105
6106 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
6107
6108         Revert the following changes due to regressions:
6109
6110         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6111         (dwarf2_evaluate_property): New function.
6112         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6113         * dwarf2read.c (attr_to_dynamic_prop): New function.
6114         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6115         attribute.
6116         * gdbtypes.c: Include dwarf2loc.h.
6117         (is_dynamic_type): New function.
6118         (resolve_dynamic_type): New function.
6119         (resolve_dynamic_bounds): New function.
6120         (get_type_length): New function.
6121         (check_typedef): Use get_type_length to compute type length.
6122         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6123         (TYPE_LOW_BOUND_KIND): New macro.
6124         (is_dynamic_type): New function prototype.
6125         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6126         to resolve dynamic properties of the type. Update comment.
6127         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6128
6129         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6130         passed to sizeof is dynamic evaluate the argument to compute the length.
6131
6132         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6133         value and retrieve the dynamic type size.
6134
6135         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6136         (ada_template_to_fixed_record_type_1): Likewise.
6137         (ada_to_fixed_type_1): Likewise.
6138         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6139         (cp_print_value): Likewise.
6140         * d-valprint.c (dynamic_array_type): Likewise.
6141         * eval.c (evaluate_subexp_with_coercion): Likewise.
6142         * findvar.c (address_of_variable): Likewise.
6143         * jv-valprint.c (java_value_print): Likewise.
6144         * valops.c (value_ind): Likewise.
6145         * value.c (coerce_ref): Likewise.
6146
6147         * c-typeprint.c (c_type_print_varspec_suffix): Added
6148         check for not yet resolved high bound. If unresolved, print
6149         "variable length" string to the console instead of random
6150         length.
6151
6152         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6153         property and store it as the high bound and flag the range accordingly.
6154         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6155         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6156         * gdbtypes.h (enum range_flags): New enum.
6157         (struct range_bounds): Add flags member.
6158
6159         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6160         points to a constant blob.
6161
6162         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6163         (evaluate_subexp_standard): Pass noside argument.
6164         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6165         if noside equals EVAL_NORMAL. If the subscript yields a vla type
6166         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6167         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6168         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6169
6170 2014-04-11  Keith Seitz  <keiths@redhat.com>
6171
6172         PR c++/16675
6173         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6174         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6175         reference types.
6176
6177 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6178
6179         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6180         (evaluate_subexp_standard): Pass noside argument.
6181         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6182         if noside equals EVAL_NORMAL. If the subscript yields a vla type
6183         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6184         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6185         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6186
6187 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6188
6189         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6190         points to a constant blob.
6191
6192 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6193
6194         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6195         property and store it as the high bound and flag the range accordingly.
6196         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6197         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6198         * gdbtypes.h (enum range_flags): New enum.
6199         (struct range_bounds): Add flags member.
6200
6201 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6202
6203         * c-typeprint.c (c_type_print_varspec_suffix): Added
6204         check for not yet resolved high bound. If unresolved, print
6205         "variable length" string to the console instead of random
6206         length.
6207
6208 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6209
6210         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6211         (ada_template_to_fixed_record_type_1): Likewise.
6212         (ada_to_fixed_type_1): Likewise.
6213         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6214         (cp_print_value): Likewise.
6215         * d-valprint.c (dynamic_array_type): Likewise.
6216         * eval.c (evaluate_subexp_with_coercion): Likewise.
6217         * findvar.c (address_of_variable): Likewise.
6218         * jv-valprint.c (java_value_print): Likewise.
6219         * valops.c (value_ind): Likewise.
6220         * value.c (coerce_ref): Likewise.
6221
6222 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6223
6224         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6225         value and retrieve the dynamic type size.
6226
6227 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6228
6229         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6230         passed to sizeof is dynamic evaluate the argument to compute the length.
6231
6232 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6233
6234         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6235         (dwarf2_evaluate_property): New function.
6236         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6237         * dwarf2read.c (attr_to_dynamic_prop): New function.
6238         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6239         attribute.
6240         * gdbtypes.c: Include dwarf2loc.h.
6241         (is_dynamic_type): New function.
6242         (resolve_dynamic_type): New function.
6243         (resolve_dynamic_bounds): New function.
6244         (get_type_length): New function.
6245         (check_typedef): Use get_type_length to compute type length.
6246         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6247         (TYPE_LOW_BOUND_KIND): New macro.
6248         (is_dynamic_type): New function prototype.
6249         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6250         to resolve dynamic properties of the type. Update comment.
6251         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6252
6253 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6254
6255         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6256         declaring high/low bounds and change uses accordingly. Call
6257         create_range_type instead of create_static_range_type.
6258         * gdbtypes.c (create_range_type): New function.
6259         (create_range_type): Convert bounds into struct bound_prop and pass
6260         them to create_range_type.
6261         * gdbtypes.h (struct bound_prop): New struct.
6262         (create_range_type): New function prototype.
6263         (struct range_bounds): Use struct bound_prop instead of LONGEST for
6264         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6265         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6266         part of the bound.
6267         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6268
6269 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6270
6271         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6272         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6273         * ada-lang.c: All uses of create_range_type updated.
6274         * coffread.c: All uses of create_range_type updated.
6275         * dwarf2read.c: All uses of create_range_type updated.
6276         * f-exp.y: All uses of create_range_type updated.
6277         * m2-valprint.c: All uses of create_range_type updated.
6278         * mdebugread.c: All uses of create_range_type updated.
6279         * stabsread.c: All uses of create_range_type updated.
6280         * valops.c: All uses of create_range_type updated.
6281         * valprint.c: All uses of create_range_type updated.
6282
6283 2014-04-10  Pedro Alves  <palves@redhat.com>
6284
6285         * breakpoint.c (single_step_breakpoints)
6286         (single_step_gdbarch): Move up in the file.
6287         (one_breakpoint_xfer_memory): New function, factored out from ...
6288         (breakpoint_xfer_memory): ... here.  Also process single-step
6289         breakpoints.
6290
6291 2014-04-09  Tristan Gingold  <gingold@adacore.com>
6292
6293         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6294         comments.
6295         (darwin_decode_exception_message): Free port only after use.
6296
6297 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
6298
6299         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6300         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6301         when setting the size of call_length.
6302
6303 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
6304
6305         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6306         dereference TYPE_CODE_REF values.
6307
6308 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
6309
6310         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6311         end of warning message.
6312
6313 2014-04-03  Doug Evans  <dje@google.com>
6314
6315         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6316         of stub_comp_unit_die, stub_comp_dir is non-NULL.
6317
6318 2014-04-02  Alan Modra  <amodra@gmail.com>
6319
6320         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6321         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
6322         (struct symbol_file_add_from_memory_args): Add size field.
6323         (find_vdso_size): New function.
6324         (add_vsyscall_page): Attempt to find vdso size.
6325
6326 2014-04-01  Doug Evans  <dje@google.com>
6327
6328         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6329
6330 2014-04-01  Tristan Gingold  <gingold@adacore.com>
6331
6332         * darwin-nat.c (darwin_encode_reply): Add prototype.
6333         (darwin_decode_exception_message): Reply to unknown inferiors.
6334         (darwin_decode_message): Handle message by id.  Ignore message
6335         to unknown inferior.
6336         (darwin_wait): Discard unknown messages, add debug trace.
6337
6338 2014-03-31  Doug Evans  <dje@google.com>
6339
6340         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6341         comp_dir_string.
6342
6343 2014-03-31  Doug Evans  <dje@google.com>
6344
6345         New option "set print symbol-loading".
6346         * NEWS: Mention it.
6347         * solib.c (solib_read_symbols): Only print symbol loading messages
6348         if requested.
6349         (solib_add): If symbol loading is in "brief" mode, notify user
6350         symbols are being loaded.
6351         (reload_shared_libraries_1): Ditto.
6352         * symfile.c (print_symbol_loading_off): New static global.
6353         (print_symbol_loading_brief): New static global.
6354         (print_symbol_loading_full): New static global.
6355         (print_symbol_loading_enums): New static global.
6356         (print_symbol_loading): New static global.
6357         (print_symbol_loading_p): New function.
6358         (symbol_file_add_with_addrs): Only print symbol loading messages
6359         if requested.
6360         (_initialize_symfile): Register "print symbol-loading" set/show
6361         command.
6362         * symfile.h (print_symbol_loading_p): Declare.
6363
6364 2014-03-30  Doug Evans  <xdje42@gmail.com>
6365
6366         * infrun.c (set_last_target_status): New function.
6367         (handle_inferior_event): Call it.
6368
6369 2014-03-30  Doug Evans  <xdje42@gmail.com>
6370
6371         * inferior.h (enum stop_kind): Improve comment.
6372
6373 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
6374
6375         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6376         a reference, strip the reference layer before calling
6377         the lang_ops value_has_mutated callback.
6378
6379 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6380
6381         Remove some globals from our parser.
6382         * language.c (unk_lang_parser): Add "struct parser_state"
6383         argument.
6384         * language.h (struct language_defn) <la_parser>: Likewise.
6385         * parse.c (expout, expout_size, expout_ptr): Remove variables.
6386         (initialize_expout): Add "struct parser_state" argument.
6387         Rewrite function to use the parser state.
6388         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6389         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6390         write_exp_elt_longcst, write_exp_elt_dblcst,
6391         write_exp_elt_decfloatcst, write_exp_elt_type,
6392         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6393         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6394         write_dollar_variable): Likewise.
6395         (parse_exp_in_context_1): Use parser state.
6396         (insert_type_address_space): Add "struct parser_state" argument.
6397         Use parser state.
6398         (increase_expout_size): New function.
6399         * parser-defs.h: Forward declare "struct language_defn" and
6400         "struct parser_state".
6401         (expout, expout_size, expout_ptr): Remove extern declarations.
6402         (parse_gdbarch, parse_language): Rewrite macro declarations to
6403         accept the parser state.
6404         (struct parser_state): New struct.
6405         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6406         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6407         write_exp_elt_decfloatcst, write_exp_elt_type,
6408         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6409         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6410         write_exp_msymbol, write_dollar_variable,
6411         mark_struct_expression, insert_type_address_space): Add "struct
6412         parser_state" argument.
6413         (increase_expout_size): New function.
6414         * utils.c (do_clear_parser_state): New function.
6415         (make_cleanup_clear_parser_state): Likewise.
6416         * utils.h (make_cleanup_clear_parser_state): New function
6417         prototype.
6418         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6419         Update calls to write_exp* in order to pass the parser state.
6420         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6421         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6422         (i386_stap_parse_special_token_three_arg_disp): Likewise.
6423         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6424         * stap-probe.c (stap_parse_register_operand): Likewise.
6425         (stap_parse_single_operand): Likewise.
6426         (stap_parse_argument_1): Likewise.
6427         (stap_parse_argument): Use parser state.
6428         * stap-probe.h: Include "parser-defs.h".
6429         (struct stap_parse_info) <pstate>: New field.
6430         * c-exp.y (parse_type): Rewrite to use parser state.
6431         (yyparse): Redefine to c_parse_internal.
6432         (pstate): New global variable.
6433         (parse_number): Add "struct parser_state" argument.
6434         (write_destructor_name): Likewise.
6435         (type_exp): Update calls to write_exp* and similars in order to
6436         use parser state.
6437         (exp1, exp, variable, qualified_name, space_identifier,
6438         typename, typebase): Likewise.
6439         (write_destructor_name, parse_number, lex_one_token,
6440         classify_name, classify_inner_name, c_parse): Add "struct
6441         parser_state" argument.  Update function to use parser state.
6442         * c-lang.h: Forward declare "struct parser_state".
6443         (c_parse): Add "struct parser_state" argument.
6444         * ada-exp.y (parse_type): Rewrite macro to use parser state.
6445         (yyparse): Redefine macro to ada_parse_internal.
6446         (pstate): New variable.
6447         (write_int, write_object_renaming, write_var_or_type,
6448         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6449         type_int, type_long, type_long_long, type_float, type_double,
6450         type_long_double, type_char, type_boolean, type_system_address):
6451         Add "struct parser_state" argument.
6452         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6453         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6454         var_or_type, aggregate, aggregate_component_list,
6455         positional_list, others, component_group,
6456         component_associations): Update calls to write_exp* and similar
6457         functions in order to use parser state.
6458         (ada_parse, write_var_from_sym, write_int,
6459         write_exp_op_with_string, write_object_renaming,
6460         find_primitive_type, write_selectors, write_ambiguous_var,
6461         write_var_or_type, write_name_assoc, type_int, type_long,
6462         type_long_long, type_float, type_double, type_long_double,
6463         type_char, type_boolean, type_system_address): Add "struct
6464         parser_state" argument.  Adjust function to use parser state.
6465         * ada-lang.c (parse): Likewise.
6466         * ada-lang.h: Forward declare "struct parser_state".
6467         (ada_parse): Add "struct parser_state" argument.
6468         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
6469         calls to both functions.
6470         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6471         parser state.
6472         (yyparse): Redefine macro to f_parse_internal.
6473         (pstate): New variable.
6474         (parse_number): Add "struct parser_state" argument.
6475         (type_exp, exp, subrange, typebase): Update calls to write_exp*
6476         and similars in order to use parser state.
6477         (parse_number): Adjust code to use parser state.
6478         (yylex): Likewise.
6479         (f_parse): New function.
6480         * f-lang.h: Forward declare "struct parser_state".
6481         (f_parse): Add "struct parser_state" argument.
6482         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6483         parser state.
6484         (yyparse): Redefine macro for java_parse_internal.
6485         (pstate): New variable.
6486         (push_expression_name, push_expression_name, insert_exp): Add
6487         "struct parser_state" argument.
6488         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6489         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6490         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6491         PostIncrementExpression, PostDecrementExpression,
6492         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6493         UnaryExpressionNotPlusMinus, CastExpression,
6494         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6495         RelationalExpression, EqualityExpression, AndExpression,
6496         ExclusiveOrExpression, InclusiveOrExpression,
6497         ConditionalAndExpression, ConditionalOrExpression,
6498         ConditionalExpression, Assignment, LeftHandSide): Update
6499         calls to write_exp* and similars in order to use parser state.
6500         (parse_number): Ajust code to use parser state.
6501         (yylex): Likewise.
6502         (java_parse): New function.
6503         (push_variable): Add "struct parser_state" argument.  Adjust
6504         code to user parser state.
6505         (push_fieldnames, push_qualified_expression_name,
6506         push_expression_name, insert_exp): Likewise.
6507         * jv-lang.h: Forward declare "struct parser_state".
6508         (java_parse): Add "struct parser_state" argument.
6509         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6510         parser state.
6511         (yyparse): Redefine macro to m2_parse_internal.
6512         (pstate): New variable.
6513         (type_exp, exp, fblock, variable, type): Update calls to
6514         write_exp* and similars to use parser state.
6515         (yylex): Likewise.
6516         (m2_parse): New function.
6517         * m2-lang.h: Forward declare "struct parser_state".
6518         (m2_parse): Add "struct parser_state" argument.
6519         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6520         * objc-lang.h: Forward declare "struct parser_state".
6521         (end_msglist): Add "struct parser_state" argument.
6522         * p-exp.y (parse_type): Rewrite macro to use parser state.
6523         (yyparse): Redefine macro to pascal_parse_internal.
6524         (pstate): New variable.
6525         (parse_number): Add "struct parser_state" argument.
6526         (type_exp, exp1, exp, qualified_name, variable): Update calls to
6527         write_exp* and similars in order to use parser state.
6528         (parse_number, yylex): Adjust code to use parser state.
6529         (pascal_parse): New function.
6530         * p-lang.h: Forward declare "struct parser_state".
6531         (pascal_parse): Add "struct parser_state" argument.
6532         * go-exp.y (parse_type): Rewrite macro to use parser state.
6533         (yyparse): Redefine macro to go_parse_internal.
6534         (pstate): New variable.
6535         (parse_number): Add "struct parser_state" argument.
6536         (type_exp, exp1, exp, variable, type): Update calls to
6537         write_exp* and similars in order to use parser state.
6538         (parse_number, lex_one_token, classify_name, yylex): Adjust code
6539         to use parser state.
6540         (go_parse): Likewise.
6541         * go-lang.h: Forward declare "struct parser_state".
6542         (go_parse): Add "struct parser_state" argument.
6543
6544 2014-03-27  Doug Evans  <dje@google.com>
6545
6546         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
6547
6548 2014-03-27  Doug Evans  <dje@google.com>
6549
6550         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6551         Remove argument abbrev_section.  All callers updated.
6552
6553 2014-03-27  Doug Evans  <dje@google.com>
6554
6555         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6556         addr_base, ranges_base.
6557
6558 2014-03-26  Keith Seitz  <keiths@redhat.com>
6559
6560         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6561         types, not VAR_DOMAIN.
6562
6563 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
6564
6565         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6566         "ra" registers.
6567         * features/nios2-linux.c: Regenerated.
6568         * features/nios2.c: Regenerated.
6569
6570 2014-03-25  Pedro Alves  <palves@redhat.com>
6571
6572         * cli/cli-script.c (script_from_file): Force the interpreter to
6573         sync mode.
6574
6575 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
6576
6577         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6578         small stack allocation.
6579
6580 2014-03-24  Tristan Gingold  <gingold@adacore.com>
6581
6582         * darwin-nat.c (exc_server): Remove unused prototype.
6583         (darwin_dump_message): Correctly display data on x86_64.
6584         (darwin_encode_reply): Fix style.
6585         Add comments and fix indentation.
6586
6587 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
6588
6589         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6590
6591 2014-03-22  Doug Evans  <xdje42@gmail.com>
6592
6593         * infcmd.c: Whitespace fixes.
6594         (interrupt_command): Merge two function comments into one.
6595
6596 2014-03-22  Doug Evans  <xdje42@gmail.com>
6597
6598         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6599         All uses updated.
6600
6601 2014-03-22  Yao Qi  <yao@codesourcery.com>
6602
6603         * remote.c (target_read_live_memory): Remove.
6604         (memory_xfer_live_readonly_partial): Rename it to
6605         remote_xfer_live_readonly_partial.  Remove argument 'object'.
6606         All callers updated.  Call remote_read_bytes_1
6607         instead of target_read_live_memory.
6608         * tracepoint.c (set_traceframe_number): Remove.
6609         (make_cleanup_restore_traceframe_number): Likewise .
6610         * tracepoint.h (set_traceframe_number): Remove declaration.
6611         (make_cleanup_restore_traceframe_number): Likewise.
6612
6613 2014-03-22  Yao Qi  <yao@codesourcery.com>
6614
6615         * remote.c (remote_read_bytes): Move code on reading from the
6616         remote stub to ...
6617         (remote_read_bytes_1): ... here.  New function.
6618
6619 2014-03-22  Yao Qi  <yao@codesourcery.com>
6620
6621         * ctf.c (ctf_xfer_partial): Check the return value of
6622         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6623         return TARGET_XFER_UNAVAILABLE.
6624         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6625         * target.c (target_read_live_memory): Move it to remote.c.
6626         (memory_xfer_live_readonly_partial): Likewise.
6627         (memory_xfer_partial_1): Move some code to remote_read_bytes.
6628         * remote.c (target_read_live_memory): Moved from target.c.
6629         (memory_xfer_live_readonly_partial): Likewise.
6630         (remote_read_bytes): Factored out from
6631         memory_xfer_partial_1.
6632
6633 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
6634
6635         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6636         NULL pointer.
6637
6638 2014-03-21  Pedro Alves  <palves@redhat.com>
6639
6640         * infrun.c (normal_stop): Extend comment.
6641
6642 2014-03-21  Hui Zhu  <hui@codesourcery.com>
6643             Pedro Alves  <palves@redhat.com>
6644
6645         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6646         static buffer.
6647         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6648         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6649         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6650
6651 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
6652
6653         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6654         `z' formatted output modifier.
6655
6656 2014-03-20  Tom Tromey  <tromey@redhat.com>
6657             Sergio Durigan Junior  <sergiodj@redhat.com>
6658
6659         * probe.c (parse_probes): Turn assert into an ordinary error.
6660         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6661         exceptions when parsing probes.  Rearrange the code for clarity.
6662
6663 2014-03-20  Tom Tromey  <tromey@redhat.com>
6664
6665         PR gdb/14135
6666         * top.c (execute_command): Only dispatch events if the command
6667         started the target.
6668
6669 2014-03-20  Tom Tromey  <tromey@redhat.com>
6670
6671         PR cli/15718
6672         * infcall.c: Include event-top.h.
6673         (run_inferior_call): Call async_disable_stdin if needed.
6674
6675 2014-03-20  Pedro Alves  <palves@redhat.com>
6676
6677         * infrun.c (prepare_to_proceed): Delete.
6678         (thread_still_needs_step_over): New function.
6679         (find_thread_needs_step_over): New function.
6680         (proceed): If the current thread needs a step-over, set its
6681         steping_over_breakpoint flag.  Adjust to use
6682         find_thread_needs_step_over instead of prepare_to_proceed.
6683         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6684         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6685         breakpoint.
6686         (switch_back_to_stepped_thread): Step over breakpoints of all
6687         threads not the stepping thread, before switching back to the
6688         stepping thread.
6689
6690 2014-03-20  Pedro Alves  <palves@redhat.com>
6691
6692         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6693         extern.
6694         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6695         * infrun.c (saved_singlestep_ptid)
6696         (stepping_past_singlestep_breakpoint): Delete.
6697         (resume): Remove stepping_past_singlestep_breakpoint handling.
6698         (proceed): Store the prev_pc of the stepping thread too.
6699         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
6700         singlestep_pc.
6701         (enum infwait_states): Delete infwait_thread_hop_state.
6702         (struct execution_control_state) <hit_singlestep_breakpoint>: New
6703         field.
6704         (handle_inferior_event): Adjust.
6705         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6706         handling and the thread-hop code.  Before removing single-step
6707         breakpoints, check whether the thread hit a single-step breakpoint
6708         of another thread.  If it did, the trap is not a random signal.
6709         (switch_back_to_stepped_thread): If the event thread hit a
6710         single-step breakpoint, unblock it before switching to the
6711         stepping thread.  Handle the case of the stepped thread having
6712         advanced already.
6713         (keep_going): Handle the case of the current thread moving past a
6714         single-step breakpoint.
6715
6716 2014-03-20  Pedro Alves  <palves@redhat.com>
6717
6718         PR breakpoints/7143
6719         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6720         are being stepped over.
6721         (breakpoint_address_match): Make extern.
6722         * breakpoint.h (breakpoint_address_match): New declaration.
6723         * inferior.h (stepping_past_instruction_at): New declaration.
6724         * infrun.c (struct step_over_info): New type.
6725         (step_over_info): New global.
6726         (set_step_over_info, clear_step_over_info)
6727         (stepping_past_instruction_at): New functions.
6728         (handle_inferior_event): Clear the step-over info when
6729         trap_expected is cleared.
6730         (resume): Remove now stale comment.
6731         (clear_proceed_status): Clear step-over info.
6732         (proceed): Adjust step-over handling to set or clear the step-over
6733         info instead of removing all breakpoints.
6734         (handle_signal_stop): When setting up a thread-hop, don't remove
6735         breakpoints here.
6736         (stop_stepping): Clear step-over info.
6737         (keep_going): Adjust step-over handling to set or clear step-over
6738         info and then always inserting breakpoints, instead of removing
6739         all breakpoints when stepping over one.
6740
6741 2014-03-20  Pedro Alves  <palves@redhat.com>
6742
6743         * infrun.c (previous_inferior_ptid): Adjust comment.
6744         (deferred_step_ptid): Delete.
6745         (infrun_thread_ptid_changed, prepare_to_proceed)
6746         (init_wait_for_inferior): Adjust.
6747         (handle_signal_stop): Delete deferred_step_ptid handling.
6748
6749 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6750
6751         PR gdb/15358
6752         * defs.h (sync_quit_force_run): New declaration.
6753         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6754         * event-top.c (async_sigterm_handler): New declaration.
6755         (async_sigterm_token): New variable.
6756         (async_init_signals): Create also async_sigterm_token.
6757         (async_sigterm_handler): New function.
6758         (sync_quit_force_run): New variable.
6759         (handle_sigterm): Replace quit_force call by other calls.
6760         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6761
6762 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
6763
6764         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6765         offset into SPE pseudo registers.
6766
6767 2014-03-18  Pedro Alves  <palves@redhat.com>
6768
6769         PR gdb/13860
6770         * inferior.h (print_stop_event): Declare.
6771         * infrun.c (print_stop_event): New, factored out from ...
6772         (normal_stop): ... this.
6773         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6774         of bpstat_print/print_stack_frame.
6775
6776 2014-03-17  Tom Tromey  <tromey@redhat.com>
6777
6778         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6779
6780 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
6781
6782         * ada-lang.c (decode_constrained_packed_array): Perform a
6783         minimal coercion for reference with coerce_ref instead of
6784         ada_coerce_ref.
6785
6786 2014-03-17  Tristan Gingold  <gingold@adacore.com>
6787
6788         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6789         (darwin_solib_create_inferior_hook): Emit a warning if version
6790         is unhandled.
6791
6792 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
6793
6794         * python/py-value.c (get_field_flag): Cast flag_name argument to
6795         PyObject_GetAttrString to support Python 2.4.
6796
6797 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
6798
6799         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6800         (Global Maintainers): Remove Jan Kratochvil.
6801
6802 2014-03-14  Pedro Alves  <palves@redhat.com>
6803
6804         * inferior.h (terminal_ours_for_output): Rename to ...
6805         (child_terminal_ours_for_output): ... this.
6806         (terminal_save_ours): Rename to ...
6807         (child_terminal_save_ours): ... this.
6808         (terminal_ours): Rename to ...
6809         (child_terminal_ours): ... this.
6810         (terminal_inferior): Rename to ...
6811         (child_terminal_inferior): ... this.
6812         (terminal_init_inferior): Rename to ...
6813         (child_terminal_init_inferior): ... this.
6814         (terminal_init_inferior_with_pgrp): Rename to ...
6815         (child_terminal_init_inferior_with_pgrp): ... this.
6816         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6817         (child_terminal_init_with_pgrp): ... this.
6818         (terminal_save_ours): Rename to ...
6819         (child_terminal_save_ours): ... this.
6820         (terminal_init_inferior): Rename to ...
6821         (child_terminal_init): ... this.  Adjust.
6822         (terminal_inferior): Rename to ...
6823         (child_terminal_inferior): ... this.
6824         (terminal_ours_for_output): Rename to ...
6825         (child_terminal_ours_for_output): ... this.  Adjust.
6826         (terminal_ours): Rename to ...
6827         (child_terminal_ours): ... this.
6828         (terminal_ours_1): Rename to ...
6829         (child_terminal_ours_1): ... this.  Adjust.
6830         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6831         * windows-nat.c (do_initial_windows_stuff): Adjust.
6832         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6833         (gnu_terminal_init): ... this.  Adjust.
6834         (gnu_target): Adjust.
6835         * inf-child.c (inf_child_target): Adjust.
6836
6837 2014-03-13  Doug Evans  <xdje42@gmail.com>
6838
6839         PR guile/16612
6840         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6841         new eq?-hashtab.
6842
6843 2014-03-13  Doug Evans  <xdje42@gmail.com>
6844
6845         * value.c (record_latest_value): Call release_value_or_incref
6846         instead of release_value.
6847
6848 2014-03-13  Pedro Alves  <palves@redhat.com>
6849
6850         * procfs.c (procfs_target): Don't override to_shortname,
6851         to_longname or to_doc.
6852
6853 2014-03-13  Pedro Alves  <palves@redhat.com>
6854
6855         * inf-child.c (inf_child_open, inf_child_target): Don't mention
6856         Unix in user visible strings.
6857
6858 2014-03-12  Stan Shebs  <stan@codesourcery.com>
6859
6860         * gdbtypes.h: Annotate comments for Doxygen, add a page
6861         block comment with some general info.
6862
6863 2014-03-12  Pedro Alves  <palves@redhat.com>
6864
6865         * infcmd.c (prepare_execution_command): New function, factored out
6866         from several execution commands.
6867         (run_command_1, continue_command, step_1, jump_command)
6868         (signal_command, until_command, advance_command, finish_command)
6869         (attach_command): Use prepare_execution_command.
6870
6871 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
6872
6873         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6874         (MAX_BPTS): Define.
6875         (MAX_WPTS): Define.
6876         (struct arm_linux_thread_points): Removed.
6877         (struct arm_linux_process_info): New.
6878         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6879         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6880         (arm_linux_find_breakpoints_by_tid): Removed.
6881         (struct arch_lwp_info): New.
6882         (arm_linux_find_process_pid): New functions.
6883         (arm_linux_add_process): New functions.
6884         (arm_linux_process_info_get): New functions.
6885         (arm_linux_forget_process): New function.
6886         (arm_linux_get_debug_reg_state): New function.
6887         (struct update_registers_data): New.
6888         (update_registers_callback): New function.
6889         (arm_linux_insert_hw_breakpoint1): Updated.
6890         (arm_linux_remove_hw_breakpoint1): Updated.
6891         (arm_linux_insert_hw_breakpoint): Updated.
6892         (arm_linux_remove_hw_breakpoint): Updated.
6893         (arm_linux_insert_watchpoint): Updated.
6894         (arm_linux_remove_watchpoint): Updated.
6895         (arm_linux_new_thread): Updated.
6896         (arm_linux_prepare_to_resume): New function.
6897         (arm_linux_new_fork): New function.
6898         (_initialize_arm_linux_nat): Updated.
6899
6900 2014-03-12  Pedro Alves  <palves@redhat.com>
6901
6902         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6903
6904 2014-03-12  Tom Tromey  <tromey@redhat.com>
6905
6906         * inf-child.c (return_zero): New function.
6907         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6908         * aix-thread.c (aix_thread_inferior_created): New function.
6909         (aix_thread_attach): Remove.
6910         (init_aix_thread_ops): Don't set to_attach.
6911         (_initialize_aix_thread): Register inferior_created observer.
6912         * corelow.c (init_core_ops): Don't set to_attach or
6913         to_create_inferior.
6914         * exec.c (init_exec_ops): Don't set to_attach or
6915         to_create_inferior.
6916         * infcmd.c (run_command_1): Use find_run_target.  Make direct
6917         target calls.
6918         (attach_command): Use find_attach_target.  Make direct target
6919         calls.
6920         * record-btrace.c (init_record_btrace_ops): Don't set
6921         to_create_inferior.
6922         * record-full.c (record_full_can_async_p, record_full_is_async_p):
6923         Remove.
6924         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
6925         set to_create_inferior.
6926         * target.c (complete_target_initialization): Add assertion.
6927         (target_create_inferior): Remove.
6928         (find_default_attach, find_default_create_inferior): Remove.
6929         (find_attach_target, find_run_target): New functions.
6930         (find_default_is_async_p, find_default_can_async_p)
6931         (target_supports_non_stop, target_attach): Remove.
6932         (init_dummy_target): Don't set to_create_inferior or
6933         to_supports_non_stop.
6934         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
6935         TARGET_DEFAULT_FUNC.
6936         <to_create_inferior>: Add comment.
6937         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6938         TARGET_DEFAULT_RETURN.
6939         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6940         (find_attach_target, find_run_target): Declare.
6941         (target_create_inferior): Remove.
6942         (target_has_execution_1): Update comment.
6943         (target_supports_non_stop): Remove.
6944         * target-delegates.c: Rebuild.
6945
6946 2014-03-12  Pedro Alves  <palves@redhat.com>
6947
6948         * inf-child.h: Update comment to not mention Unix.
6949
6950 2014-03-12  Pedro Alves  <palves@redhat.com>
6951
6952         * inf-child.c: Update top comment to not mention Unix.  Add
6953         generic comment describing how this target is meant to be used.
6954         (inf_child_post_attach, inf_child_post_startup_inferior)
6955         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6956         Unix in comment.
6957
6958 2014-03-12  Pedro Alves  <palves@redhat.com>
6959
6960         * nto-procfs.c: Include inf-child.h.
6961         (procfs_ops): Delete global.
6962         (procfs_can_run): Delete method.
6963         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6964         target pointer instead of referencing procfs_ops.
6965         (procfs_prepare_to_store): Delete.
6966         (init_procfs_ops): Delete function.
6967         (procfs_target): New function, based on init_procfs_ops, but
6968         inherit inf_child_target.
6969         (_initialize_procfs): Use procfs_target.
6970
6971 2014-03-12  Pedro Alves  <palves@redhat.com>
6972
6973         * windows-nat.c: Include inf-child.h.
6974         (windows_ops): Delete global.
6975         (windows_open, windows_prepare_to_store, windows_can_run): Delete
6976         methods.
6977         (init_windows_ops): Delete function.
6978         (windows_target): New function, based on init_windows_ops, but
6979         inherit inf_child_target.
6980         (_initialize_windows_nat): Use windows_target.  Install x86
6981         specific target methods here.
6982
6983 2014-03-10  Doug Evans  <xdje42@gmail.com>
6984
6985         * guile/guile.c (call_initialize_gdb_module): New function.
6986         (initialize_guile): Replace call to scm_init_guile with call to
6987         scm_with_guile.
6988
6989 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
6990
6991         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6992         in call to TYPE_CODE macro.
6993
6994 2014-03-10  Jerome Guitton  <guitton@adacore.com>
6995
6996         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6997         Resolve tagged types to full view.
6998
6999 2014-03-10  Hui Zhu  <hui@codesourcery.com>
7000
7001         * target.h (target_insert_breakpoint): Remove "hardware" from its
7002         comments.
7003
7004 2014-03-07  Doug Evans  <dje@google.com>
7005
7006         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7007
7008 2014-03-07  Doug Evans  <dje@google.com>
7009
7010         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7011         Remove unused local comp_dir_attr.  Assert exactly one of
7012         stub_comp_unit_die, stub_comp_dir is non-NULL.
7013
7014 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
7015
7016         * target.h (complete_target_initialization, add_target):
7017         Add comment.
7018
7019 2014-03-07  Pedro Alves  <palves@redhat.com>
7020
7021         * go32-nat.c: Include inf-child.h.
7022         (go32_ops): Delete global.
7023         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7024         Delete methods.
7025         (go32_create_inferior): Push the passed in target pointer instead
7026         of referencing go32_ops.
7027         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
7028         (go32_target): New function, based on init_go32_ops, but inherit
7029         inf_child_target.
7030         (_initialize_go32_nat): Use go32_target.  Move parts of
7031         init_go32_ops here.
7032
7033 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
7034
7035         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7036         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7037         SYMBOL_VALUE_ADDRESS.
7038         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7039
7040 2014-03-06  Yao Qi  <yao@codesourcery.com>
7041
7042         * breakpoint.c (get_tracepoint_by_number): Remove argument
7043         optional_p.  All callers updated.  Adjust comments.  Update
7044         output message.
7045         * breakpoint.h (get_tracepoint_by_number): Update declaration.
7046
7047 2014-03-06  Yao Qi  <yao@codesourcery.com>
7048
7049         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
7050         early if get_number returns zero.  Use 'p' instead of 'args'.
7051
7052 2014-03-06  Yao Qi  <yao@codesourcery.com>
7053
7054         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7055         message.
7056
7057 2014-03-06  Yao Qi  <yao@codesourcery.com>
7058
7059         PR breakpoints/16508
7060         * tracepoint.c (check_trace_running): New function.
7061         (trace_find_command): Move code to check_trace_running and
7062         call check_trace_running.
7063         (trace_find_pc_command): Likewise.
7064         (trace_find_tracepoint_command): Likewise.
7065         (trace_find_line_command): Likewise.
7066         (trace_find_range_command): Likewise.
7067         * tracepoint.h (check_trace_running): Likewise.
7068         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7069
7070 2014-03-06  Yao Qi  <yao@codesourcery.com>
7071
7072         * target.h (struct target_ops) <to_traceframe_info>: Use
7073         TARGET_DEFAULT_NORETURN (tcomplain ()).
7074         * target-delegates.c: Regenerated.
7075
7076 2014-03-05  Pedro Alves  <palves@redhat.com>
7077
7078         PR gdb/16575
7079         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
7080         void.  Update comment.
7081         (dcache_xfer_memory): Delete.
7082         (dcache_read_memory_partial): New, based on the read bits of
7083         dcache_xfer_memory.
7084         (dcache_update): Add status parameter.  Use ULONGEST for len, and
7085         adjust.  Discard cache lines if the reason for the update was
7086         error.
7087         * dcache.h (dcache_xfer_memory): Delete declaration.
7088         (dcache_read_memory_partial): New declaration.
7089         (dcache_update): Update prototype.
7090         * target.c (raw_memory_xfer_partial): Update the dcache here.
7091         (memory_xfer_partial_1): Don't handle dcache writes here.
7092
7093 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
7094
7095         * remote-sim.c (gdbsim_load): Add const to prog.
7096
7097 2014-03-03  Tom Tromey  <tromey@redhat.com>
7098
7099         * elfread.c (probe_key): Change to bfd_data.
7100         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7101         now per-BFD, not per-objfile.
7102         * stap-probe.c (stap_probe_destroy): Update comment.
7103         (handle_stap_probe): Allocate on the per-BFD obstack.
7104
7105 2014-03-03  Tom Tromey  <tromey@redhat.com>
7106
7107         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7108         * breakpoint.c (create_longjmp_master_breakpoint): Use
7109         get_probe_address.
7110         (add_location_to_breakpoint, bkpt_probe_insert_location)
7111         (bkpt_probe_remove_location): Update.
7112         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7113         * elfread.c (elf_symfile_relocate_probe): Remove.
7114         (elf_probe_fns): Update.
7115         (insert_exception_resume_breakpoint): Change type of "probe"
7116         parameter to bound_probe.
7117         (check_exception_resume): Update.
7118         * objfiles.c (objfile_relocate1): Don't relocate probes.
7119         * probe.c (bound_probe_s): New typedef.
7120         (parse_probes): Use get_probe_address.  Set sal's objfile.
7121         (find_probe_by_pc): Return a bound_probe.
7122         (collect_probes): Return a VEC(bound_probe_s).
7123         (compare_probes): Update.
7124         (gen_ui_out_table_header_info): Change type of "probes"
7125         parameter.  Update.
7126         (info_probes_for_ops): Update.
7127         (get_probe_address): New function.
7128         (probe_safe_evaluate_at_pc): Update.
7129         * probe.h (struct probe_ops) <get_probe_address>: New field.
7130         <set_semaphore, clear_semaphore>: Add objfile parameter.
7131         (struct probe) <objfile>: Remove field.
7132         <arch>: New field.
7133         <address>: Update comment.
7134         (struct bound_probe): New.
7135         (find_probe_by_pc): Return a bound_probe.
7136         (get_probe_address): Declare.
7137         * solib-svr4.c (struct probe_and_action) <address>: New field.
7138         (hash_probe_and_action, equal_probe_and_action): Update.
7139         (register_solib_event_probe): Add address parameter.
7140         (solib_event_probe_at): Update.
7141         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
7142         get_probe_address.
7143         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7144         (stap_get_probe_address): New function.
7145         (stap_can_evaluate_probe_arguments, compute_probe_arg)
7146         (compile_probe_arg): Update.
7147         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7148         address.
7149         (handle_stap_probe): Don't relocate the probe.
7150         (stap_relocate): Remove.
7151         (stap_gen_info_probes_table_values): Update.
7152         (stap_probe_ops): Remove stap_relocate.
7153         * symfile-debug.c (debug_sym_relocate_probe): Remove.
7154         (debug_sym_probe_fns): Update.
7155         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7156         * symtab.c (init_sal): Use memset.
7157         * symtab.h (struct symtab_and_line) <objfile>: New field.
7158         * tracepoint.c (start_tracing, stop_tracing): Update.
7159
7160 2014-03-03  Tom Tromey  <tromey@redhat.com>
7161
7162         * probe.h (parse_probes, find_probe_by_pc)
7163         (find_probes_in_objfile): Fix comments.
7164
7165 2014-03-02  Doug Evans  <xdje42@gmail.com>
7166
7167         * infrun.c (handle_signal_stop): Replace test for
7168         TARGET_WAITKIND_STOPPED with an assert.
7169
7170 2014-03-02  Doug Evans  <xdje42@gmail.com>
7171
7172         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7173
7174 2014-03-02  Doug Evans  <xdje42@gmail.com>
7175
7176         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7177
7178 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7179
7180         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7181
7182 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7183
7184         * i386obsd-nat.c: Include "obsd-nat.h".
7185         (_initialize_i386obsd_nat): Call obsd_add_target instead of
7186         add_target.
7187         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7188
7189 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7190
7191         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7192
7193 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7194
7195         * mips64obsd-nat.c: Include "obsd-nath".
7196         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7197         add_target
7198         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7199
7200 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7201
7202         * amd64obsd-nat.c: Include "obsd-nat,h.
7203         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7204         add_target.
7205         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7206
7207 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
7208
7209         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7210         (find_overload_match): Update call to find_oload_champ.
7211         (find_oload_champ_namespace_loop): Likewise
7212
7213 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
7214
7215         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7216
7217         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7218         * config/sparc/obsd64.mh: New file.
7219         * sparc64obsd-nat.c: New file.
7220
7221         * obsd-nat.h: New file.
7222         * obsd-nat.c: New file.
7223         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7224         (ALLDEPFILES): Add obsd-nat.c.
7225
7226 2014-02-28  Tom Tromey  <tromey@redhat.com>
7227
7228         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
7229         * cli-out.h (cli_ui_out_impl): Now const.
7230         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
7231         * ui-out.c (struct ui_out) <impl>: Now const.
7232         (default_ui_out_impl): Now const.
7233         (ui_out_new): Make 'impl' parameter const.
7234         * ui-out.h (ui_out_new): Update.
7235
7236 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7237
7238         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7239
7240 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7241
7242         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7243
7244 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
7245
7246         Additional PR 8882 fix.
7247         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7248
7249 2014-02-27  Pedro Alves  <palves@redhat.com>
7250
7251         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7252         isn't set.
7253
7254 2014-02-27  Pedro Alves  <palves@redhat.com>
7255
7256         PR 12702
7257         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7258         * nat/linux-waitpid.c: Include string.h.
7259         (status_to_str): Moved here and made extern.
7260         * nat/linux-waitpid.h (status_to_str): New declaration.
7261
7262 2014-02-27  Hui Zhu  <hui@codesourcery.com>
7263
7264         PR 12702
7265         * infrun.c (ptid_match): Move ...
7266         * common/ptid.c (ptid_match): ... here.
7267         * inferior.h (ptid_match): Move ...
7268         * common/ptid.h (ptid_match): ... here.
7269
7270 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7271
7272         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7273         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7274         gdb_target_obs.
7275
7276 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7277
7278         * obsd-tdep.c (obsd_auxv_parse): New function.
7279         (obsd_init_abi): Set auxv_parse.
7280
7281         * gdbarch.sh (auxv_parse): New.
7282         * gdbarch.h: Regenerated.
7283         * gdbarch.c: Regenerated.
7284         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7285
7286 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
7287
7288         * guile/scm-value.c (gdbscm_history_append_x): New function.
7289         (value_functions): Add it.
7290
7291 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
7292
7293         * dwarf2read.c (attr_value_as_address): New function.
7294         (dwarf2_find_base_address, read_call_site_scope): Use
7295         attr_value_as_address in place of DW_ADDR.
7296         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7297         the low and high addresses.  Slight rework of the handling
7298         of the high pc being a constant form, and limit it to
7299         DWARF verson 4 or higher.
7300         (dwarf2_record_block_ranges): Likewise.
7301         (read_partial_die): Likewise.
7302         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7303
7304 2014-02-26  Tom Tromey  <tromey@redhat.com>
7305
7306         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7307
7308 2014-02-26  Tom Tromey  <tromey@redhat.com>
7309
7310         * elfread.c (elf_read_minimal_symbols): Return early if
7311         minimal symbols have already been read.  Add "ei" parameter.
7312         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7313         * minsyms.c (prim_record_minimal_symbol_full): Update.
7314         * objfiles.h (struct objstats) <n_minsyms>: Move...
7315         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7316         * symmisc.c (print_objfile_statistics): Update.
7317
7318 2014-02-26  Tom Tromey  <tromey@redhat.com>
7319
7320         * elfread.c (elf_read_minimal_symbols): New function, from
7321         elf_symfile_read.
7322         (elf_symfile_read): Call it.
7323
7324 2014-02-26  Tom Tromey  <tromey@redhat.com>
7325
7326         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7327         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7328         (lookup_minimal_symbol_solib_trampoline)
7329         (lookup_minimal_symbol_by_pc_section_1)
7330         (lookup_minimal_symbol_and_objfile): Update.
7331         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7332         Don't allocate a minimal symbol if minsyms have already been read.
7333         (build_minimal_symbol_hash_tables): Update.
7334         (install_minimal_symbols): Do nothing if minsyms already read.
7335         Use the per-BFD obstack.
7336         (terminate_minimal_symbol_table): Use the per-BFD obstack.
7337         * objfiles.c (allocate_objfile): Call
7338         terminate_minimal_symbol_table later.
7339         (have_minimal_symbols): Update.
7340         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7341         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7342         Move from struct objfile.
7343         <minsyms_read>: New field.
7344         (struct objfile) <msymbols, minimal_symbol_count,
7345         msymbol_hash, msymbol_demangled_hash>: Move.
7346         (ALL_OBJFILE_MSYMBOLS): Update.
7347         * symfile.c (read_symbols): Set minsyms_read.
7348         (reread_symbols): Update.
7349         * symmisc.c (dump_objfile, dump_msymbols): Update.
7350
7351 2014-02-26  Tom Tromey  <tromey@redhat.com>
7352
7353         * minsyms.c (msymbols_sort): Remove.
7354         * minsyms.h (msymbols_sort): Remove.
7355         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7356         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7357         * elfread.c (elf_symtab_read): Don't add section offsets.
7358         * xcoffread.c (record_minimal_symbol): Don't add section offset
7359         to minimal symbol address.
7360         * somread.c (text_offset, data_offset): Remove.
7361         (som_symtab_read): Don't add section offsets to minimal symbol
7362         addresses.
7363         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7364         Don't add section offsets to minimal symbols.
7365         * coffread.c (coff_symtab_read): Don't add section offsets
7366         to minimal symbol addresses.
7367         * machoread.c (macho_symtab_add_minsym): Don't add section offset
7368         to minimal symbol addresses.
7369         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7370         section offset to minimal symbol addresses.
7371         * mdebugread.c (parse_partial_symbols): Don't add section
7372         offset to minimal symbol addresses.
7373         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7374         offset to minimal symbol addresses.
7375
7376 2014-02-26  Tom Tromey  <tromey@redhat.com>
7377
7378         * ada-lang.c (ada_main_name): Update.
7379         (ada_add_standard_exceptions): Update.
7380         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7381         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7382         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7383         * auxv.c (ld_so_xfer_auxv): Update.
7384         * avr-tdep.c (avr_scan_prologue): Update.
7385         * ax-gdb.c (gen_var_ref): Update.
7386         * blockframe.c (get_pc_function_start)
7387         (find_pc_partial_function_gnu_ifunc): Update.
7388         * breakpoint.c (create_overlay_event_breakpoint)
7389         (create_longjmp_master_breakpoint)
7390         (create_std_terminate_master_breakpoint)
7391         (create_exception_master_breakpoint): Update.
7392         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7393         * c-valprint.c (c_val_print): Update.
7394         * coff-pe-read.c (add_pe_forwarded_sym): Update.
7395         * common/agent.c (agent_look_up_symbols): Update.
7396         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7397         * dwarf2loc.c (call_site_to_target_addr): Update.
7398         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7399         * elfread.c (elf_gnu_ifunc_record_cache)
7400         (elf_gnu_ifunc_resolve_by_got): Update.
7401         * findvar.c (default_read_var_value): Update.
7402         * frame.c (inside_main_func): Update.
7403         * frv-tdep.c (frv_frame_this_id): Update.
7404         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7405         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7406         Update.
7407         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7408         (hppa_hpux_find_dummy_bpaddr): Update.
7409         * hppa-tdep.c (hppa_symbol_address): Update.
7410         * infcmd.c (until_next_command): Update.
7411         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7412         Update.
7413         * linespec.c (minsym_found, add_minsym): Update.
7414         * linux-nat.c (get_signo): Update.
7415         * linux-thread-db.c (inferior_has_bug): Update.
7416         * m32c-tdep.c (m32c_return_value)
7417         (m32c_m16c_address_to_pointer): Update.
7418         * m32r-tdep.c (m32r_frame_this_id): Update.
7419         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7420         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7421         * maint.c (maintenance_translate_address): Update.
7422         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7423         (frob_address): New function.
7424         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7425         frob_address.  Rename parameter to "pc_in".
7426         (compare_minimal_symbols, compact_minimal_symbols): Use raw
7427         addresses.
7428         (find_solib_trampoline_target, minimal_symbol_upper_bound):
7429         Update.
7430         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7431         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7432         * objc-lang.c (find_objc_msgsend): Update.
7433         * objfiles.c (objfile_relocate1): Update.
7434         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7435         * p-valprint.c (pascal_val_print): Update.
7436         * parse.c (write_exp_msymbol): Update.
7437         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7438         (ppc_elfv2_skip_entrypoint): Update.
7439         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7440         * printcmd.c (build_address_symbolic, msym_info)
7441         (address_info): Update.
7442         * proc-service.c (ps_pglobal_lookup): Update.
7443         * psymtab.c (find_pc_sect_psymtab_closer)
7444         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7445         Change msymbol parameter to bound_minimal_symbol.
7446         * ravenscar-thread.c (get_running_thread_id): Update.
7447         * remote.c (remote_check_symbols): Update.
7448         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7449         address.
7450         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7451         * solib-dsbt.c (lm_base): Update.
7452         * solib-frv.c (lm_base, main_got): Update.
7453         * solib-irix.c (locate_base): Update.
7454         * solib-som.c (som_solib_create_inferior_hook)
7455         (link_map_start): Update.
7456         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7457         * solib-svr4.c (elf_locate_base, enable_break): Update.
7458         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7459         (flush_ea_cache): Update.
7460         * stabsread.c (define_symbol, scan_file_globals): Update.
7461         * stack.c (find_frame_funname): Update.
7462         * symfile-debug.c (debug_qf_expand_symtabs_matching)
7463         (debug_qf_find_pc_sect_symtab): Update.
7464         * symfile.c (simple_read_overlay_table)
7465         (simple_overlay_update): Update.
7466         * symfile.h (struct quick_symbol_functions)
7467         <find_pc_sect_symtab>: Change type of msymbol to
7468         bound_minimal_symbol.
7469         * symmisc.c (dump_msymbols): Update.
7470         * symtab.c (find_pc_sect_symtab_via_partial)
7471         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7472         (search_symbols, print_msymbol_info): Update.
7473         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7474         (MSYMBOL_VALUE_ADDRESS): Redefine.
7475         (BMSYMBOL_VALUE_ADDRESS): New macro.
7476         * tracepoint.c (scope_info): Update.
7477         * tui/tui-disasm.c (tui_find_disassembly_address)
7478         (tui_get_begin_asm_address): Update.
7479         * valops.c (find_function_in_inferior): Update.
7480         * value.c (value_static_field, value_fn_field): Update.
7481
7482 2014-02-26  Tom Tromey  <tromey@redhat.com>
7483
7484         * ada-lang.c (ada_update_initial_language): Update.
7485         (ada_main_name, ada_has_this_exception_support): Update.
7486         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7487         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7488         * arm-tdep.c (arm_skip_stub): Update.
7489         * auxv.c (ld_so_xfer_auxv): Update.
7490         * avr-tdep.c (avr_scan_prologue): Update.
7491         * ax-gdb.c (gen_var_ref): Update.
7492         * breakpoint.c (struct breakpoint_objfile_data)
7493         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7494         type to bound_minimal_symbol.
7495         (create_overlay_event_breakpoint)
7496         (create_longjmp_master_breakpoint)
7497         (create_std_terminate_master_breakpoint)
7498         (create_exception_master_breakpoint): Update.
7499         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7500         * c-exp.y (classify_name): Update.
7501         * coffread.c (coff_symfile_read): Update.
7502         * common/agent.c (agent_look_up_symbols): Update.
7503         * d-lang.c (d_main_name): Update.
7504         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7505         * dec-thread.c (enable_dec_thread): Update.
7506         * dwarf2loc.c (call_site_to_target_addr): Update.
7507         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7508         * eval.c (evaluate_subexp_standard): Update.
7509         * findvar.c (struct minsym_lookup_data) <result>: Change type
7510         to bound_minimal_symbol.
7511         <objfile>: Remove.
7512         (minsym_lookup_iterator_cb, default_read_var_value): Update.
7513         * frame.c (inside_main_func): Update.
7514         * frv-tdep.c (frv_frame_this_id): Update.
7515         * gcore.c (call_target_sbrk): Update.
7516         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7517         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7518         Update.
7519         * go-lang.c (go_main_name): Update.
7520         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7521         (hppa_hpux_find_import_stub_for_addr): Update.
7522         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7523         Update.  Change return type.
7524         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7525         type.
7526         * jit.c (jit_breakpoint_re_set_internal): Update.
7527         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7528         Update.
7529         * linux-nat.c (get_signo): Update.
7530         * linux-thread-db.c (inferior_has_bug): Update
7531         * m32c-tdep.c (m32c_return_value)
7532         (m32c_m16c_address_to_pointer): Update.
7533         * m32r-tdep.c (m32r_frame_this_id): Update.
7534         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7535         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7536         * minsyms.c (lookup_minimal_symbol_internal): Rename to
7537         lookup_minimal_symbol.  Change return type.
7538         (lookup_minimal_symbol): Remove.
7539         (lookup_bound_minimal_symbol): Update.
7540         (lookup_minimal_symbol_text): Change return type.
7541         (lookup_minimal_symbol_solib_trampoline): Change return type.
7542         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7543         (lookup_minimal_symbol_solib_trampoline): Change return type.
7544         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7545         * objc-lang.c (lookup_objc_class, lookup_child_selector)
7546         (value_nsstring, find_imps): Update.
7547         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7548         * p-lang.c (pascal_main_name): Update.
7549         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7550         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7551         * proc-service.c (ps_pglobal_lookup): Update.
7552         * ravenscar-thread.c (get_running_thread_msymbol): Change
7553         return type.
7554         (has_ravenscar_runtime, get_running_thread_id): Update.
7555         * remote.c (remote_check_symbols): Update.
7556         * sol-thread.c (ps_pglobal_lookup): Update.
7557         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7558         * solib-dsbt.c (lm_base): Update.
7559         * solib-frv.c (lm_base, frv_relocate_section_addresses):
7560         Update.
7561         * solib-irix.c (locate_base): Update.
7562         * solib-som.c (som_solib_create_inferior_hook)
7563         (som_solib_desire_dynamic_linker_symbols, link_map_start):
7564         Update.
7565         * solib-spu.c (spu_enable_break): Update.
7566         * solib-svr4.c (elf_locate_base, enable_break): Update.
7567         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7568         (flush_ea_cache): Update.
7569         * stabsread.c (define_symbol): Update.
7570         * symfile.c (simple_read_overlay_table): Update.
7571         * symtab.c (find_pc_sect_line): Update.
7572         * tracepoint.c (scope_info): Update.
7573         * tui-disasm.c (tui_get_begin_asm_address): Update.
7574         * value.c (value_static_field): Update.
7575
7576 2014-02-26  Tom Tromey  <tromey@redhat.com>
7577
7578         * minsyms.c (prim_record_minimal_symbol_full): Use
7579         SET_MSYMBOL_VALUE_ADDRESS.
7580         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7581         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7582         SET_MSYMBOL_VALUE_ADDRESS.
7583         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7584         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7585
7586 2014-02-26  Tom Tromey  <tromey@redhat.com>
7587
7588         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7589         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7590         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7591         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7592         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7593         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7594         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7595         * ada-lang.c (ada_main_name): Update.
7596         (ada_lookup_simple_minsym): Update.
7597         (ada_make_symbol_completion_list): Update.
7598         (ada_add_standard_exceptions): Update.
7599         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7600         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7601         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7602         * arm-tdep.c (skip_prologue_function): Update.
7603         (arm_skip_stack_protector, arm_skip_stub): Update.
7604         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7605         (arm_wince_skip_main_prologue): Update.
7606         * auxv.c (ld_so_xfer_auxv): Update.
7607         * avr-tdep.c (avr_scan_prologue): Update.
7608         * ax-gdb.c (gen_var_ref): Update.
7609         * block.c (call_site_for_pc): Update.
7610         * blockframe.c (get_pc_function_start): Update.
7611         (find_pc_partial_function_gnu_ifunc): Update.
7612         * breakpoint.c (create_overlay_event_breakpoint): Update.
7613         (create_longjmp_master_breakpoint): Update.
7614         (create_std_terminate_master_breakpoint): Update.
7615         (create_exception_master_breakpoint): Update.
7616         (resolve_sal_pc): Update.
7617         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7618         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7619         Update.
7620         * c-valprint.c (c_val_print): Update.
7621         * coff-pe-read.c (add_pe_forwarded_sym): Update.
7622         * coffread.c (coff_symfile_read): Update.
7623         * common/agent.c (agent_look_up_symbols): Update.
7624         * dbxread.c (find_stab_function_addr): Update.
7625         (end_psymtab): Update.
7626         * dwarf2loc.c (call_site_to_target_addr): Update.
7627         (func_verify_no_selftailcall): Update.
7628         (tailcall_dump): Update.
7629         (call_site_find_chain_1): Update.
7630         (dwarf_expr_reg_to_entry_parameter): Update.
7631         * elfread.c (elf_gnu_ifunc_record_cache): Update.
7632         (elf_gnu_ifunc_resolve_by_got): Update.
7633         * f-valprint.c (info_common_command): Update.
7634         * findvar.c (read_var_value): Update.
7635         * frame.c (get_prev_frame_1): Update.
7636         (inside_main_func): Update.
7637         * frv-tdep.c (frv_skip_main_prologue): Update.
7638         (frv_frame_this_id): Update.
7639         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7640         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7641         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7642         (gnuv3_skip_trampoline): Update.
7643         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7644         (hppa64_hpux_in_solib_call_trampoline): Update.
7645         (hppa_hpux_skip_trampoline_code): Update.
7646         (hppa64_hpux_search_dummy_call_sequence): Update.
7647         (hppa_hpux_find_import_stub_for_addr): Update.
7648         (hppa_hpux_find_dummy_bpaddr): Update.
7649         * hppa-tdep.c (hppa_symbol_address)
7650         (hppa_lookup_stub_minimal_symbol): Update.
7651         * i386-tdep.c (i386_skip_main_prologue): Update.
7652         (i386_pe_skip_trampoline_code): Update.
7653         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7654         * infcall.c (get_function_name): Update.
7655         * infcmd.c (until_next_command): Update.
7656         * jit.c (jit_breakpoint_re_set_internal): Update.
7657         (jit_inferior_init): Update.
7658         * linespec.c (minsym_found): Update.
7659         (add_minsym): Update.
7660         * linux-fork.c (info_checkpoints_command): Update.
7661         * linux-nat.c (get_signo): Update.
7662         * linux-thread-db.c (inferior_has_bug): Update.
7663         * m32c-tdep.c (m32c_return_value): Update.
7664         (m32c_m16c_address_to_pointer): Update.
7665         (m32c_m16c_pointer_to_address): Update.
7666         * m32r-tdep.c (m32r_frame_this_id): Update.
7667         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7668         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7669         * maint.c (maintenance_translate_address): Update.
7670         * minsyms.c (add_minsym_to_hash_table): Update.
7671         (add_minsym_to_demangled_hash_table): Update.
7672         (msymbol_objfile): Update.
7673         (lookup_minimal_symbol): Update.
7674         (iterate_over_minimal_symbols): Update.
7675         (lookup_minimal_symbol_text): Update.
7676         (lookup_minimal_symbol_by_pc_name): Update.
7677         (lookup_minimal_symbol_solib_trampoline): Update.
7678         (lookup_minimal_symbol_by_pc_section_1): Update.
7679         (lookup_minimal_symbol_and_objfile): Update.
7680         (prim_record_minimal_symbol_full): Update.
7681         (compare_minimal_symbols): Update.
7682         (compact_minimal_symbols): Update.
7683         (build_minimal_symbol_hash_tables): Update.
7684         (install_minimal_symbols): Update.
7685         (terminate_minimal_symbol_table): Update.
7686         (find_solib_trampoline_target): Update.
7687         (minimal_symbol_upper_bound): Update.
7688         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7689         * mips-tdep.c (mips_stub_frame_sniffer): Update.
7690         (mips_skip_pic_trampoline_code): Update.
7691         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7692         * objc-lang.c (selectors_info): Update.
7693         (classes_info): Update.
7694         (find_methods): Update.
7695         (find_imps): Update.
7696         (find_objc_msgsend): Update.
7697         * objfiles.c (objfile_relocate1): Update.
7698         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7699         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7700         * p-valprint.c (pascal_val_print): Update.
7701         * parse.c (write_exp_msymbol): Update.
7702         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7703         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7704         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7705         * printcmd.c (build_address_symbolic): Update.
7706         (sym_info): Update.
7707         (address_info): Update.
7708         * proc-service.c (ps_pglobal_lookup): Update.
7709         * psymtab.c (find_pc_sect_psymtab_closer): Update.
7710         (find_pc_sect_psymtab): Update.
7711         * python/py-framefilter.c (py_print_frame): Update.
7712         * ravenscar-thread.c (get_running_thread_id): Update.
7713         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7714         Update.
7715         * remote.c (remote_check_symbols): Update.
7716         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7717         (rs6000_skip_trampoline_code): Update.
7718         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7719         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7720         * solib-dsbt.c (lm_base): Update.
7721         * solib-frv.c (lm_base): Update.
7722         (main_got): Update.
7723         * solib-irix.c (locate_base): Update.
7724         * solib-som.c (som_solib_create_inferior_hook): Update.
7725         (som_solib_desire_dynamic_linker_symbols): Update.
7726         (link_map_start): Update.
7727         * solib-spu.c (spu_enable_break): Update.
7728         (ocl_enable_break): Update.
7729         * solib-svr4.c (elf_locate_base): Update.
7730         (enable_break): Update.
7731         * spu-tdep.c (spu_get_overlay_table): Update.
7732         (spu_catch_start): Update.
7733         (flush_ea_cache): Update.
7734         * stabsread.c (define_symbol): Update.
7735         (scan_file_globals): Update.
7736         * stack.c (find_frame_funname): Update.
7737         (frame_info): Update.
7738         * symfile.c (simple_read_overlay_table): Update.
7739         (simple_overlay_update): Update.
7740         * symmisc.c (dump_msymbols): Update.
7741         * symtab.c (fixup_section): Update.
7742         (find_pc_sect_line): Update.
7743         (skip_prologue_sal): Update.
7744         (search_symbols): Update.
7745         (print_msymbol_info): Update.
7746         (rbreak_command): Update.
7747         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7748         (completion_list_objc_symbol): Update.
7749         (default_make_symbol_completion_list_break_on): Update.
7750         * tracepoint.c (scope_info): Update.
7751         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7752         (tui_get_begin_asm_address): Update.
7753         * valops.c (find_function_in_inferior): Update.
7754         * value.c (value_static_field): Update.
7755         (value_fn_field): Update.
7756
7757 2014-02-26  Tom Tromey  <tromey@redhat.com>
7758
7759         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7760         bound minimal symbols.  Move code that knows about minsym
7761         table layout...
7762         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
7763         function.
7764         * minsyms.h (minimal_symbol_upper_bound): Declare.
7765         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7766         minimal_symbol_upper_bound.
7767
7768 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
7769
7770         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7771         Use the type's name if its basic type does not have a tag.
7772
7773 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
7774
7775         * dwarf2read.c (read_subrange_type): Add comment.
7776
7777 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
7778
7779         * dwarf2read.c (update_enumeration_type_from_children): New
7780         function, mostly extracted from process_structure_scope.
7781         (read_enumeration_type): Call update_enumeration_type_from_children.
7782         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7783         and flag_flag_enum fields.
7784
7785 2014-02-26  Pedro Alves  <palves@redhat.com>
7786
7787         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7788         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7789         to_xfer_partial method.
7790
7791 2014-02-26  Pedro Alves  <palves@redhat.com>
7792
7793         * target.c (complete_target_initialization): Don't install
7794         default_xfer_partial as to_xfer_partial hook.
7795         (nomemory): Delete.
7796         (update_current_target): Don't INHERIT nor de_fault
7797         deprecated_xfer_memory.  Delete de_fault macro.
7798         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7799         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7800         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7801         field.
7802
7803 2014-02-26  Pedro Alves  <palves@redhat.com>
7804
7805         * go32-nat.c (my_write_child): New function.
7806         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7807         (go32_xfer_partial): New function.
7808         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7809         Instead install a to_xfer_partial hook.
7810
7811 2014-02-26  Pedro Alves  <palves@redhat.com>
7812
7813         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7814         to_xfer_partial helper.  Rewrite.
7815         (procfs_xfer_partial): New function.
7816         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7817         Install a to_xfer_partial hook.
7818
7819 2014-02-26  Pedro Alves  <palves@redhat.com>
7820
7821         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7822         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7823         (m32r_xfer_partial): New function.
7824         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7825         Install a to_xfer_partial hook.
7826
7827 2014-02-26  Pedro Alves  <palves@redhat.com>
7828
7829         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7830         helper.
7831         (mips_xfer_partial): New function.
7832         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7833         hook.  Install a to_xfer_partial hook.
7834
7835 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
7836
7837         * gdbtypes.h (create_array_type_with_stride): Add declaration.
7838         * gdbtypes.c (create_array_type_with_stride): New function,
7839         renaming create_array_type, but with an added parameter
7840         called "bit_stride".
7841         (create_array_type): Re-implement using
7842         create_array_type_with_stride.
7843         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7844         and DW_AT_bit_stride attributes.
7845
7846 2014-02-26  Pedro Alves  <palves@redhat.com>
7847
7848         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7849         task-specific breakpoints.
7850
7851 2014-02-25  Pedro Alves  <palves@redhat.com>
7852
7853         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7854         handling of object == TARGET_OBJECT_UNWIND_TABLE.
7855
7856 2014-02-25  Stan Shebs  <stan@codesourcery.com>
7857
7858         * defs.h: Annotate comments for Doxygen.
7859
7860 2014-02-25  Tom Tromey  <tromey@redhat.com>
7861
7862         * target.h (target_ignore): Don't declare.
7863         * target.c (target_ignore): Remove.
7864
7865 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7866
7867         PR gdb/16626
7868         * auto-load.c (auto_load_objfile_script_1): Change filename to
7869         debugfile.
7870
7871 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
7872
7873         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7874         documentation.  Adjust prototype to match the target_ops
7875         to_xfer_partial method.  Adjust implementation accordingly.
7876
7877 2014-02-25  Hui Zhu  <hui@codesourcery.com>
7878
7879         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7880         to_traceframe_info.
7881
7882 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
7883
7884         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7885         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7886         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7887         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7888         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7889         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7890         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7891         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7892         New constants.
7893         (rl78_register_type): Use a data pointer type for SP and
7894         new pseudo registers mentioned above.  Use a 16 bit integer
7895         type for all other register pairs.
7896         (rl78_register_name, rl78_g10_register_name): Update for
7897         new pseudo registers.
7898         (rl78_pseudo_register_read): Likewise.
7899         (rl78_pseudo_register_write): Likewise.
7900         (rl78_dwarf_reg_to_regnum): Return register numbers representing
7901         to the newly added pseudo registers.
7902
7903 2014-02-24  Doug Evans  <dje@google.com>
7904
7905         * value.c (record_latest_value): Fix comment.
7906         * printcmd.c (print_command_1): Remove code to handle -1 return from
7907         record_latest_value.
7908
7909 2014-02-24  Pedro Alves  <palves@redhat.com>
7910
7911         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7912         deprecated_xfer_memory hook.
7913         (procfs_xfer_partial): Call procfs_xfer_memory instead
7914         of the deprecated_xfer_memory target hook.
7915         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7916         helper.
7917
7918 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
7919
7920         * windows-nat.c (windows_xfer_shared_libraries): Return
7921         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7922         requested object is TARGET_OBJECT_LIBRARIES.
7923
7924 2014-02-24  Yao Qi  <yao@codesourcery.com>
7925
7926         * target.h (enum target_xfer_status)
7927         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7928         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7929         explicitly.  New.
7930         * corefile.c (memory_error_message): User updated.
7931         * exec.c (section_table_read_available_memory): Likewise.
7932         * record-btrace.c (record_btrace_xfer_partial): Likewise.
7933         * target.c (target_xfer_status_to_string): Likewise.
7934         (raw_memory_xfer_partial): Likewise.
7935         (memory_xfer_partial_1, target_xfer_partial): Likewise.
7936         * valops.c (read_value_memory): Likewise.
7937         * exec.h: Update comments.
7938
7939 2014-02-24  Yao Qi  <yao@codesourcery.com>
7940
7941         * target.c (target_xfer_status_to_string): Rename argument err
7942         to status.
7943         * target.h (target_xfer_status_to_string): Update declaration.
7944         Replace target_xfer_error_to_string with
7945         target_xfer_status_to_string in comment.
7946
7947 2014-02-24  Yao Qi  <yao@codesourcery.com>
7948
7949         * mips-linux-nat.c (super_close): Update its type.
7950         (mips_linux_close): Pass 'self' to super_close.
7951
7952 2014-02-24  Yao Qi  <yao@codesourcery.com>
7953
7954         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7955         * corefile.c (read_memory): Adjusted.
7956         * target.c (target_write_with_progress): Adjusted.
7957
7958 2014-02-23  Yao Qi  <yao@codesourcery.com>
7959
7960         Revert two patches:
7961
7962         2013-10-25  Yao Qi  <yao@codesourcery.com>
7963
7964         * remote.c (remote_traceframe_info): Return early if
7965         traceframe is not selected.
7966
7967         2013-07-19  Yao Qi  <yao@codesourcery.com>
7968
7969         * target.c (update_current_target): Change the default action
7970         of 'to_traceframe_info' from tcomplain to return_zero.
7971         * target.h (struct target_ops) <to_traceframe_info>: Add more
7972         comments.
7973
7974 2014-02-23  Yao Qi  <yao@codesourcery.com>
7975
7976         * valops.c (read_value_memory): Rewrite it.  Call
7977         target_xfer_partial in a loop.
7978         * exec.h (section_table_available_memory): Remove declaration.
7979         Move comments to ...
7980         * exec.c (section_table_available_memory): ... here.  Make it
7981         static.
7982
7983 2014-02-23  Yao Qi  <yao@codesourcery.com>
7984
7985         * exec.c (section_table_read_available_memory): New function.
7986         * exec.h (section_table_read_available_memory): Declare.
7987         * ctf.c (ctf_xfer_partial): Call
7988         section_table_read_available_memory.
7989         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7990
7991 2014-02-23  Yao Qi  <yao@codesourcery.com>
7992
7993         * ctf.c (ctf_xfer_partial): Move code to ...
7994         * exec.c (exec_read_partial_read_only): ... it.  New function.
7995         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7996         * tracefile.c: Include "exec.h".
7997         * exec.h (exec_read_partial_read_only): Declare.
7998
7999 2014-02-23  Yao Qi  <yao@codesourcery.com>
8000
8001         * tracefile-tfile.c (tfile_has_all_memory): Remove.
8002         (tfile_has_memory): Remove.
8003         (init_tfile_ops): Don't set fields to_has_all_memory and
8004         to_has_memory of tfile_ops.
8005         * tracefile.c (tracefile_has_all_memory): New function.
8006         (tracefile_has_memory): New function.
8007         (init_tracefile_ops): Initialize fields to_has_all_memory and
8008         to_has_memory of 'ops'.
8009
8010 2014-02-23  Yao Qi  <yao@codesourcery.com>
8011
8012         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8013         (ctf_thread_alive, ctf_get_trace_status): Remove.
8014         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
8015         init_tracefile_ops.
8016         * tracefile-tfile.c (tfile_get_trace_status): Remove.
8017         (tfile_has_stack, tfile_has_registers): Remove.
8018         (tfile_thread_alive): Remove.
8019         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
8020         init_tracefile_ops.
8021         * tracefile.c (tracefile_has_stack): New function.
8022         (tracefile_has_registers): New function.
8023         (tracefile_thread_alive): New function.
8024         (tracefile_get_trace_status): New function.
8025         (init_tracefile_ops): New function.
8026         * tracefile.h (init_tracefile_ops): Declare.
8027
8028 2014-02-23  Yao Qi  <yao@codesourcery.com>
8029
8030         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8031         (O_LARGEFILE): Likewise.
8032         (tfile_ops): Likewise.
8033         (TRACE_HEADER_SIZE): Likewise.
8034         (trace_fd, trace_frames_offset, cur_offset): Likewise.
8035         (cur_data_size): Likewise.
8036         (tfile_read, tfile_open, tfile_interp_line): Likewise.
8037         (tfile_close, tfile_files_info): Likewise.
8038         (tfile_get_trace_status): Likewise.
8039         (tfile_get_tracepoint_status): Likewise.
8040         (tfile_get_traceframe_address): Likewise.
8041         (tfile_trace_find, match_blocktype): Likewise.
8042         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8043         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8044         (tfile_get_trace_state_variable_value): Likewise.
8045         (tfile_has_all_memory, tfile_has_memory): Likewise.
8046         (tfile_has_stack, tfile_has_registers): Likewise.
8047         (tfile_thread_alive, build_traceframe_info): Likewise.
8048         (tfile_traceframe_info, init_tfile_ops): Likewise.
8049         (_initialize_tracepoint): Don't call init_tfile_ops
8050         and add_target_with_completer.
8051         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8052         exec.h, completer.h and filenames.h.
8053         (_initialize_tracefile_tfile): New function.
8054
8055 2014-02-23  Yao Qi  <yao@codesourcery.com>
8056
8057         * Makefile.in (REMOTE_OBS): Append tracefile.o and
8058         tracefile-tfile.o.
8059         (HFILES_NO_SRCDIR): Add tracefile.h.
8060         * ctf.c: Include "tracefile.h".
8061         * tracefile.h: New file.
8062         * tracefile.c: New file
8063         * tracefile-tfile.c: New file.
8064         * tracepoint.c: Include "tracefile.h".
8065         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8066         (stop_reason_names): Add const.
8067         (trace_file_writer_xfree): Move it to tracefile.c.
8068         (trace_save, trace_save_command, trace_save_tfile): Likewise.
8069         (trace_save_ctf): Likewise.
8070         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8071         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8072         (tfile_write_header, tfile_write_regblock_type): Likewise.
8073         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8074         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8075         (tfile_write_raw_data, tfile_end): Likewise.
8076         (tfile_trace_file_writer_new): Likewise.
8077         (free_uploaded_tp): Make it extern.
8078         (free_uploaded_tsv): Make it extern.
8079         (_initialize_tracepoint): Move code to register command 'tsave'
8080         to tracefile.c.
8081         * tracepoint.h (stop_reason_names): Declare.
8082         (struct trace_frame_write_ops): Move it to tracefile.h.
8083         (struct trace_file_write_ops): Likewise.
8084         (struct trace_file_writer): Likewise.
8085         (free_uploaded_tsvs, free_uploaded_tps): Declare.
8086
8087 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8088
8089         PR gdb/16594
8090         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8091         process name.
8092         (get_cores_used_by_process): New parameter num_cores, use it.
8093         (linux_xfer_osdata_processes): Pass num_cores to it.
8094         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8095         process name.
8096
8097 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
8098
8099         * target.c (memory_xfer_partial): Fix length arg in call to
8100         breakpoint_xfer_memory.
8101
8102 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
8103
8104         PR tdep/16397
8105         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8106         number comes after the + or - signs.  Adjust length of register
8107         name to be extracted.
8108
8109 2014-02-20  Tom Tromey  <tromey@redhat.com>
8110
8111         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8112         (ada_varobj_ops): Mark "extern".
8113
8114 2014-02-20  Tom Tromey  <tromey@redhat.com>
8115
8116         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8117
8118 2014-02-20  Doug Evans  <xdje42@gmail.com>
8119
8120         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8121         All callers updated.
8122         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8123         All callers updated.
8124         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8125         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8126
8127 2014-02-20  lin zuojian  <manjian2006@gmail.com>
8128             Joel Brobecker  <brobecker@adacore.com>
8129             Doug Evans  <xdje42@gmail.com>
8130
8131         PR symtab/16581
8132         * dwarf2read.c (struct die_info): New member in_process.
8133         (reset_die_in_process): New function.
8134         (process_die): Set it at the start, reset when returning.
8135         (inherit_abstract_dies): Only call process_die if origin_child_die
8136         not already being processed.
8137
8138 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8139
8140         * windows-nat.c (handle_unload_dll): Add function documentation.
8141         (do_initial_windows_stuff): Add comment explaining why we wait
8142         until after inferior initialization has finished before
8143         processing all DLLs.
8144
8145 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8146
8147         * windows-nat.c (get_module_name): Delete.
8148         (windows_get_exec_module_filename): New function, mostly
8149         inspired from get_module_name.
8150         (windows_pid_to_exec_file): Replace call to get_module_name
8151         by call to windows_get_exec_module_filename.
8152
8153 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8154
8155         * windows-nat.c (handle_load_dll): Rewrite this function's
8156         introductory comment.  Remove code using get_module_name
8157         to get the DLL's name.
8158
8159 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8160
8161         * windows-nat.c (get_windows_debug_event): Ignore
8162         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8163         if windows_initialization_done == 0.
8164         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8165         Adjust implementation to always load all DLLs.
8166         (do_initial_windows_stuff): Replace call to
8167         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8168
8169 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8170
8171         * windows-nat.c (_initialize_windows_nat): Deprecate the
8172         "dll-symbols" command.  Turn the "add-shared-symbol-files"
8173         and "assf" aliases into commands, and deprecate them as well.
8174         * NEWS: Add entry explaining that "dll-symbols" and its two
8175         aliases are now deprecated.
8176
8177 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8178
8179         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8180         new-line in debug string.  Remove trailing spaces.
8181
8182 2014-02-19  Stan Shebs  <stan@codesourcery.com>
8183
8184         * darwin-nat.c (darwin_xfer_partial): Fix return type.
8185
8186 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
8187
8188         * NEWS: Add entry for the new feature
8189         * python/py-value.c (valpy_binop): Call value_x_binop for struct
8190         and class values.
8191
8192 2014-02-19  Stan Shebs  <stan@codesourcery.com>
8193
8194         * MAINTAINERS: List Yao Qi as nios2 maintainer.
8195
8196 2014-02-19  Pedro Alves  <palves@redhat.com>
8197
8198         * common/ptid.h (struct ptid): Mention that process_stratum
8199         targets should prefer ptid.lwp.
8200
8201 2014-02-19  Pedro Alves  <palves@redhat.com>
8202
8203         * remote.c (remote_thread_alive, write_ptid, read_ptid)
8204         (read_ptid, remote_newthread_step, remote_threads_extra_info)
8205         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8206         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8207         store remote thread ids rather than ptid.tid.
8208         (_initialize_remote): Adjust.
8209
8210 2014-02-19  Tom Tromey  <tromey@redhat.com>
8211
8212         * target.c (target_get_unwinder): Rewrite.
8213         (target_get_tailcall_unwinder): Rewrite.
8214         * record-btrace.c (record_btrace_to_get_unwinder): New function.
8215         (record_btrace_to_get_tailcall_unwinder): New function.
8216         (init_record_btrace_ops): Update.
8217         * target.h (struct target_ops) <to_get_unwinder,
8218         to_get_tailcall_unwinder>: Now function pointers.  Use
8219         TARGET_DEFAULT_RETURN.
8220
8221 2014-02-19  Tom Tromey  <tromey@redhat.com>
8222
8223         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8224         argument.
8225         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8226
8227 2014-02-19  Tom Tromey  <tromey@redhat.com>
8228
8229         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8230         directly.
8231         * target-delegates.c: Rebuild.
8232         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8233         TARGET_DEFAULT_FUNC.
8234         * target.c (default_target_decr_pc_after_break): Rename from
8235         forward_target_decr_pc_after_break.  Simplify.
8236         (target_decr_pc_after_break): Rely on delegation.
8237
8238 2014-02-19  Tom Tromey  <tromey@redhat.com>
8239
8240         * target.c (update_current_target): Do not INHERIT to_doc or
8241         to_magic.  Do not de_fault to_open or to_close.
8242
8243 2014-02-19  Tom Tromey  <tromey@redhat.com>
8244
8245         * gcore.h (objfile_find_memory_regions): Declare.
8246         * gcore.c (objfile_find_memory_regions): No longer static.  Add
8247         "self" argument.
8248         (_initialize_gcore): Don't call exec_set_find_memory_regions.
8249         * exec.c: Include gcore.h.
8250         (exec_set_find_memory_regions): Remove.
8251         (exec_find_memory_regions): Remove.
8252         (exec_do_find_memory_regions): Remove.
8253         (init_exec_ops): Update.
8254         * defs.h (exec_set_find_memory_regions): Remove.
8255
8256 2014-02-19  Tom Tromey  <tromey@redhat.com>
8257
8258         * target-delegates.c: Rebuild.
8259         * target.h (struct target_ops) <to_extra_thread_info,
8260         to_thread_name, to_pid_to_exec_file, to_get_section_table,
8261         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8262         not 0, in TARGET_DEFAULT_RETURN.
8263
8264 2014-02-19  Tom Tromey  <tromey@redhat.com>
8265
8266         * target.c (complete_target_initialization): Remove casts.  Use
8267         return_zero_has_execution.
8268         (return_zero): Add "ignore" argument.
8269         (return_zero_has_execution): New function.
8270         (init_dummy_target): Remove casts.  Use
8271         return_zero_has_execution.
8272
8273 2014-02-19  Tom Tromey  <tromey@redhat.com>
8274
8275         * target.c (update_current_target): Update comments.  Do not
8276         INHERIT to_stratum.
8277
8278 2014-02-19  Tom Tromey  <tromey@redhat.com>
8279
8280         * arm-linux-nat.c (arm_linux_read_description): Delegate when
8281         needed.
8282         * corelow.c (core_read_description): Delegate when needed.
8283         * remote.c (remote_read_description): Delegate when needed.
8284         * target-delegates.c: Rebuild.
8285         * target.c (target_read_description): Rewrite.
8286         * target.h (struct target_ops) <to_read_description>: Update
8287         comment.  Use TARGET_DEFAULT_RETURN.
8288
8289 2014-02-19  Tom Tromey  <tromey@redhat.com>
8290
8291         * target-delegates.c: Rebuild.
8292         * target.c (update_current_target): Don't inherit or default
8293         to_can_run.
8294         (find_default_run_target): Check against delegate_can_run.
8295         * target.h (struct target_ops) <to_can_run>: Use
8296         TARGET_DEFAULT_RETURN.
8297
8298 2014-02-19  Tom Tromey  <tromey@redhat.com>
8299
8300         * target-delegates.c: Rebuild.
8301         * target.c (target_disconnect): Unconditionally delegate.
8302         * target.h (struct target_ops) <to_disconnect>: Use
8303         TARGET_DEFAULT_NORETURN.
8304
8305 2014-02-19  Tom Tromey  <tromey@redhat.com>
8306
8307         * record.c (record_stop): Unconditionally delegate.
8308         * target-delegates.c: Rebuild.
8309         * target.c (target_stop_recording): Unconditionally delegate.
8310         * target.h (struct target_ops) <to_stop_recording>: Use
8311         TARGET_DEFAULT_IGNORE.
8312
8313 2014-02-19  Tom Tromey  <tromey@redhat.com>
8314
8315         * target-delegates.c: Rebuild.
8316         * target.c (target_enable_btrace): Unconditionally delegate.
8317         * target.h (struct target_ops) <to_enable_btrace>: Use
8318         TARGET_DEFAULT_NORETURN.
8319
8320 2014-02-19  Tom Tromey  <tromey@redhat.com>
8321
8322         * target-delegates.c: Rebuild.
8323         * target.c (target_read_btrace): Unconditionally delegate.
8324         * target.h (struct target_ops) <to_read_btrace>: Use
8325         TARGET_DEFAULT_NORETURN.
8326
8327 2014-02-19  Tom Tromey  <tromey@redhat.com>
8328
8329         * target-delegates.c: Rebuild.
8330         * target.c (target_teardown_btrace): Unconditionally delegate.
8331         * target.h (struct target_ops) <to_teardown_btrace>: Use
8332         TARGET_DEFAULT_NORETURN.
8333
8334 2014-02-19  Tom Tromey  <tromey@redhat.com>
8335
8336         * target-delegates.c: Rebuild.
8337         * target.c (target_disable_btrace): Unconditionally delegate.
8338         * target.h (struct target_ops) <to_disable_btrace>: Use
8339         TARGET_DEFAULT_NORETURN.
8340
8341 2014-02-19  Tom Tromey  <tromey@redhat.com>
8342
8343         * target-delegates.c: Rebuild.
8344         * target.c (default_search_memory): New function.
8345         (simple_search_memory): Update comment.
8346         (target_search_memory): Unconditionally delegate.
8347         * target.h (struct target_ops) <to_search_memory>: Use
8348         TARGET_DEFAULT_FUNC.
8349
8350 2014-02-19  Tom Tromey  <tromey@redhat.com>
8351
8352         * auxv.c (default_auxv_parse): No longer static.
8353         (target_auxv_parse): Unconditionally delegate.
8354         * auxv.h (default_auxv_parse): Declare.
8355         * target-delegates.c: Rebuild.
8356         * target.c: Include auxv.h.
8357         * target.h (struct target_ops) <to_auxv_parse>: Use
8358         TARGET_DEFAULT_FUNC.
8359
8360 2014-02-19  Tom Tromey  <tromey@redhat.com>
8361
8362         * target-delegates.c: Rebuild.
8363         * target.c (target_memory_map): Unconditionally delegate.
8364         * target.h (struct target_ops) <to_memory_map>: Use
8365         TARGET_DEFAULT_RETURN.
8366
8367 2014-02-19  Tom Tromey  <tromey@redhat.com>
8368
8369         * target-delegates.c: Rebuild.
8370         * target.c (target_thread_alive): Unconditionally delegate.
8371         * target.h (struct target_ops) <to_thread_alive>: Use
8372         TARGET_DEFAULT_RETURN.
8373
8374 2014-02-19  Tom Tromey  <tromey@redhat.com>
8375
8376         * target-delegates.c: Rebuild.
8377         * target.c (target_save_record): Unconditionally delegate.
8378         * target.h (struct target_ops) <to_save_record>: Use
8379         TARGET_DEFAULT_NORETURN.
8380
8381 2014-02-19  Tom Tromey  <tromey@redhat.com>
8382
8383         * target-delegates.c: Rebuild.
8384         * target.c (target_delete_record): Unconditionally delegate.
8385         * target.h (struct target_ops) <to_delete_record>: Use
8386         TARGET_DEFAULT_NORETURN.
8387
8388 2014-02-19  Tom Tromey  <tromey@redhat.com>
8389
8390         * target-delegates.c: Rebuild.
8391         * target.c (target_record_is_replaying): Unconditionally
8392         delegate.
8393         * target.h (struct target_ops) <to_record_is_replaying>: Use
8394         TARGET_DEFAULT_RETURN.
8395
8396 2014-02-19  Tom Tromey  <tromey@redhat.com>
8397
8398         * target-delegates.c: Rebuild.
8399         * target.c (target_goto_record_begin): Unconditionally delegate.
8400         * target.h (struct target_ops) <to_goto_record_begin>: Use
8401         TARGET_DEFAULT_NORETURN.
8402
8403 2014-02-19  Tom Tromey  <tromey@redhat.com>
8404
8405         * target-delegates.c: Rebuild.
8406         * target.c (target_goto_record_end): Unconditionally delegate.
8407         * target.h (struct target_ops) <to_goto_record_end>: Use
8408         TARGET_DEFAULT_NORETURN.
8409
8410 2014-02-19  Tom Tromey  <tromey@redhat.com>
8411
8412         * target-delegates.c: Rebuild.
8413         * target.c (target_goto_record): Unconditionally delegate.
8414         * target.h (struct target_ops) <to_goto_record>: 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_insn_history): Unconditionally delegate.
8421         * target.h (struct target_ops) <to_insn_history>: 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_insn_history_from): Unconditionally delegate.
8428         * target.h (struct target_ops) <to_insn_history_from>: 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_insn_history_range): Unconditionally delegate.
8435         * target.h (struct target_ops) <to_insn_history_range>: Use
8436         TARGET_DEFAULT_NORETURN.
8437
8438 2014-02-19  Tom Tromey  <tromey@redhat.com>
8439
8440         * target-delegates.c: Rebuild.
8441         * target.c (target_call_history): Unconditionally delegate.
8442         * target.h (struct target_ops) <to_call_history>: Use
8443         TARGET_DEFAULT_NORETURN.
8444
8445 2014-02-19  Tom Tromey  <tromey@redhat.com>
8446
8447         * target-delegates.c: Rebuild.
8448         * target.c (target_call_history_from): Unconditionally delegate.
8449         * target.h (struct target_ops) <to_call_history_from>: Use
8450         TARGET_DEFAULT_NORETURN.
8451
8452 2014-02-19  Tom Tromey  <tromey@redhat.com>
8453
8454         * target-delegates.c: Rebuild.
8455         * target.c (target_call_history_range): Unconditionally delegate.
8456         * target.h (struct target_ops) <to_call_history_range>: Use
8457         TARGET_DEFAULT_NORETURN.
8458
8459 2014-02-19  Tom Tromey  <tromey@redhat.com>
8460
8461         * target-delegates.c: Rebuild.
8462         * target.c (target_verify_memory): Unconditionally delegate.
8463         * target.h (struct target_ops) <to_verify_memory>: Use
8464         TARGET_DEFAULT_NORETURN.
8465
8466 2014-02-19  Tom Tromey  <tromey@redhat.com>
8467
8468         * target-delegates.c: Rebuild.
8469         * target.c (target_core_of_thread): Unconditionally delegate.
8470         * target.h (struct target_ops) <to_core_of_thread>: Use
8471         TARGET_DEFAULT_RETURN.
8472
8473 2014-02-19  Tom Tromey  <tromey@redhat.com>
8474
8475         * target-delegates.c: Rebuild.
8476         * target.c (target_flash_done): Unconditionally delegate.
8477         * target.h (struct target_ops) <to_flash_done>: Use
8478         TARGET_DEFAULT_NORETURN.
8479
8480 2014-02-19  Tom Tromey  <tromey@redhat.com>
8481
8482         * target-delegates.c: Rebuild.
8483         * target.c (target_flash_erase): Unconditionally delegate.
8484         * target.h (struct target_ops) <to_flash_erase>: Use
8485         TARGET_DEFAULT_NORETURN.
8486
8487 2014-02-19  Tom Tromey  <tromey@redhat.com>
8488
8489         * target-delegates.c: Rebuild.
8490         * target.c (target_get_section_table): Unconditionally delegate.
8491         * target.h (struct target_ops) <to_get_section_table>: Use
8492         TARGET_DEFAULT_RETURN.
8493
8494 2014-02-19  Tom Tromey  <tromey@redhat.com>
8495
8496         * target-delegates.c: Rebuild.
8497         * target.c (target_pid_to_str): Unconditionally delegate.
8498         (init_dummy_target): Don't initialize to_pid_to_str.
8499         (default_pid_to_str): Rename from dummy_pid_to_str.
8500         * target.h (struct target_ops) <to_pid_to_str>: Use
8501         TARGET_DEFAULT_FUNC.
8502
8503 2014-02-19  Tom Tromey  <tromey@redhat.com>
8504
8505         * target-delegates.c: Rebuild.
8506         * target.c (target_find_new_threads): Unconditionally delegate.
8507         * target.h (struct target_ops) <to_find_new_threads>: Use
8508         TARGET_DEFAULT_RETURN.
8509
8510 2014-02-19  Tom Tromey  <tromey@redhat.com>
8511
8512         * target-delegates.c: Rebuild.
8513         * target.c (target_program_signals): Unconditionally delegate.
8514         * target.h (struct target_ops) <to_program_signals>: Use
8515         TARGET_DEFAULT_IGNORE.
8516
8517 2014-02-19  Tom Tromey  <tromey@redhat.com>
8518
8519         * target-delegates.c: Rebuild.
8520         * target.c (target_pass_signals): Unconditionally delegate.
8521         * target.h (struct target_ops) <to_pass_signals>: Use
8522         TARGET_DEFAULT_IGNORE.
8523
8524 2014-02-19  Tom Tromey  <tromey@redhat.com>
8525
8526         * target-delegates.c: Rebuild.
8527         * target.c (default_mourn_inferior): New function.
8528         (target_mourn_inferior): Unconditionally delegate.
8529         * target.h (struct target_ops) <to_mourn_inferior>: Use
8530         TARGET_DEFAULT_FUNC.
8531
8532 2014-02-19  Tom Tromey  <tromey@redhat.com>
8533
8534         * target-delegates.c: Rebuild.
8535         * target.c (default_follow_fork): New function.
8536         (target_follow_fork): Unconditionally delegate.
8537         * target.h (struct target_ops) <to_follow_fork>: Use
8538         TARGET_DEFAULT_FUNC.
8539
8540 2014-02-19  Tom Tromey  <tromey@redhat.com>
8541
8542         * target-delegates.c: Rebuild.
8543         * target.c (target_kill): Unconditionally delegate.
8544         * target.h (struct target_ops) <to_kill>: Use
8545         TARGET_DEFAULT_NORETURN.
8546
8547 2014-02-19  Tom Tromey  <tromey@redhat.com>
8548
8549         * target-delegates.c: Rebuild.
8550         * target.c (target_masked_watch_num_registers): Unconditionally
8551         delegate.
8552         * target.h (struct target_ops) <to_masked_watch_num_registers>:
8553         Use TARGET_DEFAULT_RETURN.
8554
8555 2014-02-19  Tom Tromey  <tromey@redhat.com>
8556
8557         * target-delegates.c: Rebuild.
8558         * target.c (target_remove_mask_watchpoint): Unconditionally
8559         delegate.
8560         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8561         TARGET_DEFAULT_RETURN.
8562
8563 2014-02-19  Tom Tromey  <tromey@redhat.com>
8564
8565         * target-delegates.c: Rebuild.
8566         * target.c (target_insert_mask_watchpoint): Unconditionally
8567         delegate.
8568         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8569         TARGET_DEFAULT_RETURN.
8570
8571 2014-02-19  Tom Tromey  <tromey@redhat.com>
8572
8573         * target-delegates.c: Rebuild.
8574         * target.c (target_ranged_break_num_registers): Unconditionally
8575         delegate.
8576         * target.h (struct target_ops) <to_ranged_break_num_registers>:
8577         Use TARGET_DEFAULT_RETURN.
8578
8579 2014-02-19  Tom Tromey  <tromey@redhat.com>
8580
8581         * target-delegates.c: Rebuild.
8582         * target.c (target_fetch_registers): Unconditionally delegate.
8583         * target.h (struct target_ops) <to_fetch_registers>: Use
8584         TARGET_DEFAULT_NORETURN.
8585
8586 2014-02-19  Tom Tromey  <tromey@redhat.com>
8587
8588         * target-delegates.c: Rebuild.
8589         * target.c (update_current_target): Don't inherit or default
8590         to_stop.
8591         * target.h (struct target_ops) <to_stop>: Use
8592         TARGET_DEFAULT_IGNORE.
8593
8594 2014-02-19  Tom Tromey  <tromey@redhat.com>
8595
8596         * target-delegates.c: Rebuild.
8597         * target.c (update_current_target): Don't inherit or default
8598         to_can_run_breakpoint_commands.
8599         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8600         Use TARGET_DEFAULT_RETURN.
8601
8602 2014-02-19  Tom Tromey  <tromey@redhat.com>
8603
8604         * target-delegates.c: Rebuild.
8605         * target.c (update_current_target): Don't inherit or default
8606         to_supports_evaluation_of_breakpoint_conditions.
8607         * target.h (struct target_ops)
8608         <to_supports_evaluation_of_breakpoint_conditions>: Use
8609         TARGET_DEFAULT_RETURN.
8610
8611 2014-02-19  Tom Tromey  <tromey@redhat.com>
8612
8613         * target-delegates.c: Rebuild.
8614         * target.c (update_current_target): Don't inherit or default
8615         to_augmented_libraries_svr4_read.
8616         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8617         Use TARGET_DEFAULT_RETURN.
8618
8619 2014-02-19  Tom Tromey  <tromey@redhat.com>
8620
8621         * target-delegates.c: Rebuild.
8622         * target.c (update_current_target): Don't inherit or default
8623         to_can_use_agent.
8624         * target.h (struct target_ops) <to_can_use_agent>: Use
8625         TARGET_DEFAULT_RETURN.
8626
8627 2014-02-19  Tom Tromey  <tromey@redhat.com>
8628
8629         * target-delegates.c: Rebuild.
8630         * target.c (update_current_target): Don't inherit or default
8631         to_use_agent.
8632         * target.h (struct target_ops) <to_use_agent>: Use
8633         TARGET_DEFAULT_NORETURN.
8634
8635 2014-02-19  Tom Tromey  <tromey@redhat.com>
8636
8637         * target-delegates.c: Rebuild.
8638         * target.c (update_current_target): Don't inherit or default
8639         to_traceframe_info.
8640         (return_null): Remove.
8641         * target.h (struct target_ops) <to_traceframe_info>: Use
8642         TARGET_DEFAULT_RETURN.
8643
8644 2014-02-19  Tom Tromey  <tromey@redhat.com>
8645
8646         * target-delegates.c: Rebuild.
8647         * target.c (update_current_target): Don't inherit or default
8648         to_static_tracepoint_markers_by_strid.
8649         * target.h (struct target_ops)
8650         <to_static_tracepoint_markers_by_strid>: Use
8651         TARGET_DEFAULT_NORETURN.
8652
8653 2014-02-19  Tom Tromey  <tromey@redhat.com>
8654
8655         * target-delegates.c: Rebuild.
8656         * target.c (update_current_target): Don't inherit or default
8657         to_static_tracepoint_marker_at.
8658         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8659         Use TARGET_DEFAULT_RETURN.
8660
8661 2014-02-19  Tom Tromey  <tromey@redhat.com>
8662
8663         * target-delegates.c: Rebuild.
8664         * target.c (update_current_target): Don't inherit or default
8665         to_set_permissions.
8666         * target.h (struct target_ops) <to_set_permissions>: Use
8667         TARGET_DEFAULT_IGNORE.
8668
8669 2014-02-19  Tom Tromey  <tromey@redhat.com>
8670
8671         * target-delegates.c: Rebuild.
8672         * target.c (update_current_target): Don't inherit or default
8673         to_get_tib_address.
8674         * target.h (struct target_ops) <to_get_tib_address>: Use
8675         TARGET_DEFAULT_NORETURN.
8676
8677 2014-02-19  Tom Tromey  <tromey@redhat.com>
8678
8679         * target-delegates.c: Rebuild.
8680         * target.c (update_current_target): Don't inherit or default
8681         to_set_trace_notes.
8682         * target.h (struct target_ops) <to_set_trace_notes>: Use
8683         TARGET_DEFAULT_RETURN.
8684
8685 2014-02-19  Tom Tromey  <tromey@redhat.com>
8686
8687         * target-delegates.c: Rebuild.
8688         * target.c (update_current_target): Don't initialize
8689         to_set_trace_buffer_size.
8690         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8691         TARGET_DEFAULT_IGNORE.
8692
8693 2014-02-19  Tom Tromey  <tromey@redhat.com>
8694
8695         * target-delegates.c: Rebuild.
8696         * target.c (update_current_target): Don't inherit or default
8697         to_set_circular_trace_buffer.
8698         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8699         TARGET_DEFAULT_IGNORE.
8700
8701 2014-02-19  Tom Tromey  <tromey@redhat.com>
8702
8703         * target-delegates.c: Rebuild.
8704         * target.c (update_current_target): Don't inherit or default
8705         to_set_disconnected_tracing.
8706         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8707         TARGET_DEFAULT_IGNORE.
8708
8709 2014-02-19  Tom Tromey  <tromey@redhat.com>
8710
8711         * target-delegates.c: Rebuild.
8712         * target.c (update_current_target): Don't inherit or default
8713         to_get_min_fast_tracepoint_insn_len.
8714         (return_minus_one): Remove.
8715         * target.h (struct target_ops)
8716         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8717
8718 2014-02-19  Tom Tromey  <tromey@redhat.com>
8719
8720         * target-delegates.c: Rebuild.
8721         * target.c (update_current_target): Don't inherit or default
8722         to_get_raw_trace_data.
8723         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8724         TARGET_DEFAULT_NORETURN.
8725
8726 2014-02-19  Tom Tromey  <tromey@redhat.com>
8727
8728         * target-delegates.c: Rebuild.
8729         * target.c (update_current_target): Don't inherit or default
8730         to_upload_trace_state_variables.
8731         * target.h (struct target_ops) <to_upload_trace_state_variables>:
8732         Use TARGET_DEFAULT_RETURN.
8733
8734 2014-02-19  Tom Tromey  <tromey@redhat.com>
8735
8736         * target-delegates.c: Rebuild.
8737         * target.c (update_current_target): Don't inherit or default
8738         to_upload_tracepoints.
8739         * target.h (struct target_ops) <to_upload_tracepoints>: Use
8740         TARGET_DEFAULT_RETURN.
8741
8742 2014-02-19  Tom Tromey  <tromey@redhat.com>
8743
8744         * target-delegates.c: Rebuild.
8745         * target.c (update_current_target): Don't inherit or default
8746         to_save_trace_data.
8747         * target.h (struct target_ops) <to_save_trace_data>: 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_get_trace_state_variable_value.
8755         * target.h (struct target_ops)
8756         <to_get_trace_state_variable_value>: 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_trace_find.
8763         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8764
8765 2014-02-19  Tom Tromey  <tromey@redhat.com>
8766
8767         * target-delegates.c: Rebuild.
8768         * target.c (update_current_target): Don't inherit or default
8769         to_trace_stop.
8770         * target.h (struct target_ops) <to_trace_stop>: Use
8771         TARGET_DEFAULT_NORETURN.
8772
8773 2014-02-19  Tom Tromey  <tromey@redhat.com>
8774
8775         * target-delegates.c: Rebuild.
8776         * target.c (update_current_target): Don't inherit or default
8777         to_get_tracepoint_status.
8778         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8779         TARGET_DEFAULT_NORETURN.
8780
8781 2014-02-19  Tom Tromey  <tromey@redhat.com>
8782
8783         * target-delegates.c: Rebuild.
8784         * target.c (update_current_target): Don't inherit or default
8785         to_get_trace_status.
8786         * target.h (struct target_ops) <to_get_trace_status>: Use
8787         TARGET_DEFAULT_RETURN.
8788
8789 2014-02-19  Tom Tromey  <tromey@redhat.com>
8790
8791         * target-delegates.c: Rebuild.
8792         * target.c (update_current_target): Don't inherit or default
8793         to_trace_start.
8794         * target.h (struct target_ops) <to_trace_start>: Use
8795         TARGET_DEFAULT_NORETURN.
8796
8797 2014-02-19  Tom Tromey  <tromey@redhat.com>
8798
8799         * target-delegates.c: Rebuild.
8800         * target.c (update_current_target): Don't inherit or default
8801         to_trace_set_readonly_regions.
8802         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8803         Use TARGET_DEFAULT_NORETURN.
8804
8805 2014-02-19  Tom Tromey  <tromey@redhat.com>
8806
8807         * target-delegates.c: Rebuild.
8808         * target.c (update_current_target): Don't inherit or default
8809         to_disable_tracepoint.
8810         * target.h (struct target_ops) <to_disable_tracepoint>: Use
8811         TARGET_DEFAULT_NORETURN.
8812
8813 2014-02-19  Tom Tromey  <tromey@redhat.com>
8814
8815         * target-delegates.c: Rebuild.
8816         * target.c (update_current_target): Don't inherit or default
8817         to_enable_tracepoint.
8818         * target.h (struct target_ops) <to_enable_tracepoint>: Use
8819         TARGET_DEFAULT_NORETURN.
8820
8821 2014-02-19  Tom Tromey  <tromey@redhat.com>
8822
8823         * target-delegates.c: Rebuild.
8824         * target.c (update_current_target): Don't inherit or default
8825         to_download_trace_state_variable.
8826         * target.h (struct target_ops) <to_download_trace_state_variable>:
8827         Use TARGET_DEFAULT_NORETURN.
8828
8829 2014-02-19  Tom Tromey  <tromey@redhat.com>
8830
8831         * target-delegates.c: Rebuild.
8832         * target.c (update_current_target): Don't inherit or default
8833         to_can_download_tracepoint.
8834         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8835         TARGET_DEFAULT_RETURN.
8836
8837 2014-02-19  Tom Tromey  <tromey@redhat.com>
8838
8839         * target-delegates.c: Rebuild.
8840         * target.c (update_current_target): Don't inherit or default
8841         to_download_tracepoint.
8842         * target.h (struct target_ops) <to_download_tracepoint>: Use
8843         TARGET_DEFAULT_NORETURN.
8844
8845 2014-02-19  Tom Tromey  <tromey@redhat.com>
8846
8847         * target-delegates.c: Rebuild.
8848         * target.c (update_current_target): Don't inherit or default
8849         to_trace_init.
8850         * target.h (struct target_ops) <to_trace_init>: Use
8851         TARGET_DEFAULT_RETURN.
8852
8853 2014-02-19  Tom Tromey  <tromey@redhat.com>
8854
8855         * target-delegates.c: Rebuild.
8856         * target.c (update_current_target): Don't inherit or default
8857         to_supports_string_tracing.
8858         * target.h (struct target_ops) <to_supports_string_tracing>: Use
8859         TARGET_DEFAULT_RETURN.
8860
8861 2014-02-19  Tom Tromey  <tromey@redhat.com>
8862
8863         * target-delegates.c: Rebuild.
8864         * target.c (update_current_target): Don't inherit or default
8865         to_supports_enable_disable_tracepoint.
8866         * target.h (struct target_ops)
8867         <to_supports_enable_disable_tracepoint>: Use
8868         TARGET_DEFAULT_RETURN.
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_supports_multi_process.
8875         * target.h (struct target_ops) <to_supports_multi_process>: Use
8876         TARGET_DEFAULT_RETURN.
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_ada_task_ptid.
8883         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8884         TARGET_DEFAULT_FUNC.
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_thread_architecture.
8891         * target.h (struct target_ops) <to_thread_architecture>: Use
8892         TARGET_DEFAULT_FUNC.
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_execution_direction.
8899         * target.h (struct target_ops) <to_execution_direction>: Use
8900         TARGET_DEFAULT_FUNC.
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_can_execute_reverse.
8907         * target.h (struct target_ops) <to_can_execute_reverse>: Use
8908         TARGET_DEFAULT_RETURN.
8909         (target_can_execute_reverse): Unconditionally delegate.
8910
8911 2014-02-19  Tom Tromey  <tromey@redhat.com>
8912
8913         * target-delegates.c: Rebuild.
8914         * target.c (update_current_target): Don't inherit or default
8915         to_goto_bookmark.
8916         (dummy_goto_bookmark): Remove.
8917         (init_dummy_target): Don't inherit or default to_goto_bookmark.
8918         * target.h (struct target_ops) <to_goto_bookmark>: Use
8919         TARGET_DEFAULT_NORETURN.
8920
8921 2014-02-19  Tom Tromey  <tromey@redhat.com>
8922
8923         * target-delegates.c: Rebuild.
8924         * target.c (update_current_target): Don't inherit or default
8925         to_get_bookmark.
8926         (dummy_get_bookmark): Remove.
8927         (init_dummy_target): Don't inherit or default to_get_bookmark.
8928         * target.h (struct target_ops) <to_get_bookmark>: Use
8929         TARGET_DEFAULT_NORETURN
8930
8931 2014-02-19  Tom Tromey  <tromey@redhat.com>
8932
8933         * target-delegates.c: Rebuild.
8934         * target.c (update_current_target): Don't inherit or default
8935         to_make_corefile_notes.
8936         (init_dummy_target): Don't initialize to_make_corefile_notes.
8937         * target.h (struct target_ops) <to_make_corefile_notes>: Use
8938         TARGET_DEFAULT_FUNC.
8939
8940 2014-02-19  Tom Tromey  <tromey@redhat.com>
8941
8942         * target-delegates.c: Rebuild.
8943         * target.c (update_current_target): Don't inherit or default
8944         to_find_memory_regions.
8945         (init_dummy_target): Don't initialize to_find_memory_regions.
8946         * target.h (struct target_ops) <to_find_memory_regions>: Use
8947         TARGET_DEFAULT_FUNC.
8948
8949 2014-02-19  Tom Tromey  <tromey@redhat.com>
8950
8951         * target-delegates.c: Rebuild.
8952         * target.c (update_current_target): Don't inherit or default
8953         to_log_command.
8954         * target.h (struct target_ops) <to_log_command>: Use
8955         TARGET_DEFAULT_IGNORE.
8956         (target_log_command): Unconditionally delegate.
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_pid_to_exec_file.
8963         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8964         TARGET_DEFAULT_RETURN.
8965
8966 2014-02-19  Tom Tromey  <tromey@redhat.com>
8967
8968         * target-delegates.c: Rebuild.
8969         * target.c (update_current_target): Don't inherit or default
8970         to_thread_name.
8971         (target_thread_name): Unconditionally delegate.
8972         * target.h (struct target_ops) <to_thread_name>: 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_extra_thread_info.
8980         * target.h (struct target_ops) <to_extra_thread_info>: Use
8981         TARGET_DEFAULT_RETURN.
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_has_exited.
8988         * target.h (struct target_ops) <to_has_exited>: Use
8989         TARGET_DEFAULT_RETURN..
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_set_syscall_catchpoint.
8996         (return_one): Remove.
8997         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8998         TARGET_DEFAULT_RETURN.
8999
9000 2014-02-19  Tom Tromey  <tromey@redhat.com>
9001
9002         * target-delegates.c: Rebuild.
9003         * target.c (update_current_target): Don't inherit or default
9004         to_insert_exec_catchpoint.
9005         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9006         TARGET_DEFAULT_RETURN.
9007
9008 2014-01-08  Tom Tromey  <tromey@redhat.com>
9009
9010         * target-delegates.c: Rebuild.
9011         * target.c (update_current_target): Don't inherit or default
9012         to_insert_exec_catchpoint.
9013         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9014         TARGET_DEFAULT_RETURN.
9015
9016 2014-02-19  Tom Tromey  <tromey@redhat.com>
9017
9018         * target-delegates.c: Rebuild.
9019         * target.c (update_current_target): Don't inherit or default
9020         to_remove_vfork_catchpoint.
9021         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9022         TARGET_DEFAULT_RETURN.
9023
9024 2014-02-19  Tom Tromey  <tromey@redhat.com>
9025
9026         * target-delegates.c: Rebuild.
9027         * target.c (update_current_target): Don't inherit or default
9028         to_insert_vfork_catchpoint.
9029         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9030         TARGET_DEFAULT_RETURN.
9031
9032 2014-02-19  Tom Tromey  <tromey@redhat.com>
9033
9034         * target-delegates.c: Rebuild.
9035         * target.c (update_current_target): Don't inherit or default
9036         to_remove_fork_catchpoint.
9037         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9038         TARGET_DEFAULT_RETURN.
9039
9040 2014-02-19  Tom Tromey  <tromey@redhat.com>
9041
9042         * target-delegates.c: Rebuild.
9043         * target.c (update_current_target): Don't inherit or default
9044         to_insert_fork_catchpoint.
9045         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9046         TARGET_DEFAULT_RETURN.
9047
9048 2014-02-19  Tom Tromey  <tromey@redhat.com>
9049
9050         * target-delegates.c: Rebuild.
9051         * target.c (update_current_target): Don't inherit or default
9052         to_post_startup_inferior.
9053         * target.h (struct target_ops) <to_post_startup_inferior>: Use
9054         TARGET_DEFAULT_IGNORE.
9055
9056 2014-02-19  Tom Tromey  <tromey@redhat.com>
9057
9058         * target-delegates.c: Rebuild.
9059         * target.c (update_current_target): Don't inherit or default
9060         to_load.
9061         * target.h (struct target_ops) <to_load>: Use
9062         TARGET_DEFAULT_NORETURN.
9063
9064 2014-02-19  Tom Tromey  <tromey@redhat.com>
9065
9066         * target-delegates.c: Rebuild.
9067         * target.c (update_current_target): Don't inherit or default
9068         to_terminal_info.
9069         * target.h (struct target_ops) <to_terminal_info>: Use
9070         TARGET_DEFAULT_FUNC.
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_terminal_save_ours.
9077         * target.h (struct target_ops) <to_terminal_save_ours>: Use
9078         TARGET_DEFAULT_IGNORE.
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_terminal_ours.
9085         * target.h (struct target_ops) <to_terminal_ours>: Use
9086         TARGET_DEFAULT_IGNORE.
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_terminal_ours_for_output.
9093         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9094         TARGET_DEFAULT_IGNORE.
9095
9096 2014-02-19  Tom Tromey  <tromey@redhat.com>
9097
9098         * target-delegates.c: Rebuild.
9099         * target.c (update_current_target): Don't inherit or default
9100         to_terminal_inferior.
9101         * target.h (struct target_ops) <to_terminal_inferior>: Use
9102         TARGET_DEFAULT_IGNORE.
9103
9104 2014-02-19  Tom Tromey  <tromey@redhat.com>
9105
9106         * target-delegates.c: Rebuild.
9107         * target.c (update_current_target): Don't inherit or default
9108         to_terminal_init.
9109         * target.h (struct target_ops) <to_terminal_init>: Use
9110         TARGET_DEFAULT_IGNORE.
9111
9112 2014-02-19  Tom Tromey  <tromey@redhat.com>
9113
9114         * target-delegates.c: Rebuild.
9115         * target.c (update_current_target): Don't inherit or default
9116         to_can_accel_watchpoint_condition.
9117         * target.h (struct target_ops)
9118         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9119
9120 2014-02-19  Tom Tromey  <tromey@redhat.com>
9121
9122         * target-delegates.c: Rebuild.
9123         * target.c (update_current_target): Don't inherit or default
9124         to_region_ok_for_hw_watchpoint.
9125         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9126         Use TARGET_DEFAULT_FUNC.
9127
9128 2014-02-19  Tom Tromey  <tromey@redhat.com>
9129
9130         * target-delegates.c: Rebuild.
9131         * target.c (update_current_target): Don't inherit or default
9132         to_watchpoint_addr_within_range.
9133         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9134         Use TARGET_DEFAULT_FUNC.
9135
9136 2014-02-19  Tom Tromey  <tromey@redhat.com>
9137
9138         * target-delegates.c: Rebuild.
9139         * target.c (update_current_target): Don't inherit or default
9140         to_remove_watchpoint.
9141         * target.h (struct target_ops) <to_remove_watchpoint>: Use
9142         TARGET_DEFAULT_NORETURN.
9143
9144 2014-02-19  Tom Tromey  <tromey@redhat.com>
9145
9146         * target-delegates.c: Rebuild.
9147         * target.c (update_current_target): Don't inherit or default
9148         to_insert_watchpoint.
9149         * target.h (struct target_ops) <to_insert_watchpoint>: Use
9150         TARGET_DEFAULT_RETURN.
9151
9152 2014-02-19  Tom Tromey  <tromey@redhat.com>
9153
9154         * target-delegates.c: Rebuild.
9155         * target.c (update_current_target): Don't inherit or default
9156         to_remove_hw_breakpoint.
9157         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9158         TARGET_DEFAULT_RETURN.
9159
9160 2014-02-19  Tom Tromey  <tromey@redhat.com>
9161
9162         * target-delegates.c: Rebuild.
9163         * target.c (update_current_target): Don't inherit or default
9164         to_insert_hw_breakpoint.
9165         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9166         TARGET_DEFAULT_RETURN.
9167
9168 2014-02-19  Tom Tromey  <tromey@redhat.com>
9169
9170         * target-delegates.c: Rebuild.
9171         * target.c (update_current_target): Don't inherit or default
9172         to_can_use_hw_breakpoint.
9173         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9174         TARGET_DEFAULT_RETURN.
9175
9176 2014-02-19  Tom Tromey  <tromey@redhat.com>
9177
9178         * target-delegates.c: Rebuild.
9179         * target.c (update_current_target): Don't inherit or default
9180         to_files_info.
9181         * target.h (struct target_ops) <to_files_info>: Use
9182         TARGET_DEFAULT_IGNORE.
9183
9184 2014-02-19  Tom Tromey  <tromey@redhat.com>
9185
9186         * target-delegates.c: Rebuild.
9187         * target.c (update_current_target): Don't inherit or default
9188         to_store.
9189         * target.h (struct target_ops) <to_store>: Use
9190         TARGET_DEFAULT_NORETURN.
9191
9192 2014-02-19  Tom Tromey  <tromey@redhat.com>
9193
9194         * target-delegates.c: Rebuild.
9195         * target.c (update_current_target): Don't inherit or default
9196         to_post_attach.
9197         * target.h (struct target_ops) <to_post_attach>: Use
9198         TARGET_DEFAULT_IGNORE.
9199
9200 2014-02-19  Tom Tromey  <tromey@redhat.com>
9201
9202         * target-delegates.c: Rebuild.
9203         * target.c (update_current_target): Don't inherit or default
9204         to_rcmd.
9205         (default_rcmd): New function.
9206         (do_monitor_command): Unconditionally delegate.
9207         * target.h (struct target_ops) <to_rmcd>: Use
9208         TARGET_DEFAULT_FUNC.
9209
9210 2014-02-19  Tom Tromey  <tromey@redhat.com>
9211
9212         * target-delegates.c: Rebuild.
9213         * target.c (init_dummy_target): Don't initialize to_attach.
9214         (target_attach): Unconditionally delegate.
9215         * target.h (struct target_ops) <to_attach>: Use
9216         TARGET_DEFAULT_FUNC.
9217
9218 2014-02-19  Tom Tromey  <tromey@redhat.com>
9219
9220         * target-delegates.c: Rebuild.
9221         * target.c (target_detach): Unconditionally delegate.
9222         (init_dummy_target): Don't initialize to_detach.
9223         * target.h (struct target_ops) <to_detach>: Use
9224         TARGET_DEFAULT_IGNORE.
9225
9226 2014-02-19  Tom Tromey  <tromey@redhat.com>
9227
9228         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9229         Add argument.
9230         (target_augmented_libraries_svr4_read): Add argument.
9231         * target.c (update_current_target): Update.
9232         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9233         argument.
9234
9235 2014-02-19  Tom Tromey  <tromey@redhat.com>
9236
9237         * target.h (struct target_ops) <to_call_history_range>: Add
9238         argument.
9239         * target.c (target_call_history_range): Add argument.
9240         * record-btrace.c (record_btrace_call_history_range): Add 'self'
9241         argument.
9242         (record_btrace_call_history_from): Update.
9243
9244 2014-02-19  Tom Tromey  <tromey@redhat.com>
9245
9246         * target.h (struct target_ops) <to_call_history_from>: Add
9247         argument.
9248         * target.c (target_call_history_from): Add argument.
9249         * record-btrace.c (record_btrace_call_history_from): Add 'self'
9250         argument.
9251
9252 2014-02-19  Tom Tromey  <tromey@redhat.com>
9253
9254         * target.h (struct target_ops) <to_call_history>: Add argument.
9255         * target.c (target_call_history): Add argument.
9256         * record-btrace.c (record_btrace_call_history): Add 'self'
9257         argument.
9258
9259 2014-02-19  Tom Tromey  <tromey@redhat.com>
9260
9261         * target.h (struct target_ops) <to_insn_history_range>: Add
9262         argument.
9263         * target.c (target_insn_history_range): Add argument.
9264         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9265         argument.
9266         (record_btrace_insn_history_from): Update.
9267
9268 2014-02-19  Tom Tromey  <tromey@redhat.com>
9269
9270         * target.h (struct target_ops) <to_insn_history_from>: Add
9271         argument.
9272         * target.c (target_insn_history_from): Add argument.
9273         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9274         argument.
9275
9276 2014-02-19  Tom Tromey  <tromey@redhat.com>
9277
9278         * target.h (struct target_ops) <to_insn_history>: Add argument.
9279         * target.c (target_insn_history): Add argument.
9280         * record-btrace.c (record_btrace_insn_history): Add 'self'
9281         argument.
9282
9283 2014-02-19  Tom Tromey  <tromey@redhat.com>
9284
9285         * target.h (struct target_ops) <to_goto_record>: Add argument.
9286         * target.c (target_goto_record): Add argument.
9287         * record-full.c (record_full_goto): Add 'self' argument.
9288         * record-btrace.c (record_btrace_goto): Add 'self' argument.
9289
9290 2014-02-19  Tom Tromey  <tromey@redhat.com>
9291
9292         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9293         * target.c (target_goto_record_end): Add argument.
9294         * record-full.c (record_full_goto_end): Add 'self' argument.
9295         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9296
9297 2014-02-19  Tom Tromey  <tromey@redhat.com>
9298
9299         * target.h (struct target_ops) <to_goto_record_begin>: Add
9300         argument.
9301         * target.c (target_goto_record_begin): Add argument.
9302         * record-full.c (record_full_goto_begin): Add 'self' argument.
9303         * record-btrace.c (record_btrace_goto_begin): Add 'self'
9304         argument.
9305
9306 2014-02-19  Tom Tromey  <tromey@redhat.com>
9307
9308         * target.h (struct target_ops) <to_record_is_replaying>: Add
9309         argument.
9310         * target.c (target_record_is_replaying): Add argument.
9311         * record-full.c (record_full_is_replaying): Add 'self' argument.
9312         * record-btrace.c (record_btrace_is_replaying): Add 'self'
9313         argument.
9314         (record_btrace_xfer_partial, record_btrace_store_registers)
9315         (record_btrace_prepare_to_store, record_btrace_resume)
9316         (record_btrace_wait, record_btrace_decr_pc_after_break)
9317         (record_btrace_find_new_threads, record_btrace_thread_alive):
9318         Update.
9319
9320 2014-02-19  Tom Tromey  <tromey@redhat.com>
9321
9322         * target.h (struct target_ops) <to_delete_record>: Add argument.
9323         * target.c (target_delete_record): Add argument.
9324         * record-full.c (record_full_delete): Add 'self' argument.
9325
9326 2014-02-19  Tom Tromey  <tromey@redhat.com>
9327
9328         * target.h (struct target_ops) <to_save_record>: Add argument.
9329         * target.c (target_save_record): Add argument.
9330         * record-full.c (record_full_save): Add 'self' argument.
9331         (record_full_save): Add 'self' argument.
9332
9333 2014-02-19  Tom Tromey  <tromey@redhat.com>
9334
9335         * target.h (struct target_ops) <to_info_record>: Add argument.
9336         * target.c (target_info_record): Add argument.
9337         * record.c (info_record_command): Add argument.
9338         * record-full.c (record_full_info): Add 'self' argument.
9339         * record-btrace.c (record_btrace_info): Add 'self' argument.
9340
9341 2014-02-19  Tom Tromey  <tromey@redhat.com>
9342
9343         * target.h (struct target_ops) <to_stop_recording>: Add argument.
9344         * target.c (target_stop_recording): Add argument.
9345         * record.c (record_stop): Add argument.
9346         * record-btrace.c (record_btrace_stop_recording): Add 'self'
9347         argument.
9348
9349 2014-02-19  Tom Tromey  <tromey@redhat.com>
9350
9351         * target.h (struct target_ops) <to_read_btrace>: Add argument.
9352         * target.c (struct target_ops) <to_read_btrace>: Add argument.
9353         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9354         argument.
9355         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9356         (_initialize_amd64_linux_nat): Use it.
9357         * i386-linux-nat.c (i386_linux_read_btrace): New function.
9358         (_initialize_i386_linux_nat): Use it.
9359
9360 2014-02-19  Tom Tromey  <tromey@redhat.com>
9361
9362         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9363         * target.c (target_teardown_btrace): Add argument.
9364         * remote.c (remote_teardown_btrace): Add 'self' argument.
9365         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9366         argument.
9367         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9368         argument.
9369
9370 2014-02-19  Tom Tromey  <tromey@redhat.com>
9371
9372         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9373         * target.c (target_disable_btrace): Add argument.
9374         * remote.c (remote_disable_btrace): Add 'self' argument.
9375         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9376         argument.
9377         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9378         argument.
9379
9380 2014-02-19  Tom Tromey  <tromey@redhat.com>
9381
9382         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9383         * target.c (target_enable_btrace): Add argument.
9384         * remote.c (remote_enable_btrace): Add 'self' argument.
9385         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9386         argument.
9387         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9388         argument.
9389
9390 2014-02-19  Tom Tromey  <tromey@redhat.com>
9391
9392         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9393         (target_can_use_agent): Add argument.
9394         * target.c (update_current_target): Update.
9395         * remote.c (remote_can_use_agent): Add 'self' argument.
9396         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9397
9398 2014-02-19  Tom Tromey  <tromey@redhat.com>
9399
9400         * target.h (struct target_ops) <to_use_agent>: Add argument.
9401         (target_use_agent): Add argument.
9402         * target.c (update_current_target): Update.
9403         * remote.c (remote_use_agent): Add 'self' argument.
9404         * inf-child.c (inf_child_use_agent): Add 'self' argument.
9405
9406 2014-02-19  Tom Tromey  <tromey@redhat.com>
9407
9408         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9409         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9410         (target_traceframe_info): Add argument.
9411         * target.c (update_current_target): Update.
9412         * remote.c (remote_traceframe_info): Add 'self' argument.
9413         * ctf.c (ctf_traceframe_info): Add 'self' argument.
9414
9415 2014-02-19  Tom Tromey  <tromey@redhat.com>
9416
9417         * target.h (target_static_tracepoint_markers_by_strid): Add
9418         argument.
9419         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9420         'self' argument.
9421         * target.c (update_current_target): Update.
9422         * remote.c (struct target_ops)
9423         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9424         * linux-nat.c (struct target_ops)
9425         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9426
9427 2014-02-19  Tom Tromey  <tromey@redhat.com>
9428
9429         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9430         Add argument.
9431         (target_static_tracepoint_marker_at): Add argument.
9432         * target.c (update_current_target): Update.
9433         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9434         argument.
9435
9436 2014-02-19  Tom Tromey  <tromey@redhat.com>
9437
9438         * target.h (struct target_ops) <to_set_permissions>: Add argument.
9439         (target_set_permissions): Add argument.
9440         * target.c (update_current_target): Update.
9441         * remote.c (remote_set_permissions): Add 'self' argument.
9442         (remote_start_remote): Update.
9443
9444 2014-02-19  Tom Tromey  <tromey@redhat.com>
9445
9446         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9447         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9448         (target_get_tib_address): Add argument.
9449         * target.c (update_current_target): Update.
9450         * remote.c (remote_get_tib_address): Add 'self' argument.
9451
9452 2014-02-19  Tom Tromey  <tromey@redhat.com>
9453
9454         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9455         (target_set_trace_notes): Add argument.
9456         * target.c (update_current_target): Update.
9457         * remote.c (remote_set_trace_notes): Add 'self' argument.
9458
9459 2014-02-19  Tom Tromey  <tromey@redhat.com>
9460
9461         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9462         argument.
9463         (target_set_trace_buffer_size): Add argument.
9464         * target.c (update_current_target): Update.
9465         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9466
9467 2014-02-19  Tom Tromey  <tromey@redhat.com>
9468
9469         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9470         argument.
9471         (target_set_circular_trace_buffer): Add argument.
9472         * target.c (update_current_target): Update.
9473         * remote.c (remote_set_circular_trace_buffer): Add 'self'
9474         argument.
9475
9476 2014-02-19  Tom Tromey  <tromey@redhat.com>
9477
9478         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9479         argument.
9480         (target_set_disconnected_tracing): Add argument.
9481         * target.c (update_current_target): Update.
9482         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9483
9484 2014-02-19  Tom Tromey  <tromey@redhat.com>
9485
9486         * target.h (struct target_ops)
9487         <to_get_min_fast_tracepoint_insn_len>: Add argument.
9488         (target_get_min_fast_tracepoint_insn_len): Add argument.
9489         * target.c (update_current_target): Update.
9490         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9491         argument.
9492
9493 2014-02-19  Tom Tromey  <tromey@redhat.com>
9494
9495         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9496         argument.
9497         (target_get_raw_trace_data): Add argument.
9498         * target.c (update_current_target): Update.
9499         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9500
9501 2014-02-19  Tom Tromey  <tromey@redhat.com>
9502
9503         * target.h (struct target_ops) <to_upload_trace_state_variables>:
9504         Add argument.
9505         (target_upload_trace_state_variables): Add argument.
9506         * target.c (update_current_target): Update.
9507         * remote.c (remote_upload_trace_state_variables): Add 'self'
9508         argument.
9509         (remote_start_remote): Update.
9510
9511 2014-02-19  Tom Tromey  <tromey@redhat.com>
9512
9513         * target.h (struct target_ops) <to_upload_tracepoints>: Add
9514         argument.
9515         (target_upload_tracepoints): Add argument.
9516         * target.c (update_current_target): Update.
9517         * remote.c (remote_upload_tracepoints): Add 'self' argument.
9518         (remote_start_remote): Update.
9519
9520 2014-02-19  Tom Tromey  <tromey@redhat.com>
9521
9522         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9523         (target_save_trace_data): Add argument.
9524         * target.c (update_current_target): Update.
9525         * remote.c (remote_save_trace_data): Add 'self' argument.
9526
9527 2014-02-19  Tom Tromey  <tromey@redhat.com>
9528
9529         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9530         argument.
9531         * target.h (struct target_ops)
9532         <to_get_trace_state_variable_value>: Add argument.
9533         (target_get_trace_state_variable_value): Add argument.
9534         * target.c (update_current_target): Update.
9535         * remote.c (remote_get_trace_state_variable_value): Add 'self'
9536         argument.
9537         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9538
9539 2014-02-19  Tom Tromey  <tromey@redhat.com>
9540
9541         * tracepoint.c (tfile_trace_find): Add 'self' argument.
9542         * target.h (struct target_ops) <to_trace_find>: Add argument.
9543         (target_trace_find): Add argument.
9544         * target.c (update_current_target): Update.
9545         * remote.c (remote_trace_find): Add 'self' argument.
9546         * ctf.c (ctf_trace_find): Add 'self' argument.
9547
9548 2014-02-19  Tom Tromey  <tromey@redhat.com>
9549
9550         * target.h (struct target_ops) <to_trace_stop>: Add argument.
9551         (target_trace_stop): Add argument.
9552         * target.c (update_current_target): Update.
9553         * remote.c (remote_trace_stop): Add 'self' argument.
9554
9555 2014-02-19  Tom Tromey  <tromey@redhat.com>
9556
9557         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9558         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9559         argument.
9560         (target_get_tracepoint_status): Add argument.
9561         * target.c (update_current_target): Update.
9562         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9563
9564 2014-02-19  Tom Tromey  <tromey@redhat.com>
9565
9566         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9567         * target.h (struct target_ops) <to_get_trace_status>: Add
9568         argument.
9569         (target_get_trace_status): Add argument.
9570         * target.c (update_current_target): Update.
9571         * remote.c (remote_get_trace_status): Add 'self' argument.
9572         (remote_start_remote, remote_can_download_tracepoint): Update.
9573         * ctf.c (ctf_get_trace_status): Add 'self' argument.
9574
9575 2014-02-19  Tom Tromey  <tromey@redhat.com>
9576
9577         * target.h (struct target_ops) <to_trace_start>: Add argument.
9578         (target_trace_start): Add argument.
9579         * target.c (update_current_target): Update.
9580         * remote.c (remote_trace_start): Add 'self' argument.
9581
9582 2014-02-19  Tom Tromey  <tromey@redhat.com>
9583
9584         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9585         Add argument.
9586         (target_trace_set_readonly_regions): Add argument.
9587         * target.c (update_current_target): Update.
9588         * remote.c (remote_trace_set_readonly_regions): Add 'self'
9589         argument.
9590
9591 2014-02-19  Tom Tromey  <tromey@redhat.com>
9592
9593         * target.h (struct target_ops) <to_disable_tracepoint>: Add
9594         argument.
9595         (target_disable_tracepoint): Add argument.
9596         * target.c (update_current_target): Update.
9597         * remote.c (remote_disable_tracepoint): Add 'self' argument.
9598
9599 2014-02-19  Tom Tromey  <tromey@redhat.com>
9600
9601         * target.h (struct target_ops) <to_enable_tracepoint>: Add
9602         argument.
9603         (target_enable_tracepoint): Add argument.
9604         * target.c (update_current_target): Update.
9605         * remote.c (remote_enable_tracepoint): Add 'self' argument.
9606
9607 2014-02-19  Tom Tromey  <tromey@redhat.com>
9608
9609         * target.h (struct target_ops) <to_download_trace_state_variable>:
9610         Add argument.
9611         (target_download_trace_state_variable): Add argument.
9612         * target.c (update_current_target): Update.
9613         * remote.c (remote_download_trace_state_variable): Add 'self'
9614         argument.
9615
9616 2014-02-19  Tom Tromey  <tromey@redhat.com>
9617
9618         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9619         argument.
9620         (target_can_download_tracepoint): Add argument.
9621         * target.c (update_current_target): Update.
9622         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9623
9624 2014-02-19  Tom Tromey  <tromey@redhat.com>
9625
9626         * target.h (struct target_ops) <to_download_tracepoint>: Add
9627         argument.
9628         (target_download_tracepoint): Add argument.
9629         * target.c (update_current_target): Update.
9630         * remote.c (remote_download_tracepoint): Add 'self' argument.
9631
9632 2014-02-19  Tom Tromey  <tromey@redhat.com>
9633
9634         * target.h (struct target_ops) <to_trace_init>: Add argument.
9635         (target_trace_init): Add argument.
9636         * target.c (update_current_target): Update.
9637         * remote.c (remote_trace_init): Add 'self' argument.
9638
9639 2014-02-19  Tom Tromey  <tromey@redhat.com>
9640
9641         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9642         * target.c (target_fileio_readlink): Add argument.
9643         * remote.c (remote_hostio_readlink): Add 'self' argument.
9644         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9645
9646 2014-02-19  Tom Tromey  <tromey@redhat.com>
9647
9648         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9649         * target.c (target_fileio_unlink): Add argument.
9650         * remote.c (remote_hostio_unlink): Add 'self' argument.
9651         (remote_file_delete): Update.
9652         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9653
9654 2014-02-19  Tom Tromey  <tromey@redhat.com>
9655
9656         * target.h (struct target_ops) <to_fileio_close>: Add argument.
9657         * target.c (target_fileio_close): Add argument.
9658         * remote.c (remote_hostio_close): Add 'self' argument.
9659         (remote_hostio_close_cleanup): Update.
9660         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9661         Update.
9662         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9663
9664 2014-02-19  Tom Tromey  <tromey@redhat.com>
9665
9666         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9667         * target.c (target_fileio_pread): Add argument.
9668         * remote.c (remote_hostio_pread): Add 'self' argument.
9669         (remote_bfd_iovec_pread, remote_file_get): Update.
9670         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9671
9672 2014-02-19  Tom Tromey  <tromey@redhat.com>
9673
9674         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9675         * target.c (target_fileio_pwrite): Add argument.
9676         * remote.c (remote_hostio_pwrite): Add 'self' argument.
9677         (remote_file_put): Update.
9678         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9679
9680 2014-02-19  Tom Tromey  <tromey@redhat.com>
9681
9682         * target.h (struct target_ops) <to_fileio_open>: Add argument.
9683         * target.c (target_fileio_open): Add argument.
9684         * remote.c (remote_hostio_open): Add 'self' argument.
9685         (remote_bfd_iovec_open): Add 'self' argument.
9686         (remote_file_put): Add 'self' argument.
9687         (remote_file_get): Add 'self' argument.
9688         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9689
9690 2014-02-19  Tom Tromey  <tromey@redhat.com>
9691
9692         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9693         Add argument.
9694         (target_can_run_breakpoint_commands): Add argument.
9695         * target.c (update_current_target): Update.
9696         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9697         argument.
9698         (remote_insert_breakpoint): Add 'self' argument.
9699         (remote_insert_hw_breakpoint): Add 'self' argument.
9700         (remote_can_run_breakpoint_commands): Add 'self' argument.
9701
9702 2014-02-19  Tom Tromey  <tromey@redhat.com>
9703
9704         * target.h (struct target_ops)
9705         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9706         (target_supports_evaluation_of_breakpoint_conditions): Add
9707         argument.
9708         * target.c (update_current_target): Update.
9709         * remote.c (remote_supports_cond_breakpoints): Add 'self'
9710         argument.
9711         (remote_insert_breakpoint): Add 'self' argument.
9712         (remote_insert_hw_breakpoint): Add 'self' argument.
9713         (remote_supports_cond_breakpoints): Add 'self' argument.
9714
9715 2014-02-19  Tom Tromey  <tromey@redhat.com>
9716
9717         * target.h (struct target_ops) <to_supports_string_tracing>: Add
9718         argument.
9719         (target_supports_string_tracing): Add argument.
9720         * target.c (update_current_target): Update.
9721         * remote.c (remote_supports_string_tracing): Add 'self' argument.
9722
9723 2014-02-19  Tom Tromey  <tromey@redhat.com>
9724
9725         * target.h (struct target_ops)
9726         <to_supports_disable_randomization>: Add argument.
9727         * target.c (find_default_supports_disable_randomization): Add
9728         argument.
9729         (target_supports_disable_randomization): Add argument.
9730         (find_default_supports_disable_randomization): Add 'self'
9731         argument.
9732         * remote.c (extended_remote_supports_disable_randomization): Add
9733         'self' argument.
9734         (remote_supports_disable_randomization): Add 'self' argument.
9735         (extended_remote_create_inferior): Update.
9736         * linux-nat.c (linux_nat_supports_disable_randomization): Add
9737         'self' argument.
9738
9739 2014-02-19  Tom Tromey  <tromey@redhat.com>
9740
9741         * target.h (struct target_ops)
9742         <to_supports_enable_disable_tracepoint>: Add argument.
9743         (target_supports_enable_disable_tracepoint): Add argument.
9744         * target.c (update_current_target): Update.
9745         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9746         argument.
9747
9748 2014-02-19  Tom Tromey  <tromey@redhat.com>
9749
9750         * target.h (struct target_ops) <to_supports_multi_process>: Add
9751         argument.
9752         (target_supports_multi_process): Add argument.
9753         * target.c (update_current_target): Update.
9754         * remote.c (remote_supports_multi_process): Add 'self' argument.
9755         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9756         argument.
9757         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9758         argument.
9759
9760 2014-02-19  Tom Tromey  <tromey@redhat.com>
9761
9762         * target.h (struct target_ops) <to_execution_direction>: Add
9763         argument.
9764         (target_execution_direction): Add argument.
9765         * target.c (default_execution_direction): Add 'self' argument.
9766         * record-full.c (record_full_execution_direction): Add 'self'
9767         argument.
9768
9769 2014-02-19  Tom Tromey  <tromey@redhat.com>
9770
9771         * target.h (struct target_ops) <to_can_execute_reverse>: Add
9772         argument.
9773         (target_can_execute_reverse): Add argument.
9774         * remote.c (remote_can_execute_reverse): Add 'self' argument.
9775         * record-full.c (record_full_can_execute_reverse): Add 'self'
9776         argument.
9777         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9778         argument.
9779
9780 2014-02-19  Tom Tromey  <tromey@redhat.com>
9781
9782         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9783         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9784         argument.
9785         (target_get_ada_task_ptid): Add argument.
9786         * target.c (update_current_target): Update.
9787         (default_get_ada_task_ptid): Add 'self' argument.
9788         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9789         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9790         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9791         argument.
9792         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9793         argument.
9794         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9795         argument.
9796         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9797         argument.
9798         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9799         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9800         argument.
9801
9802 2014-02-19  Tom Tromey  <tromey@redhat.com>
9803
9804         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9805         (target_goto_bookmark): Add argument.
9806         * target.c (dummy_goto_bookmark): Add 'self' argument.
9807         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9808
9809 2014-02-19  Tom Tromey  <tromey@redhat.com>
9810
9811         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9812         (target_get_bookmark): Add argument.
9813         * target.c (dummy_get_bookmark): Add 'self' argument.
9814         * record-full.c (record_full_get_bookmark): Add 'self' argument.
9815
9816 2014-02-19  Tom Tromey  <tromey@redhat.com>
9817
9818         * target.h (struct target_ops) <to_make_corefile_notes>: Add
9819         argument.
9820         (target_make_corefile_notes): Add argument.
9821         * target.c (dummy_make_corefile_notes): Add 'self' argument.
9822         * procfs.c (procfs_make_note_section): Add 'self' argument.
9823         (procfs_make_note_section): Add 'self' argument.
9824         (procfs_make_note_section): Add 'self' argument.
9825         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9826         argument.
9827         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9828         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9829         * exec.c (exec_make_note_section): Add 'self' argument.
9830         (exec_make_note_section): Add 'self' argument.
9831
9832 2014-02-19  Tom Tromey  <tromey@redhat.com>
9833
9834         * target.h (struct target_ops) <to_find_memory_regions>: Add
9835         argument.
9836         (target_find_memory_regions): Add argument.
9837         * target.c (dummy_find_memory_regions): Add 'self' argument.
9838         * procfs.c (proc_find_memory_regions): Add 'self' argument.
9839         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9840         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9841         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9842         * exec. (exec_do_find_memory_regions): New global.
9843         (exec_set_find_memory_regions): Rewrite.
9844         (exec_find_memory_regions): New function.
9845         (init_exec_ops): Use exec_find_memory_regions.
9846
9847 2014-02-19  Tom Tromey  <tromey@redhat.com>
9848
9849         * target.h (struct target_ops) <to_supports_non_stop>: Add
9850         argument.
9851         * target.c (find_default_supports_non_stop): Add argument.
9852         (target_supports_non_stop): Add argument.
9853         (find_default_supports_non_stop): Add 'self' argument.
9854         * remote.c (remote_supports_non_stop): Add 'self' argument.
9855         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9856
9857 2014-02-19  Tom Tromey  <tromey@redhat.com>
9858
9859         * target.h (struct target_ops) <to_log_command>: Add argument.
9860         (target_log_command): Add argument.
9861         * serial.h (serial_log_command): Add 'self' argument.
9862         * serial.c (serial_log_command): Add 'self' argument.
9863
9864 2014-02-19  Tom Tromey  <tromey@redhat.com>
9865
9866         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9867         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9868         argument.
9869         (target_pid_to_exec_file): Add argument.
9870         * target.c (debug_to_pid_to_exec_file): Add argument.
9871         (update_current_target): Update.
9872         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9873         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9874         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9875         (linux_handle_extended_wait): Update.
9876         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9877         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9878         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9879         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9880
9881 2014-02-19  Tom Tromey  <tromey@redhat.com>
9882
9883         * target.h (struct target_ops) <to_rcmd>: Add argument.
9884         (target_rcmd): Add argument.
9885         * target.c (debug_to_rcmd): Add argument.
9886         (update_current_target, do_monitor_command): Update.
9887         * remote.c (remote_rcmd): Add 'self' argument.
9888         * monitor.c (monitor_rcmd): Add 'self' argument.
9889
9890 2014-02-19  Tom Tromey  <tromey@redhat.com>
9891
9892         * windows-nat.c (windows_stop): Add 'self' argument.
9893         * target.h (struct target_ops) <to_stop>: Add argument.
9894         * target.c (target_stop): Add argument.
9895         (debug_to_stop): Add argument.
9896         (update_current_target): Update.
9897         * remote.c (remote_stop): Add 'self' argument.
9898         * remote-sim.c (gdbsim_stop): Add 'self' argument.
9899         (gdbsim_cntrl_c): Update.
9900         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9901         * procfs.c (procfs_stop): Add 'self' argument.
9902         * nto-procfs.c (procfs_stop): Add 'self' argument.
9903         * monitor.c (monitor_stop): Add 'self' argument.
9904         (monitor_open): Update.
9905         * linux-nat.c (linux_nat_stop): Add argument.
9906         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9907         * gnu-nat.c (gnu_stop): Add 'self' argument.
9908         * darwin-nat.c (darwin_stop): Add 'self' argument.
9909
9910 2014-02-19  Tom Tromey  <tromey@redhat.com>
9911
9912         * target.h (struct target_ops) <to_thread_name>: Add argument.
9913         * target.c (target_thread_name): Add argument.
9914         (update_current_target): Update.
9915         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9916
9917 2014-02-19  Tom Tromey  <tromey@redhat.com>
9918
9919         * target.h (struct target_ops) <to_extra_thread_info>: Add
9920         argument.
9921         (target_extra_thread_info): Add argument.
9922         * target.c (update_current_target): Update.
9923         * remote.c (remote_threads_extra_info): Add 'self' argument.
9924         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9925         argument.
9926         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9927         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9928         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9929         argument.
9930         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9931         argument.
9932         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9933         argument.
9934         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9935         argument.
9936
9937 2014-02-19  Tom Tromey  <tromey@redhat.com>
9938
9939         * target.h (struct target_ops) <to_program_signals>: Add argument.
9940         * target.c (target_program_signals): Add argument.
9941         * remote.c (remote_program_signals): Add 'self' argument.
9942
9943 2014-02-19  Tom Tromey  <tromey@redhat.com>
9944
9945         * target.h (struct target_ops) <to_pass_signals>: Add argument.
9946         * target.c (target_pass_signals): Add argument.
9947         * remote.c (remote_pass_signals): Add 'self' argument.
9948         (remote_start_remote): Update.
9949         * procfs.c (procfs_pass_signals): Add 'self' argument.
9950         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9951         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9952         (linux_nat_create_inferior, linux_nat_attach): Update.
9953
9954 2014-02-19  Tom Tromey  <tromey@redhat.com>
9955
9956         * windows-nat.c (windows_can_run): Add 'self' argument.
9957         * target.h (struct target_ops) <to_can_run>: Add argument.
9958         (target_can_run): Add argument.
9959         * target.c (debug_to_can_run): Add argument.
9960         (update_current_target): Update.
9961         * nto-procfs.c (procfs_can_run): Add 'self' argument.
9962         * inf-child.c (inf_child_can_run): Add 'self' argument.
9963         * go32-nat.c (go32_can_run): Add 'self' argument.
9964
9965 2014-02-19  Tom Tromey  <tromey@redhat.com>
9966
9967         * target.h (struct target_ops) <to_has_exited>: Add argument.
9968         (target_has_exited): Add argument.
9969         * target.c (debug_to_has_exited): Add argument.
9970         (update_current_target): Update.
9971
9972 2014-02-19  Tom Tromey  <tromey@redhat.com>
9973
9974         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9975         argument.
9976         (target_set_syscall_catchpoint): Add argument.
9977         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9978         argument.
9979         * target.c (update_current_target): Update.
9980
9981 2014-02-19  Tom Tromey  <tromey@redhat.com>
9982
9983         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9984         argument.
9985         (target_remove_exec_catchpoint): Add argument.
9986         * target.c (debug_to_remove_exec_catchpoint): Add argument.
9987         (update_current_target): Update.
9988         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9989         argument.
9990
9991 2014-02-19  Tom Tromey  <tromey@redhat.com>
9992
9993         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9994         argument.
9995         (target_insert_exec_catchpoint): Add argument.
9996         * target.c (debug_to_insert_exec_catchpoint): Add argument.
9997         (update_current_target): Update.
9998         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9999         argument.
10000
10001 2014-02-19  Tom Tromey  <tromey@redhat.com>
10002
10003         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10004         argument.
10005         (target_remove_vfork_catchpoint): Add argument.
10006         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10007         (update_current_target): Update.
10008         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10009         argument.
10010
10011 2014-02-19  Tom Tromey  <tromey@redhat.com>
10012
10013         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10014         argument.
10015         (target_insert_vfork_catchpoint): Add argument.
10016         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10017         (update_current_target): Update.
10018         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10019         argument.
10020
10021 2014-02-19  Tom Tromey  <tromey@redhat.com>
10022
10023         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10024         argument.
10025         (target_remove_fork_catchpoint): Add argument.
10026         * target.c (debug_to_remove_fork_catchpoint): Add argument.
10027         (update_current_target): Update.
10028         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10029         argument.
10030
10031 2014-02-19  Tom Tromey  <tromey@redhat.com>
10032
10033         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10034         argument.
10035         (target_insert_fork_catchpoint): Add argument.
10036         * target.c (debug_to_insert_fork_catchpoint): Add argument.
10037         (update_current_target): Update.
10038         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10039         argument.
10040
10041 2014-02-19  Tom Tromey  <tromey@redhat.com>
10042
10043         * target.h (struct target_ops) <to_post_startup_inferior>: Add
10044         argument.
10045         (target_post_startup_inferior): Add argument.
10046         * target.c (debug_to_post_startup_inferior): Add argument.
10047         (update_current_target): Update.
10048         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10049         argument.
10050         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10051         argument.
10052         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10053         argument.
10054         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10055         argument.
10056         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10057         'self' argument.
10058         (super_post_startup_inferior): Likewise.
10059         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10060         'self' argument.
10061         (super_post_startup_inferior): Likewise.
10062         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10063         Add 'self' argument.
10064         (super_post_startup_inferior): Likewise.
10065
10066 2014-02-19  Tom Tromey  <tromey@redhat.com>
10067
10068         * target.h (struct target_ops) <to_load>: Add argument.
10069         * target.c (target_load): Add argument.
10070         (debug_to_load): Add argument.
10071         (update_current_target): Update.
10072         * remote.c (remote_load): Add 'self' argument.
10073         * remote-sim.c (gdbsim_load): Add 'self' argument.
10074         * remote-mips.c (mips_load): Add 'self' argument.
10075         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10076         * monitor.c (monitor_load): Add 'self' argument.
10077         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10078
10079 2014-02-19  Tom Tromey  <tromey@redhat.com>
10080
10081         * target.h (struct target_ops) <to_terminal_info>: Add argument.
10082         (target_terminal_info): Add argument.
10083         * target.c (debug_to_terminal_info): Add argument.
10084         (default_terminal_info): Likewise.
10085         * inflow.c (child_terminal_info): Add 'self' argument.
10086         * inferior.h (child_terminal_info): Add 'self' argument.
10087         * go32-nat.c (go32_terminal_info): Add 'self' argument.
10088
10089 2014-02-19  Tom Tromey  <tromey@redhat.com>
10090
10091         * target.h (struct target_ops) <to_terminal_save_ours>: Add
10092         argument.
10093         (target_terminal_save_ours): Add argument.
10094         * target.c (debug_to_terminal_save_ours): Add argument.
10095         (update_current_target): Update.
10096         * inflow.c (terminal_save_ours): Add 'self' argument.
10097         * inferior.h (terminal_save_ours): Add 'self' argument.
10098
10099 2014-02-19  Tom Tromey  <tromey@redhat.com>
10100
10101         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10102         (target_terminal_ours): Add argument.
10103         * target.c (debug_to_terminal_ours): Add argument.
10104         (update_current_target): Update.
10105         * remote.c (remote_terminal_ours): Add 'self' argument.
10106         (remote_close): Update.
10107         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10108         * inflow.c (terminal_ours): Add 'self' argument.
10109         * inferior.h (terminal_ours): Add 'self' argument.
10110         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10111
10112 2014-02-19  Pedro Alves  <palves@redhat.com>
10113             Tom Tromey  <tromey@redhat.com>
10114
10115         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10116         argument.
10117         (target_terminal_ours_for_output): Add argument.
10118         * target.c (debug_to_terminal_ours_for_output): Add argument.
10119         (update_current_target): Update.
10120         * inflow.c (terminal_ours_for_output): Add 'self' argument.
10121         * inferior.h (terminal_ours_for_output): Add 'self' argument.
10122         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10123
10124 2014-02-19  Tom Tromey  <tromey@redhat.com>
10125
10126         * target.h (struct target_ops) <to_terminal_inferior>: Add
10127         argument.
10128         * target.c (target_terminal_inferior): Add argument.
10129         (update_current_target): Update.
10130         * remote.c (remote_terminal_inferior): Add 'self' argument.
10131         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10132         * inflow.c (terminal_inferior): Add 'self' argument.
10133         * inferior.h (terminal_inferior): Add 'self' argument.
10134         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10135         (go32_terminal_inferior): Add 'self' argument.
10136
10137 2014-02-19  Tom Tromey  <tromey@redhat.com>
10138
10139         * target.h (struct target_ops) <to_terminal_init>: Add argument.
10140         (target_terminal_init): Add argument.
10141         * target.c (debug_to_terminal_init): Add argument.
10142         (update_current_target): Update.
10143         * inflow.c (terminal_init_inferior): Add 'self' argument.
10144         * inferior.h (terminal_init_inferior): Add 'self' argument.
10145         * go32-nat.c (go32_terminal_init): Add 'self' argument.
10146         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10147
10148 2014-02-19  Tom Tromey  <tromey@redhat.com>
10149
10150         * target.h (struct target_ops)
10151         <to_can_accel_watchpoint_condition>: Add argument.
10152         (target_can_accel_watchpoint_condition): Add argument.
10153         * target.c (debug_to_can_accel_watchpoint_condition): Add
10154         argument.
10155         (update_current_target): Update.
10156         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10157         'self' argument.
10158
10159 2014-02-19  Tom Tromey  <tromey@redhat.com>
10160
10161         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10162         Add argument.
10163         (target_region_ok_for_hw_watchpoint): Add argument.
10164         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10165         (default_region_ok_for_hw_watchpoint): Add argument.
10166         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10167         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10168         argument.
10169         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10170         argument.
10171         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10172         argument.
10173         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10174         'self' argument.
10175         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10176         'self' argument.
10177         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10178         'self' argument.
10179         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10180         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10181         'self' argument.
10182         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10183         Add 'self' argument.
10184
10185 2014-02-19  Tom Tromey  <tromey@redhat.com>
10186
10187         * target.h (struct target_ops) <to_insert_watchpoint>: Add
10188         argument.
10189         (target_insert_watchpoint): Add argument.
10190         * target.c (debug_to_insert_watchpoint): Add argument.
10191         (update_current_target): Update.
10192         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10193         * remote.c (remote_insert_watchpoint): Add 'self' argument.
10194         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10195         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10196         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10197         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10198         argument.
10199         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10200         (procfs_insert_hw_watchpoint): Add 'self' argument.
10201         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10202         argument.
10203         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10204         argument.
10205         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10206         argument.
10207         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10208         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10209         argument.
10210         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10211         'self' argument.
10212
10213 2014-02-19  Tom Tromey  <tromey@redhat.com>
10214
10215         * target.h (struct target_ops) <to_remove_watchpoint>: Add
10216         argument.
10217         (target_remove_watchpoint): Add argument.
10218         * target.c (debug_to_remove_watchpoint): Add argument.
10219         (update_current_target): Update.
10220         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10221         * remote.c (remote_remove_watchpoint): Add 'self' argument.
10222         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10223         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10224         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10225         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10226         argument.
10227         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10228         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10229         argument.
10230         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10231         argument.
10232         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10233         argument.
10234         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10235         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10236         argument.
10237         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10238         'self' argument.
10239
10240 2014-02-19  Tom Tromey  <tromey@redhat.com>
10241
10242         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10243         argument.
10244         (target_remove_hw_breakpoint): Add argument.
10245         * target.c (debug_to_remove_hw_breakpoint): Add argument.
10246         (update_current_target): Update.
10247         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10248         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10249         argument.
10250         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10251         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10252         argument.
10253         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10254         'self' argument.
10255
10256 2014-02-19  Tom Tromey  <tromey@redhat.com>
10257
10258         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10259         argument.
10260         (target_insert_hw_breakpoint): Add argument.
10261         * target.c (debug_to_insert_hw_breakpoint): Add argument.
10262         (update_current_target): Update.
10263         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10264         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10265         argument.
10266         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10267         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10268         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10269         argument.
10270         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10271         'self' argument.
10272
10273 2014-02-19  Tom Tromey  <tromey@redhat.com>
10274
10275         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10276         argument.
10277         (target_can_use_hardware_watchpoint): Add argument.
10278         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10279         (update_current_target): Update.
10280         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10281         argument.
10282         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10283         argument.
10284         * remote.c (remote_check_watch_resources): Add 'self' argument.
10285         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10286         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10287         argument.
10288         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10289         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10290         argument.
10291         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10292         argument.
10293         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10294         argument.
10295         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10296         argument.
10297         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10298         argument.
10299         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10300         argument.
10301         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10302         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10303         argument.
10304         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10305         'self' argument.
10306
10307 2014-02-19  Tom Tromey  <tromey@redhat.com>
10308
10309         * target.h (struct target_ops) <to_post_attach>: Add argument.
10310         (target_post_attach): Add argument.
10311         * target.c (debug_to_post_attach): Add argument.
10312         (update_current_target): Update.
10313         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10314         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10315         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10316         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10317         * inf-child.c (inf_child_post_attach): Add 'self' argument.
10318
10319 2014-02-19  Tom Tromey  <tromey@redhat.com>
10320
10321         * windows-nat.c (windows_close): Add 'self' argument.
10322         * tracepoint.c (tfile_close): Add 'self' argument.
10323         * target.h (struct target_ops) <to_close>: Add argument.
10324         * target.c (target_close): Add argument.
10325         (update_current_target): Update.
10326         * remote.c (remote_close): Add 'self' argument.
10327         * remote-sim.c (gdbsim_close): Add 'self' argument.
10328         * remote-mips.c (mips_close): Add 'self' argument.
10329         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10330         * record-full.c (record_full_close): Add 'self' argument.
10331         * record-btrace.c (record_btrace_close): Add 'self' argument.
10332         * monitor.h (monitor_close): Add 'self' argument.
10333         * monitor.c (monitor_close): Add 'self' argument.
10334         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10335         * linux-nat.c (linux_nat_close): Add argument.
10336         * go32-nat.c (go32_close): Add 'self' argument.
10337         * exec.c (exec_close_1): Add 'self' argument.
10338         * ctf.c (ctf_close): Add 'self' argument.
10339         * corelow.c (core_close): Add 'self' argument.
10340         (core_close_cleanup): Update.
10341         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10342         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10343
10344 2014-02-19  Tom Tromey  <tromey@redhat.com>
10345
10346         * remote.c (remote_load): New function.
10347         (init_remote_ops): Use it.
10348
10349 2014-02-19  Tom Tromey  <tromey@redhat.com>
10350
10351         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10352         argument.
10353         * common/linux-btrace.h (linux_supports_btrace): Update.
10354         * remote.c (remote_supports_btrace): Add "self" argument.
10355         * target-delegates.c: Rebuild.
10356         * target.c (target_supports_btrace): Remove.
10357         * target.h (struct target_ops) <to_supports_btrace>: Add
10358         target_ops argument.
10359         (target_supports_btrace): New define.
10360
10361 2014-02-19  Tom Tromey  <tromey@redhat.com>
10362
10363         * record-full.c (record_full_beneath_to_resume_ops)
10364         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10365         (record_full_beneath_to_wait)
10366         (record_full_beneath_to_store_registers_ops)
10367         (record_full_beneath_to_store_registers)
10368         (record_full_beneath_to_xfer_partial_ops)
10369         (record_full_beneath_to_xfer_partial)
10370         (record_full_beneath_to_insert_breakpoint_ops)
10371         (record_full_beneath_to_insert_breakpoint)
10372         (record_full_beneath_to_remove_breakpoint_ops)
10373         (record_full_beneath_to_remove_breakpoint)
10374         (record_full_beneath_to_stopped_by_watchpoint)
10375         (record_full_beneath_to_stopped_data_address)
10376         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10377         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10378         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10379         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10380         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10381         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10382         (tmp_to_stopped_data_address, tmp_to_async): Remove.
10383         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
10384         (record_full_resume, record_full_wait_1)
10385         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10386         (record_full_store_registers, record_full_xfer_partial)
10387         (record_full_insert_breakpoint, record_full_remove_breakpoint)
10388         (record_full_async, record_full_core_xfer_partial): Use target
10389         delegation.
10390         * target-delegates.c: Rebuild.
10391         * target.c (current_xfer_partial): Remove.
10392         (update_current_target): Do not INHERIT or de_fault
10393         to_insert_breakpoint, to_remove_breakpoint,
10394         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10395         to_is_async_p, to_async.  Do not set to_xfer_partial field.
10396         (default_xfer_partial): Simplify.
10397         (current_xfer_partial): Remove.
10398         (target_wait, target_resume): Simplify.
10399         (find_default_can_async_p, find_default_is_async_p): Update.
10400         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10401         to_xfer_partial, to_stopped_by_watchpoint,
10402         to_stopped_data_address.
10403         (target_store_registers): Simplify.
10404         (forward_target_remove_breakpoint)
10405         (forward_target_insert_breakpoint): Remove.
10406         (target_remove_breakpoint, target_insert_breakpoint)
10407         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10408         * target.h (struct target_ops) <to_resume, to_wait,
10409         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10410         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10411         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10412         markup.
10413         (forward_target_remove_breakpoint)
10414         (forward_target_insert_breakpoint): Remove.
10415         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10416         directly.
10417         (record_btrace_insert_breakpoint): Delegate directly.
10418
10419 2014-02-19  Tom Tromey  <tromey@redhat.com>
10420
10421         PR build/7701:
10422         * target-delegates.c: New file.
10423         * target.c: Include target-delegates.c.
10424         (init_dummy_target): Call install_dummy_methods.
10425         (complete_target_initialization): Call install_delegators.
10426         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10427         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10428         * make-target-delegates: New file.
10429
10430 2014-02-19  Tom Tromey  <tromey@redhat.com>
10431
10432         * record.c (find_record_target): Use find_target_at.
10433         * target.c (find_target_at): New function.
10434         * target.h (find_target_at): Declare.
10435
10436 2014-02-19  Tom Tromey  <tromey@redhat.com>
10437
10438         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10439         Add 'ops' argument.
10440         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10441         'ops' argument.
10442         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10443         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10444         'ops' argument.
10445         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10446         argument.
10447         * linux-nat.c (save_sigtrap): Update.
10448         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10449         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10450         (linux_nat_close): Update.
10451         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10452         argument.
10453         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10454         argument.
10455         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10456         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10457         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10458         (tmp_to_async): Add 'ops' argument.
10459         (record_full_stopped_by_watchpoint, record_full_async)
10460         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10461         argument.
10462         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10463         (m32r_stopped_by_watchpoint): Add 'ops' argument.
10464         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10465         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10466         (remote_is_async_p, remote_async): Add 'ops' argument.
10467         (remote_stopped_data_address): Update.
10468         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10469         * target.c (update_current_target)
10470         (find_default_can_async_p, find_default_is_async_p): Update.
10471         (init_dummy_target): Update.
10472         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10473         * target.h (struct target_ops) <to_stopped_by_watchpoint,
10474         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10475         (target_can_async_p, target_is_async_p, target_async)
10476         (target_stopped_by_watchpoint): Update.
10477
10478 2014-02-19  Yao Qi  <yao@codesourcery.com>
10479
10480         PR gdb/16220
10481         * gdbarch.sh: Remove startup_gdbarch.
10482         * gdbarch.c: Regenerated.
10483         * gdbarch.h: Likewise.
10484
10485 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
10486
10487         * rl78-tdep.c (rl78_g10_register_name): New function.
10488         (rl78_return_value): Add g10 support.
10489         (rl78_gdbarch_init): Register rl78_g10_register_name for the
10490         g10.
10491
10492 2014-02-17  Doug Evans  <xdje42@gmail.com>
10493
10494         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10495         (SUBDIR_GUILE_SRCS): Ditto.
10496         (scm-gsmob.o): Ditto.
10497
10498 2014-02-17  Yao Qi  <yao@codesourcery.com>
10499
10500         * gnu-nat.c (ILL_RPC): Declare defined function.
10501
10502 2014-02-17  Yao Qi  <yao@codesourcery.com>
10503
10504         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10505         mach_msg_type_number_t.
10506         (gnu_write_inferior): Likewise.
10507
10508 2014-02-17  Yao Qi  <yao@codesourcery.com>
10509
10510         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10511         in format string.
10512         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10513         (inf_validate_procs, inf_signal): Likewise.
10514         (S_exception_raise_request): Likewise.
10515         (do_mach_notify_dead_name): Likewise.
10516         (steal_exc_port): Likewise.
10517         (gnu_read_inferior): Change 'copy_count''s type to
10518         mach_msg_type_number_t.
10519         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
10520         format string.
10521
10522 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
10523
10524         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10525         flag.  Adjust all users; in particular...
10526         (gnu_wait): ..., don't decrement its value in here...
10527         (gnu_create_inferior): ..., and instead set the flag in here,
10528         around the startup_inferior call, and call that one with
10529         START_INFERIOR_TRAPS_EXPECTED.
10530
10531         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10532         (ILL_RPC): ... new macro.
10533         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10534         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10535         (do_mach_notify_send_once, S_proc_setmsgport_reply)
10536         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10537         functions with ILL_RPC macro.
10538         (S_proc_pid2task_reply, S_proc_task2pid_reply)
10539         (S_proc_task2proc_reply, S_proc_proc2task_reply)
10540         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10541         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10542         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10543         (S_proc_getlogin_reply, S_proc_getsid_reply)
10544         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10545         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10546         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10547         (S_proc_getnports_reply, S_proc_is_important_reply)
10548         (S_proc_get_code_reply): New stub functions, generated with
10549         ILL_RPC macro.
10550
10551         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10552         collected the type check structures.
10553
10554         * reply_mig_hack.awk: Don't expect to see the auto keyword.
10555
10556 2014-02-14  Doug Evans  <dje@google.com>
10557
10558         * target.c (target_write_partial): Fix result type.
10559
10560 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
10561
10562         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10563         the proper offsets to access fpregset_t.
10564
10565 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
10566
10567         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10568         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10569         * h8300-tdep.c (setmachinelist): Remove global.
10570         * hppa-tdep.c (hppa_sigtramp): Remove global.
10571         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10572         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10573         * ravenscar-thread.c (update_target_observer): Remove global.
10574         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10575
10576 2014-02-12  Tom Tromey  <tromey@redhat.com>
10577
10578         * common/rsp-low.c: Update comments.
10579         * common/rsp-low.h: Update comments.
10580
10581 2014-02-12  Tom Tromey  <tromey@redhat.com>
10582
10583         * common/rsp-low.c (convert_ascii_to_int): Remove.
10584         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10585
10586 2014-02-12  Tom Tromey  <tromey@redhat.com>
10587
10588         * common/rsp-low.h (unhexify): Don't declare.
10589         * common/rsp-low.c (unhexify): Remove.
10590
10591 2014-02-12  Tom Tromey  <tromey@redhat.com>
10592
10593         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10594         * common/rsp-low.c (convert_int_to_ascii): Remove.
10595
10596 2014-02-12  Tom Tromey  <tromey@redhat.com>
10597
10598         * common/rsp-low.h (hexify): Don't declare.
10599         * common/rsp-low.c (hexify): Remove.
10600
10601 2014-02-12  Tom Tromey  <tromey@redhat.com>
10602
10603         * common/rsp-low.c (hexify): Never take strlen of argument.
10604
10605 2014-02-12  Tom Tromey  <tromey@redhat.com>
10606
10607         * common/rsp-low.c (bin2hex): Never take strlen of argument.
10608         * remote.c (extended_remote_run, remote_rcmd)
10609         (remote_download_trace_state_variable, remote_save_trace_data)
10610         (remote_set_trace_notes): Update.
10611         * tracepoint.c (encode_source_string, tfile_write_status)
10612         (tfile_write_uploaded_tsv): Update.
10613
10614 2014-02-12  Tom Tromey  <tromey@redhat.com>
10615
10616         * tracepoint.c: Include rsp-low.h.
10617         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10618         * remote.c: Include rsp-low.h.
10619         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10620         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10621         (remote_unescape_input): Move to common/rsp-low.c.
10622         * common/rsp-low.h: New file.
10623         * common/rsp-low.c: New file.
10624         * Makefile.in (SFILES): Add common/rsp-low.c.
10625         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10626         (COMMON_OBS): Add rsp-low.o.
10627         (rsp-low.o): New target.
10628
10629 2014-02-12  Tom Tromey  <tromey@redhat.com>
10630
10631         * utils.h: Include print-utils.h.
10632         (host_address_to_string, plongest, pulongest, phex, phex_nz)
10633         (int_string, core_addr_to_string, core_addr_to_string_nz)
10634         (hex_string, hex_string_custom): Don't declare.
10635         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10636         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10637         (hex_string_custom, int_string, core_addr_to_string)
10638         (core_addr_to_string_nz, host_address_to_string): Move to
10639         common/print-utils.c.
10640         * common/print-utils.h: New file.
10641         * common/print-utils.c: New file
10642         * Makefile.in (SFILES): Add common/print-utils.c.
10643         (HFILES_NO_SRCDIR): Add common/print-utils.h.
10644         (COMMON_OBS): Add print-utils.o.
10645         (print-utils.o): New target.
10646
10647 2014-02-12  Tom Tromey  <tromey@redhat.com>
10648
10649         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10650
10651 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
10652
10653         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10654
10655 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
10656
10657         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10658         if a PT_IO ptrace request returns sucessfully but indicates that 0
10659         bytes were transferred.
10660
10661 2014-02-12  Pedro Alves  <palves@redhat.com>
10662             Kevin Buettner <kevinb@redhat.com>
10663
10664         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10665         TYPE_INSTANCE_FLAG_CODE_SPACE.
10666
10667 2014-02-12  Pedro Alves  <palves@redhat.com>
10668
10669         * h8300-tdep.c (pseudo_from_raw_register)
10670         (raw_from_pseudo_register): New functions.
10671         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10672         them.
10673
10674 2014-02-12  Pedro Alves  <palves@redhat.com>
10675
10676         * h8300-tdep.c (h8300_register_sim_regno): New function.
10677         (h8300_gdbarch_init): Install h8300_register_sim_regno as
10678         gdbarch_register_sim_regno hook.
10679
10680 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
10681
10682         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10683
10684 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
10685
10686         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10687
10688 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
10689
10690         * obsd-tdep.h (obsd_init_abi): New prototype.
10691         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10692         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10693         (obsd_init_abi): New functions.
10694         * i386obsd-tdep.c: Include "obsd-tdep.h".
10695         (i386obsd_init_abi): Call obsd_init_abi.
10696         * amd64obsd-tdep.c: Include "obsd-tdep.h".
10697         (amd64obsd_init_abi): Call obsd_init_abi.
10698         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10699         obsd-tdep.c to gdb_target_obs.
10700
10701 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
10702
10703         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10704         double float arguments to 16-byte in the argument slots.
10705
10706 2014-02-11  Doug Evans  <xdje42@gmail.com>
10707
10708         * configure.ac: Don't crash if pkg-config is not found and guile
10709         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
10710         in guile checks.
10711         * configure: Regenerate.
10712
10713 2014-02-11  Yao Qi  <yao@codesourcery.com>
10714
10715         * aix-thread.c (aix_thread_xfer_partial): Update comments.
10716         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10717         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10718         * gnu-nat.c (gnu_xfer_memory): Likewise.
10719         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
10720         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10721         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10722         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10723
10724 2014-02-11  Yao Qi  <yao@codesourcery.com>
10725
10726         * target.h (enum target_xfer_error): Rename to ...
10727         (enum target_xfer_status): ... it.  New.  All users updated.
10728         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10729         New.
10730         (TARGET_XFER_STATUS_ERROR_P): New macro.
10731         (target_xfer_error_to_string): Remove declaration.
10732         (target_xfer_status_to_string): Declare.
10733         (target_xfer_partial_ftype): Adjust it.
10734         (struct target_ops) <to_xfer_partial>: Return
10735         target_xfer_status.  Add argument xfered_len.  Update
10736         comments.
10737         * target.c (target_xfer_error_to_string): Rename to ...
10738         (target_xfer_status_to_string): ... it.  New.  All callers
10739         updated.
10740         (target_read_live_memory): Likewise.  Call target_xfer_partial
10741         instead of target_read.
10742         (memory_xfer_live_readonly_partial): Return
10743         target_xfer_status.  Add argument xfered_len.
10744         (raw_memory_xfer_partial): Likewise.
10745         (memory_xfer_partial_1): Likewise.
10746         (memory_xfer_partial): Likewise.
10747         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
10748         properly.  Update debug message.
10749         (default_xfer_partial, current_xfer_partial): Likewise.
10750         (target_write_partial): Likewise.
10751         (target_read_partial): Likewise.  All callers updated.
10752         (read_whatever_is_readable): Likewise.
10753         (target_write_with_progress): Likewise.
10754         (target_read_alloc_1): Likewise.
10755
10756         * aix-thread.c (aix_thread_xfer_partial): Likewise.
10757         * auxv.c (procfs_xfer_auxv): Likewise.
10758         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10759         * bfd-target.c (target_bfd_xfer_partial): Likewise.
10760         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10761         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10762         * corefile.c (read_memory): Adjust.
10763         * corelow.c (core_xfer_partial): Likewise.
10764         * ctf.c (ctf_xfer_partial): Likewise.
10765         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
10766         updated.
10767         (darwin_xfer_partial): Likewise.
10768         * exec.c (section_table_xfer_memory_partial): Likewise.  All
10769         callers updated.
10770         (exec_xfer_partial): Likewise.
10771         * exec.h (section_table_xfer_memory_partial): Update
10772         declaration.
10773         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
10774         negative.
10775         (gnu_xfer_partial): Likewise.
10776         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10777         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10778         (ia64_hpux_xfer_solib_got): Likewise.
10779         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
10780         type of 'partial_len' to ULONGEST.
10781         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10782         * linux-nat.c (linux_xfer_siginfo ): Likewise.
10783         (linux_nat_xfer_partial): Likewise.
10784         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10785         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10786         * monitor.c (monitor_xfer_memory): Likewise.
10787         (monitor_xfer_partial): Likewise.
10788         * procfs.c (procfs_xfer_partial): Likewise.
10789         * record-btrace.c (record_btrace_xfer_partial): Likewise.
10790         * record-full.c (record_full_xfer_partial): Likewise.
10791         (record_full_core_xfer_partial): Likewise.
10792         * remote-sim.c (gdbsim_xfer_memory): Likewise.
10793         (gdbsim_xfer_partial): Likewise.
10794         * remote.c (remote_write_bytes_aux): Likewise.  All callers
10795         updated.
10796         (remote_write_bytes, remote_read_bytes): Likewise.  All
10797         callers updated.
10798         (remote_flash_erase): Likewise.  All callers updated.
10799         (remote_write_qxfer): Likewise.  All callers updated.
10800         (remote_read_qxfer): Likewise.  All callers updated.
10801         (remote_xfer_partial): Likewise.
10802         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10803         (rs6000_xfer_shared_libraries): Likewise.
10804         * sol-thread.c (sol_thread_xfer_partial): Likewise.
10805         (sol_thread_xfer_partial): Likewise.
10806         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10807         (sparc_xfer_partial): Likewise.
10808         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
10809         updated.
10810         (spu_xfer_partial): Likewise.
10811         * spu-multiarch.c (spu_xfer_partial): Likewise.
10812         * tracepoint.c (tfile_xfer_partial): Likewise.
10813         * windows-nat.c (windows_xfer_memory): Likewise.
10814         (windows_xfer_shared_libraries): Likewise.
10815         (windows_xfer_partial): Likewise.
10816         * valprint.c: Replace 'target_xfer_error' with
10817         'target_xfer_status' in comments.
10818
10819 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
10820
10821         Checked in by Joel Brobecker <brobecker@adacore.com>.
10822         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10823
10824 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
10825
10826         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10827         function parameters.
10828
10829 2014-02-10  Will Newton  <will.newton@linaro.org>
10830
10831         * elfread.c (elf_rel_plt_read): Look for a .got section if
10832         looking up .got.plt fails.
10833         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10834         on address passed to elf_gnu_ifunc_record_cache.
10835         (elf_gnu_ifunc_resolve_addr): Likewise.
10836         (elf_gnu_ifunc_resolver_return_stop): Likewise.
10837
10838 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
10839
10840         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10841         (X_RETTURN): New macro.
10842         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10843
10844         * sparc64-tdep.c (sparc64_init_abi): Hook
10845         sparc_in_function_epilogue_p.
10846
10847 2014-02-10  Gary Benson  <gbenson@redhat.com>
10848
10849         * symfile-debug.c (debug_qf_expand_symtabs_matching):
10850         Rename name_matcher to symbol_matcher.
10851
10852 2014-02-10  Gary Benson  <gbenson@redhat.com>
10853
10854         * symfile-debug.c (debug_qf_expand_symtabs_matching):
10855         Use expand_symtabs_file_matcher_ftype and
10856         expand_symtabs_symbol_matcher_ftype.
10857
10858 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
10859
10860         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10861         (struct ada_symbol_cache): New.
10862         (ada_free_symbol_cache): Forward declare.
10863         (struct ada_pspace_data): New.
10864         (ada_pspace_data_handle): New static global.
10865         (get_ada_pspace_data, ada_pspace_data_cleanup)
10866         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10867         (cache_space, cache): Delete, now folded inside struct
10868         ada_pspace_data.
10869         (ada_get_symbol_cache): New function.
10870         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10871         implementation.
10872         (_initialize_ada_language): Remove initialization of cache_space.
10873         Move call to observer_attach_inferior_exit up, grouping it
10874         with the other observer registrations inside this function.
10875         Rename command to be more general.  Add call to
10876         register_program_space_data_with_cleanup.
10877
10878 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
10879
10880         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10881         ada_new_objfile_observer.
10882         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10883         (_initialize_tasks): Update uses of ada_new_objfile_observer
10884         and ada_tasks_normal_stop_observer.
10885
10886 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
10887
10888         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10889         returned by the 'Length attribute to integer.
10890
10891 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
10892
10893         * ada-lang.c (_initialize_ada_language): Initialize
10894         cache_space obstack.
10895
10896 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
10897
10898         * ada-lang.c (HASH_SIZE): New macro.
10899         (struct cache_entry): New type.
10900         (cache_space, cache): New static globals.
10901         (ada_clear_symbol_cache, find_entry): New functions.
10902         (lookup_cached_symbol, cache_symbol): Implement.
10903         (ada_new_objfile_observer, ada_free_objfile_observer): New.
10904         (_initialize_ada_language): Attach ada_new_objfile_observer
10905         and ada_free_objfile_observer.
10906
10907 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
10908
10909         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10910         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10911         struct block * parameter.
10912         (ada_lookup_symbol_list_worker): Constify local variable "block".
10913         Remove cast which is no longer necessary.
10914
10915 2014-02-10  Doug Evans  <xdje42@gmail.com>
10916
10917         Add Guile as an extension language.
10918         * NEWS: Mention Guile scripting.
10919         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10920         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10921         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10922         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10923         (CLIBS): Add GUILE_LIBS.
10924         (install-guile): New rule.
10925         (guile.o): New rule.
10926         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10927         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10928         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10929         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10930         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10931         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10932         (scm-type.o, scm-utils.o, scm-value.o): New rules.
10933         * configure.ac: New option --with-guile.
10934         * configure: Regenerate.
10935         * config.in: Regenerate.
10936         * auto-load.c: Remove #include "python/python.h".  Add #include
10937         "gdb/section-scripts.h".
10938         (source_section_scripts): Handle Guile scripts.
10939         (_initialize_auto_load): Add name of Guile objfile script to
10940         scripts-directory help text.
10941         * breakpoint.c (condition_command): Tweak comment to include Scheme.
10942         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10943         (struct breakpoint): New member scm_bp_object.
10944         * defs.h (enum command_control_type): New value guile_control.
10945         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
10946         "extension.h".
10947         (show_user): Update comment.
10948         (_initialize_cli_cmds): Update help text for "show user".  Update help
10949         text for max-user-call-depth.
10950         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
10951         "extension.h".
10952         (multi_line_command_p): Add guile_control.
10953         (print_command_lines): Handle guile_control.
10954         (execute_control_command, recurse_read_control_structure): Ditto.
10955         (process_next_line): Recognize "guile" commands.
10956         * disasm.c (gdb_disassemble_info): Make non-static.
10957         * disasm.h: #include "dis-asm.h".
10958         (struct gdbarch): Add forward decl.
10959         (gdb_disassemble_info): Declare.
10960         * extension.c: #include "guile/guile.h".
10961         (extension_languages): Add guile.
10962         (get_ext_lang_defn): Handle EXT_LANG_GDB.
10963         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10964         * gdbtypes.c (get_unsigned_type_max): New function.
10965         (get_signed_type_minmax): New function.
10966         * gdbtypes.h (get_unsigned_type_max): Declare.
10967         (get_signed_type_minmax): Declare.
10968         * guile/README: New file.
10969         * guile/guile-internal.h: New file.
10970         * guile/guile.c: New file.
10971         * guile/guile.h: New file.
10972         * guile/scm-arch.c: New file.
10973         * guile/scm-auto-load.c: New file.
10974         * guile/scm-block.c: New file.
10975         * guile/scm-breakpoint.c: New file.
10976         * guile/scm-disasm.c: New file.
10977         * guile/scm-exception.c: New file.
10978         * guile/scm-frame.c: New file.
10979         * guile/scm-gsmob.c: New file.
10980         * guile/scm-iterator.c: New file.
10981         * guile/scm-lazy-string.c: New file.
10982         * guile/scm-math.c: New file.
10983         * guile/scm-objfile.c: New file.
10984         * guile/scm-ports.c: New file.
10985         * guile/scm-pretty-print.c: New file.
10986         * guile/scm-safe-call.c: New file.
10987         * guile/scm-string.c: New file.
10988         * guile/scm-symbol.c: New file.
10989         * guile/scm-symtab.c: New file.
10990         * guile/scm-type.c: New file.
10991         * guile/scm-utils.c: New file.
10992         * guile/scm-value.c: New file.
10993         * guile/lib/gdb.scm: New file.
10994         * guile/lib/gdb/boot.scm: New file.
10995         * guile/lib/gdb/experimental.scm: New file.
10996         * guile/lib/gdb/init.scm: New file.
10997         * guile/lib/gdb/iterator.scm: New file.
10998         * guile/lib/gdb/printing.scm: New file.
10999         * guile/lib/gdb/types.scm: New file.
11000         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11001         (VPATH): Add $(GUILE_SRCDIR).
11002         (GUILE_DIR): New variable.
11003         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11004         (all): Add stamp-guile dependency.
11005         (stamp-guile): New rule.
11006         (clean-guile, install-guile, uninstall-guile): New rules.
11007         (install-only): Add install-guile dependency.
11008         (uninstall): Add uninstall-guile dependency.
11009         (clean): Add clean-guile dependency.
11010
11011 2014-02-09  Doug Evans  <xdje42@gmail.com>
11012
11013         Revert this patch (which I approved, mea culpa).
11014
11015         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
11016
11017         * Makefile.in (all-lib): Remove.
11018         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11019
11020 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
11021
11022         Fix Python stack corruption.
11023         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11024         gdb_py_longest.
11025
11026 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
11027
11028         * Makefile.in (all-lib): Remove.
11029         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11030
11031 2014-02-07  Doug Evans  <dje@google.com>
11032
11033         * extension-priv.h (extension_language_script_ops): Add comment.
11034         (extension_language_ops): Add comment.
11035         (active_ext_lang_state): Fix typo in comment.
11036
11037 2014-02-07  Pedro Alves  <palves@redhat.com>
11038
11039         PR breakpoints/16292
11040         * infrun.c (handle_signal_stop) <signal arrives while stepping
11041         over a breakpoint>: Switch back to the stepping thread.
11042
11043 2014-02-07  Yao Qi  <yao@codesourcery.com>
11044
11045         * target.c (target_xfer_partial): Return zero if LEN is zero.
11046
11047 2014-02-07  Yao Qi  <yao@codesourcery.com>
11048
11049         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11050         (ld_so_xfer_auxv): Likewise.
11051         * bfd-target.c (target_bfd_xfer_partial): Likewise.
11052         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11053         * corelow.c (core_xfer_partial): Likewise.
11054         * ctf.c (ctf_xfer_partial): Likewise.
11055         * darwin-nat.c (darwin_read_dyld_info): Likewise.
11056         (darwin_xfer_partial): Likewise.
11057         * exec.c (exec_xfer_partial): Likewise.
11058         * gnu-nat.c (gnu_xfer_partial): Likewise.
11059         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11060         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11061         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11062         * linux-nat.c (linux_xfer_siginfo): Likewise.
11063         (linux_proc_xfer_spu): Likewise.
11064         * procfs.c (procfs_xfer_partial): Likewise.
11065         * record-full.c (record_full_xfer_partial): Likewise.
11066         (record_full_core_xfer_partial): Likewise.
11067         * remote-sim.c (gdbsim_xfer_partial): Likewise.
11068         * remote.c (remote_write_qxfer): Likewise.
11069         (remote_write_qxfer, remote_read_qxfer): Likewise.
11070         (remote_xfer_partial): Likewise.
11071         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11072         (rs6000_xfer_shared_libraries): Likewise.
11073         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11074         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11075         (spu_xfer_partial): Likewise.
11076         * target.c (memory_xfer_partial_1): Likewise.
11077         * tracepoint.c (tfile_xfer_partial): Likewise.
11078         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11079         (windows_xfer_partial): Likewise.
11080
11081 2014-02-07  Yao Qi  <yao@codesourcery.com>
11082
11083         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
11084         comments.
11085         (core_xfer_shared_libraries_aix): Likewise.
11086         * gdbarch.c, gdbarch.h: Regenerated.
11087         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11088         ULONGEST.  Change 'len_avail' type to ULONGEST.
11089         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11090         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11091         declaration.
11092         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11093
11094 2014-02-07  Yao Qi  <yao@codesourcery.com>
11095
11096         * corefile.c (memory_error): Get 'exception' from ERR and pass
11097         'exception' to throw_error.
11098
11099 2014-02-06  Doug Evans  <xdje42@gmail.com>
11100
11101         * configure.ac (libpython checking): Remove all but python.o from
11102         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
11103         * configure: Regenerate.
11104
11105         * Makefile.in (SFILES): Add extension.c.
11106         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11107         (COMMON_OBS): Add extension.o.
11108         * extension.h: New file.
11109         * extension-priv.h: New file.
11110         * extension.c: New file.
11111
11112         * python/python-internal.h: #include "extension.h".
11113         (gdbpy_auto_load_enabled): Declare.
11114         (gdbpy_apply_val_pretty_printer): Declare.
11115         (gdbpy_apply_frame_filter): Declare.
11116         (gdbpy_preserve_values): Declare.
11117         (gdbpy_breakpoint_cond_says_stop): Declare.
11118         (gdbpy_breakpoint_has_cond): Declare.
11119         (void source_python_script_for_objfile): Delete.
11120         * python/python.c: #include "extension-priv.h".
11121         Delete inclusion of "observer.h".
11122         (extension_language_python): Moved here and renamed from
11123         script_language_python in py-auto-load.c.
11124         Redefined to be of type extension_language_defn.
11125         (python_extension_script_ops): New global.
11126         (python_extension_ops): New global.
11127         (struct python_env): New member previous_active.
11128         (restore_python_env): Call restore_active_ext_lang.
11129         (ensure_python_env): Call set_active_ext_lang.
11130         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11131         New arg extlang.
11132         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11133         New arg extlang.
11134         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11135         New arg extlang.
11136         (gdbpy_eval_from_control_command): Renamed from
11137         eval_python_from_control_command, made static.  New arg extlang.
11138         (gdbpy_source_script) Renamed from source_python_script, made static.
11139         New arg extlang.
11140         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
11141         result to int.  New arg extlang.
11142         (gdbpy_source_objfile_script): Renamed from
11143         source_python_script_for_objfile, made static.  New arg extlang.
11144         (gdbpy_start_type_printers): Renamed from start_type_printers, made
11145         static.  New args extlang, extlang_printers.  Change result type to
11146         "void".
11147         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11148         static.  New arg extlang.  Rename arg printers to extlang_printers
11149         and change type to ext_lang_type_printers *.
11150         (gdbpy_free_type_printers): Renamed from free_type_printers, made
11151         static.  Replace argument arg with extlang, extlang_printers.
11152         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11153         (!HAVE_PYTHON, source_python_script): Delete.
11154         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11155         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11156         (!HAVE_PYTHON, start_type_printers): Delete.
11157         (!HAVE_PYTHON, apply_type_printers): Delete.
11158         (!HAVE_PYTHON, free_type_printers): Delete.
11159         (_initialize_python): Delete call to observer_attach_before_prompt.
11160         (finalize_python): Set/restore active extension language.
11161         (gdbpy_finish_initialization) Renamed from
11162         finish_python_initialization, made static.  New arg extlang.
11163         (gdbpy_initialized): New function.
11164         * python/python.h: #include "extension.h".  Delete #include
11165         "value.h", "mi/mi-cmds.h".
11166         (extension_language_python): Declare.
11167         (GDBPY_AUTO_FILE_NAME): Delete.
11168         (enum py_bt_status): Moved to extension.h and renamed to
11169         ext_lang_bt_status.
11170         (enum frame_filter_flags): Moved to extension.h.
11171         (enum py_frame_args): Moved to extension.h and renamed to
11172         ext_lang_frame_args.
11173         (finish_python_initialization): Delete.
11174         (eval_python_from_control_command): Delete.
11175         (source_python_script): Delete.
11176         (apply_val_pretty_printer): Delete.
11177         (apply_frame_filter): Delete.
11178         (preserve_python_values): Delete.
11179         (gdbpy_script_language_defn): Delete.
11180         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11181         (start_type_printers, apply_type_printers, free_type_printers): Delete.
11182
11183         * auto-load.c: #include "extension.h".
11184         (GDB_AUTO_FILE_NAME): Delete.
11185         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
11186         (script_language_gdb): Delete, moved to extension.c and renamed to
11187         extension_language_gdb.
11188         (source_gdb_script_for_objfile): Delete.
11189         (auto_load_pspace_info): New member unsupported_script_warning_printed.
11190         (loaded_script): Change type of language member to
11191         struct extension_language_defn *.
11192         (init_loaded_scripts_info): Initialize
11193         unsupported_script_warning_printed.
11194         (maybe_add_script): Make static.  Change type of language arg to
11195         struct extension_language_defn *.
11196         (clear_section_scripts): Reset unsupported_script_warning_printed.
11197         (auto_load_objfile_script_1): Rewrite to use extension language API.
11198         (auto_load_objfile_script): Make public.  Remove support-compiled-in
11199         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11200         (source_section_scripts): Rewrite to use extension language API.
11201         (load_auto_scripts_for_objfile): Rewrite to use
11202         auto_load_scripts_for_objfile.
11203         (collect_matching_scripts_data): Change type of language member to
11204         struct extension_language_defn *.
11205         (auto_load_info_scripts): Change type of language arg to
11206         struct extension_language_defn *.
11207         (unsupported_script_warning_print): New function.
11208         (script_not_found_warning_print): Make static.
11209         (_initialize_auto_load): Rewrite construction of scripts-directory
11210         help.
11211         * auto-load.h (struct objfile): Add forward decl.
11212         (struct script_language): Delete.
11213         (struct auto_load_pspace_info): Add forward decl.
11214         (struct extension_language_defn): Add forward decl.
11215         (maybe_add_script): Delete.
11216         (auto_load_objfile_script): Declare.
11217         (script_not_found_warning_print): Delete.
11218         (auto_load_info_scripts): Update prototype.
11219         (auto_load_gdb_scripts_enabled): Declare.
11220         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11221         auto_load_python_scripts_enabled and made public.
11222         (script_language_python): Delete, moved to python.c.
11223         (gdbpy_script_language_defn): Delete.
11224         (info_auto_load_python_scripts): Update to use
11225         extension_language_python.
11226
11227         * breakpoint.c (condition_command): Replace call to
11228         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11229         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11230         with call to breakpoint_ext_lang_cond_says_stop.
11231         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11232         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
11233         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11234         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11235         New arg slang.
11236         (local_setattro): Print name of extension language with existing
11237         stop condition.
11238
11239         * valprint.c (val_print, value_print): Update to call
11240         apply_ext_lang_val_pretty_printer.
11241         * cp-valprint.c (cp_print_value): Update call to
11242         apply_ext_lang_val_pretty_printer.
11243         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11244         (gdbpy_apply_val_pretty_printer): Renamed from
11245         apply_val_pretty_printer.  New arg extlang.
11246         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11247
11248         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11249         extension language API.
11250         * cli/cli-script.c (execute_control_command): Update to call
11251         eval_ext_lang_from_control_command.
11252
11253         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11254         enum ext_lang_bt_status values.  Update call to
11255         apply_ext_lang_frame_filter.
11256         (mi_cmd_stack_list_locals): Ditto.
11257         (mi_cmd_stack_list_args): Ditto.
11258         (mi_cmd_stack_list_variables): Ditto.
11259         * mi/mi-main.c: Delete #include "python/python-internal.h".
11260         Add #include "extension.h".
11261         (mi_cmd_list_features): Replace reference to python internal variable
11262         gdb_python_initialized with call to ext_lang_initialized_p.
11263
11264         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11265         Update to use enum ext_lang_frame_args.  Update to call
11266         apply_ext_lang_frame_filter.
11267         * python/py-framefilter.c (extract_sym): Update to use enum
11268         ext_lang_bt_status.
11269         (extract_value, py_print_type, py_print_value): Ditto.
11270         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11271         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11272         (py_print_frame): Ditto.
11273         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11274         New arg extlang.  Update to use enum ext_lang_bt_status.
11275
11276         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11277         finish_python_initialization.  Replace with call to
11278         finish_ext_lang_initialization.
11279
11280         * typeprint.c (do_free_global_table): Update to call
11281         free_ext_lang_type_printers.
11282         (create_global_typedef_table): Update to call
11283         start_ext_lang_type_printers.
11284         (find_global_typedef): Update to call apply_ext_lang_type_printers.
11285         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11286         (type_print_options): Change type of global_printers from "void *"
11287         to "struct ext_lang_type_printers *".
11288
11289         * value.c (preserve_values): Update to call preserve_ext_lang_values.
11290         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11291         (gdbpy_preserve_values): Renamed from preserve_python_values.
11292         New arg extlang.
11293         (!HAVE_PYTHON, preserve_python_values): Delete.
11294
11295         * utils.c (quit_flag): Delete, moved to extension.c.
11296         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11297         extension.c.
11298
11299         * eval.c: Delete #include "python/python.h".
11300         * main.c: Delete #include "python/python.h".
11301
11302         * defs.h: Update comment.
11303
11304 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
11305
11306         GDB 7.7 released.
11307
11308 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
11309
11310         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11311         defined.
11312
11313 2014-02-05  Yao Qi  <yao@codesourcery.com>
11314
11315         * remote.c (remote_pass_signals): Remove local 'buf' and use
11316         rs->buf.
11317         (remote_program_signals): Likewise.
11318
11319 2014-02-05  Yao Qi  <yao@codesourcery.com>
11320
11321         * ctf.c: Include "inferior.h" and "gdbthread.h".
11322         (CTF_PID): A new macro.
11323         (ctf_open): Call inferior_appeared and add_thread_silent.
11324         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11325         (ctf_thread_alive): New function.
11326         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11327
11328 2014-02-05  Yao Qi  <yao@codesourcery.com>
11329
11330         Revert this patch:
11331
11332         2013-05-24  Yao Qi  <yao@codesourcery.com>
11333
11334         * tracepoint.c (TFILE_PID): Remove.
11335         (tfile_open): Don't add thread and inferior.
11336         (tfile_close): Don't set 'inferior_ptid'.  Don't call
11337         exit_inferior_silent.
11338         (tfile_thread_alive): Remove.
11339         (init_tfile_ops): Don't set field 'to_thread_alive' of
11340         tfile_ops.
11341
11342 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
11343
11344         * remote.c (remote_start_remote): Call remote_check_symbols even
11345         if only symbol-file (not file) has been given.
11346
11347 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11348
11349         * gdbarch.sh (skip_entrypoint): New callback.
11350         * gdbarch.c, gdbarch.h: Regenerate.
11351         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11352         * infrun.c (fill_in_stop_func): Likewise.
11353         * ppc-linux-tdep.c: Include "elf/ppc64.h".
11354         (ppc_elfv2_elf_make_msymbol_special): New function.
11355         (ppc_elfv2_skip_entrypoint): Likewise.
11356         (ppc_linux_init_abi): Install them for ELFv2.
11357
11358 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11359
11360         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11361         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11362         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11363         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
11364         structures returned in GPRs.
11365
11366 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11367
11368         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11369         offset to the stack parameter list for the ELFv2 ABI.
11370
11371 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11372
11373         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11374         set_gdbarch_convert_from_func_ptr_addr and
11375         set_gdbarch_elf_make_msymbol_special for ELFv1.
11376         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11377         function descriptors on ELFv1.
11378         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
11379         set up r12 at function entry.
11380
11381 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11382
11383         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11384         (struct gdbarch_tdep): New member elf_abi.
11385
11386         * rs6000-tdep.c: Include "elf/ppc64.h".
11387         (rs6000_gdbarch_init): Detect ELF ABI version.
11388
11389 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11390
11391         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11392         within a register pair holding a DFP 128-bit value on little-endian.
11393         (ppc64_sysv_abi_return_value_base): Likewise.
11394         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11395         (dfp_pseudo_register_write): Likewise.
11396
11397 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11398
11399         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11400         offset on little-endian when passing _Decimal32.
11401         (ppc64_sysv_abi_return_value_base): Likewise for return values.
11402
11403 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11404
11405         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11406         of the overlapped FP register within the VSX register on little-
11407         endian platforms.
11408         (efpr_pseudo_register_write): Likewise.
11409
11410 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11411
11412         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11413         offset on little-endian when passing small structures.
11414
11415 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11416
11417         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11418         (struct ppc64_sysv_argpos): New data structure.
11419         (ppc64_sysv_abi_push_float): Remove.
11420         (ppc64_sysv_abi_push_val): New function.
11421         (ppc64_sysv_abi_push_integer): Likewise.
11422         (ppc64_sysv_abi_push_freg): Likewise.
11423         (ppc64_sysv_abi_push_vreg): Likewise.
11424         (ppc64_sysv_abi_push_param): Likewise.
11425         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11426         (ppc64_sysv_abi_return_value_base): New function.
11427         (ppc64_sysv_abi_return_value): Refactor to use it.
11428
11429 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11430
11431         * NEWS: Document new target powerpc64le-*-linux*.
11432
11433 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
11434
11435         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11436         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11437         core dumps.
11438         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11439         register set used in ELF core dumps.  Add floating-point register set.
11440
11441 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
11442
11443         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11444         dwarf2_to_gdb[] table using symbolic constants.  Adjust
11445         penultimate entry from number representing the PC register
11446         to symbolic constant representing the MDR register.  Add
11447         constant for the PC register to the end of the table.
11448
11449 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
11450
11451         * bsd-kvm.c: Include <sys/param.h>
11452
11453 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
11454
11455         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11456
11457 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
11458
11459         * ada-lang.h (clear_ada_sym_cache): Delete.
11460
11461 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
11462
11463         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11464
11465 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
11466
11467         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11468           the sigreturn register save area only if the syscall is
11469           sigreturn.
11470
11471 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
11472
11473         * valops.c (value_slice): Minor reformatting.
11474
11475 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
11476
11477         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11478
11479 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
11480
11481         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11482         New static globals.
11483         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11484         (ada_ignore_descriptive_types_p): New static global.
11485         (find_parallel_type_by_descriptive_type): Return immediately
11486         if ada_ignore_descriptive_types_p is set.
11487         (_initialize_ada_language): Register new commands "maintenance
11488         set ada", "maintenance show ada", "maintenance set ada
11489         ignore-descriptive-types" and "maintenance show ada
11490         ignore-descriptive-types".
11491         * NEWS: Add entry for new "maint ada set/show
11492         ignore-descriptive-types" commands.
11493
11494 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
11495
11496         * record-btrace.c (record_btrace_close): Call btrace_teardown
11497         for all threads.
11498
11499 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11500
11501         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11502         "ui-out.h".
11503
11504 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11505
11506         * ada-typeprint (type_is_full_subrange_of_target_type):
11507         New function.
11508         (print_range): Add parameter bounds_prefered_p.  If not set,
11509         try printing range types using the name of their base type.
11510         (print_range_type): Add parameter bounds_prefered_p.
11511         Use it in call to print_range.
11512         (print_array_type, ada_print_type): Update calls to print_range
11513         and print_range_type.
11514
11515 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11516
11517         * ada-typeprint.c (print_array_type, print_choices, print_range)
11518         (print_range_bound, print_dynamic_range_bound, print_range_type):
11519         Remove declaration.
11520
11521 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11522
11523         * ada-typeprint.c (print_range): Add missing empty line
11524         after local declaration.
11525
11526 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11527
11528         * ada-valprint.c (print_optional_low_bound): Get index_type's
11529         target type for as long as it is a TYPE_CODE_RANGE.
11530
11531 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11532
11533         * procfs.c (procfs_make_note_section): Remove assertion and
11534         associated comment.
11535
11536 2014-01-24  Yao Qi  <yao@codesourcery.com>
11537
11538         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11539         * corelow.c (get_core_siginfo): Likewise.
11540
11541 2014-01-24  Yao Qi  <yao@codesourcery.com>
11542
11543         * remote.c (remote_write_bytes_aux): Change type of 'len' to
11544         ULONGEST.  Don't check 'len' is negative.
11545         (remote_write_bytes):  Change type of 'len' to ULONGEST.
11546
11547 2014-01-23  Tom Tromey  <tromey@redhat.com>
11548
11549         PR python/16485:
11550         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11551         Handle exception from frame.block.
11552         (FrameVars.fetch_frame_locals): Likewise.
11553
11554 2014-01-23  Tom Tromey  <tromey@redhat.com>
11555
11556         PR python/16487:
11557         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11558         on a NULL pointer.  Move "goto error" to correct place.
11559
11560 2014-01-23  Tom Tromey  <tromey@redhat.com>
11561
11562         PR python/16491:
11563         * python/py-framefilter.c (apply_frame_filter): Call
11564         ensure_python_env after computing gdbarch.
11565
11566 2014-01-23  Yao Qi  <yao@codesourcery.com>
11567
11568         * target.c (raw_memory_xfer_partial): Change argument type
11569         from void * to gdb_byte *.
11570         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11571
11572 2014-01-22  Doug Evans  <dje@google.com>
11573
11574         New gdbserver option --debug-format=timestamp.
11575         * NEWS: Mention it.
11576
11577 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
11578
11579         * syscalls/s390x-linux.xml: New file.
11580         * syscalls/s390-linux.xml: New file.
11581         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11582         (XML_SYSCALL_FILENAME_S390X): Likewise.
11583         (op_svc): New enum value for SVC opcode.
11584         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11585         (s390_linux_get_syscall_number): New function.
11586         (s390_gdbarch_init): Register '*get_syscall_number' and the
11587         syscall xml file name.
11588         * data-directory/Makefile.in (SYSCALLS_FILES): Add
11589         "s390-linux.xml" and "s390x-linux.xml".
11590         * NEWS: Announce new feature.
11591
11592 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
11593
11594         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11595
11596 2014-01-22  Pedro Alves  <palves@redhat.com>
11597
11598         * xtensa-config.c: Include defs.h.
11599
11600 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
11601
11602         * common/common-utils.h: Add "ARI:" comment beside __func__
11603         reference.
11604
11605 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
11606
11607         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11608         documentation a bit.
11609
11610 2014-01-21  Roland McGrath  <mcgrathr@google.com>
11611
11612         * configure.ac: Call AM_PROG_INSTALL_STRIP.
11613         * configure: Regenerate.
11614         * aclocal.m4: Regenerate.
11615         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11616         New substituted variables.
11617         (install-strip): New target.
11618         (INSTALL_SCRIPT): New substituted variable.
11619         (FLAGS_TO_PASS): Add it.
11620         (install-only): Use $(INSTALL_SCRIPT) rather than
11621         $(INSTALL_PROGRAM) for gcore.
11622
11623 2014-01-20  Tom Tromey  <tromey@redhat.com>
11624
11625         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11626         together.
11627
11628 2014-01-20  Tom Tromey  <tromey@redhat.com>
11629
11630         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11631         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11632         (deprecated_cmd_warning, complete_on_cmdlist): Update.
11633         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11634         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11635         (struct cmd_list_element) <flags>: Remove.
11636         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11637         doc_allocated>: New fields.
11638         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11639         bitfields.
11640         * maint.c (maintenance_do_deprecate): Update.
11641         * top.c (execute_command): Update.
11642
11643 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
11644
11645         * xtensa-linux-nat.c: Include asm/ptrace.h.
11646
11647 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
11648
11649         * Makefile.in (SFILES): Add d-support.c.
11650         (COMMON_OBS): Add d-support.o.
11651         * d-lang.h (d_parse_symbol): Add comment, now defined in
11652         d-support.c.
11653         * d-lang.c (parse_call_convention)
11654         (parse_attributes, parse_function_types)
11655         (parse_function_args, parse_type, parse_identifier)
11656         (call_convention_p, d_parse_symbol): Move functions to ...
11657         * d-support.c: ... New file.
11658
11659 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
11660
11661         * d-lang.h (d_parse_symbol): Add declaration.
11662         * d-lang.c (extract_identifiers)
11663         (extract_type_info): Remove functions.
11664         (parse_call_convention, parse_attributes)
11665         (parse_function_types, parse_function_args)
11666         (parse_type, parse_identifier, call_convention_p)
11667         (d_parse_symbol): New functions.
11668         (d_demangle): Use d_parse_symbol to demangle D symbols.
11669
11670 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
11671
11672         * d-lang.h (struct builtin_d_type): New data type.
11673         (builtin_d_type): Add declaration.
11674         * d-lang.c (d_language_arch_info, build_d_types)
11675         (builtin_d_type): New functions.
11676         (enum d_primitive_types): New data type.
11677         (d_language_defn): Change c_language_arch_info to
11678         d_language_arch_info.
11679         (d_type_data): New static variable.
11680         (_initialize_d_language): Initialize d_type_data.
11681
11682 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
11683
11684         * d-lang.h (d_main_name): Add declaration.
11685         * d-lang.c (d_main_name): New function.
11686         * symtab.c (find_main_name): Add call to d_main_name.
11687
11688 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
11689
11690         * d-lang.c (d_language_defn): Change macro_expansion_c to
11691         macro_expansion_no.
11692
11693 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
11694
11695         * MAINTAINERS: Add myself as a write-after-approval maintainer.
11696
11697 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
11698
11699         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11700         gdb_exception" declaration.
11701         * remote.c (getpkt_or_notif_sane): Likewise.
11702
11703 2014-01-17  Doug Evans  <dje@google.com>
11704
11705         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11706         function, contents of dirnames_to_char_ptr_vec_append moved here.
11707         (delim_string_to_char_ptr_vec): New function.
11708         (dirnames_to_char_ptr_vec_append): Rewrite.
11709         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11710
11711 2014-01-17  Doug Evans  <dje@google.com>
11712
11713         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11714         and moved here ...
11715         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11716         #include "common-utils.h".
11717         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11718         * common/vec.h (VEC_ASSERT_PASS): Update.
11719         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11720         (MACH_CHECK_ERROR): Update.
11721
11722 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
11723
11724         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11725         comments.
11726         * gdbarch.h: Regenerate.
11727
11728 2014-01-16  Tom Tromey  <tromey@redhat.com>
11729
11730         * value.c (struct value) <regnum>: Move earlier.
11731
11732 2014-01-16  Tom Tromey  <tromey@redhat.com>
11733
11734         * remote.c (extended_remote_create_inferior): Rename from
11735         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
11736         old implementation.
11737
11738 2014-01-16  Pedro Alves  <palves@redhat.com>
11739
11740         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11741         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11742         the backchain.
11743
11744 2014-01-16  Doug Evans  <dje@google.com>
11745
11746         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11747
11748 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11749
11750         * btrace.h (btrace_thread_flag): New.
11751         (struct btrace_thread_info) <flags>: New.
11752         * record-btrace.c (record_btrace_resume_thread)
11753         (record_btrace_find_thread_to_move, btrace_step_no_history)
11754         (btrace_step_stopped, record_btrace_start_replaying)
11755         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11756         (record_btrace_find_resume_thread): New.
11757         (record_btrace_resume, record_btrace_wait): Extend.
11758         (record_btrace_can_execute_reverse): New.
11759         (record_btrace_open): Fail in non-stop mode.
11760         (record_btrace_set_replay): Split into this, ...
11761         (record_btrace_stop_replaying): ... this, ...
11762         (record_btrace_clear_histories): ... and this.
11763         (init_record_btrace_ops): Init to_can_execute_reverse.
11764         * NEWS: Announce it.
11765
11766 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11767
11768         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11769         (forward_target_decr_pc_after_break)
11770         (target_decr_pc_after_break): New.
11771         * target.c (forward_target_decr_pc_after_break)
11772         (target_decr_pc_after_break): New.
11773         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11774         instead of gdbarch_decr_pc_after_break.
11775         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11776         instead of gdbarch_decr_pc_after_break.
11777         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11778         instead of gdbarch_decr_pc_after_break.
11779         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11780         instead of gdbarch_decr_pc_after_break.
11781         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11782         instead of gdbarch_decr_pc_after_break.
11783         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11784         instead of gdbarch_decr_pc_after_break.
11785
11786 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11787
11788         * btrace.c: Include regcache.h.
11789         (btrace_add_pc): New.
11790         (btrace_enable): Call btrace_add_pc.
11791         (btrace_is_empty): New.
11792         * btrace.h (btrace_is_empty): New.
11793         * record-btrace.c (require_btrace, record_btrace_info): Call
11794         btrace_is_empty.
11795
11796 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11797
11798         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11799         Support delta reads.
11800         (linux_disable_btrace): Change return type.
11801         * common/linux-btrace.h (linux_read_btrace): Change parameters
11802         and return type to allow error reporting.  Update users.
11803         (linux_disable_btrace): Change return type.  Update users.
11804         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11805         New.
11806         (btrace_error): New.
11807         (btrace_block) <begin>: Comment on BEGIN == 0.
11808         * btrace.c (btrace_compute_ftrace): Start from the end of
11809         the current trace.
11810         (btrace_stitch_trace, btrace_clear_history): New.
11811         (btrace_fetch): Read delta trace, return if replaying.
11812         (btrace_clear): Move clear history code to btrace_clear_history.
11813         (parse_xml_btrace): Throw an error if parsing failed.
11814         * target.h (struct target_ops) <to_read_btrace>: Change parameters
11815         and return type to allow error reporting.
11816         (target_read_btrace): Change parameters and return type to allow
11817         error reporting.
11818         * target.c (target_read_btrace): Update.
11819         * remote.c (remote_read_btrace): Support delta reads.  Pass
11820         errors on.
11821         * NEWS: Announce it.
11822
11823 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11824
11825         * record.h (record_btrace_frame_unwind)
11826         (record_btrace_tailcall_frame_unwind): New declarations.
11827         * dwarf2-frame: Include record.h
11828         (dwarf2_frame_cfa): Throw an error for btrace frames.
11829         * record-btrace.c: Include hashtab.h.
11830         (btrace_get_bfun_name): New.
11831         (btrace_call_history): Call btrace_get_bfun_name.
11832         (struct btrace_frame_cache): New.
11833         (bfcache): New.
11834         (bfcache_hash, bfcache_eq, bfcache_new): New.
11835         (btrace_get_frame_function): New.
11836         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11837         (record_btrace_frame_this_id): Compute own id.
11838         (record_btrace_frame_prev_register): Provide PC, throw_error
11839         for all other registers.
11840         (record_btrace_frame_sniffer): Detect btrace frames.
11841         (record_btrace_tailcall_frame_sniffer): New.
11842         (record_btrace_frame_dealloc_cache): New.
11843         (record_btrace_frame_unwind): Add new functions.
11844         (record_btrace_tailcall_frame_unwind): New.
11845         (_initialize_record_btrace): Allocate cache.
11846         * btrace.c (btrace_clear): Call reinit_frame_cache.
11847         * NEWS: Announce it.
11848
11849 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11850
11851         * record-btrace.c (record_btrace_set_replay)
11852         (record_btrace_goto_begin, record_btrace_goto_end)
11853         (record_btrace_goto): New.
11854         (init_record_btrace_ops): Initialize them.
11855         * NEWS: Announce it.
11856
11857 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11858
11859         * record-btrace.c (record_btrace_find_new_threads)
11860         (record_btrace_thread_alive): New.
11861         (init_record_btrace_ops): Initialize to_find_new_threads and
11862         to_thread_alive.
11863
11864 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11865
11866         * record-btrace.c (record_btrace_resume): New.
11867         (record_btrace_wait): New.
11868         (init_record_btrace_ops): Initialize to_wait and to_resume.
11869
11870 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11871
11872         * record-btrace.c (record_btrace_xfer_partial)
11873         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11874         (record_btrace_allow_memory_access): New.
11875         (init_record_btrace_ops): Initialize new methods.
11876         * target.c (raw_memory_xfer_partial): Bail out if target reports
11877         that this memory is not available.
11878
11879 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11880
11881         * target.h (target_ops) <to_insert_breakpoint>
11882         <to_remove_breakpoint>: Add target_ops parameter.
11883         (forward_target_insert_breakpoint): New.
11884         (forward_target_remove_breakpoint): New.
11885         (memory_remove_breakpoint, memory_insert_breakpoint):
11886         Add target_ops parameter.
11887         * target.c (target_insert_breakpoint): Split into this and ...
11888         (forward_target_insert_breakpoint): ... this.
11889         (target_remove_breakpoint): Split into this and ...
11890         (forward_target_remove_breakpoint): ... this.
11891         (debug_to_insert_breakpoint): Add target_ops parameter.
11892         Call forward_target_insert_breakpoint.
11893         (debug_to_remove_breakpoint): Add target_ops parameter.
11894         Call forward_target_remove_breakpoint.
11895         (update_current_target): Do not inherit or default to_insert_breakpoint
11896         and to_remove_breakpoint.
11897         * corelow.c (ignore): Add target_ops parameter.
11898         * exec.c (ignore): Add target_ops parameter.
11899         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11900         Add target_ops parameter.
11901         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11902         Add target_ops parameter.
11903         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11904         Add target_ops parameter.
11905         * record-full.c (record_full_beneath_to_insert_breakpoint)
11906         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11907         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11908         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11909         (record_full_core_remove_breakpoint): Add target_ops parameter.
11910         Update users.
11911         (record_full_beneath_to_insert_breakpoint_ops)
11912         (record_full_beneath_to_remove_breakpoint_ops)
11913         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11914         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11915         tmp_to_remove_breakpoint_ops,
11916         record_full_beneath_to_insert_breakpoint_ops, and
11917         record_full_beneath_to_remove_breakpoint_ops.
11918         * remote-m32r-sdi.c (m32r_insert_breakpoint)
11919         (m32r_remove_breakpoint): Add target_ops parameter.
11920         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11921         Add target_ops parameter.
11922         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11923         Add target_ops parameter.
11924
11925 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11926             Markus Metzger  <markus.t.metzger@intel.com>
11927
11928         * record-btrace.c: Include frame-unwind.h.
11929         (record_btrace_frame_unwind_stop_reason)
11930         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11931         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11932         New.
11933         (init_record_btrace_ops): Install it.
11934
11935 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11936
11937         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11938         get_prev_frame_1.
11939
11940 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11941
11942         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11943         earlier.
11944
11945 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11946
11947         * frame-unwind.c: Include target.h.
11948         (frame_unwind_try_unwinder): New function with code from ...
11949         (frame_unwind_find_by_frame): ... here.  New variable
11950         unwinder_from_target, call also target_get_unwinder)
11951         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11952         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11953         * target.h (struct target_ops): New fields to_get_unwinder and
11954         to_get_tailcall_unwinder.
11955         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11956
11957 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11958
11959         * record-btrace.c (record_btrace_fetch_registers)
11960         (record_btrace_store_registers)
11961         (record_btrace_to_prepare_to_store): New.
11962         (init_record_btrace_ops): Add the above.
11963
11964 2014-01-16  Tom Tromey  <tromey@redhat.com>
11965
11966         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11967         * target.h (struct target_ops) <to_prepare_to_store>: Add
11968         argument.
11969         (target_prepare_to_store): Add argument.
11970         * target.c (debug_to_prepare_to_store): Add argument.
11971         (update_current_target): Update.
11972         * remote.c (remote_prepare_to_store): Add 'self' argument.
11973         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11974         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11975         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11976         * record-full.c (record_full_core_prepare_to_store): Add 'self'
11977         argument.
11978         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11979         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11980         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11981         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11982         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11983
11984 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11985
11986         * btrace.h (replay) <replay>: New.
11987         (btrace_is_replaying): New.
11988         * btrace.c (btrace_clear): Free replay iterator.
11989         (btrace_is_replaying): New.
11990         * record-btrace.c (record_btrace_is_replaying): New.
11991         (record_btrace_info): Print insn number if replaying.
11992         (record_btrace_insn_history): Start at replay position.
11993         (record_btrace_call_history): Start at replay position.
11994         (init_record_btrace_ops): Init to_record_is_replaying.
11995
11996 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11997
11998         * record-btrace.c (record_btrace_insn_history_range): Include
11999         end.
12000         (record_btrace_insn_history_from): Adjust range.
12001         (record_btrace_call_history_range): Include
12002         end.
12003         (record_btrace_call_history_from): Adjust range.
12004         * NEWS: Announce changes.
12005
12006 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12007
12008         * record.h (enum record_print_flag)
12009         <record_print_indent_calls>: New.
12010         * record.c (get_call_history_modifiers): Recognize /c modifier.
12011         (_initialize_record): Document /c modifier.
12012         * record-btrace.c (btrace_call_history): Add btinfo parameter.
12013         Reorder fields.  Optionally indent the function name.  Update
12014         all users.
12015         * NEWS: Announce changes.
12016
12017 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12018
12019         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12020
12021 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12022
12023         * btrace.c (ftrace_new_function): Start counting at one.
12024         * record-btrace.c (record_btrace_info): Adjust number of calls
12025         and insns.
12026         * NEWS: Announce it.
12027
12028 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12029
12030         * record-btrace.c (btrace_call_history_insn_range): Print
12031         insn range as [begin, end].
12032
12033 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12034
12035         * btrace.h (struct btrace_func_link): New.
12036         (enum btrace_function_flag): New.
12037         (struct btrace_inst): Rename to ...
12038         (struct btrace_insn): ...this. Update all users.
12039         (struct btrace_func) <ibegin, iend>: Remove.
12040         (struct btrace_func_link): New.
12041         (struct btrace_func): Rename to ...
12042         (struct btrace_function): ...this. Update all users.
12043         (struct btrace_function) <segment, flow, up, insn, insn_offset)
12044         (number, level, flags>: New.
12045         (struct btrace_insn_iterator): Rename to ...
12046         (struct btrace_insn_history): ...this.
12047         Update all users.
12048         (struct btrace_insn_iterator, btrace_call_iterator): New.
12049         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12050         (struct btrace_target_info) <begin, end, level>
12051         <insn_history, call_history>: New.
12052         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12053         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12054         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12055         (btrace_call_number, btrace_call_begin, btrace_call_end)
12056         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12057         (btrace_find_function_by_number, btrace_set_insn_history)
12058         (btrace_set_call_history): New.
12059         * btrace.c (btrace_init_insn_iterator)
12060         (btrace_init_func_iterator, compute_itrace): Remove.
12061         (ftrace_print_function_name, ftrace_print_filename)
12062         (ftrace_skip_file): Change
12063         parameter to const.
12064         (ftrace_init_func): Remove.
12065         (ftrace_debug): Use new btrace_function fields.
12066         (ftrace_function_switched): Also consider gaining and
12067         losing symbol information).
12068         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12069         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12070         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12071         New.
12072         (ftrace_new_function): Move. Remove debug print.
12073         (ftrace_update_lines, ftrace_update_insns): New.
12074         (ftrace_update_function): Check for call, ret, and jump.
12075         (compute_ftrace): Renamed to ...
12076         (btrace_compute_ftrace): ...this. Rewritten to compute call
12077         stack.
12078         (btrace_fetch, btrace_clear): Updated.
12079         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12080         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12081         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12082         (btrace_call_number, btrace_call_begin, btrace_call_end)
12083         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12084         (btrace_find_function_by_number, btrace_set_insn_history)
12085         (btrace_set_call_history): New.
12086         * record-btrace.c (require_btrace): Use new btrace thread
12087         info fields.
12088         (record_btrace_info, btrace_insn_history)
12089         (record_btrace_insn_history, record_btrace_insn_history_range):
12090         Use new btrace thread info fields and new iterator.
12091         (btrace_func_history_src_line): Rename to ...
12092         (btrace_call_history_src_line): ...this. Use new btrace
12093         thread info fields.
12094         (btrace_func_history): Rename to ...
12095         (btrace_call_history): ...this. Use new btrace thread info
12096         fields and new iterator.
12097         (record_btrace_call_history, record_btrace_call_history_range):
12098         Use new btrace thread info fields and new iterator.
12099
12100 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12101
12102         * frame.h (frame_id_build_unavailable_stack_special): New.
12103         * frame.c (frame_id_build_unavailable_stack_special): New.
12104
12105 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12106
12107         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12108         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12109         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12110         to gdbarch.
12111         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12112         (i386_insn_is_jump, i386_jmp_p): New.
12113         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12114         insn_is_jump to gdbarch.
12115         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12116         * gdbarch.h: Regenerated.
12117         * gdbarch.c: Regenerated.
12118         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12119         (default_insn_is_jump): New.
12120         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12121         (default_insn_is_jump): New.
12122
12123 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12124
12125         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12126         Change to ...
12127         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
12128         (btrace_read_type) <btrace_read_new>: Change to ...
12129         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
12130
12131 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12132
12133         * common/linux-btrace.c (linux_read_btrace): Free trace from
12134         previous iteration.
12135
12136 2014-01-15  Doug Evans  <dje@google.com>
12137
12138         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12139         uint32_t.
12140
12141 2014-01-15  Tom Tromey  <tromey@redhat.com>
12142
12143         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12144         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12145         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12146         (set_objfile_main_name): New function.
12147         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12148         language_of_main>: New fields.
12149         (set_objfile_main_name): Declare.
12150         * symtab.c (find_main_name): Loop over objfiles to find the main
12151         name and language.
12152         (set_main_name): Now static.
12153         (get_main_info): Add comment.
12154         * symtab.h (set_main_name): Don't declare.
12155
12156 2014-01-15  Tom Tromey  <tromey@redhat.com>
12157
12158         * symtab.c (main_progspace_key): New global.
12159         (struct main_info): New.
12160         (name_of_main, language_of_main): Remove.
12161         (get_main_info, main_info_cleanup): New function.
12162         (set_main_name, main_name, main_language): Use get_main_info.
12163         (_initialize_symtab): Initialize main_progspace_key.
12164
12165 2014-01-15  Tom Tromey  <tromey@redhat.com>
12166
12167         * dbxread.c (process_one_symbol): Update.
12168         * dwarf2read.c (read_partial_die): Update.
12169         * symfile.c (set_initial_language): Call main_language.
12170         * symtab.c (language_of_main): Now static.
12171         (set_main_name): Add 'lang' parameter.
12172         (find_main_name): Update.
12173         (main_language): New function.
12174         (symtab_observer_executable_changed): Update.
12175         * symtab.h (set_main_name): Update.
12176         (language_of_main): Remove.
12177         (main_language): Declare.
12178
12179 2014-01-15  Tom Tromey  <tromey@redhat.com>
12180
12181         * symfile.c (init_entry_point_info): Use new "initialized" field.
12182         Update.
12183         * objfiles.h (struct entry_point) <initialized>: New field.
12184         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12185         (struct objfile) <ei>: ...here.  Remove.
12186         * objfiles.c (entry_point_address_query): Update.
12187
12188 2014-01-15  Tom Tromey  <tromey@redhat.com>
12189
12190         * objfiles.c (entry_point_address_query): Relocate entry point
12191         address.
12192         (objfile_relocate1): Do not relocate entry point address.
12193         * objfiles.h (struct entry_info) <entry_point>: Update comment.
12194         <the_bfd_section_index>: New field.
12195         * symfile.c (init_entry_point_info): Find the entry point's
12196         section.
12197
12198 2014-01-15  Tom Tromey  <tromey@redhat.com>
12199
12200         * solib-frv.c (enable_break): Use entry_point_address_query.
12201
12202 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12203
12204         * NEWS: Add note on improved process record-replay on
12205         arm*-linux* targets.
12206
12207 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12208
12209         * arm-tdep.c (enum arm_record_result): New enum.
12210         (arm_record_unsupported_insn): New function.
12211         (arm_record_coproc_data_proc): Removed.
12212         (thumb2_record_ld_st_multiple): New function.
12213         (thumb2_record_ld_st_dual_ex_tbb): New function.
12214         (thumb2_record_data_proc_sreg_mimm): New function.
12215         (thumb2_record_ps_dest_generic): New function.
12216         (thumb2_record_branch_misc_cntrl): New function.
12217         (thumb2_record_str_single_data): New function.
12218         (thumb2_record_ld_mem_hints): New function.
12219         (thumb2_record_ld_word): New function.
12220         (thumb2_record_lmul_lmla_div): New function.
12221         (thumb2_record_decode_insn_handler): New function.
12222         (decode_insn): Add thumb32 instruction handlers.
12223
12224 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12225
12226         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12227         (struct arm_linux_record_tdep): Declare.
12228         (arm_canonicalize_syscall): New function.
12229         (arm_all_but_pc_registers_record): New function.
12230         (arm_linux_syscall_record): New function.
12231         (arm_linux_init_abi): Add syscall recording constructs.
12232         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12233         decoding.  (arm_record_coproc_data_proc): Update arm syscall
12234         decoding.
12235         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12236         <arm_syscall_record>: New field.
12237         * configure.tgt (arm*-*-linux*): Add linux-record.o to
12238         gdb_target_obs.
12239
12240 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12241
12242         * arm-tdep.c (thumb_record_misc): Update to use sp as base
12243         register for push instruction recording.
12244
12245 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12246
12247         * arm-tdep.c (thumb_record_misc): Update to correct logical
12248         error while recording ldm, ldmia and pop instructions.
12249
12250 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12251
12252         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12253
12254 2014-01-15  Pedro Alves  <palves@redhat.com>
12255
12256         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12257         (go32_resume, go32_fetch_registers, store_register)
12258         (go32_store_registers, go32_prepare_to_store)
12259         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12260         (go32_create_inferior, go32_can_run, go32_terminal_init)
12261         (go32_terminal_inferior, go32_terminal_ours): Delete forward
12262         declarations.
12263
12264 2014-01-15  Tom Tromey  <tromey@redhat.com>
12265
12266         * target.h (async_callback_ftype): New typedef.
12267         (struct target_ops) <to_async>: Use it.
12268
12269 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
12270
12271         * python/py-value.c (get_field_type): Remove unnecessary curly
12272         braces for single-statement if block.
12273
12274 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
12275
12276         * python/py-type.c (convert_field): Add missing empty line
12277         after declarations.
12278
12279 2014-01-14  Doug Evans  <dje@google.com>
12280
12281         * symfile.h (expand_symtabs_matching): Renamed from
12282         expand_partial_symbol_names.  Update prototype.
12283         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12284         * symfile.c (expand_symtabs_matching): Renamed from
12285         expand_partial_symbol_names.  New args file_matcher, kind.
12286         Rename arg fun to symbol_matcher.
12287         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12288         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12289         ada_expand_partial_symbol_name.
12290         (ada_make_symbol_completion_list): Update to call
12291         expand_symtabs_matching.
12292         (ada_add_global_exceptions): Call expand_symtabs_matching.
12293         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12294         call map_symbol_filenames.
12295         * symtab.c (sources_info): Update to call map_symbol_filenames.
12296         (search_symbols): Call expand_symtabs_matching.
12297         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12298         (default_make_symbol_completion_list_break_on): Update to call
12299         expand_symtabs_matching.
12300         (make_source_files_completion_list): Update to call
12301         map_symbol_filenames.
12302
12303 2014-01-14  Doug Evans  <dje@google.com>
12304
12305         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12306         (expand_symtabs_symbol_matcher_ftype): New typedef.
12307         (quick_symbol_functions.expand_symtabs_matching): Update to use.
12308         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12309         * symfile.c (expand_partial_symbol_names): Update to use
12310         expand_symtabs_symbol_matcher_ftype.
12311         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12312         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12313         Arg name_matcher renamed to symbol_matcher.
12314         * psymtab.c (recursively_search_psymtabs): Update to use
12315         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
12316         sym_matcher.
12317         (expand_symtabs_matching_via_partial): Update to use
12318         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12319         Arg name_matcher renamed to symbol_matcher.
12320
12321 2014-01-14  Doug Evans  <dje@google.com>
12322
12323         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12324         (map_partial_symbol_filenames): Ditto.
12325         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12326         (map_partial_symbol_filenames): Ditto.
12327         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12328         (map_partial_symbol_filenames): Ditto.
12329         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12330         (map_partial_symbol_filenames): Ditto.
12331         * symtab.c: Delete #include "psymtab.h".
12332
12333 2014-01-14  Pedro Alves  <palves@redhat.com>
12334             Tom Tromey  <tromey@redhat.com>
12335
12336         * infrun.c (use_displaced_stepping): Use find_record_target
12337         instead of RECORD_IS_USED.
12338         (adjust_pc_after_break): Use record_full_is_used instead of
12339         RECORD_IS_USED.
12340         * record-btrace.c (record_btrace_open): Call record_preopen
12341         instead of checking RECORD_IS_USED.
12342         * record-full.c (record_full_shortname)
12343         (record_full_core_shortname): New globals.
12344         (record_full_is_used): New function.
12345         (find_full_open): Call record_preopen instead of checking
12346         RECORD_IS_USED.
12347         (init_record_full_ops): Set the target's shortname to
12348         record_full_shortname.
12349         (init_record_full_core_ops): Set the target's shortname to
12350         record_full_core_shortname.
12351         * record-full.h (record_full_is_used): Declare.
12352         * record.c (find_record_target): Make extern.
12353         (record_preopen): New function.
12354         * record.h (RECORD_IS_USED): Delete macro.
12355         (find_record_target, record_preopen): Declare functions.
12356
12357 2014-01-14  Yao Qi  <yao@codesourcery.com>
12358
12359         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12360         'len''s type to ULONGEST.
12361         (core_xfer_shared_libraries_aix): Likewise.
12362         * gdbarch.c, gdbarch.h: Regenerated.
12363         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12364         Change type of 'len' to ULONGEST.
12365         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12366         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12367
12368 2014-01-14  Yao Qi  <yao@codesourcery.com>
12369
12370         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12371         type of 'len' to ULONGEST.
12372         (linux_xfer_osdata_processgroups): Likewise.
12373         (linux_xfer_osdata_threads): Likewise.
12374         (linux_xfer_osdata_fds): Likewise.
12375         (linux_xfer_osdata_isockets): Likewise.
12376         (linux_xfer_osdata_shm): Likewise.
12377         (linux_xfer_osdata_sem): Likewise.
12378         (linux_xfer_osdata_msg): Likewise.
12379         (linux_common_xfer_osdata): Likewise.
12380         (struct osdata_type) <getter>: Likewise.
12381         * common/linux-osdata.h (linux_common_xfer_osdata): Update
12382         the declaration.
12383
12384 2014-01-14  Yao Qi  <yao@codesourcery.com>
12385
12386         * target.h (target_xfer_partial_ftype): Update.
12387         (struct target_ops) <to_xfer_partial>: Change 'len' type to
12388         ULONGEST.
12389         * aix-thread.c (aix_thread_xfer_partial): Change type of
12390         argument 'len' to ULONGEST.
12391         * auxv.c (procfs_xfer_auxv): Likewise.
12392         (ld_so_xfer_auxv): Likewise.
12393         (memory_xfer_auxv): Likewise.
12394         * bfd-target.c (target_bfd_xfer_partial): Likewise.
12395         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12396         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12397         * corelow.c (core_xfer_partial): Likewise.
12398         * ctf.c (ctf_xfer_partial): Likewise.
12399         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
12400         '%u'.
12401         (darwin_read_dyld_info): Likewise.
12402         (darwin_xfer_partial): Likewise.
12403         * exec.c (section_table_xfer_memory_partial): Likewise.
12404         (exec_xfer_partial): Likewise.
12405         * exec.h (section_table_xfer_memory_partial): Update
12406         declaration.
12407         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
12408         instead of plongest.
12409         (gnu_xfer_partial): Likewise.
12410         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12411         (ia64_hpux_xfer_solib_got): Likewise.
12412         (ia64_hpux_xfer_partial): Likewise.
12413         * ia64-linux-nat.c (ia64_linux_xfer_partial):
12414         * inf-ptrace.c (inf_ptrace_xfer_partial):
12415         * inf-ttrace.c (inf_ttrace_xfer_partial):
12416         * linux-nat.c (linux_xfer_siginfo): Likewise.
12417         (linux_nat_xfer_partial): Likewise.
12418         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12419         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12420         * monitor.c (monitor_xfer_memory): Likewise.
12421         (monitor_xfer_partial): Likewise.
12422         * procfs.c (procfs_xfer_partial): Likewise.
12423         * record-full.c (record_full_xfer_partial): Likewise.
12424         (record_full_core_xfer_partial): Likewise.
12425         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
12426         instead of plongest.
12427         (gdbsim_xfer_partial): Likewise.
12428         * remote.c (remote_xfer_partial): Likewise.
12429         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12430         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12431         declaration.
12432         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12433         (rs6000_xfer_shared_libraries): Likewise.
12434         * sol-thread.c (sol_thread_xfer_partial): Likewise.
12435         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12436         (sparc_xfer_partial): Likewise.
12437         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12438         (spu_xfer_partial): Likewise.
12439         * spu-multiarch.c (spu_xfer_partial): Likewise.
12440         * target.c (target_read_live_memory): Likewise.
12441         (memory_xfer_live_readonly_partial): Likewise.
12442         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12443         (target_xfer_partial, default_xfer_partial): Likewise.
12444         (current_xfer_partial): Likewise.
12445         * tracepoint.c (tfile_xfer_partial): Likewise.
12446         * windows-nat.c (windows_xfer_memory): Likewise.  Call
12447         pulongest instead of plongest.
12448         (windows_xfer_partial): Likewise.
12449         (windows_xfer_shared_libraries): Likewise.
12450
12451 2014-01-14  Yao Qi  <yao@codesourcery.com>
12452
12453         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12454         target_xfer_partial_ftype.
12455
12456 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
12457
12458         PR python/15464
12459         PR python/16113
12460         * valops.c (value_struct_elt_bitpos): New function
12461         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12462         object to 'None' if the field name is an empty string ("").
12463         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12464         attribute to look for a field when 'name' is 'None'.
12465         (get_field_type): New function
12466
12467 2014-01-13  Doug Evans  <dje@google.com>
12468
12469         PR symtab/16426
12470         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12471         (try_open_dwop_file): Ditto.
12472         * gdb_bfd.c: #include "vec.h".
12473         (bfdp): New typedef.
12474         (struct gdb_bfd_data): New member included_bfds.
12475         (gdb_bfd_unref): Unref all included bfds.
12476         (gdb_bfd_record_inclusion): New function.
12477         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12478
12479 2014-01-13  Tom Tromey  <tromey@redhat.com>
12480
12481         * gdbcore.h (deprecated_core_resize_section_table): Remove.
12482
12483 2014-01-13  Tom Tromey  <tromey@redhat.com>
12484
12485         * defs.h (use_windows): Remove.
12486         * gdb.c (main): Update.
12487         * main.c (captured_main, gdb_main): Update.
12488         * main.h (struct captured_main_args) <use_windows>: Remove.
12489         * top.c (use_windows): Remove.
12490
12491 2014-01-13  Tom Tromey  <tromey@redhat.com>
12492
12493         * defs.h (deprecated_flush_hook): Remove.
12494
12495 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
12496
12497         PR threads/16216
12498         * linux-thread-db.c (try_thread_db_load): Add parameter
12499         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
12500         (try_thread_db_load_from_pdir_1): Move it there from here.
12501         (try_thread_db_load_from_sdir): Update caller.
12502         (try_thread_db_load_from_dir): Move it there from here.
12503
12504 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
12505
12506         * regformats/regdat.sh: Always rewrite the register file.
12507
12508 2014-01-13  Pedro Alves  <palves@redhat.com>
12509
12510         * Makefile.in (CHECK_HEADERS): New variable.
12511         (check-headers:): New rule.
12512
12513 2014-01-13  Tom Tromey  <tromey@redhat.com>
12514
12515         * cli/cli-setshow.c (do_set_command): Update.
12516         * defs.h (deprecated_set_hook): Remove.
12517         * top.c (deprecated_set_hook): Remove.
12518
12519 2014-01-13  Pedro Alves  <palves@redhat.com>
12520
12521         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12522         the tracepoint if the PC is a pseudo-register.
12523
12524 2014-01-13  Tom Tromey  <tromey@redhat.com>
12525
12526         * defs.h (XCALLOC): Remove.
12527         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12528         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12529         * dwarf2loc.c (allocate_piece_closure): Likewise.
12530         * elfread.c (elf_symfile_segments): Likewise.
12531         (elf_symfile_segments): Likewise.
12532         * gdbtypes.c (copy_type_recursive): Likewise.
12533         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12534         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12535         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12536         XCALLOC.
12537         * mt-tdep.c (mt_gdbarch_init): Likewise.
12538         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12539         XCALLOC.
12540         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12541         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12542         * registry.c (registry_alloc_data): Likewise.
12543         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12544         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12545         * serial.c (serial_fdopen_ops): Likewise.
12546         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12547         XCALLOC.
12548         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12549         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12550         not XCALLOC.
12551
12552 2014-01-13  Tom Tromey  <tromey@redhat.com>
12553
12554         * defs.h (XMALLOC): Remove.
12555         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12556         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12557         * cli-out.c (struct ui_out *): Likewise.
12558         * cli/cli-dump.c (add_dump_command): Likewise.
12559         (add_dump_command): Likewise.
12560         * complaints.c (get_complaints): Likewise.
12561         (find_complaint): Likewise.
12562         * dwarf2-frame.c (execute_cfa_program): Likewise.
12563         * dwarf2read.c (abbrev_table_read_table): Likewise.
12564         * gdbarch.sh: Likewise.
12565         * gdbarch.c: Rebuild.
12566         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12567         * interps.c (interp_new): Likewise.
12568         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12569         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12570         * mi/mi-console.c (mi_console_file_new): Likewise.
12571         * mi/mi-interp.c (mi_interpreter_init): Likewise.
12572         * mi/mi-out.c (mi_out_new): Likewise.
12573         * mi/mi-parse.c (mi_parse): Likewise.
12574         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12575         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12576         * observer.c (xalloc_observer_list_node): Likewise.
12577         * regcache.c (regcache_xmalloc_1): Likewise.
12578         * reggroups.c (reggroup_new): Likewise.
12579         (_initialize_reggroup): Likewise.
12580         * registry.c (register_data_with_cleanup): Likewise.
12581         * remote.c (remote_notif_stop_alloc_reply): Likewise.
12582         * ser-base.c (serial_ttystate): Likewise.
12583         * ser-mingw.c (make_pipe_state): Likewise.
12584         * ser-pipe.c (pipe_open): Likewise.
12585         * serial.c (serial_open): Likewise.
12586         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12587         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12588         (tui_alloc_win_info): Likewise.
12589         (tui_add_content_elements): Likewise.
12590         * tui/tui-file.c (tui_file_new): Likewise.
12591         * tui/tui-out.c (tui_out_new): Likewise.
12592         * ui-file.c (mem_file_new): Likewise.
12593         * ui-out.c (push_level): Likewise.
12594         (make_cleanup_ui_out_end): Likewise.
12595         (append_header_to_list): Likewise.
12596         (ui_out_new): Likewise.
12597         * user-regs.c (user_reg_add_builtin): Likewise.
12598
12599 2014-01-13  Tom Tromey  <tromey@redhat.com>
12600
12601         * defs.h (XZALLOC): Remove.
12602         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12603         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12604         (get_ada_tasks_inferior_data): Likewise.
12605         * auto-load.c (get_auto_load_pspace_data): Likewise.
12606         * auxv.c (get_auxv_inferior_data): Likewise.
12607         * bfd-target.c (target_bfd_reopen): Likewise.
12608         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12609         (deprecated_insert_raw_breakpoint): Likewise.
12610         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12611         * corelow.c (core_open): Likewise.
12612         * darwin-nat.c (darwin_check_new_threads): Likewise.
12613         (darwin_attach_pid): Likewise.
12614         * dummy-frame.c (dummy_frame_push): Likewise.
12615         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12616         * dwarf2loc.c (allocate_piece_closure): Likewise.
12617         * elfread.c (elf_symfile_segments): Likewise.
12618         * eval.c (ptrmath_type_p): Likewise.
12619         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12620         * gdbtypes.c (alloc_type_arch): Likewise.
12621         (alloc_type_instance): Likewise.
12622         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12623         * inf-child.c (inf_child_can_use_agent): Likewise.
12624         * inflow.c (get_inflow_inferior_data): Likewise.
12625         * infrun.c (save_infcall_suspend_state): Likewise.
12626         * jit.c (jit_reader_load): Likewise.
12627         (get_jit_objfile_data): Likewise.
12628         (get_jit_program_space_data): Likewise.
12629         (jit_object_open_impl): Likewise.
12630         (jit_symtab_open_impl): Likewise.
12631         (jit_block_open_impl): Likewise.
12632         (jit_frame_sniffer): Likewise.
12633         * linux-fork.c (add_fork): Likewise.
12634         * maint.c (make_command_stats_cleanup): Likewise.
12635         * objfiles.c (get_objfile_pspace_data): Likewise.
12636         * opencl-lang.c (struct lval_closure): Likewise.
12637         * osdata.c (osdata_start_osdata): Likewise.
12638         * progspace.c (new_address_space): Likewise.
12639         (add_program_space): Likewise.
12640         * remote-sim.c (get_sim_inferior_data): Likewise.
12641         * sh-tdep.c (sh_gdbarch_init): Likewise.
12642         * skip.c (Ignore): Likewise.
12643         (skip_delete_command): Likewise.
12644         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12645         (library_list_start_library): Likewise.
12646         (solib_aix_current_sos): Likewise.
12647         * solib-darwin.c (get_darwin_info): Likewise.
12648         (darwin_current_sos): Likewise.
12649         * solib-dsbt.c (get_dsbt_info): Likewise.
12650         * solib-ia64-hpux.c (new_so_list): Likewise.
12651         (ia64_hpux_get_solib_linkage_addr): Likewise.
12652         * solib-spu.c (append_ocl_sos): Likewise.
12653         (spu_current_sos): Likewise.
12654         * solib-svr4.c (get_svr4_info): Likewise.
12655         (svr4_keep_data_in_core): Likewise.
12656         (library_list_start_library): Likewise.
12657         (svr4_default_sos): Likewise.
12658         (svr4_read_so_list): Likewise.
12659         * solib-target.c (library_list_start_library): Likewise.
12660         (solib_target_current_sos): Likewise.
12661         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12662         * symfile-debug.c (install_symfile_debug_logging): Likewise.
12663         * symfile.c (default_symfile_segments): Likewise.
12664         * target-descriptions.c (tdesc_data_init): Likewise.
12665         (tdesc_create_reg): Likewise.
12666         (struct tdesc_type *): Likewise.
12667         (tdesc_create_vector): Likewise.
12668         (tdesc_set_struct_size): Likewise.
12669         (struct tdesc_type *): Likewise.
12670         (tdesc_free_feature): Likewise.
12671         (tdesc_create_feature): Likewise.
12672         * windows-nat.c (windows_add_thread): Likewise.
12673         (windows_make_so): Likewise.
12674         * xml-support.c (gdb_xml_body_text): Likewise.
12675         (gdb_xml_create_parser_and_cleanup): Likewise.
12676         (xml_process_xincludes): Likewise.
12677         * xml-syscall.c (allocate_syscalls_info): Likewise.
12678         (syscall_create_syscall_desc): Likewise.
12679
12680 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
12681
12682         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12683         function, with code from i386_stap_parse_special_token.
12684         (i386_stap_parse_special_token_three_arg_disp): Likewise.
12685         (i386_stap_parse_special_token): Move code to the two functions
12686         above; simplify it.
12687
12688 2014-01-09  Pedro Alves  <palves@redhat.com>
12689             Hui Zhu  <hui@codesourcery.com>
12690
12691         PR gdb/16101
12692         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12693         bp_err_string.  Don't mark the location shlib_disabled if the
12694         error thrown wasn't a generic or memory error.  Catch errors
12695         thrown while inserting breakpoints in overlayed code.  Output
12696         error message of software breakpoints.
12697         * remote.c (remote_insert_breakpoint): If this breakpoint has
12698         target-side commands but this stub doesn't support Z0 packets,
12699         throw NOT_SUPPORTED_ERROR error.
12700         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12701         * target.h (target_insert_breakpoint): Extend comment.
12702         (target_insert_hw_breakpoint): Add comment.
12703
12704 2014-01-08  Pedro Alves  <palves@redhat.com>
12705
12706         * remote.c (remote_add_thread): Add threads silently if starting
12707         up.
12708         (remote_notice_new_inferior): If in all-stop, and starting up,
12709         don't call notice_new_inferior.
12710         (get_current_thread): New function, factored out from ...
12711         (add_current_inferior_and_thread): ... this.  Adjust.
12712         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
12713         found any thread, then select the remote's current thread as GDB's
12714         current thread too.
12715
12716 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
12717
12718         * NEWS: Create a new section for the next release branch.
12719         Rename the section of the current branch, now that it has
12720         been cut.
12721
12722 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
12723
12724         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12725         * version.in: Bump version to 7.7.50.DATE-cvs.
12726
12727 2014-01-08  Yao Qi  <yao@codesourcery.com>
12728
12729         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12730         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
12731         (spu_xfer_partial): Cast 'buf' to 'const char *'.
12732
12733 2014-01-08  Yao Qi  <yao@codesourcery.com>
12734
12735         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12736         return value of bfd_get_filename to symbol_file_add_from_bfd.
12737
12738 2014-01-08  Pierre Muller  <muller@sourceware.org>
12739
12740         Fix PR16201.
12741         * coff-pe-read.c (struct read_pe_section_data): Add index field.
12742         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12743         to prim_record_mininal_symbol_and_info.
12744         (add_pe_forwarded_sym): Use known section number of forwarded symbol
12745         in call to prim_record_minimal_symbol_and_info.
12746         (read_pe_exported_syms): Set index field of section_data.
12747
12748 2014-01-07  Andrew Pinski  <apinski@cavium.com>
12749
12750         * features/aarch64-core.xml (cpsr): Change to be 64bit.
12751         * features/aarch64.c: Regenerate.
12752
12753 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
12754
12755         * target.c (return_null): Define.
12756         (update_current_target): Use it instead of return_zero for
12757         functions that return a pointer.
12758
12759 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
12760
12761         * source.c (add_path): Fix check for duplicated paths in the previously
12762         included paths.
12763
12764 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
12765
12766         * ada-lang.c: Remove duplicated include statements.
12767         * alphabsd-nat.c: Ditto.
12768         * amd64-darwin-tdep.c: Ditto.
12769         * amd64fbsd-nat.c: Ditto.
12770         * auto-load.c: Ditto.
12771         * ax-gdb.c: Ditto.
12772         * breakpoint.c: Ditto.
12773         * dbxread.c: Ditto.
12774         * fork-child.c: Ditto.
12775         * gdb_usleep.c: Ditto.
12776         * i386-darwin-tdep.c: Ditto.
12777         * i386fbsd-nat.c: Ditto.
12778         * infcmd.c: Ditto.
12779         * inferior.c: Ditto.
12780         * jv-lang.c: Ditto.
12781         * linux-nat.c: Ditto.
12782         * linux-tdep.c: Ditto.
12783         * m68kbsd-nat.c: Ditto.
12784         * m68klinux-nat.c: Ditto.
12785         * microblaze-tdep.c: Ditto.
12786         * mips-linux-tdep.c: Ditto.
12787         * mn10300-tdep.c: Ditto.
12788         * nto-tdep.c: Ditto.
12789         * opencl-lang.c: Ditto.
12790         * osdata.c: Ditto.
12791         * printcmd.c: Ditto.
12792         * regcache.c: Ditto.
12793         * remote-m32r-sdi.c: Ditto.
12794         * remote.c: Ditto.
12795         * symfile.c: Ditto.
12796         * symtab.c: Ditto.
12797         * tilegx-linux-nat.c: Ditto.
12798         * tilegx-tdep.c: Ditto.
12799         * tracepoint.c: Ditto.
12800         * valops.c: Ditto.
12801         * vaxbsd-nat.c: Ditto.
12802         * windows-nat.c: Ditto.
12803         * xtensa-tdep.c: Ditto.
12804
12805 2014-01-07  Yao Qi  <yao@codesourcery.com>
12806
12807         * spu-linux-nat.c (_initialize_spu_nat): Declare.
12808
12809 2014-01-07  Yao Qi  <yao@codesourcery.com>
12810             Joel Brobecker  <brobecker@adacore.com>
12811
12812         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12813         (pdc_write_regs): Likewise.
12814         (fetch_regs_kernel_thread): Likewise.
12815         (store_regs_kernel_thread): Likewise.
12816
12817 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12818
12819         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12820         tagged type objects to their actual type.
12821
12822 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12823
12824         * ada-valprint.c (print_field_values): Add "language" parameter.
12825         Update calls to print_field_values and print_variant_part.
12826         Pass new parameter "language" in call to val_print instead
12827         of "current_language".  Replace call to ada_val_print by call
12828         to val_print.
12829         (print_variant_part): Add "language" parameter.
12830         (ada_val_print_struct_union): Update call to print_field_values.
12831
12832 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12833
12834         * ada-valprint.c (ui_memcpy): Delete.
12835         (ada_print_floating): Update documentation.  Add empty line
12836         between between function documentation and implementation.
12837         Delete variable "buffer".  Use ui_file_xstrdup in place of
12838         ui_file_put.  Minor adjustments following this change.
12839
12840 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12841
12842         * ada-valprint.c (ada_val_print_string): New function,
12843         extracted from ada_val_print_array.
12844         (ada_val_print_array): Replace extracted code by call
12845         to ada_val_print_string followed by a return.  Move
12846         "else" branch to the function's top block.
12847
12848 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12849
12850         * ada-valprint.c (ada_val_print_array): Move implementation
12851         down.  Rename parameter "offset" and "val" into "offset_aligned"
12852         and "original_value" respectively.  Add parameter "offset".
12853
12854 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12855
12856         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12857         re-organizing the code. Change the "???" message printed
12858         when target type is a TYPE_CODE_UNDEF into
12859         "<ref to undefined type>".
12860
12861 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12862
12863         * ada-valprint.c (print_record): Delete, implementation inlined...
12864         (ada_val_print_struct_union): ... here.  Remove call to
12865         ada_check_typedef in inlined implementation.
12866
12867 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12868
12869         * ada-valprint.c (ada_val_print_gnat_array): New function,
12870         extracted from ada_val_print_1;
12871         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12872         (ada_val_print_flt, ada_val_print_struct_union)
12873         (ada_val_print_ref): Likewise.
12874         (ada_val_print_1): Delete variables i and elttype.
12875         Replace extracted-out code by call to corresponding
12876         new functions.
12877
12878 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12879
12880         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12881
12882 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12883
12884         * ada-valprint.c (ada_val_print_1): Replace calls to
12885         ada_val_print_1 by calls to val_print.
12886
12887 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12888
12889         * ada-valprint.c (ada_val_print_1): Add parameter "language".
12890         Update calls to self accordingly.  Replace calls to c_val_print
12891         by calls to val_print.
12892
12893 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12894
12895         * ada-valprint.c (print_record): Delete declaration.
12896         (adjust_type_signedness, ada_val_print_1): Likewise.
12897         (ada_val_print): Move function implementation down.
12898         (print_variant_part, print_field_values, print_record):
12899         Move function implementation up.
12900
12901 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12902
12903         * python/py-type.c (typy_get_name): New function.
12904         (type_object_getset): Add entry for attribute "name".
12905         * NEWS: Add entry mentioning this new attribute.
12906
12907 2014-01-07  Yao Qi  <yao@codesourcery.com>
12908
12909         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12910         statement.
12911
12912 2014-01-07  Yao Qi  <yao@codesourcery.com>
12913
12914         * gnu-nat.c (info_port_rights): Add qualifier const to
12915         argument args.
12916
12917 2014-01-07  Yao Qi  <yao@codesourcery.com>
12918
12919         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12920
12921 2014-01-07  Yao Qi  <yao@codesourcery.com>
12922
12923         * gnu-nat.c (make_inf) Update declaration.
12924         (make_inf): Make it static.
12925         (inf_set_traced): Likewise.
12926         (inf_port_to_thread, inf_task_died_status): Likewise.
12927
12928 2014-01-07  Yao Qi  <yao@codesourcery.com>
12929
12930         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12931
12932 2014-01-07  Yao Qi  <yao@codesourcery.com>
12933
12934         * gnu-nat.c (_initialize_gnu_nat): Declare.
12935
12936 2014-01-07  Yao Qi  <yao@codesourcery.com>
12937
12938         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12939         'enum bfd_endian'.
12940         (struct gdbarch_info) <byte_order>: Change type to
12941         'enum bfd_endian'.
12942         <byte_order_for_code>: Likewise.
12943         * gdbarch.c, gdbarch.h: Regenerated.
12944
12945 2014-01-06  Sasha Smundak  <asmundak@google.com>
12946
12947         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12948
12949 2014-01-06  Tom Tromey  <tromey@redhat.com>
12950
12951         * doublest.c (convert_doublest_to_floatformat): Use const, not
12952         CONST.
12953         * somread.c (som_symtab_read): Likewise.
12954
12955 2014-01-07  Hui Zhu  <hui@codesourcery.com>
12956
12957         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12958         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12959         (gdb_bfd_fopen): Ditto.
12960         (gdb_bfd_openr): Ditto.
12961         (gdb_bfd_openw): Ditto.
12962         (gdb_bfd_openr_iovec): Ditto.
12963         (gdb_bfd_fdopenr): Ditto.
12964         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12965         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12966         with xstrdup.
12967         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12968         with xstrdup.
12969         * symfile-mem.c (symbol_file_add_from_memory): Removed
12970         gdb_bfd_stash_filename.
12971
12972 2014-01-03  Doug Evans  <dje@google.com>
12973
12974         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12975         output.
12976
12977 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
12978
12979         Update year range in copyright notice of all files.
12980
12981 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
12982
12983         * top.c (print_gdb_version): Set copyright year to 2014.
12984
12985 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
12986
12987         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12988
12989 For older changes see ChangeLog-2013.
12990 \f
12991 Local Variables:
12992 mode: change-log
12993 left-margin: 8
12994 fill-column: 74
12995 version-control: never
12996 coding: utf-8
12997 End: