* [commit] Move HP's breakpoint_from_pc to arch vector
@ 2004-04-06 16:12 Andrew Cagney
2004-04-06 16:18 ` Randolph Chung
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Cagney @ 2004-04-06 16:12 UTC (permalink / raw)
To: gdb-patches, Randolph Chung
[-- Attachment #1: Type: text/plain, Size: 76 bytes --]
FYI,
Randolph, its this sort of stuff that needs to be cleaned up.
Andrew
[-- Attachment #2: diffs --]
[-- Type: text/plain, Size: 1843 bytes --]
Index: ChangeLog
2004-04-06 Andrew Cagney <cagney@redhat.com>
* hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
(hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
* config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
(hppa_breakpoint_from_pc): Delete.
Index: hppa-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/hppa-tdep.c,v
retrieving revision 1.141
diff -u -r1.141 hppa-tdep.c
--- hppa-tdep.c 6 Apr 2004 15:41:50 -0000 1.141
+++ hppa-tdep.c 6 Apr 2004 16:07:10 -0000
@@ -658,7 +658,7 @@
return NULL;
}
-const unsigned char *
+static const unsigned char *
hppa_breakpoint_from_pc (CORE_ADDR *pc, int *len)
{
static const unsigned char breakpoint[] = {0x00, 0x01, 0x00, 0x04};
@@ -2726,7 +2726,9 @@
default:
internal_error (__FILE__, __LINE__, "bad switch");
}
-
+
+ set_gdbarch_breakpoint_from_pc (gdbarch, hppa_breakpoint_from_pc);
+
/* Frame unwind methods. */
set_gdbarch_unwind_dummy_id (gdbarch, hppa_unwind_dummy_id);
set_gdbarch_unwind_pc (gdbarch, hppa_unwind_pc);
Index: config/pa/tm-hppa.h
===================================================================
RCS file: /cvs/src/src/gdb/config/pa/tm-hppa.h,v
retrieving revision 1.68
diff -u -r1.68 tm-hppa.h
--- config/pa/tm-hppa.h 3 Apr 2004 17:49:07 -0000 1.68
+++ config/pa/tm-hppa.h 6 Apr 2004 16:07:11 -0000
@@ -39,12 +39,6 @@
struct type;
struct inferior_status;
-/* Sequence of bytes for breakpoint instruction. */
-
-const unsigned char *hppa_breakpoint_from_pc (CORE_ADDR *pcptr, int *lenptr);
-#define BREAKPOINT_FROM_PC(PCPTR,LENPTR) hppa_breakpoint_from_pc ((PCPTR), (LENPTR))
-#define BREAKPOINT32 0x10004
-
extern int hppa_pc_requires_run_before_use (CORE_ADDR pc);
#define PC_REQUIRES_RUN_BEFORE_USE(pc) hppa_pc_requires_run_before_use (pc)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [commit] Move HP's breakpoint_from_pc to arch vector
2004-04-06 16:12 [commit] Move HP's breakpoint_from_pc to arch vector Andrew Cagney
@ 2004-04-06 16:18 ` Randolph Chung
2004-04-06 19:18 ` Andrew Cagney
0 siblings, 1 reply; 3+ messages in thread
From: Randolph Chung @ 2004-04-06 16:18 UTC (permalink / raw)
To: Andrew Cagney; +Cc: gdb-patches
> Randolph, its this sort of stuff that needs to be cleaned up.
yup, i'll poke at it some more. basically tm-hppa.h needs to go away,
right?
thanks
randolph
--
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [commit] Move HP's breakpoint_from_pc to arch vector
2004-04-06 16:18 ` Randolph Chung
@ 2004-04-06 19:18 ` Andrew Cagney
0 siblings, 0 replies; 3+ messages in thread
From: Andrew Cagney @ 2004-04-06 19:18 UTC (permalink / raw)
To: Randolph Chung; +Cc: gdb-patches
>>Randolph, its this sort of stuff that needs to be cleaned up.
>
>
> yup, i'll poke at it some more. basically tm-hppa.h needs to go away,
> right?
Yes.
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-04-06 19:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-06 16:12 [commit] Move HP's breakpoint_from_pc to arch vector Andrew Cagney
2004-04-06 16:18 ` Randolph Chung
2004-04-06 19:18 ` Andrew Cagney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox