Rubuy 1.8.0 preview2 debug doesn't stop at breakpoints

Howdy,

I’m using Ruby 1.8.0 preview2 and the ‘debug’ module does not stop at
breakpoints.

OS: Solaris 2.6 & 8 (ruby built on Solaris 2.6)
Ruby: 1.8.0 preview2 with ‘supplementation’

Here is a sample source file and debugging session:

— source (/tmp/foo.rb) —
#!/usr/sepp/bin/ruby-1.6.8preview2

···

CC: gcc-3.2.1

p 1
p 2
p 3
p 4
p 5

exit 0

— debugging session —
/usr/sepp/bin/ruby-1.8.0preview2 -r debug /tmp/foo.rb
Debug.rb
Emacs support available.

/tmp/foo.rb:3:p 1
(rdb:1) l
[-2, 7] in /tmp/foo.rb
1
2 #
=> 3 p 1
4 p 2
5 p 3
6 p 4
7 p 5
(rdb:1) b 5
Set breakpoint 1 at foo.rb:5
(rdb:1) c
1
2
3
4
5

As you can see the debugger failed to stop at the breakpoint I set.

Any help/guidance will be greatly appreciated.

Thanks,

Jeff.

Jeff Putsch Email: putsch@mxim.com
Maxim Integrated Products Office: (503)547-2037
High Frequency CAD Engineering

this is fixed in the snapshot

···

On Thursday 13 March 2003 11:42 am, Jeff Putsch wrote:

Howdy,

I’m using Ruby 1.8.0 preview2 and the ‘debug’ module does not stop at
breakpoints.

OS: Solaris 2.6 & 8 (ruby built on Solaris 2.6)
CC: gcc-3.2.1
Ruby: 1.8.0 preview2 with ‘supplementation’

Here is a sample source file and debugging session:

— source (/tmp/foo.rb) —
#!/usr/sepp/bin/ruby-1.6.8preview2

p 1
p 2
p 3
p 4
p 5

exit 0

— debugging session —
/usr/sepp/bin/ruby-1.8.0preview2 -r debug /tmp/foo.rb
Debug.rb
Emacs support available.

/tmp/foo.rb:3:p 1
(rdb:1) l
[-2, 7] in /tmp/foo.rb
1
2 #
=> 3 p 1
4 p 2
5 p 3
6 p 4
7 p 5
(rdb:1) b 5
Set breakpoint 1 at foo.rb:5
(rdb:1) c
1
2
3
4
5

As you can see the debugger failed to stop at the breakpoint I set.

Any help/guidance will be greatly appreciated.

Thanks,

Jeff.


Seth Kurtzberg
M. I. S. Corp.
480-661-1849
seth@cql.com

this is fixed in the snapshot

Unfortunately, not in the 2003-03-12 snapshot on Solaris 2.6 :frowning:

$ ruby -v
ruby 1.8.0 (2003-03-12) [sparc-solaris2.6]

Compiled with gcc-3.2.1

Jeff.

···

On Fri, Mar 14, 2003 at 03:53:20AM +0900, Seth Kurtzberg wrote:

On Thursday 13 March 2003 11:42 am, Jeff Putsch wrote:

Howdy,

I’m using Ruby 1.8.0 preview2 and the ‘debug’ module does not stop at
breakpoints.

OS: Solaris 2.6 & 8 (ruby built on Solaris 2.6)
CC: gcc-3.2.1
Ruby: 1.8.0 preview2 with ‘supplementation’

Here is a sample source file and debugging session:

— source (/tmp/foo.rb) —
#!/usr/sepp/bin/ruby-1.6.8preview2

p 1
p 2
p 3
p 4
p 5

exit 0

— debugging session —
/usr/sepp/bin/ruby-1.8.0preview2 -r debug /tmp/foo.rb
Debug.rb
Emacs support available.

/tmp/foo.rb:3:p 1
(rdb:1) l
[-2, 7] in /tmp/foo.rb
1
2 #
=> 3 p 1
4 p 2
5 p 3
6 p 4
7 p 5
(rdb:1) b 5
Set breakpoint 1 at foo.rb:5
(rdb:1) c
1
2
3
4
5

As you can see the debugger failed to stop at the breakpoint I set.

Any help/guidance will be greatly appreciated.

Thanks,

Jeff.


Seth Kurtzberg
M. I. S. Corp.
480-661-1849
seth@cql.com


Jeff Putsch Email: putsch@mxim.com
Maxim Integrated Products Office: (503)547-2037
High Frequency CAD Engineering

I’m using the March 4 snapshot. I’ll check the newer one and see if it works
for me. I did see the problem before the March 4 snapshot, so it may not
work with Solaris or the bug may have crept back into the snapshot.

···

On Friday 14 March 2003 10:19 am, Jeff Putsch wrote:

On Fri, Mar 14, 2003 at 03:53:20AM +0900, Seth Kurtzberg wrote:

this is fixed in the snapshot

Unfortunately, not in the 2003-03-12 snapshot on Solaris 2.6 :frowning:

$ ruby -v
ruby 1.8.0 (2003-03-12) [sparc-solaris2.6]

Compiled with gcc-3.2.1

Jeff.

On Thursday 13 March 2003 11:42 am, Jeff Putsch wrote:

Howdy,

I’m using Ruby 1.8.0 preview2 and the ‘debug’ module does not stop at
breakpoints.

OS: Solaris 2.6 & 8 (ruby built on Solaris 2.6)
CC: gcc-3.2.1
Ruby: 1.8.0 preview2 with ‘supplementation’

Here is a sample source file and debugging session:

— source (/tmp/foo.rb) —
#!/usr/sepp/bin/ruby-1.6.8preview2

p 1
p 2
p 3
p 4
p 5

exit 0

— debugging session —
/usr/sepp/bin/ruby-1.8.0preview2 -r debug /tmp/foo.rb
Debug.rb
Emacs support available.

/tmp/foo.rb:3:p 1
(rdb:1) l
[-2, 7] in /tmp/foo.rb
1
2 #
=> 3 p 1
4 p 2
5 p 3
6 p 4
7 p 5
(rdb:1) b 5
Set breakpoint 1 at foo.rb:5
(rdb:1) c
1
2
3
4
5

As you can see the debugger failed to stop at the breakpoint I set.

Any help/guidance will be greatly appreciated.

Thanks,

Jeff.


Seth Kurtzberg
M. I. S. Corp.
480-661-1849
seth@cql.com


Seth Kurtzberg
M. I. S. Corp.
480-661-1849
seth@cql.com

Unfortunately, not in the 2003-03-12 snapshot on Solaris 2.6 :frowning:

Well, your Solaris is broken

nasun% ./ruby -v -rdebug b.rb
ruby 1.8.0 (2003-03-12) [sparc-solaris2.8]
Debug.rb
Emacs support available.

b.rb:3: p 1
(rdb:1) b 5
Set breakpoint 1 at b.rb:5
(rdb:1) c
1
2
Breakpoint 1, toplevel at b.rb:5
b.rb:5: p 3
(rdb:1) c
3
4
5
nasun%

nasun% gcc -v
Reading specs from /opt/gcc/lib/gcc-lib/sparc-sun-solaris2.8/3.2/specs
Configured with: ../gcc-3.2/configure --prefix=/opt/gcc
Thread model: posix
gcc version 3.2
nasun%

Compiled with gcc-3.2.1

Do your gcc use Sun ld and Sun as ?

Guy Decoux

Unfortunately, not in the 2003-03-12 snapshot on Solaris 2.6 :frowning:

Well, your Solaris is broken

Thanks for the helpful answer, if only you would tell me what part of
my Solaris is broken :slight_smile:

nasun% gcc -v
Reading specs from /opt/gcc/lib/gcc-lib/sparc-sun-solaris2.8/3.2/specs
Configured with: …/gcc-3.2/configure --prefix=/opt/gcc
Thread model: posix
gcc version 3.2
nasun%

That looks like a GCC built for and running on Solaris 8, not one built
for and runninig on Solaris 2.6. We use GCC built for Solaris 2.6, build
on 2.6 and run Ruby on both 2.6 and 8.

Do your gcc use Sun ld and Sun as ?

Yes.

Jeff.

···

On Sat, Mar 15, 2003 at 08:22:40PM +0900, ts wrote:

Jeff Putsch Email: putsch@mxim.com
Maxim Integrated Products Office: (503)547-2037
High Frequency CAD Engineering