Commit | Line | Data |
---|---|---|
198297aa PA |
1 | 2015-01-23 Pedro Alves <palves@redhat.com> |
2 | ||
3 | * linux-nat.c (linux_is_async_p): New macro. | |
4 | (linux_nat_is_async_p): | |
5 | (linux_nat_terminal_inferior): Check whether the target can async | |
6 | instead of whether it is already async. | |
7 | (linux_nat_terminal_ours): Don't check whether the target is | |
8 | async. | |
9 | (linux_async_pipe): Use linux_is_async_p. | |
10 | ||
253828f1 JK |
11 | 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
12 | ||
13 | * NEWS (Changes since GDB 7.9): Add 'thread apply all' option | |
14 | '-ascending'. | |
15 | * thread.c (tp_array_compar_ascending, tp_array_compar): New. | |
16 | (thread_apply_all_command): Parse CMD for tp_array_compar_ascending. | |
17 | Sort tp_array using tp_array_compar. | |
18 | (_initialize_thread): Extend thread_apply_all_command help. | |
19 | ||
f0e8c4c5 JK |
20 | 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
21 | ||
22 | * corelow.c (core_open): Call also thread_command. | |
23 | * gdbthread.h (thread_command): New prototype moved from ... | |
24 | * thread.c (thread_command): ... here. | |
25 | (thread_command): Make it global. | |
26 | ||
03b79603 PA |
27 | 2015-01-22 Pedro Alves <palves@redhat.com> |
28 | ||
29 | * configure.ac [*mingw32*]: Check $curses_found instead of | |
30 | $prefer_curses. | |
31 | * configure: Regenerate. | |
32 | * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and | |
33 | HAVE_NCURSES_NCURSES_H checks. | |
34 | ||
6b8a872f EZ |
35 | 2015-01-22 Eli Zaretskii <eliz@gnu.org> |
36 | ||
bbbbffbb | 37 | * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm' |
6b8a872f EZ |
38 | fails with the 1st arg NULL, try again with "unknown". Don't test |
39 | the "cup" capability: it isn't supported by the Windows port of | |
40 | ncurses, but the Windows console driver is still capable of | |
41 | supporting TUI. | |
42 | ||
4b62a76e JK |
43 | 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com> |
44 | ||
45 | * compile/compile.c (_initialize_compile): Use -fPIE for compile_args. | |
46 | ||
82a864f9 EZ |
47 | 2015-01-22 Eli Zaretskii <eliz@gnu.org> |
48 | ||
49 | * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h. | |
50 | (ALLDEPFILES): Remove irix5-nat.c. These two are part of the | |
51 | reason that "make TAGS" is broken. | |
52 | ||
b35018fd CG |
53 | 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com> |
54 | ||
55 | * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues | |
56 | and check additional store instructions. | |
57 | ||
ffbc4646 WW |
58 | 2015-01-21 Wei-cheng Wang <cole945@gmail.com> |
59 | ||
60 | * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang". | |
61 | ||
ddeca1df WW |
62 | 2015-01-21 Wei-cheng Wang <cole945@gmail.com> |
63 | ||
64 | * ppc-linux-tdep.c (ppc_skip_trampoline_code, | |
65 | ppc_canonicalize_syscall, ppc_linux_syscall_record, | |
66 | ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments. | |
67 | * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise. | |
68 | * rs6000-tdep.c (rs6000_epilogue_frame_cache, | |
69 | rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register, | |
70 | rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4, | |
71 | ppc_process_record_op19, ppc_process_record_op31, | |
72 | ppc_process_record_op59, ppc_process_record_op60, | |
73 | ppc_process_record_op63): Likewise. | |
74 | ||
049bb5de JB |
75 | 2015-01-20 Joel Brobecker <brobecker@adacore.com> |
76 | ||
77 | * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string) | |
78 | (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of | |
79 | strerror. | |
80 | ||
42b87c63 | 81 | 2015-01-20 Wei-cheng Wang <cole945@gmail.com> |
810c1026 WW |
82 | |
83 | * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19, | |
84 | ppc_process_record_op31, ppc_process_record_op59, | |
85 | ppc_process_record_op60, ppc_process_record_op63, | |
86 | ppc_process_record): Fix -Wformat warning. | |
87 | * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60): | |
88 | Remove unused variables. | |
89 | ||
569340fc CG |
90 | 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com> |
91 | ||
92 | * MAINTAINERS (Write After Approval): Add "Chen Gang". | |
93 | ||
63413d85 EZ |
94 | 2015-01-19 Eli Zaretskii <eliz@gnu.org> |
95 | ||
96 | * configure.ac [*mingw32*]: Only add windows-termcap.o to | |
97 | CONFIG_OBS if not building with a curses library. | |
98 | * configure: Regenerate. | |
99 | ||
100 | * windows-termcap.c: Include defs.h. Make the whole body empty if | |
101 | either one of HAVE_CURSES_H or HAVE_NCURSES_H or | |
102 | HAVE_NCURSES_NCURSES_H is defined. | |
103 | ||
16d8013c JB |
104 | 2015-01-19 Joel Brobecker <brobecker@adacore.com> |
105 | ||
106 | * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator | |
107 | from end of line to start of next line. | |
108 | ||
cf90fd9a WW |
109 | 2015-01-17 Wei-cheng Wang <cole945@gmail.com> |
110 | ||
111 | * ppc-linux-tdep.c (ppc_skip_trampoline_code): | |
112 | Scan PLT stub backward for reverse debugging. | |
113 | * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise. | |
114 | ||
b4cdae6f WW |
115 | 2015-01-17 Wei-cheng Wang <cole945@gmail.com> |
116 | Ulrich Weigand <uweigand@de.ibm.com> | |
117 | ||
118 | * configure.tgt (powerpc*-*-linux): Add linux-record.o to | |
119 | gdb_target_obs. | |
120 | (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall | |
121 | record. | |
122 | (ppc_canonicalize_syscall, ppc_linux_syscall_record, | |
123 | ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions. | |
124 | (ppc_linux_init_abi): Set process_record, process_record_signal. | |
125 | * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and | |
126 | ppc_linux_record_tdep to gdbarch_tdep. | |
127 | (ppc_process_record): New declaration. | |
128 | * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4, | |
129 | ppc_process_record_op19, ppc_process_record_op31, | |
130 | ppc_process_record_op59, ppc_process_record_op60, | |
131 | ppc_process_record_op63, ppc_process_record): New functions. | |
132 | ||
2608dbf8 WW |
133 | 2015-01-17 Wei-cheng Wang <cole945@gmail.com> |
134 | ||
135 | * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to | |
136 | rs6000_in_function_epilogue_frame_p and add an argument | |
137 | for frame_info. | |
138 | (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id, | |
139 | rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer): | |
140 | New functions. | |
141 | (rs6000_epilogue_frame_unwind): New. | |
142 | (rs6000_gdbarch_init): Append epilogue unwinder. | |
143 | ||
4c347be6 SDJ |
144 | 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com> |
145 | ||
146 | * nat/linux-personality.c: Replace "#ifndef | |
147 | HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if | |
148 | !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5 | |
149 | systems. | |
150 | ||
9f2850ba EZ |
151 | 2015-01-16 Eli Zaretskii <eliz@gnu.org> |
152 | ||
6cdb25f4 EZ |
153 | * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New |
154 | functions. | |
155 | (_initialize_tui_win) <border-kind, border-mode>: | |
156 | <active-border-mode>: Use tui_set_var_cmd as the "set" function. | |
c54da50d EZ |
157 | (tui_set_tab_width_command): Fix the commentary. |
158 | ||
6cdb25f4 EZ |
159 | * tui/tui-win.h: Add prototype for tui_rehighlight_all. |
160 | ||
bf555842 EZ |
161 | * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command): |
162 | Doc fix. | |
cb86fcc1 EZ |
163 | (tui_set_tab_width_command): Delete and recreate the source and |
164 | the disassembly windows, to show the effect of the changed tab | |
165 | size immediately. | |
bf555842 | 166 | |
9f2850ba EZ |
167 | * tui/tui-data.h (LINE_PREFIX): Make shorter |
168 | (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for | |
169 | "Thread NNNNN.XXXX" thread ID notation on Windows. | |
170 | ||
95761b2d JK |
171 | 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com> |
172 | ||
173 | Fix gcc-5 compilation. | |
174 | * hppa-tdep.c (inst_saves_gr): Fix parentheses typo. | |
175 | ||
8cc73a39 SDJ |
176 | 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com> |
177 | ||
178 | * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h. | |
179 | (linux-personality.o): New rule. | |
180 | * common/common-defs.h: Include <stdint.h>. | |
181 | * config/aarch64/linux.mh (NATDEPFILES): Include | |
182 | linux-personality.o. | |
183 | * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise. | |
184 | * config/arm/linux.mh (NATDEPFILES): Likewise. | |
185 | * config/i386/linux64.mh (NATDEPFILES): Likewise. | |
186 | * config/i386/linux.mh (NATDEPFILES): Likewise. | |
187 | * config/ia64/linux.mh (NATDEPFILES): Likewise. | |
188 | * config/m32r/linux.mh (NATDEPFILES): Likewise. | |
189 | * config/m68k/linux.mh (NATDEPFILES): Likewise. | |
190 | * config/mips/linux.mh (NATDEPFILES): Likewise. | |
191 | * config/pa/linux.mh (NATDEPFILES): Likewise. | |
192 | * config/powerpc/linux.mh (NATDEPFILES): Likewise. | |
193 | * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise. | |
194 | * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise. | |
195 | * config/s390/linux.mh (NATDEPFILES): Likewise. | |
196 | * config/sparc/linux64.mh (NATDEPFILES): Likewise. | |
197 | * config/sparc/linux.mh (NATDEPFILES): Likewise. | |
198 | * config/tilegx/linux.mh (NATDEPFILES): Likewise. | |
199 | * config/xtensa/linux.mh (NATDEPFILES): Likewise. | |
200 | * defs.h: Remove #include <stdint.h> (moved to | |
201 | common/common-defs.h). | |
202 | * linux-nat.c: Include nat/linux-personality.h. Remove #include | |
203 | <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to | |
204 | nat/linux-personality.c). | |
205 | (linux_nat_create_inferior): Remove code to disable address space | |
206 | randomization (moved to nat/linux-personality.c). Create cleanup | |
207 | to disable address space randomization. | |
208 | * nat/linux-personality.c: New file. | |
209 | * nat/linux-personality.h: Likewise. | |
210 | ||
fb23d554 SDJ |
211 | 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com> |
212 | ||
213 | * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and | |
214 | common/posix-strerror.c. | |
215 | (posix-strerror.o): New rule. | |
216 | (mingw-strerror.o): Likewise. | |
217 | * common/common-utils.h (safe_strerror): Move prototype to here, | |
218 | from utils.h. | |
219 | * common/common.host: New file. | |
220 | * common/mingw-strerror.c: Likewise. | |
221 | * common/posix-strerror.c: Likewise. | |
222 | * configure: Regenerated. | |
223 | * configure.ac: Source common/common.host. Add variable | |
224 | common_host_obs to gdb_host_obs. | |
225 | * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and | |
226 | gdb/common/posix-strerror.c when warning about the use of | |
227 | strerror. | |
228 | * mingw-hdep.c (safe_strerror): Remove definition; move it to | |
229 | common/mingw-strerror.c. | |
230 | * posix-hdep.c (safe_strerror): Remove definition; move it to | |
231 | common/posix-hdep.c. | |
232 | * utils.h (safe_strerror): Remove prototype; move to | |
233 | common/common-utils.h. | |
234 | ||
3af8af43 JB |
235 | 2015-01-15 Joel Brobecker <brobecker@adacore.com> |
236 | ||
237 | GDB 7.8.2 released. | |
238 | ||
bafffb51 JB |
239 | 2015-01-15 Joel Brobecker <brobecker@adacore.com> |
240 | ||
241 | * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel | |
242 | ___XA type if the array has already been fixed. | |
243 | ||
cdf43629 YQ |
244 | 2015-01-14 Yao Qi <yao@codesourcery.com> |
245 | ||
246 | * Makefile.in (ppc-linux.o): New rule. | |
247 | * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o. | |
248 | * configure.ac: AC_CHECK_FUNCS(getauxval). | |
249 | * config.in: Re-generated. | |
250 | * configure: Re-generated. | |
251 | * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p): | |
252 | Declare. | |
253 | * nat/ppc-linux.c: New file. | |
254 | * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]: | |
255 | Call ppc64_64bit_inferior_p. | |
256 | ||
514c5338 YQ |
257 | 2015-01-14 Yao Qi <yao@codesourcery.com> |
258 | ||
259 | * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to | |
260 | nat/ppc-linux.h. | |
261 | (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise. | |
262 | (PPC_FEATURE_HAS_DFP): Likewise. | |
263 | (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise. | |
264 | (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise. | |
265 | (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise. | |
266 | Include "nat/ppc-linux.h". | |
267 | * nat/ppc-linux.h: New file. | |
268 | * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h. | |
269 | ||
5589af0e PA |
270 | 2015-01-14 Pedro Alves <palves@redhat.com> |
271 | ||
272 | PR gdb/17525 | |
273 | * breakpoint.c: Include "interps.h". | |
274 | (bpstat_do_actions_1): Also check whether the interpreter is | |
275 | async. | |
276 | ||
6c400b59 PA |
277 | 2015-01-14 Pedro Alves <palves@redhat.com> |
278 | ||
279 | PR cli/17828 | |
280 | * infrun.c (reinstall_readline_callback_handler_cleanup): Don't | |
281 | reinstall if the interpreter is sync. | |
282 | ||
e02c96a7 DE |
283 | 2015-01-13 Doug Evans <dje@google.com> |
284 | ||
285 | * objfiles.c (objfile_filename): New function. | |
286 | * objfiles.h (objfile_filename): Declare it. | |
287 | (objfile_name): Add function comment. | |
288 | * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the | |
289 | bfd file name (which may be realpath'd), and the original name. | |
290 | ||
3b2f13ff JB |
291 | 2015-01-13 Joel Brobecker <brobecker@adacore.com> |
292 | ||
293 | * NEWS: Create a new section for the next release branch. | |
294 | Rename the section of the current branch, now that it has | |
295 | been cut. | |
296 | ||
b4cfe7f8 JB |
297 | 2015-01-13 Joel Brobecker <brobecker@adacore.com> |
298 | ||
299 | GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37): | |
300 | * version.in: Bump version to 7.9.50.DATE-cvs. | |
301 | ||
92fc2e69 JB |
302 | 2015-01-13 Joel Brobecker <brobecker@adacore.com> |
303 | ||
304 | * nat/linux-procfs.c (linux_proc_attach_tgid_threads): | |
305 | Remove trailing new-line in argument of call to warning. | |
306 | ||
f71f0b0d JB |
307 | 2015-01-13 Joel Brobecker <brobecker@adacore.com> |
308 | ||
309 | * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing | |
310 | new-line in argument of call to "warning". | |
311 | ||
04dccad0 JB |
312 | 2015-01-13 Joel Brobecker <brobecker@adacore.com> |
313 | ||
314 | * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found | |
315 | in static block, then try searching for primitive types. | |
316 | ||
08b13bdd PP |
317 | 2015-01-12 Patrick Palka <patrick@parcs.ath.cx> |
318 | ||
319 | * top.h (gdb_add_history): Declare. | |
320 | * top.c (command_count): New variable. | |
321 | (gdb_add_history): New function. | |
322 | (gdb_safe_append_history): New static function. | |
323 | (quit_force): Call it. | |
324 | (command_line_input): Use gdb_add_history instead of | |
325 | add_history. | |
326 | * event-top.c (command_line_handler): Likewise. | |
327 | ||
4ac15b59 JC |
328 | 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch) |
329 | ||
330 | PR gdb/17046 | |
331 | * darwin-nat.c: Replace <machine/setjmp.h> #include by | |
332 | <setjmp.h> #include. | |
333 | ||
005e54bb DE |
334 | 2015-01-11 Doug Evans <xdje42@gmail.com> |
335 | ||
336 | * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME. | |
337 | ||
439250fb DE |
338 | 2015-01-11 Doug Evans <xdje42@gmail.com> |
339 | ||
340 | PR gdb/15830 | |
341 | * NEWS: The "maint demangle" command is renamed as "demangle". | |
342 | * demangle.c: #include cli/cli-utils.h, language.h. | |
343 | (demangle_command): New function. | |
344 | (_initialize_demangle): Add new command "demangle". | |
345 | * maint.c (maintenance_demangle): Stub out. | |
346 | (_initialize_maint_cmds): Update help text for "maint demangle", | |
347 | and mark as deprecated. | |
348 | ||
ebf3aa72 MK |
349 | 2015-01-11 Mark Kettenis <kettenis@gnu.org> |
350 | ||
351 | * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that | |
352 | inferior_thread is a function. | |
353 | ||
6bf045cd PP |
354 | 2015-01-09 Patrick Palka <patrick@parcs.ath.cx> |
355 | ||
356 | * Makefile.in (.y.c): Don't munge yacc's #line | |
357 | directives. | |
358 | ||
588dcc3e PP |
359 | 2015-01-09 Patrick Palka <patrick@parcs.ath.cx> |
360 | ||
361 | * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper | |
362 | to prompt for input. | |
363 | * tui/tui-hooks.c (tui_query_hook): Remove. | |
364 | (tui_install_hooks): Don't set deprecated_query_hook. | |
365 | * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in | |
366 | height calculation. Always update the command window's cur_line. | |
367 | ||
9c02b525 PA |
368 | 2015-01-09 Pedro Alves <palves@redhat.com> |
369 | ||
370 | * breakpoint.c (hardware_breakpoint_inserted_here_p): New | |
371 | function. | |
372 | * breakpoint.h (hardware_breakpoint_inserted_here_p): New | |
373 | declaration. | |
374 | * linux-nat.c (linux_nat_status_is_event): Move higher up in file. | |
375 | (linux_resume_one_lwp): Store the thread's PC. Adjust to clear | |
376 | stop_reason. | |
377 | (check_stopped_by_watchpoint): New function. | |
378 | (save_sigtrap): Reimplement. | |
379 | (linux_nat_stopped_by_watchpoint): Adjust. | |
380 | (linux_nat_lp_status_is_event): Delete. | |
381 | (stop_wait_callback): Only call save_sigtrap after storing the | |
382 | pending status. | |
383 | (status_callback): If the thread had been stopped for a breakpoint | |
384 | that has since been removed, discard the event and resume the LWP. | |
385 | (count_events_callback, select_event_lwp_callback): Use | |
386 | lwp_status_pending_p instead of linux_nat_lp_status_is_event. | |
387 | (cancel_breakpoint): Rename to ... | |
388 | (check_stopped_by_breakpoint): ... this. Record whether the LWP | |
389 | stopped for a software breakpoint or hardware breakpoint. | |
390 | (select_event_lwp): Only give preference to the stepping LWP in | |
391 | all-stop mode. Adjust comments. | |
392 | (stop_and_resume_callback): Remove references to new_pending_p. | |
393 | (linux_nat_filter_event): Likewise. Leave exit events of the | |
394 | leader thread pending here. Handle signal short circuiting here. | |
395 | Only call save_sigtrap after storing the pending waitstatus. | |
396 | (linux_nat_wait_1): Remove 'retry' label. Remove references to | |
397 | new_pending. Don't handle leaving events the caller is not | |
398 | interested in pending here, nor handle signal short-circuiting | |
399 | here. Also give equal priority to all LWPs that have had events | |
400 | in non-stop mode. If reporting a software breakpoint event, | |
401 | unadjust the LWP's PC. | |
402 | * linux-nat.h (enum lwp_stop_reason): New. | |
403 | (struct lwp_info) <stop_pc>: New field. | |
404 | (struct lwp_info) <stopped_by_watchpoint>: Delete field. | |
405 | (struct lwp_info) <stop_reason>: New field. | |
406 | * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust. | |
407 | ||
8af756ef PA |
408 | 2015-01-09 Pedro Alves <palves@redhat.com> |
409 | ||
410 | * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>: | |
411 | Set the LWP's 'resumed' flag. | |
412 | ||
8a99810d PA |
413 | 2015-01-09 Pedro Alves <palves@redhat.com> |
414 | ||
415 | * linux-nat.c (linux_resume_one_lwp): New function. | |
416 | (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp. | |
417 | (linux_nat_resume): Use lwp_status_pending_p and | |
418 | linux_resume_one_lwp. | |
419 | (linux_handle_syscall_trap): Use linux_resume_one_lwp. | |
420 | (linux_handle_extended_wait): Use linux_resume_one_lwp. | |
421 | (status_callback, running_callback): Use lwp_status_pending_p. | |
422 | (lwp_status_pending_p): New function. | |
423 | (stop_and_resume_callback): Use lwp_status_pending_p. | |
424 | (linux_nat_filter_event): Use linux_resume_one_lwp. | |
425 | (linux_nat_wait_1): Always use status_callback to look for an LWP | |
426 | with a pending status. Use linux_resume_one_lwp. | |
427 | (resume_stopped_resumed_lwps): Use lwp_status_pending_p and | |
428 | linux_resume_one_lwp. | |
429 | ||
f7ce857f PA |
430 | 2015-01-09 Pedro Alves <palves@redhat.com> |
431 | ||
432 | * breakpoint.c (bp_location_inserted_here_p): New function, | |
433 | factored out from ... | |
434 | (breakpoint_inserted_here_p): ... here. Use | |
435 | ALL_BP_LOCATIONS_AT_ADDR. | |
436 | (software_breakpoint_inserted_here_p): Use | |
437 | bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR. | |
438 | ||
c1a747c1 PA |
439 | 2014-01-09 Pedro Alves <palves@redhat.com> |
440 | ||
441 | Skip enabling event reporting if the kernel supports | |
442 | PTRACE_EVENT_CLONE. | |
443 | * linux-thread-db.c: Include "nat/linux-ptrace.h". | |
444 | (thread_db_use_events): New function. | |
445 | (try_thread_db_load_1): Check thread_db_use_events before enabling | |
446 | event reporting. | |
447 | (update_thread_state): New function. | |
448 | (attach_thread): Use it. Check thread_db_use_events before | |
449 | enabling event reporting. | |
450 | (thread_db_detach): Check thread_db_use_events before disabling | |
451 | event reporting. | |
452 | (find_new_threads_callback): Check thread_db_use_events before | |
453 | enabling event reporting. Update the thread's state if not using | |
454 | libthread_db events. | |
455 | ||
a33e3959 PA |
456 | 2015-01-09 Pedro Alves <palves@redhat.com> |
457 | ||
458 | * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're | |
459 | about to wait for is > 0. | |
460 | * linux-thread-db.c (find_new_threads_callback): Ignore thread if | |
461 | the kernel thread ID is -1. | |
462 | ||
8784d563 PA |
463 | 2015-01-09 Pedro Alves <palves@redhat.com> |
464 | ||
465 | * linux-nat.c (attach_proc_task_lwp_callback): New function. | |
466 | (linux_nat_attach): Use linux_proc_attach_tgid_threads. | |
467 | (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's | |
468 | ptrace option flags. | |
469 | * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New | |
470 | field. | |
471 | * nat/linux-procfs.c: Include <dirent.h>. | |
472 | (linux_proc_get_int): New parameter "warn". Handle it. | |
473 | (linux_proc_get_tgid): Adjust. | |
474 | (linux_proc_get_tracerpid): Rename to ... | |
475 | (linux_proc_get_tracerpid_nowarn): ... this. | |
476 | (linux_proc_pid_get_state): New function, factored out from | |
477 | (linux_proc_pid_has_state): ... this. Add new parameter "warn" | |
478 | and handle it. | |
479 | (linux_proc_pid_is_gone): New function. | |
480 | (linux_proc_pid_is_stopped): Adjust. | |
481 | (linux_proc_pid_is_zombie_maybe_warn) | |
482 | (linux_proc_pid_is_zombie_nowarn): New functions. | |
483 | (linux_proc_pid_is_zombie): Use | |
484 | linux_proc_pid_is_zombie_maybe_warn. | |
485 | (linux_proc_attach_tgid_threads): New function. | |
486 | * nat/linux-procfs.h (linux_proc_get_tgid): Update comment. | |
487 | (linux_proc_get_tracerpid): Rename to ... | |
488 | (linux_proc_get_tracerpid_nowarn): ... this, and update comment. | |
489 | (linux_proc_pid_is_gone): New declaration. | |
490 | (linux_proc_pid_is_zombie): Update comment. | |
491 | (linux_proc_pid_is_zombie_nowarn): New declaration. | |
492 | (linux_proc_attach_lwp_func): New typedef. | |
493 | (linux_proc_attach_tgid_threads): New declaration. | |
494 | * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to | |
495 | use nowarn functions. | |
496 | (linux_ptrace_attach_fail_reason_string): Move here from | |
497 | gdbserver/linux-low.c and rename. | |
498 | (ptrace_supports_feature): If the current ptrace options are not | |
499 | known yet, check them now, instead of asserting. | |
500 | * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string): | |
501 | Declare. | |
502 | ||
883ed13e PA |
503 | 2015-01-09 Pedro Alves <palves@redhat.com> |
504 | ||
505 | * linux-thread-db.c (thread_db_find_new_threads_silently) | |
506 | (try_thread_db_load_1, try_thread_db_load, thread_db_load_search) | |
507 | (find_new_threads_once): Print debug output on gdb_stdlog. | |
508 | ||
1710aab8 CG |
509 | 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com> |
510 | Pedro Alves <palves@redhat.com> | |
511 | ||
512 | * compile/compile.c: Include "gdb_wait.h". | |
513 | (do_rmdir): Check return value, and free 'zap'. | |
514 | ||
b597c318 YQ |
515 | 2015-01-08 Pedro Alves <palves@redhat.com> |
516 | Yao Qi <yao@codesourcery.com> | |
517 | ||
518 | * dwarf2loc.c (indirect_pieced_value): Don't call | |
519 | gdb_sign_extend. Call extract_signed_integer instead. | |
520 | * utils.c (gdb_sign_extend): Remove. | |
521 | * utils.h (gdb_sign_extend): Remove declaration. | |
522 | ||
025ac414 PM |
523 | 2015-01-07 Pierre Muller <muller@sourceware.org> |
524 | ||
525 | PR symtab/17811 | |
526 | * stabsread.c (define_symbol): Set language for C++ special symbols. | |
527 | ||
fa5af12a PP |
528 | 2015-01-07 Patrick Palka <patrick@parcs.ath.cx> |
529 | ||
530 | * inflow.c (initial_gdb_ttystate): Tweak comment. | |
531 | ||
ea42d6f8 JB |
532 | 2015-01-07 Joel Brobecker <brobecker@adacore.com> |
533 | ||
534 | * inflow.c (set_initial_gdb_ttystate): Add empty line after | |
535 | comment documenting function. | |
536 | ||
6a06d660 PP |
537 | 2015-01-07 Patrick Palka <patrick@parcs.ath.cx> |
538 | ||
539 | * terminal.h (set_initial_gdb_ttystate): Declare. | |
540 | * inflow.c (initial_gdb_ttystate): New static variable. | |
541 | (set_initial_gdb_ttystate): New setter. | |
542 | (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate | |
543 | instead of our current terminal state. | |
544 | * top.c (gdb_init): Call set_initial_gdb_ttystate. | |
545 | ||
e810d75b JB |
546 | 2015-01-07 Joel Brobecker <brobecker@adacore.com> |
547 | ||
548 | * guile/scm-type.c (tyscm_array_1): Add comment. | |
549 | * python/py-type.c (typy_array_1): Add comment. | |
550 | ||
fce10a84 JB |
551 | 2015-01-06 Joel Brobecker <brobecker@adacore.com> |
552 | ||
553 | * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range | |
554 | error if N2 is equal to N1 - 1. | |
555 | ||
8503d6e1 JB |
556 | 2015-01-06 Joel Brobecker <brobecker@adacore.com> |
557 | ||
558 | * python/py-type.c (typy_array_1): Do not raise negative-length | |
559 | exception if N2 is equal to N1 - 1. | |
560 | ||
4d29c0a8 DE |
561 | 2015-01-03 Doug Evans <xdje42@gmail.com> |
562 | ||
563 | * c-exp.y: Whitespace cleanup. | |
564 | (classify_inner_name): Remove extra ;. | |
565 | ||
eaa6a9a4 MR |
566 | 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com> |
567 | ||
568 | * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack | |
569 | offset signed. | |
570 | ||
02fe9972 DE |
571 | 2015-01-02 Doug Evans <dje@google.com> |
572 | ||
573 | * dwarf2read.c (setup_type_unit_groups): Remove outdated comment. | |
574 | ||
e2ada9cb DE |
575 | 2015-01-02 Doug Evans <dje@google.com> |
576 | ||
577 | * symtab.h (struct symbol): Fix typo in comment. | |
578 | ||
32d0add0 JB |
579 | 2015-01-01 Joel Brobecker <brobecker@adacore.com> |
580 | ||
581 | Update year range in copyright notice of all files. | |
582 | ||
76f2b779 JB |
583 | 2015-01-01 Joel Brobecker <brobecker@adacore.com> |
584 | ||
585 | * top.c (print_gdb_version): Update copyright year to 2015. | |
586 | ||
077309e2 | 587 | 2015-01-01 Joel Brobecker <brobecker@adacore.com> |
6bf6fd09 | 588 | |
077309e2 | 589 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014. |
6bf6fd09 | 590 | |
077309e2 | 591 | For older changes see ChangeLog-2014. |
c906108c SS |
592 | \f |
593 | Local Variables: | |
594 | mode: change-log | |
595 | left-margin: 8 | |
596 | fill-column: 74 | |
597 | version-control: never | |
57da7796 | 598 | coding: utf-8 |
c906108c | 599 | End: |