This is the mail archive of the mailing list for the Insight 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]

insight/119: Can't set breakpoint at inline methods in header files

>Number:         119
>Category:       insight
>Synopsis:       Can't set breakpoint at inline methods in header files
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 08 08:53:01 PST 2002
>Release:        insight-5.1
host: RedHat 7.1, cygwin
target: h8300-hms
Should appear on other host/target pair too.
insight-5.1 don't allow to set breakpoint on some inline 
methods, whoes bodies placed in class declaration in
header file. 

Here is some ideas why this error occurs:

1. There are several 'symtab' structures for the same header
file may exists - one for each .cpp source which includes 
this header. Therefore, each symtab contains some piece of
full information about this header file (depending on
context some information may be omitted, e.g. because
function is not used). Therefore we need to 
read all these symtabs, not first only, as  it is
implemented in <insight-5.1>/gdb/gdbtk/generic/gdbtk-cmds.c,
function gdb_loadfile.

2. When gdb_loadfile invoked for header file, we need to
know, that all symtab structures for this header already

But in current version of gdb_loadfile  
linetable built for first symtab only. Later, another symtab
may appear in some conditions (when other sources are loaded).
1. Compile attached test.
2. Load it in insight
3. See, that you can't set breakpoint at one of funnctions
   set_a() or set_b() in example.h (by mouse pointer)
I have make ugly fix, but it seems it should be done more
Content-Type: application/octet-stream; name="exampl.tgz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="exampl.tgz"


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