5 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
7 * Contact: Jeesun Kim <iamjs.kim@samsung.com> Youngkyeong Yun <yk.yun@samsung.com>
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
24 #ifndef _DEBUG_ASSERT_H_
25 #define _DEBUG_ASSERT_H_
38 struct addr_node *next;
42 typedef struct layout {
48 typedef struct layout {
54 extern void *__libc_stack_end;
56 static int trace_symbols(void *const *array, int size,
57 struct addr_node *start, int csfd);
59 static struct addr_node *get_addr_list_from_maps(int fd);
61 static void print_node_to_file(struct addr_node *start, int fd);
64 static void print_node(struct addr_node *start);
66 static void free_all_nodes(struct addr_node *start);
68 static long *get_start_addr(long *value, struct addr_node *start);
70 static char *get_fpath(long *value, struct addr_node *start);
72 static void print_signal_info(const siginfo_t *info, int fd);
74 char *fgets_fd(char *s, int n, int fd);
76 int fprintf_fd(int fd, const char *fmt, ...);
78 static char *remove_path(const char *cmd);
80 static int check_redscreen(int pid);
82 inline static void get_localtime(time_t cur_time, struct tm *ctime);
87 #endif /* _DEBUG_ASSERT_H_ */