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