1 2015-01-13 Joel Brobecker <brobecker@adacore.com>
3 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
4 * version.in: Bump version to 7.9.50.DATE-cvs.
6 2015-01-13 Joel Brobecker <brobecker@adacore.com>
8 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
9 Remove trailing new-line in argument of call to warning.
11 2015-01-13 Joel Brobecker <brobecker@adacore.com>
13 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
14 new-line in argument of call to "warning".
16 2015-01-13 Joel Brobecker <brobecker@adacore.com>
18 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
19 in static block, then try searching for primitive types.
21 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
23 * top.h (gdb_add_history): Declare.
24 * top.c (command_count): New variable.
25 (gdb_add_history): New function.
26 (gdb_safe_append_history): New static function.
27 (quit_force): Call it.
28 (command_line_input): Use gdb_add_history instead of
30 * event-top.c (command_line_handler): Likewise.
32 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
35 * darwin-nat.c: Replace <machine/setjmp.h> #include by
38 2015-01-11 Doug Evans <xdje42@gmail.com>
40 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
42 2015-01-11 Doug Evans <xdje42@gmail.com>
45 * NEWS: The "maint demangle" command is renamed as "demangle".
46 * demangle.c: #include cli/cli-utils.h, language.h.
47 (demangle_command): New function.
48 (_initialize_demangle): Add new command "demangle".
49 * maint.c (maintenance_demangle): Stub out.
50 (_initialize_maint_cmds): Update help text for "maint demangle",
51 and mark as deprecated.
53 2015-01-11 Mark Kettenis <kettenis@gnu.org>
55 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
56 inferior_thread is a function.
58 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
60 * Makefile.in (.y.c): Don't munge yacc's #line
63 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
65 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
67 * tui/tui-hooks.c (tui_query_hook): Remove.
68 (tui_install_hooks): Don't set deprecated_query_hook.
69 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
70 height calculation. Always update the command window's cur_line.
72 2015-01-09 Pedro Alves <palves@redhat.com>
74 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
76 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
78 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
79 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
81 (check_stopped_by_watchpoint): New function.
82 (save_sigtrap): Reimplement.
83 (linux_nat_stopped_by_watchpoint): Adjust.
84 (linux_nat_lp_status_is_event): Delete.
85 (stop_wait_callback): Only call save_sigtrap after storing the
87 (status_callback): If the thread had been stopped for a breakpoint
88 that has since been removed, discard the event and resume the LWP.
89 (count_events_callback, select_event_lwp_callback): Use
90 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
91 (cancel_breakpoint): Rename to ...
92 (check_stopped_by_breakpoint): ... this. Record whether the LWP
93 stopped for a software breakpoint or hardware breakpoint.
94 (select_event_lwp): Only give preference to the stepping LWP in
95 all-stop mode. Adjust comments.
96 (stop_and_resume_callback): Remove references to new_pending_p.
97 (linux_nat_filter_event): Likewise. Leave exit events of the
98 leader thread pending here. Handle signal short circuiting here.
99 Only call save_sigtrap after storing the pending waitstatus.
100 (linux_nat_wait_1): Remove 'retry' label. Remove references to
101 new_pending. Don't handle leaving events the caller is not
102 interested in pending here, nor handle signal short-circuiting
103 here. Also give equal priority to all LWPs that have had events
104 in non-stop mode. If reporting a software breakpoint event,
105 unadjust the LWP's PC.
106 * linux-nat.h (enum lwp_stop_reason): New.
107 (struct lwp_info) <stop_pc>: New field.
108 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
109 (struct lwp_info) <stop_reason>: New field.
110 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
112 2015-01-09 Pedro Alves <palves@redhat.com>
114 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
115 Set the LWP's 'resumed' flag.
117 2015-01-09 Pedro Alves <palves@redhat.com>
119 * linux-nat.c (linux_resume_one_lwp): New function.
120 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
121 (linux_nat_resume): Use lwp_status_pending_p and
122 linux_resume_one_lwp.
123 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
124 (linux_handle_extended_wait): Use linux_resume_one_lwp.
125 (status_callback, running_callback): Use lwp_status_pending_p.
126 (lwp_status_pending_p): New function.
127 (stop_and_resume_callback): Use lwp_status_pending_p.
128 (linux_nat_filter_event): Use linux_resume_one_lwp.
129 (linux_nat_wait_1): Always use status_callback to look for an LWP
130 with a pending status. Use linux_resume_one_lwp.
131 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
132 linux_resume_one_lwp.
134 2015-01-09 Pedro Alves <palves@redhat.com>
136 * breakpoint.c (bp_location_inserted_here_p): New function,
137 factored out from ...
138 (breakpoint_inserted_here_p): ... here. Use
139 ALL_BP_LOCATIONS_AT_ADDR.
140 (software_breakpoint_inserted_here_p): Use
141 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
143 2014-01-09 Pedro Alves <palves@redhat.com>
145 Skip enabling event reporting if the kernel supports
147 * linux-thread-db.c: Include "nat/linux-ptrace.h".
148 (thread_db_use_events): New function.
149 (try_thread_db_load_1): Check thread_db_use_events before enabling
151 (update_thread_state): New function.
152 (attach_thread): Use it. Check thread_db_use_events before
153 enabling event reporting.
154 (thread_db_detach): Check thread_db_use_events before disabling
156 (find_new_threads_callback): Check thread_db_use_events before
157 enabling event reporting. Update the thread's state if not using
160 2015-01-09 Pedro Alves <palves@redhat.com>
162 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
163 about to wait for is > 0.
164 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
165 the kernel thread ID is -1.
167 2015-01-09 Pedro Alves <palves@redhat.com>
169 * linux-nat.c (attach_proc_task_lwp_callback): New function.
170 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
171 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
173 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
175 * nat/linux-procfs.c: Include <dirent.h>.
176 (linux_proc_get_int): New parameter "warn". Handle it.
177 (linux_proc_get_tgid): Adjust.
178 (linux_proc_get_tracerpid): Rename to ...
179 (linux_proc_get_tracerpid_nowarn): ... this.
180 (linux_proc_pid_get_state): New function, factored out from
181 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
183 (linux_proc_pid_is_gone): New function.
184 (linux_proc_pid_is_stopped): Adjust.
185 (linux_proc_pid_is_zombie_maybe_warn)
186 (linux_proc_pid_is_zombie_nowarn): New functions.
187 (linux_proc_pid_is_zombie): Use
188 linux_proc_pid_is_zombie_maybe_warn.
189 (linux_proc_attach_tgid_threads): New function.
190 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
191 (linux_proc_get_tracerpid): Rename to ...
192 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
193 (linux_proc_pid_is_gone): New declaration.
194 (linux_proc_pid_is_zombie): Update comment.
195 (linux_proc_pid_is_zombie_nowarn): New declaration.
196 (linux_proc_attach_lwp_func): New typedef.
197 (linux_proc_attach_tgid_threads): New declaration.
198 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
199 use nowarn functions.
200 (linux_ptrace_attach_fail_reason_string): Move here from
201 gdbserver/linux-low.c and rename.
202 (ptrace_supports_feature): If the current ptrace options are not
203 known yet, check them now, instead of asserting.
204 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
207 2015-01-09 Pedro Alves <palves@redhat.com>
209 * linux-thread-db.c (thread_db_find_new_threads_silently)
210 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
211 (find_new_threads_once): Print debug output on gdb_stdlog.
213 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
214 Pedro Alves <palves@redhat.com>
216 * compile/compile.c: Include "gdb_wait.h".
217 (do_rmdir): Check return value, and free 'zap'.
219 2015-01-08 Pedro Alves <palves@redhat.com>
220 Yao Qi <yao@codesourcery.com>
222 * dwarf2loc.c (indirect_pieced_value): Don't call
223 gdb_sign_extend. Call extract_signed_integer instead.
224 * utils.c (gdb_sign_extend): Remove.
225 * utils.h (gdb_sign_extend): Remove declaration.
227 2015-01-07 Pierre Muller <muller@sourceware.org>
230 * stabsread.c (define_symbol): Set language for C++ special symbols.
232 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
234 * inflow.c (initial_gdb_ttystate): Tweak comment.
236 2015-01-07 Joel Brobecker <brobecker@adacore.com>
238 * inflow.c (set_initial_gdb_ttystate): Add empty line after
239 comment documenting function.
241 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
243 * terminal.h (set_initial_gdb_ttystate): Declare.
244 * inflow.c (initial_gdb_ttystate): New static variable.
245 (set_initial_gdb_ttystate): New setter.
246 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
247 instead of our current terminal state.
248 * top.c (gdb_init): Call set_initial_gdb_ttystate.
250 2015-01-07 Joel Brobecker <brobecker@adacore.com>
252 * guile/scm-type.c (tyscm_array_1): Add comment.
253 * python/py-type.c (typy_array_1): Add comment.
255 2015-01-06 Joel Brobecker <brobecker@adacore.com>
257 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
258 error if N2 is equal to N1 - 1.
260 2015-01-06 Joel Brobecker <brobecker@adacore.com>
262 * python/py-type.c (typy_array_1): Do not raise negative-length
263 exception if N2 is equal to N1 - 1.
265 2015-01-03 Doug Evans <xdje42@gmail.com>
267 * c-exp.y: Whitespace cleanup.
268 (classify_inner_name): Remove extra ;.
270 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
272 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
275 2015-01-02 Doug Evans <dje@google.com>
277 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
279 2015-01-02 Doug Evans <dje@google.com>
281 * symtab.h (struct symbol): Fix typo in comment.
283 2015-01-01 Joel Brobecker <brobecker@adacore.com>
285 Update year range in copyright notice of all files.
287 2015-01-01 Joel Brobecker <brobecker@adacore.com>
289 * top.c (print_gdb_version): Update copyright year to 2015.
291 2015-01-01 Joel Brobecker <brobecker@adacore.com>
293 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
295 For older changes see ChangeLog-2014.
301 version-control: never