* RFA: Delete broken and unused HPUXHPPA code
@ 2007-08-29 18:06 Jim Blandy
2007-08-29 18:27 ` Joel Brobecker
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Jim Blandy @ 2007-08-29 18:06 UTC (permalink / raw)
To: gdb-patches
The #ifdef block this patch deletes contains unbalanced parenthesis;
it wouldn't compile. The mistake was introduced by this change:
2005-02-10 Andrew Cagney <cagney@gnu.org>
Mark up all error and warning messages.
Since nobody has noticed it, it's clear that nobody has compiled this
code with HPUXHPPA defined for two and a half years. The block of
code itself dates from GDB's prehistory. This is the only "HPUXHPPA"
block in all of GDB.
Can we delete the code?
gdb/ChangeLog:
2007-08-29 Jim Blandy <jimb@codesourcery.com>
* breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
this code has not been compiled for two years.
Index: gdb/breakpoint.c
===================================================================
RCS file: /cvs/src/src/gdb/breakpoint.c,v
retrieving revision 1.262
diff -u -r1.262 breakpoint.c
--- gdb/breakpoint.c 23 Aug 2007 18:08:26 -0000 1.262
+++ gdb/breakpoint.c 29 Aug 2007 18:01:36 -0000
@@ -5767,28 +5767,6 @@
error (_("Target can only support one kind of HW watchpoint at a time."));
}
-#if defined(HPUXHPPA)
- /* On HP-UX if you set a h/w
- watchpoint before the "run" command, the inferior dies with a e.g.,
- SIGILL once you start it. I initially believed this was due to a
- bad interaction between page protection traps and the initial
- startup sequence by the dynamic linker.
-
- However, I tried avoiding that by having HP-UX's implementation of
- TARGET_CAN_USE_HW_WATCHPOINT return FALSE if there was no inferior_ptid
- yet, which forced slow watches before a "run" or "attach", and it
- still fails somewhere in the startup code.
-
- Until I figure out what's happening, I'm disallowing watches altogether
- before the "run" or "attach" command. We'll tell the user they must
- set watches after getting the program started. */
- if (!target_has_execution)
- {
- warning (_("can't do that without a running program; try \"break main\"), \"run\" first");
- return;
- }
-#endif /* HPUXHPPA */
-
/* Change the type of breakpoint to an ordinary watchpoint if a hardware
watchpoint could not be set. */
if (!mem_cnt || target_resources_ok <= 0)
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: RFA: Delete broken and unused HPUXHPPA code
2007-08-29 18:06 RFA: Delete broken and unused HPUXHPPA code Jim Blandy
@ 2007-08-29 18:27 ` Joel Brobecker
2007-08-29 18:28 ` Daniel Jacobowitz
2007-08-29 18:37 ` Mark Kettenis
2 siblings, 0 replies; 5+ messages in thread
From: Joel Brobecker @ 2007-08-29 18:27 UTC (permalink / raw)
To: Jim Blandy; +Cc: gdb-patches
> Since nobody has noticed it, it's clear that nobody has compiled this
> code with HPUXHPPA defined for two and a half years. The block of
> code itself dates from GDB's prehistory. This is the only "HPUXHPPA"
> block in all of GDB.
I can see in the ChangeLog that the HPUXHPPA define was actually
defined in one of the nm files. It's not defined anywhere anymore
so it's another argument in favor of the fact that it's not used
anymore.
> gdb/ChangeLog:
> 2007-08-29 Jim Blandy <jimb@codesourcery.com>
>
> * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
> this code has not been compiled for two years.
--
Joel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RFA: Delete broken and unused HPUXHPPA code
2007-08-29 18:06 RFA: Delete broken and unused HPUXHPPA code Jim Blandy
2007-08-29 18:27 ` Joel Brobecker
@ 2007-08-29 18:28 ` Daniel Jacobowitz
2007-08-29 18:37 ` Mark Kettenis
2 siblings, 0 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2007-08-29 18:28 UTC (permalink / raw)
To: gdb-patches
On Wed, Aug 29, 2007 at 11:06:04AM -0700, Jim Blandy wrote:
> Can we delete the code?
Definitely.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RFA: Delete broken and unused HPUXHPPA code
2007-08-29 18:06 RFA: Delete broken and unused HPUXHPPA code Jim Blandy
2007-08-29 18:27 ` Joel Brobecker
2007-08-29 18:28 ` Daniel Jacobowitz
@ 2007-08-29 18:37 ` Mark Kettenis
2007-08-29 22:08 ` Jim Blandy
2 siblings, 1 reply; 5+ messages in thread
From: Mark Kettenis @ 2007-08-29 18:37 UTC (permalink / raw)
To: jimb; +Cc: gdb-patches
> From: Jim Blandy <jimb@codesourcery.com>
> Date: Wed, 29 Aug 2007 11:06:04 -0700
>
> The #ifdef block this patch deletes contains unbalanced parenthesis;
> it wouldn't compile. The mistake was introduced by this change:
>
> 2005-02-10 Andrew Cagney <cagney@gnu.org>
>
> Mark up all error and warning messages.
>
> Since nobody has noticed it, it's clear that nobody has compiled this
> code with HPUXHPPA defined for two and a half years. The block of
> code itself dates from GDB's prehistory. This is the only "HPUXHPPA"
> block in all of GDB.
>
> Can we delete the code?
>
> gdb/ChangeLog:
> 2007-08-29 Jim Blandy <jimb@codesourcery.com>
>
> * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
> this code has not been compiled for two years.
Go for it.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: RFA: Delete broken and unused HPUXHPPA code
2007-08-29 18:37 ` Mark Kettenis
@ 2007-08-29 22:08 ` Jim Blandy
0 siblings, 0 replies; 5+ messages in thread
From: Jim Blandy @ 2007-08-29 22:08 UTC (permalink / raw)
To: Mark Kettenis; +Cc: gdb-patches
Mark Kettenis <mark.kettenis@xs4all.nl> writes:
>> From: Jim Blandy <jimb@codesourcery.com>
>> Date: Wed, 29 Aug 2007 11:06:04 -0700
>>
>> The #ifdef block this patch deletes contains unbalanced parenthesis;
>> it wouldn't compile. The mistake was introduced by this change:
>>
>> 2005-02-10 Andrew Cagney <cagney@gnu.org>
>>
>> Mark up all error and warning messages.
>>
>> Since nobody has noticed it, it's clear that nobody has compiled this
>> code with HPUXHPPA defined for two and a half years. The block of
>> code itself dates from GDB's prehistory. This is the only "HPUXHPPA"
>> block in all of GDB.
>>
>> Can we delete the code?
>>
>> gdb/ChangeLog:
>> 2007-08-29 Jim Blandy <jimb@codesourcery.com>
>>
>> * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
>> this code has not been compiled for two years.
>
> Go for it.
Committed, thanks. :)
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-08-29 22:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-29 18:06 RFA: Delete broken and unused HPUXHPPA code Jim Blandy
2007-08-29 18:27 ` Joel Brobecker
2007-08-29 18:28 ` Daniel Jacobowitz
2007-08-29 18:37 ` Mark Kettenis
2007-08-29 22:08 ` Jim Blandy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox