diff options
author | Jason Molenda <jmolenda@apple.com> | 1998-04-23 19:31:51 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 1998-04-23 19:31:51 +0000 |
commit | 74d6ac44dec6ac521772bc13c5c789c3d97ec19f (patch) | |
tree | 9ce223b134adb81b0fca1380d8f098128e2ba976 /gdb/tracepoint.c | |
parent | cc33746dfc057f72ffc55bf5a06929fe01935b04 (diff) | |
download | ppe42-binutils-74d6ac44dec6ac521772bc13c5c789c3d97ec19f.tar.gz ppe42-binutils-74d6ac44dec6ac521772bc13c5c789c3d97ec19f.zip |
Thu Apr 23 12:27:43 1998 Philippe De Muyter <phdm@macqel.be>
* symfile.c (simple_overlay_update_1): Do not prefix array address
by `&'.
* bcache.h (BCACHE_DATA_ALIGNMENT): Ditto.
* tracepoint.c (encode_actions): Ditto.
* language.c, complaints.c, utils.c (varargs.h): Do not include that
file here, it is already included indirectly by defs.h.
* dbxread.c (dbx_symfile_init, process_one_symbol): Cast xmalloc return
value to the appropriate pointer type.
* utils.c (floatformat_from_doublest): Ditto.
* tracepoint.c (read_actions, _initialize_tracepoint): Ditto.
(add_memrange): Likewise with xrealloc return value.
* stabsread.c (ref_add): Ditto.
* coffread.c (coff_symfile_init): Likewise for xmmalloc return value.
* elfread.c (elf_symfile_read): Ditto.
* os9kread.c (os9k_symfile_init): Ditto.
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r-- | gdb/tracepoint.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index e6bf60f825..468324d5e5 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -842,7 +842,7 @@ read_actions (t) if (linetype == BADLINE) continue; /* already warned -- collect another line */ - temp = xmalloc (sizeof (struct action_line)); + temp = (struct action_line *) xmalloc (sizeof (struct action_line)); temp->next = NULL; temp->action = line; @@ -1169,7 +1169,7 @@ add_memrange (memranges, type, base, len) if (memranges->next_memrange >= memranges->listsize) { memranges->listsize *= 2; - memranges->list = xrealloc (memranges->list, + memranges->list = (struct memrange *) xrealloc (memranges->list, memranges->listsize); } @@ -1502,8 +1502,8 @@ encode_actions (t, tdp_actions, step_count, stepping_actions) memrange_sortmerge (&tracepoint_list); memrange_sortmerge (&stepping_list); - *tdp_actions = stringify_collection_list (&tracepoint_list, &tdp_buff); - *stepping_actions = stringify_collection_list (&stepping_list, &step_buff); + *tdp_actions = stringify_collection_list (&tracepoint_list, tdp_buff); + *stepping_actions = stringify_collection_list (&stepping_list, step_buff); } static char target_buf[2048]; @@ -2435,13 +2435,13 @@ _initialize_tracepoint () if (tracepoint_list.list == NULL) { tracepoint_list.listsize = 128; - tracepoint_list.list = xmalloc + tracepoint_list.list = (struct memrange *) xmalloc (tracepoint_list.listsize * sizeof (struct memrange)); } if (stepping_list.list == NULL) { stepping_list.listsize = 128; - stepping_list.list = xmalloc + stepping_list.list = (struct memrange *) xmalloc (stepping_list.listsize * sizeof (struct memrange)); } |