You are correctly reading the value at memory address 0x8048f0b
, but the line call 8048f0b <strings_not_equal>
indicates that this address is the start of a function (called strings_not_equal()
). You wouldn’t expect that to be ASCII – you’d expect it to be more machine code.
If you’re looking for the function arguments to strings_not_equal()
, those are being pushed onto the stack. The first argument is being copied from 0x8(%ebp)
, which is the first argument of func1()
. The second argument is $0x8049988
, which is presumably the address of a string.
If you want to print the contents of the address as a string, you can do that with x/s
:
x/s 0x8049988
Related Posts:
- GDB no such file or directory
- need help understanding the movzbl call in this function
- xorl %eax – Instruction set architecture in IA-32
- Why does ENOENT mean “No such file or directory”?
- Undefined reference to pthread_create in Linux
- what is the difference between uint16_t and unsigned short int incase of 64 bit processor?
- Openssl : error “self signed certificate in certificate chain”
- Bad File Descriptor with Linux Socket write() Bad File Descriptor C
- Write to .txt file?
- What is the LD_PRELOAD trick?
- connect Error: “No route to host”
- ARM Assembler – How do I use CMP, BLT and BGT?
- No Symbol Table using GDB on Compiled Programs
- Program received signal SIGPIPE, Broken pipe
- The difference between stdout and STDOUT_FILENO
- Does connect() block for TCP socket?
- where does stdio.o live in linux machine?
- Linux equivalent of I_PUSH
- What can cause a “Resource temporarily unavailable” on sock send() command
- Efficient way to find task_struct by pid
- valgrind – Address —- is 0 bytes after a block of size 8 alloc’d
- error: aggregate value used where an integer was expected
- How can one see content of stack with GDB?
- X86 assembly – Handling the IDIV instruction
- What is `S_ISREG()`, and what does it do?
- execvp: bad address error
- What does the LEAL assembly instruction do?
- [Binary Bomb – Phase 4
- Implementing Taylor Series for sine and cosine in C
- warning: implicit declaration of function
- pthread_join() and pthread_exit()
- What is the difference between ++i and i++?
- Stack smashing detected
- Why am I getting “void value not ignored as it ought to be”?
- Pointer Arithmetic
- Get a substring of a char* [duplicate]
- How do I create an array of strings in C?
- How do function pointers in C work?
- Expression must be a modifiable L-value
- “Expected expression before ‘ { ‘ token”
- How to generate a random int in C?
- C pointers and arrays: [Warning] assignment makes pointer from integer without a cast
- How to print the array?
- How to solve the error: assignment to expression with array type
- segmentation fault : 11
- What does “1e” mean?
- how to use uint64_t in C [duplicate]
- How do I solve the following errors: “Undefined reference to WinMain”, “[Error] Id returned 1 exit status”?
- Warning comparison between pointer and integer
- How do I properly compare strings in C?
- Connect: Socket operation on non-socket
- How to correctly use the extern keyword in C
- How do you make an array of structs in C?
- How do we check if a pointer is NULL pointer?
- how to use wait in C
- What does the MOVZBL instruction do in IA-32 AT&T syntax?
- How do I calculate MB/s & MiB/s?
- What’s the purpose of the LEA instruction?
- How to create my own header file in c++?
- In C programming, what is `undefined reference`error, when compiling?
- double free or corruption (fasttop)
- error: expected declaration or statement at end of input in c
- Why do I get clang: error: linker command failed with exit code 1?
- How to convert integer to char in C?
- How to read from stdin with fgets()?
- Why am I getting “array initializer must be an initializer list or string literal”?
- what is the unsigned datatype?
- #31 expression must have integral type
- How do you pass a function as a parameter in C?
- Reading a string with scanf
- getopt_long() — proper way to use it?
- Need more information about Aborted (core dumped)
- What is Innermost loop in imperfectly nested loops?
- What’s wrong with my code? What is argv[1]?
- How to solve error: expected identifier or ‘(‘
- Reversing a string in C
- When a number is written as 0x00… what does the x mean
- How to remove the character at a given index from a string in C?
- waitpid, wnohang, wuntraced. How do I use these
- Convert C program into assembly code
- Split string with delimiters in C
- Writing binary number system in C code
- explanation about push ebp and pop ebp instruction in assembly
- Convert char array to string use C
- warning: passing argument ’from incompatible pointer type [enabled by default]’
- Return a `struct` from a function in C
- Why should we check WIFEXITED after wait in order to kill child processes in Linux system call?
- Read and write to binary files in C?
- How do AX, AH, AL map onto EAX?
- How do I compile the asm generated by GCC?
- `testl` eax against eax?
- Allocating char array using malloc
- Implementation of strtok() function
- C fopen vs open
- switch case: error: case label does not reduce to an integer constant
- warning: incompatible implicit declaration of built-in function ‘printf’ [enabled by default]
- warning: return makes pointer from integer without a cast but returns integer as desired
- The difference between char * and char[] [duplicate]
- How to clear input buffer in C?
- Compiler warning – suggest parentheses around assignment used as truth value