This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: TUI + gdbserver broken?


Sorry I originaly post this mail on gdb-patches mailing list!

Pedro Alves wrote:
Hi,

TUI + gdbserver seems to be broken on head.  Can't reproduce when
TUI + native debugging.

As far as the TUI is concerned:
It's broken with Solaris Native debugging.
I've spent a few hours debugging that problem but I have not solution yet !!
I also tried using deprecated_get_selected_frame without any better
results :(

This problem is present in the CVS HEAD but also in the 6.6 released
version, so I don't think it comes from recent changes.

--
Denis

P.S. here is the backtrace I got in the native solaris TUI
Program received signal SIGTTIN, Stopped (tty
input).
Line: ?? PC: 0xff3a3958
0xff19e880 in _read () from /usr/lib/libc.so.1
(gdb) btto change it and/or distribute copies of it under certain
conditions.
#0 0xff19e880 in _read () from /usr/lib/libc.so.1
#1 0xff33da4c in _chkinput () from /usr/lib/libcurses.so.1ty" for details.
#2 0xff34e680 in wrefresh () from /usr/lib/libcurses.so.1
#3 0x00095628 in tui_refresh_win (win_info=0x2e73c4)
at
/project/flexdbug/user/pd10/gdb/sts-gdb-repository/vendor/cvs/head/src/gdb/tui/tui-wingeneral.c:63testsuite/gdb.base/break.c,


line 90.
#4 0x00092b18 in tui_show_locator_content () at
/project/flexdbug/user/pd10/gdb/sts-gdb-repository/vendor/cvs/head/src/gdb/tui/tui-stack.c:261
#5 0x00092db8 in tui_show_frame_info
(fi=0x317890)uild-sts-gdb-repository/cvshead-sol8/gdb/testsuite/gdb.base/break
at
/project/flexdbug/user/pd10/gdb/sts-gdb-repository/vendor/cvs/head/src/gdb/tui/tui-stack.c:341
#6 0x0008e6bc in tui_selected_frame_level_changed_hook (level=0)
at
/project/flexdbug/user/pd10/gdb/sts-gdb-repository/vendor/cvs/head/src/gdb/tui/tui-hooks.c:249
#7 0x0016a4f8 in select_frame (fi=0x317890) at
/project/flexdbug/user/pd10/gdb/sts-gdb-repository/vendor/cvs/head/src/gdb/frame.c:986
#8 0x0016a3bc in get_selected_frame (message=0x0) at
/project/flexdbug/user/pd10/gdb/sts-gdb-repository/vendor/cvs/head/src/gdb/frame.c:956
#9 0x0016a48c in deprecated_safe_get_selected_frame ()
at
/project/flexdbug/user/pd10/gdb/sts-gdb-repository/vendor/cvs/head/src/gdb/frame.c:972
#10 0x0008e684 in tui_selected_frame_level_changed_hook (level=-1)
at
/project/flexdbug/user/pd10/gdb/sts-gdb-repository/vendor/cvs/head/src/gdb/tui/tui-hooks.c:233
#11 0x0016a4f8 in select_frame (fi=0x0) at
/project/flexdbug/user/pd10/gdb/sts-gdb-repository/vendor/cvs/head/src/gdb/frame.c:986
#12 0x0016a80c in reinit_frame_cache () at
/project/flexdbug/user/pd10/gdb/sts-gdb-repository/vendor/cvs/head/src/gdb/frame.c:1086
#13 0x000d66e8 in handle_inferior_event (ecs=0xffbee0a0)
at
/project/flexdbug/user/pd10/gdb/sts-gdb-repository/vendor/cvs/head/src/gdb/infrun.c:1306
#14 0x000d5f38 in wait_for_inferior () at
/project/flexdbug/user/pd10/gdb/sts-gdb-repository/vendor/cvs/head/src/gdb/infrun.c:1007
#15 0x00177020 in startup_inferior (ntraps=2) at
/project/flexdbug/user/pd10/gdb/sts-gdb-repository/vendor/cvs/head/src/gdb/fork-child.c:435
#16 0x00063bc0 in procfs_init_inferior (pid=3577048)
at
/project/flexdbug/user/pd10/gdb/sts-gdb-repository/vendor/cvs/head/src/gdb/procfs.c:4872
#17 0x00176fa4 in fork_inferior (
exec_file_arg=0x340418
"/project/flexdbug/user/pd10/gdb/build-sts-gdb-repository/cvshead-sol8/gdb/testsuite/gdb.base/break",
allargs=0x327008 "", env=0x30bdd8, traceme_fun=0x63bcc
<procfs_set_exec_trap>, init_trace_fun=0x63940 <procfs_init_inferior>,
pre_trace_fun=0, shell_file_arg=0xffbef892 "/bin/tcsh")
at
/project/flexdbug/user/pd10/gdb/sts-gdb-repository/vendor/cvs/head/src/gdb/fork-child.c:396
#18 0x00063ebc in procfs_create_inferior (
exec_file=0x340418
"/project/flexdbug/user/pd10/gdb/build-sts-gdb-repository/cvshead-sol8/gdb/testsuite/gdb.base/break",
allargs=0x327008 ""Quit
) at
/project/flexdbug/user/pd10/gdb/sts-gdb-repository/vendor/cvs/head/src/gdb/procfs.c:5101
#19 0x0008b640 in sol_thread_create_inferior (
exec_file=0x340418
"/project/flexdbug/user/pd10/gdb/build-sts-gdb-repository/cvshead-sol8/gdb/testsuite/gdb.base/break",
allargs=0x327008 "", env=0x30bdd8, from_tty=1)
at
/project/flexdbug/user/pd10/gdb/sts-gdb-repository/vendor/cvs/head/src/gdb/sol-thread.c:758
#20 0x000fdaec in find_default_create_inferior (
exec_file=0x340418
"/project/flexdbug/user/pd10/gdb/build-sts-gdb-repository/cvshead-sol8/gdb/testsuite/gdb.base/break",
allargs=0x327008 "", env=0x30bdd8, from_tty=1) at
/project/flexdbug/user/pd10/gdb/sts-gdb-repository/vendor/cvs/head/src/gdb/target.c:1768
#21 0x000d2724 in run_command_1 (args=0x0, from_tty=1, tbreak_at_main=0)
at
/project/flexdbug/user/pd10/gdb/sts-gdb-repository/vendor/cvs/head/src/gdb/infcmd.c:558
#22 0x0007cb74 in do_cfunc (c=0x30b978,
args=0x340418
"/project/flexdbug/user/pd10/gdb/build-sts-gdb-repository/cvshead-sol8/gdb/testsuite/gdb.base/break",


from_tty=1)
   at
/project/flexdbug/user/pd10/gdb/sts-gdb-repository/vendor/cvs/head/src/gdb/cli/cli-decode.c:62



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]