aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1995-12-03 19:59:21 +0000
committerJeff Law <law@redhat.com>1995-12-03 19:59:21 +0000
commitf9384420aee40b2a9055be24ca69bd371db86940 (patch)
tree43b019f6dfbeb33a4bedf6c1ca144edcede99b6a /gdb
parentdee7a11cd261fbb6108968da2eca7a4971a4b859 (diff)
downloadgdb-f9384420aee40b2a9055be24ca69bd371db86940.zip
gdb-f9384420aee40b2a9055be24ca69bd371db86940.tar.gz
gdb-f9384420aee40b2a9055be24ca69bd371db86940.tar.bz2
* ch-exp.c (parse_named_record_element): Avoid aggregrate
initializations for automatic variables. * hppa-tdep.c (hppa_alignof): Fix typo in last change. Fixes minor build problems.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/ch-exp.c4
-rw-r--r--gdb/hppa-tdep.c2
3 files changed, 11 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 844cc04..3a69ee1 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+Sun Dec 3 11:59:21 1995 Jeffrey A. Law <law@cygnus.com>
+
+ * ch-exp.c (parse_named_record_element): Avoid aggregrate
+ initializations for automatic variables.
+
+ * hppa-tdep.c (hppa_alignof): Fix typo in last change.
+
Sat Dec 2 19:32:57 1995 Fred Fish <fnf@cygnus.com>
* symfile.c (global_psymbols, static_psymbols): Remove, unused.
diff --git a/gdb/ch-exp.c b/gdb/ch-exp.c
index 4ce2982..6c2471f 100644
--- a/gdb/ch-exp.c
+++ b/gdb/ch-exp.c
@@ -488,7 +488,9 @@ parse_call ()
static void
parse_named_record_element ()
{
- struct stoken label = PEEK_LVAL ().sval;
+ struct stoken label;
+
+ label = PEEK_LVAL ().sval;
expect (FIELD_NAME, "expected a field name here `%s'", lexptr);
if (check_token (','))
parse_named_record_element ();
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c
index 27f4eb4..4fee8b0 100644
--- a/gdb/hppa-tdep.c
+++ b/gdb/hppa-tdep.c
@@ -1733,7 +1733,7 @@ hppa_alignof (type)
struct type *type;
{
int max_align, align, i;
- CHECK_TYPEDEf (type);
+ CHECK_TYPEDEF (type);
switch (TYPE_CODE (type))
{
case TYPE_CODE_PTR: