Hi list:
Following is a piece of code:
main(int argc, char** argv)
{
int rc, result;
struct passwd *uidpwent;
/* init resources */
rpl_message_ini t();
/* 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(strle n(uidpwent->pw_name)
+ 1); sprintf(local_u ser, 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_res olve () 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_ini t () 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_res olve () from /lib/ld-linux.so.2
(gdb)
0x001469e1 in _dl_runtime_res olve () from /lib/ld-linux.so.2
(gdb)
0x001469e2 in _dl_runtime_res olve () from /lib/ld-linux.so.2
(gdb)
0x001469e3 in _dl_runtime_res olve () from /lib/ld-linux.so.2
(gdb)
0x001469e7 in _dl_runtime_res olve () from /lib/ld-linux.so.2
(gdb)
0x001469eb in _dl_runtime_res olve () 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) 2 2480
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_ini t();
/* 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(strle n(uidpwent->pw_name) + 1); sprintf(local_u ser, 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_res olve () 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_ini t () 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_res olve () from /lib/ld-linux.so.2 (gdb) 0x001469e1 in _dl_runtime_res olve () from /lib/ld-linux.so.2 (gdb) 0x001469e2 in _dl_runtime_res olve () from /lib/ld-linux.so.2 (gdb) 0x001469e3 in _dl_runtime_res olve () from /lib/ld-linux.so.2 (gdb) 0x001469e7 in _dl_runtime_res olve () from /lib/ld-linux.so.2 (gdb) 0x001469eb in _dl_runtime_res olve () 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)
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_ini t();
/* 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(strle n(uidpwent->pw_name) + 1); sprintf(local_u ser, 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_res olve () 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_ini t () 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_res olve () from /lib/ld-linux.so.2 (gdb) 0x001469e1 in _dl_runtime_res olve () from /lib/ld-linux.so.2 (gdb) 0x001469e2 in _dl_runtime_res olve () from /lib/ld-linux.so.2 (gdb) 0x001469e3 in _dl_runtime_res olve () from /lib/ld-linux.so.2 (gdb) 0x001469e7 in _dl_runtime_res olve () from /lib/ld-linux.so.2 (gdb) 0x001469eb in _dl_runtime_res olve () 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) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 to have an
easier time understanding what I do. Therefore this weekend I'm going
to spend 3 days just writing comments. Before I do it, I thought I'd
ask other programmers what information they find useful.
Below is a typical class I've...
|
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 http://pydoc.org/2.3/imaplib.html as::
(typ, ) = <instance>.fetch(message_set, message_parts)
In RFC 2060 it says: "The data items to be fetched can be either a
single atom or a parenthesized list."
|
by: bazad |
last post by:
Hi,
I'd like to understand consequences of Application.DoEvents call.
Does it create a new thread?
Thank you
|
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>
#include <iostream>
|
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 work
when I add the scrolling text script. One script, the menu button script,
has an "Onload" command and the other one does not. From what I know, and
that's not much, I need to put both scripts in the "Onload" command. I just
don't know how to...
| |
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 operator overloading
and virtual functions. I mean it should not hamper the C++ meaning. In
frank and simple terms i need to implement a small C++ compiler in C++,
and i want the intermediate representation to be C. Please help me in
this....
|
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 "<interactive input>", line 1, in ?
|
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 events etc. are converted into messages and are put in the system message queue by device drivers. The system removes the messages from the system message queue, and posts them to the message queue of the thread that created the destination window...
...
|
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
VB.NET (C# will come later)? This must be an online or book adventure because
I can't totally disappear to attend physical classes.
I have 15 years experience with commercial VB & C development, and I
understand OO & database. I'm looking for a...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |