aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffgen.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2015-10-26 12:58:32 -0400
committerSimon Marchi <simon.marchi@ericsson.com>2015-10-26 12:58:32 -0400
commit7acd011bef4e461e9caef644f20379f41ddfd631 (patch)
tree881bf5a1e3c84a7116fc625aaa9f812d57441095 /bfd/coffgen.c
parenta6af384b19c63bab4a1803c09592c5b5bd8674c2 (diff)
downloadgdb-7acd011bef4e461e9caef644f20379f41ddfd631.zip
gdb-7acd011bef4e461e9caef644f20379f41ddfd631.tar.gz
gdb-7acd011bef4e461e9caef644f20379f41ddfd631.tar.bz2
tui: Simplify tui_alloc_content
I stumbled upon this while doing some cxx-conversion work. Since the x-family alloc functions throw on failure, it is useless to test their result for failure. The else branch of != NULL is basically dead code. I changed the type of element_block_ptr to struct tui_win_element, which seems obvious (this is actually what raised the flag, casting the result of xmalloc to struct tui_win_element* wouldn't work). gdb/ChangeLog: * tui/tui-data.c (tui_alloc_content): Don't check xmalloc result. Change type of element_block_ptr. Change allocation to use XNEWVEC.
Diffstat (limited to 'bfd/coffgen.c')
0 files changed, 0 insertions, 0 deletions