backtrace.c (54356271) | backtrace.c (6a5321ab) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 110 unchanged lines hidden (view full) --- 119 fprintf( fp, "%s+0x%x", dli.dli_fname, offset ); 120 } 121 if ( dli.dli_sname && dli.dli_saddr ) 122 { 123 offset = (ptrdiff_t)*pFramePtr - (ptrdiff_t)dli.dli_saddr; 124 fprintf( fp, "(%s+0x%x)", dli.dli_sname, offset ); 125 } 126 } | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 110 unchanged lines hidden (view full) --- 119 fprintf( fp, "%s+0x%x", dli.dli_fname, offset ); 120 } 121 if ( dli.dli_sname && dli.dli_saddr ) 122 { 123 offset = (ptrdiff_t)*pFramePtr - (ptrdiff_t)dli.dli_saddr; 124 fprintf( fp, "(%s+0x%x)", dli.dli_sname, offset ); 125 } 126 } |
127 fprintf( fp, "[0x%x]\n", *pFramePtr ); | 127 fprintf( fp, "[%p]\n", *pFramePtr ); |
128 } 129 130 fflush( fp ); 131 fclose( fp ); 132 } 133} 134 135#endif /* defined SOLARIS */ --- 51 unchanged lines hidden (view full) --- 187 fprintf( fp, "%s+0x%" SAL_PRI_PTRDIFFT "x", dli.dli_fname, offset ); 188 } 189 if ( dli.dli_sname && dli.dli_saddr ) 190 { 191 offset = (ptrdiff_t)*pFramePtr - (ptrdiff_t)dli.dli_saddr; 192 fprintf( fp, "(%s+0x%" SAL_PRI_PTRDIFFT "x)", dli.dli_sname, offset ); 193 } 194 } | 128 } 129 130 fflush( fp ); 131 fclose( fp ); 132 } 133} 134 135#endif /* defined SOLARIS */ --- 51 unchanged lines hidden (view full) --- 187 fprintf( fp, "%s+0x%" SAL_PRI_PTRDIFFT "x", dli.dli_fname, offset ); 188 } 189 if ( dli.dli_sname && dli.dli_saddr ) 190 { 191 offset = (ptrdiff_t)*pFramePtr - (ptrdiff_t)dli.dli_saddr; 192 fprintf( fp, "(%s+0x%" SAL_PRI_PTRDIFFT "x)", dli.dli_sname, offset ); 193 } 194 } |
195 fprintf( fp, "[0x%p]\n", *pFramePtr ); | 195 fprintf( fp, "[%p]\n", *pFramePtr ); |
196 } 197 fflush( fp ); 198 fclose( fp ); 199 } 200} 201#endif /* defined FREEBSD */ 202 203#ifdef LINUX --- 69 unchanged lines hidden (view full) --- 273 fprintf( fp, "%s+0x%x", dli.dli_fname, offset ); 274 } 275 if ( dli.dli_sname && dli.dli_saddr ) 276 { 277 offset = (ptrdiff_t)*pFramePtr - (ptrdiff_t)dli.dli_saddr; 278 fprintf( fp, "(%s+0x%x)", dli.dli_sname, offset ); 279 } 280 } | 196 } 197 fflush( fp ); 198 fclose( fp ); 199 } 200} 201#endif /* defined FREEBSD */ 202 203#ifdef LINUX --- 69 unchanged lines hidden (view full) --- 273 fprintf( fp, "%s+0x%x", dli.dli_fname, offset ); 274 } 275 if ( dli.dli_sname && dli.dli_saddr ) 276 { 277 offset = (ptrdiff_t)*pFramePtr - (ptrdiff_t)dli.dli_saddr; 278 fprintf( fp, "(%s+0x%x)", dli.dli_sname, offset ); 279 } 280 } |
281 fprintf( fp, "[0x%x]\n", *pFramePtr ); | 281 fprintf( fp, "[%p]\n", *pFramePtr ); |
282 } 283 284 fflush( fp ); 285 fclose( fp ); 286 } 287} 288 289#endif /* defined LINUX */ --- 49 unchanged lines hidden (view full) --- 339 fprintf( fp, "%s+0x%x", dli.dli_fname, offset ); 340 } 341 if ( dli.dli_sname && dli.dli_saddr ) 342 { 343 offset = (ptrdiff_t)*pFramePtr - (ptrdiff_t)dli.dli_saddr; 344 fprintf( fp, "(%s+0x%x)", dli.dli_sname, offset ); 345 } 346 } | 282 } 283 284 fflush( fp ); 285 fclose( fp ); 286 } 287} 288 289#endif /* defined LINUX */ --- 49 unchanged lines hidden (view full) --- 339 fprintf( fp, "%s+0x%x", dli.dli_fname, offset ); 340 } 341 if ( dli.dli_sname && dli.dli_saddr ) 342 { 343 offset = (ptrdiff_t)*pFramePtr - (ptrdiff_t)dli.dli_saddr; 344 fprintf( fp, "(%s+0x%x)", dli.dli_sname, offset ); 345 } 346 } |
347 fprintf( fp, "[0x%x]\n", (unsigned int)*pFramePtr ); | 347 fprintf( fp, "[%p]\n", *pFramePtr ); |
348 } 349 350 fflush( fp ); 351 fclose( fp ); 352 } 353} 354 355#endif /* defined MACOSX */ | 348 } 349 350 fflush( fp ); 351 fclose( fp ); 352 } 353} 354 355#endif /* defined MACOSX */ |