Move aarch64_linux_new_thread to nat/aarch64-linux.c
[external/binutils.git] / gdb / ChangeLog
1 2015-08-25  Yao Qi  <yao.qi@linaro.org>
2
3         * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
4         * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
5         * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
6
7 2015-08-25  Yao Qi  <yao.qi@linaro.org>
8
9         * Makefile.in (aarch64-liunx.o): New rule.
10         (HFILES_NO_SRCDIR): Add aarch64-linux.h.
11         * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
12         * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
13         * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
14         extern.
15         (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
16         * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
17         * nat/aarch64-linux.c: New file.
18         * nat/aarch64-linux.h: New file.
19
20 2015-08-25  Yao Qi  <yao.qi@linaro.org>
21
22         * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
23         lwp_arch_private_info and ptid_of_lwp.
24
25 2015-08-25  Yao Qi  <yao.qi@linaro.org>
26
27         * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
28         Move it to nat/aarch64-linux-hw-point.c.
29         (debug_reg_change_callback): Likewise.
30         (aarch64_notify_debug_reg_change): :Likewise.
31         * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
32         (aarch64_dr_update_callback_param): New.
33         (debug_reg_change_callback): New function.
34         (aarch64_notify_debug_reg_change): Likewise.
35         * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
36         Remove the declaration.
37
38 2015-08-25  Yao Qi  <yao.qi@linaro.org>
39
40         * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
41         Call current_lwp_ptid.
42
43 2015-08-25  Yao Qi  <yao.qi@linaro.org>
44
45         * aarch64-linux-nat.c (debug_reg_change_callback): Use
46         debug_printf.
47
48 2015-08-25  Yao Qi  <yao.qi@linaro.org>
49
50         * aarch64-linux-nat.c (debug_reg_change_callback): Call
51         ptid_get_pid rather than ptid_get_lwp.
52
53 2015-08-24  Pedro Alves  <palves@redhat.com>
54
55         * NEWS (New commands): Mention set/show remote
56         multiprocess-extensions-packet.
57         * remote.c (remote_query_supported): Only tell the server to use
58         the multiprocess extensions if the user hasn't force-disabled them
59         with "set remote multiprocess-extensions-packet off".
60
61 2015-08-24  Pedro Alves  <palves@redhat.com>
62
63         * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
64         1029a8112290f6eee9d7878a391c49db42c999bd.
65         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
66         Regenerate.
67         * gnulib/import/Makefile.am: Update.
68         * gnulib/import/Makefile.in: Update.
69         * gnulib/import/alloca.in.h: Update.
70         * gnulib/import/basename-lgpl.c: Update.
71         * gnulib/import/canonicalize-lgpl.c: Update.
72         * gnulib/import/config.charset: Update.
73         * gnulib/import/dirent.in.h: Update.
74         * gnulib/import/dirfd.c: Update.
75         * gnulib/import/dirname-lgpl.c: Update.
76         * gnulib/import/dirname.h: Update.
77         * gnulib/import/dosname.h: Update.
78         * gnulib/import/errno.in.h: Update.
79         * gnulib/import/extra/snippet/arg-nonnull.h: Update.
80         * gnulib/import/extra/snippet/c++defs.h: Update.
81         * gnulib/import/extra/snippet/warn-on-use.h: Update.
82         * gnulib/import/extra/update-copyright: Update.
83         * gnulib/import/float+.h: Update.
84         * gnulib/import/float.c: Update.
85         * gnulib/import/float.in.h: Update.
86         * gnulib/import/fnmatch.c: Update.
87         * gnulib/import/fnmatch.in.h: Update.
88         * gnulib/import/fnmatch_loop.c: Update.
89         * gnulib/import/fpucw.h: Update.
90         * gnulib/import/frexp.c: Update.
91         * gnulib/import/frexpl.c: Update.
92         * gnulib/import/gettimeofday.c: Update.
93         * gnulib/import/inttypes.in.h: Update.
94         * gnulib/import/isnan.c: Update.
95         * gnulib/import/isnand-nolibm.h: Update.
96         * gnulib/import/isnand.c: Update.
97         * gnulib/import/isnanl-nolibm.h: Update.
98         * gnulib/import/isnanl.c: Update.
99         * gnulib/import/itold.c: Update.
100         * gnulib/import/localcharset.c: Update.
101         * gnulib/import/localcharset.h: Update.
102         * gnulib/import/lstat.c: Update.
103         * gnulib/import/m4/00gnulib.m4: Update.
104         * gnulib/import/m4/absolute-header.m4: Update.
105         * gnulib/import/m4/alloca.m4: Update.
106         * gnulib/import/m4/canonicalize.m4: Update.
107         * gnulib/import/m4/codeset.m4: Update.
108         * gnulib/import/m4/configmake.m4: Update.
109         * gnulib/import/m4/dirent_h.m4: Update.
110         * gnulib/import/m4/dirfd.m4: Update.
111         * gnulib/import/m4/dirname.m4: Update.
112         * gnulib/import/m4/double-slash-root.m4: Update.
113         * gnulib/import/m4/eealloc.m4: Update.
114         * gnulib/import/m4/errno_h.m4: Update.
115         * gnulib/import/m4/exponentd.m4: Update.
116         * gnulib/import/m4/exponentl.m4: Update.
117         * gnulib/import/m4/extensions.m4: Update.
118         * gnulib/import/m4/extern-inline.m4: Update.
119         * gnulib/import/m4/fcntl-o.m4: Update.
120         * gnulib/import/m4/float_h.m4: Update.
121         * gnulib/import/m4/fnmatch.m4: Update.
122         * gnulib/import/m4/fpieee.m4: Update.
123         * gnulib/import/m4/frexp.m4: Update.
124         * gnulib/import/m4/frexpl.m4: Update.
125         * gnulib/import/m4/gettimeofday.m4: Update.
126         * gnulib/import/m4/glibc21.m4: Update.
127         * gnulib/import/m4/gnulib-cache.m4: Update.
128         * gnulib/import/m4/gnulib-common.m4: Update.
129         * gnulib/import/m4/gnulib-comp.m4: Update.
130         * gnulib/import/m4/gnulib-tool.m4: Update.
131         * gnulib/import/m4/include_next.m4: Update.
132         * gnulib/import/m4/inttypes-pri.m4: Update.
133         * gnulib/import/m4/inttypes.m4: Update.
134         * gnulib/import/m4/isnand.m4: Update.
135         * gnulib/import/m4/isnanl.m4: Update.
136         * gnulib/import/m4/largefile.m4: Update.
137         * gnulib/import/m4/localcharset.m4: Update.
138         * gnulib/import/m4/locale-fr.m4: Update.
139         * gnulib/import/m4/locale-ja.m4: Update.
140         * gnulib/import/m4/locale-zh.m4: Update.
141         * gnulib/import/m4/longlong.m4: Update.
142         * gnulib/import/m4/lstat.m4: Update.
143         * gnulib/import/m4/malloc.m4: Update.
144         * gnulib/import/m4/malloca.m4: Update.
145         * gnulib/import/m4/math_h.m4: Update.
146         * gnulib/import/m4/mbrtowc.m4: Update.
147         * gnulib/import/m4/mbsinit.m4: Update.
148         * gnulib/import/m4/mbsrtowcs.m4: Update.
149         * gnulib/import/m4/mbstate_t.m4: Update.
150         * gnulib/import/m4/memchr.m4: Update.
151         * gnulib/import/m4/memmem.m4: Update.
152         * gnulib/import/m4/mmap-anon.m4: Update.
153         * gnulib/import/m4/multiarch.m4: Update.
154         * gnulib/import/m4/nocrash.m4: Update.
155         * gnulib/import/m4/off_t.m4: Update.
156         * gnulib/import/m4/pathmax.m4: Update.
157         * gnulib/import/m4/readlink.m4: Update.
158         * gnulib/import/m4/rename.m4: Update.
159         * gnulib/import/m4/rmdir.m4: Update.
160         * gnulib/import/m4/ssize_t.m4: Update.
161         * gnulib/import/m4/stat.m4: Update.
162         * gnulib/import/m4/stdbool.m4: Update.
163         * gnulib/import/m4/stddef_h.m4: Update.
164         * gnulib/import/m4/stdint.m4: Update.
165         * gnulib/import/m4/stdio_h.m4: Update.
166         * gnulib/import/m4/stdlib_h.m4: Update.
167         * gnulib/import/m4/string_h.m4: Update.
168         * gnulib/import/m4/strstr.m4: Update.
169         * gnulib/import/m4/strtok_r.m4: Update.
170         * gnulib/import/m4/sys_socket_h.m4: Update.
171         * gnulib/import/m4/sys_stat_h.m4: Update.
172         * gnulib/import/m4/sys_time_h.m4: Update.
173         * gnulib/import/m4/sys_types_h.m4: Update.
174         * gnulib/import/m4/time_h.m4: Update.
175         * gnulib/import/m4/unistd_h.m4: Update.
176         * gnulib/import/m4/warn-on-use.m4: Update.
177         * gnulib/import/m4/wchar_h.m4: Update.
178         * gnulib/import/m4/wchar_t.m4: Update.
179         * gnulib/import/m4/wctype_h.m4: Update.
180         * gnulib/import/m4/wint_t.m4: Update.
181         * gnulib/import/malloc.c: Update.
182         * gnulib/import/malloca.c: Update.
183         * gnulib/import/malloca.h: Update.
184         * gnulib/import/math.in.h: Update.
185         * gnulib/import/mbrtowc.c: Update.
186         * gnulib/import/mbsinit.c: Update.
187         * gnulib/import/mbsrtowcs-impl.h: Update.
188         * gnulib/import/mbsrtowcs-state.c: Update.
189         * gnulib/import/mbsrtowcs.c: Update.
190         * gnulib/import/memchr.c: Update.
191         * gnulib/import/memmem.c: Update.
192         * gnulib/import/pathmax.h: Update.
193         * gnulib/import/readlink.c: Update.
194         * gnulib/import/ref-add.sin: Update.
195         * gnulib/import/ref-del.sin: Update.
196         * gnulib/import/rename.c: Update.
197         * gnulib/import/rmdir.c: Update.
198         * gnulib/import/same-inode.h: Update.
199         * gnulib/import/stat.c: Update.
200         * gnulib/import/stdbool.in.h: Update.
201         * gnulib/import/stddef.in.h: Update.
202         * gnulib/import/stdint.in.h: Update.
203         * gnulib/import/stdio.c: Update.
204         * gnulib/import/stdio.in.h: Update.
205         * gnulib/import/stdlib.in.h: Update.
206         * gnulib/import/str-two-way.h: Update.
207         * gnulib/import/streq.h: Update.
208         * gnulib/import/string.in.h: Update.
209         * gnulib/import/stripslash.c: Update.
210         * gnulib/import/strnlen1.c: Update.
211         * gnulib/import/strnlen1.h: Update.
212         * gnulib/import/strstr.c: Update.
213         * gnulib/import/strtok_r.c: Update.
214         * gnulib/import/sys_stat.in.h: Update.
215         * gnulib/import/sys_time.in.h: Update.
216         * gnulib/import/sys_types.in.h: Update.
217         * gnulib/import/time.in.h: Update.
218         * gnulib/import/unistd.in.h: Update.
219         * gnulib/import/verify.h: Update.
220         * gnulib/import/wchar.in.h: Update.
221         * gnulib/import/wctype.in.h: Update.
222         * gnulib/import/gettimeofday.c: New file.
223         * gnulib/import/m4/absolute-header.m4: New file.
224         * gnulib/import/m4/gettimeofday.m4: New file.
225         * gnulib/import/m4/sys_socket_h.m4: New file.
226         * gnulib/import/m4/sys_time_h.m4: New file.
227         * gnulib/import/stdio.c: Delete file.
228         * gnulib/import/sys_time.in.h: New file.
229
230 2015-08-24  Pedro Alves  <palves@redhat.com>
231
232         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
233         * common/gdb_sys_time.h: New file.
234         * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
235         * gdb_select.h: Likewise.
236         * gdb_usleep.c: Likewise.
237         * maint.c: Likewise.
238         * mi/mi-main.c: Likewise.
239         * mi/mi-parse.h: Likewise.
240         * remote-fileio.c: Likewise.
241         * remote-m32r-sdi.c: Likewise.
242         * remote.c: Likewise.
243         * ser-base.c: Likewise.
244         * ser-pipe.c: Likewise.
245         * ser-tcp.c: Likewise.
246         * ser-unix.c: Likewise.
247         * symfile.c: Likewise.
248         * symfile.c: Likewise.  Rename OSIZE to SIZE throughout.
249         * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
250         * utils.c: Likewise.
251
252 2015-08-24  Pedro Alves  <palves@redhat.com>
253
254         * NEWS: Mention removed support for the various ROM monitors.
255         * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
256         ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
257         * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
258         gdb_target_obs.
259         (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
260         gdb_target_obs.
261         (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
262         dsrec.o from gdb_target_obs.
263         (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
264         from gdb_target_obs.
265         (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
266         gdb_target_obs.
267         (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
268         dink32-rom.o from gdb_target_obs.
269         (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
270         (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
271         * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
272         monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
273
274 2015-08-21  Pedro Alves  <palves@redhat.com>
275
276         * frame.c (null_frame_id): Explicitly zero-initialize.
277
278 2015-08-21  Tom Tromey  <tromey@redhat.com>
279
280         * dwarf2read.c (struct dwarf2_section_info): Rename field
281         'asection' to 'section'.
282         (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
283         (dwarf2_locate_sections, dwarf2_locate_sections)
284         (locate_dwz_sections, locate_v1_virtual_dwo_sections)
285         (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
286         (dwarf2_locate_v2_dwp_sections): Adjust.
287
288 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
289
290         * top.h (gdb_in_secondary_prompt_p): Declare.
291         * top.c (gdb_secondary_prompt_depth): Define.
292         (gdb_in_secondary_prompt_p): Define.
293         (gdb_readline_wrapper_cleanup): Decrement
294         gdb_secondary_prompt_depth.
295         (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
296         * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
297         are in a secondary prompt.
298
299 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
300
301         * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
302         emit the newline.
303
304 2015-08-21  Gary Benson  <gbenson@redhat.com>
305
306         * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
307
308 2015-08-21  Gary Benson  <gbenson@redhat.com>
309
310         * target.h (struct target_ops) <to_fileio_open>: New argument
311         warn_if_slow.  Update comment.  All implementations updated.
312         (target_fileio_open_warn_if_slow): New declaration.
313         * target.c (target_fileio_open): Renamed as...
314         (target_fileio_open_1): ...this.  New argument warn_if_slow.
315         Pass warn_if_slow to implementation.  Update debug printing.
316         (target_fileio_open): New function.
317         (target_fileio_open_warn_if_slow): Likewise.
318         * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
319         target_fileio_open_warn_if_slow.
320
321 2015-08-21  Gary Benson  <gbenson@redhat.com>
322
323         * nat/linux-namespaces.c (linux_mntns_access_fs):
324         Do not overwrite old_chain.
325
326 2015-08-20  Max Filippov  <jcmvbkbc@gmail.com>
327
328         * arch/xtensa.h: New file.
329         * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
330         (ps_get_thread_area): New function.
331         * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
332         set_gdbarch_fetch_tls_load_module_address to enable TLS support.
333         * xtensa-tdep.c (osabi.h): New #include.
334         (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
335         xtensa-specific hooks.
336         * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
337         member and move the structure to arch/xtensa.h.
338
339 2015-08-21  Pedro Alves  <palves@redhat.com>
340
341         * remote.c (struct readahead_cache): New.
342         (struct remote_state) <readahead_cache>: New field.
343         (remote_open_1): Invalidate the cache.
344         (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
345         functions.
346         (remote_hostio_pwrite): Invalidate the readahead cache.
347         (remote_hostio_pread): Rename to ...
348         (remote_hostio_pread_vFile): ... this.
349         (remote_hostio_pread_from_cache): New function.
350         (remote_hostio_pread): Reimplement.
351         (remote_hostio_close): Invalidate the readahead cache.
352
353 2015-08-21  Marcin CieÅ›lak <saper@saper.info>  (tiny patch)
354
355         PR build/18843
356         * procfs.c: Include "filestuff.h".
357
358 2015-08-21  Patrick Palka  <patrick@parcs.ath.cx>
359
360         * tui/tui-data.h (tui_command_info): Remove fields cur_line and
361         curch.
362         * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
363         cur_line or curch, instead call wmove().
364         (init_win_info) [CMD_WIN]: Likewise.
365         * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
366         instead call getcury().
367         (tui_redisplay_readline): Don't set cur_line or curch.
368         (tui_mld_erase_entire_line): Don't read cur_line, instead call
369         getcury().
370         (tui_cont_sig): Remove call to wmove.
371         (tui_getc): Don't read cur_line or curch, instead call getcury()
372         or getyx().  Don't set curch.
373         * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
374         set cur_line or curch.  Always move cursor to (0,0).
375
376 2015-08-20  Pedro Alves  <palves@redhat.com>
377
378         * infrun.c (print_target_wait_results): Make extern.
379         * infrun.h (print_target_wait_results): Declare.
380         * remote.c (set_stop_requested_callback): Delete.
381         (process_initial_stop_replies): New function.
382         (remote_start_remote): Use it.
383         (stop_reply_queue_length): New function.
384
385 2015-08-20  Pedro Alves  <palves@redhat.com>
386
387         * dwarf2read.c (process_full_comp_unit): To tell whether
388         start_subfile managed to deduce a language, test for
389         language_unknown instead of language_c.
390
391 2015-08-20  Pierre-Marie de Rodat  <derodat@adacore.com>
392
393         * ada-lex.l: Reset the start condition to INITIAL in the rule that
394         matches attributes.
395
396 2015-08-19  Kevin Buettner  <kevinb@redhat.com>
397
398         * dwarf2read.c (dwarf2_string_attr): New function.
399         (lookup_dwo_unit, process_psymtab_comp_unit_reader)
400         (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
401         (read_call_site_scope, namespace_name, guess_full_die_structure_name)
402         (anonymous_struct_prefix, prepare_one_comp_unit): Use
403         dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
404
405 2015-08-18  Doug Evans  <dje@google.com>
406             Adrian Sendroiu <adrian.sendroiu@freescale.com>
407
408         PR mi/18833
409         * cli/cli-logging.c (pop_output_files): Don't restore redirection
410         if MI-like.
411         * mi/mi-out.c: #include "vec.h".
412         (ui_filep): New type.
413         (DEV_VEC_P (ui_filep)): New type.
414         (struct ui_out_data) <buffer, original_buffer>: Delete.
415         (struct ui_out_data) <streams>: New member.
416         (mi_ui_out_impl): Add data_destroy field.
417         (mi_field_string, mi_field_fmt): Update.
418         (mi_flush, mi_redirect, field_separator): Update.
419         (mi_open, mi_close): Update.
420         (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
421         (mi_out_data_ctor, mi_out_data_dtor): New functions.
422         (mi_out_new): Call mi_out_data_ctor.
423
424 2015-08-18  Sandra Loosemore  <sandra@codesourcery.com>
425
426         * remote.c (strprefix): New.
427         (remote_parse_stop_reply): Use strprefix instead of strncmp
428         to ensure exact match of keyword.
429
430 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
431
432         * gdb_bfd.c (debug_bfd_cache): New variable.
433         (show_bfd_cache_debug): New function.
434         (gdb_bfd_open): Add debug logging.
435         (gdb_bfd_ref): Likewise.
436         (gdb_bfd_unref): Likewise.
437         (_initialize_gdb_bfd): Add new set/show command.
438         * NEWS: Mention new command.
439
440 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
441
442         * gdb_bfd.c (bfd_sharing): New variable.
443         (show_bfd_sharing): New function.
444         (gdb_bfd_open): Check bfd_sharing variable.
445         (_initialize_gdb_bfd): Add new set/show command.
446         * NEWS: Mention new command.
447
448 2015-08-18  Andrew Burgess  <andrew.burgess@embecosm.com>
449
450         * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
451         field.
452         (struct gdb_bfd_cache_search): Likewise.
453         (eq_bfd): Compare the size, inode, and device id fields.
454         (gdb_bfd_open): Initialise the size, inode, and device id fields.
455         (gdb_bfd_ref): Likewise.
456         (gdb_bfd_unref): Likewise.
457
458 2015-08-18  Pedro Alves  <palves@redhat.com>
459
460         * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
461         target implements to_always_non_stop_p, call it.
462         * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
463         (x86_linux_create_target): Install it as to_always_non_stop_p
464         method.
465
466 2015-08-17  Doug Evans  <dje@google.com>
467
468         * ui-out.c (default_ui_out_impl): Add comment.
469
470 2015-08-17  Iain Buclaw  <ibuclaw@gdcproject.org>
471
472         * d-exp.y (type_aggregate_p): New function.
473         (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
474         (classify_inner_name): Likewise.
475         * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
476
477 2015-08-15  Doug Evans  <xdje42@gmail.com>
478
479         * psymtab.c (add_psymbol_to_bcache): Remove "val" arg.  All callers
480         updated.
481         (add_psymbol_to_list): Ditto.
482
483 2015-08-15  Doug Evans  <xdje42@gmail.com>
484
485         * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab.  All callers
486         updated.  Call end_psymtab_common.
487         * dwarf2read.c (process_psymtab_comp_unit_reader): Call
488         end_psymtab_common.
489         (build_type_psymtabs_reader): Ditto.
490         * psympriv.h (sort_pst_symbols): Delete.
491         (end_psymtab_common): Declare.
492         * psymtab.c (sort_pst_symbols): Make static.
493         (end_psymtab_common): New function.
494         * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
495
496 2015-08-15  Doug Evans  <xdje42@gmail.com>
497
498         * defs.h (LANGUAGE_BITS): Define.
499         * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
500         (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
501         * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
502         (minimal_symbol_type): Add nr_minsym_types.
503         (MINSYM_TYPE_BITS): Define.
504         (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
505         (domain_enum_tag): Add NR_DOMAINS.
506         (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
507         (SYMBOL_ACLASS_BITS): Define from 6 to 5.
508
509 2015-08-15  Doug Evans  <xdje42@gmail.com>
510
511         * objfiles.h: Whitespace cleanup.
512         * psympriv.h: Whitespace cleanup.
513         * psymtab.c: Whitespace/coding convention cleanup.
514
515 2015-08-15  Patrick Palka  <patrick@parcs.ath.cx>
516
517         * inferior.c (detach_inferior_command): Don't call
518         any_thread_of_process when pid is 0.
519         (kill_inferior_command): Likewise.
520
521 2015-08-14  Doug Evans  <xdje42@gmail.com>
522
523         PR gdb/11833
524         * NEWS: Document new /s modifier for the disassemble command.
525         * cli/cli-cmds.c (disassemble_command): Add support for /s.
526         (_initialize_cli_cmds): Update online docs of disassemble command.
527         * disasm.c: #include "source.h".
528         (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
529         All uses updated.
530         (dis_line_entry): New struct.
531         (hash_dis_line_entry, eq_dis_line_entry): New functions.
532         (allocate_dis_line_table): New functions.
533         (maybe_add_dis_line_entry, line_has_code_p): New functions.
534         (dump_insns): New arg end_pc.  All callers updated.
535         (do_mixed_source_and_assembly_deprecated): Renamed from
536         do_mixed_source_and_assembly.  All callers updated.
537         (do_mixed_source_and_assembly): New function.
538         (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
539         * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
540         DISASSEMBLY_SOURCE.  All uses updated.
541         (DISASSEMBLY_SOURCE): New macro.
542         * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
543
544 2015-08-14  Keith Seitz  <keiths@redhat.com>
545
546         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
547         `typename' to `type_name' to avoid C++ reserved word.
548
549 2015-08-14  Keith Seitz  <keiths@redhat.com>
550
551         * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
552         (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
553         silence ARI errors.
554
555 2015-08-14  Iain Buclaw  <ibuclaw@gdcproject.org>
556
557         * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
558         xstrprintf instead of malloc and sprintf.
559         (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
560         (lex_one_token): Likewise.
561
562 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
563
564         * solib-svr4.c (read_program_header): Add base_addr argument to
565         report the runtime address of the segment.
566         (find_program_interpreter): Update read_program_header call to pass
567         a NULL pointer for the new argument.
568         (scan_dyntag): Add ptr_addr argument to report the runtime address
569         of the tag payload.
570         (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
571         read_program_header to get the base address of the dynamic segment.
572         (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
573         read_program_header.
574         (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
575
576 2015-08-14  Matthew Fortune  <matthew.fortune@imgtec.com>
577
578         * MAINTAINERS (Write After Approval): Add Matthew Fortune.
579
580 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
581
582         * d-exp.y (%union): Add voidval.
583         (%token): Add UNKNOWN_NAME as a token to represent an unclassified
584         name in the lexing stage.
585         (PostfixExpression): Move symbol completion handling in grammar here
586         from PrimaryExpression.
587         (PrimaryExpression): Move routines to handle resolving identifier
588         tokens in the grammar here from push_expression_name.
589         (IdentifierExp): Remove the handling of alternating '.' and identifier
590         tokens.
591         (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
592         (BasicType): Remove C-style typename rules.
593         (d_type_from_name, d_module_from_name, push_variable)
594         (push_fieldnames, push_type_name, push_module_name)
595         (push_expression_name): Remove.
596         (lex_one_token): Rename from yylex.  Replace pstate with par_state.
597         (token_and_value): New type.
598         (token_fifo, popping, name_obstack): New globals.
599         (classify_name): New function.
600         (classify_inner_name): Likewise.
601         (yylex): Likewise.
602         (d_parse): Initialize token_fifo, popping and name_obstack.
603
604 2015-08-13  Iain Buclaw  <ibuclaw@gdcproject.org>
605
606         * Makefile.in (SFILES): Add d-namespace.c.
607         (COMMON_OBS): Add d-namespace.o.
608         * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
609         la_lookup_symbol_nonlocal callback function pointer.
610         * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
611         (d_lookup_nested_symbol): New declaration.
612         * d-namespace.c: New file.
613
614 2015-08-13  Pedro Alves  <palves@redhat.com>
615
616         * python/py-unwind.c (pyuw_sniffer): Install the invalidate
617         cleanup after the decref cleanup, not before.
618
619 2015-08-13  Pierre-Marie de Rodat  <derodat@adacore.com>
620
621         * ada-lang.c: Include namespace.h
622         (aux_add_nonlocal_symbols): Fix a function name in comment.
623         (ada_add_block_renamings): New.
624         (add_nonlocal_symbols): Add global renamings handling.
625         (ada_lookup_symbol_list_worker): Move the symbol lookup part
626         to...
627         (ada_add_all_symbols): ... this new function.
628         (ada_add_block_symbols): Try to match the input name against the
629         "using directives list", perform a recursive symbol lookup on
630         the matched declarations.
631         * block.h (struct block): Move the_namespace to top-level as
632         namespace_info. Remove the language_specific field.
633         (BLOCK_NAMESPACE): Update access to the namespace_info field.
634         * buildsym.h (using_directives): Rename into...
635         (local_using_directives): ... this.
636         (global_using_directives): New.
637         (struct context_stack): Rename the using_directives field into
638         local_using_directives.
639         * buildsym.c (finish_block_internal): Deal with the proper
640         using directives repository (local or global).
641         (prepare_for_building): Reset local_using_directives. Assert
642         that there is no pending global using directive.
643         (reset_symtab_globals): Reset global_using_directives and
644         local_using_directives.
645         (end_symtab_get_static_block): Don't ignore symtabs that have
646         only using directives.
647         (push_context): Update references to local_using_directives.
648         (buildsym_init): Do not reset using_directives.
649         * cp-support.c: Include namespace.h.
650         * cp-support.h (struct using_direct): Move to namespace.h.
651         (cp_add_using_directives): Move to namespace.h.
652         * cp-namespace.c: Include namespace.h
653         (cp_add_using_directive): Move to namespace.c, rename it to
654         add_using_directive, add a "using_directives" argument and use
655         it as the pending using directives repository.  All callers
656         updated.
657         * dwarf2read.c (using_directives): New.
658         (read_import_statement): Call using_directives.
659         (read_func_scope): Update references to local_using_directives.
660         (read_lexical_block_scope): Likewise.
661         (read_namespace): Update the heading comment, call
662         using_directives.
663         * namespace.h: New file.
664         * namespace.c: New file.
665         * Makefile.in (SFILES): Add namespace.c.
666         (COMMON_OBS): Add namespace.o
667
668 2015-08-12  Joel Brobecker  <brobecker@adacore.com>
669
670         * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
671         compute RETADDR.
672
673 2015-08-12  Keith Seitz  <keiths@redhat.com>
674
675         * break-catch-throw.c (re_set_exception_catchpoint) Rename
676         reserved C++ keyword "explicit" to "explicit_loc".
677         * breakpoint.c (create_overlay_event_breakpoint)
678         (create_longjmp_master_breakpoint)
679         (create_std_terminate_master_breakpoint)
680         (create_exception_master_breakpoint, update_static_tracepoint):
681         Rename reserved C++ keyword "explicit" to "explicit_loc".
682         * completer.c (collect_explicit_location_matches)
683         (explicit_location_completer): Rename reserved C++ keyword
684         "explicit" to "explicit_loc".
685         * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
686         (canonicalize_linespec, create_sals_line_offset)
687         (convert_linespec_to_sals, convert_explicit_location_to_sals)
688         (event_location_to_sals, decode_objc): Rename reserved C++ keyword
689         "explicit" to "explicit_loc".
690         * location.c (struct event_location) <explicit>: Rename to
691         "explicit_loc".
692         (initialize_explicit_location, new_explicit_location)
693         (explicit_location_to_string_internal, explicit_location_to_linespec):
694         Rename reserved C++ keyword "explicit" to "explicit_loc".
695         * location.h (explicit_location_to_string)
696         (explicit_location_to_linespec, initialize_explicit_location)
697         (new_explicit_location): Rename reserved C++ keyword "explicit"
698         to "explicit_loc".
699         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
700         keyword "explicit" to "explicit_loc".
701
702 2015-08-12  Keith Seitz  <keiths@redhat.com>
703
704         * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
705         and only call decode_line_1 when it is non-NULL.
706
707 2015-08-12  Luis Machado  <lgustavo@codesourcery.com>
708
709         * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
710         location address is not meaningful.
711         (breakpoint_address_is_meaningful): Update comment.
712
713 2015-08-11  Keith Seitz  <keiths@redhat.com>
714
715         * NEWS: Mention explicit locations.
716         * breakpoint.c [LOCATION_HELP_STRING]: New macro.
717         [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
718         (_initialize_breakpoint): Update documentation for
719         "clear", "break", "trace", "strace", "ftrace", and "dprintf".
720
721 2015-08-11  Keith Seitz  <keiths@redhat.com>
722
723         * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
724         explicit locations, options "--source", "--function",
725         "--label", and "--line".
726
727 2015-08-11  Keith Seitz  <keiths@redhat.com>
728
729         * completer.c: Include location.h.
730         (enum match_type): New enum.
731         (location_completer): Rename to ...
732         (linespec_completer): ... this.
733         (collect_explicit_location_matches, backup_text_ptr)
734         (explicit_location_completer): New functions.
735         (location_completer): "New" function; handle linespec
736         and explicit location completions.
737         (complete_line_internal): Remove all location completer-specific
738         handling.
739         * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
740         (find_toplevel_char): Export.
741         (linespec_parse_line_offset): Export.
742         Issue error if STRING is not numerical.
743         (gdb_get_linespec_parser_quote_characters): New function.
744         * linespec.h (linespec_parse_line_offset): Declare.
745         (get_gdb_linespec_parser_quote_characters): Declare.
746         (is_ada_operator): Declare.
747         (find_toplevel_char): Declare.
748         (linespec_lexer_lex_keyword): Declare.
749         * location.c (explicit_to_event_location): New function.
750         (explicit_location_lex_one): New function.
751         (string_to_explicit_location): New function.
752         (string_to_event_location): Handle explicit locations.
753         * location.h (explicit_to_event_location): Declare.
754         (string_to_explicit_location): Declare.
755
756 2015-08-11  Keith Seitz  <keiths@redhat.com>
757
758         * break-catch-throw.c (re_set_exception_catchpoint): Convert
759         linespec into explicit location.
760         * breakpoint.c (create_overlay_breakpoint)
761         (create_longjmp_master_breakpoint)
762         (create_std_terminate_master_breakpoint)
763         (create_exception_master_breakpoint): Convert linespec into explicit
764         location.
765         (update_static_tracepoint): Convert linespec into explicit location.
766         * linespec.c (enum offset_relative_sign, struct line_offset): Move
767         location.h.
768         (struct linespec) <expression, expr_pc, source_filename>
769         <function_name, label_name, line_offset>: Replace with ...
770         <explicit>: ... this.
771         <is_linespec>: New member.
772         (PARSER_EXPLICIT): New accessor macro.
773         (undefined_label_error): New function.
774         (source_file_not_found_error): New function.
775         (linespec_parse_basic): The parser result is now an explicit location.
776         Use PARSER_EXPLICIT to access it.
777         Use undefined_label_error.
778         (canonicalize_linespec): Convert canonical linespec into explicit
779         location.
780         Move string representation of location to explicit_location_to_linespec
781         and use it and explicit_location_to_string to save string
782         representations of the canonical location.
783         (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
784         explicit location.  Update all references.
785         (convert_explicit_location_to_sals): New function.
786         (parse_linespec): Use PARSER_EXPLICIT to access the parser
787         result's explicit location.
788         (linespec_state_constructor): Initialize is_linespec.
789         Use PARSER_EXPLICIT.
790         (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
791         result.
792         (event_location_to_sals): For linespec locations, set is_linespec.
793         Handle explicit locations.
794         (decode_objc): 'ls' contains an explicit location now. Update all
795         references.
796         (symtabs_from_filename): Use source_file_not_found_error.
797         * location.c (struct event_location.u) <explicit>: New member.
798         (initialize_explicit_location): New function.
799         (initialize_event_location): Initialize explicit locations.
800         (new_explicit_location, get_explicit_location)
801         (get_explicit_location_const): New functions.
802         (explicit_to_string_internal): New function; most of contents moved
803         from canonicalize_linespec.
804         (explicit_location_to_string): New function.
805         (explicit_location_to_linespec): New function.
806         (copy_event_location, delete_event_location)
807         (event_location_to_string_const, event_location_empty_p): Handle
808         explicit locations.
809         * location.h (enum offset_relative_sign, struct line_offset): Move
810         here from linespec.h.
811         (enum event_location_type): Add EXPLICIT_LOCATION.
812         (struct explicit_location): New structure.
813         (explicit_location_to_string): Declare.
814         (explicit_location_to_linespec): Declare.
815         (new_explicit_location, get_explicit_locationp
816         (get_explicit_location_const, initialize_explicit_location): Declare.
817
818 2015-08-11  Keith Seitz  <keiths@redhat.com>
819
820         * break-catch-throw.c (re_set_exception_catchpoint): Convert
821         linespec for stap probe to probe location.
822         * breakpoint.c (create_longjmp_master_breakpoint)
823         (create_exception_master_breakpoint): Likewise.
824         (break_command_1): Remove local variable `arg_cp'.
825         Check location type to set appropriate breakpoint ops methods.
826         (trace_command): Likewise.
827         * linespec.c (event_location_to_sals): Assert on probe locations.
828         * location.c (EL_PROBE): Add macro definition.
829         (new_probe_location, get_probe_location): New functions.
830         (copy_event_location, delete_event_location, event_location_to_string)
831         (string_to_event_location, event_location_empty_p): Handle probe
832         locations.
833         * location.h (enum event_location_type): Add PROBE_LOCATION.
834         (new_probe_location, get_probe_location): Declare.
835         * probe.c (parse_probes): Assert that LOCATION is a probe location.
836         Convert linespec into probe location.
837
838 2015-08-11  Keith Seitz  <keiths@redhat.com>
839
840         * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
841         Convert linespec to address location.
842         * linespec.c (canonicalize_linespec): Do not handle address
843         locations here.
844         (convert_address_location_to_sals): New function; contents moved
845         from ...
846         (convert_linespc_to_sals): ... here.
847         (parse_linespec): Remove address locations from linespec grammar.
848         Remove handling of address locations.
849         (linespec_lex_to_end): Remove handling of address linespecs.
850         (event_location_to_sals): Handle ADDRESS_LOCATION.
851         (linespec_expression_to_pc): Export.
852         * linespec.h (linespec_expression_to_pc): Add declaration.
853         * location.c (struct event_location.u) <address>: New member.
854         (new_address_location, get_address_location): New functions.
855         (copy_event_location, delete_event_location, event_location_to_string)
856         (string_to_event_location, event_location_empty_p): Handle address
857         locations.
858         * location.h (enum event_location_type): Add ADDRESS_LOCATION.
859         (new_address_location, get_address_location): Declare.
860         * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
861         to address location.
862         * spu-tdep.c (spu_catch_start): Likewise.
863
864 2015-08-11  Keith Seitz  <keiths@redhat.com>
865
866         * ax-gdb.c: Include location.h.
867         (agent_command_1) Use linespec location instead of address
868         string.
869         * break-catch-throw.c: Include location.h.
870         (re_set_exception_catchpoint): Use linespec locations instead
871         of address strings.
872         * breakpoint.c: Include location.h.
873         (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
874         (create_std_terminate_master_breakpoint)
875         (create_exception_master_breakpoint, update_breakpoints_after_exec):
876         Use linespec location instead of address string.
877         (print_breakpoint_location):  Use locations and
878         event_location_to_string.
879         Print extra_string for pending locations for non-MI streams.
880         (print_one_breakpoint_location): Use locations and
881         event_location_to_string.
882         (init_raw_breakpoint_without_location): Initialize b->location.
883         (create_thread_event_breakpoint): Use linespec location instead of
884         address string.
885         (init_breakpoint_sal): Likewise.
886         Only save extra_string if it is non-NULL and not the empty string.
887         Use event_location_to_string instead of `addr_string'.
888         Constify `p' and `endp'.
889         Use skip_spaces_const/skip_space_const instead of non-const versions.
890         Copy the location into the breakpoint.
891         If LOCATION is NULL, save the breakpoint address as a linespec location
892         instead of an address string.
893         (create_breakpoint_sal): Change `addr_string' parameter to a struct
894         event_location. All uses updated.
895         (create_breakpoints_sal): Likewise for local variable `addr_string'.
896         (parse_breakpoint_sals): Use locations instead of address strings.
897         Remove check for empty linespec with conditional.
898         Refactor.
899         (decode_static_tracepoint_spec): Make argument const and update
900         function.
901         (create_breakpoint): Change `arg' to a struct event_location and
902         rename.
903         Remove `copy_arg' and `addr_start'.
904         If EXTRA_STRING is empty, set it to NULL.
905         Don't populate `canonical' for pending breakpoints.
906         Pass `extra_string' to find_condition_and_thread.
907         Clear `extra_string' if `rest' was NULL.
908         Do not error with "garbage after location" if setting a dprintf
909         breakpoint.
910         Copy the location into the breakpoint instead of an address string.
911         (break_command_1): Use string_to_event_location and pass this to
912         create_breakpoint instead of an address string.
913         Check against `arg_cp' for a probe linespec.
914         (dprintf_command): Use string_to_event_location and pass this to
915         create_breakpoint instead of an address string.
916         Throw an exception if no format string was specified.
917         (print_recreate_ranged_breakpoint): Use event_location_to_string
918         instead of address strings.
919         (break_range_command, until_break_command)
920         (init_ada_exception_breakpoint): Use locations instead
921         of address strings.
922         (say_where): Print out extra_string for pending locations.
923         (base_breakpoint_dtor): Delete `location' and `location_range_end' of
924         the breakpoint.
925         (base_breakpoint_create_sals_from_location): Use struct event_location
926         instead of address string.
927         Remove `addr_start' and `copy_arg' parameters.
928         (base_breakpoint_decode_location): Use struct event_location instead of
929         address string.
930         (bkpt_re_set): Use locations instead of address strings.
931         Use event_location_empty_p to check for unset location.
932         (bkpt_print_recreate): Use event_location_to_string instead of
933         an address string.
934         Print out extra_string for pending locations.
935         (bkpt_create_sals_from_location, bkpt_decode_location)
936         (bkpt_probe_create_sals_from_location): Use struct event_location
937         instead of address string.
938         (bkpt_probe_decode_location): Use struct event_location instead of
939         address string.
940         (tracepoint_print_recreate): Use event_location_to_string to
941         recreate the tracepoint.
942         (tracepoint_create_sals_from_location, tracepoint_decode_location)
943         (tracepoint_probe_create_sals_from_location)
944         (tracepoint_probe_decode_location): Use struct event_location
945         instead of address string.
946         (dprintf_print_recreate): Use event_location_to_string to recreate
947         the dprintf.
948         (dprintf_re_set): Remove check for valid/missing format string.
949         (strace_marker_create_sals_from_location)
950         (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
951         (update_static_tracepoint): Use struct event_location instead of
952         address string.
953         (location_to_sals): Likewise.
954         Pass `extra_string' to find_condition_and_thread.
955         For newly resolved pending breakpoint locations, clear the location's
956         string representation.
957         Assert that the breakpoint's condition string is NULL when
958         condition_not_parsed.
959         (breakpoint_re_set_default, create_sals_from_location_default)
960         (decode_location_default, trace_command, ftrace_command)
961         (strace_command, create_tracepoint_from_upload): Use locations
962         instead of address strings.
963         * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
964         Use struct event_location instead of address string.
965         Update all uses.
966         <decode_location>: Likewise.
967         (struct breakpoint) <addr_string>: Change to struct event_location
968         and rename `location'.
969         <addr_string_range_end>: Change to struct event_location and rename
970         `location_range_end'.
971         (create_breakpoint): Use struct event_location instead of address
972         string.
973         * cli/cli-cmds.c: Include location.h.
974         (edit_command, list_command): Use locations instead of address strings.
975         * elfread.c: Include location.h.
976         (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
977         * guile/scm-breakpoint.c: Include location.h.
978         (bpscm_print_breakpoint_smob): Use event_location_to_string.
979         (gdbscm_register_breakpoint): Use locations instead of address
980         strings.
981         * linespec.c: Include location.h.
982         (struct ls_parser) <stream>: Change to const char *.
983         (PARSER_STREAM): Update.
984         (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
985         keywords must be followed by whitespace.
986         (canonicalize_linespec): Save a linespec location into `canonical'.
987         Save a canonical linespec into `canonical'.
988         (parse_linespec): Change `argptr' to const char * and rename `arg'.
989         All uses updated.
990         Update function description.
991         (linespec_parser_new): Initialize `parser'.
992         Update initialization of  parsing stream.
993         (event_location_to_sals): New function.
994         (decode_line_full): Change `argptr' to a struct event_location and
995         rename it `location'.
996         Use locations instead of address strings.
997         Call event_location_to_sals instead of parse_linespec.
998         (decode_line_1): Likewise.
999         (decode_line_with_current_source, decode_line_with_last_displayed)
1000         Use locations instead of address strings.
1001         (decode_objc): Likewise.
1002         Change `argptr' to const char * and rename `arg'.
1003         (destroy_linespec_result): Delete the linespec result's location
1004         instead of freeing the address string.
1005         * linespec.h (struct linespec_result) <addr_string>: Change to
1006         struct event_location and rename to ...
1007         <location>: ... this.
1008         (decode_line_1, decode_line_full): Change `argptr' to struct
1009         event_location.  All callers updated.
1010         * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
1011         (mi_cmd_break_insert_1): Use locations instead of address strings.
1012         Throw an error if there was "garbage" at the end of the specified
1013         linespec.
1014         * probe.c: Include location.h.
1015         (parse_probes): Change `argptr' to struct event_location.
1016         Use event locations instead of address strings.
1017         * probe.h (parse_probes): Change `argptr' to struct event_location.
1018         * python/py-breakpoint.c: Include location.h.
1019         (bppy_get_location): Constify local variable `str'.
1020         Use event_location_to_string.
1021         (bppy_init): Use locations instead of address strings.
1022         * python/py-finishbreakpoint.c: Include location.h.
1023         (bpfinishpy_init): Remove local variable `addr_str'.
1024         Use locations instead of address strings.
1025         * python/python.c: Include location.h.
1026         (gdbpy_decode_line): Use locations instead of address strings.
1027         * remote.c: Include location.h.
1028         (remote_download_tracepoint): Use locations instead of address
1029         strings.
1030         * spu-tdep.c: Include location.h.
1031         (spu_catch_start): Remove local variable `buf'.
1032         Use locations instead of address strings.
1033         * tracepoint.c: Include location.h.
1034         (scope_info): Use locations instead of address strings.
1035         (encode_source_string): Constify parameter `src'.
1036         * tracepoint.h (encode_source_string): Likewise.
1037
1038 2015-08-11  Keith Seitz  <keiths@redhat.com>
1039
1040         * Makefile.in (SFILES): Add location.c.
1041         (HFILES_NO_SRCDIR): Add location.h.
1042         (COMMON_OBS): Add location.o.
1043         * linespec.c (linespec_lex_to_end): New function.
1044         * linespec.h (linespec_lex_to_end): Declare.
1045         * location.c: New file.
1046         * location.h: New file.
1047
1048 2015-08-11  Keith Seitz  <keiths@redhat.com>
1049
1050         * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
1051         Renamed to create_sals_from_location.
1052         <decode_linespec>: Renamed to decode_location.
1053         Update all callers.
1054         * breakpoint.c (create_sals_from_address_default): Renamed to ...
1055         (create_sals_from_location_default): ... this.
1056         (addr_string_to_sals): Renamed to ...
1057         (location_to_sals): ... this.
1058         (decode_linespec_default): Renamed to ...
1059         (decode_location_default): ... this.
1060         (base_breakpoint_create_sals_from_address): Renamed to ...
1061         (base_breakpoint_create_sals_from_location): ... this.
1062         (bkpt_create_sals_from_address): Renamed to ...
1063         (bkpt_create_sals_from_location): ... this.
1064         (bkpt_decode_linespec): Renamed to ...
1065         (bkpt_decode_location): ... this.
1066         (bkpt_probe_create_sals_from_address): Renamed to ...
1067         (bkpt_probe_create_sals_from_location): ... this.
1068         (tracepoint_create_sals_from_address): Renamed to ...
1069         (tracepoint_create_sals_from_location): ... this.
1070         (tracepoint_decode_linespec): Renamed to ...
1071         (tracepoint_decode_location): ... this.
1072         (tracepoint_probe_create_sals_from_address): Renamed to ...
1073         (tracepoint_probe_create_sals_from_location): ... this.
1074         (tracepoint_probe_decode_linespec): Renamed to ...
1075         (tracepoint_probe_decode_location): ... this.
1076         (strace_marker_create_sals_from_address): Renamed to ...
1077         (strace_marker_create_sals_from_location): ... this.
1078         (decode_linespec_default): Renamed to ...
1079         (decode_location_default): ... this.
1080
1081 2015-08-10  Doug Evans  <dje@google.com>
1082             Keith Seitz  <keiths@redhat.com>
1083
1084         PR gdb/17960
1085         * symtab.c (make_file_symbol_completion_list_1): Renamed from
1086         make_file_symbol_completion_list and made static.
1087         (make_file_symbol_completion_list): New function.
1088
1089 2015-08-10  Joel Brobecker  <brobecker@adacore.com>
1090
1091         * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
1092         trailing new-line at end of warning message.
1093         (proceed): Add i18n marker to error messages.
1094
1095 2015-08-07  Pedro Alves  <palves@redhat.com>
1096
1097         * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
1098
1099 2015-08-07  Pedro Alves  <palves@redhat.com>
1100
1101         * s390-linux-tdep.c (is_non_branch_ril)
1102         (s390_displaced_step_copy_insn): New functions.
1103         (s390_displaced_step_fixup): Update comment.
1104         (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
1105         gdbarch_displaced_step_copy_insn hook.
1106
1107 2015-08-07  Pedro Alves  <palves@redhat.com>
1108
1109         * infrun.c (displaced_step_prepare_throw): Return -1 if
1110         gdbarch_displaced_step_copy_insn returns NULL.  Update intro
1111         comment.
1112         * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
1113         (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
1114         in file.
1115         (ppc_displaced_step_copy_insn): New function.
1116         (ppc_displaced_step_fixup): Update comment.
1117         (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
1118         gdbarch_displaced_step_copy_insn hook.
1119         * gdbarch.sh (displaced_step_copy_insn): Document what happens on
1120         NULL return.
1121         * gdbarch.h: Regenerate.
1122
1123 2015-08-07  Pedro Alves  <palves@redhat.com>
1124
1125         * inferior.h (struct inferior) <displaced_stepping_failed>: New
1126         field.
1127         * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
1128         Return false if dispaced stepping failed before.
1129         (resume): Pass the current inferior to
1130         use_displaced_stepping_now_p.  Wrap displaced_step_prepare in
1131         TRY/CATCH.  If we get a MEMORY_ERROR, set the inferior's
1132         displaced_stepping_failed flag, and fall back to an in-line
1133         step-over.
1134
1135 2015-08-07  Pedro Alves  <palves@redhat.com>
1136
1137         * darwin-nat.c (darwin_stop): Rename to ...
1138         (darwin_interrupt): ... this.
1139         (_initialize_darwin_inferior): Adjust.
1140         * gnu-nat.c (gnu_stop): Delete.
1141         (gnu_target): Don't install gnu_stop.
1142         * inf-ptrace.c (inf_ptrace_stop): Rename to ...
1143         (inf_ptrace_interrupt): ... this.
1144         (inf_ptrace_target): Adjust.
1145         * infcmd.c (interrupt_target_1): Use target_interrupt instead of
1146         target_stop.
1147         * linux-nat (linux_nat_stop): Rename to ...
1148         (linux_nat_interrupt): ... this.
1149         (linux_nat_stop): Reimplement.
1150         (linux_nat_add_target): Install linux_nat_interrupt.
1151         * nto-procfs.c (nto_interrupt_twice): Rename to ...
1152         (nto_handle_sigint_twice): ... this.
1153         (nto_interrupt): Rename to ...
1154         (nto_handle_sigint): ... this.  Call target_interrupt instead of
1155         target_stop.
1156         (procfs_wait): Adjust.
1157         (procfs_stop): Rename to ...
1158         (procfs_interrupt): ... this.
1159         (init_procfs_targets): Adjust.
1160         * procfs.c (procfs_stop): Rename to ...
1161         (procfs_interrupt): ... this.
1162         (procfs_target): Adjust.
1163         * remote-m32r-sdi.c (m32r_stop): Rename to ...
1164         (m32r_interrupt): ... this.
1165         (init_m32r_ops): Adjust.
1166         * remote-sim.c (gdbsim_stop_inferior): Rename to ...
1167         (gdbsim_interrupt_inferior): ... this.
1168         (gdbsim_stop): Rename to ...
1169         (gdbsim_interrupt): ... this.
1170         (gdbsim_cntrl_c): Adjust.
1171         (init_gdbsim_ops): Adjust.
1172         * remote.c (sync_remote_interrupt): Adjust comments.
1173         (remote_stop_as): Rename to ...
1174         (remote_interrupt_as): ... this.
1175         (remote_stop): Adjust comment.
1176         (remote_interrupt): New function.
1177         (init_remote_ops): Install remote_interrupt.
1178         * target.c (target_interrupt): New function.
1179         * target.h (struct target_ops) <to_interrupt>: New field.
1180         (target_interrupt): New declaration.
1181         * windows-nat.c (windows_stop): Rename to ...
1182         (windows_interrupt): ... this.
1183         * target-delegates.c: Regenerate.
1184
1185 2015-08-07  Pedro Alves  <palves@redhat.com>
1186
1187         * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
1188         threads" as alternative to "switching back to stepped thread".
1189
1190 2015-08-07  Pedro Alves  <palves@redhat.com>
1191
1192         * NEWS: Mention "maint set/show target-non-stop".
1193         * breakpoint.c (update_global_location_list): Check
1194         target_is_non_stop_p instead of non_stop.
1195         * infcmd.c (attach_command_post_wait, attach_command): Likewise.
1196         * infrun.c (show_can_use_displaced_stepping)
1197         (can_use_displaced_stepping_p, start_step_over_inferior):
1198         Likewise.
1199         (internal_resume_ptid): New function.
1200         (resume): Use it.
1201         (proceed): Check target_is_non_stop_p instead of non_stop.  If in
1202         all-stop mode but the target is always in non-stop mode, start all
1203         the other threads that are implicitly resumed too.
1204         (for_each_just_stopped_thread, fetch_inferior_event)
1205         (adjust_pc_after_break, stop_all_threads): Check
1206         target_is_non_stop_p instead of non_stop.
1207         (handle_inferior_event): Likewise.  Handle detach-fork in all-stop
1208         with the target always in non-stop mode.
1209         (handle_signal_stop) <random signal>: Check target_is_non_stop_p
1210         instead of non_stop.
1211         (switch_back_to_stepped_thread): Check target_is_non_stop_p
1212         instead of non_stop.
1213         (keep_going_stepped_thread): Use internal_resume_ptid.
1214         (stop_waiting): If in all-stop mode, and the target is in non-stop
1215         mode, stop all threads.
1216         (keep_going_pass): Likewise, when starting a new in-line step-over
1217         sequence.
1218         * linux-nat.c (get_pending_status, select_event_lwp)
1219         (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
1220         target_is_non_stop_p instead of non_stop.
1221         (linux_nat_always_non_stop_p): New function.
1222         (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
1223         (linux_nat_add_target): Install linux_nat_always_non_stop_p.
1224         * target-delegates.c: Regenerate.
1225         * target.c (target_is_non_stop_p): New function.
1226         (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
1227         (maint_set_target_non_stop_command)
1228         (maint_show_target_non_stop_command): New functions.
1229         (_initilize_target): Install "maint set/show target-non-stop"
1230         commands.
1231         * target.h (struct target_ops) <to_always_non_stop_p>: New field.
1232         (target_non_stop_enabled): New declaration.
1233         (target_is_non_stop_p): New declaration.
1234
1235 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
1236
1237         * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
1238         has a pending status, return true.
1239         * gdbthread.h: Include target/waitstatus.h.
1240         (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
1241         stop_pc>: New fields.
1242         (struct thread_info) <resumed>: New field.
1243         (set_resumed): Declare.
1244         * infrun.c: Include "event-loop.h".
1245         (infrun_async_inferior_event_token, infrun_is_async): New globals.
1246         (infrun_async): New function.
1247         (clear_step_over_info): Add debug output.
1248         (displaced_step_in_progress_any_inferior): New function.
1249         (displaced_step_fixup): New returns int.
1250         (start_step_over): Handle in-line step-overs too.  Assert the
1251         thread is marked resumed.
1252         (resume_cleanups): Clear the thread's resumed flag.
1253         (resume): Set the thread's resumed flag.  Return early if the
1254         thread has a pending status.  Allow stepping a breakpoint with no
1255         signal.
1256         (proceed): Adjust to check 'resumed' instead of 'executing'.
1257         (clear_proceed_status_thread): If the thread has a pending status,
1258         and that status is a finished step, discard the pending status.
1259         (clear_proceed_status): Don't clear step_over_info here.
1260         (random_pending_event_thread, do_target_wait): New functions.
1261         (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
1262         do_target_wait.
1263         (wait_one): New function.
1264         (THREAD_STOPPED_BY): New macro.
1265         (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1266         (thread_stopped_by_hw_breakpoint): New functions.
1267         (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
1268         functions.
1269         (handle_inferior_event): Also call set_resumed(false) on all
1270         threads implicitly stopped by the event.
1271         (restart_threads, resumed_thread_with_pending_status): New
1272         functions.
1273         (finish_step_over): If we were doing an in-line step-over before,
1274         and no longer are after trying to start a new step-over, restart
1275         all threads.  If we have multiple threads with pending events,
1276         save the current event and go through the event loop again.
1277         (handle_signal_stop): Return early if finish_step_over returns
1278         false.
1279         <random signal>: If we get a signal while stepping over a
1280         breakpoint in-line in non-stop mode, restart all threads.  Clear
1281         step_over_info before delivering the signal.
1282         (keep_going_stepped_thread): Use internal_error instead of
1283         gdb_assert.  Mark the thread as resumed.
1284         (keep_going_pass_signal): Assert the thread isn't already resumed.
1285         If some other thread is doing an in-line step-over, defer the
1286         resume.  If we just started a new in-line step-over, stop all
1287         threads.  Don't clear step_over_info.
1288         (infrun_async_inferior_event_handler): New function.
1289         (_initialize_infrun): Create async event handler with
1290         infrun_async_inferior_event_handler as callback.
1291         (infrun_async): New declaration.
1292         * target.c (target_async): New function.
1293         * target.h (target_async): Declare macro and readd as function
1294         declaration.
1295         * target/waitstatus.h (enum target_stop_reason)
1296         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
1297         * thread.c (new_thread): Clear the new waitstatus field.
1298         (set_resumed): New function.
1299
1300 2015-08-07  Pedro Alves  <palves@redhat.com>
1301
1302         * infrun.c (keep_going_stepped_thread): New function, factored out
1303         from ...
1304         (switch_back_to_stepped_thread): ... here.
1305
1306 2015-08-07  Pedro Alves  <palves@redhat.com>
1307
1308         * infrun.c (currently_stepping): Extend intro comment.
1309         * target.h (target_resume): Extend intro comment.
1310
1311 2015-08-07  Pedro Alves  <palves@redhat.com>
1312
1313         * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
1314         of inferior_ptid.  If the stepped thread vanished, return 0
1315         instead of resuming here.  Use reset_ecs.  Print the prev_pc and
1316         the current stop_pc in log message.  Clear trap_expected if the
1317         thread advanced.  Don't pass currently_stepping to
1318         do_target_resume.
1319
1320 2015-08-07  Pedro Alves  <palves@redhat.com>
1321
1322         * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
1323         * infrun.c (struct execution_control_state): Move higher up in the
1324         file.
1325         (reset_ecs): New function.
1326         (start_step_over): Now returns int.  Rewrite to use
1327         keep_going_pass_signal instead of manually starting a displaced step.
1328         (resume): Don't call set_running here.  If displaced stepping
1329         can't start now, clear trap_expected.
1330         (find_thread_needs_step_over): Delete function.
1331         (proceed): Set up finish_thread_state_cleanup.  Call set_running.
1332         If the current thread needs a step over, push it in the step-over
1333         chain.  Don't set insert breakpoints nor call resume directly
1334         here.  Instead rewrite to use start_step_over and
1335         keep_going_pass_signal.
1336         (finish_step_over): New function.
1337         (handle_signal_stop): Call finish_step_over instead of
1338         start_step_over.
1339         (switch_back_to_stepped_thread): If the event thread needs another
1340         step-over do that first.  Use start_step_over.
1341         (keep_going_pass_signal): New function, factored out from ...
1342         (keep_going): ... here.
1343         (_initialize_infrun): Comment moved here.
1344         * thread.c (set_running_thread): New function.
1345         (set_running, finish_thread_state): Use set_running_thread.
1346
1347 2015-08-07  Pedro Alves  <palves@redhat.com>
1348
1349         * gdbthread.h (struct thread_info) <step_over_prev,
1350         step_over_next>: New fields.
1351         (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
1352         (thread_step_over_chain_next, thread_is_in_step_over_chain): New
1353         declarations.
1354         * infrun.c (struct displaced_step_request): Delete.
1355         (struct displaced_step_inferior_state) <step_request_queue>:
1356         Delete field.
1357         (displaced_step_prepare): Assert that trap_expected is set.  Use
1358         thread_step_over_chain_enqueue.  Split starting a new displaced
1359         step to ...
1360         (start_step_over): ... this new function.
1361         (resume): Assert the thread isn't waiting for a step over already.
1362         (proceed): Assert the thread isn't waiting for a step over
1363         already.
1364         (infrun_thread_stop_requested): Adjust to remove threads from the
1365         embedded step-over chain.
1366         (handle_inferior_event) <fork/vfork>: Call start_step_over after
1367         displaced_step_fixup.
1368         (handle_signal_stop): Call start_step_over after
1369         displaced_step_fixup.
1370         * infrun.h (step_over_queue_head): New declaration.
1371         * thread.c (step_over_chain_enqueue, step_over_chain_remove)
1372         (thread_step_over_chain_next, thread_is_in_step_over_chain)
1373         (thread_step_over_chain_enqueue)
1374         (thread_step_over_chain_remove): New functions.
1375         (delete_thread_1): Remove thread from the step-over chain.
1376
1377 2015-08-07  Pedro Alves  <palves@redhat.com>
1378
1379         * infrun.c (thread_still_needs_step_over): Rename to ...
1380         (thread_still_needs_step_over_bp): ... this.
1381         (enum step_over_what): New.
1382         (thread_still_needs_step_over): Reimplement.
1383
1384 2015-08-07  Pedro Alves  <palves@redhat.com>
1385
1386         * remote.c (remote_wait_as): If not waiting for a stop reply,
1387         return TARGET_WAITKIND_NO_RESUMED.  If TARGET_WNOHANG is
1388         requested, don't block waiting forever.
1389
1390 2015-08-07  Pedro Alves  <pedro@codesourcery.com>
1391
1392         * infrun.c (adjust_pc_after_break): Now takes thread_info and
1393         waitstatus pointers instead of an ecs.  Adjust.
1394         (handle_inferior_event): Adjust caller.
1395
1396 2015-08-07  Pedro Alves  <palves@redhat.com>
1397
1398         * infrun.c (handle_inferior_event): If we get
1399         TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
1400         mode, mark all threads of the exiting process as not-executing.
1401         (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
1402         TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
1403         exiting process, if inferior_ptid still points at a process.
1404         * thread.c (struct current_thread_cleanup) <next>: New field.
1405         (current_thread_cleanup_chain): New global.
1406         (restore_current_thread_ptid_changed): New function.
1407         (restore_current_thread_cleanup_dtor): Remove the cleanup from the
1408         current_thread_cleanup_chain list.
1409         (make_cleanup_restore_current_thread): Add the cleanup data to the
1410         current_thread_cleanup_chain list.
1411         (_initialize_thread): Install restore_current_thread_ptid_changed
1412         as thread_ptid_changed observer.
1413
1414 2015-08-07  Joel Brobecker  <brobecker@adacore.com>
1415
1416         * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
1417         data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
1418         smaller than expected.
1419
1420 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
1421
1422         * stack.c (get_frame_language): Moved ...
1423         * frame.c (get_frame_language): ... to here.
1424         * language.h (get_frame_language): Declaration moved to frame.h.
1425         * frame.h: Add language.h include, for language enum.
1426         (get_frame_language): Declaration moved from language.h.
1427         * language.c: Add frame.h include.
1428         * top.c: Add frame.h include.
1429         * symtab.h (struct obj_section): Declare.
1430         (struct cmd_list_element): Declare.
1431
1432 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
1433
1434         * language.c (show_language_command): Find selected frame before
1435         asking for the language of that frame.
1436         (set_language_command): Likewise.
1437         * language.h (get_frame_language): Add frame parameter.
1438         * stack.c (get_frame_language): Add frame parameter, assert
1439         parameter is not NULL, update comment and reindent.
1440         * top.c (check_frame_language_change): Pass the selected frame
1441         into get_frame_language.
1442
1443 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
1444
1445         * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
1446         (pt_btrace_insn_flags): New.
1447         (ftrace_add_pt): Call pt_btrace_insn_flags.
1448         * btrace.h (btrace_insn_flag): New.
1449         (btrace_insn) <flags>: New.
1450         * record-btrace.c (btrace_insn_history): Print insn prefix.
1451         * NEWS: Announce it.
1452
1453 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
1454
1455         * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
1456         * configure: Regenerate.
1457
1458 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
1459
1460         * Makefile.in (LIBICONV): Define.
1461         (CLIBS): Add LIBICONV.
1462         * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
1463         * configure: Regenerate.
1464
1465 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
1466             Pedro Alves  <palves@redhat.com>
1467
1468         * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
1469         (arm_set_abi): Likewise.
1470         * ax-general.c (ax_print): Likewise.
1471         * c-exp.y (exp : string_exp): Likewise.
1472         * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
1473         (do_compile_dwarf_expr_to_c): Likewise.
1474         * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
1475         Likewise.
1476         * dwarf2expr.c (execute_stack_op): Likewise.
1477         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
1478         (disassemble_dwarf_expression): Likewise.
1479         * dwarf2read.c (dwarf2_add_member_fn): Likewise.
1480         (read_array_order): Likewise.
1481         (abbrev_table_read_table): Likewise.
1482         (read_attribute_value): Likewise.
1483         (skip_unknown_opcode): Likewise.
1484         (dwarf_decode_macro_bytes): Likewise.
1485         (dwarf_decode_macros): Likewise.
1486         * eval.c (value_f90_subarray): Likewise.
1487         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
1488         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
1489         * infrun.c (handle_command): Likewise.
1490         * memory-map.c (memory_map_start_memory): Likewise.
1491         * osabi.c (set_osabi): Likewise.
1492         * parse.c (operator_length_standard): Likewise.
1493         * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
1494         single return point.
1495         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
1496         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1497         (gdbpy_lookup_global_symbol): Likewise.
1498         * record-full.c (record_full_restore): Likewise.
1499         * regcache.c (regcache_register_status): Likewise.
1500         (regcache_raw_read): Likewise.
1501         (regcache_cooked_read): Likewise.
1502         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
1503         * symtab.c (initialize_ordinary_address_classes): Likewise.
1504         * target-debug.h (target_debug_print_signals): Likewise.
1505         * utils.c (do_restore_current_language): Likewise.
1506
1507 2015-08-06  Clem Dickey  <clemd@acm.org>
1508
1509         PR python/17136
1510         * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
1511
1512 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
1513
1514         * complaints.c (enum complaint_series): Add newlines and remove
1515         out of date comment.
1516         (struct complaints) <series>: Change type to enum
1517         complaint_series and remove out of date comment.
1518         (symfile_complaint_hook): Use equivalent enum value
1519         ISOLATED_MESSAGE instead of 0.
1520
1521 2015-08-06  Pedro Alves  <palves@redhat.com>
1522
1523         * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
1524         returned > 0.
1525
1526 2015-08-06  Pierre Langlois  <pierre.langlois@arm.com>
1527
1528         * common/agent.c (symbol_list) <required>: Remove.
1529
1530 2015-08-06  Pedro Alves  <palves@redhat.com>
1531
1532         * target/waitstatus.h (enum target_stop_reason)
1533         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
1534
1535 2015-08-05  Pedro Alves  <palves@redhat.com>
1536             Joel Brobecker  <brobecker@adacore.com>
1537
1538         * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
1539         <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
1540         case where BS->STOP is not set.
1541
1542 2015-08-05  Ulrich Weigand  <uweigand@de.ibm.com>
1543
1544         * nat/gdb_thread_db.h: Add copyright header.
1545         Protect against multiple inclusion.
1546
1547 2015-08-05  Yao Qi  <yao.qi@linaro.org>
1548
1549         * aarch64-linux-nat.c (get_thread_id): Remove.
1550         (debug_reg_change_callback): Call ptid_get_lwp instead of
1551         get_thread_id.
1552         (fetch_gregs_from_thread): Likewise.
1553         (store_gregs_to_thread): Likewise.
1554         (fetch_fpregs_from_thread): Likewise.
1555         (store_fpregs_to_thread): Likewise.
1556         (aarch64_linux_get_debug_reg_capacity): Likewise.
1557         * arm-linux-nat.c (get_thread_id): Remove.
1558         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
1559         * xtensa-linux-nat.c (get_thread_id): Remove.
1560         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
1561         * arm-linux-nat.c (get_thread_id): Remove.
1562         (GET_THREAD_ID): Remove.
1563         (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
1564         (store_fpregs, fetch_regs, store_regs): Likewise.
1565         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
1566         (fetch_vfp_regs, store_vfp_regs): Likewise.
1567         (arm_linux_read_description): Likewise.
1568         (arm_linux_get_hwbp_cap): Likewise.
1569         * xtensa-linux-nat.c (get_thread_id): Remove.
1570         (GET_THREAD_ID): Remove.
1571         (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
1572         GET_THREAD_ID.
1573
1574 2015-08-04  Ciro Santilli  <ciro.santilli@gmail.com>  (obvious patch)
1575
1576         * python/py-linetable.c: Fix case of Linetable to LineTable
1577         in docstrings and code comments.
1578         * python/py-symtab.c: Same.
1579
1580 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
1581
1582         * infcmd.c (signal_command): Call do_cleanups for args_chain.
1583
1584 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
1585
1586         PR gdb/18767
1587         * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
1588         use.
1589
1590 2015-08-04  Pedro Alves  <palves@redhat.com>
1591
1592         * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
1593         (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
1594         (td_ta_event_addr_ftype, td_ta_set_event_ftype)
1595         (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
1596         (td_thr_validate_ftype, td_thr_get_info_ftype)
1597         (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
1598         (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
1599         New typedefs.
1600         * linux-thread-db.c (struct thread_db_info): Use new typedefs.
1601         (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
1602         local macros and use them instead of verbose_dlsym and dlsym
1603         calls.
1604
1605 2015-08-03  Sandra Loosemore  <sandra@codesourcery.com>
1606
1607         * nios2-tdep.h: Include opcode/nios2.h here.
1608         (NIOS2_CDX_OPCODE_SIZE): New.
1609         (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
1610         * nios2-tdep.c: Don't include opcode/nios2.h here.
1611         (nios2_fetch_insn): For R2, try reading 2-byte instruction if
1612         4-byte read fails.
1613         (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
1614         (nios2_match_addi, nios2_match_orhi): Likewise.
1615         (nios2_match_stw, nios2_match_ldw): Likewise.
1616         (nios2_match_rdctl): Likewise.
1617         (nios2_match_stwm, nios2_match_ldwm): New.
1618         (nios2_match_branch): Add cases for R2 encodings.
1619         (nios2_match_jmpi, nios2_match_calli): Likewise.
1620         (nios2_match_jmpr, nios2_match_callr): Likewise.
1621         (nios2_match_break, nios2_match_trap): Likewise.
1622         (nios2_in_epilogue_p): Add R2 support.
1623         (nios2_analyze_prologue): Update comments.  Recognize R2 CDX
1624         prologues.
1625         (nios2_breakpoint_from_pc): Handle R2 instructions.
1626         (nios2_get_next_pc): Likewise.  Adjust call to
1627         tdep->syscall_next_pc.
1628         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
1629         Renamed from nios2_linux_rt_sigreturn_tramp_frame.  Use
1630         instruction field macros instead of literal hex values.
1631         (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
1632         (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
1633         Use size field from OP instead of assuming all instructions
1634         are the same size.
1635         (nios2_linux_init_abi): Register appropriate unwinder for mach.
1636
1637 2015-08-03  Ulrich Weigand  <uweigand@de.ibm.com>
1638
1639         * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
1640         variable warning with some compilers.
1641
1642 2015-08-03  Yao Qi  <yao.qi@linaro.org>
1643
1644         * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
1645         in comment.  Replace "rw" with "type".
1646         (arm_linux_remove_watchpoint): Change type of "rw" to
1647         "enum target_hw_bp_type".
1648
1649 2015-08-02  Pierre-Marie de Rodat  <derodat@adacore.com>
1650
1651         * alpha-mdebug-tdep.c (find_proc_desc): Update call to
1652         lookup_symbol.
1653         * ft32-tdep.c (ft32_skip_prologue): Likewise.
1654         * moxie-tdep.c (moxie_skip_prologue): Likewise.
1655         * mt-tdep.c (mt_skip_prologue): Likewise.
1656         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
1657
1658 2015-08-01  Pierre-Marie de Rodat  <derodat@adacore.com>
1659
1660         * ada-exp.y (write_object_renaming): Replace struct
1661         ada_symbol_info with struct block_symbol.  Update field
1662         references accordingly.
1663         (block_lookup, select_possible_type_sym): Likewise.
1664         (find_primitive_type): Likewise.  Also update call to
1665         ada_lookup_symbol to extract the symbol itself.
1666         (write_var_or_type, write_name_assoc): Likewise.
1667         * ada-lang.h (struct ada_symbol_info): Remove.
1668         (ada_lookup_symbol_list): Replace struct ada_symbol_info with
1669         struct block_symbol.
1670         (ada_lookup_encoded_symbol, user_select_syms): Likewise.
1671         (ada_lookup_symbol): Return struct block_symbol instead of a
1672         mere symbol.
1673         * ada-lang.c (defns_collected): Replace struct ada_symbol_info
1674         with struct block_symbol.
1675         (resolve_subexp, ada_resolve_function, sort_choices,
1676         user_select_syms, is_nonfunction, add_defn_to_vec,
1677         num_defns_collected, defns_collected,
1678         symbols_are_identical_enums, remove_extra_symbols,
1679         remove_irrelevant_renamings, add_lookup_symbol_list_worker,
1680         ada_lookup_symbol_list, ada_iterate_over_symbols,
1681         ada_lookup_encoded_symbol, get_var_value): Likewise.
1682         (ada_lookup_symbol): Return a block_symbol instead of a mere
1683         symbol.  Replace struct ada_symbol_info with struct
1684         block_symbol.
1685         (ada_lookup_symbol_nonlocal): Likewise.
1686         (standard_lookup): Make block passing explicit through
1687         lookup_symbol_in_language.
1688         * ada-tasks.c (get_tcb_types_info): Update the calls to
1689         lookup_symbol_in_language to extract the mere symbol out of the
1690         returned value.
1691         (ada_tasks_inferior_data_sniffer): Likewise.
1692         * ax-gdb.c (gen_static_field): Likewise for the call to
1693         lookup_symbol.
1694         (gen_maybe_namespace_elt): Deal with struct block_symbol from
1695         lookup functions.
1696         (gen_expr): Likewise.
1697         * c-exp.y: Likewise.  Remove uses of block_found.
1698         (lex_one_token, classify_inner_name, c_print_token): Likewise.
1699         (classify_name): Likewise.  Rename the "sym" local variable to
1700         "bsym".
1701         * c-valprint.c (print_unpacked_pointer): Likewise.
1702         * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
1703         "sym" parameter from struct symbol * to struct block_symbol.
1704         Use it to remove uses of block_found.  Deal with struct
1705         block_symbol from lookup functions.
1706         (gcc_convert_symbol): Likewise.  Update the call to
1707         convert_symbol_sym.
1708         * compile/compile-object-load.c (compile_object_load): Deal with
1709         struct block_symbol from lookup functions.
1710         * cp-namespace.c (cp_lookup_nested_symbol_1,
1711         cp_lookup_nested_symbol, cp_lookup_bare_symbol,
1712         cp_search_static_and_baseclasses,
1713         cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
1714         cp_lookup_symbol_imports_or_template,
1715         cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
1716         lookup_namespace_scope, cp_lookup_nonlocal,
1717         find_symbol_in_baseclass): Return struct block_symbol instead of
1718         mere symbols and deal with struct block_symbol from lookup
1719         functions.
1720         * cp-support.c (inspect_type, replace_typedefs,
1721         cp_lookup_rtti_type): Deal with struct block_symbol from
1722         lookup functions.
1723         * cp-support.h (cp_lookup_symbol_nonlocal,
1724         cp_lookup_symbol_from_namespace,
1725         cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
1726         Return struct block_symbol instead of mere symbols.
1727         * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
1728         push_module_name):
1729         Deal with struct block_symbol from lookup functions.  Remove
1730         uses of block_found.
1731         * eval.c (evaluate_subexp_standard): Update call to
1732         cp_lookup_symbol_namespace.
1733         * f-exp.y: Deal with struct block_symbol from lookup functions.
1734         Remove uses of block_found.
1735         (yylex): Likewise.
1736         * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
1737         lookup_enum, lookup_template_type, check_typedef): Deal with
1738         struct block_symbol from lookup functions.
1739         * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
1740         * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
1741         (gdbscm_lookup_global_symbol): Likewise.
1742         * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
1743         * go-exp.y: Likewise.  Remove uses of block_found.
1744         (package_name_p, classify_packaged_name, classify_name):
1745         Likewise.
1746         * infrun.c (insert_exception_resume_breakpoint): Likewise.
1747         * jv-exp.y (push_variable): Likewise.
1748         * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
1749         * language.c (language_bool_type): Likewise.
1750         * language.h (struct language_defn): Update
1751         la_lookup_symbol_nonlocal to return a struct block_symbol rather
1752         than a mere symbol.
1753         * linespec.c (find_label_symbols): Deal with struct block_symbol
1754         from lookup functions.
1755         * m2-exp.y: Likewise.  Remove uses of block_found.
1756         (yylex): Likewise.
1757         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
1758         * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
1759         * p-exp.y: Likewise.  Remove uses of block_found.
1760         (yylex): Likewise.
1761         * p-valprint.c (pascal_val_print): Likewise.
1762         * parse.c (write_dollar_variable): Likewise.  Remove uses of
1763         block_found.
1764         * parser-defs.h (struct symtoken): Turn the SYM field into a
1765         struct block_symbol.
1766         * printcmd.c (address_info): Deal with struct block_symbol from
1767         lookup functions.
1768         * python/py-frame.c (frapy_read_var): Likewise.
1769         * python/py-symbol.c (gdbpy_lookup_symbol,
1770         gdbpy_lookup_global_symbol): Likewise.
1771         * skip.c (skip_function_command): Likewise.
1772         * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
1773         block_symbol instead of a mere symbol.
1774         * solib-spu.c (spu_lookup_lib_symbol): Likewise.
1775         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
1776         * solib.c (solib_global_lookup): Likewise.
1777         * solist.h (solib_global_lookup): Likewise.
1778         (struct target_so_ops): Update lookup_lib_global_symbol to
1779         return a struct block_symbol rather than a mere symbol.
1780         * source.c (select_source_symtab): Deal with struct block_symbol
1781         from lookup functions.
1782         * stack.c (print_frame_args, iterate_over_block_arg_vars):
1783         Likewise.
1784         * symfile.c (set_initial_language): Likewise.
1785         * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
1786         block_symbol.
1787         (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
1788         (struct symbol_cache_slot): Turn the FOUND field into a struct
1789         block_symbol.
1790         (block_found): Remove.
1791         (eq_symbol_entry): Update to deal with struct block_symbol in
1792         cache slots.
1793         (symbol_cache_lookup): Return a struct block_symbol rather than
1794         a mere symbol.
1795         (symbol_cache_mark_found): Add a BLOCK parameter to fill
1796         appropriately the cache slots.  Update callers.
1797         (symbol_cache_dump): Update cache slots handling to the type
1798         change.
1799         (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
1800         lookup_symbol_aux, lookup_local_symbol,
1801         lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
1802         lookup_symbol_in_objfile_symtabs,
1803         lookup_symbol_in_objfile_from_linkage_name,
1804         lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
1805         lookup_symbol_in_static_block, lookup_static_symbol,
1806         lookup_global_symbol):
1807         Return a struct block_symbol rather than a mere symbol.  Deal
1808         with struct block_symbol from other lookup functions.  Remove
1809         uses of block_found.
1810         (lookup_symbol_in_block): Remove uses of block_found.
1811         (struct global_sym_lookup_data): Turn the RESULT field into a
1812         struct block_symbol.
1813         (lookup_symbol_global_iterator_cb): Update references to the
1814         RESULT field.
1815         (search_symbols): Deal with struct block_symbol from lookup
1816         functions.
1817         * symtab.h (struct block_symbol): New structure.
1818         (block_found): Remove.
1819         (lookup_symbol_in_language, lookup_symbol,
1820         basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
1821         lookup_static_symbol, lookup_global_symbol, lookup_language_this,
1822         lookup_global_symbol_from_objfile): Return a struct block_symbol
1823         rather than just a mere symbol.  Update comments to remove
1824         mentions of block_found.
1825         * valops.c (find_function_in_inferior,
1826         value_struct_elt_for_reference, value_maybe_namespace_elt,
1827         value_of_this):  Deal with struct block_symbol from lookup
1828         functions.
1829         * value.c (value_static_field, value_fn_field): Likewise.
1830
1831 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
1832
1833         * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
1834         instead of integer.
1835
1836 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
1837             Pedro Alves  <palves@redhat.com>
1838
1839         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
1840         type or value instead of integer.
1841         (aarch64_linux_insert_watchpoint): Likewise.
1842         (aarch64_linux_remove_watchpoint): Likewise.
1843         * ada-lang.c (ada_op_print_tab): Likewise.
1844         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
1845         (amd64_linux_syscall_record_common): Likewise.
1846         * arch-utils.c (target_byte_order_user): Likewise.
1847         (default_byte_order): Likewise.
1848         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
1849         (arm_linux_get_hwbp_type): Likewise.
1850         (arm_linux_hw_watchpoint_initialize): Likewise.
1851         (arm_linux_insert_watchpoint): Likewise.
1852         * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
1853         (arm_linux_syscall_record): Likewise.
1854         * breakpoint.c (update_watchpoint): Likewise.
1855         (breakpoint_here_p): Likewise.
1856         (bpstat_print): Likewise.
1857         (enable_breakpoint_disp): Likewise.
1858         * c-lang.c (c_op_print_tab): Likewise.
1859         * cli/cli-decode.c (add_info_alias): Likewise.
1860         * d-lang.c (d_op_print_tab): Likewise.
1861         * eval.c (evaluate_subexp_standard): Likewise.
1862         * f-exp.y (dot_ops): Likewise.
1863         (f77_keywords): Likewise.
1864         * f-lang.c (f_op_print_tab): Likewise.
1865         * go-lang.c (go_op_print_tab): Likewise.
1866         * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
1867         * guile/scm-cmd.c (gdbscm_make_command): Likewise.
1868         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
1869         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
1870         * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
1871         (struct scm_from_stringn_data): Likewise.
1872         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
1873         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
1874         (ia64_linux_remove_watchpoint): Likewise.
1875         (ia64_linux_can_use_hw_breakpoint): Likewise.
1876         * infrun.c (print_stop_event): Likewise.
1877         * jv-lang.c (java_op_print_tab): Likewise.
1878         * linux-nat.c (linux_proc_xfer_partial): Likewise.
1879         * linux-nat.h (struct lwp_info): Likewise.
1880         * linux-thread-db.c (enable_thread_event): Likewise.
1881         * m2-lang.c (m2_op_print_tab): Likewise.
1882         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
1883         (mi_cmd_stack_list_variables): Likewise.
1884         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
1885         * mi/mi-out.c (mi_table_begin): Likewise.
1886         (mi_table_header): Likewise.
1887         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
1888         (mips_linux_insert_watchpoint): Likewise.
1889         (mips_linux_remove_watchpoint): Likewise.
1890         * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
1891         * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
1892         (mips_linux_watch_type_to_irw): Likewise.
1893         * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
1894         (procfs_insert_hw_watchpoint): Likewise.
1895         (procfs_remove_hw_watchpoint): Likewise.
1896         (procfs_hw_watchpoint): Likewise.
1897         (procfs_can_use_hw_breakpoint): Likewise.
1898         (procfs_remove_hw_watchpoint): Likewise.
1899         (procfs_insert_hw_watchpoint): Likewise.
1900         * p-lang.c (pascal_op_print_tab): Likewise.
1901         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
1902         * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
1903         * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
1904         * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
1905         (procfs_insert_watchpoint): Likewise.
1906         (procfs_remove_watchpoint): Likewise.
1907         * psymtab.c (recursively_search_psymtabs): Likewise.
1908         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
1909         (m32r_insert_watchpoint): Likewise.
1910         * remote-mips.c (mips_can_use_watchpoint): Likewise.
1911         (mips_insert_watchpoint): Likewise.
1912         (mips_remove_watchpoint): Likewise.
1913         * remote.c (watchpoint_to_Z_packet): Likewise.
1914         (remote_insert_watchpoint): Likewise.
1915         (remote_remove_watchpoint): Likewise.
1916         (remote_check_watch_resources): Likewise.
1917         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
1918         (s390_remove_watchpoint): Likewise.
1919         (s390_can_use_hw_breakpoint): Likewise.
1920         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1921         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
1922         * target.h (struct target_ops): Likewise.
1923         * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
1924         * ui-out.c (struct ui_out_hdr): Likewise.
1925         (append_header_to_list): Likewise.
1926         (get_next_header): Likewise.
1927         (verify_field): Likewise.
1928         (ui_out_begin): Likewise.
1929         (ui_out_field_int): Likewise.
1930         (ui_out_field_fmt_int): Likewise.
1931         (ui_out_field_skip): Likewise.
1932         (ui_out_field_string): Likewise.
1933         (ui_out_field_fmt): Likewise.
1934         * varobj.c (new_variable): Likewise.
1935         * x86-nat.c (x86_insert_watchpoint): Likewise.
1936         (x86_remove_watchpoint): Likewise.
1937         (x86_can_use_hw_breakpoint): Likewise.
1938         * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
1939         * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
1940         previously anonymous enumeration type..
1941         * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
1942         value.
1943         * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
1944         (target_debug_print_enum_bptype): New.
1945         * target-delegates.c: Regenerate.
1946
1947 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
1948
1949         * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
1950         already says and disallow non-stack memory writes in the prologue.
1951
1952 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
1953
1954         * nios2-tdep.c (nios2_analyze_prologue): Update comments to
1955         reflect how current GCC emits stack overflow checks.  Match
1956         both trap and break instructions for backward compatbility.
1957         Disallow other trap and break instructions in the prologue.
1958
1959 2015-07-30  Pedro Alves  <palves@redhat.com>
1960
1961         PR threads/18600
1962         * linux-nat.c (wait_lwp): Report to the core when thread group
1963         leader exits.
1964
1965 2015-07-30  Pedro Alves  <palves@redhat.com>
1966             Simon Marchi  <simon.marchi@ericsson.com>
1967
1968         PR threads/18600
1969         * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
1970         mark the new thread as resumed.  Remove STOPPING parameter.
1971         (wait_lwp): Adjust call to linux_handle_extended_wait.
1972         (linux_nat_filter_event): Adjust call to
1973         linux_handle_extended_wait.
1974         (resume_stopped_resumed_lwps): Add debug output.
1975
1976 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
1977
1978         * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
1979         isize argument.
1980         * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
1981         * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
1982         gdbarch_fast_tracepoint_valid_at.
1983         * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
1984         * gdbarch.h: Regenerate.
1985         * gdbarch.c: Regenerate.
1986         * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
1987         argument.  Do not set it.
1988         * remote.c (remote_download_tracepoint): Adjust call to
1989         gdbarch_fast_tracepoint_valid_at.  Call gdb_insn_length to get
1990         the instruction length.
1991
1992 2015-07-30  Yao Qi  <yao.qi@linaro.org>
1993
1994         * arm-tdep.h (enum gdb_regnum): Move it to ...
1995         * arch/arm.h: ... here.  New file.
1996         * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
1997
1998 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
1999
2000         * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
2001         Change its type to int *.
2002         (decode_br): Rename link argument to is_blr.  Change its type to
2003         int *.
2004         (decode_cb): Rename op argument to is_cbnz.  Change its type to
2005         int *.
2006         (decode_tb): Rename op argument to is_tbnz.  Change its type to
2007         int *.  Set is_tbnz to either 1 or 0.
2008         (aarch64_analyze_prologue): Change type of is_link to int.  Add
2009         new variables is_cbnz and is_tbnz.  Adjust call to
2010         aarch64_decode_cb and aarch64_decode_tb.
2011
2012 2015-07-29  Simon Marchi  <simon.marchi@ericsson.com>
2013
2014         * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
2015         parameter.
2016         (mips_linux_new_thread): Likewise.
2017         * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
2018
2019 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
2020
2021         * top.c: Include "tui/tui.h".
2022         (undo_terminal_modifications_before_exit): New static function.
2023         (quit_force): Use it.
2024
2025 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
2026
2027         * target.c (terminal_state): Initialize to terminal_is_ours.
2028
2029 2015-07-29  Yao Qi  <yao.qi@linaro.org>
2030
2031         PR record/18691
2032         * dcache.c (dcache_read_memory_partial): Call
2033         raw_memory_xfer_partial.
2034         * target.c (raw_memory_xfer_partial): Make it non-static.
2035         * target.h (raw_memory_xfer_partial): Declare.
2036
2037 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
2038
2039         * c-valprint.c (c_val_print_array): Consider addressable memory
2040         unit size.
2041         (c_val_print_ptr): Likewise.
2042         (c_val_print_int): Likewise.
2043         * findvar.c (read_frame_register_value): Likewise.
2044         * valarith.c (find_size_for_pointer_math): Likewise.
2045         (value_ptrdiff): Likewise.
2046         (value_subscripted_rvalue): Likewise.
2047         * valops.c (read_value_memory): Likewise (and rename variables).
2048         (value_assign): Likewise.
2049         (value_repeat): Likewise.
2050         (value_array): Likewise.
2051         (value_slice): Likewise.
2052         * valprint.c (generic_val_print_ptr): Likewise.
2053         (generic_val_print_enum): Likewise.
2054         (generic_val_print_bool): Likewise.
2055         (generic_val_print_int): Likewise.
2056         (generic_val_print_char): Likewise.
2057         (generic_val_print_float): Likewise.
2058         (generic_val_print_decfloat): Likewise.
2059         (generic_val_print_complex): Likewise.
2060         (val_print_scalar_formatted): Likewise.
2061         (val_print_array_elements): Likewise.
2062         * value.c (set_value_parent): Likewise.
2063         (value_contents_copy_raw): Likewise.
2064         (set_internalvar_component): Likewise.
2065         (value_primitive_field): Likewise.
2066         (value_fetch_lazy): Likewise.
2067         * value.h (read_value_memory): Update comment.
2068
2069 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
2070
2071         * value.c (get_value_arch): New function.
2072         * value.h (get_value_arch): New declaration.
2073
2074 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
2075
2076         * value.c (struct value): Update comments.
2077
2078 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
2079
2080         * gdbtypes.c (type_length_units): New function.
2081         * gdbtypes.h (type_length_units): New declaration.
2082         (struct type) <length>: Update comment.
2083
2084 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
2085
2086         * valprint.c (generic_val_print): Factor out complex
2087         printing code to ...
2088         (generic_val_print_complex): ... this new function.
2089
2090 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
2091
2092         * valprint.c (generic_val_print): Factor out decfloat
2093         printing code to ...
2094         (generic_val_print_decfloat): ... this new function.
2095
2096 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
2097
2098         * valprint.c (generic_val_print): Factor out float
2099         printing code to ...
2100         (generic_val_print_float): ... this new function.
2101
2102 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
2103
2104         * valprint.c (generic_val_print): Factor out char
2105         printing code to ...
2106         (generic_val_print_char): ... this new function.
2107
2108 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
2109
2110         * valprint.c (generic_val_print): Factor out integer
2111         printing code to ...
2112         (generic_val_print_int): ... this new function.
2113
2114 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
2115
2116         * valprint.c (generic_val_print): Factor out bool
2117         printing code to ...
2118         (generic_val_print_bool): ... this new function.
2119
2120 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
2121
2122         * valprint.c (generic_val_print): Factor out function/method
2123         printing code to ...
2124         (generic_val_print_func): ... this new function.
2125
2126 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
2127
2128         * valprint.c (generic_val_print): Factor out flags
2129         printing code to ...
2130         (generic_val_print_flags): ... this new function.
2131
2132 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
2133
2134         * valprint.c (generic_val_print): Factor out enum
2135         printing code to ...
2136         (generic_val_print_enum): ... this new function.
2137
2138 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
2139
2140         * valprint.c (generic_val_print): Factor out reference
2141         printing code to ...
2142         (generic_val_print_ref): ... this new function.
2143
2144 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
2145
2146         * valprint.c (generic_val_print): Factor out memberptr
2147         printing code to ...
2148         (generic_val_print_memberptr): ... this new function.
2149
2150 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
2151
2152         * valprint.c (generic_val_print): Factor out pointer
2153         printing code to ...
2154         (generic_val_print_ptr): ... this new function.
2155
2156 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
2157
2158         * valprint.c (generic_val_print): Factor out array
2159         printing code to ...
2160         (generic_val_print_array): ... this new function.
2161
2162 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
2163
2164         * valprint.c (generic_val_print): Factor out
2165         print_unpacked_pointer code to ...
2166         (print_unpacked_pointer): ... this new function.
2167
2168 2015-07-27  Patrick Palka  <patrick@parcs.ath.cx>
2169
2170         * event-top.c (handle_sigterm): Don't inspect
2171         target_can_async_p.  Always set the quit flag and always mark
2172         the async signal handler.
2173
2174 2015-07-27  Yao Qi  <yao.qi@linaro.org>
2175
2176         * Makefile.in (REMOTE_EXAMPLES): Remove it.
2177
2178 2015-07-25  Kevin Buettner  <kevinb@redhat.com>
2179
2180         * remote.c (read_ptid): Return null_ptid when no thread id
2181         is found.
2182         (remote_current_thread): Add log warning for malformed
2183         qC reply.
2184         (remote_start_remote): Add log warning when current thread
2185         not found.
2186
2187 2015-07-24  Pedro Alves  <palves@redhat.com>
2188
2189         * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
2190         (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
2191         forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
2192
2193 2015-07-24  Pedro Alves  <palves@redhat.com>
2194
2195         PR gdb/18717
2196         * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
2197         is resumed, and extend the debug log.
2198
2199 2015-07-24  Pedro Alves  <palves@redhat.com>
2200
2201         * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
2202
2203 2015-07-24  Pedro Alves  <palves@redhat.com>
2204
2205         * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
2206         sys/ptrace.h.
2207         * alpha-linux-nat.c: Likewise.
2208         * amd64-linux-nat.c: Likewise.
2209         * arm-linux-nat.c: Likewise.
2210         * hppa-linux-nat.c: Likewise.
2211         * i386-linux-nat.c: Likewise.
2212         * ia64-linux-nat.c: Likewise.
2213         * linux-fork.c: Likewise.
2214         * linux-nat.c: Likewise.
2215         * m32r-linux-nat.c: Likewise.
2216         * m68klinux-nat.c: Likewise.
2217         * mips-linux-nat.c: Likewise.
2218         * nat/linux-btrace.c: Likewise.
2219         * nat/linux-ptrace.c: Likewise.
2220         * nat/linux-ptrace.h
2221         * nat/mips-linux-watch.c: Likewise.
2222         * nat/x86-linux-dregs.c: Likewise.
2223         * ppc-linux-nat.c: Likewise.
2224         * s390-linux-nat.c: Likewise.
2225         * spu-linux-nat.c: Likewise.
2226         * tilegx-linux-nat.c: Likewise.
2227         * x86-linux-nat.c: Likewise.
2228         * xtensa-linux-nat.c: Likewise.
2229
2230 2015-07-24  Pedro Alves  <palves@redhat.com>
2231
2232         * ptrace.m4 (ptrace tests): Test in C++ mode.  Try with 'enum
2233         __ptrace_request as first parameter type instead of int.
2234         (PTRACE_TYPE_ARG1): Define.
2235         * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
2236         that casts first argument to PTRACE_TYPE_ARG1.
2237         * config.in: Regenerate.
2238         * configure: Regenerate.
2239
2240 2015-07-24  Pedro Alves  <palves@redhat.com>
2241
2242         * gdb_ptrace.h: Move ...
2243         * nat/gdb_ptrace.h: ... here.
2244         * inf-ptrace.c: Adjust.
2245
2246 2015-07-24  Pedro Alves  <palves@redhat.com>
2247
2248         * acinclude.m4: Include ptrace.m4.
2249         * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
2250         * ptrace.m4: ... to this new file.
2251
2252 2015-07-23  Doug Evans  <dje@google.com>
2253
2254         * dwarf2read.c (dwarf2_per_cu_data): Add comment.
2255         (load_cu): Handle dummy CUs.
2256         (dw2_do_instantiate_symtab, process_queuef): Ditto.
2257         (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
2258
2259 2015-07-23  Ciro Santilli  <ciro.santilli@gmail.com>  (tiny patch)
2260
2261         * py-linetable.c (ltpy_get_all_source_lines): Adjust function
2262         documentation to say that it returns a list rather than
2263         a FrozenSet.
2264         (linetable_object_methods): Update the docstring of the
2265         "source_line" entry.
2266
2267 2015-07-23  Pierre-Marie de Rodat  <derodat@adacore.com>
2268
2269         * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
2270         type to the recursive call instead of the original (maybe
2271         TYPE_CODE_TYPEDEF) type.
2272
2273 2015-07-23  Yao Qi  <yao.qi@linaro.org>
2274
2275         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
2276         TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
2277         If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
2278
2279 2015-07-21  Yao Qi  <yao.qi@linaro.org>
2280
2281         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
2282         Move it to nat/aarch64-linux-hw-point.c.
2283         (aarch64_linux_child_post_startup_inferior): Update.
2284         * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
2285         New function.
2286         * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
2287         Declare it.
2288
2289 2015-07-21  Markus Metzger  <markus.t.metzger@intel.com>
2290
2291         * common/btrace-common.c (btrace_data_append): Change case label.
2292
2293 2015-07-20  Yao Qi  <yao.qi@linaro.org>
2294
2295         * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
2296         Re-indent the code.
2297         * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
2298         "unsigned long long".
2299
2300 2015-07-18  Kevin Buettner  <kevinb@redhat.com>
2301
2302         * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
2303         to be set for SEC_ALLOC sections too.
2304
2305 2015-07-17  Yao Qi  <yao.qi@linaro.org>
2306
2307         * Makefile.in (HFILES_NO_SRCDIR): Add
2308         nat/aarch64-linux-hw-point.h.
2309         (aarch64-linux-hw-point.o): New rule.
2310         * nat/aarch64-linux-hw-point.h: New file.
2311         * nat/aarch64-linux-hw-point.c: New file.
2312         * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
2313         (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
2314         (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
2315         (AARCH64_HWP_ALIGNMENT): Likewise.
2316         (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
2317         (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
2318         (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
2319         (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
2320         (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
2321         (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
2322         (struct aarch64_debug_reg_state): Likewise.
2323         (struct arch_lwp_info): Likewise.
2324         (aarch64_linux_set_debug_regs): Likewise.
2325         (aarch64_notify_debug_reg_change): Remove static.
2326         (aarch64_align_watchpoint): Likewise.
2327         (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
2328         (aarch64_watchpoint_length): Likewise.
2329         (aarch64_point_encode_ctrl_reg): Likewise
2330         (aarch64_point_is_aligned): Likewise.
2331         (aarch64_dr_state_insert_one_point): Likewise.
2332         (aarch64_dr_state_remove_one_point): Likewise.
2333         (aarch64_handle_breakpoint): Likewise.
2334         (aarch64_handle_aligned_watchpoint): Likewise.
2335         (aarch64_handle_unaligned_watchpoint): Likewise.
2336         (aarch64_handle_watchpoint): Likewise.
2337         * config/aarch64/linux.mh (NAT_FILE): Add
2338         aarch64-linux-hw-point.o.
2339
2340 2015-07-17  Yao Qi  <yao.qi@linaro.org>
2341
2342         * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
2343         state and don't call aarch64_get_debug_reg_state.  All callers
2344         update.
2345         (aarch64_linux_insert_hw_breakpoint): Call
2346         aarch64_get_debug_reg_state earlier.
2347         (aarch64_linux_remove_hw_breakpoint): Likewise.
2348         (aarch64_handle_aligned_watchpoint): Add argument state and
2349         don't call aarch64_get_debug_reg_state.  All callers update.
2350         (aarch64_handle_unaligned_watchpoint): Likewise.
2351         (aarch64_handle_watchpoint): Add argument state.
2352         (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
2353         earlier.
2354         (aarch64_linux_remove_watchpoint): Likewise.
2355
2356 2015-07-17  Yao Qi  <yao.qi@linaro.org>
2357
2358         * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
2359         debug_printf.
2360         (aarch64_handle_unaligned_watchpoint): Likewise.
2361
2362 2015-07-17  Yao Qi  <yao.qi@linaro.org>
2363
2364         * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
2365         argument type's type to 'enum target_hw_bp_type'.
2366         (aarch64_dr_state_remove_one_point): Likewise.
2367         (aarch64_handle_breakpoint): Likewise.
2368         (aarch64_linux_insert_hw_breakpoint): Likewise.
2369         (aarch64_linux_remove_hw_breakpoint): Likewise.
2370         (aarch64_handle_aligned_watchpoint): Likewise.
2371
2372 2015-07-17  Yao Qi  <yao.qi@linaro.org>
2373
2374         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
2375         ptid_get_pid instead of get_thread_id.
2376
2377 2015-07-17  Yao Qi  <yao.qi@linaro.org>
2378
2379         * remote.c (get_current_thread): Initialise ptid to null_ptid.
2380         (add_current_inferior_and_thread): Don't initialise ptid.
2381
2382 2015-07-16  Pierre Langlois  <pierre.langlois@arm.com>
2383
2384         * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
2385         unavailable if invalid.
2386
2387 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2388
2389         Revert the previous 6 commits:
2390         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
2391         Move gdb_regex* to common/
2392         Prepare linux_find_memory_regions_full & co. for move
2393         Move linux_find_memory_regions_full & co.
2394         gdbserver build-id attribute generator
2395         Validate symbol file using build-id
2396
2397 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
2398             Jan Kratochvil  <jan.kratochvil@redhat.com>
2399
2400         Validate symbol file using build-id.
2401         * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
2402         and 'show validate-build-id'.  Add build-id attribute.
2403         * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
2404         * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
2405         * solib-frv.c (_initialize_frv_solib): Ditto.
2406         * solib-spu.c (set_spu_solib_ops): Ditto.
2407         * solib-svr4.c: Include rsp-low.h.
2408         (NOTE_GNU_BUILD_ID_NAME): New define.
2409         (svr4_validate): New function.
2410         (svr4_copy_library_list): Duplicate field build_id.
2411         (library_list_start_library): Parse 'build-id' attribute.
2412         (svr4_library_attributes): Add 'build-id' attribute.
2413         (_initialize_svr4_solib): Assign validate value.
2414         * solib-target.c (solib.h): Include.
2415         (_initialize_solib_target): Assign validate value.
2416         * solib.c (validate_build_id, show_validate_build_id): New.
2417         (solib_map_sections): Use ops->validate.
2418         (clear_so): Free build_id.
2419         (default_solib_validate): New function.
2420         (_initialize_solib): Add "validate-build-id".
2421         * solib.h (default_solib_validate): New declaration.
2422         * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
2423         (target_so_ops): New field 'validate'.
2424
2425 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
2426             Jan Kratochvil  <jan.kratochvil@redhat.com>
2427
2428         gdbserver build-id attribute generator.
2429         * features/library-list-svr4.dtd (library-list-svr4): New
2430         'build-id' attribute.
2431
2432 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
2433             Jan Kratochvil  <jan.kratochvil@redhat.com>
2434
2435         Move linux_find_memory_regions_full & co.
2436         * linux-tdep.c (nat/linux-maps.h): Include.
2437         (gdb_regex.h): Remove the include.
2438         (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
2439         (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
2440         (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
2441         (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
2442         * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
2443         and target/target.h.
2444         (struct smaps_vmflags, read_mapping, decode_vmflags)
2445         (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
2446         (linux_find_memory_regions_full): Move from linux-tdep.c.
2447         * nat/linux-maps.h (read_mapping): New declaration.
2448         (linux_find_memory_region_ftype, enum filterflags): Moved from
2449         linux-tdep.c.
2450         (linux_find_memory_regions_full): New declaration.
2451         * target.c (target/target-utils.h): Include.
2452         (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
2453         (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
2454         definitions to target/target-utils.c.
2455         * target.h (target_fileio_read_stralloc): Move it to target/target.h.
2456         * target/target-utils.c (read_alloc, read_stralloc): Move definitions
2457         from target.c.
2458         * target/target-utils.h (read_alloc_pread_ftype): New typedef.
2459         (read_alloc): New declaration.
2460         (read_stralloc_func_ftype): New typedef.
2461         (read_stralloc): New declaration.
2462         * target/target.h (target_fileio_read_stralloc): Move it from target.h.
2463
2464 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
2465             Jan Kratochvil  <jan.kratochvil@redhat.com>
2466
2467         Prepare linux_find_memory_regions_full & co. for move.
2468         * linux-tdep.c (linux_find_memory_region_ftype): Comment.
2469         (linux_find_memory_regions_full): Change signature and prepare
2470         for moving to linux-maps.
2471         (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
2472         (linux_find_memory_regions_thunk): New.
2473         (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
2474         (linux_find_memory_regions_gdb): New.
2475         (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
2476         (linux_make_mappings_corefile_notes): Use
2477         linux_find_memory_regions_gdb.
2478         * target.c (read_alloc_pread_ftype): New typedef.
2479         (target_fileio_read_alloc_1_pread): New function.
2480         (read_alloc): Refactor from target_fileio_read_alloc_1.
2481         (read_stralloc_func_ftype): New typedef.
2482         (target_fileio_read_alloc_1): New implementation. Use read_alloc.
2483         (read_stralloc): Refactored from target_fileio_read_stralloc.
2484         (target_fileio_read_stralloc): New implementation, use read_stralloc.
2485
2486 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2487
2488         * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
2489         common/gdb_regex.h.
2490         (COMMON_OBS): Add gdb_regex.o.
2491         (gdb_regex.o): New.
2492         * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
2493         --without-included-regex and USE_INCLUDED_REGEX.
2494         * common/gdb_regex.c: New file from utils.c functions.
2495         * common/gdb_regex.h: Move it here from gdb_regex.h, update include
2496         file wrapping define name.
2497         * configure: Rebuilt.
2498         * configure.ac (gdb_use_included_regex, --without-included-regex)
2499         (USE_INCLUDED_REGEX): Move them to common/common.m4.
2500         * gdb_regex.h: Move it to common/gdb_regex.h.
2501         * utils.c: Remove include gdb_regex.h.
2502         (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
2503         (compile_rx_or_error): Move them to common/gdb_regex.c.
2504
2505 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
2506             Jan Kratochvil  <jan.kratochvil@redhat.com>
2507
2508         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
2509         * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
2510         common/target-utils.h.
2511         (COMMON_OBS): Add target-utils.o.
2512         (linux-maps.o, target-utils.o): New.
2513         * target/target-utils.c: New file.
2514         * target/target-utils.h: New file.
2515         * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
2516         * config/i386/linux64.mh (NATDEPFILES): Ditto.
2517         * nat/linux-maps.c: New file.
2518         * nat/linux-maps.h: New file.
2519
2520 2015-07-15  Markus Metzger  <markus.t.metzger@intel.com>
2521             Pedro Alves <palves@redhat.com>
2522
2523         * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
2524         (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
2525         (perf_event_read_bts): Change the type of SIZE and READ.
2526         (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
2527         and DATA_OFFSET.  Move DATA_SIZE declaration.  Restrict the buffer size
2528         to UINT_MAX.  Check for overflows when using DATA_HEAD from the perf
2529         mmap page.
2530         (linux_enable_pt): Change the type of PAGES and SIZE.  Restrict the
2531         buffer size to UINT_MAX.
2532         (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
2533         DATA_TAIL.
2534         * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
2535         <last_head>: Change type.
2536         * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
2537         * common/btrace-common.c (btrace_data_append): Change the type of
2538         SIZE.
2539         * btrace.c (parse_xml_raw): Change the type of SIZE.  Change oddness
2540         check.
2541
2542 2015-07-14  Simon Marchi  <simon.marchi@ericsson.com>
2543
2544         * gdbtypes.h (CHECK_TYPEDEF): Remove.
2545         * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
2546         with check_typedef.
2547         * ada-lang.c (decode_constrained_packed_array_type): Likewise.
2548         (ada_array_length): Likewise.
2549         (find_parallel_type_by_descriptive_type): Likewise.
2550         (ada_check_typedef): Likewise.
2551         * arm-tdep.c (arm_return_in_memory): Likewise.
2552         * ax-gdb.c (gen_trace_static_fields): Likewise.
2553         (gen_struct_ref_recursive): Likewise.
2554         * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
2555         (variable: block COLONCOLON name): Likewise.
2556         (qualified_name: TYPENAME COLONCOLON name): Likewise.
2557         * c-lang.c (classify_type): Likewise.
2558         * c-typeprint.c (c_print_type): Likewise.
2559         (c_print_typedef): Likewise.
2560         (c_type_print_base): Likewise.
2561         * c-valprint.c (c_val_print): Likewise.
2562         * compile/compile-c-types.c (convert_type): Likewise.
2563         * compile/compile-object-load.c (get_out_value_type): Likewise.
2564         * completer.c (add_struct_fields): Likewise.
2565         (expression_completer): Likewise.
2566         * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
2567         (cp_lookup_nested_symbol_1): Likewise.
2568         (cp_lookup_nested_symbol): Likewise.
2569         * cp-valprint.c (cp_print_value_fields): Likewise.
2570         (cp_print_static_field): Likewise.
2571         * d-valprint.c (d_val_print): Likewise.
2572         * eval.c (evaluate_subexp_standard): Likewise.
2573         (evaluate_subexp_for_sizeof): Likewise.
2574         * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
2575         * f-typeprint.c (f_type_print_base): Likewise.
2576         * f-valprint.c (f_val_print): Likewise.
2577         * gdbtypes.c (get_discrete_bounds): Likewise.
2578         (create_array_type_with_stride): Likewise.
2579         (type_name_no_tag_or_error): Likewise.
2580         (lookup_struct_elt_type): Likewise.
2581         (get_unsigned_type_max): Likewise.
2582         (internal_type_vptr_fieldno): Likewise.
2583         (set_type_vptr_fieldno): Likewise.
2584         (internal_type_vptr_basetype): Likewise.
2585         (set_type_vptr_basetype): Likewise.
2586         (get_vptr_fieldno): Likewise.
2587         (is_integral_type): Likewise.
2588         (is_scalar_type): Likewise.
2589         (is_scalar_type_recursive): Likewise.
2590         (distance_to_ancestor): Likewise.
2591         (is_unique_ancestor_worker): Likewise.
2592         (check_types_equal): Likewise.
2593         * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
2594
2595 2015-07-14  Iain Buclaw  <ibuclaw@gdcproject.org>
2596
2597         * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
2598         also test for language_d.
2599         (dwarf2_compute_name): Likewise.
2600         (read_func_scope): Likewise.
2601         (read_structure_type): Likewise.
2602         (new_symbol_full): Likewise.
2603         (determine_prefix): Likewise.
2604         (read_import_statement): Use dot as the separator for language_d.
2605         (typename_concat): Likewise, but don't prefix the D main function.
2606
2607 2015-07-14  Peter Bergner  <bergner@vnet.ibm.com>
2608
2609         * nat/linux-namespaces.c (setns): Rename from this ...
2610         (do_setns): ... to this.  Support calling setns if it exists.
2611         (mnsh_handle_setns): Call do_setns.
2612
2613 2015-07-13  Yao Qi  <yao.qi@linaro.org>
2614
2615         * exec.c (exec_file_attach): Add period at the end of error
2616         message.
2617
2618 2015-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
2619
2620         * tui/tui-win.c (window_name_completer): New function.
2621         (focus_completer): Call window_name_completer.  All old content
2622         moved into window_name_completer.
2623         (winheight_completer): New function.
2624         (_initialize_tui_win): Rename variable.  Add completer to
2625         winheight command.  Update doc string on winheight.
2626
2627 2015-07-12  Sandra Loosemore  <sandra@codesourcery.com>
2628
2629         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
2630         all nios2 mach variants.
2631
2632 2015-07-10  Kevin Buettner  <kevinb@redhat.com>
2633
2634         * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
2635         of target_read_memory.
2636
2637 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
2638
2639         * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
2640         string copy.
2641         (parse_scrolling_args): Likewise.
2642
2643 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
2644
2645         * tui/tui-win.c (focus_completer): Don't duplicate the tui window
2646         names in this function.
2647
2648 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
2649
2650         * tui/tui-data.h (SRC_NAME): Convert to lower case.
2651         (CMD_NAME): Likewise.
2652         (DATA_NAME): Likewise.
2653         (DISASSEM_NAME): Likewise.
2654         * tui/tui-win.c (tui_set_focus): Window names are now lower case.
2655         (tui_set_win_height): Likewise.
2656         (parse_scrolling_args): Likewise.
2657
2658 2015-07-10  Markus Metzger  <markus.t.metzger@intel.com>
2659
2660         * record-btrace.c (record_btrace_goto_begin)
2661         (record_btrace_goto_end, record_btrace_goto): Move call to
2662         print_stack_frame ...
2663         (record_btrace_set_replay): ... here.  Set stop_pc.
2664         * record-full.c (record_full_goto_entry): Set stop_pc.
2665
2666 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
2667
2668         * NEWS: Mention support for tracepoints on aarch64-linux.
2669
2670 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
2671
2672         * linux-aarch64-low.c (aarch64_supports_tracepoints): New
2673         function.  Return 1.
2674         (the_low_target): Install it.
2675
2676 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
2677
2678         * gdb.trace/backtrace.exp: Set registers for aarch64 target.
2679         * gdb.trace/collection.exp: Likewise.
2680         * gdb.trace/mi-trace-frame-collected.exp: Likewise.
2681         * gdb.trace/mi-trace-unavailable.exp: Likewise.
2682         * gdb.trace/report.exp: Likewise.
2683         * gdb.trace/trace-break.exp: Likewise.
2684         * gdb.trace/unavailable.exp: Likewise.
2685         * gdb.trace/while-dyn.exp: Likewise.
2686
2687 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
2688
2689         * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
2690         (aarch64_gen_return_address): New function.
2691         (aarch64_gdbarch_init): Hook it.
2692
2693 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
2694
2695         * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
2696         swallow NOT_AVAILABLE_ERROR.
2697         (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
2698         available_p is not set.
2699         (aarch64_stub_frame_unwind_stop_reason): New function.
2700         (aarch64_stub_unwind): Install it.
2701
2702 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
2703
2704         * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
2705         field.
2706         (aarch64_make_prologue_cache_1): New function, factored out from
2707         aarch64_make_prologue_cache.  Do not allocate cache.  Set
2708         available_p.
2709         (aarch64_make_prologue_cache): Reimplement wrapping
2710         aarch64_make_prologue_cache_1, and swallowing
2711         NOT_AVAILABLE_ERROR.
2712         (aarch64_prologue_frame_unwind_stop_reason): New function.
2713         Return UNWIND_UNAVAILABLE if available_p is not set.
2714         (aarch64_prologue_unwind): Install it.
2715         (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
2716         checks into aarch64_prologue_frame_unwind_stop_reason.  Call
2717         frame_id_build_unavailable_stack if available_p is not set.
2718
2719 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
2720
2721         * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
2722         fields.
2723         (aarch64_scan_prologue): Set prev_pc.
2724         (aarch64_make_prologue_cache): Set func.
2725         (aarch64_make_stub_cache): Set prev_pc.
2726         (aarch64_prologue_this_id): Remove local variables id, pc and
2727         func.  Read prev_pc and func from cache.
2728         (aarch64_stub_this_id): Read prev_pc from cache.
2729
2730 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
2731
2732         * aarch64-tdep.c (aarch64_make_stub_cache): Update comment.  New
2733         argument this_cache.  Remove unused local variables reg and
2734         unwound_fp.  Return early if this_cache is already set.  Set
2735         this_cache.
2736         (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
2737
2738 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
2739
2740         * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
2741         New argument this_cache.  Return early if this_cache is already
2742         set.  Set this_cache.
2743         (aarch64_prologue_this_id): Update call to
2744         aarch64_make_prologue_cache.
2745         (aarch64_prologue_prev_register): Likewise.
2746         (aarch64_normal_frame_base): Likewise.
2747
2748 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
2749
2750         * c-valprint.c (c_val_print): Factor out memberptr printing code
2751         from c_val_print to ...
2752         (c_val_print_memberptr): ... this new function.
2753
2754 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
2755
2756         * c-valprint.c (c_val_print): Factor out int printing code to ...
2757         (c_val_print_int): ... this new function.
2758
2759 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
2760
2761         * c-valprint.c (c_val_print): Factor out struct and union
2762         printing code to ...
2763         (c_val_print_struct): ... this new function ...
2764         (c_val_print_union): ... and this new function.
2765
2766 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
2767
2768         * c-valprint.c (c_val_print): Factor out pointer printing code
2769         to ...
2770         (c_val_print_ptr): ... this new function.
2771
2772 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
2773
2774         * c-valprint.c (c_valprint): Factor our array printing code from
2775         c_val_print to ...
2776         (c_val_print_array): ... this new function.
2777
2778 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
2779
2780         * c-valprint.c (c_val_print): Factor out pointer printing code
2781         to ...
2782         (print_unpacked_pointer): ... this new function.
2783
2784 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
2785
2786         * c-valprint.c (c_val_print): Remove an assignment to i and move
2787         its declaration.
2788
2789 2015-07-09  Yao Qi  <yao.qi@linaro.org>
2790
2791         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
2792         argument ptid.  Update comments.  Caller update.
2793
2794 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
2795
2796         * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
2797         mnt packets.
2798
2799 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
2800
2801         * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
2802
2803 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
2804
2805         * progspace.c (delete_program_space): Add missing spaces.
2806
2807 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
2808
2809         * inferior.c (delete_inferior_1): Rename to ...
2810         (delete_inferior): ..., remove 'silent' parameter, delete
2811         program space when unused and remove call to prune_program_spaces.
2812         Remove the old, unused, delete_inferior.
2813         (delete_inferior_silent): Remove.
2814         (prune_inferiors): Change call from delete_inferior_1 to
2815         delete_inferior and remove 'silent' parameter. Remove call to
2816         prune_program_spaces.
2817         (remove_inferior_command): Idem.
2818         * inferior.h (delete_inferior_1): Rename to...
2819         (delete_inferior): ..., remove 'silent' parameter and remove the
2820         original delete_inferior.
2821         (delete_inferior_silent): Remove.
2822         * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
2823         delete_inferior_1 to delete_inferior and remove 'silent'
2824         parameter.
2825         * progspace.c (prune_program_spaces): Remove.
2826         (pspace_empty_p): Rename to...
2827         (program_space_empty_p): ... and make non-static.
2828         (delete_program_space): New.
2829         * progspace.h (prune_program_spaces): Remove declaration.
2830         (program_space_empty_p): New declaration.
2831         (delete_program_space): New declaration.
2832         * monitor.c (monitor_close): Replace call to
2833         delete_thread_silent and delete_inferior_silent with
2834         discard_all_inferiors.
2835
2836 2015-07-08  Patrick Palka  <patrick@parcs.ath.cx>
2837
2838         * defs.h (deprecated_register_changed_hook): Remove prototype.
2839         * interps.c (clear_iterpreter_hooks): Remove reference to
2840         deprecated_register_changed_hook.
2841         * top.c (deprecated_register_changed_hook): Remove prototype.
2842         * valops.c (value_assign): Remove reference to
2843         deprecated_register_changed_hook.
2844         * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
2845         Add comment documenting the function.
2846         (tui_register_changed_observer): Define.
2847         (tui_install_hooks): Remove reference to
2848         deprecated_register_changed_hook.  Set
2849         tui_register_changed_observer.
2850         (tui_remove_hooks): Remove reference to
2851         deprecated_register_changed_hook.  Unset
2852         tui_register_changed_observer.
2853
2854 2015-07-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
2855
2856         PR compile/18484
2857         * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
2858
2859 2015-07-08  Robert O'Callahan  <robert@ocallahan.org>
2860
2861         PR exp/18617
2862         * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
2863
2864 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
2865
2866         * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
2867
2868 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
2869
2870         * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
2871         Use safe_strerror() instead of strerror().
2872
2873 2015-07-07  Yao Qi  <yao.qi@linaro.org>
2874
2875         * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
2876         * features/arm-with-m-fpa-layout.c: Regenerated.
2877         * features/arm-with-m-vfp-d16.xml: Likewise.
2878         * features/arm-with-m-vfp-d16.c: Regenerated.
2879         * features/arm-with-m.xml: Likewise.
2880         * features/arm-with-m.c: Regenerated.
2881         * features/arm-with-neon.xml: Likewise.
2882         * features/arm-with-neon.c: Regenerated.
2883         * features/arm-with-vfpv2.xml: Likewise.
2884         * features/arm-with-vfpv2.c: Regenerated.
2885         * features/arm-with-vfpv3.xml: Likewise.
2886         * features/arm-with-vfpv3.c: Regenerated.
2887
2888 2015-07-07  Yao Qi  <yao.qi@linaro.org>
2889
2890         * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
2891         arm-linux-nat.c.
2892         * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
2893         elf/external.h.
2894         (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
2895         if target is 32-bit.
2896         (store_gregs_to_thread): Call aarch32_gp_regcache_collect
2897         if target is 32-bit.
2898         (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
2899         if target is 32-bit.
2900         (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
2901         if target is 32-bit.
2902         (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
2903         (aarch64_linux_read_description): Return the right target
2904         description.
2905         * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
2906         * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
2907         * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
2908         arm-linux-tdep.o.
2909
2910 2015-07-07  Yao Qi  <yao.qi@linaro.org>
2911
2912         * aarch32-linux-nat.c: New file.
2913         * aarch32-linux-nat.h: New file.
2914         * arm-linux-nat.c: Include aarch32-linux-nat.h.
2915         (fetch_regs): Move code to aarch32-linux-nat.c.  Call
2916         aarch32_gp_regcache_supply.
2917         (store_regs): Move code to aarch32-linux-nat.c.  Call
2918         aarch32_gp_regcache_collect.
2919         (fetch_vfp_regs): Move code to aarch32-linux-nat.c.  Call
2920         aarch32_vfp_regcache_supply.
2921         (store_vfp_regs): Move code to aarch32-linux-nat.c.  Call
2922         aarch32_vfp_regcache_collect.
2923         * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
2924
2925 2015-07-07  Yao Qi  <yao.qi@linaro.org>
2926
2927         * arm-linux-nat.c (store_fpregister): Remove.
2928         (store_register): Likewise.
2929         (fetch_fpregister): Likewise.
2930         (fetch_register): Likewise.
2931         (arm_linux_store_inferior_registers): Call store_regs and
2932         store_fpregs instead.
2933         (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
2934         fetch_regs instead.
2935
2936 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
2937
2938         * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
2939         and focus commands.
2940
2941 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
2942
2943         * NEWS: Create a new section for the next release branch.
2944         Rename the section of the current branch, now that it has
2945         been cut.
2946
2947 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
2948
2949         GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
2950         * version.in: Bump version to 7.10.50.DATE-cvs.
2951
2952 2015-07-06  Luis Machado  <lgustavo@codesourcery.com>
2953
2954         * breakpoint.c (remove_breakpoint_1): Don't handle permanent
2955         breakpoints in a special way.
2956         (remove_breakpoint): Likewise.
2957         (mark_breakpoints_out): Likewise.
2958
2959 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
2960
2961         * doc/gdb.texinfo (TUI): Add comma after @xref.
2962
2963 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
2964
2965         * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
2966         instead of casting the structure type.
2967
2968 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
2969
2970         * valops.c (search_struct_field): Remove OFFSET parameter.
2971         (value_cast_structs): Adjust calls to search_struct_field.
2972         (value_struct_elt): Same.
2973         (find_overload_match): Same.
2974
2975 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
2976
2977         * value.c (value_fetch_lazy): Update comment, change return
2978         value to void.
2979         * value.h (value_fetch_lazy): Change return value to void.
2980
2981 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
2982
2983         * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
2984         (tui_win_name): Make parameter and result const.
2985         * tui/tui-data.h (tui_win_name): Make parameter and result const.
2986
2987 2015-07-06  Patrick Palka  <patrick@parcs.ath.cx>
2988
2989         * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
2990         use printf_unfiltered.
2991         (set_mpx_cmd): Add missing trailing space to command string
2992         literal.
2993         (_initialize_i386_tdep): Give the "mpx" prefix command its
2994         correct name.
2995
2996 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
2997
2998         * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
2999         (enum rx_frame_type): New.
3000         (struct rx_prologue): Add new field `frame_type'.
3001         (rx_analyze_prologue): Add `frame_type' parameter. Cache this
3002         parameter in the prologue struct.  Add code for recording
3003         locations of PC and PSW for fast interrupt and exception frames.
3004         (rx_skip_prologue): Adjust call to rx_analyze_prologue.
3005         (rx_analyze_frame_prologue): Add `frame_type' parameter.
3006         (rx_frame_type): New function.
3007         (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
3008         (rx_frame_this_id): Rename parameter `this_prologue_cache' to
3009         `this_cache'.
3010         (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
3011         `this_cache'.  Add cases for RX_FRAME_TYPE_EXCEPTION and
3012         RX_FRAME_TYPE_FAST_INTERRUPT.
3013         (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
3014         (rx_frame_sniffer, rx_exception_sniffer): New functions.
3015         (rx_frame_unwind): Use rx_frame_sniffer instead of
3016         default_frame_sniffer.
3017         (rx_frame_unwind): New unwinder.
3018         (rx_gdbarch_init): Register new unwinder.
3019
3020 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
3021
3022         * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
3023         (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
3024         (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
3025         and RX_FPSW_REGNUM.
3026         (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
3027
3028 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3029
3030         Fix GCC false warning.
3031         * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
3032
3033 2015-07-02  Yao Qi  <yao.qi@linaro.org>
3034
3035         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
3036         typo in the debugging message.
3037
3038 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
3039
3040         * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
3041         (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
3042         (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
3043         (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
3044         (btrace_maint_clear): New.
3045         (btrace_fetch, btrace_clear): Call btrace_maint_clear.
3046         (pt_print_packet, btrace_maint_decode_pt)
3047         (btrace_maint_update_pt_packets, btrace_maint_update_packets)
3048         (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
3049         (maint_btrace_packet_history_cmd)
3050         (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
3051         (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
3052         (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
3053         (maint_info_btrace_cmd, _initialize_btrace): New.
3054         * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
3055         (btrace_maint_packet_history, btrace_maint_info): New.
3056         (btrace_thread_info) <maint>: New.
3057         * NEWS: Announce it.
3058
3059 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
3060
3061         * btrace.c (btrace_fetch): Append the new trace data.
3062         (btrace_clear): Clear the stored trace data.
3063         * btrace.h (btrace_thread_info) <data>: New.
3064         * common/btrace-common.h (btrace_data_clear)
3065         (btrace_data_append): New.
3066         * common/btrace-common.c (btrace_data_clear)
3067         (btrace_data_append): New.
3068
3069 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
3070
3071         * nat/linux-btrace.c (linux_enable_bts): Check for
3072         PERF_ATTR_SIZE_VER5.
3073         Check for data_offset and data_size fields.  Use them.
3074
3075 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
3076
3077         * NEWS: Announce new commands "record btrace pt" and "record pt".
3078         Announce new options "set|show record btrace pt buffer-size".
3079         * btrace.c: Include "rsp-low.h".
3080         Include "inttypes.h".
3081         (btrace_add_pc): Add forward declaration.
3082         (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
3083         (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
3084         (btrace_compute_ftrace_pt): New.
3085         (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
3086         (check_xml_btrace_version): Update version check.
3087         (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
3088         (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
3089         (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
3090         (btrace_pt_children): New.
3091         (btrace_children): Add support for "pt".
3092         (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
3093         (btrace_conf_children): Add support for "pt".
3094         * btrace.h: Include "intel-pt.h".
3095         (btrace_pt_error): New.
3096         * common/btrace-common.c (btrace_format_string, btrace_data_fini)
3097         (btrace_data_empty): Support BTRACE_FORMAT_PT.
3098         * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
3099         (struct btrace_config_pt): New.
3100         (struct btrace_config)<pt>: New.
3101         (struct btrace_data_pt_config, struct btrace_data_pt): New.
3102         (struct btrace_data)<pt>: New.
3103         * features/btrace-conf.dtd (btrace-conf)<pt>: New.
3104         (pt): New.
3105         * features/btrace.dtd (btrace)<pt>: New.
3106         (pt, pt-config, cpu): New.
3107         * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
3108         (perf_event_pt_event_type, kernel_supports_pt)
3109         (linux_supports_pt): New.
3110         (linux_supports_btrace): Support BTRACE_FORMAT_PT.
3111         (linux_enable_bts): Free tinfo on error.
3112         (linux_enable_pt): New.
3113         (linux_enable_btrace): Support BTRACE_FORMAT_PT.
3114         (linux_disable_pt): New.
3115         (linux_disable_btrace): Support BTRACE_FORMAT_PT.
3116         (linux_fill_btrace_pt_config, linux_read_pt): New.
3117         (linux_read_btrace): Support BTRACE_FORMAT_PT.
3118         * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
3119         (struct btrace_target_info)<pt>: New.
3120         * record-btrace.c (set_record_btrace_pt_cmdlist)
3121         (show_record_btrace_pt_cmdlist): New.
3122         (record_btrace_print_pt_conf): New.
3123         (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
3124         (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
3125         (cmd_record_btrace_pt_start): New.
3126         (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
3127         (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
3128         (_initialize_record_btrace): Add new commands.
3129         * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
3130         (remote_protocol_features): Add "Qbtrace:pt".
3131         Add "Qbtrace-conf:pt:size".
3132         (remote_supports_btrace): Support BTRACE_FORMAT_PT.
3133         (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
3134         (remote_enable_btrace): Support BTRACE_FORMAT_PT.
3135         (_initialize_remote): Add new commands.
3136
3137 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
3138
3139         * configure.ac: check for libipt
3140         * configure: Regenerate.
3141         * config.in: Regenerate.
3142         * Makefile.in (LIBIPT): New.
3143         (CLIBS): Add $LIBIPT.
3144         * NEWS: document new configure options
3145
3146 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3147
3148         * compile/compile-object-load.c (compile_object_load): Replace debug
3149         message "lookup undefined ELF symbol" by 3 more specific messages.
3150
3151 2015-07-01  Kevin Buettner  <kevinb@redhat.com>
3152
3153         * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
3154         (rl78_register_type): Add case for RL78_PSW_REGNUM.
3155         (rl78_gdbarch_init): Initialize rl78_psw_type.
3156
3157 2015-07-01  Patrick Palka  <patrick@parcs.ath.cx>
3158
3159         * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
3160         Update commentary.  Always refresh the registers when frame
3161         information has changed.
3162         * tui/tui-stack.c (tui_show_frame_info): Update commentary.
3163         Change return type to int.  Return 1 if frame information has
3164         changed, 0 otherwise.
3165         (tui_before_prompt): Update commentary.
3166         * tui/tui-stack.h (tui_show_frame_info): Change return type to
3167         int.
3168
3169 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
3170
3171         PR tui/13378
3172         * frame.c (select_frame): Remove reference to
3173         deprecated_selected_frame_level_changed_hook.
3174         * frame.h (deprecated_selected_frame_level_changed_hook): Remove
3175         declaration.
3176         * stack.c (deprecated_selected_frame_level_changed_hook):
3177         Likewise.
3178         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
3179         Rename to ...
3180         (tui_refresh_frame_and_register_information): ... this.  Bail
3181         out if there is no stack.  Don't update register information
3182         unless registers_too_p is true.
3183         (tui_print_frame_info_listing_hook): Rename to ...
3184         (tui_dummy_print_frame_info_listing_hook): ... this.
3185         (tui_before_prompt): New function.
3186         (tui_normal_stop): New function.
3187         (tui_before_prompt_observer): New observer.
3188         (tui_normal_stop_observer): New observer.
3189         (tui_install_hooks): Set
3190         deprecated_print_frame_info_listing_hook to
3191         tui_dummy_print_frame_info_listing_hook.  Register
3192         tui_before_prompt_observer to call tui_before_prompt and
3193         tui_normal_stop_observer to call tui_normal_stop.  Remove
3194         reference to deprecated_selected_frame_level_changed_hook.
3195         (tui_remove_hooks): Detach and unset tui_before_prompt_observer
3196         and tui_normal_stop_observer.  Remove reference to
3197         deprecated_selected_frame_level_changed_hook.
3198
3199 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
3200
3201         PR tui/13378
3202         * tui/tui-stack.c (tui_set_locator_info): Change prototype to
3203         return an int instead of void.  Return whether the locator
3204         window has changed.
3205         (tui_show_frame_info): If the locator info has not changed, then
3206         bail out early to avoid refreshing the windows.
3207
3208 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
3209
3210         * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
3211         LOCATOR_WIN to tui_alloc_content.
3212
3213 2015-06-30  Yao Qi  <yao.qi@linaro.org>
3214
3215         PR tdep/18605
3216         * arm-tdep.c (arm_get_next_pc_raw): Break for media
3217         instructions.
3218
3219 2015-06-29  Kevin Buettner  <kevinb@redhat.com>
3220
3221         * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
3222         (rx_dwarf_reg_to_regnum): New function.
3223         (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum.  Use dwarf2
3224         unwinding.
3225
3226 2015-06-29  Pedro Alves  <palves@redhat.com>
3227
3228         PR threads/18127
3229         * infcall.c (run_inferior_call): On infcall success, if the thread
3230         was marked stopped before, reset it back to stopped.
3231         * infrun.c (resume): Don't suppress the set_running calls when
3232         doing an infcall.
3233         (normal_stop): Only discard the finish_thread_state cleanup if the
3234         infcall succeeded.
3235
3236 2015-06-29  Pierre Langlois  <pierre.langlois@arm.com>
3237
3238         * MAINTAINERS (Write After Approval): Update my email address.
3239
3240 2015-06-26  Keith Seitz  <keiths@redhat.com>
3241             Doug Evans  <dje@google.com>
3242
3243         PR 16253
3244         * block.c (block_lookup_symbol): For non-function blocks,
3245         continue to search for a symbol with an exact domain match
3246         Otherwise, return any previously found "best domain" symbol.
3247         (block_lookup_symbol_primary): Likewise.
3248
3249 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
3250
3251         * NEWS: Mention the new option "history remove-duplicates".
3252         * top.c (history_remove_duplicates): New static variable.
3253         (show_history_remove_duplicates): New static function.
3254         (gdb_add_history): Conditionally remove duplicate history
3255         entries.
3256         (init_main): Add "history remove-duplicates" option.
3257
3258 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
3259
3260         * tui/tui-win.c (focus_completer): New static function.
3261         (_initialize_tui_win): Set the completion function of the
3262         "focus" command to focus_completer.
3263
3264 2015-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
3265
3266         * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
3267         and language_asm..
3268         * symtab.c (find_function_start_sal): Likewise.
3269
3270 2015-06-25  Gary Benson  <gbenson@redhat.com>
3271
3272         * solib.c (solib_find_1): Set local variable sysroot to NULL if
3273         it is the empty string after trailing slashes have been stripped.
3274
3275 2015-06-25  Gary Benson  <gbenson@redhat.com>
3276
3277         * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
3278         * infrun.c (follow_exec): Likewise.
3279         * remote.c (remote_filesystem_is_local): Likewise.
3280         * solib.c (solib_find_1): Likewise.
3281
3282 2015-06-24  Keith Seitz  <keiths@redhat.com>
3283
3284         * build-id.c (build_id_to_debug_bfd): Add cleanup to free
3285         return value from lrealpath.
3286
3287 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
3288
3289         * remote-sim.c (gdbsim_open): Move sysroot update to the top.
3290
3291 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
3292
3293         * remote-sim.c: Include gdb_bfd.h.
3294         (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
3295         Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
3296
3297 2015-06-24  Yao Qi  <yao.qi@linaro.org>
3298
3299         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
3300         set_gdbarch_get_siginfo_type.
3301         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
3302         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
3303         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3304         * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
3305         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
3306         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
3307         * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
3308         * linux-tdep.c (linux_get_siginfo_type): Change it to static.
3309         (linux_init_abi): Call set_gdbarch_get_siginfo_type.
3310         * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
3311
3312 2015-06-24  Gary Benson  <gbenson@redhat.com>
3313
3314         * common/buffer.c (stdint.h): Do not include.
3315         * common/print-utils.c (stdint.h): Likewise.
3316         * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
3317         * compile/compile-c-types.c (gdb_assert.h): Likewise.
3318         * ft32-tdep.c (gdb_assert.h): Likewise.
3319         * guile/scm-utils.c (stdint.h): Likewise.
3320         * i386-linux-tdep.c (stdint.h): Likewise.
3321         * i386-tdep.c (stdint.h): Likewise.
3322         * nat/linux-btrace.c (stdint.h): Likewise.
3323         * nat/linux-btrace.h (stdint.h): Likewise.
3324         * nat/linux-ptrace.c (stdint.h): Likewise.
3325         * nat/mips-linux-watch.h (stdint.h): Likewise.
3326         * ppc-linux-nat.c (stdint.h): Likewise.
3327         * python/python-internal.h (stdint.h): Likewise.
3328         * stub-termcap.c (stdlib.h): Likewise.
3329         * target/target.h (stdint.h): Likewise.
3330         * xtensa-linux-nat.c (stdint.h): Likewise.
3331
3332 2015-06-23  Patrick Palka  <patrick@parcs.ath.cx>
3333
3334         * top.c (init_history): Look at errno after calling strtol to
3335         properly map large GDBHISTSIZE values to infinity.
3336
3337 2015-06-23  Doug Evans  <dje@google.com>
3338
3339         * inferior.h (struct inferior_suspend_state): Delete, unused.
3340         All references deleted.
3341
3342 2015-06-23  Mike Frysinger  <vapier@gentoo.org>
3343
3344         * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
3345         (microblaze_push_dummy_call): Likewise.
3346         (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
3347         and set_gdbarch_push_dummy_call.
3348
3349 2015-06-23  Yao Qi  <yao.qi@linaro.org>
3350
3351         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
3352         Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
3353         (amd64_linux_store_inferior_registers): Likewise.
3354         * arm-linux-nat.c (fetch_fpregister): Likewise.
3355         (fetch_fpregs, store_fpregister): Likewise.
3356         (store_fpregister, store_fpregs): Likewise.
3357         (fetch_register, fetch_regs): Likewise.
3358         (store_register, store_regs): Likewise.
3359         (fetch_vfp_regs, store_vfp_regs): Likewise.
3360         (arm_linux_read_description): Check have_ptrace_getregset is
3361         TRIBOOL_UNKNOWN.  Set have_ptrace_getregset to TRIBOOL_TRUE
3362         or TRIBOOL_FALSE.
3363         * i386-linux-nat.c (fetch_xstateregs): Check
3364         have_ptrace_getregset is not TRIBOOL_TRUE.
3365         (store_xstateregs): Likewise.
3366         * linux-nat.c (have_ptrace_getregset): Change its type to
3367         enum tribool.
3368         * linux-nat.h (tribool): New enum.
3369         * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
3370         Check whether have_ptrace_getregset is TRIBOOL_TRUE.
3371
3372 2015-06-19  Doug Evans  <dje@google.com>
3373
3374         * NEWS: Mention Sun's version of stabs is no longer supported.
3375         * elfread.c (free_elfinfo): Delete.  All uses updated.
3376         (elfstab_offset_sections): Delete.  All uses updated.
3377         * gdb-stabs.h (stab_section_info): Delete.  All uses updated.
3378         * psympriv.h (partial_symtab) <section_offsets>: Delete.
3379         All uses updated.
3380         * psymtab.c (start_psymtab_common): Delete arg section_offsets.
3381         All callers updated.
3382
3383 2015-06-18  Simon Marchi  <simon.marchi@ericsson.com>
3384
3385         * common/rsp-low.c (needs_escaping): New.
3386         (remote_escape_output): Add unit_size parameter. Refactor to
3387         support multi-byte addressable units.  Rename parameters.
3388         * common/rsp-low.h (remote_escape_output): Add unit_size
3389         parameter and rename others. Update doc.
3390         * remote.c (align_for_efficient_write): New.
3391         (remote_write_bytes_aux): Add unit_size parameter and use it.
3392         Rename some variables.  Update doc.
3393         (remote_xfer_partial): Get unit size and use it.
3394         (remote_read_bytes_1): Add unit_size parameter and use it.
3395         Rename some variables. Update doc.
3396         (remote_write_bytes): Same.
3397         (remote_xfer_live_readonly_partial): Same.
3398         (remote_read_bytes): Same.
3399         (remote_flash_write): Update call to remote_write_bytes_aux.
3400         (remote_write_qxfer): Update call to remote_escape_output.
3401         (remote_search_memory): Same.
3402         (remote_hostio_pwrite): Same.
3403
3404 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
3405
3406         * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
3407         locations as inserted.
3408         Update and expand comment about permanent locations.
3409         (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
3410         Move comment to add_location_to_breakpoint.
3411         (update_global_location_list): Don't error out if a permanent
3412         breakpoint is not marked inserted.
3413         Don't error out if a non-permanent breakpoint location is inserted on
3414         top of a permanent breakpoint.
3415
3416 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
3417
3418         * breakpoint.c (make_breakpoint_permanent): Remove unused
3419         function.
3420         * breakpoint.h (make_breakpoint_permanent): Remove declaration.
3421
3422 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
3423
3424         PR gdb/16999
3425         * NEWS: Mention new GDBHISTSIZE behavior.
3426         * top.c (init_history): For null or out-of-range GDBHISTSIZE,
3427         set history size to unlimited.  Ignore non-numeric GDBHISTSIZE.
3428
3429 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
3430
3431         * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
3432         * top.c (init_history): Read from GDBHISTSIZE instead of
3433         HISTSIZE.
3434         (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
3435
3436 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
3437
3438         * top.c (gdb_safe_append_history): Do not call
3439         history_truncate_file if the history is not stifled.
3440
3441 2015-06-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3442
3443         * syscalls/s390-linux.xml: Add syscalls 344 through 354.
3444         * syscalls/s390x-linux.xml: Likewise.
3445
3446 2015-06-16  Michael Eager  <eager@eagercon.com>
3447
3448         * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
3449
3450 2015-06-16  Patrick Palka  <patrick@parcs.ath.cx>
3451
3452         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
3453         target_terminal_ours_for_output() before calling
3454         tui_show_frame_info(), and restore the original terminal
3455         settings afterwards.
3456
3457 2015-06-16  Martin Simmons  <martin@lispworks.com>  (tiny patch)
3458
3459         * arm-linux-nat.c: Include nat/linux-ptrace.h.
3460
3461 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
3462
3463         * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
3464         memory unit size.
3465         (mi_cmd_data_write_memory_bytes): Same.
3466
3467 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
3468
3469         * corefile.c (write_memory): Update doc.
3470         * gdbcore.h (write_memory): Same.
3471
3472 2015-06-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
3473
3474         * linux-tdep.c (enum filterflags): Make it from anonymous enum.
3475         (dump_mapping_p): Use it for parameter filterflags.
3476         (linux_find_memory_regions_full): Use it for variable filterflags.
3477
3478 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
3479             Jan Kratochvil  <jan.kratochvil@redhat.com>
3480
3481         Merge multiple hex conversions.
3482         * monitor.c: Include rsp-low.h.
3483         (fromhex): Remove definition.
3484
3485 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
3486             Jan Kratochvil  <jan.kratochvil@redhat.com>
3487
3488         Move utility functions to common/.
3489         * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
3490         Move defs to common/common-utils.c.
3491         * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
3492         (skip_to_space_const): Move decls to common/common-utils.h.
3493         * common/common-defs.h: Move include of common-types.h before
3494         common-utils.h.
3495         * common/common-utils.c: Include host-defs.h and ctype.h.
3496         (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
3497         from utils.c.
3498         (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
3499         cli/cli-utils.c.
3500         * common/common-utils.h (strtoulst): Move decl from utils.h.
3501         (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
3502         Move from cli/cli-utils.h.
3503         * common/host-defs.h: Include limits.h.
3504         (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
3505         (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
3506         * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
3507         common/common-utils.h.
3508         * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
3509         (strtoulst): Move to common/common-utils.c.
3510         * utils.h (strtoulst): Moved decl to common/common-utils.h.
3511
3512 2015-06-15  Yao Qi  <yao.qi@linaro.org>
3513
3514         * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
3515
3516 2015-06-10  Jon Turney  <jon.turney@dronecode.org.uk>
3517
3518         * build-id.c: Don't include elf-bfd.h.
3519         (build_id_bfd_get): Use bfd_build_id.
3520         (build_id_verify): Ditto.
3521         * build-id.h: Ditto.
3522         (find_separate_debug_file_by_buildid): Ditto.
3523         * python/py-objfile.c: Don't include elf-bfd.h.
3524         (objfpy_get_build_id) Use bfd_build_id.
3525         (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
3526         * coffread.c: Include build-id.h.
3527         (coff_symfile_read): Try find_separate_debug_file_by_buildid.
3528
3529 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
3530
3531         * windows-nat.c (do_windows_fetch_inferior_registers)
3532         (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
3533         conditional with __CYGWIN__.
3534
3535 2015-06-13  Andrew Burgess  <andrew.burgess@embecosm.com>
3536
3537         * completer.c: Add arch-utils.h include.
3538         (enum reg_completer_targets): New enum.
3539         (reg_or_group_completer_1): New function containing old
3540         reg_or_group_completer, add and use new parameter to control what
3541         is completed on.  Use get_current_arch rather than architecture of
3542         currently selected frame.
3543         (reg_or_group_completer): Call new reg_or_group_completer_1.
3544         (reggroup_completer): Call new reg_or_group_completer_1.
3545         * completer.h (reggroup_completer): Add declaration.
3546         * tui/tui-regs.c: Add 'completer.h' include.
3547         (tui_reg_next_command): Renamed to...
3548         (tui_reg_next): ...this.  Adjust parameters and return rather than
3549         display new group.
3550         (tui_reg_prev_command): Renamed to...
3551         (tui_reg_prev): ...this.  Adjust parameters and return rather than
3552         display new group.
3553         (tui_reg_float_command): Delete.
3554         (tui_reg_general_command): Delete.
3555         (tui_reg_system_command): Delete.
3556         (tui_reg_command): Rewrite to perform switching of register group.
3557         Add header comment.
3558         (tuireglist): Remove.
3559         (tui_reggroup_completer): New function.
3560         (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
3561         creation of 'tui reg' command.
3562         * NEWS: Add comment about 'tui reg' changes.
3563
3564 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
3565
3566         * target.c (target_read): Consider addressable unit size when
3567         reading from a memory object.
3568         (read_memory_robust): Same.
3569         (read_whatever_is_readable): Same.
3570         (target_write_with_progress): Consider addressable unit size
3571         when writing to a memory object.
3572         * target.h (target_read): Update documentation.
3573         (target_write): Add documentation.
3574
3575 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
3576
3577         * arch-utils.h (default_addressable_memory_unit_size): New.
3578         * arch-utils.c (default_addressable_memory_unit_size): New.
3579         * gdbarch.sh (addressable_memory_unit_size): New.
3580         * gdbarch.h: Re-generate.
3581         * gdbarch.c: Re-generate.
3582
3583 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
3584
3585         * target.c (target_read): Rename variables and use
3586         TARGET_XFER_E_IO.
3587         (target_read_with_progress): Same.
3588         (read_memory_robust): Constify parameters and rename
3589         variables.
3590         (read_whatever_is_readable): Constify parameters,
3591         rename variables, adjust formatting.
3592         * target.h (read_memory_robust): Constify parameters.
3593
3594 2015-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
3595
3596         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
3597         synthetic (non-AltiVec) vector types.
3598         (ppc64_sysv_abi_return_value): Likewise.
3599
3600 2015-06-12  Antoine Tremblay  <antoine.tremblay@ericsson.com>
3601
3602         PR breakpoints/16465
3603         * breakpoint.c (create_breakpoint): Save extra_string for
3604         pending breakpoints.
3605
3606 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
3607
3608         * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
3609         and bt_mask to CORE_ADDR.
3610
3611 2015-06-11  Gary Benson <gbenson@redhat.com>
3612
3613         * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
3614         (mnsh_recv_message): Likewise.
3615
3616 2015-06-11  Walfred Tedeschi  <walfred.tedeschi@intel.com>
3617
3618         * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
3619         long long int and plongest instead of %ll.
3620
3621 2015-06-11  Gary Benson <gbenson@redhat.com>
3622
3623         * nat/linux-namespaces.c (gdb_wait.h): New include.
3624         (sys/wait.h): Do not include.
3625
3626 2015-06-10  Simon Marchi  <simon.marchi@ericsson.com>
3627
3628         * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
3629         end_sequence is true.
3630
3631 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
3632
3633         Code cleanup.
3634         * solib-target.c (library_list_start_list): Use explicit NULL
3635         comparison.
3636
3637 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
3638
3639         * solib-target.c (library_list_start_list): Do not dereference
3640         variable version in its initialization.  Make the VERSION check handle
3641         NULL.
3642         (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
3643
3644 2015-06-10  Gary Benson <gbenson@redhat.com>
3645
3646         * NEWS: Announce support for direct access of executable and
3647         shared library files when attaching to inferiors in containers
3648         on GNU/Linux systems.
3649
3650 2015-06-10  Gary Benson <gbenson@redhat.com>
3651
3652         * remote.c (struct remote_state) <fs_pid>: New field.
3653         (new_remote_state): Initialize the above.
3654         (PACKET_vFile_setfs): New enum value.
3655         (remote_hostio_set_filesystem): New function.
3656         (remote_hostio_open): Call the above.
3657         (remote_hostio_unlink): Likewise.
3658         (remote_hostio_readlink): Likewise.
3659         (_initialize_remote): Register new "set/show remote
3660         hostio-setfs-packet" command.
3661         * NEWS: Announce new vFile:setfs packet.
3662
3663 2015-06-10  Gary Benson <gbenson@redhat.com>
3664
3665         * linux-nat.c (nat/linux-namespaces.h): New include.
3666         (fileio.h): Likewise.
3667         (linux_nat_filesystem_is_local): New function.
3668         (linux_nat_fileio_pid_of): Likewise.
3669         (linux_nat_fileio_open): Likewise.
3670         (linux_nat_fileio_readlink): Likewise.
3671         (linux_nat_fileio_unlink): Likewise.
3672         (linux_nat_add_target): Initialize to_filesystem_is_local,
3673         to_fileio_open, to_fileio_readlink and to_fileio_unlink.
3674         (_initialize_linux_nat): New "set/show debug linux-namespaces"
3675         commands.
3676         * NEWS: Mention new "set/show debug linux-namespaces" commands.
3677
3678 2015-06-10  Gary Benson <gbenson@redhat.com>
3679
3680         * target.h (struct inferior): New forward declaration.
3681         (struct target_ops) <to_filesystem_is_local>: Update comment.
3682         (struct target_ops) <to_fileio_open>: New argument inf.
3683         Update comment.  All implementations updated.
3684         (struct target_ops) <to_fileio_unlink>: Likewise.
3685         (struct target_ops) <to_fileio_readlink>: Likewise.
3686         (target_filesystem_is_local): Update comment.
3687         (target_fileio_open): New argument inf.  Update comment.
3688         (target_fileio_unlink): Likewise.
3689         (target_fileio_readlink): Likewise.
3690         (target_fileio_read_alloc): Likewise.
3691         (target_fileio_read_stralloc): Likewise.
3692         * target.c (target_fileio_open): New argument inf.
3693         Pass inf to implementation.  Update debug printing.
3694         (target_fileio_unlink): Likewise.
3695         (target_fileio_readlink): Likewise.
3696         (target_fileio_read_alloc_1): New argument inf. Pass inf
3697         to target_fileio_open.
3698         (target_fileio_read_alloc): New argument inf. Pass inf to
3699         target_fileio_read_alloc_1.
3700         (target_fileio_read_stralloc): Likewise.
3701         * gdb_bfd.c (inferior.h): New include.
3702         (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
3703         argument with new argument "inferior".  Pass inferior to
3704         target_fileio_open.
3705         (gdb_bfd_open): Supply inferior argument to
3706         gdb_bfd_iovec_fileio_open.
3707         * linux-tdep.c (linux_info_proc): Supply inf argument to
3708         relevant target_fileio calls.
3709         (linux_find_memory_regions_full): Likewise.
3710         (linux_fill_prpsinfo): Likewise.
3711         * remote.c (remote_filesystem_is_local): Supply inf
3712         argument to remote_hostio_open.
3713         (remote_file_put): Likewise.
3714         (remote_file_get): Likewise.
3715         (remote_file_delete): Supply inf argument to
3716         remote_hostio_unlink.
3717
3718 2015-06-10  Gary Benson <gbenson@redhat.com>
3719
3720         * inf-child.c (inf_child_fileio_open): Replace comment.
3721         (inf_child_fileio_pwrite): Likewise.
3722         (inf_child_fileio_pread): Likewise.
3723         (inf_child_fileio_fstat): Insert blank line before comment.
3724         (inf_child_fileio_close): Replace comment.
3725         (inf_child_fileio_unlink): Likewise.
3726         (inf_child_fileio_readlink): Likewise.
3727         * remote.c (remote_hostio_open): Likewise.
3728         (remote_hostio_pread): Likewise.
3729         (remote_hostio_pwrite): Likewise.
3730         (remote_hostio_close): Likewise.
3731         (remote_hostio_unlink): Likewise.
3732         (remote_hostio_readlink): Likewise.
3733         (remote_hostio_fstat): Likewise.
3734         (remote_filesystem_is_local): Likewise.
3735         * target.c (target_fileio_open): Likewise.
3736         (target_fileio_pwrite): Likewise.
3737         (target_fileio_pread): Likewise.
3738         (target_fileio_fstat): Insert blank line before comment.
3739         (target_fileio_close): Replace comment.
3740         (target_fileio_unlink): Likewise.
3741         (target_fileio_readlink): Likewise.
3742         (target_fileio_read_alloc): Likewise.
3743         (target_fileio_read_stralloc): Likewise.
3744
3745 2015-06-10  Gary Benson <gbenson@redhat.com>
3746
3747         * linux-thread-db.c (nat/linux-namespaces.h): New include.
3748         (check_pid_namespace_match): Use linux_ns_same rather than
3749         linux_proc_pid_get_ns to spot PID namespace mismatches.
3750         * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
3751         * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
3752
3753 2015-06-10  Gary Benson <gbenson@redhat.com>
3754
3755         * configure.ac (AC_CHECK_FUNCS): Add setns.
3756         * config.in: Regenerate.
3757         * configure: Likewise.
3758         * nat/linux-namespaces.h: New file.
3759         * nat/linux-namespaces.c: Likewise.
3760         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
3761         (linux-namespaces.o): New rule.
3762         * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
3763         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3764         * config/arm/linux.mh (NATDEPFILES): Likewise.
3765         * config/i386/linux.mh (NATDEPFILES): Likewise.
3766         * config/i386/linux64.mh (NATDEPFILES): Likewise.
3767         * config/ia64/linux.mh (NATDEPFILES): Likewise.
3768         * config/m32r/linux.mh (NATDEPFILES): Likewise.
3769         * config/m68k/linux.mh (NATDEPFILES): Likewise.
3770         * config/mips/linux.mh (NATDEPFILES): Likewise.
3771         * config/pa/linux.mh (NATDEPFILES): Likewise.
3772         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3773         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3774         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3775         * config/s390/linux.mh (NATDEPFILES): Likewise.
3776         * config/sparc/linux.mh (NATDEPFILES): Likewise.
3777         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3778         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3779         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3780
3781 2015-06-10  Gary Benson <gbenson@redhat.com>
3782
3783         * utils.h (make_cleanup_close): Moved to common/filestuff.h.
3784         * utils.c (do_close_cleanup): Moved to common/filestuff.c.
3785         (make_cleanup_close): Likewise.
3786         * common/filestuff.h (make_cleanup_close): Moved from utils.h.
3787         * common/filestuff.c (do_close_cleanup): Moved from utils.c.
3788         (make_cleanup_close): Likewise.
3789
3790 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
3791
3792         * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
3793         from SuspendThread().
3794
3795 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
3796
3797         * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
3798         from OutputDebugString.
3799
3800 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
3801                         Mircea Gherzan  <mircea.gherzan@intel.com>
3802
3803         * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
3804         MPX_BT_MASK_32): New macros.
3805         (i386_mpx_set_bounds): New function that implements
3806         the command "set-mpx-bound".
3807         (i386_mpx_enabled): Helper function to test MPX availability.
3808         (i386_mpx_bd_base): Helper function to calculate the base directory
3809         address.
3810         (i386_mpx_get_bt_entry): Helper function to access a bound
3811         table entry.
3812         (i386_mpx_print_bounds): Effectively display bound information.
3813         (_initialize_i386_tdep): Add new commands to commands "set mpx" and
3814         "show mpx".
3815         (_initialize_i386_tdep):
3816         Add "bound" to the commands "show mpx" and "set mpx" commands.
3817         (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
3818         and "show mpx" commands.
3819         * NEWS: List new commands for MPX support.
3820
3821 2015-06-09  Gary Benson <gbenson@redhat.com>
3822
3823         * common/fileio.h (fileio_to_host_mode): New declaration.
3824         * common/fileio.c (fileio_to_host_mode): New Function.
3825         * inf-child.c (inf_child_fileio_open): Process mode argument
3826         with fileio_to_host_mode.
3827
3828 2015-06-09  Gary Benson <gbenson@redhat.com>
3829
3830         * common/fileio.c (fileio_mode_pack): Fix preprocessor
3831         conditional.
3832
3833 2015-06-05  Gary Benson <gbenson@redhat.com>
3834
3835         * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
3836         * remote.c (remote_filesystem_is_local): ...here.
3837
3838 2015-06-04  Yao Qi  <yao.qi@linaro.org>
3839
3840         * gdbarch.c: Regenerate it.
3841
3842 2015-06-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3843
3844         * arch-utils.c (default_infcall_munmap): New.
3845         * arch-utils.h (default_infcall_munmap): New declaration.
3846         * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
3847         (munmap_list_free, munmap_listp_free_cleanup): New.
3848         (struct setup_sections_data): Add field munmap_list_headp.
3849         (setup_sections): Call munmap_list_add.
3850         (compile_object_load): New variable munmap_list_head, initialize
3851         setup_sections_data.munmap_list_headp, return munmap_list_head.
3852         * compile/compile-object-load.h (struct munmap_list): New declaration.
3853         (struct compile_module): Add field munmap_list_head.
3854         (munmap_list_free): New declaration.
3855         * compile/compile-object-run.c (struct do_module_cleanup): Add field
3856         munmap_list_head.
3857         (do_module_cleanup): Call munmap_list_free.
3858         (compile_object_run): Pass munmap_list_head to do_module_cleanup.
3859         * gdbarch.c: Regenerate.
3860         * gdbarch.h: Regenerate.
3861         * gdbarch.sh (infcall_munmap): New.
3862         * linux-tdep.c (linux_infcall_munmap): New.
3863         (linux_init_abi): Install it.
3864
3865 2015-06-02  Simon Marchi  <simon.marchi@ericsson.com>
3866
3867         PR gdb/15564
3868         * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
3869
3870 2015-06-02  Yao Qi  <yao.qi@linaro.org>
3871
3872         * i386-linux-nat.c: Include linux-nat.h.
3873
3874 2015-06-01  Andreas Schwab  <schwab@linux-m68k.org>
3875             Jan Kratochvil  <jan.kratochvil@redhat.com>
3876
3877         PR symtab/18392
3878         * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
3879         assertion.
3880         * dwarf2loc.c (chain_candidate): Likewise.
3881
3882 2015-06-01  Yao Qi  <yao.qi@linaro.org>
3883
3884         * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
3885         (store_vfp_regs): Use PTRACE_SETREGSET.
3886
3887 2015-06-01  Yao Qi  <yao.qi@linaro.org>
3888
3889         * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
3890         (fetch_fpregs): Likewise.
3891         * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
3892         (store_fpregs): Likewise.
3893
3894 2015-06-01  Yao Qi  <yao.qi@linaro.org>
3895
3896         * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
3897         (fetch_regs): Likewise.
3898         (store_regs): Use PTRACE_SETREGSET.
3899         (store_register): Likewise.
3900
3901 2015-06-01  Yao Qi  <yao.qi@linaro.org>
3902
3903         * arm-linux-nat.c (arm_linux_read_description): Check whether
3904         kernel supports PTRACE_GETREGSET.
3905
3906 2015-06-01  Yao Qi  <yao.qi@linaro.org>
3907
3908         * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
3909         * linux-nat.c: ... here.
3910         * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
3911         to ...
3912         * linux-nat.h: ... here.
3913
3914 2015-06-01  Yao Qi  <yao.qi@linaro.org>
3915
3916         * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
3917         * i386-linux-nat.c: Likewise.
3918         * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
3919         * s390-linux-nat.c: Include "nat/linux-ptrace.h".
3920         (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
3921         * x86-linux-nat.c: Include "nat/linux-ptrace.h".
3922         * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
3923
3924 2015-05-30  Eli Zaretskii  <eliz@gnu.org>
3925
3926         * go32-nat.c (go32_xfer_memory): Fix the return value to be
3927         compatible to what read_child and write_child return.  This
3928         unbreaks that DJGPP build of GDB which was broken since v7.7.
3929
3930 2015-05-29  Martin Galvan  <martin.galvan@tallertechnologies.com>
3931
3932         * MAINTAINERS (Write After Approval): Add Martin Galvan.
3933
3934 2015-05-29  Roland McGrath  <mcgrathr@google.com>
3935
3936         PR gdb/18464
3937         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
3938         rather than internal_error for an unrecognized value.
3939
3940 2015-05-29  Max Filippov  <jcmvbkbc@gmail.com>
3941
3942         * xtensa-tdep.c (xtensa_pseudo_register_read)
3943         (xtensa_pseudo_register_write): Don't alias last pseudo register
3944         to a1.
3945
3946 2015-05-28  Don Breazeal  <donb@codesourcery.com>
3947
3948         * infrun.c (follow_fork_inferior): Ensure the use of
3949         process-style ptids (pid,0,0) in verbose/debug "Detaching"
3950         messages.
3951
3952 2015-05-28  Doug Evans  <dje@google.com>
3953
3954         * dwarf2read.c (record_line_ftype): Remove, duplicate.
3955
3956 2015-05-28  Yao Qi  <yao.qi@linaro.org>
3957
3958         * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
3959         (arm_linux_fetch_inferior_registers): Use
3960         tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
3961         (arm_linux_store_inferior_registers): Likewise.
3962         (arm_linux_read_description): Don't set
3963         arm_linux_has_wmmx_registers.
3964         * arm-tdep.c (arm_gdbarch_init): Set
3965         tdep->have_wmmx_registers according target descriptions.
3966         * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
3967         field.
3968
3969 2015-05-28  Yao Qi  <yao.qi@linaro.org>
3970
3971         * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
3972         (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
3973         instead of arm_linux_vfp_register_count.
3974         (store_vfp_regs): Likewise.
3975         (arm_linux_fetch_inferior_registers): Likewise.
3976         (arm_linux_store_inferior_registers): Likewise.
3977         (arm_linux_read_description): Don't set
3978         arm_linux_vfp_register_count.
3979         * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
3980         Adjust.
3981         * arm-tdep.c (arm_gdbarch_init): Add assert on
3982         vfp_register_count.
3983         * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
3984         field to vfp_register_count.  All users updated.
3985
3986 2015-05-28  Kyle Huey  <me@kylehuey.com>  (tiny patch)
3987
3988         * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
3989         ELFOSABI_GNU binaries.
3990
3991 2015-05-27  Doug Evans  <dje@google.com>
3992
3993         * dwarf2read.c (lnp_state_machine): New typedef.
3994         (lnp_reader_state): New typedef.
3995         (dwarf_record_line_1): Renamed from dwarf_record_line.
3996         All callers updated.
3997         (dwarf_record_line): New function.
3998         (init_lnp_state_machine): New function.
3999         (check_line_address): Replace p_record_line parameter with state.
4000         All callers updated.
4001         (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
4002         Update to record state in lnp_state_machine.
4003
4004 2015-05-27  Doug Evans  <dje@google.com>
4005
4006         * dwarf2read.c (record_line_ftype): New typedef.
4007         (check_line_address): New function.
4008         (dwarf_decode_lines_1): Call it.
4009
4010 2015-05-27  Doug Evans  <dje@google.com>
4011
4012         * NEWS: Mention "set debug dwarf-line".
4013         * dwarf2read.c (dwarf_line_debug): New static global.
4014         (add_include_dir): Add debug dwarf-line support.
4015         (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
4016         (_initialize_dwarf2_read): New parameter "debug dwarf-line".
4017
4018 2015-05-27  Doug Evans  <dje@google.com>
4019
4020         * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
4021         All callers updated.
4022         (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
4023         * cp-support.h (cp_lookup_nested_symbol): Update.
4024
4025 2015-05-27  Doug Evans  <dje@google.com>
4026
4027         PR symtab/18258
4028         * block.c (block_find_symbol): New function.
4029         (block_find_non_opaque_type): Ditto.
4030         (block_find_non_opaque_type_preferred): Ditto.
4031         * block.h (block_symbol_matcher_ftype): New typedef.
4032         (block_find_symbol): Declare.
4033         (block_find_non_opaque_type): Ditto.
4034         (block_find_non_opaque_type_preferred): Ditto.
4035         * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
4036         * psymtab.c (psym_lookup_symbol): Ditto.
4037         * symtab.c (basic_lookup_transparent_type_1): New function.
4038         (basic_lookup_transparent_type): Call it.
4039
4040 2015-05-27  Yao Qi  <yao.qi@linaro.org>
4041
4042         * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
4043         AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
4044
4045 2015-05-27  Yao Qi  <yao.qi@linaro.org>
4046
4047         * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
4048         before operator &&.
4049         (aarch64_record_load_store): Likewise.
4050
4051 2015-05-26  Doug Evans  <dje@google.com>
4052
4053         PR c++/18141, c++/18417.
4054         * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
4055         a typedef.
4056
4057 2015-05-26  Doug Evans  <dje@google.com>
4058
4059         * NEWS: Add entries for command renamings.
4060         * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
4061         All uses updated.
4062         (dwarf_die_debug): Renamed from dwarf2_die_debug.  All uses updated.
4063         (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
4064         All uses updated.
4065         (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
4066         All callers updated.  Fix spelling of DWARF in help text.
4067         (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
4068         All uses updated.
4069         (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
4070         All uses updated.
4071         (set_dwarf_cmd): Renamed from set_dwarf2_cmd.  All callers updated.
4072         (show_dwarf_cmd): Renamed from show_dwarf2_cmd.  All callers updated.
4073         (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
4074         All uses updated.
4075         (show_dwarf_always_disassemble): Renamed from
4076         show_dwarf2_always_disassemble.  All callers updated.
4077         (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
4078         "set/show dwarf".  Rename "set/show dwarf2 max-cache-age" to
4079         "set/show dwarf max-cache-age".  Rename
4080         "set/show dwarf2 always-disassemble" to
4081         "set/show dwarf always-disassemble".  Rename
4082         "set/show debug dwarf2-read" to "set/show debug dwarf-read".  Rename
4083         "set/show debug dwarf2-die" to "set/show debug dwarf-die".
4084
4085 2015-05-26  Doug Evans  <dje@google.com>
4086
4087         PR python/18438
4088         * python/py-lazy-string.c (stpy_convert_to_value): Use
4089         gdbpy_gdb_memory_error not PyExc_MemoryError.
4090         (gdbpy_create_lazy_string_object): Ditto.
4091
4092 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
4093
4094         * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
4095
4096 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
4097
4098         * tui/tui-regs.c (tui_reg_prev_command): New function.
4099         (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
4100         * reggroups.c (reggroup_prev): New function.
4101         * reggroups.h (reggroup_prev): Add declaration.  Update comment.
4102
4103 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
4104             Yao Qi  <yao.qi@linaro.org>
4105
4106         * aarch64-linux-tdep.c: Include linux-record.h and
4107         record-full.h.
4108         (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
4109         (aarch64_syscall): New enum.
4110         (aarch64_canonicalize_syscall): New function.
4111         (aarch64_all_but_pc_registers_record): New function.
4112         (aarch64_linux_syscall_record): New function.
4113         (aarch64_linux_init_abi): Install AArch64 process record
4114         handler.  Update to handle syscall recording.
4115         * aarch64-tdep.c: Include record.h and record-full.h.
4116         (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
4117         (struct aarch64_mem_r): Define.
4118         (aarch64_record_result): New enum.
4119         (struct insn_decode_record): Define.
4120         (insn_decode_record): New typedef.
4121         (aarch64_record_data_proc_reg): New function.
4122         (aarch64_record_data_proc_imm): New function.
4123         (aarch64_record_branch_except_sys): New function.
4124         (aarch64_record_load_store): New function.
4125         (aarch64_record_data_proc_simd_fp): New function.
4126         (aarch64_record_asimd_load_store): New function.
4127         (aarch64_record_decode_insn_handler): New function.
4128         (deallocate_reg_mem): New function.
4129         (aarch64_process_record): New function.
4130         * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
4131         New field.
4132         (aarch64_process_record): New extern declaration.
4133         * configure.tgt: Add linux-record.o to gdb_target_obs.
4134         * linux-record.h (struct linux_record_tdep) <arg7>: New field.
4135
4136 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
4137
4138         * NEWS: Add a note on process record-replay support on aarch64*-linux*
4139         targets.
4140
4141 2015-05-26  Martin Galvan  <martin.galvan@tallertechnologies.com>
4142
4143         * amd64-tdep.c: Replace in_function_epilogue_p with
4144         stack_frame_destroyed_p throughout.
4145         * arch-utils.c: Ditto.
4146         * arch-utils.h: Ditto.
4147         * arm-tdep.c: Ditto.
4148         * breakpoint.c: Ditto.
4149         * gdbarch.sh: Ditto.
4150         * hppa-tdep.c: Ditto.
4151         * i386-tdep.c: Ditto.
4152         * mips-tdep.c: Ditto.
4153         * nios2-tdep.c: Ditto.
4154         * rs6000-tdep.c: Ditto.
4155         * s390-linux-tdep.c: Ditto.
4156         * score-tdep.c: Ditto.
4157         * sh-tdep.c: Ditto.
4158         * sparc-tdep.c: Ditto.
4159         * sparc-tdep.h: Ditto.
4160         * sparc64-tdep.c: Ditto.
4161         * spu-tdep.c: Ditto.
4162         * tic6x-tdep.c: Ditto.
4163         * tilegx-tdep.c: Ditto.
4164         * xstormy16-tdep.c: Ditto.
4165         * gdbarch.c, gdbarch.h: Re-generated.
4166
4167 2015-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
4168
4169         * NEWS: Mention 'tui enable' and 'tui disable'.
4170         * tui/tui.c (tui_enable_command): New function.
4171         (tui_disable_command): New function.
4172         (_initialize_tui): New function.
4173
4174 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
4175
4176         * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
4177
4178 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
4179
4180         * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
4181         buf_ptr is freed.
4182
4183 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
4184
4185         * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
4186         into ...
4187         (tui_set_layout_for_display_command): ...here, before calling
4188         tui_set_layout.  Only set the layout if gdb has not already
4189         entered the TUI_FAILURE state.
4190
4191 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
4192
4193         * tui/tui-layout.c (layout_completer): New function.
4194         (_initialize_tui_layout): Set completer on layout command.
4195
4196 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
4197
4198         * tui/tui-layout.c (tui_set_layout): Remove
4199         tui_register_display_type parameter.  Remove all checking of this
4200         parameter, and reindent function.  Update header comment.
4201         (tui_set_layout_for_display_command): Rename to...
4202         (tui_set_layout_by_name): ...this, and don't check for different
4203         register class types, don't pass a tui_register_display_type to
4204         tui_set_layout.  Update header comment.
4205         (layout_names): Remove register set specific names.
4206         * tui/tui-layout.h (tui_set_layout): Remove
4207         tui_register_display_type parameter.
4208         * tui/tui.c (tui_rl_change_windows): Don't pass a
4209         tui_register_display_type to tui_set_layout.
4210         (tui_rl_delete_other_windows): Likewise.
4211         (tui_enable): Likewise.
4212         * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
4213         (TUI_FLOAT_REGS_NAME_LOWER): Remove.
4214         (TUI_GENERAL_REGS_NAME): Remove.
4215         (TUI_GENERAL_REGS_NAME_LOWER): Remove.
4216         (TUI_SPECIAL_REGS_NAME): Remove.
4217         (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
4218         (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
4219         (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
4220         (enum tui_register_display_type): Remove.
4221         (struct tui_layout_def): Remove regs_display_type and
4222         float_regs_display_type fields.
4223         (struct tui_data_info): Remove regs_display_type field.
4224         (tui_layout_command): Use new name for
4225         tui_set_layout_for_display_command.
4226         * tui/tui-data.c (layout_def): Don't initialise removed fields.
4227         (tui_clear_win_detail): Don't initialise removed fields of
4228         win_info.
4229         * tui/tui-regs.c (tui_show_registers): Use new name for
4230         tui_set_layout_for_display_command.
4231         * tui/tui.h (tui_set_layout_for_display_command): Rename
4232         declaration to...
4233         (tui_set_layout_by_name): ...this.
4234         * printcmd.c (display_command): Remove tui related layout call,
4235         and reindent.
4236
4237 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
4238
4239         * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
4240         (handle_inferior_event): New function.
4241
4242 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
4243
4244         * ada-lang.c (to_fixed_array_type): Rename local variable
4245         typename into type_name.
4246
4247 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
4248
4249         Fix ASAN crash for gdb.compile/compile.exp.
4250         * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
4251
4252 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
4253
4254         * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
4255         (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
4256         * compile/compile-object-load.c (setup_sections, compile_object_load):
4257         Likewise.
4258         * compile/compile.c (compile_to_object): Likewise.
4259
4260 2015-05-16  Doug Evans  <xdje42@gmail.com>
4261
4262         * NEWS: Mention support for unbuffered Guile memory ports.
4263         * scm-ports.c (ioscm_memory_port): Update comments on end, size.
4264         (ioscm_lseek_address): Improve overflow calculation.
4265         (gdbscm_memory_port_fill_input): Add assert.
4266         (gdbscm_memory_port_write): Handle unbuffered ports.
4267         Handle large writes identical to Guile's fport_write.
4268         (gdbscm_memory_port_seek): Fix seeking past end check.
4269         (gdbscm_memory_port_close): Handle closing unbuffered port.
4270         (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
4271         (ioscm_init_memory_port): Handle unbuffered ports.
4272         (ioscm_reinit_memory_port): Ditto.
4273         (ioscm_init_memory_port): Update size calculation.
4274         (gdbscm_open_memory): Support zero sized ports.
4275
4276 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
4277
4278         * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
4279         variable compiler warnings.
4280
4281 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
4282
4283         * compile/compile-object-load.c (get_out_value_type): Fix returned type.
4284
4285 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
4286             Phil Muldoon  <pmuldoon@redhat.com>
4287
4288         * NEWS (Changes since GDB 7.9): Add compile print.
4289         * compile/compile-c-support.c (add_code_header, add_code_footer)
4290         (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
4291         COMPILE_I_PRINT_VALUE_SCOPE.
4292         * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
4293         (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
4294         New.
4295         * compile/compile-object-load.c: Include block.h.
4296         (get_out_value_type): New function.
4297         (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
4298         COMPILE_I_PRINT_VALUE_SCOPE.  Set compile_module's OUT_VALUE_ADDR and
4299         OUT_VALUE_TYPE.
4300         * compile/compile-object-load.h (struct compile_module): Add fields
4301         out_value_addr and out_value_type.
4302         * compile/compile-object-run.c: Include valprint.h and compile.h.
4303         (struct do_module_cleanup): Add fields out_value_addr and
4304         out_value_type.
4305         (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
4306         COMPILE_I_PRINT_VALUE_SCOPE.
4307         (compile_object_run): Propagate out_value_addr and out_value_type.
4308         Pass OUT_VALUE_ADDR.
4309         * compile/compile.c: Include valprint.h.
4310         (compile_print_value, compile_print_command): New functions.
4311         (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
4312         (_initialize_compile): Update compile code help text.  Install
4313         compile_print_command.
4314         * compile/compile.h (compile_print_value): New prototype.
4315         * defs.h (enum compile_i_scope_types): Add
4316         COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
4317
4318 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
4319
4320         * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
4321         Rely on its parameter count.
4322         (compile_object_load): Replace lookup_minimal_symbol_text by
4323         lookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the
4324         return value.
4325         * compile/compile-object-load.h (struct compile_module): Replace
4326         func_addr by func_sym.
4327         * compile/compile-object-run.c: Include block.h.
4328         (compile_object_run): Reset module variable after it is freed.  Use
4329         FUNC_SYM instead of FUNC_ADDR.  Rely on it.
4330
4331 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
4332
4333         * compile/compile-c-support.c (print_one_macro): Use #ifndef.
4334         (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
4335         (c_compute_program): Call generate_register_struct after typedefs.
4336         * compile/compile-loc2c.c (push, pushf_register_address)
4337         (pushf_register): Cast to GCC_UINTPTR.
4338         (do_compile_dwarf_expr_to_c): Use unused attribute.  Add space after
4339         type.  Use GCC_UINTPTR instead of void *.  Remove excessive cast.
4340         (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
4341         * compile/compile.c (_initialize_compile): Enable warnings for
4342         COMPILE_ARGS.
4343
4344 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
4345
4346         * cli/cli-script.c (execute_control_command): Update
4347         eval_compile_command caller.
4348         * compile/compile-object-load.c (compile_object_load): Add parameters
4349         scope and scope_data.  Set them.
4350         * compile/compile-object-load.h (struct compile_module): Add fields
4351         scope and scope_data.
4352         (compile_object_load): Add parameters scope and scope_data.
4353         * compile/compile-object-run.c (struct do_module_cleanup): Add fields
4354         scope and scope_data.
4355         (compile_object_run): Propagate the fields scope and scope_data.
4356         * compile/compile.c (compile_file_command, compile_code_command):
4357         Update eval_compile_command callers.
4358         (eval_compile_command): Add parameter scope_data.  Pass it plus scope.
4359         * compile/compile.h (eval_compile_command): Add parameter scope_data.
4360         * defs.h (struct command_line): Add field scope_data.
4361
4362 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
4363
4364         * printcmd.c (struct format_data): Move it to valprint.h.
4365         (print_command_parse_format, print_value): New functions from ...
4366         (print_command_1): ... here.  Call them.
4367         * valprint.h (struct format_data): Move it here from printcmd.c.
4368         (print_command_parse_format, print_value): New declarations.
4369
4370 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
4371
4372         * compile/compile-object-load.c (compile_object_load): Add
4373         COMPILE_DEBUG message.
4374
4375 2015-05-15  Jerome Guitton  <guitton@adacore.com>
4376
4377         * ada-lang.c (ada_value_ptr_subscript): Use enum position of
4378         index to get element instead of enum value.
4379         (ada_value_slice_from_ptr, ada_value_slice): Use enum position
4380         of index to compute length, but enum values to compute bounds.
4381         (ada_array_length): Use enum position of index instead of enum value.
4382         (pos_atr): Move position computation to...
4383         (ada_evaluate_subexp): Use enum values to compute bounds.
4384         * gdbtypes.c (discrete_position): ...this new function.
4385         * gdbtypes.h (discrete_position): New function declaration.
4386         * valprint.c (val_print_array_elements): Call discrete_position
4387         to handle array indexed by non-contiguous enumeration types.
4388
4389 2015-05-15  Jerome Guitton  <guitton@adacore.com>
4390
4391         * ada-lang.c (find_parallel_type_by_descriptive_type):
4392         Go through typedefs during lookup.
4393         (to_fixed_array_type): Add support for non-bit packed arrays
4394         as variable-length fields.
4395
4396 2015-05-15  Pedro Alves  <palves@redhat.com>
4397             Simon Marchi  <simon.marchi@ericsson.com>
4398
4399         * event-loop.c (gdb_notifier) <next_file_handler,
4400         next_poll_fds_index>: New fields.
4401         (get_next_file_handler_to_handle_and_advance): New function.
4402         (delete_file_handler): If deleting the next file handler to
4403         handle, advance to the next file handler.
4404         (gdb_wait_for_event): Bail early if no event fired.  Poll file
4405         handlers in round-robin fashion.
4406
4407 2015-05-15  Pedro Alves  <palves@redhat.com>
4408
4409         * linux-tdep.c (linux_find_memory_regions_full): Rename local
4410         'private' to 'priv'.
4411
4412 2015-05-15  Pedro Alves  <palves@redhat.com>
4413
4414         * nat/linux-nat.h: Include "target/waitstatus.h".
4415
4416 2015-05-15  Yuanhui Zhang  <asmwarrior@gmail.com>
4417
4418         * python/py-unwind.c (struct reg_info): Move out of ...
4419         (struct cached_frame_info): ... this scope.
4420         (pending_frame_object_type, unwind_info_object_type): Make extern.
4421
4422 2015-05-15  Joel Brobecker  <brobecker@adacore.com>
4423
4424         * ada-lang.c (ada_value_primitive_packed_val): Make sure
4425         accumSize is never negative.
4426
4427 2015-05-14  Patrick Palka  <patrick@parcs.ath.cx>
4428
4429         * tui/tui-command.c: Remove include of <ctype.h>.
4430         (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
4431
4432 2015-05-13  Martin Galvan  <martin.galvan@tallertechnologies.com>
4433
4434         * dwarf2read.c (die_needs_namespace): Return 1 for
4435         DW_TAG_inlined_subroutine.
4436
4437 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4438
4439         * regcache.c (regcache_cpy_no_passthrough): New declaration.
4440         (regcache_cpy_no_passthrough): Make it static, add function comment.
4441         * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
4442         (regcache_cpy_no_passthrough): Remove declaration.
4443
4444 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4445
4446         * gdbthread.h (struct thread_control_state): Update comment for
4447         proceed_to_finish.
4448         * infcall.c (run_inferior_call): Update comment about
4449         proceed_to_finish.
4450         * infcmd.c (get_return_value): Update comment about stop_registers.
4451         (finish_forward): Update comment about proceed_to_finish.
4452         * infrun.c (stop_registers): Remove.
4453         (clear_proceed_status, normal_stop): Remove stop_registers handling.
4454         * infrun.h (stop_registers): Remove.
4455
4456 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4457
4458         * infcall.c (struct dummy_frame_context_saver)
4459         (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
4460         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
4461         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
4462         New.
4463         (call_function_by_hand_dummy): Move discard_cleanups of
4464         inf_status_cleanup before dummy_frame_push.  Call
4465         dummy_frame_context_saver_setup and prepare context_saver_cleanup.
4466         Use dummy_frame_context_saver_get_regs instead of stop_registers.
4467         * infcall.h (struct dummy_frame_context_saver)
4468         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
4469         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
4470         New declarations.
4471         * infcmd.c: Include infcall.h.
4472         (get_return_value): Add parameter ctx_saver, use it instead of
4473         stop_registers.
4474         (print_return_value): Add parameter ctx_saver, pass it.
4475         (struct finish_command_continuation_args): Add field ctx_saver.
4476         (finish_command_continuation): Update print_return_value caller.
4477         (finish_command_continuation_free_arg): Free also ctx_saver.
4478         (finish_forward): Call dummy_frame_context_saver_setup.
4479         * inferior.h (struct dummy_frame_context_saver): New declaration.
4480         (get_return_value): Add parameter ctx_saver.
4481         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
4482         get_return_value caller.
4483
4484 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4485
4486         * dummy-frame.c (struct dummy_frame_dtor_list): New.
4487         (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
4488         (remove_dummy_frame): Process dtor_list.
4489         (pop_dummy_frame): Process dtor_list.
4490         (register_dummy_frame_dtor): Maintain dtor_list.
4491         (find_dummy_frame_dtor): Handle dtor_list.
4492         * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
4493         Update comments.
4494
4495 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4496
4497         * compile/compile-object-run.c (do_module_cleanup): Add parameter
4498         registers_valid.
4499         (compile_object_run): Update do_module_cleanup caller.
4500         * dummy-frame.c: Include infcall.h.
4501         (struct dummy_frame): Update dtor comment.
4502         (remove_dummy_frame): Call dtor.
4503         (pop_dummy_frame): Update dtor caller.
4504         * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
4505         registers_valid.
4506
4507 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
4508
4509         GDB 7.9.1 released.
4510
4511 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
4512
4513         * NEWS: Create "Changes in GDB 7.9.1" section.  Move news about
4514         Xmethods now being able to specify a result type to that new
4515         sectioin.
4516
4517 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
4518
4519         * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
4520         first before resizing the window.
4521         * tui/tui.c (tui_enable): Likewise.
4522
4523 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4524
4525         * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
4526         * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
4527         * infcall.c (call_function_by_hand_dummy): Use proper typedef for
4528         dummy_dtor parameter.
4529         * infcall.h: Include dummy-frame.h.
4530         (call_function_by_hand_dummy_dtor_ftype): Remove.
4531         (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
4532         parameter.
4533
4534 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
4535
4536         PR gdb/17820
4537         * top.c (history_size_setshow_var): Change type to signed.
4538         Initialize to -2.  Update documentation.
4539         (set_readline_history_size): Define.
4540         (set_history_size_command): Use it.  Remove logic for handling
4541         out-of-range sizes.
4542         (init_history): Use set_readline_history_size().  Test for a
4543         value of -2 instead of 0 when determining whether to set a
4544         default history size.
4545         (init_main): Decode the argument of the "size" command as a
4546         zuinteger_unlimited.
4547
4548 2015-05-12  Doug Evans  <dje@google.com>
4549
4550         * dwarf2read.c (struct file_entry): Tweak comments.
4551         (get_debug_line_section): Tweak comments.
4552
4553 2015-05-12  Don Breazeal  <donb@codesourcery.com>
4554
4555         * NEWS: Announce fork support in the RSP and support
4556         for fork debugging in extended mode.
4557
4558 2015-05-12  Don Breazeal  <donb@codesourcery.com>
4559
4560         * remote.c (remote_insert_fork_catchpoint): New function.
4561         (remote_remove_fork_catchpoint): New function.
4562         (remote_insert_vfork_catchpoint): New function.
4563         (remote_remove_vfork_catchpoint): New function.
4564         (pending_fork_parent_callback): New function.
4565         (remove_new_fork_child): New function.
4566         (remote_update_thread_list): Call remote_notif_get_pending_events
4567         and remove_new_fork_child.
4568         (extended_remote_kill): Kill fork child when killing the
4569         parent before follow_fork completes.
4570         (init_extended_remote_ops): Initialize target vector with
4571         new fork catchpoint functions.
4572
4573 2015-05-12  Don Breazeal  <donb@codesourcery.com>
4574
4575         * remote.c (remove_vfork_event_p): New function.
4576         (remote_follow_fork): Add vfork event type to event checking.
4577         (remote_parse_stop_reply): New stop reasons "vfork" and
4578         "vforkdone" for RSP 'T' Stop Reply Packet.
4579
4580 2015-05-12  Don Breazeal  <donb@codesourcery.com>
4581
4582         * linux-nat.c (linux_nat_ptrace_options): New function.
4583         (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
4584         Call linux_nat_ptrace_options and use different argument to
4585         linux_enable_event_reporting.
4586         (_initialize_linux_nat): Delete call to
4587         linux_ptrace_set_additional_flags.
4588         * nat/linux-ptrace.c (current_ptrace_options): Rename to
4589         supported_ptrace_options.
4590         (additional_flags): Delete variable.
4591         (linux_check_ptrace_features): Use supported_ptrace_options.
4592         (linux_test_for_tracesysgood, linux_test_for_tracefork):
4593         Likewise, and remove additional_flags check.
4594         (linux_enable_event_reporting): Change 'attached' argument to
4595         'options'.  Use supported_ptrace_options.
4596         (ptrace_supports_feature): Change comment.  Use
4597         supported_ptrace_options.
4598         (linux_ptrace_set_additional_flags): Delete function.
4599         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4600         Delete function prototype.
4601         * remote.c (remote_fork_event_p): New function.
4602         (remote_detach_pid): New function.
4603         (remote_detach_1): Call remote_detach_pid, don't mourn inferior
4604         if doing detach-on-fork.
4605         (remote_follow_fork): New function.
4606         (remote_parse_stop_reply): Handle new "T" stop reason "fork".
4607         (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
4608         (init_extended_remote_ops): Initialize to_follow_fork.
4609
4610 2015-05-12  Don Breazeal  <donb@codesourcery.com>
4611
4612         * nat/linux-ptrace.c (linux_check_ptrace_features): Change
4613         from static to extern.
4614         * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
4615         * remote.c (anonymous enum): <PACKET_fork_event_feature,
4616         * PACKET_vfork_event_feature>: New enumeration constants.
4617         (remote_protocol_features): Add table entries for new packets.
4618         (remote_query_supported): Add new feature queries to qSupported
4619         packet.
4620
4621 2015-05-12  Gary Benson <gbenson@redhat.com>
4622
4623         * remote.c (remote_add_inferior): Call exec_file_locate_attach
4624         for fake PIDs as well as real ones.
4625         (remote_pid_to_exec_file): Send empty annex if PID is fake.
4626
4627 2015-05-09  Siva Chandra Reddy  <sivachandra@google.com>
4628
4629         * NEWS (Python Scripting): Mention the new gdb.Value methods.
4630         * python/py-value.c (valpy_reference_value): New function.
4631         (valpy_const_value): Likewise.
4632         (value_object_methods): Add new methods.
4633         * value.c (make_cv_value): New function.
4634         * value.h (make_cv_value): Declare.
4635
4636 2015-05-08  Yao Qi  <yao@codesourcery.com>
4637             Sandra Loosemore  <sandra@codesourcery.com>
4638
4639         * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
4640         to 'lh->include_dirs' before accessing to it.
4641         (psymtab_include_file_name): Likewise.
4642         (dwarf_decode_lines_1): Likewise.
4643         (dwarf_decode_lines): Likewise.
4644         (file_file_name): Likewise.
4645
4646 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
4647
4648         * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
4649         (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
4650         (nios2_linux_rt_sigreturn_init): Adjust base address of
4651         register save area.
4652
4653 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
4654
4655         * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
4656         "trap 31" as the breakpoint instruction on all targets.
4657
4658 2015-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4659
4660         * infcmd.c (print_return_value): Remove unused declaration.
4661
4662 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
4663
4664         * dwarf2read.c (attr_to_dynamic_prop)
4665         <DW_AT_data_member_location>: Use read_type_die isntead of
4666         get_die_type.
4667
4668 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
4669
4670         * ada-lang.c (ada_convert_actual): Add handling of formals
4671         passed inside an aligner type.
4672
4673 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
4674
4675         * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
4676
4677 2015-05-08  Siva Chandra Reddy  <sivachandra@google.com>
4678
4679         PR python/18291
4680         * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
4681         Print xmethod matcher status.
4682
4683 2015-05-08  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4684
4685         * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
4686         register in the regcache when treating the PSWM register, and vice
4687         versa.
4688
4689 2015-05-07  Gary Benson <gbenson@redhat.com>
4690
4691         * linux-thread-db.c (struct thread_db_info)
4692         <td_ta_map_id2thr_p>: Remove field.
4693         (try_thread_db_load_1): Remove initialization for the above.
4694
4695 2015-05-07  Gary Benson <gbenson@redhat.com>
4696
4697         * linux-thread-db.c (struct thread_db_info)
4698         <td_thr_validate_p>: Remove field.
4699         (try_thread_db_load_1): Remove initialization for the above.
4700
4701 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4702
4703         * compile/compile-object-load.c (compile_object_load): Support
4704         mst_text_gnu_ifunc.
4705
4706 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4707
4708         * compile/compile.c (compile_to_object): Make the cmd_string parameter
4709         const.  Use new variables for the const compatibility.
4710         (eval_compile_command): Make the cmd_string parameter const.
4711         * compile/compile.h (eval_compile_command): Make the cmd_string
4712         parameter const.
4713
4714 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
4715
4716         * defs.h (deprecated_init_ui_hook): Delete.  Remove associated
4717         comment.
4718         * top.c (deprecated_init_ui_hook): Delete.
4719         (gdb_init): Remove handling of deprecated_init_ui_hook.
4720         * interps.c (clear_interpreter_hooks): Remove handling of
4721         deprecated_init_ui_hook.
4722         * main.c (captured_main): Update comment.
4723
4724 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
4725
4726         * solib.c (_initialize_solib): Add "info dll" alias creation.
4727         * windows-nat.c (set_windows_aliases): Delete.
4728         (_initialize_windows_nat): Remove deprecated_init_ui_hook
4729         assignment.
4730         * NEWS: Add news entry about "info dll" now being available
4731         on all platforms.
4732
4733 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
4734
4735         * ada-lang.c (value_assign_to_component): Reformat and improve
4736         documentation. Remove all trailing spaces.
4737
4738 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
4739
4740         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4741         Stop counting inlined frames as soon as an out-of-line function
4742         is found.
4743
4744 2014-05-05  Pierre-Marie de Rodat  <derodat@adacore.com>
4745
4746         * dwarf2read.c (inherit_abstract_dies): Skip
4747         DW_TAG_GNU_call_site dies while inheriting children of an
4748         abstract DIE into a scope.
4749         (read_lexical_block_scope): Inherit abstract DIE's for
4750         lexical scopes.
4751
4752 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
4753
4754         * ada-valprint.c (val_print_packed_array_elements): Delete
4755         variable "len".  Add a type-length check when comparing two
4756         consecutive elements of the array.  Use the element's actual
4757         length in call to value_contents_eq.
4758         * ada-lang.c (ada_value_primitive_packed_val): Always return
4759         a value whose type has been resolved.
4760
4761 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
4762
4763         * ada-lang.c (ada_value_primitive_packed_val): Recompute
4764         BIT_SIZE and LEN if the size of the resolved type is smaller
4765         than BIT_SIZE * HOST_CHAR_BIT.
4766
4767 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
4768
4769         * ada-lang.c (ada_value_primitive_packed_val): Use a more
4770         correct address in call to value_at.  Adjust call to
4771         value_address accordingly.
4772
4773 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
4774
4775         * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
4776         to print it.
4777
4778 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
4779
4780         * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
4781         * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
4782         pinfo->valaddr.
4783         * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
4784         * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
4785         (resolve_dynamic_type_internal): Set pinfo.valaddr.
4786         Add handling of addr_stack->valaddr.
4787         (resolve_dynamic_type): Add "valaddr" parameter.
4788         Set pinfo.valaddr field.
4789         * ada-lang.c (ada_discrete_type_high_bound): Update call to
4790         resolve_dynamic_type.
4791         (ada_discrete_type_low_bound): Likewise.
4792         * findvar.c (default_read_var_value): Likewise.
4793         * value.c (value_from_contents_and_address): Likewise.
4794
4795 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
4796
4797         * gdbtypes.c (resolve_dynamic_array): Use
4798         create_array_type_with_stride instead of create_array_type.
4799
4800 2015-04-30  DJ Delorie  <dj@redhat.com>
4801
4802         * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
4803         rl78_decode_opcode
4804
4805 2015-04-29  Doug Evans  <dje@google.com>
4806
4807         PR python/18285
4808         * NEWS: Document new gdb.XMethodWorker.get_result_type method.
4809         * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
4810         EVAL_AVOID_SIDE_EFFECTS for xmethods.
4811         * extension-priv.h (struct extension_language_ops)
4812         <get_xmethod_result_type>: New member.
4813         * extension.c (get_xmethod_result_type): New function.
4814         * extension.h (get_xmethod_result_type): Declare.
4815         * python/py-xmethods.c (get_result_type_method_name): New static
4816         global.
4817         (py_get_result_type_method_name): Ditto.
4818         (gdbpy_get_xmethod_result_type): New function.
4819         (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
4820         * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
4821         * python/python.c (python_extension_ops): Add
4822         gdbpy_get_xmethod_result_type.
4823         * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
4824         * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
4825         xmethods.
4826         (value_x_unop): Ditto.
4827         * value.c (result_type_of_xmethod): New function.
4828         * value.h (result_type_of_xmethod): Declare.
4829
4830 2015-04-29  Gary Benson <gbenson@redhat.com>
4831
4832         * solib.c (solib_find_1): Allow fd argument to be NULL.
4833         (exec_file_find): Update comment.
4834         (solib_find): Likewise.
4835         * exec.c (exec_file_locate_attach): Use NULL as fd
4836         argument to exec_file_find to avoid having to close
4837         the opened file.
4838         * infrun.c (follow_exec): Likewise.
4839
4840 2015-04-28  Doug Evans  <dje@google.com>
4841
4842         PR python/18299
4843         * python/lib/gdb/printing.py (register_pretty_printer): Handle
4844         name or __name__ attributes.  Handle gdb module as first argument.
4845
4846 2015-04-28  Doug Evans  <dje@google.com>
4847
4848         PR python/18089
4849         * python/py-prettyprint.c (print_children): Verify result of children
4850         iterator.  Provide better error message.
4851         * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
4852         * python/python.c (gdbpy_print_python_errors_p): New function.
4853
4854 2015-04-28  Doug Evans  <dje@google.com>
4855
4856         * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
4857
4858 2015-04-28  Sasha Smundak  <asmundak@google.com>
4859
4860         * NEWS: Mention gdb.Type.optimized_out method.
4861         * python/py-type.c (typy_optimized_out):  New function.
4862
4863 2015-04-28  John Baldwin  <jhb@FreeBSD.org>
4864
4865         * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
4866
4867 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
4868
4869         * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
4870         (initialize_utils): Move call of init_page_info() to ...
4871         * top.c (gdb_init): ... here.
4872
4873 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
4874
4875         * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
4876         (tui_sigwinch_handler): Still update our idea of
4877         the terminal's width and height even when TUI is not active.
4878
4879 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
4880
4881         * utils.h (set_screen_width_and_height): Declare.
4882         * utils.c (set_screen_width_and_height): Define.
4883         * tui/tui-win.c (tui_update_gdb_sizes): Use it.
4884
4885 2015-04-28  Gary Benson <gbenson@redhat.com>
4886
4887         * infrun.c (solist.h): New include.
4888         (follow_exec): Use exec_file_find to prefix execd_pathname
4889         with gdb_sysroot.
4890
4891 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
4892
4893         * tui/tui-source.c (tui_set_source_content): Avoid calling
4894         strcpy() when offset is 0.
4895
4896 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
4897
4898         PR gdb/18155
4899         * tui/tui-data.c (tui_free_window): Don't free the locator
4900         window when passed an SRC_WIN or a DISASSEM_WIN.
4901
4902 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
4903
4904         * tui/tui-data.h (struct tui_win_element): Forward-declare.
4905         (tui_win_content): Move declaration.
4906         (struct tui_gen_win_info): Give 'content' field the
4907         type tui_win_content.
4908         * tui/tui-data.c (init_content_element): Remove redundant and
4909         erroneous casts.
4910         (tui_add_content_elements): Remove erroneous cast.
4911         * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
4912         casts.
4913         (tui_get_begin_asm_address): Likewise.
4914         * tui/tui-regs.c (tui_show_registers): Likewise.
4915         (tui_show_register_group): Likewise.
4916         (tui_display_registers_from): Likewise.
4917         (tui_check_register_values): Likewise.
4918         * tui/tui-source.c (tui_set_source_content): Likewise.
4919         (tui_set_source_content_nil): Likewise.
4920         (tui_source_is_displayed): Likewise.
4921         * tui/tui-stack.c (tui_show_locator_content): Likewise.
4922         (tui_set_locator_fullname): Likewise.
4923         (tui_set_locator_info): Likewise.
4924         (tui_show_frame_info): Likewise.
4925         * tui/tui-winsource.c (tui_clear_source_content): Likewise.
4926         (tui_show_source_line): Likewise.
4927         (tui_horizontal_source_scroll): Likewise.
4928         (tui_update_breakpoint_info): Likewise.
4929         (tui_set_exec_info_content): Likewise.
4930         (tui_show_exec_info_content): Likewise.
4931         (tui_alloc_source_buffer): Likewise.
4932         (tui_line_is_displayed): Likewise.
4933         (tui_addr_is_displayed): Likewise.
4934
4935 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
4936
4937         * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
4938         event if PL_FLAG_EXEC is set.
4939         [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
4940         [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
4941         (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
4942         "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
4943         Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
4944
4945 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
4946
4947         * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
4948         [TDP_RFPPWAIT] New variable fbsd_pending_children.
4949         [TDP_RFPPWAIT] (fbsd_remember_child): New function.
4950         [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
4951         [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
4952         [PT_LWPINFO] (fbsd_wait): New function.
4953         [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
4954         [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
4955         [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
4956         [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
4957         [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
4958         [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
4959         [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
4960         [TDP_RFPPWAIT] (fbsd_post_attach): New function.
4961         (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
4962         "fbsd_wait".
4963         [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
4964         Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
4965         Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
4966         Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
4967         Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
4968         Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
4969         Set "to_post_attach" to "fbsd_post_attach".
4970
4971 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
4972
4973         * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
4974         (fbsd_find_memory_regions): Mark static.
4975         (fbsd_nat_add_target): New function.
4976         * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
4977         fbsd_pid_to_exec_file and fbsd_find_memory_regions.
4978         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
4979         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
4980         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
4981         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
4982
4983 2015-04-27  Gary Benson <gbenson@redhat.com>
4984
4985         * objfiles.c (allocate_objfile): Do not attempt to expand name
4986         if name is a "target:" filename.
4987         * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
4988         to load auto-load scripts for objfiles with "target:" filenames.
4989
4990 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4991
4992         * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
4993         (enum s390_vector_abi_kind): New enum.
4994         (struct gdbarch_tdep)<vector_abi>: New field.
4995         (s390_effective_inner_type): Add parameter min_size.  Stop
4996         unwrapping if the inner type is smaller than min_size.
4997         (s390_function_arg_float): Adjust call to
4998         s390_effective_inner_type.
4999         (s390_function_arg_vector): New function.
5000         (s390_function_arg_integer): Adjust comment.
5001         (struct s390_arg_state)<vr>: New field.
5002         (s390_handle_arg): Add parameter 'is_unnamed'.  Pass vector
5003         arguments according to vector ABI when appropriate.
5004         (s390_push_dummy_call): Initialize the argument state's field
5005         'vr'.  Adjust calls to s390_handle_arg.
5006         (s390_register_return_value): Handle vector return values.
5007         (s390_return_value): Apply the "register" return value convention
5008         to a vector when appropriate.
5009         (s390_gdbarch_init): Initialize tdep->vector_abi.
5010         * NEWS: Announce S390 vector ABI support.
5011
5012 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5013
5014         * s390-linux-tdep.c (s390_return_value_convention): Remove
5015         function.  Inline its logic...
5016         (s390_return_value): ...here.  Instead, move the handling of the
5017         "register" return value convention...
5018         (s390_register_return_value): ...here.  New function.
5019
5020 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5021
5022         * s390-linux-tdep.c
5023         (is_float_singleton): Remove function.  Move the "singleton" part
5024         of the logic...
5025         (s390_effective_inner_type): ...here.  New function.
5026         (is_float_like): Remove function.  Inline its logic...
5027         (s390_function_arg_float): ...here.
5028         (is_pointer_like, is_integer_like, is_struct_like): Remove
5029         functions.  Inline their logic...
5030         (s390_function_arg_integer): ...here.
5031         (s390_function_arg_pass_by_reference): Remove function.
5032         (extend_simple_arg): Remove function.
5033         (alignment_of): Remove function.
5034         (struct s390_arg_state): New structure.
5035         (s390_handle_arg): New function.
5036         (s390_push_dummy_call): Move parameter placement logic to the new
5037         function s390_handle_arg.  Call it for calculating the stack area
5038         sizes first, and again for actually writing the parameters.
5039
5040 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5041
5042         * s390-linux-tdep.c (is_power_of_two): Add comment.  Return
5043           false if the argument is zero.
5044
5045 2015-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
5046
5047         * ada-lang.c (template_to_static_fixed_type): Return input type
5048         when it is already fixed.  Cache the input type itself when not
5049         creating a static fixed copy.  Make it explicit that we never
5050         molestate the input type.
5051         * gdbtypes.c (resolve_dynamic_struct): Reset the
5052         TYPE_TARGET_TYPE field for resolved copies.
5053
5054 2015-04-27  Joel Brobecker  <brobecker@adacore.com>
5055
5056         * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
5057         (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
5058         (template_to_static_fixed_type): Call ada_check_typedef only
5059         when necessary.
5060
5061 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
5062
5063         * cli/cli-dump.c (srec_dump_command): Add internationalization
5064         mark ups.
5065         (ihex_dump_command): Likewise.
5066         (tekhex_dump_command): Likewise.
5067         (binary_dump_command): Likewise.
5068         (binary_append_command): Likewise.
5069
5070 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
5071
5072         * cli/cli-dump.c (verilog_cmdlist): New variable.
5073         (dump_verilog_memory): New function.
5074         (dump_verilog_value): New function.
5075         (verilog_dump_command): New function.
5076         (_initialize_cli_dump): Add new commands to support verilog dump
5077         format.
5078         * NEWS: Add entry for "dump verilog".
5079
5080 2015-04-24  Pierre-Marie de Rodat  <derodat@adacore.com>
5081
5082         * gdbtypes.c (print_gnat_stuff): Do not recurse on the
5083         descriptive type when there is none.
5084
5085 2015-04-23  Patrick Palka  <patrick@parcs.ath.cx>
5086
5087         * tui/tui-win.c (tui_async_resize_screen): Call
5088         rl_resize_terminal().
5089
5090 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
5091
5092         * windows-nat.c (handle_output_debug_string): Don't change
5093         current_event.dwThreadId.
5094         (get_windows_debug_event): Use thread_id, rather than relying on
5095         current_event.dwThreadId being changed.
5096
5097 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
5098
5099         * windows-nat.c (windows_continue): Report an error if
5100         ContinueDebugEvent() fails.
5101
5102 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
5103
5104         * windows-nat.c (windows_resume): Fix misspelling in debug output.
5105
5106 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
5107
5108         * windows-nat.c (get_windows_debug_event): Replace retval with
5109         thread_id throughout.  Update stale comment.
5110
5111 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
5112
5113         * windows-nat.c (get_windows_debug_event): Don't use ternary
5114         conditional operator.
5115
5116 2015-04-21  Pierre Muller  <muller@sourceware.org>
5117
5118         PR pascal/17815
5119         p-exp.y (yylex): Reorganize code to return the matched pattern
5120         for a field of this.
5121
5122 2015-04-21  Gary Benson <gbenson@redhat.com>
5123
5124         * common/fileio.h (fileio_to_host_openflags): New declaration.
5125         * common/fileio.c (fcntl.h): New include.
5126         (fileio_to_host_openflags): New function, factored out from...
5127         * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
5128         Single use updated.
5129
5130 2015-04-21  Kevin Buettner  <kevinb@redhat.com>
5131
5132         * rl78-tdep.c (RL78_SP_ADDR): Define.
5133         (opc_reg_to_gdb_regnum): New static function.
5134         (rl78_analyze_prologue): Recognize instructions forming slightly
5135         more interesting prologues.
5136
5137 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
5138
5139         Revert:
5140         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
5141         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
5142         TYPE_CODE_REF types so that they are not considered as dynamic
5143         depending on the referenced type.
5144         (resolve_dynamic_type_internal): Likewise.
5145
5146 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
5147
5148         Revert:
5149         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
5150         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
5151         "top_level" parameter.
5152         (resolve_dynamic_type_internal): Remove the unused "top_level"
5153         parameter.  Update call to is_dynamic_type_internal.
5154         (is_dynamic_type): Update call to is_dynamic_type_internal.
5155         (resolve_dynamic_range): Update call to
5156         resolve_dynamic_type_internal.
5157         (resolve_dynamic_union): Likewise.
5158         (resolve_dynamic_struct): Likewise.
5159         (resolve_dynamic_type): Likewise.
5160
5161 2015-04-19  Gabriel Krisman Bertazi  <gabriel@krisman.be>
5162
5163         * breakpoint.c (update_dprintf_command_list): Remove duplicated
5164         xmalloc.
5165
5166 2015-04-20  Thomas Schwinge  <thomas@codesourcery.com>
5167
5168         * reply_mig_hack.awk: Robustify parsing.
5169
5170         * reply_mig_hack.awk: Don't bother to declare an intermediate
5171         function pointer variable.
5172
5173 2015-04-17  Doug Evans  <dje@google.com>
5174
5175         * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
5176         to "exec_displacement" to avoid confusion with inner use of the name.
5177
5178 2015-04-17  Pedro Alves  <palves@redhat.com>
5179
5180         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
5181         if HW point of TYPE isn't supported.
5182
5183 2015-04-17  Yao Qi  <yao.qi@linaro.org>
5184             Pedro Alves  <palves@redhat.com>
5185
5186         * target.h (target_can_use_hardware_watchpoint): Update comments.
5187         Remove trailing ";".
5188
5189 2015-04-17  Gary Benson <gbenson@redhat.com>
5190
5191         * remote.c (remote_add_inferior): New argument try_open_exec.
5192         If nonzero, attempt to open the inferior's executable file as
5193         the main executable if no main executable is open already.
5194         All callers updated.
5195         * NEWS: Mention that GDB now supports automatic location and
5196         retrieval of executable + files from remote targets.
5197
5198 2015-04-17  Gary Benson <gbenson@redhat.com>
5199
5200         * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
5201         * remote.c (PACKET_qXfer_exec_file): Likewise.
5202         (remote_protocol_features): Register the
5203         "qXfer:exec-file:read" feature.
5204         (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
5205         (remote_pid_to_exec_file): New function.
5206         (init_remote_ops): Initialize to_pid_to_exec_file.
5207         (_initialize_remote): Register new "set/show remote
5208         pid-to-exec-file-packet" command.
5209         * NEWS: Announce new qXfer:exec-file:read packet.
5210
5211 2015-04-17  Gary Benson <gbenson@redhat.com>
5212
5213         * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
5214         New declaration.
5215         * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
5216         New function, factored out from...
5217         * linux-nat.c (linux_child_pid_to_exec_file): ...here.
5218
5219 2015-04-17  Gary Benson <gbenson@redhat.com>
5220
5221         * exec.c (solist.h): New include.
5222         (exec_file_locate_attach): Prefix absolute executable
5223         paths with gdb_sysroot if set.
5224         * NEWS: Mention that executable paths may be prepended
5225         with sysroot.
5226
5227 2015-04-17  Gary Benson <gbenson@redhat.com>
5228
5229         * solist.h (exec_file_find): New declaration.
5230         * solib.c (solib_find_1): New function, factored out from...
5231         (solib_find): ...here.
5232         (exec_file_find): New function.
5233
5234 2015-04-17  Gary Benson <gbenson@redhat.com>
5235
5236         * gdbcore.h (exec_file_locate_attach): New declaration.
5237         * exec.c (exec_file_locate_attach): New function, factored
5238         out from...
5239         * infcmd.c (attach_command_post_wait): ...here.
5240
5241 2015-04-17  Mike Frysinger  <vapier@gentoo.org>
5242
5243         * MAINTAINERS: Add myself for Blackfin/write-after-approval.
5244
5245 2015-04-16  Yao Qi  <yao.qi@linaro.org>
5246
5247         * infrun.c (maybe_software_singlestep): Declare.
5248         (displaced_step_fixup): Call maybe_software_singlestep.
5249
5250 2015-04-15  Doug Evans  <dje@google.com>
5251
5252         * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
5253
5254 2015-04-15  Doug Evans  <dje@google.com>
5255
5256         * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
5257
5258 2015-04-15  Simon Marchi  <simon.marchi@ericsson.com>
5259
5260         * python/lib/gdb/command/unwinders.py: Add parentheses.
5261
5262 2015-04-15  Yao Qi  <yao.qi@linaro.org>
5263
5264         * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
5265
5266 2015-04-15  Yao Qi  <yao.qi@linaro.org>
5267
5268         * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
5269
5270 2015-04-15  Yao Qi  <yao.qi@linaro.org>
5271
5272         * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5273         dsc->insn_size instead of 4.
5274
5275 2015-04-14  Gary Benson <gbenson@redhat.com>
5276
5277         * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
5278         * minidebug.c (lzma_stat): Likewise.
5279         * solib-spu.c (spu_bfd_iovec_stat): Likewise.
5280         * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
5281
5282 2015-04-13  Stan Shebs  <stanshebs@google.com>
5283
5284         * MAINTAINERS: Update my email address.
5285
5286 2015-04-13  John Baldwin  <jhb@FreeBSD.org>
5287
5288         * amd64-tdep.c (amd64_target_description): New function.
5289         * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
5290         * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
5291         (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
5292         x86 extended save area.
5293         (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
5294         * amd64bsd-nat.h: Export amd64bsd_xsave_len.
5295         * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
5296         (_initialize_amd64fbsd_nat): Set "to_read_description" to
5297         "amd64fbsd_read_description".
5298         * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
5299         (amd64fbsd_supply_xstateregset): New function.
5300         (amd64fbsd_collect_xstateregset): New function.
5301         Add "amd64fbsd_xstateregset".
5302         (amd64fbsd_iterate_over_regset_sections): New function.
5303         (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
5304         "I386_FBSD_XSAVE_XCR0_OFFSET".
5305         Add "iterate_over_regset_sections" gdbarch method.
5306         Add "core_read_description" gdbarch method.
5307         * i386-tdep.c (i386_target_description): New function.
5308         * i386-tdep.h: Export i386_target_description and tdesc_i386.
5309         * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
5310         (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
5311         x86 extended save area.
5312         (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
5313         * i386bsd-nat.h: Export i386bsd_xsave_len.
5314         * i386fbsd-nat.c (i386fbsd_read_description): New function.
5315         (_initialize_i386fbsd_nat): Set "to_read_description" to
5316         "i386fbsd_read_description".
5317         * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
5318         (i386fbsd_core_read_description): New function.
5319         (i386fbsd_supply_xstateregset): New function.
5320         (i386fbsd_collect_xstateregset): New function.
5321         Add "i386fbsd_xstateregset".
5322         (i386fbsd_iterate_over_regset_sections): New function.
5323         (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
5324         "I386_FBSD_XSAVE_XCR0_OFFSET".
5325         Add "iterate_over_regset_sections" gdbarch method.
5326         Add "core_read_description" gdbarch method.
5327         * i386fbsd-tdep.h: New file.
5328
5329 2015-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5330
5331         * NEWS (Changes since GDB 7.9): Add removed -xdb.
5332         * breakpoint.c (command_line_is_silent): Remove xdb_commands
5333         conditional.
5334         (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
5335         and lb.
5336         * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
5337         va.
5338         * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
5339         conditional.
5340         * defs.h (xdb_commands): Remove declaration.
5341         * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
5342         * guile/scm-cmd.c (command_classes): Remove xdb from comment.
5343         * infcmd.c (run_no_args_command, go_command): Remove.
5344         (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
5345         * infrun.c (xdb_handle_command): Remove.
5346         (_initialize_infrun): Remove xdb_commands for lz and z.
5347         * main.c (xdb_commands): Remove variable.
5348         (captured_main): Remove "xdb" from long_options.
5349         (print_gdb_help): Remove --xdb from help.
5350         * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
5351         * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
5352         * stack.c (backtrace_full_command, args_plus_locals_info)
5353         (current_frame_command): Remove.
5354         (_initialize_stack): Remove xdb_commands for t, T and l.
5355         * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
5356         * thread.c (_initialize_thread): Remove xdb_commands condition.
5357         * tui/tui-layout.c (tui_toggle_layout_command)
5358         (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
5359         (_initialize_tui_layout): Remove xdb_commands for td and ts.
5360         * tui/tui-regs.c (tui_scroll_regs_forward_command)
5361         (tui_scroll_regs_backward_command): Remove.
5362         (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
5363         * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
5364         (_initialize_tui_win): Remove xdb_commands for U and w.
5365         * utils.c (pagination_on_command, pagination_off_command): Remove.
5366         (initialize_utils): Remove xdb_commands for am and sm.
5367
5368 2015-04-10  Pedro Alves  <palves@redhat.com>
5369
5370         * infrun.c (displaced_step_fixup): Switch to the event ptid
5371         earlier.  If the thread stopped for a watchpoint and the
5372         target/arch has non-continuable watchpoints, cancel the displaced
5373         step.
5374         (resume): Don't start a displaced step if in-line step-over info
5375         is valid.
5376
5377 2015-04-10  Pedro Alves  <palves@redhat.com>
5378
5379         * infrun.c (displaced_step_in_progress): New function.
5380         (do_target_resume): Advise target to report all signals if
5381         displaced stepping.
5382
5383 2015-04-10  Pedro Alves  <palves@redhat.com>
5384
5385         PR gdb/18216
5386         * infrun.c (process_event_stop_test): Don't assume a step-resume
5387         is set if tp->stepped_breakpoint is true.
5388
5389 2015-04-10  Yao Qi  <yao.qi@linaro.org>
5390
5391         * arm-tdep.c (install_alu_reg): Update comment.
5392         (thumb_copy_alu_reg): Remove local variable rn.  Update
5393         debugging message.  Use r2 instead of r1 in the modified
5394         instruction.
5395
5396 2015-04-10  Pedro Alves  <palves@redhat.com>
5397
5398         PR gdb/13858
5399         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
5400         linux_displaced_step_location as gdbarch_displaced_step_location
5401         hook.
5402         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
5403         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5404         * linux-tdep.c (linux_displaced_step_location): New function,
5405         based on ppc_linux_displaced_step_location.
5406         * linux-tdep.h (linux_displaced_step_location): New declaration.
5407         * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
5408         (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
5409         Delete.
5410         (ppc_linux_init_abi): Install linux_displaced_step_location as
5411         gdbarch_displaced_step_location hook, even without Cell/B.E..
5412         (_initialize_ppc_linux_tdep): Don't install
5413         ppc_linux_inferior_created as inferior_created observer.
5414         * s390-linux-tdep.c (s390_gdbarch_init): Install
5415         linux_displaced_step_location as gdbarch_displaced_step_location
5416         hook.
5417
5418 2015-04-09  Gary Benson <gbenson@redhat.com>
5419
5420         * common/common-remote-fileio.h: Rename to...
5421         * common/fileio.h: ...this.  Update all references.
5422         (remote_fileio_to_fio_error): Rename to...
5423         (host_to_fileio_error): ...this.
5424         (remote_fileio_to_be): Rename to...
5425         (host_to_bigendian): ...this.  Update all callers.
5426         (remote_fileio_to_fio_uint): Rename to...
5427         (host_to_fileio_uint): ...this.  Update all callers.
5428         (remote_fileio_to_fio_time): Rename to...
5429         (host_to_fileio_time): ...this.  Update all callers.
5430         (remote_fileio_to_fio_stat): Rename to...
5431         (host_to_fileio_stat): ...this.
5432         Update all references.
5433         * common/common-remote-fileio.c: Rename to...
5434         * common/fileio.c: ...this.  Update all references.
5435         (remote_fileio_to_fio_error): Rename to...
5436         (host_to_fileio_error): ...this.  Update all callers.
5437         (remote_fileio_mode_to_target): Rename to...
5438         (fileio_mode_pack): ...this.  Update all callers.
5439         (remote_fileio_to_fio_mode): Rename to...
5440         (host_to_fileio_mode): ...this.  Update all callers.
5441         (remote_fileio_to_fio_ulong): Rename to...
5442         (host_to_fileio_ulong): ...this.  Update all callers.
5443         (remote_fileio_to_fio_stat): Rename to...
5444         (host_to_fileio_stat): ...this.  Update all callers.
5445
5446 2015-04-09  Andy Wingo  <wingo@igalia.com>
5447
5448         * guile/scm-frame.c (gdbscm_frame_read_register): New function.
5449         (frame_functions): Bind gdbscm_frame_read_register to
5450         frame-read-register.
5451         * guile/lib/gdb.scm (frame-read-register): Export.
5452
5453 2015-04-09  Gary Benson <gbenson@redhat.com>
5454
5455         * common/common-remote-fileio.h (remote_fileio_to_fio_error):
5456         New declaration.
5457         * common/common-remote-fileio.c (remote_fileio_to_fio_error):
5458         New function, factored out the named functions below.
5459         * inf-child.c (gdb/fileio.h): Remove include.
5460         (common-remote-fileio.h): New include.
5461         (inf_child_errno_to_fileio_error): Remove function.  Update
5462         all callers to use remote_fileio_to_fio_error.
5463         * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
5464
5465 2015-04-09  Andy Wingo  <wingo@igalia.com>
5466
5467         * MAINTAINERS (Write After Approval): Add Andy Wingo.
5468
5469 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
5470
5471         * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
5472         Replace $zlibdir with $ZLIBDIR in LDFLAGS.
5473         * configure: Regenerated.
5474
5475 2015-04-09  Pedro Alves  <palves@redhat.com>
5476
5477         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
5478         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
5479         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
5480         * gnulib/import/Makefile.am: Update.
5481         * gnulib/import/Makefile.in: Update.
5482         * gnulib/import/m4/gnulib-cache.m4: Update.
5483         * gnulib/import/m4/gnulib-comp.m4: Update.
5484         * gnulib/import/m4/strtok_r.m4: New file.
5485         * gnulib/import/strtok_r.c: New file.
5486
5487 2015-04-09  Pedro Alves  <palves@redhat.com>
5488
5489         * gnulib/update-gnulib.sh (aclocal version check): Filter out
5490         "called too early to check prototype".
5491
5492 2015-04-08  Sergio Durigan Junior  <sergiodj@redhat.com>
5493
5494         PR python/16699
5495         * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
5496         use a caching mechanism.  Adjust comments and code to reflect
5497         that.  Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
5498         (cmdpy_completer_handle_brkchars): Adjust call to
5499         cmdpy_completer_helper.  Call Py_XDECREF for 'resultobj'.
5500         (cmdpy_completer): Likewise.
5501
5502 2015-04-08  Yao Qi  <yao.qi@linaro.org>
5503
5504         * spu-tdep.c (spu_gdbarch_init): Don't call
5505         set_gdbarch_cannot_step_breakpoint.
5506
5507 2015-04-07  Sergio Durigan Junior  <sergiodj@redhat.com>
5508
5509         * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
5510
5511 2015-04-07  Pedro Alves  <palves@redhat.com>
5512
5513         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
5514         (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
5515         (delete_exited_threads): New declaration.
5516         * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
5517         * linux-nat.c (linux_nat_update_thread_list): New function.
5518         (linux_nat_add_target): Install it.
5519         * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
5520         * thread.c (prune_threads): Use ALL_THREADS_SAFE.
5521         (delete_exited_threads): New function.
5522
5523 2015-04-07  Pedro Alves  <pedro@codesourcery.com>
5524
5525         * infrun.c (resume) <displaced stepping debug output>: Get the
5526         leader thread's regcache, not resume_ptid's.
5527
5528 2015-04-06  Doug Evans  <xdje42@gmail.com>
5529
5530         * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
5531         VAR_DOMAIN.
5532         (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
5533         Include symbol domain in debugging output.
5534
5535 2015-04-06  Pedro Alves  <palves@redhat.com>
5536             Bernd Edlinger  <bernd.edlinger@hotmail.de>
5537
5538         * configure.ac: Remove the mingw32-specific stub-termcap.o
5539         fallback, and instead fallback to the stub termcap on all hosts.
5540         * configure: Regenerate.
5541         * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
5542         symbols.
5543
5544 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
5545
5546         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
5547         "top_level" parameter.
5548         (resolve_dynamic_type_internal): Remove the unused "top_level"
5549         parameter.  Update call to is_dynamic_type_internal.
5550         (is_dynamic_type): Update call to is_dynamic_type_internal.
5551         (resolve_dynamic_range): Update call to
5552         resolve_dynamic_type_internal.
5553         (resolve_dynamic_union): Likewise.
5554         (resolve_dynamic_struct): Likewise.
5555         (resolve_dynamic_type): Likewise.
5556
5557 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
5558
5559         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
5560         TYPE_CODE_REF types so that they are not considered as dynamic
5561         depending on the referenced type.
5562         (resolve_dynamic_type_internal): Likewise.
5563
5564 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
5565
5566         * Makefile.in (top_srcdir): New.
5567         * configure: Regenerated.
5568
5569 2015-04-02  Gary Benson <gbenson@redhat.com>
5570
5571         * NEWS: Announce the new default sysroot of "target:".
5572
5573 2015-04-02  Gary Benson <gbenson@redhat.com>
5574
5575         * main.c (captured_main): Set gdb_sysroot to "target:"
5576         if not otherwise set.
5577
5578 2015-04-02  Gary Benson <gbenson@redhat.com>
5579
5580         * exec.c (exec_file_attach): Support "target:" filenames.
5581
5582 2015-04-02  Gary Benson <gbenson@redhat.com>
5583
5584         * solib.c (solib_find): Strip "target:" prefix from sysroot
5585         if accessing local files.
5586
5587 2015-04-02  Gary Benson <gbenson@redhat.com>
5588
5589         * symfile.c (symfile_bfd_open): Reorder to remove duplicated
5590         checks and error messages.
5591
5592 2015-04-02  Gary Benson <gbenson@redhat.com>
5593
5594         * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
5595         (remote_filename_p): Remove declaration.
5596         (remote_bfd_open): Likewise.
5597         * remote.c (remote_bfd_iovec_open): Remove function.
5598         (remote_bfd_iovec_close): Likewise.
5599         (remote_bfd_iovec_pread): Likewise.
5600         (remote_bfd_iovec_stat): Likewise.
5601         (remote_filename_p): Likewise.
5602         (remote_bfd_open): Likewise.
5603         * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
5604         * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
5605         (gdb_bfd_open_maybe_remote): Remove function.
5606         (symfile_bfd_open):  Replace remote filename check with
5607         target filename check.
5608         (reread_symbols): Use gdb_bfd_open.
5609         * build-id.c (gdbcore.h): New include.
5610         (build_id_to_debug_bfd): Use gdb_bfd_open.
5611         * infcmd.c (attach_command_post_wait): Remove remote filename
5612         check.
5613         * solib.c (solib_find): Replace remote-specific handling with
5614         target-specific handling.  Update comments where necessary.
5615         (solib_bfd_open): Replace remote-specific handling with
5616         target-specific handling.
5617         (gdb_sysroot_changed): New function.
5618         (_initialize_solib): Call the above when gdb_sysroot changes.
5619         * windows-tdep.c (gdbcore.h): New include.
5620         (windows_xfer_shared_library): Use gdb_bfd_open.
5621
5622 2015-04-02  Gary Benson <gbenson@redhat.com>
5623
5624         * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
5625         (is_target_filename): New declaration.
5626         (gdb_bfd_has_target_filename): Likewise.
5627         (gdb_bfd_open): Update documentation comment.
5628         * gdb_bfd.c (target.h): New include.
5629         (gdb/fileio.h): Likewise.
5630         (is_target_filename): New function.
5631         (gdb_bfd_has_target_filename): Likewise.
5632         (fileio_errno_to_host): Likewise.
5633         (gdb_bfd_iovec_fileio_open): Likewise.
5634         (gdb_bfd_iovec_fileio_pread): Likewise.
5635         (gdb_bfd_iovec_fileio_close): Likewise.
5636         (gdb_bfd_iovec_fileio_fstat): Likewise.
5637         (gdb_bfd_open): Use target fileio to access paths prefixed
5638         with "target:" where necessary.
5639
5640 2015-04-02  Gary Benson <gbenson@redhat.com>
5641
5642         * target.h (struct target_ops) <to_filesystem_is_local>:
5643         New field.
5644         (target_filesystem_is_local): New macro.
5645         * target-delegates.c: Regenerate.
5646         * remote.c (remote_filesystem_is_local): New function.
5647         (init_remote_ops): Initialize to_filesystem_is_local.
5648
5649 2015-04-02  Gary Benson <gbenson@redhat.com>
5650
5651         * target.h (struct target_ops) <to_fileio_fstat>: New field.
5652         (target_fileio_fstat): New declaration.
5653         * target.c (target_fileio_fstat): New function.
5654         * inf-child.c (inf_child_fileio_fstat): Likewise.
5655         (inf_child_target): Initialize to_fileio_fstat.
5656         * remote.c (init_remote_ops): Likewise.
5657
5658 2015-04-01  Sasha Smundak  <asmundak@google.com>
5659
5660         * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
5661         (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
5662         (py-unwind.o): New recipe.
5663         * NEWS: mention Python frame unwinding.
5664         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
5665         gdb/unwinder.py and gdb/command/unwinder.py
5666         * python/lib/gdb/__init__.py (packages): Add frame_unwinders
5667         list.
5668         (execute_unwinders): New function.
5669         * python/lib/gdb/command/unwinders.py: New file.
5670         * python/lib/gdb/unwinder.py: New file.
5671         * python/py-objfile.c (objfile_object): Add frame_unwinders field.
5672         (objfpy_dealloc): Decrement frame_unwinders reference count.
5673         (objfpy_initialize): Create frame_unwinders list.
5674         (objfpy_get_frame_unwinders): New function.
5675         (objfpy_set_frame_unwinders): Ditto.
5676         (objfile_getset): Add frame_unwinders attribute to Objfile.
5677         * python/py-progspace.c (pspace_object): Add frame_unwinders field.
5678         (pspy_dealloc): Decrement frame_unwinders reference count.
5679         (pspy_initialize): Create frame_unwinders list.
5680         (pspy_get_frame_unwinders): New function.
5681         (pspy_set_frame_unwinders): Ditto.
5682         (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
5683         * python/py-unwind.c: New file.
5684         * python/python-internal.h (pspy_get_name_unwinders): New prototype.
5685         (objpy_get_frame_unwinders): New prototype.
5686         (gdbpy_initialize_unwind): New prototype.
5687         * python/python.c (gdbpy_apply_type_printers): Call
5688         gdbpy_initialize_unwind.
5689
5690 2015-04-01  Pedro Alves  <palves@redhat.com>
5691
5692         * infrun.c (resume): Check currently_stepping after clearing
5693         stepped_breakpoint, not before.
5694
5695 2015-04-01  Pedro Alves  <palves@redhat.com>
5696
5697         * infrun.c (print_target_wait_results): Print all the ptid
5698         elements.
5699
5700 2015-04-01  Pedro Alves  <palves@redhat.com>
5701
5702         * infrun.c (keep_going): Also discard cleanups if inserting
5703         breakpoints fails.
5704
5705 2015-04-01  Pedro Alves  <palves@redhat.com>
5706
5707         * infrun.c (wait_for_inferior): Install the
5708         finish_thread_state_cleanup cleanup across the whole function, not
5709         just around handle_inferior_event.
5710
5711 2015-04-01  Pedro Alves  <palves@redhat.com>
5712
5713         * infrun.c (resume) <step past permanent breakpoint>: Use
5714         do_target_resume.
5715
5716 2015-04-01  Pedro Alves  <palves@redhat.com>
5717
5718         * linux-nat.c (linux_handle_extended_wait): Always call set_running.
5719
5720 2015-04-01  Pierre-Marie de Rodat  <derodat@adacore.com>
5721
5722         * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
5723
5724 2015-04-01  Pedro Alves  <palves@redhat.com>
5725
5726         * linux-thread-db.c (record_thread): Readd the thread to gdb's
5727         list if it was marked exited.
5728
5729 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
5730
5731         * configure: Regenerated.
5732
5733 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
5734             Jan Kratochvil  <jan.kratochvil@redhat.com>
5735             Oleg Nesterov  <oleg@redhat.com>
5736
5737         PR corefiles/16092
5738         * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
5739         New enum identifying the various options of the coredump_filter
5740         file.
5741         (struct smaps_vmflags): New struct.
5742         (use_coredump_filter): New variable.
5743         (decode_vmflags): New function.
5744         (mapping_is_anonymous_p): Likewise.
5745         (dump_mapping_p): Likewise.
5746         (linux_find_memory_regions_full): New variables
5747         'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
5748         Removed variable 'modified'.  Read /proc/<PID>/smaps file; improve
5749         parsing of its information.  Implement memory mapping filtering
5750         based on its contents.
5751         (show_use_coredump_filter): New function.
5752         (_initialize_linux_tdep): New command 'set use-coredump-filter'.
5753         * NEWS: Mention the possibility of using the
5754         '/proc/PID/coredump_filter' file when generating a corefile.
5755         Mention new command 'set use-coredump-filter'.
5756
5757 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
5758
5759         * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
5760         read_memory_unsigned_integer.
5761
5762 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
5763
5764         * Makefile.in (ZLIB): New.
5765         (ZLIBINC): Likewise.
5766         (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
5767         (CLIBS): Add $(ZLIB).
5768         * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
5769         Add -lz to LIBS.
5770         * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
5771         * top.c (print_gdb_configuration): Remove --with-zlib and
5772         --without-zlib.
5773         * config.in: Regenerated.
5774         * configure: Likewise.
5775
5776 2015-03-31  Antoine Tremblay  <antoine.tremblay@ericsson.com>
5777
5778         * NEWS: Mention info os cpus support.
5779         * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
5780         (struct osdata_type): Add cpus entry, reorder the entries in
5781         alphabetical order.
5782
5783 2015-03-31  Matthias Klose  <doko@ubuntu.com>
5784
5785         * compile/compile.c (compile_to_object): Allow triplets with or
5786         without vendor set.
5787
5788 2015-03-30  Doug Evans  <dje@google.com>
5789
5790         PR c++/18141
5791         * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
5792         klass in VAR_DOMAIN.
5793
5794 2015-03-30  Gary Benson <gbenson@redhat.com>
5795
5796         * remote.c (remote_mourn_1): Remove function.  Update all callers
5797         to use remote_mourn.
5798         (extended_remote_mourn_1): Remove function.  Update all callers
5799         to use extended_remote_mourn.
5800         (extended_remote_attach_1): Remove function.  Update all callers
5801         to use extended_remote_attach.
5802
5803 2015-03-28  James Bowman  <james.bowman@ftdichip.com>
5804
5805         * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
5806         (HFILES_NO_SRCDIR): Add ft32-tdep.h.
5807         (ALLDEPFILES): Add ft32-tdep.c.
5808         * configure.tgt: Add FT32 entry.
5809         * ft32-tdep.c: New file, FT32 target-dependent code.
5810         * ft32-tdep.h: New file, FT32 target-dependent code.
5811
5812 2015-03-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
5813
5814         Revert:
5815         2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
5816         Code cleanup.
5817         * printcmd.c (print_command_1): Move expr variable scope.
5818
5819 2015-03-27  Joel Brobecker  <brobecker@adacore.com>
5820
5821         * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
5822
5823 2015-03-27  Andrzej Kaczmarek  <andrzej.kaczmarek@tieto.com>
5824
5825         * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
5826         sections.
5827
5828 2015-03-26  Joel Brobecker  <brobecker@adacore.com>
5829
5830         * dtrace-probe.c (dtrace_process_dof_probe): Contain any
5831         exception raised while parsing the probe arguments.
5832         Force parsing to be done using the C language parser.
5833         * expression.h (parse_expression_with_language): Declare.
5834         * parse.c (parse_expression_with_language): New function.
5835
5836 2015-03-26  Jon Turney  <jon.turney@dronecode.org.uk>
5837
5838         * MAINTAINERS (Write After Approval): Add "Jon Turney".
5839
5840 2015-03-26  Andy Wingo  <wingo@igalia.com>
5841
5842         PR symtab/18148
5843         * dwarf2read.c (struct partial_die_info): Add has_const_value
5844         member.
5845         (add_partial_symbol): Don't punt on symbols that have const_value
5846         attributes.
5847         (read_partial_die): Detect DW_AT_const_value.
5848
5849 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
5850
5851         Code cleanup.
5852         * printcmd.c (print_command_1): Move expr variable scope.
5853
5854 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
5855
5856         Code cleanup.
5857         * printcmd.c (validate_format): Make the parameter cmdname const.
5858
5859 2015-03-26  Don Breazeal  <donb@codesourcery.com>
5860
5861         * remote.c (_initialize_remote): Update comment.
5862
5863 2015-03-26  Pedro Alves  <palves@redhat.com>
5864             Jon TURNEY  <jon.turney@dronecode.org.uk>
5865
5866         * coffread.c (coff_symfile_read): When constructing the name of an
5867         import stub symbol from import symbol for amd64, only skip the
5868         char after _imp_ if the target is underscored (like i386) and the
5869         char is indeed the target's leading char.
5870
5871 2015-03-25  Pedro Alves  <palves@redhat.com>
5872
5873         * target.h <to_async>: Replace 'callback' and 'context' parameters
5874         with boolean 'enable' parameter.
5875         (target_async): Replace CALLBACK and CONTEXT parameters with
5876         boolean ENABLE parameter.
5877         * inf-loop.c (inferior_event_handler): Adjust.
5878         * linux-nat.c (linux_nat_attach, linux_nat_resume)
5879         (linux_nat_resume): Adjust.
5880         (async_client_callback, async_client_context): Delete.
5881         (handle_target_event): Call inferior_event_handler directly.
5882         (linux_nat_async): Replace 'callback' and 'context' parameters
5883         with boolean 'enable' parameter.  Adjust.  Remove references to
5884         async_client_callback and async_client_context.
5885         (linux_nat_close): Adjust.
5886         * record-btrace.c (record_btrace_async): Replace 'callback' and
5887         'context' parameters with boolean 'enable' parameter.  Adjust.
5888         (record_btrace_resume): Adjust.
5889         * record-full.c (record_full_async): Replace 'callback' and
5890         'context' parameters with boolean 'enable' parameter.  Adjust.
5891         (record_full_resume, record_full_core_resume): Adjust.
5892         * remote.c (struct remote_state) <async_client_callback,
5893         async_client_context>: Delete fields.
5894         (remote_start_remote, extended_remote_attach_1, remote_resume)
5895         (extended_remote_create_inferior): Adjust.
5896         (remote_async_serial_handler): Call inferior_event_handler
5897         directly.
5898         (remote_async): Replace 'callback' and 'context' parameters with
5899         boolean 'enable' parameter.  Adjust.
5900         * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
5901         Adjust.
5902         * target-delegates.c: Regenerate.
5903
5904 2015-03-25  Gary Benson <gbenson@redhat.com>
5905             Pedro Alves  <palves@redhat.com>
5906
5907         * target.c (fileio_ft_t): New typedef, define object vector.
5908         (fileio_fhandles): New static variable.
5909         (is_closed_fileio_fh): New macro.
5910         (lowest_closed_fd): New static variable.
5911         (acquire_fileio_fd): New function.
5912         (release_fileio_fd): Likewise.
5913         (fileio_fd_to_fh): New macro.
5914         (target_fileio_open): Wrap the file descriptor on success.
5915         (target_fileio_pwrite): Updated to use wrapped file descriptor.
5916         (target_fileio_pread): Likewise.
5917         (target_fileio_close): Likewise.
5918
5919 2015-03-24  Pedro Alves  <palves@redhat.com>
5920
5921         * thread.c (thread_apply_all_command): Take exited threads into
5922         account.
5923
5924 2015-03-24  Pedro Alves  <palves@redhat.com>
5925
5926         * infrun.c (resume, proceed): Mention
5927         switch_back_to_stepped_thread, not switch_back_to_stepping.
5928
5929 2015-03-24  Pedro Alves  <palves@redhat.com>
5930
5931         * infrun.c (user_visible_resume_ptid): Rewrite going from
5932         most-locked to unlocked instead of the opposite.  Move comment ...
5933         * infrun.h (user_visible_resume_ptid): ... here.
5934
5935 2015-03-24  Pedro Alves  <palves@redhat.com>
5936
5937         * linux-nat.c (linux_nat_resume): Output debug logs before trying
5938         to resume the event lwp.  Use the lwp's ptid instead of the passed
5939         in (maybe wildcard) ptid.
5940         (stop_wait_callback): Tweak debug log output.
5941         (check_stopped_by_breakpoint): Tweak debug log output.  Also dump
5942         TRAP_TRACE.
5943         (linux_nat_filter_event): In debug output, distinguish a
5944         resume_stop SIGSTOP from a delayed SIGSTOP.  Output debug logs
5945         before trying to resume the lwp.
5946
5947 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
5948
5949         * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
5950         pointer indirection.
5951         * gdbtypes.c (get_dyn_prop): Adjust, following change above.
5952         (add_dyn_prop, copy_dynamic_prop_list): Likewise.
5953
5954 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
5955
5956         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
5957         Renames DYN_ATTR_DATA_LOCATION.
5958         (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
5959         DYN_ATTR_DATA_LOCATION.
5960         * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
5961         instead of DYN_ATTR_DATA_LOCATION.
5962
5963 2015-03-24  Pedro Alves  <palves@redhat.com>
5964
5965         * breakpoint.c (until_break_command): Adjust call to proceed.
5966         * gdbthread.h (struct thread_control_state) <stepping_command>:
5967         New field.
5968         * infcall.c (run_inferior_call): Adjust call to proceed.
5969         * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
5970         Adjust calls to proceed.
5971         (set_step_frame): Set the current thread's step_start_function
5972         here.
5973         (step_once): Adjust calls to proceed.
5974         (jump_command, signal_command, until_next_command)
5975         (finish_backward, finish_forward, proceed_after_attach_callback)
5976         (attach_command_post_wait): Adjust calls to proceed.
5977         * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
5978         (do_target_resume): New function, factored out from ...
5979         (resume): ... here.  Remove 'step' parameter.  Instead, check
5980         currently_stepping to determine whether the thread should be
5981         single-stepped.
5982         (proceed): Remove 'step' parameter and don't set the thread's
5983         step_start_function here.  Adjust call to 'resume'.
5984         (handle_inferior_event): Adjust calls to 'resume'.
5985         (switch_back_to_stepped_thread): Use do_target_resume instead of
5986         'resume'.
5987         (keep_going): Adjust calls to 'resume'.
5988         * infrun.h (proceed): Remove 'step' parameter.
5989         (resume): Likewise.
5990         * windows-nat.c (do_initial_windows_stuff): Adjust call to
5991         'resume'.
5992         * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
5993
5994 2015-03-24  Pedro Alves  <palves@redhat.com>
5995
5996         * gdbthread.h (struct thread_control_state) <stepping_command>:
5997         New field.
5998         * infcmd.c (step_once): Pass step=1 to clear_proceed_status.  Set
5999         the thread's stepping_command field.
6000         * infrun.c (resume): Check the thread's stepping_command flag to
6001         determine which threads should be resumed.  Rename 'entry_step'
6002         local to user_step.
6003         (clear_proceed_status_thread): Clear 'stepping_command'.
6004         (schedlock_applies): Change parameter type to struct thread_info
6005         pointer.  Adjust.
6006         (find_thread_needs_step_over): Remove 'step' parameter.  Adjust.
6007         (switch_back_to_stepped_thread): Adjust calls to
6008         'schedlock_applies'.
6009         (_initialize_infrun): Adjust "set scheduler-locking step" help.
6010
6011 2015-03-24  Pedro Alves  <palves@redhat.com>
6012
6013         * infrun.c (step_start_function): Delete and ...
6014         * gdbthread.h (struct thread_control_state) <step_start_function>:
6015         ... now a field here.
6016         * infrun.c (clear_proceed_status_thread): Clear the thread's
6017         step_start_function.
6018         (proceed, process_event_stop_test, print_stop_event): Adjust.
6019
6020 2015-03-24  Pedro Alves  <palves@redhat.com>
6021
6022         * infrun.c (proceed): No longer handle negative step.
6023
6024 2015-03-24  Gary Benson  <gbenson@redhat.com>
6025
6026         * nat/x86-linux.h (x86_linux_new_thread): New declaration.
6027         (x86_linux_prepare_to_resume): Likewise.
6028         * x86-linux-nat.c (x86_linux_new_thread):
6029         Moved to nat/x86-linux.c.
6030         (x86_linux_prepare_to_resume): Likewise.
6031         * nat/x86-linux.c (x86_linux_new_thread): New function.
6032         (x86_linux_prepare_to_resume): Likewise.
6033
6034 2015-03-24  Gary Benson  <gbenson@redhat.com>
6035
6036         * nat/x86-linux-dregs.h: New file.
6037         * nat/x86-linux-dregs.c: Likewise.
6038         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
6039         (x86-linux-dregs.o): New rule.
6040         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
6041         * config/i386/linux64.mh (NATDEPFILES): Likewise.
6042         * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
6043         (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
6044         (x86_linux_dr_get): Likewise.
6045         (x86_linux_dr_set): Likewise.
6046         (x86_linux_dr_get_addr): Likewise.
6047         (x86_linux_dr_get_control): Likewise.
6048         (x86_linux_dr_get_status): Likewise.
6049         (update_debug_registers_callback): Likewise.
6050         (x86_linux_dr_set_control): Likewise.
6051         (x86_linux_dr_set_addr): Likewise.
6052         (x86_linux_update_debug_registers): Likewise.
6053
6054 2015-03-24  Gary Benson  <gbenson@redhat.com>
6055
6056         * x86-linux-nat.c (x86_linux_update_debug_registers):
6057         New function, factored out from...
6058         (x86_linux_prepare_to_resume): ...this.
6059
6060 2015-03-24  Gary Benson  <gbenson@redhat.com>
6061
6062         * x86-linux-nat.c (x86_linux_dr_get): Update comments.
6063         (x86_linux_dr_set): Likewise.
6064         (x86_linux_dr_get_addr): Likewise.
6065         (x86_linux_dr_get_control): Likewise.
6066         (x86_linux_dr_get_status): Likewise.
6067         (update_debug_registers_callback): Likewise.
6068         (x86_linux_dr_set_control): Likewise.
6069         (x86_linux_dr_set_addr): Likewise.
6070         (x86_linux_prepare_to_resume): Likewise.
6071         (x86_linux_new_thread): Likewise.
6072
6073 2015-03-24  Gary Benson  <gbenson@redhat.com>
6074
6075         * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
6076         (x86_linux_new_thread): Rename argument.
6077
6078 2015-03-24  Gary Benson  <gbenson@redhat.com>
6079
6080         * nat/x86-linux.h: New file.
6081         * nat/x86-linux.c: Likewise.
6082         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
6083         (x86-linux.o): New rule.
6084         * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
6085         * config/i386/linux64.mh (NATDEPFILES): Likewise.
6086         * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
6087         (lwp_set_arch_private_info): New declaration.
6088         (lwp_arch_private_info): Likewise.
6089         * linux-nat.c (lwp_set_arch_private_info): New function.
6090         (lwp_arch_private_info): Likewise.
6091         * x86-linux-nat.c: Include nat/x86-linux.h.
6092         (arch_lwp_info): Removed structure.
6093         (update_debug_registers_callback):
6094         Use lwp_set_debug_registers_changed.
6095         (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
6096         and lwp_set_debug_registers_changed.
6097         (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
6098
6099 2015-03-24  Gary Benson  <gbenson@redhat.com>
6100
6101         * nat/linux-nat.h (ptid_of_lwp): New declaration.
6102         (lwp_is_stopped): Likewise.
6103         (lwp_stop_reason): Likewise.
6104         * linux-nat.c (ptid_of_lwp): New function.
6105         (lwp_is_stopped): Likewise.
6106         (lwp_is_stopped_by_watchpoint): Likewise.
6107         * x86-linux-nat.c (update_debug_registers_callback):
6108         Use lwp_is_stopped.
6109         (x86_linux_prepare_to_resume): Use ptid_of_lwp and
6110         lwp_stop_reason.
6111
6112 2015-03-24  Gary Benson  <gbenson@redhat.com>
6113
6114         * linux-nat.h (linux_stop_lwp): Move declaration to...
6115         * nat/linux-nat.h (linux_stop_lwp): New declaration.
6116
6117 2015-03-24  Gary Benson  <gbenson@redhat.com>
6118
6119         * linux-nat.h: Include nat/linux-nat.h.
6120         (iterate_over_lwps): Move declaration to nat/linux-nat.h.
6121         * nat/linux-nat.h (struct lwp_info): New forward declaration.
6122         (iterate_over_lwps_ftype): New typedef.
6123         (iterate_over_lwps): New declaration.
6124         * linux-nat.h (iterate_over_lwps): Update comment.  Use
6125         iterate_over_lwps_ftype.  Update callback return value check.
6126
6127 2015-03-24  Gary Benson  <gbenson@redhat.com>
6128
6129         * x86-nat.h (x86_debug_reg_state): Move declaration to...
6130         * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
6131
6132 2015-03-24  Gary Benson  <gbenson@redhat.com>
6133
6134         * nat/linux-nat.h (current_lwp_ptid): New declaration.
6135         * linux-nat.c (current_lwp_ptid): New function.
6136         * x86-linux-nat.c: Include nat/linux-nat.h.
6137         (x86_linux_dr_get_addr): Use current_lwp_ptid.
6138         (x86_linux_dr_get_control): Likewise.
6139         (x86_linux_dr_get_status): Likewise.
6140         (x86_linux_dr_set_control): Likewise.
6141         (x86_linux_dr_set_addr): Likewise.
6142
6143 2015-03-24  Antoine Tremblay  <antoine.tremblay@ericsson.com>
6144
6145         PR breakpoints/16466
6146         * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
6147
6148 2015-03-23  Joel Brobecker  <brobecker@adacore.com>
6149
6150         * ser-mingw.c (ser_windows_setparity): Fix indentation.
6151         * ser-unix.c (hardwire_setparity): Likewise.
6152
6153 2015-03-23  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
6154
6155         * NEWS: Mention set/show serial parity command.
6156         * monitor.c (monitor_open): Call serial_setparity.
6157         * remote.c (remote_open_1): Likewise.
6158         * ser-base.c (ser_base_serparity): New function.
6159         * ser-base.h (ser_base_setparity): Add  declaration.
6160         * ser-go32.c (dos_ops): Set "setparity" field.
6161         * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
6162         state.Parity.
6163         (ser_windows_setparity): New function.
6164         (hardwire_ops): Add ser_windows_setparity.
6165         (tty_ops): Add NULL for setparity field.
6166         (pipe_ops): Add ser_base_setparity.
6167         (tcp_ops): Likewise.
6168         * ser-pipe.c (pipe_ops): Likewise.
6169         * ser-tcp.c (tcp_ops): Likewise.
6170         * ser-unix.c (hardwire_setparity): Add declaration.
6171         (hardwire_raw): Don't reset PARENB flag.
6172         (hardwire_setparity): New function.
6173         (hardwire_ops): Add hardwire_setparity.
6174         * serial.c (serial_setparity): New function.
6175         (serial_parity): New global.
6176         (parity_none, parity_odd, parity_even, parity_enums, parity):
6177         New static globals.
6178         (set_parity): New function.
6179         (_initialize_serial): Add set/show serial parity commands.
6180         * serial.h (GDBPARITY_NONE): Define.
6181         (GDBPARITY_ODD): Define.
6182         (GDBPARITY_EVEN): Define.
6183         (serial_setparity) Add declaration.
6184         (struct serial_ops): Add setparity field.
6185         * target.h (serial_parity): Add declaration.
6186
6187 2015-03-23  Keith Seitz  <keiths@redhat.com>
6188
6189         * linespec.c (linespec_lexer_lex_keyword): Update comment.
6190
6191 2015-03-23  Keith Seitz  <keiths@redhat.com>
6192
6193         * breakpoint.c (parse_breakpoint_sals): Use
6194         linespec_lexer_lex_keyword to ascertain if the user specified
6195         a NULL location.
6196         * linespec.c [IF_KEYWORD_INDEX]: Define.
6197         (linespec_lexer_lex_keyword): Export.
6198         (struct ls_parser) <keyword_ok>: Remove.
6199         A keyword is only a keyword if not followed by another keyword.
6200         (linespec_lexer_lex_one): Remove keyword_ok handling.
6201         Add comment explaining why the parsing stream is not advanced
6202         when a keyword is seen.
6203         (parse_linespec): Remove parser->keyword_ok.
6204         * linespec.h (linespec_lexer_lex_keyword): Add declaration.
6205
6206 2015-03-23  Keith Seitz  <keiths@redhat.com>
6207
6208         PR gdb/18021
6209         * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
6210         if we find a static method with DW_AT_vtable_elem_location.
6211
6212 2015-03-21  Eli Zaretskii  <eliz@gnu.org>
6213
6214         * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
6215         before the second loop, to avoid undefined behavior.  Reported by
6216         Anton Blanchard <anton@samba.org>.
6217
6218 2015-03-20  Keven Boell  <keven.boell@intel.com>
6219
6220         * gdbtypes.c (resolve_dynamic_type_internal): Adapt
6221         data_location usage to linked list.
6222         (resolve_dynamic_type_internal): Adapt data_location to
6223         linked list.
6224         (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
6225         (copy_type_recursive, copy_type): Add copy of linked list.
6226         * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
6227         (struct dynamic_prop_list): New struct.
6228         * dwarf2read.c (set_die_type): Set data_location data.
6229
6230 2015-03-20  Pedro Alves  <palves@redhat.com>
6231
6232         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
6233         inner block and make it const.
6234         * machoread.c (get_archive_prefix_len): Make "lparen" const.
6235
6236 2015-03-20  Pedro Alves  <palves@redhat.com>
6237
6238         * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
6239         * breakpoint.h (set_breakpoint_condition): Update declaration.
6240
6241 2015-03-20  Pedro Alves  <palves@redhat.com>
6242
6243         * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
6244
6245 2015-03-20  Pedro Alves  <palves@redhat.com>
6246
6247         * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
6248
6249 2015-03-20  Pedro Alves  <palves@redhat.com>
6250
6251         * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
6252
6253 2015-03-20  Pedro Alves  <palves@redhat.com>
6254
6255         * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
6256         (nto_init_solib_absolute_prefix): Likewise.
6257
6258 2015-03-20  Pedro Alves  <palves@redhat.com>
6259
6260         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
6261         * spu-tdep.c (spu_gdbarch_init): Make "name" const.
6262
6263 2015-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6264
6265         * config/djgpp/README: Remove gdb.hp.
6266
6267 2015-03-20  Yao Qi  <yao.qi@linaro.org>
6268
6269         * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
6270         set_gdbarch_cannot_step_breakpoint.
6271
6272 2015-03-19  Pedro Alves  <palves@redhat.com>
6273
6274         * linux-nat.c (linux_resume_one_lwp): Rename to ...
6275         (linux_resume_one_lwp_throw): ... this.  Don't handle ESRCH here,
6276         instead call perror_with_name.
6277         (check_ptrace_stopped_lwp_gone): New function.
6278         (linux_resume_one_lwp): Reimplement as wrapper around
6279         linux_resume_one_lwp_throw that swallows errors if the LWP is
6280         gone.
6281         (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
6282         swallows errors if the LWP is gone.  Use
6283         linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
6284
6285 2015-03-19  Pedro Alves  <palves@redhat.com>
6286
6287         * linux-nat.c (status_callback): Return early if the LWP has no
6288         status pending.
6289
6290 2015-03-19  Pedro Alves  <palves@redhat.com>
6291
6292         * linux-nat.c (select_event_lwp_callback): Update comment to no
6293         longer mention SIGTRAP.
6294
6295 2015-03-18  Tristan Gingold  <gingold@adacore.com>
6296
6297         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
6298         redirection code to ...
6299         (amd64_windows_frame_decode_insns): ... Here.  Fix in prologue
6300         checks.  Fix SAVE_NONVOL operations.  Add debug code and comments.
6301
6302 2015-03-18  Gary Benson <gbenson@redhat.com>
6303
6304         (remote_protocol_features): Remove the "vFile:fstat" feature.
6305         (remote_hostio_fstat): Probe for "vFile:fstat" support.
6306
6307 2015-03-11  Yao Qi  <yao.qi@linaro.org>
6308
6309         PR tdep/18107
6310         * aarch64-linux-tdep.c: Include xml-syscall.h
6311         (aarch64_linux_get_syscall_number): New function.
6312         (aarch64_linux_init_abi): Call
6313         set_gdbarch_get_syscall_number.
6314         * syscalls/aarch64-linux.xml: New file.
6315
6316 2015-03-17  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
6317
6318         * ser-base.h (ser_base_setstopbits): Change second argument name
6319         from "rate" to "num".
6320
6321 2015-03-17  Gary Benson <gbenson@redhat.com>
6322             Luke Allardyce <lukeallardyce@gmail.com>
6323
6324         PR gdb/18131
6325         * common/common-remote-fileio.h (sys/stat.h): New include.
6326         (stuct stat): Remove forward declaration.
6327
6328 2015-03-16  John Baldwin  <jhb@FreeBSD.org>
6329
6330         * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
6331         before writing core register notes.
6332
6333 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
6334             Pedro Alves  <palves@redhat.com>
6335
6336         * gdb_curses.h (tgetnum): Mark with EXTERN_C.
6337         * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
6338         (tgoto): Wrap with extern "C".
6339
6340 2015-03-16  Pedro Alves  <palves@redhat.com>
6341             Yuanhui Zhang  <asmwarrior@gmail.com>
6342
6343         * stub-termcap.c (tputs): Change prototype.
6344
6345 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
6346             Pedro Alves  <palves@redhat.com>
6347
6348         * windows-nat.c (struct thread_info_struct): Rename to ...
6349         (struct windows_thread_info_struct): ... this.
6350         (thread_info): Rename to ...
6351         (windows_thread_info): ... this.
6352         All users updated.
6353
6354 2015-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
6355             Pedro Alves  <palves@redhat.com>
6356
6357         * NEWS: New Removed targets and native configurations.
6358
6359 2015-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
6360
6361         Remove HPUX.
6362         * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
6363         (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
6364         (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
6365         ia64-hpux-tdep.h, solib-ia64-hpux.h.
6366         (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
6367         ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
6368         * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
6369         hppa-hpux-tdep.c.
6370         * config/ia64/hpux.mh: Remove file.
6371         * config/pa/hpux.mh: Remove file.
6372         * configure: Rebuilt.
6373         * configure.ac (dlgetmodinfo, somread.o): Remove.
6374         * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
6375         (ia64-*-hpux*): Remove its float format exception.
6376         * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
6377         * hppa-hpux-nat.c: Remove file.
6378         * hppa-hpux-tdep.c: Remove file.
6379         * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
6380         Move them here from hppa-tdep.h
6381         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
6382         (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
6383         * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
6384         Move them to hppa-tdep.c.
6385         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
6386         declarations.
6387         * ia64-hpux-nat.c: Remove file.
6388         * ia64-hpux-tdep.c: Remove file.
6389         * ia64-hpux-tdep.h: Remove file.
6390         * inf-ttrace.c: Remove file.
6391         * inf-ttrace.h: Remove file.
6392         * solib-ia64-hpux.c: Remove file.
6393         * solib-ia64-hpux.h: Remove file.
6394         * solib-pa64.c: Remove file.
6395         * solib-pa64.h: Remove file.
6396         * solib-som.c: Remove file.
6397         * solib-som.h: Remove file.
6398         * somread.c: Remove file.
6399
6400 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
6401
6402         * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
6403         * config.in: Regenerate.
6404         * configure: Regenerate.
6405         * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
6406         define.
6407         (fbsd_find_memory_regions): Use kinfo_getvmmap to
6408         enumerate memory regions if present.
6409
6410 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
6411
6412         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
6413         * i386fbsd-tdep.c: Fix style in various gdb_static_assert
6414         expressions.
6415         (i386fbsd_sigtramp_p): Likewise.
6416
6417 2015-03-12  John Baldwin  <jhb@FreeBSD.org>
6418
6419         * MAINTAINERS (Write After Approval): Add John Baldwin.
6420
6421 2015-03-12  Gary Benson <gbenson@redhat.com>
6422
6423         * solib.c (_initialize_solib): Make "set/show sysroot" use
6424         add_setshow_optional_filename_cmd so it can be restored to
6425         empty after being set.
6426
6427 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
6428
6429         * Makefile.in (SFILES): New source break-catch-syscall.c.
6430         (COMMON_OBS): New object break-catch-syscall.o.
6431         * break-catch-syscall.c: New file.
6432         * breakpoint.c: Remove inclusion of "xml-syscall.h".
6433         (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
6434         (struct syscall_catchpoint): Likewise.
6435         (dtor_catch_syscall): Likewise.
6436         (catch_syscall_inferior_data): Likewise.
6437         (struct catch_syscall_inferior_data): Likewise.
6438         (get_catch_syscall_inferior_data): Likewise.
6439         (catch_syscall_inferior_data_cleanup): Likewise.
6440         (insert_catch_syscall): Likewise.
6441         (remove_catch_syscall): Likewise.
6442         (breakpoint_hit_catch_syscall): Likewise.
6443         (print_it_catch_syscall): Likewise.
6444         (print_one_catch_syscall): Likewise.
6445         (print_mention_catch_syscall): Likewise.
6446         (print_recreate_catch_syscall): Likewise.
6447         (catch_syscall_breakpoint_ops): Likewise.
6448         (syscall_catchpoint_p): Likewise.
6449         (create_syscall_event_catchpoint): Likewise.
6450         (catch_syscall_split_args): Likewise.
6451         (catch_syscall_command_1): Likewise.
6452         (is_syscall_catchpoint_enabled): Likewise.
6453         (catch_syscall_enabled): Likewise.
6454         (catching_syscall_number): Likewise.
6455         (catch_syscall_completer): Likewise.
6456         (clear_syscall_counts): Likewise.
6457         (initialize_breakpoint_ops): Move initialization of syscall
6458         catchpoints to break-catch-syscall.c.
6459         (_initialize_breakpoint): Move code related to syscall catchpoints
6460         to break-catch-syscall.c.
6461
6462 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
6463
6464         * breakpoint.c (breakpoint_find_if): New function.
6465         * breakpoint.h (breakpoint_find_if): New prototype.
6466
6467 2015-03-11  Gary Benson <gbenson@redhat.com>
6468
6469         * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
6470         * remote-fileio.c (remote_fileio_to_host_uint): New function.
6471         (remote_fileio_to_host_ulong): Likewise.
6472         (remote_fileio_to_host_mode): Likewise.
6473         (remote_fileio_to_host_time): Likewise.
6474         (remote_fileio_to_host_stat): Likewise.
6475         * remote.c (PACKET_vFile_fstat): New enum value.
6476         (remote_protocol_features): Register the "vFile:fstat" feature.
6477         (remote_hostio_fstat): New function.
6478         (remote_bfd_iovec_stat): Use the above.
6479         (_initialize_remote): Register new "set/show remote
6480         hostio-fstat-packet" command.
6481         * symfile.c (separate_debug_file_exists): Update comment.
6482         * NEWS: Announce new vFile:fstat packet.
6483
6484 2015-03-11  Gary Benson <gbenson@redhat.com>
6485
6486         * common/common-remote-fileio.h: New file.
6487         * common/common-remote-fileio.c: Likewise.
6488         * Makefile.in (SFILES): Add common/common-remote-fileio.c.
6489         (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
6490         (COMMON_OBS): Add common-remote-fileio.o.
6491         (common-remote-fileio.o): New rule.
6492         * remote-fileio.h (common-remote-fileio.h): New include.
6493         * remote-fileio.c (gdb/fileio.h): Do not include.
6494         (remote_fileio_to_be): Moved to common-remote-fileio.h.
6495         (remote_fileio_to_fio_uint): Likewise.
6496         (remote_fileio_to_fio_time): Likewise.
6497         (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
6498         (remote_fileio_to_fio_mode): Likewise.
6499         (remote_fileio_to_fio_ulong): Likewise.
6500         (remote_fileio_to_fio_stat): Likewise.
6501
6502 2015-03-11  Andy Wingo  <wingo@igalia.com>
6503
6504         * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
6505         we were checking the cached type, not the cached dynamic type.
6506
6507 2015-03-11  Andy Wingo  <wingo@igalia.com>
6508
6509         * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
6510         other strings, as these are on the GC'd heap, and will be
6511         collected along with the smob.
6512
6513 2015-03-11  Andy Wingo  <wingo@igalia.com>
6514
6515         * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
6516         (objfile_functions): Bind gdbscm_objfile_progspace to
6517         objfile-progspace.
6518         * guile/lib/gdb.scm: Add objfile-progspace to exports.
6519
6520 2015-03-11  Andy Wingo  <wingo@igalia.com>
6521
6522         * guile/guile.c (_initialize_guile): Disable automatic
6523         finalization, if Guile offers us that possibility.
6524         * guile/guile.c (call_initialize_gdb_module):
6525         * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
6526         finalizers in appropriate places.
6527         * configure.ac (AC_TRY_LIBGUILE): Add a check for
6528         scm_set_automatic_finalization_enabled.
6529         * configure: Regenerated.
6530
6531 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6532
6533         * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
6534         SAL, if possible.
6535
6536 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6537
6538         * s390-linux-nat.c (struct arch_lwp_info): New.
6539         (s390_fix_watch_points): Rename to...
6540         (s390_prepare_to_resume): ...this.  Skip the PER info update
6541         unless the watch points have changed.
6542         (s390_refresh_per_info, s390_new_thread): New functions.
6543         (s390_insert_watchpoint): Call s390_refresh_per_info instead of
6544         s390_fix_watch_points.
6545         (s390_remove_watchpoint): Likewise.
6546         (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
6547         Register s390_prepare_to_resume.
6548
6549 2015-03-09  Pedro Alves  <palves@redhat.com>
6550
6551         Revert:
6552         2015-03-07  Pedro Alves  <palves@redhat.com>
6553         * common/gdb_socket.h: New file.
6554         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
6555         sys/socket.h.
6556         (net_open): Use union gdb_sockaddr_u.
6557
6558 2015-03-07  Pedro Alves  <palves@redhat.com>
6559
6560         * configure.ac (build_warnings): Move -Wmissing-prototypes
6561         -Wdeclaration-after-statement -Wmissing-parameter-type
6562         -Wold-style-declaration -Wold-style-definition to the C-specific
6563         set.
6564         * configure: Regenerate.
6565
6566 2015-03-07  Pedro Alves  <palves@redhat.com>
6567
6568         * common/gdb_socket.h: New file.
6569         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
6570         sys/socket.h.
6571         (net_open): Use union gdb_sockaddr_u.
6572
6573 2015-03-07  Pedro Alves  <palves@redhat.com>
6574
6575         * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
6576         (exceptions_state_mc_action_iter)
6577         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
6578         Don't define.
6579         [__cplusplus] (try_scope_depth): New global.
6580         [__cplusplus] (exception_try_scope_entry)
6581         (exception_try_scope_exit, gdb_exception_sliced_copy)
6582         (exception_rethrow): New functions.
6583         (throw_exception): In C++ mode, throw
6584         gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
6585         gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
6586         (throw_it): In C++ mode, use try_scope_depth.
6587         * common/common-exceptions.h [!__cplusplus]
6588         (exceptions_state_mc_action_iter)
6589         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
6590         Don't declare.
6591         [__cplusplus] (exception_try_scope_entry)
6592         (exception_try_scope_exit, exception_rethrow): Declare.
6593         [__cplusplus] (struct exception_try_scope): New struct.
6594         [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
6595         C++ exceptions.
6596         (struct gdb_exception_RETURN_MASK_ALL)
6597         (struct gdb_exception_RETURN_MASK_ERROR)
6598         (struct gdb_exception_RETURN_MASK_QUIT): New types.
6599
6600 2015-03-07  Pedro Alves  <palves@redhat.com>
6601
6602         * main.c (handle_command_errors): Remove volatile qualifier from
6603         parameter.
6604
6605 2015-03-07  Pedro Alves  <palves@redhat.com>
6606
6607         * breakpoint.c (save_breakpoints): Adjust to avoid code between
6608         TRY and CATCH.
6609         * gdbtypes.c (safe_parse_type): Remove empty line.
6610         (types_deeply_equal):
6611         * guile/scm-frame.c (gdbscm_frame_name):
6612         * linux-thread-db.c (find_new_threads_once):
6613         * python/py-breakpoint.c (bppy_get_commands):
6614         * record-btrace.c (record_btrace_insert_breakpoint)
6615         (record_btrace_remove_breakpoint, record_btrace_start_replaying)
6616         (record_btrace_start_replaying): Adjust to avoid code between TRY
6617         and CATCH.
6618
6619 2015-03-07  Pedro Alves  <palves@redhat.com>
6620
6621         * common/common-exceptions.c (struct catcher) <exception>: No
6622         longer a pointer to volatile exception.  Now an exception value.
6623         <mask>: Delete field.
6624         (exceptions_state_mc_init): Remove all parameters.  Adjust.
6625         (exceptions_state_mc): No longer pop the catcher here.
6626         (exceptions_state_mc_catch): New function.
6627         (throw_exception): Adjust.
6628         * common/common-exceptions.h (exceptions_state_mc_init): Remove
6629         all parameters.
6630         (exceptions_state_mc_catch): Declare.
6631         (TRY_CATCH): Rename to ...
6632         (TRY): ... this.  Remove EXCEPTION and MASK parameters.
6633         (CATCH, END_CATCH): New.
6634         All callers adjusted.
6635
6636 2015-03-07  Tom Tromey  <tromey@redhat.com>
6637
6638         * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
6639
6640 2015-03-07  Pedro Alves  <palves@redhat.com>
6641
6642         * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
6643         (amd64_epilogue_frame_cache): Normal exception handling code.
6644         * break-catch-throw.c (check_status_exception_catchpoint)
6645         (re_set_exception_catchpoint): Ditto.
6646         * cli/cli-interp.c (safe_execute_command):
6647         * cli/cli-script.c (script_from_file): Ditto.
6648         * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
6649         Ditto.
6650         * compile/compile-object-run.c (compile_object_run): Ditto.
6651         * cp-abi.c (baseclass_offset): Ditto.
6652         * cp-valprint.c (cp_print_value): Ditto.
6653         * exceptions.c (catch_exceptions_with_msg):
6654         * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
6655         * frame.c (get_frame_address_in_block_if_available): Ditto.
6656         * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
6657         (i386_sigtramp_frame_cache): Ditto.
6658         * infcmd.c (post_create_inferior): Ditto.
6659         * linespec.c (parse_linespec, find_linespec_symbols):
6660         * p-valprint.c (pascal_object_print_value): Ditto.
6661         * parse.c (parse_expression_for_completion): Ditto.
6662         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6663         * remote.c (remote_get_noisy_reply): Ditto.
6664         * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
6665         * solib-svr4.c (solib_svr4_r_map): Ditto.
6666
6667 2015-03-06  Gary Benson  <gbenson@redhat.com>
6668
6669         * common/common-utils.h (startswith): New inline function.
6670         All places where this logic was used updated to use the above.
6671
6672 2015-03-05  Pedro Alves  <palves@redhat.com>
6673
6674         PR gdb/18002
6675         * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
6676         after reading the breakpoint's shadow memory.
6677
6678 2015-03-05  Mark Kettenis  <kettenis@gnu.org>
6679
6680         * hppabsd-nat.c: Remove file.
6681         * hppaobsd-nat.c: New file.
6682         * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c.  Add
6683         hppaobsd-nat.c.
6684         * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
6685         hppaobsd-nat.o.
6686
6687 2015-03-04  Pedro Alves  <palves@redhat.com>
6688
6689         * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
6690         (target_decr_pc_after_break): Delete declaration.
6691         * target.c (default_target_decr_pc_after_break)
6692         (target_decr_pc_after_break): Delete.
6693         * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
6694         gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
6695         * linux-thread-db.c (check_event): Likewise.
6696         * infrun.c (adjust_pc_after_break): Likewise.
6697         * darwin-nat.c (cancel_breakpoint): Likewise.
6698         * aix-thread.c (aix_thread_wait): Likewise.
6699         * target-delegates.c: Regenerate.
6700
6701 2015-03-04  Pedro Alves  <palves@redhat.com>
6702
6703         * linux-nat.c (save_sigtrap): Check for breakpoints before
6704         checking watchpoints.
6705         (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
6706         breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
6707         (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
6708         a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
6709         (linux_nat_stopped_by_sw_breakpoint)
6710         (linux_nat_supports_stopped_by_sw_breakpoint)
6711         (linux_nat_stopped_by_hw_breakpoint)
6712         (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
6713         (linux_nat_wait_1): Don't re-increment the PC if relying on
6714         SIGTRAP's siginfo->si_code.
6715         (linux_nat_add_target): Install new target methods.
6716         * linux-thread-db.c (check_event): Don't account for breakpoint PC
6717         offset if the target already adjusted the PC.
6718         * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
6719         (GDB_ARCH_TRAP_BRKPT): New.
6720         (TRAP_HWBKPT): Define if not already defined.
6721
6722 2015-03-04  Pedro Alves  <palves@redhat.com>
6723
6724         * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
6725         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
6726         Delete field.
6727         <stop_reason>: New field.
6728         (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
6729         (packet_set_cmd_state): New function.
6730         (remote_protocol_features): Register the "swbreak" and "hwbreak"
6731         features.
6732         (remote_query_supported): If not disabled with the corresponding
6733         "set remote foo-packet" command, report support for the swbreak
6734         and hwbreak features.
6735         (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
6736         field.
6737         <stop_reason>: New field.
6738         (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
6739         (remote_wait_as): Adjust.
6740         (remote_stopped_by_sw_breakpoint)
6741         (remote_supports_stopped_by_sw_breakpoint)
6742         (remote_stopped_by_hw_breakpoint)
6743         (remote_supports_stopped_by_hw_breakpoint): New functions.
6744         (remote_stopped_by_watchpoint): New function.
6745         (init_remote_ops): Install them.
6746         (_initialize_remote): Register new "set/show remote
6747         swbreak-feature-packet" and "set/show remote
6748         swbreak-feature-packet" commands.
6749
6750 2015-03-04  Pedro Alves  <palves@redhat.com>
6751
6752         * btrace.h: Include target/waitstatus.h.
6753         (struct btrace_thread_info) <stop_reason>: New field.
6754         * record-btrace.c (record_btrace_step_thread): Use
6755         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
6756         (record_btrace_decr_pc_after_break): Delete.
6757         (record_btrace_stopped_by_sw_breakpoint)
6758         (record_btrace_supports_stopped_by_sw_breakpoint)
6759         (record_btrace_stopped_by_hw_breakpoint)
6760         (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
6761         (init_record_btrace_ops): Install them.
6762         * record-full.c (record_full_hw_watchpoint): Delete and replace
6763         with ...
6764         (record_full_stop_reason): ... this throughout.
6765         (record_full_exec_insn): Adjust.
6766         (record_full_wait_1): Adjust.  No longer re-increment the PC.
6767         (record_full_wait_1): Adjust.  Use
6768         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
6769         (record_full_stopped_by_watchpoint): Adjust.
6770         (record_full_stopped_by_sw_breakpoint)
6771         (record_full_supports_stopped_by_sw_breakpoint)
6772         (record_full_supports_stopped_by_sw_breakpoint)
6773         (record_full_stopped_by_hw_breakpoint)
6774         (record_full_supports_stopped_by_hw_breakpoint): New functions.
6775         (init_record_full_ops, init_record_full_core_ops): Install them.
6776         * record.c (record_check_stopped_by_breakpoint): New function.
6777         * record.h: Include target/waitstatus.h.
6778         (record_check_stopped_by_breakpoint): New declaration.
6779
6780 2015-03-04  Pedro Alves  <palves@redhat.com>
6781
6782         enum lwp_stop_reason -> enum target_stop_reason
6783         * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
6784         (linux_nat_stopped_by_watchpoint, status_callback)
6785         (linux_nat_wait_1): Adjust.
6786         * linux-nat.h (enum lwp_stop_reason): Delete.
6787         (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
6788         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
6789         * target/waitstatus.h (enum target_stop_reason): New.
6790
6791 2015-03-04  Pedro Alves  <palves@redhat.com>
6792
6793         * breakpoint.c (need_moribund_for_location_type): New function.
6794         (bpstat_stop_status): Don't skipping checking moribund locations
6795         of breakpoint types which the target tell caused a stop.
6796         (program_breakpoint_here_p): New function, factored out from ...
6797         (bp_loc_is_permanent): ... this.
6798         (update_global_location_list): Don't create a moribund location if
6799         the target supports reporting stops of the type of the removed
6800         breakpoint.
6801         * breakpoint.h (program_breakpoint_here_p): New declaration.
6802         * infrun.c (adjust_pc_after_break): Return early if the target has
6803         already adjusted the PC.  Add comments.
6804         (handle_signal_stop): If nothing explains a signal, and the target
6805         tells us the stop was caused by a software breakpoint, check if
6806         there's a breakpoint instruction in the memory.  If so, adjust the
6807         PC before presenting the stop to the user.  Otherwise, ignore the
6808         trap.  If nothing explains a signal, and the target tells us the
6809         stop was caused by a hardware breakpoint, ignore the trap.
6810         * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
6811         to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
6812         to_supports_stopped_by_hw_breakpoint>: New fields.
6813         (target_stopped_by_sw_breakpoint)
6814         (target_supports_stopped_by_sw_breakpoint)
6815         (target_stopped_by_hw_breakpoint)
6816         (target_supports_stopped_by_hw_breakpoint): Define.
6817         * target-delegates.c: Regenerate.
6818
6819 2015-03-04  Pedro Alves  <palves@redhat.com>
6820
6821         * infrun.c (follow_fork_inferior): Use the whole of the
6822         inferior_ptid and pending_follow.related_pid ptids instead of
6823         building ptids from the process components.  Adjust verbose output
6824         to use target_pid_to_str.
6825         * linux-nat.c (linux_child_follow_fork): Use the whole of the
6826         inferior_ptid and pending_follow.related_pid ptids instead of
6827         building ptids from the process components.
6828
6829 2015-03-04  Mark Kettenis  <kettenis@gnu.org>
6830
6831         * inf-ptrace.c [PT_GET_PROCESS_STATE]
6832         (inf_ptrace_insert_fork_catchpoint): New function.
6833         (inf_ptrace_remove_fork_catchpoint): New function.
6834         (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
6835
6836 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6837
6838         * s390-linux-tdep.c (s390_register_name): Return empty string
6839         instead of NULL for registers that shouldn't be visible.
6840
6841 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6842
6843         * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
6844         XML file for 64-bit targets.
6845
6846 2015-03-03  Simon Marchi  <simon.marchi@ericsson.com>
6847
6848         * target.h (find_default_create_inferior): Remove declaration.
6849         (find_default_attach): Likewise.
6850
6851 2015-03-03  Pedro Alves  <palves@redhat.com>
6852
6853         * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
6854         Use ptid_get_pid to get the overall process id when resuming all
6855         threads.
6856
6857 2015-03-03  Pedro Alves  <palves@redhat.com>
6858
6859         * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
6860         the lwp field of ptid.  Pass the full ptid to get_thread_regcache.
6861         * inf-ptrace.c (get_ptrace_pid): New function.
6862         (inf_ptrace_resume): Use it.
6863         * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
6864         to the lower layer.
6865
6866 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
6867
6868         * nat/linux-btrace.c: Include sys/utsname.h.
6869         (linux_determine_kernel_ptr_bits): New.
6870         (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
6871         * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
6872         ptr_bits.
6873
6874 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
6875
6876         * btrace.c (ftrace_update_function): Treat return as tailcall for
6877         "_dl_runtime_resolve".
6878
6879 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
6880
6881         * btrace.h (btrace_function) <lbegin, lend>: Remove.
6882         * btrace.c (ftrace_debug): Do not print the line range.
6883         (ftrace_skip_file, ftrace_update_lines): Remove.
6884         (ftrace_new_function): Remove lbegin and lend initialization.
6885         (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
6886         * record-btrace.c (btrace_compute_src_line_range): New.
6887         (btrace_call_history_src_line): Call btrace_compute_src_line_range.
6888
6889 2015-03-02  Pedro Alves  <palves@redhat.com>
6890
6891         * infrun.c (follow_exec): Delete all threads of the process except
6892         the event thread.  Extended comments.
6893
6894 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
6895
6896         * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
6897
6898 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
6899
6900         * utils.h: Remove <stdbool.h> #include.
6901         (producer_is_gcc): Change return type to "int".
6902         * utils.c (producer_is_gcc): Change return type to int.
6903         Return 1 instead of true, and 0 instead of false.
6904         Adjust function documentation accordingly.
6905
6906 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6907
6908         * s390-linux-nat.c (have_regset_vxrs): New static variable.
6909         (s390_linux_fetch_inferior_registers): Handle vector registers, if
6910         present.
6911         (s390_linux_store_inferior_registers): Likewise.
6912         (s390_get_hwcap): Remove function.  Embed its logic...
6913         (s390_read_description): ...here.  Yield a target description with
6914         vector registers if applicable.
6915         * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
6916         "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
6917         "features/s390x-tevx-linux64.c".
6918         (struct gdbarch_tdep) <v0_full_regnum>: New field.
6919         (s390_dwarf_regmap): Add vector registers.  Remove bogus entries
6920         for "GNU/Linux-specific registers".
6921         (s390_dwarf_reg_r0l): New enum value.
6922         (s390_dwarf_reg_to_regnum): Support vector registers.
6923         (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
6924         of GPR lower halves.
6925         (regnum_is_vxr_full): New function.
6926         (s390_register_name): New function.
6927         (s390_pseudo_register_name): Handle v0-v15, which are composed of
6928         f0-f15 and v0l-v15l.
6929         (s390_pseudo_register_type): Likewise.
6930         (s390_pseudo_register_read): Likewise.
6931         (s390_pseudo_register_write): Likewise.
6932         (s390_value_from_register): Account for the fact that values are
6933         placed left-justified in vector registers.
6934         (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
6935         the vector reggroup and omit them from the general reggroup.
6936         (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
6937         (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
6938         (s390_iterate_over_regset_sections): Add iterations for the two
6939         new vector regsets.
6940         (s390_core_read_description): Yield a target description with
6941         vector registers if applicable.
6942         (s390_gdbarch_init): Handle target descriptions with vector
6943         registers.  Add "register_name" gdbarch method.
6944         (_initialize_s390_tdep): Call new tdesc initialization functions.
6945         * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
6946         (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
6947         (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
6948         (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
6949         (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
6950         (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
6951         (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
6952         (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
6953         (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
6954         (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
6955         (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
6956         (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
6957         (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
6958         (S390_NUM_REGS): Adjust value.
6959         (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
6960         (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
6961         (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
6962         * NEWS: Announce S/390 vector register support.
6963
6964 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6965
6966         * features/s390-tevx-linux64.xml: New file.
6967         * features/s390-vx-linux64.xml: New file.
6968         * features/s390-vx.xml: New file.
6969         * features/s390x-tevx-linux64.xml: New file.
6970         * features/s390x-vx-linux64.xml: New file.
6971         * features/Makefile (WHICH): Add s390-vx-linux64,
6972         s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
6973         (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
6974         (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
6975         macros.
6976         * features/s390-tevx-linux64.c: New generated file.
6977         * features/s390-vx-linux64.c: Likewise.
6978         * features/s390x-tevx-linux64.c: Likewise.
6979         * features/s390x-vx-linux64.c: Likewise.
6980         * regformats/s390-tevx-linux64.dat: Likewise.
6981         * regformats/s390-vx-linux64.dat: Likewise.
6982         * regformats/s390x-tevx-linux64.dat: Likewise.
6983         * regformats/s390x-vx-linux64.dat: Likewise.
6984
6985 2015-02-28  Doug Evans  <xdje42@gmail.com>
6986
6987         * symtab.h (struct symtab) <next>: Fix comment.
6988
6989 2015-02-27  Simon Marchi  <simon.marchi@ericsson.com>
6990
6991         * python/python.c (python_GdbModuleDef): Rename GdbMethods to
6992         python_GdbMethods.
6993
6994 2015-02-27  Pedro Alves  <palves@redhat.com>
6995
6996         * dtrace-probe.c (dtrace_probe_ops): Make extern.
6997
6998 2015-02-27  Pedro Alves  <palves@redhat.com>
6999
7000         * common/common-exceptions.h (exception_none): Declare.
7001         * common/common-exceptions.c (exception_none): Moved from
7002         exceptions.c.
7003         (exceptions_state_mc_init): Use exception_none.
7004         * exceptions.c (exception_none): Move to
7005         common/common-exceptions.c.
7006         * exceptions.h (exception_none): Move to
7007         common/common-exceptions.h.
7008
7009 2015-02-27  Pedro Alves  <palves@redhat.com>
7010
7011         * main.c (catch_command_errors, catch_command_errors_const):
7012         Remove 'mask' argument.  Adjust.
7013         (captured_main): Adjust callers.
7014
7015 2015-02-27  Pedro Alves  <palves@redhat.com>
7016
7017         * python/python-internal.h: Include "extension-priv.h".
7018
7019 2015-02-27  Pedro Alves  <palves@redhat.com>
7020
7021         * breakpoint.h (enum print_stop_action): Move further up in the
7022         file.
7023
7024 2015-02-27  Pedro Alves  <palves@redhat.com>
7025
7026         * gdbarch.sh: Include regcache.h.
7027         * gdbarch.h: Regenerate.
7028
7029 2015-02-27  Pedro Alves  <palves@redhat.com>
7030
7031         * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
7032         Remove duplicate const.
7033         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
7034         duplicate const.
7035
7036 2015-02-27  Pedro Alves  <palves@redhat.com>
7037
7038         * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
7039         * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
7040         * features/feature_to_c.sh: Tag the generated xml_builtin array
7041         with extern const in C++ mode.
7042
7043 2015-02-27  Tom Tromey  <tromey@redhat.com>
7044
7045         * minidebug.c (struct lzma_stream): Rename to ...
7046         (struct gdb_lzma_stream): ... this.
7047         (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
7048
7049 2015-02-27  Pedro Alves  <palves@redhat.com>
7050
7051         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
7052         function.
7053         (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7054         (mi_cmd_stack_list_variables): Use it.
7055
7056 2015-02-27  Pedro Alves  <palves@redhat.com>
7057
7058         * x86-linux-nat.c (u_debugreg_offset): New function.
7059         (x86_linux_dr_get, x86_linux_dr_set): Use it.
7060
7061 2015-02-27  Pedro Alves  <palves@redhat.com>
7062
7063         * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
7064         declaration.
7065         Include break-common.h.
7066
7067 2015-02-27  Tom Tromey  <tromey@redhat.com>
7068             Pedro Alves <palves@redhat.com>
7069
7070         * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
7071         local used to iterate over enums.
7072         * completer.c (signal_completer): Likewise.
7073         * i386-tdep.c (i386_stap_parse_special_token): Likewise.
7074         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
7075         * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
7076         * tui/tui-layout.c (next_layout, prev_layout): Likewise.
7077         * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
7078         (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
7079         * tui-wingeneral.c (tui_refresh_all):  Likewise.
7080
7081 2015-02-27  Pedro Alves  <palves@redhat.com>
7082
7083         * target.h: Include "infrun.h".
7084
7085 2015-02-27  Pedro Alves  <palves@redhat.com>
7086
7087         * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
7088
7089 2015-02-27  Pedro Alves  <palves@redhat.com>
7090
7091         * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
7092         (IPA_SYM): Use it.
7093         * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
7094
7095 2015-02-27  Pedro Alves  <palves@redhat.com>
7096
7097         * cli-out.c (_rl_erase_entire_line): Move declaration out of
7098         cli_mld_erase_entire_line, and make it extern "C".
7099         * common/common-defs.h (EXTERN_C): New.
7100         * completer.c (_rl_completion_prefix_display_length)
7101         (_rl_print_completions_horizontally, QSFUNC): Move declarations
7102         out of gdb_display_match_list_1.
7103         (_rl_qsort_string_compare): Move declaration out of
7104         gdb_display_match_list_1, and make it extern "C".
7105         * defs.h (re_comp): Use EXTERN_C.
7106         * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
7107         and make it extern "C".
7108         (monstartup): Move declaration out of maintenance_set_profile_cmd,
7109         and make it extern "C".
7110         (main): Move declaration out of maintenance_set_profile_cmd.
7111         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
7112         EXTERN_C.
7113
7114 2015-02-27  Pedro Alves  <palves@redhat.com>
7115
7116         * python/python.c (GdbMethods): Rename to ...
7117         (python_GdbMethods): ... this and make extern.
7118         (GdbModuleDef): Rename to ...
7119         (python_GdbModuleDef): ... this and make extern.
7120
7121 2015-02-27  Pedro Alves  <palves@redhat.com>
7122
7123         * record-btrace.c (set_record_btrace_cmdlist)
7124         (show_record_btrace_cmdlist): Remove redefinitions.
7125
7126 2015-02-27  Tom Tromey  <tromey@redhat.com>
7127             Pedro Alves  <palves@redhat.com>
7128
7129         * dwarf2-frame.c (enum cfa_how_kind, struct
7130         dwarf2_frame_state_reg_info): Move out of struct
7131         dwarf2_frame_state.
7132         * dwarf2read.c (struct tu_stats): Move out of struct
7133         dwarf2_per_objfile.
7134         (struct file_entry): Move out of struct line_header.
7135         (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
7136         typedef_field_list): Move out of struct field_info.
7137         * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
7138         Move out of struct dynamic_prop.
7139         (union type_owner, union field_location, struct field, struct
7140         range_bounds, union type_specific): Move out of struct main_type.
7141         (struct fn_fieldlist, struct fn_field, struct typedef_field)
7142         (VOFFSET_STATIC): Move out of struct cplus_struct_type.
7143         (struct call_site_target, union call_site_parameter_u, struct
7144         call_site_parameter): Move out of struct call_site.
7145         * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
7146         m32c_prologue.
7147         (enum srcdest_kind): Move out of struct srcdest.
7148         * main.c (enum cmdarg_kind): Move out of struct cmdarg.
7149         * prologue-value.h (enum prologue_value_kind): Move out of struct
7150         prologue_value.
7151         * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
7152         gdbarch_tdep.
7153         * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
7154         out of struct field_info.
7155         * symfile.h (struct other_sections): Move out of struct
7156         section_addr_info.
7157         * symtab.c (struct symbol_cache_slot): Move out struct
7158         block_symbol_cache.
7159         * target-descriptions.c (enum tdesc_type_kind): Move out of
7160         typedef struct tdesc_type.
7161         * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
7162         struct tui_line_or_address.
7163         * value.c (enum internalvar_kind, union internalvar_data): Move
7164         out of struct internalvar.
7165         * xtensa-tdep.h (struct ctype_cache): Move out of struct
7166         gdbarch_tdep.
7167
7168 2015-02-27  Tom Tromey  <tromey@redhat.com>
7169             Pedro Alves  <palves@redhat.com>
7170
7171         Rename symbols whose names are reserved C++ keywords throughout.
7172
7173 2015-02-27  Pedro Alves  <palves@redhat.com>
7174
7175         * Makefile.in (COMPILER): New, get it from autoconf.
7176         (COMPILE.pre, CC_LD): Use COMPILER.
7177         (CXX): Get from autoconf instead.
7178         (CXX_FOR_TARGET): Default to g++ instead of gcc.
7179         * acinclude.m4: Include build-with-cxx.m4.
7180         * build-with-cxx.m4: New file.
7181         * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
7182         Disable -Werror by default if building in C++ mode.
7183         (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
7184         -Wno-narrowing in C++ mode.  Only enable -Wpointer-sign in C mode.
7185         Run supported-warning-flags tests with the C++ compiler.
7186         Save/restore CXXFLAGS too.
7187         * configure: Regenerate.
7188
7189 2015-02-27  Pedro Alves  <palves@redhat.com>
7190
7191         * libiberty.m4: New file.
7192         * acinclude.m4: Include libiberty.m4.
7193         * configure.ac: Call libiberty_INIT.
7194         * config.in, configure: Regenerate.
7195
7196 2015-02-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7197
7198         * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
7199         31-bit targets, but 64-bit targets as well.
7200         (s390_gnu_triplet_regexp): New function.
7201         (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
7202         64-bit targets as well.  Set the gnu_triplet_regexp gdbarch
7203         method.
7204
7205 2015-02-27  Jon TURNEY  <jon.turney@dronecode.org.uk>  (tiny patch)
7206
7207         * windows-nat.c (CONTEXT_DEBUGGER): Remove.
7208         (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS.  Incorporate flags
7209         from CONTEXT_DEBUGGER.
7210
7211 2015-02-26  Doug Evans  <dje@google.com>
7212
7213         * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
7214         CHECK_TYPEDEF.
7215         (set_type_vptr_fieldno): Ditto.
7216         (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
7217         * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
7218
7219 2015-02-26  Pedro Alves  <palves@redhat.com>
7220
7221         * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
7222         * complaints.c (vcomplaint): Pass argument FMT directly to
7223         printf-like functions instead of complaint->fmt.
7224         * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
7225         * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
7226         * compile/compile-loc2c.c (pushf, unary, binary): Add
7227         ATTRIBUTE_PRINTF.
7228         (do_compile_dwarf_expr_to_c): Pass string literal as format string
7229         to pushf.
7230         (BINARY): Pass string literal as format string to 'binary'.
7231         * compile/compile-object-load.c (link_callbacks_einfo): Add
7232         ATTRIBUTE_PRINTF.
7233         * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
7234
7235 2015-02-26  Pedro Alves  <palves@redhat.com>
7236
7237         * windows-termcap.c: Rename to ...
7238         * stub-termcap.c: ... this.  Adjust header line.
7239         * Makefile.in (SFILES): Refer to stub-termcap.c instead of
7240         windows-termcap.c.
7241         * configure: Regenerate.
7242         * configure.ac: Refer to stub-termcap.o instead of
7243         windows-termcap.o.
7244         * gdb_curses.h: Mention stub-termcap.c instead of
7245         windows-termcap.c.
7246
7247 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
7248
7249         * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
7250         (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
7251
7252 2015-02-26  Antoine Tremblay  <antoine.tremblay@ericsson.com>
7253
7254         * gdb/infcmd.c (print_return_value): use type_to_string to print type.
7255
7256 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
7257
7258         * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
7259         bfd_canonicalize_symtab.
7260
7261 2015-02-25  John Baldwin  <jhb@FreeBSD.org>
7262
7263         * amd64fbsd-nat.c: Include sys/user.h.
7264         (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
7265         instead of KERN_PS_STRINGS to locate the signal trampoline.
7266         * i386fbsd-nat.c: Include sys/user.h.
7267         (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
7268         instead of KERN_PS_STRINGS to locate the signal trampoline.
7269         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
7270         (amd64fbsd_sigtramp_p): New.
7271         (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
7272         longer set default values.
7273         (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
7274         * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
7275         (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
7276         (i386fbsd_freebsd4_sigtramp_start)
7277         (i386fbsd_freebsd4_sigtramp_middle)
7278         (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
7279         (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
7280         (i386fbsd_sigtramp_p): New.
7281         (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
7282         longer set default values.
7283         (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
7284
7285 2015-02-25  John Baldwin  <jhb@freebsd.org>
7286
7287         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
7288         get_frame_register instead of frame_unwind_register_unsigned.
7289
7290 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
7291
7292         PR build/18033
7293         * compile/compile-c-support.c (c_compute_program): Change // comment.
7294         * compile/compile-object-load.c (setup_sections): Change // comment.
7295
7296 2015-02-26  Joel Brobecker  <brobecker@adacore.com>
7297
7298         PR build/18033:
7299         * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
7300
7301 2015-02-23  Pedro Alves  <palves@redhat.com>
7302
7303         * remote.c (skip_to_semicolon): New function.
7304         (remote_parse_stop_reply) <T stop reply>: Use it.  Don't
7305         special case the stop reasons that look like hex numbers
7306         upfront.  Instead handle real register numbers after matching
7307         all the known stop reasons.
7308
7309 2015-02-21  Doug Evans  <dje@google.com>
7310
7311         PR c++/17976, symtab/17821
7312         * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
7313         is_in_anonymous.  All callers updated.
7314         (find_symbol_in_baseclass): Ditto.
7315         (cp_lookup_nested_symbol_1): Ditto.  Don't search all static blocks
7316         for symbols in an anonymous namespace.
7317         * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
7318         DW_AT_name directly.
7319         (dwarf2_name): Convert missing namespace name to
7320         CP_ANONYMOUS_NAMESPACE_STR.
7321
7322 2015-02-20  Pedro Alves  <palves@redhat.com>
7323
7324         * linux-nat.c (linux_handle_extended_wait): Call
7325         thread_db_notice_clone whenever a new clone LWP is detected.
7326         (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
7327         functions.
7328         * linux-nat.h (thread_db_attach_lwp): Delete declaration.
7329         (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
7330         (linux_unstop_all_lwps): Declare.
7331         * linux-thread-db.c (struct thread_get_info_inout): Delete.
7332         (thread_get_info_callback): Delete.
7333         (thread_from_lwp): Use td_thr_get_info and record_thread.
7334         (thread_db_attach_lwp): Delete.
7335         (thread_db_notice_clone): New function.
7336         (try_thread_db_load_1): If /proc is mounted and shows the
7337         process'es task list, walk over all LWPs and call thread_from_lwp
7338         instead of relying on td_ta_thr_iter.
7339         (attach_thread): Don't call check_thread_signals here.  Split the
7340         tail part of the function (which adds the thread to the core GDB
7341         thread list) to ...
7342         (record_thread): ... this function.  Call check_thread_signals
7343         here.
7344         (thread_db_wait): Don't call thread_db_find_new_threads_1.  Always
7345         call thread_from_lwp.
7346         (thread_db_update_thread_list): Rename to ...
7347         (thread_db_update_thread_list_org): ... this.
7348         (thread_db_update_thread_list): New function.
7349         (thread_db_find_thread_from_tid): Delete.
7350         (thread_db_get_ada_task_ptid): Simplify.
7351         * nat/linux-procfs.c: Include <sys/stat.h>.
7352         (linux_proc_task_list_dir_exists): New function.
7353         * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
7354
7355 2015-02-20  Pedro Alves  <palves@redhat.com>
7356
7357         * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
7358         main LWP.  Handle the case of waitpid returning 0 if we're already
7359         attached to the LWP.  Don't set the LWP's last_resume_kind to
7360         resume_stop if we already knew about the LWP.
7361         (linux_nat_filter_event): Add debug logs.
7362
7363 2015-02-20  Pedro Alves  <palves@redhat.com>
7364
7365         * target.h (forward_target_decr_pc_after_break): Delete
7366         declaration.
7367
7368 2015-02-20  Pedro Alves  <palves@redhat.com>
7369
7370         PR threads/18006
7371         * linux-thread-db.c (thread_get_info_callback): Return early if
7372         the thread's lwp id is -1.
7373
7374 2015-02-20  Joel Brobecker  <brobecker@adacore.com>
7375
7376         GDB 7.9 released.
7377
7378 2015-02-19  Steve Ellcey  <sellcey@imgtec.com>
7379
7380         * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
7381         (dtrace_get_probes) Change type of variable 'dof'.
7382
7383 2015-02-19  Antoine Tremblay  <antoine.tremblay@ericsson.com>
7384
7385         PR breakpoints/16812
7386         * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
7387         * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
7388         * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
7389
7390 2015-02-19  David Taylor  <dtaylor@emc.com>
7391
7392         * common/ax.def (setv): Fix consumed entry in setv DEFOP.
7393
7394 2015-02-18  Patrick Palka  <patrick@parcs.ath.cx>
7395
7396         * tui/tui-io.c (tui_handle_resize_during_io): Remove this
7397         function.
7398         (tui_putc): Don't call tui_handle_resize_during_io.
7399         (tui_getc): Likewise.
7400         (tui_mld_getc): Likewise.
7401         * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
7402         (tui_sigwinch_token): New static variable.
7403         (tui_initialize_win): Adjust documentation.  Set
7404         tui_sigwinch_token.
7405         (tui_async_resize_screen): New asynchronous callback.
7406         (tui_sigwinch_handler): Adjust documentation.  Asynchronously
7407         invoke tui_async_resize_screen.
7408
7409 2015-02-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
7410
7411         * configure: Regenerated.
7412         * configure.ac: Use GDB_AC_TRANSFORM.
7413         * Makefile.in (aclocal_m4_deps): Added transform.m4.
7414         * acinclude.m4: sinclude transform.m4.
7415         * transform.m4: New file.
7416         (GDB_AC_TRANSFORM): New macro.
7417
7418 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
7419
7420         * NEWS: Announce the support for DTrace SDT probes.
7421
7422 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
7423
7424         * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
7425         (amd64_dtrace_parse_probe_argument): New function.
7426         (amd64_dtrace_probe_is_enabled): Likewise.
7427         (amd64_dtrace_enable_probe): Likewise.
7428         (amd64_dtrace_disable_probe): Likewise.
7429         (amd64_linux_init_abi): Register the
7430         `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
7431         `gdbarch_dtrace_disable_probe' and
7432         `gdbarch_dtrace_probe_is_enabled' hooks.
7433         (amd64_dtrace_disabled_probe_sequence_1): New constant.
7434         (amd64_dtrace_disabled_probe_sequence_2): Likewise.
7435         (amd64_dtrace_enable_probe_sequence): Likewise.
7436         (amd64_dtrace_disable_probe_sequence): Likewise.
7437
7438 2015-01-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
7439
7440         * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
7441         the -probe-dtrace new vpossible value for PROBE_MODIFIER.
7442         * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
7443         handle ELF files.
7444         * Makefile.in (SFILES): dtrace-probe.c added.
7445         * configure: Regenerate.
7446         * dtrace-probe.c: New file.
7447         (SHT_SUNW_dof): New constant.
7448         (dtrace_probe_type): New enum.
7449         (dtrace_probe_arg): New struct.
7450         (dtrace_probe_arg_s): New typedef.
7451         (struct dtrace_probe_enabler): New struct.
7452         (dtrace_probe_enabler_s): New typedef.
7453         (dtrace_probe): New struct.
7454         (dtrace_probe_is_linespec): New function.
7455         (dtrace_dof_sect_type): New enum.
7456         (dtrace_dof_dofh_ident): Likewise.
7457         (dtrace_dof_encoding): Likewise.
7458         (DTRACE_DOF_ENCODE_LSB): Likewise.
7459         (DTRACE_DOF_ENCODE_MSB): Likewise.
7460         (dtrace_dof_hdr): New struct.
7461         (dtrace_dof_sect): Likewise.
7462         (dtrace_dof_provider): Likewise.
7463         (dtrace_dof_probe): Likewise.
7464         (DOF_UINT): New macro.
7465         (DTRACE_DOF_PTR): Likewise.
7466         (DTRACE_DOF_SECT): Likewise.
7467         (dtrace_process_dof_probe): New function.
7468         (dtrace_process_dof): Likewise.
7469         (dtrace_build_arg_exprs): Likewise.
7470         (dtrace_get_arg): Likewise.
7471         (dtrace_get_probes): Likewise.
7472         (dtrace_get_probe_argument_count): Likewise.
7473         (dtrace_can_evaluate_probe_arguments): Likewise.
7474         (dtrace_evaluate_probe_argument): Likewise.
7475         (dtrace_compile_to_ax): Likewise.
7476         (dtrace_probe_destroy): Likewise.
7477         (dtrace_gen_info_probes_table_header): Likewise.
7478         (dtrace_gen_info_probes_table_values): Likewise.
7479         (dtrace_probe_is_enabled): Likewise.
7480         (dtrace_probe_ops): New variable.
7481         (info_probes_dtrace_command): New function.
7482         (_initialize_dtrace_probe): Likewise.
7483         (dtrace_type_name): Likewise.
7484
7485 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
7486
7487         * gdbarch.sh (dtrace_parse_probe_argument): New.
7488         (dtrace_probe_is_enabled): Likewise.
7489         (dtrace_enable_probe): Likewise.
7490         (dtrace_disable_probe): Likewise.
7491         * gdbarch.c: Regenerate.
7492         * gdbarch.h: Regenerate.
7493
7494 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
7495
7496         * stap-probe.c (stap_probe_ops): Add NULLs in the static
7497         stap_probe_ops for `enable_probe' and `disable_probe'.
7498         * probe.c (enable_probes_command): New function.
7499         (disable_probes_command): Likewise.
7500         (_initialize_probe): Define the cli commands `enable probe' and
7501         `disable probe'.
7502         (parse_probe_linespec): New function.
7503         (info_probes_for_ops): Use parse_probe_linespec.
7504         * probe.h (probe_ops): New hooks `enable_probe' and
7505         `disable_probe'.
7506
7507 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
7508
7509         * probe.c (compute_probe_arg): Moved from stap-probe.c
7510         (compile_probe_arg): Likewise.
7511         (probe_funcs): Likewise.
7512         * stap-probe.c (compute_probe_arg): Moved to probe.c.
7513         (compile_probe_arg): Likewise.
7514         (probe_funcs): Likewise.
7515
7516 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
7517
7518         * probe.c (print_ui_out_not_applicables): New function.
7519         (exists_probe_with_pops): Likewise.
7520         (info_probes_for_ops): Do not include column headers for probe
7521         types for which no probe has been actually found on any object.
7522         Also invoke `print_ui_out_not_applicables' in order to match the
7523         column rows with the header when probes of several types are
7524         listed.
7525         Print the "Type" column.
7526         * probe.h (probe_ops): Added a new probe operation `type_name'.
7527         * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
7528         (stap_type_name): New function.
7529
7530 2015-02-17  Patrick Palka  <patrick@parcs.ath.cx>
7531
7532         * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
7533         (key_is_command_char): Delete.
7534
7535 2015-02-17  Pedro Alves  <palves@redhat.com>
7536
7537         * tui/tui.c (tui_enable): Resize windows before anything
7538         might show a window.
7539
7540 2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
7541
7542         PR gdb/17984
7543         * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
7544         (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
7545         call.
7546         * aarch64-tdep.h (tdesc_aarch64): Declare.
7547
7548 2015-02-12  Mark Wielaard  <mjw@redhat.com>
7549
7550         * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
7551
7552 2015-02-13  Doug Evans  <dje@google.com>
7553
7554         * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
7555         anonymous_namespace to is_in_anonymous for consistency with the rest
7556         of the file.
7557         (cp_lookup_bare_symbol): Fix typo in comment.
7558         (cp_search_static_and_baseclasses): Ditto.
7559         (search_symbol_list): Use vertical space in comment better.
7560         (reset_directive_searched): Ditto. Fix typo.
7561         (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
7562
7563 2015-02-13  Yao Qi  <yao.qi@arm.com>
7564
7565         * MAINTAINERS: Update my email address.
7566
7567 2015-02-12  Doug Evans  <dje@google.com>
7568
7569         * symtab.c (completion_list_add_name): Fix memory leak.
7570
7571 2015-02-12  Doug Evans  <dje@google.com>
7572
7573         * completer.c (complete_line): Remove incorrect comment.
7574
7575 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7576
7577         * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
7578         (py_print_frame): Use RETURN_MASK_ERROR.
7579
7580 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7581
7582         * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
7583         function comment.  Wrap all function that can throw in cleanups.
7584         (gdbpy_apply_frame_filter): Wrap all function that can throw in
7585         cleanups.
7586
7587 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7588
7589         * python/py-framefilter.c (py_print_frame): Substitute goto error.
7590         Remove the error label.
7591
7592 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7593
7594         * python/py-framefilter.c (py_print_frame): Put conditional code paths
7595         with goto first, indent the former else codepath left.  Put variable
7596         'elided' to a new inner block.
7597
7598 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7599
7600         * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
7601
7602 2015-02-11  Pedro Alves  <palves@redhat.com>
7603
7604         * xcoffread.c (within_function): Delete.
7605
7606 2015-02-11  Tom Tromey  <tromey@redhat.com>
7607             Pedro Alves <palves@redhat.com>
7608
7609         * breakpoint.c (base_breakpoint_ops): Delete.
7610         * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
7611         * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
7612         * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
7613         * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
7614         * python/py-arch.c (arch_object_type): Make extern.
7615         * python/py-block.c (block_syms_iterator_object_type): Make extern.
7616         * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
7617         * python/py-cmd.c (cmdpy_object_type): Make extern.
7618         * python/py-continueevent.c (continue_event_object_type)
7619         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
7620         parameter.  Update all callers.
7621         * python/py-evtregistry.c (eventregistry_object_type): Make extern.
7622         * python/py-exitedevent.c (exited_event_object_type): Make extern.
7623         * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
7624         * python/py-function.c (fnpy_object_type): Make extern.
7625         * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
7626         * python/py-infevents.c (call_pre_event_object_type)
7627         (inferior_call_post_event_object_type).
7628         (memory_changed_event_object_type): Make extern.
7629         * python/py-infthread.c (thread_object_type): Make extern.
7630         * python/py-lazy-string.c (lazy_string_object_type): Make extern.
7631         * python/py-linetable.c (linetable_entry_object_type)
7632         (linetable_object_type, ltpy_iterator_object_type): Make extern.
7633         * python/py-newobjfileevent.c (new_objfile_event_object_type)
7634         (clear_objfiles_event_object_type): Make extern.
7635         * python/py-objfile.c (objfile_object_type): Make extern.
7636         * python/py-param.c (parmpy_object_type): Make extern.
7637         * python/py-progspace.c (pspace_object_type): Make extern.
7638         * python/py-signalevent.c (signal_event_object_type): Make extern.
7639         * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
7640         * python/py-type.c (type_object_type, field_object_type)
7641         (type_iterator_object_type): Make extern.
7642         * python/python.c (python_extension_script_ops)
7643         (python_extension_ops): Make extern.
7644         * stap-probe.c (stap_probe_ops): Make extern.
7645
7646 2015-02-11  Pedro Alves  <pedro@codesourcery.com>
7647
7648         * infrun.c (adjust_pc_after_break): Don't adjust the PC just
7649         because the event thread is not the current thread.
7650
7651 2015-02-11  Doug Evans  <xdje42@gmail.com>
7652
7653         * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
7654         been initialized yet, return NULL.
7655
7656 2015-02-11  Doug Evans  <dje@google.com>
7657
7658         * symfile.h (new_symfile_objfile): Delete.
7659         * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
7660         All callers updated.
7661
7662 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
7663
7664         * tui/tui-io.c (tui_handle_resize_during_io): Call
7665         tui_update_gdb_sizes() after resizing the screen.
7666         * tui/tui.c (tui_enable): Resize the terminal before
7667         calling tui_update_gdb_sizes().
7668
7669 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
7670
7671         * tui/tui-io.c (tui_getc): Move cursor to the end of the command
7672         line before printing a newline.
7673
7674 2015-02-11  Mark Wielaard  <mjw@redhat.com>
7675
7676         * utils.c (producer_is_gcc): Return true or false.
7677
7678 2015-02-10  Mark Wielaard  <mjw@redhat.com>
7679
7680         * utils.h (producer_is_gcc): Change return type to bool. Add major
7681         argument.
7682         * utils.c (producer_is_gcc): Likewise.
7683         (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
7684         * dwarf2read.c (check_producer): Likewise.
7685
7686 2015-02-10  Pedro Alves  <palves@redhat.com>
7687
7688         * infrun.c (displaced_step_fixup): Switch to the event thread
7689         before calling gdbarch_displaced_step_fixup.
7690
7691 2015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
7692
7693         * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
7694
7695 2015-02-10  Simon Marchi  <simon.marchi@ericsson.com>
7696
7697         * ada-varobj.c (ada_name_of_child): Constify parent.
7698         (ada_path_expr_of_child): Same.
7699         (ada_value_of_child): Same.
7700         (ada_type_of_child): Same.
7701         * c-varobj.c (c_is_path_expr_parent): Same.
7702         (c_describe_child): Same.
7703         (c_name_of_child): Same.
7704         (c_value_of_child): Same.
7705         (c_type_of_child): Same.
7706         (cplus_number_of_children): Same.
7707         (cplus_describe_child): Constify var.
7708         (cplus_name_of_child): Constify parent.
7709         (cplus_value_of_child): Same.
7710         (cplus_type_of_child): Same.
7711         * jv-varobj.c (java_name_of_child): Same.
7712         (java_value_of_child): Same.
7713         (java_type_of_child): Same.
7714         * varobj.c (value_of_child): Same.
7715         (varobj_default_is_path_expr_parent): Constify var, parent and return
7716         value.
7717         (varobj_get_path_expr): Constify var, modify path_expr through
7718         mutable_var.
7719         (install_new_value): Constify parent.
7720         (value_of_child): Constify parent.
7721         * varobj.h (struct varobj): Constify parent.
7722         (struct lang_varobj_ops): Constify name_of_child, value_of_child and
7723         type_of_child.
7724         (varobj_get_path_expr): Constify var.
7725         (varobj_get_path_expr_parent): Constify var and return value.
7726
7727 2015-02-10  Luis Machado  <lgustavo@codesourcery.com>
7728
7729         * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
7730         (arm_prologue_this_id): Move PC and SP limit checks to
7731         arm_prologue_unwind_stop_reason.
7732         (arm_prologue_unwind) <stop_reason> : Set to
7733         arm_prologue_unwind_stop_reason.
7734
7735 2015-02-09  Mark Wielaard  <mjw@redhat.com>
7736
7737         * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
7738         DW_LANG_Fortran08 as language_fortran.
7739
7740 2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
7741
7742         PR remote/17946
7743         * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
7744         of pointer against char.
7745
7746 2015-02-09  Mark Wielaard  <mjw@redhat.com>
7747
7748         * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
7749         (c_type_print_modifier): Likewise.
7750         * dwarf2read.c (read_tag_atomic_type): New function.
7751         (read_type_die_1): Handle DW_TAG_atomic_type.
7752         * gdbtypes.c (make_atomic_type): New function.
7753         (recursive_dump_type): Handle TYPE_ATOMIC.
7754         * gdbtypes.h (enum type_flag_values): Renumber.
7755         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
7756         (TYPE_ATOMIC): New macro.
7757         (make_atomic_type): Declare.
7758
7759 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
7760
7761         * btrace.c (ftrace_find_call): Skip gaps.
7762         (ftrace_new_function): Initialize level.
7763         (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
7764         (ftrace_new_switch): Update
7765         level computation.
7766         (ftrace_new_gap): New.
7767         (ftrace_update_function): Create new function after gap.
7768         (btrace_compute_ftrace_bts): Create gap on error.
7769         (btrace_stitch_bts): Update parameters.  Clear trace if it
7770         becomes empty.
7771         (btrace_stitch_trace): Update parameters.  Update callers.
7772         (btrace_clear): Reset the number of gaps.
7773         (btrace_insn_get): Return NULL if the iterator points to a gap.
7774         (btrace_insn_number): Return zero if the iterator points to a gap.
7775         (btrace_insn_end): Allow gaps at the end.
7776         (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
7777         (btrace_find_insn_by_number): Assert that the found iterator does
7778         not point to a gap.
7779         (btrace_call_next, btrace_call_prev): Assert that the last function
7780         is not a gap.
7781         * btrace.h (btrace_bts_error): New.
7782         (btrace_function): Update comment.
7783         (btrace_function) <insn, insn_offset, number>: Update comment.
7784         (btrace_function) <errcode>: New.
7785         (btrace_thread_info) <ngaps>: New.
7786         (btrace_thread_info) <replay>: Update comment.
7787         (btrace_insn_get): Update comment.
7788         * record-btrace.c (btrace_ui_out_decode_error): New.
7789         (record_btrace_info): Print number of gaps.
7790         (btrace_insn_history, btrace_call_history): Call
7791         btrace_ui_out_decode_error for gaps.
7792         (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
7793
7794 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
7795
7796         * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
7797         * nat/linux-btrace.c: (btrace_this_cpu): New.
7798         (cpu_supports_bts): Call btrace_this_cpu.
7799         (intel_supports_bts): Add cpu parameter.
7800
7801 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
7802
7803         * btrace.h (btrace_insn_class): New.
7804         (btrace_insn) <size, iclass>: New.
7805         * btrace.c (ftrace_find_call): Update parameters.  Update users.
7806         Use instruction classification.
7807         (ftrace_new_return): Update parameters.  Update users.
7808         (ftrace_update_function): Update parameters.  Update users.  Use
7809         instruction classification.
7810         (ftrace_update_insns): Update parameters.  Update users.
7811         (ftrace_classify_insn): New.
7812         (btrace_compute_ftrace_bts): Fill in new btrace_insn fields.  Add
7813         TRY_CATCH around call to gdb_insn_length.
7814
7815 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
7816
7817         * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
7818         Update parameters.  Update users.
7819
7820 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
7821
7822         * btrace.c (parse_xml_btrace_conf_bts): Add size.
7823         (btrace_conf_bts_attributes): New.
7824         (btrace_conf_children): Add attributes.
7825         * common/btrace-common.h (btrace_config_bts): New.
7826         (btrace_config)<bts>: New.
7827         (btrace_config): Update comment.
7828         * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
7829         Use config.
7830         * features/btrace-conf.dtd: Increment version.  Add size
7831         attribute to bts element.
7832         * record-btrace.c (set_record_btrace_bts_cmdlist,
7833         show_record_btrace_bts_cmdlist): New.
7834         (record_btrace_adjust_size, record_btrace_print_bts_conf,
7835         record_btrace_print_conf, cmd_set_record_btrace_bts,
7836         cmd_show_record_btrace_bts): New.
7837         (record_btrace_info): Call record_btrace_print_conf.
7838         (_initialize_record_btrace): Add commands.
7839         * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
7840         (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
7841         (btrace_sync_conf): Synchronize bts size.
7842         (_initialize_remote): Add Qbtrace-conf:bts:size packet.
7843         * NEWS: Announce new commands and new packets.
7844
7845 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
7846
7847         * Makefile.in (XMLFILES): Add btrace-conf.dtd.
7848         * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
7849         (x86_linux_btrace_conf): New.
7850         (x86_linux_create_target): Initialize to_btrace_conf.
7851         * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
7852         Check format.  Split into this and ...
7853         (linux_enable_bts): ... this.
7854         (linux_btrace_conf): New.
7855         (perf_event_skip_record): Renamed into ...
7856         (perf_event_skip_bts_record): ... this.  Updated users.
7857         (linux_disable_btrace): Split into this and ...
7858         (linux_disable_bts): ... this.
7859         (linux_read_btrace): Check format.
7860         * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
7861         (linux_btrace_conf): New.
7862         (btrace_target_info)<ptid>: Moved.
7863         (btrace_target_info)<conf>: New.
7864         (btrace_target_info): Split into this and ...
7865         (btrace_tinfo_bts): ... this.  Updated users.
7866         * btrace.c (btrace_enable): Update parameters.
7867         (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
7868         (btrace_conf_children, btrace_conf_attributes)
7869         (btrace_conf_elements): New.
7870         * btrace.h (btrace_enable): Update parameters.
7871         (btrace_conf, parse_xml_btrace_conf): New.
7872         * common/btrace-common.h (btrace_config): New.
7873         * feature/btrace-conf.dtd: New.
7874         * record-btrace.c (record_btrace_conf): New.
7875         (record_btrace_cmdlist): New.
7876         (record_btrace_enable_warn, record_btrace_open): Pass
7877         &record_btrace_conf.
7878         (record_btrace_info): Print recording format.
7879         (cmd_record_btrace_bts_start): New.
7880         (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
7881         (_initialize_record_btrace): Add "record btrace bts" subcommand.
7882         Add "record bts" alias command.
7883         * remote.c (remote_state)<btrace_config>: New.
7884         (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
7885         (remote_protocol_features): Add qXfer:btrace-conf:read.
7886         (remote_open_1): Call remote_btrace_reset.
7887         (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
7888         (btrace_target_info)<conf>: New.
7889         (btrace_sync_conf, btrace_read_config): New.
7890         (remote_enable_btrace): Update parameters.  Call btrace_sync_conf and
7891         btrace_read_conf.
7892         (remote_btrace_conf): New.
7893         (init_remote_ops): Initialize to_btrace_conf.
7894         (_initialize_remote): Add qXfer:btrace-conf packet.
7895         * target.c (target_enable_btrace): Update parameters.
7896         (target_btrace_conf): New.
7897         * target.h (target_enable_btrace): Update parameters.
7898         (target_btrace_conf): New.
7899         (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
7900         (target_ops)<to_enable_btrace>: Update parameters and comment.
7901         (target_ops)<to_btrace_conf>: New.
7902         * target-delegates: Regenerate.
7903         * target-debug.h (target_debug_print_const_struct_btrace_config_p)
7904         (target_debug_print_const_struct_btrace_target_info_p): New.
7905         * NEWS: Announce new command and new packet.
7906
7907 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
7908
7909         * nat/linux-btrace.h (perf_event_buffer): New.
7910         (btrace_target_info) <buffer, size, data_head>: Replace with ...
7911         <bts>: ... this.
7912         * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
7913         (perf_event_buffer_size, perf_event_buffer_begin)
7914         (perf_event_buffer_end, linux_btrace_has_changed): Removed.
7915         Updated users.
7916         (perf_event_new_data): New.
7917
7918 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
7919
7920         * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
7921         * record-btrace.c (record_btrace_open): Remove call to
7922         target_supports_btrace.
7923         * remote.c (remote_supports_btrace): Update parameters.
7924         * target.c (target_supports_btrace): Update parameters.
7925         * target.h (to_supports_btrace, target_supports_btrace): Update
7926         parameters.
7927         * target-delegates.c: Regenerate.
7928         * target-debug.h (target_debug_print_enum_btrace_format): New.
7929         * nat/linux-btrace.c
7930         (kernel_supports_btrace): Rename into ...
7931         (kernel_supports_bts): ... this.  Update users.  Update warning text.
7932         (intel_supports_btrace): Rename into ...
7933         (intel_supports_bts): ... this.  Update users.
7934         (cpu_supports_btrace): Rename into ...
7935         (cpu_supports_bts): ... this.  Update users.
7936         (linux_supports_btrace): Update parameters.  Split into this and ...
7937         (linux_supports_bts): ... this.
7938         * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
7939
7940 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
7941
7942         * Makefile.in (SFILES): Add common/btrace-common.c.
7943         (COMMON_OBS): Add common/btrace-common.o.
7944         (btrace-common.o): Add build rules.
7945         * btrace.c (parse_xml_btrace): Update parameters.
7946         (parse_xml_btrace_block): Set format field.
7947         (btrace_add_pc, btrace_fetch): Use struct btrace_data.
7948         (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
7949         (btrace_compute_ftrace): Split into this and...
7950         (btrace_compute_ftrace_bts): ...this.
7951         (btrace_stitch_trace): Split into this and...
7952         (btrace_stitch_bts): ...this.
7953         * btrace.h (parse_xml_btrace): Update parameters.
7954         (make_cleanup_btrace_data): New.
7955         * common/btrace-common.c: New.
7956         * common/btrace-common.h: Include common-defs.h.
7957         (btrace_block_s): Update comment.
7958         (btrace_format): New.
7959         (btrace_format_string): New.
7960         (btrace_data_bts): New.
7961         (btrace_data): New.
7962         (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
7963         * remote.c (remote_read_btrace): Update parameters.
7964         * target.c (target_read_btrace): Update parameters.
7965         * target.h (target_read_btrace): Update parameters.
7966         (target_ops)<to_read_btrace>: Update parameters.
7967         * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
7968         * target-delegates.c: Regenerate.
7969         * target-debug (target_debug_print_struct_btrace_data_p): New.
7970         * nat/linux-btrace.c (linux_read_btrace): Split into this and...
7971         (linux_read_bts): ...this.
7972         * nat/linux-btrace.h (linux_read_btrace): Update parameters.
7973
7974 2015-02-06  Doug Evans  <dje@google.com>
7975
7976         * remote-m32r-sdi.c: Include symfile.h.
7977
7978 2015-02-06  Doug Evans  <dje@google.com>
7979
7980         * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
7981         * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
7982         to here.
7983
7984 2015-02-06  Pedro Alves  <palves@redhat.com>
7985
7986         * linux-thread-db.c (find_new_threads_callback): Add debug output.
7987
7988 2015-02-06  Simon Marchi  <simon.marchi@ericsson.com>
7989
7990         PR gdb/15678
7991         * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
7992         (enable_count_command): Check args for NULL value.
7993
7994 2015-02-05  Doug Evans  <xdje42@gmail.com>
7995
7996         * guile/scm-frame.c: Fix spelling errors in a comment.
7997
7998 2015-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
7999
8000         * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
8001         * python/py-value.c (valpy_fetch_lazy): Use it.  Remove cast to the
8002         return type.
8003
8004 2015-02-04  Pedro Alves  <palves@redhat.com>
8005
8006         * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
8007         (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
8008         returns true.
8009         (resume_stopped_resumed_lwps): Don't check whether the thread is
8010         marked as executing.
8011         (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
8012
8013 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8014
8015         * regset.h (struct regset): Add flags field.
8016         (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
8017         * corelow.c (get_core_register_section): Add warning if the size
8018         exceeds the requested size and the regset does not have the
8019         REGSET_VARIABLE_SIZE flag set.
8020         * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
8021         flag.
8022         * armbsd-tdep.c (armbsd_gregset): Likewise.
8023         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8024         * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
8025         * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
8026         * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
8027
8028 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8029
8030         * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
8031         For ".reg-xstate", explicitly specify the requested section size
8032         via X86_XSTATE_SIZE instead of just 0 on input and
8033         X86_XSTATE_MAX_SIZE on output.
8034         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
8035         Likewise.
8036
8037 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8038
8039         PR corefiles/17808:
8040         * gdbarch.sh (iterate_over_regset_sections_cb): Document this
8041         function type, particularly its SIZE parameter.
8042         * gdbarch.h: Regenerate.
8043         * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
8044         actual against required size using ">=" instead of "==".
8045         (amd64_collect_fpregset): Likewise.
8046         * i386-tdep.c (i386_supply_gregset): Likewise.
8047         (i386_collect_gregset): Likewise.
8048         (i386_supply_fpregset): Likewise.
8049         (i386_collect_fpregset): Likewise.
8050         * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
8051         (mips_fill_gregset_wrapper): Likewise.
8052         (mips_supply_fpregset_wrapper): Likewise.
8053         (mips_fill_fpregset_wrapper): Likewise.
8054         (mips64_supply_gregset_wrapper): Likewise.
8055         (mips64_fill_gregset_wrapper): Likewise.
8056         (mips64_supply_fpregset_wrapper): Likewise.
8057         (mips64_fill_fpregset_wrapper): Likewise.
8058         * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
8059         (am33_supply_fpregset_method): Likewise.
8060         (am33_collect_gregset_method): Likewise.
8061         (am33_collect_fpregset_method): Likewise.
8062
8063 2015-02-04  Doug Evans  <dje@google.com>
8064             Pedro Alves  <palves@redhat.com>
8065             Eli Zaretskii  <eliz@gnu.org>
8066
8067         PR tui/17810
8068         * tui/tui-command.c (tui_refresh_cmd_win): New function.
8069         * tui/tui-command.c (tui_refresh_cmd_win): Declare.
8070         * tui/tui-file.c: #include tui/tui-command.h.
8071         (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
8072         (tui_file_flush): Refresh command window if stream is gdb_stdout.
8073         * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
8074
8075 2015-02-04  Pedro Alves  <palves@redhat.com>
8076
8077         Fix build breakage.
8078         * event-loop.c (gdb_do_one_event): Add default switch case.
8079
8080 2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8081
8082         Filter out inferior gcc option -fpreprocessed.
8083         * compile/compile.c (filter_args): New function.
8084         (get_args): Use it.
8085
8086 2015-02-03  Pedro Alves  <palves@redhat.com>
8087
8088         * event-loop.c: Don't declare nor define a queue type for
8089         gdb_event_p.
8090         (event_queue): Delete.
8091         (create_event, create_file_event, gdb_event_xfree)
8092         (initialize_event_loop, process_event): Delete.
8093         (gdb_do_one_event): Return as soon as one event is handled.
8094         (handle_file_event): Change prototype.  Used the passed in
8095         file_handler pointer and ready_mask instead of looping over all
8096         file handlers.
8097         (gdb_wait_for_event): Update the poll/select timeouts before
8098         blocking.  Run event handlers directly instead of queueing events.
8099         Return as soon as one event is handled.
8100         (struct async_event_handler_data): Delete.
8101         (invoke_async_event_handler): Delete.
8102         (check_async_event_handlers): Change return type to int.  Run
8103         event handlers directly instead of queueing events.  Return as
8104         soon as one event is handled.
8105         (handle_timer_event): Delete.
8106         (update_wait_timeout): New function, factored out from
8107         poll_timers.
8108         (poll_timers): Reimplement.
8109         * event-loop.h (initialize_event_loop): Delete declaration.
8110         * top.c (gdb_init): Don't call initialize_event_loop.
8111
8112 2015-02-03  Pedro Alves  <palves@redhat.com>
8113
8114         * event-loop.c (clear_async_event_handler): New function.
8115         * event-loop.h (clear_async_event_handler): New declaration.
8116         * record-btrace.c (record_btrace_async): New function.
8117         (init_record_btrace_ops): Install record_btrace_async.
8118         * record-full.c (record_full_async): New function.
8119         (record_full_resume): Don't mark the async event source here.
8120         (init_record_full_ops): Install record_full_async.
8121         (record_full_core_resume): Don't mark the async event source here.
8122         (init_record_full_core_ops): Install record_full_async.
8123         * remote.c (remote_async): Mark and clear the async stop reply
8124         queue event-loop token as appropriate.
8125
8126 2015-02-03  Pedro Alves  <palves@redhat.com>
8127
8128         * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
8129         target_is_async_p instead of target_can_async.
8130         (linux_nat_wait): Use target_is_async_p instead of
8131         target_can_async.  Don't enable async here.
8132         * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
8133         target_is_async_p instead of target_can_async.
8134
8135 2015-02-02  Simon Marchi  <simon.marchi@ericsson.com>
8136
8137         * varobj.h (lang_varobj_ops): Mention which return values need
8138         to be freed.
8139
8140 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
8141
8142         * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
8143
8144 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
8145
8146         PR gdb/17856:
8147         * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
8148         results found in the cache.
8149
8150 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
8151
8152         PR gdb/17854:
8153         * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
8154         when allocating a new one.
8155
8156 2015-02-01  Tom Tromey  <tom@tromey.com>
8157
8158         * MAINTAINERS: Remove myself.
8159
8160 2015-01-31  Doug Evans  <xdje42@gmail.com>
8161
8162         * dwarf2read.c (process_structure_scope): Update setting of
8163         TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
8164         * gdbtypes.c (internal_type_vptr_fieldno): New function.
8165         (set_type_vptr_fieldno): New function.
8166         (internal_type_vptr_basetype): New function.
8167         (set_type_vptr_basetype): New function.
8168         (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
8169         TYPE_VPTR_BASETYPE.
8170         (allocate_cplus_struct_type): Initialize vptr_fieldno.
8171         (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
8172         (print_cplus_stuff): ... moved here.
8173         (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
8174         * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
8175         moved to ...
8176         (struct cplus_struct_type): ... here.  All uses updated.
8177         (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
8178         (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
8179         (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
8180         * stabsread.c (read_tilde_fields): Update setting of
8181         TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
8182
8183 2015-01-31  Doug Evans  <xdje42@gmail.com>
8184
8185         * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
8186         to self_p.
8187         (cp_print_class_member): Rename local domain to self_type.
8188         * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
8189         domain_type to self_type.
8190         (set_die_type) <need_gnat_info>: Handle
8191         TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
8192         * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
8193         TYPE_SPECIFIC_SELF_TYPE.
8194         * gdbtypes.c (internal_type_self_type): New function.
8195         (set_type_self_type): New function.
8196         (smash_to_memberptr_type): Rename parameter domain to self_type.
8197         Update setting of TYPE_SELF_TYPE.
8198         (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
8199         (smash_to_method_type): Rename parameter domain to self_type.
8200         Update setting of TYPE_SELF_TYPE.
8201         (check_stub_method): Call smash_to_method_type.
8202         (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
8203         (copy_type_recursive): Ditto.
8204         * gdbtypes.h (enum type_specific_kind): New value
8205         TYPE_SPECIFIC_SELF_TYPE.
8206         (struct main_type) <type_specific>: New member self_type.
8207         (struct cplus_struct_type) <fn_field.type>: Update comment.
8208         (TYPE_SELF_TYPE): Rewrite.
8209         (internal_type_self_type, set_type_self_type): Declare.
8210         * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
8211         self_type.
8212         (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
8213         * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
8214         TYPE_TARGET_TYPE.
8215         * stabsread.c (read_member_functions): Mark methods with
8216         TYPE_CODE_METHOD, not TYPE_CODE_FUNC.  Update setting of
8217         TYPE_SELF_TYPE.
8218
8219 2015-01-31  Doug Evans  <xdje42@gmail.com>
8220
8221         * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
8222         All uses updated.
8223
8224 2015-01-31  Doug Evans  <xdje42@gmail.com>
8225
8226         * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
8227         or unions.  Return zero if union.
8228         (gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
8229         (gnuv3_rtti_type): Pass already-check_typedef'd value to
8230         gnuv3_get_vtable.
8231         (compute_vtable_size): Assert only passed structs.
8232         (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
8233
8234 2015-01-31  Doug Evans  <xdje42@gmail.com>
8235
8236         * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
8237         kinds.
8238
8239 2015-01-31  Gary Benson <gbenson@redhat.com>
8240             Doug Evans  <dje@google.com>
8241
8242         PR cli/9007
8243         PR cli/11920
8244         PR cli/15548
8245         * cli/cli-cmds.c (complete_command): Notify user if max-completions
8246         reached.
8247         * common/common-exceptions.h (enum errors)
8248         <MAX_COMPLETIONS_REACHED_ERROR>: New value.
8249         * completer.h (get_max_completions_reached_message): New declaration.
8250         (max_completions): Likewise.
8251         (completion_tracker_t): New typedef.
8252         (new_completion_tracker): New declaration.
8253         (make_cleanup_free_completion_tracker): Likewise.
8254         (maybe_add_completion_enum): New enum.
8255         (maybe_add_completion): New declaration.
8256         (throw_max_completions_reached_error): Likewise.
8257         * completer.c (max_completions): New global variable.
8258         (new_completion_tracker): New function.
8259         (free_completion_tracker): Likewise.
8260         (make_cleanup_free_completion_tracker): Likewise.
8261         (maybe_add_completions): Likewise.
8262         (throw_max_completions_reached_error): Likewise.
8263         (complete_line): Remove duplicates and limit result to max_completions
8264         entries.
8265         (get_max_completions_reached_message): New function.
8266         (gdb_display_match_list): Handle max_completions.
8267         (_initialize_completer): New declaration and function.
8268         * symtab.c: Include completer.h.
8269         (completion_tracker): New static variable.
8270         (completion_list_add_name): Call maybe_add_completion.
8271         (default_make_symbol_completion_list_break_on_1): Renamed from
8272         default_make_symbol_completion_list_break_on.  Maintain
8273         completion_tracker across calls to completion_list_add_name.
8274         (default_make_symbol_completion_list_break_on): New function.
8275         * top.c (init_main): Set rl_completion_display_matches_hook.
8276         * tui/tui-io.c: Include completer.h.
8277         (tui_old_rl_display_matches_hook): New static global.
8278         (tui_rl_display_match_list): Notify user if max-completions reached.
8279         (tui_setup_io): Save/restore rl_completion_display_matches_hook.
8280         * NEWS (New Options): Mention set/show max-completions.
8281
8282 2015-01-31  Gary Benson  <gbenson@redhat.com>
8283
8284         * symtab.c (struct add_name_data) <code>: New field.
8285         Updated comments.
8286         (add_symtab_completions): New function.
8287         (symtab_expansion_callback): Likewise.
8288         (default_make_symbol_completion_list_break_on): Set datum.code.
8289         Move minimal symbol scan before calling expand_symtabs_matching.
8290         Scan known primary symtabs for externs and statics before calling
8291         expand_symtabs_matching.  Pass symtab_expansion_callback as
8292         expansion_notify argument to expand_symtabs_matching.  Do not scan
8293         primary symtabs for externs and statics after calling
8294         expand_symtabs_matching.
8295
8296 2015-01-31  Gary Benson  <gbenson@redhat.com>
8297
8298         * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
8299         (struct quick_symbol_functions) <expand_symtabs_matching>:
8300         New argument expansion_notify.  All uses updated.
8301         (expand_symtabs_matching): New argument expansion_notify.
8302         All uses updated.
8303         * symfile-debug.c (debug_qf_expand_symtabs_matching):
8304         Also print expansion notify.
8305         * symtab.c (expand_symtabs_matching_via_partial): Call
8306         expansion_notify whenever a partial symbol table is expanded.
8307         * dwarf2read.c (dw2_expand_symtabs_matching): Call
8308         expansion_notify whenever a symbol table is instantiated.
8309
8310 2015-01-31  Doug Evans  <xdje42@gmail.com>
8311
8312         * cli-out.c: #include completer.h, readline/readline.h.
8313         (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
8314         (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
8315         (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
8316         * cli-out.h (cli_display_match_list): Declare.
8317         * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
8318         (ELLIPSIS_LEN): Ditto.
8319         (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
8320         (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
8321         (gdb_fnprint, gdb_print_filename): Ditto.
8322         (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
8323         (gdb_display_match_list): Ditto.
8324         * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
8325         (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
8326         (mld_beep_ftype, mld_read_key_ftype): Ditto.
8327         (match_list_displayer): New struct.
8328         (gdb_display_match_list): Declare.
8329         * top.c (init_main): Set rl_completion_display_matches_hook.
8330         * tui/tui-io.c: #include completer.h.
8331         (printable_part, PUTX, print_filename, get_y_or_n): Delete.
8332         (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
8333         (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
8334         (tui_mld_getc, tui_mld_read_key): Ditto.
8335         (tui_rl_display_match_list): Rewrite.
8336         (tui_handle_resize_during_io): New arg for_completion.  All callers
8337         updated.
8338
8339 2015-01-31  Doug Evans  <xdje42@gmail.com>
8340
8341         Add symbol lookup cache.
8342         * NEWS: Document new options and commands.
8343         * symtab.c (symbol_cache_key): New static global.
8344         (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
8345         (SYMBOL_LOOKUP_FAILED): New macro.
8346         (symbol_cache_slot_state): New enum.
8347         (block_symbol_cache): New struct.
8348         (symbol_cache): New struct.
8349         (new_symbol_cache_size, symbol_cache_size): New static globals.
8350         (hash_symbol_entry, eq_symbol_entry): New functions.
8351         (symbol_cache_byte_size, resize_symbol_cache): New functions.
8352         (make_symbol_cache, free_symbol_cache): New functions.
8353         (get_symbol_cache, symbol_cache_cleanup): New function.
8354         (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
8355         (symbol_cache_lookup, symbol_cache_clear_slot): New function.
8356         (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
8357         (symbol_cache_flush, symbol_cache_dump): New functions.
8358         (maintenance_print_symbol_cache): New function.
8359         (maintenance_flush_symbol_cache): New function.
8360         (symbol_cache_stats): New function.
8361         (maintenance_print_symbol_cache_statistics): New function.
8362         (symtab_new_objfile_observer): New function.
8363         (symtab_free_objfile_observer): New function.
8364         (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
8365         (_initialize_symtab): Init symbol_cache_key.  New parameter
8366         maint symbol-cache-size.  New maint commands print symbol-cache,
8367         print symbol-cache-statistics, flush-symbol-cache.
8368         Install new_objfile, free_objfile observers.
8369
8370 2015-01-31  Joel Brobecker  <brobecker@adacore.com>
8371
8372         PR symtab/17855
8373         * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
8374         to end.
8375
8376 2015-01-31  Doug Evans  <xdje42@gmail.com>
8377
8378         * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
8379         * auto-load.c: #include ctype.h.
8380         (struct auto_load_pspace_info): Replace member loaded_scripts with
8381         new members loaded_script_files, loaded_script_texts.
8382         (auto_load_pspace_data_cleanup): Update.
8383         (init_loaded_scripts_info): Update.
8384         (get_auto_load_pspace_data_for_loading): Update.
8385         (maybe_add_script_file): Renamed from maybe_add_script.  All callers
8386         updated.
8387         (maybe_add_script_text): New function.
8388         (clear_section_scripts): Update.
8389         (source_script_file, execute_script_contents): New functions.
8390         (source_section_scripts): Add support for
8391         SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
8392         (print_scripts): New function.
8393         (auto_load_info_scripts): Also print inlined scripts.
8394         (maybe_print_unsupported_script_warning): Renamed from
8395         unsupported_script_warning_print.  All callers updated.
8396         (maybe_print_script_not_found_warning): Renamed from
8397         script_not_found_warning_print.  All callers updated.
8398         * extension-priv.h (struct extension_language_script_ops): New member
8399         objfile_script_executor.
8400         * extension.c (ext_lang_objfile_script_executor): New function.
8401         * extension.h (objfile_script_executor_func): New typedef.
8402         (ext_lang_objfile_script_executor): Declare.
8403         * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
8404         * guile/guile.c (guile_extension_script_ops): Update.
8405         * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
8406         * python/python.c (python_extension_script_ops): Update.
8407         (gdbpy_execute_objfile_script): New function.
8408
8409 2015-01-31  Eli Zaretskii  <eliz@gnu.org>
8410
8411         * tui/tui-io.c (tui_expand_tabs): New function.
8412         (tui_puts, tui_redisplay_readline): Expand TABs into the
8413         appropriate number of spaces.
8414         * tui/tui-regs.c: Include tui-io.h.
8415         (tui_register_format): Call tui_expand_tabs to expand TABs into
8416         the appropriate number of spaces.
8417         * tui/tui-io.h: Add prototype for tui_expand_tabs.
8418
8419 2015-01-30  Doug Evans  <dje@google.com>
8420
8421         * NEWS: "info source" command now display producer string if present.
8422         * source.c (source_info): Print producer string if present.
8423
8424 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
8425
8426         * varobj.c (varobj_delete): Fix comment.
8427
8428 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
8429
8430         * varobj.c (create_child): Modify comment.
8431
8432 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
8433
8434         * ada-varobj.c (ada_number_of_children): Constify struct varobj *
8435         parameter.
8436         (ada_name_of_variable): Same.
8437         (ada_path_expr_of_child): Same.
8438         (ada_value_of_variable): Same.
8439         (ada_value_is_changeable_p): Same.
8440         (ada_value_has_mutated): Same.
8441         * c-varobj.c (varobj_is_anonymous_child): Same.
8442         (c_is_path_expr_parent): Same.
8443         (c_number_of_children): Same.
8444         (c_name_of_variable): Same.
8445         (c_path_expr_of_child): Same.
8446         (get_type): Same.
8447         (c_value_of_variable): Same.
8448         (cplus_number_of_children): Same.
8449         (cplus_name_of_variable): Same.
8450         (cplus_path_expr_of_child): Same.
8451         (cplus_value_of_variable): Same.
8452         * jv-varobj.c (java_number_of_children): Same.
8453         (java_name_of_variable): Same.
8454         (java_path_expr_of_child): Same.
8455         (java_value_of_variable): Same.
8456         * varobj.c (number_of_children): Same.
8457         (name_of_variable): Same.
8458         (is_root_p): Same.
8459         (varobj_ensure_python_env): Same.
8460         (varobj_get_objname): Same.
8461         (varobj_get_expression): Same.
8462         (varobj_get_display_format): Same.
8463         (varobj_get_display_hint): Same.
8464         (varobj_has_more): Same.
8465         (varobj_get_thread_id): Same.
8466         (varobj_get_frozen): Same.
8467         (dynamic_varobj_has_child_method): Same.
8468         (varobj_get_gdb_type): Same.
8469         (is_path_expr_parent): Same.
8470         (varobj_default_is_path_expr_parent): Same.
8471         (varobj_get_language): Same.
8472         (varobj_get_attributes): Same.
8473         (varobj_is_dynamic_p): Same.
8474         (varobj_get_child_range): Same.
8475         (varobj_value_has_mutated): Same.
8476         (varobj_get_value_type): Same.
8477         (number_of_children): Same.
8478         (name_of_variable): Same.
8479         (check_scope): Same.
8480         (varobj_editable_p): Same.
8481         (varobj_value_is_changeable_p): Same.
8482         (varobj_floating_p): Same.
8483         (varobj_default_value_is_changeable_p): Same.
8484
8485 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
8486
8487         * varobj.c (varobj_get_path_expr): Set var->path_expr.
8488         * c-varobj.c (c_path_expr_of_child): Set local var instead of
8489         child->path_expr.
8490         (cplus_path_expr_of_child): Same.
8491
8492 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
8493
8494         * mi-cmd-var.c (print_varobj): Free varobj_get_expression
8495         result.
8496         (mi_cmd_var_info_expression): Same.
8497         * varobj.c (varobj_get_expression): Mention in the comment that
8498         the result must by freed by the caller.
8499
8500 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
8501
8502         * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
8503         varobj_get_type.
8504         (varobj_update_one): Same.
8505         * varobj.c (update_type_if_necessary): Free curr_type_str and
8506         new_type_str.
8507         (varobj_get_type): Specify in comment that the result needs to be
8508         freed by the caller.
8509
8510 2015-01-29  Doug Evans  <dje@google.com>
8511
8512         PR symtab/17890
8513         * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
8514
8515 2015-01-25  Mark Wielaard  <mjw@redhat.com>
8516
8517         * dwarf2read.c (checkproducer): Call producer_is_gcc.
8518         * utils.c (producer_is_gcc_ge_4): Likewise.
8519         (producer_is_gcc): New function.
8520         * utils.h (producer_is_gcc): New declaration.
8521
8522 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
8523
8524         * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
8525         kind.
8526         * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
8527         parameter by "addr_stack" parameter.
8528         (resolve_dynamic_range): Replace "addr" parameter by
8529         "stack_addr" parameter.  Update function documentation.
8530         Update code accordingly.
8531         (resolve_dynamic_array, resolve_dynamic_union)
8532         (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
8533         (resolve_dynamic_type): Update code, following the changes made
8534         to resolve_dynamic_type_internal's interface.
8535         * dwarf2loc.h (struct property_addr_info): New.
8536         (dwarf2_evaluate_property): Replace "address" parameter
8537         by "addr_stack" parameter.  Adjust function documentation.
8538         (struct dwarf2_offset_baton): New.
8539         (struct dwarf2_property_baton): Update documentation of
8540         field "referenced_type" to be more general. New field
8541         "offset_info" in union data field.
8542         * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
8543         parameter by "addr_stack" parameter.  Adjust code accordingly.
8544         Add support for PROP_ADDR_OFFSET properties.
8545         * dwarf2read.c (attr_to_dynamic_prop): Add support for
8546         DW_AT_data_member_location attributes as well.  Use case
8547         statements instead of if/else condition.
8548
8549 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
8550
8551         * ada-varobj.c (ada_varobj_get_array_number_of_children):
8552         Return zero if PARENT_VALUE is NULL and parent_type's
8553         range type is dynamic.
8554
8555 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
8556
8557         * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
8558         nonzero if the type's subtype is dynamic.
8559         (resolve_dynamic_range): Also resolve the range's subtype.
8560
8561 2015-01-29  Alexander Klimov  <alserkli@inbox.ru>  (tiny patch)
8562
8563         Pushed by Joel Brobecker  <brobecker@adacore.com>.
8564         * symfile.c (unmap_overlay_command): Initialize sec to NULL.
8565
8566 2015-01-27  Doug Evans  <dje@google.com>
8567
8568         * NEWS: Mention gdb.Objfile.username.
8569         * python/py-objfile.c (objfpy_get_username): New function.
8570         (objfile_getset): Add "username".
8571
8572 2015-01-24  Mark Wielaard  <mjw@redhat.com>
8573
8574         * stack.c (return_command): Markup warning message with _.
8575
8576 2015-01-24  Doug Evans  <xdje42@gmail.com>
8577
8578         * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
8579
8580 2015-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
8581
8582         Fix 100x slowdown regression on DWZ files.
8583         * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
8584         (struct line_header): Add offset and offset_in_dwz.
8585         (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
8586         (free_line_header_voidp): New declaration.
8587         (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
8588         functions.
8589         (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
8590         (handle_DW_AT_stmt_list): Use line_header_hash.
8591         (free_line_header_voidp): New function.
8592         (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
8593         (dwarf_decode_lines): New parameter decode_mapping, use it.
8594         (dwarf2_free_objfile): Free line_header_hash.
8595
8596 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
8597
8598         PR gdb/17416
8599         * valops.c (value_rtti_indirect_type): Catch exception thrown by
8600         value_ind.
8601
8602 2015-01-15  Mark Wielaard  <mjw@redhat.com>
8603
8604         * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
8605         DW_AT_noreturn.
8606         * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
8607         calling_convention an 8 bit bit field.
8608         (TYPE_NO_RETURN): New macro.
8609         * infcmd.c (finish_command): Query if function does not return
8610         normally.
8611         * stack.c (return_command): Likewise.
8612
8613 2015-01-23  Pedro Alves  <palves@redhat.com>
8614
8615         * linux-nat.c (linux_is_async_p): New macro.
8616         (linux_nat_is_async_p):
8617         (linux_nat_terminal_inferior): Check whether the target can async
8618         instead of whether it is already async.
8619         (linux_nat_terminal_ours): Don't check whether the target is
8620         async.
8621         (linux_async_pipe): Use linux_is_async_p.
8622
8623 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
8624
8625         * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
8626         '-ascending'.
8627         * thread.c (tp_array_compar_ascending, tp_array_compar): New.
8628         (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
8629         Sort tp_array using tp_array_compar.
8630         (_initialize_thread): Extend thread_apply_all_command help.
8631
8632 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
8633
8634         * corelow.c (core_open): Call also thread_command.
8635         * gdbthread.h (thread_command): New prototype moved from ...
8636         * thread.c (thread_command): ... here.
8637         (thread_command): Make it global.
8638
8639 2015-01-22  Pedro Alves  <palves@redhat.com>
8640
8641         * configure.ac [*mingw32*]: Check $curses_found instead of
8642         $prefer_curses.
8643         * configure: Regenerate.
8644         * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
8645         HAVE_NCURSES_NCURSES_H checks.
8646
8647 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
8648
8649         * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
8650         fails with the 1st arg NULL, try again with "unknown".  Don't test
8651         the "cup" capability: it isn't supported by the Windows port of
8652         ncurses, but the Windows console driver is still capable of
8653         supporting TUI.
8654
8655 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
8656
8657         * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
8658
8659 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
8660
8661         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
8662         (ALLDEPFILES): Remove irix5-nat.c.  These two are part of the
8663         reason that "make TAGS" is broken.
8664
8665 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
8666
8667         * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
8668         and check additional store instructions.
8669
8670 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
8671
8672         * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
8673
8674 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
8675
8676         * ppc-linux-tdep.c (ppc_skip_trampoline_code,
8677         ppc_canonicalize_syscall, ppc_linux_syscall_record,
8678         ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
8679         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
8680         * rs6000-tdep.c (rs6000_epilogue_frame_cache,
8681         rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
8682         rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
8683         ppc_process_record_op19, ppc_process_record_op31,
8684         ppc_process_record_op59, ppc_process_record_op60,
8685         ppc_process_record_op63): Likewise.
8686
8687 2015-01-20  Joel Brobecker  <brobecker@adacore.com>
8688
8689         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
8690         (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
8691         strerror.
8692
8693 2015-01-20  Wei-cheng Wang  <cole945@gmail.com>
8694
8695         * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
8696         ppc_process_record_op31, ppc_process_record_op59,
8697         ppc_process_record_op60, ppc_process_record_op63,
8698         ppc_process_record): Fix -Wformat warning.
8699         * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
8700         Remove unused variables.
8701
8702 2015-01-20  Chen Gang  <gang.chen.5i5j@gmail.com>
8703
8704         * MAINTAINERS (Write After Approval): Add "Chen Gang".
8705
8706 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
8707
8708         * configure.ac [*mingw32*]: Only add windows-termcap.o to
8709         CONFIG_OBS if not building with a curses library.
8710         * configure: Regenerate.
8711
8712         * windows-termcap.c: Include defs.h.  Make the whole body empty if
8713         either one of HAVE_CURSES_H or HAVE_NCURSES_H or
8714         HAVE_NCURSES_NCURSES_H is defined.
8715
8716 2015-01-19  Joel Brobecker  <brobecker@adacore.com>
8717
8718         * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
8719         from end of line to start of next line.
8720
8721 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
8722
8723         * ppc-linux-tdep.c (ppc_skip_trampoline_code):
8724         Scan PLT stub backward for reverse debugging.
8725         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
8726
8727 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
8728             Ulrich Weigand  <uweigand@de.ibm.com>
8729
8730         * configure.tgt (powerpc*-*-linux): Add linux-record.o to
8731         gdb_target_obs.
8732         (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
8733         record.
8734         (ppc_canonicalize_syscall, ppc_linux_syscall_record,
8735         ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
8736         (ppc_linux_init_abi): Set process_record, process_record_signal.
8737         * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
8738         ppc_linux_record_tdep to gdbarch_tdep.
8739         (ppc_process_record): New declaration.
8740         * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
8741         ppc_process_record_op19, ppc_process_record_op31,
8742         ppc_process_record_op59, ppc_process_record_op60,
8743         ppc_process_record_op63, ppc_process_record): New functions.
8744
8745 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
8746
8747         * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
8748         rs6000_in_function_epilogue_frame_p and add an argument
8749         for frame_info.
8750         (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
8751         rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
8752         New functions.
8753         (rs6000_epilogue_frame_unwind): New.
8754         (rs6000_gdbarch_init): Append epilogue unwinder.
8755
8756 2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
8757
8758         * nat/linux-personality.c: Replace "#ifndef
8759         HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
8760         !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
8761         systems.
8762
8763 2015-01-16  Eli Zaretskii  <eliz@gnu.org>
8764
8765         * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
8766         functions.
8767         (_initialize_tui_win) <border-kind, border-mode>:
8768         <active-border-mode>: Use tui_set_var_cmd as the "set" function.
8769         (tui_set_tab_width_command): Fix the commentary.
8770
8771         * tui/tui-win.h: Add prototype for tui_rehighlight_all.
8772
8773         * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
8774         Doc fix.
8775         (tui_set_tab_width_command): Delete and recreate the source and
8776         the disassembly windows, to show the effect of the changed tab
8777         size immediately.
8778
8779         * tui/tui-data.h (LINE_PREFIX): Make shorter
8780         (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
8781         "Thread NNNNN.XXXX" thread ID notation on Windows.
8782
8783 2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8784
8785         Fix gcc-5 compilation.
8786         * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
8787
8788 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
8789
8790         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
8791         (linux-personality.o): New rule.
8792         * common/common-defs.h: Include <stdint.h>.
8793         * config/aarch64/linux.mh (NATDEPFILES): Include
8794         linux-personality.o.
8795         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
8796         * config/arm/linux.mh (NATDEPFILES): Likewise.
8797         * config/i386/linux64.mh (NATDEPFILES): Likewise.
8798         * config/i386/linux.mh (NATDEPFILES): Likewise.
8799         * config/ia64/linux.mh (NATDEPFILES): Likewise.
8800         * config/m32r/linux.mh (NATDEPFILES): Likewise.
8801         * config/m68k/linux.mh (NATDEPFILES): Likewise.
8802         * config/mips/linux.mh (NATDEPFILES): Likewise.
8803         * config/pa/linux.mh (NATDEPFILES): Likewise.
8804         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
8805         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
8806         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
8807         * config/s390/linux.mh (NATDEPFILES): Likewise.
8808         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
8809         * config/sparc/linux.mh (NATDEPFILES): Likewise.
8810         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
8811         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
8812         * defs.h: Remove #include <stdint.h> (moved to
8813         common/common-defs.h).
8814         * linux-nat.c: Include nat/linux-personality.h.  Remove #include
8815         <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
8816         nat/linux-personality.c).
8817         (linux_nat_create_inferior): Remove code to disable address space
8818         randomization (moved to nat/linux-personality.c).  Create cleanup
8819         to disable address space randomization.
8820         * nat/linux-personality.c: New file.
8821         * nat/linux-personality.h: Likewise.
8822
8823 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
8824
8825         * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
8826         common/posix-strerror.c.
8827         (posix-strerror.o): New rule.
8828         (mingw-strerror.o): Likewise.
8829         * common/common-utils.h (safe_strerror): Move prototype to here,
8830         from utils.h.
8831         * common/common.host: New file.
8832         * common/mingw-strerror.c: Likewise.
8833         * common/posix-strerror.c: Likewise.
8834         * configure: Regenerated.
8835         * configure.ac: Source common/common.host.  Add variable
8836         common_host_obs to gdb_host_obs.
8837         * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
8838         gdb/common/posix-strerror.c when warning about the use of
8839         strerror.
8840         * mingw-hdep.c (safe_strerror): Remove definition; move it to
8841         common/mingw-strerror.c.
8842         * posix-hdep.c (safe_strerror): Remove definition; move it to
8843         common/posix-hdep.c.
8844         * utils.h (safe_strerror): Remove prototype; move to
8845         common/common-utils.h.
8846
8847 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
8848
8849         GDB 7.8.2 released.
8850
8851 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
8852
8853         * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
8854         ___XA type if the array has already been fixed.
8855
8856 2015-01-14  Yao Qi  <yao@codesourcery.com>
8857
8858         * Makefile.in (ppc-linux.o): New rule.
8859         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
8860         * configure.ac: AC_CHECK_FUNCS(getauxval).
8861         * config.in: Re-generated.
8862         * configure: Re-generated.
8863         * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
8864         Declare.
8865         * nat/ppc-linux.c: New file.
8866         * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
8867         Call ppc64_64bit_inferior_p.
8868
8869 2015-01-14  Yao Qi  <yao@codesourcery.com>
8870
8871         * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
8872         nat/ppc-linux.h.
8873         (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
8874         (PPC_FEATURE_HAS_DFP): Likewise.
8875         (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
8876         (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
8877         (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
8878         Include "nat/ppc-linux.h".
8879         * nat/ppc-linux.h: New file.
8880         * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
8881
8882 2015-01-14  Pedro Alves  <palves@redhat.com>
8883
8884         PR gdb/17525
8885         * breakpoint.c: Include "interps.h".
8886         (bpstat_do_actions_1): Also check whether the interpreter is
8887         async.
8888
8889 2015-01-14  Pedro Alves  <palves@redhat.com>
8890
8891         PR cli/17828
8892         * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
8893         reinstall if the interpreter is sync.
8894
8895 2015-01-13  Doug Evans  <dje@google.com>
8896
8897         * objfiles.c (objfile_filename): New function.
8898         * objfiles.h (objfile_filename): Declare it.
8899         (objfile_name): Add function comment.
8900         * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
8901         bfd file name (which may be realpath'd), and the original name.
8902
8903 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
8904
8905         * NEWS: Create a new section for the next release branch.
8906         Rename the section of the current branch, now that it has
8907         been cut.
8908
8909 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
8910
8911         GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
8912         * version.in: Bump version to 7.9.50.DATE-cvs.
8913
8914 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
8915
8916         * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
8917         Remove trailing new-line in argument of call to warning.
8918
8919 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
8920
8921         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
8922         new-line in argument of call to "warning".
8923
8924 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
8925
8926         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
8927         in static block, then try searching for primitive types.
8928
8929 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
8930
8931         * top.h (gdb_add_history): Declare.
8932         * top.c (command_count): New variable.
8933         (gdb_add_history): New function.
8934         (gdb_safe_append_history): New static function.
8935         (quit_force): Call it.
8936         (command_line_input): Use gdb_add_history instead of
8937         add_history.
8938         * event-top.c (command_line_handler): Likewise.
8939
8940 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
8941
8942         PR gdb/17046
8943         * darwin-nat.c: Replace <machine/setjmp.h> #include by
8944         <setjmp.h> #include.
8945
8946 2015-01-11  Doug Evans  <xdje42@gmail.com>
8947
8948         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
8949
8950 2015-01-11  Doug Evans  <xdje42@gmail.com>
8951
8952         PR gdb/15830
8953         * NEWS: The "maint demangle" command is renamed as "demangle".
8954         * demangle.c: #include cli/cli-utils.h, language.h.
8955         (demangle_command): New function.
8956         (_initialize_demangle): Add new command "demangle".
8957         * maint.c (maintenance_demangle): Stub out.
8958         (_initialize_maint_cmds): Update help text for "maint demangle",
8959         and mark as deprecated.
8960
8961 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
8962
8963         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
8964         inferior_thread is a function.
8965
8966 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
8967
8968         * Makefile.in (.y.c): Don't munge yacc's #line
8969         directives.
8970
8971 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
8972
8973         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
8974         to prompt for input.
8975         * tui/tui-hooks.c (tui_query_hook): Remove.
8976         (tui_install_hooks): Don't set deprecated_query_hook.
8977         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
8978         height calculation.  Always update the command window's cur_line.
8979
8980 2015-01-09  Pedro Alves  <palves@redhat.com>
8981
8982         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
8983         function.
8984         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
8985         declaration.
8986         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
8987         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
8988         stop_reason.
8989         (check_stopped_by_watchpoint): New function.
8990         (save_sigtrap): Reimplement.
8991         (linux_nat_stopped_by_watchpoint): Adjust.
8992         (linux_nat_lp_status_is_event): Delete.
8993         (stop_wait_callback): Only call save_sigtrap after storing the
8994         pending status.
8995         (status_callback): If the thread had been stopped for a breakpoint
8996         that has since been removed, discard the event and resume the LWP.
8997         (count_events_callback, select_event_lwp_callback): Use
8998         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
8999         (cancel_breakpoint): Rename to ...
9000         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
9001         stopped for a software breakpoint or hardware breakpoint.
9002         (select_event_lwp): Only give preference to the stepping LWP in
9003         all-stop mode.  Adjust comments.
9004         (stop_and_resume_callback): Remove references to new_pending_p.
9005         (linux_nat_filter_event): Likewise.  Leave exit events of the
9006         leader thread pending here.  Handle signal short circuiting here.
9007         Only call save_sigtrap after storing the pending waitstatus.
9008         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
9009         new_pending.  Don't handle leaving events the caller is not
9010         interested in pending here, nor handle signal short-circuiting
9011         here.  Also give equal priority to all LWPs that have had events
9012         in non-stop mode.  If reporting a software breakpoint event,
9013         unadjust the LWP's PC.
9014         * linux-nat.h (enum lwp_stop_reason): New.
9015         (struct lwp_info) <stop_pc>: New field.
9016         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
9017         (struct lwp_info) <stop_reason>: New field.
9018         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
9019
9020 2015-01-09  Pedro Alves  <palves@redhat.com>
9021
9022         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
9023         Set the LWP's 'resumed' flag.
9024
9025 2015-01-09  Pedro Alves  <palves@redhat.com>
9026
9027         * linux-nat.c (linux_resume_one_lwp): New function.
9028         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
9029         (linux_nat_resume): Use lwp_status_pending_p and
9030         linux_resume_one_lwp.
9031         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
9032         (linux_handle_extended_wait): Use linux_resume_one_lwp.
9033         (status_callback, running_callback): Use lwp_status_pending_p.
9034         (lwp_status_pending_p): New function.
9035         (stop_and_resume_callback): Use lwp_status_pending_p.
9036         (linux_nat_filter_event): Use linux_resume_one_lwp.
9037         (linux_nat_wait_1): Always use status_callback to look for an LWP
9038         with a pending status.  Use linux_resume_one_lwp.
9039         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
9040         linux_resume_one_lwp.
9041
9042 2015-01-09  Pedro Alves  <palves@redhat.com>
9043
9044         * breakpoint.c (bp_location_inserted_here_p): New function,
9045         factored out from ...
9046         (breakpoint_inserted_here_p): ... here.  Use
9047         ALL_BP_LOCATIONS_AT_ADDR.
9048         (software_breakpoint_inserted_here_p): Use
9049         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
9050
9051 2014-01-09  Pedro Alves  <palves@redhat.com>
9052
9053         Skip enabling event reporting if the kernel supports
9054         PTRACE_EVENT_CLONE.
9055         * linux-thread-db.c: Include "nat/linux-ptrace.h".
9056         (thread_db_use_events): New function.
9057         (try_thread_db_load_1): Check thread_db_use_events before enabling
9058         event reporting.
9059         (update_thread_state): New function.
9060         (attach_thread): Use it.  Check thread_db_use_events before
9061         enabling event reporting.
9062         (thread_db_detach): Check thread_db_use_events before disabling
9063         event reporting.
9064         (find_new_threads_callback): Check thread_db_use_events before
9065         enabling event reporting.  Update the thread's state if not using
9066         libthread_db events.
9067
9068 2015-01-09  Pedro Alves  <palves@redhat.com>
9069
9070         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
9071         about to wait for is > 0.
9072         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
9073         the kernel thread ID is -1.
9074
9075 2015-01-09  Pedro Alves  <palves@redhat.com>
9076
9077         * linux-nat.c (attach_proc_task_lwp_callback): New function.
9078         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
9079         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
9080         ptrace option flags.
9081         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
9082         field.
9083         * nat/linux-procfs.c: Include <dirent.h>.
9084         (linux_proc_get_int): New parameter "warn".  Handle it.
9085         (linux_proc_get_tgid): Adjust.
9086         (linux_proc_get_tracerpid): Rename to ...
9087         (linux_proc_get_tracerpid_nowarn): ... this.
9088         (linux_proc_pid_get_state): New function, factored out from
9089         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
9090         and handle it.
9091         (linux_proc_pid_is_gone): New function.
9092         (linux_proc_pid_is_stopped): Adjust.
9093         (linux_proc_pid_is_zombie_maybe_warn)
9094         (linux_proc_pid_is_zombie_nowarn): New functions.
9095         (linux_proc_pid_is_zombie): Use
9096         linux_proc_pid_is_zombie_maybe_warn.
9097         (linux_proc_attach_tgid_threads): New function.
9098         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
9099         (linux_proc_get_tracerpid): Rename to ...
9100         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
9101         (linux_proc_pid_is_gone): New declaration.
9102         (linux_proc_pid_is_zombie): Update comment.
9103         (linux_proc_pid_is_zombie_nowarn): New declaration.
9104         (linux_proc_attach_lwp_func): New typedef.
9105         (linux_proc_attach_tgid_threads): New declaration.
9106         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
9107         use nowarn functions.
9108         (linux_ptrace_attach_fail_reason_string): Move here from
9109         gdbserver/linux-low.c and rename.
9110         (ptrace_supports_feature): If the current ptrace options are not
9111         known yet, check them now, instead of asserting.
9112         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
9113         Declare.
9114
9115 2015-01-09  Pedro Alves  <palves@redhat.com>
9116
9117         * linux-thread-db.c (thread_db_find_new_threads_silently)
9118         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
9119         (find_new_threads_once): Print debug output on gdb_stdlog.
9120
9121 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
9122             Pedro Alves  <palves@redhat.com>
9123
9124         * compile/compile.c: Include "gdb_wait.h".
9125         (do_rmdir): Check return value, and free 'zap'.
9126
9127 2015-01-08  Pedro Alves  <palves@redhat.com>
9128             Yao Qi  <yao@codesourcery.com>
9129
9130         * dwarf2loc.c (indirect_pieced_value): Don't call
9131         gdb_sign_extend.  Call extract_signed_integer instead.
9132         * utils.c (gdb_sign_extend): Remove.
9133         * utils.h (gdb_sign_extend): Remove declaration.
9134
9135 2015-01-07  Pierre Muller  <muller@sourceware.org>
9136
9137         PR symtab/17811
9138         * stabsread.c (define_symbol): Set language for C++ special symbols.
9139
9140 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
9141
9142         * inflow.c (initial_gdb_ttystate): Tweak comment.
9143
9144 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
9145
9146         * inflow.c (set_initial_gdb_ttystate): Add empty line after
9147         comment documenting function.
9148
9149 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
9150
9151         * terminal.h (set_initial_gdb_ttystate): Declare.
9152         * inflow.c (initial_gdb_ttystate): New static variable.
9153         (set_initial_gdb_ttystate): New setter.
9154         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
9155         instead of our current terminal state.
9156         * top.c (gdb_init): Call set_initial_gdb_ttystate.
9157
9158 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
9159
9160         * guile/scm-type.c (tyscm_array_1): Add comment.
9161         * python/py-type.c (typy_array_1): Add comment.
9162
9163 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
9164
9165         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
9166         error if N2 is equal to N1 - 1.
9167
9168 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
9169
9170         * python/py-type.c (typy_array_1): Do not raise negative-length
9171         exception if N2 is equal to N1 - 1.
9172
9173 2015-01-03  Doug Evans  <xdje42@gmail.com>
9174
9175         * c-exp.y: Whitespace cleanup.
9176         (classify_inner_name): Remove extra ;.
9177
9178 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
9179
9180         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
9181         offset signed.
9182
9183 2015-01-02  Doug Evans  <dje@google.com>
9184
9185         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
9186
9187 2015-01-02  Doug Evans  <dje@google.com>
9188
9189         * symtab.h (struct symbol): Fix typo in comment.
9190
9191 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
9192
9193         Update year range in copyright notice of all files.
9194
9195 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
9196
9197         * top.c (print_gdb_version): Update copyright year to 2015.
9198
9199 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
9200
9201         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
9202
9203 For older changes see ChangeLog-2014.
9204 \f
9205 Local Variables:
9206 mode: change-log
9207 left-margin: 8
9208 fill-column: 74
9209 version-control: never
9210 coding: utf-8
9211 End: