summaryrefslogtreecommitdiff
path: root/gdb/mi/mi-getopt.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/mi/mi-getopt.c
parent1b4edd613c68eb1c357bfe780fbd5ff2c1c71ba9 (diff)
downloadgdb-e81bf4c251d2ca17d1c28e3034af58e228784911.tar.gz
Add __FILE__ and __LINE__ parameter to internal_error() /
internal_verror().
Diffstat (limited to 'gdb/mi/mi-getopt.c')
-rw-r--r--gdb/mi/mi-getopt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/mi/mi-getopt.c b/gdb/mi/mi-getopt.c
index 74cbd673e7d..e87192020a3 100644
--- a/gdb/mi/mi-getopt.c
+++ b/gdb/mi/mi-getopt.c
@@ -33,7 +33,8 @@ mi_getopt (const char *prefix,
struct mi_opt *opt;
/* We assume that argv/argc are ok. */
if (*optind > argc || *optind < 0)
- internal_error ("mi_getopt_long: optind out of bounds");
+ internal_error (__FILE__, __LINE__,
+ "mi_getopt_long: optind out of bounds");
if (*optind == argc)
return -1;
arg = argv[*optind];