public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug breakpoints/16880] New: GDB does not step into template functions OS X Mavericks
@ 2014-04-28 23:32 vsoftco at gmail dot com
  2014-04-28 23:39 ` [Bug breakpoints/16880] " vsoftco at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: vsoftco at gmail dot com @ 2014-04-28 23:32 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=16880

            Bug ID: 16880
           Summary: GDB does not step into template functions OS X
                    Mavericks
           Product: gdb
           Version: 7.7
            Status: NEW
          Severity: normal
          Priority: P2
         Component: breakpoints
          Assignee: unassigned at sourceware dot org
          Reporter: vsoftco at gmail dot com

Hi,

I am using gdb on OS X Mavericks, and whenever I try to step in a template
function, gdb steps over (same when I set a breakpoint inside a template
function, it is never reached, as if the breakpoint does not exist). This
happens for even the simplest template functions defined inside of main.cpp. My
target OS is OS X Mavericks, I used both gdb 7.6 and gdb 7.7, same behaviour. I
tried it on more than one machine that runs Mavericks.

I also tried using various versions of g++ (4.7, 4.8, 4.9) to compile my
program. I also tried to use -fno-inline option when compiling, still same
thing...

Under any other OS (Linux/Windows/Solaris), gdb steps in template functions. It
seems to be a problem related to OS X Mavericks.

Thanks!

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug breakpoints/16880] GDB does not step into template functions OS X Mavericks
  2014-04-28 23:32 [Bug breakpoints/16880] New: GDB does not step into template functions OS X Mavericks vsoftco at gmail dot com
@ 2014-04-28 23:39 ` vsoftco at gmail dot com
  2014-04-28 23:41 ` vsoftco at gmail dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: vsoftco at gmail dot com @ 2014-04-28 23:39 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=16880

--- Comment #1 from vsoftco at gmail dot com ---
Created attachment 7565
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7565&action=edit
simple main.cpp file with template function in line 16

When trying to step into template function f<int>(12) on line 16, gdb just
steps over. If f is non-templated, everything works as it is supposed to, i.e.
steps into f. Target OS: OS X Mavericks, g++-(4.7,4.8,4.9) gdb-(7.6,7.7)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug breakpoints/16880] GDB does not step into template functions OS X Mavericks
  2014-04-28 23:32 [Bug breakpoints/16880] New: GDB does not step into template functions OS X Mavericks vsoftco at gmail dot com
  2014-04-28 23:39 ` [Bug breakpoints/16880] " vsoftco at gmail dot com
@ 2014-04-28 23:41 ` vsoftco at gmail dot com
  2014-04-28 23:42 ` vsoftco at gmail dot com
  2014-05-03 21:55 ` vsoftco at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: vsoftco at gmail dot com @ 2014-04-28 23:41 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=16880

--- Comment #2 from vsoftco at gmail dot com ---
I have also compiled gdb from source (instead of using the macports version),
again no ability of stepping in template functions.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug breakpoints/16880] GDB does not step into template functions OS X Mavericks
  2014-04-28 23:32 [Bug breakpoints/16880] New: GDB does not step into template functions OS X Mavericks vsoftco at gmail dot com
  2014-04-28 23:39 ` [Bug breakpoints/16880] " vsoftco at gmail dot com
  2014-04-28 23:41 ` vsoftco at gmail dot com
@ 2014-04-28 23:42 ` vsoftco at gmail dot com
  2014-05-03 21:55 ` vsoftco at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: vsoftco at gmail dot com @ 2014-04-28 23:42 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=16880

vsoftco at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |7.7

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug breakpoints/16880] GDB does not step into template functions OS X Mavericks
  2014-04-28 23:32 [Bug breakpoints/16880] New: GDB does not step into template functions OS X Mavericks vsoftco at gmail dot com
                   ` (2 preceding siblings ...)
  2014-04-28 23:42 ` vsoftco at gmail dot com
@ 2014-05-03 21:55 ` vsoftco at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: vsoftco at gmail dot com @ 2014-05-03 21:55 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=16880

--- Comment #3 from vsoftco at gmail dot com ---
If I compile the program with g++ -fno-weak flag, then GDB steps inside
templated functions. However, -fno-weak seems to be a deprecated flag, used by
g++ to force non-weak symbol tables.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-05-03 21:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-28 23:32 [Bug breakpoints/16880] New: GDB does not step into template functions OS X Mavericks vsoftco at gmail dot com
2014-04-28 23:39 ` [Bug breakpoints/16880] " vsoftco at gmail dot com
2014-04-28 23:41 ` vsoftco at gmail dot com
2014-04-28 23:42 ` vsoftco at gmail dot com
2014-05-03 21:55 ` vsoftco at gmail dot com

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).