aboutsummaryrefslogtreecommitdiff
path: root/gdb/sol-thread.c
AgeCommit message (Collapse)AuthorFilesLines
2001-03-06Update/correct copyright notices.Kevin Buettner1-2/+2
2001-03-01Create new file regcache.h. Update all uses.Andrew Cagney1-1/+3
2001-02-07* sol-thread.c (restore_inferior_pid): Save the PID in a freshlyAndrew Cagney1-3/+7
allocated buffer. (save_inferior_pid): Restore the PID from that tempoary buffer. Delete the buffer. * utils.c (make_cleanup_close, do_close_cleanup): Ditto for FD.
2001-02-062001-02-06 Michael Snyder <msnyder@makita.cygnus.com>Michael Snyder1-1/+1
Submitted by Paul Hilfinger (hilfingr@gnat.com) and Andrei Petrov (and@genesyslab.com). * findvar.c: Buffers of size MAX_REGISTER_RAW_SIZE or REGISTER_BYTES must be allocated dynamically, since these are no longer constants. * infcmd.c: Ditto. * regcache.c: Ditto. * remote.c: Ditto. * sol-thread.c: Ditto. * valops.c: Ditto. * config/sparc/sun4sol2.mh (MH_CFLAGS): Add -I/usr/include/v9, as a work-around for a missing Sun header file in solaris for sparc64.
2001-01-24* dcache.c (dcache_write_line): Fix typo.J.T. Conklin1-4/+9
* memattr.c (delete_mem_region): Replace free() with xfree(). (mem_number): Add explicit type. * sol-thread.c (sol_thread_xfer_memory): Add attrib argument. (rw_common): Likewise.
2000-10-30* gdbarch.sh, hp-psymtab-read.c, hpread.c, m3-nat.c, mcore-tdep.c,J.T. Conklin1-1/+1
mips-tdep.c, monitor.c, regcache.c, remote-es.c, ser-unix.c, somread.c, tracepoint.c: Fix spelling errors in comments. * gdbarch.c: Regenerate. * gnu-nat.c (S_exception_raise_request): Fix typos and spelling errors in strings. * m3-nat.c (intercept_exec_calls, mach_thread_parse_id): Likewise. * mcore-tdep.c (mcore_analyze_prologue): Likewise. * mips-tdep.c (mips16_next_pc, _initialize_mips_tdep): Likewise. * remote-e7000.c (e7000_start_remote): Likewise. * remote-rdp.c (handle_swi): Likewise. * remote-vx.c (vx_load_command): Likewise. * sh-tdep.c (sh_do_pseudo_register): Likewise. * sol-thread.c (td_err_string): Likewise. * symtab.c (decode_line_2): Likewise. -------------------------------------------------------------------
2000-10-18Protoization.Kevin Buettner1-6/+8
2000-09-28 * sol-thread.c (ps_pdmodel): Return PR_MODEL_UNKNOWN instead ofPeter Schauer1-3/+2
PS_ERR if exec_bfd is not yet open.
2000-09-05Fix mistaken check-in.Michael Snyder1-5/+3
2000-09-052000-09-05 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder1-2/+8
* sol-thread.c (ps_pdmodel): Protect with an ifdef.
2000-08-31Rename bfd_elf_get_arch_size to bfd_get_arch_size().Kevin Buettner1-2/+2
2000-08-302000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder1-1/+28
* valops.c (value_cast): Indentation fix-up. * acconfig.h (HAVE_PRGREGSET32_T, HAVE_PRFPREGSET32_T, HAVE_STRUCT_LINK_MAP32): New configure macros. * config.in: Ditto. * configure.in: Test for the above new macros. * breakpoint.c: Update copyright date. * core-sol2.c: Include v9/sys/privregs.h directly to work around a bug in Sun's Solaris 8 header files. (fetch_core_registers): Use the above new configure macros to handle cross-debugging of 32-bit core files on a 64-bit host. * sol-thread.c (ps_pdmodel) New function. (rw_common): For debugging of 32-bit apps on a 64-bit host, truncate addresses to 32 bits. * solib.c (solib_extract_address): Functionize. Make 32/64 aware. (LM_ADDR, LM_NEXT, LM_NAME): Ditto. (IGNORE_FIRST_LINK_MAP): Ditto. (first_link_map_member): Make 32/64 aware. (open_symbol_file_object): Ditto. (current_sos): Ditto.
2000-07-30Protoization.Kevin Buettner1-77/+36
2000-06-04Eliminate PARAMS from function pointer declarations.Kevin Buettner1-1/+1
2000-06-012000-06-01 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder1-0/+14
* sol-thread.c (rw_common): Circumstances (eg. a bug in Sun's thread_db library) may cause this function to be called with an illegal address, in which case procfs_to_xfer_memory will return zero. Return an error code instead of looping forever.
2000-05-28PARAMS removal.Kevin Buettner1-14/+13
2000-05-262000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder1-24/+13
* gregset.h: New file. Typedefs for gdb_gregset_t and gdb_fpregset_t, prototypes for supply_gregset and friends. * procfs.c: Include gregset.h. Delete local prototypes for supply_gregset etc., and local typedef gdb_gregset_t etc. * sol-thread.c: Include gregset.h, delete local prototypes, add appropriate casts to gdb_gregset_t. * uw-thread.c, lin-thread.c, core-sol2.c, core-regset.c, sparc-tdep.c, ptx4-nat.c, ppc-linux-nat.c, mipsv4-nat.c, m88k-nat.c, m68klinux-nat.c, m68k-tdep.c, irix5-nat.c, irix4-nat.c, ia64-linux-nat.c, i386v4-nat.c, cxux-nat.c, arm-linux-nat.c, alpha-nat.c: Include gregset.h. * config/nm-linux.h: Define GDB_GREGSET_T, GDB_FPREGET_T. * config/sparc/tm-sun4sol2.h: Ditto.
2000-05-082000-05-08 Michael Snyder <msnyder@seadog.cygnus.com>Michael Snyder1-50/+57
* sol-thread.c (sol_thread_create_inferior): only add the thread to the thread list if it is not already in there. (prototypes for thread_db func ptrs): pretty up formatting.
2000-04-13 * sol-thread.c (init_sol_core_ops): Initialize to_thread_aliveNicholas Duffek1-0/+6
and document to_find_new_threads bug.
2000-04-07 * sol-thread.c (gdb_ps_addr_t): New typedef, depends on definitionPeter Schauer1-6/+8
of PROC_SERVICE_IS_OLD. (ps_pglobal_lookup, ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite, rw_common): Change argument type from psaddr_t to gdb_ps_addr_t.
2000-04-07 * sol-thread.c (GET_LWP, GET_THREAD, BUILD_LWP, BUILD_THREAD):Nicholas Duffek1-7/+13
Change to rely on PIDGET etc. * config/i386/nm-i386sol2.h (TARGET_HAS_WATCHPOINTS, TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT, target_[insert/remove]_watchpoint): define. Allow target to use procfs hardware watchpoints. * config/sparc/nm-sun4sol2.h: ditto. * config/i386/tm-i386sol2.h (PIDGET, TIDGET, MERGEPID): modify definitions to use 16 bits for the pid, 15 bits for the tid, and 1 bit for the flag. * config/sparc/tm-sun4sol2.h: ditto. (SOFTWARE_SINGLE_STEP, SOFTWARE_SINGLE_STEP_P): undefine. * testsuite/gdb.threads/pthreads.exp (all_threads_running): Allow for more than 15 thread increments.
2000-03-232000-03-23 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder1-6/+6
* sol-thread.c (ps_pglobal_lookup): Change argument type from paddr_t to psaddr_t. This mistake appears to date from an erroneous man page in Solaris 2.5 -- the correct type from the system headers has always been psaddr_t. (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): ditto. (rw_common): ditto.
2000-02-29From Peter Schauer: Fix Solaris/x86 threads by copying linux code.Andrew Cagney1-45/+8
2000-01-06import gdb-2000-01-05 snapshotJason Molenda1-0/+1
1999-12-22import gdb-1999-12-21 snapshotJason Molenda1-0/+2
1999-11-17import gdb-1999-11-16 snapshotJason Molenda1-9/+16
1999-11-09import gdb-1999-11-08 snapshotJason Molenda1-6/+25
1999-09-09import gdb-1999-09-08 snapshotStan Shebs1-11/+38
1999-08-31import gdb-1999-08-30 snapshotJason Molenda1-1/+0
1999-07-07import gdb-1999-07-07 post reformatJason Molenda1-231/+249
1999-05-05import gdb-19990504 snapshotStan Shebs1-1/+2
1999-04-26import gdb-19990422 snapshotStan Shebs1-8/+4
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1-0/+1673
1999-04-16Initial creation of sourceware repositoryStan Shebs1-1673/+0
1999-01-191999-01-19 Fernando Nasser <fnasser@totem.to.cygnus.com>Fernando Nasser1-15/+27
* sol-thread.c abug-rom.c cpu32bug-rom.c dbug-rom.c m32r-rom.c mac-nat.c mon960-rom.c op50-rom.c ppc-bdm.c remote-adapt.c remote-array.c remote-bug.c remote-e7000.c remote-eb.c remote-es.c remote-est.c remote-hms.c remote-mm.c remote-nindy.c remote-nrom.c remote-os9k.c remote-rdp.c remote-sds.c remote-sim.c remote-st.c remote-udi.c rom68k-rom.c sh3-rom.c sparcl-tdep.c sparclet-rom.c v850ice.c win32-nat.c: cosmetic changes to conform to coding standards.
1999-01-191999-01-18 Fernando Nasser <fnasser@totem.to.cygnus.com>Fernando Nasser1-138/+82
* sol-thread.c: delete compile time initialization of target_ops (_initialize_sol_thread): initialize target_ops at run time. * hpux-thread.c: added target_ops entry. * m3-nat.c: ditto.
1999-01-13Wed Jan 13 14:59:02 1999 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder1-0/+2
* infrun.c (set/show scheduler-locking) New command. Set a mode bit that will control how GDB attempts to control thread scheduling for step, continue, etc. (resume): make use of the schedule-locking mode. * target.h (struct target_ops): new field to_has_thread_control. * sol-thread.c: initialize target_ops to_has_thread_control. * procfs.c: ditto. * target.c: ditto. * m3-nat.c: ditto. * remote.c: ditto. * hpux-thread.c: ditto.
1998-12-28hp merge changes -- too numerous to mention here; see ChangeLog andDavid Taylor1-0/+52
ChangeLog-gdbtk for details.
1998-11-24 * procfs.c (procfs_wait): handle syscall events first.Felix Lee1-11/+0
* procfs.c (GDB_GREGSET_TYPE, GDB_FPREGSET_TYPE): new macros. * config/sparc/xm-sun4sol2.h: use them. * core-sol2.c: don't #undef gregset_t and fpregset_t. * sol-thread.c: ditto. * sparc-tdep.c: ditto.
1998-10-14 * sol-thread.c (ps_pstop, etc): simple test for proc_service.hFelix Lee1-19/+25
version didn't work for sol2.6; pushed it to autoconf. * configure.in (gdb_cv_proc_service_is_old): new test. * acconfig.h (PROC_SERVICE_IS_OLD): new define. * configure, config.in: regenerate.
1998-10-13 * sol-thread.c (ps_pstop, etc): different solaris versions haveFelix Lee1-20/+46
slightly different prototypes in proc_service.h; compensate.
1998-10-02Fri Oct 2 18:52:20 1998 Fernando Nasser <fnasser@cygnus.com>Fernando Nasser1-6/+6
* sol-thread.c: Fixed prototypes and calls to supply_fpregset and fill_fpregset PR 17053
1998-09-18 * sol-thread.c (sol_thread_notice_signals): Use PIDGET whenPeter Schauer1-1/+1
passing pid down to procfs_notice_signals.
1998-08-14 * sol-thread.c (lwp_to_thread): Fix error message for failingPeter Schauer1-2/+2
td_ta_map_lwp2thr call. (ps_lgetLDT): Mask off upper bits in GS register when comparing with selector.
1998-04-11Fri Apr 10 22:36:28 1998 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)Jason Molenda1-2/+64
Update support for x86 Solaris 2. * config/i386/tm-i386sol2.h, nm-i386sol2.h: New configuration files for x86 Solaris 2. * config/i386/i386sol2.mt, i386sol2.mh: Use them. * config/sparc/tm-sun4sol2.h (PROCFS_GET_CARRY): New macro, extract carry flag from a given regset. (IS_STATIC_TRANSFORM_NAME): New macro, check if a symbol name is a SunPro transformed name. * i386-tdep.c (sunpro_static_transform_name): New function to extract the source name from a SunPro transformed name. * inferior.h (procfs_first_available, procfs_get_pid_fd): Add prototypes. * infrun.c (wait_for_inferior): Handle breakpoint hit in signal handler without intervening stop in sigtramp. * procfs.c (procfs_lwp_creation_handler): Use PROCFS_GET_CARRY instead of direct access to the status register. (procfs_get_pid_fd): New function, returns procfs fd for a given pid. * sol-thread.c (ps_lgetLDT): New function, returns LDT for a given lwpid. (sol_find_new_threads): Handle failed libthread_db initialization gracefully. * stabsread.c (define_symbol): Use IS_STATIC_TRANSFORM_NAME to check for a SunPro transformed symbol name.
1998-04-02* Fixes for PR 14571.Frank Ch. Eigler1-0/+7
Thu Apr 2 12:47:41 1998 Frank Ch. Eigler <fche@cygnus.com> * sol-thread.c (sol_thread_store_registers): Save & restore new value of single updated register to prevent accidental clobbering.
1997-12-03fixes for debugging threaded core files. Previously gdb would find theDavid Taylor1-8/+136
kernel threads but would get errors on each of the user threads that wasn't currently assigned to a kernel thread. PR's gdb/13803 (and gdb/13618).
1997-10-24fix for PR 13618 -- gdb incorrectly reports thread information.David Taylor1-0/+37
If other systems besides nm-sun4sol2 exhibit the problem, they may need definitions of FIND_NEW_THREADS and a corresponding support function.
1997-07-16Wed Jul 16 10:38:03 1997 Michael Snyder (msnyder@cleaver.cygnus.com)Michael Snyder1-6/+96
* sol-thread.c (sol_thread_[store, fetch]_registers): if inferior_pid is an LWP rather than a Solaris thread, let procfs handle the request. (rw_common, sol_thread_xfer_memory): procfs_xfer_memory will only work if inferior_pid points to an LWP (rather than a Solaris thread). Use procfs_first_available to find a good LWP. (info_solthreads): added a maintenance command to list all known Solaris threads and their attributes.
1997-05-21Wed May 21 16:03:25 1997 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder1-43/+124
* procfs.c (init_procinfo): new function, abstracts some code shared by create_procinfo and do_attach; (procfs_set_inferior_syscall_traps): new function, abstracts some code needed by procfs_init_inferior, do_attach, and procfs_lwp_creation_handler; (procfs_first_available): new function, find any LWP that's runnable; (procfs_thread_alive): replace stub function with real implementation; (procfs_lwp_creation_handler): fix bug starting new child threads; (info_proc): bug fixes and enhancements for the "INFO PROCESSES" command; (close_procinfo_file): call new function "delete_thread" to cleanup GDB's thread database; (proc_init_failed): add new argument "kill", to control whether process is killed (so this function can be shared by create_procinfo and do_attach); (procfs_exit_handler): handle exit from an attached process, and cleanup procinfo handles when the process exits; (procfs_resume, procfs_wait): cleanup after a thread when it exits; (do_attach, do_detach): handle attached processes with multiple threads; plus some general improvements in the diagnostic output. * sol-thread.c (sol_thread_alive): replace stub with real implementation; (thread_to_lwp, lwp_to_thread): enhance to handle threads that may have exited; (sol_thread_attach): add startup setup stuff; (sol_thread_detach): add unpush_target call; (sol_thread_mourn_inferior): add unpush_target call; (sol_thread_wait, sol_thread_resume): enhance to deal with thread exit cleanly; (sol_thread_new_objfile, sol_thread_pid_to_str): detect unsuccessful startup and don't crash; plus some general cleanup. * thread.c (delete_thread): new function, allows targets to notify gdb when a thread is no longer valid. * infrun.c (wait_for_inferior): don't try to detect a new thread on receiving a TARGET_EXITED event.