From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jim Wilson To: Jim Blandy Cc: Daniel Berlin , Kevin Buettner , Jim Wilson , Pete Wyckoff , gdb@sources.redhat.com Subject: Re: [Linux-ia64] Re: gdb null ptr Date: Tue, 07 Nov 2000 15:40:00 -0000 Message-id: <200011072342.PAA31357@wilson.cygnus.com> References: X-SW-Source: 2000-11/msg00041.html >If I understand the situation, the SGI compiler attaches a DW_AT_name >attribute to array types. We don't know whether this behavior occurs >only in C compilation units, or in C++ compilation units as well. It was the SGI Fortran 90 compiler. I haven't seen any reports of similar problems with the SGI C or C++ compilers. Jim >From ac131313@cygnus.com Tue Nov 07 16:58:00 2000 From: Andrew Cagney To: David Taylor Cc: gdb@sourceware.cygnus.com Subject: Re: pathmap or dir command on drugs Date: Tue, 07 Nov 2000 16:58:00 -0000 Message-id: <3A08A3B5.BE9A4017@cygnus.com> References: <200011062125.QAA00561@texas.cygnus.com> X-SW-Source: 2000-11/msg00042.html Content-length: 1335 David Taylor wrote: > One camp, by comparison with breakpoints and displays, is: > > pathmap > show pathmaps > delete pathmaps > > The other camp is > > pathmap add > pathmap list > pathmap delete > > By further analogy with breakpoints and displays, we could also have: Regardless of the command syntax, is there a way of doing: (gdb) show pathmap some complex-jibberish is displayed (gdb) set pathmap jibberish so that the entire path map can be set using a single command (instead of having to construct it). Hmm, Yes ok, the directory command doesn't have an equivalent: (gdb) show directories Source directories searched: $cdir:$cwd (gdb) directory /tmp Source directories searched: /tmp:$cdir:$cwd (gdb) set directories $cdir:/tmp:/$cwd No symbol table is loaded. Use the "file" command. [[this is an error ok :-)]] (gdb) show directories Source directories searched: /tmp:$cdir:$cwd (gdb) :-( If such an underlying mechanism then, I think, that would be more useable GUI's (what to add to MI). The CLI might then add a vineer that included operations such as ``pathmap add''. A regex operation sounds useful (if slightly more obtuse for non UNIX die-hards). Andrew