1 2000-01-24 Kevin Buettner <kevinb@redhat.com>
3 * utils.c (get_field, put_field): Fix buffer underruns and
4 overruns. Also, handle case where total_len is not evenly
6 (getfield): Make sure zeroing of unwanted bits occurs even
7 when bit field to extract does not straddle two or more
10 2000-01-23 Christopher Faylor <cgf@cygnus.com>
12 * defs.h: Add gdb_thread_select declaration.
14 2000-01-23 Kevin Buettner <kevinb@redhat.com>
16 * linux-thread.c (_initialize_linuxthreads): Make sure that
17 linuxthreads_block_mask does not block SIGCHLD.
19 2000-01-20 Fernando Nasser <fnasser@totem.to.cygnus.com>
21 * rdi-share/devsw.c (openLogFile): On cygwin, set the log mode to
22 text so that new lines work properly.
24 2000-01-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
26 * proc-utils.h: New file. Export functions from proc-*.c.
28 * proc_api.c: Rename to:
29 * proc-api.c: New file. Add include of proc-utils.h.
31 * proc_events.c: Rename to:
32 * proc-events.c: New file.
34 * proc_flags.c: Rename to:
35 * proc-flags.c: New file.
37 * proc_why.c: Rename to:
38 * proc-why.c: New file. Add include of proc-utils.h.
40 * procfs.c: Add includes of gdbthread.h, sys/wait.h, signal.h,
41 ctype.h, proc-utils.h.
42 (find_procinfo_or_die): Add braces to avoid ambiguous else clause.
43 (open_procinfo_files): Conditionalize local variable tmp, to avoid
45 (proc_iterate_over_mappings): Conditionalize local vars mapfd and
47 (procfs_wait): Adjust format in some printf_filetered calls to
48 avoid compiler warnings.
49 (make_signal_thread_runnable): Ifdef 0. The calls to this function
51 (procfs_resume): Add parentheses around '&&' operation.
52 (procfs_set_exec_trap): Remove unused variable.
53 (info_proc_cmd): Add braces to avoid ambiguous else clause.
55 * Makefile.in (procfs.o, proc-api.o, proc-events.o, proc-flags.o,
56 proc-why.o): Update dependencies.
58 * config/sparc/sun4sol2.mh (NATDEPFILES): Change proc_*.o files to
61 2000-01-17 Jason Molenda (jsm@bugshack.cygnus.com)
63 * configure.in (NEW_PROC_API): Fix Unixware-matching regexp.
64 Fix from Robert Lipe <robertl@sco.com>.
65 * configure: Regenerated.
67 2000-01-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
69 * stack.c (print_frame_info_base): Break up into the frame info
70 (location) printing part and the rest (source line printing).
71 (print_frame): New function. Take care of printing the location
75 * infrun.c (normal_stop): Use enum values rather than integers for the
76 source_flag to be passed to show_and_print_stack_frame().
79 * frame.h (print_what): New enum for 'source' argument to
80 print_frame_info_base(). Use this instead of obscure numbers.
83 Sun Jan 16 17:58:00 2000 David Taylor <taylor@texas.cygnus.com>
85 * event-top.c (stdin_event_handler): call quit_command rather than
86 exit -- run cleanups, give target code a chance to say goodbye to
87 the target. Fixes bug where the inferior processes were left
88 around on Solaris (and probably elsewhere) by the testsuite.
90 2000-01-14 Mark Salter <msalter@cygnus.com>
92 * v850-tdep.c (v850_target_architecture_hook): Setup correct
93 machine id for disassembly.
95 2000-01-13 Jim Blandy <jimb@cygnus.com>
97 * i386-linux-nat.c (fill_gregset): Pass the correct arguments to
98 convert_to_regset, when regno indicates a specific register.
100 Thu Jan 13 23:34:17 EST 2000 Nicholas Duffek <nsd@cygnus.com>
102 * uw-thread.c: Document libthread.so debugging interface. Minor
103 comment and formatting tweaks.
104 (DEBUG): #define as 0 instead of 1.
105 (CALL_BASE): Include function name in error msg.
106 (libthread_stub): Adjust inferior_pid after thread exit.
107 (uw_thread_create_inferior): Deactivate uw_thread_ops before
108 asking procfs_ops to create inferior.
109 (libthread_init): Don't return nonlocally on error.
111 2000-01-12 Fernando Nasser <fnasser@totem.to.cygnus.com>
113 * rdi-share/ardi.c (negotiate_params): Fix initialization of static
116 2000-01-12 Fernando Nasser <fnasser@totem.to.cygnus.com>
118 * remote-rdi.c (arm_rdi_open): Call arm-rdi-close() to make sure
119 both sides are on the same state.
121 2000-01-12 Fernando Nasser <fnasser@totem.to.cygnus.com>
123 * rdi-share/serdrv.c (find_baud_rate): Fix entries for 57600 and
124 115200 (minor syntax mistake).
126 2000-01-12 Jim Blandy <jimb@cygnus.com>
128 * config/sparc/tm-sun4sol2.h (MERGEPID): Provide a definition for
129 this here, to go along with the definitions of PIDGET and TIDGET.
131 2000-01-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
133 * thread.c (do_captured_thread_select): New function. Switch
134 current thread, safely from within catch_errors().
135 (gdb_thread_select): New function. Switch threads safely.
136 (thread_command): Use gdb_thread_select().
138 2000-01-11 Christopher Faylor <cgf@cygnus.com>
140 * configure.in: Avoid linking -limagehlp unless it's a native build.
141 * configure: Regenerate.
142 * thread.cc (add_thread): Clear private data pointer here or suffer
143 strange behavior when it is checked for NULL later.
145 2000-01-09 Christopher Faylor <cgf@cygnus.com>
147 * win32nat.c (handle_exceptions): Handle various arithmetic exceptions.
148 * configure.in: Add an additional library to cygwin link.
149 * configure: Regenerate.
151 Patch from Egor Duda <deo@logos-m.ru>:
152 * coffread.c (coff_symfile_read): Reinstate ability to recognize "pe"
155 2000-01-07 Michael Snyder <msnyder@cleaver.cygnus.com>
157 * uw-thread.c: New file to support UnixWare user-mode threads:
158 contributed by Nickolas Duffek <nsd@cygnus.com>.
159 * target.h (struct target_ops): New vector, to_extra_thread_info,
160 allows back-ends to give extra details in info thread display.
161 (target_extra_thread_info): define new macro.
162 (target_find_new_threads): simplify macro. Cleanup comments.
163 * target.c (to_extra_thread_info): default and inherit new vector.
164 (cleanup_target): eliminate PARAMS, break up long lines,
165 provide default definition for to_extra_thread_info, and
166 to_find_new_threads. Default to_thread_alive and to_query
167 to return_zero, not target_ignore (they each return int not void).
168 (debug_to_find_new_threads): new debug entry.
169 (setup_target_debug): add debug_to_find_new_threads.
170 * gdbthread.h: export struct thread_info, find_thread_pid, and
171 iterate_over_threads. Add comments. Eliminate PARAMS. Update
172 copyright. Add new private data pointer for use by target back-ends.
173 * thread.c (struct thread_info): move definition to gdbthread.h.
174 (find_thread_pid): new exported function for thread lookup.
175 (iterate_over_threads): new exported function for applying
176 arbitrary operations to threads. Update copyright to 2000.
177 (info_threads_command): use new target_extra_thread_info vector
178 to display extra information about each thread (if implemented).
179 * config/i386/tm-i386v42mp.h: remove obsolete #defines for procfs.
180 Add defines for PIDGET, etc.
181 * config/i386/tm-i386sol2.h: ditto.
182 * config/sparc/tm-sun4sol2.h: ditto.
183 * config/i386/i386v42mp.mh: add uw-thread.o to NATDEPFILES.
184 * testsuite/gdb.threads/pthreads.exp: Try to link with -lthread
185 if -lpthread and -lpthreads fail.
187 * procfs.c: (PIDGET, TIDGET, MERGEPID): change default to no-op.
188 (proc_flags): combine flags that UnixWare splits into two locations.
189 (proc_modify_flag): add support for PR_KLC (kill on last close).
190 (proc_[un]set_kill_on_last_close): new functions.
192 2000-01-06 Fernando Nasser <fnasser@totem.to.cygnus.com>
194 * remote.c (remote_open_1): Fix message so it does not imply a
195 specific syntax for serial ports, as it is OS dependent.
196 (remote_async_open_1): Ibid.
197 (init_remote_ops): Ibid.
199 2000-01-06 Fernando Nasser <fnasser@totem.to.cygnus.com>
201 * rdi-share/serdrv.c (SerialOpen): Use speed from "-b" argument or
202 "set remotebaud" command (if set) when no speed is specified on
203 the "target rdi" command.
205 2000-01-06 Fernando Nasser <fnasser@totem.to.cygnus.com>
207 * rdi-share/serdrv.c (find_baud_rate): Add entries for 57600 and
209 (baud_options[]): Ibid.
211 2000-01-06 Fernando Nasser <fnasser@totem.to.cygnus.com>
213 * rdi-share/unixcomm.c: Fix SERIAL_PREFIX so it matches the prefix
214 used by each operating system.
216 2000-01-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
218 * breakpoint.c (until_break_command): Add an argument for the
219 continuation, the beginning of the cleanups set up by this
221 (until_break_command_continuation): Do cleanups until the one
222 passed in as argument instead of doing all of them.
224 * infcmd.c (finish_command_continuation): Expect a new argument,
225 which indicates up to where to do cleanups. Update calls to
226 do_exec_cleanups to use this marker, instead of ALL_CLEANUPS.
227 (finish_command): Add another argument for the continuation: the
228 starting cleanup for this command.
230 2000-01-05 Fernando Nasser <fnasser@totem.to.cygnus.com>
232 From Grant Edwards <grante@visi.com> (original patch from Thomas
234 * rdi-share/ardi.c: Allow interruption of interruptible
235 targets with a <CNTL-C>.
237 2000-01-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
239 * rdi-share/etherdrv.c (fetch_ports): Send extra words on request
240 to control port to accommodate some versions of Angel.
242 2000-01-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
244 * rdi-share/devsw.c (dumpPacket): Fix source of channel information.
245 Add interpretation for C Support Library packets.
247 2000-01-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
249 * rdi-share/devsw.c (DevSW_Close): Remove const from argument that
250 is now being modified.
251 * rdi-share/devsw.h: Adjust declaration of the above funtion.
253 For older changes see ChangeLog-99
259 version-control: never