Michael Livshin | 1 Jan 2003 21:31

gdb 5.2.1: canonicalized filenames


gdb 5.2.1's filename canonicalization is very unhelpful to me.  

this is because it shortens ClearCase filenames like
'/view/my_view/stuff/...' to '/my_view/stuff/...' when the current
ClearCase view is "my_view".

while technically correct, this "helpful" behaviour messes up my way
of working: I run gdb under Emacs, and the Emacs I run it under wasn't
started in "my_view".  it would be very inconvenient to start Emacs
afresh for each debugging session in the appropriate view (I routinely
work with 2 or 3 views at the same time).

so, is there any way to tell gdb *not* to canonicalize filenames?

thanks,
--m

--

-- 
What a depressingly stupid machine.
                -- Marvin
SirVlad | 3 Jan 2003 20:42
Picon

How can I connect to gdb/mi?

Hello!
I am working at a program that should invoke gdb and manage it, make it run some commands and should store the
results (which I hope to obtain via gdb/mi) in its data structures.
How can I connect to GDB/MI?
I do
...
fork();
//and then, in the daughter process,
dup2();
execlp(gdb);

But dup2 closes stdin, so I get
~"Hangup detected on fd 0\n"
~"error detected on stdin\n" 

Is there any way to avoid this? Sorry for maybe my question is one of a newbie.
Thank you for reading this.
Cheers,
--
roy.
SirVlad | 5 Jan 2003 08:00
Picon

Re: my gdb/mi question. Don't forget fcntl.


roy wrote:

>    1. How can I connect to gdb/mi?
> 
> 
> ----------------------------------------------------------------------
> 
> Date: Fri, 03 Jan 2003 22:42:45 +0300
> From: "SirVlad" <sirvlad <at> inbox.ru>
> To: gdb <at> gnu.org
> Subject: [Gdb] How can I connect to gdb/mi?

> 
> Hello!
> I am working at a program that should invoke gdb and manage it, make it run some commands and should store the
results (which I hope to obtain via gdb/mi) in its data structures.
> How can I connect to GDB/MI?
> I do
> ...
> fork();
> //and then, in the daughter process,
> dup2();
> execlp(gdb);
> 
> But dup2 closes stdin, so I get
> ~"Hangup detected on fd 0\n"
> ~"error detected on stdin\n" 
> 
> Is there any way to avoid this? Sorry for maybe my question is one of a newbie.
(Continue reading)

bianji@jincao.com | 7 Jan 2003 03:20

None

中国企业集成网CEO赵新华向您郑重声明:

    如果您是企业经营管理者,这个邮件对您来讲绝不是垃圾邮件。

    1、这里一定有您所需要的信息;您单位的网站就在我们这里链接,企业容量四万两千户。

    2、这里有您所需要的所有中国法律,您随时可以免费查阅。

    如果您不是企业经营管理者,我们对您表示抱歉!

            中国企业集成网:  www.jincao.com 

            中国法律大全:  www.jincao.com/t1.htm 

            E-mail : zxh <at> jincao.com

            2003年1月7日
Stephen P. Smith | 14 Jan 2003 22:20
Picon

Compiling GDB to target IP2k and host on cygwin

I have a set of insight (gdb) sources which I downloaded from one of the 
  cygwin mirrors the source tree is dated 20021218 and so should be current.

Using it I successfully compiled a cygwin native build and builds 
targeting PPC, and ARM targets hosted on cygwin.

I notice that the IP2k files appear to be in the BFD and opcode 
directories, but there doesn't seem to be any gdb/config/ip2k directory.

What do I need to do to add the IP2k to the gdb configuration?

sps
Picon
Favicon

GDB unaware of environment variables?

Hi all,

I'd like to use environment variables other than e.g. PATH to set e.g. the source directories, for example as in
directory $rootsrc:$rootinc

 I experimented a bit (in gdb 5.2.1.), and searched the documentation, and suspect it is not possible. Can someone tell me how to do this, or break the bad news ...

Thanks,

Andreas Buykx
Software Engineer
Shell International Exploration and Production B.V.
Volmerlaan 8, Postbus 60, 2280 AB  Rijswijk, The Netherlands

Tel: +31-070-447 6168 Fax: +31-070-311 2521
Email: Andreas.Buykx <at> Shell.com
Internet: http://www.shell.com/eandp-en

_______________________________________________
Gdb mailing list
Gdb <at> gnu.org
http://mail.gnu.org/mailman/listinfo/gdb
Jan Beulich | 24 Jan 2003 09:26
Picon
Favicon

new target

Hello,

we'd like to start the process of integrating the port to our new OS,
Modesto (running on ia64, ix86 and x86-64 currently), as a target for
several of the GNU packages (currently binutils, gcc, and perhaps soon
gdb). While I tried to read through the documentation on the web it is
not exactly clear how this is going to work for each of these
components, who to communicate with, and what 'paper'work will be
required.

Any directions would be very welcome,

i.A. Jan Beulich
Software Engineer Senior
Novell Core OS Engineering

Novell, the leading provider of Net business solutions.
http://www.novell.com/
Jan Beulich | 24 Jan 2003 09:26
Picon
Favicon

new target

Hello,

we'd like to start the process of integrating the port to our new OS,
Modesto (running on ia64, ix86 and x86-64 currently), as a target for
several of the GNU packages (currently binutils, gcc, and perhaps soon
gdb). While I tried to read through the documentation on the web it is
not exactly clear how this is going to work for each of these
components, who to communicate with, and what 'paper'work will be
required.

Any directions would be very welcome,

i.A. Jan Beulich
Software Engineer Senior
Novell Core OS Engineering

Novell, the leading provider of Net business solutions.
http://www.novell.com/

Bill Galbraith | 24 Jan 2003 21:34

Upper-level variable monitor

My apologies if this is the wrong list to post this to, but after a thorough search (probably not thorough enough), this was the best place I could find for this. If someone could suggest a better place for this, please do. This email comes with a lot of work in the past trying to solve this problem, and I'm getting frustrated. I'm not a compiler designed guru, so I thought I might turn to you folks for some help.
 
 
What I am looking for is an upper-level variable monitor program. GDB acts as a lower-level variable monitor, and stops the execution of the program in question every time that it hits a breakpoint. An upper-level variable monitoring program would be one that runs in background to my real-time (okay, 60 hz) program, and would allow me to display the values of program variables. This is being applied to flight simulation programs, so a good example would be to monitor the speed of an engine as it spools up. With GDB, it would stop every frame (or whatever), but maybe I just want to watch the values change as the engine spools up, and watch the oscillations as the software modeling the engine causes it to oscillate. Like GDB, I want to display the values in their appropriate display format (boolean, integer, real, etc), and would like to be able to change the values of program variables. Like GDB, I would also like to display and change the values of enumerated types in their appropriate format. For example, in Ada, if I have an enumerated type of OFF_OR_ON, I want to change a variable by saying "Change SWITCH ON".
 
I have written programs to perform a similar function in Ada, using the 'address function. This required me to write specific code for each enumerated type in the simulation program (and there were hundreds), including all enumerated types, records, arrays, etc. By using other tick attributes, I was able to convert a string read from the command line containing the variable and desired value, determine the address and value to stuff into that address. This worked, but the drawback was that any time a new type was added, specific code also had to be added to handle the displaying and changing of this new type.
 
Now, my current approach has been to look into the ELF specification. Apparently, the information that I am looking for (variable name, address, type, etc) is contained in the header, since GDB is capable of displaying enumerated types properly for Ada programs. When I use READELF, NM, or OBJDUMP, I see the program variables (along with a lot of other stuff), and their addresses, but I don't see any indication for the type, etc. The info must be there, but where?
 
So, if someone (if anyone is still awake) could suggest anything that would either help me trudge through the ELF spec, or knows of a program that might do what I would like to do, I would really appreciate it. Another path might be to try to understanf how GDB (and it's Ada variant) handles this stuff.
 
Thanks,
Bill
_______________________________________________
Gdb mailing list
Gdb <at> gnu.org
http://mail.gnu.org/mailman/listinfo/gdb
Luc Prefontaine | 27 Jan 2003 16:57
Picon
Favicon

Any plans to support Pascal in gdb ?

Can someone tell me if support for Pascal is planned in gdb and if yes what
might be the schedule ?
If nothing is planned, how can we get involved to implement Pascal support
in gdb ?

Thank You
Luc Préfontaine

Gmane