public inbox for
help / color / mirror / Atom feed
* insight/119: Can't set breakpoint at inline methods in header files
@ 2002-01-08  8:53 dedekind
  0 siblings, 0 replies; only message in thread
From: dedekind @ 2002-01-08  8:53 UTC (permalink / raw)
  To: insight-gnats; +Cc: vvv

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-01-08 16:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-08  8:53 insight/119: Can't set breakpoint at inline methods in header files dedekind

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).