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