This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[committed/darwin]: Set sym_segments
- From: Tristan Gingold <gingold at adacore dot com>
- To: gdb-patches ml <gdb-patches at sourceware dot org>
- Date: Thu, 3 Dec 2009 15:21:11 +0100
- Subject: [committed/darwin]: Set sym_segments
Hi,
there was no routine for sym_segments in machoread.c, which is not expected by gdb and may result in
crashes. This tiny patch fixes that.
Tristan.
2009-12-03 Tristan Gingold <gingold@adacore.com>
* machoread.c (macho_sym_fns): Set sym_segment routine.
diff -c -r1.8 machoread.c
*** machoread.c 2 Dec 2009 11:44:35 -0000 1.8
--- machoread.c 3 Dec 2009 14:19:22 -0000
***************
*** 738,743 ****
--- 738,745 ----
macho_symfile_read, /* sym_read: read a symbol file into symtab */
macho_symfile_finish, /* sym_finish: finished with file, cleanup */
macho_symfile_offsets, /* sym_offsets: xlate external to internal form */
+ default_symfile_segments, /* sym_segments: Get segment information from
+ a file. */
NULL /* next: pointer to next struct sym_fns */
};