This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
c++/1976: cannot set a breakpoint on function when a struct type with the same name exist
- From: hingwah at hingwah dot net
- To: gdb-gnats at sources dot redhat dot com
- Date: 26 Jul 2005 07:54:40 -0000
- Subject: c++/1976: cannot set a breakpoint on function when a struct type with the same name exist
- Reply-to: hingwah at hingwah dot net
>Number: 1976
>Category: c++
>Synopsis: cannot set a breakpoint on function when a struct type with the same name exist
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jul 26 07:58:00 UTC 2005
>Closed-Date:
>Last-Modified:
>Originator: hingwah@hingwah.net
>Release: 6.3
>Organization:
>Environment:
Debian unstable on i686
>Description:
when I try to set a breakpoint on function like sigaction, a error "sigaction" is not a fuction occur , due to a type definition of "struct sigaction" exist.
No problem when the debugged program is written in C ( as in C++ the struct keyword is optional when refering to the type).
Trying to do "set language c" first when debugging c++ program
doesn't help.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: