This is the mail archive of the gdb-prs@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]
Other format: [Raw text]

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


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


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