Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
108 user(s) are online (86 user(s) are browsing Forums)

Members: 1
Guests: 107

billyfish, more...

Support us!

Headlines

 
  Register To Post  

GDB related article for beginners.
Home away from home
Home away from home


See User information
If some of you in interst about GDB related article specific to aos4, there is

Big thanks to Xeron who correct all the english in the article, as well as rephrase some parts to make it reads better

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: GDB related article for beginners.
Home away from home
Home away from home


See User information
Can you also make a article on how to get usefull info from grim crashlog?
Since i don't understand anything from a crashlog.

X5000
Go to top
Re: GDB related article for beginners.
Home away from home
Home away from home


See User information

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: GDB related article for beginners.
Home away from home
Home away from home


See User information
@kas1e

Nice article.

@Antique
Quote:

Antique wrote:
Can you also make a article on how to get usefull info from grim crashlog?
Since i don't understand anything from a crashlog.


This page gives you the basics of how to convert stack trace entries to line numbers.

Hans

Join Kea Campus' Amiga Corner and support Amiga content creation
https://keasigmadelta.com/ - see more of my work
Go to top
Re: GDB related article for beginners.
Home away from home
Home away from home


See User information
@kas1e

Thanks for the article, will sure come in handy when i stumble over the next crash

@Hans

If i haven't thanked you yet for your great articles, i'll stand in shame...


...and thank you now

Go to top
Re: GDB related article for beginners.
Home away from home
Home away from home


See User information
@Raziel
And also real-questions then come, with answer on which one more article can be done :)

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: GDB related article for beginners.
Just can't stay away
Just can't stay away


See User information
does GDB work 100% as it should under os4 now?
or are there any limitations to be aware of?

Go to top
Re: GDB related article for beginners.
Home away from home
Home away from home


See User information
@SpotUP
You still can crash it if you mean that :)

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: GDB related article for beginners.
Amigans Defender
Amigans Defender


See User information
Well done, kas1e!

The Rear Window blog

AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon RX 560 / ESI Juli@ / AmigaOS 4.1 Final Edition
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition
Go to top
Re: GDB related article for beginners.
Just can't stay away
Just can't stay away


See User information
@kas1e and Xeron

Well done boys. Great job!

This should go into the SDK, IMO...

Philippe 'Elwood' FERRUCCI
Sam460ex 1.10 Ghz
http://elwoodb.free.fr
Go to top
Re: GDB related article for beginners.
Home away from home
Home away from home


See User information
@elwood
Its too simple and too short to be in the SDK. And in general, it mostly for very-beginners, as those ones who works on GDB on any platform with any cpu , in general know that all of this "the same". SDK should have something really cool and professional, not something like this simply article :)

ps. have started one more about gdb, hope that one will be better and intersting

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: GDB related article for beginners.
Just can't stay away
Just can't stay away


See User information
Kas1e, in that case, it didn't workfor me, it crashed on the breakpoint. I didn't know if it was supposed to do that or not, as you can click the attach to gdb button. But when i did that i got no useful info either.

Go to top
Re: GDB related article for beginners.
Home away from home
Home away from home


See User information
@spotup
Quote:

Kas1e, in that case, it didn't workfor me, it crashed on the breakpoint.


In which situation it didn't work for you ? It those ones which i describe, or when you do something else ? And what breakpoint, when, where ?:)

Quote:

I didn't know if it was supposed to do that or not, as you can click the attach to gdb button.


If attach button present, then by idea you can attach to crashed process, but not in all the cases (for example if crash heavy one, and overwrite important areas of kernel, or anything which can cause problems for gdb itself).

As i understand for you gdb crashes, when you have crash in some programm, then you have GR, press "attach GDB" button, and then GDB crashes ? If so, then what programm is it , have it debug information or not, use it shared objects or not, and can you upload (or point out) on the programm which crash it.

Quote:

But when i did that i got no useful info either.


What kind of info you want to see in gdb ?:) Even if you will attach gdb to crashed process, then by idea you can only check (by yourself) what happens and where, but i do not know if it good idea to use that "attach gdb button" at all.

Better, its run gdb, and load your crashed programm to it, and then run it (inside of gdb).

To be honest, that "attach gdb" button on the crashed process, can help only to show something which GR already do not show for you (because GR already show registers, disassembly, memory dump, stacktrace). I.e. it mostlu statistic info for you, to know where crash is happens. But as crash _already_ happen, you can't debug it futher, or set breakpoitns, or anything - its already crashed.

So, you then run gdb, and run programm in the GDB, and then, you by youtself (as programmer) think where you need to put breakpoints, what you want to do, where and how execution should stops, so you can understand why it crashes.

Right now, i do not know for what need "attach gdb" button at all. My only "imho" currently its for taking more info than in GR (just for collect information).


Edited by kas1e on 2012/1/5 19:31:19
Join us to improve dopus5!
AmigaOS4 on youtube
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 3 ( 0 members and 3 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project