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