1 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
3 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
4 and check additional store instructions.
6 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
8 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
10 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
13 ppc_canonicalize_syscall, ppc_linux_syscall_record,
14 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
15 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
16 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
17 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
18 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
19 ppc_process_record_op19, ppc_process_record_op31,
20 ppc_process_record_op59, ppc_process_record_op60,
21 ppc_process_record_op63): Likewise.
23 2015-01-20 Joel Brobecker <brobecker@adacore.com>
25 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
26 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
29 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
31 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
32 ppc_process_record_op31, ppc_process_record_op59,
33 ppc_process_record_op60, ppc_process_record_op63,
34 ppc_process_record): Fix -Wformat warning.
35 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
36 Remove unused variables.
38 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
40 * MAINTAINERS (Write After Approval): Add "Chen Gang".
42 2015-01-19 Eli Zaretskii <eliz@gnu.org>
44 * configure.ac [*mingw32*]: Only add windows-termcap.o to
45 CONFIG_OBS if not building with a curses library.
46 * configure: Regenerate.
48 * windows-termcap.c: Include defs.h. Make the whole body empty if
49 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
50 HAVE_NCURSES_NCURSES_H is defined.
52 2015-01-19 Joel Brobecker <brobecker@adacore.com>
54 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
55 from end of line to start of next line.
57 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
59 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
60 Scan PLT stub backward for reverse debugging.
61 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
63 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
64 Ulrich Weigand <uweigand@de.ibm.com>
66 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
68 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
70 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
71 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
72 (ppc_linux_init_abi): Set process_record, process_record_signal.
73 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
74 ppc_linux_record_tdep to gdbarch_tdep.
75 (ppc_process_record): New declaration.
76 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
77 ppc_process_record_op19, ppc_process_record_op31,
78 ppc_process_record_op59, ppc_process_record_op60,
79 ppc_process_record_op63, ppc_process_record): New functions.
81 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
83 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
84 rs6000_in_function_epilogue_frame_p and add an argument
86 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
87 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
89 (rs6000_epilogue_frame_unwind): New.
90 (rs6000_gdbarch_init): Append epilogue unwinder.
92 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
94 * nat/linux-personality.c: Replace "#ifndef
95 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
96 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
99 2015-01-16 Eli Zaretskii <eliz@gnu.org>
101 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
103 (_initialize_tui_win) <border-kind, border-mode>:
104 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
105 (tui_set_tab_width_command): Fix the commentary.
107 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
109 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
111 (tui_set_tab_width_command): Delete and recreate the source and
112 the disassembly windows, to show the effect of the changed tab
115 * tui/tui-data.h (LINE_PREFIX): Make shorter
116 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
117 "Thread NNNNN.XXXX" thread ID notation on Windows.
119 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
121 Fix gcc-5 compilation.
122 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
124 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
126 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
127 (linux-personality.o): New rule.
128 * common/common-defs.h: Include <stdint.h>.
129 * config/aarch64/linux.mh (NATDEPFILES): Include
131 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
132 * config/arm/linux.mh (NATDEPFILES): Likewise.
133 * config/i386/linux64.mh (NATDEPFILES): Likewise.
134 * config/i386/linux.mh (NATDEPFILES): Likewise.
135 * config/ia64/linux.mh (NATDEPFILES): Likewise.
136 * config/m32r/linux.mh (NATDEPFILES): Likewise.
137 * config/m68k/linux.mh (NATDEPFILES): Likewise.
138 * config/mips/linux.mh (NATDEPFILES): Likewise.
139 * config/pa/linux.mh (NATDEPFILES): Likewise.
140 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
141 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
142 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
143 * config/s390/linux.mh (NATDEPFILES): Likewise.
144 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
145 * config/sparc/linux.mh (NATDEPFILES): Likewise.
146 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
147 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
148 * defs.h: Remove #include <stdint.h> (moved to
149 common/common-defs.h).
150 * linux-nat.c: Include nat/linux-personality.h. Remove #include
151 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
152 nat/linux-personality.c).
153 (linux_nat_create_inferior): Remove code to disable address space
154 randomization (moved to nat/linux-personality.c). Create cleanup
155 to disable address space randomization.
156 * nat/linux-personality.c: New file.
157 * nat/linux-personality.h: Likewise.
159 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
161 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
162 common/posix-strerror.c.
163 (posix-strerror.o): New rule.
164 (mingw-strerror.o): Likewise.
165 * common/common-utils.h (safe_strerror): Move prototype to here,
167 * common/common.host: New file.
168 * common/mingw-strerror.c: Likewise.
169 * common/posix-strerror.c: Likewise.
170 * configure: Regenerated.
171 * configure.ac: Source common/common.host. Add variable
172 common_host_obs to gdb_host_obs.
173 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
174 gdb/common/posix-strerror.c when warning about the use of
176 * mingw-hdep.c (safe_strerror): Remove definition; move it to
177 common/mingw-strerror.c.
178 * posix-hdep.c (safe_strerror): Remove definition; move it to
180 * utils.h (safe_strerror): Remove prototype; move to
181 common/common-utils.h.
183 2015-01-15 Joel Brobecker <brobecker@adacore.com>
187 2015-01-15 Joel Brobecker <brobecker@adacore.com>
189 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
190 ___XA type if the array has already been fixed.
192 2015-01-14 Yao Qi <yao@codesourcery.com>
194 * Makefile.in (ppc-linux.o): New rule.
195 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
196 * configure.ac: AC_CHECK_FUNCS(getauxval).
197 * config.in: Re-generated.
198 * configure: Re-generated.
199 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
201 * nat/ppc-linux.c: New file.
202 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
203 Call ppc64_64bit_inferior_p.
205 2015-01-14 Yao Qi <yao@codesourcery.com>
207 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
209 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
210 (PPC_FEATURE_HAS_DFP): Likewise.
211 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
212 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
213 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
214 Include "nat/ppc-linux.h".
215 * nat/ppc-linux.h: New file.
216 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
218 2015-01-14 Pedro Alves <palves@redhat.com>
221 * breakpoint.c: Include "interps.h".
222 (bpstat_do_actions_1): Also check whether the interpreter is
225 2015-01-14 Pedro Alves <palves@redhat.com>
228 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
229 reinstall if the interpreter is sync.
231 2015-01-13 Doug Evans <dje@google.com>
233 * objfiles.c (objfile_filename): New function.
234 * objfiles.h (objfile_filename): Declare it.
235 (objfile_name): Add function comment.
236 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
237 bfd file name (which may be realpath'd), and the original name.
239 2015-01-13 Joel Brobecker <brobecker@adacore.com>
241 * NEWS: Create a new section for the next release branch.
242 Rename the section of the current branch, now that it has
245 2015-01-13 Joel Brobecker <brobecker@adacore.com>
247 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
248 * version.in: Bump version to 7.9.50.DATE-cvs.
250 2015-01-13 Joel Brobecker <brobecker@adacore.com>
252 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
253 Remove trailing new-line in argument of call to warning.
255 2015-01-13 Joel Brobecker <brobecker@adacore.com>
257 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
258 new-line in argument of call to "warning".
260 2015-01-13 Joel Brobecker <brobecker@adacore.com>
262 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
263 in static block, then try searching for primitive types.
265 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
267 * top.h (gdb_add_history): Declare.
268 * top.c (command_count): New variable.
269 (gdb_add_history): New function.
270 (gdb_safe_append_history): New static function.
271 (quit_force): Call it.
272 (command_line_input): Use gdb_add_history instead of
274 * event-top.c (command_line_handler): Likewise.
276 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
279 * darwin-nat.c: Replace <machine/setjmp.h> #include by
282 2015-01-11 Doug Evans <xdje42@gmail.com>
284 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
286 2015-01-11 Doug Evans <xdje42@gmail.com>
289 * NEWS: The "maint demangle" command is renamed as "demangle".
290 * demangle.c: #include cli/cli-utils.h, language.h.
291 (demangle_command): New function.
292 (_initialize_demangle): Add new command "demangle".
293 * maint.c (maintenance_demangle): Stub out.
294 (_initialize_maint_cmds): Update help text for "maint demangle",
295 and mark as deprecated.
297 2015-01-11 Mark Kettenis <kettenis@gnu.org>
299 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
300 inferior_thread is a function.
302 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
304 * Makefile.in (.y.c): Don't munge yacc's #line
307 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
309 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
311 * tui/tui-hooks.c (tui_query_hook): Remove.
312 (tui_install_hooks): Don't set deprecated_query_hook.
313 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
314 height calculation. Always update the command window's cur_line.
316 2015-01-09 Pedro Alves <palves@redhat.com>
318 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
320 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
322 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
323 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
325 (check_stopped_by_watchpoint): New function.
326 (save_sigtrap): Reimplement.
327 (linux_nat_stopped_by_watchpoint): Adjust.
328 (linux_nat_lp_status_is_event): Delete.
329 (stop_wait_callback): Only call save_sigtrap after storing the
331 (status_callback): If the thread had been stopped for a breakpoint
332 that has since been removed, discard the event and resume the LWP.
333 (count_events_callback, select_event_lwp_callback): Use
334 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
335 (cancel_breakpoint): Rename to ...
336 (check_stopped_by_breakpoint): ... this. Record whether the LWP
337 stopped for a software breakpoint or hardware breakpoint.
338 (select_event_lwp): Only give preference to the stepping LWP in
339 all-stop mode. Adjust comments.
340 (stop_and_resume_callback): Remove references to new_pending_p.
341 (linux_nat_filter_event): Likewise. Leave exit events of the
342 leader thread pending here. Handle signal short circuiting here.
343 Only call save_sigtrap after storing the pending waitstatus.
344 (linux_nat_wait_1): Remove 'retry' label. Remove references to
345 new_pending. Don't handle leaving events the caller is not
346 interested in pending here, nor handle signal short-circuiting
347 here. Also give equal priority to all LWPs that have had events
348 in non-stop mode. If reporting a software breakpoint event,
349 unadjust the LWP's PC.
350 * linux-nat.h (enum lwp_stop_reason): New.
351 (struct lwp_info) <stop_pc>: New field.
352 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
353 (struct lwp_info) <stop_reason>: New field.
354 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
356 2015-01-09 Pedro Alves <palves@redhat.com>
358 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
359 Set the LWP's 'resumed' flag.
361 2015-01-09 Pedro Alves <palves@redhat.com>
363 * linux-nat.c (linux_resume_one_lwp): New function.
364 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
365 (linux_nat_resume): Use lwp_status_pending_p and
366 linux_resume_one_lwp.
367 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
368 (linux_handle_extended_wait): Use linux_resume_one_lwp.
369 (status_callback, running_callback): Use lwp_status_pending_p.
370 (lwp_status_pending_p): New function.
371 (stop_and_resume_callback): Use lwp_status_pending_p.
372 (linux_nat_filter_event): Use linux_resume_one_lwp.
373 (linux_nat_wait_1): Always use status_callback to look for an LWP
374 with a pending status. Use linux_resume_one_lwp.
375 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
376 linux_resume_one_lwp.
378 2015-01-09 Pedro Alves <palves@redhat.com>
380 * breakpoint.c (bp_location_inserted_here_p): New function,
381 factored out from ...
382 (breakpoint_inserted_here_p): ... here. Use
383 ALL_BP_LOCATIONS_AT_ADDR.
384 (software_breakpoint_inserted_here_p): Use
385 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
387 2014-01-09 Pedro Alves <palves@redhat.com>
389 Skip enabling event reporting if the kernel supports
391 * linux-thread-db.c: Include "nat/linux-ptrace.h".
392 (thread_db_use_events): New function.
393 (try_thread_db_load_1): Check thread_db_use_events before enabling
395 (update_thread_state): New function.
396 (attach_thread): Use it. Check thread_db_use_events before
397 enabling event reporting.
398 (thread_db_detach): Check thread_db_use_events before disabling
400 (find_new_threads_callback): Check thread_db_use_events before
401 enabling event reporting. Update the thread's state if not using
404 2015-01-09 Pedro Alves <palves@redhat.com>
406 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
407 about to wait for is > 0.
408 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
409 the kernel thread ID is -1.
411 2015-01-09 Pedro Alves <palves@redhat.com>
413 * linux-nat.c (attach_proc_task_lwp_callback): New function.
414 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
415 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
417 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
419 * nat/linux-procfs.c: Include <dirent.h>.
420 (linux_proc_get_int): New parameter "warn". Handle it.
421 (linux_proc_get_tgid): Adjust.
422 (linux_proc_get_tracerpid): Rename to ...
423 (linux_proc_get_tracerpid_nowarn): ... this.
424 (linux_proc_pid_get_state): New function, factored out from
425 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
427 (linux_proc_pid_is_gone): New function.
428 (linux_proc_pid_is_stopped): Adjust.
429 (linux_proc_pid_is_zombie_maybe_warn)
430 (linux_proc_pid_is_zombie_nowarn): New functions.
431 (linux_proc_pid_is_zombie): Use
432 linux_proc_pid_is_zombie_maybe_warn.
433 (linux_proc_attach_tgid_threads): New function.
434 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
435 (linux_proc_get_tracerpid): Rename to ...
436 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
437 (linux_proc_pid_is_gone): New declaration.
438 (linux_proc_pid_is_zombie): Update comment.
439 (linux_proc_pid_is_zombie_nowarn): New declaration.
440 (linux_proc_attach_lwp_func): New typedef.
441 (linux_proc_attach_tgid_threads): New declaration.
442 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
443 use nowarn functions.
444 (linux_ptrace_attach_fail_reason_string): Move here from
445 gdbserver/linux-low.c and rename.
446 (ptrace_supports_feature): If the current ptrace options are not
447 known yet, check them now, instead of asserting.
448 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
451 2015-01-09 Pedro Alves <palves@redhat.com>
453 * linux-thread-db.c (thread_db_find_new_threads_silently)
454 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
455 (find_new_threads_once): Print debug output on gdb_stdlog.
457 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
458 Pedro Alves <palves@redhat.com>
460 * compile/compile.c: Include "gdb_wait.h".
461 (do_rmdir): Check return value, and free 'zap'.
463 2015-01-08 Pedro Alves <palves@redhat.com>
464 Yao Qi <yao@codesourcery.com>
466 * dwarf2loc.c (indirect_pieced_value): Don't call
467 gdb_sign_extend. Call extract_signed_integer instead.
468 * utils.c (gdb_sign_extend): Remove.
469 * utils.h (gdb_sign_extend): Remove declaration.
471 2015-01-07 Pierre Muller <muller@sourceware.org>
474 * stabsread.c (define_symbol): Set language for C++ special symbols.
476 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
478 * inflow.c (initial_gdb_ttystate): Tweak comment.
480 2015-01-07 Joel Brobecker <brobecker@adacore.com>
482 * inflow.c (set_initial_gdb_ttystate): Add empty line after
483 comment documenting function.
485 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
487 * terminal.h (set_initial_gdb_ttystate): Declare.
488 * inflow.c (initial_gdb_ttystate): New static variable.
489 (set_initial_gdb_ttystate): New setter.
490 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
491 instead of our current terminal state.
492 * top.c (gdb_init): Call set_initial_gdb_ttystate.
494 2015-01-07 Joel Brobecker <brobecker@adacore.com>
496 * guile/scm-type.c (tyscm_array_1): Add comment.
497 * python/py-type.c (typy_array_1): Add comment.
499 2015-01-06 Joel Brobecker <brobecker@adacore.com>
501 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
502 error if N2 is equal to N1 - 1.
504 2015-01-06 Joel Brobecker <brobecker@adacore.com>
506 * python/py-type.c (typy_array_1): Do not raise negative-length
507 exception if N2 is equal to N1 - 1.
509 2015-01-03 Doug Evans <xdje42@gmail.com>
511 * c-exp.y: Whitespace cleanup.
512 (classify_inner_name): Remove extra ;.
514 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
516 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
519 2015-01-02 Doug Evans <dje@google.com>
521 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
523 2015-01-02 Doug Evans <dje@google.com>
525 * symtab.h (struct symbol): Fix typo in comment.
527 2015-01-01 Joel Brobecker <brobecker@adacore.com>
529 Update year range in copyright notice of all files.
531 2015-01-01 Joel Brobecker <brobecker@adacore.com>
533 * top.c (print_gdb_version): Update copyright year to 2015.
535 2015-01-01 Joel Brobecker <brobecker@adacore.com>
537 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
539 For older changes see ChangeLog-2014.
545 version-control: never