diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-02-08 06:03:54 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-02-08 06:03:54 +0000 |
commit | e81bf4c251d2ca17d1c28e3034af58e228784911 (patch) | |
tree | b9c418932d84adff70a9756bac8ddfd3ff4c525f /gdb/sh-tdep.c | |
parent | 1b4edd613c68eb1c357bfe780fbd5ff2c1c71ba9 (diff) | |
download | gdb-e81bf4c251d2ca17d1c28e3034af58e228784911.tar.gz |
Add __FILE__ and __LINE__ parameter to internal_error() /
internal_verror().
Diffstat (limited to 'gdb/sh-tdep.c')
-rw-r--r-- | gdb/sh-tdep.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c index a6320305714..032bfe92c15 100644 --- a/gdb/sh-tdep.c +++ b/gdb/sh-tdep.c @@ -1731,7 +1731,8 @@ static void sh_do_pseudo_register (int regnum) { if (regnum < NUM_REGS || regnum >= NUM_REGS + NUM_PSEUDO_REGS) - internal_error ("Invalid pseudo register number %d\n", regnum); + internal_error (__FILE__, __LINE__, + "Invalid pseudo register number %d\n", regnum); else if (regnum >= gdbarch_tdep (current_gdbarch)->DR0_REGNUM && regnum < gdbarch_tdep (current_gdbarch)->DR_LAST_REGNUM) do_dr_register_info (regnum); @@ -1802,7 +1803,8 @@ static void sh_print_register (int regnum) { if (regnum < 0 || regnum >= NUM_REGS + NUM_PSEUDO_REGS) - internal_error ("Invalid register number %d\n", regnum); + internal_error (__FILE__, __LINE__, + "Invalid register number %d\n", regnum); else if (regnum >= 0 && regnum < NUM_REGS) { |