c++/1976: cannot set a breakpoint on function when a struct type with the same name exist

hingwah@hingwah.net hingwah@hingwah.net
Tue Jul 26 07:58:00 GMT 2005


>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:



More information about the Gdb-prs mailing list