This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
win32/1772: GDB Crashes with function address parameters
- From: ccvural at yahoo dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 3 Sep 2004 10:27:45 -0000
- Subject: win32/1772: GDB Crashes with function address parameters
- Reply-to: ccvural at yahoo dot com
>Number: 1772
>Category: win32
>Synopsis: GDB Crashes with function address parameters
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri Sep 03 10:28:01 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: ccvural@yahoo.com
>Release: Tested with 5.1, 5.2.1, 5.3, 6.0,6.1
>Organization:
>Environment:
Win32 (Win98, WinME and WinXP), Cygwin , MinGW
>Description:
Here is a simple program seems to my program.
Kernel function takes some function's addresses and call
them.
// int kernel (int (*) (void), int (*) (void), int (*) (void));
//
// int func_01 (void);
// int func_02 (void);
// int func_03 (void);
//
// int main ()
// {
// kernel (func_01, func_02, func_03);
// }
//
// int kernel (int f_01(void), int f_02(void), int f_03(void))
// {
// f_01();
// f_02();
// f_03();
// }
//
// int func_01 ()
// {
// return 1;
// }
//
// int func_02 ()
// {
// return 2;
// }
//
// int func_03 ()
// {
// return 3;
// }
//
When i trace my program step by step there is no problem. But if set a breakpoint in a function and want to stop at
that function , GDB crashes. But sometimes it works fine.
I tested with both of the mingw and cygwin environments.
And with GDB 5.1, 5.1.1, 5.2.1, 5.3, 6.0,6.1. With GVD, with DDD 3.3.9 and Insight 5.1,5.2.1 and 6.1(build from sources).
Regards
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: