From: Eli Zaretskii <eliz@delorie.com>
To: shebs@apple.com
Cc: gdb@sourceware.cygnus.com
Subject: Re: annotate.texi
Date: Wed, 08 Mar 2000 02:03:00 -0000 [thread overview]
Message-ID: <200003081003.FAA16478@indy.delorie.com> (raw)
In-Reply-To: <38C55BEE.D8E6F7BE@apple.com>
> > Is there any reason why annotate.texi shouldn't be @include'd by
> > gdb.texinfo and be part of the manual? Right now, "set annotate" is
> > not documented at all, and annotate.texi seems to be just what the
> > doctor ordered...
>
> This is on my long-term wish list for the manual, along with agentexpr
> info.
So, will it be okay to submit a change to gdb.texinfo to include
annotate.texi (and add the appropriate menu items to gdb.texinfo)?
IMHO, no matter how incomplete annotate.texi might be, it is still
MUCH better than not telling anything about this feature.
> > And while at that, NEWS seems to be in the need of some work, it
> > doesn't mention many of the new features that already are in the CVS
> > tree. I would like at least to mention the improvements in the DJGPP
> > version.
>
> Yes please.
Will do.
> But seriously, everybody doing a checkin should ask themselves: will
> users want to know about this change? Usually the answer will be
> yes; users complain about lack of information far more often than
> about overloaded...
The manual is also in dire need of more indexing. I find myself using
(the inefficient) search command too much, instead of (the superb)
index-search. Simple search is painful in a large manual.
I'm trying to add some indexing whenever I can. But I suggest that
every manual patch be scrutinized for appropriate index entries, and
that this policy be published in the guidelines.
From eliz@delorie.com Wed Mar 08 02:09:00 2000
From: Eli Zaretskii <eliz@delorie.com>
To: hjl@valinux.com
Cc: gdb@sourceware.cygnus.com
Subject: Re: Problems with hardware watchpoint on ia32.
Date: Wed, 08 Mar 2000 02:09:00 -0000
Message-id: <200003081008.FAA16481@indy.delorie.com>
References: <20000307132401.A20282@valinux.com>
X-SW-Source: 2000-03/msg00130.html
Content-length: 1624
> Starting program: /home/hjl/bugs/gdb/hw/y
> warning: Could not insert hardware watchpoint 1.
> warning: Could not insert hardware watchpoint 3.
> ptrace: Unknown error 4294967295.
> Cannot insert breakpoints.
> The same program may be running in another process.
> (gdb)
>
> ia32 only has 4 hardware debug registers. But gdb shouldn't crash.
I don't see any crashes in the above script. GDB simply didn't start
the process. It is arguable whether it should instead proceed after
inserting only those watchpoints it can, but I agree that it should at
least be a user option.
> Even worse, after deleted one hardware watchpoint, gdb still refused
> to work.
It works for me, but I have patches to do that, which I'm trying for 6
months to get accepted :-(.
Those patches also correct numerous other problems with watchpoints on
x86, which you didn't mention. For example, try setting several
watchpoints (of different types) on the same variable, and see the
mess. Another problem which I corrected is that you cannot watch
struct members, array elements, and bit fields with hardware-assisted
watchpoints.
> (gdb) watch a1
> Watchpoint 1: a1
> (gdb) watch a2
> Watchpoint 2: a2
> (gdb)
>
> gdb won't set hardware watchpoints on long long nor double.
You could look at go32-nat.c, it supports watching any region up to 16
bytes large. (I'm at a loss how come DJGPP needed to invent this: I'd
expect any x86 platform to have this already, since watchpoints are
such an indispensable tool in some circumstances.)
> I will send in a patch in another email.
Please see my response with objections to your patch.
From eliz@delorie.com Wed Mar 08 02:14:00 2000
From: Eli Zaretskii <eliz@delorie.com>
To: hjl@valinux.com
Cc: gdb-patches@sourceware.cygnus.com, gdb@sourceware.cygnus.com
Subject: Re: A patch for ia32 hardware watchpoint.
Date: Wed, 08 Mar 2000 02:14:00 -0000
Message-id: <200003081012.FAA16486@indy.delorie.com>
References: <20000307132613.B20282@valinux.com>
X-SW-Source: 2000-03/msg00131.html
Content-length: 3231
> This is a patch for
>
> http://sourceware.cygnus.com/ml/gdb/2000-q1/msg00564.html
I have problems with this patch. See below.
> I only did it for Linux since it is not a perfect solution.
No, you also changed nm-go32.h, which is not related to Linux (AFAIK),
and changed the global definition of two macros on breakpoint.c.
> +#ifdef NEED_WATCHPOINT_NUMBER
> + val = target_insert_watchpoint (b->number, addr,
> + len, type);
> +#else
Please explain why is this needed. The DJGPP version works well
without knowing the breakpoint number, but if there's a good reason
for passing b->number, it should be done on all x86 platforms. So
let's discuss this.
> + /* Don't return an error if we fail to insert
> + a hardware watchpoint due to the limited number
> + of hardware watchpoints availabel. */
> + val = (errno == EBUSY) ? 0 : -1;
> + }
Why is this a good idea? The result of this is that GDB will not know
that it cannot insert a watchpoint until it actually resumes the
debuggee, which is too late in many cases; and the user gets confusing
error messages. x86 doesn't have a good way of checking whether the
debug registers are enough to cover the requests, but whenever it
does, why not use it?
> @@ -5500,13 +5513,13 @@ watch_command_1 (arg, accessflag, from_t
> in hardware return zero. */
>
> #if !defined(TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
> -#define TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT(BYTE_SIZE) \
> - ((BYTE_SIZE) <= (REGISTER_SIZE))
> +#define TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT(VAL) \
> + (TYPE_LENGTH (VALUE_TYPE (VAL)) <= (REGISTER_SIZE))
> #endif
>
> #if !defined(TARGET_REGION_OK_FOR_HW_WATCHPOINT)
> -#define TARGET_REGION_OK_FOR_HW_WATCHPOINT(ADDR,LEN) \
> - TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT(LEN)
> +#define TARGET_REGION_OK_FOR_HW_WATCHPOINT(VAL) \
> + TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT(VAL)
> #endif
These are IMHO wrong: the number of debug registers required for a
particular region is a function of the address, not only size (e.g., a
single x86 debug register cannot watch a 32-bit region that isn't
aligned on 4-byte boundary). If Linux, for some reason, doesn't need
the address (although I cannot see how could this be right, at least
for native debugging), please define a platform-specific macro instead
of overwriting system-wide defaults.
The DJGPP version actually *uses* the ADDR part of the above
definition, since it knows how to cover a region with several
watchpoints.
> --- config/i386/nm-go32.h 2000/03/07 18:42:21 1.1.1.2
> +++ config/i386/nm-go32.h 2000/03/07 18:53:48
> @@ -44,10 +44,10 @@
> #define TARGET_CAN_USE_HARDWARE_WATCHPOINT(type, cnt, ot) 1
>
> /* Returns non-zero if we can use hardware watchpoints to watch a region
> - whose address is ADDR and whose length is LEN. */
> + which represents VAL. */
>
> -#define TARGET_REGION_OK_FOR_HW_WATCHPOINT(addr,len) \
> - go32_region_ok_for_watchpoint(addr,len)
> +#define TARGET_REGION_OK_FOR_HW_WATCHPOINT(val) \
> + go32_region_ok_for_watchpoint((VALUE_ADDRESS (val) + VALUE_OFFSET (val)),TYPE_LENGTH (VALUE_TYPE (val)))
Please do not commit this one, it disables a valuable feature in the
DJGPP version.
From eliz@delorie.com Wed Mar 08 03:32:00 2000
From: Eli Zaretskii <eliz@delorie.com>
To: hjl@valinux.com
Cc: gdb-patches@sourceware.cygnus.com, gdb@sourceware.cygnus.com
Subject: Re: A patch for ia32 hardware watchpoint.
Date: Wed, 08 Mar 2000 03:32:00 -0000
Message-id: <200003081132.GAA16847@indy.delorie.com>
References: <20000307132613.B20282@valinux.com>
X-SW-Source: 2000-03/msg00132.html
Content-length: 1455
> > @@ -5500,13 +5513,13 @@ watch_command_1 (arg, accessflag, from_t
> > in hardware return zero. */
> >
> > #if !defined(TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
> > -#define TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT(BYTE_SIZE) \
> > - ((BYTE_SIZE) <= (REGISTER_SIZE))
> > +#define TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT(VAL) \
> > + (TYPE_LENGTH (VALUE_TYPE (VAL)) <= (REGISTER_SIZE))
> > #endif
> >
> > #if !defined(TARGET_REGION_OK_FOR_HW_WATCHPOINT)
> > -#define TARGET_REGION_OK_FOR_HW_WATCHPOINT(ADDR,LEN) \
> > - TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT(LEN)
> > +#define TARGET_REGION_OK_FOR_HW_WATCHPOINT(VAL) \
> > + TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT(VAL)
> > #endif
>
> These are IMHO wrong: the number of debug registers required for a
> particular region is a function of the address, not only size (e.g., a
> single x86 debug register cannot watch a 32-bit region that isn't
> aligned on 4-byte boundary). If Linux, for some reason, doesn't need
> the address (although I cannot see how could this be right, at least
> for native debugging), please define a platform-specific macro instead
> of overwriting system-wide defaults.
Sorry, I talked too soon. These changes supply all the required info,
since they pass the entire struct value to the macro. So they are
okay with me.
I'm terribly sorry for jumping the gun for no reason.
The rest of my comments about these patches are still valid, though.
From sharathibm@theglobe.com Wed Mar 08 05:38:00 2000
From: "Sharath Kumar" <sharathibm@theglobe.com>
To: gdb@sourceware.cygnus.com
Subject: target_read_memory for breakpoints
Date: Wed, 08 Mar 2000 05:38:00 -0000
Message-id: <GAMLDEKNADAJKAAA@theglobe.com>
X-SW-Source: 2000-03/msg00133.html
Content-length: 552
Hi
I was just trying to find how breakpoints are set/hit..and i came across this function - 'target_read_memory' which calls
'target_xfer_memory' which inturn calls - "current_target.to_xfer_memory".
I am not able to proceed after this.. I actually want to know the implementation of "hitting of the breakpoint" and then
"continuing after the breakpoint". (for intel pentium arch.)
Do you have any suggesstions?
regards,
Sharath.
theglobe.com
Your friendly full-service integrated online community.
http://www.theglobe.com
From johan.rydberg@netinsight.se Wed Mar 08 05:59:00 2000
From: Johan Rydberg <johan.rydberg@netinsight.se>
To: gdb@sourceware.cygnus.com
Subject: problem with register display
Date: Wed, 08 Mar 2000 05:59:00 -0000
Message-id: <38C6691D.C3F05223@netinsight.se>
X-SW-Source: 2000-03/msg00134.html
Content-length: 665
Hi!
I'm developing a "gdb-simulator" for a CPU, and it seems to
work pretty good. But I have some questions. When I try to
display the registers it says everyone except the link register
is unavailable. Why this? It also fetches the PC register, but
it also says it's unavailable.
And, how do I from gdb call the `sim_info´ function? Right
now I have implemented a "sim info" command, but since it's
defined in the simulator interface I guess that there's a
better way to do this.
--
Johan Rydberg johan.rydberg@netinsight.net
Net Insight AB, Sweden direct: +46-8-685 04 17
http://www.netinsight.net phone: +46-8-685 04 00
fax: +46-8-685 04 20
From kingdon@redhat.com Wed Mar 08 06:04:00 2000
From: Jim Kingdon <kingdon@redhat.com>
To: gdb@sourceware.cygnus.com
Subject: Re: A patch for ia32 hardware watchpoint.
Date: Wed, 08 Mar 2000 06:04:00 -0000
Message-id: <bsny1fths.fsf@rtl.cygnus.com>
References: <200003080845.AAA18410@alabama.wrs.com>
X-SW-Source: 2000-03/msg00135.html
Content-length: 1547
> Yeah. This is about as bad as crunching target events through unix
> signals, something that only ever made sense on ptrace() targets
> which couldn't do any better. "But the code lives on"
Always amusing to hear people talking about my designs :-) (also see
comment in target.h at enum target_signal).
The deep question is whether you want GDB to canonicalize things. I
do see some value in getting (for example) a SEGV when you access
memory which is not mapped by the MMU (if you have one) across all
targets. Both for users and for scripts.
If you answer pro-canonical, then the right solution is to add
additional fields (most native platforms have arch-dependent signal
codes, for example, and GDB could be taught to pass them along or
generate them for stubs and such). I think that ptrace() targets
could get at the signal codes but not necessarily in a clean way
(wait4 and friends don't seem to return them).
If you answer anti-canonical, then you want functions in the target
vector to do things like report stop status to the user.
The two approaches aren't mutually exclusive, actually, we probably
want both a canonicalized status and a way to get more specific
information in a free-form way.
The situation might be analogous for errno, although errno is such a
poor fit for things which happen to targets (e.g. "address out of
range" maps to EIO. Bletch), that I kind of doubt it is worth the
bother to do the canonicalization thing. Unless perhaps if we wanted
to come up with a GDB-specific canonical set of errors.
From kingdon@redhat.com Wed Mar 08 06:12:00 2000
From: Jim Kingdon <kingdon@redhat.com>
To: Eli Zaretskii <eliz@is.elta.co.il>
Cc: gdb@sourceware.cygnus.com
Subject: Re: annotate.texi
Date: Wed, 08 Mar 2000 06:12:00 -0000
Message-id: <br9dlft4v.fsf@rtl.cygnus.com>
References: <200003070832.DAA14451@indy.delorie.com> <38C55BEE.D8E6F7BE@apple.com> <200003081003.FAA16478@indy.delorie.com>
X-SW-Source: 2000-03/msg00136.html
Content-length: 488
> I'm trying to add some indexing whenever I can. But I suggest that
> every manual patch be scrutinized for appropriate index entries
Sounds like the voice of someone volunteering to do some scrutinization ;-).
Believe me, "people sending in lots of manual patches which never get
merged" just hasn't been a problem on any free software project I've
worked on. Having Stan as the documentation maintainer is a good
thing too, because we are willing to hurt him if he slacks off :-).
From eliz@delorie.com Wed Mar 08 06:23:00 2000
From: Eli Zaretskii <eliz@delorie.com>
To: Jim Kingdon <kingdon@redhat.com>
Cc: gdb@sourceware.cygnus.com, shebs@apple.com
Subject: Re: annotate.texi
Date: Wed, 08 Mar 2000 06:23:00 -0000
Message-id: <200003081422.JAA17698@indy.delorie.com>
References: <br9dlft4v.fsf@rtl.cygnus.com> <200003070832.DAA14451@indy.delorie.com> <38C55BEE.D8E6F7BE@apple.com> <200003081003.FAA16478@indy.delorie.com>
X-SW-Source: 2000-03/msg00137.html
Content-length: 677
Jim Kingdon writes:
> > I'm trying to add some indexing whenever I can. But I suggest that
> > every manual patch be scrutinized for appropriate index entries
>
> Sounds like the voice of someone volunteering to do some scrutinization ;-).
If that's what it takes to make this happen, then yes, I do volunteer.
But I do request that this be declared as an official policy, so that
individual contributors could be requested to add the index entries,
if the manual changes are large.
Adding an index entry to a typical manual patch is really a small
nuisance. It's only when you need to add them all at once to a large
manual, only then the job becomes too large to bear.
WARNING: multiple messages have this Message-ID
From: Eli Zaretskii <eliz@delorie.com>
To: shebs@apple.com
Cc: gdb@sourceware.cygnus.com
Subject: Re: annotate.texi
Date: Sat, 01 Apr 2000 00:00:00 -0000 [thread overview]
Message-ID: <200003081003.FAA16478@indy.delorie.com> (raw)
Message-ID: <20000401000000.w2mtOI5rdDlaT3AwR1KEWj7MY-_ivN3MZbY1SaVmM_w@z> (raw)
In-Reply-To: <38C55BEE.D8E6F7BE@apple.com>
> > Is there any reason why annotate.texi shouldn't be @include'd by
> > gdb.texinfo and be part of the manual? Right now, "set annotate" is
> > not documented at all, and annotate.texi seems to be just what the
> > doctor ordered...
>
> This is on my long-term wish list for the manual, along with agentexpr
> info.
So, will it be okay to submit a change to gdb.texinfo to include
annotate.texi (and add the appropriate menu items to gdb.texinfo)?
IMHO, no matter how incomplete annotate.texi might be, it is still
MUCH better than not telling anything about this feature.
> > And while at that, NEWS seems to be in the need of some work, it
> > doesn't mention many of the new features that already are in the CVS
> > tree. I would like at least to mention the improvements in the DJGPP
> > version.
>
> Yes please.
Will do.
> But seriously, everybody doing a checkin should ask themselves: will
> users want to know about this change? Usually the answer will be
> yes; users complain about lack of information far more often than
> about overloaded...
The manual is also in dire need of more indexing. I find myself using
(the inefficient) search command too much, instead of (the superb)
index-search. Simple search is painful in a large manual.
I'm trying to add some indexing whenever I can. But I suggest that
every manual patch be scrutinized for appropriate index entries, and
that this policy be published in the guidelines.
From dan@cgsoftware.com Sat Apr 01 00:00:00 2000
From: dan@cgsoftware.com (Daniel Berlin+list.gdb-patches)
To: Jimmy Guo <guo@cup.hp.com>
Cc: "Daniel Berlin+list.gdb-patches" <dan@cgsoftware.com>, gdb@sourceware.cygnus.com, gcc@gcc.gnu.org
Subject: Re: C++ Overload testsuite fixes, need someone to verify
Date: Sat, 01 Apr 2000 00:00:00 -0000
Message-id: <r9d1570b.fsf@dan.resnet.rochester.edu>
References: <Pine.LNX.4.10.10003232107500.12214-100000@hpcll168.cup.hp.com>
X-SW-Source: 2000-q1/msg00790.html
Content-length: 3446
Jimmy Guo <guo@cup.hp.com> writes:
It is a debug info problem.
GNU gdb 20000204
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsdelf4.0".
(gdb) file testsuite/gdb.c++/ovldbreak
Reading symbols from testsuite/gdb.c++/ovldbreak...done.
(gdb) b main
Breakpoint 1 at 0x804882f: file ./gdb.c++/ovldbreak.cc, line 48.
(gdb) bash-2.03#
bash-2.03# g++ -v
Using builtin specs.
gcc version 2.95.2 19991024 (release)
That's with STABS (or dwarf1, i forget the default, might be dwarf1).
bash-2.03# ./gdb -nw a.out
GNU gdb 20000204
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsdelf4.0"...
Setting up the environment for debugging gdb.
.gdbinit:5: Error in sourced command file:
Function "internal_error" not defined.
(gdb) b main
During symbol reading, type qualifier 'const' ignored.
Breakpoint 1 at 0x804883c: file testsuite/gdb.c++/ovldbreak.cc, line 49.
(gdb)
That's with DWARF2.
Can someone please grant me the sage wisdom about what to do about
this?
Modify the regexp to accept 48/49, or just pout in the corner and
live with the testsuite failures for now?
--Dan
> Might be. I just checked sourceware 3/21's gdb built for
> hppa1.1-hp-hpux10.20, with ovldbreak.cc compiled by GNUPro g++, and it
> reports breakpoint on main at line 49. This seem to point to the
> compiler rather than the debugger that you are using.
>
> - Jimmy Guo, guo@cup.hp.com
>
> >Jimmy Guo <guo@cup.hp.com> writes:
> >
> >the "{" is on line 48, the first line of the code ("char arg1") is at
> >49.
> >I smell a debugging info issue, where your compiler says it starts at
> >49, and mine says 48.
> >I think the real solution is to accept 48 and 49, but say anything
> >else is wrong.
> >Or fix gcc, if it's broken.
> >Something is telling me i remember seeing something about this problem
> >in gcc recently, something about where it's saying the first line of a
> >functions starts.
> >Can any of the GCC guys tell me if i'm making this up in my head (I
> >believe it was related to where it put the note about the function
> >start or something like that)?
> >--Dan
> >> >Can someone verify, that i am correct in thinking you get unexpected
> >> >failures in gdb.c++/ovldbreak.exp due to "breakpoint info" failures?
> >> >I have a patch, i just want to make sure it's not me.
> >> >It appears the source line the test suite expects main to appear on
> >> >in that file is 49, and main really appears at 48, so the regex to
> >> >match doesn't work. I diffed the ovldbreak.cc file, and i get no
> >> >differences.
> >>
> >> I think it should report 49, not 48. Line 49 is the first executable
> >> statement of main. I'm using the HP WDB source, in case you cannot see
> >> such behavior with sourceware's (in that case I will spend some time
> >> digging up the fix to submit as a patch).
> >>
> >> - Jimmy Guo
From muller@cerbere.u-strasbg.fr Sat Apr 01 00:00:00 2000
From: Pierre Muller <muller@cerbere.u-strasbg.fr>
To: Mark Kettenis <kettenis@wins.uva.nl>
Cc: gdb@sourceware.cygnus.com
Subject: Re: Pascal language support patch preparation
Date: Sat, 01 Apr 2000 00:00:00 -0000
Message-id: <200003021613.RAA03663@cerbere.u-strasbg.fr>
References: <200003021432.PAA01976@cerbere.u-strasbg.fr> <200003021347.OAA01051@cerbere.u-strasbg.fr> <200003021257.NAA00259@cerbere.u-strasbg.fr>
X-SW-Source: 2000-q1/msg00509.html
Content-length: 3955
At 16:02 02/03/00 +0100, you wrote:
> Date: Thu, 02 Mar 2000 15:16:19 +0100
> From: Pierre Muller <muller@cerbere.u-strasbg.fr>
>
> >Patches to create those new p-* files cannot be broken up of course,
> >but your patch also touches a lot of the other GDB files. Breaking
> >those patches up in smaller though functionally related chunks makes
> >reviewing and applying the patches a lot easier.
> >
> >I'd advise you to do the following:
> >
> >1. If you need some tweaks in GDB that do not depend on the Pascal
> > support itself, start submitting these ASAP.
>
> I don't think I really have such code !
>
>Are you sure? The patch I downloaded last fall includes changes to
>breakpoint.c, findvar.c, i387-tdep.c, infcmd.c and source.c that seem
>to be pretty independent of Pascal at first glance.
Most are obsolete now !
> >2. Then send the new p-* as one single patch.
>
> Alone ? tihs would just leave them unused first !
>
>That's not a problem. The point is that these changes cannot break
>anything, so they don't need a lot of attention.
>
> >3. Then send a patch that adds the code to hook in the GDB support.
>
> OK, here a would have the biggest part of the problems probably
> because some of the change are not trivial but I agree that I can probably
> splitt those.
>
>That would indeed be best, since that lets the maintainer of that
>particular part of GDB deal with problems one at a time, which in
>general gets the changes integrated much quicker.
>
This reminds me that I have one other patch which is quite smaller but
that is limited to DJGPP target for now.
It allows to read memory from another selector
this was very usefull for me when I tried to debug the debugger itself and
when I added exception support fro GDB on DJGPP !
This patch consists of the addition of one command that I called "xx"
which is a simple clone of the "x" command but can take a selector
as for intance
"xx $fs:0x400"
then the next "xx 0x800" keeps using the last selector value.
I do not know if this could be interesting for other i386 targets
(maybe for win32 to be able to see the content of the $fs selector
that contains the exception chain, but I am not sure how if its
readable inside a win32 API program).
Is such kind of patch too specific to have any chance to get accepted ?
I don't know if it could be of any use for other processors!!
> For instance a big problem on which I spent a lot of time is to
> get GDB to accept the fact the pascal is case insensitive
> this required changes in gnu-regex code !!
>
>I'm sorry to hear that you spent a lot of time on it. Modifying the
>regex code is something that we should only do as a last resort since
>it is shared with a lot of other GNU packages. Maybe GDB should use
>the POSIX functions instead of the BSD functions such that REG_ICASE
>can be used when the default language is Pascal.
I would also prefer a simpler approach because that code
is quite ugly in my opinion!
>On the bright side: Case insensitivity would be convenient, but should
>not be essential for basic Pascal support in GDB. We should be able
>to address this as a seperate issue. I'll see what I can do. For now
>it is probably better to leave out this bit when you send your new
>patches.
Anyhow I agree that this can and should be done later.
> >Yes it is, but it isn't the version that was used for reformatting the
> >GDB sources. See:
> >
> > http://sourceware.cygnus.com/ml/gdb/1999-q3/msg00014.html
>
> This not really very informative on the method that was used to do it !
>
>Pardon me? It clearly states that: ``[Stan] used indent 1.9.1 (with
>no arguments)''.
Sorry, I didn't read the message carefully enough it seems :(
Pierre Muller
Institut Charles Sadron
6,rue Boussingault
F 67083 STRASBOURG CEDEX (France)
mailto:muller@ics.u-strasbg.fr
Phone : (33)-3-88-41-40-07 Fax : (33)-3-88-41-40-99
From dan@cgsoftware.com Sat Apr 01 00:00:00 2000
From: Daniel Berlin <dan@cgsoftware.com>
To: khendricks@ivey.uwo.ca
Cc: dan@cgsoftware.com, gdb@sourceware.cygnus.com
Subject: Re: Preparing for the GDB 5.0 / GDB 2000 / GDB2k release
Date: Sat, 01 Apr 2000 00:00:00 -0000
Message-id: <ya8vapt7.fsf@dan.resnet.rochester.edu>
References: <950048577_PM_BeOS.dan@cgsoftware.com> <00020823060800.00592@localhost.localdomain>
X-SW-Source: 2000-q1/msg00187.html
Content-length: 4592
Kevin Hendricks <khendricks@ivey.uwo.ca> writes:
> Hi,
>
> > What you are really saying is that it's better to put hacks and crap in
> > the tree, and hope someone comes along and does it right, removing the
> > hack, while making it even more a living hell for everyone else to
> > understand.
>
> Why is eveything "not perfect" considered a hack or crap? I for one don't
> think Kevin Buettner's patch is a hack or crap at all. Please stop equating
> what we want to see added with crap.
We must have our wires crossed.
I wasn't referring to Kevin's patch when i said crap. Sorry for the
misunderstanding.
>
> > See, here is your fatal mistake.
> > You are making the assumption that users will clean it up, make it work,
> > and improve it.
> > While this may be true in other projects, it's not really true in GDB's
> > case.
>
> I think your attitude here is just wrong (and frankly part of the whole gdb
> problem). You obviously think you have cornered the market on some unique
> programming skill.
No, I've just had the unfortunate experience of seeming to be the only
one who hacks on gdb for my platform (notice i said nothing about
using, there are plenty of users), among with many other experiences,
and most of the people i know share these experiences (with their own
particular projects, mainly driver authors).
> This is simply not true. Users can and will help. I would
> help (I was part of Blackdown's jdk porting team until recent events forced me
> to move on), Franz would help (he is *the* gcc person for ppc and without his
> work with them we (ppc) would still be in the dark ages, Gary Thomas would help
> (he is really the father of the whole linux ppc movement and is single handedly
> responsible for much of the code that ppc uses), etc. We just need something
> to start playing with. As it stands, we can't even submit official bug
> reports.
>
> Please stop thinking that gdb is so complex that only a maintainer can help
> (seen the inside of many multi-threaded virtual machines latesly?).
Strangely enough, I have, having done the original port of kaffe (No
WAT) to BeOS before the person who did it now. Not as hairy as sun's,
i would imagine (I've never looked at their code).
It seems only the maintainers want to help (ppc-linux people like you
excluded, sorry if i put you in the wrong platform group, it's late :P)
> Sure we
> won't be as good as you, we won't be as productive as you, but we (and others)
> really can help. I think we are proof of that. Unfortunately when I submitted
> the original ppc patch (based on Kevin Buettner work) back around 4.16 or
> earlier, I just never dreamed it would take this long to get anything there
> done with it.
>
> Perhaps cygnus plays too large a role in tool development. Perhaps open source
> tools should not be tied so closely to any one company. Too many conflicts of
> interest? Too many paying customers versus the rest of us? I just don't know.
>
> But whatever the outcome, please stop assuming that all "users" are
idiots.
Never said that, never would.
Believe me, i'd be more than happy to be proven wrong, and to have
tons of users submit patches for all areas of GDB.
I'm just not holding my breath waiting for it to happen, no matter
what we do.
Yet I'm always hoping users will help.
But i guess i've just been involved in projects lately where they
don't. Fer instance, I've recently turned over maintenance of two drivers i wrote (both for
sound cards on BeOS.) because i simply don't have the time, and the
only reports i get are "this doesn't work on my computer", and when i
try to follow up, get nothing. It's not for lack of users, either. The
download stats show when i release a new version, it gets downloaded
~5000 times (Goes up a little with each release, new users i assume).
None were willing to help in any way, shape or form.
Well, you get the idea, no point in me rambling on.
> This is simply not the case and results in much of the bad or negative
> "mindset" I have seen in the gdb lists and tried to point out to Stan.
Like i said, unfortunately, my viewpoint comes from too many
experiences lately telling me it's true. I'd be glad to be wrong about
this.
>
> Thanks for responding to my post.
And thank you for responding to mine.
> I am not sure we will ever agree on how
> things should be done but we are talking about it which is more than has been
> done of late.
Right.
Hopefully this email won't get too screwed by my new mailer (And
hopefully i have all my gnus settings right)
>
> Take care,
>
> Kevin
next prev parent reply other threads:[~2000-03-08 2:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200003070832.DAA14451@indy.delorie.com>
2000-04-01 0:00 ` annotate.texi Stan Shebs
2000-03-08 2:03 ` Eli Zaretskii [this message]
2000-04-01 0:00 ` annotate.texi Jim Kingdon
2000-04-01 0:00 ` annotate.texi Eli Zaretskii
2000-04-01 0:00 ` annotate.texi Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200003081003.FAA16478@indy.delorie.com \
--to=eliz@delorie.com \
--cc=gdb@sourceware.cygnus.com \
--cc=shebs@apple.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox