This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Tru64 PATCH] PR target/22223: .frame vs. large stack frames
- From: Albert Chin <gcc-patches at mlists dot thewrittenword dot com>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- Date: Wed, 6 Sep 2006 15:45:45 -0500
- Subject: Re: [Tru64 PATCH] PR target/22223: .frame vs. large stack frames
- References: <Pine.LNX.4.44.0609010709060.14543-100000@www.eyesopen.com>
- Reply-to: gcc-patches at gcc dot gnu dot org
On Fri, Sep 01, 2006 at 07:40:01AM -0600, Roger Sayle wrote:
>
> ... This restriction is less severe than it may seem, as gdb has
> never worked well on this platform (breakpoints trigger segmentation
> faults);
Really? gdb-6.4 works on a really simple program:
$ cat a.c
#include <stdio.h>
#include <stdlib.h>
int
main (void) {
puts ("hello world");
exit (1);
}
$ gcc-3.4.3 -g a.c
$ gdb-6.4 a.out
GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "alphaev67-dec-osf5.1"...
(gdb) break main
Breakpoint 1 at 0x120001178: file a.c, line 6.
(gdb) run
Starting program: /cluster/members/member0/tmp/a.out
Breakpoint 1, main () at a.c:6
6 puts ("hello world");
(gdb) list
1 #include <stdio.h>
2 #include <stdlib.h>
3
4 int
5 main (void) {
6 puts ("hello world");
7 exit (1);
8 }
(gdb) continue
Continuing.
hello world
Program exited with code 01.
(gdb) quit
Of course, this doesn't mean gdb works "well" as this is a trivial
example.
--
albert chin (china@thewrittenword.com)