X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gdb%2Ftarget-memory.c;h=c545909ac4522b528bb7efbaf387fa767d0d7dd3;hb=e2ef962041bbe1ed89b238e11ee5a48487f386fb;hp=b864d500acf8d8314ef8ca27b75d8b77b1fc9f62;hpb=5d5021647dbce1a933576243b9d54281a88eb3b5;p=platform%2Fupstream%2Fbinutils.git diff --git a/gdb/target-memory.c b/gdb/target-memory.c index b864d50..c545909 100644 --- a/gdb/target-memory.c +++ b/gdb/target-memory.c @@ -1,7 +1,7 @@ /* Parts of target interface that deal with accessing memory and memory-like objects. - Copyright (C) 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 2006-2014 Free Software Foundation, Inc. This file is part of GDB. @@ -23,9 +23,6 @@ #include "target.h" #include "memory-map.h" -#include "gdb_assert.h" - -#include #include static int @@ -338,7 +335,7 @@ target_write_memory_blocks (VEC(memory_write_request_s) *requests, sizeof (struct memory_write_request), compare_block_starting_address); /* Split blocks into list of regular memory blocks, - and list of flash memory blocks. */ + and list of flash memory blocks. */ make_cleanup (cleanup_write_requests_vector, ®ular); make_cleanup (cleanup_write_requests_vector, &flash); split_regular_and_flash_blocks (blocks, ®ular, &flash); @@ -379,7 +376,8 @@ target_write_memory_blocks (VEC(memory_write_request_s) *requests, qsort (VEC_address (memory_write_request_s, flash), VEC_length (memory_write_request_s, flash), - sizeof (struct memory_write_request), compare_block_starting_address); + sizeof (struct memory_write_request), + compare_block_starting_address); } } @@ -422,7 +420,8 @@ target_write_memory_blocks (VEC(memory_write_request_s) *requests, len = target_write_with_progress (¤t_target, TARGET_OBJECT_FLASH, NULL, - r->data, r->begin, r->end - r->begin, + r->data, r->begin, + r->end - r->begin, progress_cb, r->baton); if (len < (LONGEST) (r->end - r->begin)) error (_("Error writing data to flash"));