comp.lang.ada
 help / color / mirror / Atom feed
* GDB and exceptions
@ 1999-04-13  0:00 Boulais, Jeffrey M
  1999-04-13  0:00 ` David C. Hoos, Sr.
  1999-04-13  0:00 ` dennison
  0 siblings, 2 replies; 7+ messages in thread
From: Boulais, Jeffrey M @ 1999-04-13  0:00 UTC (permalink / raw)


I'm trying to set a breakpoint on exceptions.  Whenever I try, I get a
'Couldn't open "a-except.adb": no such file or directory' message.  Does
anyone have a suggestion?



   -**** Posted from RemarQ, http://www.remarq.com/?a ****-
 Search and Read Usenet Discussions in your Browser - FREE -




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: GDB and exceptions
  1999-04-13  0:00 GDB and exceptions Boulais, Jeffrey M
  1999-04-13  0:00 ` David C. Hoos, Sr.
@ 1999-04-13  0:00 ` dennison
  1999-04-14  0:00   ` Stephen Leake
  1999-04-15  0:00   ` Boulais, Jeffrey M
  1 sibling, 2 replies; 7+ messages in thread
From: dennison @ 1999-04-13  0:00 UTC (permalink / raw)


In article <dbHQ2.754$36.263875@WReNphoon2>,
  jboulais@sikorsky.com (Boulais, Jeffrey M) wrote:
> I'm trying to set a breakpoint on exceptions.  Whenever I try, I get a
> 'Couldn't open "a-except.adb": no such file or directory' message.  Does
> anyone have a suggestion?

You mean when the exception occurs you get that? I get something very much
like that. But its no big deal, since I don't *want* to debug that file. I
can pretty much assume the Ada runtime is working correctly.

In the nice TK version of GDB, just select "Stacks" from the "Window" menu and
click on the lowest numbered level that contains your code. That should place
you on the line where the exception was raised.


--
T.E.D.

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: GDB and exceptions
  1999-04-13  0:00 GDB and exceptions Boulais, Jeffrey M
@ 1999-04-13  0:00 ` David C. Hoos, Sr.
  1999-04-13  0:00 ` dennison
  1 sibling, 0 replies; 7+ messages in thread
From: David C. Hoos, Sr. @ 1999-04-13  0:00 UTC (permalink / raw)



Boulais, Jeffrey M wrote in message ...
>I'm trying to set a breakpoint on exceptions.  Whenever I try, I get a
>'Couldn't open "a-except.adb": no such file or directory' message.  Does
>anyone have a suggestion?
>
add a line in your .gdbinit file:

directory <adainclude>


where <adainclude> is the full pat the gnat's adainclude directory
in your environment.

For example, on my NT machine, I have this line in .gdbinit:

directory c:/GNAT/lib/gcc-lib/pentium-mingw32msv/2.8.1/adainclude/

This directory can usually be obtained by typing "gcc -v" and
replacing the "specs" at the end of the line of output with
"adainclude"








^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: GDB and exceptions
  1999-04-13  0:00 ` dennison
@ 1999-04-14  0:00   ` Stephen Leake
  1999-04-15  0:00   ` Boulais, Jeffrey M
  1 sibling, 0 replies; 7+ messages in thread
From: Stephen Leake @ 1999-04-14  0:00 UTC (permalink / raw)


dennison@telepath.com writes:

> In article <dbHQ2.754$36.263875@WReNphoon2>,
>   jboulais@sikorsky.com (Boulais, Jeffrey M) wrote:
> > I'm trying to set a breakpoint on exceptions.  Whenever I try, I get a
> > 'Couldn't open "a-except.adb": no such file or directory' message.  Does
> > anyone have a suggestion?
> 
> You mean when the exception occurs you get that? I get something very much
> like that. But its no big deal, since I don't *want* to debug that file. I
> can pretty much assume the Ada runtime is working correctly.
> 
> In the nice TK version of GDB, just select "Stacks" from the "Window" menu and
> click on the lowest numbered level that contains your code. That should place
> you on the line where the exception was raised.

And in the even nicer command line gdb under emacs (no bias here :),
just type "up" to go up one stack level, or "where" to see the full
list, then "frame n" to get to your code.

-- Stephe





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: GDB and exceptions
  1999-04-13  0:00 ` dennison
  1999-04-14  0:00   ` Stephen Leake
@ 1999-04-15  0:00   ` Boulais, Jeffrey M
  1999-04-15  0:00     ` David C. Hoos, Sr.
  1 sibling, 1 reply; 7+ messages in thread
From: Boulais, Jeffrey M @ 1999-04-15  0:00 UTC (permalink / raw)


David Hoos,

   I don't have a .gdbinit file.  I'm working under NT, are you working on a
Unix based system?  Your fix worked,
but I have to pass that info in from the command line.



   -**** Posted from RemarQ, http://www.remarq.com/?a ****-
 Search and Read Usenet Discussions in your Browser - FREE -




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: GDB and exceptions
  1999-04-15  0:00   ` Boulais, Jeffrey M
@ 1999-04-15  0:00     ` David C. Hoos, Sr.
  1999-04-16  0:00       ` Stephen Leake
  0 siblings, 1 reply; 7+ messages in thread
From: David C. Hoos, Sr. @ 1999-04-15  0:00 UTC (permalink / raw)



Boulais, Jeffrey M <jboulais@sikorsky.com> wrote in message
news:zDsR2.647$dd.259780@WReNphoon3...
> David Hoos,
>
>    I don't have a .gdbinit file.  I'm working under NT, are you working on
a
> Unix based system?  Your fix worked,
> but I have to pass that info in from the command line.
>
I work in both environments, and .gdbinit works in both.  It saves a lot of
typing to
use .gdbinit.

I normally work in the tcsh shell on WinNT, because it makes for less
"mental gear shifting" when going back and forth between UNIX and NT.

However, .gdbinit works in the Microsoft CommandPrompt shell, as well.







^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: GDB and exceptions
  1999-04-15  0:00     ` David C. Hoos, Sr.
@ 1999-04-16  0:00       ` Stephen Leake
  0 siblings, 0 replies; 7+ messages in thread
From: Stephen Leake @ 1999-04-16  0:00 UTC (permalink / raw)


"David C. Hoos, Sr." <david.c.hoos.sr@ada95.com> writes:

> Boulais, Jeffrey M <jboulais@sikorsky.com> wrote in message
> news:zDsR2.647$dd.259780@WReNphoon3...
> > David Hoos,
> >
> >    I don't have a .gdbinit file.  I'm working under NT, are you working on
> a
> > Unix based system?  Your fix worked,
> > but I have to pass that info in from the command line.
> >
> I work in both environments, and .gdbinit works in both.  It saves a lot of
> typing to
> use .gdbinit.

Jeffrey: the point here is that you create your own .gdbinit. It can
contain any commands that you would type at the gdb prompt.





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1999-04-16  0:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-04-13  0:00 GDB and exceptions Boulais, Jeffrey M
1999-04-13  0:00 ` David C. Hoos, Sr.
1999-04-13  0:00 ` dennison
1999-04-14  0:00   ` Stephen Leake
1999-04-15  0:00   ` Boulais, Jeffrey M
1999-04-15  0:00     ` David C. Hoos, Sr.
1999-04-16  0:00       ` Stephen Leake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox