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