Version: 5.1.1
Host: i686-pc-linux-gnu, kernel 2.2.19, glibc 2.2.4

Every call of a function in an inferior process fails.  Just before
printing `program no longer exists' the state of gdb looks like this.

ecs->ws = {kind = TARGET_WAITKIND_SIGNALLED, value = {integer = 11, 
    sig = TARGET_SIGNAL_SEGV, related_pid = 11, 
    execd_pathname = 0xb <Address 0xb out of bounds>, syscall_id = 11}}

#0  handle_inferior_event (ecs=0xbfffef30) at ../../gdb-5.1.1/gdb/infrun.c:1588
#1  0x0808b2a6 in wait_for_inferior () at ../../gdb-5.1.1/gdb/infrun.c:1264
#2  0x0808b0c2 in proceed (addr=3221223836, siggnal=TARGET_SIGNAL_0, step=0)
    at ../../gdb-5.1.1/gdb/infrun.c:1060
#3  0x080892e3 in run_stack_dummy (addr=3221223836, buffer=0xbffff070 "Ču")
    at ../../gdb-5.1.1/gdb/infcmd.c:911
#4  0x08074a9b in hand_function_call (function=0x84ee798, nargs=1, 
    args=0xbffff294) at ../../gdb-5.1.1/gdb/valops.c:1661
#5  0x08071186 in evaluate_subexp_standard (expect_type=0x0, exp=0x82d1600, 

Constructing function calls manually (using `set va', 'j', and `b
<where function should return>') works.

Since many other features of gdb work normally, I am able to retrieve
further information about gdb state while trying to call function in
an inferior process.  Will do so on request.

_______________________________________________
Bug-gdb mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gdb

Reply via email to