Hi,

With gdb 5.0 I have a problem when calling functions in the program
from within the debugger.  I get the error message :
"Unable to find minimal symbol for target function."

Does anybody know about a workaround or patch for this problem ?

Thanx,

Xaf.


a dummy program :

// ****************************************************
#include <iostream.h>

const char dummy[] = "dfjksdfksjdfls";

void myfunc(const char *val)
{
  cerr << val << endl;
}

int main()
{
  return 0;
}
// ****************************************************



The gdb output :

elsacker@satan> gdb-5.0 a.out
GNU gdb 5.0
Copyright 2000 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 "hppa1.1-hp-hpux10.20"...
(gdb) b main
b main
Breakpoint 1 at 0x3810: file test.cc, line 12.
(gdb) run
run
Starting program: /tmp/a.out 
warning: Unable to find __d_pid symbol in object file.
warning: Suggest linking with /opt/langtools/lib/end.o.
warning: GDB will be unable to track shl_load/shl_unload calls

Breakpoint 1, main () at test.cc:12
12        return 0;
(gdb) call myfunc(dummy)
call myfunc(dummy)
dfjksdfksjdfls
(gdb) call myfunc("sdfsdf")
call myfunc("sdfsdf")
Unable to find minimal symbol for target function.

(gdb)

Reply via email to