473,473 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Need help in understanding gdb messages

Hi list:

Following is a piece of code:

main(int argc, char** argv)
{
int rc, result;
struct passwd *uidpwent;

/* init resources */
rpl_message_init();

/* TODO: consider placing this near webasset.c */
/* set the contributer to the name of the process owner */
uidpwent = getpwuid(getuid());
local_user = (rpl_str_t)rpl_me_malloc(strlen(uidpwent->pw_name)
+ 1); sprintf(local_user, uidpwent->pw_name);
..
..
The Question I have is w.r.t to the gdb execution o/p below:

when running gdb, with stepi what these ?? (); what does it signify and
why an instruction like 0x001469e0 in _dl_runtime_resolve () from
/lib/ld-linux.so.2(gdb) is called a number of times at different
addresses.

Please help me in understanding this.
Senthil

0x0804bef4 in rpl_message_init () at messages.c:127
127 msg_global.tptr = NULL;
(gdb)
main (argc=1, argv=0xfee29394) at rapple.c:216
216 uidpwent = getpwuid(getuid());
(gdb)
0x08049af2 216 uidpwent = getpwuid(getuid());
(gdb)
0x08049768 in ?? ()
(gdb)
0x0804976e in ?? ()
(gdb)
0x08049773 in ?? ()
(gdb)
0x080493b8 in ?? ()
(gdb)
0x080493be in ?? ()
(gdb)
0x001469e0 in _dl_runtime_resolve () from /lib/ld-linux.so.2
(gdb)
0x001469e1 in _dl_runtime_resolve () from /lib/ld-linux.so.2
(gdb)
0x001469e2 in _dl_runtime_resolve () from /lib/ld-linux.so.2
(gdb)
0x001469e3 in _dl_runtime_resolve () from /lib/ld-linux.so.2
(gdb)
0x001469e7 in _dl_runtime_resolve () from /lib/ld-linux.so.2
(gdb)
0x001469eb in _dl_runtime_resolve () from /lib/ld-linux.so.2
(gdb)
0x00146a20 in fixup () from /lib/ld-linux.so.2
(gdb)
0x00146a21 in fixup () from /lib/ld-linux.so.2
(gdb)

Nov 15 '05 #1
2 2461
I think
- your executable has not been built
with GDB symbols (gcc with '-g' option) ! or
- you have attached your gdb to a process which
doesnt define that symbol or
- using wrong gdb (its specific to platform)

- Ravi

O.R.Senthil Kumaran wrote:
Hi list:

Following is a piece of code:

main(int argc, char** argv)
{
int rc, result;
struct passwd *uidpwent;

/* init resources */
rpl_message_init();

/* TODO: consider placing this near webasset.c */
/* set the contributer to the name of the process owner */
uidpwent = getpwuid(getuid());
local_user = (rpl_str_t)rpl_me_malloc(strlen(uidpwent->pw_name)
+ 1); sprintf(local_user, uidpwent->pw_name);
.
.
The Question I have is w.r.t to the gdb execution o/p below:

when running gdb, with stepi what these ?? (); what does it signify and
why an instruction like 0x001469e0 in _dl_runtime_resolve () from
/lib/ld-linux.so.2(gdb) is called a number of times at different
addresses.

Please help me in understanding this.
Senthil

0x0804bef4 in rpl_message_init () at messages.c:127
127 msg_global.tptr = NULL;
(gdb)
main (argc=1, argv=0xfee29394) at rapple.c:216
216 uidpwent = getpwuid(getuid());
(gdb)
0x08049af2 216 uidpwent = getpwuid(getuid());
(gdb)
0x08049768 in ?? ()
(gdb)
0x0804976e in ?? ()
(gdb)
0x08049773 in ?? ()
(gdb)
0x080493b8 in ?? ()
(gdb)
0x080493be in ?? ()
(gdb)
0x001469e0 in _dl_runtime_resolve () from /lib/ld-linux.so.2
(gdb)
0x001469e1 in _dl_runtime_resolve () from /lib/ld-linux.so.2
(gdb)
0x001469e2 in _dl_runtime_resolve () from /lib/ld-linux.so.2
(gdb)
0x001469e3 in _dl_runtime_resolve () from /lib/ld-linux.so.2
(gdb)
0x001469e7 in _dl_runtime_resolve () from /lib/ld-linux.so.2
(gdb)
0x001469eb in _dl_runtime_resolve () from /lib/ld-linux.so.2
(gdb)
0x00146a20 in fixup () from /lib/ld-linux.so.2
(gdb)
0x00146a21 in fixup () from /lib/ld-linux.so.2
(gdb)


Nov 15 '05 #2
oops ! sorry that was OT !

Ravi Uday wrote:
I think
- your executable has not been built
with GDB symbols (gcc with '-g' option) ! or
- you have attached your gdb to a process which
doesnt define that symbol or
- using wrong gdb (its specific to platform)

- Ravi

O.R.Senthil Kumaran wrote:
Hi list:

Following is a piece of code:

main(int argc, char** argv)
{
int rc, result;
struct passwd *uidpwent;

/* init resources */
rpl_message_init();

/* TODO: consider placing this near webasset.c */
/* set the contributer to the name of the process owner */
uidpwent = getpwuid(getuid());
local_user = (rpl_str_t)rpl_me_malloc(strlen(uidpwent->pw_name)
+ 1); sprintf(local_user, uidpwent->pw_name);
.
.
The Question I have is w.r.t to the gdb execution o/p below:

when running gdb, with stepi what these ?? (); what does it signify and
why an instruction like 0x001469e0 in _dl_runtime_resolve () from
/lib/ld-linux.so.2(gdb) is called a number of times at different
addresses.

Please help me in understanding this.
Senthil

0x0804bef4 in rpl_message_init () at messages.c:127
127 msg_global.tptr = NULL;
(gdb)
main (argc=1, argv=0xfee29394) at rapple.c:216
216 uidpwent = getpwuid(getuid());
(gdb)
0x08049af2 216 uidpwent = getpwuid(getuid());
(gdb)
0x08049768 in ?? ()
(gdb)
0x0804976e in ?? ()
(gdb)
0x08049773 in ?? ()
(gdb)
0x080493b8 in ?? ()
(gdb)
0x080493be in ?? ()
(gdb)
0x001469e0 in _dl_runtime_resolve () from /lib/ld-linux.so.2
(gdb)
0x001469e1 in _dl_runtime_resolve () from /lib/ld-linux.so.2
(gdb)
0x001469e2 in _dl_runtime_resolve () from /lib/ld-linux.so.2
(gdb)
0x001469e3 in _dl_runtime_resolve () from /lib/ld-linux.so.2
(gdb)
0x001469e7 in _dl_runtime_resolve () from /lib/ld-linux.so.2
(gdb)
0x001469eb in _dl_runtime_resolve () from /lib/ld-linux.so.2
(gdb)
0x00146a20 in fixup () from /lib/ld-linux.so.2
(gdb)
0x00146a21 in fixup () from /lib/ld-linux.so.2
(gdb)


Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: lawrence | last post by:
I've been bad about documentation so far but I'm going to try to be better. I've mostly worked alone so I'm the only one, so far, who's suffered from my bad habits. But I'd like other programmers...
2
by: Max M | last post by:
I am using the fetch command from the imaplib to fetch messages. I get a result, but I am a bit uncertain as to how I should interpret it. The result is described at...
24
by: bazad | last post by:
Hi, I'd like to understand consequences of Application.DoEvents call. Does it create a new thread? Thank you
3
by: deancoo | last post by:
Hello all, I'm new to the C++ STL, and am trying to wrap my head around why the following piece of code doesn't compile. What am I doing wrong? Thanks for any help. d #include <cstdlib>...
3
by: P Wolpert | last post by:
This is my first post. I hope I don't sound stupid. I have a script conflict when I put two scripts on one page. Both scripts will work if I use one at a time but the menu button script will not...
17
by: Student | last post by:
Hi All, I have an assignment for my Programming language project to create a compiler that takes a C++ file as input and translate it into the C file. Here I have to take care of inheritance and...
4
by: mirandacascade | last post by:
O/S : Win2K vsn of Python: 2.4 Hoping to find information that provide information about error messages being encountered. Pythonwin session: Traceback (most recent call last): File...
2
by: hc0605 | last post by:
Hi everyone, I am a newbie to GUI application, and I need help in understanding some concepts: For a Windows-based GUI application, the system maintains a single system message queue. Mouse...
3
by: =?Utf-8?B?SmF5IFZpbnRvbg==?= | last post by:
I see general messages about how to learn .NET but I have an immediate requirement to ramp up my old skills very quickly. Can anyone recommend the FASTEST way for me to get almost-competent in...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.