Modify

Opened 7 years ago

Closed 6 years ago

Last modified 21 months ago

#5990 closed defect (fixed)

gdb dont' compile

Reported by: claudio Owned by: claudio
Priority: high Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

Error:

arm-openwrt-linux-uclibcgnueabi-gcc -c -Os -pipe -march=armv5te -mtune=arm926ej-s -funit-at-a-time -fhonour-copts -msoft-float    -I. -I.././gdb -I.././gdb/config -DLOCALEDIR="\"/usr/share/locale\"" -DHAVE_CONFIG_H -I.././gdb/../include/opcode  -I../bfd -I.././gdb/../bfd -I.././gdb/../include -I../libdecnumber -I.././gdb/../libdecnumber   -DMI_OUT=1 -DTUI=1 -I/home/claudyus/code/openwrt-git/staging_dir/target-arm_uClibc-0.9.30.1/usr/include -I/home/claudyus/code/openwrt-git/staging_dir/target-arm_uClibc-0.9.30.1/include -I/home/claudyus/code/openwrt-git/staging_dir/toolchain-arm_gcc-4.3.3_uClibc-0.9.30.1/usr/include -I/home/claudyus/code/openwrt-git/staging_dir/toolchain-arm_gcc-4.3.3_uClibc-0.9.30.1/include -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-unused -Wno-switch -Wno-char-subscripts -Werror dbxread.c
cc1: warnings being treated as errors
dbxread.c: In function 'read_dbx_symtab':
dbxread.c:1341: error: 'nlist.n_other' may be used uninitialized in this function
make[5]: *** [dbxread.o] Error 1
make[5]: Leaving directory `/home/claudyus/code/openwrt-git/build_dir/target-arm_uClibc-0.9.30.1/gdb-6.8/gdb'

Proposed patch

Index: gdb-6.8/gdb/dbxread.c
===================================================================
--- gdb-6.8.orig/gdb/dbxread.c	2009-10-13 13:35:13.000000000 +0200
+++ gdb-6.8/gdb/dbxread.c	2009-10-13 13:37:41.000000000 +0200
@@ -852,6 +852,7 @@
   {									\
     (intern).n_type = bfd_h_get_8 (abfd, (extern)->e_type);		\
     (intern).n_strx = bfd_h_get_32 (abfd, (extern)->e_strx);		\
+    (intern).n_other = 0;						\
     (intern).n_desc = bfd_h_get_16 (abfd, (extern)->e_desc);  		\
     if (bfd_get_sign_extend_vma (abfd))					\
       (intern).n_value = bfd_h_get_signed_32 (abfd, (extern)->e_value);	\

Reference:
http://sourceware.org/ml/gdb-patches/2008-05/msg00452.html

This patch is under test ;)

Attachments (0)

Change History (3)

comment:1 Changed 7 years ago by claudio

or workaround #5602

comment:2 Changed 6 years ago by agb

  • Resolution set to fixed
  • Status changed from new to closed

Workaround from #5602 applied in [17064]

comment:3 Changed 21 months ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.