Jump to content
  • 0

GDB Support


Vengeance

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   13
  • Joined:  01/08/12
  • Last Seen:  

I have installed and done settings according to the topics available in rathene..

 

Yet in my VPS the GDB is not working..

 

I have a CentOS 5.8 and installed GDB can anyone help me with this.. ??

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   13
  • Joined:  01/08/12
  • Last Seen:  

 

Anakid as told before I have seen all this and installed accordingly but after the map server crashed I used this command

gdb map-server_sql map-server_sql.core

 

But got this error

[root@server trunk]# gdb map-server_sql map-server_sql.core
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1)
Copyright © 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /root/trunk/map-server_sql...done.
/root/trunk/map-server_sql.core: No such file or directory.
(gdb)
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  707
  • Reputation:   168
  • Joined:  01/26/12
  • Last Seen:  

Hi Vengeance,

 

Within the SSH terminal, you type the following commands...
 
cd /root/Desktop/trunk
gdb ./map-server_sql
run
 
Then the process of the map-server_sql will start running. After it receives the crash signal, you would need to type;
 
bt full
 
Finally, you get the debug report that you need.
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   13
  • Joined:  01/08/12
  • Last Seen:  

Hi Vengeance,

 

Within the SSH terminal, you type the following commands...
 
cd /root/Desktop/trunk
gdb ./map-server_sql
run
 
Then the process of the map-server_sql will start running. After it receives the crash signal, you would need to type;
 
bt full
 
Finally, you get the debug report that you need.

Thank you very much Asura.. I have done as you said.. Now let me wait when the map server crashes (hope it doesnt)

Asura tell me one thing.. My putty closes after a while so how will i be able to use the bt full command if the putty closes...??

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  707
  • Reputation:   168
  • Joined:  01/26/12
  • Last Seen:  

Hi Vengeance,

 

Then perform everything in a screen session; so when the map-server crashes, you can just re-attach to that screen and perform 'bt full'.

screen
cd /location/to/trunk
gdb ./map-server_sql
run


Then you are safe to exit PuTTY with it running. Once the map server crashes, log back into PuTTY and find the current screen PID.

screen -ls

 

The ID is the # value; so then you want to re-attach to that screen by performing this command...

screen -x #
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   13
  • Joined:  01/08/12
  • Last Seen:  

Hi Vengeance,

 

Then perform everything in a screen session; so when the map-server crashes, you can just re-attach to that screen and perform 'bt full'.

 

screen
cd /location/to/trunk
gdb ./map-server_sql
run

Then you are safe to exit PuTTY with it running. Once the map server crashes, log back into PuTTY and find the current screen PID.

 

screen -ls

 

The ID is the # value; so then you want to re-attach to that screen by performing this command...

 

screen -x #

This is great,,

 

 

thank you very much its so greatly explained...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...