This is the mail archive of the gdb-patches@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]

Re: [RFA] Assuming malloc exists in callfwmall.exp


Hi Keith,

The idea looks good, but I see an implementation bug.  On a native
platform with shared libraries, "p malloc" fails because shared library
symbols are not available until the program starts running.

I'm seeing this on Red Hat Linux 7 native, FSF cvs gcc dated 2001-02-12,
FSF cvs gdb dated 2001-02-12 with some patches applied.

Can you move your "p malloc" test after the call to "runto_main"?

Michael Elizabeth Chastain
<chastain@redhat.com>
"love without fear"

===

spawn /vittone/fsf/2001-02-12/gehman/build-src-native/gdb/testsuite/../../gdb/gdb -nw -nx ^M
GNU gdb 5.0^M
Copyright 2001 Free Software Foundation, Inc.^M
GDB is free software, covered by the GNU General Public License, and you are^M
welcome to change it and/or distribute copies of it under certain conditions.^M
Type "show copying" to see the conditions.^M
There is absolutely no warranty for GDB.  Type "show warranty" for details.^M
This GDB was configured as "i686-pc-linux-gnu".^M
(gdb) set height 0^M
(gdb) set width 0^M
(gdb) dir^M
Reinitialize source path to empty? (y or n) y^M
Source directories searched: $cdir:$cwd^M
(gdb) dir /vittone/fsf/2001-02-12/source-src/gdb/testsuite/gdb.base^M
Source directories searched: /vittone/fsf/2001-02-12/source-src/gdb/testsuite/gdb.base:$cdir:$cwd^M
(gdb) file /vittone/fsf/2001-02-12/gehman/build-src-native/gdb/testsuite/gdb.bas ^Me/callfwmall^M
Reading symbols from /vittone/fsf/2001-02-12/gehman/build-src-native/gdb/testsuite/gdb.base/callfwmall...done.^M
(gdb) set print sevenbit-strings^M
(gdb) PASS: gdb.base/callfwmall.exp: set print sevenbit-strings
set print address off^M
(gdb) PASS: gdb.base/callfwmall.exp: set print address off
set width 0^M
(gdb) PASS: gdb.base/callfwmall.exp: set width 0
p malloc^M
No symbol "malloc" in current context.^M


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