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