aboutsummaryrefslogtreecommitdiff
path: root/gas/listing.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2002-05-18 12:53:30 +0000
committerKazu Hirata <kazu@codesourcery.com>2002-05-18 12:53:30 +0000
commit411863a44d47767443870273ecd7d6f51c84fcac (patch)
treee0a2a0acf3b5b283f88edffa57bcd17a0edc241d /gas/listing.c
parentc3f4437ee19cc855172de9c4acc06cde3ab604be (diff)
downloadgdb-411863a44d47767443870273ecd7d6f51c84fcac.zip
gdb-411863a44d47767443870273ecd7d6f51c84fcac.tar.gz
gdb-411863a44d47767443870273ecd7d6f51c84fcac.tar.bz2
* app.c: Fix formatting.
* as.c: Likewise. * ehopt.c: Likewise. * expr.c: Likewise. * input-file.c: Likewise. * listing.c: Likewise. * macro.h: Likewise. * stabs.c: Likewise. * symbols.c: Likewise.
Diffstat (limited to 'gas/listing.c')
-rw-r--r--gas/listing.c54
1 files changed, 27 insertions, 27 deletions
diff --git a/gas/listing.c b/gas/listing.c
index c92f2db..91b5253 100644
--- a/gas/listing.c
+++ b/gas/listing.c
@@ -616,36 +616,36 @@ calc_hex (list)
data_buffer_size += 2;
octet_in_frag++;
}
- if (frag_ptr->fr_type == rs_fill)
- {
- unsigned int var_rep_max = octet_in_frag;
- unsigned int var_rep_idx = octet_in_frag;
-
- /* Print as many bytes from the variable part as is sensible. */
- while (((offsetT) octet_in_frag
- < (frag_ptr->fr_fix + frag_ptr->fr_var * frag_ptr->fr_offset))
- && data_buffer_size < MAX_BYTES - 3)
- {
- if (address == ~(unsigned int) 0)
- {
- address = frag_ptr->fr_address / OCTETS_PER_BYTE;
- }
- sprintf (data_buffer + data_buffer_size,
- "%02X",
- (frag_ptr->fr_literal[var_rep_idx]) & 0xff);
+ if (frag_ptr->fr_type == rs_fill)
+ {
+ unsigned int var_rep_max = octet_in_frag;
+ unsigned int var_rep_idx = octet_in_frag;
+
+ /* Print as many bytes from the variable part as is sensible. */
+ while (((offsetT) octet_in_frag
+ < (frag_ptr->fr_fix + frag_ptr->fr_var * frag_ptr->fr_offset))
+ && data_buffer_size < MAX_BYTES - 3)
+ {
+ if (address == ~(unsigned int) 0)
+ {
+ address = frag_ptr->fr_address / OCTETS_PER_BYTE;
+ }
+ sprintf (data_buffer + data_buffer_size,
+ "%02X",
+ (frag_ptr->fr_literal[var_rep_idx]) & 0xff);
#if 0
- data_buffer[data_buffer_size++] = '*';
- data_buffer[data_buffer_size++] = '*';
+ data_buffer[data_buffer_size++] = '*';
+ data_buffer[data_buffer_size++] = '*';
#endif
- data_buffer_size += 2;
+ data_buffer_size += 2;
- var_rep_idx++;
- octet_in_frag++;
+ var_rep_idx++;
+ octet_in_frag++;
- if ((offsetT) var_rep_idx >= frag_ptr->fr_fix + frag_ptr->fr_var)
- var_rep_idx = var_rep_max;
- }
- }
+ if ((offsetT) var_rep_idx >= frag_ptr->fr_fix + frag_ptr->fr_var)
+ var_rep_idx = var_rep_max;
+ }
+ }
frag_ptr = frag_ptr->fr_next;
}
@@ -1063,7 +1063,7 @@ listing_listing (name)
if (!((listing & LISTING_NODEBUG)
&& debugging_pseudo (list, list->line_contents)))
{
- print_lines (list,
+ print_lines (list,
list->file->linenum == 0 ? list->line : list->file->linenum,
list->line_contents, calc_hex (list));
}