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