aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2000-03-30 18:54:28 +0000
committerMichael Snyder <msnyder@vmware.com>2000-03-30 18:54:28 +0000
commit57e687d9ad2a45b16a54b43edabcaa055a9244a6 (patch)
tree62173e842781b54e28c4139b69926076a63021de /gdb/defs.h
parent59233f88f1c34b39c2d61714fa144c8573583d55 (diff)
downloadgdb-57e687d9ad2a45b16a54b43edabcaa055a9244a6.zip
gdb-57e687d9ad2a45b16a54b43edabcaa055a9244a6.tar.gz
gdb-57e687d9ad2a45b16a54b43edabcaa055a9244a6.tar.bz2
2000-03-30 Michael Snyder <msnyder@cleaver.cygnus.com>
* defs.h (struct continuation_arg): make 'data' a union, to avoid casting problems when int and pointer are not the same size. * event-top.c (command_handler): use data as a union. (command_line_handler_continuation): ditto. * infcmd.c (step_1_continuation): use data as a union. Re-indent. (step_once): ditto. (finish_command_continuation): ditto. (finish_command): ditto. * breakpoint.c (until_break_command): use data as a union. (until_break_command_continuation): ditto. * utils.c (add_intermediate_continuation): fix typo in comment.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r--gdb/defs.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index 737ef1c..0270ddd 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -650,7 +650,11 @@ extern void free_command_lines (struct command_line **);
struct continuation_arg
{
struct continuation_arg *next;
- void *data;
+ union continuation_data {
+ void *pointer;
+ int integer;
+ long longint;
+ } data;
};
struct continuation