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