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 | 8e65ff28b0780a52bdbe067b6297a66f9ec4e16e (patch) | |
tree | 1cf3436ec5c6d3e4f4dedb4ee2ccfa2c107dc33b /gdb/ia64-tdep.c | |
parent | 8ca8f343f993cbe9937ef15e8cbbee95613c2016 (diff) | |
download | gdb-8e65ff28b0780a52bdbe067b6297a66f9ec4e16e.zip gdb-8e65ff28b0780a52bdbe067b6297a66f9ec4e16e.tar.gz gdb-8e65ff28b0780a52bdbe067b6297a66f9ec4e16e.tar.bz2 |
Add __FILE__ and __LINE__ parameter to internal_error() /
internal_verror().
Diffstat (limited to 'gdb/ia64-tdep.c')
-rw-r--r-- | gdb/ia64-tdep.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c index dbda2ef..0ace093 100644 --- a/gdb/ia64-tdep.c +++ b/gdb/ia64-tdep.c @@ -1,5 +1,5 @@ /* Target-dependent code for the IA-64 for GDB, the GNU debugger. - Copyright 1999, 2000 + Copyright 1999, 2000, 2001 Free Software Foundation, Inc. This file is part of GDB. @@ -324,20 +324,21 @@ read_sigcontext_register (struct frame_info *frame, int regnum) CORE_ADDR regaddr; if (frame == NULL) - internal_error ("read_sigcontext_register: NULL frame"); + internal_error (__FILE__, __LINE__, + "read_sigcontext_register: NULL frame"); if (!frame->signal_handler_caller) - internal_error ( - "read_sigcontext_register: frame not a signal_handler_caller"); + internal_error (__FILE__, __LINE__, + "read_sigcontext_register: frame not a signal_handler_caller"); if (SIGCONTEXT_REGISTER_ADDRESS == 0) - internal_error ( - "read_sigcontext_register: SIGCONTEXT_REGISTER_ADDRESS is 0"); + internal_error (__FILE__, __LINE__, + "read_sigcontext_register: SIGCONTEXT_REGISTER_ADDRESS is 0"); regaddr = SIGCONTEXT_REGISTER_ADDRESS (frame->frame, regnum); if (regaddr) return read_memory_integer (regaddr, REGISTER_RAW_SIZE (regnum)); else - internal_error ( - "read_sigcontext_register: Register %d not in struct sigcontext", regnum); + internal_error (__FILE__, __LINE__, + "read_sigcontext_register: Register %d not in struct sigcontext", regnum); } /* Extract ``len'' bits from an instruction bundle starting at @@ -1922,8 +1923,8 @@ process_note_abi_tag_sections (bfd *abfd, asection *sect, void *obj) *os_ident_ptr = ELFOSABI_SOLARIS; break; default : - internal_error ( - "process_note_abi_sections: unknown OS number %d", os_number); + internal_error (__FILE__, __LINE__, + "process_note_abi_sections: unknown OS number %d", os_number); break; } } |