Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
91 user(s) are online (8 user(s) are browsing News)

Members: 0
Guests: 91

more...

Support us!

Headlines


Recent Replied Topics
Software News : Debug 101 - first class debugger for OS 4.1
Posted by elfpipe on 2012/12/10 20:10:00 (1887 reads) News by the same author
Software News

Debug 101 v. 1.0.0 has been released!

Debug101 at os4depot

Db101 is a source level debugger for os4.1. It can do many of the same tasks as GDB, but has a nice reaction gui and an Arexx port.

This is a big update, with completely revamped gui and a lot of cool features added:

- Interpretation of structs, unions and enums
- added "detach" function from detached mode
- added "signals" window
- added posibility to set breakpoints at symbols and absolute addresses
- added step into and step out
- added ability to hexview any part of memory

Thanks to kas1e and NinjaDNA for testing. And to all the people on the os4invite list for putting up with my annoying questions! :)

Printer friendly page Send this story to a friend
The comments are owned by the author. We aren't responsible for their content.
Author Thread
afxgroup
Published: 2012/12/10 22:17  Updated: 2012/12/10 22:17
Amigans Defender
Joined: 12/02/2006
From: Taranto, Italy
Comments: 1354
 Re: Debug 101 - first class debugger for OS 4.1
At least! nice one!
ChrisH
Published: 2012/12/11 8:56  Updated: 2012/12/11 8:57
Home away from home
Joined: 05/19/2007
From: England
Comments: 3582
 Re: Debug 101 - first class debugger for OS 4.1
SOunds like it could be very useful. A screenshot would be nice! (I see there is an ancient one on OS4Depot - perhaps a newer one could be added?)
kas1e
Published: 2012/12/11 10:40  Updated: 2012/12/11 10:51
Home away from home
Joined: 09/11/2007
From: Russia
Comments: 9111
 Re: Debug 101 - first class debugger for OS 4.1
@ChrisH
I upload new one yesterday to os4depot, but it still not in. If you in interest, there is: db101_v1_screen

db101 in general can be improved more of course (gui and some stuff for core itself), but that new version are pretty stable and helpfull: You can set breakpoints in easy "gui" way (see those labels on screen, in the source window), you can do different kind of steps: step to fucntion, step out, step over, asm steps (per instructions), can continue till next bp or to end, can send signals, have command line (currently simply, but still) mode by which you can set breaks on addresse and co, can even attach to avail processes (currently not very helpfull anyway).

Alfkil also spend plenty of time to make entering to new areas (like kernel ones, newlib ones and co), painfull free : nice window with warnings, remembering of states, ability to see local/global/and all kind of the variables, registers and co. Loading of binary with or without command line arguments, and so on.

My wish list for the next versions is:

-- impove gui a bit and add RMB support (prefs and stuff)
-- add support of relocation symbols (latest GDB can do it, but our one are not, and need to use objdump for).
-- maybe rework hexdump and breakpoint windowses, to make it more easy to navigate.
-- make a stack trace working
-- cosmetic stuff: make a text propotional (you can see in screenshot, that hex-dump are non proportional)
-- and some others which i do not remember for now

But even current version are cool. Now, need ppls who will test it in real lifes, and bring all bug report to Alfkil, so he can fix/improve stuff. And autor of CodeBench to try to add it and ask for imporvements for.
Elwood
Published: 2012/12/11 11:44  Updated: 2012/12/11 11:44
Just can't stay away
Joined: 12/09/2006
From: Lyon, France
Comments: 1370
 Re: Debug 101 - first class debugger for OS 4.1
HUGE!!!

This is so great that I'll try it myself, even if I'm not a developer

Thanks Alfkil. It was really needed to help in debugging.
samo79
Published: 2012/12/11 12:21  Updated: 2012/12/11 12:21
Home away from home
Joined: 12/02/2006
From: Italy, Perugia
Comments: 3786
 Re: Debug 101 - first class debugger for OS 4.1
Massive news for developers but also for final user at the end = potentially better and stable apps for all
nbache
Published: 2012/12/11 19:35  Updated: 2012/12/11 19:35
Just can't stay away
Joined: 12/01/2006
From: Copenhagen, Denmark
Comments: 1532
 Re: Debug 101 - first class debugger for OS 4.1
Yes, congrats and thanks, Alfkil!

Looking forward to checking this version out - sorry I had too little time lately to test the previous betas.

Keep up the good work!

Best regards,

Niels
Hans
Published: 2012/12/11 21:31  Updated: 2012/12/11 21:31
Home away from home
Joined: 01/26/2007
From: New Zealand
Comments: 2800
 Re: Debug 101 - first class debugger for OS 4.1
@samo79

Quote:
Massive news for developers but also for final user at the end = potentially better and stable apps for all


It also means faster debugging, which could potentially speed up development a fair bit.

Hans
Rigo
Published: 2012/12/12 19:21  Updated: 2012/12/12 19:22
Supreme Council
Joined: 11/19/2006
From: London, England
Comments: 1390
 Re: Debug 101 - first class debugger for OS 4.1
I had very high hopes for this when I saw the news item appear, and couldn't wait to try it out. Unfortunately, I don't seem to be able to get it to stop at a breakpoint here. I start db101 and load my stabs enabled executable. I select the source file I want, then struggle to find the function I want to stop at. Once I eventually found it, I click the checkbox, then hit "Start". The program starts, and eveything is good, but the function with the breakpoint is executaed and the debugger fails to notice, and it doesn't stop.

Also the "Breaks" window could do with sorting in alphabetical order to make it eaier to find the function the user is looking for.

On that note, a separate window showing the functions in the current source file would be a great help too, and would make it much easier to set breakpoints in a function. Most coders know which source a function is in, but code can be long sometimes, so listing the functions would be much better than scrolling through the source to find it.

It looks great so far though.

Simon
Antique
Published: 2012/12/12 22:04  Updated: 2012/12/12 22:04
Home away from home
Joined: 11/30/2006
From: Norway
Comments: 2628
 Re: Debug 101 - first class debugger for OS 4.1
Is this one usable for stupid programmers like myself?
One who doesn't know what he is doing
kas1e
Published: 2012/12/13 16:07  Updated: 2012/12/13 16:08
Home away from home
Joined: 09/11/2007
From: Russia
Comments: 9111
 Re: Debug 101 - first class debugger for OS 4.1
@Rigo

I tested it only on peg2, and as far as i know alfkil have Sam. If you have any kind of A1 or x1000, then maybe there need to do something about as well .. Or maybe something related to many sources in one binary (i tested it on peg2 only with 1 binary = 1 source).

Write plz mail to Alfkil, he 100% in interest to fix it. Will be nice to have CodeBench with integrated db101.

@Antique

Knowing of basics is necessary with debugger: a bit of assembler, C, a bit of HW details (like what is registers and so on). And more you know about, the easy to use debuggers.
ssolie
Published: 2012/12/14 22:57  Updated: 2012/12/14 22:57
Amigans Defender
Joined: 11/26/2006
From: Canada
Comments: 986
 Re: Debug 101 - first class debugger for OS 4.1
Quote:
And to all the people on the os4invite list for putting up with my annoying questions! :)

I'm just sorry I don't have much time to get more done on the kernel API side of things. As Trevor would say, "Stay tuned."
Elwood
Published: 2012/12/16 21:22  Updated: 2012/12/16 21:22
Just can't stay away
Joined: 12/09/2006
From: Lyon, France
Comments: 1370
 Re: Debug 101 - first class debugger for OS 4.1
Rigo, does the helloworld example behave the same?
I tried with it and it stops at breakpoints (on Sam460).
kas1e
Published: 2012/12/17 11:45  Updated: 2012/12/17 11:45
Home away from home
Joined: 09/11/2007
From: Russia
Comments: 9111
 Re: Debug 101 - first class debugger for OS 4.1
@Elwood
Alfkil says that its all can be because he forget to add x1000-related breakpoint code. I.e. it's because the X1000 is a 64-bit, and the breakpoints code
he is using uses a 32-bit instruction to set the msr register.

Thats all of course, if Rigo tryed it on x1000
Rigo
Published: 2012/12/18 23:01  Updated: 2012/12/18 23:01
Supreme Council
Joined: 11/19/2006
From: London, England
Comments: 1390
 Re: Debug 101 - first class debugger for OS 4.1
Yes, I've recently moved my development environment over to X1000, which is where I tested db101. If alfkill needs an X1000 tester, tell him to mail me (although time is very limited right now).

Simon
kas1e
Published: 2012/12/19 11:32  Updated: 2012/12/19 11:32
Home away from home
Joined: 09/11/2007
From: Russia
Comments: 9111
 Re: Debug 101 - first class debugger for OS 4.1
@Simon
Quote:

which is where I tested db101. If alfkill needs an X1000 tester, tell him to mail me

Done
General
Site sponsors
 
Contact us on discord to advertise here.

Site statistics
Registered members
  1722
Logged in last:
  24 hours, 67
  7 days, 129
  30 days, 188

Random Photo
closer look at the tip of the a500 collection...the gvp twins

New Articles List

New Members
Amigafreak02
Amigafreak02 11/15/2024
Drakken
Drakken 11/14/2024
ybbasepiw
ybbasepiw 11/11/2024
Mr_byte
Mr_byte 11/06/2024
ghettofinger
ghettofinger 10/30/2024
VaultDweller
VaultDweller 10/30/2024
Greenslade
Greenslade 10/11/2024
komyash
komyash 09/20/2024
Correine
Correine 09/16/2024
Falke_34
Falke_34 09/14/2024


Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project