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