Add fbsd_nat_add_target.
[external/binutils.git] / gdb / ChangeLog
1 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
2
3         * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
4         (fbsd_find_memory_regions): Mark static.
5         (fbsd_nat_add_target): New function.
6         * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
7         fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
9         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
10         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
11         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
12
13 2015-04-27  Gary Benson <gbenson@redhat.com>
14
15         * objfiles.c (allocate_objfile): Do not attempt to expand name
16         if name is a "target:" filename.
17         * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
18         to load auto-load scripts for objfiles with "target:" filenames.
19
20 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
21
22         * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
23         (enum s390_vector_abi_kind): New enum.
24         (struct gdbarch_tdep)<vector_abi>: New field.
25         (s390_effective_inner_type): Add parameter min_size.  Stop
26         unwrapping if the inner type is smaller than min_size.
27         (s390_function_arg_float): Adjust call to
28         s390_effective_inner_type.
29         (s390_function_arg_vector): New function.
30         (s390_function_arg_integer): Adjust comment.
31         (struct s390_arg_state)<vr>: New field.
32         (s390_handle_arg): Add parameter 'is_unnamed'.  Pass vector
33         arguments according to vector ABI when appropriate.
34         (s390_push_dummy_call): Initialize the argument state's field
35         'vr'.  Adjust calls to s390_handle_arg.
36         (s390_register_return_value): Handle vector return values.
37         (s390_return_value): Apply the "register" return value convention
38         to a vector when appropriate.
39         (s390_gdbarch_init): Initialize tdep->vector_abi.
40         * NEWS: Announce S390 vector ABI support.
41
42 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
43
44         * s390-linux-tdep.c (s390_return_value_convention): Remove
45         function.  Inline its logic...
46         (s390_return_value): ...here.  Instead, move the handling of the
47         "register" return value convention...
48         (s390_register_return_value): ...here.  New function.
49
50 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
51
52         * s390-linux-tdep.c
53         (is_float_singleton): Remove function.  Move the "singleton" part
54         of the logic...
55         (s390_effective_inner_type): ...here.  New function.
56         (is_float_like): Remove function.  Inline its logic...
57         (s390_function_arg_float): ...here.
58         (is_pointer_like, is_integer_like, is_struct_like): Remove
59         functions.  Inline their logic...
60         (s390_function_arg_integer): ...here.
61         (s390_function_arg_pass_by_reference): Remove function.
62         (extend_simple_arg): Remove function.
63         (alignment_of): Remove function.
64         (struct s390_arg_state): New structure.
65         (s390_handle_arg): New function.
66         (s390_push_dummy_call): Move parameter placement logic to the new
67         function s390_handle_arg.  Call it for calculating the stack area
68         sizes first, and again for actually writing the parameters.
69
70 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
71
72         * s390-linux-tdep.c (is_power_of_two): Add comment.  Return
73           false if the argument is zero.
74
75 2015-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
76
77         * ada-lang.c (template_to_static_fixed_type): Return input type
78         when it is already fixed.  Cache the input type itself when not
79         creating a static fixed copy.  Make it explicit that we never
80         molestate the input type.
81         * gdbtypes.c (resolve_dynamic_struct): Reset the
82         TYPE_TARGET_TYPE field for resolved copies.
83
84 2015-04-27  Joel Brobecker  <brobecker@adacore.com>
85
86         * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
87         (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
88         (template_to_static_fixed_type): Call ada_check_typedef only
89         when necessary.
90
91 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
92
93         * cli/cli-dump.c (srec_dump_command): Add internationalization
94         mark ups.
95         (ihex_dump_command): Likewise.
96         (tekhex_dump_command): Likewise.
97         (binary_dump_command): Likewise.
98         (binary_append_command): Likewise.
99
100 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
101
102         * cli/cli-dump.c (verilog_cmdlist): New variable.
103         (dump_verilog_memory): New function.
104         (dump_verilog_value): New function.
105         (verilog_dump_command): New function.
106         (_initialize_cli_dump): Add new commands to support verilog dump
107         format.
108         * NEWS: Add entry for "dump verilog".
109
110 2015-04-24  Pierre-Marie de Rodat  <derodat@adacore.com>
111
112         * gdbtypes.c (print_gnat_stuff): Do not recurse on the
113         descriptive type when there is none.
114
115 2015-04-23  Patrick Palka  <patrick@parcs.ath.cx>
116
117         * tui/tui-win.c (tui_async_resize_screen): Call
118         rl_resize_terminal().
119
120 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
121
122         * windows-nat.c (handle_output_debug_string): Don't change
123         current_event.dwThreadId.
124         (get_windows_debug_event): Use thread_id, rather than relying on
125         current_event.dwThreadId being changed.
126
127 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
128
129         * windows-nat.c (windows_continue): Report an error if
130         ContinueDebugEvent() fails.
131
132 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
133
134         * windows-nat.c (windows_resume): Fix misspelling in debug output.
135
136 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
137
138         * windows-nat.c (get_windows_debug_event): Replace retval with
139         thread_id throughout.  Update stale comment.
140
141 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
142
143         * windows-nat.c (get_windows_debug_event): Don't use ternary
144         conditional operator.
145
146 2015-04-21  Pierre Muller  <muller@sourceware.org>
147
148         PR pascal/17815
149         p-exp.y (yylex): Reorganize code to return the matched pattern
150         for a field of this.
151
152 2015-04-21  Gary Benson <gbenson@redhat.com>
153
154         * common/fileio.h (fileio_to_host_openflags): New declaration.
155         * common/fileio.c (fcntl.h): New include.
156         (fileio_to_host_openflags): New function, factored out from...
157         * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
158         Single use updated.
159
160 2015-04-21  Kevin Buettner  <kevinb@redhat.com>
161
162         * rl78-tdep.c (RL78_SP_ADDR): Define.
163         (opc_reg_to_gdb_regnum): New static function.
164         (rl78_analyze_prologue): Recognize instructions forming slightly
165         more interesting prologues.
166
167 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
168
169         Revert:
170         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
171         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
172         TYPE_CODE_REF types so that they are not considered as dynamic
173         depending on the referenced type.
174         (resolve_dynamic_type_internal): Likewise.
175
176 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
177
178         Revert:
179         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
180         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
181         "top_level" parameter.
182         (resolve_dynamic_type_internal): Remove the unused "top_level"
183         parameter.  Update call to is_dynamic_type_internal.
184         (is_dynamic_type): Update call to is_dynamic_type_internal.
185         (resolve_dynamic_range): Update call to
186         resolve_dynamic_type_internal.
187         (resolve_dynamic_union): Likewise.
188         (resolve_dynamic_struct): Likewise.
189         (resolve_dynamic_type): Likewise.
190
191 2015-04-19  Gabriel Krisman Bertazi  <gabriel@krisman.be>
192
193         * breakpoint.c (update_dprintf_command_list): Remove duplicated
194         xmalloc.
195
196 2015-04-20  Thomas Schwinge  <thomas@codesourcery.com>
197
198         * reply_mig_hack.awk: Robustify parsing.
199
200         * reply_mig_hack.awk: Don't bother to declare an intermediate
201         function pointer variable.
202
203 2015-04-17  Doug Evans  <dje@google.com>
204
205         * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
206         to "exec_displacement" to avoid confusion with inner use of the name.
207
208 2015-04-17  Pedro Alves  <palves@redhat.com>
209
210         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
211         if HW point of TYPE isn't supported.
212
213 2015-04-17  Yao Qi  <yao.qi@linaro.org>
214             Pedro Alves  <palves@redhat.com>
215
216         * target.h (target_can_use_hardware_watchpoint): Update comments.
217         Remove trailing ";".
218
219 2015-04-17  Gary Benson <gbenson@redhat.com>
220
221         * remote.c (remote_add_inferior): New argument try_open_exec.
222         If nonzero, attempt to open the inferior's executable file as
223         the main executable if no main executable is open already.
224         All callers updated.
225         * NEWS: Mention that GDB now supports automatic location and
226         retrieval of executable + files from remote targets.
227
228 2015-04-17  Gary Benson <gbenson@redhat.com>
229
230         * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
231         * remote.c (PACKET_qXfer_exec_file): Likewise.
232         (remote_protocol_features): Register the
233         "qXfer:exec-file:read" feature.
234         (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
235         (remote_pid_to_exec_file): New function.
236         (init_remote_ops): Initialize to_pid_to_exec_file.
237         (_initialize_remote): Register new "set/show remote
238         pid-to-exec-file-packet" command.
239         * NEWS: Announce new qXfer:exec-file:read packet.
240
241 2015-04-17  Gary Benson <gbenson@redhat.com>
242
243         * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
244         New declaration.
245         * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
246         New function, factored out from...
247         * linux-nat.c (linux_child_pid_to_exec_file): ...here.
248
249 2015-04-17  Gary Benson <gbenson@redhat.com>
250
251         * exec.c (solist.h): New include.
252         (exec_file_locate_attach): Prefix absolute executable
253         paths with gdb_sysroot if set.
254         * NEWS: Mention that executable paths may be prepended
255         with sysroot.
256
257 2015-04-17  Gary Benson <gbenson@redhat.com>
258
259         * solist.h (exec_file_find): New declaration.
260         * solib.c (solib_find_1): New function, factored out from...
261         (solib_find): ...here.
262         (exec_file_find): New function.
263
264 2015-04-17  Gary Benson <gbenson@redhat.com>
265
266         * gdbcore.h (exec_file_locate_attach): New declaration.
267         * exec.c (exec_file_locate_attach): New function, factored
268         out from...
269         * infcmd.c (attach_command_post_wait): ...here.
270
271 2015-04-17  Mike Frysinger  <vapier@gentoo.org>
272
273         * MAINTAINERS: Add myself for Blackfin/write-after-approval.
274
275 2015-04-16  Yao Qi  <yao.qi@linaro.org>
276
277         * infrun.c (maybe_software_singlestep): Declare.
278         (displaced_step_fixup): Call maybe_software_singlestep.
279
280 2015-04-15  Doug Evans  <dje@google.com>
281
282         * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
283
284 2015-04-15  Doug Evans  <dje@google.com>
285
286         * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
287
288 2015-04-15  Simon Marchi  <simon.marchi@ericsson.com>
289
290         * python/lib/gdb/command/unwinders.py: Add parentheses.
291
292 2015-04-15  Yao Qi  <yao.qi@linaro.org>
293
294         * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
295
296 2015-04-15  Yao Qi  <yao.qi@linaro.org>
297
298         * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
299
300 2015-04-15  Yao Qi  <yao.qi@linaro.org>
301
302         * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
303         dsc->insn_size instead of 4.
304
305 2015-04-14  Gary Benson <gbenson@redhat.com>
306
307         * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
308         * minidebug.c (lzma_stat): Likewise.
309         * solib-spu.c (spu_bfd_iovec_stat): Likewise.
310         * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
311
312 2015-04-13  Stan Shebs  <stanshebs@google.com>
313
314         * MAINTAINERS: Update my email address.
315
316 2015-04-13  John Baldwin  <jhb@FreeBSD.org>
317
318         * amd64-tdep.c (amd64_target_description): New function.
319         * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
320         * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
321         (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
322         x86 extended save area.
323         (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
324         * amd64bsd-nat.h: Export amd64bsd_xsave_len.
325         * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
326         (_initialize_amd64fbsd_nat): Set "to_read_description" to
327         "amd64fbsd_read_description".
328         * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
329         (amd64fbsd_supply_xstateregset): New function.
330         (amd64fbsd_collect_xstateregset): New function.
331         Add "amd64fbsd_xstateregset".
332         (amd64fbsd_iterate_over_regset_sections): New function.
333         (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
334         "I386_FBSD_XSAVE_XCR0_OFFSET".
335         Add "iterate_over_regset_sections" gdbarch method.
336         Add "core_read_description" gdbarch method.
337         * i386-tdep.c (i386_target_description): New function.
338         * i386-tdep.h: Export i386_target_description and tdesc_i386.
339         * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
340         (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
341         x86 extended save area.
342         (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
343         * i386bsd-nat.h: Export i386bsd_xsave_len.
344         * i386fbsd-nat.c (i386fbsd_read_description): New function.
345         (_initialize_i386fbsd_nat): Set "to_read_description" to
346         "i386fbsd_read_description".
347         * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
348         (i386fbsd_core_read_description): New function.
349         (i386fbsd_supply_xstateregset): New function.
350         (i386fbsd_collect_xstateregset): New function.
351         Add "i386fbsd_xstateregset".
352         (i386fbsd_iterate_over_regset_sections): New function.
353         (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
354         "I386_FBSD_XSAVE_XCR0_OFFSET".
355         Add "iterate_over_regset_sections" gdbarch method.
356         Add "core_read_description" gdbarch method.
357         * i386fbsd-tdep.h: New file.
358
359 2015-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
360
361         * NEWS (Changes since GDB 7.9): Add removed -xdb.
362         * breakpoint.c (command_line_is_silent): Remove xdb_commands
363         conditional.
364         (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
365         and lb.
366         * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
367         va.
368         * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
369         conditional.
370         * defs.h (xdb_commands): Remove declaration.
371         * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
372         * guile/scm-cmd.c (command_classes): Remove xdb from comment.
373         * infcmd.c (run_no_args_command, go_command): Remove.
374         (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
375         * infrun.c (xdb_handle_command): Remove.
376         (_initialize_infrun): Remove xdb_commands for lz and z.
377         * main.c (xdb_commands): Remove variable.
378         (captured_main): Remove "xdb" from long_options.
379         (print_gdb_help): Remove --xdb from help.
380         * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
381         * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
382         * stack.c (backtrace_full_command, args_plus_locals_info)
383         (current_frame_command): Remove.
384         (_initialize_stack): Remove xdb_commands for t, T and l.
385         * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
386         * thread.c (_initialize_thread): Remove xdb_commands condition.
387         * tui/tui-layout.c (tui_toggle_layout_command)
388         (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
389         (_initialize_tui_layout): Remove xdb_commands for td and ts.
390         * tui/tui-regs.c (tui_scroll_regs_forward_command)
391         (tui_scroll_regs_backward_command): Remove.
392         (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
393         * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
394         (_initialize_tui_win): Remove xdb_commands for U and w.
395         * utils.c (pagination_on_command, pagination_off_command): Remove.
396         (initialize_utils): Remove xdb_commands for am and sm.
397
398 2015-04-10  Pedro Alves  <palves@redhat.com>
399
400         * infrun.c (displaced_step_fixup): Switch to the event ptid
401         earlier.  If the thread stopped for a watchpoint and the
402         target/arch has non-continuable watchpoints, cancel the displaced
403         step.
404         (resume): Don't start a displaced step if in-line step-over info
405         is valid.
406
407 2015-04-10  Pedro Alves  <palves@redhat.com>
408
409         * infrun.c (displaced_step_in_progress): New function.
410         (do_target_resume): Advise target to report all signals if
411         displaced stepping.
412
413 2015-04-10  Pedro Alves  <palves@redhat.com>
414
415         PR gdb/18216
416         * infrun.c (process_event_stop_test): Don't assume a step-resume
417         is set if tp->stepped_breakpoint is true.
418
419 2015-04-10  Yao Qi  <yao.qi@linaro.org>
420
421         * arm-tdep.c (install_alu_reg): Update comment.
422         (thumb_copy_alu_reg): Remove local variable rn.  Update
423         debugging message.  Use r2 instead of r1 in the modified
424         instruction.
425
426 2015-04-10  Pedro Alves  <palves@redhat.com>
427
428         PR gdb/13858
429         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
430         linux_displaced_step_location as gdbarch_displaced_step_location
431         hook.
432         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
433         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
434         * linux-tdep.c (linux_displaced_step_location): New function,
435         based on ppc_linux_displaced_step_location.
436         * linux-tdep.h (linux_displaced_step_location): New declaration.
437         * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
438         (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
439         Delete.
440         (ppc_linux_init_abi): Install linux_displaced_step_location as
441         gdbarch_displaced_step_location hook, even without Cell/B.E..
442         (_initialize_ppc_linux_tdep): Don't install
443         ppc_linux_inferior_created as inferior_created observer.
444         * s390-linux-tdep.c (s390_gdbarch_init): Install
445         linux_displaced_step_location as gdbarch_displaced_step_location
446         hook.
447
448 2015-04-09  Gary Benson <gbenson@redhat.com>
449
450         * common/common-remote-fileio.h: Rename to...
451         * common/fileio.h: ...this.  Update all references.
452         (remote_fileio_to_fio_error): Rename to...
453         (host_to_fileio_error): ...this.
454         (remote_fileio_to_be): Rename to...
455         (host_to_bigendian): ...this.  Update all callers.
456         (remote_fileio_to_fio_uint): Rename to...
457         (host_to_fileio_uint): ...this.  Update all callers.
458         (remote_fileio_to_fio_time): Rename to...
459         (host_to_fileio_time): ...this.  Update all callers.
460         (remote_fileio_to_fio_stat): Rename to...
461         (host_to_fileio_stat): ...this.
462         Update all references.
463         * common/common-remote-fileio.c: Rename to...
464         * common/fileio.c: ...this.  Update all references.
465         (remote_fileio_to_fio_error): Rename to...
466         (host_to_fileio_error): ...this.  Update all callers.
467         (remote_fileio_mode_to_target): Rename to...
468         (fileio_mode_pack): ...this.  Update all callers.
469         (remote_fileio_to_fio_mode): Rename to...
470         (host_to_fileio_mode): ...this.  Update all callers.
471         (remote_fileio_to_fio_ulong): Rename to...
472         (host_to_fileio_ulong): ...this.  Update all callers.
473         (remote_fileio_to_fio_stat): Rename to...
474         (host_to_fileio_stat): ...this.  Update all callers.
475
476 2015-04-09  Andy Wingo  <wingo@igalia.com>
477
478         * guile/scm-frame.c (gdbscm_frame_read_register): New function.
479         (frame_functions): Bind gdbscm_frame_read_register to
480         frame-read-register.
481         * guile/lib/gdb.scm (frame-read-register): Export.
482
483 2015-04-09  Gary Benson <gbenson@redhat.com>
484
485         * common/common-remote-fileio.h (remote_fileio_to_fio_error):
486         New declaration.
487         * common/common-remote-fileio.c (remote_fileio_to_fio_error):
488         New function, factored out the named functions below.
489         * inf-child.c (gdb/fileio.h): Remove include.
490         (common-remote-fileio.h): New include.
491         (inf_child_errno_to_fileio_error): Remove function.  Update
492         all callers to use remote_fileio_to_fio_error.
493         * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
494
495 2015-04-09  Andy Wingo  <wingo@igalia.com>
496
497         * MAINTAINERS (Write After Approval): Add Andy Wingo.
498
499 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
500
501         * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
502         Replace $zlibdir with $ZLIBDIR in LDFLAGS.
503         * configure: Regenerated.
504
505 2015-04-09  Pedro Alves  <palves@redhat.com>
506
507         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
508         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
509         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
510         * gnulib/import/Makefile.am: Update.
511         * gnulib/import/Makefile.in: Update.
512         * gnulib/import/m4/gnulib-cache.m4: Update.
513         * gnulib/import/m4/gnulib-comp.m4: Update.
514         * gnulib/import/m4/strtok_r.m4: New file.
515         * gnulib/import/strtok_r.c: New file.
516
517 2015-04-09  Pedro Alves  <palves@redhat.com>
518
519         * gnulib/update-gnulib.sh (aclocal version check): Filter out
520         "called too early to check prototype".
521
522 2015-04-08  Sergio Durigan Junior  <sergiodj@redhat.com>
523
524         PR python/16699
525         * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
526         use a caching mechanism.  Adjust comments and code to reflect
527         that.  Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
528         (cmdpy_completer_handle_brkchars): Adjust call to
529         cmdpy_completer_helper.  Call Py_XDECREF for 'resultobj'.
530         (cmdpy_completer): Likewise.
531
532 2015-04-08  Yao Qi  <yao.qi@linaro.org>
533
534         * spu-tdep.c (spu_gdbarch_init): Don't call
535         set_gdbarch_cannot_step_breakpoint.
536
537 2015-04-07  Sergio Durigan Junior  <sergiodj@redhat.com>
538
539         * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
540
541 2015-04-07  Pedro Alves  <palves@redhat.com>
542
543         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
544         (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
545         (delete_exited_threads): New declaration.
546         * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
547         * linux-nat.c (linux_nat_update_thread_list): New function.
548         (linux_nat_add_target): Install it.
549         * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
550         * thread.c (prune_threads): Use ALL_THREADS_SAFE.
551         (delete_exited_threads): New function.
552
553 2015-04-07  Pedro Alves  <pedro@codesourcery.com>
554
555         * infrun.c (resume) <displaced stepping debug output>: Get the
556         leader thread's regcache, not resume_ptid's.
557
558 2015-04-06  Doug Evans  <xdje42@gmail.com>
559
560         * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
561         VAR_DOMAIN.
562         (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
563         Include symbol domain in debugging output.
564
565 2015-04-06  Pedro Alves  <palves@redhat.com>
566             Bernd Edlinger  <bernd.edlinger@hotmail.de>
567
568         * configure.ac: Remove the mingw32-specific stub-termcap.o
569         fallback, and instead fallback to the stub termcap on all hosts.
570         * configure: Regenerate.
571         * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
572         symbols.
573
574 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
575
576         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
577         "top_level" parameter.
578         (resolve_dynamic_type_internal): Remove the unused "top_level"
579         parameter.  Update call to is_dynamic_type_internal.
580         (is_dynamic_type): Update call to is_dynamic_type_internal.
581         (resolve_dynamic_range): Update call to
582         resolve_dynamic_type_internal.
583         (resolve_dynamic_union): Likewise.
584         (resolve_dynamic_struct): Likewise.
585         (resolve_dynamic_type): Likewise.
586
587 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
588
589         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
590         TYPE_CODE_REF types so that they are not considered as dynamic
591         depending on the referenced type.
592         (resolve_dynamic_type_internal): Likewise.
593
594 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
595
596         * Makefile.in (top_srcdir): New.
597         * configure: Regenerated.
598
599 2015-04-02  Gary Benson <gbenson@redhat.com>
600
601         * NEWS: Announce the new default sysroot of "target:".
602
603 2015-04-02  Gary Benson <gbenson@redhat.com>
604
605         * main.c (captured_main): Set gdb_sysroot to "target:"
606         if not otherwise set.
607
608 2015-04-02  Gary Benson <gbenson@redhat.com>
609
610         * exec.c (exec_file_attach): Support "target:" filenames.
611
612 2015-04-02  Gary Benson <gbenson@redhat.com>
613
614         * solib.c (solib_find): Strip "target:" prefix from sysroot
615         if accessing local files.
616
617 2015-04-02  Gary Benson <gbenson@redhat.com>
618
619         * symfile.c (symfile_bfd_open): Reorder to remove duplicated
620         checks and error messages.
621
622 2015-04-02  Gary Benson <gbenson@redhat.com>
623
624         * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
625         (remote_filename_p): Remove declaration.
626         (remote_bfd_open): Likewise.
627         * remote.c (remote_bfd_iovec_open): Remove function.
628         (remote_bfd_iovec_close): Likewise.
629         (remote_bfd_iovec_pread): Likewise.
630         (remote_bfd_iovec_stat): Likewise.
631         (remote_filename_p): Likewise.
632         (remote_bfd_open): Likewise.
633         * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
634         * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
635         (gdb_bfd_open_maybe_remote): Remove function.
636         (symfile_bfd_open):  Replace remote filename check with
637         target filename check.
638         (reread_symbols): Use gdb_bfd_open.
639         * build-id.c (gdbcore.h): New include.
640         (build_id_to_debug_bfd): Use gdb_bfd_open.
641         * infcmd.c (attach_command_post_wait): Remove remote filename
642         check.
643         * solib.c (solib_find): Replace remote-specific handling with
644         target-specific handling.  Update comments where necessary.
645         (solib_bfd_open): Replace remote-specific handling with
646         target-specific handling.
647         (gdb_sysroot_changed): New function.
648         (_initialize_solib): Call the above when gdb_sysroot changes.
649         * windows-tdep.c (gdbcore.h): New include.
650         (windows_xfer_shared_library): Use gdb_bfd_open.
651
652 2015-04-02  Gary Benson <gbenson@redhat.com>
653
654         * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
655         (is_target_filename): New declaration.
656         (gdb_bfd_has_target_filename): Likewise.
657         (gdb_bfd_open): Update documentation comment.
658         * gdb_bfd.c (target.h): New include.
659         (gdb/fileio.h): Likewise.
660         (is_target_filename): New function.
661         (gdb_bfd_has_target_filename): Likewise.
662         (fileio_errno_to_host): Likewise.
663         (gdb_bfd_iovec_fileio_open): Likewise.
664         (gdb_bfd_iovec_fileio_pread): Likewise.
665         (gdb_bfd_iovec_fileio_close): Likewise.
666         (gdb_bfd_iovec_fileio_fstat): Likewise.
667         (gdb_bfd_open): Use target fileio to access paths prefixed
668         with "target:" where necessary.
669
670 2015-04-02  Gary Benson <gbenson@redhat.com>
671
672         * target.h (struct target_ops) <to_filesystem_is_local>:
673         New field.
674         (target_filesystem_is_local): New macro.
675         * target-delegates.c: Regenerate.
676         * remote.c (remote_filesystem_is_local): New function.
677         (init_remote_ops): Initialize to_filesystem_is_local.
678
679 2015-04-02  Gary Benson <gbenson@redhat.com>
680
681         * target.h (struct target_ops) <to_fileio_fstat>: New field.
682         (target_fileio_fstat): New declaration.
683         * target.c (target_fileio_fstat): New function.
684         * inf-child.c (inf_child_fileio_fstat): Likewise.
685         (inf_child_target): Initialize to_fileio_fstat.
686         * remote.c (init_remote_ops): Likewise.
687
688 2015-04-01  Sasha Smundak  <asmundak@google.com>
689
690         * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
691         (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
692         (py-unwind.o): New recipe.
693         * NEWS: mention Python frame unwinding.
694         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
695         gdb/unwinder.py and gdb/command/unwinder.py
696         * python/lib/gdb/__init__.py (packages): Add frame_unwinders
697         list.
698         (execute_unwinders): New function.
699         * python/lib/gdb/command/unwinders.py: New file.
700         * python/lib/gdb/unwinder.py: New file.
701         * python/py-objfile.c (objfile_object): Add frame_unwinders field.
702         (objfpy_dealloc): Decrement frame_unwinders reference count.
703         (objfpy_initialize): Create frame_unwinders list.
704         (objfpy_get_frame_unwinders): New function.
705         (objfpy_set_frame_unwinders): Ditto.
706         (objfile_getset): Add frame_unwinders attribute to Objfile.
707         * python/py-progspace.c (pspace_object): Add frame_unwinders field.
708         (pspy_dealloc): Decrement frame_unwinders reference count.
709         (pspy_initialize): Create frame_unwinders list.
710         (pspy_get_frame_unwinders): New function.
711         (pspy_set_frame_unwinders): Ditto.
712         (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
713         * python/py-unwind.c: New file.
714         * python/python-internal.h (pspy_get_name_unwinders): New prototype.
715         (objpy_get_frame_unwinders): New prototype.
716         (gdbpy_initialize_unwind): New prototype.
717         * python/python.c (gdbpy_apply_type_printers): Call
718         gdbpy_initialize_unwind.
719
720 2015-04-01  Pedro Alves  <palves@redhat.com>
721
722         * infrun.c (resume): Check currently_stepping after clearing
723         stepped_breakpoint, not before.
724
725 2015-04-01  Pedro Alves  <palves@redhat.com>
726
727         * infrun.c (print_target_wait_results): Print all the ptid
728         elements.
729
730 2015-04-01  Pedro Alves  <palves@redhat.com>
731
732         * infrun.c (keep_going): Also discard cleanups if inserting
733         breakpoints fails.
734
735 2015-04-01  Pedro Alves  <palves@redhat.com>
736
737         * infrun.c (wait_for_inferior): Install the
738         finish_thread_state_cleanup cleanup across the whole function, not
739         just around handle_inferior_event.
740
741 2015-04-01  Pedro Alves  <palves@redhat.com>
742
743         * infrun.c (resume) <step past permanent breakpoint>: Use
744         do_target_resume.
745
746 2015-04-01  Pedro Alves  <palves@redhat.com>
747
748         * linux-nat.c (linux_handle_extended_wait): Always call set_running.
749
750 2015-04-01  Pierre-Marie de Rodat  <derodat@adacore.com>
751
752         * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
753
754 2015-04-01  Pedro Alves  <palves@redhat.com>
755
756         * linux-thread-db.c (record_thread): Readd the thread to gdb's
757         list if it was marked exited.
758
759 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
760
761         * configure: Regenerated.
762
763 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
764             Jan Kratochvil  <jan.kratochvil@redhat.com>
765             Oleg Nesterov  <oleg@redhat.com>
766
767         PR corefiles/16092
768         * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
769         New enum identifying the various options of the coredump_filter
770         file.
771         (struct smaps_vmflags): New struct.
772         (use_coredump_filter): New variable.
773         (decode_vmflags): New function.
774         (mapping_is_anonymous_p): Likewise.
775         (dump_mapping_p): Likewise.
776         (linux_find_memory_regions_full): New variables
777         'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
778         Removed variable 'modified'.  Read /proc/<PID>/smaps file; improve
779         parsing of its information.  Implement memory mapping filtering
780         based on its contents.
781         (show_use_coredump_filter): New function.
782         (_initialize_linux_tdep): New command 'set use-coredump-filter'.
783         * NEWS: Mention the possibility of using the
784         '/proc/PID/coredump_filter' file when generating a corefile.
785         Mention new command 'set use-coredump-filter'.
786
787 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
788
789         * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
790         read_memory_unsigned_integer.
791
792 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
793
794         * Makefile.in (ZLIB): New.
795         (ZLIBINC): Likewise.
796         (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
797         (CLIBS): Add $(ZLIB).
798         * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
799         Add -lz to LIBS.
800         * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
801         * top.c (print_gdb_configuration): Remove --with-zlib and
802         --without-zlib.
803         * config.in: Regenerated.
804         * configure: Likewise.
805
806 2015-03-31  Antoine Tremblay  <antoine.tremblay@ericsson.com>
807
808         * NEWS: Mention info os cpus support.
809         * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
810         (struct osdata_type): Add cpus entry, reorder the entries in
811         alphabetical order.
812
813 2015-03-31  Matthias Klose  <doko@ubuntu.com>
814
815         * compile/compile.c (compile_to_object): Allow triplets with or
816         without vendor set.
817
818 2015-03-30  Doug Evans  <dje@google.com>
819
820         PR c++/18141
821         * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
822         klass in VAR_DOMAIN.
823
824 2015-03-30  Gary Benson <gbenson@redhat.com>
825
826         * remote.c (remote_mourn_1): Remove function.  Update all callers
827         to use remote_mourn.
828         (extended_remote_mourn_1): Remove function.  Update all callers
829         to use extended_remote_mourn.
830         (extended_remote_attach_1): Remove function.  Update all callers
831         to use extended_remote_attach.
832
833 2015-03-28  James Bowman  <james.bowman@ftdichip.com>
834
835         * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
836         (HFILES_NO_SRCDIR): Add ft32-tdep.h.
837         (ALLDEPFILES): Add ft32-tdep.c.
838         * configure.tgt: Add FT32 entry.
839         * ft32-tdep.c: New file, FT32 target-dependent code.
840         * ft32-tdep.h: New file, FT32 target-dependent code.
841
842 2015-03-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
843
844         Revert:
845         2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
846         Code cleanup.
847         * printcmd.c (print_command_1): Move expr variable scope.
848
849 2015-03-27  Joel Brobecker  <brobecker@adacore.com>
850
851         * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
852
853 2015-03-27  Andrzej Kaczmarek  <andrzej.kaczmarek@tieto.com>
854
855         * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
856         sections.
857
858 2015-03-26  Joel Brobecker  <brobecker@adacore.com>
859
860         * dtrace-probe.c (dtrace_process_dof_probe): Contain any
861         exception raised while parsing the probe arguments.
862         Force parsing to be done using the C language parser.
863         * expression.h (parse_expression_with_language): Declare.
864         * parse.c (parse_expression_with_language): New function.
865
866 2015-03-26  Jon Turney  <jon.turney@dronecode.org.uk>
867
868         * MAINTAINERS (Write After Approval): Add "Jon Turney".
869
870 2015-03-26  Andy Wingo  <wingo@igalia.com>
871
872         PR symtab/18148
873         * dwarf2read.c (struct partial_die_info): Add has_const_value
874         member.
875         (add_partial_symbol): Don't punt on symbols that have const_value
876         attributes.
877         (read_partial_die): Detect DW_AT_const_value.
878
879 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
880
881         Code cleanup.
882         * printcmd.c (print_command_1): Move expr variable scope.
883
884 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
885
886         Code cleanup.
887         * printcmd.c (validate_format): Make the parameter cmdname const.
888
889 2015-03-26  Don Breazeal  <donb@codesourcery.com>
890
891         * remote.c (_initialize_remote): Update comment.
892
893 2015-03-26  Pedro Alves  <palves@redhat.com>
894             Jon TURNEY  <jon.turney@dronecode.org.uk>
895
896         * coffread.c (coff_symfile_read): When constructing the name of an
897         import stub symbol from import symbol for amd64, only skip the
898         char after _imp_ if the target is underscored (like i386) and the
899         char is indeed the target's leading char.
900
901 2015-03-25  Pedro Alves  <palves@redhat.com>
902
903         * target.h <to_async>: Replace 'callback' and 'context' parameters
904         with boolean 'enable' parameter.
905         (target_async): Replace CALLBACK and CONTEXT parameters with
906         boolean ENABLE parameter.
907         * inf-loop.c (inferior_event_handler): Adjust.
908         * linux-nat.c (linux_nat_attach, linux_nat_resume)
909         (linux_nat_resume): Adjust.
910         (async_client_callback, async_client_context): Delete.
911         (handle_target_event): Call inferior_event_handler directly.
912         (linux_nat_async): Replace 'callback' and 'context' parameters
913         with boolean 'enable' parameter.  Adjust.  Remove references to
914         async_client_callback and async_client_context.
915         (linux_nat_close): Adjust.
916         * record-btrace.c (record_btrace_async): Replace 'callback' and
917         'context' parameters with boolean 'enable' parameter.  Adjust.
918         (record_btrace_resume): Adjust.
919         * record-full.c (record_full_async): Replace 'callback' and
920         'context' parameters with boolean 'enable' parameter.  Adjust.
921         (record_full_resume, record_full_core_resume): Adjust.
922         * remote.c (struct remote_state) <async_client_callback,
923         async_client_context>: Delete fields.
924         (remote_start_remote, extended_remote_attach_1, remote_resume)
925         (extended_remote_create_inferior): Adjust.
926         (remote_async_serial_handler): Call inferior_event_handler
927         directly.
928         (remote_async): Replace 'callback' and 'context' parameters with
929         boolean 'enable' parameter.  Adjust.
930         * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
931         Adjust.
932         * target-delegates.c: Regenerate.
933
934 2015-03-25  Gary Benson <gbenson@redhat.com>
935             Pedro Alves  <palves@redhat.com>
936
937         * target.c (fileio_ft_t): New typedef, define object vector.
938         (fileio_fhandles): New static variable.
939         (is_closed_fileio_fh): New macro.
940         (lowest_closed_fd): New static variable.
941         (acquire_fileio_fd): New function.
942         (release_fileio_fd): Likewise.
943         (fileio_fd_to_fh): New macro.
944         (target_fileio_open): Wrap the file descriptor on success.
945         (target_fileio_pwrite): Updated to use wrapped file descriptor.
946         (target_fileio_pread): Likewise.
947         (target_fileio_close): Likewise.
948
949 2015-03-24  Pedro Alves  <palves@redhat.com>
950
951         * thread.c (thread_apply_all_command): Take exited threads into
952         account.
953
954 2015-03-24  Pedro Alves  <palves@redhat.com>
955
956         * infrun.c (resume, proceed): Mention
957         switch_back_to_stepped_thread, not switch_back_to_stepping.
958
959 2015-03-24  Pedro Alves  <palves@redhat.com>
960
961         * infrun.c (user_visible_resume_ptid): Rewrite going from
962         most-locked to unlocked instead of the opposite.  Move comment ...
963         * infrun.h (user_visible_resume_ptid): ... here.
964
965 2015-03-24  Pedro Alves  <palves@redhat.com>
966
967         * linux-nat.c (linux_nat_resume): Output debug logs before trying
968         to resume the event lwp.  Use the lwp's ptid instead of the passed
969         in (maybe wildcard) ptid.
970         (stop_wait_callback): Tweak debug log output.
971         (check_stopped_by_breakpoint): Tweak debug log output.  Also dump
972         TRAP_TRACE.
973         (linux_nat_filter_event): In debug output, distinguish a
974         resume_stop SIGSTOP from a delayed SIGSTOP.  Output debug logs
975         before trying to resume the lwp.
976
977 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
978
979         * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
980         pointer indirection.
981         * gdbtypes.c (get_dyn_prop): Adjust, following change above.
982         (add_dyn_prop, copy_dynamic_prop_list): Likewise.
983
984 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
985
986         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
987         Renames DYN_ATTR_DATA_LOCATION.
988         (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
989         DYN_ATTR_DATA_LOCATION.
990         * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
991         instead of DYN_ATTR_DATA_LOCATION.
992
993 2015-03-24  Pedro Alves  <palves@redhat.com>
994
995         * breakpoint.c (until_break_command): Adjust call to proceed.
996         * gdbthread.h (struct thread_control_state) <stepping_command>:
997         New field.
998         * infcall.c (run_inferior_call): Adjust call to proceed.
999         * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
1000         Adjust calls to proceed.
1001         (set_step_frame): Set the current thread's step_start_function
1002         here.
1003         (step_once): Adjust calls to proceed.
1004         (jump_command, signal_command, until_next_command)
1005         (finish_backward, finish_forward, proceed_after_attach_callback)
1006         (attach_command_post_wait): Adjust calls to proceed.
1007         * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
1008         (do_target_resume): New function, factored out from ...
1009         (resume): ... here.  Remove 'step' parameter.  Instead, check
1010         currently_stepping to determine whether the thread should be
1011         single-stepped.
1012         (proceed): Remove 'step' parameter and don't set the thread's
1013         step_start_function here.  Adjust call to 'resume'.
1014         (handle_inferior_event): Adjust calls to 'resume'.
1015         (switch_back_to_stepped_thread): Use do_target_resume instead of
1016         'resume'.
1017         (keep_going): Adjust calls to 'resume'.
1018         * infrun.h (proceed): Remove 'step' parameter.
1019         (resume): Likewise.
1020         * windows-nat.c (do_initial_windows_stuff): Adjust call to
1021         'resume'.
1022         * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
1023
1024 2015-03-24  Pedro Alves  <palves@redhat.com>
1025
1026         * gdbthread.h (struct thread_control_state) <stepping_command>:
1027         New field.
1028         * infcmd.c (step_once): Pass step=1 to clear_proceed_status.  Set
1029         the thread's stepping_command field.
1030         * infrun.c (resume): Check the thread's stepping_command flag to
1031         determine which threads should be resumed.  Rename 'entry_step'
1032         local to user_step.
1033         (clear_proceed_status_thread): Clear 'stepping_command'.
1034         (schedlock_applies): Change parameter type to struct thread_info
1035         pointer.  Adjust.
1036         (find_thread_needs_step_over): Remove 'step' parameter.  Adjust.
1037         (switch_back_to_stepped_thread): Adjust calls to
1038         'schedlock_applies'.
1039         (_initialize_infrun): Adjust "set scheduler-locking step" help.
1040
1041 2015-03-24  Pedro Alves  <palves@redhat.com>
1042
1043         * infrun.c (step_start_function): Delete and ...
1044         * gdbthread.h (struct thread_control_state) <step_start_function>:
1045         ... now a field here.
1046         * infrun.c (clear_proceed_status_thread): Clear the thread's
1047         step_start_function.
1048         (proceed, process_event_stop_test, print_stop_event): Adjust.
1049
1050 2015-03-24  Pedro Alves  <palves@redhat.com>
1051
1052         * infrun.c (proceed): No longer handle negative step.
1053
1054 2015-03-24  Gary Benson  <gbenson@redhat.com>
1055
1056         * nat/x86-linux.h (x86_linux_new_thread): New declaration.
1057         (x86_linux_prepare_to_resume): Likewise.
1058         * x86-linux-nat.c (x86_linux_new_thread):
1059         Moved to nat/x86-linux.c.
1060         (x86_linux_prepare_to_resume): Likewise.
1061         * nat/x86-linux.c (x86_linux_new_thread): New function.
1062         (x86_linux_prepare_to_resume): Likewise.
1063
1064 2015-03-24  Gary Benson  <gbenson@redhat.com>
1065
1066         * nat/x86-linux-dregs.h: New file.
1067         * nat/x86-linux-dregs.c: Likewise.
1068         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
1069         (x86-linux-dregs.o): New rule.
1070         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
1071         * config/i386/linux64.mh (NATDEPFILES): Likewise.
1072         * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
1073         (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
1074         (x86_linux_dr_get): Likewise.
1075         (x86_linux_dr_set): Likewise.
1076         (x86_linux_dr_get_addr): Likewise.
1077         (x86_linux_dr_get_control): Likewise.
1078         (x86_linux_dr_get_status): Likewise.
1079         (update_debug_registers_callback): Likewise.
1080         (x86_linux_dr_set_control): Likewise.
1081         (x86_linux_dr_set_addr): Likewise.
1082         (x86_linux_update_debug_registers): Likewise.
1083
1084 2015-03-24  Gary Benson  <gbenson@redhat.com>
1085
1086         * x86-linux-nat.c (x86_linux_update_debug_registers):
1087         New function, factored out from...
1088         (x86_linux_prepare_to_resume): ...this.
1089
1090 2015-03-24  Gary Benson  <gbenson@redhat.com>
1091
1092         * x86-linux-nat.c (x86_linux_dr_get): Update comments.
1093         (x86_linux_dr_set): Likewise.
1094         (x86_linux_dr_get_addr): Likewise.
1095         (x86_linux_dr_get_control): Likewise.
1096         (x86_linux_dr_get_status): Likewise.
1097         (update_debug_registers_callback): Likewise.
1098         (x86_linux_dr_set_control): Likewise.
1099         (x86_linux_dr_set_addr): Likewise.
1100         (x86_linux_prepare_to_resume): Likewise.
1101         (x86_linux_new_thread): Likewise.
1102
1103 2015-03-24  Gary Benson  <gbenson@redhat.com>
1104
1105         * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
1106         (x86_linux_new_thread): Rename argument.
1107
1108 2015-03-24  Gary Benson  <gbenson@redhat.com>
1109
1110         * nat/x86-linux.h: New file.
1111         * nat/x86-linux.c: Likewise.
1112         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
1113         (x86-linux.o): New rule.
1114         * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
1115         * config/i386/linux64.mh (NATDEPFILES): Likewise.
1116         * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
1117         (lwp_set_arch_private_info): New declaration.
1118         (lwp_arch_private_info): Likewise.
1119         * linux-nat.c (lwp_set_arch_private_info): New function.
1120         (lwp_arch_private_info): Likewise.
1121         * x86-linux-nat.c: Include nat/x86-linux.h.
1122         (arch_lwp_info): Removed structure.
1123         (update_debug_registers_callback):
1124         Use lwp_set_debug_registers_changed.
1125         (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
1126         and lwp_set_debug_registers_changed.
1127         (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
1128
1129 2015-03-24  Gary Benson  <gbenson@redhat.com>
1130
1131         * nat/linux-nat.h (ptid_of_lwp): New declaration.
1132         (lwp_is_stopped): Likewise.
1133         (lwp_stop_reason): Likewise.
1134         * linux-nat.c (ptid_of_lwp): New function.
1135         (lwp_is_stopped): Likewise.
1136         (lwp_is_stopped_by_watchpoint): Likewise.
1137         * x86-linux-nat.c (update_debug_registers_callback):
1138         Use lwp_is_stopped.
1139         (x86_linux_prepare_to_resume): Use ptid_of_lwp and
1140         lwp_stop_reason.
1141
1142 2015-03-24  Gary Benson  <gbenson@redhat.com>
1143
1144         * linux-nat.h (linux_stop_lwp): Move declaration to...
1145         * nat/linux-nat.h (linux_stop_lwp): New declaration.
1146
1147 2015-03-24  Gary Benson  <gbenson@redhat.com>
1148
1149         * linux-nat.h: Include nat/linux-nat.h.
1150         (iterate_over_lwps): Move declaration to nat/linux-nat.h.
1151         * nat/linux-nat.h (struct lwp_info): New forward declaration.
1152         (iterate_over_lwps_ftype): New typedef.
1153         (iterate_over_lwps): New declaration.
1154         * linux-nat.h (iterate_over_lwps): Update comment.  Use
1155         iterate_over_lwps_ftype.  Update callback return value check.
1156
1157 2015-03-24  Gary Benson  <gbenson@redhat.com>
1158
1159         * x86-nat.h (x86_debug_reg_state): Move declaration to...
1160         * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
1161
1162 2015-03-24  Gary Benson  <gbenson@redhat.com>
1163
1164         * nat/linux-nat.h (current_lwp_ptid): New declaration.
1165         * linux-nat.c (current_lwp_ptid): New function.
1166         * x86-linux-nat.c: Include nat/linux-nat.h.
1167         (x86_linux_dr_get_addr): Use current_lwp_ptid.
1168         (x86_linux_dr_get_control): Likewise.
1169         (x86_linux_dr_get_status): Likewise.
1170         (x86_linux_dr_set_control): Likewise.
1171         (x86_linux_dr_set_addr): Likewise.
1172
1173 2015-03-24  Antoine Tremblay  <antoine.tremblay@ericsson.com>
1174
1175         PR breakpoints/16466
1176         * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
1177
1178 2015-03-23  Joel Brobecker  <brobecker@adacore.com>
1179
1180         * ser-mingw.c (ser_windows_setparity): Fix indentation.
1181         * ser-unix.c (hardwire_setparity): Likewise.
1182
1183 2015-03-23  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
1184
1185         * NEWS: Mention set/show serial parity command.
1186         * monitor.c (monitor_open): Call serial_setparity.
1187         * remote.c (remote_open_1): Likewise.
1188         * ser-base.c (ser_base_serparity): New function.
1189         * ser-base.h (ser_base_setparity): Add  declaration.
1190         * ser-go32.c (dos_ops): Set "setparity" field.
1191         * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
1192         state.Parity.
1193         (ser_windows_setparity): New function.
1194         (hardwire_ops): Add ser_windows_setparity.
1195         (tty_ops): Add NULL for setparity field.
1196         (pipe_ops): Add ser_base_setparity.
1197         (tcp_ops): Likewise.
1198         * ser-pipe.c (pipe_ops): Likewise.
1199         * ser-tcp.c (tcp_ops): Likewise.
1200         * ser-unix.c (hardwire_setparity): Add declaration.
1201         (hardwire_raw): Don't reset PARENB flag.
1202         (hardwire_setparity): New function.
1203         (hardwire_ops): Add hardwire_setparity.
1204         * serial.c (serial_setparity): New function.
1205         (serial_parity): New global.
1206         (parity_none, parity_odd, parity_even, parity_enums, parity):
1207         New static globals.
1208         (set_parity): New function.
1209         (_initialize_serial): Add set/show serial parity commands.
1210         * serial.h (GDBPARITY_NONE): Define.
1211         (GDBPARITY_ODD): Define.
1212         (GDBPARITY_EVEN): Define.
1213         (serial_setparity) Add declaration.
1214         (struct serial_ops): Add setparity field.
1215         * target.h (serial_parity): Add declaration.
1216
1217 2015-03-23  Keith Seitz  <keiths@redhat.com>
1218
1219         * linespec.c (linespec_lexer_lex_keyword): Update comment.
1220
1221 2015-03-23  Keith Seitz  <keiths@redhat.com>
1222
1223         * breakpoint.c (parse_breakpoint_sals): Use
1224         linespec_lexer_lex_keyword to ascertain if the user specified
1225         a NULL location.
1226         * linespec.c [IF_KEYWORD_INDEX]: Define.
1227         (linespec_lexer_lex_keyword): Export.
1228         (struct ls_parser) <keyword_ok>: Remove.
1229         A keyword is only a keyword if not followed by another keyword.
1230         (linespec_lexer_lex_one): Remove keyword_ok handling.
1231         Add comment explaining why the parsing stream is not advanced
1232         when a keyword is seen.
1233         (parse_linespec): Remove parser->keyword_ok.
1234         * linespec.h (linespec_lexer_lex_keyword): Add declaration.
1235
1236 2015-03-23  Keith Seitz  <keiths@redhat.com>
1237
1238         PR gdb/18021
1239         * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
1240         if we find a static method with DW_AT_vtable_elem_location.
1241
1242 2015-03-21  Eli Zaretskii  <eliz@gnu.org>
1243
1244         * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
1245         before the second loop, to avoid undefined behavior.  Reported by
1246         Anton Blanchard <anton@samba.org>.
1247
1248 2015-03-20  Keven Boell  <keven.boell@intel.com>
1249
1250         * gdbtypes.c (resolve_dynamic_type_internal): Adapt
1251         data_location usage to linked list.
1252         (resolve_dynamic_type_internal): Adapt data_location to
1253         linked list.
1254         (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
1255         (copy_type_recursive, copy_type): Add copy of linked list.
1256         * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
1257         (struct dynamic_prop_list): New struct.
1258         * dwarf2read.c (set_die_type): Set data_location data.
1259
1260 2015-03-20  Pedro Alves  <palves@redhat.com>
1261
1262         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
1263         inner block and make it const.
1264         * machoread.c (get_archive_prefix_len): Make "lparen" const.
1265
1266 2015-03-20  Pedro Alves  <palves@redhat.com>
1267
1268         * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
1269         * breakpoint.h (set_breakpoint_condition): Update declaration.
1270
1271 2015-03-20  Pedro Alves  <palves@redhat.com>
1272
1273         * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
1274
1275 2015-03-20  Pedro Alves  <palves@redhat.com>
1276
1277         * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
1278
1279 2015-03-20  Pedro Alves  <palves@redhat.com>
1280
1281         * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
1282
1283 2015-03-20  Pedro Alves  <palves@redhat.com>
1284
1285         * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
1286         (nto_init_solib_absolute_prefix): Likewise.
1287
1288 2015-03-20  Pedro Alves  <palves@redhat.com>
1289
1290         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
1291         * spu-tdep.c (spu_gdbarch_init): Make "name" const.
1292
1293 2015-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
1294
1295         * config/djgpp/README: Remove gdb.hp.
1296
1297 2015-03-20  Yao Qi  <yao.qi@linaro.org>
1298
1299         * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
1300         set_gdbarch_cannot_step_breakpoint.
1301
1302 2015-03-19  Pedro Alves  <palves@redhat.com>
1303
1304         * linux-nat.c (linux_resume_one_lwp): Rename to ...
1305         (linux_resume_one_lwp_throw): ... this.  Don't handle ESRCH here,
1306         instead call perror_with_name.
1307         (check_ptrace_stopped_lwp_gone): New function.
1308         (linux_resume_one_lwp): Reimplement as wrapper around
1309         linux_resume_one_lwp_throw that swallows errors if the LWP is
1310         gone.
1311         (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
1312         swallows errors if the LWP is gone.  Use
1313         linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
1314
1315 2015-03-19  Pedro Alves  <palves@redhat.com>
1316
1317         * linux-nat.c (status_callback): Return early if the LWP has no
1318         status pending.
1319
1320 2015-03-19  Pedro Alves  <palves@redhat.com>
1321
1322         * linux-nat.c (select_event_lwp_callback): Update comment to no
1323         longer mention SIGTRAP.
1324
1325 2015-03-18  Tristan Gingold  <gingold@adacore.com>
1326
1327         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
1328         redirection code to ...
1329         (amd64_windows_frame_decode_insns): ... Here.  Fix in prologue
1330         checks.  Fix SAVE_NONVOL operations.  Add debug code and comments.
1331
1332 2015-03-18  Gary Benson <gbenson@redhat.com>
1333
1334         (remote_protocol_features): Remove the "vFile:fstat" feature.
1335         (remote_hostio_fstat): Probe for "vFile:fstat" support.
1336
1337 2015-03-11  Yao Qi  <yao.qi@linaro.org>
1338
1339         PR tdep/18107
1340         * aarch64-linux-tdep.c: Include xml-syscall.h
1341         (aarch64_linux_get_syscall_number): New function.
1342         (aarch64_linux_init_abi): Call
1343         set_gdbarch_get_syscall_number.
1344         * syscalls/aarch64-linux.xml: New file.
1345
1346 2015-03-17  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
1347
1348         * ser-base.h (ser_base_setstopbits): Change second argument name
1349         from "rate" to "num".
1350
1351 2015-03-17  Gary Benson <gbenson@redhat.com>
1352             Luke Allardyce <lukeallardyce@gmail.com>
1353
1354         PR gdb/18131
1355         * common/common-remote-fileio.h (sys/stat.h): New include.
1356         (stuct stat): Remove forward declaration.
1357
1358 2015-03-16  John Baldwin  <jhb@FreeBSD.org>
1359
1360         * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
1361         before writing core register notes.
1362
1363 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
1364             Pedro Alves  <palves@redhat.com>
1365
1366         * gdb_curses.h (tgetnum): Mark with EXTERN_C.
1367         * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
1368         (tgoto): Wrap with extern "C".
1369
1370 2015-03-16  Pedro Alves  <palves@redhat.com>
1371             Yuanhui Zhang  <asmwarrior@gmail.com>
1372
1373         * stub-termcap.c (tputs): Change prototype.
1374
1375 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
1376             Pedro Alves  <palves@redhat.com>
1377
1378         * windows-nat.c (struct thread_info_struct): Rename to ...
1379         (struct windows_thread_info_struct): ... this.
1380         (thread_info): Rename to ...
1381         (windows_thread_info): ... this.
1382         All users updated.
1383
1384 2015-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
1385             Pedro Alves  <palves@redhat.com>
1386
1387         * NEWS: New Removed targets and native configurations.
1388
1389 2015-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1390
1391         Remove HPUX.
1392         * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
1393         (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
1394         (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
1395         ia64-hpux-tdep.h, solib-ia64-hpux.h.
1396         (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
1397         ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
1398         * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
1399         hppa-hpux-tdep.c.
1400         * config/ia64/hpux.mh: Remove file.
1401         * config/pa/hpux.mh: Remove file.
1402         * configure: Rebuilt.
1403         * configure.ac (dlgetmodinfo, somread.o): Remove.
1404         * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
1405         (ia64-*-hpux*): Remove its float format exception.
1406         * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
1407         * hppa-hpux-nat.c: Remove file.
1408         * hppa-hpux-tdep.c: Remove file.
1409         * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
1410         Move them here from hppa-tdep.h
1411         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
1412         (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
1413         * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
1414         Move them to hppa-tdep.c.
1415         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
1416         declarations.
1417         * ia64-hpux-nat.c: Remove file.
1418         * ia64-hpux-tdep.c: Remove file.
1419         * ia64-hpux-tdep.h: Remove file.
1420         * inf-ttrace.c: Remove file.
1421         * inf-ttrace.h: Remove file.
1422         * solib-ia64-hpux.c: Remove file.
1423         * solib-ia64-hpux.h: Remove file.
1424         * solib-pa64.c: Remove file.
1425         * solib-pa64.h: Remove file.
1426         * solib-som.c: Remove file.
1427         * solib-som.h: Remove file.
1428         * somread.c: Remove file.
1429
1430 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
1431
1432         * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
1433         * config.in: Regenerate.
1434         * configure: Regenerate.
1435         * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
1436         define.
1437         (fbsd_find_memory_regions): Use kinfo_getvmmap to
1438         enumerate memory regions if present.
1439
1440 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
1441
1442         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
1443         * i386fbsd-tdep.c: Fix style in various gdb_static_assert
1444         expressions.
1445         (i386fbsd_sigtramp_p): Likewise.
1446
1447 2015-03-12  John Baldwin  <jhb@FreeBSD.org>
1448
1449         * MAINTAINERS (Write After Approval): Add John Baldwin.
1450
1451 2015-03-12  Gary Benson <gbenson@redhat.com>
1452
1453         * solib.c (_initialize_solib): Make "set/show sysroot" use
1454         add_setshow_optional_filename_cmd so it can be restored to
1455         empty after being set.
1456
1457 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
1458
1459         * Makefile.in (SFILES): New source break-catch-syscall.c.
1460         (COMMON_OBS): New object break-catch-syscall.o.
1461         * break-catch-syscall.c: New file.
1462         * breakpoint.c: Remove inclusion of "xml-syscall.h".
1463         (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
1464         (struct syscall_catchpoint): Likewise.
1465         (dtor_catch_syscall): Likewise.
1466         (catch_syscall_inferior_data): Likewise.
1467         (struct catch_syscall_inferior_data): Likewise.
1468         (get_catch_syscall_inferior_data): Likewise.
1469         (catch_syscall_inferior_data_cleanup): Likewise.
1470         (insert_catch_syscall): Likewise.
1471         (remove_catch_syscall): Likewise.
1472         (breakpoint_hit_catch_syscall): Likewise.
1473         (print_it_catch_syscall): Likewise.
1474         (print_one_catch_syscall): Likewise.
1475         (print_mention_catch_syscall): Likewise.
1476         (print_recreate_catch_syscall): Likewise.
1477         (catch_syscall_breakpoint_ops): Likewise.
1478         (syscall_catchpoint_p): Likewise.
1479         (create_syscall_event_catchpoint): Likewise.
1480         (catch_syscall_split_args): Likewise.
1481         (catch_syscall_command_1): Likewise.
1482         (is_syscall_catchpoint_enabled): Likewise.
1483         (catch_syscall_enabled): Likewise.
1484         (catching_syscall_number): Likewise.
1485         (catch_syscall_completer): Likewise.
1486         (clear_syscall_counts): Likewise.
1487         (initialize_breakpoint_ops): Move initialization of syscall
1488         catchpoints to break-catch-syscall.c.
1489         (_initialize_breakpoint): Move code related to syscall catchpoints
1490         to break-catch-syscall.c.
1491
1492 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
1493
1494         * breakpoint.c (breakpoint_find_if): New function.
1495         * breakpoint.h (breakpoint_find_if): New prototype.
1496
1497 2015-03-11  Gary Benson <gbenson@redhat.com>
1498
1499         * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
1500         * remote-fileio.c (remote_fileio_to_host_uint): New function.
1501         (remote_fileio_to_host_ulong): Likewise.
1502         (remote_fileio_to_host_mode): Likewise.
1503         (remote_fileio_to_host_time): Likewise.
1504         (remote_fileio_to_host_stat): Likewise.
1505         * remote.c (PACKET_vFile_fstat): New enum value.
1506         (remote_protocol_features): Register the "vFile:fstat" feature.
1507         (remote_hostio_fstat): New function.
1508         (remote_bfd_iovec_stat): Use the above.
1509         (_initialize_remote): Register new "set/show remote
1510         hostio-fstat-packet" command.
1511         * symfile.c (separate_debug_file_exists): Update comment.
1512         * NEWS: Announce new vFile:fstat packet.
1513
1514 2015-03-11  Gary Benson <gbenson@redhat.com>
1515
1516         * common/common-remote-fileio.h: New file.
1517         * common/common-remote-fileio.c: Likewise.
1518         * Makefile.in (SFILES): Add common/common-remote-fileio.c.
1519         (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
1520         (COMMON_OBS): Add common-remote-fileio.o.
1521         (common-remote-fileio.o): New rule.
1522         * remote-fileio.h (common-remote-fileio.h): New include.
1523         * remote-fileio.c (gdb/fileio.h): Do not include.
1524         (remote_fileio_to_be): Moved to common-remote-fileio.h.
1525         (remote_fileio_to_fio_uint): Likewise.
1526         (remote_fileio_to_fio_time): Likewise.
1527         (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
1528         (remote_fileio_to_fio_mode): Likewise.
1529         (remote_fileio_to_fio_ulong): Likewise.
1530         (remote_fileio_to_fio_stat): Likewise.
1531
1532 2015-03-11  Andy Wingo  <wingo@igalia.com>
1533
1534         * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
1535         we were checking the cached type, not the cached dynamic type.
1536
1537 2015-03-11  Andy Wingo  <wingo@igalia.com>
1538
1539         * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
1540         other strings, as these are on the GC'd heap, and will be
1541         collected along with the smob.
1542
1543 2015-03-11  Andy Wingo  <wingo@igalia.com>
1544
1545         * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
1546         (objfile_functions): Bind gdbscm_objfile_progspace to
1547         objfile-progspace.
1548         * guile/lib/gdb.scm: Add objfile-progspace to exports.
1549
1550 2015-03-11  Andy Wingo  <wingo@igalia.com>
1551
1552         * guile/guile.c (_initialize_guile): Disable automatic
1553         finalization, if Guile offers us that possibility.
1554         * guile/guile.c (call_initialize_gdb_module):
1555         * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
1556         finalizers in appropriate places.
1557         * configure.ac (AC_TRY_LIBGUILE): Add a check for
1558         scm_set_automatic_finalization_enabled.
1559         * configure: Regenerated.
1560
1561 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1562
1563         * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
1564         SAL, if possible.
1565
1566 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1567
1568         * s390-linux-nat.c (struct arch_lwp_info): New.
1569         (s390_fix_watch_points): Rename to...
1570         (s390_prepare_to_resume): ...this.  Skip the PER info update
1571         unless the watch points have changed.
1572         (s390_refresh_per_info, s390_new_thread): New functions.
1573         (s390_insert_watchpoint): Call s390_refresh_per_info instead of
1574         s390_fix_watch_points.
1575         (s390_remove_watchpoint): Likewise.
1576         (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
1577         Register s390_prepare_to_resume.
1578
1579 2015-03-09  Pedro Alves  <palves@redhat.com>
1580
1581         Revert:
1582         2015-03-07  Pedro Alves  <palves@redhat.com>
1583         * common/gdb_socket.h: New file.
1584         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
1585         sys/socket.h.
1586         (net_open): Use union gdb_sockaddr_u.
1587
1588 2015-03-07  Pedro Alves  <palves@redhat.com>
1589
1590         * configure.ac (build_warnings): Move -Wmissing-prototypes
1591         -Wdeclaration-after-statement -Wmissing-parameter-type
1592         -Wold-style-declaration -Wold-style-definition to the C-specific
1593         set.
1594         * configure: Regenerate.
1595
1596 2015-03-07  Pedro Alves  <palves@redhat.com>
1597
1598         * common/gdb_socket.h: New file.
1599         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
1600         sys/socket.h.
1601         (net_open): Use union gdb_sockaddr_u.
1602
1603 2015-03-07  Pedro Alves  <palves@redhat.com>
1604
1605         * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
1606         (exceptions_state_mc_action_iter)
1607         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
1608         Don't define.
1609         [__cplusplus] (try_scope_depth): New global.
1610         [__cplusplus] (exception_try_scope_entry)
1611         (exception_try_scope_exit, gdb_exception_sliced_copy)
1612         (exception_rethrow): New functions.
1613         (throw_exception): In C++ mode, throw
1614         gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
1615         gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
1616         (throw_it): In C++ mode, use try_scope_depth.
1617         * common/common-exceptions.h [!__cplusplus]
1618         (exceptions_state_mc_action_iter)
1619         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
1620         Don't declare.
1621         [__cplusplus] (exception_try_scope_entry)
1622         (exception_try_scope_exit, exception_rethrow): Declare.
1623         [__cplusplus] (struct exception_try_scope): New struct.
1624         [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
1625         C++ exceptions.
1626         (struct gdb_exception_RETURN_MASK_ALL)
1627         (struct gdb_exception_RETURN_MASK_ERROR)
1628         (struct gdb_exception_RETURN_MASK_QUIT): New types.
1629
1630 2015-03-07  Pedro Alves  <palves@redhat.com>
1631
1632         * main.c (handle_command_errors): Remove volatile qualifier from
1633         parameter.
1634
1635 2015-03-07  Pedro Alves  <palves@redhat.com>
1636
1637         * breakpoint.c (save_breakpoints): Adjust to avoid code between
1638         TRY and CATCH.
1639         * gdbtypes.c (safe_parse_type): Remove empty line.
1640         (types_deeply_equal):
1641         * guile/scm-frame.c (gdbscm_frame_name):
1642         * linux-thread-db.c (find_new_threads_once):
1643         * python/py-breakpoint.c (bppy_get_commands):
1644         * record-btrace.c (record_btrace_insert_breakpoint)
1645         (record_btrace_remove_breakpoint, record_btrace_start_replaying)
1646         (record_btrace_start_replaying): Adjust to avoid code between TRY
1647         and CATCH.
1648
1649 2015-03-07  Pedro Alves  <palves@redhat.com>
1650
1651         * common/common-exceptions.c (struct catcher) <exception>: No
1652         longer a pointer to volatile exception.  Now an exception value.
1653         <mask>: Delete field.
1654         (exceptions_state_mc_init): Remove all parameters.  Adjust.
1655         (exceptions_state_mc): No longer pop the catcher here.
1656         (exceptions_state_mc_catch): New function.
1657         (throw_exception): Adjust.
1658         * common/common-exceptions.h (exceptions_state_mc_init): Remove
1659         all parameters.
1660         (exceptions_state_mc_catch): Declare.
1661         (TRY_CATCH): Rename to ...
1662         (TRY): ... this.  Remove EXCEPTION and MASK parameters.
1663         (CATCH, END_CATCH): New.
1664         All callers adjusted.
1665
1666 2015-03-07  Tom Tromey  <tromey@redhat.com>
1667
1668         * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
1669
1670 2015-03-07  Pedro Alves  <palves@redhat.com>
1671
1672         * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
1673         (amd64_epilogue_frame_cache): Normal exception handling code.
1674         * break-catch-throw.c (check_status_exception_catchpoint)
1675         (re_set_exception_catchpoint): Ditto.
1676         * cli/cli-interp.c (safe_execute_command):
1677         * cli/cli-script.c (script_from_file): Ditto.
1678         * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
1679         Ditto.
1680         * compile/compile-object-run.c (compile_object_run): Ditto.
1681         * cp-abi.c (baseclass_offset): Ditto.
1682         * cp-valprint.c (cp_print_value): Ditto.
1683         * exceptions.c (catch_exceptions_with_msg):
1684         * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
1685         * frame.c (get_frame_address_in_block_if_available): Ditto.
1686         * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
1687         (i386_sigtramp_frame_cache): Ditto.
1688         * infcmd.c (post_create_inferior): Ditto.
1689         * linespec.c (parse_linespec, find_linespec_symbols):
1690         * p-valprint.c (pascal_object_print_value): Ditto.
1691         * parse.c (parse_expression_for_completion): Ditto.
1692         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
1693         * remote.c (remote_get_noisy_reply): Ditto.
1694         * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
1695         * solib-svr4.c (solib_svr4_r_map): Ditto.
1696
1697 2015-03-06  Gary Benson  <gbenson@redhat.com>
1698
1699         * common/common-utils.h (startswith): New inline function.
1700         All places where this logic was used updated to use the above.
1701
1702 2015-03-05  Pedro Alves  <palves@redhat.com>
1703
1704         PR gdb/18002
1705         * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
1706         after reading the breakpoint's shadow memory.
1707
1708 2015-03-05  Mark Kettenis  <kettenis@gnu.org>
1709
1710         * hppabsd-nat.c: Remove file.
1711         * hppaobsd-nat.c: New file.
1712         * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c.  Add
1713         hppaobsd-nat.c.
1714         * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
1715         hppaobsd-nat.o.
1716
1717 2015-03-04  Pedro Alves  <palves@redhat.com>
1718
1719         * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
1720         (target_decr_pc_after_break): Delete declaration.
1721         * target.c (default_target_decr_pc_after_break)
1722         (target_decr_pc_after_break): Delete.
1723         * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
1724         gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
1725         * linux-thread-db.c (check_event): Likewise.
1726         * infrun.c (adjust_pc_after_break): Likewise.
1727         * darwin-nat.c (cancel_breakpoint): Likewise.
1728         * aix-thread.c (aix_thread_wait): Likewise.
1729         * target-delegates.c: Regenerate.
1730
1731 2015-03-04  Pedro Alves  <palves@redhat.com>
1732
1733         * linux-nat.c (save_sigtrap): Check for breakpoints before
1734         checking watchpoints.
1735         (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
1736         breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
1737         (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
1738         a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
1739         (linux_nat_stopped_by_sw_breakpoint)
1740         (linux_nat_supports_stopped_by_sw_breakpoint)
1741         (linux_nat_stopped_by_hw_breakpoint)
1742         (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
1743         (linux_nat_wait_1): Don't re-increment the PC if relying on
1744         SIGTRAP's siginfo->si_code.
1745         (linux_nat_add_target): Install new target methods.
1746         * linux-thread-db.c (check_event): Don't account for breakpoint PC
1747         offset if the target already adjusted the PC.
1748         * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
1749         (GDB_ARCH_TRAP_BRKPT): New.
1750         (TRAP_HWBKPT): Define if not already defined.
1751
1752 2015-03-04  Pedro Alves  <palves@redhat.com>
1753
1754         * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
1755         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
1756         Delete field.
1757         <stop_reason>: New field.
1758         (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
1759         (packet_set_cmd_state): New function.
1760         (remote_protocol_features): Register the "swbreak" and "hwbreak"
1761         features.
1762         (remote_query_supported): If not disabled with the corresponding
1763         "set remote foo-packet" command, report support for the swbreak
1764         and hwbreak features.
1765         (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
1766         field.
1767         <stop_reason>: New field.
1768         (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
1769         (remote_wait_as): Adjust.
1770         (remote_stopped_by_sw_breakpoint)
1771         (remote_supports_stopped_by_sw_breakpoint)
1772         (remote_stopped_by_hw_breakpoint)
1773         (remote_supports_stopped_by_hw_breakpoint): New functions.
1774         (remote_stopped_by_watchpoint): New function.
1775         (init_remote_ops): Install them.
1776         (_initialize_remote): Register new "set/show remote
1777         swbreak-feature-packet" and "set/show remote
1778         swbreak-feature-packet" commands.
1779
1780 2015-03-04  Pedro Alves  <palves@redhat.com>
1781
1782         * btrace.h: Include target/waitstatus.h.
1783         (struct btrace_thread_info) <stop_reason>: New field.
1784         * record-btrace.c (record_btrace_step_thread): Use
1785         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
1786         (record_btrace_decr_pc_after_break): Delete.
1787         (record_btrace_stopped_by_sw_breakpoint)
1788         (record_btrace_supports_stopped_by_sw_breakpoint)
1789         (record_btrace_stopped_by_hw_breakpoint)
1790         (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
1791         (init_record_btrace_ops): Install them.
1792         * record-full.c (record_full_hw_watchpoint): Delete and replace
1793         with ...
1794         (record_full_stop_reason): ... this throughout.
1795         (record_full_exec_insn): Adjust.
1796         (record_full_wait_1): Adjust.  No longer re-increment the PC.
1797         (record_full_wait_1): Adjust.  Use
1798         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
1799         (record_full_stopped_by_watchpoint): Adjust.
1800         (record_full_stopped_by_sw_breakpoint)
1801         (record_full_supports_stopped_by_sw_breakpoint)
1802         (record_full_supports_stopped_by_sw_breakpoint)
1803         (record_full_stopped_by_hw_breakpoint)
1804         (record_full_supports_stopped_by_hw_breakpoint): New functions.
1805         (init_record_full_ops, init_record_full_core_ops): Install them.
1806         * record.c (record_check_stopped_by_breakpoint): New function.
1807         * record.h: Include target/waitstatus.h.
1808         (record_check_stopped_by_breakpoint): New declaration.
1809
1810 2015-03-04  Pedro Alves  <palves@redhat.com>
1811
1812         enum lwp_stop_reason -> enum target_stop_reason
1813         * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
1814         (linux_nat_stopped_by_watchpoint, status_callback)
1815         (linux_nat_wait_1): Adjust.
1816         * linux-nat.h (enum lwp_stop_reason): Delete.
1817         (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
1818         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
1819         * target/waitstatus.h (enum target_stop_reason): New.
1820
1821 2015-03-04  Pedro Alves  <palves@redhat.com>
1822
1823         * breakpoint.c (need_moribund_for_location_type): New function.
1824         (bpstat_stop_status): Don't skipping checking moribund locations
1825         of breakpoint types which the target tell caused a stop.
1826         (program_breakpoint_here_p): New function, factored out from ...
1827         (bp_loc_is_permanent): ... this.
1828         (update_global_location_list): Don't create a moribund location if
1829         the target supports reporting stops of the type of the removed
1830         breakpoint.
1831         * breakpoint.h (program_breakpoint_here_p): New declaration.
1832         * infrun.c (adjust_pc_after_break): Return early if the target has
1833         already adjusted the PC.  Add comments.
1834         (handle_signal_stop): If nothing explains a signal, and the target
1835         tells us the stop was caused by a software breakpoint, check if
1836         there's a breakpoint instruction in the memory.  If so, adjust the
1837         PC before presenting the stop to the user.  Otherwise, ignore the
1838         trap.  If nothing explains a signal, and the target tells us the
1839         stop was caused by a hardware breakpoint, ignore the trap.
1840         * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
1841         to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
1842         to_supports_stopped_by_hw_breakpoint>: New fields.
1843         (target_stopped_by_sw_breakpoint)
1844         (target_supports_stopped_by_sw_breakpoint)
1845         (target_stopped_by_hw_breakpoint)
1846         (target_supports_stopped_by_hw_breakpoint): Define.
1847         * target-delegates.c: Regenerate.
1848
1849 2015-03-04  Pedro Alves  <palves@redhat.com>
1850
1851         * infrun.c (follow_fork_inferior): Use the whole of the
1852         inferior_ptid and pending_follow.related_pid ptids instead of
1853         building ptids from the process components.  Adjust verbose output
1854         to use target_pid_to_str.
1855         * linux-nat.c (linux_child_follow_fork): Use the whole of the
1856         inferior_ptid and pending_follow.related_pid ptids instead of
1857         building ptids from the process components.
1858
1859 2015-03-04  Mark Kettenis  <kettenis@gnu.org>
1860
1861         * inf-ptrace.c [PT_GET_PROCESS_STATE]
1862         (inf_ptrace_insert_fork_catchpoint): New function.
1863         (inf_ptrace_remove_fork_catchpoint): New function.
1864         (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
1865
1866 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1867
1868         * s390-linux-tdep.c (s390_register_name): Return empty string
1869         instead of NULL for registers that shouldn't be visible.
1870
1871 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1872
1873         * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
1874         XML file for 64-bit targets.
1875
1876 2015-03-03  Simon Marchi  <simon.marchi@ericsson.com>
1877
1878         * target.h (find_default_create_inferior): Remove declaration.
1879         (find_default_attach): Likewise.
1880
1881 2015-03-03  Pedro Alves  <palves@redhat.com>
1882
1883         * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
1884         Use ptid_get_pid to get the overall process id when resuming all
1885         threads.
1886
1887 2015-03-03  Pedro Alves  <palves@redhat.com>
1888
1889         * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
1890         the lwp field of ptid.  Pass the full ptid to get_thread_regcache.
1891         * inf-ptrace.c (get_ptrace_pid): New function.
1892         (inf_ptrace_resume): Use it.
1893         * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
1894         to the lower layer.
1895
1896 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
1897
1898         * nat/linux-btrace.c: Include sys/utsname.h.
1899         (linux_determine_kernel_ptr_bits): New.
1900         (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
1901         * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
1902         ptr_bits.
1903
1904 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
1905
1906         * btrace.c (ftrace_update_function): Treat return as tailcall for
1907         "_dl_runtime_resolve".
1908
1909 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
1910
1911         * btrace.h (btrace_function) <lbegin, lend>: Remove.
1912         * btrace.c (ftrace_debug): Do not print the line range.
1913         (ftrace_skip_file, ftrace_update_lines): Remove.
1914         (ftrace_new_function): Remove lbegin and lend initialization.
1915         (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
1916         * record-btrace.c (btrace_compute_src_line_range): New.
1917         (btrace_call_history_src_line): Call btrace_compute_src_line_range.
1918
1919 2015-03-02  Pedro Alves  <palves@redhat.com>
1920
1921         * infrun.c (follow_exec): Delete all threads of the process except
1922         the event thread.  Extended comments.
1923
1924 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
1925
1926         * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
1927
1928 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
1929
1930         * utils.h: Remove <stdbool.h> #include.
1931         (producer_is_gcc): Change return type to "int".
1932         * utils.c (producer_is_gcc): Change return type to int.
1933         Return 1 instead of true, and 0 instead of false.
1934         Adjust function documentation accordingly.
1935
1936 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1937
1938         * s390-linux-nat.c (have_regset_vxrs): New static variable.
1939         (s390_linux_fetch_inferior_registers): Handle vector registers, if
1940         present.
1941         (s390_linux_store_inferior_registers): Likewise.
1942         (s390_get_hwcap): Remove function.  Embed its logic...
1943         (s390_read_description): ...here.  Yield a target description with
1944         vector registers if applicable.
1945         * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
1946         "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
1947         "features/s390x-tevx-linux64.c".
1948         (struct gdbarch_tdep) <v0_full_regnum>: New field.
1949         (s390_dwarf_regmap): Add vector registers.  Remove bogus entries
1950         for "GNU/Linux-specific registers".
1951         (s390_dwarf_reg_r0l): New enum value.
1952         (s390_dwarf_reg_to_regnum): Support vector registers.
1953         (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
1954         of GPR lower halves.
1955         (regnum_is_vxr_full): New function.
1956         (s390_register_name): New function.
1957         (s390_pseudo_register_name): Handle v0-v15, which are composed of
1958         f0-f15 and v0l-v15l.
1959         (s390_pseudo_register_type): Likewise.
1960         (s390_pseudo_register_read): Likewise.
1961         (s390_pseudo_register_write): Likewise.
1962         (s390_value_from_register): Account for the fact that values are
1963         placed left-justified in vector registers.
1964         (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
1965         the vector reggroup and omit them from the general reggroup.
1966         (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
1967         (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
1968         (s390_iterate_over_regset_sections): Add iterations for the two
1969         new vector regsets.
1970         (s390_core_read_description): Yield a target description with
1971         vector registers if applicable.
1972         (s390_gdbarch_init): Handle target descriptions with vector
1973         registers.  Add "register_name" gdbarch method.
1974         (_initialize_s390_tdep): Call new tdesc initialization functions.
1975         * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
1976         (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
1977         (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
1978         (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
1979         (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
1980         (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
1981         (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
1982         (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
1983         (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
1984         (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
1985         (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
1986         (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
1987         (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
1988         (S390_NUM_REGS): Adjust value.
1989         (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
1990         (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
1991         (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
1992         * NEWS: Announce S/390 vector register support.
1993
1994 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1995
1996         * features/s390-tevx-linux64.xml: New file.
1997         * features/s390-vx-linux64.xml: New file.
1998         * features/s390-vx.xml: New file.
1999         * features/s390x-tevx-linux64.xml: New file.
2000         * features/s390x-vx-linux64.xml: New file.
2001         * features/Makefile (WHICH): Add s390-vx-linux64,
2002         s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
2003         (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
2004         (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
2005         macros.
2006         * features/s390-tevx-linux64.c: New generated file.
2007         * features/s390-vx-linux64.c: Likewise.
2008         * features/s390x-tevx-linux64.c: Likewise.
2009         * features/s390x-vx-linux64.c: Likewise.
2010         * regformats/s390-tevx-linux64.dat: Likewise.
2011         * regformats/s390-vx-linux64.dat: Likewise.
2012         * regformats/s390x-tevx-linux64.dat: Likewise.
2013         * regformats/s390x-vx-linux64.dat: Likewise.
2014
2015 2015-02-28  Doug Evans  <xdje42@gmail.com>
2016
2017         * symtab.h (struct symtab) <next>: Fix comment.
2018
2019 2015-02-27  Simon Marchi  <simon.marchi@ericsson.com>
2020
2021         * python/python.c (python_GdbModuleDef): Rename GdbMethods to
2022         python_GdbMethods.
2023
2024 2015-02-27  Pedro Alves  <palves@redhat.com>
2025
2026         * dtrace-probe.c (dtrace_probe_ops): Make extern.
2027
2028 2015-02-27  Pedro Alves  <palves@redhat.com>
2029
2030         * common/common-exceptions.h (exception_none): Declare.
2031         * common/common-exceptions.c (exception_none): Moved from
2032         exceptions.c.
2033         (exceptions_state_mc_init): Use exception_none.
2034         * exceptions.c (exception_none): Move to
2035         common/common-exceptions.c.
2036         * exceptions.h (exception_none): Move to
2037         common/common-exceptions.h.
2038
2039 2015-02-27  Pedro Alves  <palves@redhat.com>
2040
2041         * main.c (catch_command_errors, catch_command_errors_const):
2042         Remove 'mask' argument.  Adjust.
2043         (captured_main): Adjust callers.
2044
2045 2015-02-27  Pedro Alves  <palves@redhat.com>
2046
2047         * python/python-internal.h: Include "extension-priv.h".
2048
2049 2015-02-27  Pedro Alves  <palves@redhat.com>
2050
2051         * breakpoint.h (enum print_stop_action): Move further up in the
2052         file.
2053
2054 2015-02-27  Pedro Alves  <palves@redhat.com>
2055
2056         * gdbarch.sh: Include regcache.h.
2057         * gdbarch.h: Regenerate.
2058
2059 2015-02-27  Pedro Alves  <palves@redhat.com>
2060
2061         * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
2062         Remove duplicate const.
2063         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
2064         duplicate const.
2065
2066 2015-02-27  Pedro Alves  <palves@redhat.com>
2067
2068         * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
2069         * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
2070         * features/feature_to_c.sh: Tag the generated xml_builtin array
2071         with extern const in C++ mode.
2072
2073 2015-02-27  Tom Tromey  <tromey@redhat.com>
2074
2075         * minidebug.c (struct lzma_stream): Rename to ...
2076         (struct gdb_lzma_stream): ... this.
2077         (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
2078
2079 2015-02-27  Pedro Alves  <palves@redhat.com>
2080
2081         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
2082         function.
2083         (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
2084         (mi_cmd_stack_list_variables): Use it.
2085
2086 2015-02-27  Pedro Alves  <palves@redhat.com>
2087
2088         * x86-linux-nat.c (u_debugreg_offset): New function.
2089         (x86_linux_dr_get, x86_linux_dr_set): Use it.
2090
2091 2015-02-27  Pedro Alves  <palves@redhat.com>
2092
2093         * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
2094         declaration.
2095         Include break-common.h.
2096
2097 2015-02-27  Tom Tromey  <tromey@redhat.com>
2098             Pedro Alves <palves@redhat.com>
2099
2100         * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
2101         local used to iterate over enums.
2102         * completer.c (signal_completer): Likewise.
2103         * i386-tdep.c (i386_stap_parse_special_token): Likewise.
2104         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
2105         * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
2106         * tui/tui-layout.c (next_layout, prev_layout): Likewise.
2107         * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
2108         (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
2109         * tui-wingeneral.c (tui_refresh_all):  Likewise.
2110
2111 2015-02-27  Pedro Alves  <palves@redhat.com>
2112
2113         * target.h: Include "infrun.h".
2114
2115 2015-02-27  Pedro Alves  <palves@redhat.com>
2116
2117         * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
2118
2119 2015-02-27  Pedro Alves  <palves@redhat.com>
2120
2121         * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
2122         (IPA_SYM): Use it.
2123         * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
2124
2125 2015-02-27  Pedro Alves  <palves@redhat.com>
2126
2127         * cli-out.c (_rl_erase_entire_line): Move declaration out of
2128         cli_mld_erase_entire_line, and make it extern "C".
2129         * common/common-defs.h (EXTERN_C): New.
2130         * completer.c (_rl_completion_prefix_display_length)
2131         (_rl_print_completions_horizontally, QSFUNC): Move declarations
2132         out of gdb_display_match_list_1.
2133         (_rl_qsort_string_compare): Move declaration out of
2134         gdb_display_match_list_1, and make it extern "C".
2135         * defs.h (re_comp): Use EXTERN_C.
2136         * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
2137         and make it extern "C".
2138         (monstartup): Move declaration out of maintenance_set_profile_cmd,
2139         and make it extern "C".
2140         (main): Move declaration out of maintenance_set_profile_cmd.
2141         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
2142         EXTERN_C.
2143
2144 2015-02-27  Pedro Alves  <palves@redhat.com>
2145
2146         * python/python.c (GdbMethods): Rename to ...
2147         (python_GdbMethods): ... this and make extern.
2148         (GdbModuleDef): Rename to ...
2149         (python_GdbModuleDef): ... this and make extern.
2150
2151 2015-02-27  Pedro Alves  <palves@redhat.com>
2152
2153         * record-btrace.c (set_record_btrace_cmdlist)
2154         (show_record_btrace_cmdlist): Remove redefinitions.
2155
2156 2015-02-27  Tom Tromey  <tromey@redhat.com>
2157             Pedro Alves  <palves@redhat.com>
2158
2159         * dwarf2-frame.c (enum cfa_how_kind, struct
2160         dwarf2_frame_state_reg_info): Move out of struct
2161         dwarf2_frame_state.
2162         * dwarf2read.c (struct tu_stats): Move out of struct
2163         dwarf2_per_objfile.
2164         (struct file_entry): Move out of struct line_header.
2165         (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
2166         typedef_field_list): Move out of struct field_info.
2167         * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
2168         Move out of struct dynamic_prop.
2169         (union type_owner, union field_location, struct field, struct
2170         range_bounds, union type_specific): Move out of struct main_type.
2171         (struct fn_fieldlist, struct fn_field, struct typedef_field)
2172         (VOFFSET_STATIC): Move out of struct cplus_struct_type.
2173         (struct call_site_target, union call_site_parameter_u, struct
2174         call_site_parameter): Move out of struct call_site.
2175         * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
2176         m32c_prologue.
2177         (enum srcdest_kind): Move out of struct srcdest.
2178         * main.c (enum cmdarg_kind): Move out of struct cmdarg.
2179         * prologue-value.h (enum prologue_value_kind): Move out of struct
2180         prologue_value.
2181         * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
2182         gdbarch_tdep.
2183         * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
2184         out of struct field_info.
2185         * symfile.h (struct other_sections): Move out of struct
2186         section_addr_info.
2187         * symtab.c (struct symbol_cache_slot): Move out struct
2188         block_symbol_cache.
2189         * target-descriptions.c (enum tdesc_type_kind): Move out of
2190         typedef struct tdesc_type.
2191         * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
2192         struct tui_line_or_address.
2193         * value.c (enum internalvar_kind, union internalvar_data): Move
2194         out of struct internalvar.
2195         * xtensa-tdep.h (struct ctype_cache): Move out of struct
2196         gdbarch_tdep.
2197
2198 2015-02-27  Tom Tromey  <tromey@redhat.com>
2199             Pedro Alves  <palves@redhat.com>
2200
2201         Rename symbols whose names are reserved C++ keywords throughout.
2202
2203 2015-02-27  Pedro Alves  <palves@redhat.com>
2204
2205         * Makefile.in (COMPILER): New, get it from autoconf.
2206         (COMPILE.pre, CC_LD): Use COMPILER.
2207         (CXX): Get from autoconf instead.
2208         (CXX_FOR_TARGET): Default to g++ instead of gcc.
2209         * acinclude.m4: Include build-with-cxx.m4.
2210         * build-with-cxx.m4: New file.
2211         * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
2212         Disable -Werror by default if building in C++ mode.
2213         (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
2214         -Wno-narrowing in C++ mode.  Only enable -Wpointer-sign in C mode.
2215         Run supported-warning-flags tests with the C++ compiler.
2216         Save/restore CXXFLAGS too.
2217         * configure: Regenerate.
2218
2219 2015-02-27  Pedro Alves  <palves@redhat.com>
2220
2221         * libiberty.m4: New file.
2222         * acinclude.m4: Include libiberty.m4.
2223         * configure.ac: Call libiberty_INIT.
2224         * config.in, configure: Regenerate.
2225
2226 2015-02-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2227
2228         * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
2229         31-bit targets, but 64-bit targets as well.
2230         (s390_gnu_triplet_regexp): New function.
2231         (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
2232         64-bit targets as well.  Set the gnu_triplet_regexp gdbarch
2233         method.
2234
2235 2015-02-27  Jon TURNEY  <jon.turney@dronecode.org.uk>  (tiny patch)
2236
2237         * windows-nat.c (CONTEXT_DEBUGGER): Remove.
2238         (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS.  Incorporate flags
2239         from CONTEXT_DEBUGGER.
2240
2241 2015-02-26  Doug Evans  <dje@google.com>
2242
2243         * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
2244         CHECK_TYPEDEF.
2245         (set_type_vptr_fieldno): Ditto.
2246         (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
2247         * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
2248
2249 2015-02-26  Pedro Alves  <palves@redhat.com>
2250
2251         * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
2252         * complaints.c (vcomplaint): Pass argument FMT directly to
2253         printf-like functions instead of complaint->fmt.
2254         * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
2255         * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
2256         * compile/compile-loc2c.c (pushf, unary, binary): Add
2257         ATTRIBUTE_PRINTF.
2258         (do_compile_dwarf_expr_to_c): Pass string literal as format string
2259         to pushf.
2260         (BINARY): Pass string literal as format string to 'binary'.
2261         * compile/compile-object-load.c (link_callbacks_einfo): Add
2262         ATTRIBUTE_PRINTF.
2263         * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
2264
2265 2015-02-26  Pedro Alves  <palves@redhat.com>
2266
2267         * windows-termcap.c: Rename to ...
2268         * stub-termcap.c: ... this.  Adjust header line.
2269         * Makefile.in (SFILES): Refer to stub-termcap.c instead of
2270         windows-termcap.c.
2271         * configure: Regenerate.
2272         * configure.ac: Refer to stub-termcap.o instead of
2273         windows-termcap.o.
2274         * gdb_curses.h: Mention stub-termcap.c instead of
2275         windows-termcap.c.
2276
2277 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
2278
2279         * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
2280         (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
2281
2282 2015-02-26  Antoine Tremblay  <antoine.tremblay@ericsson.com>
2283
2284         * gdb/infcmd.c (print_return_value): use type_to_string to print type.
2285
2286 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
2287
2288         * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
2289         bfd_canonicalize_symtab.
2290
2291 2015-02-25  John Baldwin  <jhb@FreeBSD.org>
2292
2293         * amd64fbsd-nat.c: Include sys/user.h.
2294         (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
2295         instead of KERN_PS_STRINGS to locate the signal trampoline.
2296         * i386fbsd-nat.c: Include sys/user.h.
2297         (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
2298         instead of KERN_PS_STRINGS to locate the signal trampoline.
2299         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
2300         (amd64fbsd_sigtramp_p): New.
2301         (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
2302         longer set default values.
2303         (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
2304         * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
2305         (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
2306         (i386fbsd_freebsd4_sigtramp_start)
2307         (i386fbsd_freebsd4_sigtramp_middle)
2308         (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
2309         (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
2310         (i386fbsd_sigtramp_p): New.
2311         (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
2312         longer set default values.
2313         (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
2314
2315 2015-02-25  John Baldwin  <jhb@freebsd.org>
2316
2317         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
2318         get_frame_register instead of frame_unwind_register_unsigned.
2319
2320 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
2321
2322         PR build/18033
2323         * compile/compile-c-support.c (c_compute_program): Change // comment.
2324         * compile/compile-object-load.c (setup_sections): Change // comment.
2325
2326 2015-02-26  Joel Brobecker  <brobecker@adacore.com>
2327
2328         PR build/18033:
2329         * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
2330
2331 2015-02-23  Pedro Alves  <palves@redhat.com>
2332
2333         * remote.c (skip_to_semicolon): New function.
2334         (remote_parse_stop_reply) <T stop reply>: Use it.  Don't
2335         special case the stop reasons that look like hex numbers
2336         upfront.  Instead handle real register numbers after matching
2337         all the known stop reasons.
2338
2339 2015-02-21  Doug Evans  <dje@google.com>
2340
2341         PR c++/17976, symtab/17821
2342         * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
2343         is_in_anonymous.  All callers updated.
2344         (find_symbol_in_baseclass): Ditto.
2345         (cp_lookup_nested_symbol_1): Ditto.  Don't search all static blocks
2346         for symbols in an anonymous namespace.
2347         * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
2348         DW_AT_name directly.
2349         (dwarf2_name): Convert missing namespace name to
2350         CP_ANONYMOUS_NAMESPACE_STR.
2351
2352 2015-02-20  Pedro Alves  <palves@redhat.com>
2353
2354         * linux-nat.c (linux_handle_extended_wait): Call
2355         thread_db_notice_clone whenever a new clone LWP is detected.
2356         (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
2357         functions.
2358         * linux-nat.h (thread_db_attach_lwp): Delete declaration.
2359         (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
2360         (linux_unstop_all_lwps): Declare.
2361         * linux-thread-db.c (struct thread_get_info_inout): Delete.
2362         (thread_get_info_callback): Delete.
2363         (thread_from_lwp): Use td_thr_get_info and record_thread.
2364         (thread_db_attach_lwp): Delete.
2365         (thread_db_notice_clone): New function.
2366         (try_thread_db_load_1): If /proc is mounted and shows the
2367         process'es task list, walk over all LWPs and call thread_from_lwp
2368         instead of relying on td_ta_thr_iter.
2369         (attach_thread): Don't call check_thread_signals here.  Split the
2370         tail part of the function (which adds the thread to the core GDB
2371         thread list) to ...
2372         (record_thread): ... this function.  Call check_thread_signals
2373         here.
2374         (thread_db_wait): Don't call thread_db_find_new_threads_1.  Always
2375         call thread_from_lwp.
2376         (thread_db_update_thread_list): Rename to ...
2377         (thread_db_update_thread_list_org): ... this.
2378         (thread_db_update_thread_list): New function.
2379         (thread_db_find_thread_from_tid): Delete.
2380         (thread_db_get_ada_task_ptid): Simplify.
2381         * nat/linux-procfs.c: Include <sys/stat.h>.
2382         (linux_proc_task_list_dir_exists): New function.
2383         * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
2384
2385 2015-02-20  Pedro Alves  <palves@redhat.com>
2386
2387         * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
2388         main LWP.  Handle the case of waitpid returning 0 if we're already
2389         attached to the LWP.  Don't set the LWP's last_resume_kind to
2390         resume_stop if we already knew about the LWP.
2391         (linux_nat_filter_event): Add debug logs.
2392
2393 2015-02-20  Pedro Alves  <palves@redhat.com>
2394
2395         * target.h (forward_target_decr_pc_after_break): Delete
2396         declaration.
2397
2398 2015-02-20  Pedro Alves  <palves@redhat.com>
2399
2400         PR threads/18006
2401         * linux-thread-db.c (thread_get_info_callback): Return early if
2402         the thread's lwp id is -1.
2403
2404 2015-02-20  Joel Brobecker  <brobecker@adacore.com>
2405
2406         GDB 7.9 released.
2407
2408 2015-02-19  Steve Ellcey  <sellcey@imgtec.com>
2409
2410         * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
2411         (dtrace_get_probes) Change type of variable 'dof'.
2412
2413 2015-02-19  Antoine Tremblay  <antoine.tremblay@ericsson.com>
2414
2415         PR breakpoints/16812
2416         * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
2417         * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
2418         * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
2419
2420 2015-02-19  David Taylor  <dtaylor@emc.com>
2421
2422         * common/ax.def (setv): Fix consumed entry in setv DEFOP.
2423
2424 2015-02-18  Patrick Palka  <patrick@parcs.ath.cx>
2425
2426         * tui/tui-io.c (tui_handle_resize_during_io): Remove this
2427         function.
2428         (tui_putc): Don't call tui_handle_resize_during_io.
2429         (tui_getc): Likewise.
2430         (tui_mld_getc): Likewise.
2431         * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
2432         (tui_sigwinch_token): New static variable.
2433         (tui_initialize_win): Adjust documentation.  Set
2434         tui_sigwinch_token.
2435         (tui_async_resize_screen): New asynchronous callback.
2436         (tui_sigwinch_handler): Adjust documentation.  Asynchronously
2437         invoke tui_async_resize_screen.
2438
2439 2015-02-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
2440
2441         * configure: Regenerated.
2442         * configure.ac: Use GDB_AC_TRANSFORM.
2443         * Makefile.in (aclocal_m4_deps): Added transform.m4.
2444         * acinclude.m4: sinclude transform.m4.
2445         * transform.m4: New file.
2446         (GDB_AC_TRANSFORM): New macro.
2447
2448 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
2449
2450         * NEWS: Announce the support for DTrace SDT probes.
2451
2452 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
2453
2454         * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
2455         (amd64_dtrace_parse_probe_argument): New function.
2456         (amd64_dtrace_probe_is_enabled): Likewise.
2457         (amd64_dtrace_enable_probe): Likewise.
2458         (amd64_dtrace_disable_probe): Likewise.
2459         (amd64_linux_init_abi): Register the
2460         `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
2461         `gdbarch_dtrace_disable_probe' and
2462         `gdbarch_dtrace_probe_is_enabled' hooks.
2463         (amd64_dtrace_disabled_probe_sequence_1): New constant.
2464         (amd64_dtrace_disabled_probe_sequence_2): Likewise.
2465         (amd64_dtrace_enable_probe_sequence): Likewise.
2466         (amd64_dtrace_disable_probe_sequence): Likewise.
2467
2468 2015-01-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
2469
2470         * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
2471         the -probe-dtrace new vpossible value for PROBE_MODIFIER.
2472         * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
2473         handle ELF files.
2474         * Makefile.in (SFILES): dtrace-probe.c added.
2475         * configure: Regenerate.
2476         * dtrace-probe.c: New file.
2477         (SHT_SUNW_dof): New constant.
2478         (dtrace_probe_type): New enum.
2479         (dtrace_probe_arg): New struct.
2480         (dtrace_probe_arg_s): New typedef.
2481         (struct dtrace_probe_enabler): New struct.
2482         (dtrace_probe_enabler_s): New typedef.
2483         (dtrace_probe): New struct.
2484         (dtrace_probe_is_linespec): New function.
2485         (dtrace_dof_sect_type): New enum.
2486         (dtrace_dof_dofh_ident): Likewise.
2487         (dtrace_dof_encoding): Likewise.
2488         (DTRACE_DOF_ENCODE_LSB): Likewise.
2489         (DTRACE_DOF_ENCODE_MSB): Likewise.
2490         (dtrace_dof_hdr): New struct.
2491         (dtrace_dof_sect): Likewise.
2492         (dtrace_dof_provider): Likewise.
2493         (dtrace_dof_probe): Likewise.
2494         (DOF_UINT): New macro.
2495         (DTRACE_DOF_PTR): Likewise.
2496         (DTRACE_DOF_SECT): Likewise.
2497         (dtrace_process_dof_probe): New function.
2498         (dtrace_process_dof): Likewise.
2499         (dtrace_build_arg_exprs): Likewise.
2500         (dtrace_get_arg): Likewise.
2501         (dtrace_get_probes): Likewise.
2502         (dtrace_get_probe_argument_count): Likewise.
2503         (dtrace_can_evaluate_probe_arguments): Likewise.
2504         (dtrace_evaluate_probe_argument): Likewise.
2505         (dtrace_compile_to_ax): Likewise.
2506         (dtrace_probe_destroy): Likewise.
2507         (dtrace_gen_info_probes_table_header): Likewise.
2508         (dtrace_gen_info_probes_table_values): Likewise.
2509         (dtrace_probe_is_enabled): Likewise.
2510         (dtrace_probe_ops): New variable.
2511         (info_probes_dtrace_command): New function.
2512         (_initialize_dtrace_probe): Likewise.
2513         (dtrace_type_name): Likewise.
2514
2515 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
2516
2517         * gdbarch.sh (dtrace_parse_probe_argument): New.
2518         (dtrace_probe_is_enabled): Likewise.
2519         (dtrace_enable_probe): Likewise.
2520         (dtrace_disable_probe): Likewise.
2521         * gdbarch.c: Regenerate.
2522         * gdbarch.h: Regenerate.
2523
2524 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
2525
2526         * stap-probe.c (stap_probe_ops): Add NULLs in the static
2527         stap_probe_ops for `enable_probe' and `disable_probe'.
2528         * probe.c (enable_probes_command): New function.
2529         (disable_probes_command): Likewise.
2530         (_initialize_probe): Define the cli commands `enable probe' and
2531         `disable probe'.
2532         (parse_probe_linespec): New function.
2533         (info_probes_for_ops): Use parse_probe_linespec.
2534         * probe.h (probe_ops): New hooks `enable_probe' and
2535         `disable_probe'.
2536
2537 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
2538
2539         * probe.c (compute_probe_arg): Moved from stap-probe.c
2540         (compile_probe_arg): Likewise.
2541         (probe_funcs): Likewise.
2542         * stap-probe.c (compute_probe_arg): Moved to probe.c.
2543         (compile_probe_arg): Likewise.
2544         (probe_funcs): Likewise.
2545
2546 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
2547
2548         * probe.c (print_ui_out_not_applicables): New function.
2549         (exists_probe_with_pops): Likewise.
2550         (info_probes_for_ops): Do not include column headers for probe
2551         types for which no probe has been actually found on any object.
2552         Also invoke `print_ui_out_not_applicables' in order to match the
2553         column rows with the header when probes of several types are
2554         listed.
2555         Print the "Type" column.
2556         * probe.h (probe_ops): Added a new probe operation `type_name'.
2557         * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
2558         (stap_type_name): New function.
2559
2560 2015-02-17  Patrick Palka  <patrick@parcs.ath.cx>
2561
2562         * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
2563         (key_is_command_char): Delete.
2564
2565 2015-02-17  Pedro Alves  <palves@redhat.com>
2566
2567         * tui/tui.c (tui_enable): Resize windows before anything
2568         might show a window.
2569
2570 2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
2571
2572         PR gdb/17984
2573         * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
2574         (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
2575         call.
2576         * aarch64-tdep.h (tdesc_aarch64): Declare.
2577
2578 2015-02-12  Mark Wielaard  <mjw@redhat.com>
2579
2580         * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
2581
2582 2015-02-13  Doug Evans  <dje@google.com>
2583
2584         * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
2585         anonymous_namespace to is_in_anonymous for consistency with the rest
2586         of the file.
2587         (cp_lookup_bare_symbol): Fix typo in comment.
2588         (cp_search_static_and_baseclasses): Ditto.
2589         (search_symbol_list): Use vertical space in comment better.
2590         (reset_directive_searched): Ditto. Fix typo.
2591         (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
2592
2593 2015-02-13  Yao Qi  <yao.qi@arm.com>
2594
2595         * MAINTAINERS: Update my email address.
2596
2597 2015-02-12  Doug Evans  <dje@google.com>
2598
2599         * symtab.c (completion_list_add_name): Fix memory leak.
2600
2601 2015-02-12  Doug Evans  <dje@google.com>
2602
2603         * completer.c (complete_line): Remove incorrect comment.
2604
2605 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2606
2607         * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
2608         (py_print_frame): Use RETURN_MASK_ERROR.
2609
2610 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2611
2612         * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
2613         function comment.  Wrap all function that can throw in cleanups.
2614         (gdbpy_apply_frame_filter): Wrap all function that can throw in
2615         cleanups.
2616
2617 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2618
2619         * python/py-framefilter.c (py_print_frame): Substitute goto error.
2620         Remove the error label.
2621
2622 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2623
2624         * python/py-framefilter.c (py_print_frame): Put conditional code paths
2625         with goto first, indent the former else codepath left.  Put variable
2626         'elided' to a new inner block.
2627
2628 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
2629
2630         * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
2631
2632 2015-02-11  Pedro Alves  <palves@redhat.com>
2633
2634         * xcoffread.c (within_function): Delete.
2635
2636 2015-02-11  Tom Tromey  <tromey@redhat.com>
2637             Pedro Alves <palves@redhat.com>
2638
2639         * breakpoint.c (base_breakpoint_ops): Delete.
2640         * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
2641         * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
2642         * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
2643         * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
2644         * python/py-arch.c (arch_object_type): Make extern.
2645         * python/py-block.c (block_syms_iterator_object_type): Make extern.
2646         * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
2647         * python/py-cmd.c (cmdpy_object_type): Make extern.
2648         * python/py-continueevent.c (continue_event_object_type)
2649         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
2650         parameter.  Update all callers.
2651         * python/py-evtregistry.c (eventregistry_object_type): Make extern.
2652         * python/py-exitedevent.c (exited_event_object_type): Make extern.
2653         * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
2654         * python/py-function.c (fnpy_object_type): Make extern.
2655         * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
2656         * python/py-infevents.c (call_pre_event_object_type)
2657         (inferior_call_post_event_object_type).
2658         (memory_changed_event_object_type): Make extern.
2659         * python/py-infthread.c (thread_object_type): Make extern.
2660         * python/py-lazy-string.c (lazy_string_object_type): Make extern.
2661         * python/py-linetable.c (linetable_entry_object_type)
2662         (linetable_object_type, ltpy_iterator_object_type): Make extern.
2663         * python/py-newobjfileevent.c (new_objfile_event_object_type)
2664         (clear_objfiles_event_object_type): Make extern.
2665         * python/py-objfile.c (objfile_object_type): Make extern.
2666         * python/py-param.c (parmpy_object_type): Make extern.
2667         * python/py-progspace.c (pspace_object_type): Make extern.
2668         * python/py-signalevent.c (signal_event_object_type): Make extern.
2669         * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
2670         * python/py-type.c (type_object_type, field_object_type)
2671         (type_iterator_object_type): Make extern.
2672         * python/python.c (python_extension_script_ops)
2673         (python_extension_ops): Make extern.
2674         * stap-probe.c (stap_probe_ops): Make extern.
2675
2676 2015-02-11  Pedro Alves  <pedro@codesourcery.com>
2677
2678         * infrun.c (adjust_pc_after_break): Don't adjust the PC just
2679         because the event thread is not the current thread.
2680
2681 2015-02-11  Doug Evans  <xdje42@gmail.com>
2682
2683         * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
2684         been initialized yet, return NULL.
2685
2686 2015-02-11  Doug Evans  <dje@google.com>
2687
2688         * symfile.h (new_symfile_objfile): Delete.
2689         * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
2690         All callers updated.
2691
2692 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
2693
2694         * tui/tui-io.c (tui_handle_resize_during_io): Call
2695         tui_update_gdb_sizes() after resizing the screen.
2696         * tui/tui.c (tui_enable): Resize the terminal before
2697         calling tui_update_gdb_sizes().
2698
2699 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
2700
2701         * tui/tui-io.c (tui_getc): Move cursor to the end of the command
2702         line before printing a newline.
2703
2704 2015-02-11  Mark Wielaard  <mjw@redhat.com>
2705
2706         * utils.c (producer_is_gcc): Return true or false.
2707
2708 2015-02-10  Mark Wielaard  <mjw@redhat.com>
2709
2710         * utils.h (producer_is_gcc): Change return type to bool. Add major
2711         argument.
2712         * utils.c (producer_is_gcc): Likewise.
2713         (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
2714         * dwarf2read.c (check_producer): Likewise.
2715
2716 2015-02-10  Pedro Alves  <palves@redhat.com>
2717
2718         * infrun.c (displaced_step_fixup): Switch to the event thread
2719         before calling gdbarch_displaced_step_fixup.
2720
2721 2015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
2722
2723         * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
2724
2725 2015-02-10  Simon Marchi  <simon.marchi@ericsson.com>
2726
2727         * ada-varobj.c (ada_name_of_child): Constify parent.
2728         (ada_path_expr_of_child): Same.
2729         (ada_value_of_child): Same.
2730         (ada_type_of_child): Same.
2731         * c-varobj.c (c_is_path_expr_parent): Same.
2732         (c_describe_child): Same.
2733         (c_name_of_child): Same.
2734         (c_value_of_child): Same.
2735         (c_type_of_child): Same.
2736         (cplus_number_of_children): Same.
2737         (cplus_describe_child): Constify var.
2738         (cplus_name_of_child): Constify parent.
2739         (cplus_value_of_child): Same.
2740         (cplus_type_of_child): Same.
2741         * jv-varobj.c (java_name_of_child): Same.
2742         (java_value_of_child): Same.
2743         (java_type_of_child): Same.
2744         * varobj.c (value_of_child): Same.
2745         (varobj_default_is_path_expr_parent): Constify var, parent and return
2746         value.
2747         (varobj_get_path_expr): Constify var, modify path_expr through
2748         mutable_var.
2749         (install_new_value): Constify parent.
2750         (value_of_child): Constify parent.
2751         * varobj.h (struct varobj): Constify parent.
2752         (struct lang_varobj_ops): Constify name_of_child, value_of_child and
2753         type_of_child.
2754         (varobj_get_path_expr): Constify var.
2755         (varobj_get_path_expr_parent): Constify var and return value.
2756
2757 2015-02-10  Luis Machado  <lgustavo@codesourcery.com>
2758
2759         * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
2760         (arm_prologue_this_id): Move PC and SP limit checks to
2761         arm_prologue_unwind_stop_reason.
2762         (arm_prologue_unwind) <stop_reason> : Set to
2763         arm_prologue_unwind_stop_reason.
2764
2765 2015-02-09  Mark Wielaard  <mjw@redhat.com>
2766
2767         * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
2768         DW_LANG_Fortran08 as language_fortran.
2769
2770 2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
2771
2772         PR remote/17946
2773         * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
2774         of pointer against char.
2775
2776 2015-02-09  Mark Wielaard  <mjw@redhat.com>
2777
2778         * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
2779         (c_type_print_modifier): Likewise.
2780         * dwarf2read.c (read_tag_atomic_type): New function.
2781         (read_type_die_1): Handle DW_TAG_atomic_type.
2782         * gdbtypes.c (make_atomic_type): New function.
2783         (recursive_dump_type): Handle TYPE_ATOMIC.
2784         * gdbtypes.h (enum type_flag_values): Renumber.
2785         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
2786         (TYPE_ATOMIC): New macro.
2787         (make_atomic_type): Declare.
2788
2789 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
2790
2791         * btrace.c (ftrace_find_call): Skip gaps.
2792         (ftrace_new_function): Initialize level.
2793         (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
2794         (ftrace_new_switch): Update
2795         level computation.
2796         (ftrace_new_gap): New.
2797         (ftrace_update_function): Create new function after gap.
2798         (btrace_compute_ftrace_bts): Create gap on error.
2799         (btrace_stitch_bts): Update parameters.  Clear trace if it
2800         becomes empty.
2801         (btrace_stitch_trace): Update parameters.  Update callers.
2802         (btrace_clear): Reset the number of gaps.
2803         (btrace_insn_get): Return NULL if the iterator points to a gap.
2804         (btrace_insn_number): Return zero if the iterator points to a gap.
2805         (btrace_insn_end): Allow gaps at the end.
2806         (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
2807         (btrace_find_insn_by_number): Assert that the found iterator does
2808         not point to a gap.
2809         (btrace_call_next, btrace_call_prev): Assert that the last function
2810         is not a gap.
2811         * btrace.h (btrace_bts_error): New.
2812         (btrace_function): Update comment.
2813         (btrace_function) <insn, insn_offset, number>: Update comment.
2814         (btrace_function) <errcode>: New.
2815         (btrace_thread_info) <ngaps>: New.
2816         (btrace_thread_info) <replay>: Update comment.
2817         (btrace_insn_get): Update comment.
2818         * record-btrace.c (btrace_ui_out_decode_error): New.
2819         (record_btrace_info): Print number of gaps.
2820         (btrace_insn_history, btrace_call_history): Call
2821         btrace_ui_out_decode_error for gaps.
2822         (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
2823
2824 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
2825
2826         * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
2827         * nat/linux-btrace.c: (btrace_this_cpu): New.
2828         (cpu_supports_bts): Call btrace_this_cpu.
2829         (intel_supports_bts): Add cpu parameter.
2830
2831 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
2832
2833         * btrace.h (btrace_insn_class): New.
2834         (btrace_insn) <size, iclass>: New.
2835         * btrace.c (ftrace_find_call): Update parameters.  Update users.
2836         Use instruction classification.
2837         (ftrace_new_return): Update parameters.  Update users.
2838         (ftrace_update_function): Update parameters.  Update users.  Use
2839         instruction classification.
2840         (ftrace_update_insns): Update parameters.  Update users.
2841         (ftrace_classify_insn): New.
2842         (btrace_compute_ftrace_bts): Fill in new btrace_insn fields.  Add
2843         TRY_CATCH around call to gdb_insn_length.
2844
2845 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
2846
2847         * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
2848         Update parameters.  Update users.
2849
2850 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
2851
2852         * btrace.c (parse_xml_btrace_conf_bts): Add size.
2853         (btrace_conf_bts_attributes): New.
2854         (btrace_conf_children): Add attributes.
2855         * common/btrace-common.h (btrace_config_bts): New.
2856         (btrace_config)<bts>: New.
2857         (btrace_config): Update comment.
2858         * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
2859         Use config.
2860         * features/btrace-conf.dtd: Increment version.  Add size
2861         attribute to bts element.
2862         * record-btrace.c (set_record_btrace_bts_cmdlist,
2863         show_record_btrace_bts_cmdlist): New.
2864         (record_btrace_adjust_size, record_btrace_print_bts_conf,
2865         record_btrace_print_conf, cmd_set_record_btrace_bts,
2866         cmd_show_record_btrace_bts): New.
2867         (record_btrace_info): Call record_btrace_print_conf.
2868         (_initialize_record_btrace): Add commands.
2869         * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
2870         (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
2871         (btrace_sync_conf): Synchronize bts size.
2872         (_initialize_remote): Add Qbtrace-conf:bts:size packet.
2873         * NEWS: Announce new commands and new packets.
2874
2875 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
2876
2877         * Makefile.in (XMLFILES): Add btrace-conf.dtd.
2878         * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
2879         (x86_linux_btrace_conf): New.
2880         (x86_linux_create_target): Initialize to_btrace_conf.
2881         * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
2882         Check format.  Split into this and ...
2883         (linux_enable_bts): ... this.
2884         (linux_btrace_conf): New.
2885         (perf_event_skip_record): Renamed into ...
2886         (perf_event_skip_bts_record): ... this.  Updated users.
2887         (linux_disable_btrace): Split into this and ...
2888         (linux_disable_bts): ... this.
2889         (linux_read_btrace): Check format.
2890         * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
2891         (linux_btrace_conf): New.
2892         (btrace_target_info)<ptid>: Moved.
2893         (btrace_target_info)<conf>: New.
2894         (btrace_target_info): Split into this and ...
2895         (btrace_tinfo_bts): ... this.  Updated users.
2896         * btrace.c (btrace_enable): Update parameters.
2897         (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
2898         (btrace_conf_children, btrace_conf_attributes)
2899         (btrace_conf_elements): New.
2900         * btrace.h (btrace_enable): Update parameters.
2901         (btrace_conf, parse_xml_btrace_conf): New.
2902         * common/btrace-common.h (btrace_config): New.
2903         * feature/btrace-conf.dtd: New.
2904         * record-btrace.c (record_btrace_conf): New.
2905         (record_btrace_cmdlist): New.
2906         (record_btrace_enable_warn, record_btrace_open): Pass
2907         &record_btrace_conf.
2908         (record_btrace_info): Print recording format.
2909         (cmd_record_btrace_bts_start): New.
2910         (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
2911         (_initialize_record_btrace): Add "record btrace bts" subcommand.
2912         Add "record bts" alias command.
2913         * remote.c (remote_state)<btrace_config>: New.
2914         (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
2915         (remote_protocol_features): Add qXfer:btrace-conf:read.
2916         (remote_open_1): Call remote_btrace_reset.
2917         (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
2918         (btrace_target_info)<conf>: New.
2919         (btrace_sync_conf, btrace_read_config): New.
2920         (remote_enable_btrace): Update parameters.  Call btrace_sync_conf and
2921         btrace_read_conf.
2922         (remote_btrace_conf): New.
2923         (init_remote_ops): Initialize to_btrace_conf.
2924         (_initialize_remote): Add qXfer:btrace-conf packet.
2925         * target.c (target_enable_btrace): Update parameters.
2926         (target_btrace_conf): New.
2927         * target.h (target_enable_btrace): Update parameters.
2928         (target_btrace_conf): New.
2929         (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
2930         (target_ops)<to_enable_btrace>: Update parameters and comment.
2931         (target_ops)<to_btrace_conf>: New.
2932         * target-delegates: Regenerate.
2933         * target-debug.h (target_debug_print_const_struct_btrace_config_p)
2934         (target_debug_print_const_struct_btrace_target_info_p): New.
2935         * NEWS: Announce new command and new packet.
2936
2937 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
2938
2939         * nat/linux-btrace.h (perf_event_buffer): New.
2940         (btrace_target_info) <buffer, size, data_head>: Replace with ...
2941         <bts>: ... this.
2942         * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
2943         (perf_event_buffer_size, perf_event_buffer_begin)
2944         (perf_event_buffer_end, linux_btrace_has_changed): Removed.
2945         Updated users.
2946         (perf_event_new_data): New.
2947
2948 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
2949
2950         * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
2951         * record-btrace.c (record_btrace_open): Remove call to
2952         target_supports_btrace.
2953         * remote.c (remote_supports_btrace): Update parameters.
2954         * target.c (target_supports_btrace): Update parameters.
2955         * target.h (to_supports_btrace, target_supports_btrace): Update
2956         parameters.
2957         * target-delegates.c: Regenerate.
2958         * target-debug.h (target_debug_print_enum_btrace_format): New.
2959         * nat/linux-btrace.c
2960         (kernel_supports_btrace): Rename into ...
2961         (kernel_supports_bts): ... this.  Update users.  Update warning text.
2962         (intel_supports_btrace): Rename into ...
2963         (intel_supports_bts): ... this.  Update users.
2964         (cpu_supports_btrace): Rename into ...
2965         (cpu_supports_bts): ... this.  Update users.
2966         (linux_supports_btrace): Update parameters.  Split into this and ...
2967         (linux_supports_bts): ... this.
2968         * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
2969
2970 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
2971
2972         * Makefile.in (SFILES): Add common/btrace-common.c.
2973         (COMMON_OBS): Add common/btrace-common.o.
2974         (btrace-common.o): Add build rules.
2975         * btrace.c (parse_xml_btrace): Update parameters.
2976         (parse_xml_btrace_block): Set format field.
2977         (btrace_add_pc, btrace_fetch): Use struct btrace_data.
2978         (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
2979         (btrace_compute_ftrace): Split into this and...
2980         (btrace_compute_ftrace_bts): ...this.
2981         (btrace_stitch_trace): Split into this and...
2982         (btrace_stitch_bts): ...this.
2983         * btrace.h (parse_xml_btrace): Update parameters.
2984         (make_cleanup_btrace_data): New.
2985         * common/btrace-common.c: New.
2986         * common/btrace-common.h: Include common-defs.h.
2987         (btrace_block_s): Update comment.
2988         (btrace_format): New.
2989         (btrace_format_string): New.
2990         (btrace_data_bts): New.
2991         (btrace_data): New.
2992         (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
2993         * remote.c (remote_read_btrace): Update parameters.
2994         * target.c (target_read_btrace): Update parameters.
2995         * target.h (target_read_btrace): Update parameters.
2996         (target_ops)<to_read_btrace>: Update parameters.
2997         * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
2998         * target-delegates.c: Regenerate.
2999         * target-debug (target_debug_print_struct_btrace_data_p): New.
3000         * nat/linux-btrace.c (linux_read_btrace): Split into this and...
3001         (linux_read_bts): ...this.
3002         * nat/linux-btrace.h (linux_read_btrace): Update parameters.
3003
3004 2015-02-06  Doug Evans  <dje@google.com>
3005
3006         * remote-m32r-sdi.c: Include symfile.h.
3007
3008 2015-02-06  Doug Evans  <dje@google.com>
3009
3010         * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
3011         * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
3012         to here.
3013
3014 2015-02-06  Pedro Alves  <palves@redhat.com>
3015
3016         * linux-thread-db.c (find_new_threads_callback): Add debug output.
3017
3018 2015-02-06  Simon Marchi  <simon.marchi@ericsson.com>
3019
3020         PR gdb/15678
3021         * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
3022         (enable_count_command): Check args for NULL value.
3023
3024 2015-02-05  Doug Evans  <xdje42@gmail.com>
3025
3026         * guile/scm-frame.c: Fix spelling errors in a comment.
3027
3028 2015-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
3029
3030         * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
3031         * python/py-value.c (valpy_fetch_lazy): Use it.  Remove cast to the
3032         return type.
3033
3034 2015-02-04  Pedro Alves  <palves@redhat.com>
3035
3036         * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
3037         (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
3038         returns true.
3039         (resume_stopped_resumed_lwps): Don't check whether the thread is
3040         marked as executing.
3041         (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
3042
3043 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3044
3045         * regset.h (struct regset): Add flags field.
3046         (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
3047         * corelow.c (get_core_register_section): Add warning if the size
3048         exceeds the requested size and the regset does not have the
3049         REGSET_VARIABLE_SIZE flag set.
3050         * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
3051         flag.
3052         * armbsd-tdep.c (armbsd_gregset): Likewise.
3053         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
3054         * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
3055         * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
3056         * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
3057
3058 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3059
3060         * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
3061         For ".reg-xstate", explicitly specify the requested section size
3062         via X86_XSTATE_SIZE instead of just 0 on input and
3063         X86_XSTATE_MAX_SIZE on output.
3064         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
3065         Likewise.
3066
3067 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3068
3069         PR corefiles/17808:
3070         * gdbarch.sh (iterate_over_regset_sections_cb): Document this
3071         function type, particularly its SIZE parameter.
3072         * gdbarch.h: Regenerate.
3073         * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
3074         actual against required size using ">=" instead of "==".
3075         (amd64_collect_fpregset): Likewise.
3076         * i386-tdep.c (i386_supply_gregset): Likewise.
3077         (i386_collect_gregset): Likewise.
3078         (i386_supply_fpregset): Likewise.
3079         (i386_collect_fpregset): Likewise.
3080         * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
3081         (mips_fill_gregset_wrapper): Likewise.
3082         (mips_supply_fpregset_wrapper): Likewise.
3083         (mips_fill_fpregset_wrapper): Likewise.
3084         (mips64_supply_gregset_wrapper): Likewise.
3085         (mips64_fill_gregset_wrapper): Likewise.
3086         (mips64_supply_fpregset_wrapper): Likewise.
3087         (mips64_fill_fpregset_wrapper): Likewise.
3088         * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
3089         (am33_supply_fpregset_method): Likewise.
3090         (am33_collect_gregset_method): Likewise.
3091         (am33_collect_fpregset_method): Likewise.
3092
3093 2015-02-04  Doug Evans  <dje@google.com>
3094             Pedro Alves  <palves@redhat.com>
3095             Eli Zaretskii  <eliz@gnu.org>
3096
3097         PR tui/17810
3098         * tui/tui-command.c (tui_refresh_cmd_win): New function.
3099         * tui/tui-command.c (tui_refresh_cmd_win): Declare.
3100         * tui/tui-file.c: #include tui/tui-command.h.
3101         (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
3102         (tui_file_flush): Refresh command window if stream is gdb_stdout.
3103         * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
3104
3105 2015-02-04  Pedro Alves  <palves@redhat.com>
3106
3107         Fix build breakage.
3108         * event-loop.c (gdb_do_one_event): Add default switch case.
3109
3110 2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3111
3112         Filter out inferior gcc option -fpreprocessed.
3113         * compile/compile.c (filter_args): New function.
3114         (get_args): Use it.
3115
3116 2015-02-03  Pedro Alves  <palves@redhat.com>
3117
3118         * event-loop.c: Don't declare nor define a queue type for
3119         gdb_event_p.
3120         (event_queue): Delete.
3121         (create_event, create_file_event, gdb_event_xfree)
3122         (initialize_event_loop, process_event): Delete.
3123         (gdb_do_one_event): Return as soon as one event is handled.
3124         (handle_file_event): Change prototype.  Used the passed in
3125         file_handler pointer and ready_mask instead of looping over all
3126         file handlers.
3127         (gdb_wait_for_event): Update the poll/select timeouts before
3128         blocking.  Run event handlers directly instead of queueing events.
3129         Return as soon as one event is handled.
3130         (struct async_event_handler_data): Delete.
3131         (invoke_async_event_handler): Delete.
3132         (check_async_event_handlers): Change return type to int.  Run
3133         event handlers directly instead of queueing events.  Return as
3134         soon as one event is handled.
3135         (handle_timer_event): Delete.
3136         (update_wait_timeout): New function, factored out from
3137         poll_timers.
3138         (poll_timers): Reimplement.
3139         * event-loop.h (initialize_event_loop): Delete declaration.
3140         * top.c (gdb_init): Don't call initialize_event_loop.
3141
3142 2015-02-03  Pedro Alves  <palves@redhat.com>
3143
3144         * event-loop.c (clear_async_event_handler): New function.
3145         * event-loop.h (clear_async_event_handler): New declaration.
3146         * record-btrace.c (record_btrace_async): New function.
3147         (init_record_btrace_ops): Install record_btrace_async.
3148         * record-full.c (record_full_async): New function.
3149         (record_full_resume): Don't mark the async event source here.
3150         (init_record_full_ops): Install record_full_async.
3151         (record_full_core_resume): Don't mark the async event source here.
3152         (init_record_full_core_ops): Install record_full_async.
3153         * remote.c (remote_async): Mark and clear the async stop reply
3154         queue event-loop token as appropriate.
3155
3156 2015-02-03  Pedro Alves  <palves@redhat.com>
3157
3158         * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
3159         target_is_async_p instead of target_can_async.
3160         (linux_nat_wait): Use target_is_async_p instead of
3161         target_can_async.  Don't enable async here.
3162         * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
3163         target_is_async_p instead of target_can_async.
3164
3165 2015-02-02  Simon Marchi  <simon.marchi@ericsson.com>
3166
3167         * varobj.h (lang_varobj_ops): Mention which return values need
3168         to be freed.
3169
3170 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
3171
3172         * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
3173
3174 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
3175
3176         PR gdb/17856:
3177         * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
3178         results found in the cache.
3179
3180 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
3181
3182         PR gdb/17854:
3183         * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
3184         when allocating a new one.
3185
3186 2015-02-01  Tom Tromey  <tom@tromey.com>
3187
3188         * MAINTAINERS: Remove myself.
3189
3190 2015-01-31  Doug Evans  <xdje42@gmail.com>
3191
3192         * dwarf2read.c (process_structure_scope): Update setting of
3193         TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
3194         * gdbtypes.c (internal_type_vptr_fieldno): New function.
3195         (set_type_vptr_fieldno): New function.
3196         (internal_type_vptr_basetype): New function.
3197         (set_type_vptr_basetype): New function.
3198         (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
3199         TYPE_VPTR_BASETYPE.
3200         (allocate_cplus_struct_type): Initialize vptr_fieldno.
3201         (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
3202         (print_cplus_stuff): ... moved here.
3203         (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
3204         * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
3205         moved to ...
3206         (struct cplus_struct_type): ... here.  All uses updated.
3207         (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
3208         (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
3209         (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
3210         * stabsread.c (read_tilde_fields): Update setting of
3211         TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
3212
3213 2015-01-31  Doug Evans  <xdje42@gmail.com>
3214
3215         * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
3216         to self_p.
3217         (cp_print_class_member): Rename local domain to self_type.
3218         * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
3219         domain_type to self_type.
3220         (set_die_type) <need_gnat_info>: Handle
3221         TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
3222         * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
3223         TYPE_SPECIFIC_SELF_TYPE.
3224         * gdbtypes.c (internal_type_self_type): New function.
3225         (set_type_self_type): New function.
3226         (smash_to_memberptr_type): Rename parameter domain to self_type.
3227         Update setting of TYPE_SELF_TYPE.
3228         (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
3229         (smash_to_method_type): Rename parameter domain to self_type.
3230         Update setting of TYPE_SELF_TYPE.
3231         (check_stub_method): Call smash_to_method_type.
3232         (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
3233         (copy_type_recursive): Ditto.
3234         * gdbtypes.h (enum type_specific_kind): New value
3235         TYPE_SPECIFIC_SELF_TYPE.
3236         (struct main_type) <type_specific>: New member self_type.
3237         (struct cplus_struct_type) <fn_field.type>: Update comment.
3238         (TYPE_SELF_TYPE): Rewrite.
3239         (internal_type_self_type, set_type_self_type): Declare.
3240         * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
3241         self_type.
3242         (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
3243         * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
3244         TYPE_TARGET_TYPE.
3245         * stabsread.c (read_member_functions): Mark methods with
3246         TYPE_CODE_METHOD, not TYPE_CODE_FUNC.  Update setting of
3247         TYPE_SELF_TYPE.
3248
3249 2015-01-31  Doug Evans  <xdje42@gmail.com>
3250
3251         * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
3252         All uses updated.
3253
3254 2015-01-31  Doug Evans  <xdje42@gmail.com>
3255
3256         * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
3257         or unions.  Return zero if union.
3258         (gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
3259         (gnuv3_rtti_type): Pass already-check_typedef'd value to
3260         gnuv3_get_vtable.
3261         (compute_vtable_size): Assert only passed structs.
3262         (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
3263
3264 2015-01-31  Doug Evans  <xdje42@gmail.com>
3265
3266         * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
3267         kinds.
3268
3269 2015-01-31  Gary Benson <gbenson@redhat.com>
3270             Doug Evans  <dje@google.com>
3271
3272         PR cli/9007
3273         PR cli/11920
3274         PR cli/15548
3275         * cli/cli-cmds.c (complete_command): Notify user if max-completions
3276         reached.
3277         * common/common-exceptions.h (enum errors)
3278         <MAX_COMPLETIONS_REACHED_ERROR>: New value.
3279         * completer.h (get_max_completions_reached_message): New declaration.
3280         (max_completions): Likewise.
3281         (completion_tracker_t): New typedef.
3282         (new_completion_tracker): New declaration.
3283         (make_cleanup_free_completion_tracker): Likewise.
3284         (maybe_add_completion_enum): New enum.
3285         (maybe_add_completion): New declaration.
3286         (throw_max_completions_reached_error): Likewise.
3287         * completer.c (max_completions): New global variable.
3288         (new_completion_tracker): New function.
3289         (free_completion_tracker): Likewise.
3290         (make_cleanup_free_completion_tracker): Likewise.
3291         (maybe_add_completions): Likewise.
3292         (throw_max_completions_reached_error): Likewise.
3293         (complete_line): Remove duplicates and limit result to max_completions
3294         entries.
3295         (get_max_completions_reached_message): New function.
3296         (gdb_display_match_list): Handle max_completions.
3297         (_initialize_completer): New declaration and function.
3298         * symtab.c: Include completer.h.
3299         (completion_tracker): New static variable.
3300         (completion_list_add_name): Call maybe_add_completion.
3301         (default_make_symbol_completion_list_break_on_1): Renamed from
3302         default_make_symbol_completion_list_break_on.  Maintain
3303         completion_tracker across calls to completion_list_add_name.
3304         (default_make_symbol_completion_list_break_on): New function.
3305         * top.c (init_main): Set rl_completion_display_matches_hook.
3306         * tui/tui-io.c: Include completer.h.
3307         (tui_old_rl_display_matches_hook): New static global.
3308         (tui_rl_display_match_list): Notify user if max-completions reached.
3309         (tui_setup_io): Save/restore rl_completion_display_matches_hook.
3310         * NEWS (New Options): Mention set/show max-completions.
3311
3312 2015-01-31  Gary Benson  <gbenson@redhat.com>
3313
3314         * symtab.c (struct add_name_data) <code>: New field.
3315         Updated comments.
3316         (add_symtab_completions): New function.
3317         (symtab_expansion_callback): Likewise.
3318         (default_make_symbol_completion_list_break_on): Set datum.code.
3319         Move minimal symbol scan before calling expand_symtabs_matching.
3320         Scan known primary symtabs for externs and statics before calling
3321         expand_symtabs_matching.  Pass symtab_expansion_callback as
3322         expansion_notify argument to expand_symtabs_matching.  Do not scan
3323         primary symtabs for externs and statics after calling
3324         expand_symtabs_matching.
3325
3326 2015-01-31  Gary Benson  <gbenson@redhat.com>
3327
3328         * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
3329         (struct quick_symbol_functions) <expand_symtabs_matching>:
3330         New argument expansion_notify.  All uses updated.
3331         (expand_symtabs_matching): New argument expansion_notify.
3332         All uses updated.
3333         * symfile-debug.c (debug_qf_expand_symtabs_matching):
3334         Also print expansion notify.
3335         * symtab.c (expand_symtabs_matching_via_partial): Call
3336         expansion_notify whenever a partial symbol table is expanded.
3337         * dwarf2read.c (dw2_expand_symtabs_matching): Call
3338         expansion_notify whenever a symbol table is instantiated.
3339
3340 2015-01-31  Doug Evans  <xdje42@gmail.com>
3341
3342         * cli-out.c: #include completer.h, readline/readline.h.
3343         (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
3344         (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
3345         (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
3346         * cli-out.h (cli_display_match_list): Declare.
3347         * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
3348         (ELLIPSIS_LEN): Ditto.
3349         (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
3350         (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
3351         (gdb_fnprint, gdb_print_filename): Ditto.
3352         (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
3353         (gdb_display_match_list): Ditto.
3354         * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
3355         (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
3356         (mld_beep_ftype, mld_read_key_ftype): Ditto.
3357         (match_list_displayer): New struct.
3358         (gdb_display_match_list): Declare.
3359         * top.c (init_main): Set rl_completion_display_matches_hook.
3360         * tui/tui-io.c: #include completer.h.
3361         (printable_part, PUTX, print_filename, get_y_or_n): Delete.
3362         (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
3363         (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
3364         (tui_mld_getc, tui_mld_read_key): Ditto.
3365         (tui_rl_display_match_list): Rewrite.
3366         (tui_handle_resize_during_io): New arg for_completion.  All callers
3367         updated.
3368
3369 2015-01-31  Doug Evans  <xdje42@gmail.com>
3370
3371         Add symbol lookup cache.
3372         * NEWS: Document new options and commands.
3373         * symtab.c (symbol_cache_key): New static global.
3374         (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
3375         (SYMBOL_LOOKUP_FAILED): New macro.
3376         (symbol_cache_slot_state): New enum.
3377         (block_symbol_cache): New struct.
3378         (symbol_cache): New struct.
3379         (new_symbol_cache_size, symbol_cache_size): New static globals.
3380         (hash_symbol_entry, eq_symbol_entry): New functions.
3381         (symbol_cache_byte_size, resize_symbol_cache): New functions.
3382         (make_symbol_cache, free_symbol_cache): New functions.
3383         (get_symbol_cache, symbol_cache_cleanup): New function.
3384         (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
3385         (symbol_cache_lookup, symbol_cache_clear_slot): New function.
3386         (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
3387         (symbol_cache_flush, symbol_cache_dump): New functions.
3388         (maintenance_print_symbol_cache): New function.
3389         (maintenance_flush_symbol_cache): New function.
3390         (symbol_cache_stats): New function.
3391         (maintenance_print_symbol_cache_statistics): New function.
3392         (symtab_new_objfile_observer): New function.
3393         (symtab_free_objfile_observer): New function.
3394         (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
3395         (_initialize_symtab): Init symbol_cache_key.  New parameter
3396         maint symbol-cache-size.  New maint commands print symbol-cache,
3397         print symbol-cache-statistics, flush-symbol-cache.
3398         Install new_objfile, free_objfile observers.
3399
3400 2015-01-31  Joel Brobecker  <brobecker@adacore.com>
3401
3402         PR symtab/17855
3403         * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
3404         to end.
3405
3406 2015-01-31  Doug Evans  <xdje42@gmail.com>
3407
3408         * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
3409         * auto-load.c: #include ctype.h.
3410         (struct auto_load_pspace_info): Replace member loaded_scripts with
3411         new members loaded_script_files, loaded_script_texts.
3412         (auto_load_pspace_data_cleanup): Update.
3413         (init_loaded_scripts_info): Update.
3414         (get_auto_load_pspace_data_for_loading): Update.
3415         (maybe_add_script_file): Renamed from maybe_add_script.  All callers
3416         updated.
3417         (maybe_add_script_text): New function.
3418         (clear_section_scripts): Update.
3419         (source_script_file, execute_script_contents): New functions.
3420         (source_section_scripts): Add support for
3421         SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
3422         (print_scripts): New function.
3423         (auto_load_info_scripts): Also print inlined scripts.
3424         (maybe_print_unsupported_script_warning): Renamed from
3425         unsupported_script_warning_print.  All callers updated.
3426         (maybe_print_script_not_found_warning): Renamed from
3427         script_not_found_warning_print.  All callers updated.
3428         * extension-priv.h (struct extension_language_script_ops): New member
3429         objfile_script_executor.
3430         * extension.c (ext_lang_objfile_script_executor): New function.
3431         * extension.h (objfile_script_executor_func): New typedef.
3432         (ext_lang_objfile_script_executor): Declare.
3433         * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
3434         * guile/guile.c (guile_extension_script_ops): Update.
3435         * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
3436         * python/python.c (python_extension_script_ops): Update.
3437         (gdbpy_execute_objfile_script): New function.
3438
3439 2015-01-31  Eli Zaretskii  <eliz@gnu.org>
3440
3441         * tui/tui-io.c (tui_expand_tabs): New function.
3442         (tui_puts, tui_redisplay_readline): Expand TABs into the
3443         appropriate number of spaces.
3444         * tui/tui-regs.c: Include tui-io.h.
3445         (tui_register_format): Call tui_expand_tabs to expand TABs into
3446         the appropriate number of spaces.
3447         * tui/tui-io.h: Add prototype for tui_expand_tabs.
3448
3449 2015-01-30  Doug Evans  <dje@google.com>
3450
3451         * NEWS: "info source" command now display producer string if present.
3452         * source.c (source_info): Print producer string if present.
3453
3454 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
3455
3456         * varobj.c (varobj_delete): Fix comment.
3457
3458 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
3459
3460         * varobj.c (create_child): Modify comment.
3461
3462 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
3463
3464         * ada-varobj.c (ada_number_of_children): Constify struct varobj *
3465         parameter.
3466         (ada_name_of_variable): Same.
3467         (ada_path_expr_of_child): Same.
3468         (ada_value_of_variable): Same.
3469         (ada_value_is_changeable_p): Same.
3470         (ada_value_has_mutated): Same.
3471         * c-varobj.c (varobj_is_anonymous_child): Same.
3472         (c_is_path_expr_parent): Same.
3473         (c_number_of_children): Same.
3474         (c_name_of_variable): Same.
3475         (c_path_expr_of_child): Same.
3476         (get_type): Same.
3477         (c_value_of_variable): Same.
3478         (cplus_number_of_children): Same.
3479         (cplus_name_of_variable): Same.
3480         (cplus_path_expr_of_child): Same.
3481         (cplus_value_of_variable): Same.
3482         * jv-varobj.c (java_number_of_children): Same.
3483         (java_name_of_variable): Same.
3484         (java_path_expr_of_child): Same.
3485         (java_value_of_variable): Same.
3486         * varobj.c (number_of_children): Same.
3487         (name_of_variable): Same.
3488         (is_root_p): Same.
3489         (varobj_ensure_python_env): Same.
3490         (varobj_get_objname): Same.
3491         (varobj_get_expression): Same.
3492         (varobj_get_display_format): Same.
3493         (varobj_get_display_hint): Same.
3494         (varobj_has_more): Same.
3495         (varobj_get_thread_id): Same.
3496         (varobj_get_frozen): Same.
3497         (dynamic_varobj_has_child_method): Same.
3498         (varobj_get_gdb_type): Same.
3499         (is_path_expr_parent): Same.
3500         (varobj_default_is_path_expr_parent): Same.
3501         (varobj_get_language): Same.
3502         (varobj_get_attributes): Same.
3503         (varobj_is_dynamic_p): Same.
3504         (varobj_get_child_range): Same.
3505         (varobj_value_has_mutated): Same.
3506         (varobj_get_value_type): Same.
3507         (number_of_children): Same.
3508         (name_of_variable): Same.
3509         (check_scope): Same.
3510         (varobj_editable_p): Same.
3511         (varobj_value_is_changeable_p): Same.
3512         (varobj_floating_p): Same.
3513         (varobj_default_value_is_changeable_p): Same.
3514
3515 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
3516
3517         * varobj.c (varobj_get_path_expr): Set var->path_expr.
3518         * c-varobj.c (c_path_expr_of_child): Set local var instead of
3519         child->path_expr.
3520         (cplus_path_expr_of_child): Same.
3521
3522 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
3523
3524         * mi-cmd-var.c (print_varobj): Free varobj_get_expression
3525         result.
3526         (mi_cmd_var_info_expression): Same.
3527         * varobj.c (varobj_get_expression): Mention in the comment that
3528         the result must by freed by the caller.
3529
3530 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
3531
3532         * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
3533         varobj_get_type.
3534         (varobj_update_one): Same.
3535         * varobj.c (update_type_if_necessary): Free curr_type_str and
3536         new_type_str.
3537         (varobj_get_type): Specify in comment that the result needs to be
3538         freed by the caller.
3539
3540 2015-01-29  Doug Evans  <dje@google.com>
3541
3542         PR symtab/17890
3543         * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
3544
3545 2015-01-25  Mark Wielaard  <mjw@redhat.com>
3546
3547         * dwarf2read.c (checkproducer): Call producer_is_gcc.
3548         * utils.c (producer_is_gcc_ge_4): Likewise.
3549         (producer_is_gcc): New function.
3550         * utils.h (producer_is_gcc): New declaration.
3551
3552 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
3553
3554         * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
3555         kind.
3556         * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
3557         parameter by "addr_stack" parameter.
3558         (resolve_dynamic_range): Replace "addr" parameter by
3559         "stack_addr" parameter.  Update function documentation.
3560         Update code accordingly.
3561         (resolve_dynamic_array, resolve_dynamic_union)
3562         (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
3563         (resolve_dynamic_type): Update code, following the changes made
3564         to resolve_dynamic_type_internal's interface.
3565         * dwarf2loc.h (struct property_addr_info): New.
3566         (dwarf2_evaluate_property): Replace "address" parameter
3567         by "addr_stack" parameter.  Adjust function documentation.
3568         (struct dwarf2_offset_baton): New.
3569         (struct dwarf2_property_baton): Update documentation of
3570         field "referenced_type" to be more general. New field
3571         "offset_info" in union data field.
3572         * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
3573         parameter by "addr_stack" parameter.  Adjust code accordingly.
3574         Add support for PROP_ADDR_OFFSET properties.
3575         * dwarf2read.c (attr_to_dynamic_prop): Add support for
3576         DW_AT_data_member_location attributes as well.  Use case
3577         statements instead of if/else condition.
3578
3579 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
3580
3581         * ada-varobj.c (ada_varobj_get_array_number_of_children):
3582         Return zero if PARENT_VALUE is NULL and parent_type's
3583         range type is dynamic.
3584
3585 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
3586
3587         * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
3588         nonzero if the type's subtype is dynamic.
3589         (resolve_dynamic_range): Also resolve the range's subtype.
3590
3591 2015-01-29  Alexander Klimov  <alserkli@inbox.ru>  (tiny patch)
3592
3593         Pushed by Joel Brobecker  <brobecker@adacore.com>.
3594         * symfile.c (unmap_overlay_command): Initialize sec to NULL.
3595
3596 2015-01-27  Doug Evans  <dje@google.com>
3597
3598         * NEWS: Mention gdb.Objfile.username.
3599         * python/py-objfile.c (objfpy_get_username): New function.
3600         (objfile_getset): Add "username".
3601
3602 2015-01-24  Mark Wielaard  <mjw@redhat.com>
3603
3604         * stack.c (return_command): Markup warning message with _.
3605
3606 2015-01-24  Doug Evans  <xdje42@gmail.com>
3607
3608         * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
3609
3610 2015-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3611
3612         Fix 100x slowdown regression on DWZ files.
3613         * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
3614         (struct line_header): Add offset and offset_in_dwz.
3615         (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
3616         (free_line_header_voidp): New declaration.
3617         (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
3618         functions.
3619         (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
3620         (handle_DW_AT_stmt_list): Use line_header_hash.
3621         (free_line_header_voidp): New function.
3622         (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
3623         (dwarf_decode_lines): New parameter decode_mapping, use it.
3624         (dwarf2_free_objfile): Free line_header_hash.
3625
3626 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
3627
3628         PR gdb/17416
3629         * valops.c (value_rtti_indirect_type): Catch exception thrown by
3630         value_ind.
3631
3632 2015-01-15  Mark Wielaard  <mjw@redhat.com>
3633
3634         * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
3635         DW_AT_noreturn.
3636         * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
3637         calling_convention an 8 bit bit field.
3638         (TYPE_NO_RETURN): New macro.
3639         * infcmd.c (finish_command): Query if function does not return
3640         normally.
3641         * stack.c (return_command): Likewise.
3642
3643 2015-01-23  Pedro Alves  <palves@redhat.com>
3644
3645         * linux-nat.c (linux_is_async_p): New macro.
3646         (linux_nat_is_async_p):
3647         (linux_nat_terminal_inferior): Check whether the target can async
3648         instead of whether it is already async.
3649         (linux_nat_terminal_ours): Don't check whether the target is
3650         async.
3651         (linux_async_pipe): Use linux_is_async_p.
3652
3653 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
3654
3655         * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
3656         '-ascending'.
3657         * thread.c (tp_array_compar_ascending, tp_array_compar): New.
3658         (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
3659         Sort tp_array using tp_array_compar.
3660         (_initialize_thread): Extend thread_apply_all_command help.
3661
3662 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
3663
3664         * corelow.c (core_open): Call also thread_command.
3665         * gdbthread.h (thread_command): New prototype moved from ...
3666         * thread.c (thread_command): ... here.
3667         (thread_command): Make it global.
3668
3669 2015-01-22  Pedro Alves  <palves@redhat.com>
3670
3671         * configure.ac [*mingw32*]: Check $curses_found instead of
3672         $prefer_curses.
3673         * configure: Regenerate.
3674         * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
3675         HAVE_NCURSES_NCURSES_H checks.
3676
3677 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
3678
3679         * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
3680         fails with the 1st arg NULL, try again with "unknown".  Don't test
3681         the "cup" capability: it isn't supported by the Windows port of
3682         ncurses, but the Windows console driver is still capable of
3683         supporting TUI.
3684
3685 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
3686
3687         * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
3688
3689 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
3690
3691         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
3692         (ALLDEPFILES): Remove irix5-nat.c.  These two are part of the
3693         reason that "make TAGS" is broken.
3694
3695 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
3696
3697         * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
3698         and check additional store instructions.
3699
3700 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
3701
3702         * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
3703
3704 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
3705
3706         * ppc-linux-tdep.c (ppc_skip_trampoline_code,
3707         ppc_canonicalize_syscall, ppc_linux_syscall_record,
3708         ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
3709         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
3710         * rs6000-tdep.c (rs6000_epilogue_frame_cache,
3711         rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
3712         rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
3713         ppc_process_record_op19, ppc_process_record_op31,
3714         ppc_process_record_op59, ppc_process_record_op60,
3715         ppc_process_record_op63): Likewise.
3716
3717 2015-01-20  Joel Brobecker  <brobecker@adacore.com>
3718
3719         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
3720         (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
3721         strerror.
3722
3723 2015-01-20  Wei-cheng Wang  <cole945@gmail.com>
3724
3725         * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
3726         ppc_process_record_op31, ppc_process_record_op59,
3727         ppc_process_record_op60, ppc_process_record_op63,
3728         ppc_process_record): Fix -Wformat warning.
3729         * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
3730         Remove unused variables.
3731
3732 2015-01-20  Chen Gang  <gang.chen.5i5j@gmail.com>
3733
3734         * MAINTAINERS (Write After Approval): Add "Chen Gang".
3735
3736 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
3737
3738         * configure.ac [*mingw32*]: Only add windows-termcap.o to
3739         CONFIG_OBS if not building with a curses library.
3740         * configure: Regenerate.
3741
3742         * windows-termcap.c: Include defs.h.  Make the whole body empty if
3743         either one of HAVE_CURSES_H or HAVE_NCURSES_H or
3744         HAVE_NCURSES_NCURSES_H is defined.
3745
3746 2015-01-19  Joel Brobecker  <brobecker@adacore.com>
3747
3748         * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
3749         from end of line to start of next line.
3750
3751 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
3752
3753         * ppc-linux-tdep.c (ppc_skip_trampoline_code):
3754         Scan PLT stub backward for reverse debugging.
3755         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
3756
3757 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
3758             Ulrich Weigand  <uweigand@de.ibm.com>
3759
3760         * configure.tgt (powerpc*-*-linux): Add linux-record.o to
3761         gdb_target_obs.
3762         (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
3763         record.
3764         (ppc_canonicalize_syscall, ppc_linux_syscall_record,
3765         ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
3766         (ppc_linux_init_abi): Set process_record, process_record_signal.
3767         * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
3768         ppc_linux_record_tdep to gdbarch_tdep.
3769         (ppc_process_record): New declaration.
3770         * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
3771         ppc_process_record_op19, ppc_process_record_op31,
3772         ppc_process_record_op59, ppc_process_record_op60,
3773         ppc_process_record_op63, ppc_process_record): New functions.
3774
3775 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
3776
3777         * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
3778         rs6000_in_function_epilogue_frame_p and add an argument
3779         for frame_info.
3780         (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
3781         rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
3782         New functions.
3783         (rs6000_epilogue_frame_unwind): New.
3784         (rs6000_gdbarch_init): Append epilogue unwinder.
3785
3786 2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
3787
3788         * nat/linux-personality.c: Replace "#ifndef
3789         HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
3790         !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
3791         systems.
3792
3793 2015-01-16  Eli Zaretskii  <eliz@gnu.org>
3794
3795         * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
3796         functions.
3797         (_initialize_tui_win) <border-kind, border-mode>:
3798         <active-border-mode>: Use tui_set_var_cmd as the "set" function.
3799         (tui_set_tab_width_command): Fix the commentary.
3800
3801         * tui/tui-win.h: Add prototype for tui_rehighlight_all.
3802
3803         * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
3804         Doc fix.
3805         (tui_set_tab_width_command): Delete and recreate the source and
3806         the disassembly windows, to show the effect of the changed tab
3807         size immediately.
3808
3809         * tui/tui-data.h (LINE_PREFIX): Make shorter
3810         (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
3811         "Thread NNNNN.XXXX" thread ID notation on Windows.
3812
3813 2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
3814
3815         Fix gcc-5 compilation.
3816         * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
3817
3818 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
3819
3820         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
3821         (linux-personality.o): New rule.
3822         * common/common-defs.h: Include <stdint.h>.
3823         * config/aarch64/linux.mh (NATDEPFILES): Include
3824         linux-personality.o.
3825         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3826         * config/arm/linux.mh (NATDEPFILES): Likewise.
3827         * config/i386/linux64.mh (NATDEPFILES): Likewise.
3828         * config/i386/linux.mh (NATDEPFILES): Likewise.
3829         * config/ia64/linux.mh (NATDEPFILES): Likewise.
3830         * config/m32r/linux.mh (NATDEPFILES): Likewise.
3831         * config/m68k/linux.mh (NATDEPFILES): Likewise.
3832         * config/mips/linux.mh (NATDEPFILES): Likewise.
3833         * config/pa/linux.mh (NATDEPFILES): Likewise.
3834         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3835         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3836         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3837         * config/s390/linux.mh (NATDEPFILES): Likewise.
3838         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3839         * config/sparc/linux.mh (NATDEPFILES): Likewise.
3840         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3841         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3842         * defs.h: Remove #include <stdint.h> (moved to
3843         common/common-defs.h).
3844         * linux-nat.c: Include nat/linux-personality.h.  Remove #include
3845         <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
3846         nat/linux-personality.c).
3847         (linux_nat_create_inferior): Remove code to disable address space
3848         randomization (moved to nat/linux-personality.c).  Create cleanup
3849         to disable address space randomization.
3850         * nat/linux-personality.c: New file.
3851         * nat/linux-personality.h: Likewise.
3852
3853 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
3854
3855         * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
3856         common/posix-strerror.c.
3857         (posix-strerror.o): New rule.
3858         (mingw-strerror.o): Likewise.
3859         * common/common-utils.h (safe_strerror): Move prototype to here,
3860         from utils.h.
3861         * common/common.host: New file.
3862         * common/mingw-strerror.c: Likewise.
3863         * common/posix-strerror.c: Likewise.
3864         * configure: Regenerated.
3865         * configure.ac: Source common/common.host.  Add variable
3866         common_host_obs to gdb_host_obs.
3867         * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
3868         gdb/common/posix-strerror.c when warning about the use of
3869         strerror.
3870         * mingw-hdep.c (safe_strerror): Remove definition; move it to
3871         common/mingw-strerror.c.
3872         * posix-hdep.c (safe_strerror): Remove definition; move it to
3873         common/posix-hdep.c.
3874         * utils.h (safe_strerror): Remove prototype; move to
3875         common/common-utils.h.
3876
3877 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
3878
3879         GDB 7.8.2 released.
3880
3881 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
3882
3883         * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
3884         ___XA type if the array has already been fixed.
3885
3886 2015-01-14  Yao Qi  <yao@codesourcery.com>
3887
3888         * Makefile.in (ppc-linux.o): New rule.
3889         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
3890         * configure.ac: AC_CHECK_FUNCS(getauxval).
3891         * config.in: Re-generated.
3892         * configure: Re-generated.
3893         * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
3894         Declare.
3895         * nat/ppc-linux.c: New file.
3896         * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
3897         Call ppc64_64bit_inferior_p.
3898
3899 2015-01-14  Yao Qi  <yao@codesourcery.com>
3900
3901         * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
3902         nat/ppc-linux.h.
3903         (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
3904         (PPC_FEATURE_HAS_DFP): Likewise.
3905         (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
3906         (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
3907         (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
3908         Include "nat/ppc-linux.h".
3909         * nat/ppc-linux.h: New file.
3910         * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
3911
3912 2015-01-14  Pedro Alves  <palves@redhat.com>
3913
3914         PR gdb/17525
3915         * breakpoint.c: Include "interps.h".
3916         (bpstat_do_actions_1): Also check whether the interpreter is
3917         async.
3918
3919 2015-01-14  Pedro Alves  <palves@redhat.com>
3920
3921         PR cli/17828
3922         * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
3923         reinstall if the interpreter is sync.
3924
3925 2015-01-13  Doug Evans  <dje@google.com>
3926
3927         * objfiles.c (objfile_filename): New function.
3928         * objfiles.h (objfile_filename): Declare it.
3929         (objfile_name): Add function comment.
3930         * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
3931         bfd file name (which may be realpath'd), and the original name.
3932
3933 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
3934
3935         * NEWS: Create a new section for the next release branch.
3936         Rename the section of the current branch, now that it has
3937         been cut.
3938
3939 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
3940
3941         GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
3942         * version.in: Bump version to 7.9.50.DATE-cvs.
3943
3944 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
3945
3946         * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
3947         Remove trailing new-line in argument of call to warning.
3948
3949 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
3950
3951         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
3952         new-line in argument of call to "warning".
3953
3954 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
3955
3956         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
3957         in static block, then try searching for primitive types.
3958
3959 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
3960
3961         * top.h (gdb_add_history): Declare.
3962         * top.c (command_count): New variable.
3963         (gdb_add_history): New function.
3964         (gdb_safe_append_history): New static function.
3965         (quit_force): Call it.
3966         (command_line_input): Use gdb_add_history instead of
3967         add_history.
3968         * event-top.c (command_line_handler): Likewise.
3969
3970 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
3971
3972         PR gdb/17046
3973         * darwin-nat.c: Replace <machine/setjmp.h> #include by
3974         <setjmp.h> #include.
3975
3976 2015-01-11  Doug Evans  <xdje42@gmail.com>
3977
3978         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
3979
3980 2015-01-11  Doug Evans  <xdje42@gmail.com>
3981
3982         PR gdb/15830
3983         * NEWS: The "maint demangle" command is renamed as "demangle".
3984         * demangle.c: #include cli/cli-utils.h, language.h.
3985         (demangle_command): New function.
3986         (_initialize_demangle): Add new command "demangle".
3987         * maint.c (maintenance_demangle): Stub out.
3988         (_initialize_maint_cmds): Update help text for "maint demangle",
3989         and mark as deprecated.
3990
3991 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
3992
3993         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
3994         inferior_thread is a function.
3995
3996 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
3997
3998         * Makefile.in (.y.c): Don't munge yacc's #line
3999         directives.
4000
4001 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
4002
4003         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
4004         to prompt for input.
4005         * tui/tui-hooks.c (tui_query_hook): Remove.
4006         (tui_install_hooks): Don't set deprecated_query_hook.
4007         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
4008         height calculation.  Always update the command window's cur_line.
4009
4010 2015-01-09  Pedro Alves  <palves@redhat.com>
4011
4012         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
4013         function.
4014         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
4015         declaration.
4016         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
4017         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
4018         stop_reason.
4019         (check_stopped_by_watchpoint): New function.
4020         (save_sigtrap): Reimplement.
4021         (linux_nat_stopped_by_watchpoint): Adjust.
4022         (linux_nat_lp_status_is_event): Delete.
4023         (stop_wait_callback): Only call save_sigtrap after storing the
4024         pending status.
4025         (status_callback): If the thread had been stopped for a breakpoint
4026         that has since been removed, discard the event and resume the LWP.
4027         (count_events_callback, select_event_lwp_callback): Use
4028         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
4029         (cancel_breakpoint): Rename to ...
4030         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
4031         stopped for a software breakpoint or hardware breakpoint.
4032         (select_event_lwp): Only give preference to the stepping LWP in
4033         all-stop mode.  Adjust comments.
4034         (stop_and_resume_callback): Remove references to new_pending_p.
4035         (linux_nat_filter_event): Likewise.  Leave exit events of the
4036         leader thread pending here.  Handle signal short circuiting here.
4037         Only call save_sigtrap after storing the pending waitstatus.
4038         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
4039         new_pending.  Don't handle leaving events the caller is not
4040         interested in pending here, nor handle signal short-circuiting
4041         here.  Also give equal priority to all LWPs that have had events
4042         in non-stop mode.  If reporting a software breakpoint event,
4043         unadjust the LWP's PC.
4044         * linux-nat.h (enum lwp_stop_reason): New.
4045         (struct lwp_info) <stop_pc>: New field.
4046         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
4047         (struct lwp_info) <stop_reason>: New field.
4048         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
4049
4050 2015-01-09  Pedro Alves  <palves@redhat.com>
4051
4052         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
4053         Set the LWP's 'resumed' flag.
4054
4055 2015-01-09  Pedro Alves  <palves@redhat.com>
4056
4057         * linux-nat.c (linux_resume_one_lwp): New function.
4058         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
4059         (linux_nat_resume): Use lwp_status_pending_p and
4060         linux_resume_one_lwp.
4061         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
4062         (linux_handle_extended_wait): Use linux_resume_one_lwp.
4063         (status_callback, running_callback): Use lwp_status_pending_p.
4064         (lwp_status_pending_p): New function.
4065         (stop_and_resume_callback): Use lwp_status_pending_p.
4066         (linux_nat_filter_event): Use linux_resume_one_lwp.
4067         (linux_nat_wait_1): Always use status_callback to look for an LWP
4068         with a pending status.  Use linux_resume_one_lwp.
4069         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
4070         linux_resume_one_lwp.
4071
4072 2015-01-09  Pedro Alves  <palves@redhat.com>
4073
4074         * breakpoint.c (bp_location_inserted_here_p): New function,
4075         factored out from ...
4076         (breakpoint_inserted_here_p): ... here.  Use
4077         ALL_BP_LOCATIONS_AT_ADDR.
4078         (software_breakpoint_inserted_here_p): Use
4079         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
4080
4081 2014-01-09  Pedro Alves  <palves@redhat.com>
4082
4083         Skip enabling event reporting if the kernel supports
4084         PTRACE_EVENT_CLONE.
4085         * linux-thread-db.c: Include "nat/linux-ptrace.h".
4086         (thread_db_use_events): New function.
4087         (try_thread_db_load_1): Check thread_db_use_events before enabling
4088         event reporting.
4089         (update_thread_state): New function.
4090         (attach_thread): Use it.  Check thread_db_use_events before
4091         enabling event reporting.
4092         (thread_db_detach): Check thread_db_use_events before disabling
4093         event reporting.
4094         (find_new_threads_callback): Check thread_db_use_events before
4095         enabling event reporting.  Update the thread's state if not using
4096         libthread_db events.
4097
4098 2015-01-09  Pedro Alves  <palves@redhat.com>
4099
4100         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
4101         about to wait for is > 0.
4102         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
4103         the kernel thread ID is -1.
4104
4105 2015-01-09  Pedro Alves  <palves@redhat.com>
4106
4107         * linux-nat.c (attach_proc_task_lwp_callback): New function.
4108         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
4109         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
4110         ptrace option flags.
4111         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
4112         field.
4113         * nat/linux-procfs.c: Include <dirent.h>.
4114         (linux_proc_get_int): New parameter "warn".  Handle it.
4115         (linux_proc_get_tgid): Adjust.
4116         (linux_proc_get_tracerpid): Rename to ...
4117         (linux_proc_get_tracerpid_nowarn): ... this.
4118         (linux_proc_pid_get_state): New function, factored out from
4119         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
4120         and handle it.
4121         (linux_proc_pid_is_gone): New function.
4122         (linux_proc_pid_is_stopped): Adjust.
4123         (linux_proc_pid_is_zombie_maybe_warn)
4124         (linux_proc_pid_is_zombie_nowarn): New functions.
4125         (linux_proc_pid_is_zombie): Use
4126         linux_proc_pid_is_zombie_maybe_warn.
4127         (linux_proc_attach_tgid_threads): New function.
4128         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
4129         (linux_proc_get_tracerpid): Rename to ...
4130         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
4131         (linux_proc_pid_is_gone): New declaration.
4132         (linux_proc_pid_is_zombie): Update comment.
4133         (linux_proc_pid_is_zombie_nowarn): New declaration.
4134         (linux_proc_attach_lwp_func): New typedef.
4135         (linux_proc_attach_tgid_threads): New declaration.
4136         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
4137         use nowarn functions.
4138         (linux_ptrace_attach_fail_reason_string): Move here from
4139         gdbserver/linux-low.c and rename.
4140         (ptrace_supports_feature): If the current ptrace options are not
4141         known yet, check them now, instead of asserting.
4142         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
4143         Declare.
4144
4145 2015-01-09  Pedro Alves  <palves@redhat.com>
4146
4147         * linux-thread-db.c (thread_db_find_new_threads_silently)
4148         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
4149         (find_new_threads_once): Print debug output on gdb_stdlog.
4150
4151 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
4152             Pedro Alves  <palves@redhat.com>
4153
4154         * compile/compile.c: Include "gdb_wait.h".
4155         (do_rmdir): Check return value, and free 'zap'.
4156
4157 2015-01-08  Pedro Alves  <palves@redhat.com>
4158             Yao Qi  <yao@codesourcery.com>
4159
4160         * dwarf2loc.c (indirect_pieced_value): Don't call
4161         gdb_sign_extend.  Call extract_signed_integer instead.
4162         * utils.c (gdb_sign_extend): Remove.
4163         * utils.h (gdb_sign_extend): Remove declaration.
4164
4165 2015-01-07  Pierre Muller  <muller@sourceware.org>
4166
4167         PR symtab/17811
4168         * stabsread.c (define_symbol): Set language for C++ special symbols.
4169
4170 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
4171
4172         * inflow.c (initial_gdb_ttystate): Tweak comment.
4173
4174 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
4175
4176         * inflow.c (set_initial_gdb_ttystate): Add empty line after
4177         comment documenting function.
4178
4179 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
4180
4181         * terminal.h (set_initial_gdb_ttystate): Declare.
4182         * inflow.c (initial_gdb_ttystate): New static variable.
4183         (set_initial_gdb_ttystate): New setter.
4184         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
4185         instead of our current terminal state.
4186         * top.c (gdb_init): Call set_initial_gdb_ttystate.
4187
4188 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
4189
4190         * guile/scm-type.c (tyscm_array_1): Add comment.
4191         * python/py-type.c (typy_array_1): Add comment.
4192
4193 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
4194
4195         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
4196         error if N2 is equal to N1 - 1.
4197
4198 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
4199
4200         * python/py-type.c (typy_array_1): Do not raise negative-length
4201         exception if N2 is equal to N1 - 1.
4202
4203 2015-01-03  Doug Evans  <xdje42@gmail.com>
4204
4205         * c-exp.y: Whitespace cleanup.
4206         (classify_inner_name): Remove extra ;.
4207
4208 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
4209
4210         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
4211         offset signed.
4212
4213 2015-01-02  Doug Evans  <dje@google.com>
4214
4215         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
4216
4217 2015-01-02  Doug Evans  <dje@google.com>
4218
4219         * symtab.h (struct symbol): Fix typo in comment.
4220
4221 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
4222
4223         Update year range in copyright notice of all files.
4224
4225 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
4226
4227         * top.c (print_gdb_version): Update copyright year to 2015.
4228
4229 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
4230
4231         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
4232
4233 For older changes see ChangeLog-2014.
4234 \f
4235 Local Variables:
4236 mode: change-log
4237 left-margin: 8
4238 fill-column: 74
4239 version-control: never
4240 coding: utf-8
4241 End: