public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Re: Fwd: Two possible function stabs patches
@ 2003-07-30  5:47 Michael Elizabeth Chastain
  2003-07-30 21:43 ` Geoffrey Keating
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Elizabeth Chastain @ 2003-07-30  5:47 UTC (permalink / raw)
  To: drow, gcc-patches, gdb, geoffk

First patch:

  no regressions in gdb test suite output
  no improvements, either
  native i686-pc-linux-gnu
  red hat linux 8
  binutils 2.14
  -gstabs+

Second patch:

  still running ...

My test bed deletes the build directories for gcc after it builds
each gcc, so I got to do a little extra build-from-scratch
this evening.  Argh.

Michael C

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: Two possible function stabs patches
@ 2003-07-30 22:29 Michael Elizabeth Chastain
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Elizabeth Chastain @ 2003-07-30 22:29 UTC (permalink / raw)
  To: geoffk; +Cc: drow, gcc-patches, gdb

Geoff K suggests:

  int main(void)
  {
     static int foo(void)  { return 1; }
     return foo() == 1 ? 0 : 1;
  }

  break foo

Hmmmm.  I'll bet that this would be the first code in the test
suite with nested functions.  It is a supported gcc feature,
so that would be good to test.  We'll probably generate a bunch
of new KFAILs with this.

I'll put this on my TODO list, but I have to postpone this until
after the gdb 6.0 release.  It's a question of tuits.

Michael C

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: Fwd: Two possible function stabs patches
@ 2003-07-30 14:18 Andrew Cagney
  2003-08-01 22:36 ` Geoffrey Keating
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Cagney @ 2003-07-30 14:18 UTC (permalink / raw)
  To: Geoffrey Keating
  Cc: Michael Elizabeth Chastain, gcc-patches, gdb, Daniel Jacobowitz

> Oops!  Forgot to attach the actual patches.  Fixed below.
> 
> 
> OK, so I have not one, but two patches!

Um, these appear to come with a little history (Solaris perhaphs?).  Can 
you provide a bit of a background?  You'll likely also want to add 
something to the GNU stabs document found in the GDB distro.

> The first one is less interesting.  It uses the language's name for the function, unless it's a C++ function, in which case it uses the (mangled) assembler name.  It'll give a stab like
> 
>         .stabs  "__ZN3bar3fooEv:F(0,1)",36,0,2,__ZN3bar3fooEv
> or
>         .stabs  "foo:F(0,1)",36,0,2,foo.11
> 
> The second one uses the 'printable name' for the function.  That is, for C it's just the name, and for C++ it's the demangled version of its name.  I am not at all sure it'll work, because it gives stabs like:
> 
>         .stabs  "int bar::foo():F(0,1)",36,0,2,__ZN3bar3fooEv
> 
> which I suspect can't be parsed.
> 
> Could someone help me test these?  It needs a machine that can use stabs and on which the GDB testsuite doesn't give too many false positives. 

I'd strongly encourage you to install GNU/Linux and *BSD on a couple 
local old/slow Mac boxes.  It will make testing a lot easier.

enjoy,
Andrew


^ permalink raw reply	[flat|nested] 5+ messages in thread
* Two possible function stabs patches
@ 2003-07-30  1:05 Geoffrey Keating
  0 siblings, 0 replies; 5+ messages in thread
From: Geoffrey Keating @ 2003-07-30  1:05 UTC (permalink / raw)
  To: Michael Elizabeth Chastain, gcc-patches, gdb, # Daniel Jacobowitz

OK, so I have not one, but two patches!

The first one is less interesting.  It uses the language's name for the 
function, unless it's a C++ function, in which case it uses the 
(mangled) assembler name.  It'll give a stab like

         .stabs  "__ZN3bar3fooEv:F(0,1)",36,0,2,__ZN3bar3fooEv
or
         .stabs  "foo:F(0,1)",36,0,2,foo.11

The second one uses the 'printable name' for the function.  That is, 
for C it's just the name, and for C++ it's the demangled version of its 
name.  I am not at all sure it'll work, because it gives stabs like:

         .stabs  "int bar::foo():F(0,1)",36,0,2,__ZN3bar3fooEv

which I suspect can't be parsed.

Could someone help me test these?  It needs a machine that can use 
stabs and on which the GDB testsuite doesn't give too many false 
positives.

-- 
Geoff Keating <geoffk@apple.com>

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

end of thread, other threads:[~2003-08-01 22:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-30  5:47 Fwd: Two possible function stabs patches Michael Elizabeth Chastain
2003-07-30 21:43 ` Geoffrey Keating
  -- strict thread matches above, loose matches on Subject: below --
2003-07-30 22:29 Michael Elizabeth Chastain
2003-07-30 14:18 Fwd: " Andrew Cagney
2003-08-01 22:36 ` Geoffrey Keating
2003-07-30  1:05 Geoffrey Keating

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