summaryrefslogtreecommitdiff
path: root/gdb/solib.c
Commit message (Collapse)AuthorAgeFilesLines
* * dbxread.c, i386-pinsn.c, i386-tdep.c, regex.c, solib.c, symmisc.c,Fred Fish1992-06-291-9/+43
| | | | | | | | | | | | | | | | | | symtab.h, tm-i386v4.h, valprint.c, values.c: Lint. * breakpoint.c, c-exp.y, coffread.c, command.c, environ.c, eval.c, findvar.c, infcmd.c, infptrace.c, infrun.c, m2-exp.y, parse.c, putenv.c, solib.c, sparc-xdep.c, symtab.c, tm-i386v.h, tm-sparc.h, utils.c, valarith.c, valops.c, valprint.c, values.c: Replace bcopy() use with memcpy(), which is more standard and can take advantage of gcc's builtin functions for increased performance. * breakpoint.c, buildsym.c, coffread.c, dbxread.c, i386-tdep.c, ieee-float.c, infcmd.c, sparc-tdep.c, stack.c, symtab.c, symtab.h, target.c, values.c: Replace bzero() use with memset(), which is more standard and can take advantage of gcc's builtin functions for increased performance. * i386-tdep.c, main.c, valprint.c: Replace bcmp() use with memcmp(), which is more standard and can take advantage of gcc's builtin functions for increased performance.
* LintJohn Gilmore1992-03-291-14/+20
|
* Changes to implement the -mapped and -readnow options for commands thatFred Fish1992-03-181-81/+185
| | | | read symbol tables.
* * core.c, exec.c, solib.c: Rename target_ops sections =>John Gilmore1992-02-211-10/+11
| | | | | | to_sections, etc. * infcmd.c, inflow.c, infptrace.c, infrun.c, main.c, target.c, target.h: target_kill takes no args.
* Only compile in solib_add_common_symbols for non-SVR4 (SunOS) shared libs.Fred Fish1992-01-151-0/+4
|
* Reference: gdb-pend/657Stu Grossman1992-01-151-143/+182
| | | | | | | | * target.c (target_read_string): Create this routine to read null terminated strings from the target. It deals with running off the end of memory elegantly as well. solib.c (find_solib): Use target_read_string() to avoid problems with running off the end of memory.
* * solib.c (locate_base): Fix uninitialized variable that wasFred Fish1991-12-231-1/+1
| | | | | | | | | | | | causing return of random value to callee. * config/mh-amix, config/mh-i386v4: Change to find alloca by compiling and linking alloca.c, even when it is not strictly required. Also arrange to link with -ltermlib rather than -ltermcap. * Makefile.in: Move TERMCAP definition to prior to inclusion of host makefile fragments so it can be overridden.
* Numerous small changes and a complete reorganization of solib.c, to supportFred Fish1991-12-161-323/+952
| | | | | SVR4 shared libraries in a manner very close to the original SunOS support. See the ChangeLog for details.
* Fix some infrastructure to be able to cope with host and targetJohn Gilmore1991-09-061-3/+8
| | | | | | | | | | | | | | | | | | | | | | | machines with different sized basic types (ints, ptrs, etc). (Idea from pierre@la.tce.com (Pierre Willard).) * value.c (value_from_longest): Rename from value_from_long. Handle pointer types as well as integers, so that targets with different pointer sizes from the host can be accomodated. * breakpoint.c, convex-tdep.c, eval.c, expprint.c, printcmd.c, valarith.c, valops.c, valprint.c, value.h, values.c: Rename uses of value_from_long to value_from_longest. * eval.c, findvar.c, printcmd.c, valarith.c, valops.c: Pass the correct pointer type to value_from_long{est}. * remote-vx.c: Remove obsolete code for calling functions via vxworks kludge interface (it referenced value_from_long). * valops.c (value_string): Find malloc with lookup_misc_func, not raw search. * breakpoint.c, remote-vx.c: Reword strings printed by catch_errors callers.
* Make writing to files work properly. (Fixes to BFD are also needed.)John Gilmore1991-09-041-75/+187
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * core.c (core_open): Open file ourselves, read or r/w, depending on write_files. Use bfd_fdopenr. * gdbcore.h (write_files): New variable. * exec.c (write_files): Define variable, add set&show for it. (exec_file_command): Use write_files to open for read or r/write. Make shared library reading happen automatically. These changes are mostly from Peter Schauer <pes@regent.e-technik.tu-muenchen.de>. * inferior.h (stop_soon_quietly): Add to exported variables. * infrun.c (child_create_inferior): call solib hook, if defined. (child_attach): call solib hook, if defined. * solib.c: Include inferior.h. Add from_tty to so_list as kludge. (find_solib): Use lookup_misc_func rather than hand-rolled. (symbol_add_stub): New stub for catch_errors. (solib_add): Avoid output if !from_tty. Catch errors rather than just calling symbol_file_add and bombing. (solib_create_inferior_hook): Interface with the target process to let it read and alloc shared libs, then figure out what it did. * core.c (validate_files): Fix typo, soften warning. (Fix from Hiroto Kagotani <kagotani@cs.titech.ac.jp>.) * utils.c (fputs_demangled): Avoid duplicate printing if demangling is off. (Fix from J.T. Conklin <jtc@cayenne.com>.) * infrun.c (proceed): Cast -1 to (CORE_ADDR) before comparing. (Fix from pierre@la.tce.com (Pierre Willard).) * main.c (catch_errors): Change argument to a char * from an int, since a char * can point to a struct full of glop, but an int is not guaranteed to be able to hold a pointer. * breakpoint.c (breakpoint_cond_eval, bpstat_stop_status, breakpoint_re_set_one, breakpoint_re_set): Adapt. * core.c (core_open, solib_add_stub): Adapt. * remote-vx.c (symbol_stub, add_symbol_stub, callers): Adapt.
* The list of changes is too long to fit in the cvs log (since it truncates!).Jim Kingdon1991-05-021-1/+1
| | | | Look at the ChangeLog for Apr 30 and May 1.
* * blockframe.c, frame.h (reinit_frame_cache): New function.Jim Kingdon1991-04-241-0/+5
| | | | | solib.c (solib_add), symfile.c ({,add_}symbol_file_command): Use it.
* * Shared libaray/corefile changes from Peter Schauer:Jim Kingdon1991-04-231-3/+95
| | | | | | | | | | | | core.c (core_close): Call CLEAR_SOLIB. (core_open): Remove comment about "should deal with shared lib". (core_xfer_memory): If we can't xfer the usual way, try the shared libraries. solib.c (so_list): New fields so_bfd and so_sections{,_end}. (find_solib): Use solib_map_sections to get ld_text. (solib_map_sections, solib_xfer_memory): New functions. (clear_solib): Free so_sections and close so_bfd. tm-sunos.h: Add solib_xfer_memory, solib_add.
* * symfile.c (symbol_file_add): Add comment.Jim Kingdon1991-04-221-12/+14
| | | | solib.c (solib_add): Don't malloc name passed to symbol_file_add.
* Initial revisionK. Richard Pixley1991-03-281-0/+245