]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
import gdb-1999-12-06 snapshot
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 1999-12-06 Christopher Faylor <cgf@cygnus.com>
2
3 * dcache.c (set_dcache_state): New function.
4 * dcache.h: Declare set_dcache_state().
5
6 Sat Dec 4 15:17:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
7
8 * remote.c (build_remote_packet_sizes): Reduce the default packet
9 size of 400 bytes by one to 399. Stops GDB trashing stubs that
10 append a trailing NUL to an already full buffer.
11
12 Sat Dec 4 01:16:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
13
14 * tracepoint.c (remote_get_noisy_reply): Add parameter sizeof_buf.
15 (finish_tfind_command): Add parameter sizeof_msg.
16
17 * remote.c (remote_threads_info): Move assignment operator to
18 outside of function call.
19 (remote_send): Add parameter sizeof_buf.
20 (getpkt): Add parameter sizeof_buf. Call read_frame passing in
21 sizeof_buf.
22
23 * remote.h (getpkt): Update.
24
25 * tracepoint.c (remote_set_transparent_ranges,
26 remote_get_noisy_reply, trace_start_command, trace_stop_command,
27 trace_status_command, finish_tfind_command, trace_find_pc_command,
28 trace_find_tracepoint_command, trace_find_line_command,
29 trace_find_range_command, trace_find_outside_command): Update.
30
31 * remote.c (set_thread, remote_thread_alive,
32 remote_get_threadinfo, remote_get_threadlist,
33 remote_current_thread, remote_threads_info,
34 extended_remote_restart, get_offsets, remote_open_1,
35 remote_async_open_1, remote_wait, remote_async_wait,
36 remote_fetch_registers, check_binary_download, remote_write_bytes,
37 remote_read_bytes, remote_send, remote_detach,
38 remote_async_detach, remote_fetch_registers,
39 store_register_using_P, store_register_using_P,
40 remote_fetch_registers, remote_store_registers, putpkt_binary,
41 remote_insert_breakpoint, remote_remove_breakpoint,
42 compare_sections_command, remote_rcmd, packet_command,
43 remote_info_process, remote_query, remote_insert_watchpoint,
44 remote_search, remote_remove_watchpoint,
45 remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Update.
46
47 Fri Dec 3 17:38:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
48
49 * (read_frame): Add sizeof_buf parameter. Don't allow repeat when
50 first character. Always leave space at the end of the buffer.
51 Return size of packet or -1.
52 (getpkt): Update. Pass in PBUFSIZ.
53
54 Thu Dec 2 17:14:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
55
56 * ser-pipe.c: Include <string.h> for memset().
57
58 1999-12-01 Christopher Faylor <cgf@cygnus.com>
59
60 * config/i386/tm-cygwin.h: Change tm-i386.h include back to tm-i386v.h.
61
62 1999-12-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
63
64 * inf-loop.c (inferior_event_handler): In case of
65 INF_EXEC_CONTINUE, don't do all the regular continuations, but
66 just the intermediate ones.
67
68 * infcmd.c (step_once): Add the continuation to the
69 intermediate_continuation list instead of the regular continuation
70 list.
71
72 * utils.c (add_intermediate_continuation): New function, to add
73 continuations to the intermedite_continuation list.
74 (do_all_intermediate_continuations): New function, do all the
75 continuations in the intermediate list.
76 (discard_all_intermediate_continuations): New function, discard
77 all the continuations in the intermediate list.
78 (intermediate_continuation): New global list for use by step_1().
79
80 * defs.h: Export intermediate_continuation,
81 add_intermediate_continuation, do_all_intermediate_continuations,
82 discard_all_intermediate_continuations.
83
84 1999-11-30 Christopher Faylor <cgf@cygnus.com>
85
86 * win32-nat.c (mappings): Reorganize slightly for new uniform i386
87 register configuration.
88 (do_child_fetch_inferior_registers): Handle special case floating point
89 registers.
90 (handle_output_debug_string): Handle cygwin-specific signals broadcast
91 from the cygwin DLL.
92 (handle_exceptions): Add code to properly allow continuation after a
93 CTRL-C.
94 (child_continue): Accept propagated "continue_status" which controls
95 how the inferior should be continued.
96 (get_child_debug_event): New function.
97 (child_wait): Use above function to handle debug events.
98 (child_create_inferior): Add more intelligent method for running the
99 inferior to the appropriate point before handing it off to the rest of
100 gdb.
101 (child_stop): Specifically send a CTRL-C to the debugged process.
102 (child_kill_inferior): Set global continue status here to cause
103 inferior to run to completion.
104 (child_resume): Eliminate code which attempts to decide how to continue
105 the inferior. This is now handled by child_continue.
106 * config/i386/tm-cygwin.h: Gut and reorganize for consistency with new
107 tm-i386.h.
108
109 Patch from Egor Duda (deo@logos-m.ru)
110 * win32-nat.c (psapi_get_dll_name): New function.
111 (handle_load_dll): Correctly load DLL symbol tables after attaching to
112 a running pid.
113
114 1999-11-30 Michael Snyder <msnyder@cleaver.cygnus.com>
115
116 * infrun.c (handle_inferior_pid): revert 11-29 change: resuming
117 a thread other than the current thread with a signal. Apparently
118 target_resume with a specific pid, a specific signal, and no step
119 means to continue ALL threads but to only send the signal to one
120 (and not, as I had assumed, to continue only the specified thread).
121 * i386-linux-nat.c (fill_gregset): guard against invalid input.
122
123 1999-11-30 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
124
125 * infcmd.c (step_once): New function. Used to do just one step
126 operation.
127 (step_1_continuation): New function. Figure out if we need to step
128 again before returning control to the user.
129 (step_1): If we are in asynchronous mode, don't do the for loop,
130 but rather delegate to continuations the task of repeating the
131 step operation.
132
133 * utils.c (do_all_continuations): Copy the continuation list aside
134 before working on it.
135
136 * target.h (enum inferior_event_type): Add new enum
137 INF_EXEC_CONTINUE.
138
139 * inf-loop.c (inferior_event_handler): Handle new case
140 INF_EXEC_CONTINUE.
141
142 * infrun.c (fetch_inferior_event): If we are in the middle of a
143 'step n' type command, don't say that the execution is complete,
144 but that it will have to continue.
145
146 1999-11-30 Kevin Buettner <kevinb@cygnus.com>
147
148 * utils.c (verror): Don't traverse va_list argument twice. Also,
149 removed extraneous va_end() call.
150
151 1999-11-29 Michael Snyder <msnyder@cleaver.cygnus.com>
152
153 * infrun.c (handle_inferior_pid): If a child thread stops on a
154 signal that we are ignoring, and GDB silently resumes the child,
155 resume ALL threads (not just the one that got the signal). All
156 threads are stopped, so all must be resumed.
157 (handle_inferior_pid): on detecting a thread context switch,
158 swap infrun_state ONLY if both the old thread and the new one
159 are in the thread list. Otherwise state information will be lost!
160 Problem may arise with flaky back-ends.
161
162 1999-11-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
163
164 * breakpoint.c (bpstat_stop_status): Don't decrease hit_count
165 in case of a wp that has not changed.
166
167 Mon Nov 29 12:14:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
168
169 * gdbtypes.c (init_simd_type): Make static.
170
171 * configure.in (AC_CHECK_HEADERS): Check for <sys/ioctl.h>.
172 * configure, config.h: Re-generate.
173 * inflow.c: Include <sys/ioctl.h>
174
175 * i386b-nat.c: Include "gdbcore.h".
176 * fork-child.c: Include "command.h".
177
178 * remote.c (remote_cisco_section_offsets,
179 remote_start_remote_dummy, store_register_using_P,
180 remote_info_process, remote_cisco_open, remote_cisco_close,
181 readsocket, readtty, minitelnet, remote_cisco_wait,
182 init_remote_async_ops, init_extended_async_remote_ops,
183 set_remote_cmd), infrun.c (default_skip_permanent_breakpoint): Use
184 ISO-C syntax for function definition.
185
186 Mon Nov 29 11:28:21 1999 Andrew Cagney <cagney@b1.cygnus.com>
187
188 * stabsread.c: Revert 1999-11-09 Jim Blandy
189 <jimb@zwingli.cygnus.com> and 1999-11-08 Jim Blandy
190 <jimb@zenia.red-bean.com>. Broken on non-Linux targets.
191
192 1999-11-26 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
193
194 * symfile.c (show_load_progress): Add total sent so far to the
195 information passsed to the hook users.
196 (generic_load): Collect total sent so far and pass that to the
197 progress hook.
198
199 * defs.h (show_load_progress): Update.
200
201 1999-11-25 Nick Clifton <nickc@cygnus.com>
202
203 * coffread.c (coff_symfile_read): Treat "epoc-pe" targets as "pe"
204 targets.
205 * dbxread.c (dbx_read_symfile): Treat "epoc-pe" targets as "pe"
206 targets.
207
208 Wed Nov 24 17:07:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
209
210 * Makefile.in (init.c): Add SUBDIR_INIT_FILES so that sub
211 directories can hook in extra init files.
212
213 1999-11-23 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
214
215 * defs.h (show_load_progress): Export.
216
217 * symfile.c (show_load_progress): New hook for download.
218 (generic_load): Collect total size of executable to load.
219 Call progress hook when downloading.
220
221 Thu Nov 18 11:54:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
222
223 * arc-tdep.c (codestream_fill): Rewrite byte swap code using
224 function extract_unsigned_integer.
225
226 Wed Nov 17 17:01:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
227
228 * arm-xdep.c: #include "arm-opcode.h" -> "opcode/arm.h".
229
230 1999-11-22 Jim Blandy <jimb@cygnus.com>
231
232 * Makefile.in (i386-tdep.o): Update list of dependencies.
233
234 1999-11-22 Jim Blandy <jimb@zenia.red-bean.com>
235
236 * config/i386/tm-i386v.h (NUM_REGS, REGISTER_NAMES,
237 REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE,
238 REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE,
239 MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE): Deleted. All
240 of these should inherit identical or compatible values from
241 tm-i386.h, as long as you don't define HAVE_SSE_REGS or
242 HAVE_I387_REGS, which are new anyway.
243
244 Mon Nov 22 21:39:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
245
246 * target.c (do_target_signal_to_host): New function. Indicate of
247 the conversion was successful to the caller via an additional
248 parameter.
249 (target_signal_to_host_p): New function. Return non-zero if the
250 GDB signal exists on the host system.
251 (target_signal_to_host): Rewrite. Use do_target_signal_to_host.
252 * target.h (target_signal_to_host_p): Add declaration. Document
253 target_singal vs host signal vs target OS signal confusion.
254
255 From 1999-11-08 Jimmy Guo <guo@cup.hp.com>:
256 * hppah-nat.c (require_notification_of_events): Start by ignoring
257 all signals and then adding back in ones we're interested in.
258
259 Thu Nov 18 18:12:48 1999 Andrew Cagney <cagney@b1.cygnus.com>
260
261 * jv-typeprint.c (java_type_print_base), kod-cisco.c
262 (cisco_kod_open), kod.c (kod_set_os), xcoffread.c
263 (process_linenos), symfile.c (add_symbol_file_command),
264 remote-rdi.c (arm_rdi_open, rdilogfile_command), main.c
265 (captured_main), go32-nat.c (go32_create_inferior), exec.c
266 (exec_file_attach), corefile.c (core_file_command,
267 reopen_exec_file): Replace strdup with xstrdup.
268
269 Mon Nov 22 12:02:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
270
271 * bcache.c (print_bcache_statistics): Fix printf_filtered
272 arguments.
273 (print_percentage): Make function void.
274
275 1999-11-21 Jim Blandy <jimb@zenia.red-bean.com>
276
277 Make the bcache hash table grow.
278 * bcache.h (BCACHE_NUM_BUCKETS): Delete definition.
279 (struct bcache): Add new element: num_buckets. Make bucket be a
280 pointer to an array, not an array.
281 (free_bcache): New extern declaration.
282 * bcache.c (CHAIN_LENGTH_THRESHOLD): New constant.
283 (expand_hash_table): New function.
284 (bcache): Grow the hash table if the average chain length reaches
285 CHAIN_LENGTH_THRESHOLD.
286 (free_bcache): New function.
287 (print_bcache_statistics): Don't assume that the number of buckets
288 is constant any more.
289 (BSTRING_SIZE): Moved down to just above 'bcache' function, where
290 it's used.
291 * objfiles.c (free_objfile): Call free_bcache, instead of just
292 freeing the bcache's obstack directly.
293 * symfile.c (reread_symbols): Same.
294
295 1999-11-20 Jim Blandy <jimb@zenia.red-bean.com>
296
297 * bcache.c, bcache.h: Rewritten. New version imposes less memory
298 overhead, and has a more effective hash function, so it's probably
299 faster, too.
300
301 * config/nm-linux.h: No need to check whether __STDC__ is
302 #defined --- GDB requires ANSI C now.
303
304 * config/i386/nm-linux.h (linuxthreads_pid_to_str,
305 linuxthreads_prepare_to_proceed): Delete declarations --- they're
306 provided by config/nm-linux.h now.
307
308 1999-11-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
309
310 * top.c (print_command_lines): Remove unused var.
311
312 1999-11-19 Jim Kingdon <kingdon@redhat.com>
313
314 Patch applied by Jim Blandy <jimb@cygnus.com>:
315
316 Enable threads for all linux architectures:
317 * config/nm-linux.h: New file.
318 config/alpha/nm-linux.h, config/i386/nm-linux.h,
319 config/m68k/nm-linux.h, config/sparc/nm-linux.h: Use it.
320 * config/tm-linux.h: New file.
321 * config/i386/tm-linux.h, config/m68k/tm-linux.h,
322 config/sparc/tm-linux.h, config/alpha/tm-alphalinux.h: Use it.
323 * config/m68k/linux.mh, config/sparc/linux.mh,
324 config/alpha/alpha-linux.mh: Add linux-thread.o.
325
326 1999-11-18 Tom Tromey <tromey@cygnus.com>
327
328 * tracepoint.h (get_tracepoint_by_number): Updated declaration.
329 * tracepoint.c (trace_pass_command): Better error message. Fixed
330 logic when `all' not specified.
331 (get_tracepoint_by_number): Added `optional_p' argument. Fixed
332 all callers.
333
334 Wed Nov 17 17:40:30 1999 Andrew Cagney <cagney@b1.cygnus.com>
335
336 * findvar.c (SWAP_FLOATING): Delete macro. Unused.
337
338 1999-11-16 Mark Salter <msalter@cygnus.com>
339
340 * monitor.c (monitor_supply_register): Initialize value to zero.
341
342 1999-11-15 Eli Zaretskii <eliz@is.elta.co.il>
343
344 (Patches applied by Jim Blandy <jimb@zwingli.cygnus.com>)
345
346 Change DJGPP target use the common register layout in
347 config/i386/tm-i386.h.
348 * config/i386/tm-go32.h: #include "i386/tm-i386.h", not
349 "i386/tm-i386v.h".
350 (HAVE_I387_REGS): Define.
351 (HAVE_SSE_REGS): Undefine.
352 (NUM_FREGS, NUM_REGS, REGISTER_NAMES, FP_REGNUM, SP_REGNUM,
353 PS_REGNUM, PC_REGNUM, FP0_REGNUM, FPC_REGNUM, FPCWD_REGNUM,
354 FPSWD_REGNUM, FPTWD_REGNUM, FPIPO_REGNUM, FPIPS_REGNUM,
355 FPOOS_REGNUM, FPOPS_REGNUM, REGISTER_BYTES, REGISTER_BYTE,
356 REGBYTE_0, REGBYTE_10 REGBYTE_16, REGBYTE_24, REGBYTE_29,
357 REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE,
358 MAX_REGISTER_VIRTUAL_SIZE, REGISTER_CONVERTIBLE): Definitions
359 deleted.
360 (i387_to_double, double_to_i387): Declarations deleted.
361 (REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW,
362 REGISTER_VIRTUAL_TYPE): Use definitions from
363 config/i386/tm-i386.h, unless LD_I387 is #defined.
364
365 * go32-nat.c (go32_fetch_registers, store_register)
366 (go32_create_inferior, init_go32_ops): Replace fatal with
367 internal_error.
368 (sig_map): Map exception 7 to TARGET_SIGNAL_EMT.
369
370 * utils.c (notice_quit): Doc fixes.
371
372 1999-11-15 Kevin Buettner <kevinb@cygnus.com>
373
374 * gdbserver/server.h (initialize_low): Declare this target
375 specific function.
376 * gdbserver/server.c (main): Call initialize_low.
377 * gdbserver/low-hppabsd.c, gdbserver/low-linux.c,
378 gdbserver/low-sim.c, gdbserver/low-sparc.c, gdbserver/low-sun3.c
379 (initialize_low): Renamed from initialize. Also removed
380 initialization of inferior_pid.
381 (have_inferior_p): Removed.
382 * gdbserver/low-lynx.c (initialize_low): New function.
383
384 1999-11-12 Fernando Nasser <fnasser@totem.to.cygnus.com>
385
386 * remote-rdi.c: Fix indentation accordingly to GNU standards.
387
388 Thu Oct 28 00:28:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
389
390 * d10v-tdep.c (d10v_gdbarch_init): Make the d10v:ts3 the default.
391
392 Tue Oct 26 09:57:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
393
394 * gdbarch.sh: Re-sync with Cagney's earlier const change.
395
396 Sun Oct 24 20:07:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
397
398 * d10v-tdep.c (struct gdbarch_tdep): Replace nr_a_regs,
399 imap0_regnum, nr_imap_regs, dmap0_regnum, with dmap_register and
400 imap_register.
401 (R0_REGNUM, LR_REGNUM, PSW_REGNUM, NR_IMAP_REGS, NR_A_REGS):
402 Convert to enums.
403 (TS2_NR_A_REGS, TS2_NR_IMAP_REGS, TS3_NR_IMAP_REGS,
404 TS3_NR_A_REGS): Delete.
405 (d10v_ts2_dmap_register, d10v_ts3_dmap_register,
406 d10v_ts2_imap_register, d10v_ts3_imap_register): New functions.
407 (d10v_dmap_register, d10v_imap_register,
408 d10v_ts2_register_sim_regno, d10v_ts3_register_sim_regno,
409 show_regs): Update.
410 (remote_d10v_translate_xfer_address): Rewrite. Use
411 sim_d10v_translate_addr to translate addresses.
412 (d10v_gdbarch_init): Initialize tdep members dmap_register and
413 imap_register.
414
415 Sun Oct 24 00:12:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
416
417 * d10v-tdep.c (struct gdbarch_tdep): Declare.
418 (NR_IMAP_REGS, NR_DMAP_REGS, A0_REGNUM, NR_A_REGS): Redefine using
419 value in gdbarch_tdep.
420 (d10v_dmap_register, d10v_imap_register): Ditto.
421 (d10v_ts2_register_name, d10v_ts2_register_sim_regno): Rename
422 d10v_register_name and d10v_register_sim_regno
423 (enum ts3_regnums, d10v_ts3_register_name,
424 d10v_ts3_register_sim_regno, d10v_register_sim_regno): New.
425 (d10v_gdbarch_init): Configure registers and G packet according to
426 d10v/ts2 and d10v/ts3.
427
428 Sat Oct 23 21:28:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
429
430 * config/d10v/tm-d10v.h (IMAP0_REGNUM, IMAP1_REGNUM, DMAP_REGNUM):
431 Delete macro.
432 (R0_REGNUM, LR_REGNUM, PSW_REGNUM, A0_REGNUM): Move from here.
433 * d10v-tdep.c: To here.
434
435 * d10v-tdep.c: (NR_DMAP_REGS, NR_IMAP_REGS, NR_A_REGS): Define.
436 (d10v_dmap_register, d10v_imap_register): New functions.
437 (remote_d10v_translate_xfer_address): Make static.
438 (d10v_register_virtual_size): Use TYPE_LENGTH of
439 REGISTER_VIRTUAL_TYPE.
440 (d10v_register_byte, do_d10v_pop_frame,
441 remote_d10v_translate_xfer_address, show_regs,
442 d10v_register_raw_size): Ditto.
443 (d10v_register_virtual_type): Ditto. Use explicitly sized builtin
444 types.
445
446 Sat Oct 23 19:08:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
447
448 * d10v-tdep.c: Include "sim-d10v.h".
449 (enum ts2_regnums): Declare.
450 (d10v_register_sim_regno): New function.
451
452 * config/d10v/tm-d10v.h: Delete pre multi-arch code.
453 (REGISTER_SIM_REGNO): Define.
454 (d10v_register_sim_regno): Declare.
455
456 Sat Oct 23 16:39:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
457
458 * gdbarch.c (initialize_current_architecture): Make ``choice''
459 const.
460
461 Wed Nov 10 16:10:22 1999 Jeffrey A Law (law@cygnus.com)
462
463 * hppa-tdep.c (hppa_fix_call_dummy): Fix typo in error message.
464
465 Wed Nov 10 16:47:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
466
467 * utils.c (error_last_message): Use gdb_file_xstrdup.
468
469 * defs.h (verror, internal_verror): Declare.
470
471 * utils.c (verror, internal_error): New functions.
472 (error, internal_error): Use verror / internal_verror.
473 (error_stream): Use gdb_file_xstrdup. Correctly handle %s in
474 error message body.
475 (error_init): Use mem_fileopen.
476
477 * corefile.c (memory_error): Use mem_fileopen instead of
478 tui_sfileopen. Don't call error_begin.
479 * remote-sim.c (gdb_os_error): Rewrite using verror. Don't call
480 error_begin.
481
482 Wed Nov 10 14:21:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
483
484 * defs.h (gdb_file_xstrdup): New function.
485 * utils.c (gdb_file_xstrdup, do_gdb_file_xstrdup): Implement.
486
487 1999-11-09 Stan Shebs <shebs@andros.cygnus.com>
488
489 * exec.c (exec_file_attach), irix5-nat.c, osfsolib.c, solib.c
490 (info_sharedlibrary_command), pa64solib.c
491 (pa64_sharedlibrary_info_command), somsolib.c
492 (som_sharedlibrary_info_command): Replace "exec file" with
493 "executable file" in messages.
494
495 1999-11-09 Jim Blandy <jimb@zwingli.cygnus.com>
496
497 Finish the job attempted by the previous change.
498 * stabsread.c (read_range_type): Make n2 and n3 LONGEST. Adjust
499 the various tests that check for maximum values, bit counts, etc.
500 In the long run, it might have been simpler just to give GDB bignums.
501
502 Tue Nov 9 18:34:13 1999 Andrew Cagney <cagney@amy.cygnus.com>
503
504 * defs.h (gdb_file_put): Add parameter write.
505 (gdb_file_put_method_ftype): New typedef.
506 * utils.c (gdb_file_put, mem_file_put, tui_file_put,
507 null_file_put): Update.
508
509 * utils.c (struct gdb_file): Add field magic.
510 (gdb_file_new): Initialize.
511 (gdb_file_data): Verify.
512
513 * utils.c (mem_file_fputs): Delete. Replaced by.
514 (mem_file_write): New function. Rewrite mem_file.
515 (mem_file_new): Update.
516
517 Tue Nov 9 17:51:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
518
519 * remote-sim.c (gdb_os_write_stdout): Use gdb_file_write.
520 (gdb_os_flush_stdout): Flush gdb_stdtarg instead of gdb_stdout.
521
522 Tue Nov 9 15:33:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
523
524 * Makefile.in (procfs.o): Don't compile with -Werror for moment.
525 * sol-thread.c (info_cb): Move assignments to outside of if
526 statement.
527 (info_cb): Use paddr when printing addresses.
528
529 1999-11-08 Jim Blandy <jimb@zenia.red-bean.com>
530
531 * defs.h (ULONGEST_MAX, LONGEST_MAX): New definitions.
532 * stabsread.c (read_huge_number): Parse and return LONGEST values.
533
534 1999-11-08 Mark Salter <msalter@cygnus.com>
535
536 * utils.c (floatformat_to_doublest): Fix conversion of denormals.
537
538 Mon Nov 8 20:14:13 1999 Andrew Cagney <cagney@amy.cygnus.com>
539
540 * remote.c (get_memory_read_packet_size): For moment limit read
541 size to PBUFSIZ.
542 (putpkt_binary): Remove check on packet size. Allocate ``cnt +
543 6'' characters for output buffer.
544 (get_memory_packet_size): When packet size is ``fixed'' and the
545 size is zero, return MAX_REMOTE_PACKET_SIZE. Check that packets
546 are at least MIN_REMOTE_PACKET_SIZE.
547 (set_memory_packet_size): Print usage when ``args'' is NULL.
548
549 Mon Nov 8 18:18:07 1999 Andrew Cagney <cagney@b1.cygnus.com>
550
551 * defs.h, utils.c (gdb_file_deallocate): Delete.
552 * corefile.c (memory_error): Use make_cleanup_gdb_file_delete.
553
554 * defs.h, utils.c (gdb_file_init_astring): Delete.
555
556 * defs.h, utils.c (tui_file_get_strbuf): Rename
557 gdb_file_get_strbuf.
558 (tui_file_adjust_strbuf): Rename gdb_file_adjust_strbuf.
559 * utils.c (error_stream, error_last_message): Update.
560
561 Mon Nov 8 16:28:00 1999 Andrew Cagney <cagney@b1.cygnus.com>
562
563 * defs.h, utils.c (gdb_fclose): Delete.
564 * defs.h (make_cleanup_gdb_file): Declare.
565 * utils.c (make_cleanup_gdb_file_delete, do_gdb_file_delete): New
566 functions.
567
568 * symmisc.c (maintenance_print_symbols,
569 maintenance_print_psymbols, maintenance_print_msymbols): Use
570 make_cleanup_gdb_file_delete.
571 * serial.c (do_serial_close): Use gdb_file_delete.
572
573 Mon Nov 8 14:16:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
574
575 * defs.h (gdb_file_write_ftype, set_gdb_file_write,
576 gdb_file_write): Declare.
577
578 * utils.c (struct gdb_file): Add to_write member.
579 (gdb_file_write, set_gdb_file_write): New functions.
580 (gdb_file_new): Initialize the write method.
581 (null_file_write): New function.
582 (null_file_fputs, null_file_write): ``write'' calls ``fputs'' and
583 ``fputs'' calls ``write'' when the other is implemented.
584 (stdio_file_new): Initialize write method.
585 (stdio_file_write): New function.
586
587 * utils.c (putchar_unfiltered, fputc_unfiltered): Use
588 gdb_file_write.
589
590 Thu Nov 4 11:59:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
591
592 * remote.c (get_memory_packet_size, set_memory_packet_size,
593 build_memory_packet_size): New functions. Set / compute / update
594 the size of a memory read / write packet.
595 (set_memory_read_packet_size, set_memory_write_packet_size): New
596 functions. Verify changes to the memory read / write packet size.
597 (prefered_memory_write_packet_size,
598 current_memory_write_packet_size, prefered_memory_read_packet_size,
599 current_memory_read_packet_size): New variables.
600 (get_memory_read_packet_size, get_memory_write_packet_size): New
601 functions. Determine the current memory read/write packet size. A
602 function is needed as ``current_register_packet_size'', a variable
603 is used in the calculation.
604 (register_remote_packet_sizes, build_remote_packet_sizes):
605 Initialize packet sizes according the current architecture.
606 (remote_fetch_registers, remote_write_bytes, remote_read_bytes,
607 build_remote_gdbarch_data): Update.
608 (_initialize_remote): Add the commands ``set remote
609 memory-read-packet-size'' and ``set remote
610 memory-write-packet-size''. Deprecate ``set remotepacketsize''.
611
612 Sun Nov 7 18:09:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
613
614 * target.h, target.c (target_load): Replace macro with a function.
615
616 * config/i960/tm-nindy960.h (ADDITIONAL_OPTION_HANDLER): Rewrite
617 replacing SET_TOP_LEVEL with catch_command_errors.
618 (nindy_open): Add extern declaration.
619
620 * top.h (top_level_val, SET_TOP_LEVEL): Delete.
621 * defs.h (catch_command_errors_ftype, catch_command_errors): Add
622 declarations.
623 * top.c (struct captured_command_args): Declare.
624 (do_captured_command, catch_command_errors): New functions. Call
625 the command function via catch_errors.
626 (catch_errors): Add more comments.
627
628 * main.c (struct captured_main_args): Define.
629 (captured_main): New. Rewrite main. Replace SET_TOP_LEVEL with
630 calls to catch_command_errors. Delete calls to do_cleanups which
631 are now handled by catch_errors. Call the command loop via
632 captured_command_loop and catch_errors.
633 (main): Move code body to captured_main. Call captured_main via
634 catch_errors.
635 (captured_command_loop): New function. Wrap call to command_loop.
636
637 1999-11-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
638
639 * procfs.c (unconditionally_kill_inferior) (init_procinfo)
640 (create_procinfo) (procfs_exit_handler) (proc_set_exec_trap)
641 (do_attach) (do_detach) (procfs_wait) (set_proc_siginfo)
642 (procfs_resume) (info_proc_mappings)
643 (modify_run_on_last_close_flag) (procfs_lwp_creation_handler)
644 (procfs_thread_alive): Remove unused variables, conditionalize
645 vars declarations to eliminate compiler warnings.
646
647 Fri Nov 5 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
648
649 * inferior.h (CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET,
650 CALL_DUMMY_BREAKPOINT_OFFSET, CALL_DUMMY_LENGTH,
651 CALL_DUMMY_STACK_ADJUST, CALL_DUMMY_WORDS,
652 SIZEOF_CALL_DUMMY_WORDS, PUSH_DUMMY_FRAME, FIX_CALL_DUMMY,
653 STORE_STRUCT_RETURN), d10v-tdep.c (print_insn), d30v-tdep.c
654 (print_insn), target.h (SOFTWARE_SINGLE_STEP): Call internal_error
655 instead of abort.
656
657 * utils.c (stdio_file_delete, stdio_file_flush, stdio_file_fputs,
658 stdio_file_isatty, tui_file_delete, tui_file_isatty,
659 tui_file_rewind, tui_file_put, gdb_file_init_astring,
660 gdb_file_get_strbuf, gdb_file_adjust_strbuf): Call internal_error
661 instead of error.
662
663 1999-11-04 Kevin Buettner <kevinb@cygnus.com>
664
665 * remote.c (build_remote_gdbarch_data): Set remote_address_size...
666 (_initialize_remote) ...but don't set it here. Also, tie
667 remote_address_size to the target architecture via call to
668 register_gdbarch_swap().
669
670 1999-11-04 Jeff Holcomb <jeffh@cygnus.com>
671
672 * remote-rdp.c (send_rdp): Fix typo.
673
674 1999-11-04 Michael Snyder <msnyder@cleaver.cygnus.com>
675
676 * breakpoint.c (commands_command): remove unprotected ref to
677 args pointer (which may be null).
678
679 1999-11-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
680
681 * infcmd.c (print_return_value): New function. Print return value
682 from finish command.
683 (finish_command_continuation): Call print_return_value().
684 (finish_command): Ditto.
685
686 1999-11-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
687
688 * infrun.c (handle_inferior_event): Add calls to print_stop_reason()
689 for end of stepping range cases.
690
691 Thu Nov 4 17:46:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
692
693 * event-loop.c (gdb_do_one_event): Delete SET_TOP_LEVEL call.
694 Move error code to start_event_loop.
695 (start_event_loop): Call gdb_do_one_event via catch_errors.
696 Handle caught errors.
697
698 Thu Nov 4 17:36:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
699
700 * breakpoint.c (get_number): Delete static declaration.
701
702 1999-11-03 Michael Snyder <msnyder@cleaver.cygnus.com>
703
704 * breakpoint.c (map_breakpoint_numbers): use a match count
705 instead of a goto.
706
707 1999-11-03 Nick Clifton <nickc@cygnus.com>
708
709 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT): Change to
710 little endian.
711
712 1999-11-02 Michael Snyder <msnyder@cleaver.cygnus.com>
713
714 * target.h (target_new_objfile) replace macro with function pointer
715 hook. Any module needing notification of new objfiles may claim
716 this hook. Multiple notification clients must cooperate by saving
717 the previous pointer (if any) and calling it.
718 * sol-thread.c (_initialize_sol_thread): point new_objfile hook at
719 sol_thread_new_objfile. Save old pointer if any.
720 (sol_thread_new_objfile): call old owner of event hook if any.
721 * hpux-thread.c (_initialize_hpux_thread, hpux_thread_new_objfile):
722 ditto.
723 * linux-thread.c (_initialize_linux_thread, linux_thread_new_objfile):
724 ditto.
725 symfile.c (symbol_file_add, clear_symtab_users) call the new
726 function pointer hook, instead of the macro.
727 * config/sparc/nm-sun4sol2.h: remove define of target_new_objfile.
728 * config/pa/nm-hppah.h: ditto.
729 * config/i386/nm-i386sol2.h: ditto.
730 * config/i386/nm-linux.h: ditto.
731
732 1999-11-02 Tom Tromey <tromey@cygnus.com>
733
734 * NEWS: Mention breakpoint ranges.
735
736 1999-11-02 Fernando Nasser <fnasser@totem.to.cygnus.com>
737
738 * rdi-share/devsw.c (openLogFile): Change a call to setlinebuf()
739 to an equivalent call to setvbuf() to prevent an unresolved
740 reference when building on cygwin.
741
742 1999-11-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
743
744 * infrun.c (inferior_stop_reason): New enum, explicitly name the
745 resons for which the inferior stops.
746 (handle_inferior_event): Case TARGET_WAITKIND_EXITED: replace
747 printf's with call to print_stop_reason(). Case
748 TARGET_WAITKIND_SIGNALLED: Same. When stopped by random signal:
749 Same.
750 (print_stop_reason): New static function. Print relevant messages
751 when stopping.
752
753 1999-11-02 Fernando Nasser <fnasser@totem.to.cygnus.com>
754
755 * rdi-share/Makefile.in: Rename dependency from bytesex.o to
756 angel_bytesex.o.
757
758 1999-11-02 Fernando Nasser <fnasser@totem.to.cygnus.com>
759
760 * kod.c: Remove prototype for show_kod() which is no longer used.
761
762 1999-11-01 Michael Snyder <msnyder@cygnus.com>
763 Tom Tromey <tromey@cygnus.com>
764
765 * tracepoint.h (get_tracepoint_by_number): Updated declaration.
766 * tracepoint.c (get_tracepoint_by_number): Added `multi_p'
767 argument. Now uses get_number_or_range and get_number.
768 (trace_pass_command): Allow a tracepoint range.
769 * breakpoint.h (get_number, get_number_or_range): Declare.
770 * breakpoint.c (get_number_trailer): New function.
771 (get_number): Rewrote to use get_number_trailer.
772 (get_number_or_range): New function.
773 (condition_command): Check `get_number' return value.
774 (commands_command): Likewise.
775 (ignore_command): Likewise.
776 (map_breakpoint_numbers): Use get_number_or_range.
777
778 1999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
779
780 * remote-rdi.c (_initialize_remote_rdi): Make log commands
781 subcommands of maintenance. Remove improper identation from
782 command documentation.
783
784 1999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
785
786 From Grant Edwards <grante@visi.com>:
787 * rdi-share/etherdrv.c (fetch_ports): Print out additional TCP/IP
788 port information in ethernet driver if the DEBUG flag is set.
789 * rdi-share/hostchan.c (Adp_addToQueue): Changed #if statement in
790 hostchan.c to avoid compiler complaint when DEBUG macro was
791 undefined.
792 * rdi-share/unixcomm.c (Unix_ReadSerial): Print system error code
793 if read() system call fails.
794
795 1999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
796
797 * rdi-share/bytesex.h: Deleted. Conflicts with a system header file
798 on some systems like Linux Red Hat 5.2.
799 * rdi-share/angel_bytesex.h: New file. Replaces the above.
800 * rdi-share/bytesex.c: Deleted. Name changed to match the header
801 mentioned above (this is the implementation file).
802 * rdi-share/angel_bytesex.c: New file. Replaces the above.
803 * rdi-share/Makefile.am: Reflect above changes.
804 * rdi-share/Makefile.in: Reflect above changes.
805
806 1999-11-01 Jimmy Guo <guo@cup.hp.com>
807
808 * annotate.c (breakpoints_changed, annotate_ignore_count_change,
809 annotate_stopped): Provide annotation for breakpoint ignore_count
810 changes but only provide once at annotate_stopped time for
811 sucessive ignore_count triggered breakpoint changes, to make GUIs
812 happy yet lazy.
813 * annotate.h (annotate_ignore_count_change): Declare.
814 * breakpoint.c (bpstat_stop_status): Call
815 annotate_ignore_count_change when ignore_count changes.
816
817 1999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
818
819 From Grant Edwards <grante@visi.com>:
820 * rdi-share/ardi.c (HandleStoppedMessage): Changed code that
821 handles the "stop" message so that unrecognized errors are
822 returned as "Error" rather than "NoError". The old code resulted
823 in some error conditions not being reported to the user.
824
825 1999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
826
827 From Grant Edwards <grante@visi.com>:
828 * remote-rdi.c (arm_rdi_open): Added a call to Adp_CloseDevice()
829 before attempting to open a connection. This allows the user to
830 issue the "target rdi" command multiple times (in case the user
831 needs to change options or re-initialize the link).
832
833 1999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
834
835 From Grant Edwards <grante@visi.com>:
836 * rdi-share/endian.h: Deleted. Name clash with
837 /usr/include/endian.h. This was causing the wrong byte order to
838 be used by htons() in the RDI Ethernet driver.
839 * rdi-share/angel_endian.h: New file. Replaces the above.
840 * rdi-share/ardi.c: Replace include to reflect the above change.
841 * rdi-share/etherdrv.c: Ditto.
842 * rdi-share/hsys.c: Ditto.
843 * rdi-share/msgbuild.c: Ditto.
844 * rdi-share/params.c: Ditto.
845 * rdi-share/rx.c: Ditto.
846 * rdi-share/tx.c: Ditto.
847 * rdi-share/Makefile.am: Reflect above changes.
848 * rdi-share/Makefile.in: Reflect above changes.
849
850 1999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
851
852 From Grant Edwards <grante@visi.com>:
853 * remote-rdi.c (_initialize_remote_rdi): Added command
854 rdilogenable. Allows the user to log ADP packets that are
855 exchanged between gdb and the target. Both the raw packets are
856 shown and some minimal decoding is attempted. Default state is
857 disabled.
858 (_initialize_remote_rdi): Added command rdilogfile. Allows the
859 user to specify the filename to which the ADP packet log is to be
860 written. Default state is "rdi.log".
861 (rdilogenable_command): New function. Related to rdilogenable.
862 (rdilogfile_command): New function. Related to rdilogfile.
863 * rdi-share/devsw.c (openLogFile, closeLogFile,
864 DevSW_SetLogEnable, DevSW_SetLogfile, dumpPacket): New
865 functions. Implement logging.
866 (DevSW_Read): Log if requested.
867 (DevSW_Write): Log if requested.
868 * rdi-share/devsw.h: Add prototypes for DevSW_SetLogfile and
869 DevSW_SetLogEnable.
870 * rdi-share/hostchan.c (Adp_SetLogEnable, Adp_SetLogfile): New
871 functions. Related to rdilogenable and rdilogfile.
872 * rdi-share/hostchan.h: Add prototypes for the above functions.
873
874 1999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
875
876 From Grant Edwards <grante@visi.com>:
877 * remote-rdi.c (arm_rdi_open): Added code to split the arguments
878 to the 'target rdi' command at the first space. The first word is
879 passed to Adp_OpenDevice as the device name, the tail is passed as
880 the "arguments" parameter. This allows user specified baud rates
881 -- among other things that still need to be documented [e.g. (gdb)
882 target rdi /dev/ttyS1 19200]. NB: With very limited testing, the
883 ARM Embedded-ICE seems to run at 19.2K (though it is reported to
884 be unreliable above 9600), and the EPI Jeeni seems to run at
885 38.4K.
886
887 1999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
888
889 From Grant Edwards <grante@visi.com>:
890 * remote-rdi.c (_initialize_remote_rdi): Added the boolean
891 set/show variable rdiromatzero. Should be set to true if the
892 target has ROM at address 0. If true, then gdb will not tell the
893 target to trap fetches to interrupt vectors (which are located at
894 address 0). Using the Angel monitor, attempting to set
895 breakpoints in ROM is an error. Using JTAG debugging of the
896 ARM7TDMI, attempting to set more than two breakpoints in ROM is an
897 error. Default state is false (vectors will be trapped) -- used to
898 be hardwired false.
899
900 1999-11-01 Fernando Nasser <fnasser@totem.to.cygnus.com>
901
902 From Grant Edwards <grante@visi.com>:
903 * remote-rdi.c (_initialize_remote_rdi): Added the boolean
904 set/show variable rdiheartbeat. This enables or disables ADP
905 link-check "heartbeat" packets sent by the host to the target.
906 Heartbeat packets can cause both the ARM Embedded-ICE and the EPI
907 Jeeni to malfunction: If a heartbeat packet is received by the
908 target while it is sending a packet, that packet will be aborted,
909 and the ADP protocol engine then gets very confused. Default state
910 is off -- used to hardwired on.
911
912 1999-10-29 Kevin Buettner <kevinb@cygnus.com>
913
914 * i386-linux-nat.c (dummy_sse_values): Also define for systems
915 without PTRACE_GETXFPREGS.
916
917 1999-10-29 Jim Blandy <jimb@zwingli.cygnus.com>
918
919 Hardware watchpoint fix from Eli Zaretskii <eliz@gnu.org>:
920
921 * breakpoint.c (insert_breakpoints): Fetch the value of the
922 expression we need to watch. If it's a lazy memory lvalue, then
923 we need to fetch it now, before we start the inferior again.
924 (insert_breakpoints, remove_breakpoint, bpstat_stop_status,
925 can_use_hardware_watchpoint): Only those values representing
926 memory we actually fetched need to be watched.
927
928 1999-10-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
929
930 * breakpoint.h (bpstat_print): Return 'enum print_stop_action',
931 not 'int'.
932
933 1999-10-29 Jim Blandy <jimb@zwingli.cygnus.com>
934
935 * acconfig.h: Fix entries for HAVE_STRUCT_SAVE_STATE_T,
936 HAVE_STRUCT_MEMBER_SS_WIDE, and HAVE_PTRACE_GETXFPREGS.
937 * config.h.in: Regenerated.
938
939 1999-10-28 Jim Blandy <jimb@zwingli.cygnus.com>
940
941 Fixes for warnings from Andreas Jaeger <aj@suse.de>.
942 * linux-thread.c (linuxthreads_sig_restart,
943 linuxthreads_sig_cancel, linuxthreads_sig_debug): Add missing
944 initializers to avoid gcc warnings.
945 (resume_thread): Add braces as recommended by gcc -Wparentheses.
946 (stop_thread): Likewise.
947 (linuxthreads_wait): Likewise.
948 (linuxthreads_find_trap): Likewise.
949
950 1999-10-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
951
952 * infcmd.c: Fix typo.
953
954 1999-10-28 Jim Blandy <jimb@zenia.red-bean.com>
955
956 * gdbtypes.c (init_simd_type): The upper bound to
957 create_range_type is inclusive, not exclusive.
958
959 Add preliminary support for the Pentium-III's Streaming SIMD
960 Extensions --- specifically, the ability to read the XMM
961 registers.
962 * Configure.in: Check for PTRACE_GETXFPREGS, and #define
963 HAVE_PTRACE_GETXFPREGS if we have it.
964 * acconfig.h: Add entry for HAVE_PTRACE_GETXFPREGS.
965 * configure, config.in: Regenerated.
966 * config/i386/tm-linux.h (HAVE_SSE_REGS): #define, iff the
967 configure script #defined HAVE_PTRACE_GETXFPREGS.
968 (REGISTER_VIRTUAL_TYPE): Provide the proper types for the pointer
969 registers and the SSE registers.
970 * i386-linux-nat.c (GETREGS_SUPPLIES, GETFPREGS_SUPPLIES,
971 GETXFPREGS_SUPPLIES): New macros.
972 (have_ptrace_getxfpregs): New variable.
973 (FPREGSET_T_FPREG_ADDR): Renamed from FPREGSET_T_FPREG_OFFSET.
974 (supply_fpregset, convert_to_fpregset): Callers changed.
975 (supply_xfpregset, convert_to_xfpregset, fetch_xfpregs,
976 store_xfpregs, dummy_sse_values): New functions.
977 (fetch_inferior_registers, store_inferior_registers): Use the
978 *_SUPPLIES macros to decide how to fetch a given register. Use
979 {fetch,store}_xfpregs and dummy_sse_values to provide access to
980 the SSE registers, on systems where they are present.
981
982 1999-10-28 Kevin Buettner <kevinb@cygnus.com>
983
984 * gdbserver/gdbreplay.c (config.h, errno.h): Include.
985 (perror_with_name): Don't declare sys_nerr, sys_errlist, or errno
986 when STDC_HEADERS is defined.
987 * gdbserver/utils.c (STDC_HEADERS): Likewise.
988
989 * gdbserver/low-hppabsd.c, gdbserver/low-linux.c,
990 gdbserver/low-lynx.c, gdbserver/low-sim.c, gdbserver/low-sparc.c,
991 gdbserver/low-sun3.c (my_registers): Declare.
992 (registers): Changed from array type to pointer type in order
993 to match declaration in inferior.h in main gdb sources.
994 * gdbserver/server.h (registers): Likewise.
995 * gdbserver/remote-utils.c (outreg): Removed declaration of
996 registers[].
997
998 * gdbserver/low-linux.c (fetch_register): Changed PTRACE_PEEKUSR to
999 PTRACE_PEEKUSER. [Note the missing 'E'.]
1000 (store_inferior_registers): Likewise for PTRACE_POKEUSER.
1001
1002 * gdbserver/low-linux.c (sys/ptrace.h): Move include to
1003 avoid conflict with #defines coming from <sys/user.h>.
1004 (sys/reg.h): Only include when HAVE_SYS_REG_H is defined.
1005 (PTRACE_XFER_TYPE): Provide a default type in case
1006 the target doesn't define it.
1007 (fetch_register, read_inferior_memory, write_inferior_memory):
1008 Use PTRACE_XFER_TYPE instead of int for ptrace() transfers.
1009 (I386_GNULINUX_TARGET): Use #ifdef with this symbol instead
1010 of assuming it's an x86 target when it's not a m68k target.
1011 (i386_register_raw_size, i386_register_byte): Define these arrays
1012 to match other changes that've been occuring to the x86 target
1013 in the main gdb sources.
1014 (initialize_arch): New (static) function for doing target arch
1015 specific initializations.
1016
1017 * gdbserver/server.h (MAXBUFBYTES, PBUFSIZ): New defines
1018 [actually stolen from remote.c].
1019 * gdbserver/remote-utils.c (putpkt): Use PBUFSIZ to make
1020 sure that buffer is big enough.
1021 * gdbserver/server.c (main): Ditto.
1022
1023 * gdbserver/remote-utils.c (outreg): Allow register numbers
1024 bigger than 255.
1025 (prepare_resume_reply): Provide alternate mechanism,
1026 GDBSERVER_RESUME_REGS, for defining list of registers to send
1027 to gdb.
1028 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Swapped order of
1029 INCLUDE_CFLAGS and BFD_CFLAGS to ensure that gdb's config.h
1030 gets found before bfd's config.h. Also added -DGDBSERVER
1031 switch.
1032 (INCLUDE_CFLAGS): Added -I.. .
1033
1034 1999-10-27 Nick Clifton <nickc@cygnus.com>
1035
1036 * arm-tdep.c (THUMB_BE_BREAKPOINT): Change to 0xbebe.
1037 (THUMB_LE_BREAKPOINT): Change to 0xbebe.
1038
1039 Mon Oct 25 18:22:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
1040
1041 * remote.c: Document future of compare_sections_command.
1042 (remote_insert_breakpoint, remote_remove_breakpoint,
1043 remote_insert_watchpoint, remote_insert_watchpoint,
1044 remote_remove_watchpoint, remote_insert_hw_breakpoint,
1045 remote_remove_hw_breakpoint): Use alloca instead of GCC's dynamic
1046 array feature.
1047
1048 Mon Oct 25 18:08:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
1049
1050 * gdbarch.h (REGISTER_GDBARCH_SWAP): Define.
1051 * gdbarch.sh: Update.
1052
1053 Sat Oct 23 16:39:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
1054
1055 * gdbarch.c (initialize_current_architecture): Make ``choice''
1056 const.
1057
1058 1999-10-22 Tom Tromey <tromey@cygnus.com>
1059
1060 * gdbarch.sh: Updated for gdbarch.[ch] changes.
1061 * top.c (gdb_init): Call initialize_current_architecture.
1062 * gdbarch.h (initialize_current_architecture): Declare.
1063 * gdbarch.c (initialize_current_architecture): New function.
1064
1065 1999-10-21 Michael Snyder <msnyder@cleaver.cygnus.com>
1066
1067 * utils.c (chars_per_line): fix typo in comment.
1068
1069 1999-10-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1070
1071 * breakpoint.h (bp_print_how): New enum, used for deciding how to
1072 print bpstat information when we stop, instead of having 3
1073 different functions.
1074 (struct bpstat): Change print_it field to be an enum instead of a
1075 function pointer.
1076
1077 * breakpoint.c (print_it_typical): New name for print_it_normal().
1078 (print_bp_stop_message): New function. High level routine for
1079 printing of why we stopped.
1080 (bpstat_print): Call print_bp_stop_message instead of using the
1081 print_it function pointer.
1082 (print_it_done, print_it_noop): Delete these functions.
1083
1084 1999-10-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1085
1086 * breakpoint.c (print_it_normal): Reorganize into a switch
1087 statement.
1088
1089 1999-10-21 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1090
1091 * Makefile.in (event-top.o): Add dependency on target.h.
1092 * event-top.c: Make dependency on target.h explicit.
1093
1094 * breakpoint.c (bpstat_print): Clean up logic. Remove recursion.
1095 (catch_exec_command_1): Surround with appropriate ifdef's,
1096 to avoid compiler warnings.
1097 (catch_fork_command_1): Ditto.
1098
1099 1999-10-20 Jim Blandy <jimb@cris.red-bean.com>
1100
1101 * Makefile.in (dwarf2read.o): Note that this depends on bfd/elf-bfd.h.
1102 (elf_bfd_h): New variable.
1103
1104 1999-10-19 Jim Blandy <jimb@zenia.red-bean.com>
1105
1106 * config/i386/tm-i386.h (REGISTER_NAMES): Change names of FPU
1107 instruction and operand pointer registers to improve consistency,
1108 following J. T. Conklin's suggestions.
1109
1110 1999-10-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1111
1112 * breakpoint.h: Change return type of field print_it of struct
1113 bpstats to enumeration print_stop_action.
1114 Define new enumeration print_stop_action.
1115
1116 * breakpoint.c (print_it_normal): Change return type to
1117 enumeration type print_stop_action. Handle bp_shlib_event here
1118 instead of in normal_stop().
1119 (bpstat_print): Change return type to enumeration type
1120 print_stop_action.
1121 (print_it_done): Ditto.
1122 (print_it_noop): Ditto.
1123
1124 * infrun.c (is_internal_shlib_eventpoint): Delete this function.
1125 (stopped_for_internal_shlib_event): Delete.
1126 (normal_stop): Move logic to handle bp_shlib_event from here to
1127 print_it_normal(). Use switch to handle return value from
1128 bpstat_print().
1129
1130 Mon Oct 18 17:32:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
1131
1132 * symfile.c (generic_load): Rewrite. Make the size of each
1133 chunk/block write a run-time option. Check for quit_flag.
1134 Use target_write_memory_partial for downloads.
1135
1136 1999-10-18 Jim Blandy <jimb@zenia.red-bean.com>
1137
1138 Change Linux x86 register support to use the new tm-i386.h layout.
1139 * config/i386/tm-linux.h (HAVE_I387_REGS): #define this, so we get
1140 the full set of FP register definitions from tm-i386.h.
1141 (REGISTER_RAW_SIZE, REGISTER_NAMES, REGISTER_BYTES, REGISTER_BYTE,
1142 MAX_REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE, NUM_REGS,
1143 NUM_FREGS): Remove #undefs and subsequent redefinitions: we're
1144 using the values from tm-i386.h now.
1145 (FPSTART_REGNUM, FPCONTROL_REGNUM, FPSTATUS_REGNUM, FPTAG_REGNUM,
1146 FPDATA_REGNUM, FPEND_REGNUM, FPENV_BYTES, FPREG_RAW_SIZE,
1147 FPREG_BYTES): Deleted.
1148 (TARGET_LONG_DOUBLE_BIT): Deleted.
1149 (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
1150 REGISTER_CONVERT_TO_RAW): Redefine these only if LD_I387 is #defined.
1151 * i386-linux-nat.c (convert_to_gregset, convert_to_fpregset,
1152 FPREGSET_T_FPREG_OFFSET): New functions and macros.
1153 (supply_gregset, fill_gregset, supply_fpregset,
1154 fill_fpregset, fetch_fpregs, store_fpregs, fetch_regs,
1155 store_regs, fetch_inferior_registers, store_inferior_registers):
1156 Adjusted to use new macros from tm-i386.h.
1157
1158 * config/i386/tm-i386.h: Provide a decent x86 FPU description here,
1159 so that the various i386 targets can share more FPU handling code.
1160 (NUM_GREGS): New macro.
1161 (NUM_SSE_REGS): New macro, dependent on HAVE_SSE_REGS
1162 (NUM_FREGS): Depend on HAVE_I387_REGS.
1163 (NUM_REGS, REGISTER_BYTES): Define in terms of NUM_GREGS,
1164 NUM_FREGS, and NUM_SSE_REGS.
1165 (MAX_NUM_REGS): New macro.
1166 (REGISTER_NAMES): Expand name list with FPU control registers and
1167 SSE registers.
1168 (FP7_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM, FCS_REGNUM,
1169 FCOFF_REGNUM, FDS_REGNUM, FDOFF_REGNUM, FOP_REGNUM,
1170 FIRST_FPU_CTRL_REGNUM, LAST_FPU_CTRL_REGNUM): New macros, more
1171 fully describing the FPU register set.
1172 (XMM0_REGNUM, XMM7_REGNUM, MXCSR_REGNUM): New macros, describing
1173 the SSE register set.
1174 (IS_FP_REGNUM, IS_SSE_REGNUM, FPU_REG_RAW_SIZE, SIZEOF_GREGS,
1175 SIZEOF_FPU_REGS, SIZEOF_FPU_CTRL_REGS, SIZEOF_SSE_REGS): New
1176 convenience macros.
1177 (REGISTER_BYTE, REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Turn
1178 these into tables, since the register sizes are pretty irregular.
1179 (i386_register_byte, i386_register_raw_size,
1180 i386_register_virtual_size): New extern declarations.
1181 (TARGET_LONG_DOUBLE_BIT): Define.
1182 (MAX_REGISTER_RAW_SIZE): Bump to 16, for the SSE registers.
1183 (REGISTER_VIRTUAL_TYPE, REGISTER_CONVERTIBLE,
1184 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): New macros
1185 for handling floating-point registers.
1186 (i387_to_double, double_to_i387): New extern declarations.
1187 * i386-tdep.c (i386_register_byte, i386_register_raw_size,
1188 i386_register_virtual_size): New arrays.
1189 (_initialize_i386_tdep): Initialize i386_register_byte and
1190 i386_register_virtual_size.
1191
1192 * i386-tdep.c (_initialize_i386_tdep): Move new_cmd to a block
1193 created specially for its use.
1194
1195 Mon Oct 18 23:36:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
1196
1197 * symfile.c (generic_load): Cleanup the validate code - remove
1198 #ifdef, use paddr to print address.
1199 (validate_download): Static, replace VALIDATE_DOWNLOAD
1200
1201 * symfile.c (generic_load): Use strtoul to scan the optional load
1202 offset. Allocate a filename of the correct size.
1203
1204 Mon Oct 18 17:32:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
1205
1206 * symfile.c (generic_load): Don't filter output. Use
1207 print_transfer_performance for summary. Use paddr for addresses.
1208 (print_transfer_performance): New function. Includes write count.
1209 (report_transfer_performance): Call
1210 print_transfer_performance. Deprecate.
1211
1212 * defs.h (print_transfer_performance): Add declaration.
1213 (generic_load): Move declaration to here.
1214 * symfile.h (generic_load): From here.
1215
1216 Mon Oct 18 16:29:52 1999 Andrew Cagney <cagney@amy.cygnus.com>
1217
1218 * remote.c (remote_write_bytes): Re-write. Transfer a single
1219 packet and then return the that packets byte size.
1220
1221 Sun Oct 17 15:09:00 1999 Andrew Cagney <cagney@b1.cygnus.com>
1222
1223 * remote.c (remote_console_output): Flush gdb_stdtarg after
1224 processing an ``O'' packet.
1225 * remote.h (remote_console_output): Strip PARAMS.
1226
1227 Sun Oct 17 15:12:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
1228
1229 * target.c (target_xfer_memory_partial): New function. Simple
1230 implementation of partial memory reads.
1231 (target_read_memory_partial): New function. Replaces old
1232 target_read_memory_partial.
1233 (target_write_memory_partial): New function.
1234 * target.h: Update.
1235
1236 * valprint.c (partial_memory_read): New function, based on old
1237 memory_read_partial. Implement partial memory reads the way that
1238 val_print_string likes.
1239 (val_print_string): Use partial_memory_read.
1240
1241 Sun Oct 17 13:58:56 1999 Andrew Cagney <cagney@b1.cygnus.com>
1242
1243 * defs.h (ui_load_progress_hook): Add declaration.
1244 * dsrec.c (ui_load_progress_hook): Delete extern declaration.
1245
1246 * symfile.c (ui_load_progress_hook): Make first argument const.
1247 (generic_load): Don't cast the result of bfd_get_section_name.
1248 Replace ``sect'' with ``sect_name'', use consistently.
1249
1250 1999-10-15 Jim Blandy <jimb@zenia.red-bean.com>
1251
1252 Add beginnings of support for SIMD register types.
1253 * gdbtypes.c (init_simd_type): New function for building
1254 types for registers consisting of arrays of objects.
1255 (builtin_type_v4sf): New built-in type.
1256 (build_gdbtypes): Initialize it.
1257 (_initialize_gdbtypes): Arrange for gdbarch swapping.
1258 * gdbtypes.h (builtin_type_v4sf): Add external decl.
1259
1260 Fri Oct 15 18:20:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
1261
1262 * remote-hms.c: Commented out H8 code.
1263
1264 Fri Oct 15 17:46:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
1265
1266 * dcache.c (dcache_p): Rename variable remote_dcache. Make
1267 static.
1268 (_initialize_dcache): Fix description of ``set remotecache''.
1269 Cache is OFF by default.
1270
1271 1999-10-13 Jim Blandy <jimb@zenia.red-bean.com>
1272
1273 * valops.c (value_push): Don't forget to initialize container_len.
1274
1275 Wed Oct 13 17:58:20 1999 Andrew Cagney <cagney@b1.cygnus.com>
1276
1277 * utils.c (tui_file_flush): Don't call flush_hook. Don't try to
1278 flush ``astring''.
1279 * gdb-events.sh: Update
1280 * top.c (flush_hook): Delete.
1281
1282 1999-10-13 Kevin Buettner <kevinb@cygnus.com>
1283
1284 * mem-break.c (memory_insert_breakpoint,
1285 memory_remove_breakpoint): Added missing return statements.
1286
1287 Wed Oct 13 20:53:42 1999 Andrew Cagney <cagney@b1.cygnus.com>
1288
1289 * utils.c (mem_fileopen, mem_file_delete, mem_file_new,
1290 mem_file_rewind, mem_file_put, mem_file_fputs): New functions.
1291 * defs.h (mem_fileopen): Declare.
1292
1293 1999-10-13 Kevin Buettner <kevinb@cygnus.com>
1294
1295 * mem-break.c (default_memory_insert_breakpoint): Renamed from
1296 memory_insert_breakpoint.
1297 (default_memory_remove_breakpoint): Renamed from
1298 memory_remove_breakpoint.
1299 (memory_insert_breakpoint, memory_remove_breakpoint,
1300 MEMORY_INSERT_BREAKPOINT, MEMORY_REMOVE_BREAKPOINT): New
1301 wrappers.
1302 * target.h (default_memory_remove_breakpoint,
1303 default_memory_insert_breakpoint): Added declarations.
1304 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT, MEMORY_REMOVE_BREAKPOINT):
1305 New methods.
1306 * gdbarch.h, gdbarch.c (MEMORY_INSERT_BREAKPOINT,
1307 MEMORY_REMOVE_BREAKPOINT, gdbarch_memory_insert_breakpoint,
1308 gdbarch_memory_remove_breakpoint, set_gdbarch_memory_insert_breakpoint,
1309 set_gdbarch_memory_remove_breakpoint) : Generated from gdbarch.sh.
1310
1311 Wed Oct 13 19:15:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
1312
1313 * defs.h: Remove PARAMS from all declarations. Re-indent. Clean
1314 up the gdb_file declarations.
1315
1316 Tue Oct 12 12:19:07 1999 David Taylor <taylor@texas.cygnus.com>
1317
1318 * i386-linux-nat.c (supply_fpregset, fill_fpregset): copy
1319 from/to start of fpregsetp not start of st_space as the first
1320 stuff we copy is the FP control registers not the actual FP values.
1321
1322 1999-10-12 Fernando Nasser <fnasser@totem.to.cygnus.com>
1323
1324 * eval.c (evaluate_subexp_standard): Fix gdb invocation of
1325 inferior C functions when debugging C++ code.
1326 * valops.c (find_overload_match): Ditto.
1327 * symtab.c (make_symbol_overload_list): Ditto.
1328
1329 1999-10-11 Jim Blandy <jimb@zwingli.cygnus.com>
1330
1331 * config/pa/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): It's not
1332 enough to #define this; you have to give it a non-zero value.
1333
1334 1999-10-11 Jim Blandy <jimb@zenia.red-bean.com>
1335
1336 Fix from Jim Kingdon <kingdon@redhat.com>, with tweaks to make it
1337 gdbarch- and bigendian-friendly:
1338 * valops.c (PARM_BOUNDARY): If not #defined, default to zero.
1339 (value_push): If PARM_BOUNDARY is not zero, align arguments to
1340 that boundary.
1341 * config/i386/tm-i386.h: Define PARM_BOUNDARY.
1342
1343 Mon Oct 11 14:23:55 1999 Fred Fish <fnf@cygnus.com>
1344
1345 * config/mips/tm-irix3.h (PS_REGNUM): Don't undef if we aren't
1346 going to redefine it to something else.
1347
1348 1999-10-11 Jason Merrill <jason@yorick.cygnus.com>
1349
1350 * dwarfread.c (read_func_scope): Don't try to set main_func_*;
1351 we handle that in blockframe.c:inside_main_func.
1352 * dwarf2read.c (read_func_scope): Likewise.
1353 (dwarf2_add_field, dwarf2_add_member_fn): Get member function name
1354 directly, not from mangled name.
1355 (skip_member_fn_name): Lose.
1356
1357 Mon Oct 11 12:24:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
1358
1359 * serial.h (enum serial_rc): Clarify SERIAL_TIMEOUT and
1360 restrictions on TIMEOUT in ASYNC mode.
1361
1362 * serial.c (serial_readchar): Check for invalid timeout when in
1363 async mode. Disable test.
1364
1365 Thu Oct 7 17:20:01 1999 Andrew Cagney <cagney@amy.cygnus.com>
1366
1367 * monitor.c (monitor_printable_string): Add length argument. Don't
1368 return final string length.
1369 (monitor_printf_noecho, monitor_printf, monitor_expect): Update.
1370 (monitor_error): Pass real_len to monitor_printable_string.
1371 (monitor_error): Rewrite. Replace printf fmt string parameter with
1372 function name and message parameters.
1373 (monitor_read_memory_single, monitor_read_memory): Update.
1374
1375 1999-10-07 Stan Shebs <shebs@andros.cygnus.com>
1376
1377 * main.c (print_gdb_help): Fix bug reporting address.
1378 * gnu-regex.h, gnu-regex.c: Ditto.
1379
1380 1999-10-07 Jim Blandy <jimb@zwingli.cygnus.com>
1381
1382 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): New macro,
1383 whose value can be overridden by target files.
1384 (write_dollar_variable): Don't check the symbol table for
1385 identifiers beginning with `$' unless
1386 SYMBOLS_CAN_START_WITH_DOLLAR is non-zero.
1387 * config/pa/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Define.
1388 * doc/gdbint.texinfo (SYMBOLS_CAN_START_WITH_DOLLAR): Document.
1389
1390 Remove all traces of the BINOP_SCOPE operator. It's never
1391 generated, and not implemented.
1392 * expression.h (enum exp_opcode): Delete BINOP_SCOPE.
1393 * c-lang.c (c_op_print_tab): Delete entry for BINOP_SCOPE.
1394 * eval.c (evaluate_subexp_standard): Doc fix.
1395 * expprint.c (op_name): Remove case for BINOP_SCOPE.
1396 (dump_subexp): Same.
1397
1398 * dwarf2read.c (dwarf2_const_value): Treat DW_FORM_data1,
1399 DW_FORM_data2, DW_FORM_data4, and DW_FORM_data8 as signed values,
1400 since that's what read_var_value will do anyway.
1401
1402 1999-10-07 Fred Fish <fnf@cygnus.com>
1403
1404 * objfiles.h (struct objfile): Delete is_solib member, now handled
1405 by OBJF_SHARED bit in struct objfile's flags.
1406 * objfiles.c (objfile_purge_solibs): Check OBJF_SHARED bit in flags
1407 instead of old is_solib int member in objfile struct.
1408
1409 * objfiles.c (allocate_objfile): Remove is_solib arg. Now passed
1410 as a bit in combined flags arg.
1411 * symfile.c (symbol_file_add): Ditto.
1412 * objfiles.h (allocate_objfile): Adjust prototype after removal
1413 of is_solib arg.
1414 * symtab.h (symbol_file_add): Ditto.
1415
1416 * cxux-nat.c (add_shared_symbol_files): Remove zero passed to
1417 symbol_file_add in old is_solib arg, defaults to zero now in
1418 flags.
1419 * irix5-nat.c (symbol_add_stub): Ditto.
1420 * remote-mm.c (mm_load): Ditto.
1421 * remote-udi.c (udi_load): Ditto.
1422 * remote-vx.c (vx_add_symbols): Ditto.
1423 * symfile.c (symbol_file_command): Ditto.
1424 (add_symbol_file_command): Ditto.
1425
1426 * coff-solib.c (coff_solib_add): Call symbol_file_add with
1427 OBJF_SHARED in flags bit, rather than 1 in old is_solib
1428 arg.
1429 * osfsolib.c (symbol_add_stub): Ditto.
1430 * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
1431 * solib.c (symbol_add_stub): Ditto.
1432 * somsolib.c (som_solib_add_solib_objfile): Ditto.
1433 * win32-nat.c (handle_load_dll): Ditto.
1434
1435 * objfiles.c (allocate_objfile): Remove old args "mapped" and
1436 "user_loaded". Replaced with new arg "flags" containing specific
1437 If global var mapped_symbol_files is nonzero
1438 then set OBJF_MAPPED in flags arg. Check for OBJF_MAPPED bit in
1439 flags where we used to check mapped arg.
1440 Pass flags to open_mapped_file instead of mapped arg.
1441 Ensure that OBJF_MAPPED bit is reset in flags when the objfile
1442 is not mapped. Add passed flags bits to objfile's flags bits.
1443 (open_mapped_file): Replace "mapped" arg with new "flags" arg.
1444 Adjust prototype. Pass flags to open_existing_mapped_file.
1445 (open_existing_mapped_file): Replace "mapped" arg with new "flags".
1446 Check flags for OBJF_MAPPED.
1447 * objfiles.h (allocate_objfile): Adjust prototype.
1448 * rs6000-nat.c (add_vmap): Pass zero for combined flags, rather
1449 than separate zero ints for old "mapped" and "user_loaded" flags.
1450 * symfile.c (symbol_file_add): Pass allocate_objfile combined flags
1451 rather than individual mapped and user loaded bits.
1452
1453 * symfile.c (symbol_file_add): Delete user_loaded arg.
1454 * symtab.h (symbol_file_add): Adjust prototype for deleted
1455 user_loaded arg.
1456 * objfiles.h (struct objfile): Delete user_loaded member.
1457 (OBJF_USERLOADED): New flag bit to replace user_loaded.
1458
1459 * symfile.c (symbol_file_command): Add OBJF_USER_LOADED to flags
1460 passed to symbol_file_add. Delete previous passing of explicit 1
1461 for user_loaded.
1462 (add_symbol_file_command): Ditto.
1463
1464 * coff-solib.c (coff_solib_add): No longer pass zero for user loaded,
1465 now defaults to zero in flags.
1466 * cxux-nat.c (add_shared_symbol_files): Ditto.
1467 * irix5-nat.c (symbol_add_stub): Ditto.
1468 * osfsolib.c (symbol_add_stub): Ditto.
1469 * remote-mm.c (mm_load): Ditto.
1470 * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
1471 * remote-udi.c (udi_load): Ditto.
1472 * remote-vx.c (vx_add_symbols): Ditto.
1473 * solib.c (symbol_add_stub): Ditto.
1474 * somsolib.c (som_solib_add_solib_objfile): Ditto.
1475 * win32-nat.c (handle_load_dll): Ditto.
1476
1477 Thu Oct 7 19:24:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
1478
1479 * Makefile.in (monitor.o): Allow monitor.o to be compiled with
1480 -Werror.
1481
1482 * monitor.c (monitor_debug_p): New variable. Replaces macro.
1483 (EXTRA_RDEBUG): Delete. Update all uses.
1484 (monitor_debug): New function. Replaces macro.
1485 (RDEBUG): Delete macro. Update all uses.
1486 debug output to gdb_stdlog and not the console.
1487
1488 * monitor.c: Fix printf formating. Replace printf calls with
1489 fprintf_unfiltered.
1490
1491 1999-10-06 Stan Shebs <shebs@andros.cygnus.com>
1492
1493 * MAINTAINERS: Switch ARM target maintenance from Elena
1494 Zannoni to Jim Ingham.
1495
1496 1999-10-06 Frank Ch. Eigler <fche@cygnus.com>
1497
1498 * remote.c (hexnumnstr): New function. Allow setting of width.
1499 (hexnumstr): Call the above.
1500 (remote_write_bytes): Fill in X-protocol address field more
1501 reliably.
1502
1503 1999-10-06 Fred Fish <fnf@cygnus.com>
1504
1505 * xcoffread.c (xcoff_symfile_offsets): Fix typo, addr->addrs.
1506
1507 1999-10-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1508
1509 * remote.c (handle_remote_sigint_twice): Make this signal be
1510 handled by inferior_event_handler, via the wrapper function.
1511 (async_remote_interrupt_twice): Make not static. Add debug print.
1512 * remote.h (async_remote_interrupt_twice): Export for use in
1513 inf-loop.c.
1514
1515 * inf-loop.c (inferior_event_handler_wrapper): New function.
1516 (inferior_event_handler): Handle a request to quit and kill the
1517 target.
1518 Include remote.h.
1519 * inf-loop.h (inferior_event_handler_wrapper): Export.
1520
1521 1999-10-04 James Ingham <jingham@leda.cygnus.com>
1522
1523 * remote-rdi.c (arm_rdi_open): If the angel_RDI_Open fails, close
1524 the serial port and raise an error. If you try to go on, you will
1525 stall forever down in the rdi-share code.
1526
1527 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
1528
1529 * printcmd.c (output_command): Makes sure result from the output
1530 command is printed before the next prompt.
1531
1532 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
1533
1534 * printcmd.c (print_formatted): Add missing stream parameter.
1535 (do_examine, print_command_1, output_command, do_one_display):
1536 Adjust call to print_formatted().
1537
1538 1999-10-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1539
1540 * infcmd.c: Remove include of event-loop.h.
1541 * utils.c: Ditto.
1542 * top.c: Ditto.
1543
1544 * infrun.c (fetch_inferior_event): Call inferior_event_handler
1545 when inferior stops, instead of doing work ourselves.
1546 (fetch_inferior_event): Use void* instead of gdb_client_data.
1547 Remove includes of event-top.h and event-loop.h. Add include of
1548 inf-loop.h.
1549 (complete_execution): Move from here.
1550
1551 * inf-loop.c (complete_execution): To here.
1552 (inferior_event_handler): Handle inferior's execution completion
1553 case as well.
1554 * inf-loop.h: Add def of INF_LOOP_H.
1555
1556 * event-top.h: Don't use gdb_client_data, use void*, to avoid
1557 dependency on event-loop.h.
1558
1559 * remote.c (remote_async_resume): Set target_executing only after we
1560 actually register the inferior with the event loop.
1561
1562 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
1563
1564 * corefile.c (memory_error): Use error_stream() and eliminate call
1565 to return_to_top_level().
1566
1567 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
1568
1569 * utils.c (error): Save error message text (w/o new line).
1570 (error_last_message): New function. Returns the last message
1571 issued by gdb.
1572 (error_init): New function. Initializes error handling machinery.
1573 (error_stream): New function. Allows the error message to be
1574 passed on a stream buffer.
1575 * defs.h: Add prototypes for error_stream() and
1576 error_last_message().
1577 * main.c (main): Add call to error_init().
1578
1579 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
1580
1581 * utils.c (tui_sfileopen): New function. Replaces
1582 gdb_file_init_astring().
1583 * defs.h: Add prototype for the above.
1584
1585 Mon Oct 4 19:25:55 1999 Andrew Cagney <cagney@b1.cygnus.com>
1586
1587 * symfile.c (add_symbol_file_command): Fix -Wformat on query call.
1588
1589 1999-10-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1590
1591 * target.c (cleanup_target): Type of to_async param is now
1592 function with enum inferior_event_type param.
1593
1594 * target.h (target_ops): Adjust to_async accordingly. Move enum
1595 inferior_event_type to this file. Don't have a typedef for
1596 inferior_event_type. Add more enumeration constants INF_QUIT_REQ,
1597 INF_EXEC_COMPLETE. Remove INF_SIGINT_FIRST, INF_SIGINT_SECOND.
1598
1599 * inf-loop.c (inferior_event_handler): Change first param to tell
1600 the type of event we are dealing with. Deal with INF_ERROR and
1601 INF_REG_EVENT, for the moment.
1602 Include target.h.
1603
1604 * inf-loop.h (inferior_event_handler): Adjust prototype. Remove
1605 enum inferior_event_type from here.
1606
1607 * remote.c (remote_async_serial_handler): Pass INF_REG_EVENT to
1608 the client callback.
1609 (remote_async): Change callback's param type to inferior_event_type.
1610 (async_client_callback): Change type as above.
1611
1612 1999-10-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1613
1614 * event-top.c (stdin_event_handler): Delete fd parameter, use
1615 input_fd instead.
1616 * event-top.h (stdin_event_handler): Delete fd parameter.
1617
1618 * inf-loop.c (inferior_event_handler): Delete fd parameter. Use
1619 target_async() to unregister the inferior fd in case of errors.
1620 * inf-loop.h(inferior_event_handler): Delete fd parameter.
1621
1622 * ser-unix.c (fd_event): Delete fd parameter. Use scb->fd,
1623 instead.
1624
1625 * remote.c (async_client_callback): Delete fd parameter.
1626 (remote_async_serial_handler): Ditto.
1627 (remote_async): Adjust to new type of callback function.
1628
1629 * target.c (cleanup_target): Adjust parameters for to_async
1630 default case.
1631 * target.h (*to_async): Delete fd parameter from cb function.
1632
1633 * event-loop.h (handler_func): Delete fd parameter.
1634 * event-loop.c (handle_file_event): Delete fd param from call to
1635 proc. Do not include inferior.h.
1636
1637 1999-10-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1638
1639 * event-loop.c (inferior_event_handler,
1640 inferior_event_handler_wrapper): Move from here.
1641 * inf-loop.c: To here. New file.
1642
1643 * event-loop.h (inferior_event_handler): Move from here.
1644 * inf-loop.h: To here. New file.
1645
1646 * remote.c: Include inf-loop.h.
1647 (set_extende_protocol): Remove unused prototpye.
1648
1649 * Makefile.in (SFILES): Add inf-loop.c.
1650 (inf_loop_h): Define.
1651 (COMMON_OBS): Add inf-loop.o.
1652 (inf-loop.o): Add rule.
1653 (remote.o): Add dependency on inf-loop.h.
1654
1655 Fri Oct 1 19:59:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
1656
1657 * ser-unix.c: Add some notes on how the async code works.
1658
1659 Fri Oct 1 01:45:32 1999 Jeffrey A Law (law@cygnus.com)
1660
1661 * somread.c (som_symfile_offsets): Fix typo in last change.
1662
1663 1999-09-30 Fred Fish <fnf@cygnus.com>
1664
1665 * coff-solib.c (coff_solib_add): Adjust call to symbol_file_add.
1666 * cxux-nat.c (add_shared_symbol_files): Ditto.
1667 * irix5-nat.c (symbol_add_stub): Ditto.
1668 * osfsolib.c (symbol_add_stub): Ditto.
1669 * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
1670 * remote-mm.c (mm_load): Ditto.
1671 * remote-udi.c (udi_load): Ditto.
1672 * remote-vx.c (vx_add_symbols): Ditto.
1673 * solib.c (symbol_add_stub): Ditto.
1674 * somsolib.c (som_solib_add_solib_objfile): Ditto.
1675 * win32-nat.c (handle_load_dll): Ditto.
1676
1677 * irix5-nat.c (symbol_add_stub): Add section_addrs, zero it.
1678 * cxux-nat.c (add_shared_symbol_files): Ditto.
1679 * osfsolib.c (symbol_add_stub): Ditto.
1680 * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
1681 * solib.c (symbol_add_stub): Ditto.
1682 * somsolib.c (som_solib_add_solib_objfile): Ditto.
1683 * symfile.c (symbol_file_command): Ditto.
1684 * win32-nat.c (handle_load_dll): Ditto.
1685
1686 * irix5-nat.c (symbol_add_stub): Use section_addrs to pass text addr.
1687 * cxux-nat.c (add_shared_symbol_files): Ditto.
1688 * osfsolib.c (symbol_add_stub): Ditto.
1689 * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
1690 * solib.c (symbol_add_stub): Ditto.
1691 * somsolib.c (som_solib_add_solib_objfile): Ditto.
1692 * symfile.c (symbol_file_command): Ditto.
1693 * win32-nat.c (handle_load_dll): Ditto.
1694
1695 * coff-solib.c (coff_solib_add): Call symbol_file_add with NULL ptr.
1696 * cxux-nat.c (add_shared_symbol_files): Ditto.
1697 * remote-udi.c (udi_load): Ditto.
1698 * remote-vx.c (vx_add_symbols): Ditto.
1699 * symfile.c (symbol_file_command): Ditto.
1700
1701 * dstread.c (dst_symfile_offsets): Take "section_addr_info *"
1702 instead of CORE_ADDR.
1703 * somread.c (som_symfile_offsets): Ditto.
1704 * symfile.c (default_symfile_offsets): Ditto.
1705 * xcoffread.c (xcoff_symfile_offsets): Ditto.
1706
1707 * symfile.h (default_symfile_offsets): Adjust prototype.
1708 (syms_from_objfile): Ditto.
1709 * symtab.h (symbol_file_add): Ditto.
1710
1711 * rs6000-nat.c (objfile_symbol_add): Call syms_from_objfile with NULL.
1712 * xcoffsolib.c (solib_add): Ditto.
1713 * gdb-stabs.h (SECT_OFF_MAX): Increase from 4 to 16.
1714 * symtab.h (MAX_SECTIONS): Define.
1715 (struct section_addr_info): New struct for better control over
1716 changing load addresses of sections.
1717 * objfiles.h (OBJF_READNOW): Add new flag bit.
1718 * symfile.h (sym_offsets): Change second param from CORE_ADDR to
1719 "section_addr_info *".
1720
1721 * symfile.c (symbol_file_add): Replace scalar arg "CORE_ADDR addr"
1722 with "struct section_addr_info *addrs".
1723 (syms_from_objfile): Ditto.
1724 (add_symbol_file_command): Remove local variables "readnow" and
1725 "mapped". Replaced with general "flags" variable.
1726 (symbol_file_command): Ditto.
1727 (add_symbol_file_command): Add local variables i, sec_num, argcnt,
1728 expecting_option, option_index, and opt. Rework option parsing code
1729 to handle additional options.
1730 (_initialize_symfile): Adjust add-symbol-file usage to match new
1731 option handling.
1732 (symbol_file_add): Remove parameters "mapped" and "readnow",
1733 replace with general "flags".
1734 (symbol_file_add): In call to allocate_objfile, replace "mapped"
1735 with extracted OBJF_MAPPED bit from flags.
1736 (symbol_file_add): Use OBJF_READNOW bit from flags, instead of
1737 "readnow" variable.
1738 (symbol_file_command): Set OBJF_MAPPED and OBJF_READNOW bits
1739 from parsed options. Pass flags to symbol_file_add.
1740 (add_symbol_file_command): Ditto.
1741 (syms_from_objfile): Add local variables i, sect, lower_sect,
1742 lower_offset, and local_addr. Substitute local_addr for addrs
1743 when addrs is NULL. Find lowest loadable section to be used as
1744 starting point for contiguous sections. Adjust offsets if segments
1745 are not contiguous. Call sym_offsets with section_addr_info
1746 instead of single addr.
1747 (default_symfile_offsets): Initialize objfile's section_offsets
1748 with user specified offsets.
1749 (symbol_file_add): Call syms_from_objfile with offsets.
1750 (unknown_option_complaint): Add.
1751 (add_symbol_file_command): Add "section_addrs", zero it with memset.
1752
1753 1999-09-30 Jason Molenda (jsm@bugshack.cygnus.com)
1754
1755 * configure.in: Call config.sub explicitly instead of misusing the
1756 autoconf internal variable $ac_config_sub.
1757 * configure: Regenerated.
1758
1759 Thu Sep 30 15:53:59 1999 Andrew Cagney <cagney@b1.cygnus.com>
1760
1761 * remote.c (readchar): When EOF mourn the inferior.
1762 (getpkt): Try QUIT. Might not be a watchdog timer timeout.
1763 (remote_async_serial_handler): Pass ``-1'' as the dummy FD. Safer
1764 than ZERO == STDIN.
1765
1766 * serial.h (enum serial_rc): Replace #define SERIAL_ERROR,
1767 SERIAL_TIMEOUT and SERIAL_EOF.
1768 (struct _serial_t): Add more notes on termios specific fields.
1769
1770 * ser-unix.c (generic_readchar): Make SERIAL_ERROR sticky.
1771 (do_hardwire_readchar, do_unix_readchar): Don't use bufcnt as a
1772 tempoary for the return-value from read.
1773
1774 * serial.c (serial_logchar): Add a stream parameter.
1775 (serial_readchar, serial_write, serial_send_break): Update.
1776 (serial_readchar): Add serial debug trace.
1777
1778 Thu Sep 30 12:07:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
1779
1780 * serial.h (struct _serial_t): Add field async_state. Better
1781 document field bufcnt.
1782 (SERIAL_ERROR): Delete comment about errno.
1783 * serial.c (serial_open, serial_fdopen): Initialize async_state.
1784
1785 * ser-unix.c (push_event, fd_event, reschedule): New functions.
1786 Handle ASYNC serial input.
1787 (ser_unix_async): Update.
1788 (generic_readchar): New function. Handle event scheduling. Make
1789 EOF condition sticky.
1790 (do_unix_readchar): Rename ser_unix_readchar.
1791 (ser_unix_readchar): New function, call do_unix_readchar via
1792 generic_readchar.
1793 (do_hardwire_readchar, hardwire_readchar): Ditto.
1794
1795 * ser-unix.c (ser_unix_readchar): Delete code working around ASYNC
1796 fifo bugs.
1797 (hardwire_readchar): Delete code working around ASYNC fifo bugs.
1798
1799 Wed Sep 29 21:27:16 1999 Jeffrey A Law (law@cygnus.com)
1800
1801 * breakpoint.c (insert_breakpoints): Addresses are CORE_ADDRs,
1802 not "int"s.
1803 (remove_breakpoint): Likewise.
1804
1805 1999-09-29 Fred Fish <fnf@cygnus.com>
1806
1807 * breakpoint.c (breakpoint_1): Replace cast "(CORE_ADDR) - 1"
1808 with the more obviously intended expression "(CORE_ADDR) -1".
1809 * dwarf2read.c (scan_partial_symbols, read_file_scope): Ditto.
1810 * gnu-nat.c (gnu_create_inferior): Ditto.
1811 * go32-nat.c (go32_create_inferior): Ditto.
1812 * hppa-tdep.c (hppa_pop_frame): Ditto.
1813 * infcmd.c (continue_command, step_1, signal_command): Ditto.
1814 (until_next_command, finish_command): Ditto.
1815 * infrun.c (proceed): Ditto.
1816 * inftarg.c (child_create_inferior): Ditto.
1817 * m3-nat.c (m3_create_inferior): Ditto.
1818 * mac-nat.c (child_create_inferior): Ditto.
1819 * procfs.c (procfs_create_inferior): Ditto.
1820 * remote-sim.c (gdbsim_create_inferior): Ditto.
1821 * target.c (target_link): Ditto.
1822 * win32-nat.c (child_create_inferior): Ditto.
1823
1824 Thu Sep 30 10:36:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
1825
1826 * ser-unix.c (ser_unix_flush_input): New function. Discard input
1827 buffer.
1828 (hardwire_flush_input): Use ser_unix_flush_input.
1829 (ser_unix_nop_flush_input): Delete.
1830 * ser-unix.h (ser_unix_flush_input): Update.
1831 ser-tcp.c (_initialize_ser_tcp), ser-pipe.c
1832 (_initialize_ser_pipe): Update.
1833
1834 * ser-unix.c (hardwire_write): Delete.
1835 (_initialize_ser_hardwire): Update, use ser_unix_write.
1836
1837 Thu Sep 30 10:16:50 1999 Andrew Cagney <cagney@b1.cygnus.com>
1838
1839 * ser-pipe.c (pipe_open): Don't make the FD non-blocking. Already
1840 being handled in ser_unix_wait_for by a select.
1841
1842 Thu Sep 30 10:00:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
1843
1844 * serial.h (struct _serial_t): Add field debug_p.
1845 (SERIAL_DEBUG, SERIAL_DEBUG_P): Define.
1846
1847 * serial.c (serial_open, serial_fdopen): Initialize debug_p.
1848 (serial_debug, serial_debug_p): New functions.
1849 (global_serial_debug_p): New variable.
1850 (_initialize_serial): Add ``set serialdebug'' command.
1851
1852 Thu Sep 30 09:09:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
1853
1854 * serial.h (serial_event_ftype): Replace FD and ERROR args with
1855 SERRIAL_T arg.
1856 * ser-unix.c (ser_unix_event): Update.
1857
1858 * remote.c (remote_async_serial_handler): New function. Handle
1859 serial events.
1860 (remote_async): Pass remote_async_serial_handler to SERIAL.
1861 (async_client_callback, async_client_context): New variables.
1862
1863 * remote.c (extended_remote_async_create_inferior): Use
1864 target_async to register the inferior event handler.
1865
1866 Thu Sep 30 00:02:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
1867
1868 * configure.in (AC_CHECK_FUNCS): Test for sigprocmask.
1869 * configure, config.in: Re-generate.
1870 * event-top.c (async_stop_sig): Use sigprocmask when available.
1871
1872 1999-09-29 Doug Evans <devans@casey.cygnus.com>
1873
1874 * sh-stub.c (handle_exception): Fix typo in patch of 1999-08-26.
1875 * m68k-stub.c (handle_exception): Ditto.
1876
1877 1999-09-28 Fred Fish <fnf@cygnus.com>
1878
1879 * alpha-nat.c (alpha_osf_core_fns, alpha_elf_core_fns):
1880 Add default entries for check_format and core_sniffer.
1881 * core-aout.c (aout_core_fns): Ditto.
1882 * core-regset.c (regset_core_fns): Ditto.
1883 * core-sol2.c (solaris_core_fns): Ditto.
1884 * i386aix-nat.c (i386aix_core_fns): Ditto.
1885 * i386mach-nat.c (i386mach_core_fns): Ditto.
1886 * irix4-nat.c (irix4_core_fns): Ditto.
1887 * irix5-nat.c (irix5_core_fns): Ditto.
1888 * lynx-nat.c (lynx_core_fns): Ditto.
1889 * mips-nat.c (mips_core_fns): Ditto.
1890 * ns32knbsd-nat.c (nat_core_fns): Ditto.
1891 * rs6000-nat.c (rs6000_core_fns): Ditto.
1892 * sparc-nat.c (sparc_core_fns): Ditto.
1893 * sun-nat.c (sun3_core_fns): Ditto.
1894 * ultra3-nat.c (ultra3_core_fns): Ditto.
1895
1896 * corelow.c (core_vec): New, for selected core file handler.
1897 (sniff_core_bfd): New function.
1898 (gdb_check_format): New function.
1899 (default_check_format): New function.
1900 (default_core_sniffer): New function.
1901 (sniff_core_bfd): New function.
1902 (core_close): Reset core_vec to NULL.
1903 (core_open): Fall back to gdb_check_format if bfd_check_format
1904 does not identify the file format. Call sniff_core_bfd to pick
1905 a core file handler.
1906 (get_core_registers): Remove code that is now in sniff_core_bfd.
1907 Use current core_vec.
1908
1909 * gdbcore.h (check_format): New core_fns function, points to function
1910 to try and identify a core file format.
1911 (core_sniffer): New core_fns function, points to function to select
1912 a specific handler for the selected core file format.
1913 (default_core_sniffer): Add prototype.
1914 (default_check_format): Add prototype.
1915
1916 * i960-tdep.c (inferior.h): Include.
1917 * mips-tdep.c (read_next_frame_reg): Use ADDR_BITS_REMOVE
1918 on addresses pulled from stack.
1919
1920 1999-09-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1921
1922 * event-loop.c (poll_timers): Check whether the timer list has any
1923 element on it by looking at the first element pointer, instead of
1924 num_timers.
1925
1926 Wed Sep 29 18:02:31 1999 Andrew Cagney <cagney@amy.cygnus.com>
1927
1928 * command.c: Attempt to include POSIX <sys/wait.h> before
1929 <wait.h>.
1930
1931 * ser-unix.c (hardwire_print_tty_state): Ditto.
1932 * inflow.c (child_terminal_info): Fix printf args.
1933
1934 1999-09-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1935
1936 * remote.c (remote_async_resume): Register the inferior with the
1937 event loop.
1938 (remote_async_open_1): Don't put the target in async mode here,
1939 just do it when executing.
1940
1941 * infrun.c (complete_execution): Unregister the inferior from the
1942 event loop.
1943
1944 * event-top.c (async_disable_stdin): Don't add
1945 async_enable_stdin() to the exec_cleanups chain.
1946
1947 Tue Sep 28 11:08:34 1999 Jeffrey A Law (law@cygnus.com)
1948
1949 * hppa-tdep.c (hppa_fix_call_dummy): Ignore IMPORT_SHLIB stubs
1950 except for hpux11 native. Break out of the loop to find a
1951 stub as soon as we find an IMPORT stub.
1952 (skip_prologue_hard_way): Also recognize copy %ret1,target and
1953 all PA64 argument stores as prologue instructions.
1954
1955 1999-09-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1956
1957 * breakpoint.c, defs.h, event-top.c, infcmd.c, infrun.c, main.c,
1958 remote.c, top.c, tracepoint.c, utils.c (async_p): Change var name
1959 to event_loop_p.
1960
1961 1999-09-28 Jim Blandy <jimb@cris.red-bean.com>
1962
1963 * hppa-tdep.c (skip_prologue_hard_way): Recognize ldo insns
1964 which generate pointers into the argument list.
1965
1966 Tue Sep 28 13:56:49 1999 Andrew Cagney <cagney@b1.cygnus.com>
1967
1968 * remote.h (cleanup_sigint_signal_handler,
1969 initialize_sigint_signal_handler): Delete extern declarations.
1970 * event-top.c, infrun.c: No longer need to include "remote.h".
1971 * remote.c (cleanup_sigint_signal_handler,
1972 initialize_sigint_signal_handler): Make static.
1973 * Makefile.in (event-top.o): Delete dependency on "remote.h".
1974
1975 * remote.c (remote_async_terminal_ours_p): New static global. Keep
1976 track of who currently owns the terminal.
1977 (remote_async_open_1): Initialize.
1978 (remote_async_terminal_inferior): Test
1979 remote_async_terminal_ours_p. Claim CNTRL-C handler as part of
1980 transfering the terminal to the target.
1981 (remote_async_terminal_ours): Similar.
1982
1983 Mon Sep 27 12:33:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
1984
1985 * remote.c (async_interrupt_query): Delete function. Merged into
1986 interrupt_query. Async cases handled by target_terminal_ours,
1987 target_terminal_inferior and SERIAL_CLOSE.
1988 (async_remote_interrupt_twice): Update.
1989 (remote_async_terminal_ours, remote_async_terminal_inferior): New
1990 functions. Steal STDIN from GDB's CLI.
1991 (init_remote_async_ops): Initialize to_terminal_ours and
1992 to_terminal_inferior.
1993
1994 * event-top.c (async_disable_stdin, async_disable_stdin): Use
1995 target_terminal_ours / target_terminal_inferior to transfer
1996 ownership of the terminal between GDB and the target.
1997
1998 1999-09-27 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1999
2000 * infcmd.c (run_command): Call async_disable_stdin() only if
2001 dealing with an asynchronous target.
2002
2003 Mon Sep 27 11:48:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
2004
2005 * target.h (struct target_ops): Add to_can_async_p, to_is_async_p,
2006 to_async. Delete to_has_async. These correspond well with
2007 SERIAL* async methods.
2008 (target_can_async_p, target_is_async_p, target_async): Define.
2009 * target.c (update_current_target, cleanup_target): Update.
2010
2011 * remote.c (remote_async_open_1): Change target to async using
2012 target_async.
2013 (remote_can_async_p, remote_is_async_p, remote_async): New
2014 functions.
2015 (remote_async_wait, remote_async_open_1): Add FIXME about how
2016 wait_forever_enabled_p can almost be deleted once the client can
2017 enable/disable target_async.
2018
2019 * breakpoint.c (until_break_command), infrun.c (proceed), infcmd.c
2020 (run_command, continue_command, step_1, jump_command,
2021 until_command, finish_command, interrupt_target_command), top.c
2022 (return_to_top_level, execute_command), event-top.c
2023 (command_handler): Replace target_has_async with
2024 target_can_async_p.
2025
2026 Sun Sep 26 02:10:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
2027
2028 * remote.c (remote_async_open_1): If we go into async mode, never
2029 wait for ever.
2030
2031 * infcmd.c: Include "event-top.h".
2032 (run_command, continue_command, jump_command, until_command,
2033 finish_command): Use async_disable_stdin to disable the console
2034 for synchronous commands.
2035
2036 * remote.c (async_interrupt_query): Only disconnect the console
2037 from the terminal when sync_execution.
2038
2039 * remote.c (initialize_sigint_signal_handler): Move declaration
2040 from here.
2041 * remote.h: To here. Make non-static.
2042
2043 * remote.c (remote_async_resume, async_interrupt_query): Move
2044 prompt code from here.
2045 * event-top.c (async_disable_stdin, async_enable_stdin): To
2046 here. New function.
2047
2048 * infrun.c (start_remote): Delete commented out code.
2049
2050 Fri Sep 24 12:38:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
2051
2052 * remote.c (remote_async_open_1): Perform the initial async_open
2053 using only synchronous calls. Only after the target is fully
2054 connected, switch to async mode. Include FIXME about now it
2055 currently works VS how it should be working.
2056 (remote_async_open_1, set_extended_protocol): Delete function
2057 set_extended_protocol. All open communication is now done
2058 synchronously.
2059 (forever_enabled_p): New variable. Determine if remote_async_wait
2060 should block FOREVER when fetching target information.
2061 (remote_cisco_open, remote_open_1): Set forever_enabled_p.
2062
2063 * infrun.c (start_remote): During the initial connect, always use
2064 a synchronous wait.
2065
2066 Sat Sep 25 18:13:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
2067
2068 * Makefile.in (event-top.o): Add dependency.
2069 * event-top.c: Include "remote.h".
2070 * remote.c (async_interrupt_query), event-top.c:
2071 (async_enable_stdin): Pass dummy parameter to
2072 cleanup_sigint_signal_handler.
2073 * remote.c (cleanup_sigint_signal_handler), remote.h
2074 (cleanup_sigint_signal_handler), event-top.c (async_enable_stdin),
2075 event-top.h (async_enable_stdin): Change signature to match
2076 make_exec_error_cleanup handler pararameter.
2077
2078 Thu Sep 23 20:48:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
2079
2080 * defs.h (enum command_class): Move from here.
2081 * command.h (command_class): To here.
2082
2083 1999-09-24 Kevin Buettner <kevinb@cygnus.com>
2084 * breakpoint.c (bpstat_stop_status): Use not_a_breakpoint to
2085 help properly set bp_addr.
2086 * infrun.c (handle_inferior_event): Simplify calls to
2087 bp_stop_status.
2088
2089 1999-09-24 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2090
2091 * top.c (return_to_top_level): Do exec_error cleanups if are
2092 interrupting a simulated synchronous execution command.
2093
2094 * infrun.c (start_remote): Create a cleanup to enable stdin in
2095 case of error from this command.
2096 (complete_execution): Do the enabling of stdin via the exec_error
2097 cleanups, when needed.
2098
2099 * remote.c (remote_async_resume): Make sure we re-enable stdin in
2100 case of error from the target.
2101 (handle_remote_sigint_twice): The handler to be set is
2102 async_remote_interrupt_twice, not async_remote_interrupt.
2103 (async_remote_interrupt_twice): Don't do anything if the target
2104 has been killed already. Call async_interrupt_query, instead of
2105 interrupt_query.
2106 (async_interrupt_query): New function. Async case of
2107 interrupt_query().
2108
2109 * event-top.c (async_enable_stdin): New function. Reinstate stdin
2110 with the event loop.
2111 * event-top.h (async_enable_stdin): Export.
2112
2113 * utils.c (exec_error_cleanup_chain): New cleanup chain.
2114 (make_exec_error_cleanup, do_exec_error_cleanups,
2115 discard_exec_error_cleanups): New functions.
2116 * defs.h (make_exec_error_cleanup, do_exec_error_cleanups,
2117 discard_exec_error_cleanups): Export.
2118
2119 1999-09-24 Jim Blandy <jimb@zwingli.cygnus.com>
2120
2121 * ax-gdb.c (expr_to_agent): Don't forget to pass argument to
2122 new_agent_expr.
2123
2124 1999-09-24 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2125
2126 * event-loop.c (fetch_inferior_event_wrapper): New
2127 function. Wrapper to pass to catch_errors.
2128 (inferior_event_handler): Pop the target if things go bad with it.
2129 Call fetch_inferior_event() from within catch_errors().
2130
2131 1999-09-24 Jim Blandy <jimb@zwingli.cygnus.com>
2132
2133 * ax-gdb.c: Use internal_error instead of error, where
2134 appropriate.
2135
2136 1999-09-23 James Ingham <jingham@leda.cygnus.com>
2137
2138 * target.c (target_resize_to_sections): New function. Gather the
2139 resizing code for the to_sections field into one place, and make
2140 sure you update the other targets that are sharing the to_sections
2141 structure.
2142 * target.h: Declare the target_resize_to_sections function.
2143 * solib.c (solib_add): use target_resize_to_sections.
2144 * somsolib.c (som_solib_load_symbols): ditto
2145 * rs6000-nat.c (xcoff_relocate_core): ditto
2146 * pa64solib.c (pa64_solib_load_symbols): ditto
2147 * irix5-nat.c (solib_add):ditto
2148
2149 * top.c: Define the attach & detach hooks
2150 * defs.h: Declare the attach & detach hooks.
2151 * infcmd.c (attach_command): call the attach hook if it exists.
2152 (detach_command): call the detach hook if it exists.
2153
2154 * complaints.c (complain): Send the complaints to stderr rather
2155 than stdout, so they don't get mixed into the result stream from
2156 commands.
2157
2158 1999-09-23 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2159
2160 * event-loop.c (poll_timers): Use correct timeval field names,
2161 when setting the notifier timeouts, in case of select() used.
2162 (gdb_wait_for_event): Pass a pointer to the timeout structure to
2163 select(), not the structure.
2164
2165 Wed Sep 22 10:35:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
2166
2167 * Makefile.in (init.c): Change generated file to include "defs.h"
2168 and "call-cmds.h". Use initialize_file_ftype when declaring
2169 each initialize functions.
2170 (call_cmds_h): Add definition.
2171 (init.o): Add target and dependencies.
2172 (init.c): Don't grep for _initialize* in init.c.
2173
2174 * defs.h (initialize_file_ftype): Add function typedef.
2175
2176 1999-09-22 Michael Snyder <msnyder@cleaver.cygnus.com>
2177
2178 * procfs.c (init_procinfo): move fltset initialization to caller.
2179 (do_attach, create_procinfo): initialize fltset.
2180
2181 1999-09-22 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2182
2183 * event-loop.c, event-top.c, event-loop.h: Rerun indent.
2184
2185 1999-09-21 Doug Evans <devans@casey.cygnus.com>
2186
2187 * m32r-stub.c (handle_exception): Fix typo in patch of 1999-08-26.
2188
2189 Tue Sep 21 14:55:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
2190
2191 From 1999-08-20 J.T. Conklin <jtc@redback.com>:
2192 * remote.c (read_frame): expand cisco run-length encoding variant
2193 inline as is done for the standard encoding.
2194 (remote_cisco_expand): Removed.
2195
2196 1999-09-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2197
2198 * event-loop.c: Include <sys/time.h>.
2199
2200 1999-09-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2201
2202 * ser-ocd.c: (ser_ocd_open, ser_ocd_raw, ser_ocd_readchar,
2203 ser_ocd_setbaudrate, ser_ocd_write, ser_ocd_close,
2204 ser_ocd_get_tty_state, ser_ocd_set_tty_state): Remove unused
2205 prototypes.
2206 (ocd_readremote): Remove.
2207 (ocd_write): Remove unused var 'c'.
2208
2209 1999-09-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2210
2211 * event-top.c (change_line_handler): Cleanup dead code. Add comments.
2212 * event-loop.c: Cleanup #if 0 code.
2213
2214 * event-loop.h (timer_handler_func): New function type.
2215 (create_timer): Export function.
2216 (delete_timer): Export function.
2217
2218 * event-loop.c: Add timeout and timeout_valid fields to
2219 gdb_notifier. New structures gdb_timer and timer_list.
2220 (gdb_do_one_event): Check whether there are any timers tht are
2221 ready, before going to wait.
2222 (gdb_wait_for_event): If the timeout structure is meaningful, pass
2223 that to select()/poll().
2224 (create_timer): New function. Creates a timer.
2225 (delete_timer): New function. Deletes a timer.
2226 (handle_timer_event): New function. Deals with timers that are ready.
2227 (poll_timers): New Function. Chack whether timers have expired.
2228
2229 Mon Sep 20 17:00:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
2230
2231 * remote.c (getpkt, putpkt, remote_console_output): Move
2232 declaration from here.
2233 * remote.h: To here. New file.
2234 * tracepoint.c(putpkt, getpkt, remote_console_output): Delete
2235 declarations. Moved to "remote.h".
2236 * Makefile.in (remote_h): Define.
2237 * remote.c, tracepoint.c: Include "remote.h".
2238 * Makefile.in (tracepoint.o, remote.o): Add dependency on
2239 "remote.h".
2240
2241 * remote.h (remote_cisco_objfile_relocate,
2242 cleanup_sigint_signal_handler): Add declaration. Include FIXME.
2243 * infrun.c: Include "remote.h".
2244 (complete_execution): Delete local extern declaration
2245 of ``cleanup_sigint_signal_handler''.
2246 * Makefile.in (infrun.o): Add dependency on remote.h.
2247
2248 Mon Sep 20 13:41:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
2249
2250 * kod.c (ecos_kod_open, ecos_kod_request, ecos_kod_close,
2251 cisco_kod_open, cisco_kod_request, cisco_kod_close): Move
2252 declarations from here.
2253 * kod.h: To here. New file.
2254 * kod-cisco.c, kod.c: Include "kod.h".
2255 * Makefile.in (kod-cisco.o, kod.o): Add dependency on "kod.h".
2256
2257 * kod.h (kod_display_callback_ftype, kod_query_callback_ftype):
2258 New function types.
2259 * kod.h (kod_cisco_open): Use in declaration.
2260 * kod.c (gdb_kod_open): Update definition.
2261 * kod-cisco.c (cisco_kod_open): Update definition.
2262
2263 Mon Sep 20 12:13:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
2264
2265 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
2266
2267 * breakpoint.c (until_break_command_continuation): Add
2268 declaration. Make static.
2269 * event-top.c (rl_callback_read_char_wrapper): Ditto.
2270
2271 Fri Sep 17 19:28:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
2272
2273 * source.c: Include "source.h".
2274 (open_source_file, find_source_lines): Move declaration from here.
2275 * source.h: New file. To here.
2276 * Makefile.in (source.o): Add dependency on source.h.
2277
2278 * breakpoints.c (delete_command): Move declaration from here.
2279 * breakpoints.h (delete_command): To here.
2280
2281 1999-09-18 Jim Blandy <jimb@cris.red-bean.com>
2282
2283 * hppa-tdep.c (in_solib_call_trampoline): If we can't recognize
2284 the instruction we're at, we're not in a stub.
2285
2286 Sat Sep 18 07:13:03 1999 Jeffrey A Law (law@cygnus.com)
2287
2288 * dwarf2read.c (dwarf_decode_lines): Correctly handle
2289 DW_LNS_const_add_pc.
2290
2291 1999-09-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2292
2293 * remote.c (remote_async_open_1): Use inferior_event_handler to
2294 handle inferior events.
2295 (extended_remote_async_create_inferior): Ditto.
2296
2297 * serial.h (serial_event_ftype): Add two pars.
2298
2299 * ser-unix.c (ser_unix_event): Add two parameters, error and fd.
2300 Pass those into the call to the actual inferior event handler.
2301
2302 * infrun.c (complete_execution): Stdin handler is stdin_event_handler.
2303
2304 * event-top.h (stdin_event_handler): Export new function.
2305
2306 * event-top.c (stdin_event_handler): New function. Smarter handler
2307 for events on stdin.
2308 (change_line_handler): Don't need to update the handler for stdin
2309 here anymore.
2310 (_initialize_event_loop): Stdin handler is now stdin_event_handler.
2311
2312 * event-loop.h: (handler_func): Change signature, adding two new
2313 args.
2314 (sig_handler_func): New function type. It is the old handler_func.
2315 (create_async_signal_handler): Update to use sig_handler_func.
2316 (delete_async_signal_handler): Prototype for new function.
2317
2318 * event-loop.c: Include "inferior.h".
2319 (struct file_handler): Add field error, to indicate error
2320 condition on fd.
2321 (struct async_signal_handler): Rename type of proc field.
2322 (add_file_handler): Add exception condition as something select()
2323 should report.
2324 (handle_file_event): In case of error on the fd, record this in
2325 the file_handler structure. Update call to (*proc)() to match new
2326 signature.
2327 (gdb_wait_for_event): If select() or poll() return error, report
2328 this to user.
2329 (create_async_signal_handler): Change first param type to
2330 sig_handler_func*.
2331 (inferior_event_handler): New function. Smarter inferior event
2332 handling.
2333
2334 1999-09-18 Jim Blandy <jimb@cris.red-bean.com>
2335
2336 * pa64solib.c (pa64_solib_create_inferior_hook): Remove code which
2337 tries to set __d_pid; it's not relevant to PA64 shared libraries.
2338
2339 A psymtab's texthigh element, and a block's endaddr element, are
2340 the address past the end of the address range, never the address
2341 of the last byte. These data structures mean the same thing on
2342 forty different architectures; there's no reason they should be
2343 different on HP/UX.
2344 * symtab.c (find_pc_sect_psymtab): Remove special case for HP/UX.
2345 (find_pc_sect_symtab): Same.
2346 * objfiles.c (find_pc_sect_section): Same.
2347
2348 Sat Sep 18 07:13:03 1999 Jeffrey A Law (law@cygnus.com)
2349
2350 * hppa-tdep.c (internalize_unwinds): Handle PA64 shared libraries
2351 correctly
2352
2353 * hppa-tdep.c (in_solib_call_trampoline): Handle PA64 shared library
2354 trampolines.
2355
2356 1999-09-17 Jim Blandy <jimb@zwingli.cygnus.com>
2357
2358 * breakpoint.c (permanent_breakpoint_here_p): Delete.
2359 Accidentally left over from previous changes.
2360
2361 1999-09-17 Jim Blandy <jimb@cris.red-bean.com>
2362
2363 * config/pa/tm-hppa64.h (ARGS_GROW_DOWNWARD): Deleted. There are
2364 many more differences between the 32- and 64-bit ABI's than the
2365 direction the arguments grow, so this name is misleading.
2366 (PA20W_CALLING_CONVENTIONS): Define this instead.
2367 * config/pa/tm-hppa.h (ARGS_GROW_DOWNWARD): Delete.
2368 * hppa-tdep.c (hppa_push_arguments): Split into two separate
2369 functions, depending on whether PA20W_CALLING_CONVENTIONS is
2370 #defined. These implement completely separate specifications,
2371 they don't really share that much code anyway, and this is much
2372 more readable. Specifically: leave a 16-byte, not 32-byte, frame
2373 marker; correctly align objects larger than eight bytes; promote
2374 all integral scalar arguments smaller than eight bytes to a full
2375 register width; pad aggregates smaller than eight bytes on the
2376 right.
2377
2378 Thu Sep 16 17:33:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
2379
2380 * remote.c (remote_async_open_1): Use SERIAL_ASYNC to
2381 enable/disable async event callback on serial port. Use
2382 SERIAL_CAN_ASYNC_P / SERIAL_IS_ASYNC_P to determine if / when
2383 async mode.
2384 (remote_async_resume, remote_async_detach, remote_async_kill,
2385 extended_remote_async_create_inferior, remote_async_wait): Ditto.
2386
2387 * ser-unix.c (hardwire_readchar): When ASYNC, only read a single
2388 character.
2389 (ser_unix_readchar): Ditto. Problems occure with back-to-back
2390 data from a target. The ASYNC code can loose the second data
2391 chunk.
2392
2393 * serial.c (serial_fdopen): Initialize async_handler and
2394 async_context.
2395
2396 1999-09-16 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2397
2398 * utils.c (discard_all_continuations): New function.
2399 * defs.h: (discard_all_continuations): Add prototype.
2400
2401 1999-09-16 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2402
2403 * valops.c: Remove prototype for search_struct_field_aux(). THe
2404 function was nowhere in the file.
2405 (value_ind): Remove unused var real_val.
2406 (value_find_oload_method_list): Remove unused var v.
2407 (find_overload_match): Remove extra declaration of var jj.
2408
2409 * Makefile.in (event_top_h): Define. Add dependency on this for
2410 every file that includes event-top.h.
2411
2412 Thu Sep 16 17:33:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
2413
2414 * serial.c (serial_open): Delete ``&'' device.
2415 * ser-unix.c (_initialize_ser_hardwire): Make the "hardwire"
2416 device async. Delete temporary "async-hardwire" device.
2417
2418 Thu Sep 16 16:27:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
2419
2420 * serial.h (SERIAL_IS_ASYNC_P): Define. Non-zero when serial
2421 device is in async mode.
2422 (SERIAL_CAN_ASYNC_P): Rename SERIAL_ASYNC_P.
2423 * serial.c (serial_is_async_p): Implement.
2424 (serial_can_async_p): Rename serial_async_p.
2425 (serial_open): Initialize ASYNC_HANDLER and ASYNC_CONTEXT. Save
2426 the original name in SCB instead of the stripped name.
2427
2428 Thu Sep 16 12:20:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
2429
2430 * serial.h (struct serial_ops): Add field ASYNC.
2431 (SERIAL_ASYNC, SERIAL_ASYNC_P): New macros.
2432 (struct _serial_t): Add fields async_context and async_handler.
2433 * serial.c (serial_async, serial_async_p): Implement.
2434
2435 * ser-unix.c: Include "event-loop.h".
2436 (ser_unix_async), ser-unix.c: New function. Implement async mode.
2437 (async_event): Handle async events.
2438 * ser-unix.c (_initialize_ser_hardwire), ser-tcp.c
2439 (_initialize_ser_tcp), ser-pipe.c (_initialize_ser_pipe): Enable
2440 ASYNC.
2441
2442 * serial.c (serial_open): Discard leading ``|'' before opening a
2443 pipe device.
2444 * ser-pipe.c (pipe_open): Adjust.
2445 * serial.c (serial_open): Add ``&'' prefix so that
2446 "async-hardwire" device can be explicitly selected. Work in
2447 progress.
2448 * ser-unix.c: Register "async-hardwire" device.
2449
2450 Thu Sep 16 09:04:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
2451
2452 * ser-unix.h: New file. Declare generic ser_unix functions.
2453 * ser-unix.c (ser_unix_nop_get_tty_state,
2454 ser_unix_nop_set_tty_state, ser_unix_nop_raw, ser_unix_wait_for,
2455 ser_unix_readchar, ser_unix_nop_noflush_set_tty_state,
2456 ser_unix_nop_print_tty_state, ser_unix_nop_setbaudrate,
2457 ser_unix_nop_setstopbits, ser_unix_write,
2458 ser_unix_nop_flush_output, ser_unix_nop_flush_input,
2459 ser_unix_nop_send_break, ser_unix_nop_drain_output): New
2460 functions.
2461 * ser-unix.c: Include <sys/wait.h>, <sys/socket.h>,
2462 "gdb_string.h".
2463
2464 * ser-tcp.c (_initialize_ser_tcp), ser-unix.c
2465 (_initialize_ser_hardwire), ser-pipe.c (_initialize_ser_tcp):
2466 Initialize ops vector using assignment.
2467
2468 * ser-pipe.c, ser-tcp.c, ser-unix.c: Include ser-unix.h.
2469
2470 * ser-pipe.c (pipe_get_tty_state, pipe_set_tty_state,
2471 pipe_return_0, pipe_raw, wait_for, pipe_readchar,
2472 pipe_noflush_set_tty_state, pipe_print_tty_state,
2473 pipe_setbaudrate, pipe_setstopbits, pipe_write), ser-tcp.c
2474 (tcp_get_tty_state, tcp_set_tty_state, tcp_return_0, tcp_raw,
2475 wait_for, tcp_readchar, tcp_noflush_set_tty_state,
2476 tcp_print_tty_state, tcp_setbaudrate, tcp_setstopbits, tcp_write):
2477 Delete functions.
2478
2479 1999-09-15 Stan Shebs <shebs@andros.cygnus.com>
2480
2481 * d10v-tdep.c (remote_d10v_translate_xfer_address): Move to here
2482 from remote-d10v.c, also change the memory translation to its
2483 previous version.
2484 * remote-d10v.c: Remove.
2485 * config/d10v/d10v.mt (TDEPFILES): Remove remote-d10v.o.
2486
2487 1999-09-15 Jim Blandy <jimb@cris.red-bean.com>
2488
2489 * breakpoint.c (remove_breakpoint): Return zero, not nothing.
2490
2491 1999-09-14 Jim Blandy <jimb@cris.red-bean.com>
2492
2493 * hppa-tdep.c (frame_chain): If the unwind info says we've saved
2494 r3, don't trust it. Call get_frame_saved_regs and see if we can
2495 actually find an address for r3 there.
2496
2497 * pa64solib.c (pa64_sharedlibrary_info_command): Text fix.
2498
2499 Tue Sep 14 14:34:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
2500
2501 * serial.h (DEPRECATED_SERIAL_FD): Define.
2502 * serial.c (deprecated_serial_fd): New function.
2503
2504 * remote.c (remote_async_open_1, remote_async_open_1,
2505 remote_async_detach, remote_async_kill,
2506 extended_remote_async_create_inferior, minitelnet): Update.
2507 * remote-es.c (es1800_open, es1800_close, es1800_transparent): Update.
2508
2509 * remote-st.c (connect_command), remote-os9k.c (connect_command):
2510 Fix. Call FD_SET et.al. with FD instead of serial_t.
2511
2512 1999-09-14 Jim Blandy <jimb@cris.red-bean.com>
2513
2514 * hppa-tdep.c (hppa_frame_find_saved_regs): The two possible
2515 instructions for saving the return pointer (32- and 64-bit) save
2516 it at different offsets.
2517
2518 * config/pa/tm-hppa64.h: Doc fix.
2519
2520 * defs.h (continuation): Make this a typedef.
2521
2522 * Makefile.in (gdbtk.o, gdbtk-cmds.o): Depend on $(top_h).
2523
2524 * Makefile.in (i386-linux-nat.o): Depend on symfile.h, not
2525 $(symfile_h); the latter has no definition.
2526
2527 * breakpoint.c (breakpoint_here_p): Remove meaningless code,
2528 testing b->enable against shlib_disabled and call_disabled after
2529 we know it is enabled.
2530
2531 Implement "permanent breakpoints" --- breakpoints that are
2532 hardwired into the inferior's code. GDB knows they're there, but
2533 doesn't try to insert or remove them, etc.
2534 * breakpoint.h (enum enable): Add `permanent' enablement state.
2535 * breakpoint.c (make_breakpoint_permanent): New function.
2536 * breakpoint.h (make_breakpoint_permanent): Add declaration.
2537 * breakpoint.c (insert_breakpoints): Don't bother to insert
2538 permanent breakpoints...
2539 (remove_breakpoint): ... or remove them.
2540 (breakpoint_here_p): Handle `permanent' like `enabled'. Change
2541 return value to indicate whether it's a permanent breakpoint here,
2542 or an ordinary breakpoint.
2543 * breakpoint.h (enum breakpoint_here): New enum.
2544 (breakpoint_here_p): Change declaration.
2545 * breakpoint.h (breakpoint_1): Extend bpenables to cover all the
2546 enablement states.
2547 (describe_other_breakpoints): Describe permanent breakpoints.
2548 (check_duplicates): If one of the breakpoints at ADDRESS is a
2549 permanent breakpoint, treat all the others as the duplicates, so
2550 we don't try to insert or remove any of them. Verify that only
2551 the permanent breakpoint is actually inserted.
2552 (delete_breakpoint): Complain if we discover that another
2553 breakpoint was inserted at the same place as a permanent
2554 breakpoint.
2555 (disable_breakpoint): Fail silently if asked to disable a
2556 permanent breakpoint.
2557 (do_enable_breakpoint): Don't change a permanent breakpoint's
2558 enablement to ordinary `enabled'. Leave it alone.
2559 (create_solib_event_breakpoint): Return the
2560 breakpoint object created.
2561 * breakpoint.h (create_solib_event_breakpoint): Fix declaration.
2562 * pa64solib.c (pa64_solib_create_inferior_hook): Do turn on the
2563 DT_HP_DEBUG_CALLBACK flag in the dynamic linker, so it will call
2564 __dld_break, which contains the permanent breakpoint, when interesting
2565 things happen. Tell GDB that the breakpoint in __dld_break is
2566 permanent.
2567 * gdbtk-cmds.c (gdb_get_breakpoint_info): Report a permanent
2568 breakpoint as enabled.
2569 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Provide default definition.
2570 (default_skip_permanent_breakpoint): New function.
2571 (resume): If we're trying to resume at a permanent breakpoint, use
2572 SKIP_PERMANENT_BREAKPOINT to step over it.
2573 * hppa-tdep.c (hppa_skip_permanent_breakpoint): New function.
2574 * config/pa/tm-hppa.h (hppa_skip_permanent_breakpoint): Declare.
2575 (SKIP_PERMANENT_BREAKPOINT): Define.
2576
2577 1999-09-14 Kevin Buettner <kevinb@cygnus.com>
2578
2579 * symtab.h, minsyms.c (find_stab_function_addr): Changed
2580 type of second parameter from partial_symtab * to char *.
2581 Fixed all callers.
2582 * minsyms.c (find_stab_function_addr): Look for minimal
2583 symbol without filename if filename based search fails.
2584 * dbxread.c (process_one_symbol): Call find_stab_function_addr()
2585 in place of inline code with identical functionality.
2586 * partial-stab.h (case N_FUN, descriptors 'F' and 'f'): Look
2587 up symbol's address from minimal symbol table when N_FUN
2588 address is missing. Also, make sure this value is used for
2589 calculating the value of the texthigh field.
2590
2591 1999-09-14 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2592
2593 * event-loop.c (create_file_handler): Increment the total number
2594 of file descriptors for the poll case, only if this is a new file
2595 desc.
2596
2597 1999-09-14 Eli Zaretskii <eliz@is.elta.co.il>
2598
2599 * go32-nat.c: misc minor cleanups and fixes missed in last patch.
2600
2601 Tue Sep 14 12:37:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
2602
2603 * serial.h (SERIAL_PRINT_TTY_STATE): Add STREAM parameter.
2604 (union serial_ops): Update.
2605
2606 * ser-unix.c (hardwire_print_tty_state, ser-tcp.c
2607 (tcp_print_tty_state), ser-pipe.c (pipe_print_tty_state,
2608 ser-go32.c (dos_print_tty_state, ser-mac.c (mac_print_tty_state,
2609 ser-ocd.c (ocd_print_tty_state, ser-e7kpc.c
2610 (e7000pc_print_tty_state): Update.
2611 * inflow.c (child_terminal_info): Update.
2612 * serial.c (serial_print_tty_state): Update.
2613
2614 Tue Sep 14 11:41:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
2615
2616 * serial.c, serial.h, ser-tcp.c, ser-unix.c, ser-pipe.c: Convert
2617 all functions to ISO-C.
2618 * serial.h, serial.c: Move all indirect macro function calls from
2619 serial.h into serial.c.
2620 (serial_drain_output, serial_flush_output, serial_flush_input,
2621 serial_raw, serial_get_tty_state, serial_set_tty_state,
2622 serial_print_tty_state, serial_noflush_set_tty_state,
2623 serial_setbaudrate, serial_setstopbits): New functions.
2624 (do_serial_close): Rename serial_close.
2625 (serial_close, serial_un_fdopen): New functions. Call
2626 do_serial_close.
2627
2628 1999-09-13 James Ingham <jingham@leda.cygnus.com>
2629
2630 * symtab.c (decode_line_1): Find the rightmost parenthesis in the
2631 expression, not the leftmost. This allows us to parse function
2632 declarations with embedded function prototypes.
2633
2634 Mon Sep 13 18:39:31 1999 Jeffrey A Law (law@cygnus.com)
2635
2636 * pa64solib.c (pa64_sharedlibrary_info_command): Fix typos.
2637
2638 1999-09-13 Kevin Buettner <kevinb@cygnus.com>
2639
2640 * i386-tdep.c (i386_extract_return_value): ifdef'd so that
2641 non-linux targets will work again.
2642 (i386_do_registers_info, i386_print_register): Revert changes
2643 of 1999-09-03; these functions have been removed because they
2644 are Linux specific and break non-Linux builds. This functionality
2645 will be restored after FP support unification has been achieved.
2646 * i387-tdep.c (i387_print_register, void i387_float_info):
2647 Likewise.
2648 * config/i386/tm-linux.h (i387_float_info, FLOAT_INFO,
2649 DO_REGISTERS_INFO, i386_do_registers_info,
2650 i387_print_register): Likewise.
2651
2652 1999-09-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2653
2654 * event-top.c (call_readline): Change to accept gdb_client_data as
2655 param.
2656 (rl_callback_read_char_wrapper): New function to match what the
2657 event loop expects and what readline expects.
2658 (change_line_handler): Make call_readline point to
2659 rl_callback_read_char_wrapper, instead of rl_callback_read_char.
2660 (_initialize_event_loop): Ditto.
2661 (gdb_readline2): Change parameter to gdb_client_data.
2662 * event-top.h (call_readline, gdb_readline2): Change accordingly.
2663
2664 * event-loop.c (add_file_handler): Change 2nd par to
2665 handler_func*. No more need for casting.
2666 * event-loop.h (create_async_signal_handler): Change accordingly.
2667
2668 * inferior.h (fetch_inferior_event): Change parameter to void*.
2669 * infrun.c (fetch_inferior_event): Ditto.
2670
2671 1999-09-13 Stan Shebs <shebs@andros.cygnus.com>
2672
2673 * infrun.c (step_into_function): New function, broken out from the
2674 step_into_function label in handle_inferior_event.
2675 (handle_inferior_event): Change a goto into a function call.
2676
2677 1999-09-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2678
2679 * event-top.h: New file. All the exported vars and functions from
2680 event-top.c.
2681
2682 * event-loop.h (struct gdb_event, event_handler_func,
2683 file_handler, async_signal_handler, SELECT_MASK, fd_mask, NBBY,
2684 FD_SETSIZE, howmany, NFDBITS, MASK_SIZE): Move to event-loop.c.
2685 (struct prompts, PROMPT, PREFIX, SUFFIX, display_gdb_prompt,
2686 async_init_signals, set_async_editing_command,
2687 set_async_annotation_level, set_async_prompt, handle_stop_sig,
2688 handle_sigint, pop_prompt, push_prompt, gdb_readline2,
2689 mark_async_signal_handler_wrapper, async_request_quit,
2690 async_command_editing_p, exec_done_display_p,
2691 async_annotation_suffix, new_async_prompt, the_prompts,
2692 call_readline, input_handler, input_fd): Move to event-top.h.
2693 (All function prototypes): Don't use PARAMS anymore.
2694
2695 * event-loop.c: (struct gdb_event, event_handler_func,
2696 file_handler, async_signal_handler, SELECT_MASK, fd_mask, NBBY,
2697 FD_SETSIZE, howmany, NFDBITS, MASK_SIZE): Move to here from
2698 event-loop.h.
2699 Include event-top.h. Remove use of PARAMS. ANSIfy functions headers.
2700
2701 * event-top.c: Include event-top.h. Include "signals.h", not
2702 <signals.h>.
2703 Remove use of PARAMS. ANSIfy functions headers.
2704 (handle_stop_sig): move prototype to event-top.h.
2705
2706 * remote.c: Include event-top.h. Make it understand
2707 async_signal_handler type.
2708 * infrun.c: Include event-top.h.
2709 * mi-main.c: Ditto.
2710 * top.c Ditto.
2711 * utils.c: Ditto.
2712
2713 Mon Sep 13 18:54:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
2714
2715 * gdbarch.sh: Describe each of the fields.
2716
2717 Mon Sep 13 17:51:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
2718
2719 From 1999-09-12 Jim Blandy <jimb@cris.red-bean.com>:
2720 * gdbarch.sh (generating setters): Use sed to generate the proper
2721 indentation, not tr; tr's behavior is notoriously unportable.
2722
2723 1999-09-10 Jim Blandy <jimb@zwingli.cygnus.com>
2724
2725 * i387-tdep.c (print_387_control_bits): Don't print newline; the
2726 callers take care of that. (Thanks to H.J. Lu.)
2727
2728 1999-09-09 Stan Shebs <shebs@andros.cygnus.com>
2729
2730 * d10v-tdep.c (DMEM_START): Set to 0x2000000.
2731 (itrace, iuntrace, info itrace, itdisassemble, itracedisplay,
2732 itracesource): Add 'i' prefix to commands, so as not to conflict
2733 with generic trace commands.
2734
2735 1999-09-09 Fernando Nasser <fnasser@totem.to.cygnus.com>
2736
2737 * remote.c (_initialize_remote): Fix the specification of the
2738 "remote" prefix to set and show commands.
2739
2740 1999-09-09 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2741
2742 * event-loop.c (create_file_event): New function. Creates a gdb
2743 event for a given fd.
2744 (gdb_wait_for_event): Use create_file_event().
2745 * event-loop.h: export create_file_event().
2746
2747 * event-loop.c (delete_file_handler): Move the clearing of the
2748 mask to later on in the function, because we need it in order to
2749 deactivate the correct fd when using select().
2750
2751 * m32r-tdep.c (decode_prologue): Fix typo. Instructions starting
2752 with 0xf are branch instructions.
2753 (m32r_scan_prologue): Initialize framesize to 0.
2754
2755 1999-09-07 J.T. Conklin <jtc@redback.com>
2756
2757 * i386-stub.c (exceptionHook, oldExceptionHook): Removed.
2758 (handle_exception): Removed #if'd out exception hook code.
2759
2760 * i386-stub.c, m68k-stub.c (error): Removed unused variable.
2761
2762 * i386-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
2763 sparcl-stub.c, sparclet-stub.c (remcomInBuffer, remcomOutBuffer):
2764 Make static.
2765
2766 Tue Sep 7 14:06:22 1999 Kevin Buettner <kevinb@cygnus.com>
2767
2768 * config/i386/tm-linux.h (SOFUN_ADDRESS_MAYBE_MISSING):
2769 Define.
2770
2771 Tue Sep 7 08:18:01 1999 Kevin Buettner <kevinb@cygnus.com>
2772
2773 From Jim Blandy <jimb@cygnus.com>:
2774
2775 Step into calls to functions in shared libraries properly. See
2776 the comments for SKIP_SOLIB_RESOLVER atop infrun.c for details.
2777 * infrun.c (SKIP_SOLIB_RESOLVER): New macro.
2778
2779 1999-09-05 Fred Fish <fnf@cygnus.com>
2780
2781 * elfread.c (elf_symtab_read): Remove separately passed bfd
2782 pointer and offset. Pick up bfd pointer from objfile, and
2783 get offset from objfile's section_offsets.
2784
2785 Fri Sep 3 22:29:39 1999 Kevin Buettner <kevinb@cygnus.com>
2786
2787 * config/i386/tm-linux.h (REGISTER_NAMES): Changed register
2788 named "foo" to "fopo" which more accurately describes the FPU
2789 Operand Pointer Offset. The real reason for this change, of
2790 course, is that many programmers use $foo as a convenience
2791 variable and are likely to be unpleasantly surprised to find
2792 that they're unwittingly changing the state of their ia32 FPU.
2793
2794 1999-09-03 Jason Molenda (jsm@bugshack.cygnus.com)
2795
2796 * monitor.c (monitor_supply_register): Stop scanning val string
2797 if a newline is encountered.
2798
2799 1999-09-03 Jason Molenda (jsm@bugshack.cygnus.com)
2800
2801 monitor.c (TARGET_BUF_SIZE): New macro, defined to 2048.
2802 (monitor_expect_regexp, monitor_wait, monitor_dump_reg_block,
2803 monitor_dump_reg_block): Dump hard-coded constants in favor
2804 of TARGET_BUF_SIZE.
2805
2806 (readchar): Re-enable output of characters read from monitor when
2807 remotedebug is set.
2808
2809 (monitor_supply_register): Use ULONGEST to hold value.
2810 Replace strtoul() call with hand-coded loop to handle values
2811 larger than 'long'.
2812
2813 (monitor_store_register): Use ULONGEST to hold value.
2814
2815 Fri Sep 3 00:47:44 1999 Kevin Buettner <kevinb@cygnus.com>
2816
2817 [Merged linux/x86 floating point code from Bill Metzenthen,
2818 Jim Blandy, Anthony Green, H. J. Lu, and possibly others. The
2819 following remarks are Jim Blandy's.]
2820
2821 * findvar.c (extract_floating): Call TARGET_EXTRACT_FLOATING, if
2822 #defined.
2823 (store_floating): Call TARGET_STORE_FLOATING, if #defined.
2824
2825 * i386-tdep.c (i386_print_register, i386_do_registers_info): New
2826 functions.
2827 (i386_extract_return_value): GNU/Linux returns floating point
2828 values in a floating point register too.
2829 (set_disassembly_flavor): Add prototype.
2830 (i386_extract_return_value): Use FPDATA_REGNUM, not FP0_REGNUM (
2831 which wasn't the first FP data register).
2832 (i386_do_registers_info): Use FPSTART_REGNUM and FPEND_REGNUM as
2833 the limits of the FPU-related registers.
2834 (i386_extract_return_value): Tell GDB how to find return values
2835 larger than four bytes. (Thanks to Paul N. Hilfinger for the bug
2836 report.)
2837
2838 * i387-tdep.c (print_387_control_word): Break out bit-splitting into...
2839 (print_387_control_bits): New function.
2840 (print_387_status_word): Break out bit-splitting into...
2841 (print_387_status_bits): New function.
2842 (i387_print_register, i387_float_info, i387_hex_float_input): New
2843 functions.
2844 (i387_extract_floating, i387_store_floating): New functions.
2845
2846 * valprint.c (print_floating): Use macro TARGET_ANALYZE_FLOATING,
2847 if it's #defined. Tolerate values of `nonnegative' other than
2848 zero and one.
2849
2850 * i386-linux-nat.c: New file.
2851 * Makefile.in (ALLDEPFILES): Mention i386-linux-nat.c.
2852 (i386-linux-nat.o): New rule, listing dependencies.
2853 * config/i386/linux.mh (NATDEPFILES): Use i386-linux-nat.o, not
2854 the plain i386v4-nat.o.
2855 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
2856 * config/i386/xm-linux.h: Define HOST_I386.
2857
2858 * config/i386/tm-linux.h (FP0_REGNUM): Replaced by...
2859 (FPSTART_REGNUM, FPCONTROL_REGNUM, FPSTATUS_REGNUM, FPTAG_REGNUM,
2860 FPDATA_REGNUM, FPEND_REGNUM): New definitions.
2861 (REGISTER_BYTES): Changed accordingly.
2862 (SKIP_SOLIB_RESOLVER): #define this.
2863 (i386_linux_skip_solib_resolver): New declaration.
2864 (i387_float_info): Added extern decl for this function.
2865 (TARGET_EXTRACT_FLOATING, TARGET_STORE_FLOATING,
2866 TARGET_ANALYZE_FLOATING): Define.
2867 (i387_extract_floating, i387_store_floating): New extern decls.
2868 (I386_GNULINUX_TARGET): Define.
2869 (NUM_REGS, NUM_FREGS, REGISTER_NAMES, FP0_REGNUM, FPDATA_REGNUM,
2870 FPENV_BYTES, FPREG_RAW_SIZE, FPREG_BYTES, REGISTER_BYTES,
2871 REGISTER_BYTE, REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE,
2872 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
2873 TARGET_LONG_DOUBLE_BIT, FLOAT_INFO, DO_REGISTERS_INFO): New
2874 definitions, perhaps overriding those inherited from
2875 config/i386/tm-i386.h.
2876 (i386_do_registers_info, i387_print_register, double_to_i387,
2877 i387_to_double): New declarations.
2878 (LD_I387): Define iff both the host and target are using i387
2879 FPU's.
2880 (HEX_FLOAT_INPUT, REGISTER_CONVERTIBLE,
2881 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW,
2882 REGISTER_VIRTUAL_TYPE): Define these if LD_I387 is defined.
2883
2884 * source.c (list_command): List the right number of source lines,
2885 even if we're at the top of the file.
2886
2887 1999-09-02 Stan Shebs <shebs@andros.cygnus.com>
2888
2889 * infrun.c (step_over_function): New function, broken out from the
2890 step_over_function label in handle_inferior_event.
2891 (handle_inferior_event): Change a goto into a function call.
2892
2893 Thu Sep 2 18:26:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
2894
2895 * Makefile.in (GDB_WERROR_CFLAGS, GBB_WARN_CFLAGS): Define.
2896 (INTERNAL_CFLAGS): Update
2897 * configure.in (WERROR_CFLAGS, WARN_CFLAGS): Sync with
2898 ../sim/common/aclocal.m4.
2899 * configure: Re-generate.
2900
2901 Thu Sep 2 00:27:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
2902
2903 * Makefile.in (z8k-tdep.o): For moment, don't try to compile with
2904 -Werror. See Makefile.in.
2905 * z8k-tdep.c (z8k_set_pointer_size): Document problem.
2906
2907 * config/z8k/tm-z8k.h (z8k_print_register_hook, z8k_frame_chain,
2908 z8k_saved_pc_after_call, z8k_frame_saved_pc,
2909 z8k_set_pointer_size): Declare.
2910 (z8k_skip_prologue): Fix typo. Was mz8k_skip_prologue.
2911 (FRAME_CHAIN, PRINT_REGISTER_HOOK, FRAME_SAVED_PC,
2912 SAVED_PC_AFTER_CALL): Update.
2913 * z8k-tdep.c (z8k_print_register_hook): Rename
2914 z8k_print_register_hook.
2915 (z8k_frame_chain): Rename frame_chain.
2916 (z8k_saved_pc_after_call): Rename saved_pc_after_call.
2917 (z8k_frame_saved_pc): Rename frame_saved_pc.
2918 (z8k_print_register_hook): Fix printf.
2919 (read_memory_pointer): Add declaration.
2920 ("value.h"): Include.
2921 * Makefile.in (z8k-tdep.o): Add dependency on value.h.
2922
2923 * config/sparc/tm-sparc.h (PRINT_EXTRA_FRAME_INFO): Fix
2924 printf. calls
2925 * Makefile.in (remote-e7000.o): For moment, don't try to compile
2926 with -Werror. See Makefile.in.
2927 * sh-tdep.c (sh_show_regs): Fix printf calls.
2928 * xcoffsolib.c (solib_info): Fix Printf calls.
2929 * dink32-rom.c: #include "symfile.h" for generic_load and
2930 "inferior.h" for write_pc.
2931 * Makefile.in (dink32-rom.o): Update.
2932
2933 * config/mn10300/tm-mn10300.h (mn10300_store_struct_return),
2934 config/mn10200/tm-mn10200.h (mn10200_store_struct_return): Add
2935 declarations.
2936
2937 Tue Aug 31 00:48:27 1999 Andrew Cagney <cagney@amy.cygnus.com>
2938
2939 * config/mips/tm-tx49el.h (REGISTER_SIM_REGNO): Define.
2940
2941 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
2942 Pass REGISTER_SIM_REGNO converted register number to the
2943 simulator.
2944
2945 1999-09-01 Tom Tromey <tromey@cygnus.com>
2946
2947 * config/i386/nm-linux.h (PREPARE_TO_PROCEED): Added argument.
2948
2949 1999-09-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2950
2951 * values.c (value_virtual_fn_field): Remove unused var(s).
2952 * thread.c (prune_threads): Ditto.
2953 * symtab.c (lookup_transparent_type): Ditto.
2954 (decode_line_1): Ditto.
2955 (make_symbol_overload_list): Ditto.
2956 * rs6000-tdep.c (frame_get_saved_regs): Ditto.
2957 (set_processor): Ditto.
2958 * remote.c (remote_remove_breakpoint): Ditto.
2959 (remote_query): Ditto.
2960 (readtty): Ditto.
2961 * remote-sds.c (sds_fetch_registers): Ditto.
2962 (putmessage): Ditto.
2963 * ppcbug-rom.c (ppcbug_supply_register): Ditto.
2964 (ppcbug_open): Remove unused prototype.
2965 * parse.c (parse_nested_classes_for_hpacc): Remove unused var(s).
2966 * ocd.c (ocd_open): Ditto.
2967 (ocd_get_packet): Ditto.
2968 * monitor.c (monitor_error): Ditto.
2969 (monitor_wait_srec_ack): Ditto.
2970 * main.c (main): Ditto.
2971 * gdbtypes.c (count_virtual_fns): Ditto.
2972 * exec.c (exec_file_command): Ditto.
2973
2974 * event-top.c: Include handle_sigwinch() function prototype within
2975 appropriate #ifdef.
2976
2977 * eval.c (evaluate_subexp_standard): Remove unused variable.
2978 (evaluate_subexp_standard): Remove unused variables.
2979 * dink32-rom.c (dink32_supply_register): Remove unused variable.
2980 * dbxread.c (elfstab_build_psymtabs): Ditto.
2981 * command.c (do_setshow_command): Ditto.
2982 * breakpoint.c (solib_load_unload_1): Remove unused variables 'i'
2983 and 'sal'.
2984 (until_break_command): Remove unused variables 'arg1' and 'arg2'.
2985 (create_exception_catchpoint): Remove unused variable 'i'.
2986 * ax-gdb.c (gen_sub): Remove unused variable.
2987 (_initialize_ax_gdb): Ditto.
2988
2989 * ser-pipe.c (pipe_readchar): If timeout is expired return
2990 SERIAL_TIMEOUT.
2991 * ser-tcp.c (tcp_readchar): If timeout is expired return
2992 SERIAL_TIMEOUT.
2993
2994 Wed Sep 1 15:07:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
2995
2996 * version.h: New file.
2997 * Makefile.in (version_h): Define.
2998 (version.o): Add target.
2999
3000 * remote-array.c: #include "version.h".
3001 (version): Delete extern declarations.
3002 * Makefile.in (remote-array.o): Add dependency on version.h.
3003
3004 * top.c: #include "version.h".
3005 (version, host_name, target_name): Delete extern declarations.
3006 * Makefile.in (top.o): Add dependency on version.h.
3007
3008 * remote.c (remote_remove_watchpoint, remote_insert_watchpoint),
3009 remote-array.c (array_open), remote-mips.c (send_srec),
3010 dve3900-rom.c (store_bitmapped_register): Fix Printfs.
3011
3012 * mips-tdep.c (mips_print_extra_frame_info, print_unpack),
3013 m32r-rom.c (m32r_load_section), m32r-tdep.c (m32r_frame_chain),
3014 dsrec.c (load_srec): Fix printf problems.
3015
3016 Wed Sep 1 13:16:49 1999 Andrew Cagney <cagney@b1.cygnus.com>
3017
3018 * Makefile.in (monitor.o): For moment, don't try to compile with
3019 -Werror. monitor.c has -Wformat problems. See Makefile.in for
3020 more info.
3021
3022 Tue Aug 31 21:23:38 1999 Jeffrey A Law (law@cygnus.com)
3023
3024 * hppa-tdep.c (prologue_inst_adjust_sp): Correct offset computation
3025 for doubleword store instructions.
3026 (hppa_frame_find_saved_regs): Similarly.
3027
3028 Wed Sep 1 09:22:50 1999 Andrew Cagney <cagney@b1.cygnus.com>
3029
3030 * d30v-tdep.c (d30v_print_register):
3031 (tdisassemble_command):
3032
3033 * d10v-tdep.c (show_regs, trace_info, tdisassemble_command): Fix
3034 printf problems.
3035
3036 * remote-sim.c (dump_mem), remote-rdi.c (arm_rdi_create_inferior):
3037 Fix printf arguments.
3038
3039 * remote-mips.c, mips-tdep.c: Move declaration of
3040 ``mips_set_processor_type_command'' from here.
3041 * config/mips/tm-mips.h: To here.
3042 * remote-array.c: #include "inferior.h".
3043 * config/mips/tm-embed.h (remote_mips_stopped_by_watchpoint): Add
3044 declaration.
3045 * remote-mips.c (remote_mips_stopped_by_watchpoint): Define using
3046 ISO-C prototype.
3047 (monitor_supports_breakpoints): Integer variable.
3048
3049 * m32r-rom.c: #include "inferior.h" and <ctype.h>
3050 * config/m32r/tm-m32r.h (m32r_write_sp): Add declaration.
3051
3052 * config/i960/tm-i960.h (leafproc_return, i960_pop_frame): Add
3053 declaration.
3054 (POP_FRAME): Call i960_pop_frame.
3055 * i960-tdep.c (i960_pop_frame): Rename pop_frame.
3056 * mon960-rom.c: #include "inferior.h" for declaration of write_pc.
3057
3058 1999-08-15 Fred Fish <fnf@cygnus.com>
3059
3060 * objfiles.c (objfile_relocate): Use SIZEOF_SECTION_OFFSETS when
3061 allocating section_offsets array.
3062 * remote-os9k.c (rombug_wait): Ditto.
3063 * remote-vx.c (vx_add_symbols): Ditto.
3064 * remote.c (get_offsets): Ditto.
3065 (remote_cisco_objfile_relocate): Ditto.
3066 * rs6000-nat.c (vmap_symtab): Ditto.
3067
3068 * dstread.c (dst_symfile_offsets): Set section_offsets directly instead
3069 of returning a pointer to section offsets.
3070 * somread.c (som_symfile_offsets): Ditto.
3071 * xcoffread.c (xcoff_symfile_offsets): Ditto.
3072 * symfile.c (default_symfile_offsets): Ditto.
3073 (syms_from_objfile): The sym_offsets function has already set section
3074 offsets and no longer returns a value.
3075
3076 * xcoffread.c (scan_xcoff_symtab): Eliminate section_offsets passed
3077 separate from objfile.
3078 (xcoff_start_psymtab): Ditto.
3079 (START_PSYMTAB): Ditto.
3080 * os9kread.c (read_minimal_symbols): Ditto.
3081 (read_os9k_psymtab): Ditto.
3082 (os9k_start_psymtab): Ditto.
3083 (record_minimal_symbol): Ditto.
3084 * dbxread.c (START_PSYMTAB): Ditto.
3085 (start_psymtab): Ditto.
3086 * mdebugread.c (START_PSYMTAB): Ditto.
3087 (elfmdebug_build_psymtabs): Ditto.
3088 (mdebug_build_psymtabs): Ditto.
3089 (parse_partial_symbols): Ditto.
3090 (new_psymtab): Ditto.
3091 * dwarfread.c (dwarf_build_psymtabs): Ditto.
3092 * partial-stab.h (START_PSYMTAB): Ditto.
3093 * stabsread.h (start_psymtab): Ditto.
3094 * dwarf2read.c (dwarf2_build_psymtabs): Ditto.
3095 (dwarf2_build_psymtabs_easy): Ditto.
3096 (dwarf2_build_psymtabs_hard): Ditto.
3097 * hp-psymtab-read.c (hpread_build_psymtabs): Ditto.
3098 (hpread_quick_traverse): Ditto.
3099 (hpread_start_psymtab): Ditto.
3100 (scan_procs): Ditto.
3101 * hpread.c (hpread_build_psymtabs): Ditto.
3102 * symfile.h (dwarf2_build_psymtabs): Ditto.
3103
3104 * dbxread.c (read_dbx_symtab): Use ANOFFSET to access section
3105 offsets.
3106 * coffread.c (enter_linenos): Pass objfile instead of section
3107 offsets.
3108
3109 * dbxread.c (dbx_symfile_read): No need to explicitly pass
3110 text addr and size. Let read_dbx_symtab find them.
3111 (read_dbx_symtab): Get text addr and size from objfile.
3112 (dbx_symfile_read): Remove dead code (call to strlen);
3113
3114 1999-08-31 Michael Snyder <msnyder@cleaver.cygnus.com>
3115
3116 * Makefile.in: add rule for sol-thread.o.
3117 Add rule for linux-thread.o.
3118
3119 1999-08-13 Jim Kingdon <kingdon@redhat.com>
3120
3121 Threads code from gdb 4.18-codefusion-990706
3122 [Thanks to Eric Paire, H. J. Lu, Jim Blandy and others]
3123 * infrun.c (signal_stop_update, signal_print_update,
3124 signal_pass_update): new functions.
3125 * inferior.h: new prototypes for above functions.
3126 * target.h (enum strata): add thread stratum.
3127 * linux-thread.c: new file. Support for debugging linux threads.
3128 * config/i386/nm-linux.h: several new prototypes for above.
3129 * config/i386/linux.mh: add linux-thread.o to NATDEPFILES.
3130
3131 More threads code from the same place:
3132 * config/i386/tm-linux.h (REALTIME_LO, REALTIME_HI): Add
3133 definitions.
3134 * target.h (enum target_signal): Add TARGET_SIGNAL_REALTIME_32.
3135 * target.c (signals, target_signal_from_host,
3136 target_signal_to_host): Add clauses for
3137 TARGET_SIGNAL_REALTIME_32.
3138
3139 1999-08-31 Neil Schellenberger <neil.schellenberger@crosskeys.com>
3140
3141 * sol-thread.c (sol_thread_detach): strip thread-id out of
3142 inferior_pid, so that procfs_detach can't choke on it.
3143
3144 1999-08-31 J.T. Conklin <jtc@redback.com>
3145
3146 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
3147 sparcl-stub.c, sparclet-stub.c (getpacket): Remove 'buffer' arg,
3148 define it as a pointer to &remcomInBuffer[0].
3149 (handle_exception): Update.
3150
3151 * sparc-stub.c, sparcl-stub.c, sparclet-stub.c (handle_exception):
3152 Removed #ifdef'd out code which implements the non-standard 'b'
3153 (set baud rate) command.
3154
3155 1999-08-31 Stan Shebs <shebs@andros.cygnus.com>
3156
3157 * infrun.c (keep_going): New function, broken out from the
3158 keep_going label in handle_inferior_event.
3159 (handle_inferior_event): Change more gotos into function calls.
3160
3161 Tue Aug 31 02:29:27 1999 Jeffrey A Law (law@cygnus.com)
3162
3163 * hppa-tdep.c (read_unwind_info): Handle multiple unwind sections.
3164
3165 Tue Aug 31 15:28:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
3166
3167 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Fix printf
3168 format argument.
3169 * alpha-tdep.c (heuristic_proc_start): Ditto.
3170
3171 From Stan Shebs <shebs@andros.cygnus.com>:
3172 * defs.h (strlen_paddr): Fix prototype - add void argument list.
3173
3174 Tue Aug 31 14:02:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
3175
3176 * defs.h (gdb_print_host_address), utils.c
3177 (gdb_print_host_address): Rename gdb_print_address.
3178
3179 * expprint.c, gdbtypes.c, symmisc.c: Update.
3180
3181 *expprint.c: Use gdb_print_host_address when displaying native
3182 pointers.
3183
3184 Sat Aug 28 14:23:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
3185
3186 * scm-valprint.c (scm_ipruk), jv-valprint.c (java_value_print),
3187 cp-valprint.c (cp_print_class_member), exec.c (exec_files_info),
3188 remote.c (putpkt_binary, compare_sections_command,
3189 remote_cisco_section_offsets), dcache.c (dcache_info),
3190 breakpoint.c (break_at_finish_at_depth_command_1,
3191 break_at_finish_command_1), symfile.c (generic_load),
3192 (report_transfer_performance), top.c (get_prompt_1), f-valprint.c
3193 (f_val_print), maint.c (maintenance_translate_address): Fix printf
3194 -Wformat warnings. Use paddr, paddr_nz, sizeof_paddr, paddr_u and
3195 paddr_d to print addresses. Change ``d'' to ``ld''.
3196
3197 * utils.c (strlen_paddr): New function.
3198
3199 Tue Aug 31 01:36:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
3200
3201 * config/d30v/tm-d30v.h (d30v_frame_chain,
3202 d30v_init_frame_pc): Add declaration.
3203
3204 * arc-tdep.c (arc_pop_frame): Rename pop_frame.
3205 (arc_push_dummy_frame): Rename push_dummy_frame.
3206 (arc_set_cpu_type_command): Add declaration.
3207
3208 * config/arc/tm-arc.h (arc_pop_frame, arc_push_dummy_frame): Add
3209 declaration.
3210
3211 1999-08-30 Stan Shebs <shebs@andros.cygnus.com>
3212
3213 * infrun.c (prepare_to_wait): New function, broken out from the
3214 wfi_continue label in handle_inferior_event.
3215 (handle_inferior_event): Change more gotos into function calls.
3216
3217 1999-08-30 Michael Snyder <msnyder@cleaver.cygnus.com>
3218
3219 * tracepoint.c: -Wall warning cleanup.
3220 (parse_and_eval_memrange): remove (unused).
3221 (output_command, args_info, locals_info, registers_info): add decls.
3222 (getpkt, putpkt, remote_console_output): add decls.
3223 (isalnum, isspace): cast arg to avoid warning.
3224 (printf, fprintf, sprintf): use [fs]printf_vma for printing addrs.
3225
3226 Mon Aug 30 21:47:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
3227
3228 * d10v-tdep.c: #include "language.h".
3229
3230 Mon Aug 30 20:38:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
3231
3232 * configure.in (AC_CHECK_HEADERS): Check for <time.h>.
3233 * configure, acconfig.in: Re-generate.
3234
3235 * remote-rdp.c: #include <time.h>
3236
3237 * config/arm/tm-arm.h (arm_float_info): Add declaration.
3238
3239 * arm-tdep.c (convert_from_extended, convert_to_extended): Change
3240 double ptr arg to void ptr arg.
3241
3242 * config/arm/tm-arm.h (arm_frameless_function_invocation): Add
3243 declaration.
3244 (arm_frame_find_saved_regs): Rename frame_find_saved_regs.
3245 (convert_from_extended, convert_to_extended): Add declaration.
3246
3247 Mon Aug 30 19:05:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
3248
3249 * configure.in (WERR_CFLAGS): Separate the -Werror flag.
3250 * configure: Re-generate.
3251
3252 * Makefile.in (INTERNAL_CFLAGS): Re-define using
3253 INTERNAL_WARN_CFLAGS.
3254 (INTERNAL_WARN_CFLAGS): Define. Leave off WERR_CFLAGS.
3255 (tracepoint.o): Add explicit rule.
3256 (WERR_CFLAGS): Add definition.
3257
3258 Mon Aug 30 17:52:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
3259
3260 * utils.c: #include "event-loop.h" for declaration of
3261 async_request_quit.
3262 * Makefile.in (utils.o): Add dependency on event-loop.h.
3263
3264 * event-top.c (mark_async_signal_handler_wrapper,
3265 async_request_quit): Move declaration from here.
3266 * event-loop.h: To here.
3267
3268 * defs.h: Add declaration of exec.c:exec_set_section_offsets.
3269
3270 * event-top.c: #include "gdbcmd.h" which includes "command.h" and
3271 hence expose declaration of function dont_repeat.
3272
3273 * top.c (ISATTY), tracepoint.c (ISATTY), utils.c (ISATTY),
3274 event-top.c (ISATTY): Move definitions from here.
3275 * defs.h (ISATTY): To here. #include <unistd.h>.
3276
3277 * sol-thread.c, solib.c, source.c, sparcl-tdep.c, tracepoint.c,
3278 utils.c, win32-nat.c, wince.c, top.c, symfile.c, ser-unix.c,
3279 ser-tcp.c, procfs.c, maint.c, infttrace.c, hppa-tdep.c,
3280 ser-pipe.c, remote-rdp.c, main.c, inftarg.c, inflow.c,
3281 hpux-thread.c, hp-psymtab-read.c, go32-nat.c, fork-child.c,
3282 corelow.c, command.c: Do not #include <unistd.h>, moved to defs.h.
3283
3284 Mon Aug 30 15:14:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
3285
3286 * defs.h (struct tui_stream, enum streamtype): Move from here.
3287 * utils.c: To here.
3288
3289 * main.c (tui_file_fputs): Move from here.
3290 * utils.c: To here.
3291
3292 Sun Aug 29 10:03:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
3293
3294 * gdb-events.h, gdb-events.c, gdb-events.sh: New files.
3295
3296 1999-08-27 Michael Snyder <msnyder@cleaver.cygnus.com>
3297
3298 * solib.c (open_symbol_file_object): new function.
3299 Called when attaching to a new process, if there is no loaded
3300 symbol file. Attempts to locate the executable file for the
3301 attached process and load symbols from it.
3302 (solib_add): Call open_symbol_file_object if attaching to a
3303 new process and no open symbol file.
3304
3305 1999-08-27 Jason Molenda (jsm@bugshack.cygnus.com)
3306
3307 * config/i386/tm-sun386.h (GDB_TARGET_IS_SUN386): Definition
3308 removed--no longer checked anywhere in gdb.
3309
3310 1999-08-27 Stan Shebs <shebs@andros.cygnus.com>
3311
3312 * infrun.c (stop_stepping): New function, broken out from
3313 stop_stepping label in handle_inferior_event.
3314 (handle_inferior_event): Change gotos into function calls.
3315
3316 Fri Aug 27 20:13:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
3317
3318 * defs.h (LONGEST): Move definition to earlier in file - to just
3319 after BFD.
3320 (paddr_u, paddr_d): Declare.
3321 * utils.c (decimal2str): New function.
3322 (paddr_u, paddr_d): Define.
3323
3324 * remote.c (remote_cisco_section_offsets,
3325 compare_sections_command): Fix XprintfX arguments. Use paddr...
3326 (putpkt_binary): Fix XprintfX arguments.
3327
3328 Tue Aug 24 21:30:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
3329
3330 * arm-tdep.c (arm_init_extra_frame_info): Add braces. Recommended
3331 by gcc -Wparentheses.
3332
3333 1999-08-26 Stan Shebs <shebs@andros.cygnus.com>
3334
3335 * infrun.c (check_sigtramp2): New function, broken out from
3336 check_sigtramp2 label in handle_inferior_event.
3337 (handle_inferior_event): Change gotos into function calls.
3338
3339 Declare Tahoe configuration obsolete.
3340 * configure.host, configure.tgt: Comment out Tahoe configs.
3341 * Makefile.in: Comment out Tahoe-related action.
3342 * tahoe-tdep.c, config/tahoe/*: Comment out.
3343 * NEWS: Mention obsolete status.
3344
3345 1999-08-26 J.T. Conklin <jtc@redback.com>
3346
3347 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sh-stub.c,
3348 sparc-stub, sparcl-stub.c sparclet-stub.c (getpacket): If '$',
3349 the packet start character is received in the 'middle' of a
3350 packet, assume that packet end character has been lost and
3351 start a new packet.
3352
3353 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
3354 sparcl-stub.c sparclet-stub.c (getpacket): Changed to return ptr
3355 to first character of input buffer. Removed & 0x7f masks.
3356 (handle_exception): Don't access remcomInBuffer directly.
3357
3358 1999-08-25 Stan Shebs <shebs@andros.cygnus.com>
3359
3360 * breakpoint.c (disable_breakpoints_in_shlibs): Only disable
3361 enabled breakpoints.
3362
3363 Tue Aug 24 14:59:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
3364
3365 * tracepoint.c, remote.c, pa64solib.h, value.h, somsolib.h,
3366 solib.h, scm-lang.h, language.h, inferior.h, defs.h, coff-solib.h,
3367 ch-lang.h, breakpoint.h, annotate.h: Remove #if __STDC__ wrapping
3368 struct declarations.
3369
3370 * config/sparc/nm-sun4sol2.h, config/mn10300/tm-mn10300.h,
3371 config/mn10200/tm-mn10200.h, config/i386/tm-i386.h,
3372 config/i386/tm-i386v.h, config/i386/nm-i386sol2.h,
3373 config/pa/nm-hppah.h, config/rs6000/nm-rs6000.h,
3374 config/sparc/tm-sp64.h, config/v850/tm-v850.h,
3375 config/tic80/tm-tic80.h, config/sparc/tm-sparc.h,
3376 config/sh/tm-sh.h, config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
3377 config/mips/tm-mips.h, config/m68k/tm-m68k.h,
3378 config/m32r/tm-m32r.h, config/i960/tm-mon960.h,
3379 config/fr30/tm-fr30.h, config/h8300/tm-h8300.h,
3380 config/arm/tm-arm.h, config/alpha/tm-alpha.h,
3381 config/a29k/tm-a29k.h: Ditto.
3382
3383 Wed Aug 25 10:45:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
3384
3385 * Makefile.in (gdb$(EXEEXT)): Add dependency on TDEPLIBS.
3386
3387 * config/arm/arm.mt (TDEPLIBS): Define. Move libangsd.a to here.
3388 (TDEPFILES): From here.
3389
3390 1999-08-24 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3391
3392 * top.c (init_main): Add new set/show command exec-done-display,
3393 default value is off.
3394 * event-loop.h: Export exec_done_display_p.
3395 * event-top.c: New variable exec_done_display_p.
3396 * infrun.c (complete_execution): Print completion message if
3397 corresponding flag is set.
3398
3399 * top.c (DEFAULT_PROMPT): Add space after "(gdb)" at end of prompt.
3400
3401 From: J.T. Conklin <jtc@redback.com>
3402 * top.c (DEFAULT_PROMPT): Set to "(gdb)" if not already defined.
3403 (init_main): Always use DEFAULT_PROMPT.
3404
3405 Tue Aug 24 03:23:31 1999 Jeffrey A Law (law@cygnus.com)
3406
3407 * hppa-tdep.c: Remove useless "purecov: deadcode" comments.
3408 (hppa_use_struct_convention): Update for PA64.
3409 (hppa_frame_saved_pc): Properly extract the saved PC in a call
3410 dummy frame.
3411 (in_solib_call_trampoline): Return nonzero if we are in a function
3412 called ".stub".
3413 (prologue_inst_adjust_sp): Handle std,ma.
3414 (skip_prologue_hard_way): Handle more PA2.0/PA64 insns.
3415 (hppa_frame_find_saved_regs): Similarly. Handle indirect save of
3416 %r3 into the stack.
3417
3418 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Define.
3419 (CALL_DUMMY_BREAKPOINT_OFFSET): Define.
3420
3421 Tue Aug 24 14:59:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
3422
3423 * Makefile.in (gdb$(EXEEXT)): Add dependency on main.o that was
3424 lost when libgdb.a was added.
3425
3426 Tue Aug 24 14:26:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
3427
3428 * gdbarch.c, gdbarch.h: Convert to pure ISO-C.
3429
3430 * gdbarch.sh: New file.
3431 * gdbarch.c, gdbarch.h: Add note describing gdbarch.sh
3432
3433 Mon Aug 23 19:36:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
3434
3435 * Makefile.in (libgdb.a): New target.
3436 (gdb$(EXEEXT)): Add dependency on libgdb.a.
3437 (libgdb-files, LIBGDB_OBS, libgdb, LIBGDBDEPS, LIBGDBFILES): Delete.
3438
3439 Mon Aug 23 10:16:32 1999 Jeffrey A Law (law@cygnus.com)
3440
3441 * infttrate.c (child_pid_to_exec_file): Find the correct base
3442 of the stack for PA64.
3443
3444 * pa64solib.c: Fix some minor whitespace problems.
3445 (bfd_lookup_symbol): New function.
3446 (pa64_solib_create_inferior_hook): Find the address __dld_break
3447 in the dynamic linker. Try to set a shlib event breakpoint in
3448 that function.
3449 (add_to_solist): Do not add the same shared library to the shlib
3450 list more than once.
3451
3452 Sun Aug 22 14:49:40 1999 Andrew Cagney <cagney@b1.cygnus.com>
3453
3454 * value.h (enum lval_type): Move declaration from here.
3455 * defs.h (enum lval_type): To here.
3456 * frame.h, gdbarch.h: Delete incomplete declaration of ``enum
3457 lval_type''.
3458
3459 1999-08-20 Michael Snyder <msnyder@cleaver.cygnus.com>
3460
3461 * breakpoint.c (can_use_hardware_watchpoint): reject expressions
3462 that refer to registers or register variables.
3463
3464 Fri Aug 20 10:53:38 1999 Jeffrey A Law (law@cygnus.com)
3465
3466 * hppa-tdep.c (hppa_fix_call_dummy): Provide PA2.0W aware code.
3467
3468 * pa64solib.c pa64solib.h: New files.
3469
3470 * config/pa/hppa64.mt: Delete commented out code that is and
3471 never will be appropriate for this target.
3472 * config/pa/hpux11w.mt (TDEPFILES): Remove SOM references. Also
3473 remove pa64solib.o.
3474 * config/pa/hpux11w.mh (NATDEPFILES): Remove SOM references.
3475
3476 * configure.host; Use "hpux11w" and "hpux11" instead of
3477 "hpux1100w" and "hpux1100" respectively
3478 * config/pa/hpux11w.mh: Renamed from hpux1100w.mh.
3479 * config/pa/hpux11w.mt, config/pa/hpux11.mh: Likewise.
3480 * config/pa/hpux11.mt: Likewise.
3481
3482 1999-08-19 Michael Snyder <msnyder@cleaver.cygnus.com>
3483
3484 * breakpoint.h (target_hw_bp_type): new enum.
3485 * breakpoint.c (insert_breakpoints): use enum instead of consts.
3486 (remove_breakpoint): use enum instead of consts.
3487 (throughout): use "warning" instead of "fprintf(stderr, ..."
3488 [Also clean up a bunch of excessively long lines.]
3489
3490 1999-08-19 J.T. Conklin <jtc@redback.com>
3491
3492 * i386-stub.c (waitabit): Removed.
3493 (breakpoint): Update.
3494
3495 * i386-stub.c, m32r-stub.c, sparc-stub.c, sparcl-stub.c,
3496 sparclet-stub.c (set_debug_traps): Don't send gratuitous ACK.
3497
3498 * m68k-stub.c (putpacket): Restore code so that packets are sent
3499 until an ACK is received.
3500
3501 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
3502
3503 * breakpoint.c (bpstat_stop_status): Accept triggered addresses
3504 anywhere inside the region occupied by a watched variable as a
3505 sign that the watchpoint fired. Don't stop if some watchpoint
3506 was triggered, but its address doesn't match the address of this
3507 watchpoint.
3508 (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New macro.
3509 Default definition is to call TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT.
3510 (can_use_hardware_watchpoint): Call TARGET_REGION_OK_FOR_HW_WATCHPOINT;
3511 if it returns zero, return zero immediately.
3512 (insert_breakpoints): Try to insert watchpoints for all the values
3513 on the value chain, even if some of them fail to insert. Remove
3514 the breakpoint if parts of its value chain couldn't be inserted.
3515
3516 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
3517
3518 * go32-nat.c (go32_stopped_by_watchpoint): Remove unused code.
3519
3520 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
3521
3522 * go32-nat.c (tcgetpgrp, tcsetpgrp): New functions.
3523
3524 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
3525
3526 * go32-nat.c (go32_wait): If we are in a single-step mode, and the
3527 next instruction is INT nn or INTO, use a temporary breakpoint to
3528 simulate single-step mode, and reset the trace flag.
3529
3530 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
3531
3532 * go32-nat.c (wp_op): New typedef.
3533 (SHOW_DR): Print the length of watched region as well.
3534 (go32_insert_aligned_watchpoint): Remove unused argument PID. All
3535 callers and the prototype changed.
3536 (go32_handle_nonaligned_watchpoint): Renamed from
3537 go32_insert_nonaligned_watchpoint. Now handles all operations on
3538 non-aligned watchpoints: insertion, deletion, and counting. If
3539 called with wp_count as the first argument, return the count of
3540 debug registers needed to watch the region. Don't break out of
3541 the loop before all the addresses in the region are processed.
3542 (go32_remove_watchpoint): Call go32_remove_aligned_watchpoint to
3543 do the actual work.
3544 (go32_remove_aligned_watchpoint): New function, modeled after
3545 go32_insert_aligned_watchpoint. Removes watchpoints that watch
3546 regions of arbitrary length by calling
3547 go32_handle_nonaligned_watchpoint as needed.
3548 (go32_region_ok_for_watchpoint): New function, called from
3549 can_use_hardware_watchpoint via the new macro
3550 TARGET_REGION_OK_FOR_HW_WATCHPOINT.
3551
3552 * config/i386/nm-go32.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
3553 Define to call go32_region_ok_for_watchpoint.
3554 (DECR_PC_AFTER_HW_BREAK): Define back to zero (previous redefinition
3555 to 1 was due to a bug in go32-nat.c).
3556
3557 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
3558
3559 * go32-nat.c (cleanup_dregs): New function.
3560 (go32_mourn_inferior): Call it.
3561 (IS_REG_FREE, LOCAL_ENABLE_REG, GLOBAL_ENABLE_REG, DISABLE_REG,
3562 SET_BREAK, SET_WATCH, IS_WATCH, WATCH_HIT): Protect arguments with
3563 parentheses.
3564 (SET_BREAK): Increment the debug register's reference count.
3565 (DR_DEF): New macro, returns the access and length bits of the
3566 breakpoint.
3567 (SHOW_DR): Print the reference count of each register. Disable or
3568 enable print-out depending on an environment variable GDB_SHOW_DR.
3569 (go32_insert_aligned_watchpoint): Look for an occupied debug
3570 register with the same address and access/length bits, and reuse
3571 it by incrementing reference the count, before occupying another
3572 register. Return zero upon success.
3573 (go32_insert_nonaligned_watchpoint): Pass the read/write bits to
3574 go32_remove_watchpoint.
3575 (go32_remove_watchpoint): Accept an additional parameter: the
3576 read/write bits of the watchpoint to remove, and only remove a
3577 watchpoint if it's occupied and its address and read/write bits
3578 match. Only disable the register if its reference count is zero;
3579 otherwise just decrease the reference count.
3580 (go32_remove_hw_breakpoint): Only decrease reference count and
3581 disable the debug register if it is occupied and its access bits
3582 match those of an instruction breakpoint.
3583 (go32_insert_hw_breakpoint): Before occupying another debug
3584 register, look for an already occupied register that defines an
3585 instruction breakpoint with the same address. If found, increment
3586 its reference count. Call SHOW_DR even if failed to insert a
3587 breakpoint.
3588
3589 * config/i386/nm-go32.h (target_remove_watchpoint): Accept the
3590 TYPE argument as well.
3591
3592 Wed Aug 18 17:47:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
3593
3594 * mips-tdep.c: Add more comments.
3595
3596 1999-08-17 Stan Shebs <shebs@andros.cygnus.com>
3597
3598 * blockframe.c: Don't use PARAMS anymore, remove obsolete comment
3599 about frameless functions.
3600
3601 1999-08-16 Michael Snyder <msnyder@cleaver.cygnus.com>
3602
3603 * thread.c (delete_thread): delete any step_resume breakpoint
3604 held by the thread. (prune_threads): call delete_thread.
3605 * breakpoint.c (breakpoint_init_inferior): if startup, then
3606 delete any remaining step_resume breakpoints.
3607 * infrun.c (handle_inferior_event): add cautionary comment.
3608
3609 1999-08-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
3610
3611 * remote.c (remote_async_mourn): New function. Async version of
3612 remote_mourn().
3613
3614 1999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
3615
3616 * terminal.h [__GO32__]: Remove conditional; DJGPP now supports
3617 termios.
3618
3619 1999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
3620
3621 * command.c (CANT_FORK) [__MSDOS__]: Define.
3622 (shell_escape) [CANT_FORK]: If ARG is NULL, pass an empty string
3623 to `system'.
3624 [__DJGPP__]: Return to the original directory after the shell
3625 exits.
3626
3627 1999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
3628
3629 * config/i386/xm-go32.h (ROOTED_P): Don't reference X[1] if X[0]
3630 is a null character.
3631
3632 * config/i386/nm-go32.h (DECR_PC_AFTER_HW_BREAK): Define to 1.
3633
3634 1999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
3635
3636 * go32-nat.c (redir_cmdline_parse, redir_cmdline_delete,
3637 redir_to_child, redir_to_debugger, redir_debug_init)
3638 [__DJGPP_MINOR__ < 3]: Dummy stubs for redirecting debuggee's
3639 standard handles.
3640 (print_387_status): Print "last FP instruction", not "last
3641 exception". Restore the upper 5 bits of the opcode that aren't
3642 stored in the FPU state. Print the FPU stack in its physical
3643 order, not relative to ST(0). Print "special", not "trap" for
3644 unnormals and infinities. Print all 10 bytes of each FP register,
3645 and print them with 19 significant digits.
3646 (regno_mapping): Make the mapping consistent with tm-go32.h.
3647 (sig_map): Add mappings for SIGQUIT, SIGFPE, SIGALRM. Map NMI to
3648 SIGBUS.
3649 (excep_map): New variable, maps GDB signals to DJGPP exceptions.
3650 (go32_attach): Signal an error: we cannot attach to other
3651 processes.
3652 (go32_resume): Record the signal with which the inferior should be
3653 resumed, mapped to the DJGPP exception number.
3654 (go32_wait): Pass the signal recorded in go32_resume to the
3655 debuggee. Save and restore debugger's and debuggee's current
3656 working directory.
3657 [__DJGPP_MINOR__ < 3]: Save and restore inferior's FPU state.
3658 (store_register): FPU regsiters have numbers less than 31.
3659 (go32_kill_inferior): Delete the parsed command-line storage.
3660 (go32_create_inferior): Initialize the parsed command-line
3661 storage. Parse the command line and create the redirections for
3662 inferior's standard handles.
3663 [__DJGPP_MINOR__ < 3]: Init the inferior's FPU state.
3664 (ignore2): Function deleted.
3665 (device_mode): New function, switches a character device between
3666 raw and cooked mode.
3667 (go32_terminal_init): Invalidate the raw/cooked mode information.
3668 (go32_terminal_info): Print whether the inferior's terminal is in
3669 raw or cooked mode.
3670 [__DJGPP_MINOR__ > 2]: Say if standard handles are redirected or
3671 closed by the inferior.
3672 (go32_terminal_inferior): Switch standard handles to the
3673 inferior's files/devices. Put the inferior's input device to
3674 raw/cooked mode, exactly like we found it last time.
3675 (go32_terminal_ours): Restore debugger's standard handles and put
3676 the terminal into cooked mode. Save the mode of inferior's input
3677 device.
3678 (init_go32_ops): Assign go32_ops.to_attach,
3679 go32_ops.to_terminal_info, go32_ops.to_terminal_ours_for_output.
3680 Initialize inferior's cwd and the command-line storage.
3681
3682 Mon Aug 16 14:29:30 1999 Jeffrey A Law (law@cygnus.com)
3683
3684 * config/pa/tm-hppa.h (ARGS_GROW_DOWNWARD): Define.
3685 * config/pa/tm-hppa64.h (ARGS_GROW_DOWNWARD): Undefine.
3686 * hppa-tdep.c (hppa_push_arguments): Handle arguments growing in
3687 both directions depending ARGS_GROW_DOWNWARD.
3688 (hppa_find_saved_regs): Update for 64bit wide registers & pointers
3689 and PA64 ABI.
3690
3691 * hppa-tdep.c (hppa_pop_frame): Various fixes for 64bit wide
3692 registers and pointers.
3693 (hppa_fix_call_dummy, skip_trampoline_code): Likewise.
3694 (restore_pc_queue): Update tests for width of memory loads.
3695 (hppa_push_arguments): Delete version that was #if 0'd out.
3696
3697 * hppa-tdep.c (push_dummy_frame): Handle the new 64it ABI.
3698 (find_dummy_frame_regs): Corresponding changes.
3699
3700 * hppa-tdep.c (read_unwind_info): Initialize obj_private->dp.
3701 (internalize_unwinds): Improve test for when to use segment
3702 relative code for unwinder bounds.
3703 (rp_saved): Fix offset of saved return pointer for the 64bit ABI.
3704 (hppa_frame_saved_pc): Various updates to handle 64bit registers
3705 and pointers.
3706 (frame_chain, restore_pc_queue): Likewise.
3707
3708 * hppa-tdep.c (rp_saved): RP is saved at frame-16 when
3709 pointers are 64bits wide.
3710
3711 * hppa-tdep.c (record_text_segment_lowaddr): New function.
3712 (internalize_unwinds): Use it if addressess are 8 bytes wide.
3713
3714 * symfile.c (syms_from_objfile): No longer warn if the lowest
3715 section does not have SEC_CODE set.
3716
3717 * Makefile.in (pa64solib.o): Add dependencies.
3718
3719 * hppah-nat.c (store_inferior_registers): Do not try to write a
3720 nonzero value to the high part of IPSW. Fix typo in unable to store
3721 warning.
3722
3723 * config/pa/tm-hppa.h (opd_data structure): Delete. Not actually
3724 needed.
3725 (struct obj_private_struct): Add new entry for the objfile's DP
3726 value.
3727 * config/pa/tm-hppa64.h (CALL_DUMMY): Add a nop to make it an even
3728 number of instructions. Pack the dummy into word sized hunks.
3729 (CALL_DUMMY_LENGTH): Update appropriately.
3730 (PC_IN_CALL_DUMMY, CALL_DUMMY_LOCATION_AFTER_TEXT_END): Delete.
3731
3732 Mon Aug 16 19:08:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
3733
3734 * configure.in: Try -lsocket when looking for socketpair.
3735 * configure, config.h: Re-generate.
3736
3737 1999-08-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3738
3739 From Christopher Faylor <cgf@cygnus.com>:
3740
3741 * event-loop.c (gdb_wait_for_event): Before going to wait for
3742 another event with select or poll, flush the error and the output
3743 streams.
3744
3745 * event-top.c (gdb_readline2): Do not buffer the input, because
3746 doing so can interfere with select/poll in bad ways.
3747
3748 Fri Aug 13 17:36:56 1999 Eli Zaretskii <eliz@is.elta.co.il>
3749
3750 * maint.c (maintenance_dump_me) [__DJGPP__]: Simulate a core dump
3751 with SIGABRT.
3752 * utils.c (quit) [__MSDOS__]: Don't mention SIGINT, since it's not
3753 gonna happen.
3754 (notice_quit): No need to define this function for the DJGPP port.
3755
3756 1999-08-13 James Ingham <jingham@leda.cygnus.com>
3757
3758 * arm-tdep.c (arm_frameless_function_invocation): SKIP_PROLOGUE
3759 macro no longer modifies its argument. Update uses to accord.
3760
3761 * config/arm/arm.mt (TDEPFILES): Add the remote-rdi.o to the
3762 TDEPFILES.
3763 * configure.tgt: Add rdi-share to configdir for the Arm targets.
3764
3765 Fri Aug 13 11:16:32 1999 Jeffrey A Law (law@cygnus.com)
3766
3767 * hppah-nat.c (store_inferior_registers): Revamp to be PA2.0W
3768 aware.
3769
3770 * infttrace.c (ttrace_write_reg_64): New function.
3771
3772 * hp-symtab-read.c (is_in_import_list): Delete extern declaration.
3773 * somread.c (is_in_import_list): Delete function.
3774 * objfiles.c (is_in_import_list): New function.
3775 * objfiles.h (is_in_import_list): Declare.
3776
3777 * config/pa/tm-hppa64.h (GDB_TARGET_IS_HPPA20W): Define before
3778 including tm-hppah.h.
3779 (PC_IN_CALL_DUMMY): Define.
3780 (HPUX_1100): Similarly.
3781 * config/pa/tm-hppa.h (somsolib.h, pa64solib.h): Conditionalize
3782 includes on GDB_TARGET_IS_HPPA20W.
3783
3784 * configure.host: Distinguish between wide and narrow modes
3785 for hpux11.
3786 * config/pa/hpux1100w.mh, config/pa/hpux1100w.mt: New files.
3787
3788 * config/pa/tm-hppa64.h (STACK_ALIGN): Redefine.
3789 (REG_PARM_STACK_SPACE): Likewise.
3790
3791 * config/pa/tm-hppa.h (CLEAN_UP_REGISTER_VALUE): Handle 64bit
3792 PA target correctly.
3793 (REG_PARM_STACK_SPACE): Define.
3794 (struct unwind_table_entry): region_start and region_end are
3795 CORE_ADDRs.
3796 (typedef opd_data): New.
3797 (obj_private_data_t): Include pointer to opd_data structure.
3798
3799 1999-08-13 Keith Seitz <keiths@cygnus.com>
3800
3801 * stabsread.c (stabsread_clear_cache): New funciton which clears
3802 an optimization cache of the reader.
3803
3804 * coffread.c (coff_symfile_finish): Give stabs reader a chance to
3805 clean up.
3806
3807 * win32-nat.c (handle_load_dll): Don't suppress re-reading symbols
3808 from a DLL if an objfile for it already exists. (Not that this should
3809 happen anymore anyway...)
3810
3811 1999-08-13 Keith Seitz <keiths@cygnus.com>
3812
3813 * config/mcore/tm-mcore.h (SAVE_DUMMY_FRAME_TOS): Define for MCore,
3814 which also requires that the stack pointer be saved for call
3815 dummies BEFORE arguments get pushed onto it.
3816
3817 1999-08-12 Stan Shebs <shebs@andros.cygnus.com>
3818
3819 From Eli Zaretskii <eliz@is.elta.co.il>:
3820 * source.c (mod_path) [_WIN32 || __DJGPP__]: Don't remove trailing
3821 slash from "d:/". Don't overstep the beginning of name.
3822 [_WIN32 || __MSDOS__]: Convert "d:" to "d:.", otherwise appending
3823 a slash changes its meaning.
3824 (openp): Use SLASH_P, not equality with SLASH_CHAR.
3825 (print_source_lines_base) [CRLF_SOURCE_FILES]: Skip \r only before
3826 a \n.
3827 (forward_search_command) [CRLF_SOURCE_FILES]: Remove \r at the end
3828 of all lines.
3829 (reverse_search_command) [CRLF_SOURCE_FILES]: Likewise.
3830
3831 * gnu-regex.c (CHAR_CLASS_MAX_LENGTH): Don't use wide characters
3832 unless HAVE_BTOWC is defined.
3833
3834 Fri Aug 13 10:20:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
3835
3836 From J.T. Conklin <jtc@redback.com>:
3837 * gdbinit.in: Change the template .gdbinit to match the recent
3838 fatal error handling change.
3839
3840 1999-08-11 Keith Seitz <keiths@cygnus.com>
3841
3842 * maint.c (maintenance_internal_error): Fix typo in prototype.
3843
3844 Wed Aug 11 15:38:05 1999 Andrew Cagney <cagney@amy.cygnus.com>
3845
3846 * remote.c (remote_rcmd): Pass an empty command across to the
3847 target. Check for and handle an ``Enn'' return status.
3848
3849 Tue Aug 10 13:59:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
3850
3851 * maint.c (_initialize_maint_cmds): Add ``maintenance
3852 internal-error'' command.
3853 (maintenance_internal_error): New function.
3854
3855 1999-08-10 James Ingham <jingham@leda.cygnus.com>
3856
3857 * top.c: Remove the disassembly_flavor_hook, use the new set_hook
3858 instead.
3859 * defs.h: Ditto.
3860 * arm-tdep.c (set_disassembly_flavor_sfunc): Ditto.
3861
3862 1999-08-10 Michael Snyder <msnyder@cleaver.cygnus.com>
3863
3864 * config/i386/nm-i386sol2.h (FIND_NEW_THREADS): remove, obsolete.
3865 * config/sparc/nm-sun4sol2.h (FIND_NEW_THREADS): remove, obsolete.
3866
3867 1999-08-10 J.T. Conklin <jtc@redback.com>
3868
3869 * configure.tgt (i[3456]86-*-aout*, i[3456]86-*-coff*,
3870 i[3456]86-*-elf*): Use embed.mt.
3871 * config/i386/embed.mt: New file.
3872
3873 1999-08-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3874
3875 * remote.c (remote_async_open_1): Remove casting in call to
3876 add_file_handler.
3877 (extended_remote_async_create_inferior): Ditto.
3878
3879 * event-top.c (change_line_handler): Ditto.
3880 (_initialize_event_loop): Ditto.
3881
3882 * infrun.c (complete_execution): Ditto.
3883
3884 * event-loop.c (add_file_handler): Change proc parameter to be ptr
3885 to func with void parameter, rather than void*. Coerce second
3886 paramter in calls to create_file_handler. Replace
3887 async_handler_func and file_handler_func with handler_func.
3888
3889 * event-loop.h: Get rid of typedefs for file_handler_func and
3890 async_handler_func, just have one, and call it handler_func.
3891 Replace async_handler_func and file_handler_func occurrences with
3892 handler_func.
3893
3894 Tue Aug 10 03:13:03 1999 Jeffrey A Law (law@cygnus.com)
3895
3896 * hppa-tdep.c: Delete random #if 0 code.
3897 (is_branch): Handle new branching opcodes from PA2.0
3898 (inst_saves_gr, inst_saves_fr): Handle additional instructions
3899 used to save general and floating point registers in the stack.
3900 (skip_prologue_hard_way): Handle additional instructions to
3901 save the return pointer in the stack.
3902 (after_prologue): Fix mis-guided and incorrect code to find
3903 the end of the prologue using debug symbols.
3904 (hppa_skip_prologue): Generally clean up comments, lose code
3905 which does not apply to the PA, etc.
3906
3907 Sun Aug 8 17:53:41 1999 Andrew Cagney <cagney@amy.cygnus.com>
3908
3909 * MAINTAINERS: Make Andrew Cagney the mn10300 maintainer.
3910 Transfer responsibility for the PowerPC from Andrew Cagney to
3911 Elena Zannoni.
3912
3913 Tue Aug 10 13:59:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
3914
3915 Based on code from J.T. Conklin <jtc@redback.com>:
3916 * utils.c (internal_error): Make quit? and coredump? separate
3917 questions so that the user can dump-core and not quit.
3918 (internal_error): Cleanup error message.
3919
3920 1999-08-09 Tom Tromey <tromey@cygnus.com>
3921
3922 * kod-cisco.c (cisco_kod_open): Removed incorrect `arg' argument.
3923
3924 Sun Aug 8 12:06:47 1999 Fred Fish <fnf@cygnus.com>
3925
3926 * coffread.c (process_coff_symbol): Remove section_offsets from
3927 prototype and function definition. Get section_offsets from the
3928 passed objfile and pass it on to callees the same way.
3929 (coff_symtab_read): Ditto.
3930 (coff_symfile_read): Ditto.
3931 * dbxread.c (read_dbx_dynamic_symtab): Ditto.
3932 (read_dbx_symtab): Ditto.
3933 (dbx_symfile_read): Ditto.
3934 (coffstab_build_psymtabs): Ditto.
3935 (elfstab_build_psymtabs): Ditto.
3936 (stabsect_build_psymtabs): Ditto.
3937 * dstread.c (dst_symfile_read): Ditto.
3938 * elfread.c (elf_symfile_read): Ditto.
3939 * jv-class.c (jv_class_symfile_read): Ditto.
3940 * mipsread.c (mipscoff_symfile_read): Ditto.
3941 * nlmread.c (nlm_symfile_read): Ditto.
3942 * os9kread.c (os9k_symfile_read): Ditto.
3943 * somread.c (som_symfile_read): Ditto.
3944 * stabsread.h (elfstab_build_psymtabs): Ditto.
3945 * xcoffread.c (xcoff_initial_scan): Ditto.
3946
3947 * symfile.h (sym_read): Remove section_offsets from prototype.
3948 * symfile.c (syms_from_objfile): Call sym_read without
3949 section_offsets.
3950 (reread_symbols): Ditto.
3951
3952 * elfread.c (elfstab_offset_sections): Use SIZEOF_SECTION_OFFSETS
3953 to allocate sections offsets array.
3954 * xcoffread.c (xcoff_symfile_offsets): Ditto.
3955
3956 * partial-stab.h (section_offsets): Get from objfile.
3957 * dbxread.c (read_dbx_symtab): Fix typo that made -1 casted
3958 to a CORE_ADDR look like an subtraction expression.
3959 * objfiles.h: Add some comments.
3960 * symfile.c: Add some comments.
3961 * objfiles.c: Add some comments.
3962 (objfile_relocated): Use ALL_OBJFILE_OSECTIONS to iterate over
3963 sections.
3964 (find_pc_sect_sections): Use ALL_OBJSECTIONS to iterate over all
3965 sections in all objfiles.
3966 * symfile.c (syms_from_objfile): Use ALL_OBJFILE_OSECTIONS.
3967
3968 * irix5-nat.c (symbol_add_stub): Fix typo that made taking the
3969 address of lowest_sect with '&' look like a bitwise and op.
3970 * osfsolib.c (symbol_add_stub): Ditto.
3971 * solib.c (symbol_add_stub): Ditto.
3972 * symfile.c (syms_from_objfile): Ditto.
3973
3974 * dwarf2read.c (dwarf2_build_psymtabs_hard): Minor format tweak.
3975 * symfile.c (syms_from_objfile): Ditto, and fix typo.
3976 * top.c (init_main): Fix typo in comment (DEFULAT_PROMPT).
3977 * doc/gdbint.texinfo (find_sym_fns): This replaces symfile_init.
3978
3979 1999-08-08 James Ingham <jingham@leda.cygnus.com>
3980
3981 * remote.c (remote_insert_breakpoint): Fix typo in Z packet support.
3982 Also move Z packet support OUTSIDE of REMOTE_BREAKPOINT ifdef,
3983 since this is not set for all targets that support the Z packet.
3984
3985 Fri Aug 6 17:17:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
3986
3987 * defs.h (fatal): Delete declaration.
3988 (internal_error): Declare.
3989 * utils.c (nomem): Call internal_error instead of fatal.
3990 (fatal_dump_core): Delete.
3991 (malloc_botch): Print message direct to stderr.
3992 (fatal): Delete definition.
3993 * utils.c (internal_error): Define.
3994
3995 * gdbarch.h, gdbarch.c, hppah-nat.c, ch-exp.c, dsrec.c, sh-tdep.c,
3996 infptrace.c, f-lang.c, symm-nat.c, top.c, m3-nat.c, v850-tdep.c,
3997 remote-vx.c, remote-sim.c, remote-mips.c, source.c, infcmd.c,
3998 findvar.c, remote.c: Replace fatal with call to internal_error.
3999
4000 Sun Aug 8 15:28:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
4001
4002 * ser-pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Move
4003 definition from here.
4004 * defs.h: To here.
4005
4006 Sat Aug 7 21:44:59 1999 Fred Fish <fnf@cygnus.com>
4007
4008 * remote.c (remote_insert_breakpoint): Fix typo, missing ';'.
4009
4010 Sun Aug 8 11:26:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
4011
4012 * mips-tdep.c (mips_gdbarch_init): Add break; to the default case.
4013
4014 Fri Aug 6 19:26:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
4015
4016 * defs.h: Delete #if ANSI_PROTOTYPES code, GDB assumes ISO-C.
4017 * remote-rdp.c (send_rdp), remote-os9k.c (printf_monitor),
4018 remote-mips.c: (mips_error), remote-array.c: (printf_monitor,
4019 debuglogs), complaints.c (complain), monitor.c:
4020 (monitor_printf_noecho, monitor_printf), language.c (type_error,
4021 range_error), remote-st.c: (printf_stdebug), remote-sim.c
4022 (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
4023 gdb_os_evprintf_filtered, gdb_os_error), serial.c (serial_printf),
4024 utils.c (warning, error, fatal, fatal_dump_core, (query,
4025 fprintf_filtered, fprintf_unfiltered, fprintfi_filtered,
4026 printf_filtered, printf_unfiltered, printfi_filtered): Delete
4027 legacy #ifndef ANSI_PROTOTYPES varargs code.
4028
4029 * defs.h: Don't #include <varargs.h>.
4030 * remote-rdp.c, remote-os9k.c, remote-mips.c, remote-array.c,
4031 monitor.c, remote-st.c: Don't include <varargs.h> or <stdarg.h>.
4032
4033 1999-08-06 James Ingham <jingham@leda.cygnus.com>
4034
4035 * configure.in, configure: add the --enable-multi-ice to determine
4036 whether to configure and build the multi-ice-gdb-server. Note,
4037 for now this only builds on cygwin, so don't enable it for other
4038 platforms...
4039
4040 1999-08-06 Tom Tromey <tromey@cygnus.com>
4041
4042 * Makefile.in (SFILES): Added kod.c and kod-cisco.c.
4043 (COMMON_OBS): Added kod.o and kod-cisco.o.
4044 (kod-cisco.o): New target.
4045 (kod.o): New target.
4046 * kod-cisco.c: New file.
4047 * kod.c: New file.
4048
4049 1999-08-06 James Ingham <jingham@leda.cygnus.com>
4050
4051 These are some fixups for the Arm, and support for the
4052 disassembly-flavor for the ARM.
4053
4054 * defs.h: Declare the disassembly_flavor_hook
4055 * top.c: Define the disassembly_flavor_hook
4056 * i386-tdep.c: Remove unnecessary declaration of the
4057 disassembly_flavor_hook.
4058
4059 * config/arm/tm-arm.h: Change definition of
4060 arm_init_extra_frame_info.
4061 Add a few more comments.
4062 * arm-tdep.c (arm_init_extra_frame_info): Listen to and use the
4063 fromleaf parameter passed into init_extra_frame_info.
4064 (set_disassembly_flavor_sfunc): New Function.
4065 (set_disassembly_flavor): New Function.
4066 (arm_othernames): Use the set_disassembly_flavor.
4067 (_initialize_arm_tdep): Setup the disassembly flavor commands, and
4068 initialize the flavor.
4069 (arm_frameless_function_invocation): Adjust for
4070 frameless functions that have 1 or 2 instructions that mimic the
4071 standard APCS form.
4072 (arm_scan_prologue): Be more careful about scanning the function
4073 prologue. Don't match things that just have a few of the prologue
4074 instructions out of order, and don't get thrown by the scheduler
4075 migrating instructions into the prologue.
4076
4077 Add support for the "Z" and "z" packets to request the stub
4078 to set a breakpoint.
4079
4080 * remote.c (set_remote_protocol_Z_packet_cmd): New function.
4081 (show_remote_protocol_Z_packet_cmd): New Function.
4082 (remote_open_1): Init the Z packet config.
4083 (remote_async_open_1): Init the Z packet config.
4084 (remote_insert_breakpoint): Use the "Z" packet if supported.
4085 (remote_remove_breakpoint): Use the "z" packet if supported.
4086 (remote_insert_watchpoint): New Function - currently wired to
4087 nothing.
4088 (remote_remove_watchpoint): Ditto.
4089 (remote_insert_hw_breakpoint): Ditto.
4090 (remote_remove_hw_breakpoint): Ditto.
4091
4092 1999-08-06 Stan Shebs <shebs@andros.cygnus.com>
4093
4094 * infcmd.c: Include parser-defs.h.
4095 (interrupt_target_command): Declare.
4096 (stack_dummy_testing): Remove old funky flag.
4097 (run_stack_dummy): Remove unused reference to old funky flag.
4098
4099 1999-08-06 Tom Tromey <tromey@cygnus.com>
4100
4101 * command.c (do_setshow_command): Call set_hook if not NULL.
4102 * top.c (set_hook): New hook definition.
4103 * defs.h (set_hook): Declare.
4104
4105 1999-08-05 Stan Shebs <shebs@andros.cygnus.com>
4106
4107 * infrun.c: Convert code to pure standard C, elim some warnings.
4108 (stopped_for_shlib_catchpoint): Remove, never used.
4109
4110 1999-08-05 Keith Seitz <keiths@cygnus.com>
4111
4112 * NEWS: Mention new Motorola MCore target.
4113
4114 * sparc-tdep.c (gdb_print_insn_sparc): Print insns of the current
4115 architecture.
4116
4117 Thu Aug 5 20:41:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
4118
4119 * configure.in (configdirs): Add check for socketpair.
4120 * configure, config.in: Re-generate.
4121
4122 From Mon Jul 19 10:46:18 1999 Philippe De Muyter <phdm@macqel.be>:
4123 * ser-pipe.c (sys/wait.h): Include this file only #if HAVE_SYS_WAIT_H.
4124 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Macros defined if needed.
4125
4126 Thu Aug 5 20:04:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
4127
4128 * target.c (debug_to_open, debug_to_attach, debug_to_post_attach,
4129 debug_to_require_attach, debug_to_detach, debug_to_require_detach,
4130 debug_to_wait, debug_to_post_wait, debug_to_fetch_registers,
4131 debug_to_store_registers, debug_to_prepare_to_store,
4132 debug_to_xfer_memory, debug_to_files_info,
4133 debug_to_insert_breakpoint, debug_to_remove_breakpoint,
4134 debug_to_terminal_init, debug_to_terminal_inferior,
4135 debug_to_terminal_ours_for_output, debug_to_terminal_ours,
4136 debug_to_terminal_info, debug_to_kill, debug_to_load,
4137 debug_to_lookup_symbol, debug_to_create_inferior,
4138 debug_to_post_startup_inferior,
4139 debug_to_acknowledge_created_inferior,
4140 debug_to_clone_and_follow_inferior,
4141 debug_to_post_follow_inferior_by_clone,
4142 debug_to_insert_fork_catchpoint, debug_to_remove_fork_catchpoint,
4143 debug_to_insert_vfork_catchpoint,
4144 debug_to_remove_vfork_catchpoint, debug_to_has_forked,
4145 debug_to_has_vforked, debug_to_can_follow_vfork_prior_to_exec,
4146 debug_to_post_follow_vfork, debug_to_insert_exec_catchpoint,
4147 debug_to_remove_exec_catchpoint, debug_to_has_execd,
4148 debug_to_reported_exec_events_per_exec_call,
4149 debug_to_has_syscall_event, debug_to_has_exited,
4150 debug_to_mourn_inferior, debug_to_can_run,
4151 debug_to_notice_signals, debug_to_thread_alive, debug_to_stop,
4152 debug_to_query, debug_to_rcmd, debug_to_enable_exception_callback,
4153 debug_to_get_current_exception_event, debug_to_pid_to_exec_file,
4154 debug_to_core_file_to_sym_file, debug_to_close): Send trace output
4155 to ``gdb_stdlog'' instead of ``gdb_stderr''.
4156
4157 Thu Aug 5 16:22:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
4158
4159 * remote.c (init_remote_ops): Initialize remote_ops.to_rcmd.
4160 (init_remote_async_ops): Initialize remote_async_ops.to_query.
4161 (remote_rcmd): New function.
4162
4163 * monitor.c (monitor_rcmd): Rename monitor_command.
4164 (init_base_monitor_ops): Initialize monitor_ops.to_rcmd.
4165 (_initialize_remote_monitors): Move "monitor" command from here.
4166 * target.c (initialize_targets): To here.
4167 (monitor_command): New function. Implement "monitor" command.
4168
4169 * target.c (cleanup_target): de_fault to_rcmd.
4170 (update_current_target): INHERIT to_rcmd.
4171 (debug_to_rcmd): New function.
4172 (setup_target_debug): Initialize current_target.to_rcmd.
4173
4174 * target.h (struct target_ops): Add field to_rcmd.
4175 (target_rcmd): Define.
4176
4177 Thu Aug 5 14:24:07 1999 Andrew Cagney <cagney@b1.cygnus.com>
4178
4179 * remote.c: Replace comment describing remote protocol with
4180 pointer to official document.
4181
4182 Thu Aug 5 11:59:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
4183
4184 * remote.c (remote_protocol_binary_download): New variable.
4185 Replace ``remote_binary_download'' and ``remote_binary_checked''.
4186 (set_remote_protocol_binary_download_cmd,
4187 show_remote_protocol_binary_download_cmd): New functions.
4188 (remote_open_1, remote_async_open_1, remote_cisco_open):
4189 Initialize ``remote_protocol_binary_download'' instead of
4190 ``remote_binary_download''.
4191 (check_binary_download): Re-write.
4192 (remote_write_bytes): Ditto.
4193 (_initialize_remote): Add ``set remote X-packet'' and ``show
4194 remote X-packet'' commands. Disable old ``set
4195 remotebinarydownload'' command.
4196
4197 1999-08-04 Keith Seitz <keiths@cygnus.com>
4198
4199 * remote-rdi.c (arm_rdi_close): Close the transport device, too.
4200
4201 Wed Aug 4 10:42:58 1999 Fred Fish <fnf@cygnus.com>
4202
4203 * xcoffread.c (scan_xcoff_symtab): Change main_aux into
4204 an array of 5 internal_auxent to leave room for bfd to
4205 write n_numaux entries. Change code to use the first one.
4206
4207 1999-08-02 Stan Shebs <shebs@andros.cygnus.com>
4208
4209 * c-valprint.c (c_val_print): When printing decimal equivalent
4210 of a char, cast appropriately.
4211
4212 1999-08-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4213
4214 From Jonathan Larmour <jlarmour@cygnus.co.uk>:
4215 * main.c (print_gdb_help): Use gdbinit variable to determine file
4216 name used for --nx help
4217
4218 1999-08-01 Jason Molenda (jsm@bugshack.cygnus.com)
4219
4220 * config/mips/tm-mips.h (BIG_ENDIAN): Don't define here.
4221
4222 1999-08-01 Jim Blandy <jimb@zwingli.cygnus.com>
4223
4224 * stabsread.c (read_range_type): Handle an unsigned range type
4225 whose length in bytes is any power of two, not just a few
4226 common ones.
4227
4228 * monitor.c (monitor_expect): When we receive a character that
4229 isn't part of the string we were expecting, don't just start
4230 matching again at the beginning of the string --- some shorter
4231 suffix of the input might be a prefix of the string too.
4232
4233 1999-07-31 Fred Fish <fnf@cygnus.com>
4234
4235 * symfile.c (symbol_file_command): Fix typo that made -1 casted
4236 to a CORE_ADDR look like an subtraction expression.
4237 (add_symbol_file_command): Ditto.
4238
4239 1999-07-30 Jim Blandy <jimb@cris.red-bean.com>
4240
4241 * hppa-tdep.c (pa_print_registers): Frob register output some more.
4242
4243 1999-07-29 Jim Blandy <jimb@cris.red-bean.com>
4244
4245 * config/pa/nm-hppah.h (PTRACE_ARG3_TYPE): After more
4246 consideration, make this a CORE_ADDR, like WDB did.
4247
4248 Rather than casting every single use of really_free_pendings to
4249 make_cleanup_func, why not actually make it have that type? Golly!
4250 * buildsym.c (really_free_pendings): Change argument type to PTR.
4251 buildsym.h (really_free_pendings): Fix declaration.
4252 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1),
4253 dwarf2read.c (psymtab_to_symtab_1), dwarfread
4254 (psymtab_to_symtab_1), hp-psymtab-read.c (hpread_build_psymtabs),
4255 os9kread.c (os9k_symfile_read, os9k_psymtab_to_symtab_1),
4256 xcoffread.c (xcoff_psymtab_to_symtab_1, xcoff_initial_scan):
4257 Remove casts.
4258
4259 Pass a CORE_ADDR safely through catch_errors.
4260 * hppa-tdep.c (args_for_find_stub): New member, return_val.
4261 (cover_find_stub_with_shl_get): Change argument and return type to
4262 match catch_errors. Save return value of find_stub_with_shl_get
4263 in *args.
4264 (initialize_hp_cxx_exception_support): Collect value of
4265 eh_notify_callback_addr from args.
4266
4267 Get rid of some noise. It would be nice to get helpful warnings
4268 from the compiler about lossy conversions.
4269 * hppa-tdep.c (eh_notify_hook_addr, eh_notify_callback_addr,
4270 eh_break_addr, eh_catch_catch_addr, eh_catch_throw_addr,
4271 break_callback_sal): Initialize these to zero, not NULL, to shush
4272 warnings.
4273 * infttrace.c (thread_fake_step): Compare signal to
4274 TARGET_SIGNAL_0, not NULL, to avoid warnings.
4275 (_initialize_infttrace): Add sanity check.
4276
4277 * config/pa/nm-hppah.h (PTRACE_ARG3_TYPE): Define this to be
4278 long, so we can pass arguments properly to ptrace.
4279
4280 * hppah-nat.c (child_xfer_memory): Correctly compute mask to round
4281 address to an int boundary.
4282
4283 1999-07-29 Jim Blandy <jimb@savonarola.red-bean.com>
4284
4285 Change from Ian Lance Taylor <ian@zembu.com>. The
4286 i386_linux_sigtramp* functions should be moved to
4287 i386-linux-tdep.c, when that file is introduced.
4288
4289 * config/i386/tm-linux.h (LINUX_SIGCONTEXT_SIZE): Define.
4290 (LINUX_SIGCONTEXT_PC_OFFSET): Define.
4291 (LINUX_SIGCONTEXT_SP_OFFSET): Define.
4292 (SIGCONTEXT_PC_OFFSET): Don't define.
4293 (I386_LINUX_SIGTRAMP): Define.
4294 (IN_SIGTRAMP): Define.
4295 (i386_linux_sigtramp): Declare.
4296 (sigtramp_saved_pc): Define.
4297 (i386_linux_sigtramp_saved_pc): Declare.
4298 (FRAMELESS_SIGNAL): Define.
4299 (FRAME_CHAIN, FRAME_SAVED_PC): Define after #undef.
4300 * i386-tdep.c (i386_linux_sigtramp_start): New static function if
4301 I386_LINUX_SIGTRAMP.
4302 (i386_linux_sigtramp): New function if I386_LINUX_SIGTRAMP.
4303 (i386_linux_sigtramp_saved_pc): Likewise.
4304 (i386_linux_sigtramp_saved_sp): Likewise.
4305
4306 1999-07-28 Jim Blandy <jimb@savonarola.red-bean.com>
4307
4308 * infrun.c (handle_inferior_event): Don't try to use the code for
4309 stepping over a function call to also handle stepping out of a
4310 sigtramp on HP-UX. That ends up trashing step-resume breakpoints.
4311 This change reverts some of David Taylor's change of 31 Dec 1998.
4312 The HP-UX maintainer needs to submit a new change for whatever
4313 problem the original change was trying to fix.
4314
4315 1999-07-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4316
4317 * event-top.c (command_line_handler): Don't treat an empty line
4318 from readline the same way as a multiline command. This avoids
4319 missing detecting when the user presses just 'enter'.
4320
4321 1999-07-28 Jim Blandy <jimb@savonarola.red-bean.com>
4322
4323 Provide more sanity checking:
4324 * infrun.c (handle_inferior_event): Before assigning a new
4325 breakpoint to step_resume_breakpoint, make sure it's not already
4326 pointing at one; if it is, that's a bug.
4327 (check_for_old_step_resume_breakpoint): New function.
4328
4329 1999-07-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4330
4331 From Eli Zaretskii <eliz@is.elta.co.il>:
4332 * top.c (gdb_init) [__MSDOS__]: Arrange for GDB to return to the
4333 original directory before exiting.
4334 (cd_command) [_WIN32 || __MSDOS__]: Canonicalize the new directory
4335 name explicitly. Handle "d:/" names correctly.
4336 (init_history) [__MSDOS__]: Use _gdb_history as the default GDB
4337 history file name.
4338
4339 Mon Jul 26 17:13:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
4340
4341 * remote.c (enum packet_support, enum packet_detect, struct
4342 packet_config): Define.
4343 (set_packet_config_cmd, show_packet_config_cmd,
4344 add_packet_config_cmd, init_packet_config): New functions.
4345 Generic support for optional packets.
4346 (remote_protocol_P): Replace stub_supports_P.
4347 (set_remote_protocol_P_packet_cmd, show_remote_protocol_P_packet_cmd):
4348 New functions.
4349 (_initialize_remote): Add ``set remote-protocol-P-packet'' command.
4350 (remote_open_1, remote_async_open_1, remote_cisco_open):
4351 Initialize ``remote_protocol_P''.
4352 (remote_store_registers): Re-write ``P'' probe logic.
4353 (store_register_using_P): New function.
4354
4355 From Ian Lance Taylor <ian@airs.com>:
4356 (remote_prepare_to_store): Only read registers when ``P'' packet
4357 is in state unsupported or support-unknown.
4358
4359 1999-07-24 Fred Fish <fnf@cygnus.com>
4360
4361 * symfile.c (default_symfile_offsets): Clear section_offsets
4362 before filling it in.
4363
4364 1999-07-16 Keith Seitz <keiths@cygnus.com>
4365
4366 * remote.c (_initialize_remote): "remotebreak" should be a var_boolean.
4367
4368 1999-07-15 Jim Blandy <jimb@cris.red-bean.com>
4369
4370 Make the output from "info registers" fit withinin 80 columns.
4371 * hppa-tdep.c (pa_print_registers): Make it easy to change row and
4372 column counts. Switch to three columns, instead of four, and
4373 adjust spacing.
4374
4375 First cut at supporting HPPA2.0 in "wide" (64-bit) mode.
4376 * configure.tgt: Add hppa2.0w target.
4377 * config/pa/hppa64.mt, config/pa/tm-hppa64.h: New files.
4378 * hppa-tdep.c (hppa_fix_call_dummy): Dyke out code to tweak the
4379 call dummy, if target is PA2.0w. This is temporary, until I get
4380 function calls working.
4381 * hppah-nat.c (fetch_register): Rewritten to handle both narrow
4382 and wide register requests.
4383 (HPPAH_OFFSETOF): New macro.
4384
4385 * gdbtypes.c (is_integral_type): New function.
4386 * gdbtypes.h: Prototype for above.
4387
4388 1999-07-15 J.T. Conklin <jtc@redback.com>
4389
4390 * configure.tgt (i[3456]86-*-vxworks*): New target.
4391 * config/i386/vxworks.mt: New file, x86 VxWorks target
4392 * config/i386/tm-vxworks.h: New file.
4393
4394 * configure.tgt (powerpc-*-vxworks*): New target.
4395 * config/powerpc/vxworks.mt: New file, PowerPC VxWorks target
4396 * config/powerpc/tm-vxworks.h: New file.
4397
4398 * NEWS: Mention the new configs.
4399
4400 1999-07-15 Fernando Nasser <fnasser@cygnus.com>
4401
4402 * target.c (target_preopen): Prevent query when not from_tty.
4403 * infcmd.c (run_command): Prevent query when not from_tty.
4404
4405 1999-07-15 Fernando Nasser <fnasser@cygnus.com>
4406
4407 * event-loop.c: Fix typo in comment.
4408
4409 Wed Jul 14 17:29:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
4410
4411 * ser-pipe.c (struct pipe_state): Define.
4412 (pipe_close): Retain the PID of the sub-process using ``struct
4413 pipe_state''. Delete #ifdef code that used popen().
4414 (pipe_close): Kill of the sub-process as part of the cleanup.
4415
4416 * serial.h (struct _serial_t): Add field ``state''.
4417
4418 1999-07-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4419
4420 * event-top.c (display_gdb_prompt): Don't display the prompt if we
4421 are in the middle of an execution command. Also trick readline so
4422 it doesn't try to display the prompt.
4423 (command_line_handler): Get rid of change_prompt, unused variable.
4424 Use {push, pop}_prompt mechanism in case of multiline commands.
4425
4426 * infrun.c (complete_execution): Set target_executing to 0 as
4427 first thing, so that display_gdb_prompt does the right thing.
4428
4429 Tue Jul 13 20:29:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
4430
4431 * parse.c (build_parse): Fix conditional increment of num_std_regs
4432 for SP_REGNUM. Was conditional on FP_REGNUM.
4433
4434 Tue Jul 13 16:44:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
4435
4436 * gdbarch.h, gdbarch.c: Revert 1999-07-07 Stan Shebs
4437 <shebs@andros.cygnus.com> indentation change. Don't let indent
4438 mess with these files.
4439
4440 Mon Jul 12 11:15:09 1999 Andrew Cagney <cagney@b1.cygnus.com>
4441
4442 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_RAW,
4443 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERTIBLE): Define.
4444 (REGISTER_RAW_SIZE): Re-define as mips_register_convert_to_raw.
4445 * mips-tdep.c (mips_register_convert_to_raw,
4446 mips_register_convert_to_virtual, ): New functions.
4447 (mips_register_raw_size, mips_register_convertible): New
4448 functions. Handle bug introduced by ``Wed Apr 1 23:13:23 1998
4449 Andrew Cagney <cagney@b1.cygnus.com>'' where remote mips64 target
4450 transfers SR as 64 bits yet GDB expected only 32 bits.
4451 (mips64_transfers_32bit_regs): New static variable.
4452 (_initialize_mips_tdep): Add obscure command ``set
4453 remote-mips64-transfers-32bit-regs'' that provides backward
4454 compatibility.
4455 (do_gp_register_row): Extract register values from raw buffer.
4456
4457 * NEWS: Document protocol change.
4458
4459 1999-07-12 Keith Seitz <keiths@cygnus.com>
4460
4461 * rdi-share/unixcomm.c (Unix_ResetSerial): Remove CYGWIN32
4462 conditional. It's no longer needed.
4463 (SERPORT1, SERPORT2): Linux serial ports are "/dev/ttyX", not
4464 "/dev/cuaX" (X=0,1,2,3,...).
4465
4466 Mon Jul 12 02:02:00 1999 Andrew Cagney <cagney@amy.cygnus.com>
4467
4468 * defs.h, utils.c (fputstrn_filtered, fputstrn_unfiltered,
4469 fputstrnn_unfiltered): New functions.
4470 (gdb_printchar): Delete.
4471
4472 * remote.c (print_packet): Replace gdb_printchar with
4473 fputstrn_filtered.
4474 (getpkt): Use fputstrn_unfiltered to dump packet received.
4475 (putpkt_binary): Use fputstrnn_unfiltered to dump packet sent.
4476
4477 1999-07-09 Keith Seitz <keiths@cygnus.com>
4478
4479 * blockframe.c (blockvector_for_pc_sect): When looking for a block,
4480 we want the one whose end is greater than our PC, not greater or equal.
4481
4482 1999-07-08 Stan Shebs <shebs@andros.cygnus.com>
4483
4484 * sparcl-tdep.c (init_sparclite_ops): Fix doc strings, remove
4485 useless inits.
4486 (sparclite_ops): Remove redundant decl.
4487
4488 Thu Jul 8 16:48:40 1999 Andrew Cagney <cagney@b1.cygnus.com>
4489
4490 * ser-pipe.c (pipe_open): Bi-directional popen found on both
4491 NetBSD and OpenBSD.
4492 * ser-pipe.c: New file. Implement popen() style serial interface.
4493 * NEWS: Mention.
4494 * Makefile.in (ALLDEPFILES): Add ser-pipe.c.
4495 (ser-pipe.o): Add new target. Specify dependencies.
4496 (SER_HARDWIRE): Add ser-pipe.o.
4497 * serial.c (serial_open): Recognize a serial pipe ``|''.
4498
4499 1999-07-07 Stan Shebs <shebs@andros.cygnus.com>
4500
4501 * All C files except *-stub.c and *-share/*: Indent to GNU
4502 standard, using indent 1.9.1.
4503 * defs.h: Make indent ignore this file, macros confuse it.
4504
4505 * gnu-regex.c, gnu-regex.h: Don't let indent mess with these.
4506
4507 Wed Jul 7 13:06:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
4508
4509 * remote-mips.c (fputs_readable): Rename puts_readable, add struct
4510 gdb_file argument.
4511 (fputc_readable): Rename putc_readable, add struct gdb_file
4512 argument.
4513
4514 * remote-mips.c (mips_expect_timeout, mips_receive_header,
4515 mips_send_packet, mips_receive_packet), remote-rdp.c (put_byte,
4516 get_byte, put_word, rdp_init, rdp_init), remote-sds.c
4517 (sds_interrupt, sds_wait, readchar, putmessage, read_frame,
4518 getmessage), remote-udi.c (udi_store_registers, fetch_register):
4519 (store_register), xmodem.c (readchar), utils.c (puts_debug),
4520 gnu-nat.h (debug), parse.c (parse_exp_1): Cleanup - send debug/log
4521 messages to gdb_stdlog.
4522
4523 1999-07-06 Stan Shebs <shebs@andros.cygnus.com>
4524
4525 * exec.c: Remove long-#ifed-out section of code that confuses
4526 indent.
4527 * gdbtypes.c (add_mangled_type): Add some braces to indicate
4528 grouping better.
4529 * gnu-nat.c: Remove literal newlines embedded in strings,
4530 causes indent to weird out.
4531 * language.c (binop_result_type): Remove extra paren.
4532 * lynx-nat.c: Add a missing paren to fetch_core_registers decl.
4533 * nec4102rom.c (vr4102_insert_step): Fix typos.
4534 (_initialize_vr4102_rom): Remove literal newline in string.
4535 * config/a29k/tm-a29k.h: Suppress formatting of pictures.
4536 * config/m68k/xm-3b1.h: Remove excess #endif.
4537
4538 Declare Pyramid configuration obsolete.
4539 * configure.host, configure.tgt: Comment out Pyramid configs.
4540 * Makefile.in: Comment out Pyramid-related actions.
4541 * pyr-xdep.c, pyr-tdep.c, config/pyr/*: Comment out.
4542 * NEWS: Mention obsolete status.
4543
4544 1999-07-06 Jason Molenda (jsm@bugshack.cygnus.com)
4545
4546 * remote.c: Include <sys/time.h> to pick up FD_SET et al defns on
4547 some old Linux distributions.
4548 * remote-os9k.c, remote-st.c, ser-tcp.c, ser-unix.c,
4549 sparcl-tdep.c, remote.c: Back out inclusion of <sys/select.h>.
4550 It isn't necessary after all.
4551
4552 1999-07-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4553
4554 * infcmd.c (strip_bg_char): Remove assignment from 'if' condition.
4555
4556 1999-07-05 Jason Molenda (jsm@bugshack.cygnus.com)
4557
4558 * remote.c: Include <sys/select.h> if it exists in order to pick up
4559 FD_SET et al defns.
4560 * remote-os9k.c: Same.
4561 * remote-st.c: Same.
4562 * ser-tcp.c: Same.
4563 * ser-unix.c: Same.
4564 * sparcl-tdep.c: Same.
4565
4566 Fri Jul 2 19:38:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
4567
4568 * top.c (target_output_hook): Delete definition.
4569 * defs.h (target_output_hook): Delete declaration.
4570
4571 * remote.c (remote_console_output): Delete call to
4572 target_output_hook(). Send target output to gdb_stdtarg using an
4573 unfiltered write. Make more robust.
4574
4575 * remote-sim.c (gdb_os_write_stdout, gdb_os_write_stderr):
4576 Ditto. For moment, do not try to separate target stdout and stderr
4577 streams.
4578
4579 * defs.h (gdb_stdtarg): New global. Output from target and
4580 simulators.
4581
4582 1999-07-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4583
4584 * top.c (return_to_top_level): Do all the exec_cleanups too.
4585
4586 * event-top.c (command_handler): Set up for a continuation, if we
4587 are in the middle of running an execution command which will
4588 finish later on. Do cleanups, an display of time/space only if not
4589 running with an async target or not running an execution command.
4590 (command_line_handler_continuation): New function. Continuation
4591 for command_line_handler.
4592
4593 * utils.c (exec_cleanup_chain): New cleanup chain to be used in
4594 async mode for the execution commands.
4595 (make_exec_cleanup): New function. Add a cleanup to the
4596 exec_cleanup_chain.
4597 (do_exec_cleanups): New Function. Do cleanups on the
4598 exec_cleanup_chain.
4599 (add_continuation): New function. Add a new continuation to the
4600 cmd_continuation list.
4601 (do_all_continuations): New function. Do all the continuations on
4602 the cmd_continuation list.
4603
4604 * top.h (ALL_CLEANUPS): Move from here to defs.h.
4605
4606 * defs.h (struct continuation_arg): New structure. Arg to pass to
4607 the call to a command continuation.
4608 (struct continuation): New structure. Continuation for an
4609 execution command.
4610 (ALL_CLEANUPS): Move here from top.h.
4611
4612 * remote.c (remote_async_open_1): Set things up for telling the
4613 target we are running the extended protocol, only after the target
4614 has stopped.
4615 (set_extended_protocol): New function. Tell the target we are
4616 using the extended protocol.
4617 (remote_async_resume): Set things up for sync execution only if
4618 this is the first time we are called.
4619
4620 * breakpoint.c (until_break_command_continuation): New function.
4621 Stuff to be done after the target stops during the 'until'
4622 command.
4623 (until_break_command): Set things up for completing the 'until'
4624 command later on. Do the final cleanups only if not running
4625 asynchronously or async execution is not supported by the target.
4626
4627 * infcmd.c (until_command): Recognize '&' at end of command and
4628 handle it properly.
4629 (finish_command_continuation): New function. Do whatever is needed
4630 after the target has stopped.
4631 (finish_command): Recognize '&' at end of command and handle it
4632 properly. Don't do stuff needed after target has stopped if
4633 running asynchronously and target has async. Use exec_cleanup_chain
4634 if running asynchronously and target is asynchronous.
4635
4636 * infrun.c (cmd_continuation): New gloabl variable. Used to
4637 coplete execution commands in async mode, after the target has
4638 stoped.
4639 (fetch_inferior_event): Use exec_cleanup_chain, instead of
4640 cleanup_chain. Do all the exec cleanups at the end. Do all the
4641 continuations at the end. Call complete_execution from here,
4642 instead of normal_stop.
4643 (complete_execution): Cleanup the signals handlers for SIGINT
4644 before displaying the prompt.
4645 (start_remote): Set target_executing to 1.
4646 (normal_stop): Don't call complete_execution from here.
4647
4648 Thu Jul 1 19:14:30 1999 Andrew Cagney <cagney@b1.cygnus.com>
4649
4650 * blockframe.c (struct dummy_frame): Add member ``top''.
4651 (generic_push_dummy_frame): Initialize top to sp.
4652 (generic_save_dummy_frame_tos): New function. Initialize top.
4653 (generic_find_dummy_frame): Check for the top of the frame.
4654
4655 * blockframe.c (generic_push_dummy_frame): Free the dummy_frame
4656 registers.
4657
4658 * config/mn10300/tm-mn10300.h (SAVE_DUMMY_FRAME_TOS): Define.
4659 (TARGET_READ_FP): Return the SP as a best guess.
4660
4661 Wed Jun 30 15:45:48 1999 Jeffrey A Law (law@cygnus.com)
4662
4663 * configure.host (hppa*-*-hpux11*): Accept any version of hpux11
4664 instead of hpux11.0*.
4665
4666 1999-06-30 Fernando Nasser <fnasser@totem.to.cygnus.com>
4667
4668 * source.c (directory_command): Add missing test for from_tty.
4669
4670 1999-06-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4671
4672 * remote.c: Include event-loop.h.
4673 (remote_async_ops, extended_async_remote_ops): Define new target
4674 vector structures for asynchronous debugging.
4675 (remote_async_open): New function. Asynchronous version of
4676 remote_open.
4677 (extended_remote_async_open): New function. Asynchronous version
4678 of extended_remote_open.
4679 (remote_async_open_1): New function. Async version of
4680 remote_open_1.
4681 (remote_async_detach): New function. Async version of
4682 remote_detach.
4683 (remote_async_resume): New function. Async version of
4684 remote_resume.
4685 (initialize_sigint_signal_handler, handle_remote_sigint,
4686 handle_remote_sigint_twice, async_remote_interrupt,
4687 async_remote_interrupt_twice, cleanup_sigint_signal_handler): New
4688 functions. Used for handling ^C while target is running.
4689 (remote_async_wait): New function. Async version of remote_wait.
4690 (remote_async_kill): New function. Async version of remote_kill.
4691 (extended_remote_async_create_inferior): New function. Async
4692 version of extended_remote_create_inferior.
4693 (init_remote_async_ops): New function. Initialize target vector
4694 for target async.
4695 (init_extended_async_remote_ops): New function. Initialize target
4696 vector for target extended-async.
4697 (_initialize_remote): Initialize remote_async_ops and
4698 extended_async_remote_ops.
4699
4700 * infrun.c: Include "event-loop.h".
4701 (sync_execution): new global variable.
4702 (proceed): Invoke wait_for_inferior and normal_stop only if not
4703 running in async mode or if target doesn't support async
4704 execution.
4705 (start_remote): Don't call wait_for_inferior and normal_stop if
4706 not running in async mode or if target not async. If running async
4707 and target is async, start the target in simulated synchronous
4708 mode.
4709 (async_ecss, async_ecs): New global vars, for inferior state.
4710 (fetch_inferior_event): New function. Async version of
4711 wait_for_inferior.
4712 (complete_execution): New function. Reset of gdb prompt and stdin,
4713 after inferior execution has completed.
4714 (normal_stop): Call complete_execution at end of asynchronous
4715 execution.
4716
4717 * infcmd.c (strip_bg_char): New function to detect the background
4718 execution char '&'.
4719 (run_command): Modify to support background and foreground
4720 execution in async mode.
4721 (continue_command): Ditto.
4722 (step_1): Ditto.
4723 (jump_command): Ditto.
4724 (interrupt_target_command): New function. Interrupt the
4725 target execution.
4726 (_initialize_infcmd): Add new command 'interrupt'.
4727
4728 * top.c (target_executing): New global variable.
4729 (execute_command): Reject commands that cannot be executed while
4730 the target is running asynchronously.
4731
4732 * event-top.c (push_prompt): Make non static.
4733 (pop_prompt): Make non static. If the current prompt is empty,
4734 don't try to copy it over the previous one.
4735 (handle_sigint): Make non static.
4736 (command_handler): Do the cleanups only when not executing with an
4737 asynchronous target.
4738
4739 * event-loop.c (delete_async_signal_handler): Pass a pointer to a
4740 pointer to a signal handler, so that is can be freed at the end.
4741
4742 * target.c (update_current_target): Inherit to_has_async_exec.
4743
4744 * inferior.h: Add global variables target_executing, and
4745 sync_execution. Export function fetch_inferior_event.
4746
4747 * event-loop.h: Add push_prompt, pop_prompt, handle_sigint to the
4748 exported functions. Update prototype for delete_signal_handler.
4749
4750 * target.h (struct target_ops): New target op: to_has_async_exec.
4751 (target_has_async): New macro.
4752
4753 * Makefile.in (infrun.o): Add dependency on event-loop.h.
4754 (remote.o): Ditto.
4755
4756 1999-06-28 Jim Blandy <jimb@zwingli.cygnus.com>
4757
4758 * solib.c (clear_solib): Don't disable breakpoints if we're
4759 running an a.out executable (Solaris's SunOS emulation).
4760
4761 1999-06-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4762
4763 * main.c (main): Remove intialization of command_loop_hook, it
4764 is now done in _initialize_event_loop().
4765 * event-loop.c (gdb_do_one_event): Make static.
4766 (start_event_loop): New function. Just start the event loop.
4767 * event-top.c (cli_command_loop): New name for start_event_loop().
4768 (gdb_readline2): Make non static.
4769 (_initialize_event_loop): Set command_loop_hook to cli_command_loop.
4770 * event-loop.h: Adjust exported functions accordingly.
4771
4772 * top.c (init_main): Move setting of async_command_editing_p from
4773 here.
4774 * event-top.c (_initialize_event_loop): To here.
4775 (change_line_handler): Revert previous change. Add comment.
4776 (_initialize_event_loop): Revert previous change.
4777 (cli_command_loop): New name for start_event_loop().
4778 (start_event_loop): New function. This just starts up the event loop.
4779 (gdb_readline2): Make non static.
4780 (_initialize_event_loop): Set command_loop_hook to cli_command_loop.
4781
4782 1999-06-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4783
4784 * event-top.c (change_line_handler): Get rid of the global
4785 variable input_fd, use `fileno (instream)' instead.
4786 (_initialize_event_loop): Ditto
4787
4788 * event-loop.c (add_file_handler): New function. Wrapper for
4789 create_file_handler.
4790 (create_file_handler): Make static.
4791 * event-top.c (_initialize_event_loop): Call add_file_handler,
4792 instead of create_file_handler.
4793 (change_line_handler): Ditto.
4794 Remove poll.h include.
4795 * event-loop.h: Export add_file_handler instead of
4796 create_file_handler.
4797
4798 1999-06-24 Stan Shebs <shebs@andros.cygnus.com>
4799
4800 Declare Altos configuration obsolete.
4801 * configure.host, configure.tgt: Comment out Altos config.
4802 * Makefile.in: Comment out Altos-related actions.
4803 * altos-xdep.c, config/m68k/altos.mh, altos.mt, tm-altos.h,
4804 xm-altos.h: Comment out.
4805 * NEWS: Mention obsolete status.
4806
4807 1999-06-24 Jason Molenda (jsm@bugshack.cygnus.com)
4808
4809 * Makefile.in: Add MAKEHTML and MAKEHTMLFLAGS; pass them down;
4810 recognize html and install-html targets.
4811 * gdbserver/Makefile.in: Add empty html and install-html targets.
4812 * nlm/Makefile.in: Ditto.
4813 * rdi-share/Makefile.in: Ditto.
4814
4815 1999-06-24 Jim Blandy <jimb@zwingli.cygnus.com>
4816
4817 * ax-gdb.c (agent_command): Remove vestigial call to ax_reqs.
4818
4819 1999-06-24 James Ingham <jingham@leda.cygnus.com>
4820
4821 * arm-tdep.c (arm_othernames): Change both gdb's register display
4822 AND the opcode disassembly register naming if the othernames
4823 command. Fixes the gdb part of CR 101177.
4824
4825 1999-06-23 Stan Shebs <shebs@andros.cygnus.com>
4826
4827 Declare Convex configuration obsolete.
4828 * configure.host, configure.tgt: Comment out Convex configs.
4829 * Makefile.in: Comment out Convex-related actions.
4830 * convex-xdep.c, convex-tdep.c, config/convex/*: Comment out.
4831 * NEWS: Mention obsolete status.
4832
4833 1999-06-23 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4834
4835 * main.c: Turn on async by default by setting async_p to 1.
4836
4837 Wed Jun 23 15:44:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
4838
4839 From Jimmy Guo <guo@cup.hp.com>:
4840 * frame.h (enum lval_type): Delcare when an __STDC__ compiler.
4841 Reverts Mon Aug 11 16:08:52 1997 Fred Fish <fnf@cygnus.com>
4842 change.
4843 * utils.c (gdb_file_rewind, gdb_file_put): Fix. A void function
4844 does not return a result.
4845
4846 Wed Jun 23 15:30:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
4847
4848 * remote.c (set_thread, remote_get_threadinfo,
4849 remote_threads_info, remote_current_thread, remote_get_threadlist,
4850 extended_remote_restart, get_offsets, remote_open_1,
4851 remote_detach, remote_resume, remote_wait, remote_fetch_registers,
4852 remote_store_registers, check_binary_download, remote_write_bytes,
4853 remote_read_bytes, remote_search, putpkt_binary, putpkt_binary,
4854 read_frame, compare_sections_command, remote_query,
4855 packet_command, remote_info_process): Use alloca to create space
4856 for arrays of size PBUFSIZ.
4857
4858 1999-06-22 Jason Molenda (jsm@bugshack.cygnus.com)
4859
4860 * top.c: Update copyright years to include 1999.
4861
4862 1999-06-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4863
4864 * top.c: Move include of event-loop.h, to avoid redefinition of
4865 NFDBITS.
4866
4867 * event-loop.c (create_file_handler): Do not do a realloc of the
4868 pollfd structure of the notifier, unless there is already one.
4869 Include <sys/types.h> for platforms that have no poll.
4870
4871 * event-top.c: Fix prototype for _initialize_event_loop.
4872 (_initialize_event_loop): Do something only if running in async
4873 mode.
4874
4875 1999-06-17 Jim Blandy <jimb@zwingli.cygnus.com>
4876
4877 Make the '/c' print format use a true character type. This is
4878 more appropriate than builtin_type_char for languages other than
4879 C, and C tolerates it.
4880 * gdbtypes.c (builtin_type_true_char): New variable.
4881 (build_gdbtypes): Initialize it.
4882 * gdbtypes.h (builtin_type_true_char): New declaration.
4883 * printcmd.c (print_scalar_formatted): When the format is 'c',
4884 extract the value as a builtin_type_true_char.
4885
4886 * jv-exp.y (yylex): Say character literals are java_char_type, not
4887 builtin_type_char. Java treats the latter like `byte'.
4888
4889 1999-06-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4890
4891 * Makefile.in (top_h): Define.
4892 (event-loop.o): Add dependencies on top.h and defs.h.
4893 (event-top.o): Add dependency on terminal.h.
4894
4895 * event-loop.c: Get rid of #include <readline.h>.
4896
4897 * event-loop.h: Get rid of nested #include's.
4898 * event-loop.c: Rearrange includes to accomodate change in
4899 event-loop.h. Include poll.h, not sys/poll.h.
4900 * event-top.c: Ditto.
4901 * main.c: Ditto.
4902
4903 1999-06-16 David Taylor <taylor@louisiana.cygnus.com>
4904
4905 * alpha-tdep.c (alpha_pop_frame): if frame->proc_desc
4906 is NULL, call find_proc_desc so we know how to restore
4907 the registers.
4908
4909 1999-06-15 Michael Snyder <msnyder@cleaver.cygnus.com>
4910
4911 * event-top.c (start_event_loop): call get_prompt.
4912 (display_gdb_prompt): call get_prompt.
4913 (async_stop_sig): call get_prompt.
4914
4915 1999-06-15 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4916
4917 * event-loop.c (delete_file_handler): When positioning prev_ptr,
4918 keep looping while the one after is not equal to file_ptr, instead
4919 of equal.
4920
4921 1999-06-14 Stan Shebs <shebs@andros.cygnus.com>
4922
4923 * MAINTAINERS: Add Jimmy Guo and Jim Blandy as HP testsuite and
4924 SVR4 solib maintainers, respectively.
4925
4926 1999-06-14 Michael Snyder <msnyder@cleaver.cygnus.com>
4927
4928 Add parameters to the gdb prompt.
4929 * top.c (prompt): Rename to gdb_prompt_string for clarity.
4930 (command_line_input): rename "prrompt" to prompt_arg for clarity.
4931 (gdb_readline): rename "prrompt" to prompt_arg for clarity.
4932 (read_command_lines): rename "prompt" to prompt_arg for clarity.
4933 (stop_sig): call get_prompt instead of reading prompt string directly.
4934 (command_loop): ditto.
4935 (gdb_prompt_escape): New variable. Esc char for prompt parameters.
4936 (get_prompt_1): New function, workhorse for get_prompt.
4937 (get_prompt): Completely rewrite. Add functionality for a
4938 parameterized prompt, ie. the displayed prompt can change according
4939 to the value of one or more expressions given as parameters in the
4940 prompt string.
4941 (init_main): use renamed variable gdb_prompt_string. Add new
4942 command "set prompt-escape-char" to set gdb_prompt_escape.
4943
4944 Sun Jun 13 10:44:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
4945
4946 * defs.h (gdb_stdlog), main.c: Declare.
4947 * main.c (main): Initialize.
4948 * gdbarch.c: Write trace messages to the log file.
4949 * remote.c: Update any debug/log prints.
4950
4951 1999-06-11 Michael Snyder <msnyder@cleaver.cygnus.com>
4952
4953 * remote.c (remote_wait): Clean up new thread handling.
4954 (record_currthread): Announce new threads.
4955
4956 1999-06-11 Jim Blandy <jimb@zwingli.cygnus.com>
4957
4958 * partial-stab.h (case N_LSYM, 'T' descriptor): Don't create
4959 partial symbol table entries for nameless enums, even if the type
4960 name is " ". (We still pick up the enum elements, though.)
4961
4962 * partial-stab.h: Remove #if 0'd sections, dating back to 1992,
4963 which set a variable which exists nowhere else in the source.
4964 Please examine your test suite output carefully, and report any
4965 problems to me.
4966
4967 1999-06-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4968
4969 * event-top.c (setup_event_loop): Change name to start_event_loop.
4970 Move the intialization of event-loop variables to
4971 _initialize_event_loop.
4972 (_initialize_event_loop): New function. Called at init time, to
4973 set up important event-loop variables.
4974
4975 * event-loop.h: setup_event_loop is now start_event_loop.
4976 * main.c (main): Ditto.
4977
4978 Fri Jun 11 18:34:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
4979
4980 * defs.h (gdb_file_rewind_ftype, gdb_file_rewind,
4981 set_gdb_file_rewind, gdb_file_put_ftype, gdb_file_put,
4982 set_gdb_file_put): Declare.
4983
4984 * utils.c (gdb_file_new): Initialize ``rewind'' and ``put''.
4985 (struct gdb_file): Add to_rewind and to_put.
4986 (null_file_put, null_file_rewind, gdb_file_put, gdb_file_rewind,
4987 set_gdb_file_put, set_gdb_file_rewind): New functions.
4988 (tui_file_rewind, tui_file_put): New functions.
4989 (tui_file_new): Add rewind and put.
4990
4991 Fri Jun 11 15:10:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
4992
4993 * d10v-tdep.c (d10v_push_arguments): Fix order of arguments passed
4994 to store_address.
4995
4996 Fri Jun 11 10:31:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
4997
4998 * remote.c (tty_input): Change array to pointer.
4999 (_initialize_remote): Call build_remote_gdbarch_data.
5000 (build_remote_gdbarch_data): New function. Allocate space for
5001 tty_input.
5002 (readsocket, readtty): Delete extern declaration of tty_input.
5003
5004 1999-06-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5005
5006 * event-top.c (gdb_readline2): Call the command handling function
5007 via the input_handler pointer.
5008 (change_line_handler): When turning off editing, set input_handler
5009 as well.
5010
5011 * utils.c (prompt_for_continue): If running asynchronously, call
5012 async_request_quit, instead of request_quit.
5013
5014 * tracepoint.c (read_actions): If running asynchronously, set the
5015 signal handler for STOP_SIGNAL to handle_stop_sig.
5016
5017 * top.h: (source_line_number, source_file_name, source_error,
5018 source_pre_error, history_expansion_p, server_command): export for
5019 use of event-top.c.
5020
5021 * event-top.c: Include top.h and terminal.h.
5022 (instream): Remove extern declaration.
5023 (handle_sigint, handle_sigquit, handle_sighup, handle_sigfpe,
5024 handle_sigwinch, async_do_nothing, async_disconnect,
5025 async_float_handler, async_stop_sig): Make static.
5026 (async_request_quit, async_do_nothing, async_disconnect,
5027 async_float_handler, async_stop_sig): Add gdb_glient_data
5028 argument.
5029 (handle_stop_sig): New function.
5030 (sigtstp_token): New variable.
5031 (sigint_token, sigquit_token, sigfpe_token, sigwinch_token):
5032 Change their type tp PTR.
5033 (mark_async_signal_handler_wrapper): New function.
5034 (setup_event_loop): Initialize all the variables used by readline
5035 only if not already done while reading the .gdbinit file. Display
5036 the initial gdb prompt, if .gdbinit took care of setting things up
5037 for readline.
5038 (change_line_handler): When turning on the use of readline,
5039 initialize input_handler as well.
5040 (command_line_handler): Set up the signal handler for STOP_SIGNAL
5041 to be handle_stop_sig.
5042 (async_init_signals): Remove coercion of signal handlers in calls
5043 to create_async_signal_handler. Initialize token for stop signal.
5044 (handle_sigint): Call async_request_quit using one argument.
5045 (handle_sigint, handle_sigquit, handle_sighup, handle_sigfpe,
5046 handle_sigwinch): Call mark_async_signal_handler_wrapper instead
5047 of mark_async_signal_handler.
5048
5049 * event-loop.h: Add extern declarations for handle_stop_sig,
5050 async_command_editing_p, async_annotation_suffix,
5051 new_async_prompt, the_prompts.
5052
5053 * top.c (command_line_input): Set the signal handler to be
5054 handle_stop_sig, in case gdb is running asynchronously.
5055 (get_prompt): Return the top of the prompt stack if running
5056 asynchronously.
5057 (set_prompt): Set the top of the prompt stack if running
5058 asynchronously.
5059 (init_main): Move ``extern'' vars from here to event-loop.h.
5060
5061 1999-06-10 Michael Snyder <msnyder@cleaver.cygnus.com>
5062
5063 * values.c (value_from_string): new function. Make a value_ptr
5064 from a string, with storage in local GDB memory (not in inferior).
5065 * value.h (value_from_string): add prototype.
5066 * remote.c (remote_cisco_ops): New remote target, "target cisco".
5067 (init_remote_cisco_ops): New function, initialize new target.
5068 (remote_cisco_mourn, remote_cisco_wait, remote_cisco_open,
5069 remote_cisco_close): New functions, implement new target cisco.
5070 (minitelnet, readtty, readsocket) New functions, implement the
5071 I/O pass-through mode for target cisco.
5072 (remote_wait): Detect special enhanced version of the 'S' packet
5073 for target cisco.
5074 (remote_cisco_expand): Perform Cisco variant of RLL decoding.
5075
5076 1999-06-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5077
5078 * event-loop.c (gdb_wait_for_event): Initialize num_found to 0.
5079
5080 * top.c (print_prompt): Delete this function.
5081
5082 From: Andrew Cagney <cagney@b1.cygnus.com>
5083
5084 * event-top.c (async_hook): Delete extern declaration.
5085
5086 * defs.h: Replace ``async_hook'' with ``async_p''.
5087 * top.c (gdb_init, init_main, init_main, init_main, init_main):
5088 Replace ``async_hook'' with ``async_p''.
5089
5090 * main.c: Rename ``async'' to ``async_p''.
5091 (main): Add --noasync option.
5092 (main): Hook in the asynchronous event-loop based CLI using
5093 command_loop_hook instead of async_hook. Delete call to
5094 async_hook().
5095
5096 Thu Jun 10 21:14:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
5097
5098 * mn10300-tdep.c (mn10300_store_return_value,
5099 mn10300_extract_struct_value_address,
5100 mn10300_extract_return_value), config/mn10300/tm-mn10300.h: New
5101 functions.
5102 * config/mn10300/tm-mn10300.h (EXTRACT_STRUCT_VALUE_ADDRESS,
5103 STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE): Update.
5104 (TARGET_MN10300): Delete macro. Not used.
5105
5106 Thu Jun 10 20:04:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
5107
5108 * mn10300-tdep.c (mn10300_register_names): Make static.
5109 (STORE_STRUCT_RETURN): Do not modify SP.
5110
5111 * config/mn10300/tm-mn10300.h(mn10300_register_name),
5112 mn10300-tdep.c : New function.
5113 * config/mn10300/tm-mn10300.h (REGISTER_NAME): Update.
5114 * config/mn10300/tm-mn10300.h (mn10300_saved_pc_after_call),
5115 mn10300-tdep.c: New function.
5116 * config/mn10300/tm-mn10300.h (SAVED_PC_AFTER_CALL): Update.
5117
5118 1999-06-10 Keith Seitz <keiths@cygnus.com>
5119
5120 * mcore-rom.c (picobug_dumpregs): Return a value. Any value, it
5121 doesn't matter.
5122 * mcore-tdep.c (mcore_analyze_prologue): Set NO_MORE_FRAMES
5123 if the start of the function is the entry point.
5124 (mcore_analyze_prologue): rotli takes an immediate, not an
5125 offset immediate.
5126 (mcore_push_arguments): Fix compiler warning.
5127
5128 1999-06-09 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
5129
5130 * rs6000-tdep.c (skip_prologue): Don't mistake a branch for a
5131 subroutine call.
5132
5133 1999-06-08 Michael Snyder <msnyder@cleaver.cygnus.com>
5134
5135 * remote.c (remote_wait): Add 'N' response packet, which is a
5136 stop with signal number plus section offsets for .text, .data and
5137 .bss. This is used by Cisco to indicate relocation offsets.
5138 (remote_cisco_section_offsets, remote_cisco_objfile_relocate):
5139 new files to support 'N' packet.
5140 (remote_info_process): New function. Implements the
5141 "info remote-process" command, by means of which the remote target
5142 can report anything it wants to about the remote process/app being
5143 debugged.
5144 (_initialize_remote): add info remote-proc command.
5145 (remote_threads_info): New function for "info threads" command.
5146 Attempts to use new query "qfThreadInfo" instead of the old
5147 undocumented query.
5148 * exec.c (exec_set_section_offsets) new files to support 'N' packet.
5149
5150 Tue Jun 8 13:33:42 1999 Andrew Cagney <cagney@amy.cygnus.com>
5151
5152 * inferior.h (generic_target_read_pc, generic_target_write_pc,
5153 generic_target_read_fp, generic_target_write_fp,
5154 generic_target_read_sp, generic_target_write_sp): Declare new
5155 functions.
5156 * findvar.c (generic_target_read_pc, generic_target_write_pc,
5157 generic_target_read_fp, generic_target_write_fp,
5158 generic_target_read_sp, generic_target_write_sp): New functions.
5159 (TARGET_READ_PC, TARGET_WRITE_PC, TARGET_READ_FP, TARGET_WRITE_FP,
5160 TARGET_READ_SP, TARGET_WRITE_SP): Default to corresponding generic
5161 function.
5162 (write_pc_pid, write_pc_pid, read_sp, write_sp, read_fp,
5163 write_fp): Simplify.
5164
5165 * gdbarch.c (verify_gdbarch): Always verify TARGET_PTR_BIT,
5166 TARGET_SHORT_BIT, TARGET_INT_BIT, TARGET_LONG_BIT,
5167 TARGET_LONG_LONG_BIT, TARGET_FLOAT_BIT, TARGET_DOUBLE_BIT,
5168 TARGET_LONG_DOUBLE_BIT, TARGET_READ_PC, TARGET_WRITE_PC,
5169 TARGET_READ_FP, TARGET_WRITE_FP, TARGET_READ_SP, TARGET_WRITE_SP,
5170 USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY_BREAKPOINT_OFFSET_P,
5171 CALL_DUMMY_P, CALL_DUMMY_STACK_ADJUST_P, GET_SAVED_REGISTER,
5172 REGISTER_CONVERTIBLE, PUSH_ARGUMENTS, PUSH_RETURN_ADDRESS,
5173 FRAME_CHAIN_VALID.
5174 (GET_GDBARCH, SET_GDBARCH): Delete macros. Implement functions
5175 directly.
5176 * gdbarch.h, gdbarch.c: Call fatal() instead of abort(). Identify
5177 the function / macro with a problem. Always verify a architecture
5178 attribute before returning it.
5179 * gdbarch.h, gdbarch.c (generic_register_convertible_not): New
5180 function.
5181
5182 * mips-tdep.c (mips_push_return_address): New function.
5183 * config/mips/tm-mips.h (PUSH_RETURN_ADDRESS): Define.
5184
5185 * mips-tdep.c (mips_gdbarch_init): Initialize short_bit,
5186 double_bit, long_double_bit, read_pc, write_pc, read_fp, write_fp,
5187 read_sp, write_sp, frame_chain_valid, get_saved_register,
5188 push_arguments, push_return_address, register_convertible,
5189 call_dummy_p, use_generic_dummy_frames,
5190 call_dummy_breakpoint_offset_p, call_dummy_stack_adjust_p,
5191 call_dummy_words and sizeof_call_dummy_words.
5192 * config/mips/tm-mips.h: Don't define CALL_DUMMY when multi-arch.
5193
5194 1999-06-07 Keith Seitz <keiths@cygnus.com>
5195
5196 * v850ice.c (init_hidden_window): Do not rely on the existence of
5197 a gui for window creation. Return boolean status.
5198 (v850ice_open): Use boolean status of init_hidden_window.
5199 Allow any ICE execution command to run under CLI. Maybe one
5200 day gdb will use a real event loop and allow this code to run.
5201 * configure.tgt: Configure the v850 ice for all cygwin-hosted
5202 toolchains.
5203
5204 Mon Jun 7 23:37:26 1999 Andrew Cagney <cagney@amy.cygnus.com>
5205
5206 * config/mips/tm-mips.h (EXTRA_FRAME_INFO): Delete.
5207 * mips-tdep.c (mips_init_extra_frame_info): Allocate saved_regs.
5208 (temp_saved_regs): Replace struct with a simple pointer.
5209 (set_reg_offset, mips32_heuristic_proc_desc, heuristic_proc_desc,
5210 mips_init_extra_frame_info): Update.
5211
5212 Mon Jun 7 21:40:12 1999 Andrew Cagney <cagney@amy.cygnus.com>
5213
5214 * config/mips/tm-mips.h (EXTRA_FRAME_INFO): Move elements from here.
5215 * mips-tdep.c (struct frame_extra_info): To here.
5216
5217 * mips-tdep.c (mips_print_extra_frame_info, mips_find_saved_regs,
5218 mips_init_extra_frame_info, mips_pop_frame): Update
5219 (mips_init_extra_frame_info): Allocate space for the extra info.
5220
5221 Mon Jun 7 21:08:50 1999 Andrew Cagney <cagney@amy.cygnus.com>
5222
5223 * config/mips/tm-mips.h (mips_init_extra_frame_info), mips-tdep.c:
5224 Rename init_extra_frame_info. Add argument ``fromleaf''.
5225 mips-tdep.c (mips_gdbarch_init): Add mips_init_extra_frame_info.
5226
5227 * config/mips/tm-mips.h (mips_print_extra_frame_info),
5228 mips-tdep.c: New function.
5229 (PRINT_EXTRA_FRAME_INFO): Update definition.
5230
5231 Mon Jun 7 20:11:07 1999 Andrew Cagney <cagney@amy.cygnus.com>
5232
5233 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
5234 config/mips/tm-tx19.h, config/mips/tm-tx19l.h,
5235 config/mips/tm-tx39.h, config/mips/tm-tx39l.h: Rename macro
5236 REGISTER_NAMES to MIPS_REGISTER_NAMES.
5237
5238 * config/mips/tm-mips.h (REGISTER_NAME): Define.
5239 * mips-tdep.c (mips_processor_reg_names): New static variable.
5240 (mips_register_name): New function.
5241 (mips_set_processor_type): Update mips_processor_reg_names.
5242 (mips_generic_reg_names): Initialize using MIPS_REGISTER_NAMES.
5243 (mips_gdbarch_init): Add mips_register_name.
5244
5245 Sun Jun 6 11:09:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
5246
5247 * remote.c (PBUFSIZ): Re-define so that value is computed at
5248 run-time.
5249 (MAXBUFBYTES): Re-define as a macro function.
5250 * gdbarch.h, gdbarch.c: Add multi-arch support for REGISTER_BYTES.
5251 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
5252
5253 1999-06-05 Fernando Nasser <fnasser@totem.to.cygnus.com>
5254
5255 * symtab.c (decode_line_1): Accept filenames with spaces in
5256 'linespecs' when enclosed in double quotation marks and handle
5257 drive specification is DOS format (D:).
5258
5259 1999-06-04 Jim Blandy <jimb@zwingli.cygnus.com>
5260
5261 * parse.c: Don't include <ctype.h> twice.
5262
5263 1999-06-04 David Taylor <taylor@louisiana.cygnus.com>
5264
5265 Sat May 15 12:16:09 1999 Per Bothner <bothner@deneb.cygnus.com>
5266
5267 * eval.c (evaluate_subexp_standard): Remove Gilmore rant.
5268 (Of course C has "expected types", at least if you allow
5269 brace-initializer expressions - as in Gcc.)
5270 Remove NULLing out expect_type. Do pass NULL_TYPE in place
5271 the incoming expect_type where appropriate.
5272
5273 Fri Jun 4 10:56:23 1999 Jeffrey A Law (law@cygnus.com)
5274
5275 * hppa-tdep.c (hppa_fix_call_dummy): Make it work for GCC compiled
5276 executables without end.o. Clean up lots of mis-guided comments.
5277
5278 Fri Jun 4 17:10:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
5279
5280 * parser-defs.h (std_regs): Replace array with pointer.
5281 * parse.c (build_parse): Build the std_regs table according to the
5282 standard registers available.
5283 (_initialize_parse): Register std_regs and num_std_regs as
5284 architecture specific.
5285 * gdbarch.h, gdbarch.c: Add multi-arch support for SP_REGNUM,
5286 FP_REGNUM, PC_REGNUM, NUM_REGS, REGISTER_NAME.
5287 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
5288
5289 1999-06-03 Michael Snyder <msnyder@cleaver.cygnus.com>
5290
5291 * thread.c: eliminate the target_thread_vector (functionality
5292 moved into the standard target vector).
5293 * gdbthread.h: eliminate target_thread_vector. Move all related
5294 defines into remote.c, since they are no longer shared with thread.c.
5295 * remote.c: eliminate the target_thread_vector.
5296 (remote_find_new_threads): change return type to void, consistent
5297 with the target vector table. (cont_thread): rename continue_thread.
5298 (record_currthread): remove dead code. (remote_thread_alive):
5299 clean up and simplify. (threadref etc.): move definitions to here
5300 from gdbthread.h.
5301
5302 1999-06-02 Jason Molenda (jsm@bugshack.cygnus.com)
5303
5304 * inftarg.c (child_create_inferior): Remove dead HPUX specific code
5305 which tries to find csh.
5306 * fork-child.c: Remove DEBUGGING predefine and conditionalized
5307 printfs.
5308 (fork_inferior): Remove dead HPUX specific code which assumes shell
5309 is csh.
5310
5311 * hppa-tdep.c: Remove DEBUGGING and #if 0 debugging printfs.
5312 * parse.c: Ditto.
5313 * somread.c: Ditto.
5314
5315 * gdbarch.h: Forward decl of struct value.
5316
5317 Thu Jun 3 10:12:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
5318
5319 * d10v-tdep.c (do_d10v_pop_frame): Rename d10v_pop_frame. Make
5320 static.
5321 * d10v-tdep.c (d10v_pop_frame), config/d10v/tm-d10v.h: New
5322 function. Call generic_pop_current_frame.
5323 * config/d10v/tm-d10v.h (POP_FRAME): Update.
5324 * gdbarch.h, gdbarch.c (frame_num_args_unknown): New function.
5325 * gdbarch.h, gdbarch.c: Add multi-arch support for POP_FRAME,
5326 SKIP_PROLOGUE, INNER_THAN, DECR_PC_AFTER_BREAK,
5327 FUNCTION_START_OFFSET, REMOTE_TRANSLATE_XFER_ADDRESS, FRAME_CHAIN,
5328 FRAME_CHAIN_VALID, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS,
5329 FRAME_LOCALS_ADDRESS, FRAME_ARGS_SKIP,
5330 FRAMELESS_FUNCTION_INVOCATION, REGISTER_BYTE, REGISTER_RAW_SIZE,
5331 REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, SAVED_PC_AFTER_CALL,
5332 FRAME_NUM_ARGS, MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5333 REGISTER_SIZE.
5334 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
5335 * config/d10v/tm-d10v.h (DMEM_START, IMEM_START, STACK_START,
5336 ARG1_REGNUM, ARGN_REGNUM, RET1_REGNUM): Move definitions from
5337 here.
5338 * d10v-tdep.c: To here.
5339 * config/d10v/tm-d10v.h (struct type): Move declaration from here.
5340 * gdbarch.h: To here.
5341 * config/d10v/tm-d10v.h (struct frame_info, struct
5342 frame_saved_regs, struct type): Delete declarations.
5343
5344 1999-06-02 Robert Hoehne <robert.hoehne@gmx.net>
5345
5346 * go32-nat.c: go32_terminal_init, go32_terminal_inferior and
5347 go32_terminal_ours are new functions to save/restore the inferior`s
5348 stdin/stdout filemodes
5349
5350 1999-06-02 Stan Shebs <shebs@andros.cygnus.com>
5351
5352 * MAINTAINERS: Add Mark Kettenis, Jeff Law, and Philippe De Muyter
5353 as maintainers for Hurd, HP/UX, and COFF, respectively.
5354
5355 1999-06-02 Mark Kettenis <kettenis@gnu.org>
5356
5357 * gnu-nat.c (inf_continue): New function.
5358 (struct inf): Use `unsigned int' instead of `int' for bit-fields.
5359 Add new bit-field named `nomsg'.
5360 (inf_validate_procinfo): Renamed from inf_validate_stopped, all
5361 callers changed. Also update the `nomsg' and `traced' fields of
5362 INF.
5363 (make_inf): Initialize INF->nomsg.
5364 (inf_cleanup): Reset INF->nomsg.
5365 (inf_detach): Call `inf_validate_procinfo'. Call `inf_continue'
5366 instead of `inf_signal' if the inferior does not have a message
5367 port.
5368 (gnu_resume): Likewise.
5369 (gnu_create_inferior): Reset INF->nomsg in `attach_to_child'.
5370 Call `inf_validate_procinfo' after returning from `fork_inferior'.
5371 (gnu_attach): Update signal thread and tracing state.
5372
5373 * config/i386/tm-i386gnu.h: Include "i386/tm-i386.h" instead of
5374 "i386/tm-i386v.h".
5375 (STACK_END_ADDR): Remove.
5376 (SIGCONTEXT_PC_OFFSET): New define.
5377 Include "tm-sysv4.h".
5378
5379 1999-06-02 J.T. Conklin <jtc@redback.com>
5380
5381 * config/tm-vxworks.h: New file, header for definitions common to
5382 all vxWorks targets.
5383 * config/a29k/tm-vx29k.h, config/i960/tm-vx960.h,
5384 config/m68k/tm-vx68.h, config/mips/tm-vxmips.h,
5385 config/sparc/tm-vxsparc.h: Include tm-vxworks.h.
5386
5387 Wed Jun 2 17:37:03 1999 Jeffrey A Law (law@cygnus.com)
5388
5389 * config/pa/tm-hppa.h (IMPORT_SHLIB): New unwind stub type.
5390
5391 1999-06-02 Christopher Faylor <cgf@cygnus.com>
5392
5393 * configure.tgt: Alphabetically reorder some targets.
5394
5395 1999-06-02 Keith Seitz <keiths@cygnus.com>
5396
5397 * v850ice.c (v850ice_xfer_memory): Insert lost "break".
5398
5399 1999-06-02 Jim Blandy <jimb@zwingli.cygnus.com>
5400
5401 * rs6000-tdep.c (variants): Fix description of 750 register set.
5402 (Thanks to J. T. Conklin.)
5403
5404 Wed Jun 2 16:10:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
5405
5406 * gdbarch.h, gdbarch.c: Add multi-arch support for
5407 STORE_STRUCT_RETURN, STORE_RETURN_VALUE,
5408 EXTRACT_STRUCT_VALUE_ADDRESS, USE_STRUCT_CONVENTION,
5409 FRAME_INIT_SAVED_REGS and INIT_EXTRA_FRAME_INFO.
5410 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
5411
5412 * config/d10v/tm-d10v.h (FRAME_INIT_SAVED_REGS): Replace
5413 FRAME_FIND_SAVED_REGS.
5414 (d10v_frame_init_saved_regs): Replace d10v_frame_find_saved_regs.
5415 * d10v-tdep.c (d10v_pop_frame, d10v_frame_chain,
5416 d10v_frame_init_saved_regs): Update.
5417 * gdbarch.h: Disallow FRAME_FIND_SAVED_REGS when multi-arch.
5418
5419 * gdbarch.h, gdbarch.c: Add multi-arch support for
5420 D10V_MAKE_DADDR, D10V_MAKE_IADDR, D10V_DADDR_P, D10V_IADDR_P,
5421 D10V_CONVERT_DADDR_TO_RAW and D10V_CONVERT_IADDR_TO_RAW.
5422 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
5423
5424 * config/d10v/tm-d10v.h (EXTRA_FRAME_INFO): Delete.
5425 * d10v-tdep.c (struct frame_extra_info): Define.
5426 (d10v_init_extra_frame_info, d10v_pop_frame, d10v_frame_chain,
5427 d10v_frame_find_saved_regs): Update.
5428 * gdbarch.h: Disallow EXTRA_FRAME_INFO when multi-arch.
5429
5430 Tue Jun 1 13:36:31 1999 Philippe De Muyter <phdm@macqel.be>
5431
5432 * config/m68k/tm-delta68.h (FRAME_NUM_ARGS): Macro prototype fixed.
5433 * config/m68k/tm-news.h, config/ns32k/tm-merlin.h: Ditto.
5434 * config/ns32k/tm-umax.h (FRAME_NUM_ARGS): Old macro definition
5435 removed; new macro prototype fixed.
5436
5437 Wed Jun 2 11:18:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
5438
5439 * gdbarch.h, gdbarch.c: Add multi-arch support for
5440 EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS, PUSH_DUMMY_FRAME,
5441 PUSH_RETURN_ADDRESS, POP_FRAME, FRAME_FIND_SAVED_REGS.
5442 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
5443
5444 * gdbarch.h, gdbarch.c: Add multi-arch support for
5445 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5446 REGISTER_CONVERT_TO_RAW.
5447 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
5448
5449 * defs.h (REGISTER_NAME): Move compatibility definition from here.
5450 * gdbarch.h: To here.
5451
5452 * frame.h, blockframe.c (generic_fix_call_dummy): New
5453 stub function.
5454 * gdbarch.h, gdbarch.c: Add multi-arch support for FIX_CALL_DUMMY.
5455 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
5456
5457 Tue Jun 1 20:06:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
5458
5459 * d10v-tdep.c (d10v_gdbarch_init): Set get_saved_register.
5460 * config/d10v/tm-d10v.h: Update.
5461
5462 Tue Jun 1 19:50:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
5463
5464 * gdbarch.h, gdbarch.c: Add multi-arch support for TARGET_READ_PC,
5465 TARGET_WRITE_PC, TARGET_READ_FP, TARGET_WRITE_FP, TARGET_READ_SP
5466 and TARGET_WRITE_SP.
5467 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
5468
5469 Tue Jun 1 19:19:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
5470
5471 * gdbarch.c (default_gdbarch): Set field GET_SAVED_REGISTER to
5472 generic_get_saved_register.
5473 * gdbarch.c: Change update dispatch functions so that they check
5474 for a NULL function pointer.
5475
5476 Tue Jun 1 19:19:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
5477
5478 * gdbarch.h, gdbarch.c: Add multi-arch support for TARGET_INT_BIT,
5479 TARGET_CHAR_BIT, TARGET_SHORT_BIT, TARGET_FLOAT_BIT,
5480 TARGET_DOUBLE_BIT and TARGET_LONG_DOUBLE_BIT.
5481 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
5482
5483 Tue Jun 1 18:47:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
5484
5485 * parse.c (build_parse): New function. Initialize
5486 msym_text_symbol_type, msym_data_symbol_type and
5487 msym_unknown_symbol_type.
5488 (_initialize_parse): Call build_parse.
5489 (_initialize_parse): Register variables msym_text_symbol_type,
5490 msym_data_symbol_type as msym_unknown_symbol_type as
5491 per-architecture.
5492
5493 Tue Jun 1 11:30:09 1999 Andrew Cagney <cagney@b1.cygnus.com>
5494
5495 * d10v-tdep.c (_initialize_d10v_tdep): Register d10v as an
5496 architecture.
5497 (d10v_gdbarch_init): New function.
5498 * confg/d10v/tm-d10v.h (GDB_MULTI_ARCH): Define.
5499
5500 Tue Jun 1 10:45:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
5501
5502 * config/d10v/tm-d10v.h (REGISTER_CONVERTIBLE,
5503 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERT_TO_VIRTUAL): Convert
5504 macros into functions.
5505 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_register_convertable,
5506 d10v_register_convert_to_virtual, d10v_register_convert_to_raw):
5507 The new functions.
5508
5509 1999-05-31 Fernando Nasser <fnasser@totem.to.cygnus.com>
5510
5511 * stack.c (print_args_stub): Add missing stream parameter.
5512
5513 Mon May 31 15:50:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
5514
5515 Fri May 28 16:51:00 1999 Martin Dorey <martin.dorey@madge.com>:
5516 * valops.c, value.h (default_push_arguments): Fix order of
5517 parameters to match PUSH_ARGUMENTS arguments.
5518
5519 Thu May 27 11:42:55 1999 Andrew Cagney <cagney@b1.cygnus.com>
5520
5521 * gdbarch.h (EXTRACT_STRUCT_VALUE_ADDRESS): Return 0.
5522
5523 * valops.c (value_assign): Delete redundant test of
5524 REGISTER_CONVERTIBLE.
5525
5526 Thu May 27 11:33:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
5527
5528 * config/w65/tm-w65.h, config/tic80/tm-tic80.h, config/sh/tm-sh.h,
5529 config/i386/tm-i386m3.h, config/i386/tm-go32.h,
5530 config/i386/tm-cygwin.h, config/h8500/tm-h8500.h,
5531 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h: Delete definition of
5532 macro NAMES_HAVE_UNDERSCORE.
5533
5534 Thu May 27 09:31:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
5535
5536 * gdbarch.h (EXTRACT_STRUCT_VALUE_ADDRESS,
5537 EXTRACT_STRUCT_VALUE_ADDRESS_P): Provide default definitions.
5538 * values.c (value_being_returned): Use
5539 EXTRACT_STRUCT_VALUE_ADDRESS when EXTRACT_STRUCT_VALUE_ADDRESS_P.
5540
5541 Wed May 26 13:51:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
5542
5543 * utils.c (tui_file_new, tui_file_delete, tui_fileopen): New
5544 functions.
5545 (tui_file_isatty): Rename gdb_file_isatty.
5546 (gdb_file_init_astring): Use tui_file_new to create stream.
5547 (gdb_file_get_strbuf, gdb_file_adjust_strbuf): Call gdb_file_data
5548 to access the tui_stream.
5549 (tui_file_flush): Rename gdb_flush. Call gdb_file_data to access
5550 the tui_stream. Pass FILE and not STREAM down.
5551
5552 * utils.c (struct stdio_file, stdio_file_flush, stdio_file_fputs,
5553 stdio_file_isatty, stdio_file_delete, stdio_file_new,
5554 stdio_fileopen): Define type and functions. Implement a simple
5555 STDIO based gdb_file.
5556 (struct gdb_file, gdb_file_new, gdb_file_delete, null_file_isatty,
5557 null_file_flush, null_file_fputs, null_file_delete, gdb_file_data,
5558 set_gdb_file_flush, set_gdb_file_isatty, set_gdb_file_fputs,
5559 set_gdb_file_data, fputs_unfiltered, gdb_flush, gdb_file_isatty):
5560 Define type and functions. Implement virtual functions for
5561 gdb_file.
5562
5563 * defs.h (struct gdb_file): Declare.
5564 (GDB_FILE): Change type to struct gdb_file. Deprecate.
5565 (gdb_file_flush_ftype, gdb_file_fputs_ftype,
5566 gdb_file_isatty_ftype, gdb_file_delete_ftype): Add function type
5567 declarations.
5568
5569 * defs.h (set_gdb_file_flush, set_gdb_file_fputs,
5570 set_gdb_file_isatty, set_gdb_file_data, gdb_file_new,
5571 gdb_file_delete, gdb_file_data, stdio_fileopen, tui_fileopen): Add
5572 function declarations.
5573 (gdb_fopen): Re-implement. Call stdio_file_new.
5574 (gdb_fclose): Re-implement. Call gdb_file_delete.
5575
5576 * main.c (tui_file_fputs): Rename fputs_unfiltered. Use
5577 gdb_file_data to gain access to the tui_stream data. Use FILE
5578 instead of STREAM where applicable.
5579 (main): Create gdb_stdout and gdb_stderr using tui_fileopen.
5580
5581 * defs.h (struct tui_stream): Add field ts_magic.
5582 * utils.c (tui_file_magic): Local variable.
5583 (tui_file_new): Set field ts_magic.
5584 (tui_file_delete, tui_file_isatty, gdb_file_init_astring,
5585 gdb_file_get_strbuf, gdb_file_adjust_strbuf, tui_file_flush):
5586 Verify ts_magic.
5587
5588 1999-05-25 Jim Blandy <jimb@zwingli.cygnus.com>
5589
5590 * breakpoint.c (insert_breakpoints, remove_breakpoint,
5591 breakpoint_1): Add a 'default' case, which prints a warning
5592 message, to remove EGCS warnings.
5593
5594 1999-05-25 Fernando Nasser <fnasser@totem.to.cygnus.com>
5595
5596 * utils.c (gdb_file_adjust_strbuf): Take into account the
5597 possibility that the buffer has not been allocated yet.
5598
5599 Tue May 25 16:05:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
5600
5601 * gdbarch.h (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5602 REGISTER_CONVERT_TO_RAW): Provide default definition.
5603
5604 * valops.c (value_assign), infcmd.c (do_registers_info), findvar.c
5605 (value_from_register, value_of_register): Remove #ifdef
5606 REGISTER_CONVERTIBLE. Assume REGISTER_CONVERTIBLE etc defined.
5607
5608 1999-05-25 Keith Seitz <keiths@cygnus.com>
5609
5610 * config/mcore/tm-mcore.h (FRAME_NUM_ARGS): Re-write definition of
5611 FRAME_NUM_ARGS so that it returns NUM_ARGS as a result instead of
5612 setting a variable as a side effect.
5613
5614 Tue May 25 16:18:25 1999 Andrew Cagney <cagney@amy.cygnus.com>
5615
5616 * remote-d10v.c (d10v_eva_prepare_to_trace,
5617 d10v_eva_get_trace_data), remote-sim.c (_initialize_remote_sim):
5618 Add declaraton. Make static.
5619
5620 * remote-d10v.c (_initialize_remote_d10v), d10v-tdep.c
5621 (_initialize_d10v_tdep): Add declaration.
5622 * config/d10v/tm-d10v.h (d10v_frame_chain): Add declaration.
5623
5624 Tue May 25 15:20:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
5625
5626 * main.c (init_proc, proc_remove_foreign): Delete function.
5627 * inftarg.c (child_mourn_inferior): Update. Delete call to
5628 proc_remove_foreign().
5629 * top.c (gdb_init): Update. Delete call to init_proc().
5630
5631 * utils.c (pollquit, fmthex, hexlate): Delete function.
5632
5633 Tue May 25 13:01:43 1999 Andrew Cagney <cagney@amy.cygnus.com>
5634
5635 * main.c (gdb_init): Move declaration from here.
5636 * top.h: To here.
5637
5638 * defs.h (init_page_info): Add declaration.
5639
5640 * top.c (initialize_utils): Move declaration from here.
5641 * defs.h: To here.
5642
5643 * infcmd.c (target_map_name_to_register): Move declaration from
5644 here.
5645 * parser-defs.h: To here.
5646
5647 * c-typeprint.c (cp_type_print_method_args), target.c
5648 (nosupport_runtime, normal_target_post_startup_inferior): Add
5649 declaration. Make static.
5650
5651 Tue May 25 13:53:23 1999 Andrew Cagney <cagney@amy.cygnus.com>
5652
5653 * main.c: Include "event-loop.h".
5654 * Makefile.in (main.o): Add dependency.
5655
5656 * top.h (setup_event_loop, async_init_signals), top.c
5657 (set_async_editing_command, set_async_annotation_level,
5658 set_async_prompt), event-loop.c (display_gdb_prompt): Move
5659 declarations from here.
5660 * event-loop.h: To here.
5661
5662 * event-loop.h (delete_async_signal_handler): Add function
5663 declaration.
5664
5665 * event-top.c (change_annotation_level, command_handler): Add
5666 declaration. Make static.
5667
5668 Tue May 25 12:44:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
5669
5670 * tracepoint.c (free_actions_list, add_register): Add declaration.
5671 Make static.
5672 (free_actions_list_cleanup_wrapper): New function. Wraps
5673 free_actions_list for make_cleanup.
5674 (trace_start_command): Pass free_actions_list_cleanup_wrapper
5675 instead of free_actions_list to make_cleanup.
5676 (_initialize_tracepoint): Add extern declaration.
5677
5678 Tue May 25 12:23:39 1999 Andrew Cagney <cagney@amy.cygnus.com>
5679
5680 * jv-typeprint.c (java_type_print_base, jv-valprint.c
5681 (java_print_value_fields): Add static declaration.
5682
5683 * jv-lang.c (java_lookup_type, get_java_utf8_name,
5684 java_lookup_type): Add static declaration.
5685 (get_java_class_symtab, java_class_is_primitive,
5686 java_value_string): Add declaration. Make static.
5687 (java_rerun_cleanup): Add extern declaration for this stub
5688 function.
5689
5690 Tue May 25 12:06:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
5691
5692 * gdbarch.h: When multi-arch, check that REGISTER_NAMES was not
5693 defined.
5694
5695 Mon May 24 16:16:29 1999 Andrew Cagney <cagney@amy.cygnus.com>
5696
5697 * inflow.c (_initialize_inflow), annotate.c
5698 (_initialize_annotate), os9kread.c (_initialize_os9kread),
5699 serial.c (_initialize_serial), nlmread.c (_initialize_nlmread),
5700 f-valprint.c (_initialize_f_valprint), cp-valprint.c
5701 (_initialize_cp_valprint), typeprint.c (_initialize_typeprint),
5702 complaints.c (_initialize_complaints), scm-lang.c
5703 (_initialize_scheme_language), m2-lang.c
5704 (_initialize_m2_language), dbxread.c (_initialize_dbxread),
5705 f-lang.c (_initialize_f_language), ch-lang.c
5706 (_initialize_chill_language), c-lang.c (_initialize_c_language),
5707 corefile.c (_initialize_core), stabsread.c
5708 (_initialize_stabsread), mipsread.c (_initialize_mipsread),
5709 elfread.c (_initialize_elfread), coffread.c
5710 (_initialize_coffread), maint.c (_initialize_maint_cmds),
5711 demangle.c (_initialize_demangler), maint.c
5712 (_initialize_maint_cmds), language.c (_initialize_language): Add
5713 external declaration.
5714
5715 Mon May 24 10:04:56 1999 Andrew Cagney <cagney@b1.cygnus.com>
5716
5717 * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/v850/tm-v850.h,
5718 config/tic80/tm-tic80.h, config/tahoe/tm-tahoe.h,
5719 config/rs6000/tm-rs6000.h, config/sparc/tm-sparc.h,
5720 config/sh/tm-sh.h, config/pyr/tm-pyr.h, config/pa/tm-hppa.h,
5721 config/ns32k/tm-merlin.h, config/mn10300/tm-mn10300.h,
5722 config/mn10200/tm-mn10200.h, config/mips/tm-mips.h,
5723 config/m88k/tm-m88k.h, config/m68k/tm-news.h,
5724 config/m68k/tm-delta68.h, config/m68k/tm-isi.h,
5725 config/m68k/tm-m68k.h, config/m32r/tm-m32r.h,
5726 config/i960/tm-i960.h, config/i386/tm-i386v.h,
5727 config/i386/tm-i386.h, config/h8500/tm-h8500.h,
5728 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
5729 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h,
5730 config/convex/tm-convex.h, config/arc/tm-arc.h,
5731 config/arm/tm-arm.h, config/alpha/tm-alpha.h,
5732 config/a29k/tm-a29k.h: Re-write definition of FRAME_NUM_ARGS so
5733 that it returns NUM_ARGS as a result instead of setting a variable
5734 as a side effect.
5735
5736 * ns32k-tdep.c (merlin_frame_num_args), tahoe-tdep.c
5737 (tahoe_frame_num_args), vax-tdep.c (vax_frame_num_args),
5738 m68k-tdep.c (news_frame_num_args, delta68_frame_num_args,
5739 isi_frame_num_args), convex-tdep.c (convex_frame_num_args): New
5740 functions.
5741
5742 * stack.c (print_args_stub): Update use of FRAME_NUM_ARGS.
5743
5744 Mon May 24 11:57:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
5745
5746 * remote.c (remote_xfer_memory): Re-write with assumption that
5747 REMOTE_TRANSLATE_XFER_ADDRESS is defined. Pass targ_addr and
5748 targ_len by reference.
5749 (REMOTE_TRANSLATE_XFER_ADDRESS): Provide default definition.
5750
5751 * remote-d10v.c (remote_d10v_translate_xfer_address): Update.
5752 * config/d10v/tm-d10v.h (REMOTE_TRANSLATE_XFER_ADDRESS): Update.
5753
5754 Mon May 24 12:10:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
5755
5756 * value.h (default_push_arguments): Add function declaration.
5757
5758 * alpha-tdep.c (alpha_about_to_return), gdbarch.c (verify_gdbarch,
5759 arch_ok, set_arch), command.c (find_cmd), infrun.c
5760 (follow_inferior_fork, follow_fork, follow_vfork,
5761 set_schedlock_func, is_internal_shlib_eventpoint,
5762 stopped_for_internal_shlib_event, stopped_for_shlib_catchpoint,
5763 xdb_handle_command), infcmd.c (run_no_args_command, go_command),
5764 symfile.c (add_filename_language, set_ext_lang_command,
5765 info_ext_lang_command, init_filename_language_table), symtab.c
5766 (overload_list_add_symbol), defs.h (default_get_saved_register),
5767 ax-general.c (grow_expr, append_const, read_const, generic_ext):
5768 Ditto.
5769
5770 * infrun.c (currently_stepping): Ditto. Make static.
5771
5772 * valops.c (hand_function_call): Explictly type static variable
5773 ``checked''.
5774
5775 Mon May 24 08:36:18 1999 Andrew Cagney <cagney@b1.cygnus.com>
5776
5777 * d10v-tdep.c (d10v_breakpoint_from_pc, d10v_register_name,
5778 d10v_register_byte, d10v_register_raw_size,
5779 d10v_register_virtual_size, d10v_register_virtual_type,
5780 d10v_make_daddr, d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
5781 d10v_convert_iaddr_to_raw, d10v_convert_daddr_to_raw,
5782 d10v_store_struct_return, d10v_store_return_value,
5783 d10v_extract_struct_value_address, d10v_frame_saved_pc,
5784 d10v_frame_args_address, d10v_frame_locals_address,
5785 d10v_saved_pc_after_call): New functions.
5786
5787 * config/d10v/tm-d10v.h (REGISTER_BYTE, REGISTER_RAW_SIZE,
5788 REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN,
5789 D10V_MAKE_DADDR, D10V_MAKE_IADDR, D10V_DADDR_P, D10V_IADDR_P,
5790 D10V_CONVERT_DADDR_TO_RAW, D10V_CONVERT_IADDR_TO_RAW,
5791 STORE_STRUCT_RETURN, STORE_RETURN_VALUE,
5792 EXTRACT_STRUCT_VALUE_ADDRESS, SAVED_PC_AFTER_CALL, FRAME_SAVED_PC,
5793 FRAME_ARGS_ADDRESS): Re-define using new functions.
5794
5795 * config/d10v/tm-d10v.h (BREAKPOINT_FROM_PC): Replace BREAKPOINT.
5796 (REGISTER_NAME): Replace REGISTER_NAMES.
5797
5798 * utils.c (core_addr_lessthan, core_addr_greaterthan): New
5799 functions.
5800 * defs.h (core_addr_lessthan, core_addr_greaterthan): Declare.
5801
5802 Sat May 22 16:44:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
5803
5804 * utils.c (n_spaces): Handle case where first call has N equal to
5805 zero.
5806 (print_spaces): Use n_spaces.
5807
5808 Fri May 21 11:23:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
5809
5810 * valops.c (value_push): Remove conditional definition based on
5811 absense of macro PUSH_ARGUMENTS. Pass SP and STRUCT_ADDR by
5812 reference.
5813 (default_push_arguments): New function.
5814
5815 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
5816 config/sparc/tm-sparc.h, config/sparc/tm-sp64.h,
5817 config/sh/tm-sh.h, config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
5818 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
5819 config/mips/tm-mips.h, config/m32r/tm-m32r.h,
5820 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
5821 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h, config/arm/tm-arm.h,
5822 config/alpha/tm-alpha.h: Update definition of PUSH_ARGUMENTS.
5823 Return updated SP.
5824
5825 * rs6000-tdep.c (rs6000_push_arguments): Rename push_arguments.
5826
5827 Thu May 20 12:18:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
5828
5829 * blockframe.c (get_prev_frame): Remove #ifdef around test for
5830 FRAMELESS_FUNCTION_INVOCATION.
5831 (get_prev_frame): Change FRAMELESS_FUNCTION_INVOCATION call to a
5832 function invocation.
5833 * i386-tdep.c (i386_frame_num_args), stack.c (frame_info): Ditto.
5834 * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/vax/tm-vax.h,
5835 config/sparc/tm-sparc.h, config/sh/tm-sh.h,
5836 config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
5837 config/mips/tm-mips.h, config/m88k/tm-m88k.h,
5838 config/m68k/tm-m68k.h, config/i960/tm-i960.h,
5839 config/i386/tm-sun386.h, config/i386/tm-i386v.h,
5840 config/i386/tm-i386.h, config/h8500/tm-h8500.h,
5841 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
5842 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h,
5843 config/convex/tm-convex.h, config/arm/tm-arm.h,
5844 config/arc/tm-arc.h, config/alpha/tm-alpha.h,
5845 config/a29k/tm-a29k.h: Update FRAMELESS_FUNCTION_INVOCATION.
5846 * fr30-tdep.c (fr30_frameless_function_invocation), convex-tdep.c
5847 (convex_frameless_function_invocation), arm-tdep.c
5848 (arm_frameless_function_invocation): New functions.
5849
5850 1999-05-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5851
5852 * top.c: Change dates in comments to ISO format.
5853
5854 * event-top.c: Ditto.
5855 * event-loop.c: Ditto.
5856 * main.c: Ditto.
5857
5858 1999-05-19 Keith Seitz <keiths@cygnus.com>
5859
5860 * config/mcore/tm-mcore.h (BELIEVE_PCC_PROMOTION): Define. We
5861 really do want to believe what gcc tells us about types...
5862
5863 1999-05-19 Keith Seitz <keiths@cygnus.com>
5864
5865 * config/mcore/tm-mcore.h (FRAME_ARGS_ADDRESS): Define to a function.
5866 (FRAME_LOCALS_ADDRESS): Ditto.
5867 * mcore-tdep.c (mcore_frame_args_addcress): New function.
5868 (mcore_frame_locals_address): New function.
5869
5870 * monitor.c (monitor_open): Only assume we have eight
5871 breakpoints if the monitor implementation does not tell
5872 us how many there really are. Alloc memory for these
5873 dynamically.
5874 (monitor_close): Free memory associated with breakpoint
5875 storage.
5876 (monitor_insert_breakpoint): Don't rely on a hardcoded
5877 number of breakpoints.
5878 (monitor_remove_breakpoint): Ditto.
5879 (NUM_MONITOR_BREAKPOINTS): Removed and replaced with monitor_ops
5880 specification.
5881 * monitor.h (struct monitor_ops): Add new member so that the
5882 individual monitor implementations can tell us how many
5883 breakpoints the monitor supports.
5884
5885 * mcore-rom.c (init_picobug_cmds): Add number of breakpoints supported
5886 by picobug monitor.
5887
5888 1999-05-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5889
5890 From Philippe De Muyter <phdm@macqel.be>:
5891 * event-loop.h: Include sys/wait.h only if HAVE_SYS_WAIT_H.
5892
5893 1999-05-17 Keith Seitz <keiths@cygnus.com>
5894
5895 * configure.tgt: Add MCore target.
5896 * Makefile.in: Add mcore-tdep.c and mcore-rom.c
5897 * config/mcore/tm-mcore.h: New file.
5898 * config/mcore/mcore.mt: New file.
5899 * mcore-rom.c: New file.
5900 * mcore-tdep.c: New file.
5901
5902 1999-05-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
5903
5904 * top.c (print_command_line): Added the missing stream argument.
5905 * gdbcmd.h: Added argument to prototype.
5906 * command.c: Fixed call to include extra argument.
5907 * breakpoint.c: Same.
5908
5909 1999-05-14 Jim Blandy <jimb@zwingli.cygnus.com>
5910
5911 Targets are #defining PREPARE_TO_PROCEED with inconsistent numbers
5912 of arguments. Since the Mach 3 target needs an argument, we'll
5913 make things consistent by adding an argument everywhere.
5914 * infrun.c (proceed): Pass an argument to PREPARE_TO_PROCEED.
5915 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Add ignored argument
5916 to definition.
5917
5918 1999-05-11 Stan Shebs <shebs@andros.cygnus.com>
5919
5920 Fri Apr 23 13:27:34 PDT 1999 Toshiyasu Morita (tm@netcom.com)
5921 * sh-stub.c: Mostly localize processor dependencies.
5922
5923 1999-05-10 Martin Hunt <hunt@cygnus.com>
5924
5925 * debugify.c, debugify.h: Removed because they are no
5926 longer used.
5927
5928 1999-05-08 Jim Blandy <jimb@zwingli.cygnus.com>
5929
5930 * infrun.c (_initialize_infrun): Handle TARGET_SIGNAL_LWP,
5931 TARGET_SIGNAL_WAITING, and TARGET_SIGNAL_CANCEL like SIGALRM or
5932 SIGIO --- pass them through to the inferior silently.
5933 * target.h (enum target_signals): Add TARGET_SIGNAL_CANCEL, for
5934 Solaris's SIGCANCEL.
5935 * target.c (target_signal_from_host, target_signal_to_host): Add
5936 mapping between SIGCANCEL and TARGET_SIGNAL_CANCEL.
5937 (signals): Add entry for SIGCANCEL.
5938
5939 1999-05-07 Stan Shebs <shebs@andros.cygnus.com>
5940
5941 After years of talking about it, finally break up the
5942 wait_for_inferior loop.
5943 * infrun.c (struct execution_control_state): New struct,
5944 holds what used to be local vars governing wfi behavior.
5945 (init_execution_control_state): New function, was code in
5946 wfi that set up execution control state.
5947 (handle_inferior_event): New function, was body of main
5948 wfi loop. Rewrite all local var references to go through
5949 the ecs structure passed into this function.
5950 (wait_for_inferior): Rewrite to set up and use execution control
5951 state, and to call the new functions.
5952 (currently_stepping): New function, was the macro
5953 CURRENTLY_STEPPING.
5954 (enum infwait_states): Rename from wfi_states.
5955 (infwait_normal_state, etc): Similarly.
5956
5957 Thu May 6 15:25:32 1999 Philippe De Muyter <phdm@macqel.be>
5958
5959 * coffread.c (coff_symtab_read): Call `record_line' with the line
5960 number of the ".bf" symbol only for one-line functions.
5961
5962 1999-05-06 Michael Snyder <msnyder@cleaver.cygnus.com>
5963
5964 * Makefile.in: thread.o depends on target.h.
5965
5966 1999-05-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5967
5968 * event-top.c (change_line_handler): Use POLLIN instead of
5969 POLLRDNORM, for compatibility with Linux.
5970 (setup_event_loop): Ditto.
5971
5972 1999-05-06 Jim Blandy <jimb@zwingli.cygnus.com>
5973
5974 * mips-tdep.c (heuristic_proc_start): Rewrite cryptic error
5975 message about hitting the "heuristic fence post" with something
5976 that actually gives the user a fighting chance of figuring out
5977 why GDB is unhappy.
5978
5979 1999-05-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5980
5981 * top.c: Include event-loop.h.
5982 (init_main): Add async version of 'set prompt' command.
5983 If in async mode define the editing and annotate set
5984 commands in a different way.
5985 Initialize new variable asyn_command_editing_p to 1.
5986 Initialize the gdb prompt for async mode.
5987 (quit_cover): Make not static, for use by the event loop.
5988 (gdb_init): Call async_init_signals for the asynchronous case.
5989 (source_line_number, source_file_name, source_error,
5990 source_pre_error, history_expansion_p): Make non-static, so
5991 event-top.c can use them.
5992 (command_loop_marker): Make non-static, for use in event-top.c.
5993 Include event-loop.h.
5994
5995 * top.h: Add prototype for async_init_signals.
5996 (SET_TOP_LEVEL): Move here from main.c.
5997 Add setup_event_loop to exported functions.
5998
5999 * defs.h: Add async_hook to exported variables.
6000
6001 * main.c (SET_TOP_LEVEL): Move to top.h, so that it is visible in
6002 event-loop.c. Add new global variable async to determine whether
6003 we are running in async mode or not.
6004 (main): Add support for --async switch. Use async_hook to call
6005 setup_event_loop, when running in async mode.
6006
6007 * event-top.c: New file. Gdb input line handler and command line
6008 handler for the event loop. Initialization of signal handlers.
6009 All the handled signals have handlers called handle_<signalname>.
6010 Set up all the appropriate tokens for asynchronous signal
6011 handling.
6012
6013 * event-loop.h: New file. Data structures and definitions for the
6014 event loop.
6015
6016 * event-loop.c: New file. Functions for the event loop
6017 implementation.
6018
6019 * config.in: Regenerate with autoheader.
6020
6021 * configure.in (AC_CHECK_FUNCS): Add poll to list of functions
6022 to be checked for.
6023
6024 * configure: Regenerate.
6025
6026 * Makefile.in (SFILES): Add new source files.
6027 (eventloop_h): Define.
6028 (COMMON_OBS): Add new object files.
6029 (event-loop.o): Add rule for target object.
6030 (event-top.o): Ditto.
6031
6032 1999-05-05 Stan Shebs <shebs@andros.cygnus.com>
6033
6034 * infrun.c (wait_for_inferior): Transform breaks and continues
6035 into gotos, move the target_wait to the very top of the loop.
6036
6037 1999-05-05 Jonathan Larmour <jlarmour@cygnus.co.uk>
6038
6039 * configure.in: Ensure that GDB links with libuser32.a under
6040 cygwin because libreadline requires it.
6041 * Makefile.in (WIN32LIBS): Substitute in result from configure
6042 * configure: regenerate
6043
6044 1999-05-04 Jim Blandy <jimb@zwingli.cygnus.com>
6045
6046 Fix from John Rigby. Richard Henderson says it seems okay.
6047 * alpha-tdep.c (PROC_DUMMY_FRAME): As long as we're abusing fields
6048 of (proc)->pdr, we ought to at least abuse one large enough to
6049 hold the value we're trying to store in it. iopt is only 32 bits
6050 wide; cbLineOffset is a bfd_vma.
6051
6052 1999-05-04 DJ Delorie <dj@cygnus.com>
6053
6054 DJGPP changes from Robert Hoehne <robert.hoehne@gmx.net>
6055
6056 * ser-go32.c: correct includes
6057 * source.c (openp): use ROOTED_P instead of SLASH_P
6058 * go32-nat.c: enhance exception and NPX handling
6059 (go32_kill_inferior): fix small bug killing inferior
6060 * configure.in: don't look for termcap with djgpp
6061 * configure: rebuild
6062
6063 1999-05-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6064
6065 * main.c (main): Comment out unused and undocumented command line
6066 option '-'.
6067
6068 1999-04-30 Jim Blandy <jimb@zwingli.cygnus.com>
6069
6070 Cleanup from Philippe De Muyter:
6071 * configure.in (BFD_NEED_DECLARATION): Check also for strstr.
6072 * acconfig.h (NEED_DECLARATION_MALLOC, NEED_DECLARATION_REALLOC,
6073 NEED_DECLARATION_FREE, NEED_DECLARATION_STRERROR): Define slots
6074 removed; they are now generated automatically.
6075 * gdb_string.h (strstr): Provide function prototype if
6076 NEED_DECLARATION_STRSTR.
6077 * configure, config.in: Regenerated.
6078
6079 Fri Apr 30 11:16:09 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
6080
6081 * target.h (to_find_new_threads): new target ops vector.
6082 (target_find_new_threads): define.
6083 * target.c (update_current_target): inherit new target ops vector.
6084 * remote.c: Setup to_find_new_threads vector.
6085 * sol-thread.c: ditto.
6086 * thread.c (target_find_new_threads): rename: local_find_new_threads.
6087 (info_threads_command): call target_find_new_threads by new method,
6088 as a target ops vector, rather than previous macro definition method.
6089 * infcmd.c (go_command): define only if in xdb mode.
6090 * procfs.c: fix typo in comment.
6091
6092 Fri Apr 30 01:02:05 1999 Jeffrey A Law (law@cygnus.com)
6093
6094 * hppah-nat.c: Fix various coding convention violations introduced
6095 by HP.
6096 (child_acknowledge_created_inferior): Do nothing if PT_SET_EVENT_MASK
6097 is not defined.
6098
6099 1999-04-28 Stan Shebs <shebs@andros.cygnus.com>
6100
6101 * TODO: Add some items inspired by review of the manual.
6102
6103 Tue Apr 27 17:38:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
6104
6105 * config/z8k/tm-z8k.h, config/v850/tm-v850.h,
6106 config/tic80/tm-tic80.h, config/sparc/tm-sparc.h,
6107 config/sh/tm-sh.h, config/pyr/tm-pyr.h, config/pa/tm-hppa.h,
6108 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
6109 config/mips/tm-mips.h, config/m88k/tm-m88k.h,
6110 config/m68k/tm-m68k.h, config/m32r/tm-m32r.h,
6111 config/i960/tm-i960.h, config/i386/tm-i386.h,
6112 config/h8500/tm-h8500.h, config/h8300/tm-h8300.h,
6113 config/fr30/tm-fr30.h, config/d30v/tm-d30v.h,
6114 config/d10v/tm-d10v.h, config/alpha/tm-alpha.h,
6115 config/arm/tm-arm.h, config/a29k/tm-a29k.h, config/arc/tm-arc.h:
6116 Change SKIP_PROLOGUE and SKIP_PROLOGUE_FRAMELESS_P macros so that
6117 they return the new address.
6118
6119 * sparc-tdep.c (sparc_skip_prologue), hppa-tdep.c
6120 (hppa_skip_prologue), m88k-tdep.c
6121 (m88k_skip_prologue), i960-tdep.c
6122 (i960_skip_prologue), arc-tdep.c
6123 (arc_skip_prologue), a29k-tdep.c (a29k_skip_prologue): Rename
6124 skip_prologue function.
6125
6126 * config/m68k/tm-isi.h: Convert macro SKIP_PROLOGUE into a new
6127 function.
6128 * m68k-tdep.c (isi_skip_prologue): That new function.
6129 * vax-tdep.c (vax_skip_prologue), config/vax/tm-vax.h: Ditto.
6130 * tahoe-tdep.c (tahoe_skip_prologue), config/tahoe/tm-tahoe.h: Ditto.
6131 * rs6000-tdep.c (rs6000_skip_prologue), config/rs6000/tm-rs6000.h:
6132 Ditto.
6133 * ns32k-tdep.c (umax_skip_prologue), config/ns32k/tm-umax.h: Ditto.
6134 * config/ns32k/tm-merlin.h, ns32k-tdep.c (merlin_skip_prologue):
6135 Ditto.
6136 * config/m68k/tm-altos.h, m68k-tdep.c (altos_skip_prologue): Ditto.
6137 * config/convex/tm-convex.h, convex-tdep.c (convex_skip_prologue):
6138 Ditto.
6139
6140 * symtab.c (in_prologue, find_function_start_sal, decode_line_1),
6141 infrun.c (wait_for_inferior), blockframe.c
6142 (frameless_look_for_prologue): Update.
6143 * config/fr30/tm-fr30.h (FRAMELESS_FUNCTION_INVOCATION): Update.
6144
6145 1999-04-27 Stan Shebs <shebs@andros.cygnus.com>
6146
6147 * TODO: Remove item about DEBUG_EXPRESSIONS, no longer meaningful.
6148
6149 * infrun.c (enum wfi_state): New enum.
6150 (wait_for_inferior): Merge all but one of the target_wait calls
6151 into a single call, add a wfi_state variable to encode which of
6152 the calls is being made.
6153
6154 1999-04-26 Jim Blandy <jimb@zwingli.cygnus.com>
6155
6156 Fix from Dave Holcomb.
6157 * hpux-thread.c (init_hpux_thread_ops): Use the right function
6158 name when initializing hpux_thread_ops.to_thread_alive.
6159
6160 * coffread.c (coff_symfile_read): If we have a `.stab' section,
6161 but no `.stabstr' section, then print an error message; don't
6162 crash.
6163
6164 1999-04-26 Jim Blandy <jimb@zwingli.cygnus.com>
6165
6166 1999-04-25 Mark Kettenis <kettenis@gnu.org>
6167
6168 * gnu-nat.c (gnu_attach): Call target_terminal_init before calling
6169 inf_set_traced, since that function calls code that might try to
6170 restore the terminal settings.
6171
6172 Mon Apr 26 08:55:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
6173
6174 * gdbarch.h, gdbarch.c: More format cleanups.
6175
6176 Sun Apr 25 18:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
6177
6178 * gdbarch.h (CALL_DUMMY_STACK_ADJUST_P): Replace
6179 SIZEOF_CALL_DUMMY_STACK_ADJUST_P.
6180 (CALL_DUMMY_STACK_ADJUST): Replace
6181 SIZEOF_CALL_DUMMY_STACK_ADJUST_P.
6182 * gdbarch.c (gdbarch_call_dummy_stack_adjust,
6183 set_gdbarch_call_dummy_stack_adjust): Define.
6184
6185 Fri Apr 23 15:00:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
6186
6187 * gdbarch.c (arch_ok): New function. Fix logic test for a valid
6188 architecture.
6189 (set_arch): Use.
6190
6191 1999-04-22 Jason Molenda (jsm@bugshack.cygnus.com)
6192
6193 * README: Note that readline is not installed as a part of
6194 make install.
6195
6196 Thu Apr 22 21:02:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
6197
6198 * gdbarch.h, gdbarch.c (GET_SAVED_REGISTER, get_saved_register):
6199 Add.
6200 (struct gdbarch, verify_gdbarch, gdbarch_alloc, gdbarch_dump,
6201 default_gdbarch): Update.
6202
6203 * value.h (get_saved_register): Cleanup prototype.
6204 * findvar.c (default_get_saved_register): Rename function
6205 get_saved_register.
6206 (GET_SAVED_REGISTER): Define as default_get_saved_register when
6207 undefined.
6208 (get_saved_register): Always declare. Call GET_SAVED_REGISTER.
6209
6210 * sparc-tdep.c (sparc_get_saved_register): Rename function
6211 get_saved_register.
6212 * config/sparc/tm-sparc.h (GET_SAVED_REGISTER): Update.
6213 * a29k-tdep.c (a29k_get_saved_register): Rename function
6214 get_saved_register.
6215 * config/a29k/tm-a29k.h (GET_SAVED_REGISTER): Update.
6216
6217 * config/d10v/tm-d10v.h, config/powerpc/tm-ppc-eabi.h,
6218 config/h8300/tm-h8300.h, config/m32r/tm-m32r.h,
6219 config/mn10200/tm-mn10200.h, config/mn10300/tm-mn10300.h,
6220 config/sh/tm-sh.h, config/tic80/tm-tic80.h, config/v850/tm-v850.h:
6221 Update macro GET_SAVED_REGISTER so that it calls
6222 generic_get_saved_register.
6223 * v850-tdep.c, tic80-tdep.c, sh-tdep.c, mn10300-tdep.c,
6224 mn10200-tdep.c, m32r-tdep.c, h8300-tdep.c, rs6000-tdep.c: Delete
6225 function get_saved_register.
6226
6227 Thu Apr 22 13:32:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
6228
6229 * gdbarch.c: Cleanup. Re-order the definition of the ``struct
6230 gdbarch'' initialization functions so that maintenance is more
6231 straightforward.
6232
6233 Thu Apr 22 11:07:21 1999 Andrew Cagney <cagney@b1.cygnus.com>
6234
6235 * gdbarch.h, gdbarch.c (use_generic_dummy_frames,
6236 USE_GENERIC_DUMMY_FRAMES): Add.
6237 (struct gdbarch, verify_gdbarch, gdbarch_alloc, gdbarch_dump,
6238 default_gdbarch): Update.
6239
6240 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
6241 config/sh/tm-sh.h, config/powerpc/tm-ppc-eabi.h,
6242 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
6243 config/m32r/tm-m32r.h, config/h8300/tm-h8300.h,
6244 config/fr30/tm-fr30.h, config/d10v/tm-d10v.h: Give the
6245 USE_GENERIC_DUMMY_FRAMES macro the value one.
6246 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Default to a value of
6247 zero.
6248
6249 * blockframe.c (generic_find_dummy_frame,
6250 generic_pc_in_call_dummy, generic_read_register_dummy,
6251 generic_push_dummy_frame, generic_pop_current_frame,
6252 generic_pop_dummy_frame, generic_frame_chain_valid,
6253 generic_get_saved_register): Always define.
6254
6255 * breakpoint.c (frame_in_dummy): Convert #ifdef
6256 USE_GENERIC_DUMMY_FRAMES to runtime test.
6257
6258 * rs6000-tdep.c (pop_frame, push_arguments, push_arguments,
6259 push_arguments, frame_saved_pc, rs6000_frame_chain,
6260 rs6000_frame_chain): Convert #ifdef USE_GENERIC_DUMMY_FRAMES to
6261 runtime test.
6262 (get_saved_register): Always define.
6263
6264 Wed Apr 21 17:15:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
6265
6266 * gdbarch.c (gdbarch_dump): Fix robustness check on
6267 BELIEVE_PCC_PROMOTION_TYPE.
6268
6269 Wed Apr 21 15:39:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
6270
6271 * gdbarch.h (TARGET_BYTE_ORDER_SELECTABLE_P): When multi-arch,
6272 force selectable byte order.
6273 (CALL_DUMMY): Check for CALL_DUMMY definition when multi-arch. Are
6274 incompatible.
6275 * gdbarch.c (verify_gdbarch): Check call_dummy_stack_adjust.
6276
6277 Wed Apr 21 14:45:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
6278
6279 * gdbarch.c (gdbarch_update): Move dump-arch code from here.
6280 (gdbarch_dump): To here. Make more robust.
6281 * gdbarch.h (gdbarch_dump): Add prototype.
6282
6283 * gdbarch.c (enum set_arch): Declare.
6284 (set_arch): Add type parameter. Only disable
6285 ``target_architecture_auto'' when set_arch_manual.
6286 (set_architecture, set_architecture_from_arch_mach,
6287 set_architecture_from_file): Update.
6288 (set_arch): When ``gdbarch_debug'', gdbarch_dump() the current
6289 architecture.
6290
6291 Wed Apr 21 10:48:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
6292
6293 * frame.h (generic_pc_in_call_dummy): Make signature consistent
6294 with other pc_in_call_dummy functions by adding SP parameter.
6295 * blockframe.c (generic_pc_in_call_dummy): Update. Pass SP and
6296 not FP to generic_find_dummy_frame().
6297 * breakpoint.c (frame_in_dummy): Update.
6298 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
6299 config/sh/tm-sh.h, config/mn10300/tm-mn10300.h,
6300 config/mn10200/tm-mn10200.h, config/m32r/tm-m32r.h,
6301 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
6302 config/d10v/tm-d10v.h: Update PC_IN_CALL_DUMMY definition.
6303
6304 Tue Apr 20 12:15:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
6305
6306 * config/d10v/tm-d10v.h (GDB_TARGET_IS_D10V): Move from here.
6307 * gdbarch.h (GDB_TARGET_IS_D10V): To here. Implement using
6308 TARGET_ARCHITECTURE.
6309 (D10V_MAKE_DADDR, D10V_MAKE_IADDR): Provide fatal default
6310 definitions.
6311
6312 * valops.c (value_at): Replace #ifdef GDB_TARGET_IS_D10V code with
6313 runtime test.
6314 (value_fetch_lazy): Ditto.
6315 * values.c (unpack_long): Ditto.
6316 * printcmd.c (print_frame_args): Ditto.
6317
6318 Sat Apr 17 15:39:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
6319
6320 * gdbarch.h: Cleanup multi-arch comments.
6321
6322 Fri Apr 16 15:39:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
6323
6324 * gdbarch.h: Provide definition if GDB_MULTI_ARCH > 1 or
6325 GDB_MULTI_ARCH > 0 and no previous definition.
6326 * gdbarch.c (verify_gdbarch): Only verify a full multi-arch
6327 target.
6328
6329 1999-04-15 Stan Shebs <shebs@andros.cygnus.com>
6330
6331 * infrun.c (wait_for_inferior) [HAVE_STEPPABLE_WATCHPOINT,
6332 HAVE_NONSTEPPABLE_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT]: Test
6333 at runtime instead of compile time.
6334
6335 Thu Apr 15 15:15:07 1999 Andrew Cagney <cagney@amy.cygnus.com>
6336
6337 * mips-tdep.c (struct gdbarch_tdep): Rename elf_abi to
6338 elf_flags. Check ABFD is elf_flavour before extracting elf_flags.
6339 Match ARCH against entire elf_flags instead of just the
6340 EF_MIPS_ABI field.
6341 (mips_gdbarch_init): Extract/print ef_mips_arch and
6342 ef_mips_bitptrs and ef_mips_abi fields from elf_flags.
6343
6344 1999-04-14 Philippe De Muyter <phdm@macqel.be>
6345
6346 * breakpoint.c (maintenance_info_breakpoints): Function made
6347 static to match previous prototype.
6348
6349 * coffread.c (coff_record_line): Static function removed.
6350 (enter_linenos): Call `record_line' instead of `coff_record_line'.
6351 (FILE-LEVEL, coff_start_symtab, coff_end_symtab): `coff_record_line'
6352 -related stuff removed.
6353 (coff_symfile_read): Redundant statement removed.
6354 (coff_symtab_read): `record_line' is now called with the first line
6355 number of each function, given by the ".bf" symbol. This solves
6356 the line-number bug for one-line functions.
6357
6358 Wed Apr 14 11:09:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
6359
6360 * gdbarch.h (BELIEVE_PCC_PROMOTION_TYPE, BELIEVE_PCC_PROMOTION):
6361 Add multi-arch definitions.
6362 * gdbarch.c (gdbarch_believe_pcc_promotion,
6363 gdbarch_believe_pcc_promotion_type): New functions.
6364 (gdbarch_update): Update
6365 (struct gdbarch default_gdbarch): Update.
6366
6367 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Provide default.
6368 (define_symbol): Change #if BELIEVE_PCC_PROMOTION_TYPE and #if
6369 BELIEVE_PCC_PROMOTION to if().
6370
6371 1999-04-13 Jason Molenda (jsm@bugshack.cygnus.com)
6372
6373 * configure.in (HAVE_MULTIPLE_PROC_FDS): Don't define if we're
6374 on a Solaris host (of any architecture).
6375 * configure: Regenerated.
6376
6377 Wed Apr 14 08:23:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
6378
6379 * gdbarch.c (SET_GDBARCH, GET_GDBARCH, FSET_GDBARCH): New macros.
6380 (gdbarch_byte_order, gdbarch_long_bit, gdbarch_long_long_bit,
6381 gdbarch_ptr_bit, gdbarch_call_dummy_location,
6382 gdbarch_call_dummy_address, gdbarch_call_dummy_address,
6383 gdbarch_call_dummy_breakpoint_offset,
6384 gdbarch_call_dummy_breakpoint_offset, gdbarch_call_dummy_length,
6385 gdbarch_pc_in_call_dummy, dbarch_call_dummy_breakpoint_offset_p,
6386 dbarch_call_dummy_p, dbarch_call_dummy_words,
6387 dbarch_sizeof_call_dummy_words, dbarch_call_dummy_stack_adjust,
6388 dbarch_call_dummy_stack_adjust_p): Define using new macros.
6389
6390 1999-04-13 Jason Molenda (jsm@bugshack.cygnus.com)
6391
6392 * rom68k-rom.c (init_rom68k_cmds): Fix an accidental substitution
6393 in monitor command strings, fix some formatting mistakes.
6394
6395 1999-04-13 Stan Shebs <shebs@andros.cygnus.com>
6396
6397 * configure.tgt (arm-*-*): Whack another vestige of wingdb.
6398
6399 1999-04-12 James Ingham <jingham@cygnus.com>
6400
6401 * arm-tdep.c (arm_pop_frame): don't clobber the previous frame's
6402 stack pointer (stored in frame->framereg's register) BEFORE
6403 reading it. This was causing "return" to behave very oddly.
6404
6405 1999-04-12 Stan Shebs <shebs@andros.cygnus.com>
6406
6407 * NEWS: Mention tic80.
6408
6409 1999-04-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6410
6411 * a68v-nat.c: Remove reference to 'extern char registers[]' throughout.
6412 * altos-xdep.c: Ditto.
6413 * arm-xdep.c: Ditto.
6414 * convex-xdep.c: Ditto.
6415 * cxux-nat.c: Ditto.
6416 * hp300ux-nat.c: Ditto.
6417 * hppab-nat.c: Ditto.
6418 * i386aix-nat.c: Ditto.
6419 * i386mach-nat.c: Ditto.
6420 * m88k-nat.c: Ditto.
6421 * ptx4-nat.c: Ditto.
6422 * pyr-xdep.c: Ditto.
6423 * rs6000-nat.c: Ditto.
6424 * sun3-nat.c: Ditto.
6425 * sun386-nat.c: Ditto.
6426 * symm-nat.c: Ditto.
6427 * umax-xdep.c: Ditto.
6428 * i386v4-nat.c: Ditto. Also include inferior.h.
6429 * m68k-tdep.c: Ditto. Also include inferior.h.
6430
6431 Mon Apr 12 15:57:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
6432
6433 * inferior.h (CALL_DUMMY_STACK_ADJUST, CALL_DUMMY_STACK_ADJUST_P):
6434 Provide default definitions.
6435 * valops.c (hand_function_call): Replace #ifdef
6436 CALL_DUMMY_STACK_ADJUST with if (CALL_DUMMY_STACK_ADJUST_P).
6437
6438 * gdbarch.h (SIZEOF_CALL_DUMMY_STACK_ADJUST,
6439 (SIZEOF_CALL_DUMMY_STACK_ADJUST_P): Define
6440 * gdbarch.c (struct gdbarch): Add call_dummy_stack_adjust,
6441 call_dummy_stack_adjust_p.
6442 (gdbarch_call_dummy_stack_adjust,
6443 set_gdbarch_call_dummy_stack_adjust,
6444 gdbarch_call_dummy_stack_adjust_p,
6445 set_gdbarch_call_dummy_stack_adjust_p): New functions.
6446 (default_gdbarch): Update.
6447
6448 1999-04-09 Jim Blandy <jimb@zwingli.cygnus.com>
6449
6450 * ax-gdb.c, ax-gdb.h, ax-general.c, ax.h: Remove RCS Id strings.
6451 They're a pain.
6452
6453 * GDB 4.18 released.
6454 * Makefile.in (VERSION): Bump to 4.18.1.
6455
6456 Thu Apr 8 16:04:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
6457
6458 * inferior.h (CALL_DUMMY_P, CALL_DUMMY_WORDS,
6459 SIZEOF_CALL_DUMMY_WORDS): Define macros.
6460 (PUSH_DUMMY_FRAME, FIX_CALL_DUMMY, STORE_STRUCT_RETURN): Provide
6461 fatal default.
6462
6463 * inferior.h, gdbarch.c (call_dummy_words,
6464 sizeof_call_dummy_words): Declare/Define variables.
6465 * valops.c (value_arg_coerce, find_function_addr,
6466 call_function_by_hand): Always define.
6467 (hand_function_call): Rename CALL_DUMMY version of
6468 call_function_by_hand. Make static. Add prototype.
6469 (hand_function_call): Update. Allocate space for *dummy and
6470 *dummy1 using alloca.
6471 * breakpoint.c (frame_in_dummy): Update.
6472
6473 * gdbarch.h (CALL_DUMMY_P, CALL_DUMMY_WORDS,
6474 SIZEOF_CALL_DUMMY_WORDS): Define.
6475 * gdbarch.c (gdbarch_call_dummy_p, set_gdbarch_call_dummy_p,
6476 gdbarch_call_dummy_words, set_gdbarch_call_dummy_words,
6477 gdbarch_sizeof_call_dummy_words,
6478 set_gdbarch_sizeof_call_dummy_words): New functions.
6479 (gdbarch_alloc, verify_gdbarch, gdbarch_update, struct
6480 default_gdbarch): Update.
6481
6482 1999-04-08 Jason Molenda (jsm@bugshack.cygnus.com)
6483
6484 * monitor.c (monitor_read_memory): If a MO_GETMEM_NEEDS_RANGE
6485 monitor, increase the end address by one byte.
6486
6487 1999-04-08 Jason Molenda (jsm@bugshack.cygnus.com)
6488
6489 * dbug-rom.c (init_dbug_cmds): Fix strings in
6490 dbug_cmds.{step,clr_break,clr_all_break,fill} to send correct
6491 commands to the monitor.
6492
6493 1999-04-08 Keith Seitz <keiths@cygnus.com>
6494
6495 * m32r-stub.c (branchDestination): Undo overly ambitious
6496 sed script's conversion of cast from "char" to "unsigned char".
6497 Return offset should now be properly computed.
6498
6499 Thu Apr 8 14:13:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
6500
6501 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): New macro.
6502 Non-zero when CALL_DUMMY_BREAKPOINT_OFFSET is valid.
6503
6504 * infcmd.c (breakpoint_auto_delete_contents): Always define.
6505 (run_stack_dummy): Update.
6506 * infrun.c (wait_for_inferior): Update
6507
6508 * gdbarch.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): New macro.
6509 * gdbarch.c (set_gdbarch_call_dummy_breakpoint_offset_p,
6510 gdbarch_call_dummy_breakpoint_offset_p): New functions.
6511 (struct gdbarch, gdbarch_alloc, default_gdbarch, gdbarch_update):
6512 Update.
6513
6514 1999-04-07 Stan Shebs <shebs@andros.cygnus.com>
6515
6516 * MAINTAINERS: Mark Alexander can no longer maintain
6517 h8300 and other embedded targets, sniff.
6518
6519 1999-04-06 Stan Shebs <shebs@andros.cygnus.com>
6520
6521 * inftarg.c (child_wait): Initialize execd_pathname.
6522 * target.c (debug_to_has_execd): Handle NULL execd_pathname.
6523
6524 * solib.c (clear_solib): Don't call disable_breakpoints_in_shlibs,
6525 this breaks rerunning on sun4 native.
6526
6527 1999-04-06 Jim Blandy <jimb@zwingli.cygnus.com>
6528
6529 * config/sparc/nm-linux.h: Don't redefine PT_ATTACH to use the
6530 deprecated PTRACE_SUNATTACH compatibility commands. The
6531 definitions from <sys/ptrace.h> are fine.
6532
6533 1999-04-06 Martin Hunt <hunt@cygnus.com>
6534
6535 * annotate.h: Declare annotate_signal_hook.
6536
6537 * annotate.c (annotate_signal): Add a call to
6538 annotate_signal_hook().
6539
6540 1999-04-06 Jim Blandy <jimb@zwingli.cygnus.com>
6541
6542 * dwarf2read.c (dwarf_decode_lines): Don't call record_line when
6543 we hit a DW_LNE_end_sequence instruction.
6544
6545 * README: Note that GDB requires an ANSI C compiler, and explain
6546 how to get GCC.
6547
6548 * README: Update.
6549
6550 1999-04-05 Stan Shebs <shebs@andros.cygnus.com>
6551
6552 * NEWS: Add more notes about user-visible changes.
6553
6554 Mon Apr 5 14:56:59 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
6555
6556 * target.c (target_signal_to_string): check for signal
6557 number in range; otherwise if the target board returns
6558 a bogus signal number we might core dump (per David Taylor).
6559
6560 1999-04-05 David Taylor <taylor@ryobi.cygnus.com>
6561
6562 * utils.c (fputs_maybe_filtered): test value of
6563 pagination_enabled before paginating.
6564
6565 1999-04-02 James Ingham <jingham@cygnus.com>
6566
6567 * blockframe.c (get_prev_frame): Remove the redundant
6568 get_prev_frame_info. It is now exactly the same as
6569 get_prev_frame, so there is no reason to have both functions.
6570
6571 * rs6000-tdep.c (rs6000_init_extra_frame_info):
6572 frame.h:
6573 a29k-tdep.c (init_extra_frame_info):
6574 config/a29k/tm-a29k.h:
6575 i386-tdep.c:
6576 Change all references to get_prev_frame_info to get_prev_frame.
6577
6578 1999-04-02 Stan Shebs <shebs@andros.cygnus.com>
6579
6580 * bcache.c, bcache.h, breakpoint.c, defs.h, expprint.c,
6581 expression.h, gdbarch.c, gdbtypes.c, gdbtypes.h, gnu-nat.c,
6582 gnu-nat.h, hppa-tdep.c, maint.c, monitor.c, objfiles.h, parse.c,
6583 remote-mips.c, remote-sds.c, remote.c, sol-thread.c, symmisc.c,
6584 symtab.h, target.c, top.c, typeprint.c, config/nm-gnu.h: Evaporate
6585 the unused MAINTENANCE_CMDS conditional.
6586
6587 1999-04-02 James Ingham <jingham@cygnus.com>
6588
6589 * config/arm/tm-arm.h: (EXTRACT_STRUCT_VALUE_ADDRESS): This needs
6590 to call extract_address, not just cast the first 4 bytes, since
6591 the result will be passed to value_at which expects host-byte
6592 order.
6593
6594 * arm-tdep.c (arm_scan_prologue): The prologue_start address was
6595 directly &'ed with 0x03fffffc, rather than using
6596 ADDR_BITS_REMOVE. This would cause inferior function calls to
6597 report the stack incorrectly on return.
6598
6599
6600 1999-04-02 Keith Seitz <keiths@cygnus.com>
6601
6602 * top.c (ui_loop_hook): Change declaration. Now returns an int.
6603 * win32-nat.c (child_wait): Timeout WaitForDebugEvent and call
6604 the ui_loop_hook if there was no debug event.
6605 * top.c (ui_loop_hook): Change to return an int and include
6606 on all non-Cygwin builds.
6607 * v850ice.c: Change prototype of ui_loop_hook.
6608 (v850ice_wait): Update call to ui_loop_hook.
6609 * ser-unix.c (hardwire_readchar): Enable ui_loop_hook callbacks
6610 for non-Cygwin builds. Check return status of ui_loop_hook and
6611 return a timeout if told to detach. Add more documentation.
6612 * ser-tcp.c (tcp_readchar): Break up timeouts into one second
6613 intervals and call ui_loop_hook so that other UIs can
6614 keep up to date. If ui_loop_hook returns non-zero, then
6615 return SERIAL_TIMEOUT to facilitate detaching from the
6616 target.
6617 * remote.c (remote_interrupted_already): Remove.
6618 (remote_interrupt_twice): Revive.
6619 (remote_interrupt): Call remote_stop to interrupt the target
6620 and install remote_interrupt_twice to take more severe
6621 actions if this fails.
6622 (remote_stop): Only attempt to stop the target. This separates
6623 the command line from other UIs.
6624 * remote-sim.c (gdb_os_poll_quit): Add a call to ui_loop_hook,
6625 if it is defined.
6626
6627 1999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
6628
6629 Fix for cross-debugging on an AIX host from Johanna Svenningsson:
6630 * ax-gdb.h (enum axs_lvalue_kind): Remove trailing comma from enum.
6631 * ax.h (enum agent_op): Same.
6632 * tracepoint.h (enum actionline_type): Same.
6633 * config/xm-aix4.h: Add declaration for termdef.
6634
6635 1999-03-31 Stan Shebs <shebs@andros.cygnus.com>
6636
6637 * jv-lang.h (dynamics_objfile): Remove decl, conflicts with static
6638 decl in jv-lang.c.
6639
6640 * infrun.c (follow_inferior_fork): Add ifdefs around
6641 SOLIB_REMOVE_INFERIOR_HOOK.
6642
6643 Wed Mar 31 11:39:49 1999 David Taylor <taylor@ryobi.cygnus.com>
6644
6645 * valops.c (search_struct_field): revert HP merge change
6646 to this function -- it causes messages to be printed about
6647 member class ambiguity when the compiler is happy.
6648 (search_struct_field_aux): delete -- added as part of HP merge
6649 change; with aforementioned change it is no longer called.
6650
6651 1999-03-30 Stan Shebs <shebs@andros.cygnus.com>
6652
6653 Make more HPUX-specific code generic.
6654 * infrun.c: Include top.h.
6655 (MAY_SWITCH_FROM_INFERIOR_PID, MAY_FOLLOW_EXEC,
6656 USE_THREAD_STEP_NEEDED): New native macros.
6657 (may_switch_from_inferior_pid, may_follow_exec,
6658 use_thread_step_needed): New globals.
6659 (follow_inferior_fork): Remove HPUXHPPA ifdef.
6660 (follow_exec): Ditto, also save run target and re-push instead of
6661 always pushing child_ops, add ifdefs around SOLIB_RESTART and
6662 SOLIB_CREATE_INFERIOR_HOOK.
6663 (wait_for_inferior): Use new globals instead of ifdefing HPUXHPPA,
6664 always use printf_filtered to report new threads.
6665 (normal_stop): Ditto.
6666 * target.h, target.c (find_run_target): New function.
6667 * config/pa/nm-hppah.h: Define new macros.
6668
6669 1999-03-29 Stan Shebs <shebs@andros.cygnus.com>
6670
6671 * top.h: Include setjmp.h here.
6672 * main.c, top.c: Don't include it here.
6673
6674 1999-03-29 Keith Seitz <keiths@cygnus.com>
6675
6676 * symtab.c (decode_line_1): Take out change which breaks symbols
6677 which include class names and methods, e.g., "Foo::bar".
6678
6679 1999-03-26 Stan Shebs <shebs@andros.cygnus.com>
6680
6681 * configure.tgt (i[3456]86-*-sysv4.2MP, i[3456]86-*-sysv4.2uw2*):
6682 Recognize both, as i[3456]86-*-sysv4.2*.
6683 (i[3456]86-*-sysv5*): Recognize.
6684
6685 * infrun.c (wait_for_inferior): Remove most #if 0 segments.
6686
6687 Fri Mar 26 17:27:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
6688
6689 * blockframe.c (pc_in_call_dummy_on_stack): Fix. Had copied code
6690 from at_entry_point.
6691
6692 Thu Mar 25 19:30:02 1999 Andrew Cagney <cagney@amy.cygnus.com>
6693
6694 * gdbarch.c: Include all headers.
6695 (struct gdbarch), gdbarch.h (CALL_DUMMY_LOCATION,
6696 CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET,
6697 CALL_DUMMY_BREAKPOINT_OFFSET, CALL_DUMMY_LENGTH,
6698 PC_IN_CALL_DUMMY): Add ``call_dummy_location'',
6699 ``call_dummy_length'', ``pc_in_call_dummy'',
6700 ``call_dummy_start_offset'', ``call_dummy_breakpoint_offset'' to
6701 multi-arch framework.
6702
6703 * inferior.h, blockframe.c (pc_in_call_dummy_before_text_end,
6704 pc_in_call_dummy_after_text_end, pc_in_call_dummy_on_stack,
6705 pc_in_call_dummy_at_entry_point): Convert PC_IN_CALL_DUMMY macro's
6706 into functions.
6707
6708 * mips-tdep.c (mips_gdbarch_init): Initialize above
6709
6710 Tue Mar 23 17:22:57 1999 Philippe De Muyter <phdm@macqel.be>
6711
6712 * remote.c, parse.c: Include ctype.h.
6713
6714 1999-03-24 Stan Shebs <shebs@andros.cygnus.com>
6715
6716 * configure.host (mips-dec-mach3*): Use mipsm3 not mach3.
6717
6718 Attempt to sort out SCO-related configs.
6719 * configure.host (i[3456]86-*-sysv4.2*): Use instead of
6720 i[3456]86-*-sysv4.2MP and i[3456]86-*-sysv4.2uw2*.
6721 (i[3456]86-*-sysv5*): Recognize.
6722 * configure.tgt (i[3456]86-*-sco3.2v5*, i[3456]86-*-sco3.2v4*):
6723 Recognize.
6724
6725 Wed Mar 24 16:19:01 1999 Christopher Faylor <cgf@cygnus.com>
6726
6727 * MAINTAINERS: Add DJ Delorie (dj@cygnus.com) as the djgpp
6728 maintainer.
6729
6730 Wed Mar 24 21:19:57 1999 Andrew Cagney <cagney@amy.cygnus.com>
6731
6732 * target.h (enum target_signal): Do not hardwire values of MACH
6733 signals.
6734
6735 1999-03-14 Ken Raeburn <raeburn@raeburn.org>
6736
6737 * target.h (enum target_signal): Add TARGET_SIGNAL_INFO.
6738 * target.c (signals): Add SIGINFO description.
6739 (target_signal_from_host, target_signal_to_host): Translate
6740 SIGINFO to/from TARGET_SIGNAL_INFO.
6741
6742 Wed Mar 24 01:01:27 1999 Andrew Cagney <cagney@sludge.cygnus.com>
6743
6744 * rs6000-tdep.c (rs6000_software_single_step): Change SIGNAL to
6745 unsigned int.
6746
6747 From Rodney Brown <rodneybrown@pmsc.com>
6748 * target.h (enum thread_control_capabilities), breakpoint.h (enum
6749 bptype), breakpoint.c (enum insertion_state_t): Strict ISO-C
6750 doesn't allow trailing comma in enum definition.
6751
6752 Mon Mar 22 15:56:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
6753
6754 * blockframe.c (inside_entry_file, inside_entry_func): Convert #if
6755 CALL_DUMMY_LOCATION to if.
6756 * valops.c (call_function_by_hand): Ditto.
6757 * infcmd.c (run_stack_dummy): Ditto.
6758 * inferior.h (CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET,
6759 CALL_DUMMY_BREAKPOINT_OFFSET): Provide default.
6760
6761 1999-03-23 Jason Molenda (jsm@bugshack.cygnus.com)
6762
6763 * hppa-tdep.c (pa_register_look_aside): Remove CPU_HPPA_RISC_20
6764 check, test for presence of struct save_state_t and the ss_wide
6765 member directly.
6766 * configure.in: Remove CPU_HPPA_RISC_20 test. Add tests for
6767 HAVE_STRUCT_SAVE_STATE_T and HAVE_STRUCT_MEMBER_SS_WIDE.
6768 * acconfig.h: Add HAVE_STRUCT_SAVE_STATE_T HAVE_STRUCT_MEMBER_SS_WIDE.
6769 * configure, config.in: Regenerated.
6770
6771 Mon Mar 22 13:25:13 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
6772
6773 * infttrace.c (proc_wait): rename to ptrace_wait.
6774
6775 1999-03-18 Jim Blandy <jimb@zwingli.cygnus.com>
6776
6777 * dwarf2read.c: Correctly recognize location expressions that
6778 designate LOC_REF_ARG arguments. Doc fixes.
6779 (isderef): New global. (Yuck.)
6780 (dwarf2_complex_location_expr): New complaint.
6781 (read_func_scope): Reject frame_base attributes that use the
6782 `deref' opcode as too complex.
6783 (new_symbol): If both regoff and isderef are set, and the base
6784 register is the frame pointer, then it's a LOC_REF_ARG argument.
6785 (decode_locdesc): Recognize the `deref' opcode in location
6786 expressions. Complain if it's not the last op in the expression.
6787
6788 * config/fr30/tm-fr30.h (COERCE_FLOAT_TO_DOUBLE): #define this to
6789 be true, or else value_arg_coere won't respect the (accurate)
6790 information we have about whether a function is prototyped.
6791
6792 1999-03-17 Jim Blandy <jimb@zwingli.cygnus.com>
6793
6794 * config/fr30/tm-fr30.h (STACK_ALIGN): Define this here, so
6795 calling functions by hand with odd-sized arguments doesn't munge
6796 the stack.
6797
6798 1999-03-17 Jason Molenda (jsm@bugshack.cygnus.com)
6799
6800 * configure.in (HAVE_MULTIPLE_PROC_FDS): Don't define for Solaris
6801 hosts--gdb doesn't support this yet.
6802 * configure: Regenerated.
6803
6804 1999-03-16 Keith Seitz <keiths@cygnus.com>
6805
6806 * remote.c (remote_binary_checked): New file global.
6807 (check_binary_download): New function to check if
6808 stub supports binary downloading that works with
6809 stubs that are not eight bit clean.
6810 (remote_write_bytes): Check for binary download capability
6811 and use it if available.
6812 Remove references to global remote_binary_length. What a hack.
6813 (putpkt_binary): New function.
6814 (putpkt): Call putpkt_binary.
6815 Use xor to escape trouble characters.
6816 * m32r-stub.c (bin2mem): Follow escape char convention change.
6817
6818 Tue Mar 16 01:11:33 1999 Andrew Cagney <cagney@rhino.cygnus.com>
6819
6820 * target.h (struct target_ops), target.c (debug_to_query),
6821 remote.c (pack_hex_byte, remote_query): Promote char parameters to
6822 int. Stops compile problems with pedantic ISO-C compilers.
6823
6824 Tue Mar 16 15:29:04 1999 Stan Shebs <shebs@andros.cygnus.com>
6825
6826 * go32-xdep.c: Remove, no longer used by anything.
6827 * Makefile.in: Remove references.
6828
6829 * jv-lang.c, jv-lang.h (java_primitive_type): Declare argument
6830 as int instead of char.
6831
6832 Mon Mar 15 11:42:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
6833
6834 * d10v-tdep.c (push_stack_item, pop_stack_item): New function.
6835 (d10v_push_arguments): Use.
6836
6837 From Martin M. Hunt <hunt@cygnus.com>:
6838 * d10v-tdep.c (d10v_push_arguments): When arguments
6839 must be pushed onto the stack, they go on in
6840 reverse order.
6841
6842 1999-03-16 Jim Blandy <jimb@zwingli.cygnus.com>
6843
6844 * symtab.c (make_symbol_overload_list): Don't try to stuff minimal
6845 or partial symbols into the overload list; we don't know their
6846 types. (Thanks to Rajiv Mirani.)
6847
6848 1999-03-15 Jason Molenda (jsm@bugshack.cygnus.com)
6849
6850 * acinclude.m4 (--with-itclconfig, --with-itkconfig, --with-tixconfig):
6851 Fix whitespace so --help messages line up.
6852 * configure.in (--with-cpu): Fix capitalization for --help messages.
6853 * configure, aclocal.m4: Regenerated.
6854
6855 Mon Mar 15 11:39:03 1999 Ian Carmichael <iancarm@cygnus.com>
6856
6857 Support building gdb w/o simulator:
6858 * configure.in: Support --disable-sim. Check for sim directory.
6859 * Makefile.in (IGNORE_SIM, IGNORE_SIM_OBS): New.
6860 * acconfig.h (WITH_SIM): Define.
6861 * configure, config.in: Regenerate.
6862
6863 Mon Mar 15 08:01:33 1999 Elena Zannoni <ezannoni@cygnus.com>
6864
6865 Patch from Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
6866
6867 * top.c (read_command_lines): Reset control_level to 0.
6868 (define_command): Don't do it here.
6869
6870 Sun Mar 14 16:12:15 1999 Andrew Cagney <cagney@rhino.cygnus.com>
6871
6872 * hppah-nat.c (store_inferior_registers): Delete extern
6873 registers[] declaration.
6874
6875 Sun Mar 14 19:17:30 1999 Andrew Cagney <cagney@b1.cygnus.com>
6876
6877 * infrun.c (write_inferior_status_register): New function. Provide
6878 update access to an inf_status register buffer. Only used by HP.
6879 * inferior.h (write_inferior_status_register): Add prototype.
6880
6881 * hppa-tdep.c (push_dummy_frame): Use
6882 write_inferior_status_register when hacking around a sleeping
6883 inferior. Accidently fix byte-order problem.
6884
6885 Sun Mar 14 16:40:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
6886
6887 * config/pa/tm-hppa.h (PUSH_DUMMY_FRAME): Fix parameter. Address
6888 not needed.
6889
6890 Fri Mar 12 13:11:48 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
6891
6892 * remote.c (remote_write_bytes): fix 'X' packet protocol so that it
6893 can't overwrite the end of its buffer with escaped characters.
6894
6895 1999-03-12 Jim Blandy <jimb@zwingli.cygnus.com>
6896
6897 Alpha patches from Richard Henderson:
6898
6899 * alpha-tdep.c (alpha_skip_prologue): Recognize subq.
6900
6901 * config/alpha/tm-alpha.h (REGISTER_NAMES): No f31, but fpcr.
6902 (FPCR_REGNUM): New.
6903 (REGISTER_CONVERTIBLE): Don't convert fpcr.
6904 (REGISTER_VIRTUAL_TYPE): Don't make fpcr a double.
6905
6906 * stabsread.c (define_symbol): Only consider live range extension
6907 if we have an open parenthesis.
6908
6909 1999-03-11 Jim Blandy <jimb@zwingli.cygnus.com>
6910
6911 * monitor.c (monitor_fetch_register): Print RDEBUG info correctly
6912 when the register name is null.
6913
6914 Thu Mar 11 19:33:07 1999 Stan Shebs <shebs@andros.cygnus.com>
6915
6916 * infrun.c (wait_for_inferior): Change #if DECR_PC_AFTER_BREAK
6917 uses to expressions, remove redundant extern decls.
6918
6919 Thu Mar 11 18:05:11 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
6920
6921 * infptrace.c (proc_wait): Rename to ptrace_wait.
6922 * inftarg.c (child_wait): call ptrace_wait instead of proc_wait.
6923 * inferior.h: Declare ptrace_wait instead of proc_wait.
6924
6925 Thu Mar 11 11:46:25 1999 Andrew Cagney <cagney@amy.cygnus.com>
6926
6927 * breakpoint.c (create_solib_load_unload_event_breakpoint,
6928 create_fork_vfork_event_catchpoint, tcatch_command,
6929 create_exception_catchpoint, break_at_finish_at_depth_command_1,
6930 catch_fork_command_1, ep_skip_leading_whitespace,
6931 break_at_finish_command_1, catch_exec_command_1,
6932 catch_exception_command_1, stop_command, stopin_command,
6933 stopat_command, ep_parse_optional_filename,
6934 ep_find_event_name_end, ep_parse_optional_if_clause,
6935 catch_fork_command_1), stack.c (show_and_print_stack_frame_stub,
6936 print_stack_frame_stub, print_only_stack_frame_stub,
6937 backtrace_command_1, backtrace_full_command, func_command),
6938 valprint.c (print_decimal), source.c (print_source_lines_base):
6939 Add prototype.
6940
6941 * stack.c (print_stack_frame_stub, show_and_print_stack_frame_stub,
6942 print_only_stack_frame_stub): Make param void*.
6943
6944 Wed Mar 10 19:33:28 1999 Geoffrey Noer <noer@cygnus.com>
6945
6946 * win32-nat.c: If old Cygwin Win32 API headers aren't being used,
6947 define some gdb-specific defines that shouldn't have been in the
6948 global headers.
6949
6950 Wed Mar 10 21:20:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
6951
6952 * findvar.c (registers, register_valid): Replace array with pointer.
6953 (build_findvar): New function. Allocate space for REGISTERS and
6954 REGISTER_VALID.
6955 (_initialize_findvar): Call build_findvar.
6956 (_initialize_findvar): Register REGISTERS and REGISTER_VALID as
6957 arch dependant.
6958
6959 * inferior.h (registers, register_valid): Replace array with
6960 pointer.
6961
6962 * inferior.h (struct inferior_status): Move definition from here.
6963
6964 * infrun.c (struct inferior_status): To here.
6965 (struct inferior_status): Change ``stop_registers'' and
6966 ``registers'' to pointers.
6967 (xmalloc_inferior_status, free_inferior_status): New functions.
6968 (restore_inferior_status): Call free_inferior_status.
6969 (save_inferior_status): Call xmalloc_inferior_status.
6970 (discard_inferior_status): New function, discard inf_status
6971 buffer. Call free_inferior_status.
6972
6973 * inferior.h (stop_registers): Replace array with pointer.
6974 * infrun.c (stop_registers): Update.
6975 (build_infrun): Initialize stop_registers.
6976 (_initialize_infrun): Call build_infrun.
6977 (_initialize_infrun): Register ``stop_registers'' as arch dependant.
6978
6979 Wed Mar 10 14:50:42 1999 Andrew Cagney <cagney@amy.cygnus.com>
6980
6981 * alpha-tdep.c (alpha_linux_sigtramp_offset): Only compile when
6982 LINUXALPHA target. Hack.
6983
6984 * infrun.c (set_follow_fork_mode_command): Make static. Add
6985 prototype.
6986 * tracepoint.c (add_register): Ditto.
6987 * valprint.c (strcat_longest): Comment out. Does not appear to be
6988 used.
6989 * valops.c (find_method_list): Make static. Add prototype.
6990 * thread.c (target_find_new_threads): Make static. Add prototype.
6991 * stack.c (stack_publish_stopped_with_no_frame,
6992 select_and_maybe_print_frame): Comment out. Does not appear to be
6993 used.
6994 (current_frame_command): Add prototype.
6995 * breakpoint.c (break_at_finish_command,
6996 break_at_finish_at_depth_command, tbreak_at_finish_command): Make
6997 static. Add prototype.
6998 * findvar.c (read_relative_register_raw_bytes_for_frame): Ditto.
6999
7000 Wed Mar 10 23:38:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
7001
7002 * corefile.c (registers): Delete redundant variable declaration.
7003 * inferior.h (run_stack_dummy): Change array argument to pointer.
7004 * infcmd.c (run_stack_dummy): Update.
7005 * value.h (value_being_returned): Change RETBUF to a pointer.
7006 * values.c (value_being_returned): Update.
7007
7008 Wed Mar 10 11:08:16 1999 Andrew Cagney <cagney@amy.cygnus.com>
7009
7010 * source.c (list_command): GCC suggested explicit braces to avoid
7011 ambiguous `else'.
7012
7013 * jv-typeprint.c: Include "c-lang.h".
7014 * Makefile.in (jv-typeprint.o): Add dependency.
7015 * jv-valprint.c: Include "gdbcore.h", "annotate.h".
7016 * Makefile.in (jv-valprint.o): Add dependencies.
7017 * objfiles.c: Include "breakpoint.h".
7018 * Makefile.in (objfiles.o): Add dependency.
7019 * main.c: Include <unistd.h>.
7020 * parse.c: Include <ctype.h>.
7021 * remote.c: Include <ctype.h>.
7022 * ser-tcp.c: Include <unistd.h>.
7023 * ax-general.c: Include "value.h".
7024 * Makefile.in (ax-general.o): Add dependency.
7025
7026 * alpha-tdep.c (alpha_push_arguments): Make ``i'' an int instead
7027 of a register.
7028 * frame.h (show_and_print_stack_frame): Add function prototype.
7029 * language.h (language_enum): Add function prototype.
7030 * value.h (find_overload_match): Add function prototype.
7031
7032 * defs.h, utils.c (subset_compare): Rename subsetCompare. Add
7033 prototype.
7034 * stack.c (backtrace_command): Update.
7035
7036 Wed Mar 10 13:58:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
7037
7038 * configure.in (AC_CHECK_HEADERS): Check for <sys/select.h>
7039 * configure, config.in: Re-generate.
7040 * inflow.c: Conditionally include <sys/select.h>.
7041
7042 Wed Mar 10 13:44:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
7043
7044 * frame.h (struct dummy_frame): Move from here.
7045 * blockframe.c (struct dummy_frame): To here.
7046
7047 * blockframe.c (struct dummy_frame): Replace ``regs'' with pointer
7048 ``registers''.
7049 (generic_pop_dummy_frame): Free it.
7050 (generic_push_dummy_frame): Allocate dummy frame register buffer.
7051
7052 Wed Mar 10 11:08:16 1999 Andrew Cagney <cagney@amy.cygnus.com>
7053
7054 * thread.c (_initialize_thread): Delete redundant ``extern struct
7055 cmd_list_element *cmdlist''.
7056 * printcmd.c (print_command_1): Ditto for ``objectprint'';
7057
7058 1999-03-09 Stan Shebs <shebs@andros.cygnus.com>
7059
7060 * MAINTAINERS: New file, list of maintainers and areas they
7061 maintain.
7062
7063 1999-03-09 Rodney Brown <RodneyBrown@pmsc.com>
7064
7065 Get working on UnixWare 2.1.1.
7066 * acconfig.h: Update for defines for procfs.c.
7067 * configure.in: Identify defines for procfs.c.
7068 * configure.host: i386-*-sysv4.2uw2* => i386v42mp
7069 * configure.tgt: i386-*-sysv4.2uw2* => i386v42mp
7070 * configure, config.in: Regenerate.
7071 * procfs.c: Rename HAVE_NO_PRRUN_T to HAVE_PRRUN_T (autoconf
7072 standard), wrap UNIXWARE difference in THE_PR_LWP macro for
7073 legibility.
7074 * config/i386/tm-i386v42mp.h: Remove HAVE_PSTATUS_T,
7075 HAVE_NO_PRRUN_T; now set by configure.
7076
7077 Tue Mar 9 16:29:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
7078
7079 * i386-tdep.c (gdb_print_insn_i386): Abort when disassembly_flavor
7080 undefined..
7081
7082 * fr30-tdep.c (_initialize_fr30_tdep): Add prototype. Fix
7083 coding style.
7084
7085 * target.c (debug_to_enable_exception_callback,
7086 debug_to_get_current_exception_event): Return result of call to
7087 debug_target().
7088
7089 1999-03-09 Jim Blandy <jimb@zwingli.cygnus.com>
7090
7091 Another HURD fix from Mark Kettenis:
7092 * gnu-nat.c: Include <string.h>. Remove declaration of strerror.
7093 Include <bits/waitflags.h> instead of <waitflags.h> and define
7094 _SYS_WAIT_H to prevent the warning that we should not include it.
7095 (gnu_create_inferior): Change return type of attach_to_child to
7096 void. Do not return INFERIOR_PID.
7097 (gnu_pid_to_exec_file): Change return type to char *.
7098 Return NULL.
7099
7100 Fix for the HURD from Mark Kettenis:
7101 * configure.in: Add AC_PROG_AWK. Needed by the machine-dependent
7102 makefile fragments for the Hurd.
7103 * Makefile.in (AWK): Add. Set by configure.
7104 * configure: Regenerated.
7105
7106 1999-03-08 Jason Molenda (jsm@bugshack.cygnus.com)
7107
7108 * infttrace.c (hppa_get_process_events): Removed. Function only
7109 usable on HPUX 10 and above. It is not called by any other part
7110 of GDB.
7111 * hppah-nat.c (hppa_get_process_events): Ditto.
7112 (child_pid_to_exec_file): Only call ptrace with
7113 PT_GET_PROCESS_PATHNAME if that symbol has been defined.
7114 * config/pa/nm-hppah.h: Don't set up prototypes et al for
7115 hppa_get_process_events.
7116
7117 * config/pa/hppahpux.mh (TERM_LIB): Do not initialize, let autoconf
7118 determine best library automatically.
7119 * config/pa/hpux1020.mh: Ditto.
7120 * config/pa/hpux1100.mh: Ditto.
7121 * configure.in (TERM_LIB): Also check for libHcurses.
7122 * configure: Regenerated.
7123
7124 Thu Mar 4 17:16:04 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
7125
7126 * m32r-stub.c: add support for crc "Compare" command.
7127
7128 1999-03-04 Jim Blandy <jimb@zwingli.cygnus.com>
7129
7130 * fr30-tdep.c (fr30_store_return_value): Allocate zeroes
7131 dynamically, to save BSS space, and to remove assumptions about
7132 the size of the largest value we'll return.
7133
7134 * config/fr30/tm-fr30.h (fr30_store_return_value): Use PARAMS in
7135 prototype.
7136
7137 Thu Mar 4 08:37:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
7138
7139 * sh3-rom.c (sh3_supply_register, sh3_supply_register),
7140 mips-tdep.c (mips_push_arguments), m32r-rom.c
7141 (m32r_upload_command), m32r-tdep.c (decode_prologue), monitor.c
7142 (longlong_hexchars), tracepoint.c (validate_actionline,
7143 read_actions), mdebugread.c
7144 (parse_symbol), jv-typeprint.c
7145 (java_type_print_base, java_type_print_base), mdebugread.c
7146 (parse_symbol), top.c (source_command), utils.c
7147 (floatformat_to_doublest): GCC suggest explicit braces to avoid
7148 ambiguous `else'.
7149
7150 * tracepoint.c (map_args_over_tracepoints, trace_actions_command),
7151 m32r-rom.c (m32r_supply_register), win32-nat.c
7152 (handle_output_debug_string, child_continue), i960-tdep.c
7153 (pop_frame), m32r-rom.c (m32r_upload_command): GCC suggested
7154 parentheses around assignment used as truth value.
7155
7156 * remote-sds.c (sds_wait), monitor.c (monitor_fetch_register),
7157 ser-e7kpc.c, (dosasync_write), arc-tdep.c (arc_get_frame_setup):
7158 GCC suggested parentheses around operands.
7159
7160 * c-typeprint.c (c_type_print_base): GCC suggested enclosing
7161 "while" expression in paren.
7162
7163 Wed Mar 3 18:14:33 1999 Andrew Cagney <cagney@chook.cygnus.com>
7164
7165 * sol-thread.c (save_inferior_pid): Cast the saved pid to void*.
7166 (restore_inferior_pid): Takes void* as required by make_cleanup.
7167 Casts pid back to an int.
7168
7169 * procfs.c (make_cleanup_close_proc_file,
7170 close_proc_file_cleanup): Create a proc_file cleanup.
7171 (info_proc): Use.
7172
7173 * defs.h (make_cleanup_freeargv): Helper function. Establish
7174 cleanup using freeargv. Can not just typecast/pass freeargv as it
7175 violates ISO-C.
7176 * utils.c (do_freeargv): Helper.
7177 (make_cleanup_freeargv): New function.
7178
7179 * symmisc.c (maintenance_print_symbols,
7180 maintenance_print_psymbols, maintenance_print_msymbols), symfile.c
7181 (symbol_file_command), stack.c (backtrace_command), remote-sim.c
7182 (gdbsim_create_inferior, gdbsim_open), remote-mips.c
7183 (common_open), procfs.c (info_proc), infrun.c (handle_command,
7184 xdb_handle_command), exec.c (exec_file_attach): Call
7185 make_cleanup_freeargv.
7186
7187 1999-03-03 James Ingham <jingham@cygnus.com>
7188
7189 * i386-tdep.c (_initialize_i386_tdep): Set the inital value for
7190 disassembly flavor at startup, rather than hardcoding it.
7191
7192 1999-03-03 Jim Blandy <jimb@zwingli.cygnus.com>
7193
7194 Put return values in the right place.
7195 * fr30-tdep.c (fr30_store_return_value): New function.
7196 * config/fr30/tm-fr30.h (STORE_RETURN_VALUE): Call
7197 fr30_store_return_value.
7198
7199 Wed Mar 3 18:10:55 1999 Andrew Cagney <cagney@chook.cygnus.com>
7200
7201 * gdbtypes.c (virtual_base_list_aux): Return void. Add prototype.
7202
7203 * breakpoint.c (map_catch_names): Comment out unused function.
7204
7205 1999-03-02 Jason Molenda (jsm@bugshack.cygnus.com)
7206
7207 * hppa-tdep.c (pa_register_look_aside): Only refer to save_state_t
7208 structure on PA 2.0 systems.
7209
7210 1999-03-02 Stan Shebs <shebs@andros.cygnus.com>
7211
7212 From Gary Thomas <gthomas@cygnus.co.uk>:
7213 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT,
7214 THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Use illegal instruction
7215 instead of SWI 24.
7216 * config/arm/tm-arm.h (CALL_DUMMY): Ditto.
7217 (IN_SIGTRAMP): Define.
7218
7219 1999-03-02 Nick Clifton <nickc@cygnus.com>
7220
7221 * findvar.c (store_address): Delete incorrect big endian
7222 code.
7223
7224 Tue Mar 2 18:02:42 1999 Andrew Cagney <cagney@chook>
7225
7226 * configure.in (gdb_cv_os_cygwin): Compat. Continue to reconize
7227 __CYGWIN32__.
7228
7229 1999-03-01 Jason Molenda (jsm@bugshack.cygnus.com)
7230
7231 * configure.in: Move setting of gdb_cv_os_cygwin to before
7232 setting of TERM_LIB. Check for __CYGWIN__ instead of __CYGWIN32__.
7233 * configure: Regenerated.
7234
7235 1999-03-01 DJ Delorie <dj@cygnus.com>
7236
7237 * configure.in: Change -cygwin32* to -cygwin*.
7238 * configure: Ditto.
7239
7240 1999-02-25 Stan Shebs <shebs@andros.cygnus.com>
7241
7242 * breakpoint.c (SOLIB_LOADED_LIBRARY_PATHNAME,
7243 SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_CREATE_CATCH_LOAD_HOOK,
7244 SOLIB_CREATE_CATCH_UNLOAD_HOOK): Supply default definitions.
7245 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Ditto.
7246
7247 1999-02-25 Keith Seitz <keiths@cygnus.com>
7248
7249 * corelow.c (core_close): Clear out solib state before
7250 closing the bfd associated with the core file.
7251 * solib.c (clear_solib): Mention that clear_solib requires
7252 an open BFD in order for disable_breakpoints_in_shlibs to
7253 determine whether breakpoints live in shared libraries.
7254
7255 1999-02-24 Jason Molenda (jsm@bugshack.cygnus.com)
7256
7257 * configure.in: Set CPU_HPPA_RISC_20 if the host CPU is a PA 2.0
7258 processor.
7259 * acconfig.h: Add CPU_HPPA_RISC_20
7260 * config.in, configure: Regenerated.
7261 * hppa-tdep.c (pa_register_look_aside): Only refer to new
7262 structure elements if we are on a PA2.0 system.
7263 * defs.h: Include limits.h.
7264
7265 Tue Feb 23 14:37:08 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
7266
7267 * infrun.c (wait_for_inferior): Check scheduler_locking state
7268 before resuming after a thread-specific breakpoint.
7269
7270 1999-02-23 Jim Blandy <jimb@zwingli.cygnus.com>
7271
7272 * aclocal.m4, config.in, configure: Regenerated with latest
7273 autotools.
7274
7275 Mon Feb 22 12:32:19 1999 Per Bothner <bothner@cygnus.com>
7276
7277 * jv-valprint.c (java_val_print): Restore line that somehow got lost.
7278
7279 * jv-valprint.c (java_print_value_fields): Check for NULL type.
7280
7281 1999-02-21 Jim Blandy <jimb@zwingli.cygnus.com>
7282
7283 * tm-h8500.h, i386lynx-nat.c: Removed. These files are long
7284 dead; it seems that they only appeared due to some CVS weirdness.
7285 If they appear again, we may need to distribute garlic and holy
7286 water.
7287
7288 1999-02-19 Jason Molenda (jsm@bugshack.cygnus.com)
7289
7290 * configure.in (TERM_LIB): Move checking for TERM_LIB, substituting.
7291 * configure: Regenerated.
7292
7293 1999-02-19 Robert Hoehne (robert.hoehne@gmx.net)
7294
7295 * configure.host (i[3456]86-*-msdosdjgpp*): New host.
7296 * configure.tgt (i[3456]86-*-msdosdjgpp*): New target.
7297 * go32-nat.c: New file, native DJGPP support.
7298 * config/i386/go32.mh: Rewrite for DJGPP (go32) host.
7299 * config/i386/go32.mt: New file, DJGPP (go32) target.
7300 * config/i386/nm-go32.h: New file.
7301 * config/i386/tm-go32.h: New file.
7302 * config/i386/xm-go32.h: Rewritten for current DJGPP.
7303
7304 1999-02-18 Jason Molenda (jsm@bugshack.cygnus.com)
7305
7306 * reply_mig_hack.awk, config/nm-gnu.h, config/alpha/nm-linux.h
7307 config/alpha/xm-alphalinux.h, config/alpha/xm-alphaosf.h
7308 config/i386/nm-i386sco5.h, config/i386/tm-fbsd.h, config/i386/tm-i386.h
7309 config/powerpc/nm-aix.h, config/powerpc/tm-macos.h
7310 config/powerpc/tm-ppc-aix.h, config/powerpc/xm-aix.h
7311 config/rs6000/tm-rs6000-aix4.h, testsuite/gdb.chill/tests1.ch
7312 testsuite/gdb.chill/tests2.ch, testsuite/gdb.chill/tests2.exp:
7313 Update FSF address in copyright notices.
7314
7315 1999-02-18 Jason Molenda (jsm@bugshack.cygnus.com)
7316
7317 * configure.in: Quote "$GCC" correctly.
7318 * configure: Regenerated.
7319
7320 1999-02-18 Jim Blandy <jimb@zwingli.cygnus.com>
7321
7322 * dbxread.c (elfstab_build_psymtabs): Don't assume that there's a
7323 section named ".text", which has all the code in it. Instead, look
7324 at all the sections in the file with the `code' flag set.
7325 (find_text_range): New function, that does all the work.
7326
7327 Thu Feb 18 17:50:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
7328
7329 * mips-tdep.c (FP_REGISTER_DOUBLE): Conditionally define.
7330
7331 Fri Jan 29 16:51:11 1999 Andrew Cagney <cagney@chook.cygnus.com>
7332
7333 * mips-tdep.c (return_value_location): New function. Merge/rewrite
7334 of return-value code in mips_extract_return_value,
7335 mips_store_return_value. Stop buffer overflow when 64 bit value
7336 in 32 bit registers. Extract 64bit float from 32 bit register
7337 pair of correct order.
7338 (mips_extract_return_value, mips_store_return_value): Call
7339 return_value_location. For store, ensure that remainder of
7340 register is zero.
7341
7342 Thu Jan 28 18:58:02 1999 Andrew Cagney <cagney@chook.cygnus.com>
7343
7344 From John Metzler <jmetzler@cygnus.com>:
7345 * mips-tdep.c (struct gdbarch_tdep): Add mips_saved_regsize.
7346 (MIPS_SAVED_REGSIZE): Define.
7347 (mips_find_saved_regs, read_next_frame_reg, mips_pop_frame):
7348 Read/write MIPS_SAVED_REGSIZE bytes of register on stack instead
7349 of MIPS_REGSIZE.
7350 (mips_gdbarch_init): Initialize mips_saved_regsize.
7351
7352 * mips-tdep.c (mips_frame_saved_pc, mips16_heuristic_proc_desc,
7353 mips_push_arguments, mips_push_dummy_frame,
7354 mips_use_struct_convention): Ditto. For MIPS_SAVED_REGSIZE <
7355 REGISTER_RAW_SIZE, handle little/big endian issues from only using
7356 half the register.
7357 (STACK_ARGSIZE): Default to MIPS_SAVED_REGSIZE instead of
7358 MIPS_REGSIZE.
7359
7360 * mips-tdep.c (struct gdbarch_tdep, FP_REGISTER_DOUBLE,
7361 mips_gdbarch_init): Apply similar changes. Add
7362 mips_fp_register_double to struct.
7363
7364 Wed Feb 17 10:10:27 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
7365
7366 * gdbtypes.h (get_discrete_bounds): Remove duplicate decl.
7367
7368 * jv-typeprint.c (java_type_print_base): Change fputs => fputs_filtered.
7369
7370 Mon Jan 25 18:30:57 1999 Per Bothner <bothner@cygnus.com>
7371
7372 * jv-lang.h (JAVA_OBJECT_SIZE): Change from hard-wired constant.
7373 (java_primitive_type_from_name, get_java_object_header_size): Declare.
7374 * jv-lang.c (java_class_from_object): Use get_java_object_type.
7375 * jv-lang.c: Update Class field names: dtable->vtable,
7376 msize->method_count, nfields->field_count, bfsize->size_in_bytes,
7377 nmethods->method_count.
7378 (type_from_class): Demangle array type names.
7379 (java_link_class_type): Array type names are now demangled.
7380 (get_java_object_type): If not defined yet, try looking it up.
7381 (get_java_object_header_size): New function.
7382 (java_primitive_type_from_name): New function.
7383 (java_demangled_signature_length, java_demangled_signature_copy): New.
7384 (java_demangle_type_signature): Re-implement using above functions.
7385 (evaluate_subexp_java): For UNOP_IND, call evaluate_subexp_java
7386 to evaluate subexp (not evaluate_subexp_standard).
7387 For BINOP_SUBSCRIPT update for new array type naming scheme.
7388 * jv-valprint.c (java_value_print): Use java_class_from_object.
7389 Update array printing to new array type naming convention.
7390 (java_val_print): Doing check_typedef when printing a pointer is
7391 is a waste of effort. Also, handle TYPE_CODE_INT, to make sure
7392 Java bytes as not printed as C chars.
7393
7394 Fri Jan 8 16:58:22 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
7395
7396 * blockframe.c (find_pc_sect_partial_function): Search full symtabs as
7397 a last ditch effort (after the partial & minimal symtabs).
7398 * defs.h utils.c: Fixup prototypes for vprintf_filtered,
7399 vfprintf_filtered, vfprintf_unfiltered and vprintf_unfiltered to return
7400 ints to match their standard equivalents.
7401 * defs.h symtab.c top.c: Create skip_prologue_hook to allow Java to
7402 control the prologue skipping process.
7403 * jv-typeprint.c (java_type_print_base): Remove extern for
7404 jv_class_demangle, add new arg for objfile (NULL).
7405 * symtab.h: Remove struct sourcevector and struct source. Definately
7406 not needed.
7407 * values.c (value_virtual_fn_field): Fixes code to handle new vtable
7408 debug info format. Patch from marka.
7409
7410 Wed Dec 16 23:11:25 1998 Stu Grossman <grossman@fencer.cygnus.com>
7411
7412 * jv-lang.c (java_class_from_object java_class_is_primitive
7413 is_object_type): Change dtable to vtable.
7414 * (java_primitive_type): Change arg to type char.
7415 * (_initialize_java_language): Make java_char_type be unsigned.
7416 * jv-lang.h: Fixup prototypes.
7417
7418 Mon Dec 7 19:02:15 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
7419
7420 * jv-valprint.c (java_value_print): Fix printing of values where
7421 run time type != compile time type.
7422
7423 Fri Dec 4 15:23:38 1998 Stu Grossman <grossman@fencer.cygnus.com>
7424
7425 * Makefile.in: Whack out m2-typeprint.c.
7426 * c-typeprint.c (c_type_print_varspec_suffix) typeprint.h: Make this
7427 global. It's needed by Java.
7428 * (c_type_print_base): Whack prefix off of qualified method names
7429 (names with name spaces).
7430 * gdbtypes.h (struct cplus_struct_type): Add bits for Java attributes.
7431 Shrink voffset
7432 to 16 bits to compensate for added bits above (hopefully this is still
7433 enough).
7434 * Add new accessor macros (TYPE_FND_FIELD_PUBLIC, ...) for all new
7435 attribute bits.
7436 * jv-typeprint.c (java_type_print_base): Fix printing of method
7437 attributes. Handle JVM style manglings.
7438 * (java_print_type): Enable code type print varspec_suffix to allow
7439 array indices to print out.
7440 * jv-valprint.c (java_val_print): Minor formatting.
7441 * m2-lang.c (m2_language_d): Change m2_print_type to c_print_type.
7442 * stabsread.c (read_member_functions): Save public and static attributes.
7443
7444 Wed Feb 17 15:32:57 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7445
7446 * breakpoint.c (watch_command_1): Reformat comment.
7447
7448 * c-typeprint.c (c_type_print_base): Reformat comments.
7449
7450 1999-02-17 Jim Blandy <jimb@zwingli.cygnus.com>
7451
7452 * Makefile.in (VERSION): Bump version to 4.17.2.
7453
7454 Tue Feb 16 15:48:20 1999 Edith Epstein <eepstein@sophia.cygnus.com>
7455
7456 * config/pa/nm-hppah.h: Added prototype declarations for
7457 hppa_enable_page_protection_events and
7458 hppa_disable_page_protection_events.
7459
7460 * inftarg.c (child_wait): Fixed code that checks whether
7461 or not the target program has done a fork/vfork.
7462 related_pid does not have a value unless the target
7463 program has forked/vforked.
7464
7465 * infttrace.c (hppa_insert_hw_watchpoint): Make sure that
7466 function always returns a value.
7467 (hppa_remove_hw_watchpoint): Make sure that function always
7468 returns a value.
7469
7470 Tue Feb 16 06:31:58 1999 Keith Seitz <keiths@cygnus.com>
7471
7472 * config/powerpc/tm-ppc-eabi.h: Do not define PC_IN_CALL_DUMMY,
7473 let the generic call dummy infrastructure do it.
7474
7475 Sun Feb 14 18:21:08 1999 Mark Alexander <marka@cygnus.com>
7476
7477 * config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
7478 coffread.c will correctly handle char or short function parameters.
7479
7480 1999-02-11 Jason Molenda (jsm@bugshack.cygnus.com)
7481
7482 * configure, aclocal.m4: Regenerate with correct version of aclocal.
7483
7484 1999-02-10 Syd Polk <spolk@cygnus.com>
7485
7486 * acinclude.m4: Fix for new location of itclConfig.sh and itkConfig.sh.
7487 * aclocal.m4: Regnerate.
7488 * configure: Regenerate.
7489
7490 1999-02-10 Jason Molenda (jsm@bugshack.cygnus.com)
7491
7492 * demangle.c: Fix comments to mention "set demangle-style"
7493 instead of "set demangle".
7494 Run through indent to fix minor indenting problems.
7495
7496 Wed Feb 10 17:53:09 1999 Bob Manson <manson@charmed.cygnus.com>
7497
7498 * i386-tdep.c (gdb_print_insn_i386): Add missing returns.
7499
7500 Wed Feb 10 13:17:21 1999 Stan Shebs <shebs@andros.cygnus.com>
7501
7502 Declare Gould configuration obsolete:
7503 * configure.host, configure.tgt: Comment out Gould configs.
7504 * Makefile.in: Comment out Gould-related actions.
7505 * gould-xdep.c, gould-tdep.c, config/gould/*: Comment out.
7506 * NEWS: Mention obsolete status.
7507
7508 1999-02-09 DJ Delorie <dj@cygnus.com>
7509
7510 * sparcl-tdep.c: UDP download works in cygwin
7511
7512 1999-02-08 Jason Molenda (jsm@bugshack.cygnus.com)
7513
7514 * gnu-regex.c: Check ENABLE_NLS instead of HAVE_LIBINTL_H.
7515 * configure.in: Don't check for libintl.h.
7516 * configure, config.in: Regenerated.
7517
7518 Mon Feb 8 18:10:50 1999 Stan Shebs <shebs@andros.cygnus.com>
7519
7520 * NEWS: Mention new X packet and PowerPC variant support.
7521
7522 1999-02-08 Nick Clifton <nickc@cygnus.com>
7523
7524 * configure.host: Add support for StrongARM host.
7525 * configure.tgt: Add support for StrongARM target.
7526
7527 Mon Feb 8 12:05:05 1999 David Taylor <taylor@texas.cygnus.com>
7528
7529 * dsrec.c (make_srec): Cast targ_addr to int in call to sprintf
7530 otherwise on big endian machine with a bfd_vma of 64 bits,
7531 *everything* gets loaded at location 0.
7532
7533 Mon Feb 7 10:05:43 1999 Frank Ch. Eigler <fche@cygnus.com>
7534
7535 * infrun.c (wait_for_inferior): Allow SIGTRAP to be "pass"ed
7536 to target program.
7537
7538 Fri Feb 5 16:46:14 1999 Stan Shebs <shebs@andros.cygnus.com>
7539
7540 * NEWS: Add mentions of various new things.
7541
7542 Thu Feb 4 00:19:14 1999 Christopher Faylor <cgf@cygnus.com>
7543
7544 * configure.in: Move termcap determination later in the
7545 file to catch setting of cygwin flag.
7546 * configure: Regenerate.
7547
7548 Wed Feb 3 14:16:38 1999 Christopher Faylor <cgf@cygnus.com>
7549
7550 * config/i386/cygwin.mh: Move TERMCAP test code to configure.in.
7551 * configure.in: Treat libtermcap.a detection as a special case
7552 when hosting on cygwin.
7553 * configure: Regenerate.
7554
7555 1999-02-03 Keith Seitz <keiths@cygnus.com>
7556
7557 * remote.c (remote_binary_download, remote_binary_length): New
7558 static globals for dealing with binary transmissions.
7559 (remote_write_bytes): Add support for binary downloads
7560 by shadowing the "M" packet with a new "X" packet. This
7561 defaults to ON; if the stub does not understand this, it
7562 will fall back to using "M".
7563 (putpkt): Add support for binary downloading.
7564 * monitor.c (monitor_expect): The mon2000 monitor
7565 on the MSA2000 will also emit random DC1/DC3 chars.
7566 * m32r-stub.c: Change all char's to unsigned char's
7567 to support binary downloading.
7568 (handle_exception): Add support for binary downloading
7569 via a new "X" packet.
7570 (getpacket): Do NOT strip eighth bit of incoming chars.
7571 Watch out for escaped characters in the incoming stream.
7572 (putpacket): Do NOT strip eighth bit of incoming chars.
7573 (bin2mem): New function to write binary data directly to
7574 memory.
7575 * m32r-rom.c: Add new "mon2000" target.
7576
7577 Tue Feb 2 18:40:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7578
7579 * hp-psymtab-read.c (hpread_build_psymtabs): Coerce first arg
7580 passed to make_cleanup to the correct type.
7581 (hpread_quick_traverse): Change fifth arg to call to
7582 hpread_end_psymtab to be 0.
7583 Compare CURR_MODULE_END to 0 rather than NULL.
7584 Get rid of ifdef'ed out code.
7585 (scan_procs): Get rid of ifdef'ed out code.
7586
7587 * somread.c (som_symfile_read): Coerce first argument passed to
7588 make_cleanup to the correct type.
7589
7590 Tue Feb 2 17:36:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7591
7592 * hp-psymtab-read.c (do_pxdb): New function. Check whether the
7593 file needs to be processed by pxdb (an HP debug info massaging
7594 tool), if so call it.
7595 (hpread_build_psymtabs): Initialize scan_start to 0 and
7596 simplify flow of control.
7597
7598 * somread.c (som_symfile_read): Add call to do_pxdb (),
7599 in hp-psymtab-read.c.
7600
7601 * symfile.c (symbol_file_add): Remove ifdef'ed out HPUX specific
7602 code.
7603 (symfile_bfd_open): Remove HPUXHPPA ifdef'ed code. Code is now
7604 in hp-psymtab-read.c.
7605
7606 1999-02-02 Martin Hunt <hunt@cygnus.com>
7607
7608 * printcmd.c (print_scalar_formatted): Use strcat to concat all
7609 the output together before calling fprintf_filtered().
7610
7611 1999-02-01 Jason Molenda (jsm@bugshack.cygnus.com)
7612
7613 * configure.in: Require autoconf 2.13.
7614 (AM_EXEEXT): Replace with new AC_EXEEXT.
7615 * acinclude.m4: Move itcl header macros from aclocal.m4 to here.
7616 * aclocal.m4: Regenerated.
7617 * configure: Regenerated.
7618
7619 1999-02-01 Jim Blandy <jimb@zwingli.cygnus.com>
7620
7621 Allow PPC users to select which PPC/RS6000 variant they're
7622 debugging at run-time. At the moment, the only thing this affects
7623 is the set of registers visible.
7624 * config/rs6000/tm-rs6000.h (REGISTER_NAME): Define this as a call
7625 to the function rs6000_register_name.
7626 (rs6000_register_name): Include extern decl.
7627 (NUM_REGS): Bump to 183. What's the right way to do this?
7628 (FIRST_UISA_SP_REGNUM, LAST_UISA_SP_REGNUM): Renamed from
7629 FIRST_SP_REGNUM, LAST_SP_REGNUM.
7630 (REGISTER_BYTES): Recompute this.
7631 * rs6000-tdep.c: Renamed all uses of FIRST_SP_REGNUM and
7632 LAST_SP_REGNUM to FIRST_UISA_SP_REGNUM and LAST_UISA_SP_REGNUM, with
7633 some concomitant formatting changes.
7634 #include "gdbcmd.h", so we can define commands here.
7635 (struct variant): New structure.
7636 (COMMON_UISA_REG_NAMES, PPC_UISA_SPR_NAMES, PPC_SEGMENT_REG_NAMES,
7637 PPC_32_OEA_SPR_NAMES, num_registers): New macros.
7638 (register_names_rs6000, register_names_uisa, register_names_403,
7639 register_names_403GC, register_names_505, register_names_860,
7640 register_names_601, register_names_602, register_names_603,
7641 register_names_604, register_names_750, variants): New variables.
7642 (rs6000_register_name, install_variant, find_variant_by_name,
7643 install_variant_by_name, list_variants, show_current_variant,
7644 set_processor, show_processor): New functions.
7645 (_initialize_rs6000_tdep): Define new commands `set processor' and
7646 `show processor', and call install_variant_by_name to set the
7647 default variant.
7648 * rs6000-nat.c: Renamed all uses of FIRST_SP_REGNUM and
7649 LAST_SP_REGNUM to FIRST_UISA_SP_REGNUM and LAST_UISA_SP_REGNUM, with
7650 some concomitant formatting changes.
7651 * configure.in: Accept the `--with-cpu' flag, to specify a default
7652 processor variant.
7653 * acconfig.h: Provide a blurb for TARGET_CPU_DEFAULT, which is set
7654 by configure's `--with-cpu' flag.
7655 * config.in, configure: Regenerated.
7656
7657 Sun Jan 31 15:24:24 1999 Stan Shebs <shebs@andros.cygnus.com>
7658
7659 * buildsym.h, buildsym.c: Convert to ANSI-only.
7660
7661 * buildsym.h, buildsym.c: Reformat to standard.
7662
7663 * buildsym.c (merge_symbol_lists): Remove unused variable.
7664 (_initialize_buildsym): Remove, does nothing.
7665
7666 1999-01-31 J.T. Conklin <jtc@redbacknetworks.com>
7667
7668 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
7669 sparcl-stub, sparclet-stub.c: Change declaration of putDebugChar
7670 to include explicit void return type as per documentation. Fix up
7671 occasions where stubs erroneously checked return type.
7672
7673 Sun Jan 31 13:18:33 1999 Stan Shebs <shebs@andros.cygnus.com>
7674
7675 From J.T. Conklin <jtc@redbacknetworks.com>:
7676 * remote.c (remote_query): Fix tipo.
7677
7678 Fri Jan 29 15:25:09 1999 Stan Shebs <shebs@andros.cygnus.com>
7679
7680 * configure.tgt (v850): Add wildcard to match.
7681
7682 Fri Jan 29 16:44:01 1999 Edith Epstein <eepstein@sophia.cygnus.com>
7683
7684 * inferior.h: Ran indent.
7685
7686 * fork-child.c: Ran indent.
7687
7688 * infrun.c : Ran indent.
7689
7690 Fri Jan 29 12:57:34 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7691
7692 * infrun.c (_initialize_infrun): Do not stop or print anything
7693 when a SIGWINCH is received.
7694
7695 * Makefile.in (m2-exp.tab.c): Use YACC not BISON.
7696 (f-exp.tab.c): Ditto.
7697 (jv-exp.tab.c): Ditto.
7698 (c-exp.tab.c): Ditto.
7699 (YACC): Define as @YACC@.
7700
7701 1999-01-29 Martin Hunt <hunt@cygnus.com>
7702
7703 Changes from Keith Seitz <keiths@cygnus.com>
7704 * valops.c (value_assign): Add calls to register_changed_hook and
7705 memory_changed_hook to inform UIs that the user has changed
7706 the target's registers/memory.
7707 * findvar.c (write_register_gen): Remove call to pc_changed_hook.
7708 * defs.h: Remove declaration for pc_changed_hook and
7709 add declarations for register_changed_hook and
7710 memory_changed_hook.
7711 * top.c: Ditto.
7712
7713 1999-01-29 Mark Alexander <marka@cygnus.com>
7714
7715 * procfs.c (wait_fd): Handle deleted threads correctly.
7716
7717 1999-01-28 Jason Molenda (jsm@bugshack.cygnus.com)
7718
7719 * utils.c (init_page_info): Force window size if running under emacs.
7720
7721 1999-01-27 James Ingham <jingham@cygnus.com>
7722
7723 * typeprint.c (whatis_exp): Remove static declaration.
7724
7725 Wed Jan 27 16:50:25 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7726
7727 * hp-psymtab-read.c: Reformat using indent.
7728
7729 Wed Jan 27 13:20:25 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7730
7731 * hp-psymtab-read.c: Reformat comments, update copyright.
7732
7733 Wed Jan 27 15:09:22 1999 Andrew Cagney <cagney@chook.cygnus.com>
7734
7735 * mips-tdep.c (mips_gdbarch_init): Trace e_flags from BFD
7736 elf_info.
7737
7738 Tue Jan 26 16:02:47 1999 Mark Alexander <marka@cygnus.com>
7739
7740 * v850-tdep.c (v850_generic_reg_names, v850e_reg_names,
7741 v850_register_names, v850_processor_type_table): Declare tables
7742 and structures for handling differences in register names for
7743 v850 and v850e.
7744 (struct reg_list): Define new structure for creating tables
7745 of register bit masks in v850e instrutions.
7746 (handle_prepare, handle_pushm): New helpers for v850_scan_prologue.
7747 (v850_scan_prologue): Recognize v850e instructions: callt, prepare,
7748 and pushm.
7749 (v850_target_architecture_hook): New function to set register
7750 names based on current machine.
7751 (_initialize_v850_tdep): Set up target_architecture_hook.
7752 * config/v850/tm-v850.h (v850_register_names): Declare.
7753 (REGISTER_NAME): Define to refer to v850_register_names.
7754 (SR0_REGNUM, CTBP_REGNUM): Define.
7755 (PS_REGNUM): Redefine in terms of SR0_REGNUM.
7756
7757 Tue Jan 26 18:27:26 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7758
7759 * Makefile.in (c-exp.tab.c): Use BISON instead of YACC, to pick
7760 the correct value from configure output.
7761 (jv-exp.tab.c): Ditto.
7762 (f-exp.tab.c): Ditto.
7763 (m2-exp.tab.c): Ditto.
7764
7765 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
7766
7767 * breakpoint.h (ep_is_exception_catchpoint): Add prototype.
7768 * frame.h (select_and_print_frame): Add prototype.
7769 * stack.c (func_command): Call select_and_print_frame with correct
7770 number of arguments. Reformat whitespace.
7771
7772 Tue Jan 26 16:53:54 1999 Fernando Nasser <fnasser@cygnus.com>
7773
7774 * remote.c (remote_query): fix maximum packet size to account for
7775 remote_debug use.
7776 (putpkt): add comment to alert about extra byte need.
7777
7778 Mon Jan 25 19:55:30 1999 Mark Alexander <marka@cygnus.com>
7779
7780 * sh-tdep.c (sh_target_architecture_hook): Return immediately
7781 when a matching machine is found.
7782
7783 Fri Jan 22 09:10:35 1999 Mark Alexander <marka@cygnus.com>
7784
7785 * remote-mips.c (mips_initialize): Fix parameters to clear_breakpoint.
7786 (common_breakpoint): Restore support for instruction breakpoints
7787 on non-LSI targets.
7788
7789 Thu Jan 21 17:16:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
7790
7791 * stack.c: Close open comment.
7792 * symtab.c (find_pc_sect_line): Ditto.
7793
7794 Thu Jan 21 17:51:51 1999 Stan Shebs <shebs@andros.cygnus.com>
7795
7796 * procfs.c (init_procfs_ops): New function, fills in procfs_ops,
7797 init only nonzero fields, leave to_require_attach and
7798 to_require_detach empty, not needed for /proc systems yet.
7799 (_initialize_procfs): Call init_procfs_ops.
7800
7801 From J.T. Conklin <jtc@redbacknetworks.com>:
7802 * top.c (init_main): Fix tipo in description of the remotetimeout
7803 variable.
7804 * breakpoint.c (bpstat_stop_status): Handle systems where
7805 DECR_PC_AFTER_BREAK != DECR_PC_AFTER_HW_BREAK.
7806
7807 Thu Jan 21 17:25:46 1999 Mark Alexander <marka@cygnus.com>
7808
7809 * mon960-rom.c (_initialize_mon960): Call init_mon960_cmds
7810 to fill in mon960_cmds structure properly.
7811
7812 Wed Jan 20 17:53:22 1999 Stan Shebs <shebs@andros.cygnus.com>
7813
7814 * remote-sds.c (sds_ops): Define only once.
7815 (init_sds_ops, sds_command, _initialize_remote_sds): Declare.
7816 (init_sds_ops): Init only non-zero fields.
7817
7818 Wed Jan 20 15:45:15 1999 Mark Alexander <marka@cygnus.com>
7819
7820 * h8300-tdep.c (original_register_names, h8300h_register_names,
7821 h8300_register_names): Define new variables.
7822 (set_register_names): New function to set register names based on
7823 current CPU type.
7824 (h8300_command, h8300h_command, h8300s_command): Call
7825 set_register_names.
7826 * config/h8300/tm-h8300.h (h8300_register_names): Declare.
7827 (REGISTER_NAME): Define to refer to h8300_register_names.
7828
7829 1999-01-19 Fernando Nasser <fnasser@totem.to.cygnus.com>
7830
7831 * sol-thread.c abug-rom.c cpu32bug-rom.c dbug-rom.c m32r-rom.c
7832 mac-nat.c mon960-rom.c op50-rom.c ppc-bdm.c remote-adapt.c
7833 remote-array.c remote-bug.c remote-e7000.c remote-eb.c remote-es.c
7834 remote-est.c remote-hms.c remote-mm.c remote-nindy.c remote-nrom.c
7835 remote-os9k.c remote-rdp.c remote-sds.c remote-sim.c remote-st.c
7836 remote-udi.c rom68k-rom.c sh3-rom.c sparcl-tdep.c sparclet-rom.c
7837 v850ice.c win32-nat.c: cosmetic changes to conform to coding
7838 standards.
7839
7840 1999-01-19 Jim Blandy <jimb@zwingli.cygnus.com>
7841
7842 Use aclocal to generate GDB's aclocal.m4 script.
7843 * acinclude.m4: New file, containing the hand-written local macro
7844 definitions that used to be in aclocal.m4. Don't sinclude
7845 ../bfd/aclocal.m4 any more; running aclocal in this directory will
7846 get us the definitions we need. HOWEVER: Do sinclude
7847 ../bfd/acinclude.m4, because we need the definition of
7848 BFD_NEED_DECLARATION.
7849 * aclocal.m4: Regenerated by aclocal.
7850 * configure: Regenerated by autoconf.
7851
7852 Tue Jan 19 10:27:23 1999 David Taylor <taylor@texas.cygnus.com>
7853
7854 * breakpoint.c (disable_breakpoints_in_shlibs): new parameter,
7855 silent, controls whether to print message about removal of shared
7856 library breakpoints.
7857 * breakpoint.h (disable_breakpoints_in_shlibs): decl updated.
7858 * irix5-nat.c (clear_solib): call disable_breakpoints_in_shlibs.
7859 * osfsolib.c (clear_solib): ditto.
7860 * solib.c (clear_solib): ditto.
7861 * somsolib.c (som_solib_restart): update call to
7862 disable_breakpoints_in_shlibs.
7863
7864 * target.h (child_post_attach): only declare if CHILD_POST_ATTACH
7865 is define.
7866
7867 Tue Jan 19 18:07:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
7868
7869 * corelow.c (solib_add_stub): Ditto.
7870 (core_file_to_sym_file): Cast make_cleanup parameter.
7871
7872 * solib.c (symbol_add_stub, solib_map_sections): Change argument
7873 to PTR insted of a char*. Matches catch_errors interface.
7874
7875 Mon Jan 18 14:01:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
7876
7877 * remote-array.c (array_open): Don't use fprintf_filtered to send
7878 data to the log file.
7879
7880 * remote-array.c (handle_load_dll): Change argument type to PTR so
7881 that it is compatible with catch_errors.
7882 * ocd.c (ocd_start_remote): Ditto.
7883 * remote-sds.c (sds_start_remote): Ditto.
7884
7885 * win32-nat.c (win32_child_thread_alive): Namespace proof
7886 child_thread_alive.
7887 (init_child_ops): Update.
7888
7889 Mon Jan 18 12:03:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
7890
7891 * remote-rdi.c (arm_rdi_open): Set gdb_hostif.hostosarg and
7892 gdb_hostif.dbgarg to NULL instead of stdout.
7893 (voiddummy, myprint, mywritec): Use gdb_stdout instead of stdout.
7894
7895 Mon Jan 18 16:40:50 1999 Stan Shebs <shebs@andros.cygnus.com>
7896
7897 * ser-ocd.c (ocd_open): Handle Unix case gracefully.
7898
7899 * target.c (dummy_target): Don't initialize statically.
7900 (init_dummy_target): New function, fills in dummy_target.
7901 (initialize_targets): Use it.
7902 * hpux-thread.c (hpux_thread_ops): Don't initialize statically.
7903 (init_hpux_thread_ops): New function, fills in hpux_thread_ops.
7904 (_initialize_hpux_thread): Use it.
7905 * m3-nat.c (m3_ops): Don't initialize statically.
7906 (init_m3_ops): New function, fills in m3_ops.
7907 (_initialize_m3): Use it.
7908
7909 1999-01-18 Fernando Nasser <fnasser@totem.to.cygnus.com>
7910
7911 * sol-thread.c: delete compile time initialization of target_ops
7912 (_initialize_sol_thread): initialize target_ops at run time.
7913 * hpux-thread.c: added target_ops entry.
7914 * m3-nat.c: ditto.
7915
7916 Mon Jan 18 15:19:13 1999 David Taylor <taylor@texas.cygnus.com>
7917
7918 * procfs.c (procfs_ops): delete compile time initialization.
7919 (_initialize_procfs): initialize procfs_ops at run time.
7920
7921 Mon Jan 18 12:51:44 1999 Christopher Faylor <cgf@cygnus.com>
7922
7923 * configure.in: Ensure that -luser32 is always linked in
7924 for cygwin build.
7925 * configure: Regenerated.
7926
7927 Mon Jan 18 08:38:05 1999 Mark Alexander <marka@cygnus.com>
7928
7929 * values.c (value_virtual_fn_field): Clear the pointed-to
7930 offset when casting to the base class.
7931
7932 Mon Jan 18 10:30:51 1999 David Taylor <taylor@texas.cygnus.com>
7933
7934 * remote-udi.c (init_udi_ops): change non-existant udi_run_ops to
7935 udi_ops; delete NULL initializers.
7936
7937 Mon Jan 18 12:03:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
7938
7939 * serial.c (serial_close): gdb_fclose tages gdb_file** arg, not
7940 gdb_file*.
7941
7942 * f-valprint.c, target.c, gdbarch.c: Pass gdb_stderr not stderr.
7943
7944 Mon Jan 18 10:46:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
7945
7946 * stack.c (print_frame_info_base): Don't cast call to
7947 catch_errors.
7948 (print_args_stub): Change char* arg to PTR.
7949 * symmisc.c (print_symbol): Ditto.
7950 * top.c (quit_cover): Ditto.
7951 * remote.c (remote_open_1, remote_start_remote): Ditto.
7952 * infrun.c (normal_stop, hook_stop_stub, restore_selected_frame):
7953 Ditto.
7954
7955 * stack.c (backtrace_command): Cast first arg of make_cleanup to
7956 make_cleanup_func.
7957 * remote.c (remote_kill): Cast putpkt arg to catch_errors_ftype.
7958
7959 Mon Jan 18 08:47:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
7960
7961 * defs.h (catch_errors_ftype): Define.
7962 (catch_errors): Replace char* arg with PTR arg.
7963 * top.c (catch_errors): Update
7964
7965 * breakpoint.c (bpstat_stop_status, bpstat_stop_status,
7966 delete_breakpoint, breakpoint_re_set): Delete all casts in call to
7967 catch_errors.
7968 (breakpoint_cond_eval, watchpoint_check,
7969 cover_target_enable_exception_callback, breakpoint_re_set_one):
7970 Arg is PTR not char*.
7971
7972 * breakpoint.c (cover_target_enable_exception_callback): Change
7973 type to int. Check for cast values of 0 and -1. Return a result!
7974 (insert_breakpoints): Move declaration of SAL and ARGS to where
7975 they are used.
7976
7977 1999-01-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
7978
7979 * remote.c (remote_query): new function - creates proper interface
7980 to the remote protocol "q" command.
7981
7982 Fri Jan 15 17:11:48 EST 1999 Zdenek Radouch (radouch@cygnus.com)
7983
7984 * config/fr30/tm-fr30.h: Changed ABI to match GCC change
7985 (always use pointer for structs passed by value).
7986
7987 1999-01-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
7988
7989 * target.h: added entry for target queries (to_query)
7990 target.c: ditto.
7991
7992 Thu Jan 14 18:29:17 1999 David Taylor <taylor@texas.cygnus.com>
7993
7994 * mips-tdep.c (mips_gdbarch_init): fix stream arg in
7995 fprintf_unfiltered calls.
7996 * remote-mm.c (mm_wait): fix stream arg to gdb_flush.
7997 * remote-udi.c (udi_wait): fix stream arg to fwrite.
7998 * symmisc.c (maintenance_check_symtabs): fix stream argument to
7999 print_address_numeric.
8000
8001 Wed Jan 13 19:33:16 1999 David Taylor <taylor@texas.cygnus.com>
8002
8003 * breakpoint.c (insert_breakpoints): insert cast to eliminate
8004 warning.
8005
8006 Wed Jan 13 14:59:02 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
8007
8008 * infrun.c (set/show scheduler-locking) New command. Set a
8009 mode bit that will control how GDB attempts to control thread
8010 scheduling for step, continue, etc. (resume): make use of
8011 the schedule-locking mode.
8012 * target.h (struct target_ops): new field to_has_thread_control.
8013 * sol-thread.c: initialize target_ops to_has_thread_control.
8014 * procfs.c: ditto.
8015 * target.c: ditto.
8016 * m3-nat.c: ditto.
8017 * remote.c: ditto.
8018 * hpux-thread.c: ditto.
8019 * thread.c: cull duplicate prototypes. Move prototypes to top.
8020 * serial.c: indentation cleanup.
8021 * breakpoint.c: add casts to eliminate compiler warnings.
8022
8023 Tue Jan 12 17:00:00 1999 Edith Epstein <eepstein@sophia.cygnus.com>
8024
8025 * inftarg.c (child_create_inferior): fixed HPUXHPPA specific
8026 call to fork_inferior. The shell param is now NULL.
8027
8028 1999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
8029
8030 * monitor.c (init_base_monitor_ops): Whitespace cleanup.
8031 (_initialize_remote_monitors): Same.
8032
8033 1999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
8034
8035 * monitor.c (init_monitor_ops): Initialize the monitor_ops
8036 structure if it hasn't already been done.
8037
8038 Tue Jan 12 14:50:10 1999 Stan Shebs <shebs@andros.cygnus.com>
8039
8040 * inftarg.c (child_ops): Don't initialize statically.
8041 (init_child_ops): New function, fills in child_ops.
8042 (_initialize_inftarg): Use it.
8043 (child_post_attach): Declare extern.
8044 (child_wait): Fix ambiguous parens.
8045 (child_attach_to_process): Remove unused local wstatus.
8046 (child_insert_fork_catchpoint, child_remove_fork_catchpoint,
8047 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
8048 child_has_forked, child_insert_exec_catchpoint,
8049 child_remove_exec_catchpoint): Return a value.
8050
8051 Mon Jan 11 16:43:44 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
8052
8053 * remote.c (remote_wait): Add inferior_pid to thread list only
8054 if it is not already there.
8055
8056 1999-01-11 Jason Molenda (jsm@bugshack.cygnus.com)
8057
8058 * scm-tags.h: Update FSF's address on copyright notice.
8059 * ser-e7kpc.c: Same.
8060 * gnu-nat.h: Same.
8061
8062 Mon Jan 11 13:45:57 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
8063
8064 * dwarf2read.c (dump_die): Change stderr to gdb_stderr.
8065 * expprint.c (print_subexp): fprintf => fprintf_unfiltered.
8066 * jv-typeprint.c (java_type_print_base): fputs => fputs_filtered.
8067 * stack.c (struct function_bounds): Remove superfluous `typedef'.
8068 * symfile.c (list_overlays_command): stdout => gdb_stdout.
8069 * symmisc.c (maintenance_check_symtabs): stdout => gdb_stdout.
8070 * utils.c (print_spaces): Make more efficient.
8071
8072 Mon Jan 11 13:55:51 1999 David Taylor <taylor@texas.cygnus.com>
8073
8074 * utils (print_spaces): fix arg to strcat; fix formatting.
8075
8076 Fri Jan 8 11:57:24 1999 Stan Shebs <shebs@andros.cygnus.com>
8077
8078 * exec.c (exec_ops): Don't initialize statically.
8079 (init_exec_ops): New function, fills in exec_ops.
8080 (_initialize_exec): Use it.
8081
8082 Thu Jan 7 17:50:15 EST 1999 Zdenek Radouch (radouch@cygnus.com)
8083
8084 Beta FR30 port.
8085 * fr30-tdep.c
8086 * config/fr30/tm-fr30.h
8087
8088 Wed Jan 6 12:28:35 1999 David Taylor <taylor@texas.cygnus.com>
8089
8090 * configure.in: Add an --enable-tui argument. Construct
8091 tui/Makefile from tui/Makefile.in. Use AM_PROG_CC_STDC. If we
8092 have the GUI, then we need this to process libgui.h.
8093 (ENABLE_CFLAGS): define and export BUILD_TUI.
8094 (AC_CHECK_HEADERS): Add check for term.h.
8095
8096 * configure.host (hppa-*-hpux10.20, hppa-*-hpux11.0*): New configs.
8097
8098 * config.in, configure : regenerated.
8099
8100 * Makefile.in: Allow the TUI code to be conditionally enabled.
8101 (TUI_LIBRARY): New variable, value are set by the configuration
8102 script. Set to the empty string when the TUI isn't enabled.
8103 (gdb$(GDBEXT)): Use those, instead of referring to all-tui and
8104 tui/libtui.a directly.
8105 (BUILD_TUI): build the tui -- only when configured with
8106 --enable-tui.
8107 (YLWRAP): use ylwrap to avoid problems on systems w/o bison.
8108 (gdb$(EXEEXT)): make it dependent on BUILD_TUI.
8109 (all-tui): remove dependency from phony target.
8110 (c-exp.tab.c): use ylwrap instead of bison.
8111 (jv-exp.tab.c): ditto.
8112 (f-exp.tab.c): ditto.
8113 (m2-exp.tab.c): ditto.
8114 (ALLDEPFILES): add somread.c, hp-psymtab-read.c, hp-symtab-read.c.
8115 (SFILES): remove the above files
8116 (COMMON_OBS): remove somread.o
8117 (SFILES): Add the tui files to this, so they get included in etags
8118 tables.
8119 (gdb$(EXEEXT)): Add all-tui to the list of dependencies, and add
8120 tui/libtui.a to the link list.
8121 (all-tui): New rule, which does a recursive make in the tui
8122 subdir.
8123 (tui/libtui.a): When recursing, pass down ${FLAGS_TO_PASS}. And
8124 don't echo the make command. This is closer to what the other
8125 recursions do.
8126 (HFILES_NO_SRCDIR): add hpread.h
8127 (COMMON_OBS): add hp-psymtab-read.o, hp-symtab-read.o
8128 (SFILES): add hp-psymtab-read.c, hp-symtab-read.c add rules for
8129 the new files. Remove hpread.c, hpread.o
8130 (gdb$(EXEEXT)): Depend on the actual tui library, not on a
8131 fictitious target. Since the fictitious target never existed,
8132 make would always relink.
8133 (tui/libtui.a): Always recurse to make sure the library is up to
8134 date.
8135
8136 Wed Jan 6 12:05:12 1999 Stan Shebs <shebs@andros.cygnus.com>
8137
8138 * remote.c: Pacify --enable-build-warnings, reformat code
8139 to conform to standards, fix spelling errors.
8140 (ishex, stubhex, record_currthread, etc): Declare.
8141 (ishex, stubhex): Declare char arg as int.
8142 (pack_string): Comment out, never used but possibly useful.
8143 (threadref_to_int, remote_get_threadinfo, etc): Make static.
8144
8145 Wed Jan 6 11:43:32 1999 David Taylor <taylor@texas.cygnus.com>
8146
8147 The following changes were made by Elena Zannoni
8148 <ezannoni@cygnus.com> and Edith Epstein <eepstein@cygnus.com> as
8149 part of a project to merge in changes made by HP.
8150
8151 * c-exp.y: use external flag hp_som_som_object_present to decide
8152 whether code was compiled by HP's compilers. Add two new C++
8153 tokens for true and false.
8154 (yylex): check for template name is done differently for the
8155 HP/aCC compiler case. Change some of the template processing code
8156 for handling HP aCC templates. Handle true and false tokens.
8157
8158 Tue Jan 5 11:13:36 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
8159
8160 * remote.c (record_curthread): Must not modify inferior_pid when
8161 called from wait_for_inferior. Instead, if a new thread-id is
8162 detected, call add_thread.
8163 (MAGIC_NULL_PID): new macro, use instead of the magic number
8164 "42000".
8165 (remote_find_new_threads): if inferior_pid is unknown, get and use
8166 the current thread id.
8167 (remote_start_remote): on connecting, attempt to get the current
8168 thread id for inferior_pid.
8169 (remote_resume): If pid == -1, then resume any-thread (not the
8170 current thread specifically). Also some cosmetic fixups.
8171
8172 * thread.c (info_threads_command): don't initialize current_pid
8173 until after call to FIND_NEW_THREADS (which may change inferior_pid).
8174 Also some cosmetic fixups.
8175 * infrun.c: cosmetic fixups and casts to avoid warnings.
8176 * infcmd.c: cosmetic fixups, mainly long lines.
8177
8178 Tue Jan 5 11:55:57 1999 David Taylor <taylor@texas.cygnus.com>
8179
8180 * target.c (noprocess): terminate sentence with a period.
8181 * breakpoint.c (catch_command_1): ditto.
8182
8183 * c-valprint.c (c_value_print): remove hack^2 from HP; it causes
8184 testsuite losses with no real gain.
8185
8186 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): restore, but only
8187 if tm-*.h hasn't overridden default value.
8188
8189 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
8190
8191 * configure.in: Fix whitespace indentation for --help.
8192 * configure: Regenerated.
8193
8194 1999-01-04 Manuel Bouyer <bouyer@antioche.lip6.fr>
8195
8196 * main.c: Add --write command line option, document -w.
8197 * gdb.1: Document --write.
8198
8199 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
8200
8201 * configure.in: Require autoconf 2.12.1 or higher.
8202 * doc/configure.in: Ditto.
8203 * nlm/configure.in: Ditto.
8204 * rdi-share/configure.in: Ditto.
8205 * testsuite/configure.in: Ditto.
8206 * doc/Makefile.in: Don't hardcode $(SHELL).
8207 * nlm/Makefile.in: Ditto.
8208 * rdi-share/Makefile.in: Ditto.
8209 * testsuite/Makefile.in: Ditto.
8210
8211 Mon Jan 4 12:53:03 1999 Stan Shebs <shebs@andros.cygnus.com>
8212
8213 * remote-vx.c (init_vx_ops, init_vx_run_ops): Remove unneeded
8214 inits of new fields, including ref to bogus field.
8215 (vx_ops, vx_run_ops): Make static.
8216
8217 Mon Jan 4 15:05:29 1999 David Taylor <taylor@texas.cygnus.com>
8218
8219 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): delete,
8220 already defined in tm.h.
8221
8222 * inftarg.c: change <sys/unistd.h> to <unistd.h> and
8223 conditionalize its inclusion.
8224 * infttrace.c: ditto.
8225
8226 For older changes see ChangeLog-98
8227 \f
8228 Local Variables:
8229 mode: change-log
8230 left-margin: 8
8231 fill-column: 74
8232 version-control: never
8233 End: