X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fnto-tdep.c;h=1e3047203642c70d8712f3129dcf061779d22c6f;hb=f72429c5cc268535be510b223a732c31816a79f9;hp=1db123d72fd17c4f0c880d590e41f442f0b1ff09;hpb=914956173f05d39515a8525de33cc3af4f3eb7ac;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/nto-tdep.c b/gdb/nto-tdep.c index 1db123d72f..1e30472036 100644 --- a/gdb/nto-tdep.c +++ b/gdb/nto-tdep.c @@ -59,9 +59,9 @@ nto_target (void) #ifdef __CYGWIN__ static char buf[PATH_MAX]; if (p) - cygwin_conv_to_posix_path (p, buf); + cygwin_conv_path (CCP_WIN_A_TO_POSIX, p, buf, PATH_MAX); else - cygwin_conv_to_posix_path (default_nto_target, buf); + cygwin_conv_path (CCP_WIN_A_TO_POSIX, default_nto_target, buf, PATH_MAX); return buf; #else return p ? p : default_nto_target; @@ -233,7 +233,7 @@ nto_parse_redirection (char *pargv[], const char **pin, const char **pout, return argv; } -/* The struct lm_info, LM_ADDR, and nto_truncate_ptr are copied from +/* The struct lm_info, lm_addr, and nto_truncate_ptr are copied from solib-svr4.c to support nto_relocate_section_addresses which is different from the svr4 version. */ @@ -259,7 +259,7 @@ struct lm_info static CORE_ADDR -LM_ADDR (struct so_list *so) +lm_addr (struct so_list *so) { if (so->lm_info->l_addr == (CORE_ADDR)-1) { @@ -310,8 +310,8 @@ nto_relocate_section_addresses (struct so_list *so, struct target_section *sec) Elf_Internal_Phdr *phdr = find_load_phdr (sec->bfd); unsigned vaddr = phdr ? phdr->p_vaddr : 0; - sec->addr = nto_truncate_ptr (sec->addr + LM_ADDR (so) - vaddr); - sec->endaddr = nto_truncate_ptr (sec->endaddr + LM_ADDR (so) - vaddr); + sec->addr = nto_truncate_ptr (sec->addr + lm_addr (so) - vaddr); + sec->endaddr = nto_truncate_ptr (sec->endaddr + lm_addr (so) - vaddr); } /* This is cheating a bit because our linker code is in libc.so. If we