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