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