[commit] Consolidate current_gdbarch swap code
Andrew Cagney
cagney@gnu.org
Mon Nov 10 02:51:00 GMT 2003
Hello,
The attached consolidates the current_gdbarch swap code, replacing:
-static void init_gdbarch_swap (struct gdbarch *);
-static void clear_gdbarch_swap (struct gdbarch *);
-static void swapout_gdbarch_swap (struct gdbarch *);
-static void swapin_gdbarch_swap (struct gdbarch *);
with:
+void current_gdbarch_swap_init_hack (void)
+struct gdbarch *current_gdbarch_swap_out_hack (void)
+void current_gdbarch_swap_in_hack (struct gdbarch *new_gdbarch)
The main intent is to make it very clear how these methods are:
- hacks
- rely on a valid current_gdbarch
committed,
Andrew
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20031110/889714fa/attachment.ksh>
More information about the Gdb-patches
mailing list