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