mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-01-19 07:24:48 +00:00
2009-12-15 H.J. Lu <hongjiu.lu@intel.com>
* opncls.c (bfd_opnr_iovec): Replace _XXX with XXX_P in parameters. * tekhex.c (pass_over): Replace eof with is_eof.
This commit is contained in:
parent
e3c58833bf
commit
662e470186
@ -1,19 +1,26 @@
|
|||||||
2009-12-15 Tristan Gingold <gingold@adacore.com>
|
2009-12-15 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* mach-o.h (bfd_mach_o_uuid_command): Remove section field.
|
* opncls.c (bfd_opnr_iovec): Replace _XXX with XXX_P in
|
||||||
* mach-o.c (bfd_mach_o_scan_read_uuid): Do not create a section
|
parameters.
|
||||||
from this command.
|
|
||||||
|
* tekhex.c (pass_over): Replace eof with is_eof.
|
||||||
|
|
||||||
2009-12-15 Tristan Gingold <gingold@adacore.com>
|
2009-12-15 Tristan Gingold <gingold@adacore.com>
|
||||||
|
|
||||||
* mach-o.c (struct mach_o_section_name_xlat): Add flags field.
|
* mach-o.h (bfd_mach_o_uuid_command): Remove section field.
|
||||||
(dwarf_section_names_xlat): Add section flags.
|
* mach-o.c (bfd_mach_o_scan_read_uuid): Do not create a section
|
||||||
(text_section_names_xlat): Ditto.
|
from this command.
|
||||||
(data_section_names_xlat): Ditto.
|
|
||||||
(bfd_mach_o_convert_section_name_to_bfd): Now return name and section
|
2009-12-15 Tristan Gingold <gingold@adacore.com>
|
||||||
flags by reference.
|
|
||||||
(bfd_mach_o_make_bfd_section): Use section flags when know, otherwise
|
* mach-o.c (struct mach_o_section_name_xlat): Add flags field.
|
||||||
try to guess.
|
(dwarf_section_names_xlat): Add section flags.
|
||||||
|
(text_section_names_xlat): Ditto.
|
||||||
|
(data_section_names_xlat): Ditto.
|
||||||
|
(bfd_mach_o_convert_section_name_to_bfd): Now return name and section
|
||||||
|
flags by reference.
|
||||||
|
(bfd_mach_o_make_bfd_section): Use section flags when know, otherwise
|
||||||
|
try to guess.
|
||||||
|
|
||||||
2009-12-14 Doug Kwan <dougkwan@google.com>
|
2009-12-14 Doug Kwan <dougkwan@google.com>
|
||||||
|
|
||||||
|
20
bfd/opncls.c
20
bfd/opncls.c
@ -523,12 +523,12 @@ static const struct bfd_iovec opncls_iovec = {
|
|||||||
|
|
||||||
bfd *
|
bfd *
|
||||||
bfd_openr_iovec (const char *filename, const char *target,
|
bfd_openr_iovec (const char *filename, const char *target,
|
||||||
void *(*_open) (struct bfd *, void *),
|
void *(*open_p) (struct bfd *, void *),
|
||||||
void *open_closure,
|
void *open_closure,
|
||||||
file_ptr (*_pread) (struct bfd *, void *, void *, file_ptr,
|
file_ptr (*pread_p) (struct bfd *, void *, void *,
|
||||||
file_ptr),
|
file_ptr, file_ptr),
|
||||||
int (*_close) (struct bfd *, void *),
|
int (*close_p) (struct bfd *, void *),
|
||||||
int (*_stat) (struct bfd *, void *, struct stat *))
|
int (*stat_p) (struct bfd *, void *, struct stat *))
|
||||||
{
|
{
|
||||||
bfd *nbfd;
|
bfd *nbfd;
|
||||||
const bfd_target *target_vec;
|
const bfd_target *target_vec;
|
||||||
@ -549,8 +549,8 @@ bfd_openr_iovec (const char *filename, const char *target,
|
|||||||
nbfd->filename = filename;
|
nbfd->filename = filename;
|
||||||
nbfd->direction = read_direction;
|
nbfd->direction = read_direction;
|
||||||
|
|
||||||
/* `open (...)' would get expanded by an the open(2) syscall macro. */
|
/* `open_p (...)' would get expanded by an the open(2) syscall macro. */
|
||||||
stream = (*_open) (nbfd, open_closure);
|
stream = (*open_p) (nbfd, open_closure);
|
||||||
if (stream == NULL)
|
if (stream == NULL)
|
||||||
{
|
{
|
||||||
_bfd_delete_bfd (nbfd);
|
_bfd_delete_bfd (nbfd);
|
||||||
@ -559,9 +559,9 @@ bfd_openr_iovec (const char *filename, const char *target,
|
|||||||
|
|
||||||
vec = (struct opncls *) bfd_zalloc (nbfd, sizeof (struct opncls));
|
vec = (struct opncls *) bfd_zalloc (nbfd, sizeof (struct opncls));
|
||||||
vec->stream = stream;
|
vec->stream = stream;
|
||||||
vec->pread = _pread;
|
vec->pread = pread_p;
|
||||||
vec->close = _close;
|
vec->close = close_p;
|
||||||
vec->stat = _stat;
|
vec->stat = stat_p;
|
||||||
|
|
||||||
nbfd->iovec = &opncls_iovec;
|
nbfd->iovec = &opncls_iovec;
|
||||||
nbfd->iostream = vec;
|
nbfd->iostream = vec;
|
||||||
|
12
bfd/tekhex.c
12
bfd/tekhex.c
@ -461,22 +461,22 @@ static bfd_boolean
|
|||||||
pass_over (bfd *abfd, bfd_boolean (*func) (bfd *, int, char *))
|
pass_over (bfd *abfd, bfd_boolean (*func) (bfd *, int, char *))
|
||||||
{
|
{
|
||||||
unsigned int chars_on_line;
|
unsigned int chars_on_line;
|
||||||
bfd_boolean eof = FALSE;
|
bfd_boolean is_eof = FALSE;
|
||||||
|
|
||||||
/* To the front of the file. */
|
/* To the front of the file. */
|
||||||
if (bfd_seek (abfd, (file_ptr) 0, SEEK_SET) != 0)
|
if (bfd_seek (abfd, (file_ptr) 0, SEEK_SET) != 0)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
while (! eof)
|
while (! is_eof)
|
||||||
{
|
{
|
||||||
char src[MAXCHUNK];
|
char src[MAXCHUNK];
|
||||||
char type;
|
char type;
|
||||||
|
|
||||||
/* Find first '%'. */
|
/* Find first '%'. */
|
||||||
eof = (bfd_boolean) (bfd_bread (src, (bfd_size_type) 1, abfd) != 1);
|
is_eof = (bfd_boolean) (bfd_bread (src, (bfd_size_type) 1, abfd) != 1);
|
||||||
while (*src != '%' && !eof)
|
while (*src != '%' && !is_eof)
|
||||||
eof = (bfd_boolean) (bfd_bread (src, (bfd_size_type) 1, abfd) != 1);
|
is_eof = (bfd_boolean) (bfd_bread (src, (bfd_size_type) 1, abfd) != 1);
|
||||||
|
|
||||||
if (eof)
|
if (is_eof)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* Fetch the type and the length and the checksum. */
|
/* Fetch the type and the length and the checksum. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user