/*
* MIT License
*
* Copyright (c) 2018-2025 ustccw
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*
*/
#include <stdio.h>
#include <stdint.h>
/**
* @brief print the data in hexdump or charset dump
*
* print input data, print from data[0] to data[len-1], additionally add notes string
*
* @param[in] data: input data pointer to print
* @param[in] len: data length
* @param[in] note: notes for read easily
* @param[in] mode: 0x00, 0x01, 0x10, 0x11 to decide the HEXDUMP_SHOW && TWO_COLUMN_SHOW
*
* @return noreturn
*
*/
void print_debug(uint8_t
C 语言调试利器 - 打印内存内容(hexdump and charset dump)
最新推荐文章于 2023-08-29 00:01:14 发布
本文探讨了在C语言调试中如何利用hexdump和charset dump工具来查看内存内容,帮助程序员更好地理解和解决问题。通过实例展示了如何使用这两种方法来解析内存块,以了解程序运行时的数据状态。
摘要由CSDN通过智能技术生成