aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
1991-05-02Merge devo/bfd with GDB's bfd.John Gilmore16-1005/+759
Remove obstack.h to ../include and obstack.c to ../libiberty. Move COFF symbol swapping code to coffswap.c where GDB can call it but it won't be duplicated if we have N different COFF targets. Add support for traditional Unix core files (with a upage). This support is from an Ultrix port, but is probably slightly broken now. Improve bfd_release's of obstack'd items on error returns. gcc -Wall fixes. Handle section alignment slightly better in coff, and comment where it needs more work (on page-aligning virtual vs file addresses for DPAGED). Use set_tdata everywhere that tdata is set, to avoid "cast to the left of assignment" problems with some compilers. Move bfd_alloc, bfd_zalloc, bfd_realloc, and bfd_release into libbfd.h (from bfd.h) since they are internal routines. Remove the redundant suffix "_struct" from struct tags. Set symbol count early in file reading, before slurping in the syms, for GDB's use.
1991-05-02Initial revisionJohn Gilmore3-0/+291
1991-05-02Merge devo/bfd with GDB's bfd.John Gilmore6-136/+137
Get getopt and obstack from -liberty rather than compiling them here. * coffread.c: turn a printf into a complain(), and try to deal more gracefully with botched-looking lineno pointers. * dbxread.c: Use bfd_get_symcount rather than bfd_get_symcount_upper_bound. Don't coredump on files with zero symbols in them (a BFD bug showed this one). * environ.c: Pass GNUTARGET into the parent (gdb) as well as the child.
1991-05-02Merge devo/bfd with GDB's bfd.John Gilmore1-8/+9
Things that use -lbfd must also use -liberty, to get obstacks.
1991-05-02Merge devo/bfd with GDB's bfd.John Gilmore1-3/+2
Use "libiberty" rather than "getopt" directory. Add a few FIXME's to ar.c.
1991-05-02Update for merge of main BFD and GDB's BFD. Remove "_struct" suffixJohn Gilmore4-46/+30
on all struct types -- they are in a separate namespace anyway. Move bfd_alloc, bfd_zalloc, bfd_realloc, bfd_release into libbfd.h, since external users shouldn't be calling them anyway.
1991-04-30Tue Apr 30 13:13:33 1991 Michael Tiemann (tiemann at cygint.cygnus.com)Michael Tiemann6-10/+31
* valprint.c (type_print_base): If the type being printed is a struct containing undefined types, print "<undefine type>" as the type instead of crashing. * values.c (value_headof): Get the vtable pointer taking TYPE_VPTR_BASETYPE into account. * symtab.c, symtab.h, dbxread.c: Fix various whitespace splotches.
1991-04-30*** empty log message ***Jim Kingdon1-0/+11
1991-04-30 * sun3-xdep.c, tm-sun3.h, tm-68k.h: Change TARGET_SUN3 toJim Kingdon3-3/+5
GDB_TARGET_IS_SUN3.
1991-04-30 * Makefile.dist: Add comment about tm-sun3os4.h: tm-sun3.h, etc.Jim Kingdon2-0/+4
1991-04-30 * sun386-xdep.c [!GDB_TARGET_IS_SUN386]: Just provide emptyJim Kingdon1-0/+27
functions which don't do anything.
1991-04-30 * Move BROKEN_LARGE_ALLOCA from tm-sun386.h to xm-sun386.h.Jim Kingdon2-2/+3
1991-04-29 * infrun.c: Don't include sys/user.h and friends (wrong forJim Kingdon3-27/+14
cross-debugging and not necessary anymore (see IN_SIGTRAMP in xm-vax.h)). [SET_STACK_LIMIT_HUGE]: Include <sys/{resource,time}.h>. xm-tahoe.h: Don't define _DIRENT_. * xm-tahoe.h: Remove USE_OLD_TTY (not needed now that terminal.h includes sgtty.h before sys/ioctl.h).
1991-04-29 {x,t}m-tahoe.h, tahoe-pinsn.c, tahoe-opcode.h: New files.Jim Kingdon1-0/+10
1991-04-29Initial revisionJim Kingdon4-0/+917
1991-04-29 * param-no-tm.h: Make BITS_BIG_ENDIAN defined to 0/1, not definedJim Kingdon3-6/+8
or not defined. Don't define it based on TARGET_BYTE_ORDER if it's already defined (in the tm.h file). mips-opcode.h (BIT_FIELDS_*), values.c (modify_field, unpack_field_as_long): Use #if BITS_BIG_ENDIAN not #ifdef BITS_BIG_ENDIAN.
1991-04-26 * tm-sparc.h: Add comments about gcc version 2 and structure passing.Jim Kingdon2-1/+5
1991-04-26*** empty log message ***Jim Kingdon4-327/+468
1991-04-26 * symfile.c (fill_in_vptr_fieldno): Don't call check_stub_type.Jim Kingdon1-1/+1
Return void not int. (also declarations in symfile.h and value.h).
1991-04-26 defs.h (TARGET_LONG_LONG_BIT): New macro.Jim Kingdon1-0/+6
1991-04-26 * symtab.c, symtab.h: Have a builtin_type_{,unsigned_}long_longJim Kingdon1-2/+21
regardless of LONG_LONG. symtab.c, symtab.h (allocate_stub_method): New function.
1991-04-26 * values.c, value.h: New functions value_{headof,from_vtable_info}.Jim Kingdon1-2/+2
* value.h: Remove redundant declaration of value_static_field.
1991-04-26 * values.c (check_stub_method): Do lookup_method_type and stuffJim Kingdon1-50/+187
rather than smash_to_method_type. * values.c (check_stub_method): Deal with operator names. * values.c: Move declaration of cplus_demangle to top of file. * values.c (baseclass_addr): If can't read memory, set *ERRP rather than calling error(). * values.c (value_static_field): Recursively check all baseclasses. Return NULL if not found. * values.c, value.h: New functions value_{headof,from_vtable_info}. values.c (value_virtual_fn_field): Don't bother to do anything with return value from fill_in_vptr_fieldno.CVS: Modified Files:
1991-04-26 * valprint.c (val_print): Print out first element of vtblJim Kingdon1-36/+66
specially. * valprint.c: Move print controls to top and add objectprint. Add command "set print object on/off". * valprint.c (value_print, is_vtbl_member): Put things in local variables rather than continually doing VALUE_TYPE (val), etc.
1991-04-26 * valops.c (typecmp): If t2 == 0, return 1.Jim Kingdon1-23/+39
* valops.c (value_struct_elt_for_address): Call check_stub_method. * valops.c (value_struct_elt): Remove found, arg1_as_ptr. * valops.c (search_struct_method): Give error if j > 0 && args == 0. * valops.c (search_struct_field): New argument looking_for_baseclass. Give error if value_static_field or value_primitive_field return NULL. valops.c (various): Call search_struct_field with extra parameter.
1991-04-26 * symtab.c, symtab.h: Have a builtin_type_{,unsigned_}long_longJim Kingdon1-19/+174
regardless of LONG_LONG. symtab.c, symtab.h (allocate_stub_method): New function. * symtab.c (decode_line_1): Deal with operators specified as "operator" <optional whitespace> <symbols for operator>. (operator_chars): Help do it. * symtab.c (lookup_struct_elt_type): Call check_stub_type. Take additional argument noerr. Don't dump core if TYPE_FIELD_NAME is NULL. Check the baseclasses recursively.
1991-04-26 * symfile.c (fill_in_vptr_fieldno): Don't call check_stub_type.Jim Kingdon1-6/+16
Return void not int. (also declarations in symfile.h and value.h). Deal with multiple inheritance.
1991-04-26 * printcmd.c (x_command): Dereference references.Jim Kingdon1-1/+25
* printcmd.c (print_command_1): Add if (objectprint) code.
1991-04-26 * eval.c (evaluate_subexp, case UNOP_LOGNOT): If following opcodeJim Kingdon1-7/+20
is OP_SCOPE, give an error. * eval.c (evaluate_subexp): Pass third arg to lookup_struct_elt_type. * eval.c (evaluate_subexp), values.c (value_virtual_fn_field): Don't bother to do anything with return value from fill_in_vptr_fieldno. * eval.c (evaluate_subexp): If value_static_field returns NULL, give an error.
1991-04-26 dbxread.c (read_type): If we get "##", don't lookup_function_typeJim Kingdon1-24/+31
and start clobbering it; allocate_stub_method instead. * dbxread.c (read_struct_type): Put "op$" instead of "operator" in the symbol table. * dbxread.c (read_struct_type): Set fcontext to 0 for normal member function. * dbxread.c (read_struct_type): Initialize name to 0. * dbxread.c (read_ofile_symtab, N_CATCH): Add offset to bufp->n_value. * dbxread.c (dbx_create_type): Zero TYPE_VPTR_BASETYPE. (read_struct_type): Don't bother to set TYPE_VTPR_{BASETYPE,FIELDNO} if it's just going to be {0,1}. * dbxread.c (virtual_context): Use TYPE_BASECLASS starting at 0 (yes, it's #if 0, but just in case...).
1991-04-26 * cplus-dem.c (optable): Add "nw", "dl", "compound".Jim Kingdon1-4/+37
(cplus_mangle_opname): New function. (do_type): Add case 'Q'. * vax-opcode.h, expread.y, expprint.c, cplus-dem.c: Declare some things "const".
1991-04-26 * expread.y (abs_decl): Accept '&' and '&' abs_decl.Jim Kingdon1-2/+32
expread.y (typebase): Add {unsigned,} long long {,int}. * expread.y (variable): Allow for destructor with foo::~name. * vax-opcode.h, expread.y, expprint.c, cplus-dem.c: Declare some things "const".
1991-04-26 * vax-opcode.h, expread.y, expprint.c, cplus-dem.c: Declare someJim Kingdon2-2/+3
things "const".
1991-04-26 gmalloc.c: #if 0 out !HAVE_GETPAGESIZE code.Jim Kingdon1-0/+5
* gmalloc.c [!HAVE_GETPAGESIZE]: Try to figure out the pagesize.
1991-04-26 * xconfig/i386v{,32}{,-g}: Add XM_CFLAGS=-Dgetpagesize()=4096.Jim Kingdon4-0/+8
gmalloc.c: #if 0 out !HAVE_GETPAGESIZE code.
1991-04-26Replace all 5 BFD_FAILURE's with false's.John Gilmore1-5/+5
1991-04-26Remove BFD_SUCCESS and BFD_FAILURE, replace with a comment about returnJohn Gilmore1-10/+3
values of functions.
1991-04-25Use the new merged include directory.John Gilmore2-2/+2
1991-04-25Minor changes to accomodate merging of three include file directories.John Gilmore5-16/+20
1991-04-25Merge intel-deliver and amd-deliver "include" directories, and theJohn Gilmore5-303/+142
GDB include directory, all into a single include directory. There are minor corresponding changes in a few files in bfd and gdb.
1991-04-25Initial revisionJohn Gilmore13-0/+2903
1991-04-25Fix minor pointer type problems that "cc" complains about.John Gilmore3-5/+8
1991-04-24Added the sizeof_headers keyword.Steve Chamberlain4-4/+27
1991-04-24Added some depdenencies and fixed etagsSteve Chamberlain1-2/+7
1991-04-24Changed the shape of the howto type yet again.Steve Chamberlain10-177/+266
Now m88kbcs support can self host.
1991-04-24This is the last one I gave to Telebit, minus all the print_msg's.Jim Kingdon1-0/+2
1991-04-24 * WHATS.NEW: Remove mention of readline and more paging (in 3.5).Jim Kingdon2-22/+15
Try to keep command names up to date with renaming.
1991-04-24 * gmalloc.c [!HAVE_GETPAGESIZE]: Try to figure out the pagesize.Jim Kingdon2-0/+39
1991-04-24 * infun.c (resume, resume_cleanups): New functions.Jim Kingdon1-6/+35
(wait_for_inferior, proceed, child_create_inferior): Use resume not target_resume.
1991-04-24Three staging checkpoint.K. Richard Pixley1-3/+3