mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 11:00:01 +08:00
2001-08-14 Daniel Jacobowitz <drow@mvista.com>
H.J. Lu (hjl@gnu.org) * partial-stab.h: valu should be a CORE_ADDR. 2001-08-14 H.J. Lu (hjl@gnu.org) * dbxread.c (SWAP_SYMBOL): Removed. (INTERNALIZE_SYMBOL): Check sign extended vma.
This commit is contained in:
@ -1,3 +1,13 @@
|
|||||||
|
2001-08-14 Daniel Jacobowitz <drow@mvista.com>
|
||||||
|
H.J. Lu (hjl@gnu.org)
|
||||||
|
|
||||||
|
* partial-stab.h: valu should be a CORE_ADDR.
|
||||||
|
|
||||||
|
2001-08-14 H.J. Lu (hjl@gnu.org)
|
||||||
|
|
||||||
|
* dbxread.c (SWAP_SYMBOL): Removed.
|
||||||
|
(INTERNALIZE_SYMBOL): Check sign extended vma.
|
||||||
|
|
||||||
2001-08-13 Christopher Faylor <cgf@cygnus.com>
|
2001-08-13 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
* top.c (SIGSETJMP): Protect env argument with parentheses.
|
* top.c (SIGSETJMP): Protect env argument with parentheses.
|
||||||
|
@ -946,21 +946,14 @@ fill_symbuf (bfd *sym_bfd)
|
|||||||
symbuf_read += nbytes;
|
symbuf_read += nbytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define SWAP_SYMBOL(symp, abfd) \
|
|
||||||
{ \
|
|
||||||
(symp)->n_strx = bfd_h_get_32(abfd, \
|
|
||||||
(unsigned char *)&(symp)->n_strx); \
|
|
||||||
(symp)->n_desc = bfd_h_get_16 (abfd, \
|
|
||||||
(unsigned char *)&(symp)->n_desc); \
|
|
||||||
(symp)->n_value = bfd_h_get_32 (abfd, \
|
|
||||||
(unsigned char *)&(symp)->n_value); \
|
|
||||||
}
|
|
||||||
|
|
||||||
#define INTERNALIZE_SYMBOL(intern, extern, abfd) \
|
#define INTERNALIZE_SYMBOL(intern, extern, abfd) \
|
||||||
{ \
|
{ \
|
||||||
(intern).n_type = bfd_h_get_8 (abfd, (extern)->e_type); \
|
(intern).n_type = bfd_h_get_8 (abfd, (extern)->e_type); \
|
||||||
(intern).n_strx = bfd_h_get_32 (abfd, (extern)->e_strx); \
|
(intern).n_strx = bfd_h_get_32 (abfd, (extern)->e_strx); \
|
||||||
(intern).n_desc = bfd_h_get_16 (abfd, (extern)->e_desc); \
|
(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); \
|
||||||
|
else \
|
||||||
(intern).n_value = bfd_h_get_32 (abfd, (extern)->e_value); \
|
(intern).n_value = bfd_h_get_32 (abfd, (extern)->e_value); \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -201,7 +201,7 @@ switch (CUR_SYMBOL_TYPE)
|
|||||||
|
|
||||||
case N_SO:
|
case N_SO:
|
||||||
{
|
{
|
||||||
unsigned long valu;
|
CORE_ADDR valu;
|
||||||
static int prev_so_symnum = -10;
|
static int prev_so_symnum = -10;
|
||||||
static int first_so_symnum;
|
static int first_so_symnum;
|
||||||
char *p;
|
char *p;
|
||||||
@ -399,7 +399,7 @@ switch (CUR_SYMBOL_TYPE)
|
|||||||
/* See if this is an end of function stab. */
|
/* See if this is an end of function stab. */
|
||||||
if (pst && CUR_SYMBOL_TYPE == N_FUN && *namestring == '\000')
|
if (pst && CUR_SYMBOL_TYPE == N_FUN && *namestring == '\000')
|
||||||
{
|
{
|
||||||
unsigned long valu;
|
CORE_ADDR valu;
|
||||||
|
|
||||||
/* It's value is the size (in bytes) of the function for
|
/* It's value is the size (in bytes) of the function for
|
||||||
function relative stabs, or the address of the function's
|
function relative stabs, or the address of the function's
|
||||||
|
Reference in New Issue
Block a user