[gvd-devel] Followup: Problem using GVD 1.2.5 with GDB and PalmOS

David Piepgrass qwertman@hotmail.com
Fri, 2 Aug 2002 19:50:48 -0600


This is a multi-part message in MIME format.

------=_NextPart_000_0026_01C23A5D.E6330CB0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Regarding the problem I had where GVD wasn't showing source lines...

I figured I would spread copies of my source code all around my hard =
drive to see if GDB would find one of the other versions... I put a copy =
in GVD/bin/, /bin/ (where GDB is), and GVD/ (which contains my script =
for starting GVD with the right command line.) Sure enough it worked, =
and I can trace through one of the copies of the code just fine.

I don't know of any way to ask GDB or GVD what the path of a source file =
is, so I made a different modification to each copy of the source and =
discovered GVD loads the version of the code located in GVD/, even =
though, when that file did not exist, it used the original (correct) =
source file instead.

Does someone know how to make it work with the original souce file, or =
should I just tell the makefile to copy all my sources to that location =
as a workaround?  (Well, that'll do until someone replies :))

Also, while I'm asking questions...
- is it possible to automate the starting of the debug session?  I want =
to be able to open the program (F3) automatically and send the command =
"target pilot localhost:6414" to gdb automatically.
- is it possible to use the keyboard to browse through the source, set =
breakpoints (by pressing some key--gdb's command line is tedius, and I =
don't use 'display line numbers' because the numbers take up so much =
real estate), or add/edit watches with the keyboard?

And, while I'm noting bugs... GVD's menus don't disappear when you =
switch to another app, and the menus are always on top.  I've surprised =
myself at how often I actually open a menu and then switch to another =
app... I would guess it's more likely a bug in the window toolkit than =
the debugger, but I'm no expert.  Also you can't close the menu by =
clicking the menu heading again or the title bar... in fact you can move =
the window around, resize it or minimize it and the menu stays =
stationary!

Can I suggest adding a way to customize hotkeys?  For a VB programmer, =
continue is F5 and step is F8... I suspect the fact GVD uses the =
opposite will be a problem for me in the future.

Well, until next time I have a problem....goodbye.

- David Piepgrass


------=_NextPart_000_0026_01C23A5D.E6330CB0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Regarding the problem I had where GVD =
wasn't=20
showing source lines...</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I figured I would spread copies of my =
source code=20
all around my hard drive to see if GDB would find one of the other =
versions... I=20
put a copy in GVD/bin/, /bin/ (where GDB is), and&nbsp;GVD/&nbsp;(which =
contains=20
my script for starting GVD with the right command line.) Sure enough it =
worked,=20
and I can trace through one of the copies of the code just =
fine.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I don't know of any way to ask GDB or =
GVD what the=20
path of a source file is, so I made a different modification to each =
copy of the=20
source and discovered GVD loads the version of the code located in GVD/, =
even=20
though, when that file did not exist, it used the original (correct) =
source file=20
instead.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Does someone know how to make it work =
with the=20
original souce file, or should I just tell the makefile to copy all my =
sources=20
to that location as a workaround?&nbsp; (Well, that'll do until someone =
replies=20
:))</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Also, while I'm asking =
questions...</FONT><FONT=20
face=3DArial size=3D2></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>- is it possible to automate the =
starting of the=20
debug session?</FONT><FONT face=3DArial size=3D2>&nbsp; I want to be =
able to open=20
the program (F3) automatically and send the command "target pilot=20
localhost:6414" to gdb automatically.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>- is it possible to use the keyboard to =
browse=20
through the source, set breakpoints (by pressing some key--gdb's command =
line is=20
tedius, and I don't use 'display line numbers' because the numbers take =
up so=20
much real estate), or add/edit watches with the keyboard?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>And, while I'm noting bugs... GVD's =
menus don't=20
disappear when you switch to another app, and the menus are always on =
top.&nbsp;=20
I've surprised myself at how often I actually open a menu and then =
switch to=20
another app... I would guess it's more likely a bug in the window =
toolkit than=20
the debugger, but I'm no expert.&nbsp; Also you can't close the menu by =
clicking=20
the menu heading again or the title bar... in fact you can move the =
window=20
around, resize it or minimize it and the menu stays =
stationary!</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Can I suggest adding a way to customize =

hotkeys?&nbsp; For a VB programmer, continue is F5 and step is F8... I =
suspect=20
the fact GVD uses the opposite will be a problem for me in the=20
future.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Well, until next time I have a=20
problem....goodbye.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>- David Piepgrass</FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0026_01C23A5D.E6330CB0--