few new bie questions related to gdb , telnet


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers few new bie questions related to gdb , telnet
# 1  
Old 04-21-2006
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
# 2  
Old 04-22-2006
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.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Questions related to if in awk context and if without awk context

I wrote this code, questions follow #! /bin/bash -f # Purpose - to show how if syntax is used within an awk clear; ls -l; echo "This will print out the first two columns of the inputted file in this directory"; echo "Enter filename found in this directory"; read input; ... (11 Replies)
Discussion started by: Seth
11 Replies

2. Red Hat

General questions related to patching and servers

Hi, Can you answer the following ? How to identify server is physical or virtual server ? Why often patching is done in servers ?What is the purpose of doing OS patching in servers. ? Regards, Maddy (5 Replies)
Discussion started by: Maddy123
5 Replies

3. IP Networking

New-Bie doubt in TCP-IP 3 way hand shake

from my understanding step 1: From device A to device B , sending SYN. SYN=1 ACK=0 Ackno=0 Sequence number=2000 step 2: from device B to A , sending SYN-ACK SYN=1 ACK=1 ACKno=2001 Sequence number= 5000 Step :3 (4 Replies)
Discussion started by: baker
4 Replies

4. Shell Programming and Scripting

need downloading related help...but its not related to unix

Hi All, I am trying to dowmload the zip file "zkManageCustomers.zip " but i dont have access. Can anyone help me to download this file See the below link- http://www.ibm.com/developerworks/opensource/library/wa-aj-open/index.html?ca=drs- Please help me as early as... (1 Reply)
Discussion started by: aish11
1 Replies

5. IP Networking

dhcpd-related questions

I have two items, only related because they are both regarding dhcpd. First of all, I keep seeing dhcpd responding to DHCPREQUESTs on eth1 which is my cable modem. For example: Sep 12 21:00:09 plague dhclient: DHCPREQUEST on eth1 to 204.186.xxx.xxx port 67 Sep 12 21:00:09 plague dhcpd:... (2 Replies)
Discussion started by: NESter
2 Replies

6. UNIX for Dummies Questions & Answers

Access file ownership related questions

I have two issues; any help regarding this would be highly appreciated. We deployed a file abc using pqr id. So the owner is of abc file (shell script) is ‘pqr'. However, abc file is executed by ESP event and uses the id ‘xyz'. When the file abc is executed the owner of... (9 Replies)
Discussion started by: clearC
9 Replies

7. UNIX for Dummies Questions & Answers

A complete New Bie Here

Hello Guys I am a complete New bie in UNIX ( Just know a few of the commands ). Please guide how should I learn Unix In a proper way . I am doing a job, so i will have to do the study at home . Which books , Links, Pages you will suggest me so that i can learn UNIX fast . Thanks (5 Replies)
Discussion started by: supercops
5 Replies

8. Solaris

Questions related to ndd commands

Hello Gurus I would like to know more about ndd commands related to ethernet(NIC) like how to set link_status, link_speed & link_mode as I know how to check these value. And I also would like to know how to make these setting permanents after reboot as I know that these setting will vanish... (5 Replies)
Discussion started by: amity
5 Replies

9. UNIX for Dummies Questions & Answers

new bie questions

Hi all, I am a new bie and learning linux step by step. I am googling a lot but still unabel to find few things like below: 1. how to clean ipcs if I reboot the system it is cleaned but can I do that with out rebooting the system 2. I don't have any in side the folder /usr/src and one of my... (2 Replies)
Discussion started by: gauri
2 Replies
Login or Register to Ask a Question