This is the mail archive of the gdb-prs@sources.redhat.com 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]

gdb/1473: calling functions in a statically linked binary fails


>Number:         1473
>Category:       gdb
>Synopsis:       calling functions in a statically linked binary fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 03 08:58:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     wim.yedema@philips.com
>Release:        unknown-1.0
>Organization:
>Environment:
Linux
>Description:
Calling any function in a statically linked binary fails, even  in hello world
>How-To-Repeat:
% gcc -g -static hello.c -o hello
% gdb hello
GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) b main
Breakpoint 1 at 0x8048200: file hello.c, line 5.
(gdb) r
Starting program: /home/yedema/bench/hello

Breakpoint 1, main () at hello.c:5
5         printf("Hello world!\n");
(gdb) call printf("foobar\n")

Breakpoint 1, main () at hello.c:5
5         printf("Hello world!\n");
The program being debugged stopped while in a function called from GDB.
When the function (malloc) is done executing, GDB will silently
stop (instead of continuing to evaluate the expression containing
the function call).
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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