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