[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3829: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3831: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3832: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3833: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
lxdream.org :: Forums :: View topic - lxdream with gdb
lxdream.org :: Forums :: View topic - lxdream with gdb
lxdream 0.9.1
released Jun 29
Download Now
It is currently Mon Nov 04, 2024 8:03 pm

All times are UTC




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: lxdream with gdb
PostPosted: Fri Aug 13, 2010 10:16 pm 
Offline

Joined: Sun Sep 27, 2009 4:21 pm
Posts: 14
hi! i've read that lxdream now supports gdb debugging, so i'm trying to use this feature, but i'm unable to do it. I've tried the following:

lxdream -g 2000

sh-elf-gdb test.elf
target remote localhost:2000


but it says that the connection was reset by peer. ¿am i doing it wrong? thanks


Top
 Profile  
 
 Post subject: Re: lxdream with gdb
PostPosted: Mon Aug 23, 2010 9:28 pm 
Offline
Admin

Joined: Mon Jun 26, 2006 9:47 pm
Posts: 293
Well it works for me 8)

You probably need to do
lxdream -n test.elf -g 2000

to actually load the program, but either way gdb should still connect. What platform are you running on? (and which version of gdb are you using?)

Cheers,
Nathan


Top
 Profile  
 
 Post subject: Re: lxdream with gdb
PostPosted: Sun Aug 29, 2010 6:46 pm 
Offline

Joined: Sun Sep 27, 2009 4:21 pm
Posts: 14
well, i'm using ubuntu 10.04 with gdb 7.0.1. The gdb is from the kallistios toolchain.


Top
 Profile  
 
 Post subject: Re: lxdream with gdb
PostPosted: Tue Aug 31, 2010 11:55 am 
Offline
Admin

Joined: Mon Jun 26, 2006 9:47 pm
Posts: 293


Top
 Profile  
 
 Post subject: Re: lxdream with gdb
PostPosted: Tue Sep 07, 2010 12:01 am 
Offline

Joined: Sun Sep 27, 2009 4:21 pm
Posts: 14
i'm using release 1109, because the lastest give me some opengl errors.
In another order of things, there's a port that gives me some strange behaviour:

http://www.dreamcast.es/descargas/iberd ... dc-0.1.zip

the thing is that in the intro the ships starts at good speed and then it goes frame by frame (slow). In the real hardware it works fine. Please, if you need the source code just let me know and i will upload. Thanks!


Top
 Profile  
 
 Post subject: Re: lxdream with gdb
PostPosted: Tue Sep 07, 2010 11:59 am 
Offline
Admin

Joined: Mon Jun 26, 2006 9:47 pm
Posts: 293


Top
 Profile  
 
 Post subject: Re: lxdream with gdb
PostPosted: Tue Sep 07, 2010 2:49 pm 
Offline

Joined: Sun Sep 27, 2009 4:21 pm
Posts: 14
well, i'm just porting it, and SDL in dreamcast manages Vsync at his own. I've tried enabling and disabling vsync, but nothing changes.

Chui's dreamcast SDL has this function to enable or disable vsync:

SDL_DC_VerticalWait(SDL_TRUE);

I've disabled the frame limit in the game, it was slowing down things in real hw, i will try to enable it, maybe is something with that.

I will try r1113. About gdb, maybe it's user permission related, when i sudo it, gdb throws timeouts, but no broken pipes or connections reseted.


Top
 Profile  
 
 Post subject: Re: lxdream with gdb
PostPosted: Wed Sep 08, 2010 9:09 am 
Offline
Admin

Joined: Mon Jun 26, 2006 9:47 pm
Posts: 293


Top
 Profile  
 
 Post subject: Re: lxdream with gdb
PostPosted: Sat Sep 11, 2010 3:08 am 
Offline

Joined: Sun Sep 27, 2009 4:21 pm
Posts: 14
seems that the game limits the fps with this:

while (SDL_GetTicks() < (frameLimit + 16))
{
Do nothing. If we were to insert an SDL_Delay(1) in here
then we would actually lose around 10 frames per second!!
}
frameLimit = SDL_GetTicks();

so i've disabled it, now the game run (too fast).


Top
 Profile  
 
 Post subject: Re: lxdream with gdb
PostPosted: Mon Sep 13, 2010 11:07 am 
Offline
Admin

Joined: Mon Jun 26, 2006 9:47 pm
Posts: 293


Top
 Profile  
 
 Post subject: Re: lxdream with gdb
PostPosted: Tue Sep 14, 2010 11:12 am 
Offline
Admin

Joined: Mon Jun 26, 2006 9:47 pm
Posts: 293


Top
 Profile  
 
 Post subject: Re: lxdream with gdb
PostPosted: Wed Sep 15, 2010 1:09 am 
Offline

Joined: Sun Sep 27, 2009 4:21 pm
Posts: 14
yep, that's my fault...thanks a lot!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group