summaryrefslogtreecommitdiff
path: root/gdb/go32-nat.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-02-08 06:03:54 +0000
committerAndrew Cagney <cagney@redhat.com>2001-02-08 06:03:54 +0000
commite81bf4c251d2ca17d1c28e3034af58e228784911 (patch)
treeb9c418932d84adff70a9756bac8ddfd3ff4c525f /gdb/go32-nat.c
parent1b4edd613c68eb1c357bfe780fbd5ff2c1c71ba9 (diff)
downloadgdb-e81bf4c251d2ca17d1c28e3034af58e228784911.tar.gz
Add __FILE__ and __LINE__ parameter to internal_error() /
internal_verror().
Diffstat (limited to 'gdb/go32-nat.c')
-rw-r--r--gdb/go32-nat.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/gdb/go32-nat.c b/gdb/go32-nat.c
index 0a84ab95d47..885662be76e 100644
--- a/gdb/go32-nat.c
+++ b/gdb/go32-nat.c
@@ -1,5 +1,5 @@
/* Native debugging support for Intel x86 running DJGPP.
- Copyright 1997, 1999 Free Software Foundation, Inc.
+ Copyright 1997, 1999, 2001 Free Software Foundation, Inc.
Written by Robert Hoehne.
This file is part of GDB.
@@ -490,13 +490,14 @@ go32_fetch_registers (int regno)
((char *) &npx + regno_mapping[regno].tss_ofs);
break;
default:
- internal_error ("\
+ internal_error (__FILE__, __LINE__, "\
Invalid native size for register no. %d in go32_fetch_register.", regno);
}
supply_register (regno, (char *) &regval);
}
else
- internal_error ("Invalid register no. %d in go32_fetch_register.",
+ internal_error (__FILE__, __LINE__,
+ "Invalid register no. %d in go32_fetch_register.",
regno);
}
}
@@ -514,7 +515,8 @@ store_register (int regno)
else if (regno < 32)
rp = (char *) &npx + regno_mapping[regno].tss_ofs;
else
- internal_error ("Invalid register no. %d in store_register.", regno);
+ internal_error (__FILE__, __LINE__,
+ "Invalid register no. %d in store_register.", regno);
memcpy (rp, v, regno_mapping[regno].size);
if (regno == FOP_REGNUM)
*(short *)rp &= 0x07ff; /* strip high 5 bits, in case they added them */
@@ -620,7 +622,8 @@ go32_create_inferior (char *exec_file, char *args, char **env)
/* Init command line storage. */
if (redir_debug_init (&child_cmd) == -1)
- internal_error ("Cannot allocate redirection storage: not enough memory.\n");
+ internal_error (__FILE__, __LINE__,
+ "Cannot allocate redirection storage: not enough memory.\n");
/* Parse the command line and create redirections. */
if (strpbrk (args, "<>"))
@@ -1245,7 +1248,8 @@ init_go32_ops (void)
/* Initialize child's command line storage. */
if (redir_debug_init (&child_cmd) == -1)
- internal_error ("Cannot allocate redirection storage: not enough memory.\n");
+ internal_error (__FILE__, __LINE__,
+ "Cannot allocate redirection storage: not enough memory.\n");
/* We are always processing GCC-compiled programs. */
processing_gcc_compilation = 2;