The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
some doubt related to SAR zedex UNIX for Dummies Questions & Answers 1 03-03-2008 11:33 AM
related to sed sahana UNIX for Dummies Questions & Answers 14 01-18-2007 08:31 PM
oracle related harsh_kats UNIX for Dummies Questions & Answers 1 03-09-2006 01:32 AM
Unix Related JaMaL UNIX for Dummies Questions & Answers 3 01-25-2005 06:38 AM
related to web ask_goel IP Networking 2 11-21-2001 08:36 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 04-21-2006
Registered User
 

Join Date: Apr 2005
Posts: 42
few new bie questions related to gdb , telnet

Hi All,

1. how to what is the current line we are executing. List command will display the 10 lines by default.
2. how to put a pointer to the current excuting line when executing the list.
2. if i have set one break point and i want to set 2nd break point do i need to delete the first break point and then run command once again or i need to do continue then again it will hit the 2nd break point?
3. in vi editor i wasnted to replace one string by follwoing:
(replcae /abc with /xyz/lmn
1,$s/^\/abc/\/xyz\/lmn/g

but i am unable to type \ after ^..

4. i am using debian os and want to enable telent by uncommenting telnet in .etc/inet.d file but i need to reboot the system to make it effective. Is there any command i can achive with out reboot?

5. i am unabel to do gdb on the following program:
---------------
#include<stdio.h>
void fun1();
void fun2();
main()
{
printf ("hello");
fun1();
fun2();
void fun1()
{
printf("helo1");
}
void fun2()
{
printf("helo2");
}
}

---------

i compile it by using the following command:

gcc -g a.c -o a.o

then i am getting the following error:

balbld01@/home/gauria{29} gdb a.o
GNU gdb 5.1.0.1
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Dwarf Error: Cannot handle DW_FORM_strp in DWARF reader.

(gdb) b fun1
No symbol table is loaded. Use the "file" command.
(gdb)


Could nay one help me in all of my queries.

Thanks in advance.

Regards
Gauri
Reply With Quote
Forum Sponsor
  #2  
Old 04-22-2006
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
For # 4:

Check the man page for inetd. There should be a line towards the bottom of the man page that states
Quote:
Inetd rereads its configuration file when it receives a hangup signal, SIGHUP Services may be added, deleted or modified when the configuration file is reread.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:26 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0