Make step_start_function be per thread
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
885eeb5b
PA
12015-03-24 Pedro Alves <palves@redhat.com>
2
3 * infrun.c (step_start_function): Delete and ...
4 * gdbthread.h (struct thread_control_state) <step_start_function>:
5 ... now a field here.
6 * infrun.c (clear_proceed_status_thread): Clear the thread's
7 step_start_function.
8 (proceed, process_event_stop_test, print_stop_event): Adjust.
9
3333f03a
PA
102015-03-24 Pedro Alves <palves@redhat.com>
11
12 * infrun.c (proceed): No longer handle negative step.
13
369f6daa
GB
142015-03-24 Gary Benson <gbenson@redhat.com>
15
16 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
17 (x86_linux_prepare_to_resume): Likewise.
18 * x86-linux-nat.c (x86_linux_new_thread):
19 Moved to nat/x86-linux.c.
20 (x86_linux_prepare_to_resume): Likewise.
21 * nat/x86-linux.c (x86_linux_new_thread): New function.
22 (x86_linux_prepare_to_resume): Likewise.
23
8e5d4070
GB
242015-03-24 Gary Benson <gbenson@redhat.com>
25
26 * nat/x86-linux-dregs.h: New file.
27 * nat/x86-linux-dregs.c: Likewise.
28 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
29 (x86-linux-dregs.o): New rule.
30 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
31 * config/i386/linux64.mh (NATDEPFILES): Likewise.
32 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
33 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
34 (x86_linux_dr_get): Likewise.
35 (x86_linux_dr_set): Likewise.
36 (x86_linux_dr_get_addr): Likewise.
37 (x86_linux_dr_get_control): Likewise.
38 (x86_linux_dr_get_status): Likewise.
39 (update_debug_registers_callback): Likewise.
40 (x86_linux_dr_set_control): Likewise.
41 (x86_linux_dr_set_addr): Likewise.
42 (x86_linux_update_debug_registers): Likewise.
43
2b95d440
GB
442015-03-24 Gary Benson <gbenson@redhat.com>
45
46 * x86-linux-nat.c (x86_linux_update_debug_registers):
47 New function, factored out from...
48 (x86_linux_prepare_to_resume): ...this.
49
14b0bc68
GB
502015-03-24 Gary Benson <gbenson@redhat.com>
51
52 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
53 (x86_linux_dr_set): Likewise.
54 (x86_linux_dr_get_addr): Likewise.
55 (x86_linux_dr_get_control): Likewise.
56 (x86_linux_dr_get_status): Likewise.
57 (update_debug_registers_callback): Likewise.
58 (x86_linux_dr_set_control): Likewise.
59 (x86_linux_dr_set_addr): Likewise.
60 (x86_linux_prepare_to_resume): Likewise.
61 (x86_linux_new_thread): Likewise.
62
5dfe6ca8
GB
632015-03-24 Gary Benson <gbenson@redhat.com>
64
65 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
66 (x86_linux_new_thread): Rename argument.
67
4b134ca1
GB
682015-03-24 Gary Benson <gbenson@redhat.com>
69
70 * nat/x86-linux.h: New file.
71 * nat/x86-linux.c: Likewise.
72 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
73 (x86-linux.o): New rule.
74 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
75 * config/i386/linux64.mh (NATDEPFILES): Likewise.
76 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
77 (lwp_set_arch_private_info): New declaration.
78 (lwp_arch_private_info): Likewise.
79 * linux-nat.c (lwp_set_arch_private_info): New function.
80 (lwp_arch_private_info): Likewise.
81 * x86-linux-nat.c: Include nat/x86-linux.h.
82 (arch_lwp_info): Removed structure.
83 (update_debug_registers_callback):
84 Use lwp_set_debug_registers_changed.
85 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
86 and lwp_set_debug_registers_changed.
87 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
88
cff068da
GB
892015-03-24 Gary Benson <gbenson@redhat.com>
90
91 * nat/linux-nat.h (ptid_of_lwp): New declaration.
92 (lwp_is_stopped): Likewise.
93 (lwp_stop_reason): Likewise.
94 * linux-nat.c (ptid_of_lwp): New function.
95 (lwp_is_stopped): Likewise.
96 (lwp_is_stopped_by_watchpoint): Likewise.
97 * x86-linux-nat.c (update_debug_registers_callback):
98 Use lwp_is_stopped.
99 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
100 lwp_stop_reason.
101
b2f7c7e8
GB
1022015-03-24 Gary Benson <gbenson@redhat.com>
103
104 * linux-nat.h (linux_stop_lwp): Move declaration to...
105 * nat/linux-nat.h (linux_stop_lwp): New declaration.
106
6d4ee8c6
GB
1072015-03-24 Gary Benson <gbenson@redhat.com>
108
109 * linux-nat.h: Include nat/linux-nat.h.
110 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
111 * nat/linux-nat.h (struct lwp_info): New forward declaration.
112 (iterate_over_lwps_ftype): New typedef.
113 (iterate_over_lwps): New declaration.
114 * linux-nat.h (iterate_over_lwps): Update comment. Use
115 iterate_over_lwps_ftype. Update callback return value check.
116
70a0bb6b
GB
1172015-03-24 Gary Benson <gbenson@redhat.com>
118
119 * x86-nat.h (x86_debug_reg_state): Move declaration to...
120 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
121
7b669087
GB
1222015-03-24 Gary Benson <gbenson@redhat.com>
123
124 * nat/linux-nat.h (current_lwp_ptid): New declaration.
125 * linux-nat.c (current_lwp_ptid): New function.
126 * x86-linux-nat.c: Include nat/linux-nat.h.
127 (x86_linux_dr_get_addr): Use current_lwp_ptid.
128 (x86_linux_dr_get_control): Likewise.
129 (x86_linux_dr_get_status): Likewise.
130 (x86_linux_dr_set_control): Likewise.
131 (x86_linux_dr_set_addr): Likewise.
132
15630549
AT
1332015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
134
135 PR breakpoints/16466
136 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
137
8a4506c0
JB
1382015-03-23 Joel Brobecker <brobecker@adacore.com>
139
140 * ser-mingw.c (ser_windows_setparity): Fix indentation.
141 * ser-unix.c (hardwire_setparity): Likewise.
142
236af5e3
YG
1432015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
144
145 * NEWS: Mention set/show serial parity command.
146 * monitor.c (monitor_open): Call serial_setparity.
147 * remote.c (remote_open_1): Likewise.
148 * ser-base.c (ser_base_serparity): New function.
149 * ser-base.h (ser_base_setparity): Add declaration.
150 * ser-go32.c (dos_ops): Set "setparity" field.
151 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
152 state.Parity.
153 (ser_windows_setparity): New function.
154 (hardwire_ops): Add ser_windows_setparity.
155 (tty_ops): Add NULL for setparity field.
156 (pipe_ops): Add ser_base_setparity.
157 (tcp_ops): Likewise.
158 * ser-pipe.c (pipe_ops): Likewise.
159 * ser-tcp.c (tcp_ops): Likewise.
160 * ser-unix.c (hardwire_setparity): Add declaration.
161 (hardwire_raw): Don't reset PARENB flag.
162 (hardwire_setparity): New function.
163 (hardwire_ops): Add hardwire_setparity.
164 * serial.c (serial_setparity): New function.
165 (serial_parity): New global.
166 (parity_none, parity_odd, parity_even, parity_enums, parity):
167 New static globals.
168 (set_parity): New function.
169 (_initialize_serial): Add set/show serial parity commands.
170 * serial.h (GDBPARITY_NONE): Define.
171 (GDBPARITY_ODD): Define.
172 (GDBPARITY_EVEN): Define.
173 (serial_setparity) Add declaration.
174 (struct serial_ops): Add setparity field.
175 * target.h (serial_parity): Add declaration.
176
32b40af9
KS
1772015-03-23 Keith Seitz <keiths@redhat.com>
178
179 * linespec.c (linespec_lexer_lex_keyword): Update comment.
180
693dca06
KS
1812015-03-23 Keith Seitz <keiths@redhat.com>
182
183 * breakpoint.c (parse_breakpoint_sals): Use
184 linespec_lexer_lex_keyword to ascertain if the user specified
185 a NULL location.
186 * linespec.c [IF_KEYWORD_INDEX]: Define.
187 (linespec_lexer_lex_keyword): Export.
188 (struct ls_parser) <keyword_ok>: Remove.
189 A keyword is only a keyword if not followed by another keyword.
190 (linespec_lexer_lex_one): Remove keyword_ok handling.
191 Add comment explaining why the parsing stream is not advanced
192 when a keyword is seen.
193 (parse_linespec): Remove parser->keyword_ok.
194 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
195
7e993ebf
KS
1962015-03-23 Keith Seitz <keiths@redhat.com>
197
198 PR gdb/18021
199 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
200 if we find a static method with DW_AT_vtable_elem_location.
201
b1a0f704
EZ
2022015-03-21 Eli Zaretskii <eliz@gnu.org>
203
204 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
205 before the second loop, to avoid undefined behavior. Reported by
206 Anton Blanchard <anton@samba.org>.
207
d9823cbb
KB
2082015-03-20 Keven Boell <keven.boell@intel.com>
209
210 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
211 data_location usage to linked list.
212 (resolve_dynamic_type_internal): Adapt data_location to
213 linked list.
214 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
215 (copy_type_recursive, copy_type): Add copy of linked list.
216 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
217 (struct dynamic_prop_list): New struct.
218 * dwarf2read.c (set_die_type): Set data_location data.
219
2e7bf1d7
PA
2202015-03-20 Pedro Alves <palves@redhat.com>
221
222 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
223 inner block and make it const.
224 * machoread.c (get_archive_prefix_len): Make "lparen" const.
225
7a26bd4d
PA
2262015-03-20 Pedro Alves <palves@redhat.com>
227
228 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
229 * breakpoint.h (set_breakpoint_condition): Update declaration.
230
cd46431b
PA
2312015-03-20 Pedro Alves <palves@redhat.com>
232
233 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
234
e28566f7
PA
2352015-03-20 Pedro Alves <palves@redhat.com>
236
237 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
238
f6fc92f6
PA
2392015-03-20 Pedro Alves <palves@redhat.com>
240
241 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
242
c32ed3ef
PA
2432015-03-20 Pedro Alves <palves@redhat.com>
244
245 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
246 (nto_init_solib_absolute_prefix): Likewise.
247
53e78085
PA
2482015-03-20 Pedro Alves <palves@redhat.com>
249
250 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
251 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
252
bc23328c
JK
2532015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
254
255 * config/djgpp/README: Remove gdb.hp.
256
e8ffc436
YQ
2572015-03-20 Yao Qi <yao.qi@linaro.org>
258
259 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
260 set_gdbarch_cannot_step_breakpoint.
261
23f238d3
PA
2622015-03-19 Pedro Alves <palves@redhat.com>
263
264 * linux-nat.c (linux_resume_one_lwp): Rename to ...
265 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
266 instead call perror_with_name.
267 (check_ptrace_stopped_lwp_gone): New function.
268 (linux_resume_one_lwp): Reimplement as wrapper around
269 linux_resume_one_lwp_throw that swallows errors if the LWP is
270 gone.
271 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
272 swallows errors if the LWP is gone. Use
273 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
274
eb54c8bf
PA
2752015-03-19 Pedro Alves <palves@redhat.com>
276
277 * linux-nat.c (status_callback): Return early if the LWP has no
278 status pending.
279
b90fc188
PA
2802015-03-19 Pedro Alves <palves@redhat.com>
281
282 * linux-nat.c (select_event_lwp_callback): Update comment to no
283 longer mention SIGTRAP.
284
670f82d4
TG
2852015-03-18 Tristan Gingold <gingold@adacore.com>
286
287 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
288 redirection code to ...
289 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
290 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
291
464b0089
GB
2922015-03-18 Gary Benson <gbenson@redhat.com>
293
294 (remote_protocol_features): Remove the "vFile:fstat" feature.
295 (remote_hostio_fstat): Probe for "vFile:fstat" support.
296
f68f11b7
YQ
2972015-03-11 Yao Qi <yao.qi@linaro.org>
298
299 PR tdep/18107
300 * aarch64-linux-tdep.c: Include xml-syscall.h
301 (aarch64_linux_get_syscall_number): New function.
302 (aarch64_linux_init_abi): Call
303 set_gdbarch_get_syscall_number.
304 * syscalls/aarch64-linux.xml: New file.
305
393bd0c0
YG
3062015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
307
308 * ser-base.h (ser_base_setstopbits): Change second argument name
309 from "rate" to "num".
310
7f3647e2
GB
3112015-03-17 Gary Benson <gbenson@redhat.com>
312 Luke Allardyce <lukeallardyce@gmail.com>
313
314 PR gdb/18131
315 * common/common-remote-fileio.h (sys/stat.h): New include.
316 (stuct stat): Remove forward declaration.
317
3ce5b6e2
JB
3182015-03-16 John Baldwin <jhb@FreeBSD.org>
319
320 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
321 before writing core register notes.
322
d053f6be
YZ
3232015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
324 Pedro Alves <palves@redhat.com>
325
326 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
327 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
328 (tgoto): Wrap with extern "C".
329
b1a921c8
PA
3302015-03-16 Pedro Alves <palves@redhat.com>
331 Yuanhui Zhang <asmwarrior@gmail.com>
332
333 * stub-termcap.c (tputs): Change prototype.
334
876d1cd7
YZ
3352015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
336 Pedro Alves <palves@redhat.com>
337
338 * windows-nat.c (struct thread_info_struct): Rename to ...
339 (struct windows_thread_info_struct): ... this.
340 (thread_info): Rename to ...
341 (windows_thread_info): ... this.
342 All users updated.
343
0800b440
JK
3442015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
345 Pedro Alves <palves@redhat.com>
346
347 * NEWS: New Removed targets and native configurations.
348
3492015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
61a12cfa
JK
350
351 Remove HPUX.
352 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
353 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
354 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
355 ia64-hpux-tdep.h, solib-ia64-hpux.h.
356 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
357 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
358 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
359 hppa-hpux-tdep.c.
360 * config/ia64/hpux.mh: Remove file.
361 * config/pa/hpux.mh: Remove file.
362 * configure: Rebuilt.
363 * configure.ac (dlgetmodinfo, somread.o): Remove.
364 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
365 (ia64-*-hpux*): Remove its float format exception.
366 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
367 * hppa-hpux-nat.c: Remove file.
368 * hppa-hpux-tdep.c: Remove file.
369 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
370 Move them here from hppa-tdep.h
371 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
372 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
373 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
374 Move them to hppa-tdep.c.
375 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
376 declarations.
377 * ia64-hpux-nat.c: Remove file.
378 * ia64-hpux-tdep.c: Remove file.
379 * ia64-hpux-tdep.h: Remove file.
380 * inf-ttrace.c: Remove file.
381 * inf-ttrace.h: Remove file.
382 * solib-ia64-hpux.c: Remove file.
383 * solib-ia64-hpux.h: Remove file.
384 * solib-pa64.c: Remove file.
385 * solib-pa64.h: Remove file.
386 * solib-som.c: Remove file.
387 * solib-som.h: Remove file.
388 * somread.c: Remove file.
389
25268153
JB
3902015-03-13 John Baldwin <jhb@FreeBSD.org>
391
392 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
393 * config.in: Regenerate.
394 * configure: Regenerate.
395 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
396 define.
397 (fbsd_find_memory_regions): Use kinfo_getvmmap to
398 enumerate memory regions if present.
399
773eacf5
JB
4002015-03-13 John Baldwin <jhb@FreeBSD.org>
401
402 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
403 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
404 expressions.
405 (i386fbsd_sigtramp_p): Likewise.
406
01b6bdb0
JB
4072015-03-12 John Baldwin <jhb@FreeBSD.org>
408
409 * MAINTAINERS (Write After Approval): Add John Baldwin.
410
811a659a
GB
4112015-03-12 Gary Benson <gbenson@redhat.com>
412
413 * solib.c (_initialize_solib): Make "set/show sysroot" use
414 add_setshow_optional_filename_cmd so it can be restored to
415 empty after being set.
416
10304ef3
SDJ
4172015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
418
419 * Makefile.in (SFILES): New source break-catch-syscall.c.
420 (COMMON_OBS): New object break-catch-syscall.o.
421 * break-catch-syscall.c: New file.
422 * breakpoint.c: Remove inclusion of "xml-syscall.h".
423 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
424 (struct syscall_catchpoint): Likewise.
425 (dtor_catch_syscall): Likewise.
426 (catch_syscall_inferior_data): Likewise.
427 (struct catch_syscall_inferior_data): Likewise.
428 (get_catch_syscall_inferior_data): Likewise.
429 (catch_syscall_inferior_data_cleanup): Likewise.
430 (insert_catch_syscall): Likewise.
431 (remove_catch_syscall): Likewise.
432 (breakpoint_hit_catch_syscall): Likewise.
433 (print_it_catch_syscall): Likewise.
434 (print_one_catch_syscall): Likewise.
435 (print_mention_catch_syscall): Likewise.
436 (print_recreate_catch_syscall): Likewise.
437 (catch_syscall_breakpoint_ops): Likewise.
438 (syscall_catchpoint_p): Likewise.
439 (create_syscall_event_catchpoint): Likewise.
440 (catch_syscall_split_args): Likewise.
441 (catch_syscall_command_1): Likewise.
442 (is_syscall_catchpoint_enabled): Likewise.
443 (catch_syscall_enabled): Likewise.
444 (catching_syscall_number): Likewise.
445 (catch_syscall_completer): Likewise.
446 (clear_syscall_counts): Likewise.
447 (initialize_breakpoint_ops): Move initialization of syscall
448 catchpoints to break-catch-syscall.c.
449 (_initialize_breakpoint): Move code related to syscall catchpoints
450 to break-catch-syscall.c.
451
badd37ce
SDJ
4522015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
453
454 * breakpoint.c (breakpoint_find_if): New function.
455 * breakpoint.h (breakpoint_find_if): New prototype.
456
0a93529c
GB
4572015-03-11 Gary Benson <gbenson@redhat.com>
458
459 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
460 * remote-fileio.c (remote_fileio_to_host_uint): New function.
461 (remote_fileio_to_host_ulong): Likewise.
462 (remote_fileio_to_host_mode): Likewise.
463 (remote_fileio_to_host_time): Likewise.
464 (remote_fileio_to_host_stat): Likewise.
465 * remote.c (PACKET_vFile_fstat): New enum value.
466 (remote_protocol_features): Register the "vFile:fstat" feature.
467 (remote_hostio_fstat): New function.
468 (remote_bfd_iovec_stat): Use the above.
469 (_initialize_remote): Register new "set/show remote
470 hostio-fstat-packet" command.
471 * symfile.c (separate_debug_file_exists): Update comment.
472 * NEWS: Announce new vFile:fstat packet.
473
791c0056
GB
4742015-03-11 Gary Benson <gbenson@redhat.com>
475
476 * common/common-remote-fileio.h: New file.
477 * common/common-remote-fileio.c: Likewise.
478 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
479 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
480 (COMMON_OBS): Add common-remote-fileio.o.
481 (common-remote-fileio.o): New rule.
482 * remote-fileio.h (common-remote-fileio.h): New include.
483 * remote-fileio.c (gdb/fileio.h): Do not include.
484 (remote_fileio_to_be): Moved to common-remote-fileio.h.
485 (remote_fileio_to_fio_uint): Likewise.
486 (remote_fileio_to_fio_time): Likewise.
487 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
488 (remote_fileio_to_fio_mode): Likewise.
489 (remote_fileio_to_fio_ulong): Likewise.
490 (remote_fileio_to_fio_stat): Likewise.
491
1390d0ef
AW
4922015-03-11 Andy Wingo <wingo@igalia.com>
493
494 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
495 we were checking the cached type, not the cached dynamic type.
496
84a4591a
AW
4972015-03-11 Andy Wingo <wingo@igalia.com>
498
499 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
500 other strings, as these are on the GC'd heap, and will be
501 collected along with the smob.
502
85642ba0
AW
5032015-03-11 Andy Wingo <wingo@igalia.com>
504
505 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
506 (objfile_functions): Bind gdbscm_objfile_progspace to
507 objfile-progspace.
508 * guile/lib/gdb.scm: Add objfile-progspace to exports.
509
92fab5a6
AW
5102015-03-11 Andy Wingo <wingo@igalia.com>
511
512 * guile/guile.c (_initialize_guile): Disable automatic
513 finalization, if Guile offers us that possibility.
514 * guile/guile.c (call_initialize_gdb_module):
515 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
516 finalizers in appropriate places.
517 * configure.ac (AC_TRY_LIBGUILE): Add a check for
518 scm_set_automatic_finalization_enabled.
519 * configure: Regenerated.
520
f054145e
AA
5212015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
522
523 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
524 SAL, if possible.
525
18396193
AA
5262015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
527
528 * s390-linux-nat.c (struct arch_lwp_info): New.
529 (s390_fix_watch_points): Rename to...
530 (s390_prepare_to_resume): ...this. Skip the PER info update
531 unless the watch points have changed.
532 (s390_refresh_per_info, s390_new_thread): New functions.
533 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
534 s390_fix_watch_points.
535 (s390_remove_watchpoint): Likewise.
536 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
537 Register s390_prepare_to_resume.
538
9eb1356e
PA
5392015-03-09 Pedro Alves <palves@redhat.com>
540
541 Revert:
542 2015-03-07 Pedro Alves <palves@redhat.com>
543 * common/gdb_socket.h: New file.
544 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
545 sys/socket.h.
546 (net_open): Use union gdb_sockaddr_u.
547
aac331e4
PA
5482015-03-07 Pedro Alves <palves@redhat.com>
549
550 * configure.ac (build_warnings): Move -Wmissing-prototypes
551 -Wdeclaration-after-statement -Wmissing-parameter-type
552 -Wold-style-declaration -Wold-style-definition to the C-specific
553 set.
554 * configure: Regenerate.
555
366c75fc
PA
5562015-03-07 Pedro Alves <palves@redhat.com>
557
558 * common/gdb_socket.h: New file.
559 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
560 sys/socket.h.
561 (net_open): Use union gdb_sockaddr_u.
562
72df25b2
PA
5632015-03-07 Pedro Alves <palves@redhat.com>
564
565 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
566 (exceptions_state_mc_action_iter)
567 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
568 Don't define.
569 [__cplusplus] (try_scope_depth): New global.
570 [__cplusplus] (exception_try_scope_entry)
571 (exception_try_scope_exit, gdb_exception_sliced_copy)
572 (exception_rethrow): New functions.
573 (throw_exception): In C++ mode, throw
574 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
575 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
576 (throw_it): In C++ mode, use try_scope_depth.
577 * common/common-exceptions.h [!__cplusplus]
578 (exceptions_state_mc_action_iter)
579 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
580 Don't declare.
581 [__cplusplus] (exception_try_scope_entry)
582 (exception_try_scope_exit, exception_rethrow): Declare.
583 [__cplusplus] (struct exception_try_scope): New struct.
584 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
585 C++ exceptions.
586 (struct gdb_exception_RETURN_MASK_ALL)
587 (struct gdb_exception_RETURN_MASK_ERROR)
588 (struct gdb_exception_RETURN_MASK_QUIT): New types.
589
284e6217
PA
5902015-03-07 Pedro Alves <palves@redhat.com>
591
592 * main.c (handle_command_errors): Remove volatile qualifier from
593 parameter.
594
6c63c96a
PA
5952015-03-07 Pedro Alves <palves@redhat.com>
596
597 * breakpoint.c (save_breakpoints): Adjust to avoid code between
598 TRY and CATCH.
599 * gdbtypes.c (safe_parse_type): Remove empty line.
600 (types_deeply_equal):
601 * guile/scm-frame.c (gdbscm_frame_name):
602 * linux-thread-db.c (find_new_threads_once):
603 * python/py-breakpoint.c (bppy_get_commands):
604 * record-btrace.c (record_btrace_insert_breakpoint)
605 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
606 (record_btrace_start_replaying): Adjust to avoid code between TRY
607 and CATCH.
608
492d29ea
PA
6092015-03-07 Pedro Alves <palves@redhat.com>
610
611 * common/common-exceptions.c (struct catcher) <exception>: No
612 longer a pointer to volatile exception. Now an exception value.
613 <mask>: Delete field.
614 (exceptions_state_mc_init): Remove all parameters. Adjust.
615 (exceptions_state_mc): No longer pop the catcher here.
616 (exceptions_state_mc_catch): New function.
617 (throw_exception): Adjust.
618 * common/common-exceptions.h (exceptions_state_mc_init): Remove
619 all parameters.
620 (exceptions_state_mc_catch): Declare.
621 (TRY_CATCH): Rename to ...
622 (TRY): ... this. Remove EXCEPTION and MASK parameters.
623 (CATCH, END_CATCH): New.
624 All callers adjusted.
625
ece957c8
TT
6262015-03-07 Tom Tromey <tromey@redhat.com>
627
628 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
629
7556d4a4
PA
6302015-03-07 Pedro Alves <palves@redhat.com>
631
632 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
633 (amd64_epilogue_frame_cache): Normal exception handling code.
634 * break-catch-throw.c (check_status_exception_catchpoint)
635 (re_set_exception_catchpoint): Ditto.
636 * cli/cli-interp.c (safe_execute_command):
637 * cli/cli-script.c (script_from_file): Ditto.
638 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
639 Ditto.
640 * compile/compile-object-run.c (compile_object_run): Ditto.
641 * cp-abi.c (baseclass_offset): Ditto.
642 * cp-valprint.c (cp_print_value): Ditto.
643 * exceptions.c (catch_exceptions_with_msg):
644 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
645 * frame.c (get_frame_address_in_block_if_available): Ditto.
646 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
647 (i386_sigtramp_frame_cache): Ditto.
648 * infcmd.c (post_create_inferior): Ditto.
649 * linespec.c (parse_linespec, find_linespec_symbols):
650 * p-valprint.c (pascal_object_print_value): Ditto.
651 * parse.c (parse_expression_for_completion): Ditto.
652 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
653 * remote.c (remote_get_noisy_reply): Ditto.
654 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
655 * solib-svr4.c (solib_svr4_r_map): Ditto.
656
f873665f 6572015-03-06 Gary Benson <gbenson@redhat.com>
61012eef
GB
658
659 * common/common-utils.h (startswith): New inline function.
660 All places where this logic was used updated to use the above.
661
68901c4d
PA
6622015-03-05 Pedro Alves <palves@redhat.com>
663
664 PR gdb/18002
665 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
666 after reading the breakpoint's shadow memory.
667
2dcb2b1a
MK
6682015-03-05 Mark Kettenis <kettenis@gnu.org>
669
670 * hppabsd-nat.c: Remove file.
671 * hppaobsd-nat.c: New file.
672 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
673 hppaobsd-nat.c.
674 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
675 hppaobsd-nat.o.
676
527a273a
PA
6772015-03-04 Pedro Alves <palves@redhat.com>
678
679 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
680 (target_decr_pc_after_break): Delete declaration.
681 * target.c (default_target_decr_pc_after_break)
682 (target_decr_pc_after_break): Delete.
683 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
684 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
685 * linux-thread-db.c (check_event): Likewise.
686 * infrun.c (adjust_pc_after_break): Likewise.
687 * darwin-nat.c (cancel_breakpoint): Likewise.
688 * aix-thread.c (aix_thread_wait): Likewise.
689 * target-delegates.c: Regenerate.
690
faf09f01
PA
6912015-03-04 Pedro Alves <palves@redhat.com>
692
693 * linux-nat.c (save_sigtrap): Check for breakpoints before
694 checking watchpoints.
695 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
696 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
697 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
698 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
699 (linux_nat_stopped_by_sw_breakpoint)
700 (linux_nat_supports_stopped_by_sw_breakpoint)
701 (linux_nat_stopped_by_hw_breakpoint)
702 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
703 (linux_nat_wait_1): Don't re-increment the PC if relying on
704 SIGTRAP's siginfo->si_code.
705 (linux_nat_add_target): Install new target methods.
706 * linux-thread-db.c (check_event): Don't account for breakpoint PC
707 offset if the target already adjusted the PC.
708 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
709 (GDB_ARCH_TRAP_BRKPT): New.
710 (TRAP_HWBKPT): Define if not already defined.
711
f7e6eed5
PA
7122015-03-04 Pedro Alves <palves@redhat.com>
713
714 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
715 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
716 Delete field.
717 <stop_reason>: New field.
718 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
719 (packet_set_cmd_state): New function.
720 (remote_protocol_features): Register the "swbreak" and "hwbreak"
721 features.
722 (remote_query_supported): If not disabled with the corresponding
723 "set remote foo-packet" command, report support for the swbreak
724 and hwbreak features.
725 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
726 field.
727 <stop_reason>: New field.
728 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
729 (remote_wait_as): Adjust.
730 (remote_stopped_by_sw_breakpoint)
731 (remote_supports_stopped_by_sw_breakpoint)
732 (remote_stopped_by_hw_breakpoint)
733 (remote_supports_stopped_by_hw_breakpoint): New functions.
734 (remote_stopped_by_watchpoint): New function.
735 (init_remote_ops): Install them.
736 (_initialize_remote): Register new "set/show remote
737 swbreak-feature-packet" and "set/show remote
738 swbreak-feature-packet" commands.
739
9e8915c6
PA
7402015-03-04 Pedro Alves <palves@redhat.com>
741
742 * btrace.h: Include target/waitstatus.h.
743 (struct btrace_thread_info) <stop_reason>: New field.
744 * record-btrace.c (record_btrace_step_thread): Use
745 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
746 (record_btrace_decr_pc_after_break): Delete.
747 (record_btrace_stopped_by_sw_breakpoint)
748 (record_btrace_supports_stopped_by_sw_breakpoint)
749 (record_btrace_stopped_by_hw_breakpoint)
750 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
751 (init_record_btrace_ops): Install them.
752 * record-full.c (record_full_hw_watchpoint): Delete and replace
753 with ...
754 (record_full_stop_reason): ... this throughout.
755 (record_full_exec_insn): Adjust.
756 (record_full_wait_1): Adjust. No longer re-increment the PC.
757 (record_full_wait_1): Adjust. Use
758 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
759 (record_full_stopped_by_watchpoint): Adjust.
760 (record_full_stopped_by_sw_breakpoint)
761 (record_full_supports_stopped_by_sw_breakpoint)
762 (record_full_supports_stopped_by_sw_breakpoint)
763 (record_full_stopped_by_hw_breakpoint)
764 (record_full_supports_stopped_by_hw_breakpoint): New functions.
765 (init_record_full_ops, init_record_full_core_ops): Install them.
766 * record.c (record_check_stopped_by_breakpoint): New function.
767 * record.h: Include target/waitstatus.h.
768 (record_check_stopped_by_breakpoint): New declaration.
769
15c66dd6
PA
7702015-03-04 Pedro Alves <palves@redhat.com>
771
772 enum lwp_stop_reason -> enum target_stop_reason
773 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
774 (linux_nat_stopped_by_watchpoint, status_callback)
775 (linux_nat_wait_1): Adjust.
776 * linux-nat.h (enum lwp_stop_reason): Delete.
777 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
778 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
779 * target/waitstatus.h (enum target_stop_reason): New.
780
1cf4d951
PA
7812015-03-04 Pedro Alves <palves@redhat.com>
782
783 * breakpoint.c (need_moribund_for_location_type): New function.
784 (bpstat_stop_status): Don't skipping checking moribund locations
785 of breakpoint types which the target tell caused a stop.
786 (program_breakpoint_here_p): New function, factored out from ...
787 (bp_loc_is_permanent): ... this.
788 (update_global_location_list): Don't create a moribund location if
789 the target supports reporting stops of the type of the removed
790 breakpoint.
791 * breakpoint.h (program_breakpoint_here_p): New declaration.
792 * infrun.c (adjust_pc_after_break): Return early if the target has
793 already adjusted the PC. Add comments.
794 (handle_signal_stop): If nothing explains a signal, and the target
795 tells us the stop was caused by a software breakpoint, check if
796 there's a breakpoint instruction in the memory. If so, adjust the
797 PC before presenting the stop to the user. Otherwise, ignore the
798 trap. If nothing explains a signal, and the target tells us the
799 stop was caused by a hardware breakpoint, ignore the trap.
800 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
801 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
802 to_supports_stopped_by_hw_breakpoint>: New fields.
803 (target_stopped_by_sw_breakpoint)
804 (target_supports_stopped_by_sw_breakpoint)
805 (target_stopped_by_hw_breakpoint)
806 (target_supports_stopped_by_hw_breakpoint): Define.
807 * target-delegates.c: Regenerate.
808
79639e11
PA
8092015-03-04 Pedro Alves <palves@redhat.com>
810
811 * infrun.c (follow_fork_inferior): Use the whole of the
812 inferior_ptid and pending_follow.related_pid ptids instead of
813 building ptids from the process components. Adjust verbose output
814 to use target_pid_to_str.
815 * linux-nat.c (linux_child_follow_fork): Use the whole of the
816 inferior_ptid and pending_follow.related_pid ptids instead of
817 building ptids from the process components.
818
e85e8e5e
MK
8192015-03-04 Mark Kettenis <kettenis@gnu.org>
820
821 * inf-ptrace.c [PT_GET_PROCESS_STATE]
822 (inf_ptrace_insert_fork_catchpoint): New function.
823 (inf_ptrace_remove_fork_catchpoint): New function.
824 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
825
87de11c0
AA
8262015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
827
828 * s390-linux-tdep.c (s390_register_name): Return empty string
829 instead of NULL for registers that shouldn't be visible.
830
d851a69a
AA
8312015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
832
833 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
834 XML file for 64-bit targets.
835
b072f6c1
SM
8362015-03-03 Simon Marchi <simon.marchi@ericsson.com>
837
838 * target.h (find_default_create_inferior): Remove declaration.
839 (find_default_attach): Likewise.
840
c1593e4f
PA
8412015-03-03 Pedro Alves <palves@redhat.com>
842
843 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
844 Use ptid_get_pid to get the overall process id when resuming all
845 threads.
846
90ad5e1d
PA
8472015-03-03 Pedro Alves <palves@redhat.com>
848
849 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
850 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
851 * inf-ptrace.c (get_ptrace_pid): New function.
852 (inf_ptrace_resume): Use it.
853 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
854 to the lower layer.
855
d68e53f4
MM
8562015-03-03 Markus Metzger <markus.t.metzger@intel.com>
857
858 * nat/linux-btrace.c: Include sys/utsname.h.
859 (linux_determine_kernel_ptr_bits): New.
860 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
861 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
862 ptr_bits.
863
986b6601
MM
8642015-03-03 Markus Metzger <markus.t.metzger@intel.com>
865
866 * btrace.c (ftrace_update_function): Treat return as tailcall for
867 "_dl_runtime_resolve".
868
ce0dfbea
MM
8692015-03-03 Markus Metzger <markus.t.metzger@intel.com>
870
871 * btrace.h (btrace_function) <lbegin, lend>: Remove.
872 * btrace.c (ftrace_debug): Do not print the line range.
873 (ftrace_skip_file, ftrace_update_lines): Remove.
874 (ftrace_new_function): Remove lbegin and lend initialization.
875 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
876 * record-btrace.c (btrace_compute_src_line_range): New.
877 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
878
95e50b27
PA
8792015-03-02 Pedro Alves <palves@redhat.com>
880
881 * infrun.c (follow_exec): Delete all threads of the process except
882 the event thread. Extended comments.
883
00e474c2
JB
8842015-03-02 Joel Brobecker <brobecker@adacore.com>
885
886 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
887
cc7039d3
JB
8882015-03-02 Joel Brobecker <brobecker@adacore.com>
889
890 * utils.h: Remove <stdbool.h> #include.
891 (producer_is_gcc): Change return type to "int".
892 * utils.c (producer_is_gcc): Change return type to int.
893 Return 1 instead of true, and 0 instead of false.
894 Adjust function documentation accordingly.
895
550bdf96
AA
8962015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
897
898 * s390-linux-nat.c (have_regset_vxrs): New static variable.
899 (s390_linux_fetch_inferior_registers): Handle vector registers, if
900 present.
901 (s390_linux_store_inferior_registers): Likewise.
902 (s390_get_hwcap): Remove function. Embed its logic...
903 (s390_read_description): ...here. Yield a target description with
904 vector registers if applicable.
905 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
906 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
907 "features/s390x-tevx-linux64.c".
908 (struct gdbarch_tdep) <v0_full_regnum>: New field.
909 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
910 for "GNU/Linux-specific registers".
911 (s390_dwarf_reg_r0l): New enum value.
912 (s390_dwarf_reg_to_regnum): Support vector registers.
913 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
914 of GPR lower halves.
915 (regnum_is_vxr_full): New function.
916 (s390_register_name): New function.
917 (s390_pseudo_register_name): Handle v0-v15, which are composed of
918 f0-f15 and v0l-v15l.
919 (s390_pseudo_register_type): Likewise.
920 (s390_pseudo_register_read): Likewise.
921 (s390_pseudo_register_write): Likewise.
922 (s390_value_from_register): Account for the fact that values are
923 placed left-justified in vector registers.
924 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
925 the vector reggroup and omit them from the general reggroup.
926 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
927 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
928 (s390_iterate_over_regset_sections): Add iterations for the two
929 new vector regsets.
930 (s390_core_read_description): Yield a target description with
931 vector registers if applicable.
932 (s390_gdbarch_init): Handle target descriptions with vector
933 registers. Add "register_name" gdbarch method.
934 (_initialize_s390_tdep): Call new tdesc initialization functions.
935 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
936 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
937 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
938 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
939 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
940 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
941 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
942 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
943 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
944 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
945 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
946 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
947 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
948 (S390_NUM_REGS): Adjust value.
949 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
950 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
951 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
952 * NEWS: Announce S/390 vector register support.
953
446899e4
AA
9542015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
955
956 * features/s390-tevx-linux64.xml: New file.
957 * features/s390-vx-linux64.xml: New file.
958 * features/s390-vx.xml: New file.
959 * features/s390x-tevx-linux64.xml: New file.
960 * features/s390x-vx-linux64.xml: New file.
961 * features/Makefile (WHICH): Add s390-vx-linux64,
962 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
963 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
964 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
965 macros.
966 * features/s390-tevx-linux64.c: New generated file.
967 * features/s390-vx-linux64.c: Likewise.
968 * features/s390x-tevx-linux64.c: Likewise.
969 * features/s390x-vx-linux64.c: Likewise.
970 * regformats/s390-tevx-linux64.dat: Likewise.
971 * regformats/s390-vx-linux64.dat: Likewise.
972 * regformats/s390x-tevx-linux64.dat: Likewise.
973 * regformats/s390x-vx-linux64.dat: Likewise.
974
b7236fbe
DE
9752015-02-28 Doug Evans <xdje42@gmail.com>
976
977 * symtab.h (struct symtab) <next>: Fix comment.
978
02e62830
SM
9792015-02-27 Simon Marchi <simon.marchi@ericsson.com>
980
981 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
982 python_GdbMethods.
983
bf36a1e7
PA
9842015-02-27 Pedro Alves <palves@redhat.com>
985
986 * dtrace-probe.c (dtrace_probe_ops): Make extern.
987
ad6aff7d
PA
9882015-02-27 Pedro Alves <palves@redhat.com>
989
990 * common/common-exceptions.h (exception_none): Declare.
991 * common/common-exceptions.c (exception_none): Moved from
992 exceptions.c.
993 (exceptions_state_mc_init): Use exception_none.
994 * exceptions.c (exception_none): Move to
995 common/common-exceptions.c.
996 * exceptions.h (exception_none): Move to
997 common/common-exceptions.h.
998
97c18565
PA
9992015-02-27 Pedro Alves <palves@redhat.com>
1000
1001 * main.c (catch_command_errors, catch_command_errors_const):
1002 Remove 'mask' argument. Adjust.
1003 (captured_main): Adjust callers.
1004
e992c591
PA
10052015-02-27 Pedro Alves <palves@redhat.com>
1006
1007 * python/python-internal.h: Include "extension-priv.h".
1008
64166036
PA
10092015-02-27 Pedro Alves <palves@redhat.com>
1010
1011 * breakpoint.h (enum print_stop_action): Move further up in the
1012 file.
1013
8a526fa6
PA
10142015-02-27 Pedro Alves <palves@redhat.com>
1015
1016 * gdbarch.sh: Include regcache.h.
1017 * gdbarch.h: Regenerate.
1018
0fa9c223
PA
10192015-02-27 Pedro Alves <palves@redhat.com>
1020
1021 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
1022 Remove duplicate const.
1023 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
1024 duplicate const.
1025
7cf99fb1
PA
10262015-02-27 Pedro Alves <palves@redhat.com>
1027
1028 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
1029 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
1030 * features/feature_to_c.sh: Tag the generated xml_builtin array
1031 with extern const in C++ mode.
1032
1424c16e
TT
10332015-02-27 Tom Tromey <tromey@redhat.com>
1034
1035 * minidebug.c (struct lzma_stream): Rename to ...
1036 (struct gdb_lzma_stream): ... this.
1037 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
1038
10367c7c
PA
10392015-02-27 Pedro Alves <palves@redhat.com>
1040
1041 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
1042 function.
1043 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
1044 (mi_cmd_stack_list_variables): Use it.
1045
4180215b
PA
10462015-02-27 Pedro Alves <palves@redhat.com>
1047
1048 * x86-linux-nat.c (u_debugreg_offset): New function.
1049 (x86_linux_dr_get, x86_linux_dr_set): Use it.
1050
2f56f7c3
PA
10512015-02-27 Pedro Alves <palves@redhat.com>
1052
1053 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
1054 declaration.
1055 Include break-common.h.
1056
570dc176
TT
10572015-02-27 Tom Tromey <tromey@redhat.com>
1058 Pedro Alves <palves@redhat.com>
1059
1060 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
1061 local used to iterate over enums.
1062 * completer.c (signal_completer): Likewise.
1063 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
1064 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
1065 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
1066 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
1067 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
1068 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
1069 * tui-wingeneral.c (tui_refresh_all): Likewise.
1070
68c14faa
PA
10712015-02-27 Pedro Alves <palves@redhat.com>
1072
1073 * target.h: Include "infrun.h".
1074
749bab01
PA
10752015-02-27 Pedro Alves <palves@redhat.com>
1076
1077 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
1078
3c14e5a3
PA
10792015-02-27 Pedro Alves <palves@redhat.com>
1080
1081 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
1082 (IPA_SYM): Use it.
1083 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
1084
56000a98
PA
10852015-02-27 Pedro Alves <palves@redhat.com>
1086
1087 * cli-out.c (_rl_erase_entire_line): Move declaration out of
1088 cli_mld_erase_entire_line, and make it extern "C".
1089 * common/common-defs.h (EXTERN_C): New.
1090 * completer.c (_rl_completion_prefix_display_length)
1091 (_rl_print_completions_horizontally, QSFUNC): Move declarations
1092 out of gdb_display_match_list_1.
1093 (_rl_qsort_string_compare): Move declaration out of
1094 gdb_display_match_list_1, and make it extern "C".
1095 * defs.h (re_comp): Use EXTERN_C.
1096 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
1097 and make it extern "C".
1098 (monstartup): Move declaration out of maintenance_set_profile_cmd,
1099 and make it extern "C".
1100 (main): Move declaration out of maintenance_set_profile_cmd.
1101 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
1102 EXTERN_C.
1103
bcabf420
PA
11042015-02-27 Pedro Alves <palves@redhat.com>
1105
1106 * python/python.c (GdbMethods): Rename to ...
1107 (python_GdbMethods): ... this and make extern.
1108 (GdbModuleDef): Rename to ...
1109 (python_GdbModuleDef): ... this and make extern.
1110
928dbe07
PA
11112015-02-27 Pedro Alves <palves@redhat.com>
1112
1113 * record-btrace.c (set_record_btrace_cmdlist)
1114 (show_record_btrace_cmdlist): Remove redefinitions.
1115
52059ffd
TT
11162015-02-27 Tom Tromey <tromey@redhat.com>
1117 Pedro Alves <palves@redhat.com>
1118
1119 * dwarf2-frame.c (enum cfa_how_kind, struct
1120 dwarf2_frame_state_reg_info): Move out of struct
1121 dwarf2_frame_state.
1122 * dwarf2read.c (struct tu_stats): Move out of struct
1123 dwarf2_per_objfile.
1124 (struct file_entry): Move out of struct line_header.
1125 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
1126 typedef_field_list): Move out of struct field_info.
1127 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
1128 Move out of struct dynamic_prop.
1129 (union type_owner, union field_location, struct field, struct
1130 range_bounds, union type_specific): Move out of struct main_type.
1131 (struct fn_fieldlist, struct fn_field, struct typedef_field)
1132 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
1133 (struct call_site_target, union call_site_parameter_u, struct
1134 call_site_parameter): Move out of struct call_site.
1135 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
1136 m32c_prologue.
1137 (enum srcdest_kind): Move out of struct srcdest.
1138 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
1139 * prologue-value.h (enum prologue_value_kind): Move out of struct
1140 prologue_value.
1141 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
1142 gdbarch_tdep.
1143 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
1144 out of struct field_info.
1145 * symfile.h (struct other_sections): Move out of struct
1146 section_addr_info.
1147 * symtab.c (struct symbol_cache_slot): Move out struct
1148 block_symbol_cache.
1149 * target-descriptions.c (enum tdesc_type_kind): Move out of
1150 typedef struct tdesc_type.
1151 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
1152 struct tui_line_or_address.
1153 * value.c (enum internalvar_kind, union internalvar_data): Move
1154 out of struct internalvar.
1155 * xtensa-tdep.h (struct ctype_cache): Move out of struct
1156 gdbarch_tdep.
1157
fe978cb0
PA
11582015-02-27 Tom Tromey <tromey@redhat.com>
1159 Pedro Alves <palves@redhat.com>
1160
1161 Rename symbols whose names are reserved C++ keywords throughout.
1162
3bc3d82a
PA
11632015-02-27 Pedro Alves <palves@redhat.com>
1164
1165 * Makefile.in (COMPILER): New, get it from autoconf.
1166 (COMPILE.pre, CC_LD): Use COMPILER.
1167 (CXX): Get from autoconf instead.
1168 (CXX_FOR_TARGET): Default to g++ instead of gcc.
1169 * acinclude.m4: Include build-with-cxx.m4.
1170 * build-with-cxx.m4: New file.
1171 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
1172 Disable -Werror by default if building in C++ mode.
1173 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
1174 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
1175 Run supported-warning-flags tests with the C++ compiler.
1176 Save/restore CXXFLAGS too.
1177 * configure: Regenerate.
1178
07697489
PA
11792015-02-27 Pedro Alves <palves@redhat.com>
1180
1181 * libiberty.m4: New file.
1182 * acinclude.m4: Include libiberty.m4.
1183 * configure.ac: Call libiberty_INIT.
1184 * config.in, configure: Regenerate.
1185
60abeae4
AA
11862015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
1187
1188 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
1189 31-bit targets, but 64-bit targets as well.
1190 (s390_gnu_triplet_regexp): New function.
1191 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
1192 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
1193 method.
1194
f44466fb 11952015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
f0666312
JT
1196
1197 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
1198 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
1199 from CONTEXT_DEBUGGER.
1200
0def5aaa
DE
12012015-02-26 Doug Evans <dje@google.com>
1202
1203 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
1204 CHECK_TYPEDEF.
1205 (set_type_vptr_fieldno): Ditto.
1206 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
1207 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
1208
77b64a49
PA
12092015-02-26 Pedro Alves <palves@redhat.com>
1210
1211 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
1212 * complaints.c (vcomplaint): Pass argument FMT directly to
1213 printf-like functions instead of complaint->fmt.
1214 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
1215 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
1216 * compile/compile-loc2c.c (pushf, unary, binary): Add
1217 ATTRIBUTE_PRINTF.
1218 (do_compile_dwarf_expr_to_c): Pass string literal as format string
1219 to pushf.
1220 (BINARY): Pass string literal as format string to 'binary'.
1221 * compile/compile-object-load.c (link_callbacks_einfo): Add
1222 ATTRIBUTE_PRINTF.
1223 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
1224
532f44ed
PA
12252015-02-26 Pedro Alves <palves@redhat.com>
1226
1227 * windows-termcap.c: Rename to ...
1228 * stub-termcap.c: ... this. Adjust header line.
1229 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
1230 windows-termcap.c.
1231 * configure: Regenerate.
1232 * configure.ac: Refer to stub-termcap.o instead of
1233 windows-termcap.o.
1234 * gdb_curses.h: Mention stub-termcap.c instead of
1235 windows-termcap.c.
1236
081a1c2c
JK
12372015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1238
1239 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
1240 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
1241
2f41223f
AT
12422015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
1243
1244 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
1245
80c57053
JK
12462015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1247
1248 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
1249 bfd_canonicalize_symtab.
1250
cf424aef
JB
12512015-02-25 John Baldwin <jhb@FreeBSD.org>
1252
1253 * amd64fbsd-nat.c: Include sys/user.h.
1254 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
1255 instead of KERN_PS_STRINGS to locate the signal trampoline.
1256 * i386fbsd-nat.c: Include sys/user.h.
1257 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
1258 instead of KERN_PS_STRINGS to locate the signal trampoline.
1259 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
1260 (amd64fbsd_sigtramp_p): New.
1261 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
1262 longer set default values.
1263 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
1264 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
1265 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
1266 (i386fbsd_freebsd4_sigtramp_start)
1267 (i386fbsd_freebsd4_sigtramp_middle)
1268 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
1269 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
1270 (i386fbsd_sigtramp_p): New.
1271 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
1272 longer set default values.
1273 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
1274
c5cb74ee
JB
12752015-02-25 John Baldwin <jhb@freebsd.org>
1276
1277 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
1278 get_frame_register instead of frame_unwind_register_unsigned.
1279
17487d85
JK
12802015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1281
1282 PR build/18033
1283 * compile/compile-c-support.c (c_compute_program): Change // comment.
1284 * compile/compile-object-load.c (setup_sections): Change // comment.
1285
9357a9e6
JB
12862015-02-26 Joel Brobecker <brobecker@adacore.com>
1287
1288 PR build/18033:
1289 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
1290
1f10ba14
PA
12912015-02-23 Pedro Alves <palves@redhat.com>
1292
1293 * remote.c (skip_to_semicolon): New function.
1294 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
1295 special case the stop reasons that look like hex numbers
1296 upfront. Instead handle real register numbers after matching
1297 all the known stop reasons.
1298
96553a0c
DE
12992015-02-21 Doug Evans <dje@google.com>
1300
1301 PR c++/17976, symtab/17821
1302 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
1303 is_in_anonymous. All callers updated.
1304 (find_symbol_in_baseclass): Ditto.
1305 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
1306 for symbols in an anonymous namespace.
1307 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
1308 DW_AT_name directly.
1309 (dwarf2_name): Convert missing namespace name to
1310 CP_ANONYMOUS_NAMESPACE_STR.
1311
2db9a427
PA
13122015-02-20 Pedro Alves <palves@redhat.com>
1313
1314 * linux-nat.c (linux_handle_extended_wait): Call
1315 thread_db_notice_clone whenever a new clone LWP is detected.
1316 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
1317 functions.
1318 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
1319 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
1320 (linux_unstop_all_lwps): Declare.
1321 * linux-thread-db.c (struct thread_get_info_inout): Delete.
1322 (thread_get_info_callback): Delete.
1323 (thread_from_lwp): Use td_thr_get_info and record_thread.
1324 (thread_db_attach_lwp): Delete.
1325 (thread_db_notice_clone): New function.
1326 (try_thread_db_load_1): If /proc is mounted and shows the
1327 process'es task list, walk over all LWPs and call thread_from_lwp
1328 instead of relying on td_ta_thr_iter.
1329 (attach_thread): Don't call check_thread_signals here. Split the
1330 tail part of the function (which adds the thread to the core GDB
1331 thread list) to ...
1332 (record_thread): ... this function. Call check_thread_signals
1333 here.
1334 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
1335 call thread_from_lwp.
1336 (thread_db_update_thread_list): Rename to ...
1337 (thread_db_update_thread_list_org): ... this.
1338 (thread_db_update_thread_list): New function.
1339 (thread_db_find_thread_from_tid): Delete.
1340 (thread_db_get_ada_task_ptid): Simplify.
1341 * nat/linux-procfs.c: Include <sys/stat.h>.
1342 (linux_proc_task_list_dir_exists): New function.
1343 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
1344
3b27ef47
PA
13452015-02-20 Pedro Alves <palves@redhat.com>
1346
1347 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
1348 main LWP. Handle the case of waitpid returning 0 if we're already
1349 attached to the LWP. Don't set the LWP's last_resume_kind to
1350 resume_stop if we already knew about the LWP.
1351 (linux_nat_filter_event): Add debug logs.
1352
1cc28231
PA
13532015-02-20 Pedro Alves <palves@redhat.com>
1354
1355 * target.h (forward_target_decr_pc_after_break): Delete
1356 declaration.
1357
5c5019c2
PA
13582015-02-20 Pedro Alves <palves@redhat.com>
1359
1360 PR threads/18006
1361 * linux-thread-db.c (thread_get_info_callback): Return early if
1362 the thread's lwp id is -1.
1363
f3978e91
JB
13642015-02-20 Joel Brobecker <brobecker@adacore.com>
1365
1366 GDB 7.9 released.
1367
ffdf88ec
SE
13682015-02-19 Steve Ellcey <sellcey@imgtec.com>
1369
1370 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
1371 (dtrace_get_probes) Change type of variable 'dof'.
1372
c9587f88
AT
13732015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
1374
1375 PR breakpoints/16812
1376 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
1377 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
1378 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
1379
53cf2ee0
DT
13802015-02-19 David Taylor <dtaylor@emc.com>
1381
1382 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
1383
acfe0940
PP
13842015-02-18 Patrick Palka <patrick@parcs.ath.cx>
1385
1386 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
1387 function.
1388 (tui_putc): Don't call tui_handle_resize_during_io.
1389 (tui_getc): Likewise.
1390 (tui_mld_getc): Likewise.
1391 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
1392 (tui_sigwinch_token): New static variable.
1393 (tui_initialize_win): Adjust documentation. Set
1394 tui_sigwinch_token.
1395 (tui_async_resize_screen): New asynchronous callback.
1396 (tui_sigwinch_handler): Adjust documentation. Asynchronously
1397 invoke tui_async_resize_screen.
1398
f6a88844
JM
13992015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1400
1401 * configure: Regenerated.
1402 * configure.ac: Use GDB_AC_TRANSFORM.
1403 * Makefile.in (aclocal_m4_deps): Added transform.m4.
1404 * acinclude.m4: sinclude transform.m4.
1405 * transform.m4: New file.
1406 (GDB_AC_TRANSFORM): New macro.
1407
b05e3b0d
JM
14082015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
1409
1410 * NEWS: Announce the support for DTrace SDT probes.
1411
c3e3045e
JM
14122015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
1413
1414 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
1415 (amd64_dtrace_parse_probe_argument): New function.
1416 (amd64_dtrace_probe_is_enabled): Likewise.
1417 (amd64_dtrace_enable_probe): Likewise.
1418 (amd64_dtrace_disable_probe): Likewise.
1419 (amd64_linux_init_abi): Register the
1420 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
1421 `gdbarch_dtrace_disable_probe' and
1422 `gdbarch_dtrace_probe_is_enabled' hooks.
1423 (amd64_dtrace_disabled_probe_sequence_1): New constant.
1424 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
1425 (amd64_dtrace_enable_probe_sequence): Likewise.
1426 (amd64_dtrace_disable_probe_sequence): Likewise.
1427
d4777acb
JM
14282015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
1429
1430 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
1431 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
1432 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
1433 handle ELF files.
1434 * Makefile.in (SFILES): dtrace-probe.c added.
1435 * configure: Regenerate.
1436 * dtrace-probe.c: New file.
1437 (SHT_SUNW_dof): New constant.
1438 (dtrace_probe_type): New enum.
1439 (dtrace_probe_arg): New struct.
1440 (dtrace_probe_arg_s): New typedef.
1441 (struct dtrace_probe_enabler): New struct.
1442 (dtrace_probe_enabler_s): New typedef.
1443 (dtrace_probe): New struct.
1444 (dtrace_probe_is_linespec): New function.
1445 (dtrace_dof_sect_type): New enum.
1446 (dtrace_dof_dofh_ident): Likewise.
1447 (dtrace_dof_encoding): Likewise.
1448 (DTRACE_DOF_ENCODE_LSB): Likewise.
1449 (DTRACE_DOF_ENCODE_MSB): Likewise.
1450 (dtrace_dof_hdr): New struct.
1451 (dtrace_dof_sect): Likewise.
1452 (dtrace_dof_provider): Likewise.
1453 (dtrace_dof_probe): Likewise.
1454 (DOF_UINT): New macro.
1455 (DTRACE_DOF_PTR): Likewise.
1456 (DTRACE_DOF_SECT): Likewise.
1457 (dtrace_process_dof_probe): New function.
1458 (dtrace_process_dof): Likewise.
1459 (dtrace_build_arg_exprs): Likewise.
1460 (dtrace_get_arg): Likewise.
1461 (dtrace_get_probes): Likewise.
1462 (dtrace_get_probe_argument_count): Likewise.
1463 (dtrace_can_evaluate_probe_arguments): Likewise.
1464 (dtrace_evaluate_probe_argument): Likewise.
1465 (dtrace_compile_to_ax): Likewise.
1466 (dtrace_probe_destroy): Likewise.
1467 (dtrace_gen_info_probes_table_header): Likewise.
1468 (dtrace_gen_info_probes_table_values): Likewise.
1469 (dtrace_probe_is_enabled): Likewise.
1470 (dtrace_probe_ops): New variable.
1471 (info_probes_dtrace_command): New function.
1472 (_initialize_dtrace_probe): Likewise.
1473 (dtrace_type_name): Likewise.
1474
8b367e17
JM
14752015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
1476
1477 * gdbarch.sh (dtrace_parse_probe_argument): New.
1478 (dtrace_probe_is_enabled): Likewise.
1479 (dtrace_enable_probe): Likewise.
1480 (dtrace_disable_probe): Likewise.
1481 * gdbarch.c: Regenerate.
1482 * gdbarch.h: Regenerate.
1483
9aca2ff8
JM
14842015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
1485
1486 * stap-probe.c (stap_probe_ops): Add NULLs in the static
1487 stap_probe_ops for `enable_probe' and `disable_probe'.
1488 * probe.c (enable_probes_command): New function.
1489 (disable_probes_command): Likewise.
1490 (_initialize_probe): Define the cli commands `enable probe' and
1491 `disable probe'.
1492 (parse_probe_linespec): New function.
1493 (info_probes_for_ops): Use parse_probe_linespec.
1494 * probe.h (probe_ops): New hooks `enable_probe' and
1495 `disable_probe'.
1496
03e98035
JM
14972015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
1498
1499 * probe.c (compute_probe_arg): Moved from stap-probe.c
1500 (compile_probe_arg): Likewise.
1501 (probe_funcs): Likewise.
1502 * stap-probe.c (compute_probe_arg): Moved to probe.c.
1503 (compile_probe_arg): Likewise.
1504 (probe_funcs): Likewise.
1505
6f9b8491
JM
15062015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
1507
1508 * probe.c (print_ui_out_not_applicables): New function.
1509 (exists_probe_with_pops): Likewise.
1510 (info_probes_for_ops): Do not include column headers for probe
1511 types for which no probe has been actually found on any object.
1512 Also invoke `print_ui_out_not_applicables' in order to match the
1513 column rows with the header when probes of several types are
1514 listed.
1515 Print the "Type" column.
1516 * probe.h (probe_ops): Added a new probe operation `type_name'.
1517 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
1518 (stap_type_name): New function.
1519
69efdff1
PP
15202015-02-17 Patrick Palka <patrick@parcs.ath.cx>
1521
1522 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
1523 (key_is_command_char): Delete.
1524
f8e5e23e
PA
15252015-02-17 Pedro Alves <palves@redhat.com>
1526
1527 * tui/tui.c (tui_enable): Resize windows before anything
1528 might show a window.
1529
9f2e0721
MO
15302015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
1531
1532 PR gdb/17984
1533 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
1534 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
1535 call.
1536 * aarch64-tdep.h (tdesc_aarch64): Declare.
1537
171e6b1c
MW
15382015-02-12 Mark Wielaard <mjw@redhat.com>
1539
1540 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
1541
d5ff0482
DE
15422015-02-13 Doug Evans <dje@google.com>
1543
1544 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
1545 anonymous_namespace to is_in_anonymous for consistency with the rest
1546 of the file.
1547 (cp_lookup_bare_symbol): Fix typo in comment.
1548 (cp_search_static_and_baseclasses): Ditto.
1549 (search_symbol_list): Use vertical space in comment better.
1550 (reset_directive_searched): Ditto. Fix typo.
1551 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
1552
9f04ac5f
YQ
15532015-02-13 Yao Qi <yao.qi@arm.com>
1554
1555 * MAINTAINERS: Update my email address.
1556
013d0319
DE
15572015-02-12 Doug Evans <dje@google.com>
1558
b615dd20 1559 * symtab.c (completion_list_add_name): Fix memory leak.
013d0319 1560
9a7e538e
DE
15612015-02-12 Doug Evans <dje@google.com>
1562
1563 * completer.c (complete_line): Remove incorrect comment.
1564
e1fcd575
JK
15652015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1566
1567 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
1568 (py_print_frame): Use RETURN_MASK_ERROR.
1569
b99bf4e3
JK
15702015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1571
1572 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
1573 function comment. Wrap all function that can throw in cleanups.
1574 (gdbpy_apply_frame_filter): Wrap all function that can throw in
1575 cleanups.
1576
800eb1ce
JK
15772015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1578
1579 * python/py-framefilter.c (py_print_frame): Substitute goto error.
1580 Remove the error label.
1581
34019068
JK
15822015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1583
1584 * python/py-framefilter.c (py_print_frame): Put conditional code paths
1585 with goto first, indent the former else codepath left. Put variable
1586 'elided' to a new inner block.
1587
8d4a54e2
JK
15882015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1589
1590 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
1591
18ad82c1
PA
15922015-02-11 Pedro Alves <palves@redhat.com>
1593
1594 * xcoffread.c (within_function): Delete.
1595
e36122e9
TT
15962015-02-11 Tom Tromey <tromey@redhat.com>
1597 Pedro Alves <palves@redhat.com>
1598
1599 * breakpoint.c (base_breakpoint_ops): Delete.
1600 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
1601 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
1602 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
1603 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
1604 * python/py-arch.c (arch_object_type): Make extern.
1605 * python/py-block.c (block_syms_iterator_object_type): Make extern.
1606 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
1607 * python/py-cmd.c (cmdpy_object_type): Make extern.
1608 * python/py-continueevent.c (continue_event_object_type)
1609 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
1610 parameter. Update all callers.
1611 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
1612 * python/py-exitedevent.c (exited_event_object_type): Make extern.
1613 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
1614 * python/py-function.c (fnpy_object_type): Make extern.
1615 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
1616 * python/py-infevents.c (call_pre_event_object_type)
1617 (inferior_call_post_event_object_type).
1618 (memory_changed_event_object_type): Make extern.
1619 * python/py-infthread.c (thread_object_type): Make extern.
1620 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
1621 * python/py-linetable.c (linetable_entry_object_type)
1622 (linetable_object_type, ltpy_iterator_object_type): Make extern.
1623 * python/py-newobjfileevent.c (new_objfile_event_object_type)
1624 (clear_objfiles_event_object_type): Make extern.
1625 * python/py-objfile.c (objfile_object_type): Make extern.
1626 * python/py-param.c (parmpy_object_type): Make extern.
1627 * python/py-progspace.c (pspace_object_type): Make extern.
1628 * python/py-signalevent.c (signal_event_object_type): Make extern.
1629 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
1630 * python/py-type.c (type_object_type, field_object_type)
1631 (type_iterator_object_type): Make extern.
1632 * python/python.c (python_extension_script_ops)
1633 (python_extension_ops): Make extern.
1634 * stap-probe.c (stap_probe_ops): Make extern.
1635
0703599a
PA
16362015-02-11 Pedro Alves <pedro@codesourcery.com>
1637
1638 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
1639 because the event thread is not the current thread.
1640
eaaf76ab
DE
16412015-02-11 Doug Evans <xdje42@gmail.com>
1642
1643 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
1644 been initialized yet, return NULL.
1645
e7d52ed3
DE
16462015-02-11 Doug Evans <dje@google.com>
1647
1648 * symfile.h (new_symfile_objfile): Delete.
1649 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
1650 All callers updated.
1651
fc6b1256
PP
16522015-02-11 Patrick Palka <patrick@parcs.ath.cx>
1653
1654 * tui/tui-io.c (tui_handle_resize_during_io): Call
1655 tui_update_gdb_sizes() after resizing the screen.
1656 * tui/tui.c (tui_enable): Resize the terminal before
1657 calling tui_update_gdb_sizes().
1658
d9080678
PP
16592015-02-11 Patrick Palka <patrick@parcs.ath.cx>
1660
1661 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
1662 line before printing a newline.
1663
9f615e3a
MW
16642015-02-11 Mark Wielaard <mjw@redhat.com>
1665
1666 * utils.c (producer_is_gcc): Return true or false.
1667
d9080678 16682015-02-10 Mark Wielaard <mjw@redhat.com>
b1ffba5a
MW
1669
1670 * utils.h (producer_is_gcc): Change return type to bool. Add major
1671 argument.
1672 * utils.c (producer_is_gcc): Likewise.
1673 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
1674 * dwarf2read.c (check_producer): Likewise.
1675
b052c4fb
PA
16762015-02-10 Pedro Alves <palves@redhat.com>
1677
1678 * infrun.c (displaced_step_fixup): Switch to the event thread
1679 before calling gdbarch_displaced_step_fixup.
1680
3ac240d4
AT
16812015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
1682
1683 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
1684
c1cc6152
SM
16852015-02-10 Simon Marchi <simon.marchi@ericsson.com>
1686
1687 * ada-varobj.c (ada_name_of_child): Constify parent.
1688 (ada_path_expr_of_child): Same.
1689 (ada_value_of_child): Same.
1690 (ada_type_of_child): Same.
1691 * c-varobj.c (c_is_path_expr_parent): Same.
1692 (c_describe_child): Same.
1693 (c_name_of_child): Same.
1694 (c_value_of_child): Same.
1695 (c_type_of_child): Same.
1696 (cplus_number_of_children): Same.
1697 (cplus_describe_child): Constify var.
1698 (cplus_name_of_child): Constify parent.
1699 (cplus_value_of_child): Same.
1700 (cplus_type_of_child): Same.
1701 * jv-varobj.c (java_name_of_child): Same.
1702 (java_value_of_child): Same.
1703 (java_type_of_child): Same.
1704 * varobj.c (value_of_child): Same.
1705 (varobj_default_is_path_expr_parent): Constify var, parent and return
1706 value.
1707 (varobj_get_path_expr): Constify var, modify path_expr through
1708 mutable_var.
1709 (install_new_value): Constify parent.
1710 (value_of_child): Constify parent.
1711 * varobj.h (struct varobj): Constify parent.
1712 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
1713 type_of_child.
1714 (varobj_get_path_expr): Constify var.
1715 (varobj_get_path_expr_parent): Constify var and return value.
1716
c1ee9414
LM
17172015-02-10 Luis Machado <lgustavo@codesourcery.com>
1718
1719 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
1720 (arm_prologue_this_id): Move PC and SP limit checks to
1721 arm_prologue_unwind_stop_reason.
1722 (arm_prologue_unwind) <stop_reason> : Set to
1723 arm_prologue_unwind_stop_reason.
1724
f7de9aab
MW
17252015-02-09 Mark Wielaard <mjw@redhat.com>
1726
1727 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
1728 DW_LANG_Fortran08 as language_fortran.
1729
0b24eb2d
SDJ
17302015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
1731
1732 PR remote/17946
1733 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
1734 of pointer against char.
1735
a2c2acaf
MW
17362015-02-09 Mark Wielaard <mjw@redhat.com>
1737
1738 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
1739 (c_type_print_modifier): Likewise.
1740 * dwarf2read.c (read_tag_atomic_type): New function.
1741 (read_type_die_1): Handle DW_TAG_atomic_type.
1742 * gdbtypes.c (make_atomic_type): New function.
1743 (recursive_dump_type): Handle TYPE_ATOMIC.
1744 * gdbtypes.h (enum type_flag_values): Renumber.
1745 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
1746 (TYPE_ATOMIC): New macro.
1747 (make_atomic_type): Declare.
1748
31fd9caa
MM
17492015-02-09 Markus Metzger <markus.t.metzger@intel.com>
1750
1751 * btrace.c (ftrace_find_call): Skip gaps.
1752 (ftrace_new_function): Initialize level.
1753 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
1754 (ftrace_new_switch): Update
1755 level computation.
1756 (ftrace_new_gap): New.
1757 (ftrace_update_function): Create new function after gap.
1758 (btrace_compute_ftrace_bts): Create gap on error.
1759 (btrace_stitch_bts): Update parameters. Clear trace if it
1760 becomes empty.
1761 (btrace_stitch_trace): Update parameters. Update callers.
1762 (btrace_clear): Reset the number of gaps.
1763 (btrace_insn_get): Return NULL if the iterator points to a gap.
1764 (btrace_insn_number): Return zero if the iterator points to a gap.
1765 (btrace_insn_end): Allow gaps at the end.
1766 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
1767 (btrace_find_insn_by_number): Assert that the found iterator does
1768 not point to a gap.
1769 (btrace_call_next, btrace_call_prev): Assert that the last function
1770 is not a gap.
1771 * btrace.h (btrace_bts_error): New.
1772 (btrace_function): Update comment.
1773 (btrace_function) <insn, insn_offset, number>: Update comment.
1774 (btrace_function) <errcode>: New.
1775 (btrace_thread_info) <ngaps>: New.
1776 (btrace_thread_info) <replay>: Update comment.
1777 (btrace_insn_get): Update comment.
1778 * record-btrace.c (btrace_ui_out_decode_error): New.
1779 (record_btrace_info): Print number of gaps.
1780 (btrace_insn_history, btrace_call_history): Call
1781 btrace_ui_out_decode_error for gaps.
1782 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
1783
afb778a2
MM
17842015-02-09 Markus Metzger <markus.t.metzger@intel.com>
1785
1786 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
1787 * nat/linux-btrace.c: (btrace_this_cpu): New.
1788 (cpu_supports_bts): Call btrace_this_cpu.
1789 (intel_supports_bts): Add cpu parameter.
1790
7d5c24b3
MM
17912015-02-09 Markus Metzger <markus.t.metzger@intel.com>
1792
1793 * btrace.h (btrace_insn_class): New.
1794 (btrace_insn) <size, iclass>: New.
1795 * btrace.c (ftrace_find_call): Update parameters. Update users.
1796 Use instruction classification.
1797 (ftrace_new_return): Update parameters. Update users.
1798 (ftrace_update_function): Update parameters. Update users. Use
1799 instruction classification.
1800 (ftrace_update_insns): Update parameters. Update users.
1801 (ftrace_classify_insn): New.
1802 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
1803 TRY_CATCH around call to gdb_insn_length.
1804
76235df1
MM
18052015-02-09 Markus Metzger <markus.t.metzger@intel.com>
1806
1807 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
1808 Update parameters. Update users.
1809
d33501a5
MM
18102015-02-09 Markus Metzger <markus.t.metzger@intel.com>
1811
1812 * btrace.c (parse_xml_btrace_conf_bts): Add size.
1813 (btrace_conf_bts_attributes): New.
1814 (btrace_conf_children): Add attributes.
1815 * common/btrace-common.h (btrace_config_bts): New.
1816 (btrace_config)<bts>: New.
1817 (btrace_config): Update comment.
1818 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
1819 Use config.
1820 * features/btrace-conf.dtd: Increment version. Add size
1821 attribute to bts element.
1822 * record-btrace.c (set_record_btrace_bts_cmdlist,
1823 show_record_btrace_bts_cmdlist): New.
1824 (record_btrace_adjust_size, record_btrace_print_bts_conf,
1825 record_btrace_print_conf, cmd_set_record_btrace_bts,
1826 cmd_show_record_btrace_bts): New.
1827 (record_btrace_info): Call record_btrace_print_conf.
1828 (_initialize_record_btrace): Add commands.
1829 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
1830 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
1831 (btrace_sync_conf): Synchronize bts size.
1832 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
1833 * NEWS: Announce new commands and new packets.
1834
f4abbc16
MM
18352015-02-09 Markus Metzger <markus.t.metzger@intel.com>
1836
1837 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
1838 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
1839 (x86_linux_btrace_conf): New.
1840 (x86_linux_create_target): Initialize to_btrace_conf.
1841 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
1842 Check format. Split into this and ...
1843 (linux_enable_bts): ... this.
1844 (linux_btrace_conf): New.
1845 (perf_event_skip_record): Renamed into ...
1846 (perf_event_skip_bts_record): ... this. Updated users.
1847 (linux_disable_btrace): Split into this and ...
1848 (linux_disable_bts): ... this.
1849 (linux_read_btrace): Check format.
1850 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
1851 (linux_btrace_conf): New.
1852 (btrace_target_info)<ptid>: Moved.
1853 (btrace_target_info)<conf>: New.
1854 (btrace_target_info): Split into this and ...
1855 (btrace_tinfo_bts): ... this. Updated users.
1856 * btrace.c (btrace_enable): Update parameters.
1857 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
1858 (btrace_conf_children, btrace_conf_attributes)
1859 (btrace_conf_elements): New.
1860 * btrace.h (btrace_enable): Update parameters.
1861 (btrace_conf, parse_xml_btrace_conf): New.
1862 * common/btrace-common.h (btrace_config): New.
1863 * feature/btrace-conf.dtd: New.
1864 * record-btrace.c (record_btrace_conf): New.
1865 (record_btrace_cmdlist): New.
1866 (record_btrace_enable_warn, record_btrace_open): Pass
1867 &record_btrace_conf.
1868 (record_btrace_info): Print recording format.
1869 (cmd_record_btrace_bts_start): New.
1870 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
1871 (_initialize_record_btrace): Add "record btrace bts" subcommand.
1872 Add "record bts" alias command.
1873 * remote.c (remote_state)<btrace_config>: New.
1874 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
1875 (remote_protocol_features): Add qXfer:btrace-conf:read.
1876 (remote_open_1): Call remote_btrace_reset.
1877 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
1878 (btrace_target_info)<conf>: New.
1879 (btrace_sync_conf, btrace_read_config): New.
1880 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
1881 btrace_read_conf.
1882 (remote_btrace_conf): New.
1883 (init_remote_ops): Initialize to_btrace_conf.
1884 (_initialize_remote): Add qXfer:btrace-conf packet.
1885 * target.c (target_enable_btrace): Update parameters.
1886 (target_btrace_conf): New.
1887 * target.h (target_enable_btrace): Update parameters.
1888 (target_btrace_conf): New.
1889 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
1890 (target_ops)<to_enable_btrace>: Update parameters and comment.
1891 (target_ops)<to_btrace_conf>: New.
1892 * target-delegates: Regenerate.
1893 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
1894 (target_debug_print_const_struct_btrace_target_info_p): New.
1895 * NEWS: Announce new command and new packet.
1896
aadf7753
MM
18972015-02-09 Markus Metzger <markus.t.metzger@intel.com>
1898
1899 * nat/linux-btrace.h (perf_event_buffer): New.
1900 (btrace_target_info) <buffer, size, data_head>: Replace with ...
1901 <bts>: ... this.
1902 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
1903 (perf_event_buffer_size, perf_event_buffer_begin)
1904 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
1905 Updated users.
1906 (perf_event_new_data): New.
1907
043c3577
MM
19082015-02-09 Markus Metzger <markus.t.metzger@intel.com>
1909
1910 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
1911 * record-btrace.c (record_btrace_open): Remove call to
1912 target_supports_btrace.
1913 * remote.c (remote_supports_btrace): Update parameters.
1914 * target.c (target_supports_btrace): Update parameters.
1915 * target.h (to_supports_btrace, target_supports_btrace): Update
1916 parameters.
1917 * target-delegates.c: Regenerate.
1918 * target-debug.h (target_debug_print_enum_btrace_format): New.
1919 * nat/linux-btrace.c
1920 (kernel_supports_btrace): Rename into ...
1921 (kernel_supports_bts): ... this. Update users. Update warning text.
1922 (intel_supports_btrace): Rename into ...
1923 (intel_supports_bts): ... this. Update users.
1924 (cpu_supports_btrace): Rename into ...
1925 (cpu_supports_bts): ... this. Update users.
1926 (linux_supports_btrace): Update parameters. Split into this and ...
1927 (linux_supports_bts): ... this.
1928 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
1929
734b0e4b
MM
19302015-02-09 Markus Metzger <markus.t.metzger@intel.com>
1931
1932 * Makefile.in (SFILES): Add common/btrace-common.c.
1933 (COMMON_OBS): Add common/btrace-common.o.
1934 (btrace-common.o): Add build rules.
1935 * btrace.c (parse_xml_btrace): Update parameters.
1936 (parse_xml_btrace_block): Set format field.
1937 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
1938 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
1939 (btrace_compute_ftrace): Split into this and...
1940 (btrace_compute_ftrace_bts): ...this.
1941 (btrace_stitch_trace): Split into this and...
1942 (btrace_stitch_bts): ...this.
1943 * btrace.h (parse_xml_btrace): Update parameters.
1944 (make_cleanup_btrace_data): New.
1945 * common/btrace-common.c: New.
1946 * common/btrace-common.h: Include common-defs.h.
1947 (btrace_block_s): Update comment.
1948 (btrace_format): New.
1949 (btrace_format_string): New.
1950 (btrace_data_bts): New.
1951 (btrace_data): New.
1952 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
1953 * remote.c (remote_read_btrace): Update parameters.
1954 * target.c (target_read_btrace): Update parameters.
1955 * target.h (target_read_btrace): Update parameters.
1956 (target_ops)<to_read_btrace>: Update parameters.
1957 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
1958 * target-delegates.c: Regenerate.
1959 * target-debug (target_debug_print_struct_btrace_data_p): New.
1960 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
1961 (linux_read_bts): ...this.
1962 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
1963
bd2e0e9e
DE
19642015-02-06 Doug Evans <dje@google.com>
1965
1966 * remote-m32r-sdi.c: Include symfile.h.
1967
f176c4b5
DE
19682015-02-06 Doug Evans <dje@google.com>
1969
1970 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
1971 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
1972 to here.
1973
d6c146e9
PA
19742015-02-06 Pedro Alves <palves@redhat.com>
1975
1976 * linux-thread-db.c (find_new_threads_callback): Add debug output.
1977
b9d61307
SM
19782015-02-06 Simon Marchi <simon.marchi@ericsson.com>
1979
1980 PR gdb/15678
1981 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
1982 (enable_count_command): Check args for NULL value.
1983
e9fbd043
DE
19842015-02-05 Doug Evans <xdje42@gmail.com>
1985
1986 * guile/scm-frame.c: Fix spelling errors in a comment.
1987
881d5d5d
JK
19882015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1989
1990 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
1991 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
1992 return type.
1993
20ba1ce6
PA
19942015-02-04 Pedro Alves <palves@redhat.com>
1995
1996 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
1997 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
1998 returns true.
1999 (resume_stopped_resumed_lwps): Don't check whether the thread is
2000 marked as executing.
2001 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
2002
f962539a
AA
20032015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
2004
2005 * regset.h (struct regset): Add flags field.
2006 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
2007 * corelow.c (get_core_register_section): Add warning if the size
2008 exceeds the requested size and the regset does not have the
2009 REGSET_VARIABLE_SIZE flag set.
2010 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
2011 flag.
2012 * armbsd-tdep.c (armbsd_gregset): Likewise.
2013 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
2014 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
2015 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
2016 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
2017
dde9acd6
AA
20182015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
2019
2020 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
2021 For ".reg-xstate", explicitly specify the requested section size
2022 via X86_XSTATE_SIZE instead of just 0 on input and
2023 X86_XSTATE_MAX_SIZE on output.
2024 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
2025 Likewise.
2026
1528345d
AA
20272015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
2028
2029 PR corefiles/17808:
2030 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
2031 function type, particularly its SIZE parameter.
2032 * gdbarch.h: Regenerate.
2033 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
2034 actual against required size using ">=" instead of "==".
2035 (amd64_collect_fpregset): Likewise.
2036 * i386-tdep.c (i386_supply_gregset): Likewise.
2037 (i386_collect_gregset): Likewise.
2038 (i386_supply_fpregset): Likewise.
2039 (i386_collect_fpregset): Likewise.
2040 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
2041 (mips_fill_gregset_wrapper): Likewise.
2042 (mips_supply_fpregset_wrapper): Likewise.
2043 (mips_fill_fpregset_wrapper): Likewise.
2044 (mips64_supply_gregset_wrapper): Likewise.
2045 (mips64_fill_gregset_wrapper): Likewise.
2046 (mips64_supply_fpregset_wrapper): Likewise.
2047 (mips64_fill_fpregset_wrapper): Likewise.
2048 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
2049 (am33_supply_fpregset_method): Likewise.
2050 (am33_collect_gregset_method): Likewise.
2051 (am33_collect_fpregset_method): Likewise.
2052
518be979
DE
20532015-02-04 Doug Evans <dje@google.com>
2054 Pedro Alves <palves@redhat.com>
2055 Eli Zaretskii <eliz@gnu.org>
2056
2057 PR tui/17810
2058 * tui/tui-command.c (tui_refresh_cmd_win): New function.
2059 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
2060 * tui/tui-file.c: #include tui/tui-command.h.
2061 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
2062 (tui_file_flush): Refresh command window if stream is gdb_stdout.
2063 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
2064
80bd5fab
PA
20652015-02-04 Pedro Alves <palves@redhat.com>
2066
2067 Fix build breakage.
2068 * event-loop.c (gdb_do_one_event): Add default switch case.
2069
a7606d80
JK
20702015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2071
2072 Filter out inferior gcc option -fpreprocessed.
2073 * compile/compile.c (filter_args): New function.
2074 (get_args): Use it.
2075
70b66289
PA
20762015-02-03 Pedro Alves <palves@redhat.com>
2077
2078 * event-loop.c: Don't declare nor define a queue type for
2079 gdb_event_p.
2080 (event_queue): Delete.
2081 (create_event, create_file_event, gdb_event_xfree)
2082 (initialize_event_loop, process_event): Delete.
2083 (gdb_do_one_event): Return as soon as one event is handled.
2084 (handle_file_event): Change prototype. Used the passed in
2085 file_handler pointer and ready_mask instead of looping over all
2086 file handlers.
2087 (gdb_wait_for_event): Update the poll/select timeouts before
2088 blocking. Run event handlers directly instead of queueing events.
2089 Return as soon as one event is handled.
2090 (struct async_event_handler_data): Delete.
2091 (invoke_async_event_handler): Delete.
2092 (check_async_event_handlers): Change return type to int. Run
2093 event handlers directly instead of queueing events. Return as
2094 soon as one event is handled.
2095 (handle_timer_event): Delete.
2096 (update_wait_timeout): New function, factored out from
2097 poll_timers.
2098 (poll_timers): Reimplement.
2099 * event-loop.h (initialize_event_loop): Delete declaration.
2100 * top.c (gdb_init): Don't call initialize_event_loop.
2101
b7d2e916
PA
21022015-02-03 Pedro Alves <palves@redhat.com>
2103
2104 * event-loop.c (clear_async_event_handler): New function.
2105 * event-loop.h (clear_async_event_handler): New declaration.
2106 * record-btrace.c (record_btrace_async): New function.
2107 (init_record_btrace_ops): Install record_btrace_async.
2108 * record-full.c (record_full_async): New function.
2109 (record_full_resume): Don't mark the async event source here.
2110 (init_record_full_ops): Install record_full_async.
2111 (record_full_core_resume): Don't mark the async event source here.
2112 (init_record_full_core_ops): Install record_full_async.
2113 * remote.c (remote_async): Mark and clear the async stop reply
2114 queue event-loop token as appropriate.
2115
d9d41e78
PA
21162015-02-03 Pedro Alves <palves@redhat.com>
2117
2118 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
2119 target_is_async_p instead of target_can_async.
2120 (linux_nat_wait): Use target_is_async_p instead of
2121 target_can_async. Don't enable async here.
2122 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
2123 target_is_async_p instead of target_can_async.
2124
aa3de267
SM
21252015-02-02 Simon Marchi <simon.marchi@ericsson.com>
2126
2127 * varobj.h (lang_varobj_ops): Mention which return values need
2128 to be freed.
2129
2c811c0f
JB
21302015-02-02 Joel Brobecker <brobecker@adacore.com>
2131
2132 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
2133
b1eedac9
JB
21342015-02-02 Joel Brobecker <brobecker@adacore.com>
2135
2136 PR gdb/17856:
2137 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
2138 results found in the cache.
2139
66c168ae
JB
21402015-02-02 Joel Brobecker <brobecker@adacore.com>
2141
2142 PR gdb/17854:
2143 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
2144 when allocating a new one.
2145
4bdc02b2
TT
21462015-02-01 Tom Tromey <tom@tromey.com>
2147
2148 * MAINTAINERS: Remove myself.
2149
ae6ae975
DE
21502015-01-31 Doug Evans <xdje42@gmail.com>
2151
2152 * dwarf2read.c (process_structure_scope): Update setting of
2153 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
2154 * gdbtypes.c (internal_type_vptr_fieldno): New function.
2155 (set_type_vptr_fieldno): New function.
2156 (internal_type_vptr_basetype): New function.
2157 (set_type_vptr_basetype): New function.
2158 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
2159 TYPE_VPTR_BASETYPE.
2160 (allocate_cplus_struct_type): Initialize vptr_fieldno.
2161 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
2162 (print_cplus_stuff): ... moved here.
2163 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
2164 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
2165 moved to ...
2166 (struct cplus_struct_type): ... here. All uses updated.
2167 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
2168 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
2169 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
2170 * stabsread.c (read_tilde_fields): Update setting of
2171 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
2172
09e2d7c7
DE
21732015-01-31 Doug Evans <xdje42@gmail.com>
2174
2175 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
2176 to self_p.
2177 (cp_print_class_member): Rename local domain to self_type.
2178 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
2179 domain_type to self_type.
2180 (set_die_type) <need_gnat_info>: Handle
2181 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
2182 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
2183 TYPE_SPECIFIC_SELF_TYPE.
2184 * gdbtypes.c (internal_type_self_type): New function.
2185 (set_type_self_type): New function.
2186 (smash_to_memberptr_type): Rename parameter domain to self_type.
2187 Update setting of TYPE_SELF_TYPE.
2188 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
2189 (smash_to_method_type): Rename parameter domain to self_type.
2190 Update setting of TYPE_SELF_TYPE.
2191 (check_stub_method): Call smash_to_method_type.
2192 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
2193 (copy_type_recursive): Ditto.
2194 * gdbtypes.h (enum type_specific_kind): New value
2195 TYPE_SPECIFIC_SELF_TYPE.
2196 (struct main_type) <type_specific>: New member self_type.
2197 (struct cplus_struct_type) <fn_field.type>: Update comment.
2198 (TYPE_SELF_TYPE): Rewrite.
2199 (internal_type_self_type, set_type_self_type): Declare.
2200 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
2201 self_type.
2202 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
2203 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
2204 TYPE_TARGET_TYPE.
2205 * stabsread.c (read_member_functions): Mark methods with
2206 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
2207 TYPE_SELF_TYPE.
2208
4bfb94b8
DE
22092015-01-31 Doug Evans <xdje42@gmail.com>
2210
2211 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
2212 All uses updated.
2213
5f4ce105
DE
22142015-01-31 Doug Evans <xdje42@gmail.com>
2215
2216 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
2217 or unions. Return zero if union.
2218 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
2219 (gnuv3_rtti_type): Pass already-check_typedef'd value to
2220 gnuv3_get_vtable.
2221 (compute_vtable_size): Assert only passed structs.
2222 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
2223
f6b3afbf
DE
22242015-01-31 Doug Evans <xdje42@gmail.com>
2225
2226 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
2227 kinds.
2228
cfb069a8
GB
22292015-01-31 Gary Benson <gbenson@redhat.com>
2230 Doug Evans <dje@google.com>
2231
2232 PR cli/9007
2233 PR cli/11920
2234 PR cli/15548
2235 * cli/cli-cmds.c (complete_command): Notify user if max-completions
2236 reached.
2237 * common/common-exceptions.h (enum errors)
2238 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
2239 * completer.h (get_max_completions_reached_message): New declaration.
2240 (max_completions): Likewise.
2241 (completion_tracker_t): New typedef.
2242 (new_completion_tracker): New declaration.
2243 (make_cleanup_free_completion_tracker): Likewise.
2244 (maybe_add_completion_enum): New enum.
2245 (maybe_add_completion): New declaration.
2246 (throw_max_completions_reached_error): Likewise.
2247 * completer.c (max_completions): New global variable.
2248 (new_completion_tracker): New function.
2249 (free_completion_tracker): Likewise.
2250 (make_cleanup_free_completion_tracker): Likewise.
2251 (maybe_add_completions): Likewise.
2252 (throw_max_completions_reached_error): Likewise.
2253 (complete_line): Remove duplicates and limit result to max_completions
2254 entries.
2255 (get_max_completions_reached_message): New function.
2256 (gdb_display_match_list): Handle max_completions.
2257 (_initialize_completer): New declaration and function.
2258 * symtab.c: Include completer.h.
2259 (completion_tracker): New static variable.
2260 (completion_list_add_name): Call maybe_add_completion.
2261 (default_make_symbol_completion_list_break_on_1): Renamed from
2262 default_make_symbol_completion_list_break_on. Maintain
2263 completion_tracker across calls to completion_list_add_name.
2264 (default_make_symbol_completion_list_break_on): New function.
2265 * top.c (init_main): Set rl_completion_display_matches_hook.
2266 * tui/tui-io.c: Include completer.h.
2267 (tui_old_rl_display_matches_hook): New static global.
2268 (tui_rl_display_match_list): Notify user if max-completions reached.
2269 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
2270 * NEWS (New Options): Mention set/show max-completions.
2271
e11c72c7
GB
22722015-01-31 Gary Benson <gbenson@redhat.com>
2273
2274 * symtab.c (struct add_name_data) <code>: New field.
2275 Updated comments.
2276 (add_symtab_completions): New function.
2277 (symtab_expansion_callback): Likewise.
2278 (default_make_symbol_completion_list_break_on): Set datum.code.
2279 Move minimal symbol scan before calling expand_symtabs_matching.
2280 Scan known primary symtabs for externs and statics before calling
2281 expand_symtabs_matching. Pass symtab_expansion_callback as
2282 expansion_notify argument to expand_symtabs_matching. Do not scan
2283 primary symtabs for externs and statics after calling
2284 expand_symtabs_matching.
2285
276d885b
GB
22862015-01-31 Gary Benson <gbenson@redhat.com>
2287
2288 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
2289 (struct quick_symbol_functions) <expand_symtabs_matching>:
2290 New argument expansion_notify. All uses updated.
2291 (expand_symtabs_matching): New argument expansion_notify.
2292 All uses updated.
2293 * symfile-debug.c (debug_qf_expand_symtabs_matching):
2294 Also print expansion notify.
2295 * symtab.c (expand_symtabs_matching_via_partial): Call
2296 expansion_notify whenever a partial symbol table is expanded.
2297 * dwarf2read.c (dw2_expand_symtabs_matching): Call
2298 expansion_notify whenever a symbol table is instantiated.
2299
82083d6d
DE
23002015-01-31 Doug Evans <xdje42@gmail.com>
2301
2302 * cli-out.c: #include completer.h, readline/readline.h.
2303 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
2304 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
2305 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
2306 * cli-out.h (cli_display_match_list): Declare.
2307 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
2308 (ELLIPSIS_LEN): Ditto.
2309 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
2310 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
2311 (gdb_fnprint, gdb_print_filename): Ditto.
2312 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
2313 (gdb_display_match_list): Ditto.
2314 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
2315 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
2316 (mld_beep_ftype, mld_read_key_ftype): Ditto.
2317 (match_list_displayer): New struct.
2318 (gdb_display_match_list): Declare.
2319 * top.c (init_main): Set rl_completion_display_matches_hook.
2320 * tui/tui-io.c: #include completer.h.
2321 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
2322 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
2323 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
2324 (tui_mld_getc, tui_mld_read_key): Ditto.
2325 (tui_rl_display_match_list): Rewrite.
2326 (tui_handle_resize_during_io): New arg for_completion. All callers
2327 updated.
2328
f57d2163
DE
23292015-01-31 Doug Evans <xdje42@gmail.com>
2330
2331 Add symbol lookup cache.
2332 * NEWS: Document new options and commands.
2333 * symtab.c (symbol_cache_key): New static global.
2334 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
2335 (SYMBOL_LOOKUP_FAILED): New macro.
2336 (symbol_cache_slot_state): New enum.
2337 (block_symbol_cache): New struct.
2338 (symbol_cache): New struct.
2339 (new_symbol_cache_size, symbol_cache_size): New static globals.
2340 (hash_symbol_entry, eq_symbol_entry): New functions.
2341 (symbol_cache_byte_size, resize_symbol_cache): New functions.
2342 (make_symbol_cache, free_symbol_cache): New functions.
2343 (get_symbol_cache, symbol_cache_cleanup): New function.
2344 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
2345 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
2346 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
2347 (symbol_cache_flush, symbol_cache_dump): New functions.
2348 (maintenance_print_symbol_cache): New function.
2349 (maintenance_flush_symbol_cache): New function.
2350 (symbol_cache_stats): New function.
2351 (maintenance_print_symbol_cache_statistics): New function.
2352 (symtab_new_objfile_observer): New function.
2353 (symtab_free_objfile_observer): New function.
2354 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
2355 (_initialize_symtab): Init symbol_cache_key. New parameter
2356 maint symbol-cache-size. New maint commands print symbol-cache,
2357 print symbol-cache-statistics, flush-symbol-cache.
2358 Install new_objfile, free_objfile observers.
2359
e700d1b2
JB
23602015-01-31 Joel Brobecker <brobecker@adacore.com>
2361
2362 PR symtab/17855
2363 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
2364 to end.
2365
9f050062
DE
23662015-01-31 Doug Evans <xdje42@gmail.com>
2367
2368 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
2369 * auto-load.c: #include ctype.h.
2370 (struct auto_load_pspace_info): Replace member loaded_scripts with
2371 new members loaded_script_files, loaded_script_texts.
2372 (auto_load_pspace_data_cleanup): Update.
2373 (init_loaded_scripts_info): Update.
2374 (get_auto_load_pspace_data_for_loading): Update.
2375 (maybe_add_script_file): Renamed from maybe_add_script. All callers
2376 updated.
2377 (maybe_add_script_text): New function.
2378 (clear_section_scripts): Update.
2379 (source_script_file, execute_script_contents): New functions.
2380 (source_section_scripts): Add support for
2381 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
2382 (print_scripts): New function.
2383 (auto_load_info_scripts): Also print inlined scripts.
2384 (maybe_print_unsupported_script_warning): Renamed from
2385 unsupported_script_warning_print. All callers updated.
2386 (maybe_print_script_not_found_warning): Renamed from
2387 script_not_found_warning_print. All callers updated.
2388 * extension-priv.h (struct extension_language_script_ops): New member
2389 objfile_script_executor.
2390 * extension.c (ext_lang_objfile_script_executor): New function.
2391 * extension.h (objfile_script_executor_func): New typedef.
2392 (ext_lang_objfile_script_executor): Declare.
2393 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
2394 * guile/guile.c (guile_extension_script_ops): Update.
2395 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
2396 * python/python.c (python_extension_script_ops): Update.
2397 (gdbpy_execute_objfile_script): New function.
2398
312809f8
EZ
23992015-01-31 Eli Zaretskii <eliz@gnu.org>
2400
2401 * tui/tui-io.c (tui_expand_tabs): New function.
2402 (tui_puts, tui_redisplay_readline): Expand TABs into the
2403 appropriate number of spaces.
2404 * tui/tui-regs.c: Include tui-io.h.
2405 (tui_register_format): Call tui_expand_tabs to expand TABs into
2406 the appropriate number of spaces.
2407 * tui/tui-io.h: Add prototype for tui_expand_tabs.
2408
b6577aab
DE
24092015-01-30 Doug Evans <dje@google.com>
2410
2411 * NEWS: "info source" command now display producer string if present.
2412 * source.c (source_info): Print producer string if present.
2413
6da58d3e
SM
24142015-01-30 Simon Marchi <simon.marchi@ericsson.com>
2415
2416 * varobj.c (varobj_delete): Fix comment.
2417
837ce252
SM
24182015-01-30 Simon Marchi <simon.marchi@ericsson.com>
2419
2420 * varobj.c (create_child): Modify comment.
2421
b09e2c59
SM
24222015-01-30 Simon Marchi <simon.marchi@ericsson.com>
2423
2424 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
2425 parameter.
2426 (ada_name_of_variable): Same.
2427 (ada_path_expr_of_child): Same.
2428 (ada_value_of_variable): Same.
2429 (ada_value_is_changeable_p): Same.
2430 (ada_value_has_mutated): Same.
2431 * c-varobj.c (varobj_is_anonymous_child): Same.
2432 (c_is_path_expr_parent): Same.
2433 (c_number_of_children): Same.
2434 (c_name_of_variable): Same.
2435 (c_path_expr_of_child): Same.
2436 (get_type): Same.
2437 (c_value_of_variable): Same.
2438 (cplus_number_of_children): Same.
2439 (cplus_name_of_variable): Same.
2440 (cplus_path_expr_of_child): Same.
2441 (cplus_value_of_variable): Same.
2442 * jv-varobj.c (java_number_of_children): Same.
2443 (java_name_of_variable): Same.
2444 (java_path_expr_of_child): Same.
2445 (java_value_of_variable): Same.
2446 * varobj.c (number_of_children): Same.
2447 (name_of_variable): Same.
2448 (is_root_p): Same.
2449 (varobj_ensure_python_env): Same.
2450 (varobj_get_objname): Same.
2451 (varobj_get_expression): Same.
2452 (varobj_get_display_format): Same.
2453 (varobj_get_display_hint): Same.
2454 (varobj_has_more): Same.
2455 (varobj_get_thread_id): Same.
2456 (varobj_get_frozen): Same.
2457 (dynamic_varobj_has_child_method): Same.
2458 (varobj_get_gdb_type): Same.
2459 (is_path_expr_parent): Same.
2460 (varobj_default_is_path_expr_parent): Same.
2461 (varobj_get_language): Same.
2462 (varobj_get_attributes): Same.
2463 (varobj_is_dynamic_p): Same.
2464 (varobj_get_child_range): Same.
2465 (varobj_value_has_mutated): Same.
2466 (varobj_get_value_type): Same.
2467 (number_of_children): Same.
2468 (name_of_variable): Same.
2469 (check_scope): Same.
2470 (varobj_editable_p): Same.
2471 (varobj_value_is_changeable_p): Same.
2472 (varobj_floating_p): Same.
2473 (varobj_default_value_is_changeable_p): Same.
2474
2568868e
SM
24752015-01-30 Simon Marchi <simon.marchi@ericsson.com>
2476
2477 * varobj.c (varobj_get_path_expr): Set var->path_expr.
2478 * c-varobj.c (c_path_expr_of_child): Set local var instead of
2479 child->path_expr.
2480 (cplus_path_expr_of_child): Same.
2481
ca83fa81
SM
24822015-01-30 Simon Marchi <simon.marchi@ericsson.com>
2483
2484 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
2485 result.
2486 (mi_cmd_var_info_expression): Same.
2487 * varobj.c (varobj_get_expression): Mention in the comment that
2488 the result must by freed by the caller.
2489
afa269ae
SM
24902015-01-30 Simon Marchi <simon.marchi@ericsson.com>
2491
2492 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
2493 varobj_get_type.
2494 (varobj_update_one): Same.
2495 * varobj.c (update_type_if_necessary): Free curr_type_str and
2496 new_type_str.
2497 (varobj_get_type): Specify in comment that the result needs to be
2498 freed by the caller.
2499
cd366ee8
DE
25002015-01-29 Doug Evans <dje@google.com>
2501
2502 PR symtab/17890
2503 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
2504
38360086
MW
25052015-01-25 Mark Wielaard <mjw@redhat.com>
2506
2507 * dwarf2read.c (checkproducer): Call producer_is_gcc.
2508 * utils.c (producer_is_gcc_ge_4): Likewise.
2509 (producer_is_gcc): New function.
2510 * utils.h (producer_is_gcc): New declaration.
2511
df25ebbd
JB
25122015-01-29 Joel Brobecker <brobecker@adacore.com>
2513
2514 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
2515 kind.
2516 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
2517 parameter by "addr_stack" parameter.
2518 (resolve_dynamic_range): Replace "addr" parameter by
2519 "stack_addr" parameter. Update function documentation.
2520 Update code accordingly.
2521 (resolve_dynamic_array, resolve_dynamic_union)
2522 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
2523 (resolve_dynamic_type): Update code, following the changes made
2524 to resolve_dynamic_type_internal's interface.
2525 * dwarf2loc.h (struct property_addr_info): New.
2526 (dwarf2_evaluate_property): Replace "address" parameter
2527 by "addr_stack" parameter. Adjust function documentation.
2528 (struct dwarf2_offset_baton): New.
2529 (struct dwarf2_property_baton): Update documentation of
2530 field "referenced_type" to be more general. New field
2531 "offset_info" in union data field.
2532 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
2533 parameter by "addr_stack" parameter. Adjust code accordingly.
2534 Add support for PROP_ADDR_OFFSET properties.
2535 * dwarf2read.c (attr_to_dynamic_prop): Add support for
2536 DW_AT_data_member_location attributes as well. Use case
2537 statements instead of if/else condition.
2538
4a0ca9ec
JB
25392015-01-29 Joel Brobecker <brobecker@adacore.com>
2540
2541 * ada-varobj.c (ada_varobj_get_array_number_of_children):
2542 Return zero if PARENT_VALUE is NULL and parent_type's
2543 range type is dynamic.
2544
ddb87a81
JB
25452015-01-29 Joel Brobecker <brobecker@adacore.com>
2546
2547 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
2548 nonzero if the type's subtype is dynamic.
2549 (resolve_dynamic_range): Also resolve the range's subtype.
2550
3d7ad9b4 25512015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 2552
3d7ad9b4 2553 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
2554 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
2555
3a8b707a
DE
25562015-01-27 Doug Evans <dje@google.com>
2557
2558 * NEWS: Mention gdb.Objfile.username.
2559 * python/py-objfile.c (objfpy_get_username): New function.
2560 (objfile_getset): Add "username".
2561
d35b90fb
MW
25622015-01-24 Mark Wielaard <mjw@redhat.com>
2563
2564 * stack.c (return_command): Markup warning message with _.
2565
734ae125
DE
25662015-01-24 Doug Evans <xdje42@gmail.com>
2567
2568 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
2569
527f3840
JK
25702015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2571
2572 Fix 100x slowdown regression on DWZ files.
2573 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
2574 (struct line_header): Add offset and offset_in_dwz.
2575 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
2576 (free_line_header_voidp): New declaration.
2577 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
2578 functions.
2579 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
2580 (handle_DW_AT_stmt_list): Use line_header_hash.
2581 (free_line_header_voidp): New function.
2582 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
2583 (dwarf_decode_lines): New parameter decode_mapping, use it.
2584 (dwarf2_free_objfile): Free line_header_hash.
2585
f7e5394d
SM
25862015-01-23 Simon Marchi <simon.marchi@ericsson.com>
2587
2588 PR gdb/17416
2589 * valops.c (value_rtti_indirect_type): Catch exception thrown by
2590 value_ind.
2591
743649fd
MW
25922015-01-15 Mark Wielaard <mjw@redhat.com>
2593
2594 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
2595 DW_AT_noreturn.
2596 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
2597 calling_convention an 8 bit bit field.
2598 (TYPE_NO_RETURN): New macro.
2599 * infcmd.c (finish_command): Query if function does not return
2600 normally.
2601 * stack.c (return_command): Likewise.
2602
198297aa
PA
26032015-01-23 Pedro Alves <palves@redhat.com>
2604
2605 * linux-nat.c (linux_is_async_p): New macro.
2606 (linux_nat_is_async_p):
2607 (linux_nat_terminal_inferior): Check whether the target can async
2608 instead of whether it is already async.
2609 (linux_nat_terminal_ours): Don't check whether the target is
2610 async.
2611 (linux_async_pipe): Use linux_is_async_p.
2612
253828f1
JK
26132015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2614
2615 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
2616 '-ascending'.
2617 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
2618 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
2619 Sort tp_array using tp_array_compar.
2620 (_initialize_thread): Extend thread_apply_all_command help.
2621
f0e8c4c5
JK
26222015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2623
2624 * corelow.c (core_open): Call also thread_command.
2625 * gdbthread.h (thread_command): New prototype moved from ...
2626 * thread.c (thread_command): ... here.
2627 (thread_command): Make it global.
2628
03b79603
PA
26292015-01-22 Pedro Alves <palves@redhat.com>
2630
2631 * configure.ac [*mingw32*]: Check $curses_found instead of
2632 $prefer_curses.
2633 * configure: Regenerate.
2634 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
2635 HAVE_NCURSES_NCURSES_H checks.
2636
6b8a872f
EZ
26372015-01-22 Eli Zaretskii <eliz@gnu.org>
2638
bbbbffbb 2639 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
2640 fails with the 1st arg NULL, try again with "unknown". Don't test
2641 the "cup" capability: it isn't supported by the Windows port of
2642 ncurses, but the Windows console driver is still capable of
2643 supporting TUI.
2644
4b62a76e
JK
26452015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2646
2647 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
2648
82a864f9
EZ
26492015-01-22 Eli Zaretskii <eliz@gnu.org>
2650
2651 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
2652 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
2653 reason that "make TAGS" is broken.
2654
b35018fd
CG
26552015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
2656
2657 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
2658 and check additional store instructions.
2659
ffbc4646
WW
26602015-01-21 Wei-cheng Wang <cole945@gmail.com>
2661
2662 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
2663
ddeca1df
WW
26642015-01-21 Wei-cheng Wang <cole945@gmail.com>
2665
2666 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
2667 ppc_canonicalize_syscall, ppc_linux_syscall_record,
2668 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
2669 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
2670 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
2671 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
2672 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
2673 ppc_process_record_op19, ppc_process_record_op31,
2674 ppc_process_record_op59, ppc_process_record_op60,
2675 ppc_process_record_op63): Likewise.
2676
049bb5de
JB
26772015-01-20 Joel Brobecker <brobecker@adacore.com>
2678
2679 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
2680 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
2681 strerror.
2682
42b87c63 26832015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
2684
2685 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
2686 ppc_process_record_op31, ppc_process_record_op59,
2687 ppc_process_record_op60, ppc_process_record_op63,
2688 ppc_process_record): Fix -Wformat warning.
2689 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
2690 Remove unused variables.
2691
569340fc
CG
26922015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
2693
2694 * MAINTAINERS (Write After Approval): Add "Chen Gang".
2695
63413d85
EZ
26962015-01-19 Eli Zaretskii <eliz@gnu.org>
2697
2698 * configure.ac [*mingw32*]: Only add windows-termcap.o to
2699 CONFIG_OBS if not building with a curses library.
2700 * configure: Regenerate.
2701
2702 * windows-termcap.c: Include defs.h. Make the whole body empty if
2703 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
2704 HAVE_NCURSES_NCURSES_H is defined.
2705
16d8013c
JB
27062015-01-19 Joel Brobecker <brobecker@adacore.com>
2707
2708 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
2709 from end of line to start of next line.
2710
cf90fd9a
WW
27112015-01-17 Wei-cheng Wang <cole945@gmail.com>
2712
2713 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
2714 Scan PLT stub backward for reverse debugging.
2715 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
2716
b4cdae6f
WW
27172015-01-17 Wei-cheng Wang <cole945@gmail.com>
2718 Ulrich Weigand <uweigand@de.ibm.com>
2719
2720 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
2721 gdb_target_obs.
2722 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
2723 record.
2724 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
2725 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
2726 (ppc_linux_init_abi): Set process_record, process_record_signal.
2727 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
2728 ppc_linux_record_tdep to gdbarch_tdep.
2729 (ppc_process_record): New declaration.
2730 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
2731 ppc_process_record_op19, ppc_process_record_op31,
2732 ppc_process_record_op59, ppc_process_record_op60,
2733 ppc_process_record_op63, ppc_process_record): New functions.
2734
2608dbf8
WW
27352015-01-17 Wei-cheng Wang <cole945@gmail.com>
2736
2737 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
2738 rs6000_in_function_epilogue_frame_p and add an argument
2739 for frame_info.
2740 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
2741 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
2742 New functions.
2743 (rs6000_epilogue_frame_unwind): New.
2744 (rs6000_gdbarch_init): Append epilogue unwinder.
2745
4c347be6
SDJ
27462015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
2747
2748 * nat/linux-personality.c: Replace "#ifndef
2749 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
2750 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
2751 systems.
2752
9f2850ba
EZ
27532015-01-16 Eli Zaretskii <eliz@gnu.org>
2754
6cdb25f4
EZ
2755 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
2756 functions.
2757 (_initialize_tui_win) <border-kind, border-mode>:
2758 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
2759 (tui_set_tab_width_command): Fix the commentary.
2760
6cdb25f4
EZ
2761 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
2762
bf555842
EZ
2763 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
2764 Doc fix.
cb86fcc1
EZ
2765 (tui_set_tab_width_command): Delete and recreate the source and
2766 the disassembly windows, to show the effect of the changed tab
2767 size immediately.
bf555842 2768
9f2850ba
EZ
2769 * tui/tui-data.h (LINE_PREFIX): Make shorter
2770 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
2771 "Thread NNNNN.XXXX" thread ID notation on Windows.
2772
95761b2d
JK
27732015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2774
2775 Fix gcc-5 compilation.
2776 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
2777
8cc73a39
SDJ
27782015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
2779
2780 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
2781 (linux-personality.o): New rule.
2782 * common/common-defs.h: Include <stdint.h>.
2783 * config/aarch64/linux.mh (NATDEPFILES): Include
2784 linux-personality.o.
2785 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2786 * config/arm/linux.mh (NATDEPFILES): Likewise.
2787 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2788 * config/i386/linux.mh (NATDEPFILES): Likewise.
2789 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2790 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2791 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2792 * config/mips/linux.mh (NATDEPFILES): Likewise.
2793 * config/pa/linux.mh (NATDEPFILES): Likewise.
2794 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2795 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2796 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2797 * config/s390/linux.mh (NATDEPFILES): Likewise.
2798 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2799 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2800 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2801 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2802 * defs.h: Remove #include <stdint.h> (moved to
2803 common/common-defs.h).
2804 * linux-nat.c: Include nat/linux-personality.h. Remove #include
2805 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
2806 nat/linux-personality.c).
2807 (linux_nat_create_inferior): Remove code to disable address space
2808 randomization (moved to nat/linux-personality.c). Create cleanup
2809 to disable address space randomization.
2810 * nat/linux-personality.c: New file.
2811 * nat/linux-personality.h: Likewise.
2812
fb23d554
SDJ
28132015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
2814
2815 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
2816 common/posix-strerror.c.
2817 (posix-strerror.o): New rule.
2818 (mingw-strerror.o): Likewise.
2819 * common/common-utils.h (safe_strerror): Move prototype to here,
2820 from utils.h.
2821 * common/common.host: New file.
2822 * common/mingw-strerror.c: Likewise.
2823 * common/posix-strerror.c: Likewise.
2824 * configure: Regenerated.
2825 * configure.ac: Source common/common.host. Add variable
2826 common_host_obs to gdb_host_obs.
2827 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
2828 gdb/common/posix-strerror.c when warning about the use of
2829 strerror.
2830 * mingw-hdep.c (safe_strerror): Remove definition; move it to
2831 common/mingw-strerror.c.
2832 * posix-hdep.c (safe_strerror): Remove definition; move it to
2833 common/posix-hdep.c.
2834 * utils.h (safe_strerror): Remove prototype; move to
2835 common/common-utils.h.
2836
3af8af43
JB
28372015-01-15 Joel Brobecker <brobecker@adacore.com>
2838
2839 GDB 7.8.2 released.
2840
bafffb51
JB
28412015-01-15 Joel Brobecker <brobecker@adacore.com>
2842
2843 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
2844 ___XA type if the array has already been fixed.
2845
cdf43629
YQ
28462015-01-14 Yao Qi <yao@codesourcery.com>
2847
2848 * Makefile.in (ppc-linux.o): New rule.
2849 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
2850 * configure.ac: AC_CHECK_FUNCS(getauxval).
2851 * config.in: Re-generated.
2852 * configure: Re-generated.
2853 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
2854 Declare.
2855 * nat/ppc-linux.c: New file.
2856 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
2857 Call ppc64_64bit_inferior_p.
2858
514c5338
YQ
28592015-01-14 Yao Qi <yao@codesourcery.com>
2860
2861 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
2862 nat/ppc-linux.h.
2863 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
2864 (PPC_FEATURE_HAS_DFP): Likewise.
2865 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
2866 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
2867 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
2868 Include "nat/ppc-linux.h".
2869 * nat/ppc-linux.h: New file.
2870 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
2871
5589af0e
PA
28722015-01-14 Pedro Alves <palves@redhat.com>
2873
2874 PR gdb/17525
2875 * breakpoint.c: Include "interps.h".
2876 (bpstat_do_actions_1): Also check whether the interpreter is
2877 async.
2878
6c400b59
PA
28792015-01-14 Pedro Alves <palves@redhat.com>
2880
2881 PR cli/17828
2882 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
2883 reinstall if the interpreter is sync.
2884
e02c96a7
DE
28852015-01-13 Doug Evans <dje@google.com>
2886
2887 * objfiles.c (objfile_filename): New function.
2888 * objfiles.h (objfile_filename): Declare it.
2889 (objfile_name): Add function comment.
2890 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
2891 bfd file name (which may be realpath'd), and the original name.
2892
3b2f13ff
JB
28932015-01-13 Joel Brobecker <brobecker@adacore.com>
2894
2895 * NEWS: Create a new section for the next release branch.
2896 Rename the section of the current branch, now that it has
2897 been cut.
2898
b4cfe7f8
JB
28992015-01-13 Joel Brobecker <brobecker@adacore.com>
2900
2901 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
2902 * version.in: Bump version to 7.9.50.DATE-cvs.
2903
92fc2e69
JB
29042015-01-13 Joel Brobecker <brobecker@adacore.com>
2905
2906 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
2907 Remove trailing new-line in argument of call to warning.
2908
f71f0b0d
JB
29092015-01-13 Joel Brobecker <brobecker@adacore.com>
2910
2911 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
2912 new-line in argument of call to "warning".
2913
04dccad0
JB
29142015-01-13 Joel Brobecker <brobecker@adacore.com>
2915
2916 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
2917 in static block, then try searching for primitive types.
2918
08b13bdd
PP
29192015-01-12 Patrick Palka <patrick@parcs.ath.cx>
2920
2921 * top.h (gdb_add_history): Declare.
2922 * top.c (command_count): New variable.
2923 (gdb_add_history): New function.
2924 (gdb_safe_append_history): New static function.
2925 (quit_force): Call it.
2926 (command_line_input): Use gdb_add_history instead of
2927 add_history.
2928 * event-top.c (command_line_handler): Likewise.
2929
4ac15b59
JC
29302015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
2931
2932 PR gdb/17046
2933 * darwin-nat.c: Replace <machine/setjmp.h> #include by
2934 <setjmp.h> #include.
2935
005e54bb
DE
29362015-01-11 Doug Evans <xdje42@gmail.com>
2937
2938 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
2939
439250fb
DE
29402015-01-11 Doug Evans <xdje42@gmail.com>
2941
2942 PR gdb/15830
2943 * NEWS: The "maint demangle" command is renamed as "demangle".
2944 * demangle.c: #include cli/cli-utils.h, language.h.
2945 (demangle_command): New function.
2946 (_initialize_demangle): Add new command "demangle".
2947 * maint.c (maintenance_demangle): Stub out.
2948 (_initialize_maint_cmds): Update help text for "maint demangle",
2949 and mark as deprecated.
2950
ebf3aa72
MK
29512015-01-11 Mark Kettenis <kettenis@gnu.org>
2952
2953 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
2954 inferior_thread is a function.
2955
6bf045cd
PP
29562015-01-09 Patrick Palka <patrick@parcs.ath.cx>
2957
2958 * Makefile.in (.y.c): Don't munge yacc's #line
2959 directives.
2960
588dcc3e
PP
29612015-01-09 Patrick Palka <patrick@parcs.ath.cx>
2962
2963 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
2964 to prompt for input.
2965 * tui/tui-hooks.c (tui_query_hook): Remove.
2966 (tui_install_hooks): Don't set deprecated_query_hook.
2967 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
2968 height calculation. Always update the command window's cur_line.
2969
9c02b525
PA
29702015-01-09 Pedro Alves <palves@redhat.com>
2971
2972 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
2973 function.
2974 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
2975 declaration.
2976 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
2977 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
2978 stop_reason.
2979 (check_stopped_by_watchpoint): New function.
2980 (save_sigtrap): Reimplement.
2981 (linux_nat_stopped_by_watchpoint): Adjust.
2982 (linux_nat_lp_status_is_event): Delete.
2983 (stop_wait_callback): Only call save_sigtrap after storing the
2984 pending status.
2985 (status_callback): If the thread had been stopped for a breakpoint
2986 that has since been removed, discard the event and resume the LWP.
2987 (count_events_callback, select_event_lwp_callback): Use
2988 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
2989 (cancel_breakpoint): Rename to ...
2990 (check_stopped_by_breakpoint): ... this. Record whether the LWP
2991 stopped for a software breakpoint or hardware breakpoint.
2992 (select_event_lwp): Only give preference to the stepping LWP in
2993 all-stop mode. Adjust comments.
2994 (stop_and_resume_callback): Remove references to new_pending_p.
2995 (linux_nat_filter_event): Likewise. Leave exit events of the
2996 leader thread pending here. Handle signal short circuiting here.
2997 Only call save_sigtrap after storing the pending waitstatus.
2998 (linux_nat_wait_1): Remove 'retry' label. Remove references to
2999 new_pending. Don't handle leaving events the caller is not
3000 interested in pending here, nor handle signal short-circuiting
3001 here. Also give equal priority to all LWPs that have had events
3002 in non-stop mode. If reporting a software breakpoint event,
3003 unadjust the LWP's PC.
3004 * linux-nat.h (enum lwp_stop_reason): New.
3005 (struct lwp_info) <stop_pc>: New field.
3006 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
3007 (struct lwp_info) <stop_reason>: New field.
3008 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
3009
8af756ef
PA
30102015-01-09 Pedro Alves <palves@redhat.com>
3011
3012 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
3013 Set the LWP's 'resumed' flag.
3014
8a99810d
PA
30152015-01-09 Pedro Alves <palves@redhat.com>
3016
3017 * linux-nat.c (linux_resume_one_lwp): New function.
3018 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
3019 (linux_nat_resume): Use lwp_status_pending_p and
3020 linux_resume_one_lwp.
3021 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
3022 (linux_handle_extended_wait): Use linux_resume_one_lwp.
3023 (status_callback, running_callback): Use lwp_status_pending_p.
3024 (lwp_status_pending_p): New function.
3025 (stop_and_resume_callback): Use lwp_status_pending_p.
3026 (linux_nat_filter_event): Use linux_resume_one_lwp.
3027 (linux_nat_wait_1): Always use status_callback to look for an LWP
3028 with a pending status. Use linux_resume_one_lwp.
3029 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
3030 linux_resume_one_lwp.
3031
f7ce857f
PA
30322015-01-09 Pedro Alves <palves@redhat.com>
3033
3034 * breakpoint.c (bp_location_inserted_here_p): New function,
3035 factored out from ...
3036 (breakpoint_inserted_here_p): ... here. Use
3037 ALL_BP_LOCATIONS_AT_ADDR.
3038 (software_breakpoint_inserted_here_p): Use
3039 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
3040
c1a747c1
PA
30412014-01-09 Pedro Alves <palves@redhat.com>
3042
3043 Skip enabling event reporting if the kernel supports
3044 PTRACE_EVENT_CLONE.
3045 * linux-thread-db.c: Include "nat/linux-ptrace.h".
3046 (thread_db_use_events): New function.
3047 (try_thread_db_load_1): Check thread_db_use_events before enabling
3048 event reporting.
3049 (update_thread_state): New function.
3050 (attach_thread): Use it. Check thread_db_use_events before
3051 enabling event reporting.
3052 (thread_db_detach): Check thread_db_use_events before disabling
3053 event reporting.
3054 (find_new_threads_callback): Check thread_db_use_events before
3055 enabling event reporting. Update the thread's state if not using
3056 libthread_db events.
3057
a33e3959
PA
30582015-01-09 Pedro Alves <palves@redhat.com>
3059
3060 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
3061 about to wait for is > 0.
3062 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
3063 the kernel thread ID is -1.
3064
8784d563
PA
30652015-01-09 Pedro Alves <palves@redhat.com>
3066
3067 * linux-nat.c (attach_proc_task_lwp_callback): New function.
3068 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
3069 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
3070 ptrace option flags.
3071 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
3072 field.
3073 * nat/linux-procfs.c: Include <dirent.h>.
3074 (linux_proc_get_int): New parameter "warn". Handle it.
3075 (linux_proc_get_tgid): Adjust.
3076 (linux_proc_get_tracerpid): Rename to ...
3077 (linux_proc_get_tracerpid_nowarn): ... this.
3078 (linux_proc_pid_get_state): New function, factored out from
3079 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
3080 and handle it.
3081 (linux_proc_pid_is_gone): New function.
3082 (linux_proc_pid_is_stopped): Adjust.
3083 (linux_proc_pid_is_zombie_maybe_warn)
3084 (linux_proc_pid_is_zombie_nowarn): New functions.
3085 (linux_proc_pid_is_zombie): Use
3086 linux_proc_pid_is_zombie_maybe_warn.
3087 (linux_proc_attach_tgid_threads): New function.
3088 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
3089 (linux_proc_get_tracerpid): Rename to ...
3090 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
3091 (linux_proc_pid_is_gone): New declaration.
3092 (linux_proc_pid_is_zombie): Update comment.
3093 (linux_proc_pid_is_zombie_nowarn): New declaration.
3094 (linux_proc_attach_lwp_func): New typedef.
3095 (linux_proc_attach_tgid_threads): New declaration.
3096 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
3097 use nowarn functions.
3098 (linux_ptrace_attach_fail_reason_string): Move here from
3099 gdbserver/linux-low.c and rename.
3100 (ptrace_supports_feature): If the current ptrace options are not
3101 known yet, check them now, instead of asserting.
3102 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
3103 Declare.
3104
883ed13e
PA
31052015-01-09 Pedro Alves <palves@redhat.com>
3106
3107 * linux-thread-db.c (thread_db_find_new_threads_silently)
3108 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
3109 (find_new_threads_once): Print debug output on gdb_stdlog.
3110
1710aab8
CG
31112015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
3112 Pedro Alves <palves@redhat.com>
3113
3114 * compile/compile.c: Include "gdb_wait.h".
3115 (do_rmdir): Check return value, and free 'zap'.
3116
b597c318
YQ
31172015-01-08 Pedro Alves <palves@redhat.com>
3118 Yao Qi <yao@codesourcery.com>
3119
3120 * dwarf2loc.c (indirect_pieced_value): Don't call
3121 gdb_sign_extend. Call extract_signed_integer instead.
3122 * utils.c (gdb_sign_extend): Remove.
3123 * utils.h (gdb_sign_extend): Remove declaration.
3124
025ac414
PM
31252015-01-07 Pierre Muller <muller@sourceware.org>
3126
3127 PR symtab/17811
3128 * stabsread.c (define_symbol): Set language for C++ special symbols.
3129
fa5af12a
PP
31302015-01-07 Patrick Palka <patrick@parcs.ath.cx>
3131
3132 * inflow.c (initial_gdb_ttystate): Tweak comment.
3133
ea42d6f8
JB
31342015-01-07 Joel Brobecker <brobecker@adacore.com>
3135
3136 * inflow.c (set_initial_gdb_ttystate): Add empty line after
3137 comment documenting function.
3138
6a06d660
PP
31392015-01-07 Patrick Palka <patrick@parcs.ath.cx>
3140
3141 * terminal.h (set_initial_gdb_ttystate): Declare.
3142 * inflow.c (initial_gdb_ttystate): New static variable.
3143 (set_initial_gdb_ttystate): New setter.
3144 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
3145 instead of our current terminal state.
3146 * top.c (gdb_init): Call set_initial_gdb_ttystate.
3147
e810d75b
JB
31482015-01-07 Joel Brobecker <brobecker@adacore.com>
3149
3150 * guile/scm-type.c (tyscm_array_1): Add comment.
3151 * python/py-type.c (typy_array_1): Add comment.
3152
fce10a84
JB
31532015-01-06 Joel Brobecker <brobecker@adacore.com>
3154
3155 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
3156 error if N2 is equal to N1 - 1.
3157
8503d6e1
JB
31582015-01-06 Joel Brobecker <brobecker@adacore.com>
3159
3160 * python/py-type.c (typy_array_1): Do not raise negative-length
3161 exception if N2 is equal to N1 - 1.
3162
4d29c0a8
DE
31632015-01-03 Doug Evans <xdje42@gmail.com>
3164
3165 * c-exp.y: Whitespace cleanup.
3166 (classify_inner_name): Remove extra ;.
3167
eaa6a9a4
MR
31682015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
3169
3170 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
3171 offset signed.
3172
02fe9972
DE
31732015-01-02 Doug Evans <dje@google.com>
3174
3175 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
3176
e2ada9cb
DE
31772015-01-02 Doug Evans <dje@google.com>
3178
3179 * symtab.h (struct symbol): Fix typo in comment.
3180
32d0add0
JB
31812015-01-01 Joel Brobecker <brobecker@adacore.com>
3182
3183 Update year range in copyright notice of all files.
3184
76f2b779
JB
31852015-01-01 Joel Brobecker <brobecker@adacore.com>
3186
3187 * top.c (print_gdb_version): Update copyright year to 2015.
3188
077309e2 31892015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 3190
077309e2 3191 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 3192
077309e2 3193For older changes see ChangeLog-2014.
c906108c
SS
3194\f
3195Local Variables:
3196mode: change-log
3197left-margin: 8
3198fill-column: 74
3199version-control: never
57da7796 3200coding: utf-8
c906108c 3201End:
This page took 1.828693 seconds and 4 git commands to generate.