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