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