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