* Problems with building [gdb 6.0]
@ 2004-02-10 9:43 Roland Zerek
2004-02-11 5:15 ` Daniel Jacobowitz
0 siblings, 1 reply; 8+ messages in thread
From: Roland Zerek @ 2004-02-10 9:43 UTC (permalink / raw)
To: gdb
Hi,
I am writting this letter after few times I was trying to build gdb 6.0 from
sources. The environment is as follows:
*) operating system: winXP home edition
*) compiler: gcc 3.2 (CYGWIN 2.249.2.5)
It goes quite well for some time and then throws problems. Although I
understand messages, I have no idea of how to solve problems reported. The
log of gdb build can be found at http://rolandz.fm.interia.pl/gdblog.html
Please anyone help me... TIA
--
Roland Zerek
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Problems with building [gdb 6.0]
2004-02-10 9:43 Problems with building [gdb 6.0] Roland Zerek
@ 2004-02-11 5:15 ` Daniel Jacobowitz
2004-02-11 5:22 ` Christopher Faylor
0 siblings, 1 reply; 8+ messages in thread
From: Daniel Jacobowitz @ 2004-02-11 5:15 UTC (permalink / raw)
To: Roland Zerek; +Cc: gdb
On Tue, Feb 10, 2004 at 10:43:09AM +0100, Roland Zerek wrote:
> Hi,
>
> I am writting this letter after few times I was trying to build gdb 6.0 from
> sources. The environment is as follows:
> *) operating system: winXP home edition
> *) compiler: gcc 3.2 (CYGWIN 2.249.2.5)
>
> It goes quite well for some time and then throws problems. Although I
> understand messages, I have no idea of how to solve problems reported. The
> log of gdb build can be found at http://rolandz.fm.interia.pl/gdblog.html
>
> Please anyone help me... TIA
Try building in a directory with no spaces in the pathname. I don't
konw if that's supposed to work, but judging from the error messages,
it looks like it doesn't.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Problems with building [gdb 6.0]
2004-02-11 5:15 ` Daniel Jacobowitz
@ 2004-02-11 5:22 ` Christopher Faylor
2004-02-11 5:50 ` Eli Zaretskii
2004-02-11 10:27 ` Output the filename ,the function name and the line number after returning from a function call murugesan
0 siblings, 2 replies; 8+ messages in thread
From: Christopher Faylor @ 2004-02-11 5:22 UTC (permalink / raw)
To: gdb; +Cc: Roland Zerek
[reply-to set]
On Wed, Feb 11, 2004 at 12:15:09AM -0500, Daniel Jacobowitz wrote:
>On Tue, Feb 10, 2004 at 10:43:09AM +0100, Roland Zerek wrote:
>>I am writting this letter after few times I was trying to build gdb 6.0
>>from sources. The environment is as follows:
>>*) operating system: winXP home edition
>>*) compiler: gcc 3.2 (CYGWIN 2.249.2.5)
>>
>>It goes quite well for some time and then throws problems. Although I
>>understand messages, I have no idea of how to solve problems reported.
>>The log of gdb build can be found at
>>http://rolandz.fm.interia.pl/gdblog.html
>>
>>Please anyone help me... TIA
>
>Try building in a directory with no spaces in the pathname. I don't
>konw if that's supposed to work, but judging from the error messages,
>it looks like it doesn't.
It should work but it is a frequent cause for complaint on cygwin, not
for anything to do with cygwin, but because most people on UNIX don't use
directories with spaces and so there are unknown assumptions in the build
process. Of course, Windows loves to use directories with spaces in them.
And, btw, that's not a valid cygwin version number. You can find the
version by typing 'uname -s'.
cgf
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Problems with building [gdb 6.0]
2004-02-11 5:22 ` Christopher Faylor
@ 2004-02-11 5:50 ` Eli Zaretskii
2004-02-11 10:27 ` Output the filename ,the function name and the line number after returning from a function call murugesan
1 sibling, 0 replies; 8+ messages in thread
From: Eli Zaretskii @ 2004-02-11 5:50 UTC (permalink / raw)
To: Christopher Faylor; +Cc: gdb, rolandz
> Date: Wed, 11 Feb 2004 00:22:36 -0500
> From: Christopher Faylor <cgf@redhat.com>
> >
> >Try building in a directory with no spaces in the pathname. I don't
> >konw if that's supposed to work, but judging from the error messages,
> >it looks like it doesn't.
>
> It should work but it is a frequent cause for complaint on cygwin, not
> for anything to do with cygwin, but because most people on UNIX don't use
> directories with spaces and so there are unknown assumptions in the build
> process. Of course, Windows loves to use directories with spaces in them.
How about adding some blurb along these lines to INSTALL?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Output the filename ,the function name and the line number after returning from a function call
2004-02-11 5:22 ` Christopher Faylor
2004-02-11 5:50 ` Eli Zaretskii
@ 2004-02-11 10:27 ` murugesan
2004-02-11 13:08 ` Bob Rossi
1 sibling, 1 reply; 8+ messages in thread
From: murugesan @ 2004-02-11 10:27 UTC (permalink / raw)
To: gdb
Hello all,
As you all know gdb outputs the filename ,the function name and the
line number after returning from a function call.
But this does not happen when a function has a parameter as another
function.
That is,
# gdb a.out
gdb> break main
gdb> s
.
gdb> bt
fun
main
gdb> s
.
.
main (Argc=1, Argv=0x7e9f081c) at openssl.c:236
This is getting printed when returning from fun.
But this does not happen in the following case.
eg:
fun(ret_val())
{
}
Here when returning from ret_val
main (Argc=1, Argv=0x7e9f081c) at openssl.c:236 is not getting printed.
Instead it just enters fun function without returning main.
If it is the case ( that it will not return to main )
then my "bt" might have printed
ret_val
fun
main
But this does not happened for this case. Just it gave me
ret_val
main
Is there any way to make the gdb to output the filename ,the function
name and the line number after returning from functions that has another
function has parameter.
Thanks in advance for the help.
Regards,
Murugesan
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Output the filename ,the function name and the line number after returning from a function call
2004-02-11 10:27 ` Output the filename ,the function name and the line number after returning from a function call murugesan
@ 2004-02-11 13:08 ` Bob Rossi
2004-02-11 16:38 ` murugesan
2004-02-11 16:43 ` murugesan
0 siblings, 2 replies; 8+ messages in thread
From: Bob Rossi @ 2004-02-11 13:08 UTC (permalink / raw)
To: murugesan; +Cc: gdb
On Wed, Feb 11, 2004 at 03:53:52PM +0530, murugesan wrote:
> Hello all,
> As you all know gdb outputs the filename ,the function name and the
> line number after returning from a function call.
> But this does not happen when a function has a parameter as another
> function.
Did you use the 'finish' command to return from the function call? Or do
you just do a 'next'? This might make a difference.
Bob Rossi
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Output the filename ,the function name and the line number after returning from a function call
2004-02-11 13:08 ` Bob Rossi
@ 2004-02-11 16:38 ` murugesan
2004-02-11 16:43 ` murugesan
1 sibling, 0 replies; 8+ messages in thread
From: murugesan @ 2004-02-11 16:38 UTC (permalink / raw)
To: Bob Rossi; +Cc: gdb
Thanks Bob.
I haven't explained much about my requirement.
Ofcourse finish does what you said.
Bud what I am doing is that
# gdb -x command | tee output
where command contains 1000000 number of "s" in it
So that I will get the flow from the beginning of the program to the end
including where I give the input...
So the output should contain the funs that has been called and returned.
The program MAY contain several such functions and I cannot point where
it occurs.
Thanks again for the reply and expecting the same again.
-Murugesan
On Wed, 2004-02-11 at 18:38, Bob Rossi wrote:
> On Wed, Feb 11, 2004 at 03:53:52PM +0530, murugesan wrote:
> > Hello all,
> > As you all know gdb outputs the filename ,the function name and the
> > line number after returning from a function call.
> > But this does not happen when a function has a parameter as another
> > function.
>
> Did you use the 'finish' command to return from the function call? Or do
> you just do a 'next'? This might make a difference.
>
> Bob Rossi
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Output the filename ,the function name and the line number after returning from a function call
2004-02-11 13:08 ` Bob Rossi
2004-02-11 16:38 ` murugesan
@ 2004-02-11 16:43 ` murugesan
1 sibling, 0 replies; 8+ messages in thread
From: murugesan @ 2004-02-11 16:43 UTC (permalink / raw)
To: Bob Rossi; +Cc: gdb
Thans for the reply Bob.
I haven't specified my requirement.
# gdb -x command | tee output
where command contains 1000's of "s" so that I can get all the output to
a file.
Ofcourse finish worked the way you said.
The problem is that there MAY be more functions like this.
I need to specify it in the file command
Thanks again for the reply and expecting the same again.
-Murugesan
On Wed, 2004-02-11 at 18:38, Bob Rossi wrote:
> On Wed, Feb 11, 2004 at 03:53:52PM +0530, murugesan wrote:
> > Hello all,
> > As you all know gdb outputs the filename ,the function name and the
> > line number after returning from a function call.
> > But this does not happen when a function has a parameter as another
> > function.
>
> Did you use the 'finish' command to return from the function call? Or do
> you just do a 'next'? This might make a difference.
>
> Bob Rossi
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2004-02-11 16:43 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-10 9:43 Problems with building [gdb 6.0] Roland Zerek
2004-02-11 5:15 ` Daniel Jacobowitz
2004-02-11 5:22 ` Christopher Faylor
2004-02-11 5:50 ` Eli Zaretskii
2004-02-11 10:27 ` Output the filename ,the function name and the line number after returning from a function call murugesan
2004-02-11 13:08 ` Bob Rossi
2004-02-11 16:38 ` murugesan
2004-02-11 16:43 ` murugesan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox