This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: x86_64 gdb and objdump


I've attached the core dump, the executable and the source is listed below:


void bar() {


char *p = 0;
printf("%s %d \n", __FUNCTION__, __LINE__);

 *p = 0;
 return;
}


void foo() {


printf("%s %d \n", __FUNCTION__, __LINE__);

bar();

return;
}

int main() {

foo();

return 0;
}



On 7/2/07, Daniel Jacobowitz <drow@false.org> wrote:
On Mon, Jul 02, 2007 at 01:39:05PM -0700, Srinivas Murthy wrote:
> I did try "x ..." at a bunch of memory locations and it outputs the
> same error msg.
>
> It seems like its not able to access any memory location in the core file.

This works fine for me. Can you provide a test case?

--
Daniel Jacobowitz
CodeSourcery

Attachment: core.temp
Description: Binary data

Attachment: temp
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]