source.c:openp: save/restore errno
[external/binutils.git] / gdb / ChangeLog
1 2015-10-27  Pedro Alves  <palves@redhat.com>
2
3         * source.c (openp): New local 'last_errno'.  Use it to
4         save/restore errno.
5
6 2015-10-27  Pedro Alves  <palves@redhat.com>
7
8         * psymtab.c (dump_psymtab_addrmap_1): Add casts.
9
10 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
11
12         * ctf.c (SET_ENUM_FIELD): New macro.
13         (ctf_read_status): Use it.
14         (ctf_read_tp): Use it.
15
16 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
17
18         * guile/scm-breakpoint.c (gdbscm_set_breakpoint_stop_x): Add
19         scm_t_dynwind_flags casts.
20         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
21         * guile/scm-ports.c (gdbscm_open_memory): Likewise.
22         * guile/scm-value.c (gdbscm_value_to_string): Likewise.
23
24 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
25
26         * ax.h (ax_raw_byte): New declaration.
27         * ax-general.c (ax_raw_byte): New function.
28         (ax_simple): Use ax_raw_byte.
29         * ax-gdb.c (gen_printf): Likewise.
30
31 2015-10-27  Simon Marchi  <simon.marchi@polymtl.ca>
32
33         * ada-lang.h (GROW_VECT): Add cast.
34
35 2015-10-26  Doug Evans  <xdje42@gmail.com>
36
37         * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
38
39 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
40
41         * target.c (memory_xfer_partial): Change type of buf to gdb_byte
42         pointer.
43         (simple_search_memory): Cast return of memmem.
44
45 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
46
47         * stap-probe.c (handle_stap_probe): Add (const char *) casts.
48
49 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
50
51         * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
52         -1 on error.
53
54 2015-10-26  Doug Evans  <dje@google.com>
55
56         PR symtab/17391
57         * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
58         instead of gdbarch_dwarf2_reg_to_regnum.
59         (dwarf2_frame_cache): Ditto.
60         (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
61         gdbarch_dwarf2_reg_to_regnum.
62         (get_reg_value): Ditto.
63         (dwarf2_fetch_cfa_info): Ditto.
64         (dwarf2_frame_prev_register): Ditto.
65         * dwarf2loc.c: #include "complaints.h".
66         (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
67         instead of gdbarch_dwarf2_reg_to_regnum.
68         (dwarf_expr_get_reg_value): Ditto.
69         (read_pieced_value): Ditto.
70         (write_pieced_value): Ditto.
71         (dwarf2_evaluate_loc_desc_full): Ditto.
72         (dwarf_reg_to_regnum): New function.
73         (throw_bad_regnum_error): New function.
74         (dwarf_reg_to_regnum_or_error): Renamed from
75         dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
76         All callers updated.  Call throw_bad_regnum_error.
77         (locexpr_regname): Improve text of bad register number.
78         * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
79         (dwarf_reg_to_regnum_or_error): Update prototype.
80         * dwarf2expr.c: #include "dwarf2loc.h".
81         (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
82         gdbarch_dwarf2_reg_to_regnum.
83         * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
84         * gdbarch.h: Regenerate.
85         * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
86         register.
87         * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
88         * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
89         * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
90         * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
91         Remove warning for bad register.
92         * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
93         * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
94         i386_svr4_reg_to_regnum.  Return -1 for bad registers.
95         (i386_svr4_reg_to_regnum): New function.
96         (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
97         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
98         on bad registers, return -1.
99         * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
100         Remove warning for bad register.
101         * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
102         (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
103         Remove warning for bad register.  Return -1 for bad register.
104         * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
105         for bad register, return -1.
106         * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
107         * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
108         * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
109         * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
110         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
111         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
112         for bad regs.
113         * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
114         bad regs.  Fix error result.
115         * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
116         (reg_value_complaint): Update complaint text.
117         * mdebugread.c (reg_value_complaint): New function.
118         (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.
119
120 2015-10-26  Doug Evans  <dje@google.com>
121
122         PR python/18938
123         * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
124         All callers updated.
125
126 2015-10-26  Doug Evans  <dje@google.com>
127
128         * psymtab.c (struct dump_psymtab_addrmap_data): Define.
129         (dump_psymtab_addrmap_1, dump_psymtab_addrmap): New functions.
130         (maintenance_print_psymbols): Print address map.
131
132 2015-10-26  Doug Evans  <dje@google.com>
133
134         * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
135
136 2015-10-26  Doug Evans  <dje@google.com>
137
138         * common/gdb_wait.h (W_STOPCODE): Define, moved here from
139         gdbserver/linux-low.c.
140         (WSETSTOP): Simplify.
141
142 2015-10-26  Doug Evans  <dje@google.com>
143
144         * linux-thread-db.c (find_new_threads_callback): Ditto.
145         (thread_db_pid_to_str): Ditto.
146
147 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
148
149         * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
150         local char array to scm_mode_bits, use a cast instead.
151
152 2015-10-26  Simon Marchi  <simon.marchi@ericsson.com>
153
154         * tui/tui-data.c (tui_alloc_content): Don't check xmalloc
155         result.  Change type of element_block_ptr.  Change allocation to
156         use XNEWVEC.
157
158 2015-10-26  Luis Machado  <lgustavo@codesourcery.com>
159
160         * record-full.c (record_full_message_wrapper_safe): Pass empty string to
161         catch_errors call instead of NULL.
162
163 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
164
165         * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
166         char pointer to scm_mode_bits.
167
168 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
169
170         * symtab.c (default_make_symbol_completion_list_break_on_1): Add
171         cast.
172
173 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
174
175         * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
176         "data" local variable and use it.
177
178 2015-10-26  Simon Marchi  <simon.marchi@polymtl.ca>
179
180         * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
181         domain_enum cast.
182         (gdbscm_lookup_symbol): Likewise.
183
184 2015-10-25  Iain Buclaw  <ibuclaw@gdcproject.org>
185
186         * d-exp.y: Remove an obsolete comment and propagate the block
187         information to the produced expression.
188
189 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
190
191         * tui/tui-data.c (tui_add_to_source_windows): Remove void *
192         cast.
193         (tui_add_content_elements): Likewise.
194
195 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
196
197         * cli/cli-setshow.c (do_set_command): Constify p.
198
199 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
200
201         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
202         (void *) cast with (gdb_byte *).
203
204 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
205
206         * proc-service.c (ps_pdread): Add cast.
207
208 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
209
210         * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
211         valbuf.
212
213 2015-10-24  Simon Marchi  <simon.marchi@polymtl.ca>
214
215         * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
216         (ia64_push_dummy_call): Remove cast and change type of "to" to
217         array of gdb_byte.
218
219 2015-10-23  Simon Marchi  <simon.marchi@polymtl.ca>
220
221         * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
222
223 2015-10-23  Simon Marchi  <simon.marchi@ericsson.com>
224
225         * observer.h (observer_${event}_notification_stub): Add cast.
226
227 2015-10-23  Yao Qi  <yao.qi@linaro.org>
228
229         * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
230         dsd.insn_count to zero.
231
232 2015-10-22  Pedro Alves  <palves@redhat.com>
233
234         * infrun.c (stop_after_trap): Delete.
235         (clear_proceed_status, handle_signal_stop, struct
236         infcall_control_state, save_infcall_control_state)
237         (restore_infcall_control_state): Remove references to
238         stop_after_trap.
239
240 2015-10-22  Simon Marchi  <simon.marchi@ericsson.com>
241
242         * python/python.c (_initialize_python): Add cast.
243
244 2015-10-22  Simon Marchi  <simon.marchi@ericsson.com>
245
246         * nto-tdep.c (nto_inferior_data): Add cast.
247
248 2015-10-22  Pedro Alves  <palves@redhat.com>
249
250         * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
251         windows_wait and windows_resume directly instead of
252         wait_for_inferior and resume.
253
254 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
255
256         * xtensa-tdep.h (XTREG): Add casts.
257         (XTREG_END): Likewise.
258
259 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
260
261         * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
262
263 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
264
265         * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
266
267 2015-10-22  Simon Marchi  <simon.marchi@polymtl.ca>
268
269         * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
270         buf to gdb_byte*.
271         (supply_32bit_reg): Add cast.
272         (mips64_fill_gregset): Likewise.
273
274 2015-10-21  Simon Marchi  <simon.marchi@polymtl.ca>
275
276         PR python/18073
277         * python/py-type.c (typy_get_composite): Allow returning a
278         function type.
279
280 2015-10-21  Keven Boell  <keven.boell@intel.com>
281
282         * dwarf2read.c (set_die_type): Add read of
283         DW_AT_allocated and DW_AT_associated.
284         * f-typeprint.c: New include of typeprint.h
285         (f_print_type): Add check for allocated/associated
286         status of type.
287         (f_type_print_varspec_suffix): Add check for
288         * gdbtypes.c (create_array_type_with_stride):
289         Add check for valid data location of type in
290         case allocated or associated attributes are set.
291         Length of an array should be only calculated if
292         allocated or associated is resolved as true.
293         (is_dynamic_type_internal): Add check for allocated/
294         associated.
295         (resolve_dynamic_array): Evaluate allocated/associated
296         properties.
297         * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
298         <DYN_PROP_ASSOCIATED>: New enums.
299         (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
300         (type_not_allocated): New function.
301         (type_not_associated): New function.
302         * valarith.c (value_subscripted_rvalue): Add check for
303         allocated/associated.
304         * valprint.c: New include of typeprint.h.
305         (valprint_check_validity): Add check for allocated/associated.
306         (value_check_printable): Add check for allocated/
307         associated.
308         * typeprint.h (val_print_not_allocated): New function.
309         (val_print_not_associated): New function.
310         * typeprint.c (val_print_not_allocated): New function.
311         (val_print_not_associated): New function.
312
313 2015-10-21  Antoine Tremblay  <antoine.tremblay@ericsson.com>
314
315         * Makefile.in: Add arm.c/o.
316         * arch/arm.c: New file.
317         * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
318         (MAKE_THUMB_ADDR): Likewise.
319         (UNMAKE_THUMB_ADDR): Likewise.
320         * arm-tdep.c (int thumb_insn_size): Move to arm.c.
321         (IS_THUMB_ADDR): Move to arm.h.
322         (MAKE_THUMB_ADDR): Likewise.
323         (UNMAKE_THUMB_ADDR): Likewise.
324         * configure.tgt: Add arm.o to all ARM configs.
325
326 2015-10-21  Yao Qi  <yao.qi@linaro.org>
327
328         * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
329         Remove argument exp_vCont_s.
330         * gdb.base/range-stepping.exp: Callers updated.
331         * gdb.trace/range-stepping.exp: Likewise.
332
333 2015-10-21  Aleksandar Ristovski  <aristovski@qnx.com>
334
335         * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
336         (nto_sniff_abi_note_section): New function.
337         (nto_elf_osabi_sniffer): Use new function to recognize nto specific
338         binary.
339
340 2015-10-21  Aleksandar Ristovski  <aristovski@qnx.com>
341
342         * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
343         (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
344         * nto-tdep.c (nto_new_inferior_data_reg): New definition.
345         (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
346         New functions.
347         (_initialize_nto_tdep): New forward declaration, new function.
348         * nto-tdep.h (struct nto_inferior_data): New struct.
349         (nto_inferior_data): New function declaration.
350
351 2015-10-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
352
353         * findvar.c (address_from_register): Check REGNUM validity.
354
355 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
356
357         * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
358         (init_procfs_targets): Wire new function.
359
360 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
361
362         * nto-procfs.c (sys/auxv.h): Include.
363         (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
364         * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
365         * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
366
367 2015-10-20  Aleksandar Ristovski  <aristovski@qnx.com>
368
369         * nto-procfs.c (nto_procfs_path): Rename to...
370         (nodestr): ... this, and change type.
371         (nto_node): Use new variable and logic accordingly.
372         (procfs_open_1): Use new variable name. Use local buffer to construct
373         procfrs path.
374         (procfs_pidlist): Use NODESTR to construct procfs path.
375         (procfs_files_info): Use NODESTR to output meaningful text.
376         (do_attach): Construct procfs using NODESTR.
377         (procfs_create_inferior): Compare pointer to NULL.
378
379 2015-10-19  Josh Stone  <jistone@redhat.com>
380
381         * linux-nat.c (linux_handle_syscall_trap): Always update entry/
382         return state, even when not actively catching syscalls at all.
383         (linux_handle_extended_wait): Mark syscall_state like an entry.
384         (wait_lwp): Set syscall_state ignored for other traps.
385         (linux_nat_filter_event): Likewise.
386
387 2015-10-19  Luis Machado  <lgustavo@codesourcery.com>
388
389         * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
390         when handling 'E', 'T', 'S', 'X' and 'W' packets.
391         Do not set rs->waiting_for_stop_reply back to 1.
392
393 2015-10-16  Aleksandar Ristovski  <aristovski@qnx.com>
394
395         * nto-procfs.c (common/filestuff.h): Include.
396         (procfs_can_use_hw_breakpoint): Fix enum name.
397         (procfs_open_1): Fix compiler warning.
398         (procfs_pidlist): Make static.
399         (procfs_meminfo): Make static, fix type name, add missing argument.
400         (procfs_store_registers): Make static.
401         (procfs_thread_info): Remove unused function.
402         (_initialize_procfs): Forward declare.
403
404 2015-10-16  Yao Qi  <yao.qi@arm.com>
405
406         * MAINTAINERS: Update my email address.
407
408 2015-10-15  Yao Qi  <yao.qi@linaro.org>
409
410         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
411         Call gdbarch_breakpoint_from_pc to instruction length.
412         (aarch64_linux_remove_hw_breakpoint): Likewise.
413         * common/common-regcache.h (regcache_register_size): Declare.
414         * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
415         (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
416         the process is 32bit, otherwise set alignment to 4.
417         (aarch64_handle_breakpoint): Update comments.
418         * regcache.c (regcache_register_size): New function.
419
420 2015-10-15  Aleksandar Ristovski  <aristovski@qnx.com>
421
422         * gdbarch.sh (core_regset_section): Remove.
423         * gdbarch.h: Regenerate.
424
425 2015-10-14  Yao Qi  <yao.qi@linaro.org>
426
427         * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
428         out of it.
429         (enum aarch64_memory_operand_type): New.
430
431 2015-10-13  David Edelsohn  <dje.gcc@gmail.com>
432
433         * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
434
435 2015-10-13  Pedro Alves  <palves@redhat.com>
436
437         * ada-lang.c (ada_enum_name): Constify local.
438         * ada-typeprint.c (print_range_bound): Constify locals.
439         * c-varobj.c (c_describe_child): Likewise.
440         * cli/cli-setshow.c (do_set_command): Likewise.
441         * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
442         * dwarf2read.c (find_file_and_directory): Likewise.
443         (anonymous_struct_prefix, dwarf2_name): Likewise.
444         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
445         * go-lang.c (unpack_mangled_go_symbol): Likewise.
446         * jv-typeprint.c (java_type_print_base): Likewise.
447         * ser-tcp.c (net_open): Likewise.
448         * symfile.c (deduce_language_from_filename): Likewise.
449         * symtab.c (gdb_mangle_name): Likewise.
450         * tui/tui-io.c (tui_redisplay_readline): Likewise.
451
452 2015-10-13  Pedro Alves  <palves@redhat.com>
453
454         * infrun.c (restore_execution_direction): New function.
455         (fetch_inferior_event): Use it instead of
456         make_cleanup_restore_integer.
457         (execution_direction): Change type to enum
458         exec_direction_kind.
459         * infrun.h (execution_direction): Likewise.
460
461 2015-10-13  Pedro Alves  <palves@redhat.com>
462
463         * ada-lang.c (ada_value_primitive_packed_val): Constify
464         locals.  Use value_contents_writeable.  Remove casts.
465
466 2015-10-13  Pedro Alves  <palves@redhat.com>
467
468         * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
469         and alloca calls.
470
471 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
472
473         * lm32-tdep.c (lm32_push_dummy_call): Replace call to
474         write_memory with write_memory_unsigned_integer.
475
476 2015-10-13  Simon Marchi  <simon.marchi@polymtl.ca>
477
478         * solib-dsbt.c (cmp_name): Constify arguments.
479         * solib-frv.c (cmp_name): Likewise.
480         * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
481         * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
482         (bfd_lookup_symbol_from_dyn_symtab): Likewise.
483         (gdb_bfd_lookup_symbol): Likewise.
484         * solib.h (gdb_bfd_lookup_symbol): Likewise.
485         (gdb_bfd_lookup_symbol_from_symtab): Likewise.
486
487 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
488
489         * stack.c (parse_frame_specification): Remove message parameter,
490         replace with fixed string in function body, update function
491         comment.
492         (frame_info): Remove message to parse_frame_specification.
493         (select_frame_command): Likewise.
494
495 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
496
497         * stack.c (parse_frame_specification): Delete.
498         (parse_frame_specification_1): Rename to
499         parse_frame_specification.
500         (frame_info): Use parse_frame_specification.
501         (select_frame_command): Likewise.
502         (return_command): Use select_frame and print_stack_frame rather
503         than frame_command and select_frame_command.
504         (func_command): Use get_current_frame rather than
505         parse_frame_specification.
506
507 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
508
509         * stack.c (func_command): Return early when there is no ARG
510         string.
511
512 2015-10-12  Andrew Burgess  <andrew.burgess@embecosm.com>
513
514         * stack.c: Include safe-ctype.h not ctype.h.
515         (parse_frame_specification): Use ISSPACE not isspace.
516         (backtrace_command): Use TOLOWER not tolower.
517
518 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
519
520         * mep-tdep.c (current_me_module): Add cast.
521         (mep_gdbarch_init): Likewise.
522
523 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
524
525         * m32c-tdep.c (m32c_move_reg_t): Replace with...
526         (m32c_write_reg_t): ...this and...
527         (m32c_read_reg_t): ...this.
528         (struct m32c_reg): Update types of read and write.
529         (m32c_raw_read): Change declaration type to m32c_read_reg_t and
530         adjust definition.
531         (m32c_banked_read): Likewise.
532         (m32c_sb_read): Likewise.
533         (m32c_part_read): Likewise.
534         (m32c_cat_read): Likewise.
535         (m32c_r3r2r1r0_read): Likewise.
536         (m32c_raw_write): Change declaration type to m32c_write_reg_t
537         and adjust definition.
538         (m32c_banked_write): Likewise.
539         (m32c_sb_write): Likewise.
540         (m32c_part_write): Likewise.
541         (m32c_cat_write): Likewise.
542         (m32c_r3r2r1r0_write): Likewise.
543
544 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
545
546         * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
547
548 2015-10-12  Simon Marchi  <simon.marchi@polymtl.ca>
549
550         * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
551         gdb_sys_no_syscall instead of -1.
552
553 2015-10-12  Yao Qi  <yao.qi@linaro.org>
554
555         * NEWS: Mention the change.
556
557 2015-10-12  Yao Qi  <yao.qi@linaro.org>
558
559         * arch/aarch64-insn.c (emit_load_store): Rename to ...
560         (aarch64_emit_load_store): ... it.  All callers updated.
561
562 2015-10-12  Yao Qi  <yao.qi@linaro.org>
563
564         * arch/aarch64-insn.c (emit_insn): Rename to ...
565         (aarch64_emit_insn): ... it.  All callers updated.
566
567 2015-10-12  Yao Qi  <yao.qi@linaro.org>
568
569         * aarch64-linux-tdep.c: Include arch-utils.h.
570         (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
571         set_gdbarch_displaced_step_copy_insn,
572         set_gdbarch_displaced_step_fixup,
573         set_gdbarch_displaced_step_free_closure,
574         set_gdbarch_displaced_step_location,
575         and set_gdbarch_displaced_step_hw_singlestep.
576         * aarch64-tdep.c (struct displaced_step_closure): New.
577         (struct aarch64_displaced_step_data): New.
578         (aarch64_displaced_step_b): New function.
579         (aarch64_displaced_step_b_cond): Likewise.
580         (aarch64_register): Likewise.
581         (aarch64_displaced_step_cb): Likewise.
582         (aarch64_displaced_step_tb): Likewise.
583         (aarch64_displaced_step_adr): Likewise.
584         (aarch64_displaced_step_ldr_literal): Likewise.
585         (aarch64_displaced_step_others): Likewise.
586         (aarch64_displaced_step_copy_insn): Likewise.
587         (aarch64_displaced_step_fixup): Likewise.
588         (aarch64_displaced_step_hw_singlestep): Likewise.
589         * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
590         (aarch64_displaced_step_copy_insn): Declare.
591         (aarch64_displaced_step_fixup): Declare.
592         (aarch64_displaced_step_hw_singlestep): Declare.
593         * arch/aarch64-insn.c (emit_insn): Moved from
594         gdbserver/linux-aarch64-low.c.
595         (emit_load_store): Likewise.
596         * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
597         gdbserver/linux-aarch64-low.c.
598         (struct aarch64_register): Likewise.
599         (struct aarch64_memory_operand): Likewise.
600         (ENCODE): Likewise.
601         (can_encode_int32): New macro.
602         (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
603         (emit_tb, emit_nop): Likewise.
604         (emit_insn): Declare.
605         (emit_load_store): Declare.
606
607 2015-10-12  Yao Qi  <yao.qi@linaro.org>
608
609         * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
610         gdbserver/linux-aarch64-low.c.
611         (aarch64_relocate_instruction): Likewise.
612         * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
613         (struct aarch64_insn_data): Moved from
614         gdbserver/linux-aarch64-low.c.
615         (struct aarch64_insn_visitor): Likewise.
616         (aarch64_relocate_instruction): Declare.
617
618 2015-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
619
620         * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
621         EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
622         to the returned value.
623
624 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
625
626         * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
627         is large enough for BIT_SIZE.  Update function comment.
628
629 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
630
631         * ada-lang.c (ada_value_primitive_packed_val): Move
632         src_len variable to local block where used.  Override
633         BIT_SIZE if bigger than size of resolved type.
634
635 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
636
637         * gdbtypes.h (is_scalar_type): Add extern declaration.
638         * gdbtypes.c (is_scalar_type): Make non-static.
639         * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
640         to compute IS_SCALAR instead of doing it ourselves.
641
642 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
643
644         * ada-lang.c (ada_value_primitive_packed_val): Rework handling
645         of case where TYPE is dynamic.
646
647 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
648
649         * ada-lang.c (ada_unpack_from_contents): New function,
650         extracted from ada_value_primitive_packed_val.
651         (ada_value_primitive_packed_val): Replace extracted out code
652         by call to ada_unpack_from_contents.
653
654 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
655
656         * ada-lang.c (ada_value_primitive_packed_val): Reorder local
657         variable declarations.
658
659 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
660
661         * ada-lang.c (ada_value_primitive_packed_val): Change the type
662         of local variables src and unpacked to "gdb_type *" instead of
663         "unsigned char *".
664
665 2015-10-09  Joel Brobecker  <brobecker@adacore.com>
666
667         * ada-lang.c (ada_value_primitive_packed_val): Make the name
668         of various local variables more explicit and consistent.
669         No real code change otherwise.
670
671 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
672
673         * i386-tdep.h (struct gdbarch_tdep): Change type of
674         register_reggroup_p to gdbarch_register_reggroup_p_ftype.
675
676 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
677
678         * cris-tdep.c (struct instruction_environment): Change type of
679         byte_order to enum bfd_endian.
680
681 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
682
683         * arm-linux-tdep.c (arm_canonicalize_syscall): Add
684         enum gdb_syscall casts.
685
686 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
687
688         * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
689         * arm-tdep.c (struct stack_item): Likewise.
690         (push_stack_item): Add gdb_byte* cast.
691         * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
692         (push_stack_item): Add gdb_byte* cast.
693         * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
694         and add cast.
695         * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
696         (push_stack_item): Add gdb_byte* cast.
697         * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
698         add cast.
699         * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
700         gdb_byte*.
701         * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
702         gdb_byte* and remove unnecessary cast.
703         (h8300h_extract_return_value): Likewise.
704         (h8300_store_return_value): Change type of valbuf to gdb_byte*.
705         (h8300h_store_return_value): Likewise.
706         * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
707         gdb_byte* and remove unnecessary cast.
708         * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
709         and add cast.
710         * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
711         gdb_byte* and remove unnecessary cast.
712         (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
713         valbuf.
714         * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
715         (mep_pseudo_cr64_read): Likewise.
716         (mep_pseudo_csr_write): Likewise.
717         (mep_pseudo_cr32_write): Likewise.
718         (mep_pseudo_cr64_write): Likewise.
719         * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
720         gdb_byte* and add cast.
721         * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
722         gdb_byte* and remove unnecessary cast.
723         (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
724         valbuf.
725         * p-valprint.c (print_scalar_formatted): Change type of valaddr to
726         gdb_byte*.
727         * printcmd.c (void): Likewise.
728         * python/py-inferior.c (infpy_read_memory): Change type of buffer to
729         gdb_byte* and add cast.
730         (infpy_write_memory): Likewise.
731         (infpy_search_memory): Likewise.
732         * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
733         and add cast.
734         (regcache_raw_write_unsigned): Likewise.
735         (regcache_cooked_write_signed): Likewise.
736         (regcache_cooked_write_unsigned): Likewise.
737         * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
738         gdb_byte*.
739
740 2015-10-09  Simon Marchi  <simon.marchi@ericsson.com>
741
742         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
743         * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
744
745 2015-10-09  Eli Zaretskii  <eliz@gnu.org>
746
747         * stack.c (print_stack_frame):
748         * utils.c (printchar): Fix typos in commentary.
749
750 2015-10-08  Iain Buclaw  <ibuclaw@gdcproject.org>
751
752         * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
753         (PostfixExpression): Support `expr.sizeof' expressions.
754         (PrimaryExpression): Support `typeof(expr)' expressions.
755
756 2015-10-08  Maciej W. Rozycki  <macro@imgtec.com>
757
758         * MAINTAINERS: Update my email address.
759
760 2015-10-08  Markus Metzger  <markus.t.metzger@intel.com>
761
762         * record-btrace.c (record_btrace_resume): Fix void return.
763
764 2015-10-07  Yao Qi  <yao.qi@linaro.org>
765
766         * aarch64-tdep.c: Include opcode/aarch64.h.
767         (submask): Move it above.
768         (bit): Likewise.
769         (bits): Likewise.
770         (aarch64_software_single_step): Call aarch64_decode_insn.
771         Decode instruction by aarch64_inst instead of using
772         aarch64_decode_bcond and decode_masked_match.
773
774 2015-10-06  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
775
776         * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
777         only when the file is binary.
778
779 2015-10-02  James Bowman  <james.bowman@ftdichip.com>
780
781         * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
782         subroutine handling.
783
784 2015-10-01  Simon Marchi  <simon.marchi@ericsson.com>
785
786         * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
787
788 2015-09-30  Doug Evans  <dje@google.com>
789
790         * dwarf2read.c (setup_type_unit_groups): Add comment.
791
792 2015-09-30  Pedro Alves  <palves@redhat.com>
793
794         * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
795         * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
796         (x86_linux_create_target): Don't install
797         x86_linux_always_non_stop_p.
798
799 2015-09-30  Don Breazeal  <donb@codesourcery.com>
800
801         * remote.c (remote_parse_stop_reply): Call strprefix instead
802         of strncmp.
803
804 2015-09-30  Simon Marchi  <simon.marchi@ericsson.com>
805
806         * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
807         * gdbarch.h: Regenerate.
808         * i386-tdep.c (i386_gdbarch_init): Remove cast to
809         struct gdbarch_tdep_info *.
810         * mips-tdep.c (mips_gdbarch_init): Likewise.
811         * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
812         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
813         * spu-multiarch.c (spu_gdbarch): Likewise.
814
815 2015-09-30  Kevin Buettner  <kevinb@redhat.com>
816
817         * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
818         record a NULL value.
819
820 2015-09-29  Kevin Buettner  <kevinb@redhat.com>
821
822         * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
823         and union arguments the same as pointer arguments when determining
824         size of argument.
825
826 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
827
828         * ft32-tdep.c: #include "opcode/ft32.h".
829         Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
830         (ft32_analyze_prologue): Use FT32_* macros.
831
832 2015-09-28  Simon Marchi  <simon.marchi@ericsson.com>
833
834         * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
835         comment.
836
837 2015-09-28  Doug Evans  <dje@google.com>
838
839         * MAINTAINERS: Add Iain Buclaw as D language maintainer.
840
841 2015-09-28  Doug Evans  <dje@google.com>
842
843         * common/filestuff.c (make_cleanup_close): Update comment.
844
845 2015-09-26  Simon Marchi  <simon.marchi@polymtl.ca>
846
847         * btrace.c (parse_xml_btrace_block): Fix cast of
848         xml_find_attribute's return value.
849         * memory-map.c (memory_map_start_memory): Likewise.
850         * solib-svr4.c (library_list_start_library): Likewise.
851         * solib-target.c (library_list_start_segment): Likewise.
852         (library_list_start_section): Likewise.
853         * tracepoint.c (traceframe_info_start_memory): Likewise.
854
855 2015-09-26  Iain Buclaw  <ibuclaw@gdcproject.org>
856
857         * d-namespace.c (d_lookup_symbol): New arg langdef.
858         All callers updated.  Support looking up symbol as a primitive type.
859         (lookup_module_scope): New arg langdef.  All callers updated.
860         Call d_lookup_symbol directly for simple bare symbols.
861
862 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
863
864         * macrocmd.c (print_macro_callback): Add cast(s).
865         * macrotab.c (macro_bcache_str): Likewise.
866         (new_macro_definition): Likewise.
867         * main.c (captured_main): Likewise.
868         * maint.c (print_bfd_section_info): Likewise.
869         * mdebugread.c (mdebug_build_psymtabs): Likewise.
870         (basic_type): Likewise.
871         * memattr.c (mem_region_cmp): Likewise.
872         * memory-map.c (memory_map_start_memory): Likewise.
873         (memory_map_end_memory): Likewise.
874         (memory_map_start_property): Likewise.
875         (memory_map_end_property): Likewise.
876         (clear_result): Likewise.
877         * memrange.c (compare_mem_ranges): Likewise.
878         * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
879         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
880         * mi/mi-console.c (mi_console_file_delete): Likewise.
881         (mi_console_file_fputs): Likewise.
882         (mi_console_raw_packet): Likewise.
883         (mi_console_file_flush): Likewise.
884         (mi_console_set_raw): Likewise.
885         * mi/mi-interp.c (mi_interpreter_resume): Likewise.
886         (mi_new_thread): Likewise.
887         (mi_thread_exit): Likewise.
888         (mi_record_changed): Likewise.
889         (mi_inferior_added): Likewise.
890         (mi_inferior_appeared): Likewise.
891         (mi_inferior_exit): Likewise.
892         (mi_inferior_removed): Likewise.
893         (mi_interp_data): Likewise.
894         (mi_on_normal_stop): Likewise.
895         (mi_traceframe_changed): Likewise.
896         (mi_tsv_created): Likewise.
897         (mi_tsv_deleted): Likewise.
898         (mi_tsv_modified): Likewise.
899         (mi_breakpoint_created): Likewise.
900         (mi_breakpoint_deleted): Likewise.
901         (mi_breakpoint_modified): Likewise.
902         (mi_output_running_pid): Likewise.
903         (mi_inferior_count): Likewise.
904         (mi_solib_loaded): Likewise.
905         (mi_solib_unloaded): Likewise.
906         (mi_command_param_changed): Likewise.
907         (mi_memory_changed): Likewise.
908         (report_initial_inferior): Likewise.
909         (mi_ui_out): Likewise.
910         (mi_set_logging): Likewise.
911         * mi/mi-main.c (collect_cores): Likewise.
912         (print_one_inferior): Likewise.
913         (free_vector_of_ints): Likewise.
914         (free_splay_tree): Likewise.
915         (mi_execute_command): Likewise.
916         * mi/mi-out.c (mi_table_body): Likewise.
917         (mi_table_end): Likewise.
918         (mi_table_header): Likewise.
919         (mi_begin): Likewise.
920         (mi_end): Likewise.
921         (mi_field_int): Likewise.
922         (mi_field_string): Likewise.
923         (mi_field_fmt): Likewise.
924         (mi_flush): Likewise.
925         (mi_redirect): Likewise.
926         (field_separator): Likewise.
927         (mi_open): Likewise.
928         (mi_close): Likewise.
929         (mi_out_buffered): Likewise.
930         (mi_out_rewind): Likewise.
931         (mi_out_put): Likewise.
932         (mi_version): Likewise.
933         (mi_out_data_dtor): Likewise.
934         * mi/mi-parse.c (mi_parse_cleanup): Likewise.
935         * microblaze-tdep.c (microblaze_frame_cache): Likewise.
936         * minidebug.c (lzma_open): Likewise.
937         (lzma_pread): Likewise.
938         (lzma_close): Likewise.
939         (lzma_stat): Likewise.
940         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
941         * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
942         (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
943         * mips-tdep.c (mips_insn16_frame_cache): Likewise.
944         (mips_micro_frame_cache): Likewise.
945         (mips_insn32_frame_cache): Likewise.
946         (mips_stub_frame_cache): Likewise.
947         (gdb_print_insn_mips): Likewise.
948         (value_of_mips_user_reg): Likewise.
949         (mips_gdbarch_init): Likewise.
950         * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
951         * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
952         (mipsnbsd_supply_gregset): Likewise.
953         * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
954         (am33_collect_gregset_method): Likewise.
955         (am33_collect_fpregset_method): Likewise.
956         * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
957         * moxie-tdep.c (moxie_frame_cache): Likewise.
958         * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
959         (msp430_analyze_frame_prologue): Likewise.
960         * mt-tdep.c (mt_frame_unwind_cache): Likewise.
961         * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
962         (nios2_collect_gregset): Likewise.
963         * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
964         (nios2_stub_frame_cache): Likewise.
965         * objc-lang.c (find_methods): Likewise.
966         * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
967         (get_objfile_pspace_data): Likewise.
968         (get_objfile_bfd_data): Likewise.
969         (objfile_bfd_data_free): Likewise.
970         (add_to_objfile_sections): Likewise.
971         (do_free_objfile_cleanup): Likewise.
972         (resume_section_map_updates_cleanup): Likewise.
973         * opencl-lang.c (builtin_opencl_type): Likewise.
974         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
975         * osdata.c (osdata_start_osdata): Likewise.
976         (osdata_start_item): Likewise.
977         (osdata_start_column): Likewise.
978         (osdata_end_column): Likewise.
979         (clear_parsing_data): Likewise.
980         (osdata_free_cleanup): Likewise.
981         * parse.c (type_stack_cleanup): Likewise.
982         (exp_uses_objfile_iter): Likewise.
983         * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
984         (ppc_linux_collect_gregset): Likewise.
985         (ppu2spu_prev_arch): Likewise.
986         (ppu2spu_this_id): Likewise.
987         (ppu2spu_prev_register): Likewise.
988         (ppu2spu_unwind_register): Likewise.
989         (ppu2spu_sniffer): Likewise.
990         (ppu2spu_dealloc_cache): Likewise.
991         (ppc_linux_init_abi): Likewise.
992         * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
993         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
994         * progspace.c (restore_program_space): Likewise.
995         * psymtab.c (find_pc_sect_psymtab): Likewise.
996         (compare_psymbols): Likewise.
997         (psymbol_bcache_full): Likewise.
998         (allocate_psymtab): Likewise.
999         (discard_psymtabs_upto): Likewise.
1000         * python/py-block.c (set_block): Likewise.
1001         (del_objfile_blocks): Likewise.
1002         * python/py-breakpoint.c (build_bp_list): Likewise.
1003         * python/py-inferior.c (inferior_to_inferior_object): Likewise.
1004         (build_inferior_list): Likewise.
1005         (py_free_inferior): Likewise.
1006         * python/py-objfile.c (py_free_objfile): Likewise.
1007         (objfile_to_objfile_object): Likewise.
1008         * python/py-prettyprint.c (py_restore_tstate): Likewise.
1009         * python/py-progspace.c (py_free_pspace): Likewise.
1010         (pspace_to_pspace_object): Likewise.
1011         * python/py-symbol.c (set_symbol): Likewise.
1012         (del_objfile_symbols): Likewise.
1013         * python/py-symtab.c (set_sal): Likewise.
1014         (set_symtab): Likewise.
1015         (del_objfile_symtab): Likewise.
1016         (del_objfile_sal): Likewise.
1017         * python/py-type.c (save_objfile_types): Likewise.
1018         (set_type): Likewise.
1019         * python/py-unwind.c (pyuw_prev_register): Likewise.
1020         (pyuw_on_new_gdbarch): Likewise.
1021         * python/py-utils.c (py_decref): Likewise.
1022         (py_xdecref): Likewise.
1023         (gdb_py_generic_dict): Likewise.
1024         * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
1025         (gdbpy_clone_xmethod_worker_data): Likewise.
1026         (gdbpy_get_xmethod_arg_types): Likewise.
1027         (gdbpy_get_xmethod_result_type): Likewise.
1028         (gdbpy_invoke_xmethod): Likewise.
1029         * python/python.c (gdbpy_apply_type_printers): Likewise.
1030         (gdbpy_free_type_printers): Likewise.
1031         * record-btrace.c (record_btrace_disable_callback): Likewise.
1032         (bfcache_hash): Likewise.
1033         (bfcache_eq): Likewise.
1034         (btrace_get_frame_function): Likewise.
1035         (record_btrace_frame_unwind_stop_reason): Likewise.
1036         (record_btrace_frame_this_id): Likewise.
1037         (record_btrace_frame_prev_register): Likewise.
1038         (record_btrace_frame_dealloc_cache): Likewise.
1039         * record-full.c (record_full_message_wrapper): Likewise.
1040         (record_full_save_cleanups): Likewise.
1041         * regcache.c (regcache_descr): Likewise.
1042         (do_regcache_xfree): Likewise.
1043         (do_regcache_invalidate): Likewise.
1044         (do_cooked_read): Likewise.
1045         (regcache_transfer_regset): Likewise.
1046         * reggroups.c (reggroup_add): Likewise.
1047         (reggroup_next): Likewise.
1048         (reggroup_prev): Likewise.
1049         * remote-fileio.c (do_remote_fileio_request): Likewise.
1050         * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
1051         (do_notif_event_xfree): Likewise.
1052         * remote.c (get_remote_arch_state): Likewise.
1053         (remote_pspace_data_cleanup): Likewise.
1054         (get_remote_exec_file): Likewise.
1055         (set_pspace_remote_exec_file): Likewise.
1056         (compare_pnums): Likewise.
1057         (clear_threads_listing_context): Likewise.
1058         (remote_newthread_step): Likewise.
1059         (start_thread): Likewise.
1060         (end_thread): Likewise.
1061         (remove_child_of_pending_fork): Likewise.
1062         (remove_stop_reply_for_inferior): Likewise.
1063         (remove_stop_reply_of_remote_state): Likewise.
1064         (remote_notif_remove_once_on_match): Likewise.
1065         (stop_reply_match_ptid_and_ws): Likewise.
1066         (kill_child_of_pending_fork): Likewise.
1067         (register_remote_g_packet_guess): Likewise.
1068         (remote_read_description_p): Likewise.
1069         (remote_read_description): Likewise.
1070         (free_actions_list_cleanup_wrapper): Likewise.
1071         (remote_async_serial_handler): Likewise.
1072         * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
1073         (rl78_analyze_frame_prologue): Likewise.
1074         * rs6000-tdep.c (ppc_supply_gregset): Likewise.
1075         (ppc_supply_fpregset): Likewise.
1076         (ppc_supply_vsxregset): Likewise.
1077         (ppc_supply_vrregset): Likewise.
1078         (ppc_collect_gregset): Likewise.
1079         (ppc_collect_fpregset): Likewise.
1080         (ppc_collect_vsxregset): Likewise.
1081         (ppc_collect_vrregset): Likewise.
1082         (e500_move_ev_register): Likewise.
1083         (do_regcache_raw_write): Likewise.
1084         (rs6000_frame_cache): Likewise.
1085         (rs6000_epilogue_frame_cache): Likewise.
1086         (rs6000_gdbarch_init): Likewise.
1087         * rx-tdep.c (rx_get_opcode_byte): Likewise.
1088         (rx_analyze_frame_prologue): Likewise.
1089         (rx_frame_type): Likewise.
1090         (rx_frame_sniffer_common): Likewise.
1091         * s390-linux-tdep.c (s390_check_for_saved): Likewise.
1092         (s390_frame_unwind_cache): Likewise.
1093         (s390_stub_frame_unwind_cache): Likewise.
1094         (s390_sigtramp_frame_unwind_cache): Likewise.
1095         * score-tdep.c (score_make_prologue_cache): Likewise.
1096         * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
1097         (sentinel_frame_prev_arch): Likewise.
1098         * ser-base.c (fd_event): Likewise.
1099         (push_event): Likewise.
1100         (ser_base_write): Likewise.
1101         * ser-pipe.c (pipe_close): Likewise.
1102         * serial.c (serial_write): Likewise.
1103         * sh-tdep.c (sh_frame_cache): Likewise.
1104         (sh_stub_this_id): Likewise.
1105         * sh64-tdep.c (sh64_frame_cache): Likewise.
1106         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
1107         (library_list_start_library): Likewise.
1108         (library_list_start_list): Likewise.
1109         (solib_aix_free_library_list): Likewise.
1110         * solib-darwin.c (get_darwin_info): Likewise.
1111         * solib-dsbt.c (get_dsbt_info): Likewise.
1112         * solib-spu.c (append_ocl_sos): Likewise.
1113         * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1114         (get_svr4_info): Likewise.
1115         (library_list_start_library): Likewise.
1116         (svr4_library_list_start_list): Likewise.
1117         (hash_probe_and_action): Likewise.
1118         (equal_probe_and_action): Likewise.
1119         (svr4_update_solib_event_breakpoint): Likewise.
1120         (set_solib_svr4_fetch_link_map_offsets): Likewise.
1121         (svr4_fetch_link_map_offsets): Likewise.
1122         (svr4_have_link_map_offsets): Likewise.
1123         * solib-target.c (library_list_start_segment): Likewise.
1124         (library_list_start_section): Likewise.
1125         (library_list_start_library): Likewise.
1126         (library_list_end_library): Likewise.
1127         (library_list_start_list): Likewise.
1128         (solib_target_free_library_list): Likewise.
1129         * solib.c (solib_ops): Likewise.
1130         (set_solib_ops): Likewise.
1131         * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1132         * sparc-tdep.c (sparc_frame_cache): Likewise.
1133         (sparc32_frame_cache): Likewise.
1134         (sparc32_supply_gregset): Likewise.
1135         (sparc32_collect_gregset): Likewise.
1136         (sparc32_supply_fpregset): Likewise.
1137         (sparc32_collect_fpregset): Likewise.
1138         * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1139         * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1140         (sparc64_collect_gregset): Likewise.
1141         (sparc64_supply_fpregset): Likewise.
1142         (sparc64_collect_fpregset): Likewise.
1143         * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
1144         * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1145         * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1146         (sparc64obsd_trapframe_cache): Likewise.
1147         * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
1148         * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1149         * spu-multiarch.c (spu_gdbarch): Likewise.
1150         * spu-tdep.c (spu_frame_unwind_cache): Likewise.
1151         (spu2ppu_prev_arch): Likewise.
1152         (spu2ppu_this_id): Likewise.
1153         (spu2ppu_prev_register): Likewise.
1154         (spu2ppu_dealloc_cache): Likewise.
1155         (spu_dis_asm_print_address): Likewise.
1156         (gdb_print_insn_spu): Likewise.
1157         (spu_get_overlay_table): Likewise.
1158         * stabsread.c (rs6000_builtin_type): Likewise.
1159         * stack.c (do_print_variable_and_value): Likewise.
1160         * stap-probe.c (get_stap_base_address_1): Likewise.
1161         * symfile-debug.c (debug_qf_has_symbols): Likewise.
1162         (debug_qf_find_last_source_symtab): Likewise.
1163         (debug_qf_forget_cached_source_info): Likewise.
1164         (debug_qf_map_symtabs_matching_filename): Likewise.
1165         (debug_qf_lookup_symbol): Likewise.
1166         (debug_qf_print_stats): Likewise.
1167         (debug_qf_dump): Likewise.
1168         (debug_qf_relocate): Likewise.
1169         (debug_qf_expand_symtabs_for_function): Likewise.
1170         (debug_qf_expand_all_symtabs): Likewise.
1171         (debug_qf_expand_symtabs_with_fullname): Likewise.
1172         (debug_qf_map_matching_symbols): Likewise.
1173         (debug_qf_expand_symtabs_matching): Likewise.
1174         (debug_qf_find_pc_sect_compunit_symtab): Likewise.
1175         (debug_qf_map_symbol_filenames): Likewise.
1176         (debug_sym_get_probes): Likewise.
1177         (debug_sym_new_init): Likewise.
1178         (debug_sym_init): Likewise.
1179         (debug_sym_read): Likewise.
1180         (debug_sym_read_psymbols): Likewise.
1181         (debug_sym_finish): Likewise.
1182         (debug_sym_offsets): Likewise.
1183         (debug_sym_read_linetable): Likewise.
1184         (debug_sym_relocate): Likewise.
1185         (uninstall_symfile_debug_logging): Likewise.
1186         * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
1187         * symfile.c (place_section): Likewise.
1188         (add_section_size_callback): Likewise.
1189         (load_progress): Likewise.
1190         (load_section_callback): Likewise.
1191         (clear_memory_write_data): Likewise.
1192         (allocate_symtab): Likewise.
1193         * symmisc.c (maintenance_expand_file_matcher): Likewise.
1194         * symtab.c (lookup_symtab_callback): Likewise.
1195         (hash_demangled_name_entry): Likewise.
1196         (eq_demangled_name_entry): Likewise.
1197         (get_symbol_cache): Likewise.
1198         (symbol_cache_cleanup): Likewise.
1199         (set_symbol_cache_size): Likewise.
1200         (symbol_cache_flush): Likewise.
1201         (maintenance_print_symbol_cache): Likewise.
1202         (maintenance_print_symbol_cache_statistics): Likewise.
1203         (delete_filename_seen_cache): Likewise.
1204         (output_partial_symbol_filename): Likewise.
1205         (search_symbols_file_matches): Likewise.
1206         (search_symbols_name_matches): Likewise.
1207         (do_free_completion_list): Likewise.
1208         (maybe_add_partial_symtab_filename): Likewise.
1209         (get_main_info): Likewise.
1210         (main_info_cleanup): Likewise.
1211         * target-dcache.c (target_dcache_cleanup): Likewise.
1212         (target_dcache_init_p): Likewise.
1213         (target_dcache_invalidate): Likewise.
1214         (target_dcache_get): Likewise.
1215         (target_dcache_get_or_init): Likewise.
1216         * target-descriptions.c (target_find_description): Likewise.
1217         (tdesc_find_type): Likewise.
1218         (tdesc_data_cleanup): Likewise.
1219         (tdesc_find_arch_register): Likewise.
1220         (tdesc_register_name): Likewise.
1221         (tdesc_register_type): Likewise.
1222         (tdesc_register_reggroup_p): Likewise.
1223         (set_tdesc_pseudo_register_name): Likewise.
1224         (set_tdesc_pseudo_register_type): Likewise.
1225         (set_tdesc_pseudo_register_reggroup_p): Likewise.
1226         (tdesc_use_registers): Likewise.
1227         (free_target_description): Likewise.
1228         * target-memory.c (compare_block_starting_address): Likewise.
1229         (cleanup_request_data): Likewise.
1230         (cleanup_write_requests_vector): Likewise.
1231         * target.c (open_target): Likewise.
1232         (cleanup_restore_target_terminal): Likewise.
1233         (free_memory_read_result_vector): Likewise.
1234         * thread.c (disable_thread_stack_temporaries): Likewise.
1235         (finish_thread_state_cleanup): Likewise.
1236         (do_restore_current_thread_cleanup): Likewise.
1237         (restore_current_thread_cleanup_dtor): Likewise.
1238         (set_thread_refcount): Likewise.
1239         (tp_array_compar): Likewise.
1240         (do_captured_thread_select): Likewise.
1241         * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1242         (tic6x_stub_this_id): Likewise.
1243         * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1244         * top.c (do_restore_instream_cleanup): Likewise.
1245         (gdb_readline_wrapper_cleanup): Likewise.
1246         (kill_or_detach): Likewise.
1247         (print_inferior_quit_action): Likewise.
1248         * tracefile-tfile.c (match_blocktype): Likewise.
1249         (build_traceframe_info): Likewise.
1250         * tracefile.c (trace_file_writer_xfree): Likewise.
1251         * tracepoint.c (memrange_cmp): Likewise.
1252         (do_collect_symbol): Likewise.
1253         (do_clear_collection_list): Likewise.
1254         (do_restore_current_traceframe_cleanup): Likewise.
1255         (restore_current_traceframe_cleanup_dtor): Likewise.
1256         (free_current_marker): Likewise.
1257         (traceframe_info_start_memory): Likewise.
1258         (traceframe_info_start_tvar): Likewise.
1259         (free_result): Likewise.
1260         * tramp-frame.c (tramp_frame_cache): Likewise.
1261         * tui/tui-file.c (tui_file_delete): Likewise.
1262         (tui_fileopen): Likewise.
1263         (tui_sfileopen): Likewise.
1264         (tui_file_isatty): Likewise.
1265         (tui_file_rewind): Likewise.
1266         (tui_file_put): Likewise.
1267         (tui_file_fputs): Likewise.
1268         (tui_file_get_strbuf): Likewise.
1269         (tui_file_adjust_strbuf): Likewise.
1270         (tui_file_flush): Likewise.
1271         * tui/tui-layout.c (make_command_window): Likewise.
1272         (make_data_window): Likewise.
1273         (show_source_disasm_command): Likewise.
1274         (show_data): Likewise.
1275         (make_source_or_disasm_window): Likewise.
1276         (show_source_or_disasm_and_command): Likewise.
1277         * tui/tui-out.c (tui_field_int): Likewise.
1278         (tui_field_string): Likewise.
1279         (tui_field_fmt): Likewise.
1280         (tui_text): Likewise.
1281         * typeprint.c (hash_typedef_field): Likewise.
1282         (eq_typedef_field): Likewise.
1283         (do_free_typedef_hash): Likewise.
1284         (copy_typedef_hash_element): Likewise.
1285         (do_free_global_table): Likewise.
1286         (find_global_typedef): Likewise.
1287         (find_typedef_in_hash): Likewise.
1288         * ui-file.c (ui_file_write_for_put): Likewise.
1289         (do_ui_file_xstrdup): Likewise.
1290         (mem_file_delete): Likewise.
1291         (mem_file_rewind): Likewise.
1292         (mem_file_put): Likewise.
1293         (mem_file_write): Likewise.
1294         (stdio_file_delete): Likewise.
1295         (stdio_file_flush): Likewise.
1296         (stdio_file_read): Likewise.
1297         (stdio_file_write): Likewise.
1298         (stdio_file_write_async_safe): Likewise.
1299         (stdio_file_fputs): Likewise.
1300         (stdio_file_isatty): Likewise.
1301         (stdio_file_fseek): Likewise.
1302         (tee_file_delete): Likewise.
1303         (tee_file_flush): Likewise.
1304         (tee_file_write): Likewise.
1305         (tee_file_fputs): Likewise.
1306         (tee_file_isatty): Likewise.
1307         * ui-out.c (do_cleanup_table_end): Likewise.
1308         (do_cleanup_end): Likewise.
1309         * user-regs.c (user_reg_add): Likewise.
1310         (user_reg_map_name_to_regnum): Likewise.
1311         (usernum_to_user_reg): Likewise.
1312         (maintenance_print_user_registers): Likewise.
1313         * utils.c (do_bfd_close_cleanup): Likewise.
1314         (do_fclose_cleanup): Likewise.
1315         (do_obstack_free): Likewise.
1316         (do_ui_file_delete): Likewise.
1317         (do_ui_out_redirect_pop): Likewise.
1318         (do_free_section_addr_info): Likewise.
1319         (restore_integer): Likewise.
1320         (do_unpush_target): Likewise.
1321         (do_htab_delete_cleanup): Likewise.
1322         (do_restore_ui_file): Likewise.
1323         (do_value_free): Likewise.
1324         (do_free_so): Likewise.
1325         (free_current_contents): Likewise.
1326         (do_regfree_cleanup): Likewise.
1327         (core_addr_hash): Likewise.
1328         (core_addr_eq): Likewise.
1329         (do_free_char_ptr_vec): Likewise.
1330         * v850-tdep.c (v850_frame_cache): Likewise.
1331         * varobj.c (do_free_variable_cleanup): Likewise.
1332         * vax-tdep.c (vax_supply_gregset): Likewise.
1333         (vax_frame_cache): Likewise.
1334         * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1335         * xml-support.c (gdb_xml_body_text): Likewise.
1336         (gdb_xml_values_cleanup): Likewise.
1337         (gdb_xml_start_element): Likewise.
1338         (gdb_xml_start_element_wrapper): Likewise.
1339         (gdb_xml_end_element): Likewise.
1340         (gdb_xml_end_element_wrapper): Likewise.
1341         (gdb_xml_cleanup): Likewise.
1342         (gdb_xml_fetch_external_entity): Likewise.
1343         (gdb_xml_parse_attr_enum): Likewise.
1344         (xinclude_start_include): Likewise.
1345         (xinclude_end_include): Likewise.
1346         (xml_xinclude_default): Likewise.
1347         (xml_xinclude_start_doctype): Likewise.
1348         (xml_xinclude_end_doctype): Likewise.
1349         (xml_xinclude_cleanup): Likewise.
1350         (xml_fetch_content_from_file): Likewise.
1351         * xml-syscall.c (free_syscalls_info): Likewise.
1352         (syscall_start_syscall): Likewise.
1353         * xml-tdesc.c (tdesc_end_arch): Likewise.
1354         (tdesc_end_osabi): Likewise.
1355         (tdesc_end_compatible): Likewise.
1356         (tdesc_start_target): Likewise.
1357         (tdesc_start_feature): Likewise.
1358         (tdesc_start_reg): Likewise.
1359         (tdesc_start_union): Likewise.
1360         (tdesc_start_struct): Likewise.
1361         (tdesc_start_flags): Likewise.
1362         (tdesc_start_field): Likewise.
1363         (tdesc_start_vector): Likewise.
1364         (fetch_available_features_from_target): Likewise.
1365         * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1366         * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1367         (xtensa_frame_cache): Likewise.
1368         (xtensa_frame_prev_register): Likewise.
1369         (xtensa_extract_return_value): Likewise.
1370
1371 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1372
1373         * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1374         (aarch64_make_stub_cache): Likewise.
1375         (value_of_aarch64_user_reg): Likewise.
1376         * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1377         (get_ada_inferior_data): Likewise.
1378         (get_ada_pspace_data): Likewise.
1379         (ada_pspace_data_cleanup): Likewise.
1380         (ada_complete_symbol_matcher): Likewise.
1381         (ada_exc_search_name_matches): Likewise.
1382         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1383         (get_ada_tasks_inferior_data): Likewise.
1384         * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1385         (splay_obstack_alloc): Likewise.
1386         (splay_obstack_free): Likewise.
1387         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1388         (alpha_linux_collect_gregset): Likewise.
1389         (alpha_linux_supply_fpregset): Likewise.
1390         (alpha_linux_collect_fpregset): Likewise.
1391         * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1392         * alpha-tdep.c (alpha_lds): Likewise.
1393         (alpha_sts): Likewise.
1394         (alpha_sigtramp_frame_unwind_cache): Likewise.
1395         (alpha_heuristic_frame_unwind_cache): Likewise.
1396         (alpha_supply_int_regs): Likewise.
1397         (alpha_fill_int_regs): Likewise.
1398         (alpha_supply_fp_regs): Likewise.
1399         (alpha_fill_fp_regs): Likewise.
1400         * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1401         (alphanbsd_aout_supply_gregset): Likewise.
1402         (alphanbsd_supply_gregset): Likewise.
1403         * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1404         (amd64_x32_linux_init_abi): Likewise.
1405         * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1406         (amd64_collect_native_gregset): Likewise.
1407         * amd64-tdep.c (amd64_frame_cache): Likewise.
1408         (amd64_sigtramp_frame_cache): Likewise.
1409         (amd64_epilogue_frame_cache): Likewise.
1410         (amd64_supply_fxsave): Likewise.
1411         (amd64_supply_xsave): Likewise.
1412         (amd64_collect_fxsave): Likewise.
1413         (amd64_collect_xsave): Likewise.
1414         * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1415         * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1416         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1417         (arm_linux_collect_gregset): Likewise.
1418         (arm_linux_supply_nwfpe): Likewise.
1419         (arm_linux_collect_nwfpe): Likewise.
1420         (arm_linux_supply_vfp): Likewise.
1421         (arm_linux_collect_vfp): Likewise.
1422         * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1423         (arm_prologue_unwind_stop_reason): Likewise.
1424         (arm_prologue_this_id): Likewise.
1425         (arm_prologue_prev_register): Likewise.
1426         (arm_exidx_data_free): Likewise.
1427         (arm_find_exidx_entry): Likewise.
1428         (arm_stub_this_id): Likewise.
1429         (arm_m_exception_this_id): Likewise.
1430         (arm_m_exception_prev_register): Likewise.
1431         (arm_normal_frame_base): Likewise.
1432         (gdb_print_insn_arm): Likewise.
1433         (arm_objfile_data_free): Likewise.
1434         (arm_record_special_symbol): Likewise.
1435         (value_of_arm_user_reg): Likewise.
1436         * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1437         (armbsd_supply_gregset): Likewise.
1438         * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1439         (get_auto_load_pspace_data): Likewise.
1440         (hash_loaded_script_entry): Likewise.
1441         (eq_loaded_script_entry): Likewise.
1442         (clear_section_scripts): Likewise.
1443         (collect_matching_scripts): Likewise.
1444         * auxv.c (auxv_inferior_data_cleanup): Likewise.
1445         (get_auxv_inferior_data): Likewise.
1446         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1447         * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1448         * bfd-target.c (target_bfd_xfer_partial): Likewise.
1449         (target_bfd_xclose): Likewise.
1450         (target_bfd_get_section_table): Likewise.
1451         * bfin-tdep.c (bfin_frame_cache): Likewise.
1452         * block.c (find_block_in_blockvector): Likewise.
1453         (call_site_for_pc): Likewise.
1454         (block_find_non_opaque_type_preferred): Likewise.
1455         * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1456         (signal_catchpoint_remove_location): Likewise.
1457         (signal_catchpoint_breakpoint_hit): Likewise.
1458         (signal_catchpoint_print_one): Likewise.
1459         (signal_catchpoint_print_mention): Likewise.
1460         (signal_catchpoint_print_recreate): Likewise.
1461         * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1462         * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1463         (bp_location_compare_addrs): Likewise.
1464         (get_first_locp_gte_addr): Likewise.
1465         (check_tracepoint_command): Likewise.
1466         (do_map_commands_command): Likewise.
1467         (get_breakpoint_objfile_data): Likewise.
1468         (free_breakpoint_probes): Likewise.
1469         (do_captured_breakpoint_query): Likewise.
1470         (compare_breakpoints): Likewise.
1471         (bp_location_compare): Likewise.
1472         (bpstat_remove_breakpoint_callback): Likewise.
1473         (do_delete_breakpoint_cleanup): Likewise.
1474         * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1475         (bsd_uthread_set_collect_uthread): Likewise.
1476         (bsd_uthread_activate): Likewise.
1477         (bsd_uthread_fetch_registers): Likewise.
1478         (bsd_uthread_store_registers): Likewise.
1479         * btrace.c (check_xml_btrace_version): Likewise.
1480         (parse_xml_btrace_block): Likewise.
1481         (parse_xml_btrace_pt_config_cpu): Likewise.
1482         (parse_xml_btrace_pt_raw): Likewise.
1483         (parse_xml_btrace_pt): Likewise.
1484         (parse_xml_btrace_conf_bts): Likewise.
1485         (parse_xml_btrace_conf_pt): Likewise.
1486         (do_btrace_data_cleanup): Likewise.
1487         * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1488         * charset.c (cleanup_iconv): Likewise.
1489         (do_cleanup_iterator): Likewise.
1490         * cli-out.c (cli_uiout_dtor): Likewise.
1491         (cli_table_begin): Likewise.
1492         (cli_table_body): Likewise.
1493         (cli_table_end): Likewise.
1494         (cli_table_header): Likewise.
1495         (cli_begin): Likewise.
1496         (cli_end): Likewise.
1497         (cli_field_int): Likewise.
1498         (cli_field_skip): Likewise.
1499         (cli_field_string): Likewise.
1500         (cli_field_fmt): Likewise.
1501         (cli_spaces): Likewise.
1502         (cli_text): Likewise.
1503         (cli_message): Likewise.
1504         (cli_wrap_hint): Likewise.
1505         (cli_flush): Likewise.
1506         (cli_redirect): Likewise.
1507         (out_field_fmt): Likewise.
1508         (field_separator): Likewise.
1509         (cli_out_set_stream): Likewise.
1510         * cli/cli-cmds.c (compare_symtabs): Likewise.
1511         * cli/cli-dump.c (call_dump_func): Likewise.
1512         (restore_section_callback): Likewise.
1513         * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1514         (do_restore_user_call_depth): Likewise.
1515         (do_free_command_lines_cleanup): Likewise.
1516         * coff-pe-read.c (get_section_vmas): Likewise.
1517         (pe_as16): Likewise.
1518         (pe_as32): Likewise.
1519         * coffread.c (coff_symfile_read): Likewise.
1520         * common/agent.c (agent_look_up_symbols): Likewise.
1521         * common/filestuff.c (do_close_cleanup): Likewise.
1522         * common/format.c (free_format_pieces_cleanup): Likewise.
1523         * common/vec.c (vec_o_reserve): Likewise.
1524         * compile/compile-c-support.c (print_one_macro): Likewise.
1525         * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1526         (eq_symbol_error): Likewise.
1527         (del_symbol_error): Likewise.
1528         (error_symbol_once): Likewise.
1529         (gcc_convert_symbol): Likewise.
1530         (gcc_symbol_address): Likewise.
1531         (hash_symname): Likewise.
1532         (eq_symname): Likewise.
1533         * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1534         (eq_type_map_instance): Likewise.
1535         (insert_type): Likewise.
1536         (convert_type): Likewise.
1537         * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1538         (setup_sections): Likewise.
1539         (link_hash_table_free): Likewise.
1540         (copy_sections): Likewise.
1541         * compile/compile-object-run.c (do_module_cleanup): Likewise.
1542         * compile/compile.c (compile_print_value): Likewise.
1543         (do_rmdir): Likewise.
1544         (cleanup_compile_instance): Likewise.
1545         (cleanup_unlink_file): Likewise.
1546         * completer.c (free_completion_tracker): Likewise.
1547         * corelow.c (add_to_spuid_list): Likewise.
1548         * cp-namespace.c (reset_directive_searched): Likewise.
1549         * cp-support.c (reset_directive_searched): Likewise.
1550         * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1551         (cris_frame_unwind_cache): Likewise.
1552         * d-lang.c (builtin_d_type): Likewise.
1553         * d-namespace.c (reset_directive_searched): Likewise.
1554         * dbxread.c (dbx_free_symfile_info): Likewise.
1555         (do_free_bincl_list_cleanup): Likewise.
1556         * disasm.c (hash_dis_line_entry): Likewise.
1557         (eq_dis_line_entry): Likewise.
1558         (dis_asm_print_address): Likewise.
1559         (fprintf_disasm): Likewise.
1560         (do_ui_file_delete): Likewise.
1561         * doublest.c (convert_floatformat_to_doublest): Likewise.
1562         * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1563         (dummy_frame_prev_register): Likewise.
1564         (dummy_frame_this_id): Likewise.
1565         * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1566         (cache_eq): Likewise.
1567         (cache_find): Likewise.
1568         (tailcall_frame_this_id): Likewise.
1569         (dwarf2_tailcall_prev_register_first): Likewise.
1570         (tailcall_frame_prev_register): Likewise.
1571         (tailcall_frame_dealloc_cache): Likewise.
1572         (tailcall_frame_prev_arch): Likewise.
1573         * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1574         (dwarf2_frame_set_init_reg): Likewise.
1575         (dwarf2_frame_init_reg): Likewise.
1576         (dwarf2_frame_set_signal_frame_p): Likewise.
1577         (dwarf2_frame_signal_frame_p): Likewise.
1578         (dwarf2_frame_set_adjust_regnum): Likewise.
1579         (dwarf2_frame_adjust_regnum): Likewise.
1580         (clear_pointer_cleanup): Likewise.
1581         (dwarf2_frame_cache): Likewise.
1582         (find_cie): Likewise.
1583         (dwarf2_frame_find_fde): Likewise.
1584         * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1585         (free_dwarf_expr_context_cleanup): Likewise.
1586         * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1587         (locexpr_get_frame_base): Likewise.
1588         (loclist_find_frame_base_location): Likewise.
1589         (loclist_get_frame_base): Likewise.
1590         (dwarf_expr_dwarf_call): Likewise.
1591         (dwarf_expr_get_base_type): Likewise.
1592         (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1593         (dwarf_expr_get_obj_addr): Likewise.
1594         (entry_data_value_coerce_ref): Likewise.
1595         (entry_data_value_copy_closure): Likewise.
1596         (entry_data_value_free_closure): Likewise.
1597         (get_frame_address_in_block_wrapper): Likewise.
1598         (dwarf2_evaluate_property): Likewise.
1599         (dwarf2_compile_property_to_c): Likewise.
1600         (needs_frame_read_addr_from_reg): Likewise.
1601         (needs_frame_get_reg_value): Likewise.
1602         (needs_frame_frame_base): Likewise.
1603         (needs_frame_frame_cfa): Likewise.
1604         (needs_frame_tls_address): Likewise.
1605         (needs_frame_dwarf_call): Likewise.
1606         (needs_dwarf_reg_entry_value): Likewise.
1607         (get_ax_pc): Likewise.
1608         (locexpr_read_variable): Likewise.
1609         (locexpr_read_variable_at_entry): Likewise.
1610         (locexpr_read_needs_frame): Likewise.
1611         (locexpr_describe_location): Likewise.
1612         (locexpr_tracepoint_var_ref): Likewise.
1613         (locexpr_generate_c_location): Likewise.
1614         (loclist_read_variable): Likewise.
1615         (loclist_read_variable_at_entry): Likewise.
1616         (loclist_describe_location): Likewise.
1617         (loclist_tracepoint_var_ref): Likewise.
1618         (loclist_generate_c_location): Likewise.
1619         * dwarf2read.c (line_header_hash_voidp): Likewise.
1620         (line_header_eq_voidp): Likewise.
1621         (dwarf2_has_info): Likewise.
1622         (dwarf2_get_section_info): Likewise.
1623         (locate_dwz_sections): Likewise.
1624         (hash_file_name_entry): Likewise.
1625         (eq_file_name_entry): Likewise.
1626         (delete_file_name_entry): Likewise.
1627         (dw2_setup): Likewise.
1628         (dw2_get_file_names_reader): Likewise.
1629         (dw2_find_pc_sect_compunit_symtab): Likewise.
1630         (hash_signatured_type): Likewise.
1631         (eq_signatured_type): Likewise.
1632         (add_signatured_type_cu_to_table): Likewise.
1633         (create_debug_types_hash_table): Likewise.
1634         (lookup_dwo_signatured_type): Likewise.
1635         (lookup_dwp_signatured_type): Likewise.
1636         (lookup_signatured_type): Likewise.
1637         (hash_type_unit_group): Likewise.
1638         (eq_type_unit_group): Likewise.
1639         (get_type_unit_group): Likewise.
1640         (process_psymtab_comp_unit_reader): Likewise.
1641         (sort_tu_by_abbrev_offset): Likewise.
1642         (process_skeletonless_type_unit): Likewise.
1643         (psymtabs_addrmap_cleanup): Likewise.
1644         (dwarf2_read_symtab): Likewise.
1645         (psymtab_to_symtab_1): Likewise.
1646         (die_hash): Likewise.
1647         (die_eq): Likewise.
1648         (load_full_comp_unit_reader): Likewise.
1649         (reset_die_in_process): Likewise.
1650         (free_cu_line_header): Likewise.
1651         (handle_DW_AT_stmt_list): Likewise.
1652         (hash_dwo_file): Likewise.
1653         (eq_dwo_file): Likewise.
1654         (hash_dwo_unit): Likewise.
1655         (eq_dwo_unit): Likewise.
1656         (create_dwo_cu_reader): Likewise.
1657         (create_dwo_unit_in_dwp_v1): Likewise.
1658         (create_dwo_unit_in_dwp_v2): Likewise.
1659         (lookup_dwo_unit_in_dwp): Likewise.
1660         (dwarf2_locate_dwo_sections): Likewise.
1661         (dwarf2_locate_common_dwp_sections): Likewise.
1662         (dwarf2_locate_v2_dwp_sections): Likewise.
1663         (hash_dwp_loaded_cutus): Likewise.
1664         (eq_dwp_loaded_cutus): Likewise.
1665         (lookup_dwo_cutu): Likewise.
1666         (abbrev_table_free_cleanup): Likewise.
1667         (dwarf2_free_abbrev_table): Likewise.
1668         (find_partial_die_in_comp_unit): Likewise.
1669         (free_line_header_voidp): Likewise.
1670         (follow_die_offset): Likewise.
1671         (follow_die_sig_1): Likewise.
1672         (free_heap_comp_unit): Likewise.
1673         (free_stack_comp_unit): Likewise.
1674         (dwarf2_free_objfile): Likewise.
1675         (per_cu_offset_and_type_hash): Likewise.
1676         (per_cu_offset_and_type_eq): Likewise.
1677         (get_die_type_at_offset): Likewise.
1678         (partial_die_hash): Likewise.
1679         (partial_die_eq): Likewise.
1680         (dwarf2_per_objfile_free): Likewise.
1681         (hash_strtab_entry): Likewise.
1682         (eq_strtab_entry): Likewise.
1683         (add_string): Likewise.
1684         (hash_symtab_entry): Likewise.
1685         (eq_symtab_entry): Likewise.
1686         (delete_symtab_entry): Likewise.
1687         (cleanup_mapped_symtab): Likewise.
1688         (add_indices_to_cpool): Likewise.
1689         (hash_psymtab_cu_index): Likewise.
1690         (eq_psymtab_cu_index): Likewise.
1691         (add_address_entry_worker): Likewise.
1692         (unlink_if_set): Likewise.
1693         (write_one_signatured_type): Likewise.
1694         (save_gdb_index_command): Likewise.
1695         * elfread.c (elf_symtab_read): Likewise.
1696         (elf_gnu_ifunc_cache_hash): Likewise.
1697         (elf_gnu_ifunc_cache_eq): Likewise.
1698         (elf_gnu_ifunc_record_cache): Likewise.
1699         (elf_gnu_ifunc_resolve_by_cache): Likewise.
1700         (elf_get_probes): Likewise.
1701         (probe_key_free): Likewise.
1702         * f-lang.c (builtin_f_type): Likewise.
1703         * frame-base.c (frame_base_append_sniffer): Likewise.
1704         (frame_base_set_default): Likewise.
1705         (frame_base_find_by_frame): Likewise.
1706         * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1707         (frame_unwind_append_unwinder): Likewise.
1708         (frame_unwind_find_by_frame): Likewise.
1709         * frame.c (frame_addr_hash): Likewise.
1710         (frame_addr_hash_eq): Likewise.
1711         (frame_stash_find): Likewise.
1712         (do_frame_register_read): Likewise.
1713         (unwind_to_current_frame): Likewise.
1714         (frame_cleanup_after_sniffer): Likewise.
1715         * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1716         * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1717         * ft32-tdep.c (ft32_frame_cache): Likewise.
1718         * gcore.c (do_bfd_delete_cleanup): Likewise.
1719         (gcore_create_callback): Likewise.
1720         * gdb_bfd.c (hash_bfd): Likewise.
1721         (eq_bfd): Likewise.
1722         (gdb_bfd_open): Likewise.
1723         (free_one_bfd_section): Likewise.
1724         (gdb_bfd_ref): Likewise.
1725         (gdb_bfd_unref): Likewise.
1726         (get_section_descriptor): Likewise.
1727         (gdb_bfd_map_section): Likewise.
1728         (gdb_bfd_crc): Likewise.
1729         (gdb_bfd_mark_parent): Likewise.
1730         (gdb_bfd_record_inclusion): Likewise.
1731         (gdb_bfd_requires_relocations): Likewise.
1732         (print_one_bfd): Likewise.
1733         * gdbtypes.c (type_pair_hash): Likewise.
1734         (type_pair_eq): Likewise.
1735         (builtin_type): Likewise.
1736         (objfile_type): Likewise.
1737         * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1738         (vtable_address_point_offset): Likewise.
1739         (gnuv3_get_vtable): Likewise.
1740         (hash_value_and_voffset): Likewise.
1741         (eq_value_and_voffset): Likewise.
1742         (compare_value_and_voffset): Likewise.
1743         (compute_vtable_size): Likewise.
1744         (gnuv3_get_typeid_type): Likewise.
1745         * go-lang.c (builtin_go_type): Likewise.
1746         * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1747         (bkscm_eq_block_smob): Likewise.
1748         (bkscm_objfile_block_map): Likewise.
1749         (bkscm_del_objfile_blocks): Likewise.
1750         * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1751         * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1752         (gdbscm_disasm_print_address): Likewise.
1753         * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1754         (frscm_eq_frame_smob): Likewise.
1755         (frscm_inferior_frame_map): Likewise.
1756         (frscm_del_inferior_frames): Likewise.
1757         * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1758         * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1759         (ofscm_objfile_smob_from_objfile): Likewise.
1760         * guile/scm-ports.c (ioscm_write): Likewise.
1761         (ioscm_file_port_delete): Likewise.
1762         (ioscm_file_port_rewind): Likewise.
1763         (ioscm_file_port_put): Likewise.
1764         (ioscm_file_port_write): Likewise.
1765         * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1766         (psscm_pspace_smob_from_pspace): Likewise.
1767         * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1768         (scscm_recording_unwind_handler): Likewise.
1769         (gdbscm_with_catch): Likewise.
1770         (scscm_call_0_body): Likewise.
1771         (scscm_call_1_body): Likewise.
1772         (scscm_call_2_body): Likewise.
1773         (scscm_call_3_body): Likewise.
1774         (scscm_call_4_body): Likewise.
1775         (scscm_apply_1_body): Likewise.
1776         (scscm_eval_scheme_string): Likewise.
1777         (gdbscm_safe_eval_string): Likewise.
1778         (scscm_source_scheme_script): Likewise.
1779         (gdbscm_safe_source_script): Likewise.
1780         * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1781         (gdbscm_call_scm_from_stringn): Likewise.
1782         * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1783         (syscm_eq_symbol_smob): Likewise.
1784         (syscm_get_symbol_map): Likewise.
1785         (syscm_del_objfile_symbols): Likewise.
1786         * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1787         (stscm_eq_symtab_smob): Likewise.
1788         (stscm_objfile_symtab_map): Likewise.
1789         (stscm_del_objfile_symtabs): Likewise.
1790         * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1791         (tyscm_eq_type_smob): Likewise.
1792         (tyscm_type_map): Likewise.
1793         (tyscm_copy_type_recursive): Likewise.
1794         (save_objfile_types): Likewise.
1795         * guile/scm-utils.c (extract_arg): Likewise.
1796         * h8300-tdep.c (h8300_frame_cache): Likewise.
1797         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1798         * hppa-tdep.c (compare_unwind_entries): Likewise.
1799         (find_unwind_entry): Likewise.
1800         (hppa_frame_cache): Likewise.
1801         (hppa_stub_frame_unwind_cache): Likewise.
1802         * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1803         * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1804         (hppaobsd_supply_fpregset): Likewise.
1805         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1806         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1807         * i386-tdep.c (i386_frame_cache): Likewise.
1808         (i386_epilogue_frame_cache): Likewise.
1809         (i386_sigtramp_frame_cache): Likewise.
1810         (i386_supply_gregset): Likewise.
1811         (i386_collect_gregset): Likewise.
1812         (i386_gdbarch_init): Likewise.
1813         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1814         (i386obsd_trapframe_cache): Likewise.
1815         * i387-tdep.c (i387_supply_fsave): Likewise.
1816         (i387_collect_fsave): Likewise.
1817         (i387_supply_fxsave): Likewise.
1818         (i387_collect_fxsave): Likewise.
1819         (i387_supply_xsave): Likewise.
1820         (i387_collect_xsave): Likewise.
1821         * ia64-tdep.c (ia64_frame_cache): Likewise.
1822         (ia64_sigtramp_frame_cache): Likewise.
1823         * infcmd.c (attach_command_continuation): Likewise.
1824         (attach_command_continuation_free_args): Likewise.
1825         * inferior.c (restore_inferior): Likewise.
1826         (delete_thread_of_inferior): Likewise.
1827         * inflow.c (inflow_inferior_data_cleanup): Likewise.
1828         (get_inflow_inferior_data): Likewise.
1829         (inflow_inferior_exit): Likewise.
1830         * infrun.c (displaced_step_clear_cleanup): Likewise.
1831         (restore_current_uiout_cleanup): Likewise.
1832         (release_stop_context_cleanup): Likewise.
1833         (do_restore_infcall_suspend_state_cleanup): Likewise.
1834         (do_restore_infcall_control_state_cleanup): Likewise.
1835         (restore_inferior_ptid): Likewise.
1836         * inline-frame.c (block_starting_point_at): Likewise.
1837         * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1838         * jit.c (get_jit_objfile_data): Likewise.
1839         (get_jit_program_space_data): Likewise.
1840         (jit_object_close_impl): Likewise.
1841         (jit_find_objf_with_entry_addr): Likewise.
1842         (jit_breakpoint_deleted): Likewise.
1843         (jit_unwind_reg_set_impl): Likewise.
1844         (jit_unwind_reg_get_impl): Likewise.
1845         (jit_dealloc_cache): Likewise.
1846         (jit_frame_sniffer): Likewise.
1847         (jit_frame_prev_register): Likewise.
1848         (jit_prepend_unwinder): Likewise.
1849         (jit_inferior_exit_hook): Likewise.
1850         (free_objfile_data): Likewise.
1851         * jv-lang.c (jv_per_objfile_free): Likewise.
1852         (get_dynamics_objfile): Likewise.
1853         (get_java_class_symtab): Likewise.
1854         (builtin_java_type): Likewise.
1855         * language.c (language_string_char_type): Likewise.
1856         (language_bool_type): Likewise.
1857         (language_lookup_primitive_type): Likewise.
1858         (language_lookup_primitive_type_as_symbol): Likewise.
1859         * linespec.c (hash_address_entry): Likewise.
1860         (eq_address_entry): Likewise.
1861         (iterate_inline_only): Likewise.
1862         (iterate_name_matcher): Likewise.
1863         (decode_line_2_compare_items): Likewise.
1864         (collect_one_symbol): Likewise.
1865         (compare_symbols): Likewise.
1866         (compare_msymbols): Likewise.
1867         (add_symtabs_to_list): Likewise.
1868         (collect_symbols): Likewise.
1869         (compare_msyms): Likewise.
1870         (add_minsym): Likewise.
1871         (cleanup_linespec_result): Likewise.
1872         * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1873         * linux-nat.c (delete_lwp_cleanup): Likewise.
1874         (count_events_callback): Likewise.
1875         (select_event_lwp_callback): Likewise.
1876         (resume_stopped_resumed_lwps): Likewise.
1877         * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1878         (invalidate_linux_cache_inf): Likewise.
1879         (get_linux_inferior_data): Likewise.
1880         (linux_find_memory_regions_thunk): Likewise.
1881         (linux_make_mappings_callback): Likewise.
1882         (linux_corefile_thread_callback): Likewise.
1883         (find_mapping_size): Likewise.
1884         * linux-thread-db.c (find_new_threads_callback): Likewise.
1885         * lm32-tdep.c (lm32_frame_cache): Likewise.
1886         * m2-lang.c (builtin_m2_type): Likewise.
1887         * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1888         * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1889         (m32r_linux_supply_gregset): Likewise.
1890         (m32r_linux_collect_gregset): Likewise.
1891         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1892         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1893         * m68k-tdep.c (m68k_frame_cache): Likewise.
1894         * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1895         (m68kbsd_supply_gregset): Likewise.
1896         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1897         * m88k-tdep.c (m88k_frame_cache): Likewise.
1898         (m88k_supply_gregset): Likewise.
1899
1900 2015-09-25  Simon Marchi  <simon.marchi@ericsson.com>
1901
1902         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1903         to allocation result assignment.
1904         * ada-exp.y (write_object_renaming): Likewise.
1905         (write_ambiguous_var): Likewise.
1906         (ada_nget_field_index): Likewise.
1907         (write_var_or_type): Likewise.
1908         * ada-lang.c (ada_decode_symbol): Likewise.
1909         (ada_value_assign): Likewise.
1910         (value_pointer): Likewise.
1911         (cache_symbol): Likewise.
1912         (add_nonlocal_symbols): Likewise.
1913         (ada_name_for_lookup): Likewise.
1914         (symbol_completion_add): Likewise.
1915         (ada_to_fixed_type_1): Likewise.
1916         (ada_get_next_arg): Likewise.
1917         (defns_collected): Likewise.
1918         * ada-lex.l (processId): Likewise.
1919         (processString): Likewise.
1920         * ada-tasks.c (read_known_tasks_array): Likewise.
1921         (read_known_tasks_list): Likewise.
1922         * ada-typeprint.c (decoded_type_name): Likewise.
1923         * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1924         * amd64-tdep.c (amd64_push_arguments): Likewise.
1925         (amd64_displaced_step_copy_insn): Likewise.
1926         (amd64_classify_insn_at): Likewise.
1927         (amd64_relocate_instruction): Likewise.
1928         * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1929         * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1930         (initialize_current_architecture): Likewise.
1931         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1932         * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1933         * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1934         (arm_push_dummy_call): Likewise.
1935         (extend_buffer_earlier): Likewise.
1936         (arm_adjust_breakpoint_address): Likewise.
1937         (arm_skip_stub): Likewise.
1938         * auto-load.c (filename_is_in_pattern): Likewise.
1939         (maybe_add_script_file): Likewise.
1940         (maybe_add_script_text): Likewise.
1941         (auto_load_objfile_script_1): Likewise.
1942         * auxv.c (ld_so_xfer_auxv): Likewise.
1943         * ax-general.c (new_agent_expr): Likewise.
1944         (grow_expr): Likewise.
1945         (ax_reg_mask): Likewise.
1946         * bcache.c (bcache_full): Likewise.
1947         * breakpoint.c (program_breakpoint_here_p): Likewise.
1948         * btrace.c (parse_xml_raw): Likewise.
1949         * build-id.c (build_id_to_debug_bfd): Likewise.
1950         * buildsym.c (end_symtab_with_blockvector): Likewise.
1951         * c-exp.y (string_exp): Likewise.
1952         (qualified_name): Likewise.
1953         (write_destructor_name): Likewise.
1954         (operator_stoken): Likewise.
1955         (parse_number): Likewise.
1956         (scan_macro_expansion): Likewise.
1957         (yylex): Likewise.
1958         (c_print_token): Likewise.
1959         * c-lang.c (c_get_string): Likewise.
1960         (emit_numeric_character): Likewise.
1961         * charset.c (wchar_iterate): Likewise.
1962         * cli/cli-cmds.c (complete_command): Likewise.
1963         (make_command): Likewise.
1964         * cli/cli-dump.c (restore_section_callback): Likewise.
1965         (restore_binary_file): Likewise.
1966         * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1967         * cli/cli-script.c (execute_control_command): Likewise.
1968         * cli/cli-setshow.c (do_set_command): Likewise.
1969         * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1970         (read_pe_exported_syms): Likewise.
1971         * coffread.c (coff_read_struct_type): Likewise.
1972         (coff_read_enum_type): Likewise.
1973         * common/btrace-common.c (btrace_data_append): Likewise.
1974         * common/buffer.c (buffer_grow): Likewise.
1975         * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1976         * common/format.c (parse_format_string): Likewise.
1977         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1978         * common/xml-utils.c (xml_escape_text): Likewise.
1979         * compile/compile-object-load.c (copy_sections): Likewise.
1980         (compile_object_load): Likewise.
1981         * compile/compile-object-run.c (compile_object_run): Likewise.
1982         * completer.c (filename_completer): Likewise.
1983         * corefile.c (read_memory_typed_address): Likewise.
1984         (write_memory_unsigned_integer): Likewise.
1985         (write_memory_signed_integer): Likewise.
1986         (complete_set_gnutarget): Likewise.
1987         * corelow.c (get_core_register_section): Likewise.
1988         * cp-name-parser.y (d_grab): Likewise.
1989         (allocate_info): Likewise.
1990         (cp_new_demangle_parse_info): Likewise.
1991         * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1992         (cp_lookup_symbol_in_namespace): Likewise.
1993         (lookup_namespace_scope): Likewise.
1994         (find_symbol_in_baseclass): Likewise.
1995         (cp_lookup_nested_symbol): Likewise.
1996         (cp_lookup_transparent_type_loop): Likewise.
1997         * cp-support.c (copy_string_to_obstack): Likewise.
1998         (make_symbol_overload_list): Likewise.
1999         (make_symbol_overload_list_namespace): Likewise.
2000         (make_symbol_overload_list_adl_namespace): Likewise.
2001         (first_component_command): Likewise.
2002         * cp-valprint.c (cp_print_value): Likewise.
2003         * ctf.c (ctf_xfer_partial): Likewise.
2004         * d-exp.y (StringExp): Likewise.
2005         * d-namespace.c (d_lookup_symbol_in_module): Likewise.
2006         (lookup_module_scope): Likewise.
2007         (find_symbol_in_baseclass): Likewise.
2008         (d_lookup_nested_symbol): Likewise.
2009         * dbxread.c (find_stab_function_addr): Likewise.
2010         (read_dbx_symtab): Likewise.
2011         (dbx_end_psymtab): Likewise.
2012         (cp_set_block_scope): Likewise.
2013         * dcache.c (dcache_alloc): Likewise.
2014         * demangle.c (_initialize_demangler): Likewise.
2015         * dicos-tdep.c (dicos_load_module_p): Likewise.
2016         * dictionary.c (dict_create_hashed_expandable): Likewise.
2017         (dict_create_linear_expandable): Likewise.
2018         (expand_hashtable): Likewise.
2019         (add_symbol_linear_expandable): Likewise.
2020         * dwarf2-frame.c (add_cie): Likewise.
2021         (add_fde): Likewise.
2022         (dwarf2_build_frame_info): Likewise.
2023         * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
2024         (dwarf_expr_fetch_address): Likewise.
2025         (add_piece): Likewise.
2026         (execute_stack_op): Likewise.
2027         * dwarf2loc.c (chain_candidate): Likewise.
2028         (dwarf_entry_parameter_to_value): Likewise.
2029         (read_pieced_value): Likewise.
2030         (write_pieced_value): Likewise.
2031         * dwarf2read.c (dwarf2_read_section): Likewise.
2032         (add_type_unit): Likewise.
2033         (read_comp_units_from_section): Likewise.
2034         (fixup_go_packaging): Likewise.
2035         (dwarf2_compute_name): Likewise.
2036         (dwarf2_physname): Likewise.
2037         (create_dwo_unit_in_dwp_v1): Likewise.
2038         (create_dwo_unit_in_dwp_v2): Likewise.
2039         (read_func_scope): Likewise.
2040         (read_call_site_scope): Likewise.
2041         (dwarf2_attach_fields_to_type): Likewise.
2042         (process_structure_scope): Likewise.
2043         (mark_common_block_symbol_computed): Likewise.
2044         (read_common_block): Likewise.
2045         (abbrev_table_read_table): Likewise.
2046         (guess_partial_die_structure_name): Likewise.
2047         (fixup_partial_die): Likewise.
2048         (add_file_name): Likewise.
2049         (dwarf2_const_value_data): Likewise.
2050         (dwarf2_const_value_attr): Likewise.
2051         (build_error_marker_type): Likewise.
2052         (guess_full_die_structure_name): Likewise.
2053         (anonymous_struct_prefix): Likewise.
2054         (typename_concat): Likewise.
2055         (dwarf2_canonicalize_name): Likewise.
2056         (dwarf2_name): Likewise.
2057         (write_constant_as_bytes): Likewise.
2058         (dwarf2_fetch_constant_bytes): Likewise.
2059         (copy_string): Likewise.
2060         (parse_macro_definition): Likewise.
2061         * elfread.c (elf_symfile_segments): Likewise.
2062         (elf_rel_plt_read): Likewise.
2063         (elf_gnu_ifunc_resolve_by_cache): Likewise.
2064         (elf_gnu_ifunc_resolve_by_got): Likewise.
2065         (elf_read_minimal_symbols): Likewise.
2066         (elf_gnu_ifunc_record_cache): Likewise.
2067         * event-top.c (top_level_prompt): Likewise.
2068         (command_line_handler): Likewise.
2069         * exec.c (resize_section_table): Likewise.
2070         * expprint.c (print_subexp_standard): Likewise.
2071         * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2072         * findcmd.c (parse_find_args): Likewise.
2073         * findvar.c (address_from_register): Likewise.
2074         * frame.c (get_prev_frame_always): Likewise.
2075         * gdb_bfd.c (gdb_bfd_ref): Likewise.
2076         (get_section_descriptor): Likewise.
2077         * gdb_obstack.c (obconcat): Likewise.
2078         (obstack_strdup): Likewise.
2079         * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
2080         (create_set_type): Likewise.
2081         (lookup_unsigned_typename): Likewise.
2082         (lookup_signed_typename): Likewise.
2083         (resolve_dynamic_union): Likewise.
2084         (resolve_dynamic_struct): Likewise.
2085         (add_dyn_prop): Likewise.
2086         (copy_dynamic_prop_list): Likewise.
2087         (arch_flags_type): Likewise.
2088         (append_composite_type_field_raw): Likewise.
2089         * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
2090         * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
2091         * go-exp.y (string_exp): Likewise.
2092         * go-lang.c (go_demangle): Likewise.
2093         * guile/guile.c (compute_scheme_string): Likewise.
2094         * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2095         (gdbscm_canonicalize_command_name): Likewise.
2096         * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
2097         (ioscm_init_memory_port): Likewise.
2098         (ioscm_reinit_memory_port): Likewise.
2099         * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
2100         (gdbscm_gc_dup_argv): Likewise.
2101         * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2102         * hppa-tdep.c (internalize_unwinds): Likewise.
2103         (read_unwind_info): Likewise.
2104         * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2105         (windows_core_xfer_shared_libraries): Likewise.
2106         * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2107         (i386_stap_parse_special_token_triplet): Likewise.
2108         (i386_stap_parse_special_token_three_arg_disp): Likewise.
2109         * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2110         * inf-child.c (inf_child_fileio_readlink): Likewise.
2111         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2112         (inf_ptrace_store_register): Likewise.
2113         * infrun.c (follow_exec): Likewise.
2114         (displaced_step_prepare_throw): Likewise.
2115         (save_stop_context): Likewise.
2116         (save_infcall_suspend_state): Likewise.
2117         * jit.c (jit_read_descriptor): Likewise.
2118         (jit_read_code_entry): Likewise.
2119         (jit_symtab_line_mapping_add_impl): Likewise.
2120         (finalize_symtab): Likewise.
2121         (jit_unwind_reg_get_impl): Likewise.
2122         * jv-exp.y (QualifiedName): Likewise.
2123         * jv-lang.c (get_java_utf8_name): Likewise.
2124         (type_from_class): Likewise.
2125         (java_demangle_type_signature): Likewise.
2126         (java_class_name_from_physname): Likewise.
2127         * jv-typeprint.c (java_type_print_base): Likewise.
2128         * jv-valprint.c (java_value_print): Likewise.
2129         * language.c (add_language): Likewise.
2130         * linespec.c (add_sal_to_sals_basic): Likewise.
2131         (add_sal_to_sals): Likewise.
2132         (decode_objc): Likewise.
2133         (find_linespec_symbols): Likewise.
2134         * linux-fork.c (fork_save_infrun_state): Likewise.
2135         * linux-nat.c (linux_nat_detach): Likewise.
2136         (linux_nat_fileio_readlink): Likewise.
2137         * linux-record.c (record_linux_sockaddr): Likewise.
2138         (record_linux_msghdr): Likewise.
2139         (Do): Likewise.
2140         * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
2141         (linux_collect_regset_section_cb): Likewise.
2142         (linux_get_siginfo_data): Likewise.
2143         * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
2144         (try_thread_db_load_from_dir): Likewise.
2145         (thread_db_load_search): Likewise.
2146         (info_auto_load_libthread_db): Likewise.
2147         * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
2148         (m32c_m16c_pointer_to_address): Likewise.
2149         * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
2150         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2151         * machoread.c (macho_check_dsym): Likewise.
2152         * macroexp.c (resize_buffer): Likewise.
2153         (gather_arguments): Likewise.
2154         (maybe_expand): Likewise.
2155         * macrotab.c (new_macro_key): Likewise.
2156         (new_source_file): Likewise.
2157         (new_macro_definition): Likewise.
2158         * mdebugread.c (parse_symbol): Likewise.
2159         (parse_type): Likewise.
2160         (parse_partial_symbols): Likewise.
2161         (psymtab_to_symtab_1): Likewise.
2162         * mem-break.c (default_memory_insert_breakpoint): Likewise.
2163         * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
2164         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2165         (mi_cmd_data_read_memory_bytes): Likewise.
2166         (mi_cmd_data_write_memory_bytes): Likewise.
2167         (mi_cmd_trace_frame_collected): Likewise.
2168         * mi/mi-parse.c (mi_parse_argv): Likewise.
2169         (mi_parse): Likewise.
2170         * minidebug.c (lzma_open): Likewise.
2171         (lzma_pread): Likewise.
2172         * mips-tdep.c (mips_read_fp_register_single): Likewise.
2173         (mips_print_fp_register): Likewise.
2174         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2175         * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2176         * mt-tdep.c (mt_register_name): Likewise.
2177         (mt_registers_info): Likewise.
2178         (mt_push_dummy_call): Likewise.
2179         * namespace.c (add_using_directive): Likewise.
2180         * nat/linux-btrace.c (perf_event_read): Likewise.
2181         (linux_enable_bts): Likewise.
2182         * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
2183         * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
2184         * nto-tdep.c (nto_find_and_open_solib): Likewise.
2185         (nto_parse_redirection): Likewise.
2186         * objc-lang.c (objc_demangle): Likewise.
2187         (find_methods): Likewise.
2188         * objfiles.c (get_objfile_bfd_data): Likewise.
2189         (set_objfile_main_name): Likewise.
2190         (allocate_objfile): Likewise.
2191         (objfile_relocate): Likewise.
2192         (update_section_map): Likewise.
2193         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2194         * p-exp.y (exp): Likewise.
2195         (yylex): Likewise.
2196         * p-valprint.c (pascal_object_print_value): Likewise.
2197         * parse.c (initialize_expout): Likewise.
2198         (mark_completion_tag): Likewise.
2199         (copy_name): Likewise.
2200         (parse_float): Likewise.
2201         (type_stack_reserve): Likewise.
2202         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2203         (ppu2spu_prev_register): Likewise.
2204         * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
2205         * printcmd.c (printf_wide_c_string): Likewise.
2206         (printf_pointer): Likewise.
2207         * probe.c (parse_probes): Likewise.
2208         * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2209         (cmdpy_init): Likewise.
2210         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
2211         * python/py-symtab.c (set_sal): Likewise.
2212         * python/py-unwind.c (pyuw_sniffer): Likewise.
2213         * python/python.c (python_interactive_command): Likewise.
2214         (compute_python_string): Likewise.
2215         * ravenscar-thread.c (get_running_thread_id): Likewise.
2216         * record-full.c (record_full_exec_insn): Likewise.
2217         (record_full_core_open_1): Likewise.
2218         * regcache.c (regcache_raw_read_signed): Likewise.
2219         (regcache_raw_read_unsigned): Likewise.
2220         (regcache_cooked_read_signed): Likewise.
2221         (regcache_cooked_read_unsigned): Likewise.
2222         * remote-fileio.c (remote_fileio_func_open): Likewise.
2223         (remote_fileio_func_rename): Likewise.
2224         (remote_fileio_func_unlink): Likewise.
2225         (remote_fileio_func_stat): Likewise.
2226         (remote_fileio_func_system): Likewise.
2227         * remote-mips.c (mips_xfer_memory): Likewise.
2228         (mips_load_srec): Likewise.
2229         (pmon_end_download): Likewise.
2230         * remote.c (new_remote_state): Likewise.
2231         (map_regcache_remote_table): Likewise.
2232         (remote_register_number_and_offset): Likewise.
2233         (init_remote_state): Likewise.
2234         (get_memory_packet_size): Likewise.
2235         (remote_pass_signals): Likewise.
2236         (remote_program_signals): Likewise.
2237         (remote_start_remote): Likewise.
2238         (remote_check_symbols): Likewise.
2239         (remote_query_supported): Likewise.
2240         (extended_remote_attach): Likewise.
2241         (process_g_packet): Likewise.
2242         (store_registers_using_G): Likewise.
2243         (putpkt_binary): Likewise.
2244         (read_frame): Likewise.
2245         (compare_sections_command): Likewise.
2246         (remote_hostio_pread): Likewise.
2247         (remote_hostio_readlink): Likewise.
2248         (remote_file_put): Likewise.
2249         (remote_file_get): Likewise.
2250         (remote_pid_to_exec_file): Likewise.
2251         (_initialize_remote): Likewise.
2252         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2253         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2254         * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2255         (bfd_uses_spe_extensions): Likewise.
2256         * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2257         * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2258         * solib-dsbt.c (decode_loadmap): Likewise.
2259         (fetch_loadmap): Likewise.
2260         (scan_dyntag): Likewise.
2261         (enable_break): Likewise.
2262         (dsbt_relocate_main_executable): Likewise.
2263         * solib-frv.c (fetch_loadmap): Likewise.
2264         (enable_break2): Likewise.
2265         (frv_relocate_main_executable): Likewise.
2266         * solib-spu.c (spu_relocate_main_executable): Likewise.
2267         (spu_bfd_open): Likewise.
2268         * solib-svr4.c (lm_info_read): Likewise.
2269         (read_program_header): Likewise.
2270         (find_program_interpreter): Likewise.
2271         (scan_dyntag): Likewise.
2272         (elf_locate_base): Likewise.
2273         (open_symbol_file_object): Likewise.
2274         (read_program_headers_from_bfd): Likewise.
2275         (svr4_relocate_main_executable): Likewise.
2276         * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2277         * solib.c (solib_find_1): Likewise.
2278         (exec_file_find): Likewise.
2279         (solib_find): Likewise.
2280         * source.c (openp): Likewise.
2281         (print_source_lines_base): Likewise.
2282         (forward_search_command): Likewise.
2283         * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2284         * spu-tdep.c (spu2ppu_prev_register): Likewise.
2285         (spu_get_overlay_table): Likewise.
2286         * stabsread.c (patch_block_stabs): Likewise.
2287         (define_symbol): Likewise.
2288         (again:): Likewise.
2289         (read_member_functions): Likewise.
2290         (read_one_struct_field): Likewise.
2291         (read_enum_type): Likewise.
2292         (common_block_start): Likewise.
2293         * stack.c (read_frame_arg): Likewise.
2294         (backtrace_command): Likewise.
2295         * stap-probe.c (stap_parse_register_operand): Likewise.
2296         * symfile.c (syms_from_objfile_1): Likewise.
2297         (find_separate_debug_file): Likewise.
2298         (load_command): Likewise.
2299         (load_progress): Likewise.
2300         (load_section_callback): Likewise.
2301         (reread_symbols): Likewise.
2302         (add_filename_language): Likewise.
2303         (allocate_compunit_symtab): Likewise.
2304         (read_target_long_array): Likewise.
2305         (simple_read_overlay_table): Likewise.
2306         * symtab.c (symbol_set_names): Likewise.
2307         (resize_symbol_cache): Likewise.
2308         (rbreak_command): Likewise.
2309         (completion_list_add_name): Likewise.
2310         (completion_list_objc_symbol): Likewise.
2311         (add_filename_to_list): Likewise.
2312         * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2313         * target-memory.c (target_write_memory_blocks): Likewise.
2314         * target.c (target_read_string): Likewise.
2315         (read_whatever_is_readable): Likewise.
2316         (target_read_alloc_1): Likewise.
2317         (simple_search_memory): Likewise.
2318         (target_fileio_read_alloc_1): Likewise.
2319         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2320         * top.c (command_line_input): Likewise.
2321         * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2322         * tracefile.c (tracefile_fetch_registers): Likewise.
2323         * tracepoint.c (add_memrange): Likewise.
2324         (init_collection_list): Likewise.
2325         (add_aexpr): Likewise.
2326         (trace_dump_actions): Likewise.
2327         (parse_trace_status): Likewise.
2328         (parse_tracepoint_definition): Likewise.
2329         (parse_tsv_definition): Likewise.
2330         (parse_static_tracepoint_marker_definition): Likewise.
2331         * tui/tui-file.c (tui_sfileopen): Likewise.
2332         (tui_file_adjust_strbuf): Likewise.
2333         * tui/tui-io.c (tui_expand_tabs): Likewise.
2334         * tui/tui-source.c (tui_set_source_content): Likewise.
2335         * typeprint.c (find_global_typedef): Likewise.
2336         * ui-file.c (do_ui_file_xstrdup): Likewise.
2337         (ui_file_obsavestring): Likewise.
2338         (mem_file_write): Likewise.
2339         * utils.c (make_hex_string): Likewise.
2340         (get_regcomp_error): Likewise.
2341         (puts_filtered_tabular): Likewise.
2342         (gdb_realpath_keepfile): Likewise.
2343         (ldirname): Likewise.
2344         (gdb_bfd_errmsg): Likewise.
2345         (substitute_path_component): Likewise.
2346         * valops.c (search_struct_method): Likewise.
2347         (find_oload_champ_namespace_loop): Likewise.
2348         * valprint.c (print_decimal_chars): Likewise.
2349         (read_string): Likewise.
2350         (generic_emit_char): Likewise.
2351         * varobj.c (varobj_delete): Likewise.
2352         (varobj_value_get_print_value): Likewise.
2353         * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2354         * windows-tdep.c (display_one_tib): Likewise.
2355         * xcoffread.c (read_xcoff_symtab): Likewise.
2356         (process_xcoff_symbol): Likewise.
2357         (swap_sym): Likewise.
2358         (scan_xcoff_symtab): Likewise.
2359         (xcoff_initial_scan): Likewise.
2360         * xml-support.c (gdb_xml_end_element): Likewise.
2361         (xml_process_xincludes): Likewise.
2362         (xml_fetch_content_from_file): Likewise.
2363         * xml-syscall.c (xml_list_of_syscalls): Likewise.
2364         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2365
2366 2015-09-23  James Bowman  <james.bowman@ftdichip.com>
2367
2368         * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2369         instead of builtin_func_ptr.
2370         (ft32_pointer_to_address): New function.
2371         (ft32_address_class_type_flags): New function.
2372         (ft32_address_class_type_flags_to_name): New function.
2373         (ft32_address_class_name_to_type_flags): New function.
2374         (ft32_gdbarch_init): Set tdep->pc_type.  Call
2375         set_gdbarch_pointer_to_address,
2376         set_gdbarch_address_class_type_flags
2377         set_gdbarch_address_class_name_to_type_flags,
2378         and set_gdbarch_address_class_type_flags_to_name.
2379         * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2380
2381 2015-09-23  Pierre-Marie de Rodat  <derodat@adacore.com>
2382
2383         * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2384         value is a reference, actually dereference it in order to get
2385         the underlying value.
2386
2387 2015-09-22  Simon Marchi  <simon.marchi@ericsson.com>
2388
2389         * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2390
2391 2015-09-21  Simon Marchi  <simon.marchi@ericsson.com>
2392
2393         * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2394         * linespec.c (linespec_lexer_lex_string): Same.
2395
2396 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2397
2398         * NEWS: Mention support for fast tracepoints on aarch64-linux.
2399
2400 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2401
2402         * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2403         variable.  Call aarch64_decode_adr instead of
2404         aarch64_decode_adrp.
2405         * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2406         (aarch64_decode_adr): New function declaration.
2407         * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2408         (aarch64_decode_adr): New function, factored out from
2409         aarch64_decode_adrp to decode both adr and adrp instructions.
2410
2411 2015-09-21  Pierre Langlois  <pierre.langlois@arm.com>
2412
2413         * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2414         (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2415         (aarch64-insn.o): New rule.
2416         * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2417         (aarch64*-*-linux*): Likewise.
2418         * arch/aarch64-insn.c: New file.
2419         * arch/aarch64-insn.h: New file.
2420         * aarch64-tdep.c: Include arch/aarch64-insn.h.
2421         (aarch64_debug): Move to arch/aarch64-insn.c.  Declare in
2422         arch/aarch64-insn.h.
2423         (decode_add_sub_imm): Rename to ...
2424         (aarch64_decode_add_sub_imm): ... this.
2425         (decode_adrp): Rename to ...
2426         (aarch64_decode_adrp): ... this.  Move to arch/aarch64-insn.c.
2427         Declare in arch/aarch64-insn.h.
2428         (decode_b): Rename to ...
2429         (aarch64_decode_b): ... this.  Move to arch/aarch64-insn.c.
2430         Declare in arch/aarch64-insn.h.
2431         (decode_bcond): Rename to ...
2432         (aarch64_decode_bcond): ... this.  Move to arch/aarch64-insn.c.
2433         Declare in arch/aarch64-insn.h.
2434         (decode_br): Rename to ...
2435         (aarch64_decode_br): ... this.
2436         (decode_cb): Rename to ...
2437         (aarch64_decode_cb): ... this.  Move to arch/aarch64-insn.c.
2438         Declare in arch/aarch64-insn.h.
2439         (decode_eret): Rename to ...
2440         (aarch64_decode_eret): ... this.
2441         (decode_movz): Rename to ...
2442         (aarch64_decode_movz): ... this.
2443         (decode_orr_shifted_register_x): Rename to ...
2444         (aarch64_decode_orr_shifted_register_x): ... this.
2445         (decode_ret): Rename to ...
2446         (aarch64_decode_ret): ... this.
2447         (decode_stp_offset): Rename to ...
2448         (aarch64_decode_stp_offset): ... this.
2449         (decode_stp_offset_wb): Rename to ...
2450         (aarch64_decode_stp_offset_wb): ... this.
2451         (decode_stur): Rename to ...
2452         (aarch64_decode_stur): ... this.
2453         (decode_tb): Rename to ...
2454         (aarch64_decode_tb): ... this.  Move to arch/aarch64-insn.c.
2455         Declare in arch/aarch64-insn.h.
2456         (aarch64_analyze_prologue): Adjust calls to renamed functions.
2457
2458 2015-09-20  Doug Evans  <xdje42@gmail.com>
2459
2460         * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2461
2462 2015-09-20  Doug Evans  <xdje42@gmail.com>
2463
2464         * dwarf2read.c (dwarf2_compute_name): Add FIXME.  Don't use a local
2465         variable name that collides with a parameter.
2466
2467 2015-09-20  Joel Brobecker  <brobecker@adacore.com>
2468
2469         * dwarf2loc.c (locexpr_get_frame_base): Renames
2470         block_op_get_frame_base.
2471         (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2472         block_op_get_frame_base by reference to locexpr_get_frame_base.
2473         (loclist_get_frame_base): New function, near identical copy of
2474         locexpr_get_frame_base.
2475         (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2476         block_op_get_frame_base by reference to loclist_get_frame_base.
2477
2478 2015-09-19  Doug Evans  <xdje42@gmail.com>
2479
2480         * ravenscar-thread.c (ravenscar_inferior_created): Replace
2481         current_inferior ()->gdbarch with its wrapper target_gdbarch.
2482
2483 2015-09-18  Doug Evans  <xdje42@gmail.com>
2484
2485         * linux-thread-db.c (record_thread): Return the created thread.
2486         (thread_from_lwp): Likewise.
2487         (thread_db_get_thread_local_address): Update.
2488
2489 2015-09-18  Doug Evans  <xdje42@gmail.com>
2490
2491         * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2492         move only member demangled_name up.  All uses updated.
2493
2494 2015-09-18  Doug Evans  <xdje42@gmail.com>
2495
2496         * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2497         kind of minimal symbol in the error message.
2498         * objfiles.c (objfile_flavour_name): New function.
2499         * objfiles.h (objfile_flavour_name): Declare.
2500
2501 2015-09-18  Yao Qi  <yao.qi@linaro.org>
2502
2503         * nat/aarch64-linux.c: Include elf/common.h,
2504         nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2505         (aarch64_ps_get_thread_area): New function.
2506         * nat/aarch64-linux.h: Include gdb_proc_service.h.
2507         (aarch64_ps_get_thread_area): Declare.
2508         * aarch64-linux-nat.c (ps_get_thread_area): Call
2509         aarch64_ps_get_thread_area.
2510
2511 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2512
2513         * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2514
2515 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2516
2517         * NEWS: Announce new scheduler-locking mode.
2518         * infrun.c (schedlock_replay): New.
2519         (scheduler_enums): Add schedlock_replay.
2520         (scheduler_mode): Change default to schedlock_replay.
2521         (user_visible_resume_ptid): Handle schedlock_replay.
2522         (clear_proceed_status_thread): Stop replaying if resumed thread is
2523         not replaying.
2524         (schedlock_applies): Handle schedlock_replay.
2525         (_initialize_infrun): Document new scheduler-locking mode.
2526         * record-btrace.c (record_btrace_resume): Remove code to stop other
2527         threads when not replaying the resumed thread.
2528
2529 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2530
2531         * record-btrace.c ((record_btrace_will_replay): New.
2532         (init_record_btrace_ops): Initialize to_record_will_replay.
2533         * record-full.c ((record_full_will_replay): New.
2534         (init_record_full_ops): Initialize to_record_will_replay.
2535         * target-delegates.c: Regenerated.
2536         * target.c (target_record_will_replay): New.
2537         * target.h (struct target_ops) <to_record_will_replay>: New.
2538         (target_record_will_replay): New.
2539
2540 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2541
2542         * record-btrace.c (record_btrace_resume): Call
2543         target_record_stop_replaying.
2544         (record_btrace_stop_replaying_all): New.
2545         (init_record_btrace_ops): Initialize to_record_stop_replaying.
2546         * record-full.c (record_full_stop_replaying): New.
2547         (init_record_full_ops ): Initialize to_record_stop_replaying.
2548         * target-delegates.c: Regenerated.
2549         * target.c (target_record_stop_replaying): New.
2550         * target.h (struct target_ops) <to_record_stop_replaying>: New.
2551         (target_record_stop_replaying): New.
2552
2553 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2554
2555         * record-btrace.c (record_btrace_xfer_partial)
2556         (record_btrace_store_registers, record_btrace_prepare_to_store):
2557         Call record_btrace_is_replaying with inferior_ptid instead of
2558         minus_one_ptid.
2559         (record_btrace_store_registers): Change error message.
2560
2561 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2562
2563         * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2564         Update users to pass minus_one_ptid.
2565         * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2566         * record.c (cmd_record_delete): Pass inferior_ptid to
2567         target_record_is_replaying.
2568         * target-delegates.c: Regenerated.
2569         * target.c (target_record_is_replaying): Add ptid argument.
2570         * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2571         argument.
2572         (target_record_is_replaying): Add ptid argument.
2573
2574 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2575
2576         * record-btrace.c (record_btrace_open): Remove non_stop check.
2577         * NEWS: Announce that record btrace supports non-stop mode.
2578
2579 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2580
2581         * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2582         in the TARKET_WAITKIND_NO_HISTORY case.
2583
2584 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2585
2586         * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2587         (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2588
2589 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2590
2591         * record-btrace.c (get_thread_current_frame): New.
2592         (record_btrace_start_replaying): Call get_thread_current_frame.
2593
2594 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2595
2596         * record-btrace.c (record_btrace_resume_thread): A move request
2597         overwrites a previous move request.
2598         (record_btrace_find_resume_thread): Removed.
2599         (record_btrace_resume): Resume all requested threads.
2600
2601 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2602
2603         * record-btrace.c: Include vec.h.
2604         (record_btrace_find_thread_to_move): Removed.
2605         (btrace_step_no_resumed, btrace_step_again)
2606         (record_btrace_stop_replaying_at_end): New.
2607         (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2608         (record_btrace_single_step_forward): Remove calls to
2609         record_btrace_stop_replaying.
2610         (record_btrace_step_thread): Do only one step for BTHR_CONT and
2611         BTHR_RCONT.  Keep threads at the end of their history moving.
2612         (record_btrace_wait): Call record_btrace_step_thread for all threads
2613         until one reports an event.  Call record_btrace_stop_replaying_at_end
2614         for the eventing thread.
2615
2616 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2617
2618         * record-btrace.c (record_btrace_single_step_forward): Return
2619         NO_HISTORY if a step brings us to the end of the execution history.
2620
2621 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2622
2623         * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2624         to ...
2625         (record_btrace_single_step_forward): ... here and
2626         (record_btrace_single_step_backward): ... here.
2627
2628 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2629
2630         * record-btrace.c (btrace_step_spurious)
2631         (record_btrace_single_step_forward)
2632         (record_btrace_single_step_backward): New.
2633         (record_btrace_step_thread): Call record_btrace_single_step_forward
2634         and record_btrace_single_step_backward.
2635
2636 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2637
2638         * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2639         (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2640
2641 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2642
2643         * record-btrace.c (btrace_thread_flag_to_str)
2644         (record_btrace_cancel_resume): New.
2645         (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2646         (record_btrace_resume): Print execution direction.
2647         (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2648         (record_btrace_wait): Call record_btrace_cancel_resume.
2649
2650 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2651
2652         * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2653         * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2654         (record_btrace_find_thread_to_move): Also accept threads that have
2655         BTHR_STOP set.
2656         (btrace_step_stopped_on_request, record_btrace_stop): New.
2657         (record_btrace_step_thread): Support BTHR_STOP.
2658         (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2659         (init_record_btrace_ops): Initialize to_stop.
2660
2661 2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
2662
2663         * record-btrace.c (record_btrace_wait): Replace non_stop check with
2664         target_is_non_stop_p ().
2665
2666 2015-09-15  Pierre-Marie de Rodat  <derodat@adacore.com>
2667
2668         * ada-typeprint.c (print_array_type): Do not describe arrays as
2669         packed when they embed dynamic elements.
2670
2671 2015-09-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
2672
2673         * symtab.h (address_class): Document that TLS variables
2674         are handled by LOC_UNRESOLVED.
2675         * findvar.c (default_read_var_value): Don't relocate TLS variables.
2676         * printcmd.c (address_info): Don't relocate TLS variables.
2677
2678 2015-09-15  Pierre Langlois  <pierre.langlois@arm.com>
2679
2680         * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2681         (decode_adrp): Likewise.
2682         (decode_b): Likewise.
2683         (decode_bcond): Likewise.
2684         (decode_br): Likewise.
2685         (decode_cb): Likewise.
2686         (decode_eret): Likewise.
2687         (decode_movz): Likewise.
2688         (decode_orr_shifted_register_x): Likewise.
2689         (decode_ret): Likewise.
2690         (decode_stp_offset): Likewise.
2691         (decode_stp_offset_wb): Likewise.
2692         (decode_stur): Likewise.
2693         (decode_tb): Likewise.
2694         (aarch64_analyze_prologue): Likewise.
2695         (pass_in_x): Likewise.
2696         (pass_in_v): Likewise.
2697         (pass_on_stack): Likewise.
2698         (aarch64_push_dummy_call): Likewise.
2699         (aarch64_extract_return_value): Likewise.
2700         (aarch64_store_return_value): Likewise.
2701         (aarch64_return_value): Likewise.
2702         (aarch64_record_asimd_load_store): Likewise.
2703         (aarch64_record_load_store): Likewise.
2704         (aarch64_record_data_proc_simd_fp): Likewise.
2705
2706 2015-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2707
2708         * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2709         * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2710         (ppc64_skip_trampoline_code_1): ... here.
2711         (ppc64_skip_trampoline_code): New wrapper function.
2712         * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2713
2714 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2715
2716         * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2717         function.
2718         (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2719         * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2720         if target_can_do_single_step returns 1.
2721         * remote.c (struct vCont_action_support) <s, S>: New fields.
2722         (PACKET_vContSupported): New enum.
2723         (remote_protocol_features): New element for vContSupported.
2724         (remote_query_supported): Append "vContSupported+".
2725         (remote_vcont_probe): Remove support_s and support_S, use
2726         rs->supports_vCont.s and rs->supports_vCont.S instead.  Disable
2727         vCont packet if c and C actions are not supported.
2728         (remote_can_do_single_step): New function.
2729         (init_remote_ops): Install it to to_can_do_single_step.
2730         (_initialize_remote): Call add_packet_config_cmd.
2731         * target.h (struct target_ops) <to_can_do_single_step>: New field.
2732         (target_can_do_single_step): New macro.
2733         * target-delegates.c: Re-generated.
2734
2735 2015-09-15  Yao Qi  <yao.qi@linaro.org>
2736
2737         * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2738         (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2739         * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2740         New function.
2741         (aarch64_siginfo_from_compat_siginfo): New function.
2742         * nat/aarch64-linux.h: Include signal.h.
2743         (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2744         (compat_timer_t, compat_clock_t): Likewise.
2745         (struct compat_timeval): New.
2746         (union compat_sigval): New.
2747         (struct compat_siginfo): New.
2748         (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2749         (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2750         (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2751         (cpt_si_band, cpt_si_fd): Likewise.
2752
2753 2015-09-14  Pedro Alves  <palves@redhat.com>
2754
2755         * infrun.c (current_stop_id): New global.
2756         (get_stop_id, new_stop_id): New functions.
2757         (fetch_inferior_event): Handle normal_stop proceeding the target.
2758         (struct stop_context): New.
2759         (save_stop_context, release_stop_context_cleanup)
2760         (stop_context_changed): New functions.
2761         (normal_stop): Return true if the hook-stop changes the stop
2762         context.
2763         * infrun.h (get_stop_id): Declare.
2764         (normal_stop): Now returns int.  Add documentation.
2765
2766 2015-09-14  Pierre-Marie de Rodat  <derodat@adacore.com>
2767
2768         * ada-lang.c (ada_value_ptr_subscript): Update the heading
2769         comment.  Handle packed arrays.
2770
2771 2015-09-14  Pedro Alves  <palves@redhat.com>
2772
2773         * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2774         mention of maint set/show target-non-stop.
2775
2776 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2777
2778         * NEWS: Announce new remote packets for the exec-events
2779         feature and the exec-events feature and associated commands.
2780
2781 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2782
2783         * remote.c (remote_exec_event_p): New function.
2784         (remote_insert_exec_catchpoint): New function.
2785         (remote_remove_exec_catchpoint): New function.
2786         (init_extended_remote_ops): Initialize extended_remote_ops
2787         members to_insert_exec_catchpoint and
2788         to_remove_exec_catchpoint.
2789
2790 2015-09-11  Don Breazeal  <donb@codesourcery.com>
2791             Luis Machado  <lgustavo@codesourcery.com>
2792
2793         * infrun.c (follow_exec): Use process-style ptid for
2794         exec message.  Call add_inferior_with_spaces and
2795         target_follow_exec.
2796         * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2797         * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2798         * remote.c (remote_pspace_data): New static variable.
2799         (remote_pspace_data_cleanup): New function.
2800         (get_remote_exec_file): New function.
2801         (set_remote_exec_file_1): New function.
2802         (set_remote_exec_file): New function.
2803         (show_remote_exec_file): New function.
2804         (remote_exec_file): Delete static variable.
2805         (anonymous enum) <PACKET_exec_event_feature>: New
2806         enumeration constant.
2807         (remote_protocol_features): Add entry for exec-events feature.
2808         (remote_query_supported): Add client side of qSupported query
2809         for exec-events feature.
2810         (remote_follow_exec): New function.
2811         (remote_parse_stop_reply): Handle 'exec' stop reason.
2812         (extended_remote_run, extended_remote_create_inferior): Call
2813         get_remote_exec_file and set_remote_exec_file_1.
2814         (init_extended_remote_ops) <to_follow_exec>: Initialize new
2815         member.
2816         (_initialize_remote): Call
2817         register_program_space_data_with_cleanup.  Call
2818         add_packet_config_cmd for remote exec-events feature.
2819         Modify call to add_setshow_string_noescape_cmd for exec-file
2820         to use new functions set_remote_exec_file and
2821         show_remote_exec_file.
2822         * target-debug.h, target-delegates.c: Regenerated.
2823         * target.c (target_follow_exec): New function.
2824         * target.h (struct target_ops) <to_follow_exec>: New member.
2825         (target_follow_exec): Declare new function.
2826
2827 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2828
2829         * aarch64-tdep.c (decode_cb): Move up comment describing the
2830         encoding.
2831         (decode_tb): Fix a typo in comment above the function.  Move up
2832         comment describing the encoding.
2833
2834 2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
2835
2836         * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2837
2838 2015-09-11  Mihail-Marian Nistor  <mihail.nistor@freescale.com>
2839
2840         PR gdb/18947
2841         * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2842         glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2843
2844 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2845
2846         * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2847         operations.
2848
2849 2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
2850
2851         * ada-lang.c (ada_search_struct_field): Constify parameters
2852         and/or variables..
2853         (xget_renaming_scope): Likewise.
2854         (ada_is_redundant_range_encoding): Likewise.
2855         (scan_discrim_bound): Likewise.
2856         (to_fixed_range_type): Likewise.
2857
2858 2015-09-10  Yao Qi  <yao.qi@linaro.org>
2859
2860         * breakpoint.c (download_tracepoint_locations): New local
2861         can_download_tracepoint.  Check the result of
2862         target_can_download_tracepoint and save it in
2863         can_download_tracepoint if there are tracepoints to download.
2864         * linux-nat.h (enum tribool): Move it to ...
2865         * common/common-types.h: ... here.
2866
2867 2015-09-09  Pedro Alves  <palves@redhat.com>
2868
2869         * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2870         * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2871
2872 2015-09-09  Pedro Alves  <palves@redhat.com>
2873
2874         * continuations.c (add_continuation, restore_thread_cleanup)
2875         (do_all_continuations_ptid, do_all_continuations_thread_callback)
2876         (do_all_continuations_thread, do_all_continuations)
2877         (discard_all_continuations_thread_callback)
2878         (discard_all_continuations_thread, discard_all_continuations)
2879         (add_intermediate_continuation)
2880         (do_all_intermediate_continuations_thread_callback)
2881         (do_all_intermediate_continuations_thread)
2882         (do_all_intermediate_continuations)
2883         (discard_all_intermediate_continuations_thread_callback)
2884         (discard_all_intermediate_continuations_thread)
2885         (discard_all_intermediate_continuations): Delete.
2886         * continuations.h (add_continuation, do_all_continuations)
2887         (do_all_continuations_thread, discard_all_continuations)
2888         (discard_all_continuations_thread, add_intermediate_continuation)
2889         (do_all_intermediate_continuations)
2890         (do_all_intermediate_continuations_thread)
2891         (discard_all_intermediate_continuations)
2892         (discard_all_intermediate_continuations_thread): Delete
2893         declarations.
2894         * event-top.c (stdin_event_handler): Delete references to
2895         continuations.
2896         * gdbthread.h (struct thread_info): Delete continuations and
2897         intermediate_continuations fields.
2898         * inf-loop.c (inferior_event_handler): Remove references to
2899         continuations.
2900         * infrun.c (infrun_thread_stop_requested_callback): Remove
2901         references to continuations.
2902         * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2903         * thread.c: Don't include "continuations.h".
2904         (clear_thread_inferior_resources): Remove references to
2905         continuations.
2906
2907 2015-09-09  Pedro Alves  <palves@redhat.com>
2908
2909         * infcall.c (struct dummy_frame_context_saver): Delete.
2910         (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2911         (dummy_frame_context_saver_drop)
2912         (dummy_frame_context_saver_cleanup)
2913         (dummy_frame_context_saver_get_regs)
2914         (dummy_frame_context_saver_setup): Delete.
2915         * infcall.h (dummy_frame_context_saver_drop)
2916         (dummy_frame_context_saver_cleanup)
2917         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2918         Delete.
2919         (get_return_value): Remove 'ctx_saver' paremeter.  Adjust.
2920         * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2921         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2922
2923 2015-09-09  Pedro Alves  <palves@redhat.com>
2924
2925         * breakpoint.c: Include "thread-fsm.h".
2926         (struct until_break_command_continuation_args): Delete.
2927         (struct until_break_fsm): New.
2928         (until_break_fsm_ops): New global.
2929         (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2930         (until_break_command_continuation): Delete.
2931         (until_break_fsm_clean_up): New function.
2932         (until_break_fsm_async_reply_reason): New function.
2933         (until_break_command): Adjust to create an until_break_fsm instead
2934         of a continuation.
2935         (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2936         here.
2937         * infcmd.c (struct until_next_fsm): New.
2938         (until_next_fsm_ops): New global.
2939         (new_until_next_fsm, until_next_fsm_should_stop): New function.
2940         (until_next_continuation): Delete.
2941         (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2942         functions.
2943         (until_next_command): Adjust to create a new until_next_fsm
2944         instead of a continuation.
2945
2946 2015-09-09  Pedro Alves  <palves@redhat.com>
2947
2948         * infcall.c: Include thread_fsm.h.
2949         (struct call_return_meta_info): New.
2950         (get_call_return_value): New function, factored out from
2951         call_function_by_hand_dummy.
2952         (struct call_thread_fsm): New.
2953         (call_thread_fsm_ops): New global.
2954         (new_call_thread_fsm, call_thread_fsm_should_stop)
2955         (call_thread_fsm_should_notify_stop): New functions.
2956         (run_inferior_call): Add 'sm' parameter.  Associate the FSM with
2957         the thread.
2958         (call_function_by_hand_dummy): Create a new call_thread_fsm
2959         instance, associate it with the thread, and wait for the FSM to
2960         finish.  If finished successfully, fetch the function's result
2961         value out of the FSM.
2962         * infrun.c (fetch_inferior_event): If the FSM says the stop
2963         shouldn't be notified, don't call normal_stop.
2964         (maybe_remove_breakpoints): New function, factored out from ...
2965         (normal_stop): ... here.  Simplify.
2966         * infrun.h (maybe_remove_breakpoints): Declare.
2967         * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2968         (thread-fsm.h) <struct thread_fsm_ops>: New field.
2969         (thread_fsm_should_notify_stop): Declare.
2970
2971 2015-09-09  Pedro Alves  <palves@redhat.com>
2972
2973         * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2974         * breakpoint.c (handle_jit_event): Print debug output.
2975         (bpstat_what): Split event callback handling to ...
2976         (bpstat_run_callbacks): ... this new function.
2977         (momentary_bkpt_print_it): No longer handle bp_finish here.
2978         * breakpoint.h (bpstat_run_callbacks): Declare.
2979         * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2980         <thread_fsm>: New field.
2981         (thread_cancel_execution_command): Declare.
2982         * infcmd.c: Include thread-fsm.h.
2983         (struct step_command_fsm): New.
2984         (step_command_fsm_ops): New global.
2985         (new_step_command_fsm, step_command_fsm_prepare): New functions.
2986         (step_1): Adjust to use step_command_fsm_prepare and
2987         prepare_one_step.
2988         (struct step_1_continuation_args): Delete.
2989         (step_1_continuation): Delete.
2990         (step_command_fsm_should_stop): New function.
2991         (step_once): Delete.
2992         (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2993         (prepare_one_step): New function, based on step_once.
2994         (until_next_command): Remove step_multi reference.
2995         (struct return_value_info): New.
2996         (print_return_value): Rename to ...
2997         (print_return_value_1): ... this.  New struct return_value_info
2998         parameter.  Adjust.
2999         (print_return_value): Reimplement as wrapper around
3000         print_return_value_1.
3001         (struct finish_command_fsm): New.
3002         (finish_command_continuation): Delete.
3003         (finish_command_fsm_ops): New global.
3004         (new_finish_command_fsm, finish_command_fsm_should_stop): New
3005         functions.
3006         (finish_command_fsm_clean_up, finish_command_fsm_return_value):
3007         New.
3008         (finish_command_continuation_free_arg): Delete.
3009         (finish_command_fsm_async_reply_reason): New.
3010         (finish_backward, finish_forward): Change symbol parameter to a
3011         finish_command_fsm.  Adjust.
3012         (finish_command): Create a finish_command_fsm.  Adjust.
3013         * infrun.c: Include "thread-fsm.h".
3014         (clear_proceed_status_thread): Delete the thread's FSM.
3015         (infrun_thread_stop_requested_callback): Cancel the thread's
3016         execution command.
3017         (clean_up_just_stopped_threads_fsms): New function.
3018         (fetch_inferior_event): Handle the event_thread's should_stop
3019         method saying the command isn't done yet.
3020         (process_event_stop_test): Run breakpoint callbacks here.
3021         (print_stop_event): Rename to ...
3022         (print_stop_location): ... this.
3023         (restore_current_uiout_cleanup): New function.
3024         (print_stop_event): Reimplement.
3025         (normal_stop): No longer notify the end_stepping_range observers
3026         here handle "step N" nor "finish" here.  No longer call
3027         print_stop_event here.
3028         * infrun.h (struct return_value_info): Forward declare.
3029         (print_return_value): Declare.
3030         (print_stop_event): Change prototype.
3031         * thread-fsm.c: New file.
3032         * thread-fsm.h: New file.
3033         * thread.c: Include "thread-fsm.h".
3034         (thread_cancel_execution_command): New function.
3035         (clear_thread_inferior_resources): Call it.
3036         * cli/cli-interp.c (cli_on_normal_stop): New function.
3037         (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
3038         observer.
3039         * mi/mi-interp.c: Include "thread-fsm.h".
3040         (restore_current_uiout_cleanup): Delete.
3041         (mi_on_normal_stop): If the thread has an FSM associated, and it
3042         finished, ask it for the async-reply-reason to print.  Always call
3043         print_stop_event here, regardless of the top-level interpreter.
3044         Check bpstat_what to tell whether an asynchronous breakpoint hit
3045         triggered.
3046         * tui/tui-interp.c (tui_on_normal_stop): New function.
3047         (tui_init): Install tui_on_normal_stop as normal_stop observer.
3048
3049 2015-09-09  Pedro Alves  <palves@redhat.com>
3050
3051         * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
3052         check whether the target can async.
3053         * inf-loop.c (inferior_event_handler): Only call target_async if
3054         the target can async.
3055         * infcall.c: Include top.h and interps.h.
3056         (run_inferior_call): For the interpreter to sync mode while
3057         running the infcall.  Call wait_sync_command_done instead of
3058         wait_for_inferior plus normal_stop.
3059         * infcmd.c (prepare_execution_command): Don't check whether the
3060         target can async when running in the foreground.
3061         (step_1): Delete synchronous case handling.
3062         (step_once): Always install a continuation, even in sync mode.
3063         (until_next_command, finish_forward): Don't check whether the
3064         target can async.
3065         (attach_command_post_wait, notice_new_inferior): Always install a
3066         continuation, even in sync mode.
3067         * infrun.c (mark_infrun_async_event_handler): New function.
3068         (proceed): In sync mode, mark infrun's event source instead of
3069         waiting for events here.
3070         (fetch_inferior_event): If the target can't async, do a blocking
3071         wait.
3072         (prepare_to_wait): In sync mode, mark infrun's event source.
3073         (infrun_async_inferior_event_handler): No longer bail out if the
3074         target can't async.
3075         * infrun.h (mark_infrun_async_event_handler): New declaration.
3076         * linux-nat.c (linux_nat_wait_1): Remove calls to
3077         set_sigint_trap/clear_sigint_trap.
3078         (linux_nat_terminal_inferior): No longer check whether the target
3079         can async.
3080         * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
3081         comment.
3082         (mi_execute_command_input_handler): No longer check whether the
3083         target is async.  Update and simplify comment.
3084         * target.c (default_target_wait): New function.
3085         * target.h (struct target_ops) <to_wait>: Now defaults to
3086         default_target_wait.
3087         (default_target_wait): Declare.
3088         * top.c (wait_sync_command_done): New function, factored out from
3089         ...
3090         (maybe_wait_sync_command_done): ... this.
3091         * top.h (wait_sync_command_done): Declare.
3092         * target-delegates.c: Regenerate.
3093
3094 2015-09-09  Markus Metzger  <markus.t.metzger@intel.com>
3095
3096         * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
3097         * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
3098         Remove include of sys/utsname.h.
3099         (linux_determine_kernel_ptr_bits): Remove.
3100         (linux_determine_kernel_start): New.
3101         (perf_event_is_kernel_addr): Remove tinfo argument.  Update users.
3102         Update check.
3103         (perf_event_skip_bts_record): Remove tinfo argument.  Update users.
3104         (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
3105         initialization.
3106         * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
3107         assignment.
3108
3109 2015-09-07  Pedro Alves  <palves@redhat.com>
3110
3111         * guile/guile-internal.h (as_a_scm_t_subr): New.
3112         * guile/guile.c (misc_guile_functions): Use it.
3113         * guile/scm-arch.c (arch_functions): Use it.
3114         * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
3115         Use it.
3116         * guile/scm-breakpoint.c (breakpoint_functions): Use it.
3117         * guile/scm-cmd.c (command_functions): Use it.
3118         * guile/scm-disasm.c (disasm_functions): Use it.
3119         * guile/scm-exception.c (exception_functions)
3120         (private_exception_functions): Use it.
3121         * guile/scm-frame.c (frame_functions)
3122         * guile/scm-gsmob.c (gsmob_functions): Use it.
3123         * guile/scm-iterator.c (iterator_functions): Use it.
3124         * guile/scm-lazy-string.c (lazy_string_functions): Use it.
3125         * guile/scm-math.c (math_functions): Use it.
3126         * guile/scm-objfile.c (objfile_functions): Use it.
3127         * guile/scm-param.c (parameter_functions): Use it.
3128         * guile/scm-ports.c (port_functions, private_port_functions): Use
3129         it.
3130         * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
3131         * guile/scm-progspace.c (pspace_functions): Use it.
3132         * guile/scm-string.c (string_functions): Use it.
3133         * guile/scm-symbol.c (symbol_functions): Use it.
3134         * guile/scm-symtab.c (symtab_functions): Use it.
3135         * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
3136         it.
3137         * guile/scm-value.c (value_functions): Use it.
3138
3139 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
3140
3141         * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
3142         (tui_next_win): Likewise.
3143         (tui_prev_win): Likewise.
3144         (tui_partial_win_by_name): Likewise.
3145         (tui_init_generic_part): Likewise.
3146         (init_content_element): Likewise.
3147         (tui_del_window): Likewise.
3148         (tui_free_window): Likewise.
3149         (tui_del_data_windows): Likewise.
3150         (tui_free_data_content): Likewise.
3151         * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
3152         * tui/tui-regs.c (tui_show_register_group): Likewise.
3153         * tui/tui-win.c (tui_resize_all): Likewise.
3154         (tui_set_focus): Likewise.
3155         (tui_set_win_height): Likewise.
3156         (make_invisible_and_set_new_height): Likewise.
3157         * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
3158         * tui/tui-wingeneral.c (make_visible): Likewise.
3159
3160 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
3161
3162         * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
3163
3164 2015-09-04  Andrew Burgess  <andrew.burgess@embecosm.com>
3165
3166         * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
3167         pointer.
3168         * dbxread.c (dbx_end_psymtab): Likewise.
3169         * gnu-nat.c (gnu_write_inferior): Likewise.
3170         * mdebugread.c (cross_ref): Likewise.
3171         * p-valprint.c (pascal_val_print): Likewise.
3172         * xcoffread.c (xcoff_end_psymtab): Likewise.
3173
3174 2015-09-04  Yao Qi  <yao.qi@linaro.org>
3175
3176         * NEWS: Mention the aarch64 multi-arch debugging support.
3177
3178 2015-09-03  Pierre-Marie de Rodat  <derodat@adacore.com>
3179
3180         * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
3181         type instead of a TYPE_CODE_INT one for the string_char_type
3182         and the ada_primitive_type_char types.
3183
3184 2015-09-03  Yao Qi  <yao.qi@linaro.org>
3185
3186         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
3187         Move code to aarch64_linux_region_ok_for_watchpoint.  Call
3188         aarch64_linux_region_ok_for_watchpoint.
3189         * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
3190         New function.
3191         * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
3192         Declare it.
3193
3194 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
3195
3196         * gdb_obstack.h (obstack_strdup): Declare.
3197         * gdb_obstack.c (obstack_strdup): Define.
3198         * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
3199         * gdbarch.c: Regenerate.
3200         * gdbarch.h: Regenerate.
3201         * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
3202
3203 2015-09-02  Patrick Palka  <patrick@parcs.ath.cx>
3204
3205         * gdbtypes.c (copy_type_recursive): Update documentation.
3206
3207 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3208
3209         * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
3210         as zero.
3211
3212 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3213
3214         * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
3215
3216 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3217
3218         * solib-svr4.c (solib_event_probe_action): Call
3219         get_probe_argument_count using TRY...CATCH.
3220         (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3221
3222 2015-09-01  Sergio Durigan Junior  <sergiodj@redhat.com>
3223
3224         * probe.h (struct probe_ops) <get_probe_argument_count,
3225         evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3226         the comment that the function can throw an exception.
3227         (get_probe_argument_count): Likewise.
3228         (evaluate_probe_argument): Likewise.
3229         * stap-probe.c (stap_get_opcode): Call error instead of
3230         internal_error.
3231         (stap_get_expected_argument_type): Likewise.  Add argument
3232         'probe'.  Improve error message by mentioning the probe's name.
3233         (stap_parse_probe_arguments): Adjust call to
3234         stap_get_expected_argument_type.
3235         (stap_get_arg): Add comment.  Assert that 'probe->args_parsed' is
3236         not zero.  Call internal_error if GDB requests an argument but the
3237         probe has no arguments.
3238
3239 2015-09-01  Pierre-Marie de Rodat  <derodat@adacore.com>
3240
3241         * ada-lang.c (ada_resolve_function): Do not ask the user what
3242         match to use when in completion mode.
3243
3244 2015-08-31  Andrew Burgess  <andrew.burgess@embecosm.com>
3245
3246         * tui/tui-data.c (tui_win_name): Make local variable const, remove
3247         cast of NULL.
3248
3249 2015-08-31  Max Filippov  <jcmvbkbc@gmail.com>
3250
3251         * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3252         call_abi using XSHAL_ABI macro.
3253
3254 2015-08-29  Doug Evans  <xdje42@gmail.com>
3255
3256         * symtab.h (struct symbol): Tweak comment.
3257
3258 2015-08-29  Patrick Palka  <patrick@parcs.ath.cx>
3259
3260         * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3261         gdbarch obstack instead of on the heap.  Update commentary
3262         accordingly.
3263
3264 2015-08-28  Joel Brobecker  <brobecker@adacore.com>
3265
3266         GDB 7.10 released.
3267
3268 2015-08-28  Simon Marchi  <simon.marchi@ericsson.com>
3269
3270         * NEWS: Update entry about non-8-bits addressable memory.
3271
3272 2015-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
3273
3274         Revert:
3275         2014-11-06  Doug Evans  <xdje42@gmail.com>
3276         * solib.c (solib_global_lookup): Fetch arch from objfile,
3277         not target_gdbarch.
3278
3279 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3280
3281         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3282         attempt to relocate a TLS variable offset.
3283
3284 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3285
3286         * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3287         registered yet.  Set inferior_ptid while calling target_read_memory.
3288
3289 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3290
3291         * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3292         (GDB_ARCH_IS_TRAP_BRKPT): ... this.  Add __powerpc__ case.
3293         * linux-nat.c (check_stopped_by_breakpoint): Use
3294         GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3295
3296 2015-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
3297
3298         * linux-thread-db.c (thread_db_get_thread_local_address): If the
3299         thread was not yet discovered, use thread_from_lwp instead of
3300         calling thread_db_find_new_threads_1.
3301
3302 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
3303
3304         * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3305         statements.
3306
3307 2015-08-27  Simon Marchi  <simon.marchi@ericsson.com>
3308
3309         * NEWS: Document support for non-8-bits addressable memory.
3310
3311 2015-08-27  Pedro Alves  <palves@redhat.com>
3312
3313         * configure.ac: Remove AC_TYPE_SIGNAL call.
3314         * configure, config.in: Regenerate.
3315
3316 2015-08-27  Pedro Alves  <palves@redhat.com>
3317
3318         * cp-support.c (gdb_demangle): Use sighandler_t.  Remove cast.
3319         * extension-priv.h: Include signal.h.
3320         (struct signal_handler) <handler>: Change type to sighandler_t.
3321         * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3322         * inflow.c (sigint_ours, sigquit_ours): Change type to
3323         sighandler_t.
3324         (child_terminal_inferior): Remove casts.
3325         (child_terminal_ours_1, new_tty): Use sighandler_t.  Remove casts.
3326         (osig): Change type to sighandler_t.
3327         * nto-procfs.c (ofunc): Change type to sighandler_t.
3328         (procfs_wait): Remove casts.
3329         * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3330         * remote-sim.c (gdbsim_wait): Use sighandler_t.
3331         * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3332
3333 2015-08-27  Pedro Alves  <palves@redhat.com>
3334
3335         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3336         * gnulib/aclocal.m4: Renegerate.
3337         * gnulib/config.in: Renegerate.
3338         * gnulib/configure: Renegerate.
3339         * gnulib/import/Makefile.am: Update.
3340         * gnulib/import/Makefile.in: Regenerate.
3341         * gnulib/import/m4/gnulib-cache.m4: Update.
3342         * gnulib/import/m4/gnulib-comp.m4: Update.
3343         * gnulib/import/m4/signal_h.m4: New file.
3344         * gnulib/import/signal.in.h: New file.
3345
3346 2015-08-27  Pedro Alves  <palves@redhat.com>
3347
3348         * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3349         (MIN_MEMORY_PACKET_SIZE): New.
3350         (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3351         (get_memory_packet_size): Adjust.  No longer limit the max packet
3352         size.
3353         (set_memory_packet_size): Adjust, and remove dead code.
3354         (remote_check_symbols): Use xmalloc and a cleanup instead of
3355         alloca.
3356         (remote_packet_size): No longer cap the packet size.
3357         (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3358
3359 2015-08-26  Luis Machado  <lgustavo@codesourcery.com>
3360
3361         * compile/compile.c (compile_to_object): Mention language in
3362         error message.
3363
3364 2015-08-26  Patrick Palka  <patrick@parcs.ath.cx>
3365
3366         * target.c (target_pre_inferior): Unset attach_flag.
3367
3368 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
3369
3370         * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3371         * gdbarch.c: Re-generate.
3372
3373 2015-08-26  Simon Marchi  <simon.marchi@ericsson.com>
3374
3375         * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3376         function with the XNEW-family equivalent.
3377         * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3378         * ada-exp.y (write_ambiguous_var): Likewise.
3379         * ada-lang.c (resolve_subexp): Likewise.
3380         (user_select_syms): Likewise.
3381         (assign_aggregate): Likewise.
3382         (ada_evaluate_subexp): Likewise.
3383         (cache_symbol): Likewise.
3384         * addrmap.c (allocate_key): Likewise.
3385         (addrmap_create_mutable): Likewise.
3386         * aix-thread.c (sync_threadlists): Likewise.
3387         * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3388         (alpha_gdbarch_init): Likewise.
3389         * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3390         * arm-linux-nat.c (arm_linux_add_process): Likewise.
3391         * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3392         * arm-tdep.c (push_stack_item): Likewise.
3393         (arm_displaced_step_copy_insn): Likewise.
3394         (arm_gdbarch_init): Likewise.
3395         (_initialize_arm_tdep): Likewise.
3396         * avr-tdep.c (push_stack_item): Likewise.
3397         * ax-general.c (new_agent_expr): Likewise.
3398         * block.c (block_initialize_namespace): Likewise.
3399         * breakpoint.c (alloc_counted_command_line): Likewise.
3400         (update_dprintf_command_list): Likewise.
3401         (parse_breakpoint_sals): Likewise.
3402         (decode_static_tracepoint_spec): Likewise.
3403         (until_break_command): Likewise.
3404         (clear_command): Likewise.
3405         (update_global_location_list): Likewise.
3406         (get_breakpoint_objfile_data) Likewise.
3407         * btrace.c (ftrace_new_function): Likewise.
3408         (btrace_set_insn_history): Likewise.
3409         (btrace_set_call_history): Likewise.
3410         * buildsym.c (add_symbol_to_list): Likewise.
3411         (record_pending_block): Likewise.
3412         (start_subfile): Likewise.
3413         (start_buildsym_compunit): Likewise.
3414         (push_subfile): Likewise.
3415         (end_symtab_get_static_block): Likewise.
3416         (buildsym_init): Likewise.
3417         * cli/cli-cmds.c (source_command): Likewise.
3418         * cli/cli-decode.c (add_cmd): Likewise.
3419         * cli/cli-script.c (build_command_line): Likewise.
3420         (setup_user_args): Likewise.
3421         (realloc_body_list): Likewise.
3422         (process_next_line): Likewise.
3423         (copy_command_lines): Likewise.
3424         * cli/cli-setshow.c (do_set_command): Likewise.
3425         * coff-pe-read.c (read_pe_exported_syms): Likewise.
3426         * coffread.c (coff_locate_sections): Likewise.
3427         (coff_symtab_read): Likewise.
3428         (coff_read_struct_type): Likewise.
3429         * common/cleanups.c (make_my_cleanup2): Likewise.
3430         * common/common-exceptions.c (throw_it): Likewise.
3431         * common/filestuff.c (make_cleanup_close): Likewise.
3432         * common/format.c (parse_format_string): Likewise.
3433         * common/queue.h (DEFINE_QUEUE_P): Likewise.
3434         * compile/compile-object-load.c (munmap_list_add): Likewise.
3435         (compile_object_load): Likewise.
3436         * compile/compile-object-run.c (compile_object_run): Likewise.
3437         * compile/compile.c (append_args): Likewise.
3438         * corefile.c (specify_exec_file_hook): Likewise.
3439         * cp-support.c (make_symbol_overload_list): Likewise.
3440         * cris-tdep.c (push_stack_item): Likewise.
3441         (cris_gdbarch_init): Likewise.
3442         * ctf.c (ctf_trace_file_writer_new): Likewise.
3443         * dbxread.c (init_header_files): Likewise.
3444         (add_new_header_file): Likewise.
3445         (init_bincl_list): Likewise.
3446         (dbx_end_psymtab): Likewise.
3447         (start_psymtab): Likewise.
3448         (dbx_end_psymtab): Likewise.
3449         * dcache.c (dcache_init): Likewise.
3450         * dictionary.c (dict_create_hashed): Likewise.
3451         (dict_create_hashed_expandable): Likewise.
3452         (dict_create_linear): Likewise.
3453         (dict_create_linear_expandable): Likewise.
3454         * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3455         * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3456         * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3457         * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3458         (decode_frame_entry_1): Likewise.
3459         * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3460         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3461         * dwarf2read.c (dwarf2_has_info): Likewise.
3462         (create_signatured_type_table_from_index): Likewise.
3463         (dwarf2_read_index): Likewise.
3464         (dw2_get_file_names_reader): Likewise.
3465         (create_all_type_units): Likewise.
3466         (read_cutu_die_from_dwo): Likewise.
3467         (init_tu_and_read_dwo_dies): Likewise.
3468         (init_cutu_and_read_dies): Likewise.
3469         (create_all_comp_units): Likewise.
3470         (queue_comp_unit): Likewise.
3471         (inherit_abstract_dies): Likewise.
3472         (read_call_site_scope): Likewise.
3473         (dwarf2_add_field): Likewise.
3474         (dwarf2_add_typedef): Likewise.
3475         (dwarf2_add_member_fn): Likewise.
3476         (attr_to_dynamic_prop): Likewise.
3477         (abbrev_table_alloc_abbrev): Likewise.
3478         (abbrev_table_read_table): Likewise.
3479         (add_include_dir): Likewise.
3480         (add_file_name): Likewise.
3481         (dwarf_decode_line_header): Likewise.
3482         (dwarf2_const_value_attr): Likewise.
3483         (dwarf_alloc_block): Likewise.
3484         (parse_macro_definition): Likewise.
3485         (set_die_type): Likewise.
3486         (write_psymtabs_to_index): Likewise.
3487         (create_cus_from_index): Likewise.
3488         (dwarf2_create_include_psymtab): Likewise.
3489         (process_psymtab_comp_unit_reader): Likewise.
3490         (build_type_psymtab_dependencies): Likewise.
3491         (read_comp_units_from_section): Likewise.
3492         (compute_compunit_symtab_includes): Likewise.
3493         (create_dwo_unit_in_dwp_v1): Likewise.
3494         (create_dwo_unit_in_dwp_v2): Likewise.
3495         (read_func_scope): Likewise.
3496         (process_structure_scope): Likewise.
3497         (mark_common_block_symbol_computed): Likewise.
3498         (load_partial_dies): Likewise.
3499         (dwarf2_symbol_mark_computed): Likewise.
3500         * elfread.c (elf_symfile_segments): Likewise.
3501         (elf_read_minimal_symbols): Likewise.
3502         * environ.c (make_environ): Likewise.
3503         * eval.c (evaluate_subexp_standard): Likewise.
3504         * event-loop.c (create_file_handler): Likewise.
3505         (create_async_signal_handler): Likewise.
3506         (create_async_event_handler): Likewise.
3507         (create_timer): Likewise.
3508         * exec.c (build_section_table): Likewise.
3509         * fbsd-nat.c (fbsd_remember_child): Likewise.
3510         * fork-child.c (fork_inferior): Likewise.
3511         * frv-tdep.c (new_variant): Likewise.
3512         * gdbarch.sh (gdbarch_alloc): Likewise.
3513         (append_name): Likewise.
3514         * gdbtypes.c (rank_function): Likewise.
3515         (copy_type_recursive): Likewise.
3516         (add_dyn_prop): Likewise.
3517         * gnu-nat.c (make_proc): Likewise.
3518         (make_inf): Likewise.
3519         (gnu_write_inferior): Likewise.
3520         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3521         (build_std_type_info_type): Likewise.
3522         * guile/scm-param.c (compute_enum_list): Likewise.
3523         * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3524         * guile/scm-value.c (gdbscm_value_call): Likewise.
3525         * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3526         * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3527         (read_unwind_info): Likewise.
3528         * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3529         * infcall.c (dummy_frame_context_saver_setup): Likewise.
3530         (call_function_by_hand_dummy): Likewise.
3531         * infcmd.c (step_once): Likewise.
3532         (finish_forward): Likewise.
3533         (attach_command): Likewise.
3534         (notice_new_inferior): Likewise.
3535         * inferior.c (add_inferior_silent): Likewise.
3536         * infrun.c (add_displaced_stepping_state): Likewise.
3537         (save_infcall_control_state): Likewise.
3538         (save_inferior_ptid): Likewise.
3539         (_initialize_infrun): Likewise.
3540         * jit.c (bfd_open_from_target_memory): Likewise.
3541         (jit_gdbarch_data_init): Likewise.
3542         * language.c (add_language): Likewise.
3543         * linespec.c (decode_line_2): Likewise.
3544         * linux-nat.c (add_to_pid_list): Likewise.
3545         (add_initial_lwp): Likewise.
3546         * linux-thread-db.c (add_thread_db_info): Likewise.
3547         (record_thread): Likewise.
3548         (info_auto_load_libthread_db): Likewise.
3549         * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3550         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3551         * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3552         * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3553         * macrocmd.c (macro_define_command): Likewise.
3554         * macroexp.c (gather_arguments): Likewise.
3555         * macroscope.c (sal_macro_scope): Likewise.
3556         * macrotab.c (new_macro_table): Likewise.
3557         * mdebugread.c (push_parse_stack): Likewise.
3558         (parse_partial_symbols): Likewise.
3559         (parse_symbol): Likewise.
3560         (psymtab_to_symtab_1): Likewise.
3561         (new_block): Likewise.
3562         (new_psymtab): Likewise.
3563         (mdebug_build_psymtabs): Likewise.
3564         (add_pending): Likewise.
3565         (elfmdebug_build_psymtabs): Likewise.
3566         * mep-tdep.c (mep_gdbarch_init): Likewise.
3567         * mi/mi-main.c (mi_execute_command): Likewise.
3568         * mi/mi-parse.c (mi_parse_argv): Likewise.
3569         * minidebug.c (lzma_open): Likewise.
3570         * minsyms.c (terminate_minimal_symbol_table): Likewise.
3571         * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3572         * mips-tdep.c (mips_gdbarch_init): Likewise.
3573         * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3574         * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3575         * mt-tdep.c (mt_registers_info): Likewise.
3576         * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3577         * nat/linux-btrace.c (linux_enable_bts): Likewise.
3578         (linux_enable_pt): Likewise.
3579         * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3580         (linux_xfer_osdata_processgroups): Likewise.
3581         * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3582         * nto-procfs.c (procfs_meminfo): Likewise.
3583         * objc-lang.c (start_msglist): Likewise.
3584         (selectors_info): Likewise.
3585         (classes_info): Likewise.
3586         (find_methods): Likewise.
3587         * objfiles.c (allocate_objfile): Likewise.
3588         (update_section_map): Likewise.
3589         * osabi.c (gdbarch_register_osabi): Likewise.
3590         (gdbarch_register_osabi_sniffer): Likewise.
3591         * parse.c (start_arglist): Likewise.
3592         * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3593         (hwdebug_insert_point): Likewise.
3594         * printcmd.c (display_command): Likewise.
3595         (ui_printf): Likewise.
3596         * procfs.c (create_procinfo): Likewise.
3597         (load_syscalls): Likewise.
3598         (proc_get_LDT_entry): Likewise.
3599         (proc_update_threads): Likewise.
3600         * prologue-value.c (make_pv_area): Likewise.
3601         (pv_area_store): Likewise.
3602         * psymtab.c (extend_psymbol_list): Likewise.
3603         (init_psymbol_list): Likewise.
3604         (allocate_psymtab): Likewise.
3605         * python/py-inferior.c (add_thread_object): Likewise.
3606         * python/py-param.c (compute_enum_values): Likewise.
3607         * python/py-value.c (valpy_call): Likewise.
3608         * python/py-varobj.c (py_varobj_iter_next): Likewise.
3609         * python/python.c (ensure_python_env): Likewise.
3610         * record-btrace.c (record_btrace_start_replaying): Likewise.
3611         * record-full.c (record_full_reg_alloc): Likewise.
3612         (record_full_mem_alloc): Likewise.
3613         (record_full_end_alloc): Likewise.
3614         (record_full_core_xfer_partial): Likewise.
3615         * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3616         * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3617         * remote-notif.c (remote_notif_state_allocate): Likewise.
3618         * remote.c (demand_private_info): Likewise.
3619         (remote_notif_stop_alloc_reply): Likewise.
3620         (remote_enable_btrace): Likewise.
3621         * reverse.c (save_bookmark_command): Likewise.
3622         * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3623         * rx-tdep.c (rx_gdbarch_init): Likewise.
3624         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3625         * ser-go32.c (dos_get_tty_state): Likewise.
3626         (dos_copy_tty_state): Likewise.
3627         * ser-mingw.c (ser_windows_open): Likewise.
3628         (ser_console_wait_handle): Likewise.
3629         (ser_console_get_tty_state): Likewise.
3630         (make_pipe_state): Likewise.
3631         (net_windows_open): Likewise.
3632         * ser-unix.c (hardwire_get_tty_state): Likewise.
3633         (hardwire_copy_tty_state): Likewise.
3634         * solib-aix.c (solib_aix_new_lm_info): Likewise.
3635         * solib-dsbt.c (dsbt_current_sos): Likewise.
3636         (dsbt_relocate_main_executable): Likewise.
3637         * solib-frv.c (frv_current_sos): Likewise.
3638         (frv_relocate_main_executable): Likewise.
3639         * solib-spu.c (spu_bfd_fopen): Likewise.
3640         * solib-svr4.c (lm_info_read): Likewise.
3641         (svr4_copy_library_list): Likewise.
3642         (svr4_default_sos): Likewise.
3643         * source.c (find_source_lines): Likewise.
3644         (line_info): Likewise.
3645         (add_substitute_path_rule): Likewise.
3646         * spu-linux-nat.c (spu_bfd_open): Likewise.
3647         * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3648         * stabsread.c (dbx_lookup_type): Likewise.
3649         (read_type): Likewise.
3650         (read_member_functions): Likewise.
3651         (read_struct_fields): Likewise.
3652         (read_baseclasses): Likewise.
3653         (read_args): Likewise.
3654         (_initialize_stabsread): Likewise.
3655         * stack.c (func_command): Likewise.
3656         * stap-probe.c (handle_stap_probe): Likewise.
3657         * symfile.c (addrs_section_sort): Likewise.
3658         (addr_info_make_relative): Likewise.
3659         (load_section_callback): Likewise.
3660         (add_symbol_file_command): Likewise.
3661         (init_filename_language_table): Likewise.
3662         * symtab.c (create_filename_seen_cache): Likewise.
3663         (sort_search_symbols_remove_dups): Likewise.
3664         (search_symbols): Likewise.
3665         * target.c (make_cleanup_restore_target_terminal): Likewise.
3666         * thread.c (new_thread): Likewise.
3667         (enable_thread_stack_temporaries): Likewise.
3668         (make_cleanup_restore_current_thread): Likewise.
3669         (thread_apply_all_command): Likewise.
3670         * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3671         * top.c (gdb_readline_wrapper): Likewise.
3672         * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3673         * tracepoint.c (trace_find_line_command): Likewise.
3674         (all_tracepoint_actions_and_cleanup): Likewise.
3675         (make_cleanup_restore_current_traceframe): Likewise.
3676         (get_uploaded_tp): Likewise.
3677         (get_uploaded_tsv): Likewise.
3678         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3679         (tui_alloc_win_info): Likewise.
3680         (tui_alloc_content): Likewise.
3681         (tui_add_content_elements): Likewise.
3682         * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3683         (tui_set_disassem_content): Likewise.
3684         * ui-file.c (ui_file_new): Likewise.
3685         (stdio_file_new): Likewise.
3686         (tee_file_new): Likewise.
3687         * utils.c (make_cleanup_restore_integer): Likewise.
3688         (add_internal_problem_command): Likewise.
3689         * v850-tdep.c (v850_gdbarch_init): Likewise.
3690         * valops.c (find_oload_champ): Likewise.
3691         * value.c (allocate_value_lazy): Likewise.
3692         (record_latest_value): Likewise.
3693         (create_internalvar): Likewise.
3694         * varobj.c (install_variable): Likewise.
3695         (new_variable): Likewise.
3696         (new_root_variable): Likewise.
3697         (cppush): Likewise.
3698         (_initialize_varobj): Likewise.
3699         * windows-nat.c (windows_make_so): Likewise.
3700         * x86-nat.c (x86_add_process): Likewise.
3701         * xcoffread.c (arrange_linetable): Likewise.
3702         (allocate_include_entry): Likewise.
3703         (process_linenos): Likewise.
3704         (SYMBOL_DUP): Likewise.
3705         (xcoff_start_psymtab): Likewise.
3706         (xcoff_end_psymtab): Likewise.
3707         * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3708         * xtensa-tdep.c (xtensa_register_type): Likewise.
3709         * gdbarch.c: Regenerate.
3710         * gdbarch.h: Regenerate.
3711
3712 2015-08-25  Don Breazeal  <donb@codesourcery.com>
3713
3714         * infrun.c (follow_exec): Re-order operations for
3715         handling follow-exec-mode "new".
3716         (handle_inferior_event_1): Assign ecs->event_thread
3717         to the current thread.
3718         * remote.c (get_remote_arch_state): Add an assertion.
3719
3720 2015-08-26  Pedro Alves  <palves@redhat.com>
3721
3722         * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3723
3724 2015-08-25  Pedro Alves  <palves@redhat.com>
3725
3726         PR gdb/18804
3727         * defs.h (maybe_quit): Declare.
3728         (QUIT): Now calls maybe_quit.
3729         * event-loop.c (clear_async_signal_handler)
3730         (async_signal_handler_is_marked): New functions.
3731         * event-loop.h (async_signal_handler_is_marked)
3732         (clear_async_signal_handler): New declarations.
3733         * remote.c (remote_check_pending_interrupt): New function.
3734         (interrupt_query): Use make_cleanup_restore_target_terminal.  No
3735         longer check whether the target is async.  If waiting for a stop
3736         reply, and a Ctrl-C as been sent to the target, offer to
3737         disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3738         Otherwise do not disconnect and throw a quit.
3739         (_initialize_remote): Install remote_check_pending_interrupt as
3740         to_check_pending_interrupt.
3741         * target.c (target_check_pending_interrupt): New function.
3742         * target.h (struct target_ops) <to_check_pending_interrupt>: New
3743         field.
3744         (target_check_pending_interrupt): New declaration.
3745         * utils.c (maybe_quit): New function.
3746         * target-delegates.c: Regenerate.
3747
3748 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3749
3750         * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3751         Rename local variable pid to tid, and get lwpid of lwp.  Update
3752         debug output.
3753
3754 2015-08-25  Pierre-Marie de Rodat  <derodat@adacore.com>
3755
3756         * ada-lang.c (ada_read_var_value): Add a var_block argument
3757         and pass it to default_read_var_value.
3758         * block.c (block_static_link): New accessor.
3759         * block.h (block_static_link): Declare it.
3760         * buildsym.c (finish_block_internal): Add a static_link
3761         argument.  If there is a static link, associate it to the new
3762         block.
3763         (finish_block): Add a static link argument and pass it to
3764         finish_block_internal.
3765         (end_symtab_get_static_block): Update calls to finish_block and
3766         to finish_block_internal.
3767         (end_symtab_with_blockvector): Update call to
3768         finish_block_internal.
3769         * buildsym.h: Forward-declare struct dynamic_prop.
3770         (struct context_stack): Add a static_link field.
3771         (finish_block): Add a static link argument.
3772         * c-exp.y: Remove an obsolete comment (evaluation of variables
3773         already start from the selected frame, and now they climb *up*
3774         the call stack) and propagate the block information to the
3775         produced expression.
3776         * d-exp.y: Likewise.
3777         * f-exp.y: Likewise.
3778         * go-exp.y: Likewise.
3779         * jv-exp.y: Likewise.
3780         * m2-exp.y: Likewise.
3781         * p-exp.y: Likewise.
3782         * coffread.c (coff_symtab_read): Update calls to finish_block.
3783         * dbxread.c (process_one_symbol): Likewise.
3784         * xcoffread.c (read_xcoff_symtab): Likewise.
3785         * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3786         "sym" parameter to struct block_symbol, update its uses and pass
3787         its block to calls to read_var_value.
3788         (convert_symbol_sym): Update the calls to convert_one_symbol.
3789         * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3790         call to read_var_value.
3791         * dwarf2loc.c (block_op_get_frame_base): New.
3792         (dwarf2_block_frame_base_locexpr_funcs): Implement the
3793         get_frame_base method.
3794         (dwarf2_block_frame_base_loclist_funcs): Likewise.
3795         (dwarf2locexpr_baton_eval): Add a frame argument and use it
3796         instead of the selected frame in order to evaluate the
3797         expression.
3798         (dwarf2_evaluate_property): Add a frame argument.  Update call
3799         to dwarf2_locexpr_baton_eval to provide a frame in available and
3800         to handle the absence of address stack.
3801         * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3802         * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3803         declaration.
3804         (read_func_scope): Record any available static link description.
3805         Update call to finish_block.
3806         (read_lexical_block_scope): Update call to finish_block.
3807         * findvar.c (follow_static_link): New.
3808         (get_hosting_frame): New.
3809         (default_read_var_value): Add a var_block argument.  Use
3810         get_hosting_frame to handle non-local references.
3811         (read_var_value): Add a var_block argument and pass it to the
3812         LA_READ_VAR_VALUE method.
3813         * gdbtypes.c (resolve_dynamic_range): Update calls to
3814         dwarf2_evaluate_property.
3815         (resolve_dynamic_type_internal): Likewise.
3816         * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3817         read_var_value, passing it the block coming from symbol lookup.
3818         * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3819         read_var_value (TODO).
3820         * infcmd.c (finish_command_continuation): Update call to
3821         read_var_value, passing it the block coming from symbol lookup.
3822         * infrun.c (insert_exception_resume_breakpoint): Likewise.
3823         * language.h (struct language_defn): Add a var_block argument to
3824         the LA_READ_VAR_VALUE method.
3825         * objfiles.c (struct static_link_htab_entry): New.
3826         (static_link_htab_entry_hash): New.
3827         (static_link_htab_entry_eq): New.
3828         (objfile_register_static_link): New.
3829         (objfile_lookup_static_link): New.
3830         (free_objfile): Free the STATIC_LINKS hashed map if needed.
3831         * objfiles.h: Include hashtab.h.
3832         (struct objfile): Add a static_links field.
3833         (objfile_register_static_link): New.
3834         (objfile_lookup_static_link): New.
3835         * printcmd.c (print_variable_and_value): Update call to
3836         read_var_value.
3837         * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3838         * python/py-frame.c (frapy_read_var): Update call to
3839         read_var_value, passing it the block coming from symbol lookup.
3840         * python/py-framefilter.c (extract_sym): Add a sym_block
3841         parameter and set the pointed value to NULL (TODO).
3842         (enumerate_args): Update call to extract_sym.
3843         (enumerate_locals): Update calls to extract_sym and to
3844         read_var_value.
3845         * python/py-symbol.c (sympy_value): Update call to
3846         read_var_value (TODO).
3847         * stack.c (read_frame_local): Update call to read_var_value.
3848         (read_frame_arg): Likewise.
3849         (return_command): Likewise.
3850         * symtab.h (struct symbol_block_ops): Add a get_frame_base
3851         method.
3852         (struct symbol): Add a block field.
3853         (SYMBOL_BLOCK): New accessor.
3854         * valops.c (value_of_variable): Remove frame/block handling and
3855         pass the block argument to read_var_value, which does this job
3856         now.
3857         (value_struct_elt_for_reference): Update calls to
3858         read_var_value.
3859         (value_of_this): Pass the block found to read_var_value.
3860         * value.h (read_var_value): Add a var_block argument.
3861         (default_read_var_value): Likewise.
3862
3863 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3864
3865         * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3866         * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3867         * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3868
3869 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3870
3871         * Makefile.in (aarch64-liunx.o): New rule.
3872         (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3873         * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3874         * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3875         * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3876         extern.
3877         (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3878         * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3879         * nat/aarch64-linux.c: New file.
3880         * nat/aarch64-linux.h: New file.
3881
3882 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3883
3884         * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3885         lwp_arch_private_info and ptid_of_lwp.
3886
3887 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3888
3889         * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3890         Move it to nat/aarch64-linux-hw-point.c.
3891         (debug_reg_change_callback): Likewise.
3892         (aarch64_notify_debug_reg_change): :Likewise.
3893         * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3894         (aarch64_dr_update_callback_param): New.
3895         (debug_reg_change_callback): New function.
3896         (aarch64_notify_debug_reg_change): Likewise.
3897         * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3898         Remove the declaration.
3899
3900 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3901
3902         * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3903         Call current_lwp_ptid.
3904
3905 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3906
3907         * aarch64-linux-nat.c (debug_reg_change_callback): Use
3908         debug_printf.
3909
3910 2015-08-25  Yao Qi  <yao.qi@linaro.org>
3911
3912         * aarch64-linux-nat.c (debug_reg_change_callback): Call
3913         ptid_get_pid rather than ptid_get_lwp.
3914
3915 2015-08-24  Pedro Alves  <palves@redhat.com>
3916
3917         * NEWS (New commands): Mention set/show remote
3918         multiprocess-extensions-packet.
3919         * remote.c (remote_query_supported): Only tell the server to use
3920         the multiprocess extensions if the user hasn't force-disabled them
3921         with "set remote multiprocess-extensions-packet off".
3922
3923 2015-08-24  Pedro Alves  <palves@redhat.com>
3924
3925         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3926         1029a8112290f6eee9d7878a391c49db42c999bd.
3927         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3928         Regenerate.
3929         * gnulib/import/Makefile.am: Update.
3930         * gnulib/import/Makefile.in: Update.
3931         * gnulib/import/alloca.in.h: Update.
3932         * gnulib/import/basename-lgpl.c: Update.
3933         * gnulib/import/canonicalize-lgpl.c: Update.
3934         * gnulib/import/config.charset: Update.
3935         * gnulib/import/dirent.in.h: Update.
3936         * gnulib/import/dirfd.c: Update.
3937         * gnulib/import/dirname-lgpl.c: Update.
3938         * gnulib/import/dirname.h: Update.
3939         * gnulib/import/dosname.h: Update.
3940         * gnulib/import/errno.in.h: Update.
3941         * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3942         * gnulib/import/extra/snippet/c++defs.h: Update.
3943         * gnulib/import/extra/snippet/warn-on-use.h: Update.
3944         * gnulib/import/extra/update-copyright: Update.
3945         * gnulib/import/float+.h: Update.
3946         * gnulib/import/float.c: Update.
3947         * gnulib/import/float.in.h: Update.
3948         * gnulib/import/fnmatch.c: Update.
3949         * gnulib/import/fnmatch.in.h: Update.
3950         * gnulib/import/fnmatch_loop.c: Update.
3951         * gnulib/import/fpucw.h: Update.
3952         * gnulib/import/frexp.c: Update.
3953         * gnulib/import/frexpl.c: Update.
3954         * gnulib/import/gettimeofday.c: Update.
3955         * gnulib/import/inttypes.in.h: Update.
3956         * gnulib/import/isnan.c: Update.
3957         * gnulib/import/isnand-nolibm.h: Update.
3958         * gnulib/import/isnand.c: Update.
3959         * gnulib/import/isnanl-nolibm.h: Update.
3960         * gnulib/import/isnanl.c: Update.
3961         * gnulib/import/itold.c: Update.
3962         * gnulib/import/localcharset.c: Update.
3963         * gnulib/import/localcharset.h: Update.
3964         * gnulib/import/lstat.c: Update.
3965         * gnulib/import/m4/00gnulib.m4: Update.
3966         * gnulib/import/m4/absolute-header.m4: Update.
3967         * gnulib/import/m4/alloca.m4: Update.
3968         * gnulib/import/m4/canonicalize.m4: Update.
3969         * gnulib/import/m4/codeset.m4: Update.
3970         * gnulib/import/m4/configmake.m4: Update.
3971         * gnulib/import/m4/dirent_h.m4: Update.
3972         * gnulib/import/m4/dirfd.m4: Update.
3973         * gnulib/import/m4/dirname.m4: Update.
3974         * gnulib/import/m4/double-slash-root.m4: Update.
3975         * gnulib/import/m4/eealloc.m4: Update.
3976         * gnulib/import/m4/errno_h.m4: Update.
3977         * gnulib/import/m4/exponentd.m4: Update.
3978         * gnulib/import/m4/exponentl.m4: Update.
3979         * gnulib/import/m4/extensions.m4: Update.
3980         * gnulib/import/m4/extern-inline.m4: Update.
3981         * gnulib/import/m4/fcntl-o.m4: Update.
3982         * gnulib/import/m4/float_h.m4: Update.
3983         * gnulib/import/m4/fnmatch.m4: Update.
3984         * gnulib/import/m4/fpieee.m4: Update.
3985         * gnulib/import/m4/frexp.m4: Update.
3986         * gnulib/import/m4/frexpl.m4: Update.
3987         * gnulib/import/m4/gettimeofday.m4: Update.
3988         * gnulib/import/m4/glibc21.m4: Update.
3989         * gnulib/import/m4/gnulib-cache.m4: Update.
3990         * gnulib/import/m4/gnulib-common.m4: Update.
3991         * gnulib/import/m4/gnulib-comp.m4: Update.
3992         * gnulib/import/m4/gnulib-tool.m4: Update.
3993         * gnulib/import/m4/include_next.m4: Update.
3994         * gnulib/import/m4/inttypes-pri.m4: Update.
3995         * gnulib/import/m4/inttypes.m4: Update.
3996         * gnulib/import/m4/isnand.m4: Update.
3997         * gnulib/import/m4/isnanl.m4: Update.
3998         * gnulib/import/m4/largefile.m4: Update.
3999         * gnulib/import/m4/localcharset.m4: Update.
4000         * gnulib/import/m4/locale-fr.m4: Update.
4001         * gnulib/import/m4/locale-ja.m4: Update.
4002         * gnulib/import/m4/locale-zh.m4: Update.
4003         * gnulib/import/m4/longlong.m4: Update.
4004         * gnulib/import/m4/lstat.m4: Update.
4005         * gnulib/import/m4/malloc.m4: Update.
4006         * gnulib/import/m4/malloca.m4: Update.
4007         * gnulib/import/m4/math_h.m4: Update.
4008         * gnulib/import/m4/mbrtowc.m4: Update.
4009         * gnulib/import/m4/mbsinit.m4: Update.
4010         * gnulib/import/m4/mbsrtowcs.m4: Update.
4011         * gnulib/import/m4/mbstate_t.m4: Update.
4012         * gnulib/import/m4/memchr.m4: Update.
4013         * gnulib/import/m4/memmem.m4: Update.
4014         * gnulib/import/m4/mmap-anon.m4: Update.
4015         * gnulib/import/m4/multiarch.m4: Update.
4016         * gnulib/import/m4/nocrash.m4: Update.
4017         * gnulib/import/m4/off_t.m4: Update.
4018         * gnulib/import/m4/pathmax.m4: Update.
4019         * gnulib/import/m4/readlink.m4: Update.
4020         * gnulib/import/m4/rename.m4: Update.
4021         * gnulib/import/m4/rmdir.m4: Update.
4022         * gnulib/import/m4/ssize_t.m4: Update.
4023         * gnulib/import/m4/stat.m4: Update.
4024         * gnulib/import/m4/stdbool.m4: Update.
4025         * gnulib/import/m4/stddef_h.m4: Update.
4026         * gnulib/import/m4/stdint.m4: Update.
4027         * gnulib/import/m4/stdio_h.m4: Update.
4028         * gnulib/import/m4/stdlib_h.m4: Update.
4029         * gnulib/import/m4/string_h.m4: Update.
4030         * gnulib/import/m4/strstr.m4: Update.
4031         * gnulib/import/m4/strtok_r.m4: Update.
4032         * gnulib/import/m4/sys_socket_h.m4: Update.
4033         * gnulib/import/m4/sys_stat_h.m4: Update.
4034         * gnulib/import/m4/sys_time_h.m4: Update.
4035         * gnulib/import/m4/sys_types_h.m4: Update.
4036         * gnulib/import/m4/time_h.m4: Update.
4037         * gnulib/import/m4/unistd_h.m4: Update.
4038         * gnulib/import/m4/warn-on-use.m4: Update.
4039         * gnulib/import/m4/wchar_h.m4: Update.
4040         * gnulib/import/m4/wchar_t.m4: Update.
4041         * gnulib/import/m4/wctype_h.m4: Update.
4042         * gnulib/import/m4/wint_t.m4: Update.
4043         * gnulib/import/malloc.c: Update.
4044         * gnulib/import/malloca.c: Update.
4045         * gnulib/import/malloca.h: Update.
4046         * gnulib/import/math.in.h: Update.
4047         * gnulib/import/mbrtowc.c: Update.
4048         * gnulib/import/mbsinit.c: Update.
4049         * gnulib/import/mbsrtowcs-impl.h: Update.
4050         * gnulib/import/mbsrtowcs-state.c: Update.
4051         * gnulib/import/mbsrtowcs.c: Update.
4052         * gnulib/import/memchr.c: Update.
4053         * gnulib/import/memmem.c: Update.
4054         * gnulib/import/pathmax.h: Update.
4055         * gnulib/import/readlink.c: Update.
4056         * gnulib/import/ref-add.sin: Update.
4057         * gnulib/import/ref-del.sin: Update.
4058         * gnulib/import/rename.c: Update.
4059         * gnulib/import/rmdir.c: Update.
4060         * gnulib/import/same-inode.h: Update.
4061         * gnulib/import/stat.c: Update.
4062         * gnulib/import/stdbool.in.h: Update.
4063         * gnulib/import/stddef.in.h: Update.
4064         * gnulib/import/stdint.in.h: Update.
4065         * gnulib/import/stdio.c: Update.
4066         * gnulib/import/stdio.in.h: Update.
4067         * gnulib/import/stdlib.in.h: Update.
4068         * gnulib/import/str-two-way.h: Update.
4069         * gnulib/import/streq.h: Update.
4070         * gnulib/import/string.in.h: Update.
4071         * gnulib/import/stripslash.c: Update.
4072         * gnulib/import/strnlen1.c: Update.
4073         * gnulib/import/strnlen1.h: Update.
4074         * gnulib/import/strstr.c: Update.
4075         * gnulib/import/strtok_r.c: Update.
4076         * gnulib/import/sys_stat.in.h: Update.
4077         * gnulib/import/sys_time.in.h: Update.
4078         * gnulib/import/sys_types.in.h: Update.
4079         * gnulib/import/time.in.h: Update.
4080         * gnulib/import/unistd.in.h: Update.
4081         * gnulib/import/verify.h: Update.
4082         * gnulib/import/wchar.in.h: Update.
4083         * gnulib/import/wctype.in.h: Update.
4084         * gnulib/import/gettimeofday.c: New file.
4085         * gnulib/import/m4/absolute-header.m4: New file.
4086         * gnulib/import/m4/gettimeofday.m4: New file.
4087         * gnulib/import/m4/sys_socket_h.m4: New file.
4088         * gnulib/import/m4/sys_time_h.m4: New file.
4089         * gnulib/import/stdio.c: Delete file.
4090         * gnulib/import/sys_time.in.h: New file.
4091
4092 2015-08-24  Pedro Alves  <palves@redhat.com>
4093
4094         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
4095         * common/gdb_sys_time.h: New file.
4096         * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
4097         * gdb_select.h: Likewise.
4098         * gdb_usleep.c: Likewise.
4099         * maint.c: Likewise.
4100         * mi/mi-main.c: Likewise.
4101         * mi/mi-parse.h: Likewise.
4102         * remote-fileio.c: Likewise.
4103         * remote-m32r-sdi.c: Likewise.
4104         * remote.c: Likewise.
4105         * ser-base.c: Likewise.
4106         * ser-pipe.c: Likewise.
4107         * ser-tcp.c: Likewise.
4108         * ser-unix.c: Likewise.
4109         * symfile.c: Likewise.
4110         * symfile.c: Likewise.  Rename OSIZE to SIZE throughout.
4111         * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
4112         * utils.c: Likewise.
4113
4114 2015-08-24  Pedro Alves  <palves@redhat.com>
4115
4116         * NEWS: Mention removed support for the various ROM monitors.
4117         * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
4118         ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
4119         * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
4120         gdb_target_obs.
4121         (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
4122         gdb_target_obs.
4123         (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
4124         dsrec.o from gdb_target_obs.
4125         (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
4126         from gdb_target_obs.
4127         (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
4128         gdb_target_obs.
4129         (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
4130         dink32-rom.o from gdb_target_obs.
4131         (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
4132         (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
4133         * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
4134         monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
4135
4136 2015-08-21  Pedro Alves  <palves@redhat.com>
4137
4138         * frame.c (null_frame_id): Explicitly zero-initialize.
4139
4140 2015-08-21  Tom Tromey  <tromey@redhat.com>
4141
4142         * dwarf2read.c (struct dwarf2_section_info): Rename field
4143         'asection' to 'section'.
4144         (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
4145         (dwarf2_locate_sections, dwarf2_locate_sections)
4146         (locate_dwz_sections, locate_v1_virtual_dwo_sections)
4147         (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
4148         (dwarf2_locate_v2_dwp_sections): Adjust.
4149
4150 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
4151
4152         * top.h (gdb_in_secondary_prompt_p): Declare.
4153         * top.c (gdb_secondary_prompt_depth): Define.
4154         (gdb_in_secondary_prompt_p): Define.
4155         (gdb_readline_wrapper_cleanup): Decrement
4156         gdb_secondary_prompt_depth.
4157         (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
4158         * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
4159         are in a secondary prompt.
4160
4161 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
4162
4163         * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
4164         emit the newline.
4165
4166 2015-08-21  Gary Benson  <gbenson@redhat.com>
4167
4168         * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
4169
4170 2015-08-21  Gary Benson  <gbenson@redhat.com>
4171
4172         * target.h (struct target_ops) <to_fileio_open>: New argument
4173         warn_if_slow.  Update comment.  All implementations updated.
4174         (target_fileio_open_warn_if_slow): New declaration.
4175         * target.c (target_fileio_open): Renamed as...
4176         (target_fileio_open_1): ...this.  New argument warn_if_slow.
4177         Pass warn_if_slow to implementation.  Update debug printing.
4178         (target_fileio_open): New function.
4179         (target_fileio_open_warn_if_slow): Likewise.
4180         * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
4181         target_fileio_open_warn_if_slow.
4182
4183 2015-08-21  Gary Benson  <gbenson@redhat.com>
4184
4185         * nat/linux-namespaces.c (linux_mntns_access_fs):
4186         Do not overwrite old_chain.
4187
4188 2015-08-20  Max Filippov  <jcmvbkbc@gmail.com>
4189
4190         * arch/xtensa.h: New file.
4191         * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
4192         (ps_get_thread_area): New function.
4193         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
4194         set_gdbarch_fetch_tls_load_module_address to enable TLS support.
4195         * xtensa-tdep.c (osabi.h): New #include.
4196         (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
4197         xtensa-specific hooks.
4198         * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
4199         member and move the structure to arch/xtensa.h.
4200
4201 2015-08-21  Pedro Alves  <palves@redhat.com>
4202
4203         * remote.c (struct readahead_cache): New.
4204         (struct remote_state) <readahead_cache>: New field.
4205         (remote_open_1): Invalidate the cache.
4206         (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
4207         functions.
4208         (remote_hostio_pwrite): Invalidate the readahead cache.
4209         (remote_hostio_pread): Rename to ...
4210         (remote_hostio_pread_vFile): ... this.
4211         (remote_hostio_pread_from_cache): New function.
4212         (remote_hostio_pread): Reimplement.
4213         (remote_hostio_close): Invalidate the readahead cache.
4214
4215 2015-08-21  Marcin CieÅ›lak <saper@saper.info>  (tiny patch)
4216
4217         PR build/18843
4218         * procfs.c: Include "filestuff.h".
4219
4220 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
4221
4222         * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4223         curch.
4224         * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4225         cur_line or curch, instead call wmove().
4226         (init_win_info) [CMD_WIN]: Likewise.
4227         * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4228         instead call getcury().
4229         (tui_redisplay_readline): Don't set cur_line or curch.
4230         (tui_mld_erase_entire_line): Don't read cur_line, instead call
4231         getcury().
4232         (tui_cont_sig): Remove call to wmove.
4233         (tui_getc): Don't read cur_line or curch, instead call getcury()
4234         or getyx().  Don't set curch.
4235         * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4236         set cur_line or curch.  Always move cursor to (0,0).
4237
4238 2015-08-20  Pedro Alves  <palves@redhat.com>
4239
4240         * infrun.c (print_target_wait_results): Make extern.
4241         * infrun.h (print_target_wait_results): Declare.
4242         * remote.c (set_stop_requested_callback): Delete.
4243         (process_initial_stop_replies): New function.
4244         (remote_start_remote): Use it.
4245         (stop_reply_queue_length): New function.
4246
4247 2015-08-20  Pedro Alves  <palves@redhat.com>
4248
4249         * dwarf2read.c (process_full_comp_unit): To tell whether
4250         start_subfile managed to deduce a language, test for
4251         language_unknown instead of language_c.
4252
4253 2015-08-20  Pierre-Marie de Rodat  <derodat@adacore.com>
4254
4255         * ada-lex.l: Reset the start condition to INITIAL in the rule that
4256         matches attributes.
4257
4258 2015-08-19  Kevin Buettner  <kevinb@redhat.com>
4259
4260         * dwarf2read.c (dwarf2_string_attr): New function.
4261         (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4262         (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4263         (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4264         (anonymous_struct_prefix, prepare_one_comp_unit): Use
4265         dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4266
4267 2015-08-18  Doug Evans  <dje@google.com>
4268             Adrian Sendroiu <adrian.sendroiu@freescale.com>
4269
4270         PR mi/18833
4271         * cli/cli-logging.c (pop_output_files): Don't restore redirection
4272         if MI-like.
4273         * mi/mi-out.c: #include "vec.h".
4274         (ui_filep): New type.
4275         (DEV_VEC_P (ui_filep)): New type.
4276         (struct ui_out_data) <buffer, original_buffer>: Delete.
4277         (struct ui_out_data) <streams>: New member.
4278         (mi_ui_out_impl): Add data_destroy field.
4279         (mi_field_string, mi_field_fmt): Update.
4280         (mi_flush, mi_redirect, field_separator): Update.
4281         (mi_open, mi_close): Update.
4282         (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4283         (mi_out_data_ctor, mi_out_data_dtor): New functions.
4284         (mi_out_new): Call mi_out_data_ctor.
4285
4286 2015-08-18  Sandra Loosemore  <sandra@codesourcery.com>
4287
4288         * remote.c (strprefix): New.
4289         (remote_parse_stop_reply): Use strprefix instead of strncmp
4290         to ensure exact match of keyword.
4291
4292 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4293
4294         * gdb_bfd.c (debug_bfd_cache): New variable.
4295         (show_bfd_cache_debug): New function.
4296         (gdb_bfd_open): Add debug logging.
4297         (gdb_bfd_ref): Likewise.
4298         (gdb_bfd_unref): Likewise.
4299         (_initialize_gdb_bfd): Add new set/show command.
4300         * NEWS: Mention new command.
4301
4302 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4303
4304         * gdb_bfd.c (bfd_sharing): New variable.
4305         (show_bfd_sharing): New function.
4306         (gdb_bfd_open): Check bfd_sharing variable.
4307         (_initialize_gdb_bfd): Add new set/show command.
4308         * NEWS: Mention new command.
4309
4310 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
4311
4312         * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4313         field.
4314         (struct gdb_bfd_cache_search): Likewise.
4315         (eq_bfd): Compare the size, inode, and device id fields.
4316         (gdb_bfd_open): Initialise the size, inode, and device id fields.
4317         (gdb_bfd_ref): Likewise.
4318         (gdb_bfd_unref): Likewise.
4319
4320 2015-08-18  Pedro Alves  <palves@redhat.com>
4321
4322         * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4323         target implements to_always_non_stop_p, call it.
4324         * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4325         (x86_linux_create_target): Install it as to_always_non_stop_p
4326         method.
4327
4328 2015-08-17  Doug Evans  <dje@google.com>
4329
4330         * ui-out.c (default_ui_out_impl): Add comment.
4331
4332 2015-08-17  Iain Buclaw  <ibuclaw@gdcproject.org>
4333
4334         * d-exp.y (type_aggregate_p): New function.
4335         (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4336         (classify_inner_name): Likewise.
4337         * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4338
4339 2015-08-15  Doug Evans  <xdje42@gmail.com>
4340
4341         * psymtab.c (add_psymbol_to_bcache): Remove "val" arg.  All callers
4342         updated.
4343         (add_psymbol_to_list): Ditto.
4344
4345 2015-08-15  Doug Evans  <xdje42@gmail.com>
4346
4347         * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab.  All callers
4348         updated.  Call end_psymtab_common.
4349         * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4350         end_psymtab_common.
4351         (build_type_psymtabs_reader): Ditto.
4352         * psympriv.h (sort_pst_symbols): Delete.
4353         (end_psymtab_common): Declare.
4354         * psymtab.c (sort_pst_symbols): Make static.
4355         (end_psymtab_common): New function.
4356         * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4357
4358 2015-08-15  Doug Evans  <xdje42@gmail.com>
4359
4360         * defs.h (LANGUAGE_BITS): Define.
4361         * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4362         (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4363         * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4364         (minimal_symbol_type): Add nr_minsym_types.
4365         (MINSYM_TYPE_BITS): Define.
4366         (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4367         (domain_enum_tag): Add NR_DOMAINS.
4368         (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4369         (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4370
4371 2015-08-15  Doug Evans  <xdje42@gmail.com>
4372
4373         * objfiles.h: Whitespace cleanup.
4374         * psympriv.h: Whitespace cleanup.
4375         * psymtab.c: Whitespace/coding convention cleanup.
4376
4377 2015-08-15  Patrick Palka  <patrick@parcs.ath.cx>
4378
4379         * inferior.c (detach_inferior_command): Don't call
4380         any_thread_of_process when pid is 0.
4381         (kill_inferior_command): Likewise.
4382
4383 2015-08-14  Doug Evans  <xdje42@gmail.com>
4384
4385         PR gdb/11833
4386         * NEWS: Document new /s modifier for the disassemble command.
4387         * cli/cli-cmds.c (disassemble_command): Add support for /s.
4388         (_initialize_cli_cmds): Update online docs of disassemble command.
4389         * disasm.c: #include "source.h".
4390         (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4391         All uses updated.
4392         (dis_line_entry): New struct.
4393         (hash_dis_line_entry, eq_dis_line_entry): New functions.
4394         (allocate_dis_line_table): New functions.
4395         (maybe_add_dis_line_entry, line_has_code_p): New functions.
4396         (dump_insns): New arg end_pc.  All callers updated.
4397         (do_mixed_source_and_assembly_deprecated): Renamed from
4398         do_mixed_source_and_assembly.  All callers updated.
4399         (do_mixed_source_and_assembly): New function.
4400         (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4401         * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4402         DISASSEMBLY_SOURCE.  All uses updated.
4403         (DISASSEMBLY_SOURCE): New macro.
4404         * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4405
4406 2015-08-14  Keith Seitz  <keiths@redhat.com>
4407
4408         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4409         `typename' to `type_name' to avoid C++ reserved word.
4410
4411 2015-08-14  Keith Seitz  <keiths@redhat.com>
4412
4413         * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4414         (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4415         silence ARI errors.
4416
4417 2015-08-14  Iain Buclaw  <ibuclaw@gdcproject.org>
4418
4419         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4420         xstrprintf instead of malloc and sprintf.
4421         (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4422         (lex_one_token): Likewise.
4423
4424 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4425
4426         * solib-svr4.c (read_program_header): Add base_addr argument to
4427         report the runtime address of the segment.
4428         (find_program_interpreter): Update read_program_header call to pass
4429         a NULL pointer for the new argument.
4430         (scan_dyntag): Add ptr_addr argument to report the runtime address
4431         of the tag payload.
4432         (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4433         read_program_header to get the base address of the dynamic segment.
4434         (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4435         read_program_header.
4436         (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4437
4438 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4439
4440         * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4441
4442 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
4443
4444         * d-exp.y (%union): Add voidval.
4445         (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4446         name in the lexing stage.
4447         (PostfixExpression): Move symbol completion handling in grammar here
4448         from PrimaryExpression.
4449         (PrimaryExpression): Move routines to handle resolving identifier
4450         tokens in the grammar here from push_expression_name.
4451         (IdentifierExp): Remove the handling of alternating '.' and identifier
4452         tokens.
4453         (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4454         (BasicType): Remove C-style typename rules.
4455         (d_type_from_name, d_module_from_name, push_variable)
4456         (push_fieldnames, push_type_name, push_module_name)
4457         (push_expression_name): Remove.
4458         (lex_one_token): Rename from yylex.  Replace pstate with par_state.
4459         (token_and_value): New type.
4460         (token_fifo, popping, name_obstack): New globals.
4461         (classify_name): New function.
4462         (classify_inner_name): Likewise.
4463         (yylex): Likewise.
4464         (d_parse): Initialize token_fifo, popping and name_obstack.
4465
4466 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
4467
4468         * Makefile.in (SFILES): Add d-namespace.c.
4469         (COMMON_OBS): Add d-namespace.o.
4470         * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4471         la_lookup_symbol_nonlocal callback function pointer.
4472         * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4473         (d_lookup_nested_symbol): New declaration.
4474         * d-namespace.c: New file.
4475
4476 2015-08-13  Pedro Alves  <palves@redhat.com>
4477
4478         * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4479         cleanup after the decref cleanup, not before.
4480
4481 2015-08-13  Pierre-Marie de Rodat  <derodat@adacore.com>
4482
4483         * ada-lang.c: Include namespace.h
4484         (aux_add_nonlocal_symbols): Fix a function name in comment.
4485         (ada_add_block_renamings): New.
4486         (add_nonlocal_symbols): Add global renamings handling.
4487         (ada_lookup_symbol_list_worker): Move the symbol lookup part
4488         to...
4489         (ada_add_all_symbols): ... this new function.
4490         (ada_add_block_symbols): Try to match the input name against the
4491         "using directives list", perform a recursive symbol lookup on
4492         the matched declarations.
4493         * block.h (struct block): Move the_namespace to top-level as
4494         namespace_info. Remove the language_specific field.
4495         (BLOCK_NAMESPACE): Update access to the namespace_info field.
4496         * buildsym.h (using_directives): Rename into...
4497         (local_using_directives): ... this.
4498         (global_using_directives): New.
4499         (struct context_stack): Rename the using_directives field into
4500         local_using_directives.
4501         * buildsym.c (finish_block_internal): Deal with the proper
4502         using directives repository (local or global).
4503         (prepare_for_building): Reset local_using_directives. Assert
4504         that there is no pending global using directive.
4505         (reset_symtab_globals): Reset global_using_directives and
4506         local_using_directives.
4507         (end_symtab_get_static_block): Don't ignore symtabs that have
4508         only using directives.
4509         (push_context): Update references to local_using_directives.
4510         (buildsym_init): Do not reset using_directives.
4511         * cp-support.c: Include namespace.h.
4512         * cp-support.h (struct using_direct): Move to namespace.h.
4513         (cp_add_using_directives): Move to namespace.h.
4514         * cp-namespace.c: Include namespace.h
4515         (cp_add_using_directive): Move to namespace.c, rename it to
4516         add_using_directive, add a "using_directives" argument and use
4517         it as the pending using directives repository.  All callers
4518         updated.
4519         * dwarf2read.c (using_directives): New.
4520         (read_import_statement): Call using_directives.
4521         (read_func_scope): Update references to local_using_directives.
4522         (read_lexical_block_scope): Likewise.
4523         (read_namespace): Update the heading comment, call
4524         using_directives.
4525         * namespace.h: New file.
4526         * namespace.c: New file.
4527         * Makefile.in (SFILES): Add namespace.c.
4528         (COMMON_OBS): Add namespace.o
4529
4530 2015-08-12  Joel Brobecker  <brobecker@adacore.com>
4531
4532         * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4533         compute RETADDR.
4534
4535 2015-08-12  Keith Seitz  <keiths@redhat.com>
4536
4537         * break-catch-throw.c (re_set_exception_catchpoint) Rename
4538         reserved C++ keyword "explicit" to "explicit_loc".
4539         * breakpoint.c (create_overlay_event_breakpoint)
4540         (create_longjmp_master_breakpoint)
4541         (create_std_terminate_master_breakpoint)
4542         (create_exception_master_breakpoint, update_static_tracepoint):
4543         Rename reserved C++ keyword "explicit" to "explicit_loc".
4544         * completer.c (collect_explicit_location_matches)
4545         (explicit_location_completer): Rename reserved C++ keyword
4546         "explicit" to "explicit_loc".
4547         * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4548         (canonicalize_linespec, create_sals_line_offset)
4549         (convert_linespec_to_sals, convert_explicit_location_to_sals)
4550         (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4551         "explicit" to "explicit_loc".
4552         * location.c (struct event_location) <explicit>: Rename to
4553         "explicit_loc".
4554         (initialize_explicit_location, new_explicit_location)
4555         (explicit_location_to_string_internal, explicit_location_to_linespec):
4556         Rename reserved C++ keyword "explicit" to "explicit_loc".
4557         * location.h (explicit_location_to_string)
4558         (explicit_location_to_linespec, initialize_explicit_location)
4559         (new_explicit_location): Rename reserved C++ keyword "explicit"
4560         to "explicit_loc".
4561         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4562         keyword "explicit" to "explicit_loc".
4563
4564 2015-08-12  Keith Seitz  <keiths@redhat.com>
4565
4566         * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4567         and only call decode_line_1 when it is non-NULL.
4568
4569 2015-08-12  Luis Machado  <lgustavo@codesourcery.com>
4570
4571         * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4572         location address is not meaningful.
4573         (breakpoint_address_is_meaningful): Update comment.
4574
4575 2015-08-11  Keith Seitz  <keiths@redhat.com>
4576
4577         * NEWS: Mention explicit locations.
4578         * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4579         [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4580         (_initialize_breakpoint): Update documentation for
4581         "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4582
4583 2015-08-11  Keith Seitz  <keiths@redhat.com>
4584
4585         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4586         explicit locations, options "--source", "--function",
4587         "--label", and "--line".
4588
4589 2015-08-11  Keith Seitz  <keiths@redhat.com>
4590
4591         * completer.c: Include location.h.
4592         (enum match_type): New enum.
4593         (location_completer): Rename to ...
4594         (linespec_completer): ... this.
4595         (collect_explicit_location_matches, backup_text_ptr)
4596         (explicit_location_completer): New functions.
4597         (location_completer): "New" function; handle linespec
4598         and explicit location completions.
4599         (complete_line_internal): Remove all location completer-specific
4600         handling.
4601         * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4602         (find_toplevel_char): Export.
4603         (linespec_parse_line_offset): Export.
4604         Issue error if STRING is not numerical.
4605         (gdb_get_linespec_parser_quote_characters): New function.
4606         * linespec.h (linespec_parse_line_offset): Declare.
4607         (get_gdb_linespec_parser_quote_characters): Declare.
4608         (is_ada_operator): Declare.
4609         (find_toplevel_char): Declare.
4610         (linespec_lexer_lex_keyword): Declare.
4611         * location.c (explicit_to_event_location): New function.
4612         (explicit_location_lex_one): New function.
4613         (string_to_explicit_location): New function.
4614         (string_to_event_location): Handle explicit locations.
4615         * location.h (explicit_to_event_location): Declare.
4616         (string_to_explicit_location): Declare.
4617
4618 2015-08-11  Keith Seitz  <keiths@redhat.com>
4619
4620         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4621         linespec into explicit location.
4622         * breakpoint.c (create_overlay_breakpoint)
4623         (create_longjmp_master_breakpoint)
4624         (create_std_terminate_master_breakpoint)
4625         (create_exception_master_breakpoint): Convert linespec into explicit
4626         location.
4627         (update_static_tracepoint): Convert linespec into explicit location.
4628         * linespec.c (enum offset_relative_sign, struct line_offset): Move
4629         location.h.
4630         (struct linespec) <expression, expr_pc, source_filename>
4631         <function_name, label_name, line_offset>: Replace with ...
4632         <explicit>: ... this.
4633         <is_linespec>: New member.
4634         (PARSER_EXPLICIT): New accessor macro.
4635         (undefined_label_error): New function.
4636         (source_file_not_found_error): New function.
4637         (linespec_parse_basic): The parser result is now an explicit location.
4638         Use PARSER_EXPLICIT to access it.
4639         Use undefined_label_error.
4640         (canonicalize_linespec): Convert canonical linespec into explicit
4641         location.
4642         Move string representation of location to explicit_location_to_linespec
4643         and use it and explicit_location_to_string to save string
4644         representations of the canonical location.
4645         (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4646         explicit location.  Update all references.
4647         (convert_explicit_location_to_sals): New function.
4648         (parse_linespec): Use PARSER_EXPLICIT to access the parser
4649         result's explicit location.
4650         (linespec_state_constructor): Initialize is_linespec.
4651         Use PARSER_EXPLICIT.
4652         (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4653         result.
4654         (event_location_to_sals): For linespec locations, set is_linespec.
4655         Handle explicit locations.
4656         (decode_objc): 'ls' contains an explicit location now. Update all
4657         references.
4658         (symtabs_from_filename): Use source_file_not_found_error.
4659         * location.c (struct event_location.u) <explicit>: New member.
4660         (initialize_explicit_location): New function.
4661         (initialize_event_location): Initialize explicit locations.
4662         (new_explicit_location, get_explicit_location)
4663         (get_explicit_location_const): New functions.
4664         (explicit_to_string_internal): New function; most of contents moved
4665         from canonicalize_linespec.
4666         (explicit_location_to_string): New function.
4667         (explicit_location_to_linespec): New function.
4668         (copy_event_location, delete_event_location)
4669         (event_location_to_string_const, event_location_empty_p): Handle
4670         explicit locations.
4671         * location.h (enum offset_relative_sign, struct line_offset): Move
4672         here from linespec.h.
4673         (enum event_location_type): Add EXPLICIT_LOCATION.
4674         (struct explicit_location): New structure.
4675         (explicit_location_to_string): Declare.
4676         (explicit_location_to_linespec): Declare.
4677         (new_explicit_location, get_explicit_locationp
4678         (get_explicit_location_const, initialize_explicit_location): Declare.
4679
4680 2015-08-11  Keith Seitz  <keiths@redhat.com>
4681
4682         * break-catch-throw.c (re_set_exception_catchpoint): Convert
4683         linespec for stap probe to probe location.
4684         * breakpoint.c (create_longjmp_master_breakpoint)
4685         (create_exception_master_breakpoint): Likewise.
4686         (break_command_1): Remove local variable `arg_cp'.
4687         Check location type to set appropriate breakpoint ops methods.
4688         (trace_command): Likewise.
4689         * linespec.c (event_location_to_sals): Assert on probe locations.
4690         * location.c (EL_PROBE): Add macro definition.
4691         (new_probe_location, get_probe_location): New functions.
4692         (copy_event_location, delete_event_location, event_location_to_string)
4693         (string_to_event_location, event_location_empty_p): Handle probe
4694         locations.
4695         * location.h (enum event_location_type): Add PROBE_LOCATION.
4696         (new_probe_location, get_probe_location): Declare.
4697         * probe.c (parse_probes): Assert that LOCATION is a probe location.
4698         Convert linespec into probe location.
4699
4700 2015-08-11  Keith Seitz  <keiths@redhat.com>
4701
4702         * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4703         Convert linespec to address location.
4704         * linespec.c (canonicalize_linespec): Do not handle address
4705         locations here.
4706         (convert_address_location_to_sals): New function; contents moved
4707         from ...
4708         (convert_linespc_to_sals): ... here.
4709         (parse_linespec): Remove address locations from linespec grammar.
4710         Remove handling of address locations.
4711         (linespec_lex_to_end): Remove handling of address linespecs.
4712         (event_location_to_sals): Handle ADDRESS_LOCATION.
4713         (linespec_expression_to_pc): Export.
4714         * linespec.h (linespec_expression_to_pc): Add declaration.
4715         * location.c (struct event_location.u) <address>: New member.
4716         (new_address_location, get_address_location): New functions.
4717         (copy_event_location, delete_event_location, event_location_to_string)
4718         (string_to_event_location, event_location_empty_p): Handle address
4719         locations.
4720         * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4721         (new_address_location, get_address_location): Declare.
4722         * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4723         to address location.
4724         * spu-tdep.c (spu_catch_start): Likewise.
4725
4726 2015-08-11  Keith Seitz  <keiths@redhat.com>
4727
4728         * ax-gdb.c: Include location.h.
4729         (agent_command_1) Use linespec location instead of address
4730         string.
4731         * break-catch-throw.c: Include location.h.
4732         (re_set_exception_catchpoint): Use linespec locations instead
4733         of address strings.
4734         * breakpoint.c: Include location.h.
4735         (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4736         (create_std_terminate_master_breakpoint)
4737         (create_exception_master_breakpoint, update_breakpoints_after_exec):
4738         Use linespec location instead of address string.
4739         (print_breakpoint_location):  Use locations and
4740         event_location_to_string.
4741         Print extra_string for pending locations for non-MI streams.
4742         (print_one_breakpoint_location): Use locations and
4743         event_location_to_string.
4744         (init_raw_breakpoint_without_location): Initialize b->location.
4745         (create_thread_event_breakpoint): Use linespec location instead of
4746         address string.
4747         (init_breakpoint_sal): Likewise.
4748         Only save extra_string if it is non-NULL and not the empty string.
4749         Use event_location_to_string instead of `addr_string'.
4750         Constify `p' and `endp'.
4751         Use skip_spaces_const/skip_space_const instead of non-const versions.
4752         Copy the location into the breakpoint.
4753         If LOCATION is NULL, save the breakpoint address as a linespec location
4754         instead of an address string.
4755         (create_breakpoint_sal): Change `addr_string' parameter to a struct
4756         event_location. All uses updated.
4757         (create_breakpoints_sal): Likewise for local variable `addr_string'.
4758         (parse_breakpoint_sals): Use locations instead of address strings.
4759         Remove check for empty linespec with conditional.
4760         Refactor.
4761         (decode_static_tracepoint_spec): Make argument const and update
4762         function.
4763         (create_breakpoint): Change `arg' to a struct event_location and
4764         rename.
4765         Remove `copy_arg' and `addr_start'.
4766         If EXTRA_STRING is empty, set it to NULL.
4767         Don't populate `canonical' for pending breakpoints.
4768         Pass `extra_string' to find_condition_and_thread.
4769         Clear `extra_string' if `rest' was NULL.
4770         Do not error with "garbage after location" if setting a dprintf
4771         breakpoint.
4772         Copy the location into the breakpoint instead of an address string.
4773         (break_command_1): Use string_to_event_location and pass this to
4774         create_breakpoint instead of an address string.
4775         Check against `arg_cp' for a probe linespec.
4776         (dprintf_command): Use string_to_event_location and pass this to
4777         create_breakpoint instead of an address string.
4778         Throw an exception if no format string was specified.
4779         (print_recreate_ranged_breakpoint): Use event_location_to_string
4780         instead of address strings.
4781         (break_range_command, until_break_command)
4782         (init_ada_exception_breakpoint): Use locations instead
4783         of address strings.
4784         (say_where): Print out extra_string for pending locations.
4785         (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4786         the breakpoint.
4787         (base_breakpoint_create_sals_from_location): Use struct event_location
4788         instead of address string.
4789         Remove `addr_start' and `copy_arg' parameters.
4790         (base_breakpoint_decode_location): Use struct event_location instead of
4791         address string.
4792         (bkpt_re_set): Use locations instead of address strings.
4793         Use event_location_empty_p to check for unset location.
4794         (bkpt_print_recreate): Use event_location_to_string instead of
4795         an address string.
4796         Print out extra_string for pending locations.
4797         (bkpt_create_sals_from_location, bkpt_decode_location)
4798         (bkpt_probe_create_sals_from_location): Use struct event_location
4799         instead of address string.
4800         (bkpt_probe_decode_location): Use struct event_location instead of
4801         address string.
4802         (tracepoint_print_recreate): Use event_location_to_string to
4803         recreate the tracepoint.
4804         (tracepoint_create_sals_from_location, tracepoint_decode_location)
4805         (tracepoint_probe_create_sals_from_location)
4806         (tracepoint_probe_decode_location): Use struct event_location
4807         instead of address string.
4808         (dprintf_print_recreate): Use event_location_to_string to recreate
4809         the dprintf.
4810         (dprintf_re_set): Remove check for valid/missing format string.
4811         (strace_marker_create_sals_from_location)
4812         (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4813         (update_static_tracepoint): Use struct event_location instead of
4814         address string.
4815         (location_to_sals): Likewise.
4816         Pass `extra_string' to find_condition_and_thread.
4817         For newly resolved pending breakpoint locations, clear the location's
4818         string representation.
4819         Assert that the breakpoint's condition string is NULL when
4820         condition_not_parsed.
4821         (breakpoint_re_set_default, create_sals_from_location_default)
4822         (decode_location_default, trace_command, ftrace_command)
4823         (strace_command, create_tracepoint_from_upload): Use locations
4824         instead of address strings.
4825         * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4826         Use struct event_location instead of address string.
4827         Update all uses.
4828         <decode_location>: Likewise.
4829         (struct breakpoint) <addr_string>: Change to struct event_location
4830         and rename `location'.
4831         <addr_string_range_end>: Change to struct event_location and rename
4832         `location_range_end'.
4833         (create_breakpoint): Use struct event_location instead of address
4834         string.
4835         * cli/cli-cmds.c: Include location.h.
4836         (edit_command, list_command): Use locations instead of address strings.
4837         * elfread.c: Include location.h.
4838         (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4839         * guile/scm-breakpoint.c: Include location.h.
4840         (bpscm_print_breakpoint_smob): Use event_location_to_string.
4841         (gdbscm_register_breakpoint): Use locations instead of address
4842         strings.
4843         * linespec.c: Include location.h.
4844         (struct ls_parser) <stream>: Change to const char *.
4845         (PARSER_STREAM): Update.
4846         (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4847         keywords must be followed by whitespace.
4848         (canonicalize_linespec): Save a linespec location into `canonical'.
4849         Save a canonical linespec into `canonical'.
4850         (parse_linespec): Change `argptr' to const char * and rename `arg'.
4851         All uses updated.
4852         Update function description.
4853         (linespec_parser_new): Initialize `parser'.
4854         Update initialization of  parsing stream.
4855         (event_location_to_sals): New function.
4856         (decode_line_full): Change `argptr' to a struct event_location and
4857         rename it `location'.
4858         Use locations instead of address strings.
4859         Call event_location_to_sals instead of parse_linespec.
4860         (decode_line_1): Likewise.
4861         (decode_line_with_current_source, decode_line_with_last_displayed)
4862         Use locations instead of address strings.
4863         (decode_objc): Likewise.
4864         Change `argptr' to const char * and rename `arg'.
4865         (destroy_linespec_result): Delete the linespec result's location
4866         instead of freeing the address string.
4867         * linespec.h (struct linespec_result) <addr_string>: Change to
4868         struct event_location and rename to ...
4869         <location>: ... this.
4870         (decode_line_1, decode_line_full): Change `argptr' to struct
4871         event_location.  All callers updated.
4872         * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4873         (mi_cmd_break_insert_1): Use locations instead of address strings.
4874         Throw an error if there was "garbage" at the end of the specified
4875         linespec.
4876         * probe.c: Include location.h.
4877         (parse_probes): Change `argptr' to struct event_location.
4878         Use event locations instead of address strings.
4879         * probe.h (parse_probes): Change `argptr' to struct event_location.
4880         * python/py-breakpoint.c: Include location.h.
4881         (bppy_get_location): Constify local variable `str'.
4882         Use event_location_to_string.
4883         (bppy_init): Use locations instead of address strings.
4884         * python/py-finishbreakpoint.c: Include location.h.
4885         (bpfinishpy_init): Remove local variable `addr_str'.
4886         Use locations instead of address strings.
4887         * python/python.c: Include location.h.
4888         (gdbpy_decode_line): Use locations instead of address strings.
4889         * remote.c: Include location.h.
4890         (remote_download_tracepoint): Use locations instead of address
4891         strings.
4892         * spu-tdep.c: Include location.h.
4893         (spu_catch_start): Remove local variable `buf'.
4894         Use locations instead of address strings.
4895         * tracepoint.c: Include location.h.
4896         (scope_info): Use locations instead of address strings.
4897         (encode_source_string): Constify parameter `src'.
4898         * tracepoint.h (encode_source_string): Likewise.
4899
4900 2015-08-11  Keith Seitz  <keiths@redhat.com>
4901
4902         * Makefile.in (SFILES): Add location.c.
4903         (HFILES_NO_SRCDIR): Add location.h.
4904         (COMMON_OBS): Add location.o.
4905         * linespec.c (linespec_lex_to_end): New function.
4906         * linespec.h (linespec_lex_to_end): Declare.
4907         * location.c: New file.
4908         * location.h: New file.
4909
4910 2015-08-11  Keith Seitz  <keiths@redhat.com>
4911
4912         * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4913         Renamed to create_sals_from_location.
4914         <decode_linespec>: Renamed to decode_location.
4915         Update all callers.
4916         * breakpoint.c (create_sals_from_address_default): Renamed to ...
4917         (create_sals_from_location_default): ... this.
4918         (addr_string_to_sals): Renamed to ...
4919         (location_to_sals): ... this.
4920         (decode_linespec_default): Renamed to ...
4921         (decode_location_default): ... this.
4922         (base_breakpoint_create_sals_from_address): Renamed to ...
4923         (base_breakpoint_create_sals_from_location): ... this.
4924         (bkpt_create_sals_from_address): Renamed to ...
4925         (bkpt_create_sals_from_location): ... this.
4926         (bkpt_decode_linespec): Renamed to ...
4927         (bkpt_decode_location): ... this.
4928         (bkpt_probe_create_sals_from_address): Renamed to ...
4929         (bkpt_probe_create_sals_from_location): ... this.
4930         (tracepoint_create_sals_from_address): Renamed to ...
4931         (tracepoint_create_sals_from_location): ... this.
4932         (tracepoint_decode_linespec): Renamed to ...
4933         (tracepoint_decode_location): ... this.
4934         (tracepoint_probe_create_sals_from_address): Renamed to ...
4935         (tracepoint_probe_create_sals_from_location): ... this.
4936         (tracepoint_probe_decode_linespec): Renamed to ...
4937         (tracepoint_probe_decode_location): ... this.
4938         (strace_marker_create_sals_from_address): Renamed to ...
4939         (strace_marker_create_sals_from_location): ... this.
4940         (decode_linespec_default): Renamed to ...
4941         (decode_location_default): ... this.
4942
4943 2015-08-10  Doug Evans  <dje@google.com>
4944             Keith Seitz  <keiths@redhat.com>
4945
4946         PR gdb/17960
4947         * symtab.c (make_file_symbol_completion_list_1): Renamed from
4948         make_file_symbol_completion_list and made static.
4949         (make_file_symbol_completion_list): New function.
4950
4951 2015-08-10  Joel Brobecker  <brobecker@adacore.com>
4952
4953         * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4954         trailing new-line at end of warning message.
4955         (proceed): Add i18n marker to error messages.
4956
4957 2015-08-07  Pedro Alves  <palves@redhat.com>
4958
4959         * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4960
4961 2015-08-07  Pedro Alves  <palves@redhat.com>
4962
4963         * s390-linux-tdep.c (is_non_branch_ril)
4964         (s390_displaced_step_copy_insn): New functions.
4965         (s390_displaced_step_fixup): Update comment.
4966         (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4967         gdbarch_displaced_step_copy_insn hook.
4968
4969 2015-08-07  Pedro Alves  <palves@redhat.com>
4970
4971         * infrun.c (displaced_step_prepare_throw): Return -1 if
4972         gdbarch_displaced_step_copy_insn returns NULL.  Update intro
4973         comment.
4974         * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4975         (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4976         in file.
4977         (ppc_displaced_step_copy_insn): New function.
4978         (ppc_displaced_step_fixup): Update comment.
4979         (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4980         gdbarch_displaced_step_copy_insn hook.
4981         * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4982         NULL return.
4983         * gdbarch.h: Regenerate.
4984
4985 2015-08-07  Pedro Alves  <palves@redhat.com>
4986
4987         * inferior.h (struct inferior) <displaced_stepping_failed>: New
4988         field.
4989         * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4990         Return false if dispaced stepping failed before.
4991         (resume): Pass the current inferior to
4992         use_displaced_stepping_now_p.  Wrap displaced_step_prepare in
4993         TRY/CATCH.  If we get a MEMORY_ERROR, set the inferior's
4994         displaced_stepping_failed flag, and fall back to an in-line
4995         step-over.
4996
4997 2015-08-07  Pedro Alves  <palves@redhat.com>
4998
4999         * darwin-nat.c (darwin_stop): Rename to ...
5000         (darwin_interrupt): ... this.
5001         (_initialize_darwin_inferior): Adjust.
5002         * gnu-nat.c (gnu_stop): Delete.
5003         (gnu_target): Don't install gnu_stop.
5004         * inf-ptrace.c (inf_ptrace_stop): Rename to ...
5005         (inf_ptrace_interrupt): ... this.
5006         (inf_ptrace_target): Adjust.
5007         * infcmd.c (interrupt_target_1): Use target_interrupt instead of
5008         target_stop.
5009         * linux-nat (linux_nat_stop): Rename to ...
5010         (linux_nat_interrupt): ... this.
5011         (linux_nat_stop): Reimplement.
5012         (linux_nat_add_target): Install linux_nat_interrupt.
5013         * nto-procfs.c (nto_interrupt_twice): Rename to ...
5014         (nto_handle_sigint_twice): ... this.
5015         (nto_interrupt): Rename to ...
5016         (nto_handle_sigint): ... this.  Call target_interrupt instead of
5017         target_stop.
5018         (procfs_wait): Adjust.
5019         (procfs_stop): Rename to ...
5020         (procfs_interrupt): ... this.
5021         (init_procfs_targets): Adjust.
5022         * procfs.c (procfs_stop): Rename to ...
5023         (procfs_interrupt): ... this.
5024         (procfs_target): Adjust.
5025         * remote-m32r-sdi.c (m32r_stop): Rename to ...
5026         (m32r_interrupt): ... this.
5027         (init_m32r_ops): Adjust.
5028         * remote-sim.c (gdbsim_stop_inferior): Rename to ...
5029         (gdbsim_interrupt_inferior): ... this.
5030         (gdbsim_stop): Rename to ...
5031         (gdbsim_interrupt): ... this.
5032         (gdbsim_cntrl_c): Adjust.
5033         (init_gdbsim_ops): Adjust.
5034         * remote.c (sync_remote_interrupt): Adjust comments.
5035         (remote_stop_as): Rename to ...
5036         (remote_interrupt_as): ... this.
5037         (remote_stop): Adjust comment.
5038         (remote_interrupt): New function.
5039         (init_remote_ops): Install remote_interrupt.
5040         * target.c (target_interrupt): New function.
5041         * target.h (struct target_ops) <to_interrupt>: New field.
5042         (target_interrupt): New declaration.
5043         * windows-nat.c (windows_stop): Rename to ...
5044         (windows_interrupt): ... this.
5045         * target-delegates.c: Regenerate.
5046
5047 2015-08-07  Pedro Alves  <palves@redhat.com>
5048
5049         * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
5050         threads" as alternative to "switching back to stepped thread".
5051
5052 2015-08-07  Pedro Alves  <palves@redhat.com>
5053
5054         * NEWS: Mention "maint set/show target-non-stop".
5055         * breakpoint.c (update_global_location_list): Check
5056         target_is_non_stop_p instead of non_stop.
5057         * infcmd.c (attach_command_post_wait, attach_command): Likewise.
5058         * infrun.c (show_can_use_displaced_stepping)
5059         (can_use_displaced_stepping_p, start_step_over_inferior):
5060         Likewise.
5061         (internal_resume_ptid): New function.
5062         (resume): Use it.
5063         (proceed): Check target_is_non_stop_p instead of non_stop.  If in
5064         all-stop mode but the target is always in non-stop mode, start all
5065         the other threads that are implicitly resumed too.
5066         (for_each_just_stopped_thread, fetch_inferior_event)
5067         (adjust_pc_after_break, stop_all_threads): Check
5068         target_is_non_stop_p instead of non_stop.
5069         (handle_inferior_event): Likewise.  Handle detach-fork in all-stop
5070         with the target always in non-stop mode.
5071         (handle_signal_stop) <random signal>: Check target_is_non_stop_p
5072         instead of non_stop.
5073         (switch_back_to_stepped_thread): Check target_is_non_stop_p
5074         instead of non_stop.
5075         (keep_going_stepped_thread): Use internal_resume_ptid.
5076         (stop_waiting): If in all-stop mode, and the target is in non-stop
5077         mode, stop all threads.
5078         (keep_going_pass): Likewise, when starting a new in-line step-over
5079         sequence.
5080         * linux-nat.c (get_pending_status, select_event_lwp)
5081         (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
5082         target_is_non_stop_p instead of non_stop.
5083         (linux_nat_always_non_stop_p): New function.
5084         (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
5085         (linux_nat_add_target): Install linux_nat_always_non_stop_p.
5086         * target-delegates.c: Regenerate.
5087         * target.c (target_is_non_stop_p): New function.
5088         (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
5089         (maint_set_target_non_stop_command)
5090         (maint_show_target_non_stop_command): New functions.
5091         (_initilize_target): Install "maint set/show target-non-stop"
5092         commands.
5093         * target.h (struct target_ops) <to_always_non_stop_p>: New field.
5094         (target_non_stop_enabled): New declaration.
5095         (target_is_non_stop_p): New declaration.
5096
5097 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
5098
5099         * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
5100         has a pending status, return true.
5101         * gdbthread.h: Include target/waitstatus.h.
5102         (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
5103         stop_pc>: New fields.
5104         (struct thread_info) <resumed>: New field.
5105         (set_resumed): Declare.
5106         * infrun.c: Include "event-loop.h".
5107         (infrun_async_inferior_event_token, infrun_is_async): New globals.
5108         (infrun_async): New function.
5109         (clear_step_over_info): Add debug output.
5110         (displaced_step_in_progress_any_inferior): New function.
5111         (displaced_step_fixup): New returns int.
5112         (start_step_over): Handle in-line step-overs too.  Assert the
5113         thread is marked resumed.
5114         (resume_cleanups): Clear the thread's resumed flag.
5115         (resume): Set the thread's resumed flag.  Return early if the
5116         thread has a pending status.  Allow stepping a breakpoint with no
5117         signal.
5118         (proceed): Adjust to check 'resumed' instead of 'executing'.
5119         (clear_proceed_status_thread): If the thread has a pending status,
5120         and that status is a finished step, discard the pending status.
5121         (clear_proceed_status): Don't clear step_over_info here.
5122         (random_pending_event_thread, do_target_wait): New functions.
5123         (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
5124         do_target_wait.
5125         (wait_one): New function.
5126         (THREAD_STOPPED_BY): New macro.
5127         (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5128         (thread_stopped_by_hw_breakpoint): New functions.
5129         (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
5130         functions.
5131         (handle_inferior_event): Also call set_resumed(false) on all
5132         threads implicitly stopped by the event.
5133         (restart_threads, resumed_thread_with_pending_status): New
5134         functions.
5135         (finish_step_over): If we were doing an in-line step-over before,
5136         and no longer are after trying to start a new step-over, restart
5137         all threads.  If we have multiple threads with pending events,
5138         save the current event and go through the event loop again.
5139         (handle_signal_stop): Return early if finish_step_over returns
5140         false.
5141         <random signal>: If we get a signal while stepping over a
5142         breakpoint in-line in non-stop mode, restart all threads.  Clear
5143         step_over_info before delivering the signal.
5144         (keep_going_stepped_thread): Use internal_error instead of
5145         gdb_assert.  Mark the thread as resumed.
5146         (keep_going_pass_signal): Assert the thread isn't already resumed.
5147         If some other thread is doing an in-line step-over, defer the
5148         resume.  If we just started a new in-line step-over, stop all
5149         threads.  Don't clear step_over_info.
5150         (infrun_async_inferior_event_handler): New function.
5151         (_initialize_infrun): Create async event handler with
5152         infrun_async_inferior_event_handler as callback.
5153         (infrun_async): New declaration.
5154         * target.c (target_async): New function.
5155         * target.h (target_async): Declare macro and readd as function
5156         declaration.
5157         * target/waitstatus.h (enum target_stop_reason)
5158         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5159         * thread.c (new_thread): Clear the new waitstatus field.
5160         (set_resumed): New function.
5161
5162 2015-08-07  Pedro Alves  <palves@redhat.com>
5163
5164         * infrun.c (keep_going_stepped_thread): New function, factored out
5165         from ...
5166         (switch_back_to_stepped_thread): ... here.
5167
5168 2015-08-07  Pedro Alves  <palves@redhat.com>
5169
5170         * infrun.c (currently_stepping): Extend intro comment.
5171         * target.h (target_resume): Extend intro comment.
5172
5173 2015-08-07  Pedro Alves  <palves@redhat.com>
5174
5175         * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
5176         of inferior_ptid.  If the stepped thread vanished, return 0
5177         instead of resuming here.  Use reset_ecs.  Print the prev_pc and
5178         the current stop_pc in log message.  Clear trap_expected if the
5179         thread advanced.  Don't pass currently_stepping to
5180         do_target_resume.
5181
5182 2015-08-07  Pedro Alves  <palves@redhat.com>
5183
5184         * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
5185         * infrun.c (struct execution_control_state): Move higher up in the
5186         file.
5187         (reset_ecs): New function.
5188         (start_step_over): Now returns int.  Rewrite to use
5189         keep_going_pass_signal instead of manually starting a displaced step.
5190         (resume): Don't call set_running here.  If displaced stepping
5191         can't start now, clear trap_expected.
5192         (find_thread_needs_step_over): Delete function.
5193         (proceed): Set up finish_thread_state_cleanup.  Call set_running.
5194         If the current thread needs a step over, push it in the step-over
5195         chain.  Don't set insert breakpoints nor call resume directly
5196         here.  Instead rewrite to use start_step_over and
5197         keep_going_pass_signal.
5198         (finish_step_over): New function.
5199         (handle_signal_stop): Call finish_step_over instead of
5200         start_step_over.
5201         (switch_back_to_stepped_thread): If the event thread needs another
5202         step-over do that first.  Use start_step_over.
5203         (keep_going_pass_signal): New function, factored out from ...
5204         (keep_going): ... here.
5205         (_initialize_infrun): Comment moved here.
5206         * thread.c (set_running_thread): New function.
5207         (set_running, finish_thread_state): Use set_running_thread.
5208
5209 2015-08-07  Pedro Alves  <palves@redhat.com>
5210
5211         * gdbthread.h (struct thread_info) <step_over_prev,
5212         step_over_next>: New fields.
5213         (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
5214         (thread_step_over_chain_next, thread_is_in_step_over_chain): New
5215         declarations.
5216         * infrun.c (struct displaced_step_request): Delete.
5217         (struct displaced_step_inferior_state) <step_request_queue>:
5218         Delete field.
5219         (displaced_step_prepare): Assert that trap_expected is set.  Use
5220         thread_step_over_chain_enqueue.  Split starting a new displaced
5221         step to ...
5222         (start_step_over): ... this new function.
5223         (resume): Assert the thread isn't waiting for a step over already.
5224         (proceed): Assert the thread isn't waiting for a step over
5225         already.
5226         (infrun_thread_stop_requested): Adjust to remove threads from the
5227         embedded step-over chain.
5228         (handle_inferior_event) <fork/vfork>: Call start_step_over after
5229         displaced_step_fixup.
5230         (handle_signal_stop): Call start_step_over after
5231         displaced_step_fixup.
5232         * infrun.h (step_over_queue_head): New declaration.
5233         * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5234         (thread_step_over_chain_next, thread_is_in_step_over_chain)
5235         (thread_step_over_chain_enqueue)
5236         (thread_step_over_chain_remove): New functions.
5237         (delete_thread_1): Remove thread from the step-over chain.
5238
5239 2015-08-07  Pedro Alves  <palves@redhat.com>
5240
5241         * infrun.c (thread_still_needs_step_over): Rename to ...
5242         (thread_still_needs_step_over_bp): ... this.
5243         (enum step_over_what): New.
5244         (thread_still_needs_step_over): Reimplement.
5245
5246 2015-08-07  Pedro Alves  <palves@redhat.com>
5247
5248         * remote.c (remote_wait_as): If not waiting for a stop reply,
5249         return TARGET_WAITKIND_NO_RESUMED.  If TARGET_WNOHANG is
5250         requested, don't block waiting forever.
5251
5252 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
5253
5254         * infrun.c (adjust_pc_after_break): Now takes thread_info and
5255         waitstatus pointers instead of an ecs.  Adjust.
5256         (handle_inferior_event): Adjust caller.
5257
5258 2015-08-07  Pedro Alves  <palves@redhat.com>
5259
5260         * infrun.c (handle_inferior_event): If we get
5261         TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5262         mode, mark all threads of the exiting process as not-executing.
5263         (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5264         TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5265         exiting process, if inferior_ptid still points at a process.
5266         * thread.c (struct current_thread_cleanup) <next>: New field.
5267         (current_thread_cleanup_chain): New global.
5268         (restore_current_thread_ptid_changed): New function.
5269         (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5270         current_thread_cleanup_chain list.
5271         (make_cleanup_restore_current_thread): Add the cleanup data to the
5272         current_thread_cleanup_chain list.
5273         (_initialize_thread): Install restore_current_thread_ptid_changed
5274         as thread_ptid_changed observer.
5275
5276 2015-08-07  Joel Brobecker  <brobecker@adacore.com>
5277
5278         * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5279         data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5280         smaller than expected.
5281
5282 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
5283
5284         * stack.c (get_frame_language): Moved ...
5285         * frame.c (get_frame_language): ... to here.
5286         * language.h (get_frame_language): Declaration moved to frame.h.
5287         * frame.h: Add language.h include, for language enum.
5288         (get_frame_language): Declaration moved from language.h.
5289         * language.c: Add frame.h include.
5290         * top.c: Add frame.h include.
5291         * symtab.h (struct obj_section): Declare.
5292         (struct cmd_list_element): Declare.
5293
5294 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
5295
5296         * language.c (show_language_command): Find selected frame before
5297         asking for the language of that frame.
5298         (set_language_command): Likewise.
5299         * language.h (get_frame_language): Add frame parameter.
5300         * stack.c (get_frame_language): Add frame parameter, assert
5301         parameter is not NULL, update comment and reindent.
5302         * top.c (check_frame_language_change): Pass the selected frame
5303         into get_frame_language.
5304
5305 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
5306
5307         * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5308         (pt_btrace_insn_flags): New.
5309         (ftrace_add_pt): Call pt_btrace_insn_flags.
5310         * btrace.h (btrace_insn_flag): New.
5311         (btrace_insn) <flags>: New.
5312         * record-btrace.c (btrace_insn_history): Print insn prefix.
5313         * NEWS: Announce it.
5314
5315 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
5316
5317         * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5318         * configure: Regenerate.
5319
5320 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
5321
5322         * Makefile.in (LIBICONV): Define.
5323         (CLIBS): Add LIBICONV.
5324         * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5325         * configure: Regenerate.
5326
5327 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5328             Pedro Alves  <palves@redhat.com>
5329
5330         * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5331         (arm_set_abi): Likewise.
5332         * ax-general.c (ax_print): Likewise.
5333         * c-exp.y (exp : string_exp): Likewise.
5334         * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5335         (do_compile_dwarf_expr_to_c): Likewise.
5336         * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5337         Likewise.
5338         * dwarf2expr.c (execute_stack_op): Likewise.
5339         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5340         (disassemble_dwarf_expression): Likewise.
5341         * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5342         (read_array_order): Likewise.
5343         (abbrev_table_read_table): Likewise.
5344         (read_attribute_value): Likewise.
5345         (skip_unknown_opcode): Likewise.
5346         (dwarf_decode_macro_bytes): Likewise.
5347         (dwarf_decode_macros): Likewise.
5348         * eval.c (value_f90_subarray): Likewise.
5349         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5350         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5351         * infrun.c (handle_command): Likewise.
5352         * memory-map.c (memory_map_start_memory): Likewise.
5353         * osabi.c (set_osabi): Likewise.
5354         * parse.c (operator_length_standard): Likewise.
5355         * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5356         single return point.
5357         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5358         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5359         (gdbpy_lookup_global_symbol): Likewise.
5360         * record-full.c (record_full_restore): Likewise.
5361         * regcache.c (regcache_register_status): Likewise.
5362         (regcache_raw_read): Likewise.
5363         (regcache_cooked_read): Likewise.
5364         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5365         * symtab.c (initialize_ordinary_address_classes): Likewise.
5366         * target-debug.h (target_debug_print_signals): Likewise.
5367         * utils.c (do_restore_current_language): Likewise.
5368
5369 2015-08-06  Clem Dickey  <clemd@acm.org>
5370
5371         PR python/17136
5372         * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5373
5374 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5375
5376         * complaints.c (enum complaint_series): Add newlines and remove
5377         out of date comment.
5378         (struct complaints) <series>: Change type to enum
5379         complaint_series and remove out of date comment.
5380         (symfile_complaint_hook): Use equivalent enum value
5381         ISOLATED_MESSAGE instead of 0.
5382
5383 2015-08-06  Pedro Alves  <palves@redhat.com>
5384
5385         * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5386         returned > 0.
5387
5388 2015-08-06  Pierre Langlois  <pierre.langlois@arm.com>
5389
5390         * common/agent.c (symbol_list) <required>: Remove.
5391
5392 2015-08-06  Pedro Alves  <palves@redhat.com>
5393
5394         * target/waitstatus.h (enum target_stop_reason)
5395         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5396
5397 2015-08-05  Pedro Alves  <palves@redhat.com>
5398             Joel Brobecker  <brobecker@adacore.com>
5399
5400         * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
5401         <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5402         case where BS->STOP is not set.
5403
5404 2015-08-05  Ulrich Weigand  <uweigand@de.ibm.com>
5405
5406         * nat/gdb_thread_db.h: Add copyright header.
5407         Protect against multiple inclusion.
5408
5409 2015-08-05  Yao Qi  <yao.qi@linaro.org>
5410
5411         * aarch64-linux-nat.c (get_thread_id): Remove.
5412         (debug_reg_change_callback): Call ptid_get_lwp instead of
5413         get_thread_id.
5414         (fetch_gregs_from_thread): Likewise.
5415         (store_gregs_to_thread): Likewise.
5416         (fetch_fpregs_from_thread): Likewise.
5417         (store_fpregs_to_thread): Likewise.
5418         (aarch64_linux_get_debug_reg_capacity): Likewise.
5419         * arm-linux-nat.c (get_thread_id): Remove.
5420         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5421         * xtensa-linux-nat.c (get_thread_id): Remove.
5422         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5423         * arm-linux-nat.c (get_thread_id): Remove.
5424         (GET_THREAD_ID): Remove.
5425         (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5426         (store_fpregs, fetch_regs, store_regs): Likewise.
5427         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5428         (fetch_vfp_regs, store_vfp_regs): Likewise.
5429         (arm_linux_read_description): Likewise.
5430         (arm_linux_get_hwbp_cap): Likewise.
5431         * xtensa-linux-nat.c (get_thread_id): Remove.
5432         (GET_THREAD_ID): Remove.
5433         (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5434         GET_THREAD_ID.
5435
5436 2015-08-04  Ciro Santilli  <ciro.santilli@gmail.com>  (obvious patch)
5437
5438         * python/py-linetable.c: Fix case of Linetable to LineTable
5439         in docstrings and code comments.
5440         * python/py-symtab.c: Same.
5441
5442 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5443
5444         * infcmd.c (signal_command): Call do_cleanups for args_chain.
5445
5446 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5447
5448         PR gdb/18767
5449         * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5450         use.
5451
5452 2015-08-04  Pedro Alves  <palves@redhat.com>
5453
5454         * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5455         (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5456         (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5457         (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5458         (td_thr_validate_ftype, td_thr_get_info_ftype)
5459         (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5460         (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5461         New typedefs.
5462         * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5463         (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5464         local macros and use them instead of verbose_dlsym and dlsym
5465         calls.
5466
5467 2015-08-03  Sandra Loosemore  <sandra@codesourcery.com>
5468
5469         * nios2-tdep.h: Include opcode/nios2.h here.
5470         (NIOS2_CDX_OPCODE_SIZE): New.
5471         (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5472         * nios2-tdep.c: Don't include opcode/nios2.h here.
5473         (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5474         4-byte read fails.
5475         (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5476         (nios2_match_addi, nios2_match_orhi): Likewise.
5477         (nios2_match_stw, nios2_match_ldw): Likewise.
5478         (nios2_match_rdctl): Likewise.
5479         (nios2_match_stwm, nios2_match_ldwm): New.
5480         (nios2_match_branch): Add cases for R2 encodings.
5481         (nios2_match_jmpi, nios2_match_calli): Likewise.
5482         (nios2_match_jmpr, nios2_match_callr): Likewise.
5483         (nios2_match_break, nios2_match_trap): Likewise.
5484         (nios2_in_epilogue_p): Add R2 support.
5485         (nios2_analyze_prologue): Update comments.  Recognize R2 CDX
5486         prologues.
5487         (nios2_breakpoint_from_pc): Handle R2 instructions.
5488         (nios2_get_next_pc): Likewise.  Adjust call to
5489         tdep->syscall_next_pc.
5490         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5491         Renamed from nios2_linux_rt_sigreturn_tramp_frame.  Use
5492         instruction field macros instead of literal hex values.
5493         (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5494         (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5495         Use size field from OP instead of assuming all instructions
5496         are the same size.
5497         (nios2_linux_init_abi): Register appropriate unwinder for mach.
5498
5499 2015-08-03  Ulrich Weigand  <uweigand@de.ibm.com>
5500
5501         * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5502         variable warning with some compilers.
5503
5504 2015-08-03  Yao Qi  <yao.qi@linaro.org>
5505
5506         * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5507         in comment.  Replace "rw" with "type".
5508         (arm_linux_remove_watchpoint): Change type of "rw" to
5509         "enum target_hw_bp_type".
5510
5511 2015-08-02  Pierre-Marie de Rodat  <derodat@adacore.com>
5512
5513         * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5514         lookup_symbol.
5515         * ft32-tdep.c (ft32_skip_prologue): Likewise.
5516         * moxie-tdep.c (moxie_skip_prologue): Likewise.
5517         * mt-tdep.c (mt_skip_prologue): Likewise.
5518         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5519
5520 2015-08-01  Pierre-Marie de Rodat  <derodat@adacore.com>
5521
5522         * ada-exp.y (write_object_renaming): Replace struct
5523         ada_symbol_info with struct block_symbol.  Update field
5524         references accordingly.
5525         (block_lookup, select_possible_type_sym): Likewise.
5526         (find_primitive_type): Likewise.  Also update call to
5527         ada_lookup_symbol to extract the symbol itself.
5528         (write_var_or_type, write_name_assoc): Likewise.
5529         * ada-lang.h (struct ada_symbol_info): Remove.
5530         (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5531         struct block_symbol.
5532         (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5533         (ada_lookup_symbol): Return struct block_symbol instead of a
5534         mere symbol.
5535         * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5536         with struct block_symbol.
5537         (resolve_subexp, ada_resolve_function, sort_choices,
5538         user_select_syms, is_nonfunction, add_defn_to_vec,
5539         num_defns_collected, defns_collected,
5540         symbols_are_identical_enums, remove_extra_symbols,
5541         remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5542         ada_lookup_symbol_list, ada_iterate_over_symbols,
5543         ada_lookup_encoded_symbol, get_var_value): Likewise.
5544         (ada_lookup_symbol): Return a block_symbol instead of a mere
5545         symbol.  Replace struct ada_symbol_info with struct
5546         block_symbol.
5547         (ada_lookup_symbol_nonlocal): Likewise.
5548         (standard_lookup): Make block passing explicit through
5549         lookup_symbol_in_language.
5550         * ada-tasks.c (get_tcb_types_info): Update the calls to
5551         lookup_symbol_in_language to extract the mere symbol out of the
5552         returned value.
5553         (ada_tasks_inferior_data_sniffer): Likewise.
5554         * ax-gdb.c (gen_static_field): Likewise for the call to
5555         lookup_symbol.
5556         (gen_maybe_namespace_elt): Deal with struct block_symbol from
5557         lookup functions.
5558         (gen_expr): Likewise.
5559         * c-exp.y: Likewise.  Remove uses of block_found.
5560         (lex_one_token, classify_inner_name, c_print_token): Likewise.
5561         (classify_name): Likewise.  Rename the "sym" local variable to
5562         "bsym".
5563         * c-valprint.c (print_unpacked_pointer): Likewise.
5564         * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5565         "sym" parameter from struct symbol * to struct block_symbol.
5566         Use it to remove uses of block_found.  Deal with struct
5567         block_symbol from lookup functions.
5568         (gcc_convert_symbol): Likewise.  Update the call to
5569         convert_symbol_sym.
5570         * compile/compile-object-load.c (compile_object_load): Deal with
5571         struct block_symbol from lookup functions.
5572         * cp-namespace.c (cp_lookup_nested_symbol_1,
5573         cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5574         cp_search_static_and_baseclasses,
5575         cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5576         cp_lookup_symbol_imports_or_template,
5577         cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5578         lookup_namespace_scope, cp_lookup_nonlocal,
5579         find_symbol_in_baseclass): Return struct block_symbol instead of
5580         mere symbols and deal with struct block_symbol from lookup
5581         functions.
5582         * cp-support.c (inspect_type, replace_typedefs,
5583         cp_lookup_rtti_type): Deal with struct block_symbol from
5584         lookup functions.
5585         * cp-support.h (cp_lookup_symbol_nonlocal,
5586         cp_lookup_symbol_from_namespace,
5587         cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5588         Return struct block_symbol instead of mere symbols.
5589         * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5590         push_module_name):
5591         Deal with struct block_symbol from lookup functions.  Remove
5592         uses of block_found.
5593         * eval.c (evaluate_subexp_standard): Update call to
5594         cp_lookup_symbol_namespace.
5595         * f-exp.y: Deal with struct block_symbol from lookup functions.
5596         Remove uses of block_found.
5597         (yylex): Likewise.
5598         * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5599         lookup_enum, lookup_template_type, check_typedef): Deal with
5600         struct block_symbol from lookup functions.
5601         * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5602         * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5603         (gdbscm_lookup_global_symbol): Likewise.
5604         * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5605         * go-exp.y: Likewise.  Remove uses of block_found.
5606         (package_name_p, classify_packaged_name, classify_name):
5607         Likewise.
5608         * infrun.c (insert_exception_resume_breakpoint): Likewise.
5609         * jv-exp.y (push_variable): Likewise.
5610         * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5611         * language.c (language_bool_type): Likewise.
5612         * language.h (struct language_defn): Update
5613         la_lookup_symbol_nonlocal to return a struct block_symbol rather
5614         than a mere symbol.
5615         * linespec.c (find_label_symbols): Deal with struct block_symbol
5616         from lookup functions.
5617         * m2-exp.y: Likewise.  Remove uses of block_found.
5618         (yylex): Likewise.
5619         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5620         * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5621         * p-exp.y: Likewise.  Remove uses of block_found.
5622         (yylex): Likewise.
5623         * p-valprint.c (pascal_val_print): Likewise.
5624         * parse.c (write_dollar_variable): Likewise.  Remove uses of
5625         block_found.
5626         * parser-defs.h (struct symtoken): Turn the SYM field into a
5627         struct block_symbol.
5628         * printcmd.c (address_info): Deal with struct block_symbol from
5629         lookup functions.
5630         * python/py-frame.c (frapy_read_var): Likewise.
5631         * python/py-symbol.c (gdbpy_lookup_symbol,
5632         gdbpy_lookup_global_symbol): Likewise.
5633         * skip.c (skip_function_command): Likewise.
5634         * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5635         block_symbol instead of a mere symbol.
5636         * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5637         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5638         * solib.c (solib_global_lookup): Likewise.
5639         * solist.h (solib_global_lookup): Likewise.
5640         (struct target_so_ops): Update lookup_lib_global_symbol to
5641         return a struct block_symbol rather than a mere symbol.
5642         * source.c (select_source_symtab): Deal with struct block_symbol
5643         from lookup functions.
5644         * stack.c (print_frame_args, iterate_over_block_arg_vars):
5645         Likewise.
5646         * symfile.c (set_initial_language): Likewise.
5647         * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5648         block_symbol.
5649         (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5650         (struct symbol_cache_slot): Turn the FOUND field into a struct
5651         block_symbol.
5652         (block_found): Remove.
5653         (eq_symbol_entry): Update to deal with struct block_symbol in
5654         cache slots.
5655         (symbol_cache_lookup): Return a struct block_symbol rather than
5656         a mere symbol.
5657         (symbol_cache_mark_found): Add a BLOCK parameter to fill
5658         appropriately the cache slots.  Update callers.
5659         (symbol_cache_dump): Update cache slots handling to the type
5660         change.
5661         (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5662         lookup_symbol_aux, lookup_local_symbol,
5663         lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5664         lookup_symbol_in_objfile_symtabs,
5665         lookup_symbol_in_objfile_from_linkage_name,
5666         lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5667         lookup_symbol_in_static_block, lookup_static_symbol,
5668         lookup_global_symbol):
5669         Return a struct block_symbol rather than a mere symbol.  Deal
5670         with struct block_symbol from other lookup functions.  Remove
5671         uses of block_found.
5672         (lookup_symbol_in_block): Remove uses of block_found.
5673         (struct global_sym_lookup_data): Turn the RESULT field into a
5674         struct block_symbol.
5675         (lookup_symbol_global_iterator_cb): Update references to the
5676         RESULT field.
5677         (search_symbols): Deal with struct block_symbol from lookup
5678         functions.
5679         * symtab.h (struct block_symbol): New structure.
5680         (block_found): Remove.
5681         (lookup_symbol_in_language, lookup_symbol,
5682         basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5683         lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5684         lookup_global_symbol_from_objfile): Return a struct block_symbol
5685         rather than just a mere symbol.  Update comments to remove
5686         mentions of block_found.
5687         * valops.c (find_function_in_inferior,
5688         value_struct_elt_for_reference, value_maybe_namespace_elt,
5689         value_of_this):  Deal with struct block_symbol from lookup
5690         functions.
5691         * value.c (value_static_field, value_fn_field): Likewise.
5692
5693 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5694
5695         * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5696         instead of integer.
5697
5698 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
5699             Pedro Alves  <palves@redhat.com>
5700
5701         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5702         type or value instead of integer.
5703         (aarch64_linux_insert_watchpoint): Likewise.
5704         (aarch64_linux_remove_watchpoint): Likewise.
5705         * ada-lang.c (ada_op_print_tab): Likewise.
5706         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5707         (amd64_linux_syscall_record_common): Likewise.
5708         * arch-utils.c (target_byte_order_user): Likewise.
5709         (default_byte_order): Likewise.
5710         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5711         (arm_linux_get_hwbp_type): Likewise.
5712         (arm_linux_hw_watchpoint_initialize): Likewise.
5713         (arm_linux_insert_watchpoint): Likewise.
5714         * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5715         (arm_linux_syscall_record): Likewise.
5716         * breakpoint.c (update_watchpoint): Likewise.
5717         (breakpoint_here_p): Likewise.
5718         (bpstat_print): Likewise.
5719         (enable_breakpoint_disp): Likewise.
5720         * c-lang.c (c_op_print_tab): Likewise.
5721         * cli/cli-decode.c (add_info_alias): Likewise.
5722         * d-lang.c (d_op_print_tab): Likewise.
5723         * eval.c (evaluate_subexp_standard): Likewise.
5724         * f-exp.y (dot_ops): Likewise.
5725         (f77_keywords): Likewise.
5726         * f-lang.c (f_op_print_tab): Likewise.
5727         * go-lang.c (go_op_print_tab): Likewise.
5728         * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5729         * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5730         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5731         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5732         * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5733         (struct scm_from_stringn_data): Likewise.
5734         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5735         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5736         (ia64_linux_remove_watchpoint): Likewise.
5737         (ia64_linux_can_use_hw_breakpoint): Likewise.
5738         * infrun.c (print_stop_event): Likewise.
5739         * jv-lang.c (java_op_print_tab): Likewise.
5740         * linux-nat.c (linux_proc_xfer_partial): Likewise.
5741         * linux-nat.h (struct lwp_info): Likewise.
5742         * linux-thread-db.c (enable_thread_event): Likewise.
5743         * m2-lang.c (m2_op_print_tab): Likewise.
5744         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5745         (mi_cmd_stack_list_variables): Likewise.
5746         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5747         * mi/mi-out.c (mi_table_begin): Likewise.
5748         (mi_table_header): Likewise.
5749         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5750         (mips_linux_insert_watchpoint): Likewise.
5751         (mips_linux_remove_watchpoint): Likewise.
5752         * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5753         * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5754         (mips_linux_watch_type_to_irw): Likewise.
5755         * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5756         (procfs_insert_hw_watchpoint): Likewise.
5757         (procfs_remove_hw_watchpoint): Likewise.
5758         (procfs_hw_watchpoint): Likewise.
5759         (procfs_can_use_hw_breakpoint): Likewise.
5760         (procfs_remove_hw_watchpoint): Likewise.
5761         (procfs_insert_hw_watchpoint): Likewise.
5762         * p-lang.c (pascal_op_print_tab): Likewise.
5763         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5764         * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5765         * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5766         * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5767         (procfs_insert_watchpoint): Likewise.
5768         (procfs_remove_watchpoint): Likewise.
5769         * psymtab.c (recursively_search_psymtabs): Likewise.
5770         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5771         (m32r_insert_watchpoint): Likewise.
5772         * remote-mips.c (mips_can_use_watchpoint): Likewise.
5773         (mips_insert_watchpoint): Likewise.
5774         (mips_remove_watchpoint): Likewise.
5775         * remote.c (watchpoint_to_Z_packet): Likewise.
5776         (remote_insert_watchpoint): Likewise.
5777         (remote_remove_watchpoint): Likewise.
5778         (remote_check_watch_resources): Likewise.
5779         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5780         (s390_remove_watchpoint): Likewise.
5781         (s390_can_use_hw_breakpoint): Likewise.
5782         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5783         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5784         * target.h (struct target_ops): Likewise.
5785         * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5786         * ui-out.c (struct ui_out_hdr): Likewise.
5787         (append_header_to_list): Likewise.
5788         (get_next_header): Likewise.
5789         (verify_field): Likewise.
5790         (ui_out_begin): Likewise.
5791         (ui_out_field_int): Likewise.
5792         (ui_out_field_fmt_int): Likewise.
5793         (ui_out_field_skip): Likewise.
5794         (ui_out_field_string): Likewise.
5795         (ui_out_field_fmt): Likewise.
5796         * varobj.c (new_variable): Likewise.
5797         * x86-nat.c (x86_insert_watchpoint): Likewise.
5798         (x86_remove_watchpoint): Likewise.
5799         (x86_can_use_hw_breakpoint): Likewise.
5800         * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5801         * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5802         previously anonymous enumeration type..
5803         * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5804         value.
5805         * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5806         (target_debug_print_enum_bptype): New.
5807         * target-delegates.c: Regenerate.
5808
5809 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5810
5811         * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5812         already says and disallow non-stack memory writes in the prologue.
5813
5814 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
5815
5816         * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5817         reflect how current GCC emits stack overflow checks.  Match
5818         both trap and break instructions for backward compatbility.
5819         Disallow other trap and break instructions in the prologue.
5820
5821 2015-07-30  Pedro Alves  <palves@redhat.com>
5822
5823         PR threads/18600
5824         * linux-nat.c (wait_lwp): Report to the core when thread group
5825         leader exits.
5826
5827 2015-07-30  Pedro Alves  <palves@redhat.com>
5828             Simon Marchi  <simon.marchi@ericsson.com>
5829
5830         PR threads/18600
5831         * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5832         mark the new thread as resumed.  Remove STOPPING parameter.
5833         (wait_lwp): Adjust call to linux_handle_extended_wait.
5834         (linux_nat_filter_event): Adjust call to
5835         linux_handle_extended_wait.
5836         (resume_stopped_resumed_lwps): Add debug output.
5837
5838 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5839
5840         * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5841         isize argument.
5842         * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5843         * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5844         gdbarch_fast_tracepoint_valid_at.
5845         * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5846         * gdbarch.h: Regenerate.
5847         * gdbarch.c: Regenerate.
5848         * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5849         argument.  Do not set it.
5850         * remote.c (remote_download_tracepoint): Adjust call to
5851         gdbarch_fast_tracepoint_valid_at.  Call gdb_insn_length to get
5852         the instruction length.
5853
5854 2015-07-30  Yao Qi  <yao.qi@linaro.org>
5855
5856         * arm-tdep.h (enum gdb_regnum): Move it to ...
5857         * arch/arm.h: ... here.  New file.
5858         * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5859
5860 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
5861
5862         * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5863         Change its type to int *.
5864         (decode_br): Rename link argument to is_blr.  Change its type to
5865         int *.
5866         (decode_cb): Rename op argument to is_cbnz.  Change its type to
5867         int *.
5868         (decode_tb): Rename op argument to is_tbnz.  Change its type to
5869         int *.  Set is_tbnz to either 1 or 0.
5870         (aarch64_analyze_prologue): Change type of is_link to int.  Add
5871         new variables is_cbnz and is_tbnz.  Adjust call to
5872         aarch64_decode_cb and aarch64_decode_tb.
5873
5874 2015-07-29  Simon Marchi  <simon.marchi@ericsson.com>
5875
5876         * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5877         parameter.
5878         (mips_linux_new_thread): Likewise.
5879         * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5880
5881 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
5882
5883         * top.c: Include "tui/tui.h".
5884         (undo_terminal_modifications_before_exit): New static function.
5885         (quit_force): Use it.
5886
5887 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
5888
5889         * target.c (terminal_state): Initialize to terminal_is_ours.
5890
5891 2015-07-29  Yao Qi  <yao.qi@linaro.org>
5892
5893         PR record/18691
5894         * dcache.c (dcache_read_memory_partial): Call
5895         raw_memory_xfer_partial.
5896         * target.c (raw_memory_xfer_partial): Make it non-static.
5897         * target.h (raw_memory_xfer_partial): Declare.
5898
5899 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5900
5901         * c-valprint.c (c_val_print_array): Consider addressable memory
5902         unit size.
5903         (c_val_print_ptr): Likewise.
5904         (c_val_print_int): Likewise.
5905         * findvar.c (read_frame_register_value): Likewise.
5906         * valarith.c (find_size_for_pointer_math): Likewise.
5907         (value_ptrdiff): Likewise.
5908         (value_subscripted_rvalue): Likewise.
5909         * valops.c (read_value_memory): Likewise (and rename variables).
5910         (value_assign): Likewise.
5911         (value_repeat): Likewise.
5912         (value_array): Likewise.
5913         (value_slice): Likewise.
5914         * valprint.c (generic_val_print_ptr): Likewise.
5915         (generic_val_print_enum): Likewise.
5916         (generic_val_print_bool): Likewise.
5917         (generic_val_print_int): Likewise.
5918         (generic_val_print_char): Likewise.
5919         (generic_val_print_float): Likewise.
5920         (generic_val_print_decfloat): Likewise.
5921         (generic_val_print_complex): Likewise.
5922         (val_print_scalar_formatted): Likewise.
5923         (val_print_array_elements): Likewise.
5924         * value.c (set_value_parent): Likewise.
5925         (value_contents_copy_raw): Likewise.
5926         (set_internalvar_component): Likewise.
5927         (value_primitive_field): Likewise.
5928         (value_fetch_lazy): Likewise.
5929         * value.h (read_value_memory): Update comment.
5930
5931 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5932
5933         * value.c (get_value_arch): New function.
5934         * value.h (get_value_arch): New declaration.
5935
5936 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5937
5938         * value.c (struct value): Update comments.
5939
5940 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
5941
5942         * gdbtypes.c (type_length_units): New function.
5943         * gdbtypes.h (type_length_units): New declaration.
5944         (struct type) <length>: Update comment.
5945
5946 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5947
5948         * valprint.c (generic_val_print): Factor out complex
5949         printing code to ...
5950         (generic_val_print_complex): ... this new function.
5951
5952 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5953
5954         * valprint.c (generic_val_print): Factor out decfloat
5955         printing code to ...
5956         (generic_val_print_decfloat): ... this new function.
5957
5958 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5959
5960         * valprint.c (generic_val_print): Factor out float
5961         printing code to ...
5962         (generic_val_print_float): ... this new function.
5963
5964 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5965
5966         * valprint.c (generic_val_print): Factor out char
5967         printing code to ...
5968         (generic_val_print_char): ... this new function.
5969
5970 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5971
5972         * valprint.c (generic_val_print): Factor out integer
5973         printing code to ...
5974         (generic_val_print_int): ... this new function.
5975
5976 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5977
5978         * valprint.c (generic_val_print): Factor out bool
5979         printing code to ...
5980         (generic_val_print_bool): ... this new function.
5981
5982 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5983
5984         * valprint.c (generic_val_print): Factor out function/method
5985         printing code to ...
5986         (generic_val_print_func): ... this new function.
5987
5988 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5989
5990         * valprint.c (generic_val_print): Factor out flags
5991         printing code to ...
5992         (generic_val_print_flags): ... this new function.
5993
5994 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
5995
5996         * valprint.c (generic_val_print): Factor out enum
5997         printing code to ...
5998         (generic_val_print_enum): ... this new function.
5999
6000 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6001
6002         * valprint.c (generic_val_print): Factor out reference
6003         printing code to ...
6004         (generic_val_print_ref): ... this new function.
6005
6006 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6007
6008         * valprint.c (generic_val_print): Factor out memberptr
6009         printing code to ...
6010         (generic_val_print_memberptr): ... this new function.
6011
6012 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6013
6014         * valprint.c (generic_val_print): Factor out pointer
6015         printing code to ...
6016         (generic_val_print_ptr): ... this new function.
6017
6018 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6019
6020         * valprint.c (generic_val_print): Factor out array
6021         printing code to ...
6022         (generic_val_print_array): ... this new function.
6023
6024 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
6025
6026         * valprint.c (generic_val_print): Factor out
6027         print_unpacked_pointer code to ...
6028         (print_unpacked_pointer): ... this new function.
6029
6030 2015-07-27  Patrick Palka  <patrick@parcs.ath.cx>
6031
6032         * event-top.c (handle_sigterm): Don't inspect
6033         target_can_async_p.  Always set the quit flag and always mark
6034         the async signal handler.
6035
6036 2015-07-27  Yao Qi  <yao.qi@linaro.org>
6037
6038         * Makefile.in (REMOTE_EXAMPLES): Remove it.
6039
6040 2015-07-25  Kevin Buettner  <kevinb@redhat.com>
6041
6042         * remote.c (read_ptid): Return null_ptid when no thread id
6043         is found.
6044         (remote_current_thread): Add log warning for malformed
6045         qC reply.
6046         (remote_start_remote): Add log warning when current thread
6047         not found.
6048
6049 2015-07-24  Pedro Alves  <palves@redhat.com>
6050
6051         * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
6052         (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
6053         forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
6054
6055 2015-07-24  Pedro Alves  <palves@redhat.com>
6056
6057         PR gdb/18717
6058         * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
6059         is resumed, and extend the debug log.
6060
6061 2015-07-24  Pedro Alves  <palves@redhat.com>
6062
6063         * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
6064
6065 2015-07-24  Pedro Alves  <palves@redhat.com>
6066
6067         * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
6068         sys/ptrace.h.
6069         * alpha-linux-nat.c: Likewise.
6070         * amd64-linux-nat.c: Likewise.
6071         * arm-linux-nat.c: Likewise.
6072         * hppa-linux-nat.c: Likewise.
6073         * i386-linux-nat.c: Likewise.
6074         * ia64-linux-nat.c: Likewise.
6075         * linux-fork.c: Likewise.
6076         * linux-nat.c: Likewise.
6077         * m32r-linux-nat.c: Likewise.
6078         * m68klinux-nat.c: Likewise.
6079         * mips-linux-nat.c: Likewise.
6080         * nat/linux-btrace.c: Likewise.
6081         * nat/linux-ptrace.c: Likewise.
6082         * nat/linux-ptrace.h
6083         * nat/mips-linux-watch.c: Likewise.
6084         * nat/x86-linux-dregs.c: Likewise.
6085         * ppc-linux-nat.c: Likewise.
6086         * s390-linux-nat.c: Likewise.
6087         * spu-linux-nat.c: Likewise.
6088         * tilegx-linux-nat.c: Likewise.
6089         * x86-linux-nat.c: Likewise.
6090         * xtensa-linux-nat.c: Likewise.
6091
6092 2015-07-24  Pedro Alves  <palves@redhat.com>
6093
6094         * ptrace.m4 (ptrace tests): Test in C++ mode.  Try with 'enum
6095         __ptrace_request as first parameter type instead of int.
6096         (PTRACE_TYPE_ARG1): Define.
6097         * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
6098         that casts first argument to PTRACE_TYPE_ARG1.
6099         * config.in: Regenerate.
6100         * configure: Regenerate.
6101
6102 2015-07-24  Pedro Alves  <palves@redhat.com>
6103
6104         * gdb_ptrace.h: Move ...
6105         * nat/gdb_ptrace.h: ... here.
6106         * inf-ptrace.c: Adjust.
6107
6108 2015-07-24  Pedro Alves  <palves@redhat.com>
6109
6110         * acinclude.m4: Include ptrace.m4.
6111         * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
6112         * ptrace.m4: ... to this new file.
6113
6114 2015-07-23  Doug Evans  <dje@google.com>
6115
6116         * dwarf2read.c (dwarf2_per_cu_data): Add comment.
6117         (load_cu): Handle dummy CUs.
6118         (dw2_do_instantiate_symtab, process_queuef): Ditto.
6119         (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
6120
6121 2015-07-23  Ciro Santilli  <ciro.santilli@gmail.com>  (tiny patch)
6122
6123         * py-linetable.c (ltpy_get_all_source_lines): Adjust function
6124         documentation to say that it returns a list rather than
6125         a FrozenSet.
6126         (linetable_object_methods): Update the docstring of the
6127         "source_line" entry.
6128
6129 2015-07-23  Pierre-Marie de Rodat  <derodat@adacore.com>
6130
6131         * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
6132         type to the recursive call instead of the original (maybe
6133         TYPE_CODE_TYPEDEF) type.
6134
6135 2015-07-23  Yao Qi  <yao.qi@linaro.org>
6136
6137         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
6138         TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
6139         If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
6140
6141 2015-07-21  Yao Qi  <yao.qi@linaro.org>
6142
6143         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
6144         Move it to nat/aarch64-linux-hw-point.c.
6145         (aarch64_linux_child_post_startup_inferior): Update.
6146         * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
6147         New function.
6148         * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
6149         Declare it.
6150
6151 2015-07-21  Markus Metzger  <markus.t.metzger@intel.com>
6152
6153         * common/btrace-common.c (btrace_data_append): Change case label.
6154
6155 2015-07-20  Yao Qi  <yao.qi@linaro.org>
6156
6157         * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
6158         Re-indent the code.
6159         * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
6160         "unsigned long long".
6161
6162 2015-07-18  Kevin Buettner  <kevinb@redhat.com>
6163
6164         * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
6165         to be set for SEC_ALLOC sections too.
6166
6167 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6168
6169         * Makefile.in (HFILES_NO_SRCDIR): Add
6170         nat/aarch64-linux-hw-point.h.
6171         (aarch64-linux-hw-point.o): New rule.
6172         * nat/aarch64-linux-hw-point.h: New file.
6173         * nat/aarch64-linux-hw-point.c: New file.
6174         * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
6175         (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6176         (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6177         (AARCH64_HWP_ALIGNMENT): Likewise.
6178         (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6179         (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6180         (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6181         (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6182         (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6183         (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6184         (struct aarch64_debug_reg_state): Likewise.
6185         (struct arch_lwp_info): Likewise.
6186         (aarch64_linux_set_debug_regs): Likewise.
6187         (aarch64_notify_debug_reg_change): Remove static.
6188         (aarch64_align_watchpoint): Likewise.
6189         (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6190         (aarch64_watchpoint_length): Likewise.
6191         (aarch64_point_encode_ctrl_reg): Likewise
6192         (aarch64_point_is_aligned): Likewise.
6193         (aarch64_dr_state_insert_one_point): Likewise.
6194         (aarch64_dr_state_remove_one_point): Likewise.
6195         (aarch64_handle_breakpoint): Likewise.
6196         (aarch64_handle_aligned_watchpoint): Likewise.
6197         (aarch64_handle_unaligned_watchpoint): Likewise.
6198         (aarch64_handle_watchpoint): Likewise.
6199         * config/aarch64/linux.mh (NAT_FILE): Add
6200         aarch64-linux-hw-point.o.
6201
6202 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6203
6204         * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
6205         state and don't call aarch64_get_debug_reg_state.  All callers
6206         update.
6207         (aarch64_linux_insert_hw_breakpoint): Call
6208         aarch64_get_debug_reg_state earlier.
6209         (aarch64_linux_remove_hw_breakpoint): Likewise.
6210         (aarch64_handle_aligned_watchpoint): Add argument state and
6211         don't call aarch64_get_debug_reg_state.  All callers update.
6212         (aarch64_handle_unaligned_watchpoint): Likewise.
6213         (aarch64_handle_watchpoint): Add argument state.
6214         (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
6215         earlier.
6216         (aarch64_linux_remove_watchpoint): Likewise.
6217
6218 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6219
6220         * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6221         debug_printf.
6222         (aarch64_handle_unaligned_watchpoint): Likewise.
6223
6224 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6225
6226         * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6227         argument type's type to 'enum target_hw_bp_type'.
6228         (aarch64_dr_state_remove_one_point): Likewise.
6229         (aarch64_handle_breakpoint): Likewise.
6230         (aarch64_linux_insert_hw_breakpoint): Likewise.
6231         (aarch64_linux_remove_hw_breakpoint): Likewise.
6232         (aarch64_handle_aligned_watchpoint): Likewise.
6233
6234 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6235
6236         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6237         ptid_get_pid instead of get_thread_id.
6238
6239 2015-07-17  Yao Qi  <yao.qi@linaro.org>
6240
6241         * remote.c (get_current_thread): Initialise ptid to null_ptid.
6242         (add_current_inferior_and_thread): Don't initialise ptid.
6243
6244 2015-07-16  Pierre Langlois  <pierre.langlois@arm.com>
6245
6246         * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6247         unavailable if invalid.
6248
6249 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6250
6251         Revert the previous 6 commits:
6252         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6253         Move gdb_regex* to common/
6254         Prepare linux_find_memory_regions_full & co. for move
6255         Move linux_find_memory_regions_full & co.
6256         gdbserver build-id attribute generator
6257         Validate symbol file using build-id
6258
6259 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6260             Jan Kratochvil  <jan.kratochvil@redhat.com>
6261
6262         Validate symbol file using build-id.
6263         * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6264         and 'show validate-build-id'.  Add build-id attribute.
6265         * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6266         * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6267         * solib-frv.c (_initialize_frv_solib): Ditto.
6268         * solib-spu.c (set_spu_solib_ops): Ditto.
6269         * solib-svr4.c: Include rsp-low.h.
6270         (NOTE_GNU_BUILD_ID_NAME): New define.
6271         (svr4_validate): New function.
6272         (svr4_copy_library_list): Duplicate field build_id.
6273         (library_list_start_library): Parse 'build-id' attribute.
6274         (svr4_library_attributes): Add 'build-id' attribute.
6275         (_initialize_svr4_solib): Assign validate value.
6276         * solib-target.c (solib.h): Include.
6277         (_initialize_solib_target): Assign validate value.
6278         * solib.c (validate_build_id, show_validate_build_id): New.
6279         (solib_map_sections): Use ops->validate.
6280         (clear_so): Free build_id.
6281         (default_solib_validate): New function.
6282         (_initialize_solib): Add "validate-build-id".
6283         * solib.h (default_solib_validate): New declaration.
6284         * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6285         (target_so_ops): New field 'validate'.
6286
6287 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6288             Jan Kratochvil  <jan.kratochvil@redhat.com>
6289
6290         gdbserver build-id attribute generator.
6291         * features/library-list-svr4.dtd (library-list-svr4): New
6292         'build-id' attribute.
6293
6294 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6295             Jan Kratochvil  <jan.kratochvil@redhat.com>
6296
6297         Move linux_find_memory_regions_full & co.
6298         * linux-tdep.c (nat/linux-maps.h): Include.
6299         (gdb_regex.h): Remove the include.
6300         (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6301         (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6302         (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6303         (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6304         * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6305         and target/target.h.
6306         (struct smaps_vmflags, read_mapping, decode_vmflags)
6307         (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6308         (linux_find_memory_regions_full): Move from linux-tdep.c.
6309         * nat/linux-maps.h (read_mapping): New declaration.
6310         (linux_find_memory_region_ftype, enum filterflags): Moved from
6311         linux-tdep.c.
6312         (linux_find_memory_regions_full): New declaration.
6313         * target.c (target/target-utils.h): Include.
6314         (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6315         (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6316         definitions to target/target-utils.c.
6317         * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6318         * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6319         from target.c.
6320         * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6321         (read_alloc): New declaration.
6322         (read_stralloc_func_ftype): New typedef.
6323         (read_stralloc): New declaration.
6324         * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6325
6326 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6327             Jan Kratochvil  <jan.kratochvil@redhat.com>
6328
6329         Prepare linux_find_memory_regions_full & co. for move.
6330         * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6331         (linux_find_memory_regions_full): Change signature and prepare
6332         for moving to linux-maps.
6333         (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6334         (linux_find_memory_regions_thunk): New.
6335         (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6336         (linux_find_memory_regions_gdb): New.
6337         (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6338         (linux_make_mappings_corefile_notes): Use
6339         linux_find_memory_regions_gdb.
6340         * target.c (read_alloc_pread_ftype): New typedef.
6341         (target_fileio_read_alloc_1_pread): New function.
6342         (read_alloc): Refactor from target_fileio_read_alloc_1.
6343         (read_stralloc_func_ftype): New typedef.
6344         (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6345         (read_stralloc): Refactored from target_fileio_read_stralloc.
6346         (target_fileio_read_stralloc): New implementation, use read_stralloc.
6347
6348 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6349
6350         * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6351         common/gdb_regex.h.
6352         (COMMON_OBS): Add gdb_regex.o.
6353         (gdb_regex.o): New.
6354         * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6355         --without-included-regex and USE_INCLUDED_REGEX.
6356         * common/gdb_regex.c: New file from utils.c functions.
6357         * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6358         file wrapping define name.
6359         * configure: Rebuilt.
6360         * configure.ac (gdb_use_included_regex, --without-included-regex)
6361         (USE_INCLUDED_REGEX): Move them to common/common.m4.
6362         * gdb_regex.h: Move it to common/gdb_regex.h.
6363         * utils.c: Remove include gdb_regex.h.
6364         (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6365         (compile_rx_or_error): Move them to common/gdb_regex.c.
6366
6367 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
6368             Jan Kratochvil  <jan.kratochvil@redhat.com>
6369
6370         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6371         * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6372         common/target-utils.h.
6373         (COMMON_OBS): Add target-utils.o.
6374         (linux-maps.o, target-utils.o): New.
6375         * target/target-utils.c: New file.
6376         * target/target-utils.h: New file.
6377         * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6378         * config/i386/linux64.mh (NATDEPFILES): Ditto.
6379         * nat/linux-maps.c: New file.
6380         * nat/linux-maps.h: New file.
6381
6382 2015-07-15  Markus Metzger  <markus.t.metzger@intel.com>
6383             Pedro Alves <palves@redhat.com>
6384
6385         * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6386         (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6387         (perf_event_read_bts): Change the type of SIZE and READ.
6388         (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6389         and DATA_OFFSET.  Move DATA_SIZE declaration.  Restrict the buffer size
6390         to UINT_MAX.  Check for overflows when using DATA_HEAD from the perf
6391         mmap page.
6392         (linux_enable_pt): Change the type of PAGES and SIZE.  Restrict the
6393         buffer size to UINT_MAX.
6394         (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6395         DATA_TAIL.
6396         * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6397         <last_head>: Change type.
6398         * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6399         * common/btrace-common.c (btrace_data_append): Change the type of
6400         SIZE.
6401         * btrace.c (parse_xml_raw): Change the type of SIZE.  Change oddness
6402         check.
6403
6404 2015-07-14  Simon Marchi  <simon.marchi@ericsson.com>
6405
6406         * gdbtypes.h (CHECK_TYPEDEF): Remove.
6407         * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6408         with check_typedef.
6409         * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6410         (ada_array_length): Likewise.
6411         (find_parallel_type_by_descriptive_type): Likewise.
6412         (ada_check_typedef): Likewise.
6413         * arm-tdep.c (arm_return_in_memory): Likewise.
6414         * ax-gdb.c (gen_trace_static_fields): Likewise.
6415         (gen_struct_ref_recursive): Likewise.
6416         * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6417         (variable: block COLONCOLON name): Likewise.
6418         (qualified_name: TYPENAME COLONCOLON name): Likewise.
6419         * c-lang.c (classify_type): Likewise.
6420         * c-typeprint.c (c_print_type): Likewise.
6421         (c_print_typedef): Likewise.
6422         (c_type_print_base): Likewise.
6423         * c-valprint.c (c_val_print): Likewise.
6424         * compile/compile-c-types.c (convert_type): Likewise.
6425         * compile/compile-object-load.c (get_out_value_type): Likewise.
6426         * completer.c (add_struct_fields): Likewise.
6427         (expression_completer): Likewise.
6428         * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6429         (cp_lookup_nested_symbol_1): Likewise.
6430         (cp_lookup_nested_symbol): Likewise.
6431         * cp-valprint.c (cp_print_value_fields): Likewise.
6432         (cp_print_static_field): Likewise.
6433         * d-valprint.c (d_val_print): Likewise.
6434         * eval.c (evaluate_subexp_standard): Likewise.
6435         (evaluate_subexp_for_sizeof): Likewise.
6436         * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6437         * f-typeprint.c (f_type_print_base): Likewise.
6438         * f-valprint.c (f_val_print): Likewise.
6439         * gdbtypes.c (get_discrete_bounds): Likewise.
6440         (create_array_type_with_stride): Likewise.
6441         (type_name_no_tag_or_error): Likewise.
6442         (lookup_struct_elt_type): Likewise.
6443         (get_unsigned_type_max): Likewise.
6444         (internal_type_vptr_fieldno): Likewise.
6445         (set_type_vptr_fieldno): Likewise.
6446         (internal_type_vptr_basetype): Likewise.
6447         (set_type_vptr_basetype): Likewise.
6448         (get_vptr_fieldno): Likewise.
6449         (is_integral_type): Likewise.
6450         (is_scalar_type): Likewise.
6451         (is_scalar_type_recursive): Likewise.
6452         (distance_to_ancestor): Likewise.
6453         (is_unique_ancestor_worker): Likewise.
6454         (check_types_equal): Likewise.
6455         * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6456
6457 2015-07-14  Iain Buclaw  <ibuclaw@gdcproject.org>
6458
6459         * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6460         also test for language_d.
6461         (dwarf2_compute_name): Likewise.
6462         (read_func_scope): Likewise.
6463         (read_structure_type): Likewise.
6464         (new_symbol_full): Likewise.
6465         (determine_prefix): Likewise.
6466         (read_import_statement): Use dot as the separator for language_d.
6467         (typename_concat): Likewise, but don't prefix the D main function.
6468
6469 2015-07-14  Peter Bergner  <bergner@vnet.ibm.com>
6470
6471         * nat/linux-namespaces.c (setns): Rename from this ...
6472         (do_setns): ... to this.  Support calling setns if it exists.
6473         (mnsh_handle_setns): Call do_setns.
6474
6475 2015-07-13  Yao Qi  <yao.qi@linaro.org>
6476
6477         * exec.c (exec_file_attach): Add period at the end of error
6478         message.
6479
6480 2015-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
6481
6482         * tui/tui-win.c (window_name_completer): New function.
6483         (focus_completer): Call window_name_completer.  All old content
6484         moved into window_name_completer.
6485         (winheight_completer): New function.
6486         (_initialize_tui_win): Rename variable.  Add completer to
6487         winheight command.  Update doc string on winheight.
6488
6489 2015-07-12  Sandra Loosemore  <sandra@codesourcery.com>
6490
6491         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6492         all nios2 mach variants.
6493
6494 2015-07-10  Kevin Buettner  <kevinb@redhat.com>
6495
6496         * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6497         of target_read_memory.
6498
6499 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6500
6501         * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6502         string copy.
6503         (parse_scrolling_args): Likewise.
6504
6505 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6506
6507         * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6508         names in this function.
6509
6510 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
6511
6512         * tui/tui-data.h (SRC_NAME): Convert to lower case.
6513         (CMD_NAME): Likewise.
6514         (DATA_NAME): Likewise.
6515         (DISASSEM_NAME): Likewise.
6516         * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6517         (tui_set_win_height): Likewise.
6518         (parse_scrolling_args): Likewise.
6519
6520 2015-07-10  Markus Metzger  <markus.t.metzger@intel.com>
6521
6522         * record-btrace.c (record_btrace_goto_begin)
6523         (record_btrace_goto_end, record_btrace_goto): Move call to
6524         print_stack_frame ...
6525         (record_btrace_set_replay): ... here.  Set stop_pc.
6526         * record-full.c (record_full_goto_entry): Set stop_pc.
6527
6528 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6529
6530         * NEWS: Mention support for tracepoints on aarch64-linux.
6531
6532 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6533
6534         * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6535         function.  Return 1.
6536         (the_low_target): Install it.
6537
6538 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6539
6540         * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6541         * gdb.trace/collection.exp: Likewise.
6542         * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6543         * gdb.trace/mi-trace-unavailable.exp: Likewise.
6544         * gdb.trace/report.exp: Likewise.
6545         * gdb.trace/trace-break.exp: Likewise.
6546         * gdb.trace/unavailable.exp: Likewise.
6547         * gdb.trace/while-dyn.exp: Likewise.
6548
6549 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6550
6551         * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6552         (aarch64_gen_return_address): New function.
6553         (aarch64_gdbarch_init): Hook it.
6554
6555 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6556
6557         * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6558         swallow NOT_AVAILABLE_ERROR.
6559         (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6560         available_p is not set.
6561         (aarch64_stub_frame_unwind_stop_reason): New function.
6562         (aarch64_stub_unwind): Install it.
6563
6564 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6565
6566         * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6567         field.
6568         (aarch64_make_prologue_cache_1): New function, factored out from
6569         aarch64_make_prologue_cache.  Do not allocate cache.  Set
6570         available_p.
6571         (aarch64_make_prologue_cache): Reimplement wrapping
6572         aarch64_make_prologue_cache_1, and swallowing
6573         NOT_AVAILABLE_ERROR.
6574         (aarch64_prologue_frame_unwind_stop_reason): New function.
6575         Return UNWIND_UNAVAILABLE if available_p is not set.
6576         (aarch64_prologue_unwind): Install it.
6577         (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6578         checks into aarch64_prologue_frame_unwind_stop_reason.  Call
6579         frame_id_build_unavailable_stack if available_p is not set.
6580
6581 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6582
6583         * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6584         fields.
6585         (aarch64_scan_prologue): Set prev_pc.
6586         (aarch64_make_prologue_cache): Set func.
6587         (aarch64_make_stub_cache): Set prev_pc.
6588         (aarch64_prologue_this_id): Remove local variables id, pc and
6589         func.  Read prev_pc and func from cache.
6590         (aarch64_stub_this_id): Read prev_pc from cache.
6591
6592 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6593
6594         * aarch64-tdep.c (aarch64_make_stub_cache): Update comment.  New
6595         argument this_cache.  Remove unused local variables reg and
6596         unwound_fp.  Return early if this_cache is already set.  Set
6597         this_cache.
6598         (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6599
6600 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
6601
6602         * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6603         New argument this_cache.  Return early if this_cache is already
6604         set.  Set this_cache.
6605         (aarch64_prologue_this_id): Update call to
6606         aarch64_make_prologue_cache.
6607         (aarch64_prologue_prev_register): Likewise.
6608         (aarch64_normal_frame_base): Likewise.
6609
6610 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6611
6612         * c-valprint.c (c_val_print): Factor out memberptr printing code
6613         from c_val_print to ...
6614         (c_val_print_memberptr): ... this new function.
6615
6616 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6617
6618         * c-valprint.c (c_val_print): Factor out int printing code to ...
6619         (c_val_print_int): ... this new function.
6620
6621 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6622
6623         * c-valprint.c (c_val_print): Factor out struct and union
6624         printing code to ...
6625         (c_val_print_struct): ... this new function ...
6626         (c_val_print_union): ... and this new function.
6627
6628 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6629
6630         * c-valprint.c (c_val_print): Factor out pointer printing code
6631         to ...
6632         (c_val_print_ptr): ... this new function.
6633
6634 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6635
6636         * c-valprint.c (c_valprint): Factor our array printing code from
6637         c_val_print to ...
6638         (c_val_print_array): ... this new function.
6639
6640 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6641
6642         * c-valprint.c (c_val_print): Factor out pointer printing code
6643         to ...
6644         (print_unpacked_pointer): ... this new function.
6645
6646 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
6647
6648         * c-valprint.c (c_val_print): Remove an assignment to i and move
6649         its declaration.
6650
6651 2015-07-09  Yao Qi  <yao.qi@linaro.org>
6652
6653         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6654         argument ptid.  Update comments.  Caller update.
6655
6656 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6657
6658         * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6659         mnt packets.
6660
6661 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
6662
6663         * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6664
6665 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6666
6667         * progspace.c (delete_program_space): Add missing spaces.
6668
6669 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
6670
6671         * inferior.c (delete_inferior_1): Rename to ...
6672         (delete_inferior): ..., remove 'silent' parameter, delete
6673         program space when unused and remove call to prune_program_spaces.
6674         Remove the old, unused, delete_inferior.
6675         (delete_inferior_silent): Remove.
6676         (prune_inferiors): Change call from delete_inferior_1 to
6677         delete_inferior and remove 'silent' parameter. Remove call to
6678         prune_program_spaces.
6679         (remove_inferior_command): Idem.
6680         * inferior.h (delete_inferior_1): Rename to...
6681         (delete_inferior): ..., remove 'silent' parameter and remove the
6682         original delete_inferior.
6683         (delete_inferior_silent): Remove.
6684         * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6685         delete_inferior_1 to delete_inferior and remove 'silent'
6686         parameter.
6687         * progspace.c (prune_program_spaces): Remove.
6688         (pspace_empty_p): Rename to...
6689         (program_space_empty_p): ... and make non-static.
6690         (delete_program_space): New.
6691         * progspace.h (prune_program_spaces): Remove declaration.
6692         (program_space_empty_p): New declaration.
6693         (delete_program_space): New declaration.
6694         * monitor.c (monitor_close): Replace call to
6695         delete_thread_silent and delete_inferior_silent with
6696         discard_all_inferiors.
6697
6698 2015-07-08  Patrick Palka  <patrick@parcs.ath.cx>
6699
6700         * defs.h (deprecated_register_changed_hook): Remove prototype.
6701         * interps.c (clear_iterpreter_hooks): Remove reference to
6702         deprecated_register_changed_hook.
6703         * top.c (deprecated_register_changed_hook): Remove prototype.
6704         * valops.c (value_assign): Remove reference to
6705         deprecated_register_changed_hook.
6706         * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6707         Add comment documenting the function.
6708         (tui_register_changed_observer): Define.
6709         (tui_install_hooks): Remove reference to
6710         deprecated_register_changed_hook.  Set
6711         tui_register_changed_observer.
6712         (tui_remove_hooks): Remove reference to
6713         deprecated_register_changed_hook.  Unset
6714         tui_register_changed_observer.
6715
6716 2015-07-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
6717
6718         PR compile/18484
6719         * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6720
6721 2015-07-08  Robert O'Callahan  <robert@ocallahan.org>
6722
6723         PR exp/18617
6724         * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6725
6726 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6727
6728         * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6729
6730 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6731
6732         * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6733         Use safe_strerror() instead of strerror().
6734
6735 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6736
6737         * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6738         * features/arm-with-m-fpa-layout.c: Regenerated.
6739         * features/arm-with-m-vfp-d16.xml: Likewise.
6740         * features/arm-with-m-vfp-d16.c: Regenerated.
6741         * features/arm-with-m.xml: Likewise.
6742         * features/arm-with-m.c: Regenerated.
6743         * features/arm-with-neon.xml: Likewise.
6744         * features/arm-with-neon.c: Regenerated.
6745         * features/arm-with-vfpv2.xml: Likewise.
6746         * features/arm-with-vfpv2.c: Regenerated.
6747         * features/arm-with-vfpv3.xml: Likewise.
6748         * features/arm-with-vfpv3.c: Regenerated.
6749
6750 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6751
6752         * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6753         arm-linux-nat.c.
6754         * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6755         elf/external.h.
6756         (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6757         if target is 32-bit.
6758         (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6759         if target is 32-bit.
6760         (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6761         if target is 32-bit.
6762         (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6763         if target is 32-bit.
6764         (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6765         (aarch64_linux_read_description): Return the right target
6766         description.
6767         * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6768         * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6769         * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6770         arm-linux-tdep.o.
6771
6772 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6773
6774         * aarch32-linux-nat.c: New file.
6775         * aarch32-linux-nat.h: New file.
6776         * arm-linux-nat.c: Include aarch32-linux-nat.h.
6777         (fetch_regs): Move code to aarch32-linux-nat.c.  Call
6778         aarch32_gp_regcache_supply.
6779         (store_regs): Move code to aarch32-linux-nat.c.  Call
6780         aarch32_gp_regcache_collect.
6781         (fetch_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6782         aarch32_vfp_regcache_supply.
6783         (store_vfp_regs): Move code to aarch32-linux-nat.c.  Call
6784         aarch32_vfp_regcache_collect.
6785         * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6786
6787 2015-07-07  Yao Qi  <yao.qi@linaro.org>
6788
6789         * arm-linux-nat.c (store_fpregister): Remove.
6790         (store_register): Likewise.
6791         (fetch_fpregister): Likewise.
6792         (fetch_register): Likewise.
6793         (arm_linux_store_inferior_registers): Call store_regs and
6794         store_fpregs instead.
6795         (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6796         fetch_regs instead.
6797
6798 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6799
6800         * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6801         and focus commands.
6802
6803 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6804
6805         * NEWS: Create a new section for the next release branch.
6806         Rename the section of the current branch, now that it has
6807         been cut.
6808
6809 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
6810
6811         GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6812         * version.in: Bump version to 7.10.50.DATE-cvs.
6813
6814 2015-07-06  Luis Machado  <lgustavo@codesourcery.com>
6815
6816         * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6817         breakpoints in a special way.
6818         (remove_breakpoint): Likewise.
6819         (mark_breakpoints_out): Likewise.
6820
6821 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6822
6823         * doc/gdb.texinfo (TUI): Add comma after @xref.
6824
6825 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6826
6827         * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6828         instead of casting the structure type.
6829
6830 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6831
6832         * valops.c (search_struct_field): Remove OFFSET parameter.
6833         (value_cast_structs): Adjust calls to search_struct_field.
6834         (value_struct_elt): Same.
6835         (find_overload_match): Same.
6836
6837 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
6838
6839         * value.c (value_fetch_lazy): Update comment, change return
6840         value to void.
6841         * value.h (value_fetch_lazy): Change return value to void.
6842
6843 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
6844
6845         * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6846         (tui_win_name): Make parameter and result const.
6847         * tui/tui-data.h (tui_win_name): Make parameter and result const.
6848
6849 2015-07-06  Patrick Palka  <patrick@parcs.ath.cx>
6850
6851         * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6852         use printf_unfiltered.
6853         (set_mpx_cmd): Add missing trailing space to command string
6854         literal.
6855         (_initialize_i386_tdep): Give the "mpx" prefix command its
6856         correct name.
6857
6858 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
6859
6860         * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6861         (enum rx_frame_type): New.
6862         (struct rx_prologue): Add new field `frame_type'.
6863         (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6864         parameter in the prologue struct.  Add code for recording
6865         locations of PC and PSW for fast interrupt and exception frames.
6866         (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6867         (rx_analyze_frame_prologue): Add `frame_type' parameter.
6868         (rx_frame_type): New function.
6869         (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6870         (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6871         `this_cache'.
6872         (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6873         `this_cache'.  Add cases for RX_FRAME_TYPE_EXCEPTION and
6874         RX_FRAME_TYPE_FAST_INTERRUPT.
6875         (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6876         (rx_frame_sniffer, rx_exception_sniffer): New functions.
6877         (rx_frame_unwind): Use rx_frame_sniffer instead of
6878         default_frame_sniffer.
6879         (rx_frame_unwind): New unwinder.
6880         (rx_gdbarch_init): Register new unwinder.
6881
6882 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
6883
6884         * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6885         (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6886         (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6887         and RX_FPSW_REGNUM.
6888         (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6889
6890 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6891
6892         Fix GCC false warning.
6893         * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6894
6895 2015-07-02  Yao Qi  <yao.qi@linaro.org>
6896
6897         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6898         typo in the debugging message.
6899
6900 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6901
6902         * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6903         (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6904         (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6905         (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6906         (btrace_maint_clear): New.
6907         (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6908         (pt_print_packet, btrace_maint_decode_pt)
6909         (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6910         (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6911         (maint_btrace_packet_history_cmd)
6912         (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6913         (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6914         (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6915         (maint_info_btrace_cmd, _initialize_btrace): New.
6916         * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6917         (btrace_maint_packet_history, btrace_maint_info): New.
6918         (btrace_thread_info) <maint>: New.
6919         * NEWS: Announce it.
6920
6921 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6922
6923         * btrace.c (btrace_fetch): Append the new trace data.
6924         (btrace_clear): Clear the stored trace data.
6925         * btrace.h (btrace_thread_info) <data>: New.
6926         * common/btrace-common.h (btrace_data_clear)
6927         (btrace_data_append): New.
6928         * common/btrace-common.c (btrace_data_clear)
6929         (btrace_data_append): New.
6930
6931 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6932
6933         * nat/linux-btrace.c (linux_enable_bts): Check for
6934         PERF_ATTR_SIZE_VER5.
6935         Check for data_offset and data_size fields.  Use them.
6936
6937 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
6938
6939         * NEWS: Announce new commands "record btrace pt" and "record pt".
6940         Announce new options "set|show record btrace pt buffer-size".
6941         * btrace.c: Include "rsp-low.h".
6942         Include "inttypes.h".
6943         (btrace_add_pc): Add forward declaration.
6944         (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6945         (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6946         (btrace_compute_ftrace_pt): New.
6947         (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6948         (check_xml_btrace_version): Update version check.
6949         (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6950         (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6951         (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6952         (btrace_pt_children): New.
6953         (btrace_children): Add support for "pt".
6954         (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6955         (btrace_conf_children): Add support for "pt".
6956         * btrace.h: Include "intel-pt.h".
6957         (btrace_pt_error): New.
6958         * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6959         (btrace_data_empty): Support BTRACE_FORMAT_PT.
6960         * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6961         (struct btrace_config_pt): New.
6962         (struct btrace_config)<pt>: New.
6963         (struct btrace_data_pt_config, struct btrace_data_pt): New.
6964         (struct btrace_data)<pt>: New.
6965         * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6966         (pt): New.
6967         * features/btrace.dtd (btrace)<pt>: New.
6968         (pt, pt-config, cpu): New.
6969         * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6970         (perf_event_pt_event_type, kernel_supports_pt)
6971         (linux_supports_pt): New.
6972         (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6973         (linux_enable_bts): Free tinfo on error.
6974         (linux_enable_pt): New.
6975         (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6976         (linux_disable_pt): New.
6977         (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6978         (linux_fill_btrace_pt_config, linux_read_pt): New.
6979         (linux_read_btrace): Support BTRACE_FORMAT_PT.
6980         * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6981         (struct btrace_target_info)<pt>: New.
6982         * record-btrace.c (set_record_btrace_pt_cmdlist)
6983         (show_record_btrace_pt_cmdlist): New.
6984         (record_btrace_print_pt_conf): New.
6985         (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6986         (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6987         (cmd_record_btrace_pt_start): New.
6988         (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6989         (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6990         (_initialize_record_btrace): Add new commands.
6991         * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6992         (remote_protocol_features): Add "Qbtrace:pt".
6993         Add "Qbtrace-conf:pt:size".
6994         (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6995         (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6996         (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6997         (_initialize_remote): Add new commands.
6998
6999 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
7000
7001         * configure.ac: check for libipt
7002         * configure: Regenerate.
7003         * config.in: Regenerate.
7004         * Makefile.in (LIBIPT): New.
7005         (CLIBS): Add $LIBIPT.
7006         * NEWS: document new configure options
7007
7008 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7009
7010         * compile/compile-object-load.c (compile_object_load): Replace debug
7011         message "lookup undefined ELF symbol" by 3 more specific messages.
7012
7013 2015-07-01  Kevin Buettner  <kevinb@redhat.com>
7014
7015         * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
7016         (rl78_register_type): Add case for RL78_PSW_REGNUM.
7017         (rl78_gdbarch_init): Initialize rl78_psw_type.
7018
7019 2015-07-01  Patrick Palka  <patrick@parcs.ath.cx>
7020
7021         * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7022         Update commentary.  Always refresh the registers when frame
7023         information has changed.
7024         * tui/tui-stack.c (tui_show_frame_info): Update commentary.
7025         Change return type to int.  Return 1 if frame information has
7026         changed, 0 otherwise.
7027         (tui_before_prompt): Update commentary.
7028         * tui/tui-stack.h (tui_show_frame_info): Change return type to
7029         int.
7030
7031 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
7032
7033         PR tui/13378
7034         * frame.c (select_frame): Remove reference to
7035         deprecated_selected_frame_level_changed_hook.
7036         * frame.h (deprecated_selected_frame_level_changed_hook): Remove
7037         declaration.
7038         * stack.c (deprecated_selected_frame_level_changed_hook):
7039         Likewise.
7040         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
7041         Rename to ...
7042         (tui_refresh_frame_and_register_information): ... this.  Bail
7043         out if there is no stack.  Don't update register information
7044         unless registers_too_p is true.
7045         (tui_print_frame_info_listing_hook): Rename to ...
7046         (tui_dummy_print_frame_info_listing_hook): ... this.
7047         (tui_before_prompt): New function.
7048         (tui_normal_stop): New function.
7049         (tui_before_prompt_observer): New observer.
7050         (tui_normal_stop_observer): New observer.
7051         (tui_install_hooks): Set
7052         deprecated_print_frame_info_listing_hook to
7053         tui_dummy_print_frame_info_listing_hook.  Register
7054         tui_before_prompt_observer to call tui_before_prompt and
7055         tui_normal_stop_observer to call tui_normal_stop.  Remove
7056         reference to deprecated_selected_frame_level_changed_hook.
7057         (tui_remove_hooks): Detach and unset tui_before_prompt_observer
7058         and tui_normal_stop_observer.  Remove reference to
7059         deprecated_selected_frame_level_changed_hook.
7060
7061 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
7062
7063         PR tui/13378
7064         * tui/tui-stack.c (tui_set_locator_info): Change prototype to
7065         return an int instead of void.  Return whether the locator
7066         window has changed.
7067         (tui_show_frame_info): If the locator info has not changed, then
7068         bail out early to avoid refreshing the windows.
7069
7070 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
7071
7072         * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
7073         LOCATOR_WIN to tui_alloc_content.
7074
7075 2015-06-30  Yao Qi  <yao.qi@linaro.org>
7076
7077         PR tdep/18605
7078         * arm-tdep.c (arm_get_next_pc_raw): Break for media
7079         instructions.
7080
7081 2015-06-29  Kevin Buettner  <kevinb@redhat.com>
7082
7083         * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
7084         (rx_dwarf_reg_to_regnum): New function.
7085         (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum.  Use dwarf2
7086         unwinding.
7087
7088 2015-06-29  Pedro Alves  <palves@redhat.com>
7089
7090         PR threads/18127
7091         * infcall.c (run_inferior_call): On infcall success, if the thread
7092         was marked stopped before, reset it back to stopped.
7093         * infrun.c (resume): Don't suppress the set_running calls when
7094         doing an infcall.
7095         (normal_stop): Only discard the finish_thread_state cleanup if the
7096         infcall succeeded.
7097
7098 2015-06-29  Pierre Langlois  <pierre.langlois@arm.com>
7099
7100         * MAINTAINERS (Write After Approval): Update my email address.
7101
7102 2015-06-26  Keith Seitz  <keiths@redhat.com>
7103             Doug Evans  <dje@google.com>
7104
7105         PR 16253
7106         * block.c (block_lookup_symbol): For non-function blocks,
7107         continue to search for a symbol with an exact domain match
7108         Otherwise, return any previously found "best domain" symbol.
7109         (block_lookup_symbol_primary): Likewise.
7110
7111 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
7112
7113         * NEWS: Mention the new option "history remove-duplicates".
7114         * top.c (history_remove_duplicates): New static variable.
7115         (show_history_remove_duplicates): New static function.
7116         (gdb_add_history): Conditionally remove duplicate history
7117         entries.
7118         (init_main): Add "history remove-duplicates" option.
7119
7120 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
7121
7122         * tui/tui-win.c (focus_completer): New static function.
7123         (_initialize_tui_win): Set the completion function of the
7124         "focus" command to focus_completer.
7125
7126 2015-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
7127
7128         * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
7129         and language_asm..
7130         * symtab.c (find_function_start_sal): Likewise.
7131
7132 2015-06-25  Gary Benson  <gbenson@redhat.com>
7133
7134         * solib.c (solib_find_1): Set local variable sysroot to NULL if
7135         it is the empty string after trailing slashes have been stripped.
7136
7137 2015-06-25  Gary Benson  <gbenson@redhat.com>
7138
7139         * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
7140         * infrun.c (follow_exec): Likewise.
7141         * remote.c (remote_filesystem_is_local): Likewise.
7142         * solib.c (solib_find_1): Likewise.
7143
7144 2015-06-24  Keith Seitz  <keiths@redhat.com>
7145
7146         * build-id.c (build_id_to_debug_bfd): Add cleanup to free
7147         return value from lrealpath.
7148
7149 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
7150
7151         * remote-sim.c (gdbsim_open): Move sysroot update to the top.
7152
7153 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
7154
7155         * remote-sim.c: Include gdb_bfd.h.
7156         (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
7157         Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
7158
7159 2015-06-24  Yao Qi  <yao.qi@linaro.org>
7160
7161         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
7162         set_gdbarch_get_siginfo_type.
7163         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7164         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7165         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7166         * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
7167         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
7168         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7169         * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
7170         * linux-tdep.c (linux_get_siginfo_type): Change it to static.
7171         (linux_init_abi): Call set_gdbarch_get_siginfo_type.
7172         * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
7173
7174 2015-06-24  Gary Benson  <gbenson@redhat.com>
7175
7176         * common/buffer.c (stdint.h): Do not include.
7177         * common/print-utils.c (stdint.h): Likewise.
7178         * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
7179         * compile/compile-c-types.c (gdb_assert.h): Likewise.
7180         * ft32-tdep.c (gdb_assert.h): Likewise.
7181         * guile/scm-utils.c (stdint.h): Likewise.
7182         * i386-linux-tdep.c (stdint.h): Likewise.
7183         * i386-tdep.c (stdint.h): Likewise.
7184         * nat/linux-btrace.c (stdint.h): Likewise.
7185         * nat/linux-btrace.h (stdint.h): Likewise.
7186         * nat/linux-ptrace.c (stdint.h): Likewise.
7187         * nat/mips-linux-watch.h (stdint.h): Likewise.
7188         * ppc-linux-nat.c (stdint.h): Likewise.
7189         * python/python-internal.h (stdint.h): Likewise.
7190         * stub-termcap.c (stdlib.h): Likewise.
7191         * target/target.h (stdint.h): Likewise.
7192         * xtensa-linux-nat.c (stdint.h): Likewise.
7193
7194 2015-06-23  Patrick Palka  <patrick@parcs.ath.cx>
7195
7196         * top.c (init_history): Look at errno after calling strtol to
7197         properly map large GDBHISTSIZE values to infinity.
7198
7199 2015-06-23  Doug Evans  <dje@google.com>
7200
7201         * inferior.h (struct inferior_suspend_state): Delete, unused.
7202         All references deleted.
7203
7204 2015-06-23  Mike Frysinger  <vapier@gentoo.org>
7205
7206         * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
7207         (microblaze_push_dummy_call): Likewise.
7208         (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
7209         and set_gdbarch_push_dummy_call.
7210
7211 2015-06-23  Yao Qi  <yao.qi@linaro.org>
7212
7213         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
7214         Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
7215         (amd64_linux_store_inferior_registers): Likewise.
7216         * arm-linux-nat.c (fetch_fpregister): Likewise.
7217         (fetch_fpregs, store_fpregister): Likewise.
7218         (store_fpregister, store_fpregs): Likewise.
7219         (fetch_register, fetch_regs): Likewise.
7220         (store_register, store_regs): Likewise.
7221         (fetch_vfp_regs, store_vfp_regs): Likewise.
7222         (arm_linux_read_description): Check have_ptrace_getregset is
7223         TRIBOOL_UNKNOWN.  Set have_ptrace_getregset to TRIBOOL_TRUE
7224         or TRIBOOL_FALSE.
7225         * i386-linux-nat.c (fetch_xstateregs): Check
7226         have_ptrace_getregset is not TRIBOOL_TRUE.
7227         (store_xstateregs): Likewise.
7228         * linux-nat.c (have_ptrace_getregset): Change its type to
7229         enum tribool.
7230         * linux-nat.h (tribool): New enum.
7231         * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7232         Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7233
7234 2015-06-19  Doug Evans  <dje@google.com>
7235
7236         * NEWS: Mention Sun's version of stabs is no longer supported.
7237         * elfread.c (free_elfinfo): Delete.  All uses updated.
7238         (elfstab_offset_sections): Delete.  All uses updated.
7239         * gdb-stabs.h (stab_section_info): Delete.  All uses updated.
7240         * psympriv.h (partial_symtab) <section_offsets>: Delete.
7241         All uses updated.
7242         * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7243         All callers updated.
7244
7245 2015-06-18  Simon Marchi  <simon.marchi@ericsson.com>
7246
7247         * common/rsp-low.c (needs_escaping): New.
7248         (remote_escape_output): Add unit_size parameter. Refactor to
7249         support multi-byte addressable units.  Rename parameters.
7250         * common/rsp-low.h (remote_escape_output): Add unit_size
7251         parameter and rename others. Update doc.
7252         * remote.c (align_for_efficient_write): New.
7253         (remote_write_bytes_aux): Add unit_size parameter and use it.
7254         Rename some variables.  Update doc.
7255         (remote_xfer_partial): Get unit size and use it.
7256         (remote_read_bytes_1): Add unit_size parameter and use it.
7257         Rename some variables. Update doc.
7258         (remote_write_bytes): Same.
7259         (remote_xfer_live_readonly_partial): Same.
7260         (remote_read_bytes): Same.
7261         (remote_flash_write): Update call to remote_write_bytes_aux.
7262         (remote_write_qxfer): Update call to remote_escape_output.
7263         (remote_search_memory): Same.
7264         (remote_hostio_pwrite): Same.
7265
7266 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
7267
7268         * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7269         locations as inserted.
7270         Update and expand comment about permanent locations.
7271         (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7272         Move comment to add_location_to_breakpoint.
7273         (update_global_location_list): Don't error out if a permanent
7274         breakpoint is not marked inserted.
7275         Don't error out if a non-permanent breakpoint location is inserted on
7276         top of a permanent breakpoint.
7277
7278 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
7279
7280         * breakpoint.c (make_breakpoint_permanent): Remove unused
7281         function.
7282         * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7283
7284 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7285
7286         PR gdb/16999
7287         * NEWS: Mention new GDBHISTSIZE behavior.
7288         * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7289         set history size to unlimited.  Ignore non-numeric GDBHISTSIZE.
7290
7291 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7292
7293         * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7294         * top.c (init_history): Read from GDBHISTSIZE instead of
7295         HISTSIZE.
7296         (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7297
7298 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
7299
7300         * top.c (gdb_safe_append_history): Do not call
7301         history_truncate_file if the history is not stifled.
7302
7303 2015-06-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7304
7305         * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7306         * syscalls/s390x-linux.xml: Likewise.
7307
7308 2015-06-16  Michael Eager  <eager@eagercon.com>
7309
7310         * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7311
7312 2015-06-16  Patrick Palka  <patrick@parcs.ath.cx>
7313
7314         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7315         target_terminal_ours_for_output() before calling
7316         tui_show_frame_info(), and restore the original terminal
7317         settings afterwards.
7318
7319 2015-06-16  Martin Simmons  <martin@lispworks.com>  (tiny patch)
7320
7321         * arm-linux-nat.c: Include nat/linux-ptrace.h.
7322
7323 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
7324
7325         * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7326         memory unit size.
7327         (mi_cmd_data_write_memory_bytes): Same.
7328
7329 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
7330
7331         * corefile.c (write_memory): Update doc.
7332         * gdbcore.h (write_memory): Same.
7333
7334 2015-06-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
7335
7336         * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7337         (dump_mapping_p): Use it for parameter filterflags.
7338         (linux_find_memory_regions_full): Use it for variable filterflags.
7339
7340 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
7341             Jan Kratochvil  <jan.kratochvil@redhat.com>
7342
7343         Merge multiple hex conversions.
7344         * monitor.c: Include rsp-low.h.
7345         (fromhex): Remove definition.
7346
7347 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
7348             Jan Kratochvil  <jan.kratochvil@redhat.com>
7349
7350         Move utility functions to common/.
7351         * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7352         Move defs to common/common-utils.c.
7353         * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7354         (skip_to_space_const): Move decls to common/common-utils.h.
7355         * common/common-defs.h: Move include of common-types.h before
7356         common-utils.h.
7357         * common/common-utils.c: Include host-defs.h and ctype.h.
7358         (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7359         from utils.c.
7360         (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7361         cli/cli-utils.c.
7362         * common/common-utils.h (strtoulst): Move decl from utils.h.
7363         (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7364         Move from cli/cli-utils.h.
7365         * common/host-defs.h: Include limits.h.
7366         (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7367         (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7368         * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7369         common/common-utils.h.
7370         * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7371         (strtoulst): Move to common/common-utils.c.
7372         * utils.h (strtoulst): Moved decl to common/common-utils.h.
7373
7374 2015-06-15  Yao Qi  <yao.qi@linaro.org>
7375
7376         * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7377
7378 2015-06-10  Jon Turney  <jon.turney@dronecode.org.uk>
7379
7380         * build-id.c: Don't include elf-bfd.h.
7381         (build_id_bfd_get): Use bfd_build_id.
7382         (build_id_verify): Ditto.
7383         * build-id.h: Ditto.
7384         (find_separate_debug_file_by_buildid): Ditto.
7385         * python/py-objfile.c: Don't include elf-bfd.h.
7386         (objfpy_get_build_id) Use bfd_build_id.
7387         (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7388         * coffread.c: Include build-id.h.
7389         (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7390
7391 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7392
7393         * windows-nat.c (do_windows_fetch_inferior_registers)
7394         (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7395         conditional with __CYGWIN__.
7396
7397 2015-06-13  Andrew Burgess  <andrew.burgess@embecosm.com>
7398
7399         * completer.c: Add arch-utils.h include.
7400         (enum reg_completer_targets): New enum.
7401         (reg_or_group_completer_1): New function containing old
7402         reg_or_group_completer, add and use new parameter to control what
7403         is completed on.  Use get_current_arch rather than architecture of
7404         currently selected frame.
7405         (reg_or_group_completer): Call new reg_or_group_completer_1.
7406         (reggroup_completer): Call new reg_or_group_completer_1.
7407         * completer.h (reggroup_completer): Add declaration.
7408         * tui/tui-regs.c: Add 'completer.h' include.
7409         (tui_reg_next_command): Renamed to...
7410         (tui_reg_next): ...this.  Adjust parameters and return rather than
7411         display new group.
7412         (tui_reg_prev_command): Renamed to...
7413         (tui_reg_prev): ...this.  Adjust parameters and return rather than
7414         display new group.
7415         (tui_reg_float_command): Delete.
7416         (tui_reg_general_command): Delete.
7417         (tui_reg_system_command): Delete.
7418         (tui_reg_command): Rewrite to perform switching of register group.
7419         Add header comment.
7420         (tuireglist): Remove.
7421         (tui_reggroup_completer): New function.
7422         (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7423         creation of 'tui reg' command.
7424         * NEWS: Add comment about 'tui reg' changes.
7425
7426 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7427
7428         * target.c (target_read): Consider addressable unit size when
7429         reading from a memory object.
7430         (read_memory_robust): Same.
7431         (read_whatever_is_readable): Same.
7432         (target_write_with_progress): Consider addressable unit size
7433         when writing to a memory object.
7434         * target.h (target_read): Update documentation.
7435         (target_write): Add documentation.
7436
7437 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7438
7439         * arch-utils.h (default_addressable_memory_unit_size): New.
7440         * arch-utils.c (default_addressable_memory_unit_size): New.
7441         * gdbarch.sh (addressable_memory_unit_size): New.
7442         * gdbarch.h: Re-generate.
7443         * gdbarch.c: Re-generate.
7444
7445 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
7446
7447         * target.c (target_read): Rename variables and use
7448         TARGET_XFER_E_IO.
7449         (target_read_with_progress): Same.
7450         (read_memory_robust): Constify parameters and rename
7451         variables.
7452         (read_whatever_is_readable): Constify parameters,
7453         rename variables, adjust formatting.
7454         * target.h (read_memory_robust): Constify parameters.
7455
7456 2015-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
7457
7458         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7459         synthetic (non-AltiVec) vector types.
7460         (ppc64_sysv_abi_return_value): Likewise.
7461
7462 2015-06-12  Antoine Tremblay  <antoine.tremblay@ericsson.com>
7463
7464         PR breakpoints/16465
7465         * breakpoint.c (create_breakpoint): Save extra_string for
7466         pending breakpoints.
7467
7468 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7469
7470         * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7471         and bt_mask to CORE_ADDR.
7472
7473 2015-06-11  Gary Benson <gbenson@redhat.com>
7474
7475         * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7476         (mnsh_recv_message): Likewise.
7477
7478 2015-06-11  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7479
7480         * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7481         long long int and plongest instead of %ll.
7482
7483 2015-06-11  Gary Benson <gbenson@redhat.com>
7484
7485         * nat/linux-namespaces.c (gdb_wait.h): New include.
7486         (sys/wait.h): Do not include.
7487
7488 2015-06-10  Simon Marchi  <simon.marchi@ericsson.com>
7489
7490         * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7491         end_sequence is true.
7492
7493 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7494
7495         Code cleanup.
7496         * solib-target.c (library_list_start_list): Use explicit NULL
7497         comparison.
7498
7499 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7500
7501         * solib-target.c (library_list_start_list): Do not dereference
7502         variable version in its initialization.  Make the VERSION check handle
7503         NULL.
7504         (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7505
7506 2015-06-10  Gary Benson <gbenson@redhat.com>
7507
7508         * NEWS: Announce support for direct access of executable and
7509         shared library files when attaching to inferiors in containers
7510         on GNU/Linux systems.
7511
7512 2015-06-10  Gary Benson <gbenson@redhat.com>
7513
7514         * remote.c (struct remote_state) <fs_pid>: New field.
7515         (new_remote_state): Initialize the above.
7516         (PACKET_vFile_setfs): New enum value.
7517         (remote_hostio_set_filesystem): New function.
7518         (remote_hostio_open): Call the above.
7519         (remote_hostio_unlink): Likewise.
7520         (remote_hostio_readlink): Likewise.
7521         (_initialize_remote): Register new "set/show remote
7522         hostio-setfs-packet" command.
7523         * NEWS: Announce new vFile:setfs packet.
7524
7525 2015-06-10  Gary Benson <gbenson@redhat.com>
7526
7527         * linux-nat.c (nat/linux-namespaces.h): New include.
7528         (fileio.h): Likewise.
7529         (linux_nat_filesystem_is_local): New function.
7530         (linux_nat_fileio_pid_of): Likewise.
7531         (linux_nat_fileio_open): Likewise.
7532         (linux_nat_fileio_readlink): Likewise.
7533         (linux_nat_fileio_unlink): Likewise.
7534         (linux_nat_add_target): Initialize to_filesystem_is_local,
7535         to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7536         (_initialize_linux_nat): New "set/show debug linux-namespaces"
7537         commands.
7538         * NEWS: Mention new "set/show debug linux-namespaces" commands.
7539
7540 2015-06-10  Gary Benson <gbenson@redhat.com>
7541
7542         * target.h (struct inferior): New forward declaration.
7543         (struct target_ops) <to_filesystem_is_local>: Update comment.
7544         (struct target_ops) <to_fileio_open>: New argument inf.
7545         Update comment.  All implementations updated.
7546         (struct target_ops) <to_fileio_unlink>: Likewise.
7547         (struct target_ops) <to_fileio_readlink>: Likewise.
7548         (target_filesystem_is_local): Update comment.
7549         (target_fileio_open): New argument inf.  Update comment.
7550         (target_fileio_unlink): Likewise.
7551         (target_fileio_readlink): Likewise.
7552         (target_fileio_read_alloc): Likewise.
7553         (target_fileio_read_stralloc): Likewise.
7554         * target.c (target_fileio_open): New argument inf.
7555         Pass inf to implementation.  Update debug printing.
7556         (target_fileio_unlink): Likewise.
7557         (target_fileio_readlink): Likewise.
7558         (target_fileio_read_alloc_1): New argument inf. Pass inf
7559         to target_fileio_open.
7560         (target_fileio_read_alloc): New argument inf. Pass inf to
7561         target_fileio_read_alloc_1.
7562         (target_fileio_read_stralloc): Likewise.
7563         * gdb_bfd.c (inferior.h): New include.
7564         (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7565         argument with new argument "inferior".  Pass inferior to
7566         target_fileio_open.
7567         (gdb_bfd_open): Supply inferior argument to
7568         gdb_bfd_iovec_fileio_open.
7569         * linux-tdep.c (linux_info_proc): Supply inf argument to
7570         relevant target_fileio calls.
7571         (linux_find_memory_regions_full): Likewise.
7572         (linux_fill_prpsinfo): Likewise.
7573         * remote.c (remote_filesystem_is_local): Supply inf
7574         argument to remote_hostio_open.
7575         (remote_file_put): Likewise.
7576         (remote_file_get): Likewise.
7577         (remote_file_delete): Supply inf argument to
7578         remote_hostio_unlink.
7579
7580 2015-06-10  Gary Benson <gbenson@redhat.com>
7581
7582         * inf-child.c (inf_child_fileio_open): Replace comment.
7583         (inf_child_fileio_pwrite): Likewise.
7584         (inf_child_fileio_pread): Likewise.
7585         (inf_child_fileio_fstat): Insert blank line before comment.
7586         (inf_child_fileio_close): Replace comment.
7587         (inf_child_fileio_unlink): Likewise.
7588         (inf_child_fileio_readlink): Likewise.
7589         * remote.c (remote_hostio_open): Likewise.
7590         (remote_hostio_pread): Likewise.
7591         (remote_hostio_pwrite): Likewise.
7592         (remote_hostio_close): Likewise.
7593         (remote_hostio_unlink): Likewise.
7594         (remote_hostio_readlink): Likewise.
7595         (remote_hostio_fstat): Likewise.
7596         (remote_filesystem_is_local): Likewise.
7597         * target.c (target_fileio_open): Likewise.
7598         (target_fileio_pwrite): Likewise.
7599         (target_fileio_pread): Likewise.
7600         (target_fileio_fstat): Insert blank line before comment.
7601         (target_fileio_close): Replace comment.
7602         (target_fileio_unlink): Likewise.
7603         (target_fileio_readlink): Likewise.
7604         (target_fileio_read_alloc): Likewise.
7605         (target_fileio_read_stralloc): Likewise.
7606
7607 2015-06-10  Gary Benson <gbenson@redhat.com>
7608
7609         * linux-thread-db.c (nat/linux-namespaces.h): New include.
7610         (check_pid_namespace_match): Use linux_ns_same rather than
7611         linux_proc_pid_get_ns to spot PID namespace mismatches.
7612         * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7613         * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7614
7615 2015-06-10  Gary Benson <gbenson@redhat.com>
7616
7617         * configure.ac (AC_CHECK_FUNCS): Add setns.
7618         * config.in: Regenerate.
7619         * configure: Likewise.
7620         * nat/linux-namespaces.h: New file.
7621         * nat/linux-namespaces.c: Likewise.
7622         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7623         (linux-namespaces.o): New rule.
7624         * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7625         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7626         * config/arm/linux.mh (NATDEPFILES): Likewise.
7627         * config/i386/linux.mh (NATDEPFILES): Likewise.
7628         * config/i386/linux64.mh (NATDEPFILES): Likewise.
7629         * config/ia64/linux.mh (NATDEPFILES): Likewise.
7630         * config/m32r/linux.mh (NATDEPFILES): Likewise.
7631         * config/m68k/linux.mh (NATDEPFILES): Likewise.
7632         * config/mips/linux.mh (NATDEPFILES): Likewise.
7633         * config/pa/linux.mh (NATDEPFILES): Likewise.
7634         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7635         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7636         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7637         * config/s390/linux.mh (NATDEPFILES): Likewise.
7638         * config/sparc/linux.mh (NATDEPFILES): Likewise.
7639         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7640         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7641         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7642
7643 2015-06-10  Gary Benson <gbenson@redhat.com>
7644
7645         * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7646         * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7647         (make_cleanup_close): Likewise.
7648         * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7649         * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7650         (make_cleanup_close): Likewise.
7651
7652 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7653
7654         * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7655         from SuspendThread().
7656
7657 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
7658
7659         * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7660         from OutputDebugString.
7661
7662 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
7663                         Mircea Gherzan  <mircea.gherzan@intel.com>
7664
7665         * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7666         MPX_BT_MASK_32): New macros.
7667         (i386_mpx_set_bounds): New function that implements
7668         the command "set-mpx-bound".
7669         (i386_mpx_enabled): Helper function to test MPX availability.
7670         (i386_mpx_bd_base): Helper function to calculate the base directory
7671         address.
7672         (i386_mpx_get_bt_entry): Helper function to access a bound
7673         table entry.
7674         (i386_mpx_print_bounds): Effectively display bound information.
7675         (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7676         "show mpx".
7677         (_initialize_i386_tdep):
7678         Add "bound" to the commands "show mpx" and "set mpx" commands.
7679         (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7680         and "show mpx" commands.
7681         * NEWS: List new commands for MPX support.
7682
7683 2015-06-09  Gary Benson <gbenson@redhat.com>
7684
7685         * common/fileio.h (fileio_to_host_mode): New declaration.
7686         * common/fileio.c (fileio_to_host_mode): New Function.
7687         * inf-child.c (inf_child_fileio_open): Process mode argument
7688         with fileio_to_host_mode.
7689
7690 2015-06-09  Gary Benson <gbenson@redhat.com>
7691
7692         * common/fileio.c (fileio_mode_pack): Fix preprocessor
7693         conditional.
7694
7695 2015-06-05  Gary Benson <gbenson@redhat.com>
7696
7697         * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7698         * remote.c (remote_filesystem_is_local): ...here.
7699
7700 2015-06-04  Yao Qi  <yao.qi@linaro.org>
7701
7702         * gdbarch.c: Regenerate it.
7703
7704 2015-06-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7705
7706         * arch-utils.c (default_infcall_munmap): New.
7707         * arch-utils.h (default_infcall_munmap): New declaration.
7708         * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7709         (munmap_list_free, munmap_listp_free_cleanup): New.
7710         (struct setup_sections_data): Add field munmap_list_headp.
7711         (setup_sections): Call munmap_list_add.
7712         (compile_object_load): New variable munmap_list_head, initialize
7713         setup_sections_data.munmap_list_headp, return munmap_list_head.
7714         * compile/compile-object-load.h (struct munmap_list): New declaration.
7715         (struct compile_module): Add field munmap_list_head.
7716         (munmap_list_free): New declaration.
7717         * compile/compile-object-run.c (struct do_module_cleanup): Add field
7718         munmap_list_head.
7719         (do_module_cleanup): Call munmap_list_free.
7720         (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7721         * gdbarch.c: Regenerate.
7722         * gdbarch.h: Regenerate.
7723         * gdbarch.sh (infcall_munmap): New.
7724         * linux-tdep.c (linux_infcall_munmap): New.
7725         (linux_init_abi): Install it.
7726
7727 2015-06-02  Simon Marchi  <simon.marchi@ericsson.com>
7728
7729         PR gdb/15564
7730         * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7731
7732 2015-06-02  Yao Qi  <yao.qi@linaro.org>
7733
7734         * i386-linux-nat.c: Include linux-nat.h.
7735
7736 2015-06-01  Andreas Schwab  <schwab@linux-m68k.org>
7737             Jan Kratochvil  <jan.kratochvil@redhat.com>
7738
7739         PR symtab/18392
7740         * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7741         assertion.
7742         * dwarf2loc.c (chain_candidate): Likewise.
7743
7744 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7745
7746         * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7747         (store_vfp_regs): Use PTRACE_SETREGSET.
7748
7749 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7750
7751         * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7752         (fetch_fpregs): Likewise.
7753         * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7754         (store_fpregs): Likewise.
7755
7756 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7757
7758         * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7759         (fetch_regs): Likewise.
7760         (store_regs): Use PTRACE_SETREGSET.
7761         (store_register): Likewise.
7762
7763 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7764
7765         * arm-linux-nat.c (arm_linux_read_description): Check whether
7766         kernel supports PTRACE_GETREGSET.
7767
7768 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7769
7770         * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7771         * linux-nat.c: ... here.
7772         * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7773         to ...
7774         * linux-nat.h: ... here.
7775
7776 2015-06-01  Yao Qi  <yao.qi@linaro.org>
7777
7778         * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7779         * i386-linux-nat.c: Likewise.
7780         * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7781         * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7782         (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7783         * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7784         * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7785
7786 2015-05-30  Eli Zaretskii  <eliz@gnu.org>
7787
7788         * go32-nat.c (go32_xfer_memory): Fix the return value to be
7789         compatible to what read_child and write_child return.  This
7790         unbreaks that DJGPP build of GDB which was broken since v7.7.
7791
7792 2015-05-29  Martin Galvan  <martin.galvan@tallertechnologies.com>
7793
7794         * MAINTAINERS (Write After Approval): Add Martin Galvan.
7795
7796 2015-05-29  Roland McGrath  <mcgrathr@google.com>
7797
7798         PR gdb/18464
7799         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7800         rather than internal_error for an unrecognized value.
7801
7802 2015-05-29  Max Filippov  <jcmvbkbc@gmail.com>
7803
7804         * xtensa-tdep.c (xtensa_pseudo_register_read)
7805         (xtensa_pseudo_register_write): Don't alias last pseudo register
7806         to a1.
7807
7808 2015-05-28  Don Breazeal  <donb@codesourcery.com>
7809
7810         * infrun.c (follow_fork_inferior): Ensure the use of
7811         process-style ptids (pid,0,0) in verbose/debug "Detaching"
7812         messages.
7813
7814 2015-05-28  Doug Evans  <dje@google.com>
7815
7816         * dwarf2read.c (record_line_ftype): Remove, duplicate.
7817
7818 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7819
7820         * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7821         (arm_linux_fetch_inferior_registers): Use
7822         tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7823         (arm_linux_store_inferior_registers): Likewise.
7824         (arm_linux_read_description): Don't set
7825         arm_linux_has_wmmx_registers.
7826         * arm-tdep.c (arm_gdbarch_init): Set
7827         tdep->have_wmmx_registers according target descriptions.
7828         * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7829         field.
7830
7831 2015-05-28  Yao Qi  <yao.qi@linaro.org>
7832
7833         * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7834         (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7835         instead of arm_linux_vfp_register_count.
7836         (store_vfp_regs): Likewise.
7837         (arm_linux_fetch_inferior_registers): Likewise.
7838         (arm_linux_store_inferior_registers): Likewise.
7839         (arm_linux_read_description): Don't set
7840         arm_linux_vfp_register_count.
7841         * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7842         Adjust.
7843         * arm-tdep.c (arm_gdbarch_init): Add assert on
7844         vfp_register_count.
7845         * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7846         field to vfp_register_count.  All users updated.
7847
7848 2015-05-28  Kyle Huey  <me@kylehuey.com>  (tiny patch)
7849
7850         * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7851         ELFOSABI_GNU binaries.
7852
7853 2015-05-27  Doug Evans  <dje@google.com>
7854
7855         * dwarf2read.c (lnp_state_machine): New typedef.
7856         (lnp_reader_state): New typedef.
7857         (dwarf_record_line_1): Renamed from dwarf_record_line.
7858         All callers updated.
7859         (dwarf_record_line): New function.
7860         (init_lnp_state_machine): New function.
7861         (check_line_address): Replace p_record_line parameter with state.
7862         All callers updated.
7863         (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7864         Update to record state in lnp_state_machine.
7865
7866 2015-05-27  Doug Evans  <dje@google.com>
7867
7868         * dwarf2read.c (record_line_ftype): New typedef.
7869         (check_line_address): New function.
7870         (dwarf_decode_lines_1): Call it.
7871
7872 2015-05-27  Doug Evans  <dje@google.com>
7873
7874         * NEWS: Mention "set debug dwarf-line".
7875         * dwarf2read.c (dwarf_line_debug): New static global.
7876         (add_include_dir): Add debug dwarf-line support.
7877         (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7878         (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7879
7880 2015-05-27  Doug Evans  <dje@google.com>
7881
7882         * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7883         All callers updated.
7884         (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7885         * cp-support.h (cp_lookup_nested_symbol): Update.
7886
7887 2015-05-27  Doug Evans  <dje@google.com>
7888
7889         PR symtab/18258
7890         * block.c (block_find_symbol): New function.
7891         (block_find_non_opaque_type): Ditto.
7892         (block_find_non_opaque_type_preferred): Ditto.
7893         * block.h (block_symbol_matcher_ftype): New typedef.
7894         (block_find_symbol): Declare.
7895         (block_find_non_opaque_type): Ditto.
7896         (block_find_non_opaque_type_preferred): Ditto.
7897         * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7898         * psymtab.c (psym_lookup_symbol): Ditto.
7899         * symtab.c (basic_lookup_transparent_type_1): New function.
7900         (basic_lookup_transparent_type): Call it.
7901
7902 2015-05-27  Yao Qi  <yao.qi@linaro.org>
7903
7904         * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7905         AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7906
7907 2015-05-27  Yao Qi  <yao.qi@linaro.org>
7908
7909         * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7910         before operator &&.
7911         (aarch64_record_load_store): Likewise.
7912
7913 2015-05-26  Doug Evans  <dje@google.com>
7914
7915         PR c++/18141, c++/18417.
7916         * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7917         a typedef.
7918
7919 2015-05-26  Doug Evans  <dje@google.com>
7920
7921         * NEWS: Add entries for command renamings.
7922         * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7923         All uses updated.
7924         (dwarf_die_debug): Renamed from dwarf2_die_debug.  All uses updated.
7925         (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7926         All uses updated.
7927         (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7928         All callers updated.  Fix spelling of DWARF in help text.
7929         (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7930         All uses updated.
7931         (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7932         All uses updated.
7933         (set_dwarf_cmd): Renamed from set_dwarf2_cmd.  All callers updated.
7934         (show_dwarf_cmd): Renamed from show_dwarf2_cmd.  All callers updated.
7935         (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7936         All uses updated.
7937         (show_dwarf_always_disassemble): Renamed from
7938         show_dwarf2_always_disassemble.  All callers updated.
7939         (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7940         "set/show dwarf".  Rename "set/show dwarf2 max-cache-age" to
7941         "set/show dwarf max-cache-age".  Rename
7942         "set/show dwarf2 always-disassemble" to
7943         "set/show dwarf always-disassemble".  Rename
7944         "set/show debug dwarf2-read" to "set/show debug dwarf-read".  Rename
7945         "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7946
7947 2015-05-26  Doug Evans  <dje@google.com>
7948
7949         PR python/18438
7950         * python/py-lazy-string.c (stpy_convert_to_value): Use
7951         gdbpy_gdb_memory_error not PyExc_MemoryError.
7952         (gdbpy_create_lazy_string_object): Ditto.
7953
7954 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
7955
7956         * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7957
7958 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
7959
7960         * tui/tui-regs.c (tui_reg_prev_command): New function.
7961         (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7962         * reggroups.c (reggroup_prev): New function.
7963         * reggroups.h (reggroup_prev): Add declaration.  Update comment.
7964
7965 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
7966             Yao Qi  <yao.qi@linaro.org>
7967
7968         * aarch64-linux-tdep.c: Include linux-record.h and
7969         record-full.h.
7970         (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7971         (aarch64_syscall): New enum.
7972         (aarch64_canonicalize_syscall): New function.
7973         (aarch64_all_but_pc_registers_record): New function.
7974         (aarch64_linux_syscall_record): New function.
7975         (aarch64_linux_init_abi): Install AArch64 process record
7976         handler.  Update to handle syscall recording.
7977         * aarch64-tdep.c: Include record.h and record-full.h.
7978         (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7979         (struct aarch64_mem_r): Define.
7980         (aarch64_record_result): New enum.
7981         (struct insn_decode_record): Define.
7982         (insn_decode_record): New typedef.
7983         (aarch64_record_data_proc_reg): New function.
7984         (aarch64_record_data_proc_imm): New function.
7985         (aarch64_record_branch_except_sys): New function.
7986         (aarch64_record_load_store): New function.
7987         (aarch64_record_data_proc_simd_fp): New function.
7988         (aarch64_record_asimd_load_store): New function.
7989         (aarch64_record_decode_insn_handler): New function.
7990         (deallocate_reg_mem): New function.
7991         (aarch64_process_record): New function.
7992         * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7993         New field.
7994         (aarch64_process_record): New extern declaration.
7995         * configure.tgt: Add linux-record.o to gdb_target_obs.
7996         * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7997
7998 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
7999
8000         * NEWS: Add a note on process record-replay support on aarch64*-linux*
8001         targets.
8002
8003 2015-05-26  Martin Galvan  <martin.galvan@tallertechnologies.com>
8004
8005         * amd64-tdep.c: Replace in_function_epilogue_p with
8006         stack_frame_destroyed_p throughout.
8007         * arch-utils.c: Ditto.
8008         * arch-utils.h: Ditto.
8009         * arm-tdep.c: Ditto.
8010         * breakpoint.c: Ditto.
8011         * gdbarch.sh: Ditto.
8012         * hppa-tdep.c: Ditto.
8013         * i386-tdep.c: Ditto.
8014         * mips-tdep.c: Ditto.
8015         * nios2-tdep.c: Ditto.
8016         * rs6000-tdep.c: Ditto.
8017         * s390-linux-tdep.c: Ditto.
8018         * score-tdep.c: Ditto.
8019         * sh-tdep.c: Ditto.
8020         * sparc-tdep.c: Ditto.
8021         * sparc-tdep.h: Ditto.
8022         * sparc64-tdep.c: Ditto.
8023         * spu-tdep.c: Ditto.
8024         * tic6x-tdep.c: Ditto.
8025         * tilegx-tdep.c: Ditto.
8026         * xstormy16-tdep.c: Ditto.
8027         * gdbarch.c, gdbarch.h: Re-generated.
8028
8029 2015-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
8030
8031         * NEWS: Mention 'tui enable' and 'tui disable'.
8032         * tui/tui.c (tui_enable_command): New function.
8033         (tui_disable_command): New function.
8034         (_initialize_tui): New function.
8035
8036 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8037
8038         * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
8039
8040 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8041
8042         * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
8043         buf_ptr is freed.
8044
8045 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8046
8047         * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
8048         into ...
8049         (tui_set_layout_for_display_command): ...here, before calling
8050         tui_set_layout.  Only set the layout if gdb has not already
8051         entered the TUI_FAILURE state.
8052
8053 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8054
8055         * tui/tui-layout.c (layout_completer): New function.
8056         (_initialize_tui_layout): Set completer on layout command.
8057
8058 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8059
8060         * tui/tui-layout.c (tui_set_layout): Remove
8061         tui_register_display_type parameter.  Remove all checking of this
8062         parameter, and reindent function.  Update header comment.
8063         (tui_set_layout_for_display_command): Rename to...
8064         (tui_set_layout_by_name): ...this, and don't check for different
8065         register class types, don't pass a tui_register_display_type to
8066         tui_set_layout.  Update header comment.
8067         (layout_names): Remove register set specific names.
8068         * tui/tui-layout.h (tui_set_layout): Remove
8069         tui_register_display_type parameter.
8070         * tui/tui.c (tui_rl_change_windows): Don't pass a
8071         tui_register_display_type to tui_set_layout.
8072         (tui_rl_delete_other_windows): Likewise.
8073         (tui_enable): Likewise.
8074         * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
8075         (TUI_FLOAT_REGS_NAME_LOWER): Remove.
8076         (TUI_GENERAL_REGS_NAME): Remove.
8077         (TUI_GENERAL_REGS_NAME_LOWER): Remove.
8078         (TUI_SPECIAL_REGS_NAME): Remove.
8079         (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
8080         (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
8081         (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
8082         (enum tui_register_display_type): Remove.
8083         (struct tui_layout_def): Remove regs_display_type and
8084         float_regs_display_type fields.
8085         (struct tui_data_info): Remove regs_display_type field.
8086         (tui_layout_command): Use new name for
8087         tui_set_layout_for_display_command.
8088         * tui/tui-data.c (layout_def): Don't initialise removed fields.
8089         (tui_clear_win_detail): Don't initialise removed fields of
8090         win_info.
8091         * tui/tui-regs.c (tui_show_registers): Use new name for
8092         tui_set_layout_for_display_command.
8093         * tui/tui.h (tui_set_layout_for_display_command): Rename
8094         declaration to...
8095         (tui_set_layout_by_name): ...this.
8096         * printcmd.c (display_command): Remove tui related layout call,
8097         and reindent.
8098
8099 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
8100
8101         * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
8102         (handle_inferior_event): New function.
8103
8104 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
8105
8106         * ada-lang.c (to_fixed_array_type): Rename local variable
8107         typename into type_name.
8108
8109 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8110
8111         Fix ASAN crash for gdb.compile/compile.exp.
8112         * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
8113
8114 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8115
8116         * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
8117         (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
8118         * compile/compile-object-load.c (setup_sections, compile_object_load):
8119         Likewise.
8120         * compile/compile.c (compile_to_object): Likewise.
8121
8122 2015-05-16  Doug Evans  <xdje42@gmail.com>
8123
8124         * NEWS: Mention support for unbuffered Guile memory ports.
8125         * scm-ports.c (ioscm_memory_port): Update comments on end, size.
8126         (ioscm_lseek_address): Improve overflow calculation.
8127         (gdbscm_memory_port_fill_input): Add assert.
8128         (gdbscm_memory_port_write): Handle unbuffered ports.
8129         Handle large writes identical to Guile's fport_write.
8130         (gdbscm_memory_port_seek): Fix seeking past end check.
8131         (gdbscm_memory_port_close): Handle closing unbuffered port.
8132         (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
8133         (ioscm_init_memory_port): Handle unbuffered ports.
8134         (ioscm_reinit_memory_port): Ditto.
8135         (ioscm_init_memory_port): Update size calculation.
8136         (gdbscm_open_memory): Support zero sized ports.
8137
8138 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8139
8140         * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
8141         variable compiler warnings.
8142
8143 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8144
8145         * compile/compile-object-load.c (get_out_value_type): Fix returned type.
8146
8147 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8148             Phil Muldoon  <pmuldoon@redhat.com>
8149
8150         * NEWS (Changes since GDB 7.9): Add compile print.
8151         * compile/compile-c-support.c (add_code_header, add_code_footer)
8152         (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
8153         COMPILE_I_PRINT_VALUE_SCOPE.
8154         * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
8155         (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
8156         New.
8157         * compile/compile-object-load.c: Include block.h.
8158         (get_out_value_type): New function.
8159         (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8160         COMPILE_I_PRINT_VALUE_SCOPE.  Set compile_module's OUT_VALUE_ADDR and
8161         OUT_VALUE_TYPE.
8162         * compile/compile-object-load.h (struct compile_module): Add fields
8163         out_value_addr and out_value_type.
8164         * compile/compile-object-run.c: Include valprint.h and compile.h.
8165         (struct do_module_cleanup): Add fields out_value_addr and
8166         out_value_type.
8167         (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8168         COMPILE_I_PRINT_VALUE_SCOPE.
8169         (compile_object_run): Propagate out_value_addr and out_value_type.
8170         Pass OUT_VALUE_ADDR.
8171         * compile/compile.c: Include valprint.h.
8172         (compile_print_value, compile_print_command): New functions.
8173         (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
8174         (_initialize_compile): Update compile code help text.  Install
8175         compile_print_command.
8176         * compile/compile.h (compile_print_value): New prototype.
8177         * defs.h (enum compile_i_scope_types): Add
8178         COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
8179
8180 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8181
8182         * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
8183         Rely on its parameter count.
8184         (compile_object_load): Replace lookup_minimal_symbol_text by
8185         lookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the
8186         return value.
8187         * compile/compile-object-load.h (struct compile_module): Replace
8188         func_addr by func_sym.
8189         * compile/compile-object-run.c: Include block.h.
8190         (compile_object_run): Reset module variable after it is freed.  Use
8191         FUNC_SYM instead of FUNC_ADDR.  Rely on it.
8192
8193 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8194
8195         * compile/compile-c-support.c (print_one_macro): Use #ifndef.
8196         (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
8197         (c_compute_program): Call generate_register_struct after typedefs.
8198         * compile/compile-loc2c.c (push, pushf_register_address)
8199         (pushf_register): Cast to GCC_UINTPTR.
8200         (do_compile_dwarf_expr_to_c): Use unused attribute.  Add space after
8201         type.  Use GCC_UINTPTR instead of void *.  Remove excessive cast.
8202         (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
8203         * compile/compile.c (_initialize_compile): Enable warnings for
8204         COMPILE_ARGS.
8205
8206 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8207
8208         * cli/cli-script.c (execute_control_command): Update
8209         eval_compile_command caller.
8210         * compile/compile-object-load.c (compile_object_load): Add parameters
8211         scope and scope_data.  Set them.
8212         * compile/compile-object-load.h (struct compile_module): Add fields
8213         scope and scope_data.
8214         (compile_object_load): Add parameters scope and scope_data.
8215         * compile/compile-object-run.c (struct do_module_cleanup): Add fields
8216         scope and scope_data.
8217         (compile_object_run): Propagate the fields scope and scope_data.
8218         * compile/compile.c (compile_file_command, compile_code_command):
8219         Update eval_compile_command callers.
8220         (eval_compile_command): Add parameter scope_data.  Pass it plus scope.
8221         * compile/compile.h (eval_compile_command): Add parameter scope_data.
8222         * defs.h (struct command_line): Add field scope_data.
8223
8224 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8225
8226         * printcmd.c (struct format_data): Move it to valprint.h.
8227         (print_command_parse_format, print_value): New functions from ...
8228         (print_command_1): ... here.  Call them.
8229         * valprint.h (struct format_data): Move it here from printcmd.c.
8230         (print_command_parse_format, print_value): New declarations.
8231
8232 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8233
8234         * compile/compile-object-load.c (compile_object_load): Add
8235         COMPILE_DEBUG message.
8236
8237 2015-05-15  Jerome Guitton  <guitton@adacore.com>
8238
8239         * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8240         index to get element instead of enum value.
8241         (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8242         of index to compute length, but enum values to compute bounds.
8243         (ada_array_length): Use enum position of index instead of enum value.
8244         (pos_atr): Move position computation to...
8245         (ada_evaluate_subexp): Use enum values to compute bounds.
8246         * gdbtypes.c (discrete_position): ...this new function.
8247         * gdbtypes.h (discrete_position): New function declaration.
8248         * valprint.c (val_print_array_elements): Call discrete_position
8249         to handle array indexed by non-contiguous enumeration types.
8250
8251 2015-05-15  Jerome Guitton  <guitton@adacore.com>
8252
8253         * ada-lang.c (find_parallel_type_by_descriptive_type):
8254         Go through typedefs during lookup.
8255         (to_fixed_array_type): Add support for non-bit packed arrays
8256         as variable-length fields.
8257
8258 2015-05-15  Pedro Alves  <palves@redhat.com>
8259             Simon Marchi  <simon.marchi@ericsson.com>
8260
8261         * event-loop.c (gdb_notifier) <next_file_handler,
8262         next_poll_fds_index>: New fields.
8263         (get_next_file_handler_to_handle_and_advance): New function.
8264         (delete_file_handler): If deleting the next file handler to
8265         handle, advance to the next file handler.
8266         (gdb_wait_for_event): Bail early if no event fired.  Poll file
8267         handlers in round-robin fashion.
8268
8269 2015-05-15  Pedro Alves  <palves@redhat.com>
8270
8271         * linux-tdep.c (linux_find_memory_regions_full): Rename local
8272         'private' to 'priv'.
8273
8274 2015-05-15  Pedro Alves  <palves@redhat.com>
8275
8276         * nat/linux-nat.h: Include "target/waitstatus.h".
8277
8278 2015-05-15  Yuanhui Zhang  <asmwarrior@gmail.com>
8279
8280         * python/py-unwind.c (struct reg_info): Move out of ...
8281         (struct cached_frame_info): ... this scope.
8282         (pending_frame_object_type, unwind_info_object_type): Make extern.
8283
8284 2015-05-15  Joel Brobecker  <brobecker@adacore.com>
8285
8286         * ada-lang.c (ada_value_primitive_packed_val): Make sure
8287         accumSize is never negative.
8288
8289 2015-05-14  Patrick Palka  <patrick@parcs.ath.cx>
8290
8291         * tui/tui-command.c: Remove include of <ctype.h>.
8292         (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8293
8294 2015-05-13  Martin Galvan  <martin.galvan@tallertechnologies.com>
8295
8296         * dwarf2read.c (die_needs_namespace): Return 1 for
8297         DW_TAG_inlined_subroutine.
8298
8299 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8300
8301         * regcache.c (regcache_cpy_no_passthrough): New declaration.
8302         (regcache_cpy_no_passthrough): Make it static, add function comment.
8303         * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8304         (regcache_cpy_no_passthrough): Remove declaration.
8305
8306 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8307
8308         * gdbthread.h (struct thread_control_state): Update comment for
8309         proceed_to_finish.
8310         * infcall.c (run_inferior_call): Update comment about
8311         proceed_to_finish.
8312         * infcmd.c (get_return_value): Update comment about stop_registers.
8313         (finish_forward): Update comment about proceed_to_finish.
8314         * infrun.c (stop_registers): Remove.
8315         (clear_proceed_status, normal_stop): Remove stop_registers handling.
8316         * infrun.h (stop_registers): Remove.
8317
8318 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8319
8320         * infcall.c (struct dummy_frame_context_saver)
8321         (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8322         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8323         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8324         New.
8325         (call_function_by_hand_dummy): Move discard_cleanups of
8326         inf_status_cleanup before dummy_frame_push.  Call
8327         dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8328         Use dummy_frame_context_saver_get_regs instead of stop_registers.
8329         * infcall.h (struct dummy_frame_context_saver)
8330         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8331         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8332         New declarations.
8333         * infcmd.c: Include infcall.h.
8334         (get_return_value): Add parameter ctx_saver, use it instead of
8335         stop_registers.
8336         (print_return_value): Add parameter ctx_saver, pass it.
8337         (struct finish_command_continuation_args): Add field ctx_saver.
8338         (finish_command_continuation): Update print_return_value caller.
8339         (finish_command_continuation_free_arg): Free also ctx_saver.
8340         (finish_forward): Call dummy_frame_context_saver_setup.
8341         * inferior.h (struct dummy_frame_context_saver): New declaration.
8342         (get_return_value): Add parameter ctx_saver.
8343         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8344         get_return_value caller.
8345
8346 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8347
8348         * dummy-frame.c (struct dummy_frame_dtor_list): New.
8349         (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8350         (remove_dummy_frame): Process dtor_list.
8351         (pop_dummy_frame): Process dtor_list.
8352         (register_dummy_frame_dtor): Maintain dtor_list.
8353         (find_dummy_frame_dtor): Handle dtor_list.
8354         * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8355         Update comments.
8356
8357 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8358
8359         * compile/compile-object-run.c (do_module_cleanup): Add parameter
8360         registers_valid.
8361         (compile_object_run): Update do_module_cleanup caller.
8362         * dummy-frame.c: Include infcall.h.
8363         (struct dummy_frame): Update dtor comment.
8364         (remove_dummy_frame): Call dtor.
8365         (pop_dummy_frame): Update dtor caller.
8366         * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8367         registers_valid.
8368
8369 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
8370
8371         GDB 7.9.1 released.
8372
8373 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
8374
8375         * NEWS: Create "Changes in GDB 7.9.1" section.  Move news about
8376         Xmethods now being able to specify a result type to that new
8377         sectioin.
8378
8379 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
8380
8381         * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8382         first before resizing the window.
8383         * tui/tui.c (tui_enable): Likewise.
8384
8385 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8386
8387         * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8388         * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8389         * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8390         dummy_dtor parameter.
8391         * infcall.h: Include dummy-frame.h.
8392         (call_function_by_hand_dummy_dtor_ftype): Remove.
8393         (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8394         parameter.
8395
8396 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
8397
8398         PR gdb/17820
8399         * top.c (history_size_setshow_var): Change type to signed.
8400         Initialize to -2.  Update documentation.
8401         (set_readline_history_size): Define.
8402         (set_history_size_command): Use it.  Remove logic for handling
8403         out-of-range sizes.
8404         (init_history): Use set_readline_history_size().  Test for a
8405         value of -2 instead of 0 when determining whether to set a
8406         default history size.
8407         (init_main): Decode the argument of the "size" command as a
8408         zuinteger_unlimited.
8409
8410 2015-05-12  Doug Evans  <dje@google.com>
8411
8412         * dwarf2read.c (struct file_entry): Tweak comments.
8413         (get_debug_line_section): Tweak comments.
8414
8415 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8416
8417         * NEWS: Announce fork support in the RSP and support
8418         for fork debugging in extended mode.
8419
8420 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8421
8422         * remote.c (remote_insert_fork_catchpoint): New function.
8423         (remote_remove_fork_catchpoint): New function.
8424         (remote_insert_vfork_catchpoint): New function.
8425         (remote_remove_vfork_catchpoint): New function.
8426         (pending_fork_parent_callback): New function.
8427         (remove_new_fork_child): New function.
8428         (remote_update_thread_list): Call remote_notif_get_pending_events
8429         and remove_new_fork_child.
8430         (extended_remote_kill): Kill fork child when killing the
8431         parent before follow_fork completes.
8432         (init_extended_remote_ops): Initialize target vector with
8433         new fork catchpoint functions.
8434
8435 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8436
8437         * remote.c (remove_vfork_event_p): New function.
8438         (remote_follow_fork): Add vfork event type to event checking.
8439         (remote_parse_stop_reply): New stop reasons "vfork" and
8440         "vforkdone" for RSP 'T' Stop Reply Packet.
8441
8442 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8443
8444         * linux-nat.c (linux_nat_ptrace_options): New function.
8445         (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8446         Call linux_nat_ptrace_options and use different argument to
8447         linux_enable_event_reporting.
8448         (_initialize_linux_nat): Delete call to
8449         linux_ptrace_set_additional_flags.
8450         * nat/linux-ptrace.c (current_ptrace_options): Rename to
8451         supported_ptrace_options.
8452         (additional_flags): Delete variable.
8453         (linux_check_ptrace_features): Use supported_ptrace_options.
8454         (linux_test_for_tracesysgood, linux_test_for_tracefork):
8455         Likewise, and remove additional_flags check.
8456         (linux_enable_event_reporting): Change 'attached' argument to
8457         'options'.  Use supported_ptrace_options.
8458         (ptrace_supports_feature): Change comment.  Use
8459         supported_ptrace_options.
8460         (linux_ptrace_set_additional_flags): Delete function.
8461         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8462         Delete function prototype.
8463         * remote.c (remote_fork_event_p): New function.
8464         (remote_detach_pid): New function.
8465         (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8466         if doing detach-on-fork.
8467         (remote_follow_fork): New function.
8468         (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8469         (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8470         (init_extended_remote_ops): Initialize to_follow_fork.
8471
8472 2015-05-12  Don Breazeal  <donb@codesourcery.com>
8473
8474         * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8475         from static to extern.
8476         * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8477         * remote.c (anonymous enum): <PACKET_fork_event_feature,
8478         * PACKET_vfork_event_feature>: New enumeration constants.
8479         (remote_protocol_features): Add table entries for new packets.
8480         (remote_query_supported): Add new feature queries to qSupported
8481         packet.
8482
8483 2015-05-12  Gary Benson <gbenson@redhat.com>
8484
8485         * remote.c (remote_add_inferior): Call exec_file_locate_attach
8486         for fake PIDs as well as real ones.
8487         (remote_pid_to_exec_file): Send empty annex if PID is fake.
8488
8489 2015-05-09  Siva Chandra Reddy  <sivachandra@google.com>
8490
8491         * NEWS (Python Scripting): Mention the new gdb.Value methods.
8492         * python/py-value.c (valpy_reference_value): New function.
8493         (valpy_const_value): Likewise.
8494         (value_object_methods): Add new methods.
8495         * value.c (make_cv_value): New function.
8496         * value.h (make_cv_value): Declare.
8497
8498 2015-05-08  Yao Qi  <yao@codesourcery.com>
8499             Sandra Loosemore  <sandra@codesourcery.com>
8500
8501         * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8502         to 'lh->include_dirs' before accessing to it.
8503         (psymtab_include_file_name): Likewise.
8504         (dwarf_decode_lines_1): Likewise.
8505         (dwarf_decode_lines): Likewise.
8506         (file_file_name): Likewise.
8507
8508 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8509
8510         * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8511         (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8512         (nios2_linux_rt_sigreturn_init): Adjust base address of
8513         register save area.
8514
8515 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
8516
8517         * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8518         "trap 31" as the breakpoint instruction on all targets.
8519
8520 2015-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8521
8522         * infcmd.c (print_return_value): Remove unused declaration.
8523
8524 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8525
8526         * dwarf2read.c (attr_to_dynamic_prop)
8527         <DW_AT_data_member_location>: Use read_type_die isntead of
8528         get_die_type.
8529
8530 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8531
8532         * ada-lang.c (ada_convert_actual): Add handling of formals
8533         passed inside an aligner type.
8534
8535 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
8536
8537         * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8538
8539 2015-05-08  Siva Chandra Reddy  <sivachandra@google.com>
8540
8541         PR python/18291
8542         * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8543         Print xmethod matcher status.
8544
8545 2015-05-08  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8546
8547         * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8548         register in the regcache when treating the PSWM register, and vice
8549         versa.
8550
8551 2015-05-07  Gary Benson <gbenson@redhat.com>
8552
8553         * linux-thread-db.c (struct thread_db_info)
8554         <td_ta_map_id2thr_p>: Remove field.
8555         (try_thread_db_load_1): Remove initialization for the above.
8556
8557 2015-05-07  Gary Benson <gbenson@redhat.com>
8558
8559         * linux-thread-db.c (struct thread_db_info)
8560         <td_thr_validate_p>: Remove field.
8561         (try_thread_db_load_1): Remove initialization for the above.
8562
8563 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8564
8565         * compile/compile-object-load.c (compile_object_load): Support
8566         mst_text_gnu_ifunc.
8567
8568 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
8569
8570         * compile/compile.c (compile_to_object): Make the cmd_string parameter
8571         const.  Use new variables for the const compatibility.
8572         (eval_compile_command): Make the cmd_string parameter const.
8573         * compile/compile.h (eval_compile_command): Make the cmd_string
8574         parameter const.
8575
8576 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8577
8578         * defs.h (deprecated_init_ui_hook): Delete.  Remove associated
8579         comment.
8580         * top.c (deprecated_init_ui_hook): Delete.
8581         (gdb_init): Remove handling of deprecated_init_ui_hook.
8582         * interps.c (clear_interpreter_hooks): Remove handling of
8583         deprecated_init_ui_hook.
8584         * main.c (captured_main): Update comment.
8585
8586 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
8587
8588         * solib.c (_initialize_solib): Add "info dll" alias creation.
8589         * windows-nat.c (set_windows_aliases): Delete.
8590         (_initialize_windows_nat): Remove deprecated_init_ui_hook
8591         assignment.
8592         * NEWS: Add news entry about "info dll" now being available
8593         on all platforms.
8594
8595 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8596
8597         * ada-lang.c (value_assign_to_component): Reformat and improve
8598         documentation. Remove all trailing spaces.
8599
8600 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8601
8602         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8603         Stop counting inlined frames as soon as an out-of-line function
8604         is found.
8605
8606 2014-05-05  Pierre-Marie de Rodat  <derodat@adacore.com>
8607
8608         * dwarf2read.c (inherit_abstract_dies): Skip
8609         DW_TAG_GNU_call_site dies while inheriting children of an
8610         abstract DIE into a scope.
8611         (read_lexical_block_scope): Inherit abstract DIE's for
8612         lexical scopes.
8613
8614 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8615
8616         * ada-valprint.c (val_print_packed_array_elements): Delete
8617         variable "len".  Add a type-length check when comparing two
8618         consecutive elements of the array.  Use the element's actual
8619         length in call to value_contents_eq.
8620         * ada-lang.c (ada_value_primitive_packed_val): Always return
8621         a value whose type has been resolved.
8622
8623 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8624
8625         * ada-lang.c (ada_value_primitive_packed_val): Recompute
8626         BIT_SIZE and LEN if the size of the resolved type is smaller
8627         than BIT_SIZE * HOST_CHAR_BIT.
8628
8629 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8630
8631         * ada-lang.c (ada_value_primitive_packed_val): Use a more
8632         correct address in call to value_at.  Adjust call to
8633         value_address accordingly.
8634
8635 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8636
8637         * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8638         to print it.
8639
8640 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8641
8642         * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8643         * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8644         pinfo->valaddr.
8645         * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8646         * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8647         (resolve_dynamic_type_internal): Set pinfo.valaddr.
8648         Add handling of addr_stack->valaddr.
8649         (resolve_dynamic_type): Add "valaddr" parameter.
8650         Set pinfo.valaddr field.
8651         * ada-lang.c (ada_discrete_type_high_bound): Update call to
8652         resolve_dynamic_type.
8653         (ada_discrete_type_low_bound): Likewise.
8654         * findvar.c (default_read_var_value): Likewise.
8655         * value.c (value_from_contents_and_address): Likewise.
8656
8657 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
8658
8659         * gdbtypes.c (resolve_dynamic_array): Use
8660         create_array_type_with_stride instead of create_array_type.
8661
8662 2015-04-30  DJ Delorie  <dj@redhat.com>
8663
8664         * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8665         rl78_decode_opcode
8666
8667 2015-04-29  Doug Evans  <dje@google.com>
8668
8669         PR python/18285
8670         * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8671         * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8672         EVAL_AVOID_SIDE_EFFECTS for xmethods.
8673         * extension-priv.h (struct extension_language_ops)
8674         <get_xmethod_result_type>: New member.
8675         * extension.c (get_xmethod_result_type): New function.
8676         * extension.h (get_xmethod_result_type): Declare.
8677         * python/py-xmethods.c (get_result_type_method_name): New static
8678         global.
8679         (py_get_result_type_method_name): Ditto.
8680         (gdbpy_get_xmethod_result_type): New function.
8681         (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8682         * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8683         * python/python.c (python_extension_ops): Add
8684         gdbpy_get_xmethod_result_type.
8685         * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8686         * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8687         xmethods.
8688         (value_x_unop): Ditto.
8689         * value.c (result_type_of_xmethod): New function.
8690         * value.h (result_type_of_xmethod): Declare.
8691
8692 2015-04-29  Gary Benson <gbenson@redhat.com>
8693
8694         * solib.c (solib_find_1): Allow fd argument to be NULL.
8695         (exec_file_find): Update comment.
8696         (solib_find): Likewise.
8697         * exec.c (exec_file_locate_attach): Use NULL as fd
8698         argument to exec_file_find to avoid having to close
8699         the opened file.
8700         * infrun.c (follow_exec): Likewise.
8701
8702 2015-04-28  Doug Evans  <dje@google.com>
8703
8704         PR python/18299
8705         * python/lib/gdb/printing.py (register_pretty_printer): Handle
8706         name or __name__ attributes.  Handle gdb module as first argument.
8707
8708 2015-04-28  Doug Evans  <dje@google.com>
8709
8710         PR python/18089
8711         * python/py-prettyprint.c (print_children): Verify result of children
8712         iterator.  Provide better error message.
8713         * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8714         * python/python.c (gdbpy_print_python_errors_p): New function.
8715
8716 2015-04-28  Doug Evans  <dje@google.com>
8717
8718         * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8719
8720 2015-04-28  Sasha Smundak  <asmundak@google.com>
8721
8722         * NEWS: Mention gdb.Type.optimized_out method.
8723         * python/py-type.c (typy_optimized_out):  New function.
8724
8725 2015-04-28  John Baldwin  <jhb@FreeBSD.org>
8726
8727         * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8728
8729 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8730
8731         * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8732         (initialize_utils): Move call of init_page_info() to ...
8733         * top.c (gdb_init): ... here.
8734
8735 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8736
8737         * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8738         (tui_sigwinch_handler): Still update our idea of
8739         the terminal's width and height even when TUI is not active.
8740
8741 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8742
8743         * utils.h (set_screen_width_and_height): Declare.
8744         * utils.c (set_screen_width_and_height): Define.
8745         * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8746
8747 2015-04-28  Gary Benson <gbenson@redhat.com>
8748
8749         * infrun.c (solist.h): New include.
8750         (follow_exec): Use exec_file_find to prefix execd_pathname
8751         with gdb_sysroot.
8752
8753 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8754
8755         * tui/tui-source.c (tui_set_source_content): Avoid calling
8756         strcpy() when offset is 0.
8757
8758 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8759
8760         PR gdb/18155
8761         * tui/tui-data.c (tui_free_window): Don't free the locator
8762         window when passed an SRC_WIN or a DISASSEM_WIN.
8763
8764 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
8765
8766         * tui/tui-data.h (struct tui_win_element): Forward-declare.
8767         (tui_win_content): Move declaration.
8768         (struct tui_gen_win_info): Give 'content' field the
8769         type tui_win_content.
8770         * tui/tui-data.c (init_content_element): Remove redundant and
8771         erroneous casts.
8772         (tui_add_content_elements): Remove erroneous cast.
8773         * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8774         casts.
8775         (tui_get_begin_asm_address): Likewise.
8776         * tui/tui-regs.c (tui_show_registers): Likewise.
8777         (tui_show_register_group): Likewise.
8778         (tui_display_registers_from): Likewise.
8779         (tui_check_register_values): Likewise.
8780         * tui/tui-source.c (tui_set_source_content): Likewise.
8781         (tui_set_source_content_nil): Likewise.
8782         (tui_source_is_displayed): Likewise.
8783         * tui/tui-stack.c (tui_show_locator_content): Likewise.
8784         (tui_set_locator_fullname): Likewise.
8785         (tui_set_locator_info): Likewise.
8786         (tui_show_frame_info): Likewise.
8787         * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8788         (tui_show_source_line): Likewise.
8789         (tui_horizontal_source_scroll): Likewise.
8790         (tui_update_breakpoint_info): Likewise.
8791         (tui_set_exec_info_content): Likewise.
8792         (tui_show_exec_info_content): Likewise.
8793         (tui_alloc_source_buffer): Likewise.
8794         (tui_line_is_displayed): Likewise.
8795         (tui_addr_is_displayed): Likewise.
8796
8797 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8798
8799         * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8800         event if PL_FLAG_EXEC is set.
8801         [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8802         [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8803         (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8804         "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8805         Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8806
8807 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8808
8809         * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8810         [TDP_RFPPWAIT] New variable fbsd_pending_children.
8811         [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8812         [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8813         [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8814         [PT_LWPINFO] (fbsd_wait): New function.
8815         [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8816         [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8817         [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8818         [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8819         [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8820         [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8821         [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8822         [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8823         (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8824         "fbsd_wait".
8825         [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8826         Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8827         Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8828         Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8829         Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8830         Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8831         Set "to_post_attach" to "fbsd_post_attach".
8832
8833 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
8834
8835         * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8836         (fbsd_find_memory_regions): Mark static.
8837         (fbsd_nat_add_target): New function.
8838         * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8839         fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8840         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8841         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8842         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8843         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8844
8845 2015-04-27  Gary Benson <gbenson@redhat.com>
8846
8847         * objfiles.c (allocate_objfile): Do not attempt to expand name
8848         if name is a "target:" filename.
8849         * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8850         to load auto-load scripts for objfiles with "target:" filenames.
8851
8852 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8853
8854         * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8855         (enum s390_vector_abi_kind): New enum.
8856         (struct gdbarch_tdep)<vector_abi>: New field.
8857         (s390_effective_inner_type): Add parameter min_size.  Stop
8858         unwrapping if the inner type is smaller than min_size.
8859         (s390_function_arg_float): Adjust call to
8860         s390_effective_inner_type.
8861         (s390_function_arg_vector): New function.
8862         (s390_function_arg_integer): Adjust comment.
8863         (struct s390_arg_state)<vr>: New field.
8864         (s390_handle_arg): Add parameter 'is_unnamed'.  Pass vector
8865         arguments according to vector ABI when appropriate.
8866         (s390_push_dummy_call): Initialize the argument state's field
8867         'vr'.  Adjust calls to s390_handle_arg.
8868         (s390_register_return_value): Handle vector return values.
8869         (s390_return_value): Apply the "register" return value convention
8870         to a vector when appropriate.
8871         (s390_gdbarch_init): Initialize tdep->vector_abi.
8872         * NEWS: Announce S390 vector ABI support.
8873
8874 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8875
8876         * s390-linux-tdep.c (s390_return_value_convention): Remove
8877         function.  Inline its logic...
8878         (s390_return_value): ...here.  Instead, move the handling of the
8879         "register" return value convention...
8880         (s390_register_return_value): ...here.  New function.
8881
8882 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8883
8884         * s390-linux-tdep.c
8885         (is_float_singleton): Remove function.  Move the "singleton" part
8886         of the logic...
8887         (s390_effective_inner_type): ...here.  New function.
8888         (is_float_like): Remove function.  Inline its logic...
8889         (s390_function_arg_float): ...here.
8890         (is_pointer_like, is_integer_like, is_struct_like): Remove
8891         functions.  Inline their logic...
8892         (s390_function_arg_integer): ...here.
8893         (s390_function_arg_pass_by_reference): Remove function.
8894         (extend_simple_arg): Remove function.
8895         (alignment_of): Remove function.
8896         (struct s390_arg_state): New structure.
8897         (s390_handle_arg): New function.
8898         (s390_push_dummy_call): Move parameter placement logic to the new
8899         function s390_handle_arg.  Call it for calculating the stack area
8900         sizes first, and again for actually writing the parameters.
8901
8902 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8903
8904         * s390-linux-tdep.c (is_power_of_two): Add comment.  Return
8905           false if the argument is zero.
8906
8907 2015-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
8908
8909         * ada-lang.c (template_to_static_fixed_type): Return input type
8910         when it is already fixed.  Cache the input type itself when not
8911         creating a static fixed copy.  Make it explicit that we never
8912         molestate the input type.
8913         * gdbtypes.c (resolve_dynamic_struct): Reset the
8914         TYPE_TARGET_TYPE field for resolved copies.
8915
8916 2015-04-27  Joel Brobecker  <brobecker@adacore.com>
8917
8918         * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8919         (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8920         (template_to_static_fixed_type): Call ada_check_typedef only
8921         when necessary.
8922
8923 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8924
8925         * cli/cli-dump.c (srec_dump_command): Add internationalization
8926         mark ups.
8927         (ihex_dump_command): Likewise.
8928         (tekhex_dump_command): Likewise.
8929         (binary_dump_command): Likewise.
8930         (binary_append_command): Likewise.
8931
8932 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
8933
8934         * cli/cli-dump.c (verilog_cmdlist): New variable.
8935         (dump_verilog_memory): New function.
8936         (dump_verilog_value): New function.
8937         (verilog_dump_command): New function.
8938         (_initialize_cli_dump): Add new commands to support verilog dump
8939         format.
8940         * NEWS: Add entry for "dump verilog".
8941
8942 2015-04-24  Pierre-Marie de Rodat  <derodat@adacore.com>
8943
8944         * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8945         descriptive type when there is none.
8946
8947 2015-04-23  Patrick Palka  <patrick@parcs.ath.cx>
8948
8949         * tui/tui-win.c (tui_async_resize_screen): Call
8950         rl_resize_terminal().
8951
8952 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
8953
8954         * windows-nat.c (handle_output_debug_string): Don't change
8955         current_event.dwThreadId.
8956         (get_windows_debug_event): Use thread_id, rather than relying on
8957         current_event.dwThreadId being changed.
8958
8959 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
8960
8961         * windows-nat.c (windows_continue): Report an error if
8962         ContinueDebugEvent() fails.
8963
8964 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8965
8966         * windows-nat.c (windows_resume): Fix misspelling in debug output.
8967
8968 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8969
8970         * windows-nat.c (get_windows_debug_event): Replace retval with
8971         thread_id throughout.  Update stale comment.
8972
8973 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
8974
8975         * windows-nat.c (get_windows_debug_event): Don't use ternary
8976         conditional operator.
8977
8978 2015-04-21  Pierre Muller  <muller@sourceware.org>
8979
8980         PR pascal/17815
8981         p-exp.y (yylex): Reorganize code to return the matched pattern
8982         for a field of this.
8983
8984 2015-04-21  Gary Benson <gbenson@redhat.com>
8985
8986         * common/fileio.h (fileio_to_host_openflags): New declaration.
8987         * common/fileio.c (fcntl.h): New include.
8988         (fileio_to_host_openflags): New function, factored out from...
8989         * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8990         Single use updated.
8991
8992 2015-04-21  Kevin Buettner  <kevinb@redhat.com>
8993
8994         * rl78-tdep.c (RL78_SP_ADDR): Define.
8995         (opc_reg_to_gdb_regnum): New static function.
8996         (rl78_analyze_prologue): Recognize instructions forming slightly
8997         more interesting prologues.
8998
8999 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
9000
9001         Revert:
9002         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9003         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9004         TYPE_CODE_REF types so that they are not considered as dynamic
9005         depending on the referenced type.
9006         (resolve_dynamic_type_internal): Likewise.
9007
9008 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
9009
9010         Revert:
9011         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9012         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9013         "top_level" parameter.
9014         (resolve_dynamic_type_internal): Remove the unused "top_level"
9015         parameter.  Update call to is_dynamic_type_internal.
9016         (is_dynamic_type): Update call to is_dynamic_type_internal.
9017         (resolve_dynamic_range): Update call to
9018         resolve_dynamic_type_internal.
9019         (resolve_dynamic_union): Likewise.
9020         (resolve_dynamic_struct): Likewise.
9021         (resolve_dynamic_type): Likewise.
9022
9023 2015-04-19  Gabriel Krisman Bertazi  <gabriel@krisman.be>
9024
9025         * breakpoint.c (update_dprintf_command_list): Remove duplicated
9026         xmalloc.
9027
9028 2015-04-20  Thomas Schwinge  <thomas@codesourcery.com>
9029
9030         * reply_mig_hack.awk: Robustify parsing.
9031
9032         * reply_mig_hack.awk: Don't bother to declare an intermediate
9033         function pointer variable.
9034
9035 2015-04-17  Doug Evans  <dje@google.com>
9036
9037         * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
9038         to "exec_displacement" to avoid confusion with inner use of the name.
9039
9040 2015-04-17  Pedro Alves  <palves@redhat.com>
9041
9042         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
9043         if HW point of TYPE isn't supported.
9044
9045 2015-04-17  Yao Qi  <yao.qi@linaro.org>
9046             Pedro Alves  <palves@redhat.com>
9047
9048         * target.h (target_can_use_hardware_watchpoint): Update comments.
9049         Remove trailing ";".
9050
9051 2015-04-17  Gary Benson <gbenson@redhat.com>
9052
9053         * remote.c (remote_add_inferior): New argument try_open_exec.
9054         If nonzero, attempt to open the inferior's executable file as
9055         the main executable if no main executable is open already.
9056         All callers updated.
9057         * NEWS: Mention that GDB now supports automatic location and
9058         retrieval of executable + files from remote targets.
9059
9060 2015-04-17  Gary Benson <gbenson@redhat.com>
9061
9062         * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
9063         * remote.c (PACKET_qXfer_exec_file): Likewise.
9064         (remote_protocol_features): Register the
9065         "qXfer:exec-file:read" feature.
9066         (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
9067         (remote_pid_to_exec_file): New function.
9068         (init_remote_ops): Initialize to_pid_to_exec_file.
9069         (_initialize_remote): Register new "set/show remote
9070         pid-to-exec-file-packet" command.
9071         * NEWS: Announce new qXfer:exec-file:read packet.
9072
9073 2015-04-17  Gary Benson <gbenson@redhat.com>
9074
9075         * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
9076         New declaration.
9077         * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
9078         New function, factored out from...
9079         * linux-nat.c (linux_child_pid_to_exec_file): ...here.
9080
9081 2015-04-17  Gary Benson <gbenson@redhat.com>
9082
9083         * exec.c (solist.h): New include.
9084         (exec_file_locate_attach): Prefix absolute executable
9085         paths with gdb_sysroot if set.
9086         * NEWS: Mention that executable paths may be prepended
9087         with sysroot.
9088
9089 2015-04-17  Gary Benson <gbenson@redhat.com>
9090
9091         * solist.h (exec_file_find): New declaration.
9092         * solib.c (solib_find_1): New function, factored out from...
9093         (solib_find): ...here.
9094         (exec_file_find): New function.
9095
9096 2015-04-17  Gary Benson <gbenson@redhat.com>
9097
9098         * gdbcore.h (exec_file_locate_attach): New declaration.
9099         * exec.c (exec_file_locate_attach): New function, factored
9100         out from...
9101         * infcmd.c (attach_command_post_wait): ...here.
9102
9103 2015-04-17  Mike Frysinger  <vapier@gentoo.org>
9104
9105         * MAINTAINERS: Add myself for Blackfin/write-after-approval.
9106
9107 2015-04-16  Yao Qi  <yao.qi@linaro.org>
9108
9109         * infrun.c (maybe_software_singlestep): Declare.
9110         (displaced_step_fixup): Call maybe_software_singlestep.
9111
9112 2015-04-15  Doug Evans  <dje@google.com>
9113
9114         * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
9115
9116 2015-04-15  Doug Evans  <dje@google.com>
9117
9118         * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
9119
9120 2015-04-15  Simon Marchi  <simon.marchi@ericsson.com>
9121
9122         * python/lib/gdb/command/unwinders.py: Add parentheses.
9123
9124 2015-04-15  Yao Qi  <yao.qi@linaro.org>
9125
9126         * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
9127
9128 2015-04-15  Yao Qi  <yao.qi@linaro.org>
9129
9130         * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
9131
9132 2015-04-15  Yao Qi  <yao.qi@linaro.org>
9133
9134         * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
9135         dsc->insn_size instead of 4.
9136
9137 2015-04-14  Gary Benson <gbenson@redhat.com>
9138
9139         * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
9140         * minidebug.c (lzma_stat): Likewise.
9141         * solib-spu.c (spu_bfd_iovec_stat): Likewise.
9142         * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
9143
9144 2015-04-13  Stan Shebs  <stanshebs@google.com>
9145
9146         * MAINTAINERS: Update my email address.
9147
9148 2015-04-13  John Baldwin  <jhb@FreeBSD.org>
9149
9150         * amd64-tdep.c (amd64_target_description): New function.
9151         * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
9152         * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
9153         (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9154         x86 extended save area.
9155         (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9156         * amd64bsd-nat.h: Export amd64bsd_xsave_len.
9157         * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
9158         (_initialize_amd64fbsd_nat): Set "to_read_description" to
9159         "amd64fbsd_read_description".
9160         * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
9161         (amd64fbsd_supply_xstateregset): New function.
9162         (amd64fbsd_collect_xstateregset): New function.
9163         Add "amd64fbsd_xstateregset".
9164         (amd64fbsd_iterate_over_regset_sections): New function.
9165         (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
9166         "I386_FBSD_XSAVE_XCR0_OFFSET".
9167         Add "iterate_over_regset_sections" gdbarch method.
9168         Add "core_read_description" gdbarch method.
9169         * i386-tdep.c (i386_target_description): New function.
9170         * i386-tdep.h: Export i386_target_description and tdesc_i386.
9171         * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
9172         (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9173         x86 extended save area.
9174         (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9175         * i386bsd-nat.h: Export i386bsd_xsave_len.
9176         * i386fbsd-nat.c (i386fbsd_read_description): New function.
9177         (_initialize_i386fbsd_nat): Set "to_read_description" to
9178         "i386fbsd_read_description".
9179         * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
9180         (i386fbsd_core_read_description): New function.
9181         (i386fbsd_supply_xstateregset): New function.
9182         (i386fbsd_collect_xstateregset): New function.
9183         Add "i386fbsd_xstateregset".
9184         (i386fbsd_iterate_over_regset_sections): New function.
9185         (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
9186         "I386_FBSD_XSAVE_XCR0_OFFSET".
9187         Add "iterate_over_regset_sections" gdbarch method.
9188         Add "core_read_description" gdbarch method.
9189         * i386fbsd-tdep.h: New file.
9190
9191 2015-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
9192
9193         * NEWS (Changes since GDB 7.9): Add removed -xdb.
9194         * breakpoint.c (command_line_is_silent): Remove xdb_commands
9195         conditional.
9196         (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
9197         and lb.
9198         * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
9199         va.
9200         * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
9201         conditional.
9202         * defs.h (xdb_commands): Remove declaration.
9203         * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
9204         * guile/scm-cmd.c (command_classes): Remove xdb from comment.
9205         * infcmd.c (run_no_args_command, go_command): Remove.
9206         (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
9207         * infrun.c (xdb_handle_command): Remove.
9208         (_initialize_infrun): Remove xdb_commands for lz and z.
9209         * main.c (xdb_commands): Remove variable.
9210         (captured_main): Remove "xdb" from long_options.
9211         (print_gdb_help): Remove --xdb from help.
9212         * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
9213         * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
9214         * stack.c (backtrace_full_command, args_plus_locals_info)
9215         (current_frame_command): Remove.
9216         (_initialize_stack): Remove xdb_commands for t, T and l.
9217         * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9218         * thread.c (_initialize_thread): Remove xdb_commands condition.
9219         * tui/tui-layout.c (tui_toggle_layout_command)
9220         (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9221         (_initialize_tui_layout): Remove xdb_commands for td and ts.
9222         * tui/tui-regs.c (tui_scroll_regs_forward_command)
9223         (tui_scroll_regs_backward_command): Remove.
9224         (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9225         * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9226         (_initialize_tui_win): Remove xdb_commands for U and w.
9227         * utils.c (pagination_on_command, pagination_off_command): Remove.
9228         (initialize_utils): Remove xdb_commands for am and sm.
9229
9230 2015-04-10  Pedro Alves  <palves@redhat.com>
9231
9232         * infrun.c (displaced_step_fixup): Switch to the event ptid
9233         earlier.  If the thread stopped for a watchpoint and the
9234         target/arch has non-continuable watchpoints, cancel the displaced
9235         step.
9236         (resume): Don't start a displaced step if in-line step-over info
9237         is valid.
9238
9239 2015-04-10  Pedro Alves  <palves@redhat.com>
9240
9241         * infrun.c (displaced_step_in_progress): New function.
9242         (do_target_resume): Advise target to report all signals if
9243         displaced stepping.
9244
9245 2015-04-10  Pedro Alves  <palves@redhat.com>
9246
9247         PR gdb/18216
9248         * infrun.c (process_event_stop_test): Don't assume a step-resume
9249         is set if tp->stepped_breakpoint is true.
9250
9251 2015-04-10  Yao Qi  <yao.qi@linaro.org>
9252
9253         * arm-tdep.c (install_alu_reg): Update comment.
9254         (thumb_copy_alu_reg): Remove local variable rn.  Update
9255         debugging message.  Use r2 instead of r1 in the modified
9256         instruction.
9257
9258 2015-04-10  Pedro Alves  <palves@redhat.com>
9259
9260         PR gdb/13858
9261         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9262         linux_displaced_step_location as gdbarch_displaced_step_location
9263         hook.
9264         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9265         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9266         * linux-tdep.c (linux_displaced_step_location): New function,
9267         based on ppc_linux_displaced_step_location.
9268         * linux-tdep.h (linux_displaced_step_location): New declaration.
9269         * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9270         (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9271         Delete.
9272         (ppc_linux_init_abi): Install linux_displaced_step_location as
9273         gdbarch_displaced_step_location hook, even without Cell/B.E..
9274         (_initialize_ppc_linux_tdep): Don't install
9275         ppc_linux_inferior_created as inferior_created observer.
9276         * s390-linux-tdep.c (s390_gdbarch_init): Install
9277         linux_displaced_step_location as gdbarch_displaced_step_location
9278         hook.
9279
9280 2015-04-09  Gary Benson <gbenson@redhat.com>
9281
9282         * common/common-remote-fileio.h: Rename to...
9283         * common/fileio.h: ...this.  Update all references.
9284         (remote_fileio_to_fio_error): Rename to...
9285         (host_to_fileio_error): ...this.
9286         (remote_fileio_to_be): Rename to...
9287         (host_to_bigendian): ...this.  Update all callers.
9288         (remote_fileio_to_fio_uint): Rename to...
9289         (host_to_fileio_uint): ...this.  Update all callers.
9290         (remote_fileio_to_fio_time): Rename to...
9291         (host_to_fileio_time): ...this.  Update all callers.
9292         (remote_fileio_to_fio_stat): Rename to...
9293         (host_to_fileio_stat): ...this.
9294         Update all references.
9295         * common/common-remote-fileio.c: Rename to...
9296         * common/fileio.c: ...this.  Update all references.
9297         (remote_fileio_to_fio_error): Rename to...
9298         (host_to_fileio_error): ...this.  Update all callers.
9299         (remote_fileio_mode_to_target): Rename to...
9300         (fileio_mode_pack): ...this.  Update all callers.
9301         (remote_fileio_to_fio_mode): Rename to...
9302         (host_to_fileio_mode): ...this.  Update all callers.
9303         (remote_fileio_to_fio_ulong): Rename to...
9304         (host_to_fileio_ulong): ...this.  Update all callers.
9305         (remote_fileio_to_fio_stat): Rename to...
9306         (host_to_fileio_stat): ...this.  Update all callers.
9307
9308 2015-04-09  Andy Wingo  <wingo@igalia.com>
9309
9310         * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9311         (frame_functions): Bind gdbscm_frame_read_register to
9312         frame-read-register.
9313         * guile/lib/gdb.scm (frame-read-register): Export.
9314
9315 2015-04-09  Gary Benson <gbenson@redhat.com>
9316
9317         * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9318         New declaration.
9319         * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9320         New function, factored out the named functions below.
9321         * inf-child.c (gdb/fileio.h): Remove include.
9322         (common-remote-fileio.h): New include.
9323         (inf_child_errno_to_fileio_error): Remove function.  Update
9324         all callers to use remote_fileio_to_fio_error.
9325         * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9326
9327 2015-04-09  Andy Wingo  <wingo@igalia.com>
9328
9329         * MAINTAINERS (Write After Approval): Add Andy Wingo.
9330
9331 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
9332
9333         * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9334         Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9335         * configure: Regenerated.
9336
9337 2015-04-09  Pedro Alves  <palves@redhat.com>
9338
9339         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9340         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9341         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9342         * gnulib/import/Makefile.am: Update.
9343         * gnulib/import/Makefile.in: Update.
9344         * gnulib/import/m4/gnulib-cache.m4: Update.
9345         * gnulib/import/m4/gnulib-comp.m4: Update.
9346         * gnulib/import/m4/strtok_r.m4: New file.
9347         * gnulib/import/strtok_r.c: New file.
9348
9349 2015-04-09  Pedro Alves  <palves@redhat.com>
9350
9351         * gnulib/update-gnulib.sh (aclocal version check): Filter out
9352         "called too early to check prototype".
9353
9354 2015-04-08  Sergio Durigan Junior  <sergiodj@redhat.com>
9355
9356         PR python/16699
9357         * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9358         use a caching mechanism.  Adjust comments and code to reflect
9359         that.  Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9360         (cmdpy_completer_handle_brkchars): Adjust call to
9361         cmdpy_completer_helper.  Call Py_XDECREF for 'resultobj'.
9362         (cmdpy_completer): Likewise.
9363
9364 2015-04-08  Yao Qi  <yao.qi@linaro.org>
9365
9366         * spu-tdep.c (spu_gdbarch_init): Don't call
9367         set_gdbarch_cannot_step_breakpoint.
9368
9369 2015-04-07  Sergio Durigan Junior  <sergiodj@redhat.com>
9370
9371         * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9372
9373 2015-04-07  Pedro Alves  <palves@redhat.com>
9374
9375         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9376         (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9377         (delete_exited_threads): New declaration.
9378         * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9379         * linux-nat.c (linux_nat_update_thread_list): New function.
9380         (linux_nat_add_target): Install it.
9381         * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9382         * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9383         (delete_exited_threads): New function.
9384
9385 2015-04-07  Pedro Alves  <pedro@codesourcery.com>
9386
9387         * infrun.c (resume) <displaced stepping debug output>: Get the
9388         leader thread's regcache, not resume_ptid's.
9389
9390 2015-04-06  Doug Evans  <xdje42@gmail.com>
9391
9392         * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9393         VAR_DOMAIN.
9394         (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9395         Include symbol domain in debugging output.
9396
9397 2015-04-06  Pedro Alves  <palves@redhat.com>
9398             Bernd Edlinger  <bernd.edlinger@hotmail.de>
9399
9400         * configure.ac: Remove the mingw32-specific stub-termcap.o
9401         fallback, and instead fallback to the stub termcap on all hosts.
9402         * configure: Regenerate.
9403         * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9404         symbols.
9405
9406 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9407
9408         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9409         "top_level" parameter.
9410         (resolve_dynamic_type_internal): Remove the unused "top_level"
9411         parameter.  Update call to is_dynamic_type_internal.
9412         (is_dynamic_type): Update call to is_dynamic_type_internal.
9413         (resolve_dynamic_range): Update call to
9414         resolve_dynamic_type_internal.
9415         (resolve_dynamic_union): Likewise.
9416         (resolve_dynamic_struct): Likewise.
9417         (resolve_dynamic_type): Likewise.
9418
9419 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
9420
9421         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9422         TYPE_CODE_REF types so that they are not considered as dynamic
9423         depending on the referenced type.
9424         (resolve_dynamic_type_internal): Likewise.
9425
9426 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
9427
9428         * Makefile.in (top_srcdir): New.
9429         * configure: Regenerated.
9430
9431 2015-04-02  Gary Benson <gbenson@redhat.com>
9432
9433         * NEWS: Announce the new default sysroot of "target:".
9434
9435 2015-04-02  Gary Benson <gbenson@redhat.com>
9436
9437         * main.c (captured_main): Set gdb_sysroot to "target:"
9438         if not otherwise set.
9439
9440 2015-04-02  Gary Benson <gbenson@redhat.com>
9441
9442         * exec.c (exec_file_attach): Support "target:" filenames.
9443
9444 2015-04-02  Gary Benson <gbenson@redhat.com>
9445
9446         * solib.c (solib_find): Strip "target:" prefix from sysroot
9447         if accessing local files.
9448
9449 2015-04-02  Gary Benson <gbenson@redhat.com>
9450
9451         * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9452         checks and error messages.
9453
9454 2015-04-02  Gary Benson <gbenson@redhat.com>
9455
9456         * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9457         (remote_filename_p): Remove declaration.
9458         (remote_bfd_open): Likewise.
9459         * remote.c (remote_bfd_iovec_open): Remove function.
9460         (remote_bfd_iovec_close): Likewise.
9461         (remote_bfd_iovec_pread): Likewise.
9462         (remote_bfd_iovec_stat): Likewise.
9463         (remote_filename_p): Likewise.
9464         (remote_bfd_open): Likewise.
9465         * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9466         * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9467         (gdb_bfd_open_maybe_remote): Remove function.
9468         (symfile_bfd_open):  Replace remote filename check with
9469         target filename check.
9470         (reread_symbols): Use gdb_bfd_open.
9471         * build-id.c (gdbcore.h): New include.
9472         (build_id_to_debug_bfd): Use gdb_bfd_open.
9473         * infcmd.c (attach_command_post_wait): Remove remote filename
9474         check.
9475         * solib.c (solib_find): Replace remote-specific handling with
9476         target-specific handling.  Update comments where necessary.
9477         (solib_bfd_open): Replace remote-specific handling with
9478         target-specific handling.
9479         (gdb_sysroot_changed): New function.
9480         (_initialize_solib): Call the above when gdb_sysroot changes.
9481         * windows-tdep.c (gdbcore.h): New include.
9482         (windows_xfer_shared_library): Use gdb_bfd_open.
9483
9484 2015-04-02  Gary Benson <gbenson@redhat.com>
9485
9486         * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9487         (is_target_filename): New declaration.
9488         (gdb_bfd_has_target_filename): Likewise.
9489         (gdb_bfd_open): Update documentation comment.
9490         * gdb_bfd.c (target.h): New include.
9491         (gdb/fileio.h): Likewise.
9492         (is_target_filename): New function.
9493         (gdb_bfd_has_target_filename): Likewise.
9494         (fileio_errno_to_host): Likewise.
9495         (gdb_bfd_iovec_fileio_open): Likewise.
9496         (gdb_bfd_iovec_fileio_pread): Likewise.
9497         (gdb_bfd_iovec_fileio_close): Likewise.
9498         (gdb_bfd_iovec_fileio_fstat): Likewise.
9499         (gdb_bfd_open): Use target fileio to access paths prefixed
9500         with "target:" where necessary.
9501
9502 2015-04-02  Gary Benson <gbenson@redhat.com>
9503
9504         * target.h (struct target_ops) <to_filesystem_is_local>:
9505         New field.
9506         (target_filesystem_is_local): New macro.
9507         * target-delegates.c: Regenerate.
9508         * remote.c (remote_filesystem_is_local): New function.
9509         (init_remote_ops): Initialize to_filesystem_is_local.
9510
9511 2015-04-02  Gary Benson <gbenson@redhat.com>
9512
9513         * target.h (struct target_ops) <to_fileio_fstat>: New field.
9514         (target_fileio_fstat): New declaration.
9515         * target.c (target_fileio_fstat): New function.
9516         * inf-child.c (inf_child_fileio_fstat): Likewise.
9517         (inf_child_target): Initialize to_fileio_fstat.
9518         * remote.c (init_remote_ops): Likewise.
9519
9520 2015-04-01  Sasha Smundak  <asmundak@google.com>
9521
9522         * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9523         (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9524         (py-unwind.o): New recipe.
9525         * NEWS: mention Python frame unwinding.
9526         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9527         gdb/unwinder.py and gdb/command/unwinder.py
9528         * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9529         list.
9530         (execute_unwinders): New function.
9531         * python/lib/gdb/command/unwinders.py: New file.
9532         * python/lib/gdb/unwinder.py: New file.
9533         * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9534         (objfpy_dealloc): Decrement frame_unwinders reference count.
9535         (objfpy_initialize): Create frame_unwinders list.
9536         (objfpy_get_frame_unwinders): New function.
9537         (objfpy_set_frame_unwinders): Ditto.
9538         (objfile_getset): Add frame_unwinders attribute to Objfile.
9539         * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9540         (pspy_dealloc): Decrement frame_unwinders reference count.
9541         (pspy_initialize): Create frame_unwinders list.
9542         (pspy_get_frame_unwinders): New function.
9543         (pspy_set_frame_unwinders): Ditto.
9544         (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9545         * python/py-unwind.c: New file.
9546         * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9547         (objpy_get_frame_unwinders): New prototype.
9548         (gdbpy_initialize_unwind): New prototype.
9549         * python/python.c (gdbpy_apply_type_printers): Call
9550         gdbpy_initialize_unwind.
9551
9552 2015-04-01  Pedro Alves  <palves@redhat.com>
9553
9554         * infrun.c (resume): Check currently_stepping after clearing
9555         stepped_breakpoint, not before.
9556
9557 2015-04-01  Pedro Alves  <palves@redhat.com>
9558
9559         * infrun.c (print_target_wait_results): Print all the ptid
9560         elements.
9561
9562 2015-04-01  Pedro Alves  <palves@redhat.com>
9563
9564         * infrun.c (keep_going): Also discard cleanups if inserting
9565         breakpoints fails.
9566
9567 2015-04-01  Pedro Alves  <palves@redhat.com>
9568
9569         * infrun.c (wait_for_inferior): Install the
9570         finish_thread_state_cleanup cleanup across the whole function, not
9571         just around handle_inferior_event.
9572
9573 2015-04-01  Pedro Alves  <palves@redhat.com>
9574
9575         * infrun.c (resume) <step past permanent breakpoint>: Use
9576         do_target_resume.
9577
9578 2015-04-01  Pedro Alves  <palves@redhat.com>
9579
9580         * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9581
9582 2015-04-01  Pierre-Marie de Rodat  <derodat@adacore.com>
9583
9584         * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9585
9586 2015-04-01  Pedro Alves  <palves@redhat.com>
9587
9588         * linux-thread-db.c (record_thread): Readd the thread to gdb's
9589         list if it was marked exited.
9590
9591 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
9592
9593         * configure: Regenerated.
9594
9595 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9596             Jan Kratochvil  <jan.kratochvil@redhat.com>
9597             Oleg Nesterov  <oleg@redhat.com>
9598
9599         PR corefiles/16092
9600         * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9601         New enum identifying the various options of the coredump_filter
9602         file.
9603         (struct smaps_vmflags): New struct.
9604         (use_coredump_filter): New variable.
9605         (decode_vmflags): New function.
9606         (mapping_is_anonymous_p): Likewise.
9607         (dump_mapping_p): Likewise.
9608         (linux_find_memory_regions_full): New variables
9609         'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9610         Removed variable 'modified'.  Read /proc/<PID>/smaps file; improve
9611         parsing of its information.  Implement memory mapping filtering
9612         based on its contents.
9613         (show_use_coredump_filter): New function.
9614         (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9615         * NEWS: Mention the possibility of using the
9616         '/proc/PID/coredump_filter' file when generating a corefile.
9617         Mention new command 'set use-coredump-filter'.
9618
9619 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
9620
9621         * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9622         read_memory_unsigned_integer.
9623
9624 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
9625
9626         * Makefile.in (ZLIB): New.
9627         (ZLIBINC): Likewise.
9628         (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9629         (CLIBS): Add $(ZLIB).
9630         * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9631         Add -lz to LIBS.
9632         * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9633         * top.c (print_gdb_configuration): Remove --with-zlib and
9634         --without-zlib.
9635         * config.in: Regenerated.
9636         * configure: Likewise.
9637
9638 2015-03-31  Antoine Tremblay  <antoine.tremblay@ericsson.com>
9639
9640         * NEWS: Mention info os cpus support.
9641         * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9642         (struct osdata_type): Add cpus entry, reorder the entries in
9643         alphabetical order.
9644
9645 2015-03-31  Matthias Klose  <doko@ubuntu.com>
9646
9647         * compile/compile.c (compile_to_object): Allow triplets with or
9648         without vendor set.
9649
9650 2015-03-30  Doug Evans  <dje@google.com>
9651
9652         PR c++/18141
9653         * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9654         klass in VAR_DOMAIN.
9655
9656 2015-03-30  Gary Benson <gbenson@redhat.com>
9657
9658         * remote.c (remote_mourn_1): Remove function.  Update all callers
9659         to use remote_mourn.
9660         (extended_remote_mourn_1): Remove function.  Update all callers
9661         to use extended_remote_mourn.
9662         (extended_remote_attach_1): Remove function.  Update all callers
9663         to use extended_remote_attach.
9664
9665 2015-03-28  James Bowman  <james.bowman@ftdichip.com>
9666
9667         * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9668         (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9669         (ALLDEPFILES): Add ft32-tdep.c.
9670         * configure.tgt: Add FT32 entry.
9671         * ft32-tdep.c: New file, FT32 target-dependent code.
9672         * ft32-tdep.h: New file, FT32 target-dependent code.
9673
9674 2015-03-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9675
9676         Revert:
9677         2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9678         Code cleanup.
9679         * printcmd.c (print_command_1): Move expr variable scope.
9680
9681 2015-03-27  Joel Brobecker  <brobecker@adacore.com>
9682
9683         * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9684
9685 2015-03-27  Andrzej Kaczmarek  <andrzej.kaczmarek@tieto.com>
9686
9687         * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9688         sections.
9689
9690 2015-03-26  Joel Brobecker  <brobecker@adacore.com>
9691
9692         * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9693         exception raised while parsing the probe arguments.
9694         Force parsing to be done using the C language parser.
9695         * expression.h (parse_expression_with_language): Declare.
9696         * parse.c (parse_expression_with_language): New function.
9697
9698 2015-03-26  Jon Turney  <jon.turney@dronecode.org.uk>
9699
9700         * MAINTAINERS (Write After Approval): Add "Jon Turney".
9701
9702 2015-03-26  Andy Wingo  <wingo@igalia.com>
9703
9704         PR symtab/18148
9705         * dwarf2read.c (struct partial_die_info): Add has_const_value
9706         member.
9707         (add_partial_symbol): Don't punt on symbols that have const_value
9708         attributes.
9709         (read_partial_die): Detect DW_AT_const_value.
9710
9711 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9712
9713         Code cleanup.
9714         * printcmd.c (print_command_1): Move expr variable scope.
9715
9716 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9717
9718         Code cleanup.
9719         * printcmd.c (validate_format): Make the parameter cmdname const.
9720
9721 2015-03-26  Don Breazeal  <donb@codesourcery.com>
9722
9723         * remote.c (_initialize_remote): Update comment.
9724
9725 2015-03-26  Pedro Alves  <palves@redhat.com>
9726             Jon TURNEY  <jon.turney@dronecode.org.uk>
9727
9728         * coffread.c (coff_symfile_read): When constructing the name of an
9729         import stub symbol from import symbol for amd64, only skip the
9730         char after _imp_ if the target is underscored (like i386) and the
9731         char is indeed the target's leading char.
9732
9733 2015-03-25  Pedro Alves  <palves@redhat.com>
9734
9735         * target.h <to_async>: Replace 'callback' and 'context' parameters
9736         with boolean 'enable' parameter.
9737         (target_async): Replace CALLBACK and CONTEXT parameters with
9738         boolean ENABLE parameter.
9739         * inf-loop.c (inferior_event_handler): Adjust.
9740         * linux-nat.c (linux_nat_attach, linux_nat_resume)
9741         (linux_nat_resume): Adjust.
9742         (async_client_callback, async_client_context): Delete.
9743         (handle_target_event): Call inferior_event_handler directly.
9744         (linux_nat_async): Replace 'callback' and 'context' parameters
9745         with boolean 'enable' parameter.  Adjust.  Remove references to
9746         async_client_callback and async_client_context.
9747         (linux_nat_close): Adjust.
9748         * record-btrace.c (record_btrace_async): Replace 'callback' and
9749         'context' parameters with boolean 'enable' parameter.  Adjust.
9750         (record_btrace_resume): Adjust.
9751         * record-full.c (record_full_async): Replace 'callback' and
9752         'context' parameters with boolean 'enable' parameter.  Adjust.
9753         (record_full_resume, record_full_core_resume): Adjust.
9754         * remote.c (struct remote_state) <async_client_callback,
9755         async_client_context>: Delete fields.
9756         (remote_start_remote, extended_remote_attach_1, remote_resume)
9757         (extended_remote_create_inferior): Adjust.
9758         (remote_async_serial_handler): Call inferior_event_handler
9759         directly.
9760         (remote_async): Replace 'callback' and 'context' parameters with
9761         boolean 'enable' parameter.  Adjust.
9762         * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9763         Adjust.
9764         * target-delegates.c: Regenerate.
9765
9766 2015-03-25  Gary Benson <gbenson@redhat.com>
9767             Pedro Alves  <palves@redhat.com>
9768
9769         * target.c (fileio_ft_t): New typedef, define object vector.
9770         (fileio_fhandles): New static variable.
9771         (is_closed_fileio_fh): New macro.
9772         (lowest_closed_fd): New static variable.
9773         (acquire_fileio_fd): New function.
9774         (release_fileio_fd): Likewise.
9775         (fileio_fd_to_fh): New macro.
9776         (target_fileio_open): Wrap the file descriptor on success.
9777         (target_fileio_pwrite): Updated to use wrapped file descriptor.
9778         (target_fileio_pread): Likewise.
9779         (target_fileio_close): Likewise.
9780
9781 2015-03-24  Pedro Alves  <palves@redhat.com>
9782
9783         * thread.c (thread_apply_all_command): Take exited threads into
9784         account.
9785
9786 2015-03-24  Pedro Alves  <palves@redhat.com>
9787
9788         * infrun.c (resume, proceed): Mention
9789         switch_back_to_stepped_thread, not switch_back_to_stepping.
9790
9791 2015-03-24  Pedro Alves  <palves@redhat.com>
9792
9793         * infrun.c (user_visible_resume_ptid): Rewrite going from
9794         most-locked to unlocked instead of the opposite.  Move comment ...
9795         * infrun.h (user_visible_resume_ptid): ... here.
9796
9797 2015-03-24  Pedro Alves  <palves@redhat.com>
9798
9799         * linux-nat.c (linux_nat_resume): Output debug logs before trying
9800         to resume the event lwp.  Use the lwp's ptid instead of the passed
9801         in (maybe wildcard) ptid.
9802         (stop_wait_callback): Tweak debug log output.
9803         (check_stopped_by_breakpoint): Tweak debug log output.  Also dump
9804         TRAP_TRACE.
9805         (linux_nat_filter_event): In debug output, distinguish a
9806         resume_stop SIGSTOP from a delayed SIGSTOP.  Output debug logs
9807         before trying to resume the lwp.
9808
9809 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9810
9811         * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9812         pointer indirection.
9813         * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9814         (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9815
9816 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
9817
9818         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9819         Renames DYN_ATTR_DATA_LOCATION.
9820         (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9821         DYN_ATTR_DATA_LOCATION.
9822         * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9823         instead of DYN_ATTR_DATA_LOCATION.
9824
9825 2015-03-24  Pedro Alves  <palves@redhat.com>
9826
9827         * breakpoint.c (until_break_command): Adjust call to proceed.
9828         * gdbthread.h (struct thread_control_state) <stepping_command>:
9829         New field.
9830         * infcall.c (run_inferior_call): Adjust call to proceed.
9831         * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9832         Adjust calls to proceed.
9833         (set_step_frame): Set the current thread's step_start_function
9834         here.
9835         (step_once): Adjust calls to proceed.
9836         (jump_command, signal_command, until_next_command)
9837         (finish_backward, finish_forward, proceed_after_attach_callback)
9838         (attach_command_post_wait): Adjust calls to proceed.
9839         * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9840         (do_target_resume): New function, factored out from ...
9841         (resume): ... here.  Remove 'step' parameter.  Instead, check
9842         currently_stepping to determine whether the thread should be
9843         single-stepped.
9844         (proceed): Remove 'step' parameter and don't set the thread's
9845         step_start_function here.  Adjust call to 'resume'.
9846         (handle_inferior_event): Adjust calls to 'resume'.
9847         (switch_back_to_stepped_thread): Use do_target_resume instead of
9848         'resume'.
9849         (keep_going): Adjust calls to 'resume'.
9850         * infrun.h (proceed): Remove 'step' parameter.
9851         (resume): Likewise.
9852         * windows-nat.c (do_initial_windows_stuff): Adjust call to
9853         'resume'.
9854         * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9855
9856 2015-03-24  Pedro Alves  <palves@redhat.com>
9857
9858         * gdbthread.h (struct thread_control_state) <stepping_command>:
9859         New field.
9860         * infcmd.c (step_once): Pass step=1 to clear_proceed_status.  Set
9861         the thread's stepping_command field.
9862         * infrun.c (resume): Check the thread's stepping_command flag to
9863         determine which threads should be resumed.  Rename 'entry_step'
9864         local to user_step.
9865         (clear_proceed_status_thread): Clear 'stepping_command'.
9866         (schedlock_applies): Change parameter type to struct thread_info
9867         pointer.  Adjust.
9868         (find_thread_needs_step_over): Remove 'step' parameter.  Adjust.
9869         (switch_back_to_stepped_thread): Adjust calls to
9870         'schedlock_applies'.
9871         (_initialize_infrun): Adjust "set scheduler-locking step" help.
9872
9873 2015-03-24  Pedro Alves  <palves@redhat.com>
9874
9875         * infrun.c (step_start_function): Delete and ...
9876         * gdbthread.h (struct thread_control_state) <step_start_function>:
9877         ... now a field here.
9878         * infrun.c (clear_proceed_status_thread): Clear the thread's
9879         step_start_function.
9880         (proceed, process_event_stop_test, print_stop_event): Adjust.
9881
9882 2015-03-24  Pedro Alves  <palves@redhat.com>
9883
9884         * infrun.c (proceed): No longer handle negative step.
9885
9886 2015-03-24  Gary Benson  <gbenson@redhat.com>
9887
9888         * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9889         (x86_linux_prepare_to_resume): Likewise.
9890         * x86-linux-nat.c (x86_linux_new_thread):
9891         Moved to nat/x86-linux.c.
9892         (x86_linux_prepare_to_resume): Likewise.
9893         * nat/x86-linux.c (x86_linux_new_thread): New function.
9894         (x86_linux_prepare_to_resume): Likewise.
9895
9896 2015-03-24  Gary Benson  <gbenson@redhat.com>
9897
9898         * nat/x86-linux-dregs.h: New file.
9899         * nat/x86-linux-dregs.c: Likewise.
9900         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9901         (x86-linux-dregs.o): New rule.
9902         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9903         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9904         * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9905         (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9906         (x86_linux_dr_get): Likewise.
9907         (x86_linux_dr_set): Likewise.
9908         (x86_linux_dr_get_addr): Likewise.
9909         (x86_linux_dr_get_control): Likewise.
9910         (x86_linux_dr_get_status): Likewise.
9911         (update_debug_registers_callback): Likewise.
9912         (x86_linux_dr_set_control): Likewise.
9913         (x86_linux_dr_set_addr): Likewise.
9914         (x86_linux_update_debug_registers): Likewise.
9915
9916 2015-03-24  Gary Benson  <gbenson@redhat.com>
9917
9918         * x86-linux-nat.c (x86_linux_update_debug_registers):
9919         New function, factored out from...
9920         (x86_linux_prepare_to_resume): ...this.
9921
9922 2015-03-24  Gary Benson  <gbenson@redhat.com>
9923
9924         * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9925         (x86_linux_dr_set): Likewise.
9926         (x86_linux_dr_get_addr): Likewise.
9927         (x86_linux_dr_get_control): Likewise.
9928         (x86_linux_dr_get_status): Likewise.
9929         (update_debug_registers_callback): Likewise.
9930         (x86_linux_dr_set_control): Likewise.
9931         (x86_linux_dr_set_addr): Likewise.
9932         (x86_linux_prepare_to_resume): Likewise.
9933         (x86_linux_new_thread): Likewise.
9934
9935 2015-03-24  Gary Benson  <gbenson@redhat.com>
9936
9937         * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9938         (x86_linux_new_thread): Rename argument.
9939
9940 2015-03-24  Gary Benson  <gbenson@redhat.com>
9941
9942         * nat/x86-linux.h: New file.
9943         * nat/x86-linux.c: Likewise.
9944         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9945         (x86-linux.o): New rule.
9946         * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9947         * config/i386/linux64.mh (NATDEPFILES): Likewise.
9948         * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9949         (lwp_set_arch_private_info): New declaration.
9950         (lwp_arch_private_info): Likewise.
9951         * linux-nat.c (lwp_set_arch_private_info): New function.
9952         (lwp_arch_private_info): Likewise.
9953         * x86-linux-nat.c: Include nat/x86-linux.h.
9954         (arch_lwp_info): Removed structure.
9955         (update_debug_registers_callback):
9956         Use lwp_set_debug_registers_changed.
9957         (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9958         and lwp_set_debug_registers_changed.
9959         (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9960
9961 2015-03-24  Gary Benson  <gbenson@redhat.com>
9962
9963         * nat/linux-nat.h (ptid_of_lwp): New declaration.
9964         (lwp_is_stopped): Likewise.
9965         (lwp_stop_reason): Likewise.
9966         * linux-nat.c (ptid_of_lwp): New function.
9967         (lwp_is_stopped): Likewise.
9968         (lwp_is_stopped_by_watchpoint): Likewise.
9969         * x86-linux-nat.c (update_debug_registers_callback):
9970         Use lwp_is_stopped.
9971         (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9972         lwp_stop_reason.
9973
9974 2015-03-24  Gary Benson  <gbenson@redhat.com>
9975
9976         * linux-nat.h (linux_stop_lwp): Move declaration to...
9977         * nat/linux-nat.h (linux_stop_lwp): New declaration.
9978
9979 2015-03-24  Gary Benson  <gbenson@redhat.com>
9980
9981         * linux-nat.h: Include nat/linux-nat.h.
9982         (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9983         * nat/linux-nat.h (struct lwp_info): New forward declaration.
9984         (iterate_over_lwps_ftype): New typedef.
9985         (iterate_over_lwps): New declaration.
9986         * linux-nat.h (iterate_over_lwps): Update comment.  Use
9987         iterate_over_lwps_ftype.  Update callback return value check.
9988
9989 2015-03-24  Gary Benson  <gbenson@redhat.com>
9990
9991         * x86-nat.h (x86_debug_reg_state): Move declaration to...
9992         * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9993
9994 2015-03-24  Gary Benson  <gbenson@redhat.com>
9995
9996         * nat/linux-nat.h (current_lwp_ptid): New declaration.
9997         * linux-nat.c (current_lwp_ptid): New function.
9998         * x86-linux-nat.c: Include nat/linux-nat.h.
9999         (x86_linux_dr_get_addr): Use current_lwp_ptid.
10000         (x86_linux_dr_get_control): Likewise.
10001         (x86_linux_dr_get_status): Likewise.
10002         (x86_linux_dr_set_control): Likewise.
10003         (x86_linux_dr_set_addr): Likewise.
10004
10005 2015-03-24  Antoine Tremblay  <antoine.tremblay@ericsson.com>
10006
10007         PR breakpoints/16466
10008         * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
10009
10010 2015-03-23  Joel Brobecker  <brobecker@adacore.com>
10011
10012         * ser-mingw.c (ser_windows_setparity): Fix indentation.
10013         * ser-unix.c (hardwire_setparity): Likewise.
10014
10015 2015-03-23  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
10016
10017         * NEWS: Mention set/show serial parity command.
10018         * monitor.c (monitor_open): Call serial_setparity.
10019         * remote.c (remote_open_1): Likewise.
10020         * ser-base.c (ser_base_serparity): New function.
10021         * ser-base.h (ser_base_setparity): Add  declaration.
10022         * ser-go32.c (dos_ops): Set "setparity" field.
10023         * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
10024         state.Parity.
10025         (ser_windows_setparity): New function.
10026         (hardwire_ops): Add ser_windows_setparity.
10027         (tty_ops): Add NULL for setparity field.
10028         (pipe_ops): Add ser_base_setparity.
10029         (tcp_ops): Likewise.
10030         * ser-pipe.c (pipe_ops): Likewise.
10031         * ser-tcp.c (tcp_ops): Likewise.
10032         * ser-unix.c (hardwire_setparity): Add declaration.
10033         (hardwire_raw): Don't reset PARENB flag.
10034         (hardwire_setparity): New function.
10035         (hardwire_ops): Add hardwire_setparity.
10036         * serial.c (serial_setparity): New function.
10037         (serial_parity): New global.
10038         (parity_none, parity_odd, parity_even, parity_enums, parity):
10039         New static globals.
10040         (set_parity): New function.
10041         (_initialize_serial): Add set/show serial parity commands.
10042         * serial.h (GDBPARITY_NONE): Define.
10043         (GDBPARITY_ODD): Define.
10044         (GDBPARITY_EVEN): Define.
10045         (serial_setparity) Add declaration.
10046         (struct serial_ops): Add setparity field.
10047         * target.h (serial_parity): Add declaration.
10048
10049 2015-03-23  Keith Seitz  <keiths@redhat.com>
10050
10051         * linespec.c (linespec_lexer_lex_keyword): Update comment.
10052
10053 2015-03-23  Keith Seitz  <keiths@redhat.com>
10054
10055         * breakpoint.c (parse_breakpoint_sals): Use
10056         linespec_lexer_lex_keyword to ascertain if the user specified
10057         a NULL location.
10058         * linespec.c [IF_KEYWORD_INDEX]: Define.
10059         (linespec_lexer_lex_keyword): Export.
10060         (struct ls_parser) <keyword_ok>: Remove.
10061         A keyword is only a keyword if not followed by another keyword.
10062         (linespec_lexer_lex_one): Remove keyword_ok handling.
10063         Add comment explaining why the parsing stream is not advanced
10064         when a keyword is seen.
10065         (parse_linespec): Remove parser->keyword_ok.
10066         * linespec.h (linespec_lexer_lex_keyword): Add declaration.
10067
10068 2015-03-23  Keith Seitz  <keiths@redhat.com>
10069
10070         PR gdb/18021
10071         * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
10072         if we find a static method with DW_AT_vtable_elem_location.
10073
10074 2015-03-21  Eli Zaretskii  <eliz@gnu.org>
10075
10076         * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
10077         before the second loop, to avoid undefined behavior.  Reported by
10078         Anton Blanchard <anton@samba.org>.
10079
10080 2015-03-20  Keven Boell  <keven.boell@intel.com>
10081
10082         * gdbtypes.c (resolve_dynamic_type_internal): Adapt
10083         data_location usage to linked list.
10084         (resolve_dynamic_type_internal): Adapt data_location to
10085         linked list.
10086         (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
10087         (copy_type_recursive, copy_type): Add copy of linked list.
10088         * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
10089         (struct dynamic_prop_list): New struct.
10090         * dwarf2read.c (set_die_type): Set data_location data.
10091
10092 2015-03-20  Pedro Alves  <palves@redhat.com>
10093
10094         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
10095         inner block and make it const.
10096         * machoread.c (get_archive_prefix_len): Make "lparen" const.
10097
10098 2015-03-20  Pedro Alves  <palves@redhat.com>
10099
10100         * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
10101         * breakpoint.h (set_breakpoint_condition): Update declaration.
10102
10103 2015-03-20  Pedro Alves  <palves@redhat.com>
10104
10105         * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
10106
10107 2015-03-20  Pedro Alves  <palves@redhat.com>
10108
10109         * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
10110
10111 2015-03-20  Pedro Alves  <palves@redhat.com>
10112
10113         * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
10114
10115 2015-03-20  Pedro Alves  <palves@redhat.com>
10116
10117         * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
10118         (nto_init_solib_absolute_prefix): Likewise.
10119
10120 2015-03-20  Pedro Alves  <palves@redhat.com>
10121
10122         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
10123         * spu-tdep.c (spu_gdbarch_init): Make "name" const.
10124
10125 2015-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
10126
10127         * config/djgpp/README: Remove gdb.hp.
10128
10129 2015-03-20  Yao Qi  <yao.qi@linaro.org>
10130
10131         * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10132         set_gdbarch_cannot_step_breakpoint.
10133
10134 2015-03-19  Pedro Alves  <palves@redhat.com>
10135
10136         * linux-nat.c (linux_resume_one_lwp): Rename to ...
10137         (linux_resume_one_lwp_throw): ... this.  Don't handle ESRCH here,
10138         instead call perror_with_name.
10139         (check_ptrace_stopped_lwp_gone): New function.
10140         (linux_resume_one_lwp): Reimplement as wrapper around
10141         linux_resume_one_lwp_throw that swallows errors if the LWP is
10142         gone.
10143         (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
10144         swallows errors if the LWP is gone.  Use
10145         linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
10146
10147 2015-03-19  Pedro Alves  <palves@redhat.com>
10148
10149         * linux-nat.c (status_callback): Return early if the LWP has no
10150         status pending.
10151
10152 2015-03-19  Pedro Alves  <palves@redhat.com>
10153
10154         * linux-nat.c (select_event_lwp_callback): Update comment to no
10155         longer mention SIGTRAP.
10156
10157 2015-03-18  Tristan Gingold  <gingold@adacore.com>
10158
10159         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
10160         redirection code to ...
10161         (amd64_windows_frame_decode_insns): ... Here.  Fix in prologue
10162         checks.  Fix SAVE_NONVOL operations.  Add debug code and comments.
10163
10164 2015-03-18  Gary Benson <gbenson@redhat.com>
10165
10166         (remote_protocol_features): Remove the "vFile:fstat" feature.
10167         (remote_hostio_fstat): Probe for "vFile:fstat" support.
10168
10169 2015-03-11  Yao Qi  <yao.qi@linaro.org>
10170
10171         PR tdep/18107
10172         * aarch64-linux-tdep.c: Include xml-syscall.h
10173         (aarch64_linux_get_syscall_number): New function.
10174         (aarch64_linux_init_abi): Call
10175         set_gdbarch_get_syscall_number.
10176         * syscalls/aarch64-linux.xml: New file.
10177
10178 2015-03-17  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
10179
10180         * ser-base.h (ser_base_setstopbits): Change second argument name
10181         from "rate" to "num".
10182
10183 2015-03-17  Gary Benson <gbenson@redhat.com>
10184             Luke Allardyce <lukeallardyce@gmail.com>
10185
10186         PR gdb/18131
10187         * common/common-remote-fileio.h (sys/stat.h): New include.
10188         (stuct stat): Remove forward declaration.
10189
10190 2015-03-16  John Baldwin  <jhb@FreeBSD.org>
10191
10192         * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
10193         before writing core register notes.
10194
10195 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
10196             Pedro Alves  <palves@redhat.com>
10197
10198         * gdb_curses.h (tgetnum): Mark with EXTERN_C.
10199         * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
10200         (tgoto): Wrap with extern "C".
10201
10202 2015-03-16  Pedro Alves  <palves@redhat.com>
10203             Yuanhui Zhang  <asmwarrior@gmail.com>
10204
10205         * stub-termcap.c (tputs): Change prototype.
10206
10207 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
10208             Pedro Alves  <palves@redhat.com>
10209
10210         * windows-nat.c (struct thread_info_struct): Rename to ...
10211         (struct windows_thread_info_struct): ... this.
10212         (thread_info): Rename to ...
10213         (windows_thread_info): ... this.
10214         All users updated.
10215
10216 2015-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10217             Pedro Alves  <palves@redhat.com>
10218
10219         * NEWS: New Removed targets and native configurations.
10220
10221 2015-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
10222
10223         Remove HPUX.
10224         * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10225         (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10226         (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10227         ia64-hpux-tdep.h, solib-ia64-hpux.h.
10228         (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10229         ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10230         * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10231         hppa-hpux-tdep.c.
10232         * config/ia64/hpux.mh: Remove file.
10233         * config/pa/hpux.mh: Remove file.
10234         * configure: Rebuilt.
10235         * configure.ac (dlgetmodinfo, somread.o): Remove.
10236         * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10237         (ia64-*-hpux*): Remove its float format exception.
10238         * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10239         * hppa-hpux-nat.c: Remove file.
10240         * hppa-hpux-tdep.c: Remove file.
10241         * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10242         Move them here from hppa-tdep.h
10243         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10244         (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10245         * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10246         Move them to hppa-tdep.c.
10247         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10248         declarations.
10249         * ia64-hpux-nat.c: Remove file.
10250         * ia64-hpux-tdep.c: Remove file.
10251         * ia64-hpux-tdep.h: Remove file.
10252         * inf-ttrace.c: Remove file.
10253         * inf-ttrace.h: Remove file.
10254         * solib-ia64-hpux.c: Remove file.
10255         * solib-ia64-hpux.h: Remove file.
10256         * solib-pa64.c: Remove file.
10257         * solib-pa64.h: Remove file.
10258         * solib-som.c: Remove file.
10259         * solib-som.h: Remove file.
10260         * somread.c: Remove file.
10261
10262 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
10263
10264         * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10265         * config.in: Regenerate.
10266         * configure: Regenerate.
10267         * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
10268         define.
10269         (fbsd_find_memory_regions): Use kinfo_getvmmap to
10270         enumerate memory regions if present.
10271
10272 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
10273
10274         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10275         * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10276         expressions.
10277         (i386fbsd_sigtramp_p): Likewise.
10278
10279 2015-03-12  John Baldwin  <jhb@FreeBSD.org>
10280
10281         * MAINTAINERS (Write After Approval): Add John Baldwin.
10282
10283 2015-03-12  Gary Benson <gbenson@redhat.com>
10284
10285         * solib.c (_initialize_solib): Make "set/show sysroot" use
10286         add_setshow_optional_filename_cmd so it can be restored to
10287         empty after being set.
10288
10289 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
10290
10291         * Makefile.in (SFILES): New source break-catch-syscall.c.
10292         (COMMON_OBS): New object break-catch-syscall.o.
10293         * break-catch-syscall.c: New file.
10294         * breakpoint.c: Remove inclusion of "xml-syscall.h".
10295         (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10296         (struct syscall_catchpoint): Likewise.
10297         (dtor_catch_syscall): Likewise.
10298         (catch_syscall_inferior_data): Likewise.
10299         (struct catch_syscall_inferior_data): Likewise.
10300         (get_catch_syscall_inferior_data): Likewise.
10301         (catch_syscall_inferior_data_cleanup): Likewise.
10302         (insert_catch_syscall): Likewise.
10303         (remove_catch_syscall): Likewise.
10304         (breakpoint_hit_catch_syscall): Likewise.
10305         (print_it_catch_syscall): Likewise.
10306         (print_one_catch_syscall): Likewise.
10307         (print_mention_catch_syscall): Likewise.
10308         (print_recreate_catch_syscall): Likewise.
10309         (catch_syscall_breakpoint_ops): Likewise.
10310         (syscall_catchpoint_p): Likewise.
10311         (create_syscall_event_catchpoint): Likewise.
10312         (catch_syscall_split_args): Likewise.
10313         (catch_syscall_command_1): Likewise.
10314         (is_syscall_catchpoint_enabled): Likewise.
10315         (catch_syscall_enabled): Likewise.
10316         (catching_syscall_number): Likewise.
10317         (catch_syscall_completer): Likewise.
10318         (clear_syscall_counts): Likewise.
10319         (initialize_breakpoint_ops): Move initialization of syscall
10320         catchpoints to break-catch-syscall.c.
10321         (_initialize_breakpoint): Move code related to syscall catchpoints
10322         to break-catch-syscall.c.
10323
10324 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
10325
10326         * breakpoint.c (breakpoint_find_if): New function.
10327         * breakpoint.h (breakpoint_find_if): New prototype.
10328
10329 2015-03-11  Gary Benson <gbenson@redhat.com>
10330
10331         * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10332         * remote-fileio.c (remote_fileio_to_host_uint): New function.
10333         (remote_fileio_to_host_ulong): Likewise.
10334         (remote_fileio_to_host_mode): Likewise.
10335         (remote_fileio_to_host_time): Likewise.
10336         (remote_fileio_to_host_stat): Likewise.
10337         * remote.c (PACKET_vFile_fstat): New enum value.
10338         (remote_protocol_features): Register the "vFile:fstat" feature.
10339         (remote_hostio_fstat): New function.
10340         (remote_bfd_iovec_stat): Use the above.
10341         (_initialize_remote): Register new "set/show remote
10342         hostio-fstat-packet" command.
10343         * symfile.c (separate_debug_file_exists): Update comment.
10344         * NEWS: Announce new vFile:fstat packet.
10345
10346 2015-03-11  Gary Benson <gbenson@redhat.com>
10347
10348         * common/common-remote-fileio.h: New file.
10349         * common/common-remote-fileio.c: Likewise.
10350         * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10351         (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10352         (COMMON_OBS): Add common-remote-fileio.o.
10353         (common-remote-fileio.o): New rule.
10354         * remote-fileio.h (common-remote-fileio.h): New include.
10355         * remote-fileio.c (gdb/fileio.h): Do not include.
10356         (remote_fileio_to_be): Moved to common-remote-fileio.h.
10357         (remote_fileio_to_fio_uint): Likewise.
10358         (remote_fileio_to_fio_time): Likewise.
10359         (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10360         (remote_fileio_to_fio_mode): Likewise.
10361         (remote_fileio_to_fio_ulong): Likewise.
10362         (remote_fileio_to_fio_stat): Likewise.
10363
10364 2015-03-11  Andy Wingo  <wingo@igalia.com>
10365
10366         * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10367         we were checking the cached type, not the cached dynamic type.
10368
10369 2015-03-11  Andy Wingo  <wingo@igalia.com>
10370
10371         * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10372         other strings, as these are on the GC'd heap, and will be
10373         collected along with the smob.
10374
10375 2015-03-11  Andy Wingo  <wingo@igalia.com>
10376
10377         * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10378         (objfile_functions): Bind gdbscm_objfile_progspace to
10379         objfile-progspace.
10380         * guile/lib/gdb.scm: Add objfile-progspace to exports.
10381
10382 2015-03-11  Andy Wingo  <wingo@igalia.com>
10383
10384         * guile/guile.c (_initialize_guile): Disable automatic
10385         finalization, if Guile offers us that possibility.
10386         * guile/guile.c (call_initialize_gdb_module):
10387         * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10388         finalizers in appropriate places.
10389         * configure.ac (AC_TRY_LIBGUILE): Add a check for
10390         scm_set_automatic_finalization_enabled.
10391         * configure: Regenerated.
10392
10393 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10394
10395         * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10396         SAL, if possible.
10397
10398 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10399
10400         * s390-linux-nat.c (struct arch_lwp_info): New.
10401         (s390_fix_watch_points): Rename to...
10402         (s390_prepare_to_resume): ...this.  Skip the PER info update
10403         unless the watch points have changed.
10404         (s390_refresh_per_info, s390_new_thread): New functions.
10405         (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10406         s390_fix_watch_points.
10407         (s390_remove_watchpoint): Likewise.
10408         (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10409         Register s390_prepare_to_resume.
10410
10411 2015-03-09  Pedro Alves  <palves@redhat.com>
10412
10413         Revert:
10414         2015-03-07  Pedro Alves  <palves@redhat.com>
10415         * common/gdb_socket.h: New file.
10416         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
10417         sys/socket.h.
10418         (net_open): Use union gdb_sockaddr_u.
10419
10420 2015-03-07  Pedro Alves  <palves@redhat.com>
10421
10422         * configure.ac (build_warnings): Move -Wmissing-prototypes
10423         -Wdeclaration-after-statement -Wmissing-parameter-type
10424         -Wold-style-declaration -Wold-style-definition to the C-specific
10425         set.
10426         * configure: Regenerate.
10427
10428 2015-03-07  Pedro Alves  <palves@redhat.com>
10429
10430         * common/gdb_socket.h: New file.
10431         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
10432         sys/socket.h.
10433         (net_open): Use union gdb_sockaddr_u.
10434
10435 2015-03-07  Pedro Alves  <palves@redhat.com>
10436
10437         * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10438         (exceptions_state_mc_action_iter)
10439         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10440         Don't define.
10441         [__cplusplus] (try_scope_depth): New global.
10442         [__cplusplus] (exception_try_scope_entry)
10443         (exception_try_scope_exit, gdb_exception_sliced_copy)
10444         (exception_rethrow): New functions.
10445         (throw_exception): In C++ mode, throw
10446         gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10447         gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10448         (throw_it): In C++ mode, use try_scope_depth.
10449         * common/common-exceptions.h [!__cplusplus]
10450         (exceptions_state_mc_action_iter)
10451         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10452         Don't declare.
10453         [__cplusplus] (exception_try_scope_entry)
10454         (exception_try_scope_exit, exception_rethrow): Declare.
10455         [__cplusplus] (struct exception_try_scope): New struct.
10456         [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10457         C++ exceptions.
10458         (struct gdb_exception_RETURN_MASK_ALL)
10459         (struct gdb_exception_RETURN_MASK_ERROR)
10460         (struct gdb_exception_RETURN_MASK_QUIT): New types.
10461
10462 2015-03-07  Pedro Alves  <palves@redhat.com>
10463
10464         * main.c (handle_command_errors): Remove volatile qualifier from
10465         parameter.
10466
10467 2015-03-07  Pedro Alves  <palves@redhat.com>
10468
10469         * breakpoint.c (save_breakpoints): Adjust to avoid code between
10470         TRY and CATCH.
10471         * gdbtypes.c (safe_parse_type): Remove empty line.
10472         (types_deeply_equal):
10473         * guile/scm-frame.c (gdbscm_frame_name):
10474         * linux-thread-db.c (find_new_threads_once):
10475         * python/py-breakpoint.c (bppy_get_commands):
10476         * record-btrace.c (record_btrace_insert_breakpoint)
10477         (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10478         (record_btrace_start_replaying): Adjust to avoid code between TRY
10479         and CATCH.
10480
10481 2015-03-07  Pedro Alves  <palves@redhat.com>
10482
10483         * common/common-exceptions.c (struct catcher) <exception>: No
10484         longer a pointer to volatile exception.  Now an exception value.
10485         <mask>: Delete field.
10486         (exceptions_state_mc_init): Remove all parameters.  Adjust.
10487         (exceptions_state_mc): No longer pop the catcher here.
10488         (exceptions_state_mc_catch): New function.
10489         (throw_exception): Adjust.
10490         * common/common-exceptions.h (exceptions_state_mc_init): Remove
10491         all parameters.
10492         (exceptions_state_mc_catch): Declare.
10493         (TRY_CATCH): Rename to ...
10494         (TRY): ... this.  Remove EXCEPTION and MASK parameters.
10495         (CATCH, END_CATCH): New.
10496         All callers adjusted.
10497
10498 2015-03-07  Tom Tromey  <tromey@redhat.com>
10499
10500         * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10501
10502 2015-03-07  Pedro Alves  <palves@redhat.com>
10503
10504         * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10505         (amd64_epilogue_frame_cache): Normal exception handling code.
10506         * break-catch-throw.c (check_status_exception_catchpoint)
10507         (re_set_exception_catchpoint): Ditto.
10508         * cli/cli-interp.c (safe_execute_command):
10509         * cli/cli-script.c (script_from_file): Ditto.
10510         * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10511         Ditto.
10512         * compile/compile-object-run.c (compile_object_run): Ditto.
10513         * cp-abi.c (baseclass_offset): Ditto.
10514         * cp-valprint.c (cp_print_value): Ditto.
10515         * exceptions.c (catch_exceptions_with_msg):
10516         * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10517         * frame.c (get_frame_address_in_block_if_available): Ditto.
10518         * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10519         (i386_sigtramp_frame_cache): Ditto.
10520         * infcmd.c (post_create_inferior): Ditto.
10521         * linespec.c (parse_linespec, find_linespec_symbols):
10522         * p-valprint.c (pascal_object_print_value): Ditto.
10523         * parse.c (parse_expression_for_completion): Ditto.
10524         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10525         * remote.c (remote_get_noisy_reply): Ditto.
10526         * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10527         * solib-svr4.c (solib_svr4_r_map): Ditto.
10528
10529 2015-03-06  Gary Benson  <gbenson@redhat.com>
10530
10531         * common/common-utils.h (startswith): New inline function.
10532         All places where this logic was used updated to use the above.
10533
10534 2015-03-05  Pedro Alves  <palves@redhat.com>
10535
10536         PR gdb/18002
10537         * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10538         after reading the breakpoint's shadow memory.
10539
10540 2015-03-05  Mark Kettenis  <kettenis@gnu.org>
10541
10542         * hppabsd-nat.c: Remove file.
10543         * hppaobsd-nat.c: New file.
10544         * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c.  Add
10545         hppaobsd-nat.c.
10546         * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10547         hppaobsd-nat.o.
10548
10549 2015-03-04  Pedro Alves  <palves@redhat.com>
10550
10551         * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10552         (target_decr_pc_after_break): Delete declaration.
10553         * target.c (default_target_decr_pc_after_break)
10554         (target_decr_pc_after_break): Delete.
10555         * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10556         gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10557         * linux-thread-db.c (check_event): Likewise.
10558         * infrun.c (adjust_pc_after_break): Likewise.
10559         * darwin-nat.c (cancel_breakpoint): Likewise.
10560         * aix-thread.c (aix_thread_wait): Likewise.
10561         * target-delegates.c: Regenerate.
10562
10563 2015-03-04  Pedro Alves  <palves@redhat.com>
10564
10565         * linux-nat.c (save_sigtrap): Check for breakpoints before
10566         checking watchpoints.
10567         (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10568         breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10569         (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10570         a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10571         (linux_nat_stopped_by_sw_breakpoint)
10572         (linux_nat_supports_stopped_by_sw_breakpoint)
10573         (linux_nat_stopped_by_hw_breakpoint)
10574         (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10575         (linux_nat_wait_1): Don't re-increment the PC if relying on
10576         SIGTRAP's siginfo->si_code.
10577         (linux_nat_add_target): Install new target methods.
10578         * linux-thread-db.c (check_event): Don't account for breakpoint PC
10579         offset if the target already adjusted the PC.
10580         * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10581         (GDB_ARCH_TRAP_BRKPT): New.
10582         (TRAP_HWBKPT): Define if not already defined.
10583
10584 2015-03-04  Pedro Alves  <palves@redhat.com>
10585
10586         * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10587         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10588         Delete field.
10589         <stop_reason>: New field.
10590         (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10591         (packet_set_cmd_state): New function.
10592         (remote_protocol_features): Register the "swbreak" and "hwbreak"
10593         features.
10594         (remote_query_supported): If not disabled with the corresponding
10595         "set remote foo-packet" command, report support for the swbreak
10596         and hwbreak features.
10597         (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10598         field.
10599         <stop_reason>: New field.
10600         (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10601         (remote_wait_as): Adjust.
10602         (remote_stopped_by_sw_breakpoint)
10603         (remote_supports_stopped_by_sw_breakpoint)
10604         (remote_stopped_by_hw_breakpoint)
10605         (remote_supports_stopped_by_hw_breakpoint): New functions.
10606         (remote_stopped_by_watchpoint): New function.
10607         (init_remote_ops): Install them.
10608         (_initialize_remote): Register new "set/show remote
10609         swbreak-feature-packet" and "set/show remote
10610         swbreak-feature-packet" commands.
10611
10612 2015-03-04  Pedro Alves  <palves@redhat.com>
10613
10614         * btrace.h: Include target/waitstatus.h.
10615         (struct btrace_thread_info) <stop_reason>: New field.
10616         * record-btrace.c (record_btrace_step_thread): Use
10617         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10618         (record_btrace_decr_pc_after_break): Delete.
10619         (record_btrace_stopped_by_sw_breakpoint)
10620         (record_btrace_supports_stopped_by_sw_breakpoint)
10621         (record_btrace_stopped_by_hw_breakpoint)
10622         (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10623         (init_record_btrace_ops): Install them.
10624         * record-full.c (record_full_hw_watchpoint): Delete and replace
10625         with ...
10626         (record_full_stop_reason): ... this throughout.
10627         (record_full_exec_insn): Adjust.
10628         (record_full_wait_1): Adjust.  No longer re-increment the PC.
10629         (record_full_wait_1): Adjust.  Use
10630         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10631         (record_full_stopped_by_watchpoint): Adjust.
10632         (record_full_stopped_by_sw_breakpoint)
10633         (record_full_supports_stopped_by_sw_breakpoint)
10634         (record_full_supports_stopped_by_sw_breakpoint)
10635         (record_full_stopped_by_hw_breakpoint)
10636         (record_full_supports_stopped_by_hw_breakpoint): New functions.
10637         (init_record_full_ops, init_record_full_core_ops): Install them.
10638         * record.c (record_check_stopped_by_breakpoint): New function.
10639         * record.h: Include target/waitstatus.h.
10640         (record_check_stopped_by_breakpoint): New declaration.
10641
10642 2015-03-04  Pedro Alves  <palves@redhat.com>
10643
10644         enum lwp_stop_reason -> enum target_stop_reason
10645         * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10646         (linux_nat_stopped_by_watchpoint, status_callback)
10647         (linux_nat_wait_1): Adjust.
10648         * linux-nat.h (enum lwp_stop_reason): Delete.
10649         (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10650         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10651         * target/waitstatus.h (enum target_stop_reason): New.
10652
10653 2015-03-04  Pedro Alves  <palves@redhat.com>
10654
10655         * breakpoint.c (need_moribund_for_location_type): New function.
10656         (bpstat_stop_status): Don't skipping checking moribund locations
10657         of breakpoint types which the target tell caused a stop.
10658         (program_breakpoint_here_p): New function, factored out from ...
10659         (bp_loc_is_permanent): ... this.
10660         (update_global_location_list): Don't create a moribund location if
10661         the target supports reporting stops of the type of the removed
10662         breakpoint.
10663         * breakpoint.h (program_breakpoint_here_p): New declaration.
10664         * infrun.c (adjust_pc_after_break): Return early if the target has
10665         already adjusted the PC.  Add comments.
10666         (handle_signal_stop): If nothing explains a signal, and the target
10667         tells us the stop was caused by a software breakpoint, check if
10668         there's a breakpoint instruction in the memory.  If so, adjust the
10669         PC before presenting the stop to the user.  Otherwise, ignore the
10670         trap.  If nothing explains a signal, and the target tells us the
10671         stop was caused by a hardware breakpoint, ignore the trap.
10672         * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10673         to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10674         to_supports_stopped_by_hw_breakpoint>: New fields.
10675         (target_stopped_by_sw_breakpoint)
10676         (target_supports_stopped_by_sw_breakpoint)
10677         (target_stopped_by_hw_breakpoint)
10678         (target_supports_stopped_by_hw_breakpoint): Define.
10679         * target-delegates.c: Regenerate.
10680
10681 2015-03-04  Pedro Alves  <palves@redhat.com>
10682
10683         * infrun.c (follow_fork_inferior): Use the whole of the
10684         inferior_ptid and pending_follow.related_pid ptids instead of
10685         building ptids from the process components.  Adjust verbose output
10686         to use target_pid_to_str.
10687         * linux-nat.c (linux_child_follow_fork): Use the whole of the
10688         inferior_ptid and pending_follow.related_pid ptids instead of
10689         building ptids from the process components.
10690
10691 2015-03-04  Mark Kettenis  <kettenis@gnu.org>
10692
10693         * inf-ptrace.c [PT_GET_PROCESS_STATE]
10694         (inf_ptrace_insert_fork_catchpoint): New function.
10695         (inf_ptrace_remove_fork_catchpoint): New function.
10696         (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10697
10698 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10699
10700         * s390-linux-tdep.c (s390_register_name): Return empty string
10701         instead of NULL for registers that shouldn't be visible.
10702
10703 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10704
10705         * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10706         XML file for 64-bit targets.
10707
10708 2015-03-03  Simon Marchi  <simon.marchi@ericsson.com>
10709
10710         * target.h (find_default_create_inferior): Remove declaration.
10711         (find_default_attach): Likewise.
10712
10713 2015-03-03  Pedro Alves  <palves@redhat.com>
10714
10715         * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10716         Use ptid_get_pid to get the overall process id when resuming all
10717         threads.
10718
10719 2015-03-03  Pedro Alves  <palves@redhat.com>
10720
10721         * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10722         the lwp field of ptid.  Pass the full ptid to get_thread_regcache.
10723         * inf-ptrace.c (get_ptrace_pid): New function.
10724         (inf_ptrace_resume): Use it.
10725         * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10726         to the lower layer.
10727
10728 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10729
10730         * nat/linux-btrace.c: Include sys/utsname.h.
10731         (linux_determine_kernel_ptr_bits): New.
10732         (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10733         * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10734         ptr_bits.
10735
10736 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10737
10738         * btrace.c (ftrace_update_function): Treat return as tailcall for
10739         "_dl_runtime_resolve".
10740
10741 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
10742
10743         * btrace.h (btrace_function) <lbegin, lend>: Remove.
10744         * btrace.c (ftrace_debug): Do not print the line range.
10745         (ftrace_skip_file, ftrace_update_lines): Remove.
10746         (ftrace_new_function): Remove lbegin and lend initialization.
10747         (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10748         * record-btrace.c (btrace_compute_src_line_range): New.
10749         (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10750
10751 2015-03-02  Pedro Alves  <palves@redhat.com>
10752
10753         * infrun.c (follow_exec): Delete all threads of the process except
10754         the event thread.  Extended comments.
10755
10756 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10757
10758         * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10759
10760 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
10761
10762         * utils.h: Remove <stdbool.h> #include.
10763         (producer_is_gcc): Change return type to "int".
10764         * utils.c (producer_is_gcc): Change return type to int.
10765         Return 1 instead of true, and 0 instead of false.
10766         Adjust function documentation accordingly.
10767
10768 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10769
10770         * s390-linux-nat.c (have_regset_vxrs): New static variable.
10771         (s390_linux_fetch_inferior_registers): Handle vector registers, if
10772         present.
10773         (s390_linux_store_inferior_registers): Likewise.
10774         (s390_get_hwcap): Remove function.  Embed its logic...
10775         (s390_read_description): ...here.  Yield a target description with
10776         vector registers if applicable.
10777         * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10778         "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10779         "features/s390x-tevx-linux64.c".
10780         (struct gdbarch_tdep) <v0_full_regnum>: New field.
10781         (s390_dwarf_regmap): Add vector registers.  Remove bogus entries
10782         for "GNU/Linux-specific registers".
10783         (s390_dwarf_reg_r0l): New enum value.
10784         (s390_dwarf_reg_to_regnum): Support vector registers.
10785         (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10786         of GPR lower halves.
10787         (regnum_is_vxr_full): New function.
10788         (s390_register_name): New function.
10789         (s390_pseudo_register_name): Handle v0-v15, which are composed of
10790         f0-f15 and v0l-v15l.
10791         (s390_pseudo_register_type): Likewise.
10792         (s390_pseudo_register_read): Likewise.
10793         (s390_pseudo_register_write): Likewise.
10794         (s390_value_from_register): Account for the fact that values are
10795         placed left-justified in vector registers.
10796         (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10797         the vector reggroup and omit them from the general reggroup.
10798         (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10799         (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10800         (s390_iterate_over_regset_sections): Add iterations for the two
10801         new vector regsets.
10802         (s390_core_read_description): Yield a target description with
10803         vector registers if applicable.
10804         (s390_gdbarch_init): Handle target descriptions with vector
10805         registers.  Add "register_name" gdbarch method.
10806         (_initialize_s390_tdep): Call new tdesc initialization functions.
10807         * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10808         (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10809         (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10810         (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10811         (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10812         (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10813         (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10814         (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10815         (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10816         (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10817         (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10818         (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10819         (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10820         (S390_NUM_REGS): Adjust value.
10821         (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10822         (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10823         (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10824         * NEWS: Announce S/390 vector register support.
10825
10826 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
10827
10828         * features/s390-tevx-linux64.xml: New file.
10829         * features/s390-vx-linux64.xml: New file.
10830         * features/s390-vx.xml: New file.
10831         * features/s390x-tevx-linux64.xml: New file.
10832         * features/s390x-vx-linux64.xml: New file.
10833         * features/Makefile (WHICH): Add s390-vx-linux64,
10834         s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10835         (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10836         (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10837         macros.
10838         * features/s390-tevx-linux64.c: New generated file.
10839         * features/s390-vx-linux64.c: Likewise.
10840         * features/s390x-tevx-linux64.c: Likewise.
10841         * features/s390x-vx-linux64.c: Likewise.
10842         * regformats/s390-tevx-linux64.dat: Likewise.
10843         * regformats/s390-vx-linux64.dat: Likewise.
10844         * regformats/s390x-tevx-linux64.dat: Likewise.
10845         * regformats/s390x-vx-linux64.dat: Likewise.
10846
10847 2015-02-28  Doug Evans  <xdje42@gmail.com>
10848
10849         * symtab.h (struct symtab) <next>: Fix comment.
10850
10851 2015-02-27  Simon Marchi  <simon.marchi@ericsson.com>
10852
10853         * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10854         python_GdbMethods.
10855
10856 2015-02-27  Pedro Alves  <palves@redhat.com>
10857
10858         * dtrace-probe.c (dtrace_probe_ops): Make extern.
10859
10860 2015-02-27  Pedro Alves  <palves@redhat.com>
10861
10862         * common/common-exceptions.h (exception_none): Declare.
10863         * common/common-exceptions.c (exception_none): Moved from
10864         exceptions.c.
10865         (exceptions_state_mc_init): Use exception_none.
10866         * exceptions.c (exception_none): Move to
10867         common/common-exceptions.c.
10868         * exceptions.h (exception_none): Move to
10869         common/common-exceptions.h.
10870
10871 2015-02-27  Pedro Alves  <palves@redhat.com>
10872
10873         * main.c (catch_command_errors, catch_command_errors_const):
10874         Remove 'mask' argument.  Adjust.
10875         (captured_main): Adjust callers.
10876
10877 2015-02-27  Pedro Alves  <palves@redhat.com>
10878
10879         * python/python-internal.h: Include "extension-priv.h".
10880
10881 2015-02-27  Pedro Alves  <palves@redhat.com>
10882
10883         * breakpoint.h (enum print_stop_action): Move further up in the
10884         file.
10885
10886 2015-02-27  Pedro Alves  <palves@redhat.com>
10887
10888         * gdbarch.sh: Include regcache.h.
10889         * gdbarch.h: Regenerate.
10890
10891 2015-02-27  Pedro Alves  <palves@redhat.com>
10892
10893         * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10894         Remove duplicate const.
10895         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10896         duplicate const.
10897
10898 2015-02-27  Pedro Alves  <palves@redhat.com>
10899
10900         * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10901         * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10902         * features/feature_to_c.sh: Tag the generated xml_builtin array
10903         with extern const in C++ mode.
10904
10905 2015-02-27  Tom Tromey  <tromey@redhat.com>
10906
10907         * minidebug.c (struct lzma_stream): Rename to ...
10908         (struct gdb_lzma_stream): ... this.
10909         (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10910
10911 2015-02-27  Pedro Alves  <palves@redhat.com>
10912
10913         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10914         function.
10915         (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10916         (mi_cmd_stack_list_variables): Use it.
10917
10918 2015-02-27  Pedro Alves  <palves@redhat.com>
10919
10920         * x86-linux-nat.c (u_debugreg_offset): New function.
10921         (x86_linux_dr_get, x86_linux_dr_set): Use it.
10922
10923 2015-02-27  Pedro Alves  <palves@redhat.com>
10924
10925         * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10926         declaration.
10927         Include break-common.h.
10928
10929 2015-02-27  Tom Tromey  <tromey@redhat.com>
10930             Pedro Alves <palves@redhat.com>
10931
10932         * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10933         local used to iterate over enums.
10934         * completer.c (signal_completer): Likewise.
10935         * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10936         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10937         * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10938         * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10939         * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10940         (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10941         * tui-wingeneral.c (tui_refresh_all):  Likewise.
10942
10943 2015-02-27  Pedro Alves  <palves@redhat.com>
10944
10945         * target.h: Include "infrun.h".
10946
10947 2015-02-27  Pedro Alves  <palves@redhat.com>
10948
10949         * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10950
10951 2015-02-27  Pedro Alves  <palves@redhat.com>
10952
10953         * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10954         (IPA_SYM): Use it.
10955         * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10956
10957 2015-02-27  Pedro Alves  <palves@redhat.com>
10958
10959         * cli-out.c (_rl_erase_entire_line): Move declaration out of
10960         cli_mld_erase_entire_line, and make it extern "C".
10961         * common/common-defs.h (EXTERN_C): New.
10962         * completer.c (_rl_completion_prefix_display_length)
10963         (_rl_print_completions_horizontally, QSFUNC): Move declarations
10964         out of gdb_display_match_list_1.
10965         (_rl_qsort_string_compare): Move declaration out of
10966         gdb_display_match_list_1, and make it extern "C".
10967         * defs.h (re_comp): Use EXTERN_C.
10968         * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10969         and make it extern "C".
10970         (monstartup): Move declaration out of maintenance_set_profile_cmd,
10971         and make it extern "C".
10972         (main): Move declaration out of maintenance_set_profile_cmd.
10973         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10974         EXTERN_C.
10975
10976 2015-02-27  Pedro Alves  <palves@redhat.com>
10977
10978         * python/python.c (GdbMethods): Rename to ...
10979         (python_GdbMethods): ... this and make extern.
10980         (GdbModuleDef): Rename to ...
10981         (python_GdbModuleDef): ... this and make extern.
10982
10983 2015-02-27  Pedro Alves  <palves@redhat.com>
10984
10985         * record-btrace.c (set_record_btrace_cmdlist)
10986         (show_record_btrace_cmdlist): Remove redefinitions.
10987
10988 2015-02-27  Tom Tromey  <tromey@redhat.com>
10989             Pedro Alves  <palves@redhat.com>
10990
10991         * dwarf2-frame.c (enum cfa_how_kind, struct
10992         dwarf2_frame_state_reg_info): Move out of struct
10993         dwarf2_frame_state.
10994         * dwarf2read.c (struct tu_stats): Move out of struct
10995         dwarf2_per_objfile.
10996         (struct file_entry): Move out of struct line_header.
10997         (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10998         typedef_field_list): Move out of struct field_info.
10999         * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
11000         Move out of struct dynamic_prop.
11001         (union type_owner, union field_location, struct field, struct
11002         range_bounds, union type_specific): Move out of struct main_type.
11003         (struct fn_fieldlist, struct fn_field, struct typedef_field)
11004         (VOFFSET_STATIC): Move out of struct cplus_struct_type.
11005         (struct call_site_target, union call_site_parameter_u, struct
11006         call_site_parameter): Move out of struct call_site.
11007         * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
11008         m32c_prologue.
11009         (enum srcdest_kind): Move out of struct srcdest.
11010         * main.c (enum cmdarg_kind): Move out of struct cmdarg.
11011         * prologue-value.h (enum prologue_value_kind): Move out of struct
11012         prologue_value.
11013         * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
11014         gdbarch_tdep.
11015         * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
11016         out of struct field_info.
11017         * symfile.h (struct other_sections): Move out of struct
11018         section_addr_info.
11019         * symtab.c (struct symbol_cache_slot): Move out struct
11020         block_symbol_cache.
11021         * target-descriptions.c (enum tdesc_type_kind): Move out of
11022         typedef struct tdesc_type.
11023         * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
11024         struct tui_line_or_address.
11025         * value.c (enum internalvar_kind, union internalvar_data): Move
11026         out of struct internalvar.
11027         * xtensa-tdep.h (struct ctype_cache): Move out of struct
11028         gdbarch_tdep.
11029
11030 2015-02-27  Tom Tromey  <tromey@redhat.com>
11031             Pedro Alves  <palves@redhat.com>
11032
11033         Rename symbols whose names are reserved C++ keywords throughout.
11034
11035 2015-02-27  Pedro Alves  <palves@redhat.com>
11036
11037         * Makefile.in (COMPILER): New, get it from autoconf.
11038         (COMPILE.pre, CC_LD): Use COMPILER.
11039         (CXX): Get from autoconf instead.
11040         (CXX_FOR_TARGET): Default to g++ instead of gcc.
11041         * acinclude.m4: Include build-with-cxx.m4.
11042         * build-with-cxx.m4: New file.
11043         * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11044         Disable -Werror by default if building in C++ mode.
11045         (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11046         -Wno-narrowing in C++ mode.  Only enable -Wpointer-sign in C mode.
11047         Run supported-warning-flags tests with the C++ compiler.
11048         Save/restore CXXFLAGS too.
11049         * configure: Regenerate.
11050
11051 2015-02-27  Pedro Alves  <palves@redhat.com>
11052
11053         * libiberty.m4: New file.
11054         * acinclude.m4: Include libiberty.m4.
11055         * configure.ac: Call libiberty_INIT.
11056         * config.in, configure: Regenerate.
11057
11058 2015-02-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11059
11060         * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
11061         31-bit targets, but 64-bit targets as well.
11062         (s390_gnu_triplet_regexp): New function.
11063         (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
11064         64-bit targets as well.  Set the gnu_triplet_regexp gdbarch
11065         method.
11066
11067 2015-02-27  Jon TURNEY  <jon.turney@dronecode.org.uk>  (tiny patch)
11068
11069         * windows-nat.c (CONTEXT_DEBUGGER): Remove.
11070         (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS.  Incorporate flags
11071         from CONTEXT_DEBUGGER.
11072
11073 2015-02-26  Doug Evans  <dje@google.com>
11074
11075         * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
11076         CHECK_TYPEDEF.
11077         (set_type_vptr_fieldno): Ditto.
11078         (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
11079         * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
11080
11081 2015-02-26  Pedro Alves  <palves@redhat.com>
11082
11083         * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
11084         * complaints.c (vcomplaint): Pass argument FMT directly to
11085         printf-like functions instead of complaint->fmt.
11086         * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
11087         * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
11088         * compile/compile-loc2c.c (pushf, unary, binary): Add
11089         ATTRIBUTE_PRINTF.
11090         (do_compile_dwarf_expr_to_c): Pass string literal as format string
11091         to pushf.
11092         (BINARY): Pass string literal as format string to 'binary'.
11093         * compile/compile-object-load.c (link_callbacks_einfo): Add
11094         ATTRIBUTE_PRINTF.
11095         * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
11096
11097 2015-02-26  Pedro Alves  <palves@redhat.com>
11098
11099         * windows-termcap.c: Rename to ...
11100         * stub-termcap.c: ... this.  Adjust header line.
11101         * Makefile.in (SFILES): Refer to stub-termcap.c instead of
11102         windows-termcap.c.
11103         * configure: Regenerate.
11104         * configure.ac: Refer to stub-termcap.o instead of
11105         windows-termcap.o.
11106         * gdb_curses.h: Mention stub-termcap.c instead of
11107         windows-termcap.c.
11108
11109 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11110
11111         * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
11112         (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
11113
11114 2015-02-26  Antoine Tremblay  <antoine.tremblay@ericsson.com>
11115
11116         * gdb/infcmd.c (print_return_value): use type_to_string to print type.
11117
11118 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11119
11120         * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
11121         bfd_canonicalize_symtab.
11122
11123 2015-02-25  John Baldwin  <jhb@FreeBSD.org>
11124
11125         * amd64fbsd-nat.c: Include sys/user.h.
11126         (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11127         instead of KERN_PS_STRINGS to locate the signal trampoline.
11128         * i386fbsd-nat.c: Include sys/user.h.
11129         (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11130         instead of KERN_PS_STRINGS to locate the signal trampoline.
11131         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
11132         (amd64fbsd_sigtramp_p): New.
11133         (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
11134         longer set default values.
11135         (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
11136         * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
11137         (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
11138         (i386fbsd_freebsd4_sigtramp_start)
11139         (i386fbsd_freebsd4_sigtramp_middle)
11140         (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
11141         (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
11142         (i386fbsd_sigtramp_p): New.
11143         (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
11144         longer set default values.
11145         (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
11146
11147 2015-02-25  John Baldwin  <jhb@freebsd.org>
11148
11149         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
11150         get_frame_register instead of frame_unwind_register_unsigned.
11151
11152 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
11153
11154         PR build/18033
11155         * compile/compile-c-support.c (c_compute_program): Change // comment.
11156         * compile/compile-object-load.c (setup_sections): Change // comment.
11157
11158 2015-02-26  Joel Brobecker  <brobecker@adacore.com>
11159
11160         PR build/18033:
11161         * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
11162
11163 2015-02-23  Pedro Alves  <palves@redhat.com>
11164
11165         * remote.c (skip_to_semicolon): New function.
11166         (remote_parse_stop_reply) <T stop reply>: Use it.  Don't
11167         special case the stop reasons that look like hex numbers
11168         upfront.  Instead handle real register numbers after matching
11169         all the known stop reasons.
11170
11171 2015-02-21  Doug Evans  <dje@google.com>
11172
11173         PR c++/17976, symtab/17821
11174         * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
11175         is_in_anonymous.  All callers updated.
11176         (find_symbol_in_baseclass): Ditto.
11177         (cp_lookup_nested_symbol_1): Ditto.  Don't search all static blocks
11178         for symbols in an anonymous namespace.
11179         * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
11180         DW_AT_name directly.
11181         (dwarf2_name): Convert missing namespace name to
11182         CP_ANONYMOUS_NAMESPACE_STR.
11183
11184 2015-02-20  Pedro Alves  <palves@redhat.com>
11185
11186         * linux-nat.c (linux_handle_extended_wait): Call
11187         thread_db_notice_clone whenever a new clone LWP is detected.
11188         (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
11189         functions.
11190         * linux-nat.h (thread_db_attach_lwp): Delete declaration.
11191         (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
11192         (linux_unstop_all_lwps): Declare.
11193         * linux-thread-db.c (struct thread_get_info_inout): Delete.
11194         (thread_get_info_callback): Delete.
11195         (thread_from_lwp): Use td_thr_get_info and record_thread.
11196         (thread_db_attach_lwp): Delete.
11197         (thread_db_notice_clone): New function.
11198         (try_thread_db_load_1): If /proc is mounted and shows the
11199         process'es task list, walk over all LWPs and call thread_from_lwp
11200         instead of relying on td_ta_thr_iter.
11201         (attach_thread): Don't call check_thread_signals here.  Split the
11202         tail part of the function (which adds the thread to the core GDB
11203         thread list) to ...
11204         (record_thread): ... this function.  Call check_thread_signals
11205         here.
11206         (thread_db_wait): Don't call thread_db_find_new_threads_1.  Always
11207         call thread_from_lwp.
11208         (thread_db_update_thread_list): Rename to ...
11209         (thread_db_update_thread_list_org): ... this.
11210         (thread_db_update_thread_list): New function.
11211         (thread_db_find_thread_from_tid): Delete.
11212         (thread_db_get_ada_task_ptid): Simplify.
11213         * nat/linux-procfs.c: Include <sys/stat.h>.
11214         (linux_proc_task_list_dir_exists): New function.
11215         * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
11216
11217 2015-02-20  Pedro Alves  <palves@redhat.com>
11218
11219         * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11220         main LWP.  Handle the case of waitpid returning 0 if we're already
11221         attached to the LWP.  Don't set the LWP's last_resume_kind to
11222         resume_stop if we already knew about the LWP.
11223         (linux_nat_filter_event): Add debug logs.
11224
11225 2015-02-20  Pedro Alves  <palves@redhat.com>
11226
11227         * target.h (forward_target_decr_pc_after_break): Delete
11228         declaration.
11229
11230 2015-02-20  Pedro Alves  <palves@redhat.com>
11231
11232         PR threads/18006
11233         * linux-thread-db.c (thread_get_info_callback): Return early if
11234         the thread's lwp id is -1.
11235
11236 2015-02-20  Joel Brobecker  <brobecker@adacore.com>
11237
11238         GDB 7.9 released.
11239
11240 2015-02-19  Steve Ellcey  <sellcey@imgtec.com>
11241
11242         * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11243         (dtrace_get_probes) Change type of variable 'dof'.
11244
11245 2015-02-19  Antoine Tremblay  <antoine.tremblay@ericsson.com>
11246
11247         PR breakpoints/16812
11248         * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11249         * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11250         * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11251
11252 2015-02-19  David Taylor  <dtaylor@emc.com>
11253
11254         * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11255
11256 2015-02-18  Patrick Palka  <patrick@parcs.ath.cx>
11257
11258         * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11259         function.
11260         (tui_putc): Don't call tui_handle_resize_during_io.
11261         (tui_getc): Likewise.
11262         (tui_mld_getc): Likewise.
11263         * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11264         (tui_sigwinch_token): New static variable.
11265         (tui_initialize_win): Adjust documentation.  Set
11266         tui_sigwinch_token.
11267         (tui_async_resize_screen): New asynchronous callback.
11268         (tui_sigwinch_handler): Adjust documentation.  Asynchronously
11269         invoke tui_async_resize_screen.
11270
11271 2015-02-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
11272
11273         * configure: Regenerated.
11274         * configure.ac: Use GDB_AC_TRANSFORM.
11275         * Makefile.in (aclocal_m4_deps): Added transform.m4.
11276         * acinclude.m4: sinclude transform.m4.
11277         * transform.m4: New file.
11278         (GDB_AC_TRANSFORM): New macro.
11279
11280 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11281
11282         * NEWS: Announce the support for DTrace SDT probes.
11283
11284 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11285
11286         * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11287         (amd64_dtrace_parse_probe_argument): New function.
11288         (amd64_dtrace_probe_is_enabled): Likewise.
11289         (amd64_dtrace_enable_probe): Likewise.
11290         (amd64_dtrace_disable_probe): Likewise.
11291         (amd64_linux_init_abi): Register the
11292         `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11293         `gdbarch_dtrace_disable_probe' and
11294         `gdbarch_dtrace_probe_is_enabled' hooks.
11295         (amd64_dtrace_disabled_probe_sequence_1): New constant.
11296         (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11297         (amd64_dtrace_enable_probe_sequence): Likewise.
11298         (amd64_dtrace_disable_probe_sequence): Likewise.
11299
11300 2015-01-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11301
11302         * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11303         the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11304         * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11305         handle ELF files.
11306         * Makefile.in (SFILES): dtrace-probe.c added.
11307         * configure: Regenerate.
11308         * dtrace-probe.c: New file.
11309         (SHT_SUNW_dof): New constant.
11310         (dtrace_probe_type): New enum.
11311         (dtrace_probe_arg): New struct.
11312         (dtrace_probe_arg_s): New typedef.
11313         (struct dtrace_probe_enabler): New struct.
11314         (dtrace_probe_enabler_s): New typedef.
11315         (dtrace_probe): New struct.
11316         (dtrace_probe_is_linespec): New function.
11317         (dtrace_dof_sect_type): New enum.
11318         (dtrace_dof_dofh_ident): Likewise.
11319         (dtrace_dof_encoding): Likewise.
11320         (DTRACE_DOF_ENCODE_LSB): Likewise.
11321         (DTRACE_DOF_ENCODE_MSB): Likewise.
11322         (dtrace_dof_hdr): New struct.
11323         (dtrace_dof_sect): Likewise.
11324         (dtrace_dof_provider): Likewise.
11325         (dtrace_dof_probe): Likewise.
11326         (DOF_UINT): New macro.
11327         (DTRACE_DOF_PTR): Likewise.
11328         (DTRACE_DOF_SECT): Likewise.
11329         (dtrace_process_dof_probe): New function.
11330         (dtrace_process_dof): Likewise.
11331         (dtrace_build_arg_exprs): Likewise.
11332         (dtrace_get_arg): Likewise.
11333         (dtrace_get_probes): Likewise.
11334         (dtrace_get_probe_argument_count): Likewise.
11335         (dtrace_can_evaluate_probe_arguments): Likewise.
11336         (dtrace_evaluate_probe_argument): Likewise.
11337         (dtrace_compile_to_ax): Likewise.
11338         (dtrace_probe_destroy): Likewise.
11339         (dtrace_gen_info_probes_table_header): Likewise.
11340         (dtrace_gen_info_probes_table_values): Likewise.
11341         (dtrace_probe_is_enabled): Likewise.
11342         (dtrace_probe_ops): New variable.
11343         (info_probes_dtrace_command): New function.
11344         (_initialize_dtrace_probe): Likewise.
11345         (dtrace_type_name): Likewise.
11346
11347 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11348
11349         * gdbarch.sh (dtrace_parse_probe_argument): New.
11350         (dtrace_probe_is_enabled): Likewise.
11351         (dtrace_enable_probe): Likewise.
11352         (dtrace_disable_probe): Likewise.
11353         * gdbarch.c: Regenerate.
11354         * gdbarch.h: Regenerate.
11355
11356 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11357
11358         * stap-probe.c (stap_probe_ops): Add NULLs in the static
11359         stap_probe_ops for `enable_probe' and `disable_probe'.
11360         * probe.c (enable_probes_command): New function.
11361         (disable_probes_command): Likewise.
11362         (_initialize_probe): Define the cli commands `enable probe' and
11363         `disable probe'.
11364         (parse_probe_linespec): New function.
11365         (info_probes_for_ops): Use parse_probe_linespec.
11366         * probe.h (probe_ops): New hooks `enable_probe' and
11367         `disable_probe'.
11368
11369 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11370
11371         * probe.c (compute_probe_arg): Moved from stap-probe.c
11372         (compile_probe_arg): Likewise.
11373         (probe_funcs): Likewise.
11374         * stap-probe.c (compute_probe_arg): Moved to probe.c.
11375         (compile_probe_arg): Likewise.
11376         (probe_funcs): Likewise.
11377
11378 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
11379
11380         * probe.c (print_ui_out_not_applicables): New function.
11381         (exists_probe_with_pops): Likewise.
11382         (info_probes_for_ops): Do not include column headers for probe
11383         types for which no probe has been actually found on any object.
11384         Also invoke `print_ui_out_not_applicables' in order to match the
11385         column rows with the header when probes of several types are
11386         listed.
11387         Print the "Type" column.
11388         * probe.h (probe_ops): Added a new probe operation `type_name'.
11389         * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11390         (stap_type_name): New function.
11391
11392 2015-02-17  Patrick Palka  <patrick@parcs.ath.cx>
11393
11394         * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11395         (key_is_command_char): Delete.
11396
11397 2015-02-17  Pedro Alves  <palves@redhat.com>
11398
11399         * tui/tui.c (tui_enable): Resize windows before anything
11400         might show a window.
11401
11402 2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
11403
11404         PR gdb/17984
11405         * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11406         (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11407         call.
11408         * aarch64-tdep.h (tdesc_aarch64): Declare.
11409
11410 2015-02-12  Mark Wielaard  <mjw@redhat.com>
11411
11412         * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11413
11414 2015-02-13  Doug Evans  <dje@google.com>
11415
11416         * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11417         anonymous_namespace to is_in_anonymous for consistency with the rest
11418         of the file.
11419         (cp_lookup_bare_symbol): Fix typo in comment.
11420         (cp_search_static_and_baseclasses): Ditto.
11421         (search_symbol_list): Use vertical space in comment better.
11422         (reset_directive_searched): Ditto. Fix typo.
11423         (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11424
11425 2015-02-13  Yao Qi  <yao.qi@arm.com>
11426
11427         * MAINTAINERS: Update my email address.
11428
11429 2015-02-12  Doug Evans  <dje@google.com>
11430
11431         * symtab.c (completion_list_add_name): Fix memory leak.
11432
11433 2015-02-12  Doug Evans  <dje@google.com>
11434
11435         * completer.c (complete_line): Remove incorrect comment.
11436
11437 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11438
11439         * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11440         (py_print_frame): Use RETURN_MASK_ERROR.
11441
11442 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11443
11444         * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11445         function comment.  Wrap all function that can throw in cleanups.
11446         (gdbpy_apply_frame_filter): Wrap all function that can throw in
11447         cleanups.
11448
11449 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11450
11451         * python/py-framefilter.c (py_print_frame): Substitute goto error.
11452         Remove the error label.
11453
11454 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11455
11456         * python/py-framefilter.c (py_print_frame): Put conditional code paths
11457         with goto first, indent the former else codepath left.  Put variable
11458         'elided' to a new inner block.
11459
11460 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11461
11462         * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11463
11464 2015-02-11  Pedro Alves  <palves@redhat.com>
11465
11466         * xcoffread.c (within_function): Delete.
11467
11468 2015-02-11  Tom Tromey  <tromey@redhat.com>
11469             Pedro Alves <palves@redhat.com>
11470
11471         * breakpoint.c (base_breakpoint_ops): Delete.
11472         * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11473         * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11474         * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11475         * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11476         * python/py-arch.c (arch_object_type): Make extern.
11477         * python/py-block.c (block_syms_iterator_object_type): Make extern.
11478         * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11479         * python/py-cmd.c (cmdpy_object_type): Make extern.
11480         * python/py-continueevent.c (continue_event_object_type)
11481         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11482         parameter.  Update all callers.
11483         * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11484         * python/py-exitedevent.c (exited_event_object_type): Make extern.
11485         * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11486         * python/py-function.c (fnpy_object_type): Make extern.
11487         * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11488         * python/py-infevents.c (call_pre_event_object_type)
11489         (inferior_call_post_event_object_type).
11490         (memory_changed_event_object_type): Make extern.
11491         * python/py-infthread.c (thread_object_type): Make extern.
11492         * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11493         * python/py-linetable.c (linetable_entry_object_type)
11494         (linetable_object_type, ltpy_iterator_object_type): Make extern.
11495         * python/py-newobjfileevent.c (new_objfile_event_object_type)
11496         (clear_objfiles_event_object_type): Make extern.
11497         * python/py-objfile.c (objfile_object_type): Make extern.
11498         * python/py-param.c (parmpy_object_type): Make extern.
11499         * python/py-progspace.c (pspace_object_type): Make extern.
11500         * python/py-signalevent.c (signal_event_object_type): Make extern.
11501         * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11502         * python/py-type.c (type_object_type, field_object_type)
11503         (type_iterator_object_type): Make extern.
11504         * python/python.c (python_extension_script_ops)
11505         (python_extension_ops): Make extern.
11506         * stap-probe.c (stap_probe_ops): Make extern.
11507
11508 2015-02-11  Pedro Alves  <pedro@codesourcery.com>
11509
11510         * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11511         because the event thread is not the current thread.
11512
11513 2015-02-11  Doug Evans  <xdje42@gmail.com>
11514
11515         * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11516         been initialized yet, return NULL.
11517
11518 2015-02-11  Doug Evans  <dje@google.com>
11519
11520         * symfile.h (new_symfile_objfile): Delete.
11521         * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11522         All callers updated.
11523
11524 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11525
11526         * tui/tui-io.c (tui_handle_resize_during_io): Call
11527         tui_update_gdb_sizes() after resizing the screen.
11528         * tui/tui.c (tui_enable): Resize the terminal before
11529         calling tui_update_gdb_sizes().
11530
11531 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
11532
11533         * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11534         line before printing a newline.
11535
11536 2015-02-11  Mark Wielaard  <mjw@redhat.com>
11537
11538         * utils.c (producer_is_gcc): Return true or false.
11539
11540 2015-02-10  Mark Wielaard  <mjw@redhat.com>
11541
11542         * utils.h (producer_is_gcc): Change return type to bool. Add major
11543         argument.
11544         * utils.c (producer_is_gcc): Likewise.
11545         (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11546         * dwarf2read.c (check_producer): Likewise.
11547
11548 2015-02-10  Pedro Alves  <palves@redhat.com>
11549
11550         * infrun.c (displaced_step_fixup): Switch to the event thread
11551         before calling gdbarch_displaced_step_fixup.
11552
11553 2015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
11554
11555         * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11556
11557 2015-02-10  Simon Marchi  <simon.marchi@ericsson.com>
11558
11559         * ada-varobj.c (ada_name_of_child): Constify parent.
11560         (ada_path_expr_of_child): Same.
11561         (ada_value_of_child): Same.
11562         (ada_type_of_child): Same.
11563         * c-varobj.c (c_is_path_expr_parent): Same.
11564         (c_describe_child): Same.
11565         (c_name_of_child): Same.
11566         (c_value_of_child): Same.
11567         (c_type_of_child): Same.
11568         (cplus_number_of_children): Same.
11569         (cplus_describe_child): Constify var.
11570         (cplus_name_of_child): Constify parent.
11571         (cplus_value_of_child): Same.
11572         (cplus_type_of_child): Same.
11573         * jv-varobj.c (java_name_of_child): Same.
11574         (java_value_of_child): Same.
11575         (java_type_of_child): Same.
11576         * varobj.c (value_of_child): Same.
11577         (varobj_default_is_path_expr_parent): Constify var, parent and return
11578         value.
11579         (varobj_get_path_expr): Constify var, modify path_expr through
11580         mutable_var.
11581         (install_new_value): Constify parent.
11582         (value_of_child): Constify parent.
11583         * varobj.h (struct varobj): Constify parent.
11584         (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11585         type_of_child.
11586         (varobj_get_path_expr): Constify var.
11587         (varobj_get_path_expr_parent): Constify var and return value.
11588
11589 2015-02-10  Luis Machado  <lgustavo@codesourcery.com>
11590
11591         * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11592         (arm_prologue_this_id): Move PC and SP limit checks to
11593         arm_prologue_unwind_stop_reason.
11594         (arm_prologue_unwind) <stop_reason> : Set to
11595         arm_prologue_unwind_stop_reason.
11596
11597 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11598
11599         * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11600         DW_LANG_Fortran08 as language_fortran.
11601
11602 2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
11603
11604         PR remote/17946
11605         * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11606         of pointer against char.
11607
11608 2015-02-09  Mark Wielaard  <mjw@redhat.com>
11609
11610         * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11611         (c_type_print_modifier): Likewise.
11612         * dwarf2read.c (read_tag_atomic_type): New function.
11613         (read_type_die_1): Handle DW_TAG_atomic_type.
11614         * gdbtypes.c (make_atomic_type): New function.
11615         (recursive_dump_type): Handle TYPE_ATOMIC.
11616         * gdbtypes.h (enum type_flag_values): Renumber.
11617         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11618         (TYPE_ATOMIC): New macro.
11619         (make_atomic_type): Declare.
11620
11621 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11622
11623         * btrace.c (ftrace_find_call): Skip gaps.
11624         (ftrace_new_function): Initialize level.
11625         (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11626         (ftrace_new_switch): Update
11627         level computation.
11628         (ftrace_new_gap): New.
11629         (ftrace_update_function): Create new function after gap.
11630         (btrace_compute_ftrace_bts): Create gap on error.
11631         (btrace_stitch_bts): Update parameters.  Clear trace if it
11632         becomes empty.
11633         (btrace_stitch_trace): Update parameters.  Update callers.
11634         (btrace_clear): Reset the number of gaps.
11635         (btrace_insn_get): Return NULL if the iterator points to a gap.
11636         (btrace_insn_number): Return zero if the iterator points to a gap.
11637         (btrace_insn_end): Allow gaps at the end.
11638         (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11639         (btrace_find_insn_by_number): Assert that the found iterator does
11640         not point to a gap.
11641         (btrace_call_next, btrace_call_prev): Assert that the last function
11642         is not a gap.
11643         * btrace.h (btrace_bts_error): New.
11644         (btrace_function): Update comment.
11645         (btrace_function) <insn, insn_offset, number>: Update comment.
11646         (btrace_function) <errcode>: New.
11647         (btrace_thread_info) <ngaps>: New.
11648         (btrace_thread_info) <replay>: Update comment.
11649         (btrace_insn_get): Update comment.
11650         * record-btrace.c (btrace_ui_out_decode_error): New.
11651         (record_btrace_info): Print number of gaps.
11652         (btrace_insn_history, btrace_call_history): Call
11653         btrace_ui_out_decode_error for gaps.
11654         (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11655
11656 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11657
11658         * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11659         * nat/linux-btrace.c: (btrace_this_cpu): New.
11660         (cpu_supports_bts): Call btrace_this_cpu.
11661         (intel_supports_bts): Add cpu parameter.
11662
11663 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11664
11665         * btrace.h (btrace_insn_class): New.
11666         (btrace_insn) <size, iclass>: New.
11667         * btrace.c (ftrace_find_call): Update parameters.  Update users.
11668         Use instruction classification.
11669         (ftrace_new_return): Update parameters.  Update users.
11670         (ftrace_update_function): Update parameters.  Update users.  Use
11671         instruction classification.
11672         (ftrace_update_insns): Update parameters.  Update users.
11673         (ftrace_classify_insn): New.
11674         (btrace_compute_ftrace_bts): Fill in new btrace_insn fields.  Add
11675         TRY_CATCH around call to gdb_insn_length.
11676
11677 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11678
11679         * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11680         Update parameters.  Update users.
11681
11682 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11683
11684         * btrace.c (parse_xml_btrace_conf_bts): Add size.
11685         (btrace_conf_bts_attributes): New.
11686         (btrace_conf_children): Add attributes.
11687         * common/btrace-common.h (btrace_config_bts): New.
11688         (btrace_config)<bts>: New.
11689         (btrace_config): Update comment.
11690         * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11691         Use config.
11692         * features/btrace-conf.dtd: Increment version.  Add size
11693         attribute to bts element.
11694         * record-btrace.c (set_record_btrace_bts_cmdlist,
11695         show_record_btrace_bts_cmdlist): New.
11696         (record_btrace_adjust_size, record_btrace_print_bts_conf,
11697         record_btrace_print_conf, cmd_set_record_btrace_bts,
11698         cmd_show_record_btrace_bts): New.
11699         (record_btrace_info): Call record_btrace_print_conf.
11700         (_initialize_record_btrace): Add commands.
11701         * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11702         (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11703         (btrace_sync_conf): Synchronize bts size.
11704         (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11705         * NEWS: Announce new commands and new packets.
11706
11707 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11708
11709         * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11710         * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11711         (x86_linux_btrace_conf): New.
11712         (x86_linux_create_target): Initialize to_btrace_conf.
11713         * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11714         Check format.  Split into this and ...
11715         (linux_enable_bts): ... this.
11716         (linux_btrace_conf): New.
11717         (perf_event_skip_record): Renamed into ...
11718         (perf_event_skip_bts_record): ... this.  Updated users.
11719         (linux_disable_btrace): Split into this and ...
11720         (linux_disable_bts): ... this.
11721         (linux_read_btrace): Check format.
11722         * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11723         (linux_btrace_conf): New.
11724         (btrace_target_info)<ptid>: Moved.
11725         (btrace_target_info)<conf>: New.
11726         (btrace_target_info): Split into this and ...
11727         (btrace_tinfo_bts): ... this.  Updated users.
11728         * btrace.c (btrace_enable): Update parameters.
11729         (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11730         (btrace_conf_children, btrace_conf_attributes)
11731         (btrace_conf_elements): New.
11732         * btrace.h (btrace_enable): Update parameters.
11733         (btrace_conf, parse_xml_btrace_conf): New.
11734         * common/btrace-common.h (btrace_config): New.
11735         * feature/btrace-conf.dtd: New.
11736         * record-btrace.c (record_btrace_conf): New.
11737         (record_btrace_cmdlist): New.
11738         (record_btrace_enable_warn, record_btrace_open): Pass
11739         &record_btrace_conf.
11740         (record_btrace_info): Print recording format.
11741         (cmd_record_btrace_bts_start): New.
11742         (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11743         (_initialize_record_btrace): Add "record btrace bts" subcommand.
11744         Add "record bts" alias command.
11745         * remote.c (remote_state)<btrace_config>: New.
11746         (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11747         (remote_protocol_features): Add qXfer:btrace-conf:read.
11748         (remote_open_1): Call remote_btrace_reset.
11749         (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11750         (btrace_target_info)<conf>: New.
11751         (btrace_sync_conf, btrace_read_config): New.
11752         (remote_enable_btrace): Update parameters.  Call btrace_sync_conf and
11753         btrace_read_conf.
11754         (remote_btrace_conf): New.
11755         (init_remote_ops): Initialize to_btrace_conf.
11756         (_initialize_remote): Add qXfer:btrace-conf packet.
11757         * target.c (target_enable_btrace): Update parameters.
11758         (target_btrace_conf): New.
11759         * target.h (target_enable_btrace): Update parameters.
11760         (target_btrace_conf): New.
11761         (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11762         (target_ops)<to_enable_btrace>: Update parameters and comment.
11763         (target_ops)<to_btrace_conf>: New.
11764         * target-delegates: Regenerate.
11765         * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11766         (target_debug_print_const_struct_btrace_target_info_p): New.
11767         * NEWS: Announce new command and new packet.
11768
11769 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11770
11771         * nat/linux-btrace.h (perf_event_buffer): New.
11772         (btrace_target_info) <buffer, size, data_head>: Replace with ...
11773         <bts>: ... this.
11774         * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11775         (perf_event_buffer_size, perf_event_buffer_begin)
11776         (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11777         Updated users.
11778         (perf_event_new_data): New.
11779
11780 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11781
11782         * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11783         * record-btrace.c (record_btrace_open): Remove call to
11784         target_supports_btrace.
11785         * remote.c (remote_supports_btrace): Update parameters.
11786         * target.c (target_supports_btrace): Update parameters.
11787         * target.h (to_supports_btrace, target_supports_btrace): Update
11788         parameters.
11789         * target-delegates.c: Regenerate.
11790         * target-debug.h (target_debug_print_enum_btrace_format): New.
11791         * nat/linux-btrace.c
11792         (kernel_supports_btrace): Rename into ...
11793         (kernel_supports_bts): ... this.  Update users.  Update warning text.
11794         (intel_supports_btrace): Rename into ...
11795         (intel_supports_bts): ... this.  Update users.
11796         (cpu_supports_btrace): Rename into ...
11797         (cpu_supports_bts): ... this.  Update users.
11798         (linux_supports_btrace): Update parameters.  Split into this and ...
11799         (linux_supports_bts): ... this.
11800         * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11801
11802 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
11803
11804         * Makefile.in (SFILES): Add common/btrace-common.c.
11805         (COMMON_OBS): Add common/btrace-common.o.
11806         (btrace-common.o): Add build rules.
11807         * btrace.c (parse_xml_btrace): Update parameters.
11808         (parse_xml_btrace_block): Set format field.
11809         (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11810         (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11811         (btrace_compute_ftrace): Split into this and...
11812         (btrace_compute_ftrace_bts): ...this.
11813         (btrace_stitch_trace): Split into this and...
11814         (btrace_stitch_bts): ...this.
11815         * btrace.h (parse_xml_btrace): Update parameters.
11816         (make_cleanup_btrace_data): New.
11817         * common/btrace-common.c: New.
11818         * common/btrace-common.h: Include common-defs.h.
11819         (btrace_block_s): Update comment.
11820         (btrace_format): New.
11821         (btrace_format_string): New.
11822         (btrace_data_bts): New.
11823         (btrace_data): New.
11824         (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11825         * remote.c (remote_read_btrace): Update parameters.
11826         * target.c (target_read_btrace): Update parameters.
11827         * target.h (target_read_btrace): Update parameters.
11828         (target_ops)<to_read_btrace>: Update parameters.
11829         * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11830         * target-delegates.c: Regenerate.
11831         * target-debug (target_debug_print_struct_btrace_data_p): New.
11832         * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11833         (linux_read_bts): ...this.
11834         * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11835
11836 2015-02-06  Doug Evans  <dje@google.com>
11837
11838         * remote-m32r-sdi.c: Include symfile.h.
11839
11840 2015-02-06  Doug Evans  <dje@google.com>
11841
11842         * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11843         * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11844         to here.
11845
11846 2015-02-06  Pedro Alves  <palves@redhat.com>
11847
11848         * linux-thread-db.c (find_new_threads_callback): Add debug output.
11849
11850 2015-02-06  Simon Marchi  <simon.marchi@ericsson.com>
11851
11852         PR gdb/15678
11853         * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11854         (enable_count_command): Check args for NULL value.
11855
11856 2015-02-05  Doug Evans  <xdje42@gmail.com>
11857
11858         * guile/scm-frame.c: Fix spelling errors in a comment.
11859
11860 2015-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
11861
11862         * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11863         * python/py-value.c (valpy_fetch_lazy): Use it.  Remove cast to the
11864         return type.
11865
11866 2015-02-04  Pedro Alves  <palves@redhat.com>
11867
11868         * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11869         (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11870         returns true.
11871         (resume_stopped_resumed_lwps): Don't check whether the thread is
11872         marked as executing.
11873         (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11874
11875 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11876
11877         * regset.h (struct regset): Add flags field.
11878         (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11879         * corelow.c (get_core_register_section): Add warning if the size
11880         exceeds the requested size and the regset does not have the
11881         REGSET_VARIABLE_SIZE flag set.
11882         * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11883         flag.
11884         * armbsd-tdep.c (armbsd_gregset): Likewise.
11885         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11886         * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11887         * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11888         * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11889
11890 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11891
11892         * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11893         For ".reg-xstate", explicitly specify the requested section size
11894         via X86_XSTATE_SIZE instead of just 0 on input and
11895         X86_XSTATE_MAX_SIZE on output.
11896         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11897         Likewise.
11898
11899 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
11900
11901         PR corefiles/17808:
11902         * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11903         function type, particularly its SIZE parameter.
11904         * gdbarch.h: Regenerate.
11905         * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11906         actual against required size using ">=" instead of "==".
11907         (amd64_collect_fpregset): Likewise.
11908         * i386-tdep.c (i386_supply_gregset): Likewise.
11909         (i386_collect_gregset): Likewise.
11910         (i386_supply_fpregset): Likewise.
11911         (i386_collect_fpregset): Likewise.
11912         * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11913         (mips_fill_gregset_wrapper): Likewise.
11914         (mips_supply_fpregset_wrapper): Likewise.
11915         (mips_fill_fpregset_wrapper): Likewise.
11916         (mips64_supply_gregset_wrapper): Likewise.
11917         (mips64_fill_gregset_wrapper): Likewise.
11918         (mips64_supply_fpregset_wrapper): Likewise.
11919         (mips64_fill_fpregset_wrapper): Likewise.
11920         * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11921         (am33_supply_fpregset_method): Likewise.
11922         (am33_collect_gregset_method): Likewise.
11923         (am33_collect_fpregset_method): Likewise.
11924
11925 2015-02-04  Doug Evans  <dje@google.com>
11926             Pedro Alves  <palves@redhat.com>
11927             Eli Zaretskii  <eliz@gnu.org>
11928
11929         PR tui/17810
11930         * tui/tui-command.c (tui_refresh_cmd_win): New function.
11931         * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11932         * tui/tui-file.c: #include tui/tui-command.h.
11933         (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11934         (tui_file_flush): Refresh command window if stream is gdb_stdout.
11935         * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11936
11937 2015-02-04  Pedro Alves  <palves@redhat.com>
11938
11939         Fix build breakage.
11940         * event-loop.c (gdb_do_one_event): Add default switch case.
11941
11942 2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
11943
11944         Filter out inferior gcc option -fpreprocessed.
11945         * compile/compile.c (filter_args): New function.
11946         (get_args): Use it.
11947
11948 2015-02-03  Pedro Alves  <palves@redhat.com>
11949
11950         * event-loop.c: Don't declare nor define a queue type for
11951         gdb_event_p.
11952         (event_queue): Delete.
11953         (create_event, create_file_event, gdb_event_xfree)
11954         (initialize_event_loop, process_event): Delete.
11955         (gdb_do_one_event): Return as soon as one event is handled.
11956         (handle_file_event): Change prototype.  Used the passed in
11957         file_handler pointer and ready_mask instead of looping over all
11958         file handlers.
11959         (gdb_wait_for_event): Update the poll/select timeouts before
11960         blocking.  Run event handlers directly instead of queueing events.
11961         Return as soon as one event is handled.
11962         (struct async_event_handler_data): Delete.
11963         (invoke_async_event_handler): Delete.
11964         (check_async_event_handlers): Change return type to int.  Run
11965         event handlers directly instead of queueing events.  Return as
11966         soon as one event is handled.
11967         (handle_timer_event): Delete.
11968         (update_wait_timeout): New function, factored out from
11969         poll_timers.
11970         (poll_timers): Reimplement.
11971         * event-loop.h (initialize_event_loop): Delete declaration.
11972         * top.c (gdb_init): Don't call initialize_event_loop.
11973
11974 2015-02-03  Pedro Alves  <palves@redhat.com>
11975
11976         * event-loop.c (clear_async_event_handler): New function.
11977         * event-loop.h (clear_async_event_handler): New declaration.
11978         * record-btrace.c (record_btrace_async): New function.
11979         (init_record_btrace_ops): Install record_btrace_async.
11980         * record-full.c (record_full_async): New function.
11981         (record_full_resume): Don't mark the async event source here.
11982         (init_record_full_ops): Install record_full_async.
11983         (record_full_core_resume): Don't mark the async event source here.
11984         (init_record_full_core_ops): Install record_full_async.
11985         * remote.c (remote_async): Mark and clear the async stop reply
11986         queue event-loop token as appropriate.
11987
11988 2015-02-03  Pedro Alves  <palves@redhat.com>
11989
11990         * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11991         target_is_async_p instead of target_can_async.
11992         (linux_nat_wait): Use target_is_async_p instead of
11993         target_can_async.  Don't enable async here.
11994         * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11995         target_is_async_p instead of target_can_async.
11996
11997 2015-02-02  Simon Marchi  <simon.marchi@ericsson.com>
11998
11999         * varobj.h (lang_varobj_ops): Mention which return values need
12000         to be freed.
12001
12002 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
12003
12004         * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
12005
12006 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
12007
12008         PR gdb/17856:
12009         * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
12010         results found in the cache.
12011
12012 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
12013
12014         PR gdb/17854:
12015         * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
12016         when allocating a new one.
12017
12018 2015-02-01  Tom Tromey  <tom@tromey.com>
12019
12020         * MAINTAINERS: Remove myself.
12021
12022 2015-01-31  Doug Evans  <xdje42@gmail.com>
12023
12024         * dwarf2read.c (process_structure_scope): Update setting of
12025         TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
12026         * gdbtypes.c (internal_type_vptr_fieldno): New function.
12027         (set_type_vptr_fieldno): New function.
12028         (internal_type_vptr_basetype): New function.
12029         (set_type_vptr_basetype): New function.
12030         (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
12031         TYPE_VPTR_BASETYPE.
12032         (allocate_cplus_struct_type): Initialize vptr_fieldno.
12033         (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
12034         (print_cplus_stuff): ... moved here.
12035         (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
12036         * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
12037         moved to ...
12038         (struct cplus_struct_type): ... here.  All uses updated.
12039         (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
12040         (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
12041         (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
12042         * stabsread.c (read_tilde_fields): Update setting of
12043         TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
12044
12045 2015-01-31  Doug Evans  <xdje42@gmail.com>
12046
12047         * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
12048         to self_p.
12049         (cp_print_class_member): Rename local domain to self_type.
12050         * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
12051         domain_type to self_type.
12052         (set_die_type) <need_gnat_info>: Handle
12053         TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
12054         * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
12055         TYPE_SPECIFIC_SELF_TYPE.
12056         * gdbtypes.c (internal_type_self_type): New function.
12057         (set_type_self_type): New function.
12058         (smash_to_memberptr_type): Rename parameter domain to self_type.
12059         Update setting of TYPE_SELF_TYPE.
12060         (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
12061         (smash_to_method_type): Rename parameter domain to self_type.
12062         Update setting of TYPE_SELF_TYPE.
12063         (check_stub_method): Call smash_to_method_type.
12064         (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
12065         (copy_type_recursive): Ditto.
12066         * gdbtypes.h (enum type_specific_kind): New value
12067         TYPE_SPECIFIC_SELF_TYPE.
12068         (struct main_type) <type_specific>: New member self_type.
12069         (struct cplus_struct_type) <fn_field.type>: Update comment.
12070         (TYPE_SELF_TYPE): Rewrite.
12071         (internal_type_self_type, set_type_self_type): Declare.
12072         * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
12073         self_type.
12074         (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
12075         * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
12076         TYPE_TARGET_TYPE.
12077         * stabsread.c (read_member_functions): Mark methods with
12078         TYPE_CODE_METHOD, not TYPE_CODE_FUNC.  Update setting of
12079         TYPE_SELF_TYPE.
12080
12081 2015-01-31  Doug Evans  <xdje42@gmail.com>
12082
12083         * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
12084         All uses updated.
12085
12086 2015-01-31  Doug Evans  <xdje42@gmail.com>
12087
12088         * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
12089         or unions.  Return zero if union.
12090         (gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
12091         (gnuv3_rtti_type): Pass already-check_typedef'd value to
12092         gnuv3_get_vtable.
12093         (compute_vtable_size): Assert only passed structs.
12094         (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
12095
12096 2015-01-31  Doug Evans  <xdje42@gmail.com>
12097
12098         * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
12099         kinds.
12100
12101 2015-01-31  Gary Benson <gbenson@redhat.com>
12102             Doug Evans  <dje@google.com>
12103
12104         PR cli/9007
12105         PR cli/11920
12106         PR cli/15548
12107         * cli/cli-cmds.c (complete_command): Notify user if max-completions
12108         reached.
12109         * common/common-exceptions.h (enum errors)
12110         <MAX_COMPLETIONS_REACHED_ERROR>: New value.
12111         * completer.h (get_max_completions_reached_message): New declaration.
12112         (max_completions): Likewise.
12113         (completion_tracker_t): New typedef.
12114         (new_completion_tracker): New declaration.
12115         (make_cleanup_free_completion_tracker): Likewise.
12116         (maybe_add_completion_enum): New enum.
12117         (maybe_add_completion): New declaration.
12118         (throw_max_completions_reached_error): Likewise.
12119         * completer.c (max_completions): New global variable.
12120         (new_completion_tracker): New function.
12121         (free_completion_tracker): Likewise.
12122         (make_cleanup_free_completion_tracker): Likewise.
12123         (maybe_add_completions): Likewise.
12124         (throw_max_completions_reached_error): Likewise.
12125         (complete_line): Remove duplicates and limit result to max_completions
12126         entries.
12127         (get_max_completions_reached_message): New function.
12128         (gdb_display_match_list): Handle max_completions.
12129         (_initialize_completer): New declaration and function.
12130         * symtab.c: Include completer.h.
12131         (completion_tracker): New static variable.
12132         (completion_list_add_name): Call maybe_add_completion.
12133         (default_make_symbol_completion_list_break_on_1): Renamed from
12134         default_make_symbol_completion_list_break_on.  Maintain
12135         completion_tracker across calls to completion_list_add_name.
12136         (default_make_symbol_completion_list_break_on): New function.
12137         * top.c (init_main): Set rl_completion_display_matches_hook.
12138         * tui/tui-io.c: Include completer.h.
12139         (tui_old_rl_display_matches_hook): New static global.
12140         (tui_rl_display_match_list): Notify user if max-completions reached.
12141         (tui_setup_io): Save/restore rl_completion_display_matches_hook.
12142         * NEWS (New Options): Mention set/show max-completions.
12143
12144 2015-01-31  Gary Benson  <gbenson@redhat.com>
12145
12146         * symtab.c (struct add_name_data) <code>: New field.
12147         Updated comments.
12148         (add_symtab_completions): New function.
12149         (symtab_expansion_callback): Likewise.
12150         (default_make_symbol_completion_list_break_on): Set datum.code.
12151         Move minimal symbol scan before calling expand_symtabs_matching.
12152         Scan known primary symtabs for externs and statics before calling
12153         expand_symtabs_matching.  Pass symtab_expansion_callback as
12154         expansion_notify argument to expand_symtabs_matching.  Do not scan
12155         primary symtabs for externs and statics after calling
12156         expand_symtabs_matching.
12157
12158 2015-01-31  Gary Benson  <gbenson@redhat.com>
12159
12160         * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
12161         (struct quick_symbol_functions) <expand_symtabs_matching>:
12162         New argument expansion_notify.  All uses updated.
12163         (expand_symtabs_matching): New argument expansion_notify.
12164         All uses updated.
12165         * symfile-debug.c (debug_qf_expand_symtabs_matching):
12166         Also print expansion notify.
12167         * symtab.c (expand_symtabs_matching_via_partial): Call
12168         expansion_notify whenever a partial symbol table is expanded.
12169         * dwarf2read.c (dw2_expand_symtabs_matching): Call
12170         expansion_notify whenever a symbol table is instantiated.
12171
12172 2015-01-31  Doug Evans  <xdje42@gmail.com>
12173
12174         * cli-out.c: #include completer.h, readline/readline.h.
12175         (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
12176         (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
12177         (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
12178         * cli-out.h (cli_display_match_list): Declare.
12179         * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
12180         (ELLIPSIS_LEN): Ditto.
12181         (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
12182         (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
12183         (gdb_fnprint, gdb_print_filename): Ditto.
12184         (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
12185         (gdb_display_match_list): Ditto.
12186         * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
12187         (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
12188         (mld_beep_ftype, mld_read_key_ftype): Ditto.
12189         (match_list_displayer): New struct.
12190         (gdb_display_match_list): Declare.
12191         * top.c (init_main): Set rl_completion_display_matches_hook.
12192         * tui/tui-io.c: #include completer.h.
12193         (printable_part, PUTX, print_filename, get_y_or_n): Delete.
12194         (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
12195         (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
12196         (tui_mld_getc, tui_mld_read_key): Ditto.
12197         (tui_rl_display_match_list): Rewrite.
12198         (tui_handle_resize_during_io): New arg for_completion.  All callers
12199         updated.
12200
12201 2015-01-31  Doug Evans  <xdje42@gmail.com>
12202
12203         Add symbol lookup cache.
12204         * NEWS: Document new options and commands.
12205         * symtab.c (symbol_cache_key): New static global.
12206         (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
12207         (SYMBOL_LOOKUP_FAILED): New macro.
12208         (symbol_cache_slot_state): New enum.
12209         (block_symbol_cache): New struct.
12210         (symbol_cache): New struct.
12211         (new_symbol_cache_size, symbol_cache_size): New static globals.
12212         (hash_symbol_entry, eq_symbol_entry): New functions.
12213         (symbol_cache_byte_size, resize_symbol_cache): New functions.
12214         (make_symbol_cache, free_symbol_cache): New functions.
12215         (get_symbol_cache, symbol_cache_cleanup): New function.
12216         (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
12217         (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12218         (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12219         (symbol_cache_flush, symbol_cache_dump): New functions.
12220         (maintenance_print_symbol_cache): New function.
12221         (maintenance_flush_symbol_cache): New function.
12222         (symbol_cache_stats): New function.
12223         (maintenance_print_symbol_cache_statistics): New function.
12224         (symtab_new_objfile_observer): New function.
12225         (symtab_free_objfile_observer): New function.
12226         (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12227         (_initialize_symtab): Init symbol_cache_key.  New parameter
12228         maint symbol-cache-size.  New maint commands print symbol-cache,
12229         print symbol-cache-statistics, flush-symbol-cache.
12230         Install new_objfile, free_objfile observers.
12231
12232 2015-01-31  Joel Brobecker  <brobecker@adacore.com>
12233
12234         PR symtab/17855
12235         * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12236         to end.
12237
12238 2015-01-31  Doug Evans  <xdje42@gmail.com>
12239
12240         * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12241         * auto-load.c: #include ctype.h.
12242         (struct auto_load_pspace_info): Replace member loaded_scripts with
12243         new members loaded_script_files, loaded_script_texts.
12244         (auto_load_pspace_data_cleanup): Update.
12245         (init_loaded_scripts_info): Update.
12246         (get_auto_load_pspace_data_for_loading): Update.
12247         (maybe_add_script_file): Renamed from maybe_add_script.  All callers
12248         updated.
12249         (maybe_add_script_text): New function.
12250         (clear_section_scripts): Update.
12251         (source_script_file, execute_script_contents): New functions.
12252         (source_section_scripts): Add support for
12253         SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12254         (print_scripts): New function.
12255         (auto_load_info_scripts): Also print inlined scripts.
12256         (maybe_print_unsupported_script_warning): Renamed from
12257         unsupported_script_warning_print.  All callers updated.
12258         (maybe_print_script_not_found_warning): Renamed from
12259         script_not_found_warning_print.  All callers updated.
12260         * extension-priv.h (struct extension_language_script_ops): New member
12261         objfile_script_executor.
12262         * extension.c (ext_lang_objfile_script_executor): New function.
12263         * extension.h (objfile_script_executor_func): New typedef.
12264         (ext_lang_objfile_script_executor): Declare.
12265         * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12266         * guile/guile.c (guile_extension_script_ops): Update.
12267         * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12268         * python/python.c (python_extension_script_ops): Update.
12269         (gdbpy_execute_objfile_script): New function.
12270
12271 2015-01-31  Eli Zaretskii  <eliz@gnu.org>
12272
12273         * tui/tui-io.c (tui_expand_tabs): New function.
12274         (tui_puts, tui_redisplay_readline): Expand TABs into the
12275         appropriate number of spaces.
12276         * tui/tui-regs.c: Include tui-io.h.
12277         (tui_register_format): Call tui_expand_tabs to expand TABs into
12278         the appropriate number of spaces.
12279         * tui/tui-io.h: Add prototype for tui_expand_tabs.
12280
12281 2015-01-30  Doug Evans  <dje@google.com>
12282
12283         * NEWS: "info source" command now display producer string if present.
12284         * source.c (source_info): Print producer string if present.
12285
12286 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12287
12288         * varobj.c (varobj_delete): Fix comment.
12289
12290 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12291
12292         * varobj.c (create_child): Modify comment.
12293
12294 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12295
12296         * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12297         parameter.
12298         (ada_name_of_variable): Same.
12299         (ada_path_expr_of_child): Same.
12300         (ada_value_of_variable): Same.
12301         (ada_value_is_changeable_p): Same.
12302         (ada_value_has_mutated): Same.
12303         * c-varobj.c (varobj_is_anonymous_child): Same.
12304         (c_is_path_expr_parent): Same.
12305         (c_number_of_children): Same.
12306         (c_name_of_variable): Same.
12307         (c_path_expr_of_child): Same.
12308         (get_type): Same.
12309         (c_value_of_variable): Same.
12310         (cplus_number_of_children): Same.
12311         (cplus_name_of_variable): Same.
12312         (cplus_path_expr_of_child): Same.
12313         (cplus_value_of_variable): Same.
12314         * jv-varobj.c (java_number_of_children): Same.
12315         (java_name_of_variable): Same.
12316         (java_path_expr_of_child): Same.
12317         (java_value_of_variable): Same.
12318         * varobj.c (number_of_children): Same.
12319         (name_of_variable): Same.
12320         (is_root_p): Same.
12321         (varobj_ensure_python_env): Same.
12322         (varobj_get_objname): Same.
12323         (varobj_get_expression): Same.
12324         (varobj_get_display_format): Same.
12325         (varobj_get_display_hint): Same.
12326         (varobj_has_more): Same.
12327         (varobj_get_thread_id): Same.
12328         (varobj_get_frozen): Same.
12329         (dynamic_varobj_has_child_method): Same.
12330         (varobj_get_gdb_type): Same.
12331         (is_path_expr_parent): Same.
12332         (varobj_default_is_path_expr_parent): Same.
12333         (varobj_get_language): Same.
12334         (varobj_get_attributes): Same.
12335         (varobj_is_dynamic_p): Same.
12336         (varobj_get_child_range): Same.
12337         (varobj_value_has_mutated): Same.
12338         (varobj_get_value_type): Same.
12339         (number_of_children): Same.
12340         (name_of_variable): Same.
12341         (check_scope): Same.
12342         (varobj_editable_p): Same.
12343         (varobj_value_is_changeable_p): Same.
12344         (varobj_floating_p): Same.
12345         (varobj_default_value_is_changeable_p): Same.
12346
12347 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12348
12349         * varobj.c (varobj_get_path_expr): Set var->path_expr.
12350         * c-varobj.c (c_path_expr_of_child): Set local var instead of
12351         child->path_expr.
12352         (cplus_path_expr_of_child): Same.
12353
12354 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12355
12356         * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12357         result.
12358         (mi_cmd_var_info_expression): Same.
12359         * varobj.c (varobj_get_expression): Mention in the comment that
12360         the result must by freed by the caller.
12361
12362 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
12363
12364         * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12365         varobj_get_type.
12366         (varobj_update_one): Same.
12367         * varobj.c (update_type_if_necessary): Free curr_type_str and
12368         new_type_str.
12369         (varobj_get_type): Specify in comment that the result needs to be
12370         freed by the caller.
12371
12372 2015-01-29  Doug Evans  <dje@google.com>
12373
12374         PR symtab/17890
12375         * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12376
12377 2015-01-25  Mark Wielaard  <mjw@redhat.com>
12378
12379         * dwarf2read.c (checkproducer): Call producer_is_gcc.
12380         * utils.c (producer_is_gcc_ge_4): Likewise.
12381         (producer_is_gcc): New function.
12382         * utils.h (producer_is_gcc): New declaration.
12383
12384 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12385
12386         * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12387         kind.
12388         * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12389         parameter by "addr_stack" parameter.
12390         (resolve_dynamic_range): Replace "addr" parameter by
12391         "stack_addr" parameter.  Update function documentation.
12392         Update code accordingly.
12393         (resolve_dynamic_array, resolve_dynamic_union)
12394         (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12395         (resolve_dynamic_type): Update code, following the changes made
12396         to resolve_dynamic_type_internal's interface.
12397         * dwarf2loc.h (struct property_addr_info): New.
12398         (dwarf2_evaluate_property): Replace "address" parameter
12399         by "addr_stack" parameter.  Adjust function documentation.
12400         (struct dwarf2_offset_baton): New.
12401         (struct dwarf2_property_baton): Update documentation of
12402         field "referenced_type" to be more general. New field
12403         "offset_info" in union data field.
12404         * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12405         parameter by "addr_stack" parameter.  Adjust code accordingly.
12406         Add support for PROP_ADDR_OFFSET properties.
12407         * dwarf2read.c (attr_to_dynamic_prop): Add support for
12408         DW_AT_data_member_location attributes as well.  Use case
12409         statements instead of if/else condition.
12410
12411 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12412
12413         * ada-varobj.c (ada_varobj_get_array_number_of_children):
12414         Return zero if PARENT_VALUE is NULL and parent_type's
12415         range type is dynamic.
12416
12417 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
12418
12419         * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12420         nonzero if the type's subtype is dynamic.
12421         (resolve_dynamic_range): Also resolve the range's subtype.
12422
12423 2015-01-29  Alexander Klimov  <alserkli@inbox.ru>  (tiny patch)
12424
12425         Pushed by Joel Brobecker  <brobecker@adacore.com>.
12426         * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12427
12428 2015-01-27  Doug Evans  <dje@google.com>
12429
12430         * NEWS: Mention gdb.Objfile.username.
12431         * python/py-objfile.c (objfpy_get_username): New function.
12432         (objfile_getset): Add "username".
12433
12434 2015-01-24  Mark Wielaard  <mjw@redhat.com>
12435
12436         * stack.c (return_command): Markup warning message with _.
12437
12438 2015-01-24  Doug Evans  <xdje42@gmail.com>
12439
12440         * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12441
12442 2015-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
12443
12444         Fix 100x slowdown regression on DWZ files.
12445         * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12446         (struct line_header): Add offset and offset_in_dwz.
12447         (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12448         (free_line_header_voidp): New declaration.
12449         (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12450         functions.
12451         (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12452         (handle_DW_AT_stmt_list): Use line_header_hash.
12453         (free_line_header_voidp): New function.
12454         (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12455         (dwarf_decode_lines): New parameter decode_mapping, use it.
12456         (dwarf2_free_objfile): Free line_header_hash.
12457
12458 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
12459
12460         PR gdb/17416
12461         * valops.c (value_rtti_indirect_type): Catch exception thrown by
12462         value_ind.
12463
12464 2015-01-15  Mark Wielaard  <mjw@redhat.com>
12465
12466         * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12467         DW_AT_noreturn.
12468         * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12469         calling_convention an 8 bit bit field.
12470         (TYPE_NO_RETURN): New macro.
12471         * infcmd.c (finish_command): Query if function does not return
12472         normally.
12473         * stack.c (return_command): Likewise.
12474
12475 2015-01-23  Pedro Alves  <palves@redhat.com>
12476
12477         * linux-nat.c (linux_is_async_p): New macro.
12478         (linux_nat_is_async_p):
12479         (linux_nat_terminal_inferior): Check whether the target can async
12480         instead of whether it is already async.
12481         (linux_nat_terminal_ours): Don't check whether the target is
12482         async.
12483         (linux_async_pipe): Use linux_is_async_p.
12484
12485 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12486
12487         * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12488         '-ascending'.
12489         * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12490         (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12491         Sort tp_array using tp_array_compar.
12492         (_initialize_thread): Extend thread_apply_all_command help.
12493
12494 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12495
12496         * corelow.c (core_open): Call also thread_command.
12497         * gdbthread.h (thread_command): New prototype moved from ...
12498         * thread.c (thread_command): ... here.
12499         (thread_command): Make it global.
12500
12501 2015-01-22  Pedro Alves  <palves@redhat.com>
12502
12503         * configure.ac [*mingw32*]: Check $curses_found instead of
12504         $prefer_curses.
12505         * configure: Regenerate.
12506         * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12507         HAVE_NCURSES_NCURSES_H checks.
12508
12509 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12510
12511         * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12512         fails with the 1st arg NULL, try again with "unknown".  Don't test
12513         the "cup" capability: it isn't supported by the Windows port of
12514         ncurses, but the Windows console driver is still capable of
12515         supporting TUI.
12516
12517 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
12518
12519         * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12520
12521 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
12522
12523         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12524         (ALLDEPFILES): Remove irix5-nat.c.  These two are part of the
12525         reason that "make TAGS" is broken.
12526
12527 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
12528
12529         * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12530         and check additional store instructions.
12531
12532 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12533
12534         * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12535
12536 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
12537
12538         * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12539         ppc_canonicalize_syscall, ppc_linux_syscall_record,
12540         ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12541         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12542         * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12543         rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12544         rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12545         ppc_process_record_op19, ppc_process_record_op31,
12546         ppc_process_record_op59, ppc_process_record_op60,
12547         ppc_process_record_op63): Likewise.
12548
12549 2015-01-20  Joel Brobecker  <brobecker@adacore.com>
12550
12551         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12552         (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12553         strerror.
12554
12555 2015-01-20  Wei-cheng Wang  <cole945@gmail.com>
12556
12557         * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12558         ppc_process_record_op31, ppc_process_record_op59,
12559         ppc_process_record_op60, ppc_process_record_op63,
12560         ppc_process_record): Fix -Wformat warning.
12561         * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12562         Remove unused variables.
12563
12564 2015-01-20  Chen Gang  <gang.chen.5i5j@gmail.com>
12565
12566         * MAINTAINERS (Write After Approval): Add "Chen Gang".
12567
12568 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
12569
12570         * configure.ac [*mingw32*]: Only add windows-termcap.o to
12571         CONFIG_OBS if not building with a curses library.
12572         * configure: Regenerate.
12573
12574         * windows-termcap.c: Include defs.h.  Make the whole body empty if
12575         either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12576         HAVE_NCURSES_NCURSES_H is defined.
12577
12578 2015-01-19  Joel Brobecker  <brobecker@adacore.com>
12579
12580         * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12581         from end of line to start of next line.
12582
12583 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12584
12585         * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12586         Scan PLT stub backward for reverse debugging.
12587         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12588
12589 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12590             Ulrich Weigand  <uweigand@de.ibm.com>
12591
12592         * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12593         gdb_target_obs.
12594         (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12595         record.
12596         (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12597         ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12598         (ppc_linux_init_abi): Set process_record, process_record_signal.
12599         * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12600         ppc_linux_record_tdep to gdbarch_tdep.
12601         (ppc_process_record): New declaration.
12602         * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12603         ppc_process_record_op19, ppc_process_record_op31,
12604         ppc_process_record_op59, ppc_process_record_op60,
12605         ppc_process_record_op63, ppc_process_record): New functions.
12606
12607 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
12608
12609         * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12610         rs6000_in_function_epilogue_frame_p and add an argument
12611         for frame_info.
12612         (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12613         rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12614         New functions.
12615         (rs6000_epilogue_frame_unwind): New.
12616         (rs6000_gdbarch_init): Append epilogue unwinder.
12617
12618 2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
12619
12620         * nat/linux-personality.c: Replace "#ifndef
12621         HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12622         !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12623         systems.
12624
12625 2015-01-16  Eli Zaretskii  <eliz@gnu.org>
12626
12627         * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12628         functions.
12629         (_initialize_tui_win) <border-kind, border-mode>:
12630         <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12631         (tui_set_tab_width_command): Fix the commentary.
12632
12633         * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12634
12635         * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12636         Doc fix.
12637         (tui_set_tab_width_command): Delete and recreate the source and
12638         the disassembly windows, to show the effect of the changed tab
12639         size immediately.
12640
12641         * tui/tui-data.h (LINE_PREFIX): Make shorter
12642         (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12643         "Thread NNNNN.XXXX" thread ID notation on Windows.
12644
12645 2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12646
12647         Fix gcc-5 compilation.
12648         * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12649
12650 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12651
12652         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12653         (linux-personality.o): New rule.
12654         * common/common-defs.h: Include <stdint.h>.
12655         * config/aarch64/linux.mh (NATDEPFILES): Include
12656         linux-personality.o.
12657         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12658         * config/arm/linux.mh (NATDEPFILES): Likewise.
12659         * config/i386/linux64.mh (NATDEPFILES): Likewise.
12660         * config/i386/linux.mh (NATDEPFILES): Likewise.
12661         * config/ia64/linux.mh (NATDEPFILES): Likewise.
12662         * config/m32r/linux.mh (NATDEPFILES): Likewise.
12663         * config/m68k/linux.mh (NATDEPFILES): Likewise.
12664         * config/mips/linux.mh (NATDEPFILES): Likewise.
12665         * config/pa/linux.mh (NATDEPFILES): Likewise.
12666         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12667         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12668         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12669         * config/s390/linux.mh (NATDEPFILES): Likewise.
12670         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12671         * config/sparc/linux.mh (NATDEPFILES): Likewise.
12672         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12673         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12674         * defs.h: Remove #include <stdint.h> (moved to
12675         common/common-defs.h).
12676         * linux-nat.c: Include nat/linux-personality.h.  Remove #include
12677         <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12678         nat/linux-personality.c).
12679         (linux_nat_create_inferior): Remove code to disable address space
12680         randomization (moved to nat/linux-personality.c).  Create cleanup
12681         to disable address space randomization.
12682         * nat/linux-personality.c: New file.
12683         * nat/linux-personality.h: Likewise.
12684
12685 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
12686
12687         * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12688         common/posix-strerror.c.
12689         (posix-strerror.o): New rule.
12690         (mingw-strerror.o): Likewise.
12691         * common/common-utils.h (safe_strerror): Move prototype to here,
12692         from utils.h.
12693         * common/common.host: New file.
12694         * common/mingw-strerror.c: Likewise.
12695         * common/posix-strerror.c: Likewise.
12696         * configure: Regenerated.
12697         * configure.ac: Source common/common.host.  Add variable
12698         common_host_obs to gdb_host_obs.
12699         * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12700         gdb/common/posix-strerror.c when warning about the use of
12701         strerror.
12702         * mingw-hdep.c (safe_strerror): Remove definition; move it to
12703         common/mingw-strerror.c.
12704         * posix-hdep.c (safe_strerror): Remove definition; move it to
12705         common/posix-hdep.c.
12706         * utils.h (safe_strerror): Remove prototype; move to
12707         common/common-utils.h.
12708
12709 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12710
12711         GDB 7.8.2 released.
12712
12713 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
12714
12715         * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12716         ___XA type if the array has already been fixed.
12717
12718 2015-01-14  Yao Qi  <yao@codesourcery.com>
12719
12720         * Makefile.in (ppc-linux.o): New rule.
12721         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12722         * configure.ac: AC_CHECK_FUNCS(getauxval).
12723         * config.in: Re-generated.
12724         * configure: Re-generated.
12725         * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12726         Declare.
12727         * nat/ppc-linux.c: New file.
12728         * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12729         Call ppc64_64bit_inferior_p.
12730
12731 2015-01-14  Yao Qi  <yao@codesourcery.com>
12732
12733         * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12734         nat/ppc-linux.h.
12735         (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12736         (PPC_FEATURE_HAS_DFP): Likewise.
12737         (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12738         (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12739         (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12740         Include "nat/ppc-linux.h".
12741         * nat/ppc-linux.h: New file.
12742         * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12743
12744 2015-01-14  Pedro Alves  <palves@redhat.com>
12745
12746         PR gdb/17525
12747         * breakpoint.c: Include "interps.h".
12748         (bpstat_do_actions_1): Also check whether the interpreter is
12749         async.
12750
12751 2015-01-14  Pedro Alves  <palves@redhat.com>
12752
12753         PR cli/17828
12754         * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12755         reinstall if the interpreter is sync.
12756
12757 2015-01-13  Doug Evans  <dje@google.com>
12758
12759         * objfiles.c (objfile_filename): New function.
12760         * objfiles.h (objfile_filename): Declare it.
12761         (objfile_name): Add function comment.
12762         * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12763         bfd file name (which may be realpath'd), and the original name.
12764
12765 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12766
12767         * NEWS: Create a new section for the next release branch.
12768         Rename the section of the current branch, now that it has
12769         been cut.
12770
12771 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12772
12773         GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12774         * version.in: Bump version to 7.9.50.DATE-cvs.
12775
12776 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12777
12778         * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12779         Remove trailing new-line in argument of call to warning.
12780
12781 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12782
12783         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12784         new-line in argument of call to "warning".
12785
12786 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
12787
12788         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12789         in static block, then try searching for primitive types.
12790
12791 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
12792
12793         * top.h (gdb_add_history): Declare.
12794         * top.c (command_count): New variable.
12795         (gdb_add_history): New function.
12796         (gdb_safe_append_history): New static function.
12797         (quit_force): Call it.
12798         (command_line_input): Use gdb_add_history instead of
12799         add_history.
12800         * event-top.c (command_line_handler): Likewise.
12801
12802 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
12803
12804         PR gdb/17046
12805         * darwin-nat.c: Replace <machine/setjmp.h> #include by
12806         <setjmp.h> #include.
12807
12808 2015-01-11  Doug Evans  <xdje42@gmail.com>
12809
12810         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12811
12812 2015-01-11  Doug Evans  <xdje42@gmail.com>
12813
12814         PR gdb/15830
12815         * NEWS: The "maint demangle" command is renamed as "demangle".
12816         * demangle.c: #include cli/cli-utils.h, language.h.
12817         (demangle_command): New function.
12818         (_initialize_demangle): Add new command "demangle".
12819         * maint.c (maintenance_demangle): Stub out.
12820         (_initialize_maint_cmds): Update help text for "maint demangle",
12821         and mark as deprecated.
12822
12823 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
12824
12825         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12826         inferior_thread is a function.
12827
12828 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12829
12830         * Makefile.in (.y.c): Don't munge yacc's #line
12831         directives.
12832
12833 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
12834
12835         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12836         to prompt for input.
12837         * tui/tui-hooks.c (tui_query_hook): Remove.
12838         (tui_install_hooks): Don't set deprecated_query_hook.
12839         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12840         height calculation.  Always update the command window's cur_line.
12841
12842 2015-01-09  Pedro Alves  <palves@redhat.com>
12843
12844         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12845         function.
12846         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12847         declaration.
12848         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12849         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
12850         stop_reason.
12851         (check_stopped_by_watchpoint): New function.
12852         (save_sigtrap): Reimplement.
12853         (linux_nat_stopped_by_watchpoint): Adjust.
12854         (linux_nat_lp_status_is_event): Delete.
12855         (stop_wait_callback): Only call save_sigtrap after storing the
12856         pending status.
12857         (status_callback): If the thread had been stopped for a breakpoint
12858         that has since been removed, discard the event and resume the LWP.
12859         (count_events_callback, select_event_lwp_callback): Use
12860         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12861         (cancel_breakpoint): Rename to ...
12862         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
12863         stopped for a software breakpoint or hardware breakpoint.
12864         (select_event_lwp): Only give preference to the stepping LWP in
12865         all-stop mode.  Adjust comments.
12866         (stop_and_resume_callback): Remove references to new_pending_p.
12867         (linux_nat_filter_event): Likewise.  Leave exit events of the
12868         leader thread pending here.  Handle signal short circuiting here.
12869         Only call save_sigtrap after storing the pending waitstatus.
12870         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
12871         new_pending.  Don't handle leaving events the caller is not
12872         interested in pending here, nor handle signal short-circuiting
12873         here.  Also give equal priority to all LWPs that have had events
12874         in non-stop mode.  If reporting a software breakpoint event,
12875         unadjust the LWP's PC.
12876         * linux-nat.h (enum lwp_stop_reason): New.
12877         (struct lwp_info) <stop_pc>: New field.
12878         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12879         (struct lwp_info) <stop_reason>: New field.
12880         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12881
12882 2015-01-09  Pedro Alves  <palves@redhat.com>
12883
12884         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12885         Set the LWP's 'resumed' flag.
12886
12887 2015-01-09  Pedro Alves  <palves@redhat.com>
12888
12889         * linux-nat.c (linux_resume_one_lwp): New function.
12890         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12891         (linux_nat_resume): Use lwp_status_pending_p and
12892         linux_resume_one_lwp.
12893         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12894         (linux_handle_extended_wait): Use linux_resume_one_lwp.
12895         (status_callback, running_callback): Use lwp_status_pending_p.
12896         (lwp_status_pending_p): New function.
12897         (stop_and_resume_callback): Use lwp_status_pending_p.
12898         (linux_nat_filter_event): Use linux_resume_one_lwp.
12899         (linux_nat_wait_1): Always use status_callback to look for an LWP
12900         with a pending status.  Use linux_resume_one_lwp.
12901         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12902         linux_resume_one_lwp.
12903
12904 2015-01-09  Pedro Alves  <palves@redhat.com>
12905
12906         * breakpoint.c (bp_location_inserted_here_p): New function,
12907         factored out from ...
12908         (breakpoint_inserted_here_p): ... here.  Use
12909         ALL_BP_LOCATIONS_AT_ADDR.
12910         (software_breakpoint_inserted_here_p): Use
12911         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12912
12913 2014-01-09  Pedro Alves  <palves@redhat.com>
12914
12915         Skip enabling event reporting if the kernel supports
12916         PTRACE_EVENT_CLONE.
12917         * linux-thread-db.c: Include "nat/linux-ptrace.h".
12918         (thread_db_use_events): New function.
12919         (try_thread_db_load_1): Check thread_db_use_events before enabling
12920         event reporting.
12921         (update_thread_state): New function.
12922         (attach_thread): Use it.  Check thread_db_use_events before
12923         enabling event reporting.
12924         (thread_db_detach): Check thread_db_use_events before disabling
12925         event reporting.
12926         (find_new_threads_callback): Check thread_db_use_events before
12927         enabling event reporting.  Update the thread's state if not using
12928         libthread_db events.
12929
12930 2015-01-09  Pedro Alves  <palves@redhat.com>
12931
12932         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12933         about to wait for is > 0.
12934         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12935         the kernel thread ID is -1.
12936
12937 2015-01-09  Pedro Alves  <palves@redhat.com>
12938
12939         * linux-nat.c (attach_proc_task_lwp_callback): New function.
12940         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12941         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12942         ptrace option flags.
12943         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12944         field.
12945         * nat/linux-procfs.c: Include <dirent.h>.
12946         (linux_proc_get_int): New parameter "warn".  Handle it.
12947         (linux_proc_get_tgid): Adjust.
12948         (linux_proc_get_tracerpid): Rename to ...
12949         (linux_proc_get_tracerpid_nowarn): ... this.
12950         (linux_proc_pid_get_state): New function, factored out from
12951         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
12952         and handle it.
12953         (linux_proc_pid_is_gone): New function.
12954         (linux_proc_pid_is_stopped): Adjust.
12955         (linux_proc_pid_is_zombie_maybe_warn)
12956         (linux_proc_pid_is_zombie_nowarn): New functions.
12957         (linux_proc_pid_is_zombie): Use
12958         linux_proc_pid_is_zombie_maybe_warn.
12959         (linux_proc_attach_tgid_threads): New function.
12960         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12961         (linux_proc_get_tracerpid): Rename to ...
12962         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12963         (linux_proc_pid_is_gone): New declaration.
12964         (linux_proc_pid_is_zombie): Update comment.
12965         (linux_proc_pid_is_zombie_nowarn): New declaration.
12966         (linux_proc_attach_lwp_func): New typedef.
12967         (linux_proc_attach_tgid_threads): New declaration.
12968         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12969         use nowarn functions.
12970         (linux_ptrace_attach_fail_reason_string): Move here from
12971         gdbserver/linux-low.c and rename.
12972         (ptrace_supports_feature): If the current ptrace options are not
12973         known yet, check them now, instead of asserting.
12974         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12975         Declare.
12976
12977 2015-01-09  Pedro Alves  <palves@redhat.com>
12978
12979         * linux-thread-db.c (thread_db_find_new_threads_silently)
12980         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12981         (find_new_threads_once): Print debug output on gdb_stdlog.
12982
12983 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
12984             Pedro Alves  <palves@redhat.com>
12985
12986         * compile/compile.c: Include "gdb_wait.h".
12987         (do_rmdir): Check return value, and free 'zap'.
12988
12989 2015-01-08  Pedro Alves  <palves@redhat.com>
12990             Yao Qi  <yao@codesourcery.com>
12991
12992         * dwarf2loc.c (indirect_pieced_value): Don't call
12993         gdb_sign_extend.  Call extract_signed_integer instead.
12994         * utils.c (gdb_sign_extend): Remove.
12995         * utils.h (gdb_sign_extend): Remove declaration.
12996
12997 2015-01-07  Pierre Muller  <muller@sourceware.org>
12998
12999         PR symtab/17811
13000         * stabsread.c (define_symbol): Set language for C++ special symbols.
13001
13002 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
13003
13004         * inflow.c (initial_gdb_ttystate): Tweak comment.
13005
13006 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
13007
13008         * inflow.c (set_initial_gdb_ttystate): Add empty line after
13009         comment documenting function.
13010
13011 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
13012
13013         * terminal.h (set_initial_gdb_ttystate): Declare.
13014         * inflow.c (initial_gdb_ttystate): New static variable.
13015         (set_initial_gdb_ttystate): New setter.
13016         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
13017         instead of our current terminal state.
13018         * top.c (gdb_init): Call set_initial_gdb_ttystate.
13019
13020 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
13021
13022         * guile/scm-type.c (tyscm_array_1): Add comment.
13023         * python/py-type.c (typy_array_1): Add comment.
13024
13025 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
13026
13027         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
13028         error if N2 is equal to N1 - 1.
13029
13030 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
13031
13032         * python/py-type.c (typy_array_1): Do not raise negative-length
13033         exception if N2 is equal to N1 - 1.
13034
13035 2015-01-03  Doug Evans  <xdje42@gmail.com>
13036
13037         * c-exp.y: Whitespace cleanup.
13038         (classify_inner_name): Remove extra ;.
13039
13040 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
13041
13042         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
13043         offset signed.
13044
13045 2015-01-02  Doug Evans  <dje@google.com>
13046
13047         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
13048
13049 2015-01-02  Doug Evans  <dje@google.com>
13050
13051         * symtab.h (struct symbol): Fix typo in comment.
13052
13053 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
13054
13055         Update year range in copyright notice of all files.
13056
13057 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
13058
13059         * top.c (print_gdb_version): Update copyright year to 2015.
13060
13061 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
13062
13063         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
13064
13065 For older changes see ChangeLog-2014.
13066 \f
13067 Local Variables:
13068 mode: change-log
13069 left-margin: 8
13070 fill-column: 74
13071 version-control: never
13072 coding: utf-8
13073 End: