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