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