This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/493: linux inf funcall fails
- From: gin at mo dot msk dot ru
- To: gdb-gnats at sources dot redhat dot com
- Date: 17 Apr 2002 14:34:00 -0000
- Subject: gdb/493: linux inf funcall fails
- Reply-to: gin at mo dot msk dot ru
>Number: 493
>Category: gdb
>Synopsis: linux inf funcall fails
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 17 07:38:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: gin@mo.msk.ru
>Release: unknown-1.0
>Organization:
>Environment:
Linux . 2.2.19-7.1.asp #1 Tue Oct 23 10:14:04 EDT 2001 i686 unknown
gcc version 2.96 20000731 (ASPLinux 7.1 2.96-85.asp)
i686-pc-linux-gnu
>Description:
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.
>How-To-Repeat:
`print <function call>'
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: