* Re: how to include subdirectories too, for the source directory
@ 2004-02-12 12:07 Michael Elizabeth Chastain
0 siblings, 0 replies; 4+ messages in thread
From: Michael Elizabeth Chastain @ 2004-02-12 12:07 UTC (permalink / raw)
To: gdb, mukeshgct
How about:
gdb $(find /home -type d -print | sed -e 's/.*/--directory=&')
Michael C
^ permalink raw reply [flat|nested] 4+ messages in thread
* Pending breakpoints and scripts
@ 2004-02-09 20:02 Andrew Cagney
2004-02-09 22:32 ` Daniel Jacobowitz
0 siblings, 1 reply; 4+ messages in thread
From: Andrew Cagney @ 2004-02-09 20:02 UTC (permalink / raw)
To: gdb
Anyone noticed this?
(top-gdb) run testsuite/gdb.base/advance
Starting program: ...
Setting up the environment for debugging gdb.
Function "internal_error" not defined.
Breakpoint 1 (internal_error) pending.
Function "info_command" not defined.
Breakpoint 2 (info_command) pending.
(top-gdb)
It's caused by this:
if (!query ("Make breakpoint pending on future shared library
load? ")
)
return rc;
The old behavior was: when in batch mode, throw an error (and hence
abandon the script) if the breakpoint insert fails.
The new behavior is: when in batch mode, always insert the breakpoint.
when not in batch mode never throw an error.
For the existing behavior to be restored the query's logic would need to
be reversed (ask the oposite question) and then re-throw the error. A
/pending qualifier could then be added.
Thoughts?
Andrew
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Pending breakpoints and scripts
2004-02-09 20:02 Pending breakpoints and scripts Andrew Cagney
@ 2004-02-09 22:32 ` Daniel Jacobowitz
2004-02-10 21:22 ` Andrew Cagney
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2004-02-09 22:32 UTC (permalink / raw)
To: gdb
On Mon, Feb 09, 2004 at 03:02:19PM -0500, Andrew Cagney wrote:
> Anyone noticed this?
>
> (top-gdb) run testsuite/gdb.base/advance
> Starting program: ...
> Setting up the environment for debugging gdb.
> Function "internal_error" not defined.
> Breakpoint 1 (internal_error) pending.
> Function "info_command" not defined.
> Breakpoint 2 (info_command) pending.
> (top-gdb)
>
> It's caused by this:
>
> if (!query ("Make breakpoint pending on future shared library
> load? ")
> )
> return rc;
>
> The old behavior was: when in batch mode, throw an error (and hence
> abandon the script) if the breakpoint insert fails.
>
> The new behavior is: when in batch mode, always insert the breakpoint.
> when not in batch mode never throw an error.
>
> For the existing behavior to be restored the query's logic would need to
> be reversed (ask the oposite question) and then re-throw the error. A
> /pending qualifier could then be added.
>
> Thoughts?
I'd rather not reverse the question. We could check from_tty at the
call site, and not set pending breakpoints if no tty...
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Pending breakpoints and scripts
2004-02-09 22:32 ` Daniel Jacobowitz
@ 2004-02-10 21:22 ` Andrew Cagney
2004-02-10 22:26 ` Daniel Jacobowitz
0 siblings, 1 reply; 4+ messages in thread
From: Andrew Cagney @ 2004-02-10 21:22 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: gdb
> On Mon, Feb 09, 2004 at 03:02:19PM -0500, Andrew Cagney wrote:
>
>> Anyone noticed this?
>>
>> (top-gdb) run testsuite/gdb.base/advance
>> Starting program: ...
>> Setting up the environment for debugging gdb.
>> Function "internal_error" not defined.
>> Breakpoint 1 (internal_error) pending.
>> Function "info_command" not defined.
>> Breakpoint 2 (info_command) pending.
>> (top-gdb)
>>
>> It's caused by this:
>>
>> if (!query ("Make breakpoint pending on future shared library
>> load? ")
>> )
>> return rc;
>>
>> The old behavior was: when in batch mode, throw an error (and hence
>> abandon the script) if the breakpoint insert fails.
>>
>> The new behavior is: when in batch mode, always insert the breakpoint.
>> when not in batch mode never throw an error.
>>
>> For the existing behavior to be restored the query's logic would need to
>> be reversed (ask the oposite question) and then re-throw the error. A
>> /pending qualifier could then be added.
>>
>> Thoughts?
>
>
> I'd rather not reverse the question. We could check from_tty at the
> call site, and not set pending breakpoints if no tty...
Why?
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Pending breakpoints and scripts
2004-02-10 21:22 ` Andrew Cagney
@ 2004-02-10 22:26 ` Daniel Jacobowitz
2004-02-11 3:48 ` System calls debugging MuthuKumar-Hotpop
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2004-02-10 22:26 UTC (permalink / raw)
To: Andrew Cagney; +Cc: gdb
On Tue, Feb 10, 2004 at 04:22:41PM -0500, Andrew Cagney wrote:
> >On Mon, Feb 09, 2004 at 03:02:19PM -0500, Andrew Cagney wrote:
> >
> >>Anyone noticed this?
> >>
> >>(top-gdb) run testsuite/gdb.base/advance
> >>Starting program: ...
> >>Setting up the environment for debugging gdb.
> >>Function "internal_error" not defined.
> >>Breakpoint 1 (internal_error) pending.
> >>Function "info_command" not defined.
> >>Breakpoint 2 (info_command) pending.
> >>(top-gdb)
> >>
> >>It's caused by this:
> >>
> >> if (!query ("Make breakpoint pending on future shared library
> >>load? ")
> >>)
> >> return rc;
> >>
> >>The old behavior was: when in batch mode, throw an error (and hence
> >>abandon the script) if the breakpoint insert fails.
> >>
> >>The new behavior is: when in batch mode, always insert the breakpoint.
> >>when not in batch mode never throw an error.
> >>
> >>For the existing behavior to be restored the query's logic would need to
> >>be reversed (ask the oposite question) and then re-throw the error. A
> >>/pending qualifier could then be added.
> >>
> >>Thoughts?
> >
> >
> >I'd rather not reverse the question. We could check from_tty at the
> >call site, and not set pending breakpoints if no tty...
>
> Why?
Well, how would you word it? It makes more intuitive sense to me to
answer 'y' to create something special and 'n' to do nothing, than the
other way around.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 4+ messages in thread* System calls debugging
2004-02-10 22:26 ` Daniel Jacobowitz
@ 2004-02-11 3:48 ` MuthuKumar-Hotpop
2004-02-12 9:58 ` how to include subdirectories too, for the source directory murugesan
0 siblings, 1 reply; 4+ messages in thread
From: MuthuKumar-Hotpop @ 2004-02-11 3:48 UTC (permalink / raw)
Cc: gdb
Hello deBUGies,
Is there any way to debug what are all the "system calls" usage and process happening over on the program.
I have written a simple program which gets the a string.I have made it to wait for the input and using that process-id,
I have attached the process with gdb.Now the "where" command gives the stackframes about the system calls information.
To find the processings of other system calls what is the way.
Regards,
Muthu.
^ permalink raw reply [flat|nested] 4+ messages in thread* how to include subdirectories too, for the source directory
2004-02-11 3:48 ` System calls debugging MuthuKumar-Hotpop
@ 2004-02-12 9:58 ` murugesan
2004-02-12 13:07 ` Bob Rossi
0 siblings, 1 reply; 4+ messages in thread
From: murugesan @ 2004-02-12 9:58 UTC (permalink / raw)
To: gdb
Hello all,
I need to include a directory (including it's subdirectories ). I did
that with
gdb --directory=home --directory=/home/sub1 --directory=/home/sub2
............
Is there a way to get out from this riddle to include recursively the
subdirectories.
Thanks
Murugesan
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: how to include subdirectories too, for the source directory
2004-02-12 9:58 ` how to include subdirectories too, for the source directory murugesan
@ 2004-02-12 13:07 ` Bob Rossi
2004-02-13 4:23 ` murugesan
0 siblings, 1 reply; 4+ messages in thread
From: Bob Rossi @ 2004-02-12 13:07 UTC (permalink / raw)
To: murugesan; +Cc: gdb
On Thu, Feb 12, 2004 at 03:27:40PM +0530, murugesan wrote:
> Hello all,
> I need to include a directory (including it's subdirectories ). I did
> that with
> gdb --directory=home --directory=/home/sub1 --directory=/home/sub2
> ............
>
> Is there a way to get out from this riddle to include recursively the
> subdirectories.
Generate the names given a directory with a command. For example,
(find directoryName -type d | perl -pi -e 's/(.*)/--directory=$1/')
That will generate a '--directory=dir' for every directory in
directoryName.
What you need looks like it can easily be accomplished outside of GDB.
Bob Rossi
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to include subdirectories too, for the source directory
2004-02-12 13:07 ` Bob Rossi
@ 2004-02-13 4:23 ` murugesan
0 siblings, 0 replies; 4+ messages in thread
From: murugesan @ 2004-02-13 4:23 UTC (permalink / raw)
To: Bob Rossi; +Cc: gdb
Thanks BOB &Michael.
I am off way in my attempt.
Regards,
Murugesan
----- Original Message -----
From: Bob Rossi
To: murugesan
Cc: gdb@sources.redhat.com
Sent: Thursday, February 12, 2004 6:37 PM
Subject: Re: how to include subdirectories too, for the source directory
On Thu, Feb 12, 2004 at 03:27:40PM +0530, murugesan wrote:
> Hello all,
> I need to include a directory (including it's subdirectories ). I did
> that with
> gdb --directory=home --directory=/home/sub1 --directory=/home/sub2
> ............
>
> Is there a way to get out from this riddle to include recursively the
> subdirectories.
Generate the names given a directory with a command. For example,
(find directoryName -type d | perl -pi -e 's/(.*)/--directory=$1/')
That will generate a '--directory=dir' for every directory in
directoryName.
What you need looks like it can easily be accomplished outside of GDB.
Bob Rossi
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-02-13 4:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-12 12:07 how to include subdirectories too, for the source directory Michael Elizabeth Chastain
-- strict thread matches above, loose matches on Subject: below --
2004-02-09 20:02 Pending breakpoints and scripts Andrew Cagney
2004-02-09 22:32 ` Daniel Jacobowitz
2004-02-10 21:22 ` Andrew Cagney
2004-02-10 22:26 ` Daniel Jacobowitz
2004-02-11 3:48 ` System calls debugging MuthuKumar-Hotpop
2004-02-12 9:58 ` how to include subdirectories too, for the source directory murugesan
2004-02-12 13:07 ` Bob Rossi
2004-02-13 4:23 ` murugesan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox