This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: gdb seg violation during print command
- To: David Cogen <cogen at ll dot mit dot edu>
- Subject: Re: gdb seg violation during print command
- From: Daniel Berlin <dan at cgsoftware dot com>
- Date: Thu, 4 May 2000 14:20:19 -0700 (PDT)
- cc: kettenis at wins dot uva dot nl, gdb at sourceware dot cygnus dot com, cogen at poblano
And i don't
Breakpoint 1, main () at a.c:11
11 cout << "1\n";
Current language: auto; currently c++
(gdb) p tt
tt tteesstt11(int) ttyname
(gdb) p tteesstt11(1)
------ Arg is int [7], parm is int [7]
Overloaded function instance tteesstt11(int) # of parms 1
...Badness @ 0 : 0
...Badness @ 1 : 0
Overload resolution champion is 0, ambiguous? 0
$1 = 4
(gdb)
I can almost guarantee this is not a gdb bug.
Compiled with both dwarf2 debug info, and stabs debug info, it works fine
on BeOS and linux.
On Thu, 4 May 2000, David Cogen wrote:
> > Try adding a line or three to main that do nothing.
>
> Like this?
>
> #include <iostream>
>
> int tteesstt11 (int)
> {
> cerr << "\n";
> return 4;
> }
>
> int main ()
> {
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> cout << "1\n";
> }
>
>
> I set my break on the first cout in main. When I print tteesstt11(1) I still
> get the debugger seg violation.
>
> -- DavidC
>