aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-06-19 17:21:51 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-06-19 17:21:51 +0000
commitf73e88f92fc5c54b19418144cb4b3cf9b6beff36 (patch)
treed8d51999058bbcd3a61cdce6fb4b836847091f38 /gdb/stabsread.c
parentcab58a69eb053e15d0b4698c870e76f5aa98b1ef (diff)
downloadgdb-f73e88f92fc5c54b19418144cb4b3cf9b6beff36.zip
gdb-f73e88f92fc5c54b19418144cb4b3cf9b6beff36.tar.gz
gdb-f73e88f92fc5c54b19418144cb4b3cf9b6beff36.tar.bz2
* gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
gdbarch_believe_pcc_promotion. * stabsread.c (define_symbol): Likewise. Remove unnecessary definition. * coffread.c (process_coff_symbol): Remove unnecessary code. * gdbarch.c, gdbarch.h: Regenerate.
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r--gdb/stabsread.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index d4d5c35..e155087 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -162,15 +162,6 @@ void stabsread_clear_cache (void);
static const char vptr_name[] = "_vptr$";
static const char vb_name[] = "_vb$";
-/* Define this as 1 if a pcc declaration of a char or short argument
- gives the correct address. Otherwise assume pcc gives the
- address of the corresponding int, which is not the same on a
- big-endian machine. */
-
-#if !defined (BELIEVE_PCC_PROMOTION)
-#define BELIEVE_PCC_PROMOTION 0
-#endif
-
static void
invalid_cpp_abbrev_complaint (const char *arg1)
{
@@ -971,10 +962,11 @@ define_symbol (CORE_ADDR valu, char *string, int desc, int type,
}
/* If it's gcc-compiled, if it says `short', believe it. */
- if (processing_gcc_compilation || BELIEVE_PCC_PROMOTION)
+ if (processing_gcc_compilation
+ || gdbarch_believe_pcc_promotion (current_gdbarch))
break;
- if (!BELIEVE_PCC_PROMOTION)
+ if (!gdbarch_believe_pcc_promotion (current_gdbarch))
{
/* This is the signed type which arguments get promoted to. */
static struct type *pcc_promotion_type;