comparison agent/src/os/linux/symtab.c @ 14909:4ca6dc0799b6

Backout jdk9 merge
author Gilles Duboscq <duboscq@ssw.jku.at>
date Tue, 01 Apr 2014 13:57:07 +0200
parents db1ff6781ab4
children 89152779163c
comparison
equal deleted inserted replaced
14908:8db6e76cb658 14909:4ca6dc0799b6
1 /* 1 /*
2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
212 + strlen(".debug/") 212 + strlen(".debug/")
213 + strlen(debug_file_directory) 213 + strlen(debug_file_directory)
214 + 2); 214 + 2);
215 strcpy(debug_pathname, name); 215 strcpy(debug_pathname, name);
216 char *last_slash = strrchr(debug_pathname, '/'); 216 char *last_slash = strrchr(debug_pathname, '/');
217 if (last_slash == NULL) { 217 if (last_slash == NULL)
218 free(debug_pathname);
219 return -1; 218 return -1;
220 }
221 219
222 /* Look in the same directory as the object. */ 220 /* Look in the same directory as the object. */
223 strcpy(last_slash+1, debug_filename); 221 strcpy(last_slash+1, debug_filename);
224 222
225 debug_fd = open_debug_file(debug_pathname, crc); 223 debug_fd = open_debug_file(debug_pathname, crc);