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

Re: [Tru64 PATCH] PR target/22223: .frame vs. large stack frames

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>

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>
4       int
5       main (void) {
6         puts ("hello world");
7         exit (1);
8       }
(gdb) continue
hello world

Program exited with code 01.
(gdb) quit

Of course, this doesn't mean gdb works "well" as this is a trivial

albert chin (

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