forked from Imagelibrary/binutils-gdb
When disassembling, now prints ... instead of pages of whatever the
instruction for 0x0000 is.
This commit is contained in:
@@ -261,7 +261,7 @@ bfd *abfd;
|
||||
unsigned long m;
|
||||
asection *section;
|
||||
/* Replace symbol section relative values with abs values */
|
||||
|
||||
boolean done_dot = false;
|
||||
|
||||
for (i = 0; i < symcount; i++) {
|
||||
if (syms[i]->section != (asection *)NULL) {
|
||||
@@ -338,6 +338,16 @@ bfd *abfd;
|
||||
|
||||
i = 0;
|
||||
while (i <section->size) {
|
||||
if (data[i] ==0 && data[i+1] == 0 && data[i+2] == 0 &&
|
||||
data[i+3] == 0) {
|
||||
if (done_dot == false) {
|
||||
printf("...\n");
|
||||
done_dot=true;
|
||||
}
|
||||
i+=4;
|
||||
}
|
||||
else {
|
||||
done_dot = false;
|
||||
if (with_line_numbers) {
|
||||
static prevline;
|
||||
CONST char *filename;
|
||||
@@ -364,7 +374,7 @@ bfd *abfd;
|
||||
stdout);
|
||||
putchar ('\n') ;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user