dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
[external/binutils.git] / gdb / ChangeLog
1 2015-01-11  Doug Evans  <xdje42@gmail.com>
2
3         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
4
5 2015-01-11  Doug Evans  <xdje42@gmail.com>
6
7         PR gdb/15830
8         * NEWS: The "maint demangle" command is renamed as "demangle".
9         * demangle.c: #include cli/cli-utils.h, language.h.
10         (demangle_command): New function.
11         (_initialize_demangle): Add new command "demangle".
12         * maint.c (maintenance_demangle): Stub out.
13         (_initialize_maint_cmds): Update help text for "maint demangle",
14         and mark as deprecated.
15
16 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
17
18         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
19         inferior_thread is a function.
20
21 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
22
23         * Makefile.in (.y.c): Don't munge yacc's #line
24         directives.
25
26 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
27
28         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
29         to prompt for input.
30         * tui/tui-hooks.c (tui_query_hook): Remove.
31         (tui_install_hooks): Don't set deprecated_query_hook.
32         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
33         height calculation.  Always update the command window's cur_line.
34
35 2015-01-09  Pedro Alves  <palves@redhat.com>
36
37         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
38         function.
39         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
40         declaration.
41         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
42         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
43         stop_reason.
44         (check_stopped_by_watchpoint): New function.
45         (save_sigtrap): Reimplement.
46         (linux_nat_stopped_by_watchpoint): Adjust.
47         (linux_nat_lp_status_is_event): Delete.
48         (stop_wait_callback): Only call save_sigtrap after storing the
49         pending status.
50         (status_callback): If the thread had been stopped for a breakpoint
51         that has since been removed, discard the event and resume the LWP.
52         (count_events_callback, select_event_lwp_callback): Use
53         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
54         (cancel_breakpoint): Rename to ...
55         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
56         stopped for a software breakpoint or hardware breakpoint.
57         (select_event_lwp): Only give preference to the stepping LWP in
58         all-stop mode.  Adjust comments.
59         (stop_and_resume_callback): Remove references to new_pending_p.
60         (linux_nat_filter_event): Likewise.  Leave exit events of the
61         leader thread pending here.  Handle signal short circuiting here.
62         Only call save_sigtrap after storing the pending waitstatus.
63         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
64         new_pending.  Don't handle leaving events the caller is not
65         interested in pending here, nor handle signal short-circuiting
66         here.  Also give equal priority to all LWPs that have had events
67         in non-stop mode.  If reporting a software breakpoint event,
68         unadjust the LWP's PC.
69         * linux-nat.h (enum lwp_stop_reason): New.
70         (struct lwp_info) <stop_pc>: New field.
71         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
72         (struct lwp_info) <stop_reason>: New field.
73         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
74
75 2015-01-09  Pedro Alves  <palves@redhat.com>
76
77         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
78         Set the LWP's 'resumed' flag.
79
80 2015-01-09  Pedro Alves  <palves@redhat.com>
81
82         * linux-nat.c (linux_resume_one_lwp): New function.
83         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
84         (linux_nat_resume): Use lwp_status_pending_p and
85         linux_resume_one_lwp.
86         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
87         (linux_handle_extended_wait): Use linux_resume_one_lwp.
88         (status_callback, running_callback): Use lwp_status_pending_p.
89         (lwp_status_pending_p): New function.
90         (stop_and_resume_callback): Use lwp_status_pending_p.
91         (linux_nat_filter_event): Use linux_resume_one_lwp.
92         (linux_nat_wait_1): Always use status_callback to look for an LWP
93         with a pending status.  Use linux_resume_one_lwp.
94         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
95         linux_resume_one_lwp.
96
97 2015-01-09  Pedro Alves  <palves@redhat.com>
98
99         * breakpoint.c (bp_location_inserted_here_p): New function,
100         factored out from ...
101         (breakpoint_inserted_here_p): ... here.  Use
102         ALL_BP_LOCATIONS_AT_ADDR.
103         (software_breakpoint_inserted_here_p): Use
104         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
105
106 2014-01-09  Pedro Alves  <palves@redhat.com>
107
108         Skip enabling event reporting if the kernel supports
109         PTRACE_EVENT_CLONE.
110         * linux-thread-db.c: Include "nat/linux-ptrace.h".
111         (thread_db_use_events): New function.
112         (try_thread_db_load_1): Check thread_db_use_events before enabling
113         event reporting.
114         (update_thread_state): New function.
115         (attach_thread): Use it.  Check thread_db_use_events before
116         enabling event reporting.
117         (thread_db_detach): Check thread_db_use_events before disabling
118         event reporting.
119         (find_new_threads_callback): Check thread_db_use_events before
120         enabling event reporting.  Update the thread's state if not using
121         libthread_db events.
122
123 2015-01-09  Pedro Alves  <palves@redhat.com>
124
125         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
126         about to wait for is > 0.
127         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
128         the kernel thread ID is -1.
129
130 2015-01-09  Pedro Alves  <palves@redhat.com>
131
132         * linux-nat.c (attach_proc_task_lwp_callback): New function.
133         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
134         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
135         ptrace option flags.
136         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
137         field.
138         * nat/linux-procfs.c: Include <dirent.h>.
139         (linux_proc_get_int): New parameter "warn".  Handle it.
140         (linux_proc_get_tgid): Adjust.
141         (linux_proc_get_tracerpid): Rename to ...
142         (linux_proc_get_tracerpid_nowarn): ... this.
143         (linux_proc_pid_get_state): New function, factored out from
144         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
145         and handle it.
146         (linux_proc_pid_is_gone): New function.
147         (linux_proc_pid_is_stopped): Adjust.
148         (linux_proc_pid_is_zombie_maybe_warn)
149         (linux_proc_pid_is_zombie_nowarn): New functions.
150         (linux_proc_pid_is_zombie): Use
151         linux_proc_pid_is_zombie_maybe_warn.
152         (linux_proc_attach_tgid_threads): New function.
153         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
154         (linux_proc_get_tracerpid): Rename to ...
155         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
156         (linux_proc_pid_is_gone): New declaration.
157         (linux_proc_pid_is_zombie): Update comment.
158         (linux_proc_pid_is_zombie_nowarn): New declaration.
159         (linux_proc_attach_lwp_func): New typedef.
160         (linux_proc_attach_tgid_threads): New declaration.
161         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
162         use nowarn functions.
163         (linux_ptrace_attach_fail_reason_string): Move here from
164         gdbserver/linux-low.c and rename.
165         (ptrace_supports_feature): If the current ptrace options are not
166         known yet, check them now, instead of asserting.
167         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
168         Declare.
169
170 2015-01-09  Pedro Alves  <palves@redhat.com>
171
172         * linux-thread-db.c (thread_db_find_new_threads_silently)
173         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
174         (find_new_threads_once): Print debug output on gdb_stdlog.
175
176 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
177             Pedro Alves  <palves@redhat.com>
178
179         * compile/compile.c: Include "gdb_wait.h".
180         (do_rmdir): Check return value, and free 'zap'.
181
182 2015-01-08  Pedro Alves  <palves@redhat.com>
183             Yao Qi  <yao@codesourcery.com>
184
185         * dwarf2loc.c (indirect_pieced_value): Don't call
186         gdb_sign_extend.  Call extract_signed_integer instead.
187         * utils.c (gdb_sign_extend): Remove.
188         * utils.h (gdb_sign_extend): Remove declaration.
189
190 2015-01-07  Pierre Muller  <muller@sourceware.org>
191
192         PR symtab/17811
193         * stabsread.c (define_symbol): Set language for C++ special symbols.
194
195 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
196
197         * inflow.c (initial_gdb_ttystate): Tweak comment.
198
199 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
200
201         * inflow.c (set_initial_gdb_ttystate): Add empty line after
202         comment documenting function.
203
204 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
205
206         * terminal.h (set_initial_gdb_ttystate): Declare.
207         * inflow.c (initial_gdb_ttystate): New static variable.
208         (set_initial_gdb_ttystate): New setter.
209         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
210         instead of our current terminal state.
211         * top.c (gdb_init): Call set_initial_gdb_ttystate.
212
213 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
214
215         * guile/scm-type.c (tyscm_array_1): Add comment.
216         * python/py-type.c (typy_array_1): Add comment.
217
218 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
219
220         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
221         error if N2 is equal to N1 - 1.
222
223 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
224
225         * python/py-type.c (typy_array_1): Do not raise negative-length
226         exception if N2 is equal to N1 - 1.
227
228 2015-01-03  Doug Evans  <xdje42@gmail.com>
229
230         * c-exp.y: Whitespace cleanup.
231         (classify_inner_name): Remove extra ;.
232
233 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
234
235         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
236         offset signed.
237
238 2015-01-02  Doug Evans  <dje@google.com>
239
240         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
241
242 2015-01-02  Doug Evans  <dje@google.com>
243
244         * symtab.h (struct symbol): Fix typo in comment.
245
246 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
247
248         Update year range in copyright notice of all files.
249
250 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
251
252         * top.c (print_gdb_version): Update copyright year to 2015.
253
254 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
255
256         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
257
258 For older changes see ChangeLog-2014.
259 \f
260 Local Variables:
261 mode: change-log
262 left-margin: 8
263 fill-column: 74
264 version-control: never
265 coding: utf-8
266 End: