]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
import gdb-1999-10-04 snapshot
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2acceee2
JM
11999-10-04 James Ingham <jingham@leda.cygnus.com>
2
3 * remote-rdi.c (arm_rdi_open): If the angel_RDI_Open fails, close
4 the serial port and raise an error. If you try to go on, you will
5 stall forever down in the rdi-share code.
6
71999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
8
9 * printcmd.c (output_command): Makes sure result from the output
10 command is printed before the next prompt.
11
121999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
13
14 * printcmd.c (print_formatted): Add missing stream parameter.
15 (do_examine, print_command_1, output_command, do_one_display):
16 Adjust call to print_formatted().
17
181999-10-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
19
20 * infcmd.c: Remove include of event-loop.h.
21 * utils.c: Ditto.
22 * top.c: Ditto.
23
24 * infrun.c (fetch_inferior_event): Call inferior_event_handler
25 when inferior stops, instead of doing work ourselves.
26 (fetch_inferior_event): Use void* instead of gdb_client_data.
27 Remove includes of event-top.h and event-loop.h. Add include of
28 inf-loop.h.
29 (complete_execution): Move from here.
30
31 * inf-loop.c (complete_execution): To here.
32 (inferior_event_handler): Handle inferior's execution completion
33 case as well.
34 * inf-loop.h: Add def of INF_LOOP_H.
35
36 * event-top.h: Don't use gdb_client_data, use void*, to avoid
37 dependency on event-loop.h.
38
39 * remote.c (remote_async_resume): Set target_executing only after we
40 actually register the inferior with the event loop.
41
421999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
43
44 * corefile.c (memory_error): Use error_stream() and eliminate call
45 to return_to_top_level().
46
471999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
48
49 * utils.c (error): Save error message text (w/o new line).
50 (error_last_message): New function. Returns the last message
51 issued by gdb.
52 (error_init): New function. Initializes error handling machinery.
53 (error_stream): New function. Allows the error message to be
54 passed on a stream buffer.
55 * defs.h: Add prototypes for error_stream() and
56 error_last_message().
57 * main.c (main): Add call to error_init().
58
591999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
60
61 * utils.c (tui_sfileopen): New function. Replaces
62 gdb_file_init_astring().
63 * defs.h: Add prototype for the above.
64
65Mon Oct 4 19:25:55 1999 Andrew Cagney <cagney@b1.cygnus.com>
66
67 * symfile.c (add_symbol_file_command): Fix -Wformat on query call.
68
691999-10-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
70
71 * target.c (cleanup_target): Type of to_async param is now
72 function with enum inferior_event_type param.
73
74 * target.h (target_ops): Adjust to_async accordingly. Move enum
75 inferior_event_type to this file. Don't have a typedef for
76 inferior_event_type. Add more enumeration constants INF_QUIT_REQ,
77 INF_EXEC_COMPLETE. Remove INF_SIGINT_FIRST, INF_SIGINT_SECOND.
78
79 * inf-loop.c (inferior_event_handler): Change first param to tell
80 the type of event we are dealing with. Deal with INF_ERROR and
81 INF_REG_EVENT, for the moment.
82 Include target.h.
83
84 * inf-loop.h (inferior_event_handler): Adjust prototype. Remove
85 enum inferior_event_type from here.
86
87 * remote.c (remote_async_serial_handler): Pass INF_REG_EVENT to
88 the client callback.
89 (remote_async): Change callback's param type to inferior_event_type.
90 (async_client_callback): Change type as above.
91
921999-10-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
93
94 * event-top.c (stdin_event_handler): Delete fd parameter, use
95 input_fd instead.
96 * event-top.h (stdin_event_handler): Delete fd parameter.
97
98 * inf-loop.c (inferior_event_handler): Delete fd parameter. Use
99 target_async() to unregister the inferior fd in case of errors.
100 * inf-loop.h(inferior_event_handler): Delete fd parameter.
101
102 * ser-unix.c (fd_event): Delete fd parameter. Use scb->fd,
103 instead.
104
105 * remote.c (async_client_callback): Delete fd parameter.
106 (remote_async_serial_handler): Ditto.
107 (remote_async): Adjust to new type of callback function.
108
109 * target.c (cleanup_target): Adjust parameters for to_async
110 default case.
111 * target.h (*to_async): Delete fd parameter from cb function.
112
113 * event-loop.h (handler_func): Delete fd parameter.
114 * event-loop.c (handle_file_event): Delete fd param from call to
115 proc. Do not include inferior.h.
116
1171999-10-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
118
119 * event-loop.c (inferior_event_handler,
120 inferior_event_handler_wrapper): Move from here.
121 * inf-loop.c: To here. New file.
122
123 * event-loop.h (inferior_event_handler): Move from here.
124 * inf-loop.h: To here. New file.
125
126 * remote.c: Include inf-loop.h.
127 (set_extende_protocol): Remove unused prototpye.
128
129 * Makefile.in (SFILES): Add inf-loop.c.
130 (inf_loop_h): Define.
131 (COMMON_OBS): Add inf-loop.o.
132 (inf-loop.o): Add rule.
133 (remote.o): Add dependency on inf-loop.h.
134
135Fri Oct 1 19:59:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
136
137 * ser-unix.c: Add some notes on how the async code works.
138
139Fri Oct 1 01:45:32 1999 Jeffrey A Law (law@cygnus.com)
140
141 * somread.c (som_symfile_offsets): Fix typo in last change.
142
1431999-09-30 Fred Fish <fnf@cygnus.com>
144
145 * coff-solib.c (coff_solib_add): Adjust call to symbol_file_add.
146 * cxux-nat.c (add_shared_symbol_files): Ditto.
147 * irix5-nat.c (symbol_add_stub): Ditto.
148 * osfsolib.c (symbol_add_stub): Ditto.
149 * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
150 * remote-mm.c (mm_load): Ditto.
151 * remote-udi.c (udi_load): Ditto.
152 * remote-vx.c (vx_add_symbols): Ditto.
153 * solib.c (symbol_add_stub): Ditto.
154 * somsolib.c (som_solib_add_solib_objfile): Ditto.
155 * win32-nat.c (handle_load_dll): Ditto.
156
157 * irix5-nat.c (symbol_add_stub): Add section_addrs, zero it.
158 * cxux-nat.c (add_shared_symbol_files): Ditto.
159 * osfsolib.c (symbol_add_stub): Ditto.
160 * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
161 * solib.c (symbol_add_stub): Ditto.
162 * somsolib.c (som_solib_add_solib_objfile): Ditto.
163 * symfile.c (symbol_file_command): Ditto.
164 * win32-nat.c (handle_load_dll): Ditto.
165
166 * irix5-nat.c (symbol_add_stub): Use section_addrs to pass text addr.
167 * cxux-nat.c (add_shared_symbol_files): Ditto.
168 * osfsolib.c (symbol_add_stub): Ditto.
169 * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
170 * solib.c (symbol_add_stub): Ditto.
171 * somsolib.c (som_solib_add_solib_objfile): Ditto.
172 * symfile.c (symbol_file_command): Ditto.
173 * win32-nat.c (handle_load_dll): Ditto.
174
175 * coff-solib.c (coff_solib_add): Call symbol_file_add with NULL ptr.
176 * cxux-nat.c (add_shared_symbol_files): Ditto.
177 * remote-udi.c (udi_load): Ditto.
178 * remote-vx.c (vx_add_symbols): Ditto.
179 * symfile.c (symbol_file_command): Ditto.
180
181 * dstread.c (dst_symfile_offsets): Take "section_addr_info *"
182 instead of CORE_ADDR.
183 * somread.c (som_symfile_offsets): Ditto.
184 * symfile.c (default_symfile_offsets): Ditto.
185 * xcoffread.c (xcoff_symfile_offsets): Ditto.
186
187 * symfile.h (default_symfile_offsets): Adjust prototype.
188 (syms_from_objfile): Ditto.
189 * symtab.h (symbol_file_add): Ditto.
190
191 * rs6000-nat.c (objfile_symbol_add): Call syms_from_objfile with NULL.
192 * xcoffsolib.c (solib_add): Ditto.
193 * gdb-stabs.h (SECT_OFF_MAX): Increase from 4 to 16.
194 * symtab.h (MAX_SECTIONS): Define.
195 (struct section_addr_info): New struct for better control over
196 changing load addresses of sections.
197 * objfiles.h (OBJF_READNOW): Add new flag bit.
198 * symfile.h (sym_offsets): Change second param from CORE_ADDR to
199 "section_addr_info *".
200
201 * symfile.c (symbol_file_add): Replace scalar arg "CORE_ADDR addr"
202 with "struct section_addr_info *addrs".
203 (syms_from_objfile): Ditto.
204 (add_symbol_file_command): Remove local variables "readnow" and
205 "mapped". Replaced with general "flags" variable.
206 (symbol_file_command): Ditto.
207 (add_symbol_file_command): Add local variables i, sec_num, argcnt,
208 expecting_option, option_index, and opt. Rework option parsing code
209 to handle additional options.
210 (_initialize_symfile): Adjust add-symbol-file usage to match new
211 option handling.
212 (symbol_file_add): Remove parameters "mapped" and "readnow",
213 replace with general "flags".
214 (symbol_file_add): In call to allocate_objfile, replace "mapped"
215 with extracted OBJF_MAPPED bit from flags.
216 (symbol_file_add): Use OBJF_READNOW bit from flags, instead of
217 "readnow" variable.
218 (symbol_file_command): Set OBJF_MAPPED and OBJF_READNOW bits
219 from parsed options. Pass flags to symbol_file_add.
220 (add_symbol_file_command): Ditto.
221 (syms_from_objfile): Add local variables i, sect, lower_sect,
222 lower_offset, and local_addr. Substitute local_addr for addrs
223 when addrs is NULL. Find lowest loadable section to be used as
224 starting point for contiguous sections. Adjust offsets if segments
225 are not contiguous. Call sym_offsets with section_addr_info
226 instead of single addr.
227 (default_symfile_offsets): Initialize objfile's section_offsets
228 with user specified offsets.
229 (symbol_file_add): Call syms_from_objfile with offsets.
230 (unknown_option_complaint): Add.
231 (add_symbol_file_command): Add "section_addrs", zero it with memset.
232
2331999-09-30 Jason Molenda (jsm@bugshack.cygnus.com)
234
235 * configure.in: Call config.sub explicitly instead of misusing the
236 autoconf internal variable $ac_config_sub.
237 * configure: Regenerated.
238
239Thu Sep 30 15:53:59 1999 Andrew Cagney <cagney@b1.cygnus.com>
240
241 * remote.c (readchar): When EOF mourn the inferior.
242 (getpkt): Try QUIT. Might not be a watchdog timer timeout.
243 (remote_async_serial_handler): Pass ``-1'' as the dummy FD. Safer
244 than ZERO == STDIN.
245
246 * serial.h (enum serial_rc): Replace #define SERIAL_ERROR,
247 SERIAL_TIMEOUT and SERIAL_EOF.
248 (struct _serial_t): Add more notes on termios specific fields.
249
250 * ser-unix.c (generic_readchar): Make SERIAL_ERROR sticky.
251 (do_hardwire_readchar, do_unix_readchar): Don't use bufcnt as a
252 tempoary for the return-value from read.
253
254 * serial.c (serial_logchar): Add a stream parameter.
255 (serial_readchar, serial_write, serial_send_break): Update.
256 (serial_readchar): Add serial debug trace.
257
258Thu Sep 30 12:07:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
259
260 * serial.h (struct _serial_t): Add field async_state. Better
261 document field bufcnt.
262 (SERIAL_ERROR): Delete comment about errno.
263 * serial.c (serial_open, serial_fdopen): Initialize async_state.
264
265 * ser-unix.c (push_event, fd_event, reschedule): New functions.
266 Handle ASYNC serial input.
267 (ser_unix_async): Update.
268 (generic_readchar): New function. Handle event scheduling. Make
269 EOF condition sticky.
270 (do_unix_readchar): Rename ser_unix_readchar.
271 (ser_unix_readchar): New function, call do_unix_readchar via
272 generic_readchar.
273 (do_hardwire_readchar, hardwire_readchar): Ditto.
274
275 * ser-unix.c (ser_unix_readchar): Delete code working around ASYNC
276 fifo bugs.
277 (hardwire_readchar): Delete code working around ASYNC fifo bugs.
278
279Wed Sep 29 21:27:16 1999 Jeffrey A Law (law@cygnus.com)
280
281 * breakpoint.c (insert_breakpoints): Addresses are CORE_ADDRs,
282 not "int"s.
283 (remove_breakpoint): Likewise.
284
2851999-09-29 Fred Fish <fnf@cygnus.com>
286
287 * breakpoint.c (breakpoint_1): Replace cast "(CORE_ADDR) - 1"
288 with the more obviously intended expression "(CORE_ADDR) -1".
289 * dwarf2read.c (scan_partial_symbols, read_file_scope): Ditto.
290 * gnu-nat.c (gnu_create_inferior): Ditto.
291 * go32-nat.c (go32_create_inferior): Ditto.
292 * hppa-tdep.c (hppa_pop_frame): Ditto.
293 * infcmd.c (continue_command, step_1, signal_command): Ditto.
294 (until_next_command, finish_command): Ditto.
295 * infrun.c (proceed): Ditto.
296 * inftarg.c (child_create_inferior): Ditto.
297 * m3-nat.c (m3_create_inferior): Ditto.
298 * mac-nat.c (child_create_inferior): Ditto.
299 * procfs.c (procfs_create_inferior): Ditto.
300 * remote-sim.c (gdbsim_create_inferior): Ditto.
301 * target.c (target_link): Ditto.
302 * win32-nat.c (child_create_inferior): Ditto.
303 * varobj.c (varobj_create, new_root_variable): Ditto.
304
305Thu Sep 30 10:36:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
306
307 * ser-unix.c (ser_unix_flush_input): New function. Discard input
308 buffer.
309 (hardwire_flush_input): Use ser_unix_flush_input.
310 (ser_unix_nop_flush_input): Delete.
311 * ser-unix.h (ser_unix_flush_input): Update.
312 ser-tcp.c (_initialize_ser_tcp), ser-pipe.c
313 (_initialize_ser_pipe): Update.
314
315 * ser-unix.c (hardwire_write): Delete.
316 (_initialize_ser_hardwire): Update, use ser_unix_write.
317
318Thu Sep 30 10:16:50 1999 Andrew Cagney <cagney@b1.cygnus.com>
319
320 * ser-pipe.c (pipe_open): Don't make the FD non-blocking. Already
321 being handled in ser_unix_wait_for by a select.
322
323Thu Sep 30 10:00:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
324
325 * serial.h (struct _serial_t): Add field debug_p.
326 (SERIAL_DEBUG, SERIAL_DEBUG_P): Define.
327
328 * serial.c (serial_open, serial_fdopen): Initialize debug_p.
329 (serial_debug, serial_debug_p): New functions.
330 (global_serial_debug_p): New variable.
331 (_initialize_serial): Add ``set serialdebug'' command.
332
333Thu Sep 30 09:09:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
334
335 * serial.h (serial_event_ftype): Replace FD and ERROR args with
336 SERRIAL_T arg.
337 * ser-unix.c (ser_unix_event): Update.
338
339 * remote.c (remote_async_serial_handler): New function. Handle
340 serial events.
341 (remote_async): Pass remote_async_serial_handler to SERIAL.
342 (async_client_callback, async_client_context): New variables.
343
344 * remote.c (extended_remote_async_create_inferior): Use
345 target_async to register the inferior event handler.
346
347Thu Sep 30 00:02:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
348
349 * configure.in (AC_CHECK_FUNCS): Test for sigprocmask.
350 * configure, config.in: Re-generate.
351 * event-top.c (async_stop_sig): Use sigprocmask when available.
352
3531999-09-29 Doug Evans <devans@casey.cygnus.com>
354
355 * sh-stub.c (handle_exception): Fix typo in patch of 1999-08-26.
356 * m68k-stub.c (handle_exception): Ditto.
357
3581999-09-28 Fred Fish <fnf@cygnus.com>
359
360 * alpha-nat.c (alpha_osf_core_fns, alpha_elf_core_fns):
361 Add default entries for check_format and core_sniffer.
362 * core-aout.c (aout_core_fns): Ditto.
363 * core-regset.c (regset_core_fns): Ditto.
364 * core-sol2.c (solaris_core_fns): Ditto.
365 * i386aix-nat.c (i386aix_core_fns): Ditto.
366 * i386mach-nat.c (i386mach_core_fns): Ditto.
367 * irix4-nat.c (irix4_core_fns): Ditto.
368 * irix5-nat.c (irix5_core_fns): Ditto.
369 * lynx-nat.c (lynx_core_fns): Ditto.
370 * mips-nat.c (mips_core_fns): Ditto.
371 * ns32knbsd-nat.c (nat_core_fns): Ditto.
372 * rs6000-nat.c (rs6000_core_fns): Ditto.
373 * sparc-nat.c (sparc_core_fns): Ditto.
374 * sun-nat.c (sun3_core_fns): Ditto.
375 * ultra3-nat.c (ultra3_core_fns): Ditto.
376
377 * corelow.c (core_vec): New, for selected core file handler.
378 (sniff_core_bfd): New function.
379 (gdb_check_format): New function.
380 (default_check_format): New function.
381 (default_core_sniffer): New function.
382 (sniff_core_bfd): New function.
383 (core_close): Reset core_vec to NULL.
384 (core_open): Fall back to gdb_check_format if bfd_check_format
385 does not identify the file format. Call sniff_core_bfd to pick
386 a core file handler.
387 (get_core_registers): Remove code that is now in sniff_core_bfd.
388 Use current core_vec.
389
390 * gdbcore.h (check_format): New core_fns function, points to function
391 to try and identify a core file format.
392 (core_sniffer): New core_fns function, points to function to select
393 a specific handler for the selected core file format.
394 (default_core_sniffer): Add prototype.
395 (default_check_format): Add prototype.
396
397 * i960-tdep.c (inferior.h): Include.
398 * mips-tdep.c (read_next_frame_reg): Use ADDR_BITS_REMOVE
399 on addresses pulled from stack.
400
4011999-09-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
402
403 * event-loop.c (poll_timers): Check whether the timer list has any
404 element on it by looking at the first element pointer, instead of
405 num_timers.
406
407Wed Sep 29 18:02:31 1999 Andrew Cagney <cagney@amy.cygnus.com>
408
409 * command.c: Attempt to include POSIX <sys/wait.h> before
410 <wait.h>.
411
412 * ser-unix.c (hardwire_print_tty_state): Ditto.
413 * inflow.c (child_terminal_info): Fix printf args.
414
4151999-09-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
416
417 * remote.c (remote_async_resume): Register the inferior with the
418 event loop.
419 (remote_async_open_1): Don't put the target in async mode here,
420 just do it when executing.
421
422 * infrun.c (complete_execution): Unregister the inferior from the
423 event loop.
424
425 * event-top.c (async_disable_stdin): Don't add
426 async_enable_stdin() to the exec_cleanups chain.
427
6426a772
JM
428Tue Sep 28 11:08:34 1999 Jeffrey A Law (law@cygnus.com)
429
430 * hppa-tdep.c (hppa_fix_call_dummy): Ignore IMPORT_SHLIB stubs
431 except for hpux11 native. Break out of the loop to find a
432 stub as soon as we find an IMPORT stub.
433 (skip_prologue_hard_way): Also recognize copy %ret1,target and
434 all PA64 argument stores as prologue instructions.
435
4361999-09-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
437
438 * breakpoint.c, defs.h, event-top.c, infcmd.c, infrun.c, main.c,
439 remote.c, top.c, tracepoint.c, utils.c (async_p): Change var name
440 to event_loop_p.
441
4421999-09-28 Jim Blandy <jimb@cris.red-bean.com>
443
444 * hppa-tdep.c (skip_prologue_hard_way): Recognize ldo insns
445 which generate pointers into the argument list.
446
447Tue Sep 28 13:56:49 1999 Andrew Cagney <cagney@b1.cygnus.com>
448
449 * remote.h (cleanup_sigint_signal_handler,
450 initialize_sigint_signal_handler): Delete extern declarations.
451 * event-top.c, infrun.c: No longer need to include "remote.h".
452 * remote.c (cleanup_sigint_signal_handler,
453 initialize_sigint_signal_handler): Make static.
454 * Makefile.in (event-top.o): Delete dependency on "remote.h".
455
456 * remote.c (remote_async_terminal_ours_p): New static global. Keep
457 track of who currently owns the terminal.
458 (remote_async_open_1): Initialize.
459 (remote_async_terminal_inferior): Test
460 remote_async_terminal_ours_p. Claim CNTRL-C handler as part of
461 transfering the terminal to the target.
462 (remote_async_terminal_ours): Similar.
463
464Mon Sep 27 12:33:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
465
466 * remote.c (async_interrupt_query): Delete function. Merged into
467 interrupt_query. Async cases handled by target_terminal_ours,
468 target_terminal_inferior and SERIAL_CLOSE.
469 (async_remote_interrupt_twice): Update.
470 (remote_async_terminal_ours, remote_async_terminal_inferior): New
471 functions. Steal STDIN from GDB's CLI.
472 (init_remote_async_ops): Initialize to_terminal_ours and
473 to_terminal_inferior.
474
475 * event-top.c (async_disable_stdin, async_disable_stdin): Use
476 target_terminal_ours / target_terminal_inferior to transfer
477 ownership of the terminal between GDB and the target.
478
4791999-09-27 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
480
481 * infcmd.c (run_command): Call async_disable_stdin() only if
482 dealing with an asynchronous target.
483
484Mon Sep 27 11:48:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
485
486 * target.h (struct target_ops): Add to_can_async_p, to_is_async_p,
487 to_async. Delete to_has_async. These correspond well with
488 SERIAL* async methods.
489 (target_can_async_p, target_is_async_p, target_async): Define.
490 * target.c (update_current_target, cleanup_target): Update.
491
492 * remote.c (remote_async_open_1): Change target to async using
493 target_async.
494 (remote_can_async_p, remote_is_async_p, remote_async): New
495 functions.
496 (remote_async_wait, remote_async_open_1): Add FIXME about how
497 wait_forever_enabled_p can almost be deleted once the client can
498 enable/disable target_async.
499
500 * breakpoint.c (until_break_command), infrun.c (proceed), infcmd.c
501 (run_command, continue_command, step_1, jump_command,
502 until_command, finish_command, interrupt_target_command), top.c
503 (return_to_top_level, execute_command), event-top.c
504 (command_handler): Replace target_has_async with
505 target_can_async_p.
506
507Sun Sep 26 02:10:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
508
509 * remote.c (remote_async_open_1): If we go into async mode, never
510 wait for ever.
511
512 * infcmd.c: Include "event-top.h".
513 (run_command, continue_command, jump_command, until_command,
514 finish_command): Use async_disable_stdin to disable the console
515 for synchronous commands.
516
517 * remote.c (async_interrupt_query): Only disconnect the console
518 from the terminal when sync_execution.
519
520 * remote.c (initialize_sigint_signal_handler): Move declaration
521 from here.
522 * remote.h: To here. Make non-static.
523
524 * remote.c (remote_async_resume, async_interrupt_query): Move
525 prompt code from here.
526 * event-top.c (async_disable_stdin, async_enable_stdin): To
527 here. New function.
528
529 * infrun.c (start_remote): Delete commented out code.
530
531Fri Sep 24 12:38:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
532
533 * remote.c (remote_async_open_1): Perform the initial async_open
534 using only synchronous calls. Only after the target is fully
535 connected, switch to async mode. Include FIXME about now it
536 currently works VS how it should be working.
537 (remote_async_open_1, set_extended_protocol): Delete function
538 set_extended_protocol. All open communication is now done
539 synchronously.
540 (forever_enabled_p): New variable. Determine if remote_async_wait
541 should block FOREVER when fetching target information.
542 (remote_cisco_open, remote_open_1): Set forever_enabled_p.
543
544 * infrun.c (start_remote): During the initial connect, always use
545 a synchronous wait.
546
547Sat Sep 25 18:13:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
548
549 * Makefile.in (event-top.o): Add dependency.
550 * event-top.c: Include "remote.h".
551 * remote.c (async_interrupt_query), event-top.c:
552 (async_enable_stdin): Pass dummy parameter to
553 cleanup_sigint_signal_handler.
554 * remote.c (cleanup_sigint_signal_handler), remote.h
555 (cleanup_sigint_signal_handler), event-top.c (async_enable_stdin),
556 event-top.h (async_enable_stdin): Change signature to match
557 make_exec_error_cleanup handler pararameter.
558
559Thu Sep 23 20:48:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
560
561 * defs.h (enum command_class): Move from here.
562 * command.h (command_class): To here.
563
5641999-09-24 Kevin Buettner <kevinb@cygnus.com>
565 * breakpoint.c (bpstat_stop_status): Use not_a_breakpoint to
566 help properly set bp_addr.
567 * infrun.c (handle_inferior_event): Simplify calls to
568 bp_stop_status.
569
5701999-09-24 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
571
572 * top.c (return_to_top_level): Do exec_error cleanups if are
573 interrupting a simulated synchronous execution command.
574
575 * infrun.c (start_remote): Create a cleanup to enable stdin in
576 case of error from this command.
577 (complete_execution): Do the enabling of stdin via the exec_error
578 cleanups, when needed.
579
580 * remote.c (remote_async_resume): Make sure we re-enable stdin in
581 case of error from the target.
582 (handle_remote_sigint_twice): The handler to be set is
583 async_remote_interrupt_twice, not async_remote_interrupt.
584 (async_remote_interrupt_twice): Don't do anything if the target
585 has been killed already. Call async_interrupt_query, instead of
586 interrupt_query.
587 (async_interrupt_query): New function. Async case of
588 interrupt_query().
589
590 * event-top.c (async_enable_stdin): New function. Reinstate stdin
591 with the event loop.
592 * event-top.h (async_enable_stdin): Export.
593
594 * utils.c (exec_error_cleanup_chain): New cleanup chain.
595 (make_exec_error_cleanup, do_exec_error_cleanups,
596 discard_exec_error_cleanups): New functions.
597 * defs.h (make_exec_error_cleanup, do_exec_error_cleanups,
598 discard_exec_error_cleanups): Export.
599
6001999-09-24 Jim Blandy <jimb@zwingli.cygnus.com>
601
602 * ax-gdb.c (expr_to_agent): Don't forget to pass argument to
603 new_agent_expr.
604
6051999-09-24 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
606
607 * event-loop.c (fetch_inferior_event_wrapper): New
608 function. Wrapper to pass to catch_errors.
609 (inferior_event_handler): Pop the target if things go bad with it.
610 Call fetch_inferior_event() from within catch_errors().
611
6121999-09-24 Jim Blandy <jimb@zwingli.cygnus.com>
613
614 * ax-gdb.c: Use internal_error instead of error, where
615 appropriate.
616
6171999-09-23 James Ingham <jingham@leda.cygnus.com>
618
619 * target.c (target_resize_to_sections): New function. Gather the
620 resizing code for the to_sections field into one place, and make
621 sure you update the other targets that are sharing the to_sections
622 structure.
623 * target.h: Declare the target_resize_to_sections function.
624 * solib.c (solib_add): use target_resize_to_sections.
625 * somsolib.c (som_solib_load_symbols): ditto
626 * rs6000-nat.c (xcoff_relocate_core): ditto
627 * pa64solib.c (pa64_solib_load_symbols): ditto
628 * irix5-nat.c (solib_add):ditto
629
630 * top.c: Define the attach & detach hooks
631 * defs.h: Declare the attach & detach hooks.
632 * infcmd.c (attach_command): call the attach hook if it exists.
633 (detach_command): call the detach hook if it exists.
634
635 * complaints.c (complain): Send the complaints to stderr rather
636 than stdout, so they don't get mixed into the result stream from
637 commands.
638
6391999-09-23 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
640
641 * event-loop.c (poll_timers): Use correct timeval field names,
642 when setting the notifier timeouts, in case of select() used.
643 (gdb_wait_for_event): Pass a pointer to the timeout structure to
644 select(), not the structure.
645
646Wed Sep 22 10:35:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
647
648 * Makefile.in (init.c): Change generated file to include "defs.h"
649 and "call-cmds.h". Use initialize_file_ftype when declaring
650 each initialize functions.
651 (call_cmds_h): Add definition.
652 (init.o): Add target and dependencies.
653 (init.c): Don't grep for _initialize* in init.c.
654
655 * defs.h (initialize_file_ftype): Add function typedef.
656
6571999-09-22 Michael Snyder <msnyder@cleaver.cygnus.com>
658
659 * procfs.c (init_procinfo): move fltset initialization to caller.
660 (do_attach, create_procinfo): initialize fltset.
661
6621999-09-22 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
663
664 * event-loop.c, event-top.c, event-loop.h: Rerun indent.
665
6661999-09-21 Doug Evans <devans@casey.cygnus.com>
667
668 * m32r-stub.c (handle_exception): Fix typo in patch of 1999-08-26.
669
c2c6d25f
JM
670Tue Sep 21 14:55:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
671
672 From 1999-08-20 J.T. Conklin <jtc@redback.com>:
673 * remote.c (read_frame): expand cisco run-length encoding variant
674 inline as is done for the standard encoding.
675 (remote_cisco_expand): Removed.
676
6771999-09-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
678
679 * event-loop.c: Include <sys/time.h>.
680
6811999-09-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
682
683 * ser-ocd.c: (ser_ocd_open, ser_ocd_raw, ser_ocd_readchar,
684 ser_ocd_setbaudrate, ser_ocd_write, ser_ocd_close,
685 ser_ocd_get_tty_state, ser_ocd_set_tty_state): Remove unused
686 prototypes.
687 (ocd_readremote): Remove.
688 (ocd_write): Remove unused var 'c'.
689
6901999-09-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
691
692 * event-top.c (change_line_handler): Cleanup dead code. Add comments.
693 * event-loop.c: Cleanup #if 0 code.
694
695 * event-loop.h (timer_handler_func): New function type.
696 (create_timer): Export function.
697 (delete_timer): Export function.
698
699 * event-loop.c: Add timeout and timeout_valid fields to
700 gdb_notifier. New structures gdb_timer and timer_list.
701 (gdb_do_one_event): Check whether there are any timers tht are
702 ready, before going to wait.
703 (gdb_wait_for_event): If the timeout structure is meaningful, pass
704 that to select()/poll().
705 (create_timer): New function. Creates a timer.
706 (delete_timer): New function. Deletes a timer.
707 (handle_timer_event): New function. Deals with timers that are ready.
708 (poll_timers): New Function. Chack whether timers have expired.
709
710Mon Sep 20 17:00:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
711
712 * remote.c (getpkt, putpkt, remote_console_output): Move
713 declaration from here.
714 * remote.h: To here. New file.
715 * tracepoint.c(putpkt, getpkt, remote_console_output): Delete
716 declarations. Moved to "remote.h".
717 * Makefile.in (remote_h): Define.
718 * remote.c, tracepoint.c: Include "remote.h".
719 * Makefile.in (tracepoint.o, remote.o): Add dependency on
720 "remote.h".
721
722 * remote.h (remote_cisco_objfile_relocate,
723 cleanup_sigint_signal_handler): Add declaration. Include FIXME.
724 * infrun.c: Include "remote.h".
725 (complete_execution): Delete local extern declaration
726 of ``cleanup_sigint_signal_handler''.
727 * Makefile.in (infrun.o): Add dependency on remote.h.
728
729Mon Sep 20 13:41:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
730
731 * kod.c (ecos_kod_open, ecos_kod_request, ecos_kod_close,
732 cisco_kod_open, cisco_kod_request, cisco_kod_close): Move
733 declarations from here.
734 * kod.h: To here. New file.
735 * kod-cisco.c, kod.c: Include "kod.h".
736 * Makefile.in (kod-cisco.o, kod.o): Add dependency on "kod.h".
737
738 * kod.h (kod_display_callback_ftype, kod_query_callback_ftype):
739 New function types.
740 * kod.h (kod_cisco_open): Use in declaration.
741 * kod.c (gdb_kod_open): Update definition.
742 * kod-cisco.c (cisco_kod_open): Update definition.
743
744Mon Sep 20 12:13:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
745
746 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
747
748 * breakpoint.c (until_break_command_continuation): Add
749 declaration. Make static.
750 * event-top.c (rl_callback_read_char_wrapper): Ditto.
751
752Fri Sep 17 19:28:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
753
754 * source.c: Include "source.h".
755 (open_source_file, find_source_lines): Move declaration from here.
756 * source.h: New file. To here.
757 * Makefile.in (source.o): Add dependency on source.h.
758
759 * breakpoints.c (delete_command): Move declaration from here.
760 * breakpoints.h (delete_command): To here.
761
7621999-09-18 Jim Blandy <jimb@cris.red-bean.com>
763
764 * hppa-tdep.c (in_solib_call_trampoline): If we can't recognize
765 the instruction we're at, we're not in a stub.
766
767Sat Sep 18 07:13:03 1999 Jeffrey A Law (law@cygnus.com)
768
769 * dwarf2read.c (dwarf_decode_lines): Correctly handle
770 DW_LNS_const_add_pc.
771
7721999-09-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
773
774 * remote.c (remote_async_open_1): Use inferior_event_handler to
775 handle inferior events.
776 (extended_remote_async_create_inferior): Ditto.
777
778 * serial.h (serial_event_ftype): Add two pars.
779
780 * ser-unix.c (ser_unix_event): Add two parameters, error and fd.
781 Pass those into the call to the actual inferior event handler.
782
783 * infrun.c (complete_execution): Stdin handler is stdin_event_handler.
784
785 * event-top.h (stdin_event_handler): Export new function.
786
787 * event-top.c (stdin_event_handler): New function. Smarter handler
788 for events on stdin.
789 (change_line_handler): Don't need to update the handler for stdin
790 here anymore.
791 (_initialize_event_loop): Stdin handler is now stdin_event_handler.
792
793 * event-loop.h: (handler_func): Change signature, adding two new
794 args.
795 (sig_handler_func): New function type. It is the old handler_func.
796 (create_async_signal_handler): Update to use sig_handler_func.
797 (delete_async_signal_handler): Prototype for new function.
798
799 * event-loop.c: Include "inferior.h".
800 (struct file_handler): Add field error, to indicate error
801 condition on fd.
802 (struct async_signal_handler): Rename type of proc field.
803 (add_file_handler): Add exception condition as something select()
804 should report.
805 (handle_file_event): In case of error on the fd, record this in
806 the file_handler structure. Update call to (*proc)() to match new
807 signature.
808 (gdb_wait_for_event): If select() or poll() return error, report
809 this to user.
810 (create_async_signal_handler): Change first param type to
811 sig_handler_func*.
812 (inferior_event_handler): New function. Smarter inferior event
813 handling.
814
8151999-09-18 Jim Blandy <jimb@cris.red-bean.com>
816
817 * pa64solib.c (pa64_solib_create_inferior_hook): Remove code which
818 tries to set __d_pid; it's not relevant to PA64 shared libraries.
819
820 A psymtab's texthigh element, and a block's endaddr element, are
821 the address past the end of the address range, never the address
822 of the last byte. These data structures mean the same thing on
823 forty different architectures; there's no reason they should be
824 different on HP/UX.
825 * symtab.c (find_pc_sect_psymtab): Remove special case for HP/UX.
826 (find_pc_sect_symtab): Same.
827 * objfiles.c (find_pc_sect_section): Same.
828
829Sat Sep 18 07:13:03 1999 Jeffrey A Law (law@cygnus.com)
830
831 * hppa-tdep.c (internalize_unwinds): Handle PA64 shared libraries
832 correctly
833
834 * hppa-tdep.c (in_solib_call_trampoline): Handle PA64 shared library
835 trampolines.
836
8371999-09-17 Jim Blandy <jimb@zwingli.cygnus.com>
838
839 * breakpoint.c (permanent_breakpoint_here_p): Delete.
840 Accidentally left over from previous changes.
841
8421999-09-17 Jim Blandy <jimb@cris.red-bean.com>
843
844 * config/pa/tm-hppa64.h (ARGS_GROW_DOWNWARD): Deleted. There are
845 many more differences between the 32- and 64-bit ABI's than the
846 direction the arguments grow, so this name is misleading.
847 (PA20W_CALLING_CONVENTIONS): Define this instead.
848 * config/pa/tm-hppa.h (ARGS_GROW_DOWNWARD): Delete.
849 * hppa-tdep.c (hppa_push_arguments): Split into two separate
850 functions, depending on whether PA20W_CALLING_CONVENTIONS is
851 #defined. These implement completely separate specifications,
852 they don't really share that much code anyway, and this is much
853 more readable. Specifically: leave a 16-byte, not 32-byte, frame
854 marker; correctly align objects larger than eight bytes; promote
855 all integral scalar arguments smaller than eight bytes to a full
856 register width; pad aggregates smaller than eight bytes on the
857 right.
858
859Thu Sep 16 17:33:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
860
861 * remote.c (remote_async_open_1): Use SERIAL_ASYNC to
862 enable/disable async event callback on serial port. Use
863 SERIAL_CAN_ASYNC_P / SERIAL_IS_ASYNC_P to determine if / when
864 async mode.
865 (remote_async_resume, remote_async_detach, remote_async_kill,
866 extended_remote_async_create_inferior, remote_async_wait): Ditto.
867
868 * ser-unix.c (hardwire_readchar): When ASYNC, only read a single
869 character.
870 (ser_unix_readchar): Ditto. Problems occure with back-to-back
871 data from a target. The ASYNC code can loose the second data
872 chunk.
873
874 * serial.c (serial_fdopen): Initialize async_handler and
875 async_context.
876
8771999-09-16 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
878
879 * utils.c (discard_all_continuations): New function.
880 * defs.h: (discard_all_continuations): Add prototype.
881
8821999-09-16 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
883
884 * valops.c: Remove prototype for search_struct_field_aux(). THe
885 function was nowhere in the file.
886 (value_ind): Remove unused var real_val.
887 (value_find_oload_method_list): Remove unused var v.
888 (find_overload_match): Remove extra declaration of var jj.
889
890 * Makefile.in (event_top_h): Define. Add dependency on this for
891 every file that includes event-top.h.
892
893Thu Sep 16 17:33:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
894
895 * serial.c (serial_open): Delete ``&'' device.
896 * ser-unix.c (_initialize_ser_hardwire): Make the "hardwire"
897 device async. Delete temporary "async-hardwire" device.
898
899Thu Sep 16 16:27:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
900
901 * serial.h (SERIAL_IS_ASYNC_P): Define. Non-zero when serial
902 device is in async mode.
903 (SERIAL_CAN_ASYNC_P): Rename SERIAL_ASYNC_P.
904 * serial.c (serial_is_async_p): Implement.
905 (serial_can_async_p): Rename serial_async_p.
906 (serial_open): Initialize ASYNC_HANDLER and ASYNC_CONTEXT. Save
907 the original name in SCB instead of the stripped name.
908
909Thu Sep 16 12:20:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
910
911 * serial.h (struct serial_ops): Add field ASYNC.
912 (SERIAL_ASYNC, SERIAL_ASYNC_P): New macros.
913 (struct _serial_t): Add fields async_context and async_handler.
914 * serial.c (serial_async, serial_async_p): Implement.
915
916 * ser-unix.c: Include "event-loop.h".
917 (ser_unix_async), ser-unix.c: New function. Implement async mode.
918 (async_event): Handle async events.
919 * ser-unix.c (_initialize_ser_hardwire), ser-tcp.c
920 (_initialize_ser_tcp), ser-pipe.c (_initialize_ser_pipe): Enable
921 ASYNC.
922
923 * serial.c (serial_open): Discard leading ``|'' before opening a
924 pipe device.
925 * ser-pipe.c (pipe_open): Adjust.
926 * serial.c (serial_open): Add ``&'' prefix so that
927 "async-hardwire" device can be explicitly selected. Work in
928 progress.
929 * ser-unix.c: Register "async-hardwire" device.
930
931Thu Sep 16 09:04:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
932
933 * ser-unix.h: New file. Declare generic ser_unix functions.
934 * ser-unix.c (ser_unix_nop_get_tty_state,
935 ser_unix_nop_set_tty_state, ser_unix_nop_raw, ser_unix_wait_for,
936 ser_unix_readchar, ser_unix_nop_noflush_set_tty_state,
937 ser_unix_nop_print_tty_state, ser_unix_nop_setbaudrate,
938 ser_unix_nop_setstopbits, ser_unix_write,
939 ser_unix_nop_flush_output, ser_unix_nop_flush_input,
940 ser_unix_nop_send_break, ser_unix_nop_drain_output): New
941 functions.
942 * ser-unix.c: Include <sys/wait.h>, <sys/socket.h>,
943 "gdb_string.h".
944
945 * ser-tcp.c (_initialize_ser_tcp), ser-unix.c
946 (_initialize_ser_hardwire), ser-pipe.c (_initialize_ser_tcp):
947 Initialize ops vector using assignment.
948
949 * ser-pipe.c, ser-tcp.c, ser-unix.c: Include ser-unix.h.
950
951 * ser-pipe.c (pipe_get_tty_state, pipe_set_tty_state,
952 pipe_return_0, pipe_raw, wait_for, pipe_readchar,
953 pipe_noflush_set_tty_state, pipe_print_tty_state,
954 pipe_setbaudrate, pipe_setstopbits, pipe_write), ser-tcp.c
955 (tcp_get_tty_state, tcp_set_tty_state, tcp_return_0, tcp_raw,
956 wait_for, tcp_readchar, tcp_noflush_set_tty_state,
957 tcp_print_tty_state, tcp_setbaudrate, tcp_setstopbits, tcp_write):
958 Delete functions.
959
9601999-09-15 Stan Shebs <shebs@andros.cygnus.com>
961
962 * d10v-tdep.c (remote_d10v_translate_xfer_address): Move to here
963 from remote-d10v.c, also change the memory translation to its
964 previous version.
965 * remote-d10v.c: Remove.
966 * config/d10v/d10v.mt (TDEPFILES): Remove remote-d10v.o.
967
9681999-09-15 Jim Blandy <jimb@cris.red-bean.com>
969
970 * breakpoint.c (remove_breakpoint): Return zero, not nothing.
971
9721999-09-14 Jim Blandy <jimb@cris.red-bean.com>
973
974 * hppa-tdep.c (frame_chain): If the unwind info says we've saved
975 r3, don't trust it. Call get_frame_saved_regs and see if we can
976 actually find an address for r3 there.
977
978 * pa64solib.c (pa64_sharedlibrary_info_command): Text fix.
979
980Tue Sep 14 14:34:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
981
982 * serial.h (DEPRECATED_SERIAL_FD): Define.
983 * serial.c (deprecated_serial_fd): New function.
984
985 * remote.c (remote_async_open_1, remote_async_open_1,
986 remote_async_detach, remote_async_kill,
987 extended_remote_async_create_inferior, minitelnet): Update.
988 * remote-es.c (es1800_open, es1800_close, es1800_transparent): Update.
989
990 * remote-st.c (connect_command), remote-os9k.c (connect_command):
991 Fix. Call FD_SET et.al. with FD instead of serial_t.
992
9931999-09-14 Jim Blandy <jimb@cris.red-bean.com>
994
995 * hppa-tdep.c (hppa_frame_find_saved_regs): The two possible
996 instructions for saving the return pointer (32- and 64-bit) save
997 it at different offsets.
998
999 * config/pa/tm-hppa64.h: Doc fix.
1000
1001 * defs.h (continuation): Make this a typedef.
1002
1003 * Makefile.in (gdbtk.o, gdbtk-cmds.o): Depend on $(top_h).
1004
1005 * Makefile.in (i386-linux-nat.o): Depend on symfile.h, not
1006 $(symfile_h); the latter has no definition.
1007
1008 * breakpoint.c (breakpoint_here_p): Remove meaningless code,
1009 testing b->enable against shlib_disabled and call_disabled after
1010 we know it is enabled.
1011
1012 Implement "permanent breakpoints" --- breakpoints that are
1013 hardwired into the inferior's code. GDB knows they're there, but
1014 doesn't try to insert or remove them, etc.
1015 * breakpoint.h (enum enable): Add `permanent' enablement state.
1016 * breakpoint.c (make_breakpoint_permanent): New function.
1017 * breakpoint.h (make_breakpoint_permanent): Add declaration.
1018 * breakpoint.c (insert_breakpoints): Don't bother to insert
1019 permanent breakpoints...
1020 (remove_breakpoint): ... or remove them.
1021 (breakpoint_here_p): Handle `permanent' like `enabled'. Change
1022 return value to indicate whether it's a permanent breakpoint here,
1023 or an ordinary breakpoint.
1024 * breakpoint.h (enum breakpoint_here): New enum.
1025 (breakpoint_here_p): Change declaration.
1026 * breakpoint.h (breakpoint_1): Extend bpenables to cover all the
1027 enablement states.
1028 (describe_other_breakpoints): Describe permanent breakpoints.
1029 (check_duplicates): If one of the breakpoints at ADDRESS is a
1030 permanent breakpoint, treat all the others as the duplicates, so
1031 we don't try to insert or remove any of them. Verify that only
1032 the permanent breakpoint is actually inserted.
1033 (delete_breakpoint): Complain if we discover that another
1034 breakpoint was inserted at the same place as a permanent
1035 breakpoint.
1036 (disable_breakpoint): Fail silently if asked to disable a
1037 permanent breakpoint.
1038 (do_enable_breakpoint): Don't change a permanent breakpoint's
1039 enablement to ordinary `enabled'. Leave it alone.
1040 (create_solib_event_breakpoint): Return the
1041 breakpoint object created.
1042 * breakpoint.h (create_solib_event_breakpoint): Fix declaration.
1043 * pa64solib.c (pa64_solib_create_inferior_hook): Do turn on the
1044 DT_HP_DEBUG_CALLBACK flag in the dynamic linker, so it will call
1045 __dld_break, which contains the permanent breakpoint, when interesting
1046 things happen. Tell GDB that the breakpoint in __dld_break is
1047 permanent.
1048 * gdbtk-cmds.c (gdb_get_breakpoint_info): Report a permanent
1049 breakpoint as enabled.
1050 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Provide default definition.
1051 (default_skip_permanent_breakpoint): New function.
1052 (resume): If we're trying to resume at a permanent breakpoint, use
1053 SKIP_PERMANENT_BREAKPOINT to step over it.
1054 * hppa-tdep.c (hppa_skip_permanent_breakpoint): New function.
1055 * config/pa/tm-hppa.h (hppa_skip_permanent_breakpoint): Declare.
1056 (SKIP_PERMANENT_BREAKPOINT): Define.
1057
10581999-09-14 Kevin Buettner <kevinb@cygnus.com>
1059
1060 * symtab.h, minsyms.c (find_stab_function_addr): Changed
1061 type of second parameter from partial_symtab * to char *.
1062 Fixed all callers.
1063 * minsyms.c (find_stab_function_addr): Look for minimal
1064 symbol without filename if filename based search fails.
1065 * dbxread.c (process_one_symbol): Call find_stab_function_addr()
1066 in place of inline code with identical functionality.
1067 * partial-stab.h (case N_FUN, descriptors 'F' and 'f'): Look
1068 up symbol's address from minimal symbol table when N_FUN
1069 address is missing. Also, make sure this value is used for
1070 calculating the value of the texthigh field.
1071
10721999-09-14 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1073
1074 * event-loop.c (create_file_handler): Increment the total number
1075 of file descriptors for the poll case, only if this is a new file
1076 desc.
1077
10781999-09-14 Eli Zaretskii <eliz@is.elta.co.il>
1079
1080 * go32-nat.c: misc minor cleanups and fixes missed in last patch.
1081
1082Tue Sep 14 12:37:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
1083
1084 * serial.h (SERIAL_PRINT_TTY_STATE): Add STREAM parameter.
1085 (union serial_ops): Update.
1086
1087 * ser-unix.c (hardwire_print_tty_state, ser-tcp.c
1088 (tcp_print_tty_state), ser-pipe.c (pipe_print_tty_state,
1089 ser-go32.c (dos_print_tty_state, ser-mac.c (mac_print_tty_state,
1090 ser-ocd.c (ocd_print_tty_state, ser-e7kpc.c
1091 (e7000pc_print_tty_state): Update.
1092 * inflow.c (child_terminal_info): Update.
1093 * serial.c (serial_print_tty_state): Update.
1094
1095Tue Sep 14 11:41:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
1096
1097 * serial.c, serial.h, ser-tcp.c, ser-unix.c, ser-pipe.c: Convert
1098 all functions to ISO-C.
1099 * serial.h, serial.c: Move all indirect macro function calls from
1100 serial.h into serial.c.
1101 (serial_drain_output, serial_flush_output, serial_flush_input,
1102 serial_raw, serial_get_tty_state, serial_set_tty_state,
1103 serial_print_tty_state, serial_noflush_set_tty_state,
1104 serial_setbaudrate, serial_setstopbits): New functions.
1105 (do_serial_close): Rename serial_close.
1106 (serial_close, serial_un_fdopen): New functions. Call
1107 do_serial_close.
1108
11091999-09-13 James Ingham <jingham@leda.cygnus.com>
1110
1111 * symtab.c (decode_line_1): Find the rightmost parenthesis in the
1112 expression, not the leftmost. This allows us to parse function
1113 declarations with embedded function prototypes.
1114
1115Mon Sep 13 18:39:31 1999 Jeffrey A Law (law@cygnus.com)
1116
1117 * pa64solib.c (pa64_sharedlibrary_info_command): Fix typos.
1118
11191999-09-13 Kevin Buettner <kevinb@cygnus.com>
1120
1121 * i386-tdep.c (i386_extract_return_value): ifdef'd so that
1122 non-linux targets will work again.
1123 (i386_do_registers_info, i386_print_register): Revert changes
1124 of 1999-09-03; these functions have been removed because they
1125 are Linux specific and break non-Linux builds. This functionality
1126 will be restored after FP support unification has been achieved.
1127 * i387-tdep.c (i387_print_register, void i387_float_info):
1128 Likewise.
1129 * config/i386/tm-linux.h (i387_float_info, FLOAT_INFO,
1130 DO_REGISTERS_INFO, i386_do_registers_info,
1131 i387_print_register): Likewise.
1132
11331999-09-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1134
1135 * event-top.c (call_readline): Change to accept gdb_client_data as
1136 param.
1137 (rl_callback_read_char_wrapper): New function to match what the
1138 event loop expects and what readline expects.
1139 (change_line_handler): Make call_readline point to
1140 rl_callback_read_char_wrapper, instead of rl_callback_read_char.
1141 (_initialize_event_loop): Ditto.
1142 (gdb_readline2): Change parameter to gdb_client_data.
1143 * event-top.h (call_readline, gdb_readline2): Change accordingly.
1144
1145 * event-loop.c (add_file_handler): Change 2nd par to
1146 handler_func*. No more need for casting.
1147 * event-loop.h (create_async_signal_handler): Change accordingly.
1148
1149 * inferior.h (fetch_inferior_event): Change parameter to void*.
1150 * infrun.c (fetch_inferior_event): Ditto.
1151
11521999-09-13 Stan Shebs <shebs@andros.cygnus.com>
1153
1154 * infrun.c (step_into_function): New function, broken out from the
1155 step_into_function label in handle_inferior_event.
1156 (handle_inferior_event): Change a goto into a function call.
1157
11581999-09-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1159
1160 * event-top.h: New file. All the exported vars and functions from
1161 event-top.c.
1162
1163 * event-loop.h (struct gdb_event, event_handler_func,
1164 file_handler, async_signal_handler, SELECT_MASK, fd_mask, NBBY,
1165 FD_SETSIZE, howmany, NFDBITS, MASK_SIZE): Move to event-loop.c.
1166 (struct prompts, PROMPT, PREFIX, SUFFIX, display_gdb_prompt,
1167 async_init_signals, set_async_editing_command,
1168 set_async_annotation_level, set_async_prompt, handle_stop_sig,
1169 handle_sigint, pop_prompt, push_prompt, gdb_readline2,
1170 mark_async_signal_handler_wrapper, async_request_quit,
1171 async_command_editing_p, exec_done_display_p,
1172 async_annotation_suffix, new_async_prompt, the_prompts,
1173 call_readline, input_handler, input_fd): Move to event-top.h.
1174 (All function prototypes): Don't use PARAMS anymore.
1175
1176 * event-loop.c: (struct gdb_event, event_handler_func,
1177 file_handler, async_signal_handler, SELECT_MASK, fd_mask, NBBY,
1178 FD_SETSIZE, howmany, NFDBITS, MASK_SIZE): Move to here from
1179 event-loop.h.
1180 Include event-top.h. Remove use of PARAMS. ANSIfy functions headers.
1181
1182 * event-top.c: Include event-top.h. Include "signals.h", not
1183 <signals.h>.
1184 Remove use of PARAMS. ANSIfy functions headers.
1185 (handle_stop_sig): move prototype to event-top.h.
1186
1187 * remote.c: Include event-top.h. Make it understand
1188 async_signal_handler type.
1189 * infrun.c: Include event-top.h.
1190 * mi-main.c: Ditto.
1191 * top.c Ditto.
1192 * utils.c: Ditto.
1193
cff3e48b
JM
1194Mon Sep 13 18:54:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
1195
1196 * gdbarch.sh: Describe each of the fields.
1197
1198Mon Sep 13 17:51:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
1199
1200 From 1999-09-12 Jim Blandy <jimb@cris.red-bean.com>:
1201 * gdbarch.sh (generating setters): Use sed to generate the proper
1202 indentation, not tr; tr's behavior is notoriously unportable.
1203
12041999-09-10 Jim Blandy <jimb@zwingli.cygnus.com>
1205
1206 * i387-tdep.c (print_387_control_bits): Don't print newline; the
1207 callers take care of that. (Thanks to H.J. Lu.)
1208
12091999-09-09 Stan Shebs <shebs@andros.cygnus.com>
1210
1211 * d10v-tdep.c (DMEM_START): Set to 0x2000000.
1212 (itrace, iuntrace, info itrace, itdisassemble, itracedisplay,
1213 itracesource): Add 'i' prefix to commands, so as not to conflict
1214 with generic trace commands.
1215
12161999-09-09 Fernando Nasser <fnasser@totem.to.cygnus.com>
1217
1218 * remote.c (_initialize_remote): Fix the specification of the
1219 "remote" prefix to set and show commands.
1220
12211999-09-09 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1222
1223 * event-loop.c (create_file_event): New function. Creates a gdb
1224 event for a given fd.
1225 (gdb_wait_for_event): Use create_file_event().
1226 * event-loop.h: export create_file_event().
1227
1228 * event-loop.c (delete_file_handler): Move the clearing of the
1229 mask to later on in the function, because we need it in order to
1230 deactivate the correct fd when using select().
1231
1232 * m32r-tdep.c (decode_prologue): Fix typo. Instructions starting
1233 with 0xf are branch instructions.
1234 (m32r_scan_prologue): Initialize framesize to 0.
1235
d4f3574e
SS
12361999-09-07 J.T. Conklin <jtc@redback.com>
1237
1238 * i386-stub.c (exceptionHook, oldExceptionHook): Removed.
1239 (handle_exception): Removed #if'd out exception hook code.
1240
1241 * i386-stub.c, m68k-stub.c (error): Removed unused variable.
1242
1243 * i386-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
1244 sparcl-stub.c, sparclet-stub.c (remcomInBuffer, remcomOutBuffer):
1245 Make static.
1246
1247Tue Sep 7 14:06:22 1999 Kevin Buettner <kevinb@cygnus.com>
1248
1249 * config/i386/tm-linux.h (SOFUN_ADDRESS_MAYBE_MISSING):
1250 Define.
1251
1252Tue Sep 7 08:18:01 1999 Kevin Buettner <kevinb@cygnus.com>
1253
1254 From Jim Blandy <jimb@cygnus.com>:
1255
1256 Step into calls to functions in shared libraries properly. See
1257 the comments for SKIP_SOLIB_RESOLVER atop infrun.c for details.
1258 * infrun.c (SKIP_SOLIB_RESOLVER): New macro.
1259
12601999-09-05 Fred Fish <fnf@cygnus.com>
1261
1262 * elfread.c (elf_symtab_read): Remove separately passed bfd
1263 pointer and offset. Pick up bfd pointer from objfile, and
1264 get offset from objfile's section_offsets.
1265
1266Fri Sep 3 22:29:39 1999 Kevin Buettner <kevinb@cygnus.com>
1267
1268 * config/i386/tm-linux.h (REGISTER_NAMES): Changed register
1269 named "foo" to "fopo" which more accurately describes the FPU
1270 Operand Pointer Offset. The real reason for this change, of
1271 course, is that many programmers use $foo as a convenience
1272 variable and are likely to be unpleasantly surprised to find
1273 that they're unwittingly changing the state of their ia32 FPU.
1274
12751999-09-03 Jason Molenda (jsm@bugshack.cygnus.com)
1276
1277 * monitor.c (monitor_supply_register): Stop scanning val string
1278 if a newline is encountered.
1279
12801999-09-03 Jason Molenda (jsm@bugshack.cygnus.com)
1281
1282 monitor.c (TARGET_BUF_SIZE): New macro, defined to 2048.
1283 (monitor_expect_regexp, monitor_wait, monitor_dump_reg_block,
1284 monitor_dump_reg_block): Dump hard-coded constants in favor
1285 of TARGET_BUF_SIZE.
1286
1287 (readchar): Re-enable output of characters read from monitor when
1288 remotedebug is set.
1289
1290 (monitor_supply_register): Use ULONGEST to hold value.
1291 Replace strtoul() call with hand-coded loop to handle values
1292 larger than 'long'.
1293
1294 (monitor_store_register): Use ULONGEST to hold value.
1295
1296Fri Sep 3 00:47:44 1999 Kevin Buettner <kevinb@cygnus.com>
1297
1298 [Merged linux/x86 floating point code from Bill Metzenthen,
cff3e48b 1299 Jim Blandy, Anthony Green, H. J. Lu, and possibly others. The
d4f3574e
SS
1300 following remarks are Jim Blandy's.]
1301
1302 * findvar.c (extract_floating): Call TARGET_EXTRACT_FLOATING, if
1303 #defined.
1304 (store_floating): Call TARGET_STORE_FLOATING, if #defined.
1305
1306 * i386-tdep.c (i386_print_register, i386_do_registers_info): New
1307 functions.
1308 (i386_extract_return_value): GNU/Linux returns floating point
1309 values in a floating point register too.
1310 (set_disassembly_flavor): Add prototype.
1311 (i386_extract_return_value): Use FPDATA_REGNUM, not FP0_REGNUM (
1312 which wasn't the first FP data register).
1313 (i386_do_registers_info): Use FPSTART_REGNUM and FPEND_REGNUM as
1314 the limits of the FPU-related registers.
1315 (i386_extract_return_value): Tell GDB how to find return values
1316 larger than four bytes. (Thanks to Paul N. Hilfinger for the bug
1317 report.)
1318
1319 * i387-tdep.c (print_387_control_word): Break out bit-splitting into...
1320 (print_387_control_bits): New function.
1321 (print_387_status_word): Break out bit-splitting into...
1322 (print_387_status_bits): New function.
1323 (i387_print_register, i387_float_info, i387_hex_float_input): New
1324 functions.
1325 (i387_extract_floating, i387_store_floating): New functions.
1326
1327 * valprint.c (print_floating): Use macro TARGET_ANALYZE_FLOATING,
1328 if it's #defined. Tolerate values of `nonnegative' other than
1329 zero and one.
1330
1331 * i386-linux-nat.c: New file.
1332 * Makefile.in (ALLDEPFILES): Mention i386-linux-nat.c.
1333 (i386-linux-nat.o): New rule, listing dependencies.
1334 * config/i386/linux.mh (NATDEPFILES): Use i386-linux-nat.o, not
1335 the plain i386v4-nat.o.
1336 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
1337 * config/i386/xm-linux.h: Define HOST_I386.
1338
1339 * config/i386/tm-linux.h (FP0_REGNUM): Replaced by...
1340 (FPSTART_REGNUM, FPCONTROL_REGNUM, FPSTATUS_REGNUM, FPTAG_REGNUM,
1341 FPDATA_REGNUM, FPEND_REGNUM): New definitions.
1342 (REGISTER_BYTES): Changed accordingly.
1343 (SKIP_SOLIB_RESOLVER): #define this.
1344 (i386_linux_skip_solib_resolver): New declaration.
1345 (i387_float_info): Added extern decl for this function.
1346 (TARGET_EXTRACT_FLOATING, TARGET_STORE_FLOATING,
1347 TARGET_ANALYZE_FLOATING): Define.
1348 (i387_extract_floating, i387_store_floating): New extern decls.
1349 (I386_GNULINUX_TARGET): Define.
1350 (NUM_REGS, NUM_FREGS, REGISTER_NAMES, FP0_REGNUM, FPDATA_REGNUM,
1351 FPENV_BYTES, FPREG_RAW_SIZE, FPREG_BYTES, REGISTER_BYTES,
1352 REGISTER_BYTE, REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE,
1353 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
1354 TARGET_LONG_DOUBLE_BIT, FLOAT_INFO, DO_REGISTERS_INFO): New
1355 definitions, perhaps overriding those inherited from
1356 config/i386/tm-i386.h.
1357 (i386_do_registers_info, i387_print_register, double_to_i387,
1358 i387_to_double): New declarations.
1359 (LD_I387): Define iff both the host and target are using i387
1360 FPU's.
1361 (HEX_FLOAT_INPUT, REGISTER_CONVERTIBLE,
1362 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW,
1363 REGISTER_VIRTUAL_TYPE): Define these if LD_I387 is defined.
1364
1365 * source.c (list_command): List the right number of source lines,
1366 even if we're at the top of the file.
1367
13681999-09-02 Stan Shebs <shebs@andros.cygnus.com>
1369
1370 * infrun.c (step_over_function): New function, broken out from the
1371 step_over_function label in handle_inferior_event.
1372 (handle_inferior_event): Change a goto into a function call.
1373
1374Thu Sep 2 18:26:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
1375
1376 * Makefile.in (GDB_WERROR_CFLAGS, GBB_WARN_CFLAGS): Define.
1377 (INTERNAL_CFLAGS): Update
1378 * configure.in (WERROR_CFLAGS, WARN_CFLAGS): Sync with
1379 ../sim/common/aclocal.m4.
1380 * configure: Re-generate.
1381
1382Thu Sep 2 00:27:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
1383
1384 * Makefile.in (z8k-tdep.o): For moment, don't try to compile with
1385 -Werror. See Makefile.in.
1386 * z8k-tdep.c (z8k_set_pointer_size): Document problem.
1387
1388 * config/z8k/tm-z8k.h (z8k_print_register_hook, z8k_frame_chain,
1389 z8k_saved_pc_after_call, z8k_frame_saved_pc,
1390 z8k_set_pointer_size): Declare.
1391 (z8k_skip_prologue): Fix typo. Was mz8k_skip_prologue.
1392 (FRAME_CHAIN, PRINT_REGISTER_HOOK, FRAME_SAVED_PC,
1393 SAVED_PC_AFTER_CALL): Update.
1394 * z8k-tdep.c (z8k_print_register_hook): Rename
1395 z8k_print_register_hook.
1396 (z8k_frame_chain): Rename frame_chain.
1397 (z8k_saved_pc_after_call): Rename saved_pc_after_call.
1398 (z8k_frame_saved_pc): Rename frame_saved_pc.
1399 (z8k_print_register_hook): Fix printf.
1400 (read_memory_pointer): Add declaration.
1401 ("value.h"): Include.
1402 * Makefile.in (z8k-tdep.o): Add dependency on value.h.
1403
1404 * config/sparc/tm-sparc.h (PRINT_EXTRA_FRAME_INFO): Fix
1405 printf. calls
1406 * Makefile.in (remote-e7000.o): For moment, don't try to compile
1407 with -Werror. See Makefile.in.
1408 * sh-tdep.c (sh_show_regs): Fix printf calls.
1409 * xcoffsolib.c (solib_info): Fix Printf calls.
1410 * dink32-rom.c: #include "symfile.h" for generic_load and
1411 "inferior.h" for write_pc.
1412 * Makefile.in (dink32-rom.o): Update.
1413
1414 * config/mn10300/tm-mn10300.h (mn10300_store_struct_return),
1415 config/mn10200/tm-mn10200.h (mn10200_store_struct_return): Add
1416 declarations.
1417
1418Tue Aug 31 00:48:27 1999 Andrew Cagney <cagney@amy.cygnus.com>
1419
1420 * config/mips/tm-tx49el.h (REGISTER_SIM_REGNO): Define.
1421
1422 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
1423 Pass REGISTER_SIM_REGNO converted register number to the
1424 simulator.
1425
14261999-09-01 Tom Tromey <tromey@cygnus.com>
1427
1428 * config/i386/nm-linux.h (PREPARE_TO_PROCEED): Added argument.
1429
14301999-09-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1431
1432 * values.c (value_virtual_fn_field): Remove unused var(s).
1433 * thread.c (prune_threads): Ditto.
1434 * symtab.c (lookup_transparent_type): Ditto.
1435 (decode_line_1): Ditto.
1436 (make_symbol_overload_list): Ditto.
1437 * rs6000-tdep.c (frame_get_saved_regs): Ditto.
1438 (set_processor): Ditto.
1439 * remote.c (remote_remove_breakpoint): Ditto.
1440 (remote_query): Ditto.
1441 (readtty): Ditto.
1442 * remote-sds.c (sds_fetch_registers): Ditto.
1443 (putmessage): Ditto.
1444 * ppcbug-rom.c (ppcbug_supply_register): Ditto.
1445 (ppcbug_open): Remove unused prototype.
1446 * parse.c (parse_nested_classes_for_hpacc): Remove unused var(s).
1447 * ocd.c (ocd_open): Ditto.
1448 (ocd_get_packet): Ditto.
1449 * monitor.c (monitor_error): Ditto.
1450 (monitor_wait_srec_ack): Ditto.
1451 * main.c (main): Ditto.
1452 * gdbtypes.c (count_virtual_fns): Ditto.
1453 * exec.c (exec_file_command): Ditto.
1454
1455 * event-top.c: Include handle_sigwinch() function prototype within
1456 appropriate #ifdef.
1457
1458 * eval.c (evaluate_subexp_standard): Remove unused variable.
1459 (evaluate_subexp_standard): Remove unused variables.
1460 * dink32-rom.c (dink32_supply_register): Remove unused variable.
1461 * dbxread.c (elfstab_build_psymtabs): Ditto.
1462 * command.c (do_setshow_command): Ditto.
1463 * breakpoint.c (solib_load_unload_1): Remove unused variables 'i'
1464 and 'sal'.
1465 (until_break_command): Remove unused variables 'arg1' and 'arg2'.
1466 (create_exception_catchpoint): Remove unused variable 'i'.
1467 * ax-gdb.c (gen_sub): Remove unused variable.
1468 (_initialize_ax_gdb): Ditto.
1469
1470 * ser-pipe.c (pipe_readchar): If timeout is expired return
1471 SERIAL_TIMEOUT.
1472 * ser-tcp.c (tcp_readchar): If timeout is expired return
1473 SERIAL_TIMEOUT.
1474
1475Wed Sep 1 15:07:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
1476
1477 * version.h: New file.
1478 * Makefile.in (version_h): Define.
1479 (version.o): Add target.
1480
1481 * remote-array.c: #include "version.h".
1482 (version): Delete extern declarations.
1483 * Makefile.in (remote-array.o): Add dependency on version.h.
1484
1485 * top.c: #include "version.h".
1486 (version, host_name, target_name): Delete extern declarations.
1487 * Makefile.in (top.o): Add dependency on version.h.
1488
1489 * remote.c (remote_remove_watchpoint, remote_insert_watchpoint),
1490 remote-array.c (array_open), remote-mips.c (send_srec),
1491 dve3900-rom.c (store_bitmapped_register): Fix Printfs.
1492
1493 * mips-tdep.c (mips_print_extra_frame_info, print_unpack),
1494 m32r-rom.c (m32r_load_section), m32r-tdep.c (m32r_frame_chain),
1495 dsrec.c (load_srec): Fix printf problems.
1496
1497Wed Sep 1 13:16:49 1999 Andrew Cagney <cagney@b1.cygnus.com>
1498
1499 * Makefile.in (monitor.o): For moment, don't try to compile with
1500 -Werror. monitor.c has -Wformat problems. See Makefile.in for
1501 more info.
1502
1503Tue Aug 31 21:23:38 1999 Jeffrey A Law (law@cygnus.com)
1504
1505 * hppa-tdep.c (prologue_inst_adjust_sp): Correct offset computation
1506 for doubleword store instructions.
1507 (hppa_frame_find_saved_regs): Similarly.
1508
1509Wed Sep 1 09:22:50 1999 Andrew Cagney <cagney@b1.cygnus.com>
1510
1511 * d30v-tdep.c (d30v_print_register):
1512 (tdisassemble_command):
1513
1514 * d10v-tdep.c (show_regs, trace_info, tdisassemble_command): Fix
1515 printf problems.
1516
1517 * remote-sim.c (dump_mem), remote-rdi.c (arm_rdi_create_inferior):
1518 Fix printf arguments.
1519
1520 * remote-mips.c, mips-tdep.c: Move declaration of
1521 ``mips_set_processor_type_command'' from here.
1522 * config/mips/tm-mips.h: To here.
1523 * remote-array.c: #include "inferior.h".
1524 * config/mips/tm-embed.h (remote_mips_stopped_by_watchpoint): Add
1525 declaration.
1526 * remote-mips.c (remote_mips_stopped_by_watchpoint): Define using
1527 ISO-C prototype.
1528 (monitor_supports_breakpoints): Integer variable.
1529
1530 * m32r-rom.c: #include "inferior.h" and <ctype.h>
1531 * config/m32r/tm-m32r.h (m32r_write_sp): Add declaration.
1532
1533 * config/i960/tm-i960.h (leafproc_return, i960_pop_frame): Add
1534 declaration.
1535 (POP_FRAME): Call i960_pop_frame.
1536 * i960-tdep.c (i960_pop_frame): Rename pop_frame.
1537 * mon960-rom.c: #include "inferior.h" for declaration of write_pc.
1538
15391999-08-15 Fred Fish <fnf@cygnus.com>
1540
1541 * objfiles.c (objfile_relocate): Use SIZEOF_SECTION_OFFSETS when
1542 allocating section_offsets array.
1543 * remote-os9k.c (rombug_wait): Ditto.
1544 * remote-vx.c (vx_add_symbols): Ditto.
1545 * remote.c (get_offsets): Ditto.
1546 (remote_cisco_objfile_relocate): Ditto.
1547 * rs6000-nat.c (vmap_symtab): Ditto.
1548
1549 * dstread.c (dst_symfile_offsets): Set section_offsets directly instead
1550 of returning a pointer to section offsets.
1551 * somread.c (som_symfile_offsets): Ditto.
1552 * xcoffread.c (xcoff_symfile_offsets): Ditto.
1553 * symfile.c (default_symfile_offsets): Ditto.
1554 (syms_from_objfile): The sym_offsets function has already set section
1555 offsets and no longer returns a value.
1556
1557 * xcoffread.c (scan_xcoff_symtab): Eliminate section_offsets passed
1558 separate from objfile.
1559 (xcoff_start_psymtab): Ditto.
1560 (START_PSYMTAB): Ditto.
1561 * os9kread.c (read_minimal_symbols): Ditto.
1562 (read_os9k_psymtab): Ditto.
1563 (os9k_start_psymtab): Ditto.
1564 (record_minimal_symbol): Ditto.
1565 * dbxread.c (START_PSYMTAB): Ditto.
1566 (start_psymtab): Ditto.
1567 * mdebugread.c (START_PSYMTAB): Ditto.
1568 (elfmdebug_build_psymtabs): Ditto.
1569 (mdebug_build_psymtabs): Ditto.
1570 (parse_partial_symbols): Ditto.
1571 (new_psymtab): Ditto.
1572 * dwarfread.c (dwarf_build_psymtabs): Ditto.
1573 * partial-stab.h (START_PSYMTAB): Ditto.
1574 * stabsread.h (start_psymtab): Ditto.
1575 * dwarf2read.c (dwarf2_build_psymtabs): Ditto.
1576 (dwarf2_build_psymtabs_easy): Ditto.
1577 (dwarf2_build_psymtabs_hard): Ditto.
1578 * hp-psymtab-read.c (hpread_build_psymtabs): Ditto.
1579 (hpread_quick_traverse): Ditto.
1580 (hpread_start_psymtab): Ditto.
1581 (scan_procs): Ditto.
1582 * hpread.c (hpread_build_psymtabs): Ditto.
1583 * symfile.h (dwarf2_build_psymtabs): Ditto.
1584
1585 * dbxread.c (read_dbx_symtab): Use ANOFFSET to access section
1586 offsets.
d4f3574e
SS
1587 * coffread.c (enter_linenos): Pass objfile instead of section
1588 offsets.
d4f3574e
SS
1589
1590 * dbxread.c (dbx_symfile_read): No need to explicitly pass
1591 text addr and size. Let read_dbx_symtab find them.
1592 (read_dbx_symtab): Get text addr and size from objfile.
1593 (dbx_symfile_read): Remove dead code (call to strlen);
1594
15951999-08-31 Michael Snyder <msnyder@cleaver.cygnus.com>
1596
1597 * Makefile.in: add rule for sol-thread.o.
1598 Add rule for linux-thread.o.
1599
16001999-08-13 Jim Kingdon <kingdon@redhat.com>
1601
1602 Threads code from gdb 4.18-codefusion-990706
cff3e48b 1603 [Thanks to Eric Paire, H. J. Lu, Jim Blandy and others]
d4f3574e
SS
1604 * infrun.c (signal_stop_update, signal_print_update,
1605 signal_pass_update): new functions.
1606 * inferior.h: new prototypes for above functions.
1607 * target.h (enum strata): add thread stratum.
1608 * linux-thread.c: new file. Support for debugging linux threads.
1609 * config/i386/nm-linux.h: several new prototypes for above.
1610 * config/i386/linux.mh: add linux-thread.o to NATDEPFILES.
1611
1612 More threads code from the same place:
1613 * config/i386/tm-linux.h (REALTIME_LO, REALTIME_HI): Add
1614 definitions.
1615 * target.h (enum target_signal): Add TARGET_SIGNAL_REALTIME_32.
1616 * target.c (signals, target_signal_from_host,
1617 target_signal_to_host): Add clauses for
1618 TARGET_SIGNAL_REALTIME_32.
1619
16201999-08-31 Neil Schellenberger <neil.schellenberger@crosskeys.com>
1621
1622 * sol-thread.c (sol_thread_detach): strip thread-id out of
1623 inferior_pid, so that procfs_detach can't choke on it.
1624
16251999-08-31 J.T. Conklin <jtc@redback.com>
1626
1627 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
1628 sparcl-stub.c, sparclet-stub.c (getpacket): Remove 'buffer' arg,
1629 define it as a pointer to &remcomInBuffer[0].
1630 (handle_exception): Update.
1631
1632 * sparc-stub.c, sparcl-stub.c, sparclet-stub.c (handle_exception):
1633 Removed #ifdef'd out code which implements the non-standard 'b'
1634 (set baud rate) command.
1635
16361999-08-31 Stan Shebs <shebs@andros.cygnus.com>
1637
1638 * infrun.c (keep_going): New function, broken out from the
1639 keep_going label in handle_inferior_event.
1640 (handle_inferior_event): Change more gotos into function calls.
1641
1642Tue Aug 31 02:29:27 1999 Jeffrey A Law (law@cygnus.com)
1643
1644 * hppa-tdep.c (read_unwind_info): Handle multiple unwind sections.
1645
1646Tue Aug 31 15:28:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
1647
1648 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Fix printf
1649 format argument.
1650 * alpha-tdep.c (heuristic_proc_start): Ditto.
1651
1652 From Stan Shebs <shebs@andros.cygnus.com>:
1653 * defs.h (strlen_paddr): Fix prototype - add void argument list.
1654
1655Tue Aug 31 14:02:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
1656
1657 * defs.h (gdb_print_host_address), utils.c
1658 (gdb_print_host_address): Rename gdb_print_address.
1659
1660 * expprint.c, gdbtypes.c, symmisc.c: Update.
1661
1662 *expprint.c: Use gdb_print_host_address when displaying native
1663 pointers.
1664
1665Sat Aug 28 14:23:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
1666
1667 * scm-valprint.c (scm_ipruk), jv-valprint.c (java_value_print),
1668 cp-valprint.c (cp_print_class_member), exec.c (exec_files_info),
1669 remote.c (putpkt_binary, compare_sections_command,
1670 remote_cisco_section_offsets), dcache.c (dcache_info),
1671 breakpoint.c (break_at_finish_at_depth_command_1,
1672 break_at_finish_command_1), symfile.c (generic_load),
1673 (report_transfer_performance), top.c (get_prompt_1), f-valprint.c
1674 (f_val_print), maint.c (maintenance_translate_address): Fix printf
1675 -Wformat warnings. Use paddr, paddr_nz, sizeof_paddr, paddr_u and
1676 paddr_d to print addresses. Change ``d'' to ``ld''.
1677
1678 * utils.c (strlen_paddr): New function.
1679
1680Tue Aug 31 01:36:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
1681
1682 * config/d30v/tm-d30v.h (d30v_frame_chain,
1683 d30v_init_frame_pc): Add declaration.
1684
1685 * arc-tdep.c (arc_pop_frame): Rename pop_frame.
1686 (arc_push_dummy_frame): Rename push_dummy_frame.
1687 (arc_set_cpu_type_command): Add declaration.
1688
1689 * config/arc/tm-arc.h (arc_pop_frame, arc_push_dummy_frame): Add
1690 declaration.
1691
104c1213
JM
16921999-08-30 Stan Shebs <shebs@andros.cygnus.com>
1693
1694 * infrun.c (prepare_to_wait): New function, broken out from the
1695 wfi_continue label in handle_inferior_event.
1696 (handle_inferior_event): Change more gotos into function calls.
1697
16981999-08-30 Michael Snyder <msnyder@cleaver.cygnus.com>
1699
1700 * tracepoint.c: -Wall warning cleanup.
1701 (parse_and_eval_memrange): remove (unused).
1702 (output_command, args_info, locals_info, registers_info): add decls.
1703 (getpkt, putpkt, remote_console_output): add decls.
1704 (isalnum, isspace): cast arg to avoid warning.
1705 (printf, fprintf, sprintf): use [fs]printf_vma for printing addrs.
1706
1707Mon Aug 30 21:47:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
1708
1709 * d10v-tdep.c: #include "language.h".
1710
1711Mon Aug 30 20:38:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
1712
1713 * configure.in (AC_CHECK_HEADERS): Check for <time.h>.
1714 * configure, acconfig.in: Re-generate.
1715
1716 * remote-rdp.c: #include <time.h>
1717
1718 * config/arm/tm-arm.h (arm_float_info): Add declaration.
1719
1720 * arm-tdep.c (convert_from_extended, convert_to_extended): Change
1721 double ptr arg to void ptr arg.
1722
1723 * config/arm/tm-arm.h (arm_frameless_function_invocation): Add
1724 declaration.
1725 (arm_frame_find_saved_regs): Rename frame_find_saved_regs.
1726 (convert_from_extended, convert_to_extended): Add declaration.
1727
1728Mon Aug 30 19:05:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
1729
1730 * configure.in (WERR_CFLAGS): Separate the -Werror flag.
1731 * configure: Re-generate.
1732
1733 * Makefile.in (INTERNAL_CFLAGS): Re-define using
1734 INTERNAL_WARN_CFLAGS.
1735 (INTERNAL_WARN_CFLAGS): Define. Leave off WERR_CFLAGS.
1736 (tracepoint.o): Add explicit rule.
1737 (WERR_CFLAGS): Add definition.
1738
1739Mon Aug 30 17:52:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
1740
1741 * utils.c: #include "event-loop.h" for declaration of
1742 async_request_quit.
1743 * Makefile.in (utils.o): Add dependency on event-loop.h.
1744
1745 * event-top.c (mark_async_signal_handler_wrapper,
1746 async_request_quit): Move declaration from here.
1747 * event-loop.h: To here.
1748
1749 * defs.h: Add declaration of exec.c:exec_set_section_offsets.
1750
1751 * event-top.c: #include "gdbcmd.h" which includes "command.h" and
1752 hence expose declaration of function dont_repeat.
1753
1754 * top.c (ISATTY), tracepoint.c (ISATTY), utils.c (ISATTY),
1755 event-top.c (ISATTY): Move definitions from here.
1756 * defs.h (ISATTY): To here. #include <unistd.h>.
1757
1758 * sol-thread.c, solib.c, source.c, sparcl-tdep.c, tracepoint.c,
1759 utils.c, win32-nat.c, wince.c, top.c, symfile.c, ser-unix.c,
1760 ser-tcp.c, procfs.c, maint.c, infttrace.c, hppa-tdep.c,
1761 ser-pipe.c, remote-rdp.c, main.c, inftarg.c, inflow.c,
1762 hpux-thread.c, hp-psymtab-read.c, go32-nat.c, fork-child.c,
1763 corelow.c, command.c: Do not #include <unistd.h>, moved to defs.h.
1764
1765Mon Aug 30 15:14:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
1766
1767 * defs.h (struct tui_stream, enum streamtype): Move from here.
1768 * utils.c: To here.
1769
1770 * main.c (tui_file_fputs): Move from here.
1771 * utils.c: To here.
1772
1773Sun Aug 29 10:03:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
1774
1775 * gdb-events.h, gdb-events.c, gdb-events.sh: New files.
1776
17771999-08-27 Michael Snyder <msnyder@cleaver.cygnus.com>
1778
1779 * solib.c (open_symbol_file_object): new function.
1780 Called when attaching to a new process, if there is no loaded
1781 symbol file. Attempts to locate the executable file for the
1782 attached process and load symbols from it.
1783 (solib_add): Call open_symbol_file_object if attaching to a
1784 new process and no open symbol file.
1785
17861999-08-27 Jason Molenda (jsm@bugshack.cygnus.com)
1787
1788 * config/i386/tm-sun386.h (GDB_TARGET_IS_SUN386): Definition
1789 removed--no longer checked anywhere in gdb.
1790
17911999-08-27 Stan Shebs <shebs@andros.cygnus.com>
1792
1793 * infrun.c (stop_stepping): New function, broken out from
1794 stop_stepping label in handle_inferior_event.
1795 (handle_inferior_event): Change gotos into function calls.
1796
1797Fri Aug 27 20:13:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
1798
1799 * defs.h (LONGEST): Move definition to earlier in file - to just
1800 after BFD.
1801 (paddr_u, paddr_d): Declare.
1802 * utils.c (decimal2str): New function.
1803 (paddr_u, paddr_d): Define.
1804
1805 * remote.c (remote_cisco_section_offsets,
1806 compare_sections_command): Fix XprintfX arguments. Use paddr...
1807 (putpkt_binary): Fix XprintfX arguments.
1808
1809Tue Aug 24 21:30:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
1810
1811 * arm-tdep.c (arm_init_extra_frame_info): Add braces. Recommended
1812 by gcc -Wparentheses.
1813
18141999-08-26 Stan Shebs <shebs@andros.cygnus.com>
1815
1816 * infrun.c (check_sigtramp2): New function, broken out from
1817 check_sigtramp2 label in handle_inferior_event.
1818 (handle_inferior_event): Change gotos into function calls.
1819
1820 Declare Tahoe configuration obsolete.
1821 * configure.host, configure.tgt: Comment out Tahoe configs.
1822 * Makefile.in: Comment out Tahoe-related action.
1823 * tahoe-tdep.c, config/tahoe/*: Comment out.
1824 * NEWS: Mention obsolete status.
1825
18261999-08-26 J.T. Conklin <jtc@redback.com>
1827
1828 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sh-stub.c,
1829 sparc-stub, sparcl-stub.c sparclet-stub.c (getpacket): If '$',
1830 the packet start character is received in the 'middle' of a
1831 packet, assume that packet end character has been lost and
1832 start a new packet.
1833
1834 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
1835 sparcl-stub.c sparclet-stub.c (getpacket): Changed to return ptr
1836 to first character of input buffer. Removed & 0x7f masks.
1837 (handle_exception): Don't access remcomInBuffer directly.
1838
18391999-08-25 Stan Shebs <shebs@andros.cygnus.com>
1840
1841 * breakpoint.c (disable_breakpoints_in_shlibs): Only disable
1842 enabled breakpoints.
1843
1844Tue Aug 24 14:59:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
1845
1846 * tracepoint.c, remote.c, pa64solib.h, value.h, somsolib.h,
1847 solib.h, scm-lang.h, language.h, inferior.h, defs.h, coff-solib.h,
1848 ch-lang.h, breakpoint.h, annotate.h: Remove #if __STDC__ wrapping
1849 struct declarations.
1850
1851 * config/sparc/nm-sun4sol2.h, config/mn10300/tm-mn10300.h,
1852 config/mn10200/tm-mn10200.h, config/i386/tm-i386.h,
1853 config/i386/tm-i386v.h, config/i386/nm-i386sol2.h,
1854 config/pa/nm-hppah.h, config/rs6000/nm-rs6000.h,
1855 config/sparc/tm-sp64.h, config/v850/tm-v850.h,
1856 config/tic80/tm-tic80.h, config/sparc/tm-sparc.h,
1857 config/sh/tm-sh.h, config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
1858 config/mips/tm-mips.h, config/m68k/tm-m68k.h,
1859 config/m32r/tm-m32r.h, config/i960/tm-mon960.h,
1860 config/fr30/tm-fr30.h, config/h8300/tm-h8300.h,
1861 config/arm/tm-arm.h, config/alpha/tm-alpha.h,
1862 config/a29k/tm-a29k.h: Ditto.
1863
1864Wed Aug 25 10:45:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
1865
1866 * Makefile.in (gdb$(EXEEXT)): Add dependency on TDEPLIBS.
1867
1868 * config/arm/arm.mt (TDEPLIBS): Define. Move libangsd.a to here.
1869 (TDEPFILES): From here.
1870
18711999-08-24 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1872
1873 * top.c (init_main): Add new set/show command exec-done-display,
1874 default value is off.
1875 * event-loop.h: Export exec_done_display_p.
1876 * event-top.c: New variable exec_done_display_p.
1877 * infrun.c (complete_execution): Print completion message if
1878 corresponding flag is set.
1879
1880 * top.c (DEFAULT_PROMPT): Add space after "(gdb)" at end of prompt.
1881
1882 From: J.T. Conklin <jtc@redback.com>
1883 * top.c (DEFAULT_PROMPT): Set to "(gdb)" if not already defined.
1884 (init_main): Always use DEFAULT_PROMPT.
1885
1886Tue Aug 24 03:23:31 1999 Jeffrey A Law (law@cygnus.com)
1887
1888 * hppa-tdep.c: Remove useless "purecov: deadcode" comments.
1889 (hppa_use_struct_convention): Update for PA64.
1890 (hppa_frame_saved_pc): Properly extract the saved PC in a call
1891 dummy frame.
1892 (in_solib_call_trampoline): Return nonzero if we are in a function
1893 called ".stub".
1894 (prologue_inst_adjust_sp): Handle std,ma.
1895 (skip_prologue_hard_way): Handle more PA2.0/PA64 insns.
1896 (hppa_frame_find_saved_regs): Similarly. Handle indirect save of
1897 %r3 into the stack.
1898
1899 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Define.
1900 (CALL_DUMMY_BREAKPOINT_OFFSET): Define.
1901
1902Tue Aug 24 14:59:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
1903
1904 * Makefile.in (gdb$(EXEEXT)): Add dependency on main.o that was
1905 lost when libgdb.a was added.
1906
1907Tue Aug 24 14:26:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
1908
1909 * gdbarch.c, gdbarch.h: Convert to pure ISO-C.
1910
1911 * gdbarch.sh: New file.
1912 * gdbarch.c, gdbarch.h: Add note describing gdbarch.sh
1913
1914Mon Aug 23 19:36:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
1915
1916 * Makefile.in (libgdb.a): New target.
1917 (gdb$(EXEEXT)): Add dependency on libgdb.a.
1918 (libgdb-files, LIBGDB_OBS, libgdb, LIBGDBDEPS, LIBGDBFILES): Delete.
1919
53a5351d
JM
1920Mon Aug 23 10:16:32 1999 Jeffrey A Law (law@cygnus.com)
1921
104c1213
JM
1922 * infttrate.c (child_pid_to_exec_file): Find the correct base
1923 of the stack for PA64.
1924
53a5351d
JM
1925 * pa64solib.c: Fix some minor whitespace problems.
1926 (bfd_lookup_symbol): New function.
1927 (pa64_solib_create_inferior_hook): Find the address __dld_break
1928 in the dynamic linker. Try to set a shlib event breakpoint in
1929 that function.
1930 (add_to_solist): Do not add the same shared library to the shlib
1931 list more than once.
1932
1933Sun Aug 22 14:49:40 1999 Andrew Cagney <cagney@b1.cygnus.com>
1934
1935 * value.h (enum lval_type): Move declaration from here.
1936 * defs.h (enum lval_type): To here.
1937 * frame.h, gdbarch.h: Delete incomplete declaration of ``enum
1938 lval_type''.
1939
19401999-08-20 Michael Snyder <msnyder@cleaver.cygnus.com>
1941
1942 * breakpoint.c (can_use_hardware_watchpoint): reject expressions
1943 that refer to registers or register variables.
1944
1945Fri Aug 20 10:53:38 1999 Jeffrey A Law (law@cygnus.com)
1946
1947 * hppa-tdep.c (hppa_fix_call_dummy): Provide PA2.0W aware code.
1948
1949 * pa64solib.c pa64solib.h: New files.
1950
1951 * config/pa/hppa64.mt: Delete commented out code that is and
1952 never will be appropriate for this target.
1953 * config/pa/hpux11w.mt (TDEPFILES): Remove SOM references. Also
1954 remove pa64solib.o.
1955 * config/pa/hpux11w.mh (NATDEPFILES): Remove SOM references.
1956
1957 * configure.host; Use "hpux11w" and "hpux11" instead of
1958 "hpux1100w" and "hpux1100" respectively
1959 * config/pa/hpux11w.mh: Renamed from hpux1100w.mh.
1960 * config/pa/hpux11w.mt, config/pa/hpux11.mh: Likewise.
1961 * config/pa/hpux11.mt: Likewise.
1962
19631999-08-19 Michael Snyder <msnyder@cleaver.cygnus.com>
1964
1965 * breakpoint.h (target_hw_bp_type): new enum.
1966 * breakpoint.c (insert_breakpoints): use enum instead of consts.
1967 (remove_breakpoint): use enum instead of consts.
104c1213 1968 (throughout): use "warning" instead of "fprintf(stderr, ..."
53a5351d
JM
1969 [Also clean up a bunch of excessively long lines.]
1970
19711999-08-19 J.T. Conklin <jtc@redback.com>
1972
1973 * i386-stub.c (waitabit): Removed.
1974 (breakpoint): Update.
1975
1976 * i386-stub.c, m32r-stub.c, sparc-stub.c, sparcl-stub.c,
1977 sparclet-stub.c (set_debug_traps): Don't send gratuitous ACK.
1978
1979 * m68k-stub.c (putpacket): Restore code so that packets are sent
1980 until an ACK is received.
1981
19821999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
1983
1984 * breakpoint.c (bpstat_stop_status): Accept triggered addresses
1985 anywhere inside the region occupied by a watched variable as a
1986 sign that the watchpoint fired. Don't stop if some watchpoint
1987 was triggered, but its address doesn't match the address of this
1988 watchpoint.
1989 (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New macro.
1990 Default definition is to call TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT.
1991 (can_use_hardware_watchpoint): Call TARGET_REGION_OK_FOR_HW_WATCHPOINT;
1992 if it returns zero, return zero immediately.
1993 (insert_breakpoints): Try to insert watchpoints for all the values
1994 on the value chain, even if some of them fail to insert. Remove
1995 the breakpoint if parts of its value chain couldn't be inserted.
1996
19971999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
1998
1999 * go32-nat.c (go32_stopped_by_watchpoint): Remove unused code.
2000
20011999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
2002
2003 * go32-nat.c (tcgetpgrp, tcsetpgrp): New functions.
2004
20051999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
2006
2007 * go32-nat.c (go32_wait): If we are in a single-step mode, and the
2008 next instruction is INT nn or INTO, use a temporary breakpoint to
2009 simulate single-step mode, and reset the trace flag.
2010
20111999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
2012
2013 * go32-nat.c (wp_op): New typedef.
2014 (SHOW_DR): Print the length of watched region as well.
2015 (go32_insert_aligned_watchpoint): Remove unused argument PID. All
2016 callers and the prototype changed.
2017 (go32_handle_nonaligned_watchpoint): Renamed from
2018 go32_insert_nonaligned_watchpoint. Now handles all operations on
2019 non-aligned watchpoints: insertion, deletion, and counting. If
2020 called with wp_count as the first argument, return the count of
2021 debug registers needed to watch the region. Don't break out of
2022 the loop before all the addresses in the region are processed.
2023 (go32_remove_watchpoint): Call go32_remove_aligned_watchpoint to
2024 do the actual work.
2025 (go32_remove_aligned_watchpoint): New function, modeled after
2026 go32_insert_aligned_watchpoint. Removes watchpoints that watch
2027 regions of arbitrary length by calling
2028 go32_handle_nonaligned_watchpoint as needed.
2029 (go32_region_ok_for_watchpoint): New function, called from
2030 can_use_hardware_watchpoint via the new macro
2031 TARGET_REGION_OK_FOR_HW_WATCHPOINT.
2032
2033 * config/i386/nm-go32.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
2034 Define to call go32_region_ok_for_watchpoint.
2035 (DECR_PC_AFTER_HW_BREAK): Define back to zero (previous redefinition
2036 to 1 was due to a bug in go32-nat.c).
2037
20381999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
2039
2040 * go32-nat.c (cleanup_dregs): New function.
2041 (go32_mourn_inferior): Call it.
2042 (IS_REG_FREE, LOCAL_ENABLE_REG, GLOBAL_ENABLE_REG, DISABLE_REG,
2043 SET_BREAK, SET_WATCH, IS_WATCH, WATCH_HIT): Protect arguments with
2044 parentheses.
2045 (SET_BREAK): Increment the debug register's reference count.
2046 (DR_DEF): New macro, returns the access and length bits of the
2047 breakpoint.
2048 (SHOW_DR): Print the reference count of each register. Disable or
2049 enable print-out depending on an environment variable GDB_SHOW_DR.
2050 (go32_insert_aligned_watchpoint): Look for an occupied debug
2051 register with the same address and access/length bits, and reuse
2052 it by incrementing reference the count, before occupying another
2053 register. Return zero upon success.
2054 (go32_insert_nonaligned_watchpoint): Pass the read/write bits to
2055 go32_remove_watchpoint.
2056 (go32_remove_watchpoint): Accept an additional parameter: the
2057 read/write bits of the watchpoint to remove, and only remove a
2058 watchpoint if it's occupied and its address and read/write bits
2059 match. Only disable the register if its reference count is zero;
2060 otherwise just decrease the reference count.
2061 (go32_remove_hw_breakpoint): Only decrease reference count and
2062 disable the debug register if it is occupied and its access bits
2063 match those of an instruction breakpoint.
2064 (go32_insert_hw_breakpoint): Before occupying another debug
2065 register, look for an already occupied register that defines an
2066 instruction breakpoint with the same address. If found, increment
2067 its reference count. Call SHOW_DR even if failed to insert a
2068 breakpoint.
2069
2070 * config/i386/nm-go32.h (target_remove_watchpoint): Accept the
2071 TYPE argument as well.
2072
2073Wed Aug 18 17:47:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
2074
2075 * mips-tdep.c: Add more comments.
2076
20771999-08-17 Stan Shebs <shebs@andros.cygnus.com>
2078
2079 * blockframe.c: Don't use PARAMS anymore, remove obsolete comment
2080 about frameless functions.
2081
20821999-08-16 Michael Snyder <msnyder@cleaver.cygnus.com>
2083
2084 * thread.c (delete_thread): delete any step_resume breakpoint
2085 held by the thread. (prune_threads): call delete_thread.
2086 * breakpoint.c (breakpoint_init_inferior): if startup, then
2087 delete any remaining step_resume breakpoints.
2088 * infrun.c (handle_inferior_event): add cautionary comment.
2089
20901999-08-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
2091
2092 * remote.c (remote_async_mourn): New function. Async version of
2093 remote_mourn().
2094
20951999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
2096
2097 * terminal.h [__GO32__]: Remove conditional; DJGPP now supports
2098 termios.
2099
21001999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
2101
2102 * command.c (CANT_FORK) [__MSDOS__]: Define.
2103 (shell_escape) [CANT_FORK]: If ARG is NULL, pass an empty string
2104 to `system'.
2105 [__DJGPP__]: Return to the original directory after the shell
2106 exits.
2107
21081999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
2109
2110 * config/i386/xm-go32.h (ROOTED_P): Don't reference X[1] if X[0]
2111 is a null character.
2112
2113 * config/i386/nm-go32.h (DECR_PC_AFTER_HW_BREAK): Define to 1.
2114
21151999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
2116
2117 * go32-nat.c (redir_cmdline_parse, redir_cmdline_delete,
2118 redir_to_child, redir_to_debugger, redir_debug_init)
2119 [__DJGPP_MINOR__ < 3]: Dummy stubs for redirecting debuggee's
2120 standard handles.
2121 (print_387_status): Print "last FP instruction", not "last
2122 exception". Restore the upper 5 bits of the opcode that aren't
2123 stored in the FPU state. Print the FPU stack in its physical
2124 order, not relative to ST(0). Print "special", not "trap" for
2125 unnormals and infinities. Print all 10 bytes of each FP register,
2126 and print them with 19 significant digits.
2127 (regno_mapping): Make the mapping consistent with tm-go32.h.
2128 (sig_map): Add mappings for SIGQUIT, SIGFPE, SIGALRM. Map NMI to
2129 SIGBUS.
2130 (excep_map): New variable, maps GDB signals to DJGPP exceptions.
2131 (go32_attach): Signal an error: we cannot attach to other
2132 processes.
2133 (go32_resume): Record the signal with which the inferior should be
2134 resumed, mapped to the DJGPP exception number.
2135 (go32_wait): Pass the signal recorded in go32_resume to the
2136 debuggee. Save and restore debugger's and debuggee's current
2137 working directory.
2138 [__DJGPP_MINOR__ < 3]: Save and restore inferior's FPU state.
2139 (store_register): FPU regsiters have numbers less than 31.
2140 (go32_kill_inferior): Delete the parsed command-line storage.
2141 (go32_create_inferior): Initialize the parsed command-line
2142 storage. Parse the command line and create the redirections for
2143 inferior's standard handles.
2144 [__DJGPP_MINOR__ < 3]: Init the inferior's FPU state.
2145 (ignore2): Function deleted.
2146 (device_mode): New function, switches a character device between
2147 raw and cooked mode.
2148 (go32_terminal_init): Invalidate the raw/cooked mode information.
2149 (go32_terminal_info): Print whether the inferior's terminal is in
2150 raw or cooked mode.
2151 [__DJGPP_MINOR__ > 2]: Say if standard handles are redirected or
2152 closed by the inferior.
2153 (go32_terminal_inferior): Switch standard handles to the
2154 inferior's files/devices. Put the inferior's input device to
2155 raw/cooked mode, exactly like we found it last time.
2156 (go32_terminal_ours): Restore debugger's standard handles and put
2157 the terminal into cooked mode. Save the mode of inferior's input
2158 device.
2159 (init_go32_ops): Assign go32_ops.to_attach,
2160 go32_ops.to_terminal_info, go32_ops.to_terminal_ours_for_output.
2161 Initialize inferior's cwd and the command-line storage.
2162
2163Mon Aug 16 14:29:30 1999 Jeffrey A Law (law@cygnus.com)
2164
2165 * config/pa/tm-hppa.h (ARGS_GROW_DOWNWARD): Define.
2166 * config/pa/tm-hppa64.h (ARGS_GROW_DOWNWARD): Undefine.
2167 * hppa-tdep.c (hppa_push_arguments): Handle arguments growing in
2168 both directions depending ARGS_GROW_DOWNWARD.
2169 (hppa_find_saved_regs): Update for 64bit wide registers & pointers
2170 and PA64 ABI.
2171
2172 * hppa-tdep.c (hppa_pop_frame): Various fixes for 64bit wide
2173 registers and pointers.
2174 (hppa_fix_call_dummy, skip_trampoline_code): Likewise.
2175 (restore_pc_queue): Update tests for width of memory loads.
2176 (hppa_push_arguments): Delete version that was #if 0'd out.
2177
2178 * hppa-tdep.c (push_dummy_frame): Handle the new 64it ABI.
2179 (find_dummy_frame_regs): Corresponding changes.
2180
2181 * hppa-tdep.c (read_unwind_info): Initialize obj_private->dp.
2182 (internalize_unwinds): Improve test for when to use segment
2183 relative code for unwinder bounds.
2184 (rp_saved): Fix offset of saved return pointer for the 64bit ABI.
2185 (hppa_frame_saved_pc): Various updates to handle 64bit registers
2186 and pointers.
2187 (frame_chain, restore_pc_queue): Likewise.
2188
2189 * hppa-tdep.c (rp_saved): RP is saved at frame-16 when
2190 pointers are 64bits wide.
2191
2192 * hppa-tdep.c (record_text_segment_lowaddr): New function.
2193 (internalize_unwinds): Use it if addressess are 8 bytes wide.
2194
2195 * symfile.c (syms_from_objfile): No longer warn if the lowest
2196 section does not have SEC_CODE set.
2197
2198 * Makefile.in (pa64solib.o): Add dependencies.
2199
2200 * hppah-nat.c (store_inferior_registers): Do not try to write a
2201 nonzero value to the high part of IPSW. Fix typo in unable to store
2202 warning.
2203
2204 * config/pa/tm-hppa.h (opd_data structure): Delete. Not actually
2205 needed.
2206 (struct obj_private_struct): Add new entry for the objfile's DP
2207 value.
2208 * config/pa/tm-hppa64.h (CALL_DUMMY): Add a nop to make it an even
2209 number of instructions. Pack the dummy into word sized hunks.
2210 (CALL_DUMMY_LENGTH): Update appropriately.
2211 (PC_IN_CALL_DUMMY, CALL_DUMMY_LOCATION_AFTER_TEXT_END): Delete.
2212
7be570e7
JM
2213Mon Aug 16 19:08:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
2214
2215 * configure.in: Try -lsocket when looking for socketpair.
2216 * configure, config.h: Re-generate.
2217
22181999-08-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2219
2220 From Christopher Faylor <cgf@cygnus.com>:
2221
2222 * event-loop.c (gdb_wait_for_event): Before going to wait for
2223 another event with select or poll, flush the error and the output
2224 streams.
2225
2226 * event-top.c (gdb_readline2): Do not buffer the input, because
2227 doing so can interfere with select/poll in bad ways.
2228
2229Fri Aug 13 17:36:56 1999 Eli Zaretskii <eliz@is.elta.co.il>
2230
2231 * maint.c (maintenance_dump_me) [__DJGPP__]: Simulate a core dump
2232 with SIGABRT.
2233 * utils.c (quit) [__MSDOS__]: Don't mention SIGINT, since it's not
2234 gonna happen.
2235 (notice_quit): No need to define this function for the DJGPP port.
2236
22371999-08-13 James Ingham <jingham@leda.cygnus.com>
2238
2239 * arm-tdep.c (arm_frameless_function_invocation): SKIP_PROLOGUE
2240 macro no longer modifies its argument. Update uses to accord.
2241
2242 * config/arm/arm.mt (TDEPFILES): Add the remote-rdi.o to the
2243 TDEPFILES.
2244 * configure.tgt: Add rdi-share to configdir for the Arm targets.
2245
2246Fri Aug 13 11:16:32 1999 Jeffrey A Law (law@cygnus.com)
2247
2248 * hppah-nat.c (store_inferior_registers): Revamp to be PA2.0W
2249 aware.
2250
2251 * infttrace.c (ttrace_write_reg_64): New function.
2252
2253 * hp-symtab-read.c (is_in_import_list): Delete extern declaration.
2254 * somread.c (is_in_import_list): Delete function.
2255 * objfiles.c (is_in_import_list): New function.
2256 * objfiles.h (is_in_import_list): Declare.
2257
2258 * config/pa/tm-hppa64.h (GDB_TARGET_IS_HPPA20W): Define before
2259 including tm-hppah.h.
2260 (PC_IN_CALL_DUMMY): Define.
2261 (HPUX_1100): Similarly.
2262 * config/pa/tm-hppa.h (somsolib.h, pa64solib.h): Conditionalize
2263 includes on GDB_TARGET_IS_HPPA20W.
2264
2265 * configure.host: Distinguish between wide and narrow modes
2266 for hpux11.
2267 * config/pa/hpux1100w.mh, config/pa/hpux1100w.mt: New files.
2268
2269 * config/pa/tm-hppa64.h (STACK_ALIGN): Redefine.
2270 (REG_PARM_STACK_SPACE): Likewise.
2271
2272 * config/pa/tm-hppa.h (CLEAN_UP_REGISTER_VALUE): Handle 64bit
2273 PA target correctly.
2274 (REG_PARM_STACK_SPACE): Define.
2275 (struct unwind_table_entry): region_start and region_end are
2276 CORE_ADDRs.
2277 (typedef opd_data): New.
2278 (obj_private_data_t): Include pointer to opd_data structure.
2279
22801999-08-13 Keith Seitz <keiths@cygnus.com>
2281
2282 * stabsread.c (stabsread_clear_cache): New funciton which clears
2283 an optimization cache of the reader.
2284
2285 * coffread.c (coff_symfile_finish): Give stabs reader a chance to
2286 clean up.
2287
2288 * win32-nat.c (handle_load_dll): Don't suppress re-reading symbols
2289 from a DLL if an objfile for it already exists. (Not that this should
2290 happen anymore anyway...)
2291
22921999-08-13 Keith Seitz <keiths@cygnus.com>
2293
2294 * config/mcore/tm-mcore.h (SAVE_DUMMY_FRAME_TOS): Define for MCore,
2295 which also requires that the stack pointer be saved for call
2296 dummies BEFORE arguments get pushed onto it.
2297
22981999-08-12 Stan Shebs <shebs@andros.cygnus.com>
2299
2300 From Eli Zaretskii <eliz@is.elta.co.il>:
2301 * source.c (mod_path) [_WIN32 || __DJGPP__]: Don't remove trailing
2302 slash from "d:/". Don't overstep the beginning of name.
2303 [_WIN32 || __MSDOS__]: Convert "d:" to "d:.", otherwise appending
2304 a slash changes its meaning.
2305 (openp): Use SLASH_P, not equality with SLASH_CHAR.
2306 (print_source_lines_base) [CRLF_SOURCE_FILES]: Skip \r only before
2307 a \n.
2308 (forward_search_command) [CRLF_SOURCE_FILES]: Remove \r at the end
2309 of all lines.
2310 (reverse_search_command) [CRLF_SOURCE_FILES]: Likewise.
2311
2312 * gnu-regex.c (CHAR_CLASS_MAX_LENGTH): Don't use wide characters
2313 unless HAVE_BTOWC is defined.
2314
2315Fri Aug 13 10:20:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
2316
2317 From J.T. Conklin <jtc@redback.com>:
2318 * gdbinit.in: Change the template .gdbinit to match the recent
2319 fatal error handling change.
2320
23211999-08-11 Keith Seitz <keiths@cygnus.com>
2322
2323 * maint.c (maintenance_internal_error): Fix typo in prototype.
2324
2325Wed Aug 11 15:38:05 1999 Andrew Cagney <cagney@amy.cygnus.com>
2326
2327 * remote.c (remote_rcmd): Pass an empty command across to the
2328 target. Check for and handle an ``Enn'' return status.
2329
2330Tue Aug 10 13:59:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
2331
2332 * maint.c (_initialize_maint_cmds): Add ``maintenance
2333 internal-error'' command.
2334 (maintenance_internal_error): New function.
2335
23361999-08-10 James Ingham <jingham@leda.cygnus.com>
2337
2338 * top.c: Remove the disassembly_flavor_hook, use the new set_hook
2339 instead.
2340 * defs.h: Ditto.
2341 * arm-tdep.c (set_disassembly_flavor_sfunc): Ditto.
2342
23431999-08-10 Michael Snyder <msnyder@cleaver.cygnus.com>
2344
2345 * config/i386/nm-i386sol2.h (FIND_NEW_THREADS): remove, obsolete.
2346 * config/sparc/nm-sun4sol2.h (FIND_NEW_THREADS): remove, obsolete.
2347
23481999-08-10 J.T. Conklin <jtc@redback.com>
2349
2350 * configure.tgt (i[3456]86-*-aout*, i[3456]86-*-coff*,
2351 i[3456]86-*-elf*): Use embed.mt.
2352 * config/i386/embed.mt: New file.
2353
23541999-08-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2355
2356 * remote.c (remote_async_open_1): Remove casting in call to
2357 add_file_handler.
2358 (extended_remote_async_create_inferior): Ditto.
2359
2360 * event-top.c (change_line_handler): Ditto.
2361 (_initialize_event_loop): Ditto.
2362
2363 * infrun.c (complete_execution): Ditto.
2364
2365 * event-loop.c (add_file_handler): Change proc parameter to be ptr
2366 to func with void parameter, rather than void*. Coerce second
2367 paramter in calls to create_file_handler. Replace
2368 async_handler_func and file_handler_func with handler_func.
2369
2370 * event-loop.h: Get rid of typedefs for file_handler_func and
2371 async_handler_func, just have one, and call it handler_func.
2372 Replace async_handler_func and file_handler_func occurrences with
2373 handler_func.
2374
2375Tue Aug 10 03:13:03 1999 Jeffrey A Law (law@cygnus.com)
2376
2377 * hppa-tdep.c: Delete random #if 0 code.
2378 (is_branch): Handle new branching opcodes from PA2.0
2379 (inst_saves_gr, inst_saves_fr): Handle additional instructions
2380 used to save general and floating point registers in the stack.
2381 (skip_prologue_hard_way): Handle additional instructions to
2382 save the return pointer in the stack.
2383 (after_prologue): Fix mis-guided and incorrect code to find
2384 the end of the prologue using debug symbols.
2385 (hppa_skip_prologue): Generally clean up comments, lose code
2386 which does not apply to the PA, etc.
2387
2388Sun Aug 8 17:53:41 1999 Andrew Cagney <cagney@amy.cygnus.com>
2389
2390 * MAINTAINERS: Make Andrew Cagney the mn10300 maintainer.
2391 Transfer responsibility for the PowerPC from Andrew Cagney to
2392 Elena Zannoni.
2393
2394Tue Aug 10 13:59:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
2395
2396 Based on code from J.T. Conklin <jtc@redback.com>:
2397 * utils.c (internal_error): Make quit? and coredump? separate
2398 questions so that the user can dump-core and not quit.
2399 (internal_error): Cleanup error message.
2400
24011999-08-09 Tom Tromey <tromey@cygnus.com>
2402
2403 * kod-cisco.c (cisco_kod_open): Removed incorrect `arg' argument.
2404
96baa820
JM
2405Sun Aug 8 12:06:47 1999 Fred Fish <fnf@cygnus.com>
2406
2407 * coffread.c (process_coff_symbol): Remove section_offsets from
2408 prototype and function definition. Get section_offsets from the
2409 passed objfile and pass it on to callees the same way.
2410 (coff_symtab_read): Ditto.
2411 (coff_symfile_read): Ditto.
2412 * dbxread.c (read_dbx_dynamic_symtab): Ditto.
2413 (read_dbx_symtab): Ditto.
2414 (dbx_symfile_read): Ditto.
2415 (coffstab_build_psymtabs): Ditto.
2416 (elfstab_build_psymtabs): Ditto.
2417 (stabsect_build_psymtabs): Ditto.
2418 * dstread.c (dst_symfile_read): Ditto.
2419 * elfread.c (elf_symfile_read): Ditto.
2420 * jv-class.c (jv_class_symfile_read): Ditto.
2421 * mipsread.c (mipscoff_symfile_read): Ditto.
2422 * nlmread.c (nlm_symfile_read): Ditto.
2423 * os9kread.c (os9k_symfile_read): Ditto.
2424 * somread.c (som_symfile_read): Ditto.
2425 * stabsread.h (elfstab_build_psymtabs): Ditto.
2426 * xcoffread.c (xcoff_initial_scan): Ditto.
2427
2428 * symfile.h (sym_read): Remove section_offsets from prototype.
2429 * symfile.c (syms_from_objfile): Call sym_read without
2430 section_offsets.
2431 (reread_symbols): Ditto.
2432
2433 * elfread.c (elfstab_offset_sections): Use SIZEOF_SECTION_OFFSETS
2434 to allocate sections offsets array.
2435 * xcoffread.c (xcoff_symfile_offsets): Ditto.
2436
2437 * partial-stab.h (section_offsets): Get from objfile.
2438 * dbxread.c (read_dbx_symtab): Fix typo that made -1 casted
2439 to a CORE_ADDR look like an subtraction expression.
2440 * objfiles.h: Add some comments.
2441 * symfile.c: Add some comments.
2442 * objfiles.c: Add some comments.
2443 (objfile_relocated): Use ALL_OBJFILE_OSECTIONS to iterate over
2444 sections.
2445 (find_pc_sect_sections): Use ALL_OBJSECTIONS to iterate over all
2446 sections in all objfiles.
2447 * symfile.c (syms_from_objfile): Use ALL_OBJFILE_OSECTIONS.
2448
2449 * irix5-nat.c (symbol_add_stub): Fix typo that made taking the
2450 address of lowest_sect with '&' look like a bitwise and op.
2451 * osfsolib.c (symbol_add_stub): Ditto.
2452 * solib.c (symbol_add_stub): Ditto.
2453 * symfile.c (syms_from_objfile): Ditto.
2454
2455 * dwarf2read.c (dwarf2_build_psymtabs_hard): Minor format tweak.
2456 * symfile.c (syms_from_objfile): Ditto, and fix typo.
2457 * top.c (init_main): Fix typo in comment (DEFULAT_PROMPT).
2458 * doc/gdbint.texinfo (find_sym_fns): This replaces symfile_init.
2459
24601999-08-08 James Ingham <jingham@leda.cygnus.com>
2461
2462 * remote.c (remote_insert_breakpoint): Fix typo in Z packet support.
104c1213
JM
2463 Also move Z packet support OUTSIDE of REMOTE_BREAKPOINT ifdef,
2464 since this is not set for all targets that support the Z packet.
96baa820
JM
2465
2466Fri Aug 6 17:17:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
2467
2468 * defs.h (fatal): Delete declaration.
2469 (internal_error): Declare.
2470 * utils.c (nomem): Call internal_error instead of fatal.
2471 (fatal_dump_core): Delete.
2472 (malloc_botch): Print message direct to stderr.
2473 (fatal): Delete definition.
2474 * utils.c (internal_error): Define.
2475
2476 * gdbarch.h, gdbarch.c, hppah-nat.c, ch-exp.c, dsrec.c, sh-tdep.c,
2477 infptrace.c, f-lang.c, symm-nat.c, top.c, m3-nat.c, v850-tdep.c,
2478 remote-vx.c, remote-sim.c, remote-mips.c, source.c, infcmd.c,
2479 findvar.c, remote.c: Replace fatal with call to internal_error.
2480
2481Sun Aug 8 15:28:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
2482
2483 * ser-pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Move
2484 definition from here.
2485 * defs.h: To here.
2486
2487Sat Aug 7 21:44:59 1999 Fred Fish <fnf@cygnus.com>
2488
2489 * remote.c (remote_insert_breakpoint): Fix typo, missing ';'.
2490
2491Sun Aug 8 11:26:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
2492
2493 * mips-tdep.c (mips_gdbarch_init): Add break; to the default case.
2494
2495Fri Aug 6 19:26:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
2496
2497 * defs.h: Delete #if ANSI_PROTOTYPES code, GDB assumes ISO-C.
2498 * remote-rdp.c (send_rdp), remote-os9k.c (printf_monitor),
2499 remote-mips.c: (mips_error), remote-array.c: (printf_monitor,
2500 debuglogs), complaints.c (complain), monitor.c:
2501 (monitor_printf_noecho, monitor_printf), language.c (type_error,
2502 range_error), remote-st.c: (printf_stdebug), remote-sim.c
2503 (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
2504 gdb_os_evprintf_filtered, gdb_os_error), serial.c (serial_printf),
2505 utils.c (warning, error, fatal, fatal_dump_core, (query,
2506 fprintf_filtered, fprintf_unfiltered, fprintfi_filtered,
2507 printf_filtered, printf_unfiltered, printfi_filtered): Delete
2508 legacy #ifndef ANSI_PROTOTYPES varargs code.
2509
2510 * defs.h: Don't #include <varargs.h>.
2511 * remote-rdp.c, remote-os9k.c, remote-mips.c, remote-array.c,
2512 monitor.c, remote-st.c: Don't include <varargs.h> or <stdarg.h>.
2513
25141999-08-06 James Ingham <jingham@leda.cygnus.com>
2515
2516 * configure.in, configure: add the --enable-multi-ice to determine
2517 whether to configure and build the multi-ice-gdb-server. Note,
2518 for now this only builds on cygwin, so don't enable it for other
2519 platforms...
2520
25211999-08-06 Tom Tromey <tromey@cygnus.com>
2522
2523 * Makefile.in (SFILES): Added kod.c and kod-cisco.c.
2524 (COMMON_OBS): Added kod.o and kod-cisco.o.
2525 (kod-cisco.o): New target.
2526 (kod.o): New target.
2527 * kod-cisco.c: New file.
2528 * kod.c: New file.
2529
25301999-08-06 James Ingham <jingham@leda.cygnus.com>
2531
2532 These are some fixups for the Arm, and support for the
2533 disassembly-flavor for the ARM.
2534
2535 * defs.h: Declare the disassembly_flavor_hook
2536 * top.c: Define the disassembly_flavor_hook
2537 * i386-tdep.c: Remove unnecessary declaration of the
2538 disassembly_flavor_hook.
2539
2540 * config/arm/tm-arm.h: Change definition of
2541 arm_init_extra_frame_info.
2542 Add a few more comments.
2543 * arm-tdep.c (arm_init_extra_frame_info): Listen to and use the
2544 fromleaf parameter passed into init_extra_frame_info.
2545 (set_disassembly_flavor_sfunc): New Function.
2546 (set_disassembly_flavor): New Function.
2547 (arm_othernames): Use the set_disassembly_flavor.
2548 (_initialize_arm_tdep): Setup the disassembly flavor commands, and
2549 initialize the flavor.
104c1213 2550 (arm_frameless_function_invocation): Adjust for
96baa820
JM
2551 frameless functions that have 1 or 2 instructions that mimic the
2552 standard APCS form.
2553 (arm_scan_prologue): Be more careful about scanning the function
2554 prologue. Don't match things that just have a few of the prologue
2555 instructions out of order, and don't get thrown by the scheduler
2556 migrating instructions into the prologue.
2557
2558 Add support for the "Z" and "z" packets to request the stub
2559 to set a breakpoint.
2560
2561 * remote.c (set_remote_protocol_Z_packet_cmd): New function.
2562 (show_remote_protocol_Z_packet_cmd): New Function.
2563 (remote_open_1): Init the Z packet config.
2564 (remote_async_open_1): Init the Z packet config.
2565 (remote_insert_breakpoint): Use the "Z" packet if supported.
2566 (remote_remove_breakpoint): Use the "z" packet if supported.
2567 (remote_insert_watchpoint): New Function - currently wired to
2568 nothing.
2569 (remote_remove_watchpoint): Ditto.
2570 (remote_insert_hw_breakpoint): Ditto.
2571 (remote_remove_hw_breakpoint): Ditto.
2572
25731999-08-06 Stan Shebs <shebs@andros.cygnus.com>
2574
2575 * infcmd.c: Include parser-defs.h.
2576 (interrupt_target_command): Declare.
2577 (stack_dummy_testing): Remove old funky flag.
2578 (run_stack_dummy): Remove unused reference to old funky flag.
2579
25801999-08-06 Tom Tromey <tromey@cygnus.com>
2581
2582 * command.c (do_setshow_command): Call set_hook if not NULL.
2583 * top.c (set_hook): New hook definition.
2584 * defs.h (set_hook): Declare.
2585
25861999-08-05 Stan Shebs <shebs@andros.cygnus.com>
2587
2588 * infrun.c: Convert code to pure standard C, elim some warnings.
2589 (stopped_for_shlib_catchpoint): Remove, never used.
2590
25911999-08-05 Keith Seitz <keiths@cygnus.com>
2592
2593 * NEWS: Mention new Motorola MCore target.
2594
2595 * sparc-tdep.c (gdb_print_insn_sparc): Print insns of the current
2596 architecture.
2597
2598Thu Aug 5 20:41:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
2599
2600 * configure.in (configdirs): Add check for socketpair.
2601 * configure, config.in: Re-generate.
2602
2603 From Mon Jul 19 10:46:18 1999 Philippe De Muyter <phdm@macqel.be>:
2604 * ser-pipe.c (sys/wait.h): Include this file only #if HAVE_SYS_WAIT_H.
2605 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Macros defined if needed.
2606
2607Thu Aug 5 20:04:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
2608
2609 * target.c (debug_to_open, debug_to_attach, debug_to_post_attach,
2610 debug_to_require_attach, debug_to_detach, debug_to_require_detach,
2611 debug_to_wait, debug_to_post_wait, debug_to_fetch_registers,
2612 debug_to_store_registers, debug_to_prepare_to_store,
2613 debug_to_xfer_memory, debug_to_files_info,
2614 debug_to_insert_breakpoint, debug_to_remove_breakpoint,
2615 debug_to_terminal_init, debug_to_terminal_inferior,
2616 debug_to_terminal_ours_for_output, debug_to_terminal_ours,
2617 debug_to_terminal_info, debug_to_kill, debug_to_load,
2618 debug_to_lookup_symbol, debug_to_create_inferior,
2619 debug_to_post_startup_inferior,
2620 debug_to_acknowledge_created_inferior,
2621 debug_to_clone_and_follow_inferior,
2622 debug_to_post_follow_inferior_by_clone,
2623 debug_to_insert_fork_catchpoint, debug_to_remove_fork_catchpoint,
2624 debug_to_insert_vfork_catchpoint,
2625 debug_to_remove_vfork_catchpoint, debug_to_has_forked,
2626 debug_to_has_vforked, debug_to_can_follow_vfork_prior_to_exec,
2627 debug_to_post_follow_vfork, debug_to_insert_exec_catchpoint,
2628 debug_to_remove_exec_catchpoint, debug_to_has_execd,
2629 debug_to_reported_exec_events_per_exec_call,
2630 debug_to_has_syscall_event, debug_to_has_exited,
2631 debug_to_mourn_inferior, debug_to_can_run,
2632 debug_to_notice_signals, debug_to_thread_alive, debug_to_stop,
2633 debug_to_query, debug_to_rcmd, debug_to_enable_exception_callback,
2634 debug_to_get_current_exception_event, debug_to_pid_to_exec_file,
2635 debug_to_core_file_to_sym_file, debug_to_close): Send trace output
2636 to ``gdb_stdlog'' instead of ``gdb_stderr''.
2637
2638Thu Aug 5 16:22:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
2639
2640 * remote.c (init_remote_ops): Initialize remote_ops.to_rcmd.
2641 (init_remote_async_ops): Initialize remote_async_ops.to_query.
2642 (remote_rcmd): New function.
2643
2644 * monitor.c (monitor_rcmd): Rename monitor_command.
2645 (init_base_monitor_ops): Initialize monitor_ops.to_rcmd.
2646 (_initialize_remote_monitors): Move "monitor" command from here.
2647 * target.c (initialize_targets): To here.
2648 (monitor_command): New function. Implement "monitor" command.
2649
2650 * target.c (cleanup_target): de_fault to_rcmd.
2651 (update_current_target): INHERIT to_rcmd.
2652 (debug_to_rcmd): New function.
2653 (setup_target_debug): Initialize current_target.to_rcmd.
2654
2655 * target.h (struct target_ops): Add field to_rcmd.
2656 (target_rcmd): Define.
2657
2658Thu Aug 5 14:24:07 1999 Andrew Cagney <cagney@b1.cygnus.com>
2659
2660 * remote.c: Replace comment describing remote protocol with
2661 pointer to official document.
2662
2663Thu Aug 5 11:59:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
2664
2665 * remote.c (remote_protocol_binary_download): New variable.
2666 Replace ``remote_binary_download'' and ``remote_binary_checked''.
2667 (set_remote_protocol_binary_download_cmd,
2668 show_remote_protocol_binary_download_cmd): New functions.
2669 (remote_open_1, remote_async_open_1, remote_cisco_open):
2670 Initialize ``remote_protocol_binary_download'' instead of
2671 ``remote_binary_download''.
2672 (check_binary_download): Re-write.
2673 (remote_write_bytes): Ditto.
2674 (_initialize_remote): Add ``set remote X-packet'' and ``show
2675 remote X-packet'' commands. Disable old ``set
2676 remotebinarydownload'' command.
2677
26781999-08-04 Keith Seitz <keiths@cygnus.com>
2679
2680 * remote-rdi.c (arm_rdi_close): Close the transport device, too.
2681
2682Wed Aug 4 10:42:58 1999 Fred Fish <fnf@cygnus.com>
2683
2684 * xcoffread.c (scan_xcoff_symtab): Change main_aux into
2685 an array of 5 internal_auxent to leave room for bfd to
2686 write n_numaux entries. Change code to use the first one.
2687
26881999-08-02 Stan Shebs <shebs@andros.cygnus.com>
2689
2690 * c-valprint.c (c_val_print): When printing decimal equivalent
2691 of a char, cast appropriately.
2692
26931999-08-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2694
2695 From Jonathan Larmour <jlarmour@cygnus.co.uk>:
2696 * main.c (print_gdb_help): Use gdbinit variable to determine file
2697 name used for --nx help
2698
a0b3c4fd
JM
26991999-08-01 Jason Molenda (jsm@bugshack.cygnus.com)
2700
2701 * config/mips/tm-mips.h (BIG_ENDIAN): Don't define here.
2702
27031999-08-01 Jim Blandy <jimb@zwingli.cygnus.com>
2704
2705 * stabsread.c (read_range_type): Handle an unsigned range type
2706 whose length in bytes is any power of two, not just a few
2707 common ones.
2708
2709 * monitor.c (monitor_expect): When we receive a character that
2710 isn't part of the string we were expecting, don't just start
2711 matching again at the beginning of the string --- some shorter
2712 suffix of the input might be a prefix of the string too.
2713
27141999-07-31 Fred Fish <fnf@cygnus.com>
2715
2716 * symfile.c (symbol_file_command): Fix typo that made -1 casted
2717 to a CORE_ADDR look like an subtraction expression.
2718 (add_symbol_file_command): Ditto.
2719
27201999-07-30 Jim Blandy <jimb@cris.red-bean.com>
2721
2722 * hppa-tdep.c (pa_print_registers): Frob register output some more.
2723
27241999-07-29 Jim Blandy <jimb@cris.red-bean.com>
2725
2726 * config/pa/nm-hppah.h (PTRACE_ARG3_TYPE): After more
2727 consideration, make this a CORE_ADDR, like WDB did.
2728
2729 Rather than casting every single use of really_free_pendings to
2730 make_cleanup_func, why not actually make it have that type? Golly!
2731 * buildsym.c (really_free_pendings): Change argument type to PTR.
2732 buildsym.h (really_free_pendings): Fix declaration.
2733 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1),
2734 dwarf2read.c (psymtab_to_symtab_1), dwarfread
2735 (psymtab_to_symtab_1), hp-psymtab-read.c (hpread_build_psymtabs),
2736 os9kread.c (os9k_symfile_read, os9k_psymtab_to_symtab_1),
2737 xcoffread.c (xcoff_psymtab_to_symtab_1, xcoff_initial_scan):
2738 Remove casts.
2739
2740 Pass a CORE_ADDR safely through catch_errors.
2741 * hppa-tdep.c (args_for_find_stub): New member, return_val.
2742 (cover_find_stub_with_shl_get): Change argument and return type to
2743 match catch_errors. Save return value of find_stub_with_shl_get
2744 in *args.
2745 (initialize_hp_cxx_exception_support): Collect value of
2746 eh_notify_callback_addr from args.
2747
2748 Get rid of some noise. It would be nice to get helpful warnings
2749 from the compiler about lossy conversions.
2750 * hppa-tdep.c (eh_notify_hook_addr, eh_notify_callback_addr,
2751 eh_break_addr, eh_catch_catch_addr, eh_catch_throw_addr,
2752 break_callback_sal): Initialize these to zero, not NULL, to shush
2753 warnings.
2754 * infttrace.c (thread_fake_step): Compare signal to
2755 TARGET_SIGNAL_0, not NULL, to avoid warnings.
2756 (_initialize_infttrace): Add sanity check.
2757
2758 * config/pa/nm-hppah.h (PTRACE_ARG3_TYPE): Define this to be
2759 long, so we can pass arguments properly to ptrace.
2760
2761 * hppah-nat.c (child_xfer_memory): Correctly compute mask to round
2762 address to an int boundary.
2763
27641999-07-29 Jim Blandy <jimb@savonarola.red-bean.com>
2765
2766 Change from Ian Lance Taylor <ian@zembu.com>. The
2767 i386_linux_sigtramp* functions should be moved to
2768 i386-linux-tdep.c, when that file is introduced.
2769
2770 * config/i386/tm-linux.h (LINUX_SIGCONTEXT_SIZE): Define.
2771 (LINUX_SIGCONTEXT_PC_OFFSET): Define.
2772 (LINUX_SIGCONTEXT_SP_OFFSET): Define.
2773 (SIGCONTEXT_PC_OFFSET): Don't define.
2774 (I386_LINUX_SIGTRAMP): Define.
2775 (IN_SIGTRAMP): Define.
2776 (i386_linux_sigtramp): Declare.
2777 (sigtramp_saved_pc): Define.
2778 (i386_linux_sigtramp_saved_pc): Declare.
2779 (FRAMELESS_SIGNAL): Define.
2780 (FRAME_CHAIN, FRAME_SAVED_PC): Define after #undef.
2781 * i386-tdep.c (i386_linux_sigtramp_start): New static function if
2782 I386_LINUX_SIGTRAMP.
2783 (i386_linux_sigtramp): New function if I386_LINUX_SIGTRAMP.
2784 (i386_linux_sigtramp_saved_pc): Likewise.
2785 (i386_linux_sigtramp_saved_sp): Likewise.
2786
27871999-07-28 Jim Blandy <jimb@savonarola.red-bean.com>
2788
2789 * infrun.c (handle_inferior_event): Don't try to use the code for
2790 stepping over a function call to also handle stepping out of a
2791 sigtramp on HP-UX. That ends up trashing step-resume breakpoints.
2792 This change reverts some of David Taylor's change of 31 Dec 1998.
2793 The HP-UX maintainer needs to submit a new change for whatever
2794 problem the original change was trying to fix.
2795
27961999-07-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2797
2798 * event-top.c (command_line_handler): Don't treat an empty line
2799 from readline the same way as a multiline command. This avoids
2800 missing detecting when the user presses just 'enter'.
2801
28021999-07-28 Jim Blandy <jimb@savonarola.red-bean.com>
2803
2804 Provide more sanity checking:
2805 * infrun.c (handle_inferior_event): Before assigning a new
2806 breakpoint to step_resume_breakpoint, make sure it's not already
2807 pointing at one; if it is, that's a bug.
2808 (check_for_old_step_resume_breakpoint): New function.
2809
28101999-07-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2811
104c1213 2812 From Eli Zaretskii <eliz@is.elta.co.il>:
a0b3c4fd
JM
2813 * top.c (gdb_init) [__MSDOS__]: Arrange for GDB to return to the
2814 original directory before exiting.
2815 (cd_command) [_WIN32 || __MSDOS__]: Canonicalize the new directory
2816 name explicitly. Handle "d:/" names correctly.
2817 (init_history) [__MSDOS__]: Use _gdb_history as the default GDB
2818 history file name.
2819
5a2468f5
JM
2820Mon Jul 26 17:13:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
2821
2822 * remote.c (enum packet_support, enum packet_detect, struct
2823 packet_config): Define.
2824 (set_packet_config_cmd, show_packet_config_cmd,
2825 add_packet_config_cmd, init_packet_config): New functions.
2826 Generic support for optional packets.
2827 (remote_protocol_P): Replace stub_supports_P.
2828 (set_remote_protocol_P_packet_cmd, show_remote_protocol_P_packet_cmd):
2829 New functions.
2830 (_initialize_remote): Add ``set remote-protocol-P-packet'' command.
2831 (remote_open_1, remote_async_open_1, remote_cisco_open):
2832 Initialize ``remote_protocol_P''.
2833 (remote_store_registers): Re-write ``P'' probe logic.
2834 (store_register_using_P): New function.
2835
2836 From Ian Lance Taylor <ian@airs.com>:
2837 (remote_prepare_to_store): Only read registers when ``P'' packet
2838 is in state unsupported or support-unknown.
2839
28401999-07-24 Fred Fish <fnf@cygnus.com>
2841
104c1213
JM
2842 * symfile.c (default_symfile_offsets): Clear section_offsets
2843 before filling it in.
5a2468f5 2844
adf40b2e
JM
28451999-07-16 Keith Seitz <keiths@cygnus.com>
2846
2847 * remote.c (_initialize_remote): "remotebreak" should be a var_boolean.
2848
28491999-07-15 Jim Blandy <jimb@cris.red-bean.com>
2850
2851 Make the output from "info registers" fit withinin 80 columns.
a0b3c4fd
JM
2852 * hppa-tdep.c (pa_print_registers): Make it easy to change row and
2853 column counts. Switch to three columns, instead of four, and
2854 adjust spacing.
adf40b2e
JM
2855
2856 First cut at supporting HPPA2.0 in "wide" (64-bit) mode.
2857 * configure.tgt: Add hppa2.0w target.
2858 * config/pa/hppa64.mt, config/pa/tm-hppa64.h: New files.
2859 * hppa-tdep.c (hppa_fix_call_dummy): Dyke out code to tweak the
2860 call dummy, if target is PA2.0w. This is temporary, until I get
2861 function calls working.
2862 * hppah-nat.c (fetch_register): Rewritten to handle both narrow
2863 and wide register requests.
2864 (HPPAH_OFFSETOF): New macro.
2865
2866 * gdbtypes.c (is_integral_type): New function.
2867 * gdbtypes.h: Prototype for above.
2868
28691999-07-15 J.T. Conklin <jtc@redback.com>
2870
2871 * configure.tgt (i[3456]86-*-vxworks*): New target.
2872 * config/i386/vxworks.mt: New file, x86 VxWorks target
2873 * config/i386/tm-vxworks.h: New file.
2874
2875 * configure.tgt (powerpc-*-vxworks*): New target.
2876 * config/powerpc/vxworks.mt: New file, PowerPC VxWorks target
2877 * config/powerpc/tm-vxworks.h: New file.
2878
2879 * NEWS: Mention the new configs.
2880
28811999-07-15 Fernando Nasser <fnasser@cygnus.com>
2882
2883 * target.c (target_preopen): Prevent query when not from_tty.
2884 * infcmd.c (run_command): Prevent query when not from_tty.
2885
28861999-07-15 Fernando Nasser <fnasser@cygnus.com>
2887
2888 * event-loop.c: Fix typo in comment.
2889
2890Wed Jul 14 17:29:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
2891
2892 * ser-pipe.c (struct pipe_state): Define.
2893 (pipe_close): Retain the PID of the sub-process using ``struct
2894 pipe_state''. Delete #ifdef code that used popen().
2895 (pipe_close): Kill of the sub-process as part of the cleanup.
2896
2897 * serial.h (struct _serial_t): Add field ``state''.
2898
28991999-07-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2900
2901 * event-top.c (display_gdb_prompt): Don't display the prompt if we
2902 are in the middle of an execution command. Also trick readline so
2903 it doesn't try to display the prompt.
2904 (command_line_handler): Get rid of change_prompt, unused variable.
2905 Use {push, pop}_prompt mechanism in case of multiline commands.
2906
2907 * infrun.c (complete_execution): Set target_executing to 0 as
2908 first thing, so that display_gdb_prompt does the right thing.
2909
2910Tue Jul 13 20:29:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
2911
2912 * parse.c (build_parse): Fix conditional increment of num_std_regs
2913 for SP_REGNUM. Was conditional on FP_REGNUM.
2914
2915Tue Jul 13 16:44:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
2916
2917 * gdbarch.h, gdbarch.c: Revert 1999-07-07 Stan Shebs
2918 <shebs@andros.cygnus.com> indentation change. Don't let indent
2919 mess with these files.
2920
43e526b9
JM
2921Mon Jul 12 11:15:09 1999 Andrew Cagney <cagney@b1.cygnus.com>
2922
2923 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_RAW,
2924 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERTIBLE): Define.
2925 (REGISTER_RAW_SIZE): Re-define as mips_register_convert_to_raw.
2926 * mips-tdep.c (mips_register_convert_to_raw,
2927 mips_register_convert_to_virtual, ): New functions.
2928 (mips_register_raw_size, mips_register_convertible): New
2929 functions. Handle bug introduced by ``Wed Apr 1 23:13:23 1998
2930 Andrew Cagney <cagney@b1.cygnus.com>'' where remote mips64 target
2931 transfers SR as 64 bits yet GDB expected only 32 bits.
2932 (mips64_transfers_32bit_regs): New static variable.
2933 (_initialize_mips_tdep): Add obscure command ``set
2934 remote-mips64-transfers-32bit-regs'' that provides backward
2935 compatibility.
2936 (do_gp_register_row): Extract register values from raw buffer.
2937
2938 * NEWS: Document protocol change.
2939
adf40b2e
JM
29401999-07-12 Keith Seitz <keiths@cygnus.com>
2941
104c1213 2942 * rdi-share/unixcomm.c (Unix_ResetSerial): Remove CYGWIN32
adf40b2e 2943 conditional. It's no longer needed.
104c1213
JM
2944 (SERPORT1, SERPORT2): Linux serial ports are "/dev/ttyX", not
2945 "/dev/cuaX" (X=0,1,2,3,...).
adf40b2e 2946
43e526b9
JM
2947Mon Jul 12 02:02:00 1999 Andrew Cagney <cagney@amy.cygnus.com>
2948
2949 * defs.h, utils.c (fputstrn_filtered, fputstrn_unfiltered,
2950 fputstrnn_unfiltered): New functions.
2951 (gdb_printchar): Delete.
2952
2953 * remote.c (print_packet): Replace gdb_printchar with
2954 fputstrn_filtered.
2955 (getpkt): Use fputstrn_unfiltered to dump packet received.
2956 (putpkt_binary): Use fputstrnn_unfiltered to dump packet sent.
2957
29581999-07-09 Keith Seitz <keiths@cygnus.com>
2959
2960 * blockframe.c (blockvector_for_pc_sect): When looking for a block,
2961 we want the one whose end is greater than our PC, not greater or equal.
2962
29631999-07-08 Stan Shebs <shebs@andros.cygnus.com>
2964
2965 * sparcl-tdep.c (init_sparclite_ops): Fix doc strings, remove
2966 useless inits.
2967 (sparclite_ops): Remove redundant decl.
2968
2969Thu Jul 8 16:48:40 1999 Andrew Cagney <cagney@b1.cygnus.com>
2970
2971 * ser-pipe.c (pipe_open): Bi-directional popen found on both
2972 NetBSD and OpenBSD.
2973 * ser-pipe.c: New file. Implement popen() style serial interface.
2974 * NEWS: Mention.
2975 * Makefile.in (ALLDEPFILES): Add ser-pipe.c.
2976 (ser-pipe.o): Add new target. Specify dependencies.
2977 (SER_HARDWIRE): Add ser-pipe.o.
2978 * serial.c (serial_open): Recognize a serial pipe ``|''.
2979
9846de1b
JM
29801999-07-07 Stan Shebs <shebs@andros.cygnus.com>
2981
c5aa993b
JM
2982 * All C files except *-stub.c and *-share/*: Indent to GNU
2983 standard, using indent 1.9.1.
2984 * defs.h: Make indent ignore this file, macros confuse it.
2985
9846de1b
JM
2986 * gnu-regex.c, gnu-regex.h: Don't let indent mess with these.
2987
2988Wed Jul 7 13:06:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
2989
2990 * remote-mips.c (fputs_readable): Rename puts_readable, add struct
2991 gdb_file argument.
2992 (fputc_readable): Rename putc_readable, add struct gdb_file
2993 argument.
2994
2995 * remote-mips.c (mips_expect_timeout, mips_receive_header,
2996 mips_send_packet, mips_receive_packet), remote-rdp.c (put_byte,
2997 get_byte, put_word, rdp_init, rdp_init), remote-sds.c
2998 (sds_interrupt, sds_wait, readchar, putmessage, read_frame,
2999 getmessage), remote-udi.c (udi_store_registers, fetch_register):
3000 (store_register), xmodem.c (readchar), utils.c (puts_debug),
3001 gnu-nat.h (debug), parse.c (parse_exp_1): Cleanup - send debug/log
3002 messages to gdb_stdlog.
3003
30041999-07-06 Stan Shebs <shebs@andros.cygnus.com>
3005
3006 * exec.c: Remove long-#ifed-out section of code that confuses
3007 indent.
3008 * gdbtypes.c (add_mangled_type): Add some braces to indicate
3009 grouping better.
3010 * gnu-nat.c: Remove literal newlines embedded in strings,
3011 causes indent to weird out.
3012 * language.c (binop_result_type): Remove extra paren.
3013 * lynx-nat.c: Add a missing paren to fetch_core_registers decl.
3014 * nec4102rom.c (vr4102_insert_step): Fix typos.
3015 (_initialize_vr4102_rom): Remove literal newline in string.
3016 * config/a29k/tm-a29k.h: Suppress formatting of pictures.
3017 * config/m68k/xm-3b1.h: Remove excess #endif.
3018
3019 Declare Pyramid configuration obsolete.
3020 * configure.host, configure.tgt: Comment out Pyramid configs.
3021 * Makefile.in: Comment out Pyramid-related actions.
3022 * pyr-xdep.c, pyr-tdep.c, config/pyr/*: Comment out.
3023 * NEWS: Mention obsolete status.
3024
30251999-07-06 Jason Molenda (jsm@bugshack.cygnus.com)
3026
3027 * remote.c: Include <sys/time.h> to pick up FD_SET et al defns on
3028 some old Linux distributions.
3029 * remote-os9k.c, remote-st.c, ser-tcp.c, ser-unix.c,
3030 sparcl-tdep.c, remote.c: Back out inclusion of <sys/select.h>.
3031 It isn't necessary after all.
3032
30331999-07-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3034
3035 * infcmd.c (strip_bg_char): Remove assignment from 'if' condition.
3036
43ff13b4
JM
30371999-07-05 Jason Molenda (jsm@bugshack.cygnus.com)
3038
3039 * remote.c: Include <sys/select.h> if it exists in order to pick up
3040 FD_SET et al defns.
3041 * remote-os9k.c: Same.
3042 * remote-st.c: Same.
3043 * ser-tcp.c: Same.
3044 * ser-unix.c: Same.
3045 * sparcl-tdep.c: Same.
3046
3047Fri Jul 2 19:38:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
3048
3049 * top.c (target_output_hook): Delete definition.
3050 * defs.h (target_output_hook): Delete declaration.
3051
3052 * remote.c (remote_console_output): Delete call to
3053 target_output_hook(). Send target output to gdb_stdtarg using an
3054 unfiltered write. Make more robust.
3055
3056 * remote-sim.c (gdb_os_write_stdout, gdb_os_write_stderr):
3057 Ditto. For moment, do not try to separate target stdout and stderr
3058 streams.
3059
3060 * defs.h (gdb_stdtarg): New global. Output from target and
3061 simulators.
3062
30631999-07-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3064
3065 * top.c (return_to_top_level): Do all the exec_cleanups too.
3066
3067 * event-top.c (command_handler): Set up for a continuation, if we
3068 are in the middle of running an execution command which will
3069 finish later on. Do cleanups, an display of time/space only if not
3070 running with an async target or not running an execution command.
3071 (command_line_handler_continuation): New function. Continuation
3072 for command_line_handler.
3073
3074 * utils.c (exec_cleanup_chain): New cleanup chain to be used in
3075 async mode for the execution commands.
3076 (make_exec_cleanup): New function. Add a cleanup to the
3077 exec_cleanup_chain.
3078 (do_exec_cleanups): New Function. Do cleanups on the
3079 exec_cleanup_chain.
3080 (add_continuation): New function. Add a new continuation to the
3081 cmd_continuation list.
3082 (do_all_continuations): New function. Do all the continuations on
3083 the cmd_continuation list.
3084
3085 * top.h (ALL_CLEANUPS): Move from here to defs.h.
3086
3087 * defs.h (struct continuation_arg): New structure. Arg to pass to
3088 the call to a command continuation.
3089 (struct continuation): New structure. Continuation for an
3090 execution command.
3091 (ALL_CLEANUPS): Move here from top.h.
3092
3093 * remote.c (remote_async_open_1): Set things up for telling the
3094 target we are running the extended protocol, only after the target
3095 has stopped.
3096 (set_extended_protocol): New function. Tell the target we are
3097 using the extended protocol.
3098 (remote_async_resume): Set things up for sync execution only if
3099 this is the first time we are called.
3100
3101 * breakpoint.c (until_break_command_continuation): New function.
3102 Stuff to be done after the target stops during the 'until'
3103 command.
3104 (until_break_command): Set things up for completing the 'until'
3105 command later on. Do the final cleanups only if not running
3106 asynchronously or async execution is not supported by the target.
3107
3108 * infcmd.c (until_command): Recognize '&' at end of command and
3109 handle it properly.
3110 (finish_command_continuation): New function. Do whatever is needed
3111 after the target has stopped.
3112 (finish_command): Recognize '&' at end of command and handle it
3113 properly. Don't do stuff needed after target has stopped if
3114 running asynchronously and target has async. Use exec_cleanup_chain
3115 if running asynchronously and target is asynchronous.
3116
3117 * infrun.c (cmd_continuation): New gloabl variable. Used to
3118 coplete execution commands in async mode, after the target has
3119 stoped.
3120 (fetch_inferior_event): Use exec_cleanup_chain, instead of
3121 cleanup_chain. Do all the exec cleanups at the end. Do all the
3122 continuations at the end. Call complete_execution from here,
3123 instead of normal_stop.
3124 (complete_execution): Cleanup the signals handlers for SIGINT
3125 before displaying the prompt.
3126 (start_remote): Set target_executing to 1.
3127 (normal_stop): Don't call complete_execution from here.
3128
3129Thu Jul 1 19:14:30 1999 Andrew Cagney <cagney@b1.cygnus.com>
3130
3131 * blockframe.c (struct dummy_frame): Add member ``top''.
3132 (generic_push_dummy_frame): Initialize top to sp.
3133 (generic_save_dummy_frame_tos): New function. Initialize top.
3134 (generic_find_dummy_frame): Check for the top of the frame.
3135
3136 * blockframe.c (generic_push_dummy_frame): Free the dummy_frame
3137 registers.
3138
3139 * config/mn10300/tm-mn10300.h (SAVE_DUMMY_FRAME_TOS): Define.
3140 (TARGET_READ_FP): Return the SP as a best guess.
3141
3142Wed Jun 30 15:45:48 1999 Jeffrey A Law (law@cygnus.com)
3143
3144 * configure.host (hppa*-*-hpux11*): Accept any version of hpux11
3145 instead of hpux11.0*.
3146
31471999-06-30 Fernando Nasser <fnasser@totem.to.cygnus.com>
3148
3149 * source.c (directory_command): Add missing test for from_tty.
3150
31511999-06-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3152
3153 * remote.c: Include event-loop.h.
3154 (remote_async_ops, extended_async_remote_ops): Define new target
3155 vector structures for asynchronous debugging.
3156 (remote_async_open): New function. Asynchronous version of
3157 remote_open.
3158 (extended_remote_async_open): New function. Asynchronous version
3159 of extended_remote_open.
3160 (remote_async_open_1): New function. Async version of
3161 remote_open_1.
3162 (remote_async_detach): New function. Async version of
3163 remote_detach.
3164 (remote_async_resume): New function. Async version of
3165 remote_resume.
3166 (initialize_sigint_signal_handler, handle_remote_sigint,
3167 handle_remote_sigint_twice, async_remote_interrupt,
3168 async_remote_interrupt_twice, cleanup_sigint_signal_handler): New
3169 functions. Used for handling ^C while target is running.
3170 (remote_async_wait): New function. Async version of remote_wait.
3171 (remote_async_kill): New function. Async version of remote_kill.
3172 (extended_remote_async_create_inferior): New function. Async
3173 version of extended_remote_create_inferior.
3174 (init_remote_async_ops): New function. Initialize target vector
3175 for target async.
3176 (init_extended_async_remote_ops): New function. Initialize target
3177 vector for target extended-async.
3178 (_initialize_remote): Initialize remote_async_ops and
3179 extended_async_remote_ops.
3180
3181 * infrun.c: Include "event-loop.h".
3182 (sync_execution): new global variable.
3183 (proceed): Invoke wait_for_inferior and normal_stop only if not
3184 running in async mode or if target doesn't support async
3185 execution.
3186 (start_remote): Don't call wait_for_inferior and normal_stop if
3187 not running in async mode or if target not async. If running async
3188 and target is async, start the target in simulated synchronous
3189 mode.
3190 (async_ecss, async_ecs): New global vars, for inferior state.
3191 (fetch_inferior_event): New function. Async version of
3192 wait_for_inferior.
3193 (complete_execution): New function. Reset of gdb prompt and stdin,
3194 after inferior execution has completed.
3195 (normal_stop): Call complete_execution at end of asynchronous
3196 execution.
3197
3198 * infcmd.c (strip_bg_char): New function to detect the background
3199 execution char '&'.
3200 (run_command): Modify to support background and foreground
3201 execution in async mode.
3202 (continue_command): Ditto.
3203 (step_1): Ditto.
3204 (jump_command): Ditto.
3205 (interrupt_target_command): New function. Interrupt the
3206 target execution.
3207 (_initialize_infcmd): Add new command 'interrupt'.
3208
3209 * top.c (target_executing): New global variable.
3210 (execute_command): Reject commands that cannot be executed while
3211 the target is running asynchronously.
3212
3213 * event-top.c (push_prompt): Make non static.
3214 (pop_prompt): Make non static. If the current prompt is empty,
3215 don't try to copy it over the previous one.
3216 (handle_sigint): Make non static.
3217 (command_handler): Do the cleanups only when not executing with an
3218 asynchronous target.
3219
3220 * event-loop.c (delete_async_signal_handler): Pass a pointer to a
3221 pointer to a signal handler, so that is can be freed at the end.
3222
3223 * target.c (update_current_target): Inherit to_has_async_exec.
3224
3225 * inferior.h: Add global variables target_executing, and
3226 sync_execution. Export function fetch_inferior_event.
3227
3228 * event-loop.h: Add push_prompt, pop_prompt, handle_sigint to the
3229 exported functions. Update prototype for delete_signal_handler.
3230
3231 * target.h (struct target_ops): New target op: to_has_async_exec.
3232 (target_has_async): New macro.
3233
3234 * Makefile.in (infrun.o): Add dependency on event-loop.h.
3235 (remote.o): Ditto.
3236
085dd6e6
JM
32371999-06-28 Jim Blandy <jimb@zwingli.cygnus.com>
3238
3239 * solib.c (clear_solib): Don't disable breakpoints if we're
3240 running an a.out executable (Solaris's SunOS emulation).
3241
32421999-06-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3243
3244 * main.c (main): Remove intialization of command_loop_hook, it
3245 is now done in _initialize_event_loop().
3246 * event-loop.c (gdb_do_one_event): Make static.
3247 (start_event_loop): New function. Just start the event loop.
3248 * event-top.c (cli_command_loop): New name for start_event_loop().
3249 (gdb_readline2): Make non static.
3250 (_initialize_event_loop): Set command_loop_hook to cli_command_loop.
3251 * event-loop.h: Adjust exported functions accordingly.
3252
3253 * top.c (init_main): Move setting of async_command_editing_p from
3254 here.
3255 * event-top.c (_initialize_event_loop): To here.
3256 (change_line_handler): Revert previous change. Add comment.
3257 (_initialize_event_loop): Revert previous change.
3258 (cli_command_loop): New name for start_event_loop().
3259 (start_event_loop): New function. This just starts up the event loop.
3260 (gdb_readline2): Make non static.
3261 (_initialize_event_loop): Set command_loop_hook to cli_command_loop.
3262
32631999-06-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3264
3265 * event-top.c (change_line_handler): Get rid of the global
3266 variable input_fd, use `fileno (instream)' instead.
3267 (_initialize_event_loop): Ditto
3268
3269 * event-loop.c (add_file_handler): New function. Wrapper for
3270 create_file_handler.
3271 (create_file_handler): Make static.
3272 * event-top.c (_initialize_event_loop): Call add_file_handler,
3273 instead of create_file_handler.
3274 (change_line_handler): Ditto.
3275 Remove poll.h include.
3276 * event-loop.h: Export add_file_handler instead of
3277 create_file_handler.
3278
32791999-06-24 Stan Shebs <shebs@andros.cygnus.com>
3280
3281 Declare Altos configuration obsolete.
3282 * configure.host, configure.tgt: Comment out Altos config.
3283 * Makefile.in: Comment out Altos-related actions.
3284 * altos-xdep.c, config/m68k/altos.mh, altos.mt, tm-altos.h,
3285 xm-altos.h: Comment out.
3286 * NEWS: Mention obsolete status.
3287
32881999-06-24 Jason Molenda (jsm@bugshack.cygnus.com)
3289
3290 * Makefile.in: Add MAKEHTML and MAKEHTMLFLAGS; pass them down;
3291 recognize html and install-html targets.
3292 * gdbserver/Makefile.in: Add empty html and install-html targets.
3293 * nlm/Makefile.in: Ditto.
3294 * rdi-share/Makefile.in: Ditto.
3295
32961999-06-24 Jim Blandy <jimb@zwingli.cygnus.com>
3297
3298 * ax-gdb.c (agent_command): Remove vestigial call to ax_reqs.
3299
33001999-06-24 James Ingham <jingham@leda.cygnus.com>
3301
3302 * arm-tdep.c (arm_othernames): Change both gdb's register display
3303 AND the opcode disassembly register naming if the othernames
3304 command. Fixes the gdb part of CR 101177.
3305
33061999-06-23 Stan Shebs <shebs@andros.cygnus.com>
3307
3308 Declare Convex configuration obsolete.
3309 * configure.host, configure.tgt: Comment out Convex configs.
3310 * Makefile.in: Comment out Convex-related actions.
3311 * convex-xdep.c, convex-tdep.c, config/convex/*: Comment out.
3312 * NEWS: Mention obsolete status.
3313
33141999-06-23 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3315
3316 * main.c: Turn on async by default by setting async_p to 1.
3317
3318Wed Jun 23 15:44:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
3319
3320 From Jimmy Guo <guo@cup.hp.com>:
3321 * frame.h (enum lval_type): Delcare when an __STDC__ compiler.
3322 Reverts Mon Aug 11 16:08:52 1997 Fred Fish <fnf@cygnus.com>
3323 change.
3324 * utils.c (gdb_file_rewind, gdb_file_put): Fix. A void function
3325 does not return a result.
3326
3327Wed Jun 23 15:30:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
3328
3329 * remote.c (set_thread, remote_get_threadinfo,
3330 remote_threads_info, remote_current_thread, remote_get_threadlist,
3331 extended_remote_restart, get_offsets, remote_open_1,
3332 remote_detach, remote_resume, remote_wait, remote_fetch_registers,
3333 remote_store_registers, check_binary_download, remote_write_bytes,
3334 remote_read_bytes, remote_search, putpkt_binary, putpkt_binary,
3335 read_frame, compare_sections_command, remote_query,
3336 packet_command, remote_info_process): Use alloca to create space
3337 for arrays of size PBUFSIZ.
3338
33391999-06-22 Jason Molenda (jsm@bugshack.cygnus.com)
3340
3341 * top.c: Update copyright years to include 1999.
3342
9e0b60a8
JM
33431999-06-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3344
3345 * top.c: Move include of event-loop.h, to avoid redefinition of
3346 NFDBITS.
3347
3348 * event-loop.c (create_file_handler): Do not do a realloc of the
3349 pollfd structure of the notifier, unless there is already one.
3350 Include <sys/types.h> for platforms that have no poll.
3351
3352 * event-top.c: Fix prototype for _initialize_event_loop.
3353 (_initialize_event_loop): Do something only if running in async
3354 mode.
3355
33561999-06-17 Jim Blandy <jimb@zwingli.cygnus.com>
3357
3358 Make the '/c' print format use a true character type. This is
3359 more appropriate than builtin_type_char for languages other than
3360 C, and C tolerates it.
3361 * gdbtypes.c (builtin_type_true_char): New variable.
3362 (build_gdbtypes): Initialize it.
3363 * gdbtypes.h (builtin_type_true_char): New declaration.
3364 * printcmd.c (print_scalar_formatted): When the format is 'c',
3365 extract the value as a builtin_type_true_char.
3366
3367 * jv-exp.y (yylex): Say character literals are java_char_type, not
3368 builtin_type_char. Java treats the latter like `byte'.
3369
33701999-06-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3371
3372 * Makefile.in (top_h): Define.
3373 (event-loop.o): Add dependencies on top.h and defs.h.
3374 (event-top.o): Add dependency on terminal.h.
43ff13b4 3375
9e0b60a8
JM
3376 * event-loop.c: Get rid of #include <readline.h>.
3377
3378 * event-loop.h: Get rid of nested #include's.
3379 * event-loop.c: Rearrange includes to accomodate change in
3380 event-loop.h. Include poll.h, not sys/poll.h.
3381 * event-top.c: Ditto.
3382 * main.c: Ditto.
3383
33841999-06-16 David Taylor <taylor@louisiana.cygnus.com>
3385
3386 * alpha-tdep.c (alpha_pop_frame): if frame->proc_desc
3387 is NULL, call find_proc_desc so we know how to restore
3388 the registers.
3389
33901999-06-15 Michael Snyder <msnyder@cleaver.cygnus.com>
3391
3392 * event-top.c (start_event_loop): call get_prompt.
3393 (display_gdb_prompt): call get_prompt.
3394 (async_stop_sig): call get_prompt.
3395
33961999-06-15 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3397
3398 * event-loop.c (delete_file_handler): When positioning prev_ptr,
3399 keep looping while the one after is not equal to file_ptr, instead
3400 of equal.
3401
0f71a2f6
JM
34021999-06-14 Stan Shebs <shebs@andros.cygnus.com>
3403
3404 * MAINTAINERS: Add Jimmy Guo and Jim Blandy as HP testsuite and
3405 SVR4 solib maintainers, respectively.
3406
34071999-06-14 Michael Snyder <msnyder@cleaver.cygnus.com>
3408
3409 Add parameters to the gdb prompt.
3410 * top.c (prompt): Rename to gdb_prompt_string for clarity.
3411 (command_line_input): rename "prrompt" to prompt_arg for clarity.
3412 (gdb_readline): rename "prrompt" to prompt_arg for clarity.
3413 (read_command_lines): rename "prompt" to prompt_arg for clarity.
3414 (stop_sig): call get_prompt instead of reading prompt string directly.
3415 (command_loop): ditto.
0f71a2f6
JM
3416 (gdb_prompt_escape): New variable. Esc char for prompt parameters.
3417 (get_prompt_1): New function, workhorse for get_prompt.
3418 (get_prompt): Completely rewrite. Add functionality for a
3419 parameterized prompt, ie. the displayed prompt can change according
3420 to the value of one or more expressions given as parameters in the
3421 prompt string.
3422 (init_main): use renamed variable gdb_prompt_string. Add new
3423 command "set prompt-escape-char" to set gdb_prompt_escape.
3424
3425Sun Jun 13 10:44:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
3426
3427 * defs.h (gdb_stdlog), main.c: Declare.
3428 * main.c (main): Initialize.
3429 * gdbarch.c: Write trace messages to the log file.
3430 * remote.c: Update any debug/log prints.
3431
34321999-06-11 Michael Snyder <msnyder@cleaver.cygnus.com>
3433
3434 * remote.c (remote_wait): Clean up new thread handling.
3435 (record_currthread): Announce new threads.
3436
34371999-06-11 Jim Blandy <jimb@zwingli.cygnus.com>
3438
3439 * partial-stab.h (case N_LSYM, 'T' descriptor): Don't create
3440 partial symbol table entries for nameless enums, even if the type
3441 name is " ". (We still pick up the enum elements, though.)
3442
3443 * partial-stab.h: Remove #if 0'd sections, dating back to 1992,
3444 which set a variable which exists nowhere else in the source.
3445 Please examine your test suite output carefully, and report any
3446 problems to me.
3447
34481999-06-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3449
3450 * event-top.c (setup_event_loop): Change name to start_event_loop.
3451 Move the intialization of event-loop variables to
3452 _initialize_event_loop.
3453 (_initialize_event_loop): New function. Called at init time, to
3454 set up important event-loop variables.
3455
3456 * event-loop.h: setup_event_loop is now start_event_loop.
3457 * main.c (main): Ditto.
3458
3459Fri Jun 11 18:34:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
3460
3461 * defs.h (gdb_file_rewind_ftype, gdb_file_rewind,
3462 set_gdb_file_rewind, gdb_file_put_ftype, gdb_file_put,
3463 set_gdb_file_put): Declare.
3464
3465 * utils.c (gdb_file_new): Initialize ``rewind'' and ``put''.
3466 (struct gdb_file): Add to_rewind and to_put.
3467 (null_file_put, null_file_rewind, gdb_file_put, gdb_file_rewind,
3468 set_gdb_file_put, set_gdb_file_rewind): New functions.
3469 (tui_file_rewind, tui_file_put): New functions.
3470 (tui_file_new): Add rewind and put.
3471
3472Fri Jun 11 15:10:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
3473
3474 * d10v-tdep.c (d10v_push_arguments): Fix order of arguments passed
3475 to store_address.
3476
3477Fri Jun 11 10:31:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
3478
3479 * remote.c (tty_input): Change array to pointer.
3480 (_initialize_remote): Call build_remote_gdbarch_data.
3481 (build_remote_gdbarch_data): New function. Allocate space for
3482 tty_input.
3483 (readsocket, readtty): Delete extern declaration of tty_input.
3484
34851999-06-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3486
3487 * event-top.c (gdb_readline2): Call the command handling function
3488 via the input_handler pointer.
3489 (change_line_handler): When turning off editing, set input_handler
3490 as well.
3491
3492 * utils.c (prompt_for_continue): If running asynchronously, call
3493 async_request_quit, instead of request_quit.
3494
3495 * tracepoint.c (read_actions): If running asynchronously, set the
3496 signal handler for STOP_SIGNAL to handle_stop_sig.
3497
3498 * top.h: (source_line_number, source_file_name, source_error,
3499 source_pre_error, history_expansion_p, server_command): export for
3500 use of event-top.c.
3501
3502 * event-top.c: Include top.h and terminal.h.
3503 (instream): Remove extern declaration.
3504 (handle_sigint, handle_sigquit, handle_sighup, handle_sigfpe,
3505 handle_sigwinch, async_do_nothing, async_disconnect,
3506 async_float_handler, async_stop_sig): Make static.
3507 (async_request_quit, async_do_nothing, async_disconnect,
3508 async_float_handler, async_stop_sig): Add gdb_glient_data
3509 argument.
3510 (handle_stop_sig): New function.
3511 (sigtstp_token): New variable.
3512 (sigint_token, sigquit_token, sigfpe_token, sigwinch_token):
3513 Change their type tp PTR.
3514 (mark_async_signal_handler_wrapper): New function.
3515 (setup_event_loop): Initialize all the variables used by readline
3516 only if not already done while reading the .gdbinit file. Display
3517 the initial gdb prompt, if .gdbinit took care of setting things up
3518 for readline.
3519 (change_line_handler): When turning on the use of readline,
3520 initialize input_handler as well.
3521 (command_line_handler): Set up the signal handler for STOP_SIGNAL
3522 to be handle_stop_sig.
3523 (async_init_signals): Remove coercion of signal handlers in calls
3524 to create_async_signal_handler. Initialize token for stop signal.
3525 (handle_sigint): Call async_request_quit using one argument.
3526 (handle_sigint, handle_sigquit, handle_sighup, handle_sigfpe,
3527 handle_sigwinch): Call mark_async_signal_handler_wrapper instead
3528 of mark_async_signal_handler.
3529
3530 * event-loop.h: Add extern declarations for handle_stop_sig,
3531 async_command_editing_p, async_annotation_suffix,
3532 new_async_prompt, the_prompts.
3533
3534 * top.c (command_line_input): Set the signal handler to be
3535 handle_stop_sig, in case gdb is running asynchronously.
3536 (get_prompt): Return the top of the prompt stack if running
3537 asynchronously.
3538 (set_prompt): Set the top of the prompt stack if running
3539 asynchronously.
3540 (init_main): Move ``extern'' vars from here to event-loop.h.
3541
35421999-06-10 Michael Snyder <msnyder@cleaver.cygnus.com>
3543
3544 * values.c (value_from_string): new function. Make a value_ptr
3545 from a string, with storage in local GDB memory (not in inferior).
3546 * value.h (value_from_string): add prototype.
3547 * remote.c (remote_cisco_ops): New remote target, "target cisco".
3548 (init_remote_cisco_ops): New function, initialize new target.
3549 (remote_cisco_mourn, remote_cisco_wait, remote_cisco_open,
3550 remote_cisco_close): New functions, implement new target cisco.
3551 (minitelnet, readtty, readsocket) New functions, implement the
3552 I/O pass-through mode for target cisco.
3553 (remote_wait): Detect special enhanced version of the 'S' packet
3554 for target cisco.
3555 (remote_cisco_expand): Perform Cisco variant of RLL decoding.
3556
35571999-06-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3558
3559 * event-loop.c (gdb_wait_for_event): Initialize num_found to 0.
3560
3561 * top.c (print_prompt): Delete this function.
3562
3563 From: Andrew Cagney <cagney@b1.cygnus.com>
3564
3565 * event-top.c (async_hook): Delete extern declaration.
3566
3567 * defs.h: Replace ``async_hook'' with ``async_p''.
3568 * top.c (gdb_init, init_main, init_main, init_main, init_main):
3569 Replace ``async_hook'' with ``async_p''.
3570
3571 * main.c: Rename ``async'' to ``async_p''.
3572 (main): Add --noasync option.
3573 (main): Hook in the asynchronous event-loop based CLI using
3574 command_loop_hook instead of async_hook. Delete call to
3575 async_hook().
3576
3577Thu Jun 10 21:14:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
3578
3579 * mn10300-tdep.c (mn10300_store_return_value,
3580 mn10300_extract_struct_value_address,
3581 mn10300_extract_return_value), config/mn10300/tm-mn10300.h: New
3582 functions.
3583 * config/mn10300/tm-mn10300.h (EXTRACT_STRUCT_VALUE_ADDRESS,
3584 STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE): Update.
3585 (TARGET_MN10300): Delete macro. Not used.
3586
3587Thu Jun 10 20:04:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
3588
3589 * mn10300-tdep.c (mn10300_register_names): Make static.
3590 (STORE_STRUCT_RETURN): Do not modify SP.
3591
3592 * config/mn10300/tm-mn10300.h(mn10300_register_name),
3593 mn10300-tdep.c : New function.
3594 * config/mn10300/tm-mn10300.h (REGISTER_NAME): Update.
3595 * config/mn10300/tm-mn10300.h (mn10300_saved_pc_after_call),
3596 mn10300-tdep.c: New function.
3597 * config/mn10300/tm-mn10300.h (SAVED_PC_AFTER_CALL): Update.
3598
96baa820
JM
35991999-06-10 Keith Seitz <keiths@cygnus.com>
3600
3601 * mcore-rom.c (picobug_dumpregs): Return a value. Any value, it
3602 doesn't matter.
3603 * mcore-tdep.c (mcore_analyze_prologue): Set NO_MORE_FRAMES
3604 if the start of the function is the entry point.
3605 (mcore_analyze_prologue): rotli takes an immediate, not an
3606 offset immediate.
3607 (mcore_push_arguments): Fix compiler warning.
3608
0f71a2f6 36091999-06-09 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
104c1213 3610
0f71a2f6
JM
3611 * rs6000-tdep.c (skip_prologue): Don't mistake a branch for a
3612 subroutine call.
3613
36141999-06-08 Michael Snyder <msnyder@cleaver.cygnus.com>
3615
3616 * remote.c (remote_wait): Add 'N' response packet, which is a
3617 stop with signal number plus section offsets for .text, .data and
3618 .bss. This is used by Cisco to indicate relocation offsets.
3619 (remote_cisco_section_offsets, remote_cisco_objfile_relocate):
3620 new files to support 'N' packet.
3621 (remote_info_process): New function. Implements the
3622 "info remote-process" command, by means of which the remote target
3623 can report anything it wants to about the remote process/app being
3624 debugged.
3625 (_initialize_remote): add info remote-proc command.
3626 (remote_threads_info): New function for "info threads" command.
3627 Attempts to use new query "qfThreadInfo" instead of the old
3628 undocumented query.
3629 * exec.c (exec_set_section_offsets) new files to support 'N' packet.
3630
3631Tue Jun 8 13:33:42 1999 Andrew Cagney <cagney@amy.cygnus.com>
3632
3633 * inferior.h (generic_target_read_pc, generic_target_write_pc,
3634 generic_target_read_fp, generic_target_write_fp,
3635 generic_target_read_sp, generic_target_write_sp): Declare new
3636 functions.
3637 * findvar.c (generic_target_read_pc, generic_target_write_pc,
3638 generic_target_read_fp, generic_target_write_fp,
3639 generic_target_read_sp, generic_target_write_sp): New functions.
3640 (TARGET_READ_PC, TARGET_WRITE_PC, TARGET_READ_FP, TARGET_WRITE_FP,
3641 TARGET_READ_SP, TARGET_WRITE_SP): Default to corresponding generic
3642 function.
3643 (write_pc_pid, write_pc_pid, read_sp, write_sp, read_fp,
3644 write_fp): Simplify.
3645
3646 * gdbarch.c (verify_gdbarch): Always verify TARGET_PTR_BIT,
3647 TARGET_SHORT_BIT, TARGET_INT_BIT, TARGET_LONG_BIT,
3648 TARGET_LONG_LONG_BIT, TARGET_FLOAT_BIT, TARGET_DOUBLE_BIT,
3649 TARGET_LONG_DOUBLE_BIT, TARGET_READ_PC, TARGET_WRITE_PC,
3650 TARGET_READ_FP, TARGET_WRITE_FP, TARGET_READ_SP, TARGET_WRITE_SP,
3651 USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY_BREAKPOINT_OFFSET_P,
3652 CALL_DUMMY_P, CALL_DUMMY_STACK_ADJUST_P, GET_SAVED_REGISTER,
3653 REGISTER_CONVERTIBLE, PUSH_ARGUMENTS, PUSH_RETURN_ADDRESS,
3654 FRAME_CHAIN_VALID.
3655 (GET_GDBARCH, SET_GDBARCH): Delete macros. Implement functions
3656 directly.
3657 * gdbarch.h, gdbarch.c: Call fatal() instead of abort(). Identify
3658 the function / macro with a problem. Always verify a architecture
3659 attribute before returning it.
3660 * gdbarch.h, gdbarch.c (generic_register_convertible_not): New
3661 function.
3662
3663 * mips-tdep.c (mips_push_return_address): New function.
3664 * config/mips/tm-mips.h (PUSH_RETURN_ADDRESS): Define.
3665
3666 * mips-tdep.c (mips_gdbarch_init): Initialize short_bit,
3667 double_bit, long_double_bit, read_pc, write_pc, read_fp, write_fp,
3668 read_sp, write_sp, frame_chain_valid, get_saved_register,
3669 push_arguments, push_return_address, register_convertible,
3670 call_dummy_p, use_generic_dummy_frames,
3671 call_dummy_breakpoint_offset_p, call_dummy_stack_adjust_p,
3672 call_dummy_words and sizeof_call_dummy_words.
3673 * config/mips/tm-mips.h: Don't define CALL_DUMMY when multi-arch.
3674
cce74817
JM
36751999-06-07 Keith Seitz <keiths@cygnus.com>
3676
3677 * v850ice.c (init_hidden_window): Do not rely on the existence of
3678 a gui for window creation. Return boolean status.
3679 (v850ice_open): Use boolean status of init_hidden_window.
3680 Allow any ICE execution command to run under CLI. Maybe one
3681 day gdb will use a real event loop and allow this code to run.
3682 * configure.tgt: Configure the v850 ice for all cygwin-hosted
3683 toolchains.
3684
3685Mon Jun 7 23:37:26 1999 Andrew Cagney <cagney@amy.cygnus.com>
3686
3687 * config/mips/tm-mips.h (EXTRA_FRAME_INFO): Delete.
3688 * mips-tdep.c (mips_init_extra_frame_info): Allocate saved_regs.
3689 (temp_saved_regs): Replace struct with a simple pointer.
3690 (set_reg_offset, mips32_heuristic_proc_desc, heuristic_proc_desc,
3691 mips_init_extra_frame_info): Update.
3692
3693Mon Jun 7 21:40:12 1999 Andrew Cagney <cagney@amy.cygnus.com>
3694
3695 * config/mips/tm-mips.h (EXTRA_FRAME_INFO): Move elements from here.
3696 * mips-tdep.c (struct frame_extra_info): To here.
3697
3698 * mips-tdep.c (mips_print_extra_frame_info, mips_find_saved_regs,
3699 mips_init_extra_frame_info, mips_pop_frame): Update
3700 (mips_init_extra_frame_info): Allocate space for the extra info.
3701
3702Mon Jun 7 21:08:50 1999 Andrew Cagney <cagney@amy.cygnus.com>
3703
3704 * config/mips/tm-mips.h (mips_init_extra_frame_info), mips-tdep.c:
3705 Rename init_extra_frame_info. Add argument ``fromleaf''.
3706
3707 * config/mips/tm-mips.h (mips_print_extra_frame_info),
3708 mips-tdep.c: New function.
3709 (PRINT_EXTRA_FRAME_INFO): Update definition.
3710
3711Mon Jun 7 20:11:07 1999 Andrew Cagney <cagney@amy.cygnus.com>
3712
3713 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
3714 config/mips/tm-tx19.h, config/mips/tm-tx19l.h,
3715 config/mips/tm-tx39.h, config/mips/tm-tx39l.h: Rename macro
3716 REGISTER_NAMES to MIPS_REGISTER_NAMES.
3717
3718 * config/mips/tm-mips.h (REGISTER_NAME): Define.
3719 * mips-tdep.c (mips_processor_reg_names): New static variable.
3720 (mips_register_name): New function.
3721 (mips_set_processor_type): Update mips_processor_reg_names.
3722 (mips_generic_reg_names): Initialize using MIPS_REGISTER_NAMES.
3723
3724Sun Jun 6 11:09:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
3725
3726 * remote.c (PBUFSIZ): Re-define so that value is computed at
3727 run-time.
3728 (MAXBUFBYTES): Re-define as a macro function.
0f71a2f6
JM
3729 * gdbarch.h, gdbarch.c: Add multi-arch support for REGISTER_BYTES.
3730 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
cce74817
JM
3731
37321999-06-05 Fernando Nasser <fnasser@totem.to.cygnus.com>
3733
3734 * symtab.c (decode_line_1): Accept filenames with spaces in
3735 'linespecs' when enclosed in double quotation marks and handle
3736 drive specification is DOS format (D:).
3737
37381999-06-04 Jim Blandy <jimb@zwingli.cygnus.com>
3739
3740 * parse.c: Don't include <ctype.h> twice.
3741
37421999-06-04 David Taylor <taylor@louisiana.cygnus.com>
3743
3744 Sat May 15 12:16:09 1999 Per Bothner <bothner@deneb.cygnus.com>
3745
3746 * eval.c (evaluate_subexp_standard): Remove Gilmore rant.
3747 (Of course C has "expected types", at least if you allow
3748 brace-initializer expressions - as in Gcc.)
3749 Remove NULLing out expect_type. Do pass NULL_TYPE in place
3750 the incoming expect_type where appropriate.
3751
3752Fri Jun 4 10:56:23 1999 Jeffrey A Law (law@cygnus.com)
3753
3754 * hppa-tdep.c (hppa_fix_call_dummy): Make it work for GCC compiled
3755 executables without end.o. Clean up lots of mis-guided comments.
3756
3757Fri Jun 4 17:10:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
3758
3759 * parser-defs.h (std_regs): Replace array with pointer.
3760 * parse.c (build_parse): Build the std_regs table according to the
3761 standard registers available.
0f71a2f6
JM
3762 (_initialize_parse): Register std_regs and num_std_regs as
3763 architecture specific.
3764 * gdbarch.h, gdbarch.c: Add multi-arch support for SP_REGNUM,
3765 FP_REGNUM, PC_REGNUM, NUM_REGS, REGISTER_NAME.
3766 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
cce74817
JM
3767
37681999-06-03 Michael Snyder <msnyder@cleaver.cygnus.com>
3769
3770 * thread.c: eliminate the target_thread_vector (functionality
3771 moved into the standard target vector).
3772 * gdbthread.h: eliminate target_thread_vector. Move all related
3773 defines into remote.c, since they are no longer shared with thread.c.
3774 * remote.c: eliminate the target_thread_vector.
3775 (remote_find_new_threads): change return type to void, consistent
3776 with the target vector table. (cont_thread): rename continue_thread.
3777 (record_currthread): remove dead code. (remote_thread_alive):
3778 clean up and simplify. (threadref etc.): move definitions to here
3779 from gdbthread.h.
3780
37811999-06-02 Jason Molenda (jsm@bugshack.cygnus.com)
3782
3783 * inftarg.c (child_create_inferior): Remove dead HPUX specific code
3784 which tries to find csh.
3785 * fork-child.c: Remove DEBUGGING predefine and conditionalized
3786 printfs.
3787 (fork_inferior): Remove dead HPUX specific code which assumes shell
3788 is csh.
3789
3790 * hppa-tdep.c: Remove DEBUGGING and #if 0 debugging printfs.
3791 * parse.c: Ditto.
3792 * somread.c: Ditto.
3793
0f71a2f6
JM
3794 * gdbarch.h: Forward decl of struct value.
3795
cce74817
JM
3796Thu Jun 3 10:12:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
3797
3798 * d10v-tdep.c (do_d10v_pop_frame): Rename d10v_pop_frame. Make
3799 static.
3800 * d10v-tdep.c (d10v_pop_frame), config/d10v/tm-d10v.h: New
3801 function. Call generic_pop_current_frame.
3802 * config/d10v/tm-d10v.h (POP_FRAME): Update.
3803 * gdbarch.h, gdbarch.c (frame_num_args_unknown): New function.
0f71a2f6
JM
3804 * gdbarch.h, gdbarch.c: Add multi-arch support for POP_FRAME,
3805 SKIP_PROLOGUE, INNER_THAN, DECR_PC_AFTER_BREAK,
3806 FUNCTION_START_OFFSET, REMOTE_TRANSLATE_XFER_ADDRESS, FRAME_CHAIN,
3807 FRAME_CHAIN_VALID, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS,
3808 FRAME_LOCALS_ADDRESS, FRAME_ARGS_SKIP,
3809 FRAMELESS_FUNCTION_INVOCATION, REGISTER_BYTE, REGISTER_RAW_SIZE,
3810 REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, SAVED_PC_AFTER_CALL,
3811 FRAME_NUM_ARGS, MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3812 REGISTER_SIZE.
3813 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
cce74817
JM
3814 * config/d10v/tm-d10v.h (DMEM_START, IMEM_START, STACK_START,
3815 ARG1_REGNUM, ARGN_REGNUM, RET1_REGNUM): Move definitions from
3816 here.
3817 * d10v-tdep.c: To here.
3818 * config/d10v/tm-d10v.h (struct type): Move declaration from here.
3819 * gdbarch.h: To here.
3820 * config/d10v/tm-d10v.h (struct frame_info, struct
3821 frame_saved_regs, struct type): Delete declarations.
3822
38231999-06-02 Robert Hoehne <robert.hoehne@gmx.net>
3824
3825 * go32-nat.c: go32_terminal_init, go32_terminal_inferior and
3826 go32_terminal_ours are new functions to save/restore the inferior`s
3827 stdin/stdout filemodes
3828
38291999-06-02 Stan Shebs <shebs@andros.cygnus.com>
3830
3831 * MAINTAINERS: Add Mark Kettenis, Jeff Law, and Philippe De Muyter
3832 as maintainers for Hurd, HP/UX, and COFF, respectively.
3833
38341999-06-02 Mark Kettenis <kettenis@gnu.org>
3835
3836 * gnu-nat.c (inf_continue): New function.
3837 (struct inf): Use `unsigned int' instead of `int' for bit-fields.
3838 Add new bit-field named `nomsg'.
3839 (inf_validate_procinfo): Renamed from inf_validate_stopped, all
3840 callers changed. Also update the `nomsg' and `traced' fields of
3841 INF.
3842 (make_inf): Initialize INF->nomsg.
3843 (inf_cleanup): Reset INF->nomsg.
3844 (inf_detach): Call `inf_validate_procinfo'. Call `inf_continue'
3845 instead of `inf_signal' if the inferior does not have a message
3846 port.
3847 (gnu_resume): Likewise.
3848 (gnu_create_inferior): Reset INF->nomsg in `attach_to_child'.
3849 Call `inf_validate_procinfo' after returning from `fork_inferior'.
3850 (gnu_attach): Update signal thread and tracing state.
3851
3852 * config/i386/tm-i386gnu.h: Include "i386/tm-i386.h" instead of
3853 "i386/tm-i386v.h".
3854 (STACK_END_ADDR): Remove.
3855 (SIGCONTEXT_PC_OFFSET): New define.
3856 Include "tm-sysv4.h".
3857
38581999-06-02 J.T. Conklin <jtc@redback.com>
3859
3860 * config/tm-vxworks.h: New file, header for definitions common to
3861 all vxWorks targets.
3862 * config/a29k/tm-vx29k.h, config/i960/tm-vx960.h,
3863 config/m68k/tm-vx68.h, config/mips/tm-vxmips.h,
3864 config/sparc/tm-vxsparc.h: Include tm-vxworks.h.
3865
3866Wed Jun 2 17:37:03 1999 Jeffrey A Law (law@cygnus.com)
3867
3868 * config/pa/tm-hppa.h (IMPORT_SHLIB): New unwind stub type.
3869
38701999-06-02 Christopher Faylor <cgf@cygnus.com>
3871
3872 * configure.tgt: Alphabetically reorder some targets.
3873
38741999-06-02 Keith Seitz <keiths@cygnus.com>
3875
3876 * v850ice.c (v850ice_xfer_memory): Insert lost "break".
3877
38781999-06-02 Jim Blandy <jimb@zwingli.cygnus.com>
3879
3880 * rs6000-tdep.c (variants): Fix description of 750 register set.
3881 (Thanks to J. T. Conklin.)
3882
3883Wed Jun 2 16:10:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
3884
0f71a2f6
JM
3885 * gdbarch.h, gdbarch.c: Add multi-arch support for
3886 STORE_STRUCT_RETURN, STORE_RETURN_VALUE,
3887 EXTRACT_STRUCT_VALUE_ADDRESS, USE_STRUCT_CONVENTION,
3888 FRAME_INIT_SAVED_REGS and INIT_EXTRA_FRAME_INFO.
3889 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
3890
cce74817
JM
3891 * config/d10v/tm-d10v.h (FRAME_INIT_SAVED_REGS): Replace
3892 FRAME_FIND_SAVED_REGS.
3893 (d10v_frame_init_saved_regs): Replace d10v_frame_find_saved_regs.
3894 * d10v-tdep.c (d10v_pop_frame, d10v_frame_chain,
3895 d10v_frame_init_saved_regs): Update.
0f71a2f6
JM
3896 * gdbarch.h: Disallow FRAME_FIND_SAVED_REGS when multi-arch.
3897
3898 * gdbarch.h, gdbarch.c: Add multi-arch support for
3899 D10V_MAKE_DADDR, D10V_MAKE_IADDR, D10V_DADDR_P, D10V_IADDR_P,
3900 D10V_CONVERT_DADDR_TO_RAW and D10V_CONVERT_IADDR_TO_RAW.
3901 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
cce74817
JM
3902
3903 * config/d10v/tm-d10v.h (EXTRA_FRAME_INFO): Delete.
3904 * d10v-tdep.c (struct frame_extra_info): Define.
3905 (d10v_init_extra_frame_info, d10v_pop_frame, d10v_frame_chain,
3906 d10v_frame_find_saved_regs): Update.
0f71a2f6 3907 * gdbarch.h: Disallow EXTRA_FRAME_INFO when multi-arch.
cce74817
JM
3908
3909Tue Jun 1 13:36:31 1999 Philippe De Muyter <phdm@macqel.be>
3910
3911 * config/m68k/tm-delta68.h (FRAME_NUM_ARGS): Macro prototype fixed.
3912 * config/m68k/tm-news.h, config/ns32k/tm-merlin.h: Ditto.
3913 * config/ns32k/tm-umax.h (FRAME_NUM_ARGS): Old macro definition
3914 removed; new macro prototype fixed.
3915
3916Wed Jun 2 11:18:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
3917
0f71a2f6
JM
3918 * gdbarch.h, gdbarch.c: Add multi-arch support for
3919 EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS, PUSH_DUMMY_FRAME,
3920 PUSH_RETURN_ADDRESS, POP_FRAME, FRAME_FIND_SAVED_REGS.
3921 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
3922
3923 * gdbarch.h, gdbarch.c: Add multi-arch support for
3924 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3925 REGISTER_CONVERT_TO_RAW.
3926 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
3927
cce74817
JM
3928 * defs.h (REGISTER_NAME): Move compatibility definition from here.
3929 * gdbarch.h: To here.
3930
3931 * frame.h, blockframe.c (generic_fix_call_dummy): New
3932 stub function.
0f71a2f6
JM
3933 * gdbarch.h, gdbarch.c: Add multi-arch support for FIX_CALL_DUMMY.
3934 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
3935
3936Tue Jun 1 20:06:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
3937
3938 * d10v-tdep.c (d10v_gdbarch_init): Set get_saved_register.
3939 * config/d10v/tm-d10v.h: Update.
3940
3941Tue Jun 1 19:50:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
3942
3943 * gdbarch.h, gdbarch.c: Add multi-arch support for TARGET_READ_PC,
3944 TARGET_WRITE_PC, TARGET_READ_FP, TARGET_WRITE_FP, TARGET_READ_SP
3945 and TARGET_WRITE_SP.
3946 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
3947
3948Tue Jun 1 19:19:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
3949
3950 * gdbarch.c (default_gdbarch): Set field GET_SAVED_REGISTER to
3951 generic_get_saved_register.
3952 * gdbarch.c: Change update dispatch functions so that they check
3953 for a NULL function pointer.
3954
3955Tue Jun 1 19:19:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
cce74817 3956
0f71a2f6
JM
3957 * gdbarch.h, gdbarch.c: Add multi-arch support for TARGET_INT_BIT,
3958 TARGET_CHAR_BIT, TARGET_SHORT_BIT, TARGET_FLOAT_BIT,
3959 TARGET_DOUBLE_BIT and TARGET_LONG_DOUBLE_BIT.
3960 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
3961
ac9a91a7
JM
3962Tue Jun 1 18:47:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
3963
3964 * parse.c (build_parse): New function. Initialize
3965 msym_text_symbol_type, msym_data_symbol_type and
3966 msym_unknown_symbol_type.
3967 (_initialize_parse): Call build_parse.
0f71a2f6
JM
3968 (_initialize_parse): Register variables msym_text_symbol_type,
3969 msym_data_symbol_type as msym_unknown_symbol_type as
3970 per-architecture.
3971
3972Tue Jun 1 11:30:09 1999 Andrew Cagney <cagney@b1.cygnus.com>
3973
3974 * d10v-tdep.c (_initialize_d10v_tdep): Register d10v as an
3975 architecture.
3976 (d10v_gdbarch_init): New function.
3977 * confg/d10v/tm-d10v.h (GDB_MULTI_ARCH): Define.
ac9a91a7
JM
3978
3979Tue Jun 1 10:45:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
3980
3981 * config/d10v/tm-d10v.h (REGISTER_CONVERTIBLE,
3982 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERT_TO_VIRTUAL): Convert
3983 macros into functions.
3984 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_register_convertable,
3985 d10v_register_convert_to_virtual, d10v_register_convert_to_raw):
3986 The new functions.
3987
39881999-05-31 Fernando Nasser <fnasser@totem.to.cygnus.com>
3989
3990 * stack.c (print_args_stub): Add missing stream parameter.
3991
3992Mon May 31 15:50:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
3993
3994 Fri May 28 16:51:00 1999 Martin Dorey <martin.dorey@madge.com>:
3995 * valops.c, value.h (default_push_arguments): Fix order of
3996 parameters to match PUSH_ARGUMENTS arguments.
3997
3998Thu May 27 11:42:55 1999 Andrew Cagney <cagney@b1.cygnus.com>
3999
4000 * gdbarch.h (EXTRACT_STRUCT_VALUE_ADDRESS): Return 0.
4001
4002 * valops.c (value_assign): Delete redundant test of
4003 REGISTER_CONVERTIBLE.
4004
4005Thu May 27 11:33:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
4006
4007 * config/w65/tm-w65.h, config/tic80/tm-tic80.h, config/sh/tm-sh.h,
4008 config/i386/tm-i386m3.h, config/i386/tm-go32.h,
4009 config/i386/tm-cygwin.h, config/h8500/tm-h8500.h,
4010 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h: Delete definition of
4011 macro NAMES_HAVE_UNDERSCORE.
4012
4013Thu May 27 09:31:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
4014
4015 * gdbarch.h (EXTRACT_STRUCT_VALUE_ADDRESS,
4016 EXTRACT_STRUCT_VALUE_ADDRESS_P): Provide default definitions.
4017 * values.c (value_being_returned): Use
4018 EXTRACT_STRUCT_VALUE_ADDRESS when EXTRACT_STRUCT_VALUE_ADDRESS_P.
4019
4020Wed May 26 13:51:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
4021
4022 * utils.c (tui_file_new, tui_file_delete, tui_fileopen): New
4023 functions.
4024 (tui_file_isatty): Rename gdb_file_isatty.
4025 (gdb_file_init_astring): Use tui_file_new to create stream.
4026 (gdb_file_get_strbuf, gdb_file_adjust_strbuf): Call gdb_file_data
4027 to access the tui_stream.
4028 (tui_file_flush): Rename gdb_flush. Call gdb_file_data to access
4029 the tui_stream. Pass FILE and not STREAM down.
4030
4031 * utils.c (struct stdio_file, stdio_file_flush, stdio_file_fputs,
4032 stdio_file_isatty, stdio_file_delete, stdio_file_new,
4033 stdio_fileopen): Define type and functions. Implement a simple
4034 STDIO based gdb_file.
4035 (struct gdb_file, gdb_file_new, gdb_file_delete, null_file_isatty,
4036 null_file_flush, null_file_fputs, null_file_delete, gdb_file_data,
4037 set_gdb_file_flush, set_gdb_file_isatty, set_gdb_file_fputs,
4038 set_gdb_file_data, fputs_unfiltered, gdb_flush, gdb_file_isatty):
4039 Define type and functions. Implement virtual functions for
4040 gdb_file.
4041
4042 * defs.h (struct gdb_file): Declare.
4043 (GDB_FILE): Change type to struct gdb_file. Deprecate.
4044 (gdb_file_flush_ftype, gdb_file_fputs_ftype,
4045 gdb_file_isatty_ftype, gdb_file_delete_ftype): Add function type
4046 declarations.
4047
4048 * defs.h (set_gdb_file_flush, set_gdb_file_fputs,
4049 set_gdb_file_isatty, set_gdb_file_data, gdb_file_new,
4050 gdb_file_delete, gdb_file_data, stdio_fileopen, tui_fileopen): Add
4051 function declarations.
4052 (gdb_fopen): Re-implement. Call stdio_file_new.
4053 (gdb_fclose): Re-implement. Call gdb_file_delete.
4054
4055 * main.c (tui_file_fputs): Rename fputs_unfiltered. Use
4056 gdb_file_data to gain access to the tui_stream data. Use FILE
4057 instead of STREAM where applicable.
4058 (main): Create gdb_stdout and gdb_stderr using tui_fileopen.
4059
4060 * defs.h (struct tui_stream): Add field ts_magic.
4061 * utils.c (tui_file_magic): Local variable.
4062 (tui_file_new): Set field ts_magic.
4063 (tui_file_delete, tui_file_isatty, gdb_file_init_astring,
4064 gdb_file_get_strbuf, gdb_file_adjust_strbuf, tui_file_flush):
4065 Verify ts_magic.
4066
40671999-05-25 Jim Blandy <jimb@zwingli.cygnus.com>
4068
4069 * breakpoint.c (insert_breakpoints, remove_breakpoint,
4070 breakpoint_1): Add a 'default' case, which prints a warning
4071 message, to remove EGCS warnings.
4072
392a587b
JM
40731999-05-25 Fernando Nasser <fnasser@totem.to.cygnus.com>
4074
4075 * utils.c (gdb_file_adjust_strbuf): Take into account the
4076 possibility that the buffer has not been allocated yet.
4077
4078Tue May 25 16:05:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
4079
4080 * gdbarch.h (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4081 REGISTER_CONVERT_TO_RAW): Provide default definition.
4082
4083 * valops.c (value_assign), infcmd.c (do_registers_info), findvar.c
4084 (value_from_register, value_of_register): Remove #ifdef
4085 REGISTER_CONVERTIBLE. Assume REGISTER_CONVERTIBLE etc defined.
4086
96baa820
JM
40871999-05-25 Keith Seitz <keiths@cygnus.com>
4088
4089 * config/mcore/tm-mcore.h (FRAME_NUM_ARGS): Re-write definition of
4090 FRAME_NUM_ARGS so that it returns NUM_ARGS as a result instead of
4091 setting a variable as a side effect.
4092
392a587b
JM
4093Tue May 25 16:18:25 1999 Andrew Cagney <cagney@amy.cygnus.com>
4094
4095 * remote-d10v.c (d10v_eva_prepare_to_trace,
4096 d10v_eva_get_trace_data), remote-sim.c (_initialize_remote_sim):
4097 Add declaraton. Make static.
4098
4099 * remote-d10v.c (_initialize_remote_d10v), d10v-tdep.c
4100 (_initialize_d10v_tdep): Add declaration.
4101 * config/d10v/tm-d10v.h (d10v_frame_chain): Add declaration.
4102
4103Tue May 25 15:20:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
4104
4105 * main.c (init_proc, proc_remove_foreign): Delete function.
4106 * inftarg.c (child_mourn_inferior): Update. Delete call to
4107 proc_remove_foreign().
4108 * top.c (gdb_init): Update. Delete call to init_proc().
4109
4110 * utils.c (pollquit, fmthex, hexlate): Delete function.
4111
4112Tue May 25 13:01:43 1999 Andrew Cagney <cagney@amy.cygnus.com>
4113
4114 * main.c (gdb_init): Move declaration from here.
4115 * top.h: To here.
4116
4117 * defs.h (init_page_info): Add declaration.
4118
4119 * top.c (initialize_utils): Move declaration from here.
4120 * defs.h: To here.
4121
4122 * infcmd.c (target_map_name_to_register): Move declaration from
4123 here.
4124 * parser-defs.h: To here.
4125
4126 * c-typeprint.c (cp_type_print_method_args), target.c
4127 (nosupport_runtime, normal_target_post_startup_inferior): Add
4128 declaration. Make static.
4129
4130Tue May 25 13:53:23 1999 Andrew Cagney <cagney@amy.cygnus.com>
4131
4132 * main.c: Include "event-loop.h".
4133 * Makefile.in (main.o): Add dependency.
4134
4135 * top.h (setup_event_loop, async_init_signals), top.c
4136 (set_async_editing_command, set_async_annotation_level,
4137 set_async_prompt), event-loop.c (display_gdb_prompt): Move
4138 declarations from here.
4139 * event-loop.h: To here.
4140
4141 * event-loop.h (delete_async_signal_handler): Add function
4142 declaration.
4143
4144 * event-top.c (change_annotation_level, command_handler): Add
4145 declaration. Make static.
4146
4147Tue May 25 12:44:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
4148
4149 * tracepoint.c (free_actions_list, add_register): Add declaration.
4150 Make static.
4151 (free_actions_list_cleanup_wrapper): New function. Wraps
4152 free_actions_list for make_cleanup.
4153 (trace_start_command): Pass free_actions_list_cleanup_wrapper
4154 instead of free_actions_list to make_cleanup.
4155 (_initialize_tracepoint): Add extern declaration.
4156
4157Tue May 25 12:23:39 1999 Andrew Cagney <cagney@amy.cygnus.com>
4158
4159 * jv-typeprint.c (java_type_print_base, jv-valprint.c
4160 (java_print_value_fields): Add static declaration.
4161
4162 * jv-lang.c (java_lookup_type, get_java_utf8_name,
4163 java_lookup_type): Add static declaration.
4164 (get_java_class_symtab, java_class_is_primitive,
4165 java_value_string): Add declaration. Make static.
4166 (java_rerun_cleanup): Add extern declaration for this stub
4167 function.
4168
0f71a2f6
JM
4169Tue May 25 12:06:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
4170
4171 * gdbarch.h: When multi-arch, check that REGISTER_NAMES was not
4172 defined.
4173
392a587b
JM
4174Mon May 24 16:16:29 1999 Andrew Cagney <cagney@amy.cygnus.com>
4175
4176 * inflow.c (_initialize_inflow), annotate.c
4177 (_initialize_annotate), os9kread.c (_initialize_os9kread),
4178 serial.c (_initialize_serial), nlmread.c (_initialize_nlmread),
4179 f-valprint.c (_initialize_f_valprint), cp-valprint.c
4180 (_initialize_cp_valprint), typeprint.c (_initialize_typeprint),
4181 complaints.c (_initialize_complaints), scm-lang.c
4182 (_initialize_scheme_language), m2-lang.c
4183 (_initialize_m2_language), dbxread.c (_initialize_dbxread),
4184 f-lang.c (_initialize_f_language), ch-lang.c
4185 (_initialize_chill_language), c-lang.c (_initialize_c_language),
4186 corefile.c (_initialize_core), stabsread.c
4187 (_initialize_stabsread), mipsread.c (_initialize_mipsread),
4188 elfread.c (_initialize_elfread), coffread.c
4189 (_initialize_coffread), maint.c (_initialize_maint_cmds),
4190 demangle.c (_initialize_demangler), maint.c
4191 (_initialize_maint_cmds), language.c (_initialize_language): Add
4192 external declaration.
4193
4194Mon May 24 10:04:56 1999 Andrew Cagney <cagney@b1.cygnus.com>
4195
4196 * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/v850/tm-v850.h,
4197 config/tic80/tm-tic80.h, config/tahoe/tm-tahoe.h,
4198 config/rs6000/tm-rs6000.h, config/sparc/tm-sparc.h,
4199 config/sh/tm-sh.h, config/pyr/tm-pyr.h, config/pa/tm-hppa.h,
4200 config/ns32k/tm-merlin.h, config/mn10300/tm-mn10300.h,
4201 config/mn10200/tm-mn10200.h, config/mips/tm-mips.h,
4202 config/m88k/tm-m88k.h, config/m68k/tm-news.h,
4203 config/m68k/tm-delta68.h, config/m68k/tm-isi.h,
4204 config/m68k/tm-m68k.h, config/m32r/tm-m32r.h,
4205 config/i960/tm-i960.h, config/i386/tm-i386v.h,
4206 config/i386/tm-i386.h, config/h8500/tm-h8500.h,
4207 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
4208 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h,
4209 config/convex/tm-convex.h, config/arc/tm-arc.h,
4210 config/arm/tm-arm.h, config/alpha/tm-alpha.h,
4211 config/a29k/tm-a29k.h: Re-write definition of FRAME_NUM_ARGS so
4212 that it returns NUM_ARGS as a result instead of setting a variable
4213 as a side effect.
4214
4215 * ns32k-tdep.c (merlin_frame_num_args), tahoe-tdep.c
4216 (tahoe_frame_num_args), vax-tdep.c (vax_frame_num_args),
4217 m68k-tdep.c (news_frame_num_args, delta68_frame_num_args,
4218 isi_frame_num_args), convex-tdep.c (convex_frame_num_args): New
4219 functions.
4220
4221 * stack.c (print_args_stub): Update use of FRAME_NUM_ARGS.
4222
4223Mon May 24 11:57:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
4224
4225 * remote.c (remote_xfer_memory): Re-write with assumption that
4226 REMOTE_TRANSLATE_XFER_ADDRESS is defined. Pass targ_addr and
4227 targ_len by reference.
4228 (REMOTE_TRANSLATE_XFER_ADDRESS): Provide default definition.
4229
4230 * remote-d10v.c (remote_d10v_translate_xfer_address): Update.
4231 * config/d10v/tm-d10v.h (REMOTE_TRANSLATE_XFER_ADDRESS): Update.
4232
4233Mon May 24 12:10:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
4234
4235 * value.h (default_push_arguments): Add function declaration.
4236
4237 * alpha-tdep.c (alpha_about_to_return), gdbarch.c (verify_gdbarch,
4238 arch_ok, set_arch), command.c (find_cmd), infrun.c
4239 (follow_inferior_fork, follow_fork, follow_vfork,
4240 set_schedlock_func, is_internal_shlib_eventpoint,
4241 stopped_for_internal_shlib_event, stopped_for_shlib_catchpoint,
4242 xdb_handle_command), infcmd.c (run_no_args_command, go_command),
4243 symfile.c (add_filename_language, set_ext_lang_command,
4244 info_ext_lang_command, init_filename_language_table), symtab.c
4245 (overload_list_add_symbol), defs.h (default_get_saved_register),
4246 ax-general.c (grow_expr, append_const, read_const, generic_ext):
4247 Ditto.
4248
4249 * infrun.c (currently_stepping): Ditto. Make static.
4250
4251 * valops.c (hand_function_call): Explictly type static variable
4252 ``checked''.
4253
4254Mon May 24 08:36:18 1999 Andrew Cagney <cagney@b1.cygnus.com>
4255
4256 * d10v-tdep.c (d10v_breakpoint_from_pc, d10v_register_name,
4257 d10v_register_byte, d10v_register_raw_size,
4258 d10v_register_virtual_size, d10v_register_virtual_type,
4259 d10v_make_daddr, d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
4260 d10v_convert_iaddr_to_raw, d10v_convert_daddr_to_raw,
4261 d10v_store_struct_return, d10v_store_return_value,
4262 d10v_extract_struct_value_address, d10v_frame_saved_pc,
4263 d10v_frame_args_address, d10v_frame_locals_address,
4264 d10v_saved_pc_after_call): New functions.
4265
4266 * config/d10v/tm-d10v.h (REGISTER_BYTE, REGISTER_RAW_SIZE,
4267 REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN,
4268 D10V_MAKE_DADDR, D10V_MAKE_IADDR, D10V_DADDR_P, D10V_IADDR_P,
4269 D10V_CONVERT_DADDR_TO_RAW, D10V_CONVERT_IADDR_TO_RAW,
4270 STORE_STRUCT_RETURN, STORE_RETURN_VALUE,
4271 EXTRACT_STRUCT_VALUE_ADDRESS, SAVED_PC_AFTER_CALL, FRAME_SAVED_PC,
4272 FRAME_ARGS_ADDRESS): Re-define using new functions.
4273
4274 * config/d10v/tm-d10v.h (BREAKPOINT_FROM_PC): Replace BREAKPOINT.
4275 (REGISTER_NAME): Replace REGISTER_NAMES.
4276
4277 * utils.c (core_addr_lessthan, core_addr_greaterthan): New
4278 functions.
4279 * defs.h (core_addr_lessthan, core_addr_greaterthan): Declare.
4280
4281Sat May 22 16:44:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
4282
4283 * utils.c (n_spaces): Handle case where first call has N equal to
4284 zero.
4285 (print_spaces): Use n_spaces.
4286
4287Fri May 21 11:23:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
4288
4289 * valops.c (value_push): Remove conditional definition based on
4290 absense of macro PUSH_ARGUMENTS. Pass SP and STRUCT_ADDR by
4291 reference.
4292 (default_push_arguments): New function.
4293
4294 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
4295 config/sparc/tm-sparc.h, config/sparc/tm-sp64.h,
4296 config/sh/tm-sh.h, config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
4297 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
4298 config/mips/tm-mips.h, config/m32r/tm-m32r.h,
4299 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
4300 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h, config/arm/tm-arm.h,
4301 config/alpha/tm-alpha.h: Update definition of PUSH_ARGUMENTS.
4302 Return updated SP.
4303
4304 * rs6000-tdep.c (rs6000_push_arguments): Rename push_arguments.
4305
4306Thu May 20 12:18:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
4307
4308 * blockframe.c (get_prev_frame): Remove #ifdef around test for
4309 FRAMELESS_FUNCTION_INVOCATION.
4310 (get_prev_frame): Change FRAMELESS_FUNCTION_INVOCATION call to a
4311 function invocation.
4312 * i386-tdep.c (i386_frame_num_args), stack.c (frame_info): Ditto.
4313 * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/vax/tm-vax.h,
4314 config/sparc/tm-sparc.h, config/sh/tm-sh.h,
4315 config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
4316 config/mips/tm-mips.h, config/m88k/tm-m88k.h,
4317 config/m68k/tm-m68k.h, config/i960/tm-i960.h,
4318 config/i386/tm-sun386.h, config/i386/tm-i386v.h,
4319 config/i386/tm-i386.h, config/h8500/tm-h8500.h,
4320 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
4321 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h,
4322 config/convex/tm-convex.h, config/arm/tm-arm.h,
4323 config/arc/tm-arc.h, config/alpha/tm-alpha.h,
4324 config/a29k/tm-a29k.h: Update FRAMELESS_FUNCTION_INVOCATION.
4325 * fr30-tdep.c (fr30_frameless_function_invocation), convex-tdep.c
4326 (convex_frameless_function_invocation), arm-tdep.c
4327 (arm_frameless_function_invocation): New functions.
4328
43291999-05-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4330
4331 * top.c: Change dates in comments to ISO format.
4332
4333 * event-top.c: Ditto.
4334 * event-loop.c: Ditto.
4335 * main.c: Ditto.
4336
9e086581
JM
43371999-05-19 Keith Seitz <keiths@cygnus.com>
4338
96baa820
JM
4339 * config/mcore/tm-mcore.h (BELIEVE_PCC_PROMOTION): Define. We
4340 really do want to believe what gcc tells us about types...
4341
43421999-05-19 Keith Seitz <keiths@cygnus.com>
4343
4344 * config/mcore/tm-mcore.h (FRAME_ARGS_ADDRESS): Define to a function.
4345 (FRAME_LOCALS_ADDRESS): Ditto.
4346 * mcore-tdep.c (mcore_frame_args_addcress): New function.
4347 (mcore_frame_locals_address): New function.
4348
9e086581
JM
4349 * monitor.c (monitor_open): Only assume we have eight
4350 breakpoints if the monitor implementation does not tell
4351 us how many there really are. Alloc memory for these
4352 dynamically.
4353 (monitor_close): Free memory associated with breakpoint
4354 storage.
4355 (monitor_insert_breakpoint): Don't rely on a hardcoded
4356 number of breakpoints.
4357 (monitor_remove_breakpoint): Ditto.
4358 (NUM_MONITOR_BREAKPOINTS): Removed and replaced with monitor_ops
4359 specification.
4360 * monitor.h (struct monitor_ops): Add new member so that the
4361 individual monitor implementations can tell us how many
4362 breakpoints the monitor supports.
4363
96baa820
JM
4364 * mcore-rom.c (init_picobug_cmds): Add number of breakpoints supported
4365 by picobug monitor.
4366
9e086581
JM
43671999-05-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4368
4369 From Philippe De Muyter <phdm@macqel.be>:
4370 * event-loop.h: Include sys/wait.h only if HAVE_SYS_WAIT_H.
4371
96baa820
JM
43721999-05-17 Keith Seitz <keiths@cygnus.com>
4373
4374 * configure.tgt: Add MCore target.
4375 * Makefile.in: Add mcore-tdep.c and mcore-rom.c
4376 * config/mcore/tm-mcore.h: New file.
4377 * config/mcore/mcore.mt: New file.
4378 * mcore-rom.c: New file.
4379 * mcore-tdep.c: New file.
4380
9e086581
JM
43811999-05-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
4382
392a587b
JM
4383 * top.c (print_command_line): Added the missing stream argument.
4384 * gdbcmd.h: Added argument to prototype.
4385 * command.c: Fixed call to include extra argument.
4386 * breakpoint.c: Same.
9e086581
JM
4387
43881999-05-14 Jim Blandy <jimb@zwingli.cygnus.com>
4389
4390 Targets are #defining PREPARE_TO_PROCEED with inconsistent numbers
4391 of arguments. Since the Mach 3 target needs an argument, we'll
4392 make things consistent by adding an argument everywhere.
4393 * infrun.c (proceed): Pass an argument to PREPARE_TO_PROCEED.
4394 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Add ignored argument
4395 to definition.
4396
43971999-05-11 Stan Shebs <shebs@andros.cygnus.com>
4398
4399 Fri Apr 23 13:27:34 PDT 1999 Toshiyasu Morita (tm@netcom.com)
4400 * sh-stub.c: Mostly localize processor dependencies.
4401
cd0fc7c3
SS
44021999-05-10 Martin Hunt <hunt@cygnus.com>
4403
4404 * debugify.c, debugify.h: Removed because they are no
4405 longer used.
4406
44071999-05-08 Jim Blandy <jimb@zwingli.cygnus.com>
4408
4409 * infrun.c (_initialize_infrun): Handle TARGET_SIGNAL_LWP,
4410 TARGET_SIGNAL_WAITING, and TARGET_SIGNAL_CANCEL like SIGALRM or
4411 SIGIO --- pass them through to the inferior silently.
4412 * target.h (enum target_signals): Add TARGET_SIGNAL_CANCEL, for
4413 Solaris's SIGCANCEL.
4414 * target.c (target_signal_from_host, target_signal_to_host): Add
4415 mapping between SIGCANCEL and TARGET_SIGNAL_CANCEL.
4416 (signals): Add entry for SIGCANCEL.
4417
44181999-05-07 Stan Shebs <shebs@andros.cygnus.com>
4419
4420 After years of talking about it, finally break up the
4421 wait_for_inferior loop.
4422 * infrun.c (struct execution_control_state): New struct,
4423 holds what used to be local vars governing wfi behavior.
4424 (init_execution_control_state): New function, was code in
4425 wfi that set up execution control state.
4426 (handle_inferior_event): New function, was body of main
4427 wfi loop. Rewrite all local var references to go through
4428 the ecs structure passed into this function.
4429 (wait_for_inferior): Rewrite to set up and use execution control
4430 state, and to call the new functions.
4431 (currently_stepping): New function, was the macro
4432 CURRENTLY_STEPPING.
4433 (enum infwait_states): Rename from wfi_states.
4434 (infwait_normal_state, etc): Similarly.
4435
4436Thu May 6 15:25:32 1999 Philippe De Muyter <phdm@macqel.be>
4437
4438 * coffread.c (coff_symtab_read): Call `record_line' with the line
4439 number of the ".bf" symbol only for one-line functions.
4440
44411999-05-06 Michael Snyder <msnyder@cleaver.cygnus.com>
4442
4443 * Makefile.in: thread.o depends on target.h.
4444
44451999-05-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4446
4447 * event-top.c (change_line_handler): Use POLLIN instead of
4448 POLLRDNORM, for compatibility with Linux.
4449 (setup_event_loop): Ditto.
4450
44511999-05-06 Jim Blandy <jimb@zwingli.cygnus.com>
4452
4453 * mips-tdep.c (heuristic_proc_start): Rewrite cryptic error
4454 message about hitting the "heuristic fence post" with something
4455 that actually gives the user a fighting chance of figuring out
4456 why GDB is unhappy.
4457
44581999-05-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4459
4460 * top.c: Include event-loop.h.
4461 (init_main): Add async version of 'set prompt' command.
4462 If in async mode define the editing and annotate set
4463 commands in a different way.
4464 Initialize new variable asyn_command_editing_p to 1.
4465 Initialize the gdb prompt for async mode.
4466 (quit_cover): Make not static, for use by the event loop.
4467 (gdb_init): Call async_init_signals for the asynchronous case.
4468 (source_line_number, source_file_name, source_error,
4469 source_pre_error, history_expansion_p): Make non-static, so
4470 event-top.c can use them.
4471 (command_loop_marker): Make non-static, for use in event-top.c.
4472 Include event-loop.h.
4473
4474 * top.h: Add prototype for async_init_signals.
4475 (SET_TOP_LEVEL): Move here from main.c.
4476 Add setup_event_loop to exported functions.
4477
4478 * defs.h: Add async_hook to exported variables.
4479
4480 * main.c (SET_TOP_LEVEL): Move to top.h, so that it is visible in
4481 event-loop.c. Add new global variable async to determine whether
4482 we are running in async mode or not.
4483 (main): Add support for --async switch. Use async_hook to call
4484 setup_event_loop, when running in async mode.
4485
4486 * event-top.c: New file. Gdb input line handler and command line
4487 handler for the event loop. Initialization of signal handlers.
4488 All the handled signals have handlers called handle_<signalname>.
4489 Set up all the appropriate tokens for asynchronous signal
4490 handling.
4491
4492 * event-loop.h: New file. Data structures and definitions for the
4493 event loop.
4494
4495 * event-loop.c: New file. Functions for the event loop
4496 implementation.
4497
4498 * config.in: Regenerate with autoheader.
4499
4500 * configure.in (AC_CHECK_FUNCS): Add poll to list of functions
4501 to be checked for.
4502
4503 * configure: Regenerate.
4504
4505 * Makefile.in (SFILES): Add new source files.
4506 (eventloop_h): Define.
4507 (COMMON_OBS): Add new object files.
4508 (event-loop.o): Add rule for target object.
4509 (event-top.o): Ditto.
4510
45111999-05-05 Stan Shebs <shebs@andros.cygnus.com>
4512
4513 * infrun.c (wait_for_inferior): Transform breaks and continues
4514 into gotos, move the target_wait to the very top of the loop.
4515
45161999-05-05 Jonathan Larmour <jlarmour@cygnus.co.uk>
4517
4518 * configure.in: Ensure that GDB links with libuser32.a under
4519 cygwin because libreadline requires it.
4520 * Makefile.in (WIN32LIBS): Substitute in result from configure
4521 * configure: regenerate
4522
45231999-05-04 Jim Blandy <jimb@zwingli.cygnus.com>
4524
4525 Fix from John Rigby. Richard Henderson says it seems okay.
4526 * alpha-tdep.c (PROC_DUMMY_FRAME): As long as we're abusing fields
4527 of (proc)->pdr, we ought to at least abuse one large enough to
4528 hold the value we're trying to store in it. iopt is only 32 bits
4529 wide; cbLineOffset is a bfd_vma.
4530
b83266a0
SS
45311999-05-04 DJ Delorie <dj@cygnus.com>
4532
4533 DJGPP changes from Robert Hoehne <robert.hoehne@gmx.net>
4534
4535 * ser-go32.c: correct includes
4536 * source.c (openp): use ROOTED_P instead of SLASH_P
4537 * go32-nat.c: enhance exception and NPX handling
4538 (go32_kill_inferior): fix small bug killing inferior
4539 * configure.in: don't look for termcap with djgpp
4540 * configure: rebuild
4541
45421999-05-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4543
4544 * main.c (main): Comment out unused and undocumented command line
4545 option '-'.
4546
45471999-04-30 Jim Blandy <jimb@zwingli.cygnus.com>
4548
4549 Cleanup from Philippe De Muyter:
4550 * configure.in (BFD_NEED_DECLARATION): Check also for strstr.
4551 * acconfig.h (NEED_DECLARATION_MALLOC, NEED_DECLARATION_REALLOC,
4552 NEED_DECLARATION_FREE, NEED_DECLARATION_STRERROR): Define slots
4553 removed; they are now generated automatically.
4554 * gdb_string.h (strstr): Provide function prototype if
4555 NEED_DECLARATION_STRSTR.
4556 * configure, config.in: Regenerated.
4557
4558Fri Apr 30 11:16:09 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
4559
4560 * target.h (to_find_new_threads): new target ops vector.
4561 (target_find_new_threads): define.
4562 * target.c (update_current_target): inherit new target ops vector.
4563 * remote.c: Setup to_find_new_threads vector.
4564 * sol-thread.c: ditto.
4565 * thread.c (target_find_new_threads): rename: local_find_new_threads.
4566 (info_threads_command): call target_find_new_threads by new method,
4567 as a target ops vector, rather than previous macro definition method.
4568 * infcmd.c (go_command): define only if in xdb mode.
4569 * procfs.c: fix typo in comment.
4570
4571Fri Apr 30 01:02:05 1999 Jeffrey A Law (law@cygnus.com)
4572
4573 * hppah-nat.c: Fix various coding convention violations introduced
4574 by HP.
4575 (child_acknowledge_created_inferior): Do nothing if PT_SET_EVENT_MASK
4576 is not defined.
4577
45781999-04-28 Stan Shebs <shebs@andros.cygnus.com>
4579
4580 * TODO: Add some items inspired by review of the manual.
4581
4582Tue Apr 27 17:38:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
4583
4584 * config/z8k/tm-z8k.h, config/v850/tm-v850.h,
4585 config/tic80/tm-tic80.h, config/sparc/tm-sparc.h,
4586 config/sh/tm-sh.h, config/pyr/tm-pyr.h, config/pa/tm-hppa.h,
4587 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
4588 config/mips/tm-mips.h, config/m88k/tm-m88k.h,
4589 config/m68k/tm-m68k.h, config/m32r/tm-m32r.h,
4590 config/i960/tm-i960.h, config/i386/tm-i386.h,
4591 config/h8500/tm-h8500.h, config/h8300/tm-h8300.h,
4592 config/fr30/tm-fr30.h, config/d30v/tm-d30v.h,
4593 config/d10v/tm-d10v.h, config/alpha/tm-alpha.h,
4594 config/arm/tm-arm.h, config/a29k/tm-a29k.h, config/arc/tm-arc.h:
4595 Change SKIP_PROLOGUE and SKIP_PROLOGUE_FRAMELESS_P macros so that
4596 they return the new address.
4597
4598 * sparc-tdep.c (sparc_skip_prologue), hppa-tdep.c
4599 (hppa_skip_prologue), m88k-tdep.c
4600 (m88k_skip_prologue), i960-tdep.c
4601 (i960_skip_prologue), arc-tdep.c
4602 (arc_skip_prologue), a29k-tdep.c (a29k_skip_prologue): Rename
4603 skip_prologue function.
4604
4605 * config/m68k/tm-isi.h: Convert macro SKIP_PROLOGUE into a new
4606 function.
4607 * m68k-tdep.c (isi_skip_prologue): That new function.
4608 * vax-tdep.c (vax_skip_prologue), config/vax/tm-vax.h: Ditto.
4609 * tahoe-tdep.c (tahoe_skip_prologue), config/tahoe/tm-tahoe.h: Ditto.
4610 * rs6000-tdep.c (rs6000_skip_prologue), config/rs6000/tm-rs6000.h:
4611 Ditto.
4612 * ns32k-tdep.c (umax_skip_prologue), config/ns32k/tm-umax.h: Ditto.
4613 * config/ns32k/tm-merlin.h, ns32k-tdep.c (merlin_skip_prologue):
4614 Ditto.
4615 * config/m68k/tm-altos.h, m68k-tdep.c (altos_skip_prologue): Ditto.
4616 * config/convex/tm-convex.h, convex-tdep.c (convex_skip_prologue):
4617 Ditto.
4618
4619 * symtab.c (in_prologue, find_function_start_sal, decode_line_1),
4620 infrun.c (wait_for_inferior), blockframe.c
4621 (frameless_look_for_prologue): Update.
4622 * config/fr30/tm-fr30.h (FRAMELESS_FUNCTION_INVOCATION): Update.
4623
46241999-04-27 Stan Shebs <shebs@andros.cygnus.com>
4625
4626 * TODO: Remove item about DEBUG_EXPRESSIONS, no longer meaningful.
4627
4628 * infrun.c (enum wfi_state): New enum.
4629 (wait_for_inferior): Merge all but one of the target_wait calls
4630 into a single call, add a wfi_state variable to encode which of
4631 the calls is being made.
4632
46331999-04-26 Jim Blandy <jimb@zwingli.cygnus.com>
4634
4635 Fix from Dave Holcomb.
4636 * hpux-thread.c (init_hpux_thread_ops): Use the right function
4637 name when initializing hpux_thread_ops.to_thread_alive.
4638
4639 * coffread.c (coff_symfile_read): If we have a `.stab' section,
4640 but no `.stabstr' section, then print an error message; don't
4641 crash.
4642
46431999-04-26 Jim Blandy <jimb@zwingli.cygnus.com>
4644
4645 1999-04-25 Mark Kettenis <kettenis@gnu.org>
4646
4647 * gnu-nat.c (gnu_attach): Call target_terminal_init before calling
4648 inf_set_traced, since that function calls code that might try to
4649 restore the terminal settings.
4650
4651Mon Apr 26 08:55:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
4652
4653 * gdbarch.h, gdbarch.c: More format cleanups.
4654
0f71a2f6
JM
4655Sun Apr 25 18:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
4656
4657 * gdbarch.h (CALL_DUMMY_STACK_ADJUST_P): Replace
4658 SIZEOF_CALL_DUMMY_STACK_ADJUST_P.
4659 (CALL_DUMMY_STACK_ADJUST): Replace
4660 SIZEOF_CALL_DUMMY_STACK_ADJUST_P.
4661 * gdbarch.c (gdbarch_call_dummy_stack_adjust,
4662 set_gdbarch_call_dummy_stack_adjust): Define.
4663
b83266a0
SS
4664Fri Apr 23 15:00:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
4665
4666 * gdbarch.c (arch_ok): New function. Fix logic test for a valid
4667 architecture.
4668 (set_arch): Use.
4669
7a292a7a
SS
46701999-04-22 Jason Molenda (jsm@bugshack.cygnus.com)
4671
4672 * README: Note that readline is not installed as a part of
4673 make install.
4674
4675Thu Apr 22 21:02:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
4676
0f71a2f6
JM
4677 * gdbarch.h, gdbarch.c (GET_SAVED_REGISTER, get_saved_register):
4678 Add.
4679 (struct gdbarch, verify_gdbarch, gdbarch_alloc, gdbarch_dump,
4680 default_gdbarch): Update.
4681
7a292a7a
SS
4682 * value.h (get_saved_register): Cleanup prototype.
4683 * findvar.c (default_get_saved_register): Rename function
4684 get_saved_register.
4685 (GET_SAVED_REGISTER): Define as default_get_saved_register when
4686 undefined.
4687 (get_saved_register): Always declare. Call GET_SAVED_REGISTER.
4688
4689 * sparc-tdep.c (sparc_get_saved_register): Rename function
4690 get_saved_register.
4691 * config/sparc/tm-sparc.h (GET_SAVED_REGISTER): Update.
4692 * a29k-tdep.c (a29k_get_saved_register): Rename function
4693 get_saved_register.
4694 * config/a29k/tm-a29k.h (GET_SAVED_REGISTER): Update.
4695
4696 * config/d10v/tm-d10v.h, config/powerpc/tm-ppc-eabi.h,
4697 config/h8300/tm-h8300.h, config/m32r/tm-m32r.h,
4698 config/mn10200/tm-mn10200.h, config/mn10300/tm-mn10300.h,
4699 config/sh/tm-sh.h, config/tic80/tm-tic80.h, config/v850/tm-v850.h:
4700 Update macro GET_SAVED_REGISTER so that it calls
4701 generic_get_saved_register.
4702 * v850-tdep.c, tic80-tdep.c, sh-tdep.c, mn10300-tdep.c,
4703 mn10200-tdep.c, m32r-tdep.c, h8300-tdep.c, rs6000-tdep.c: Delete
4704 function get_saved_register.
4705
0f71a2f6
JM
4706Thu Apr 22 13:32:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
4707
4708 * gdbarch.c: Cleanup. Re-order the definition of the ``struct
4709 gdbarch'' initialization functions so that maintenance is more
4710 straightforward.
4711
7a292a7a
SS
4712Thu Apr 22 11:07:21 1999 Andrew Cagney <cagney@b1.cygnus.com>
4713
0f71a2f6
JM
4714 * gdbarch.h, gdbarch.c (use_generic_dummy_frames,
4715 USE_GENERIC_DUMMY_FRAMES): Add.
4716 (struct gdbarch, verify_gdbarch, gdbarch_alloc, gdbarch_dump,
4717 default_gdbarch): Update.
4718
7a292a7a
SS
4719 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
4720 config/sh/tm-sh.h, config/powerpc/tm-ppc-eabi.h,
4721 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
4722 config/m32r/tm-m32r.h, config/h8300/tm-h8300.h,
4723 config/fr30/tm-fr30.h, config/d10v/tm-d10v.h: Give the
4724 USE_GENERIC_DUMMY_FRAMES macro the value one.
4725 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Default to a value of
4726 zero.
4727
4728 * blockframe.c (generic_find_dummy_frame,
4729 generic_pc_in_call_dummy, generic_read_register_dummy,
4730 generic_push_dummy_frame, generic_pop_current_frame,
4731 generic_pop_dummy_frame, generic_frame_chain_valid,
4732 generic_get_saved_register): Always define.
4733
4734 * breakpoint.c (frame_in_dummy): Convert #ifdef
4735 USE_GENERIC_DUMMY_FRAMES to runtime test.
4736
4737 * rs6000-tdep.c (pop_frame, push_arguments, push_arguments,
4738 push_arguments, frame_saved_pc, rs6000_frame_chain,
4739 rs6000_frame_chain): Convert #ifdef USE_GENERIC_DUMMY_FRAMES to
4740 runtime test.
4741 (get_saved_register): Always define.
4742
0f71a2f6
JM
4743Wed Apr 21 17:15:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
4744
4745 * gdbarch.c (gdbarch_dump): Fix robustness check on
4746 BELIEVE_PCC_PROMOTION_TYPE.
4747
4748Wed Apr 21 15:39:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
4749
4750 * gdbarch.h (TARGET_BYTE_ORDER_SELECTABLE_P): When multi-arch,
4751 force selectable byte order.
4752 (CALL_DUMMY): Check for CALL_DUMMY definition when multi-arch. Are
4753 incompatible.
4754 * gdbarch.c (verify_gdbarch): Check call_dummy_stack_adjust.
4755
7a292a7a
SS
4756Wed Apr 21 14:45:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
4757
0f71a2f6
JM
4758 * gdbarch.c (gdbarch_update): Move dump-arch code from here.
4759 (gdbarch_dump): To here. Make more robust.
4760 * gdbarch.h (gdbarch_dump): Add prototype.
4761
7a292a7a
SS
4762 * gdbarch.c (enum set_arch): Declare.
4763 (set_arch): Add type parameter. Only disable
4764 ``target_architecture_auto'' when set_arch_manual.
4765 (set_architecture, set_architecture_from_arch_mach,
4766 set_architecture_from_file): Update.
0f71a2f6
JM
4767 (set_arch): When ``gdbarch_debug'', gdbarch_dump() the current
4768 architecture.
7a292a7a
SS
4769
4770Wed Apr 21 10:48:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
4771
4772 * frame.h (generic_pc_in_call_dummy): Make signature consistent
4773 with other pc_in_call_dummy functions by adding SP parameter.
4774 * blockframe.c (generic_pc_in_call_dummy): Update. Pass SP and
4775 not FP to generic_find_dummy_frame().
4776 * breakpoint.c (frame_in_dummy): Update.
4777 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
4778 config/sh/tm-sh.h, config/mn10300/tm-mn10300.h,
4779 config/mn10200/tm-mn10200.h, config/m32r/tm-m32r.h,
4780 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
4781 config/d10v/tm-d10v.h: Update PC_IN_CALL_DUMMY definition.
4782
4783Tue Apr 20 12:15:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
4784
4785 * config/d10v/tm-d10v.h (GDB_TARGET_IS_D10V): Move from here.
4786 * gdbarch.h (GDB_TARGET_IS_D10V): To here. Implement using
4787 TARGET_ARCHITECTURE.
4788 (D10V_MAKE_DADDR, D10V_MAKE_IADDR): Provide fatal default
4789 definitions.
4790
4791 * valops.c (value_at): Replace #ifdef GDB_TARGET_IS_D10V code with
4792 runtime test.
4793 (value_fetch_lazy): Ditto.
4794 * values.c (unpack_long): Ditto.
4795 * printcmd.c (print_frame_args): Ditto.
4796
0f71a2f6
JM
4797Sat Apr 17 15:39:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
4798
4799 * gdbarch.h: Cleanup multi-arch comments.
4800
4801Fri Apr 16 15:39:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
4802
4803 * gdbarch.h: Provide definition if GDB_MULTI_ARCH > 1 or
4804 GDB_MULTI_ARCH > 0 and no previous definition.
4805 * gdbarch.c (verify_gdbarch): Only verify a full multi-arch
4806 target.
4807
7a292a7a
SS
48081999-04-15 Stan Shebs <shebs@andros.cygnus.com>
4809
4810 * infrun.c (wait_for_inferior) [HAVE_STEPPABLE_WATCHPOINT,
4811 HAVE_NONSTEPPABLE_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT]: Test
4812 at runtime instead of compile time.
4813
48141999-04-14 Philippe De Muyter <phdm@macqel.be>
4815
4816 * breakpoint.c (maintenance_info_breakpoints): Function made
4817 static to match previous prototype.
4818
4819 * coffread.c (coff_record_line): Static function removed.
4820 (enter_linenos): Call `record_line' instead of `coff_record_line'.
4821 (FILE-LEVEL, coff_start_symtab, coff_end_symtab): `coff_record_line'
4822 -related stuff removed.
4823 (coff_symfile_read): Redundant statement removed.
4824 (coff_symtab_read): `record_line' is now called with the first line
4825 number of each function, given by the ".bf" symbol. This solves
4826 the line-number bug for one-line functions.
4827
4828Wed Apr 14 11:09:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
4829
0f71a2f6
JM
4830 * gdbarch.h (BELIEVE_PCC_PROMOTION_TYPE, BELIEVE_PCC_PROMOTION):
4831 Add multi-arch definitions.
4832 * gdbarch.c (gdbarch_believe_pcc_promotion,
4833 gdbarch_believe_pcc_promotion_type): New functions.
4834 (gdbarch_update): Update
4835 (struct gdbarch default_gdbarch): Update.
4836
7a292a7a
SS
4837 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Provide default.
4838 (define_symbol): Change #if BELIEVE_PCC_PROMOTION_TYPE and #if
4839 BELIEVE_PCC_PROMOTION to if().
4840
48411999-04-13 Jason Molenda (jsm@bugshack.cygnus.com)
4842
4843 * configure.in (HAVE_MULTIPLE_PROC_FDS): Don't define if we're
4844 on a Solaris host (of any architecture).
4845 * configure: Regenerated.
4846
0f71a2f6
JM
4847Wed Apr 14 08:23:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
4848
4849 * gdbarch.c (SET_GDBARCH, GET_GDBARCH, FSET_GDBARCH): New macros.
4850 (gdbarch_byte_order, gdbarch_long_bit, gdbarch_long_long_bit,
4851 gdbarch_ptr_bit, gdbarch_call_dummy_location,
4852 gdbarch_call_dummy_address, gdbarch_call_dummy_address,
4853 gdbarch_call_dummy_breakpoint_offset,
4854 gdbarch_call_dummy_breakpoint_offset, gdbarch_call_dummy_length,
4855 gdbarch_pc_in_call_dummy, dbarch_call_dummy_breakpoint_offset_p,
4856 dbarch_call_dummy_p, dbarch_call_dummy_words,
4857 dbarch_sizeof_call_dummy_words, dbarch_call_dummy_stack_adjust,
4858 dbarch_call_dummy_stack_adjust_p): Define using new macros.
4859
7a292a7a
SS
48601999-04-13 Jason Molenda (jsm@bugshack.cygnus.com)
4861
4862 * rom68k-rom.c (init_rom68k_cmds): Fix an accidental substitution
4863 in monitor command strings, fix some formatting mistakes.
4864
48651999-04-13 Stan Shebs <shebs@andros.cygnus.com>
4866
4867 * configure.tgt (arm-*-*): Whack another vestige of wingdb.
4868
48691999-04-12 James Ingham <jingham@cygnus.com>
4870
4871 * arm-tdep.c (arm_pop_frame): don't clobber the previous frame's
4872 stack pointer (stored in frame->framereg's register) BEFORE
4873 reading it. This was causing "return" to behave very oddly.
4874
48751999-04-12 Stan Shebs <shebs@andros.cygnus.com>
4876
4877 * NEWS: Mention tic80.
4878
48791999-04-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4880
4881 * a68v-nat.c: Remove reference to 'extern char registers[]' throughout.
4882 * altos-xdep.c: Ditto.
4883 * arm-xdep.c: Ditto.
4884 * convex-xdep.c: Ditto.
4885 * cxux-nat.c: Ditto.
4886 * hp300ux-nat.c: Ditto.
4887 * hppab-nat.c: Ditto.
4888 * i386aix-nat.c: Ditto.
4889 * i386mach-nat.c: Ditto.
4890 * m88k-nat.c: Ditto.
4891 * ptx4-nat.c: Ditto.
4892 * pyr-xdep.c: Ditto.
4893 * rs6000-nat.c: Ditto.
4894 * sun3-nat.c: Ditto.
4895 * sun386-nat.c: Ditto.
4896 * symm-nat.c: Ditto.
4897 * umax-xdep.c: Ditto.
4898 * i386v4-nat.c: Ditto. Also include inferior.h.
4899 * m68k-tdep.c: Ditto. Also include inferior.h.
4900
4901Mon Apr 12 15:57:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
4902
4903 * inferior.h (CALL_DUMMY_STACK_ADJUST, CALL_DUMMY_STACK_ADJUST_P):
4904 Provide default definitions.
4905 * valops.c (hand_function_call): Replace #ifdef
4906 CALL_DUMMY_STACK_ADJUST with if (CALL_DUMMY_STACK_ADJUST_P).
4907
0f71a2f6
JM
4908 * gdbarch.h (SIZEOF_CALL_DUMMY_STACK_ADJUST,
4909 (SIZEOF_CALL_DUMMY_STACK_ADJUST_P): Define
4910 * gdbarch.c (struct gdbarch): Add call_dummy_stack_adjust,
4911 call_dummy_stack_adjust_p.
4912 (gdbarch_call_dummy_stack_adjust,
4913 set_gdbarch_call_dummy_stack_adjust,
4914 gdbarch_call_dummy_stack_adjust_p,
4915 set_gdbarch_call_dummy_stack_adjust_p): New functions.
4916 (default_gdbarch): Update.
4917
7a292a7a
SS
49181999-04-09 Jim Blandy <jimb@zwingli.cygnus.com>
4919
4920 * ax-gdb.c, ax-gdb.h, ax-general.c, ax.h: Remove RCS Id strings.
4921 They're a pain.
c906108c
SS
4922
4923 * GDB 4.18 released.
7a292a7a 4924 * Makefile.in (VERSION): Bump to 4.18.1.
c906108c 4925
7a292a7a
SS
4926Thu Apr 8 16:04:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
4927
4928 * inferior.h (CALL_DUMMY_P, CALL_DUMMY_WORDS,
4929 SIZEOF_CALL_DUMMY_WORDS): Define macros.
4930 (PUSH_DUMMY_FRAME, FIX_CALL_DUMMY, STORE_STRUCT_RETURN): Provide
4931 fatal default.
4932
4933 * inferior.h, gdbarch.c (call_dummy_words,
4934 sizeof_call_dummy_words): Declare/Define variables.
4935 * valops.c (value_arg_coerce, find_function_addr,
4936 call_function_by_hand): Always define.
4937 (hand_function_call): Rename CALL_DUMMY version of
4938 call_function_by_hand. Make static. Add prototype.
4939 (hand_function_call): Update. Allocate space for *dummy and
4940 *dummy1 using alloca.
4941 * breakpoint.c (frame_in_dummy): Update.
c906108c 4942
0f71a2f6
JM
4943 * gdbarch.h (CALL_DUMMY_P, CALL_DUMMY_WORDS,
4944 SIZEOF_CALL_DUMMY_WORDS): Define.
4945 * gdbarch.c (gdbarch_call_dummy_p, set_gdbarch_call_dummy_p,
4946 gdbarch_call_dummy_words, set_gdbarch_call_dummy_words,
4947 gdbarch_sizeof_call_dummy_words,
4948 set_gdbarch_sizeof_call_dummy_words): New functions.
4949 (gdbarch_alloc, verify_gdbarch, gdbarch_update, struct
4950 default_gdbarch): Update.
4951
7a292a7a
SS
49521999-04-08 Jason Molenda (jsm@bugshack.cygnus.com)
4953
4954 * monitor.c (monitor_read_memory): If a MO_GETMEM_NEEDS_RANGE
4955 monitor, increase the end address by one byte.
4956
49571999-04-08 Jason Molenda (jsm@bugshack.cygnus.com)
4958
4959 * dbug-rom.c (init_dbug_cmds): Fix strings in
4960 dbug_cmds.{step,clr_break,clr_all_break,fill} to send correct
4961 commands to the monitor.
4962
49631999-04-08 Keith Seitz <keiths@cygnus.com>
4964
4965 * m32r-stub.c (branchDestination): Undo overly ambitious
4966 sed script's conversion of cast from "char" to "unsigned char".
4967 Return offset should now be properly computed.
4968
4969Thu Apr 8 14:13:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
4970
4971 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): New macro.
4972 Non-zero when CALL_DUMMY_BREAKPOINT_OFFSET is valid.
4973
4974 * infcmd.c (breakpoint_auto_delete_contents): Always define.
4975 (run_stack_dummy): Update.
4976 * infrun.c (wait_for_inferior): Update
4977
0f71a2f6
JM
4978 * gdbarch.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): New macro.
4979 * gdbarch.c (set_gdbarch_call_dummy_breakpoint_offset_p,
4980 gdbarch_call_dummy_breakpoint_offset_p): New functions.
4981 (struct gdbarch, gdbarch_alloc, default_gdbarch, gdbarch_update):
4982 Update.
4983
7a292a7a
SS
49841999-04-07 Stan Shebs <shebs@andros.cygnus.com>
4985
4986 * MAINTAINERS: Mark Alexander can no longer maintain
4987 h8300 and other embedded targets, sniff.
c906108c
SS
4988
49891999-04-06 Stan Shebs <shebs@andros.cygnus.com>
4990
7a292a7a
SS
4991 * inftarg.c (child_wait): Initialize execd_pathname.
4992 * target.c (debug_to_has_execd): Handle NULL execd_pathname.
4993
c906108c
SS
4994 * solib.c (clear_solib): Don't call disable_breakpoints_in_shlibs,
4995 this breaks rerunning on sun4 native.
4996
7a292a7a 49971999-04-06 Jim Blandy <jimb@zwingli.cygnus.com>
c906108c 4998
7a292a7a
SS
4999 * config/sparc/nm-linux.h: Don't redefine PT_ATTACH to use the
5000 deprecated PTRACE_SUNATTACH compatibility commands. The
5001 definitions from <sys/ptrace.h> are fine.
5002
50031999-04-06 Martin Hunt <hunt@cygnus.com>
5004
5005 * annotate.h: Declare annotate_signal_hook.
5006
5007 * annotate.c (annotate_signal): Add a call to
5008 annotate_signal_hook().
5009
50101999-04-06 Jim Blandy <jimb@zwingli.cygnus.com>
5011
5012 * dwarf2read.c (dwarf_decode_lines): Don't call record_line when
5013 we hit a DW_LNE_end_sequence instruction.
c906108c
SS
5014
5015 * README: Note that GDB requires an ANSI C compiler, and explain
5016 how to get GCC.
5017
5018 * README: Update.
c906108c 5019
7a292a7a 50201999-04-05 Stan Shebs <shebs@andros.cygnus.com>
c906108c
SS
5021
5022 * NEWS: Add more notes about user-visible changes.
5023
7a292a7a
SS
5024Mon Apr 5 14:56:59 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
5025
5026 * target.c (target_signal_to_string): check for signal
5027 number in range; otherwise if the target board returns
5028 a bogus signal number we might core dump (per David Taylor).
5029
50301999-04-05 David Taylor <taylor@ryobi.cygnus.com>
5031
5032 * utils.c (fputs_maybe_filtered): test value of
5033 pagination_enabled before paginating.
5034
50351999-04-02 James Ingham <jingham@cygnus.com>
5036
5037 * blockframe.c (get_prev_frame): Remove the redundant
5038 get_prev_frame_info. It is now exactly the same as
5039 get_prev_frame, so there is no reason to have both functions.
5040
5041 * rs6000-tdep.c (rs6000_init_extra_frame_info):
5042 frame.h:
5043 a29k-tdep.c (init_extra_frame_info):
5044 config/a29k/tm-a29k.h:
5045 i386-tdep.c:
5046 Change all references to get_prev_frame_info to get_prev_frame.
5047
50481999-04-02 Stan Shebs <shebs@andros.cygnus.com>
5049
5050 * bcache.c, bcache.h, breakpoint.c, defs.h, expprint.c,
5051 expression.h, gdbarch.c, gdbtypes.c, gdbtypes.h, gnu-nat.c,
5052 gnu-nat.h, hppa-tdep.c, maint.c, monitor.c, objfiles.h, parse.c,
5053 remote-mips.c, remote-sds.c, remote.c, sol-thread.c, symmisc.c,
5054 symtab.h, target.c, top.c, typeprint.c, config/nm-gnu.h: Evaporate
5055 the unused MAINTENANCE_CMDS conditional.
5056
50571999-04-02 James Ingham <jingham@cygnus.com>
5058
5059 * config/arm/tm-arm.h: (EXTRACT_STRUCT_VALUE_ADDRESS): This needs
5060 to call extract_address, not just cast the first 4 bytes, since
5061 the result will be passed to value_at which expects host-byte
5062 order.
5063
5064 * arm-tdep.c (arm_scan_prologue): The prologue_start address was
5065 directly &'ed with 0x03fffffc, rather than using
5066 ADDR_BITS_REMOVE. This would cause inferior function calls to
5067 report the stack incorrectly on return.
5068
5069
50701999-04-02 Keith Seitz <keiths@cygnus.com>
5071
5072 * top.c (ui_loop_hook): Change declaration. Now returns an int.
5073 * win32-nat.c (child_wait): Timeout WaitForDebugEvent and call
5074 the ui_loop_hook if there was no debug event.
5075 * top.c (ui_loop_hook): Change to return an int and include
5076 on all non-Cygwin builds.
5077 * v850ice.c: Change prototype of ui_loop_hook.
5078 (v850ice_wait): Update call to ui_loop_hook.
5079 * ser-unix.c (hardwire_readchar): Enable ui_loop_hook callbacks
5080 for non-Cygwin builds. Check return status of ui_loop_hook and
5081 return a timeout if told to detach. Add more documentation.
5082 * ser-tcp.c (tcp_readchar): Break up timeouts into one second
5083 intervals and call ui_loop_hook so that other UIs can
5084 keep up to date. If ui_loop_hook returns non-zero, then
5085 return SERIAL_TIMEOUT to facilitate detaching from the
5086 target.
5087 * remote.c (remote_interrupted_already): Remove.
5088 (remote_interrupt_twice): Revive.
5089 (remote_interrupt): Call remote_stop to interrupt the target
5090 and install remote_interrupt_twice to take more severe
5091 actions if this fails.
5092 (remote_stop): Only attempt to stop the target. This separates
5093 the command line from other UIs.
5094 * remote-sim.c (gdb_os_poll_quit): Add a call to ui_loop_hook,
5095 if it is defined.
5096
c906108c
SS
50971999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
5098
5099 Fix for cross-debugging on an AIX host from Johanna Svenningsson:
5100 * ax-gdb.h (enum axs_lvalue_kind): Remove trailing comma from enum.
7a292a7a 5101 * ax.h (enum agent_op): Same.
c906108c
SS
5102 * tracepoint.h (enum actionline_type): Same.
5103 * config/xm-aix4.h: Add declaration for termdef.
5104
51051999-03-31 Stan Shebs <shebs@andros.cygnus.com>
5106
5107 * jv-lang.h (dynamics_objfile): Remove decl, conflicts with static
5108 decl in jv-lang.c.
5109
7a292a7a
SS
5110 * infrun.c (follow_inferior_fork): Add ifdefs around
5111 SOLIB_REMOVE_INFERIOR_HOOK.
c906108c 5112
7a292a7a 5113Wed Mar 31 11:39:49 1999 David Taylor <taylor@ryobi.cygnus.com>
c906108c
SS
5114
5115 * valops.c (search_struct_field): revert HP merge change
5116 to this function -- it causes messages to be printed about
5117 member class ambiguity when the compiler is happy.
5118 (search_struct_field_aux): delete -- added as part of HP merge
5119 change; with aforementioned change it is no longer called.
5120
7a292a7a 51211999-03-30 Stan Shebs <shebs@andros.cygnus.com>
c906108c 5122
7a292a7a
SS
5123 Make more HPUX-specific code generic.
5124 * infrun.c: Include top.h.
5125 (MAY_SWITCH_FROM_INFERIOR_PID, MAY_FOLLOW_EXEC,
5126 USE_THREAD_STEP_NEEDED): New native macros.
5127 (may_switch_from_inferior_pid, may_follow_exec,
5128 use_thread_step_needed): New globals.
5129 (follow_inferior_fork): Remove HPUXHPPA ifdef.
5130 (follow_exec): Ditto, also save run target and re-push instead of
5131 always pushing child_ops, add ifdefs around SOLIB_RESTART and
5132 SOLIB_CREATE_INFERIOR_HOOK.
5133 (wait_for_inferior): Use new globals instead of ifdefing HPUXHPPA,
5134 always use printf_filtered to report new threads.
5135 (normal_stop): Ditto.
5136 * target.h, target.c (find_run_target): New function.
5137 * config/pa/nm-hppah.h: Define new macros.
c906108c 5138
7a292a7a 51391999-03-29 Stan Shebs <shebs@andros.cygnus.com>
c906108c 5140
7a292a7a
SS
5141 * top.h: Include setjmp.h here.
5142 * main.c, top.c: Don't include it here.
c906108c 5143
7a292a7a 51441999-03-29 Keith Seitz <keiths@cygnus.com>
c906108c 5145
7a292a7a
SS
5146 * symtab.c (decode_line_1): Take out change which breaks symbols
5147 which include class names and methods, e.g., "Foo::bar".
5148
51491999-03-26 Stan Shebs <shebs@andros.cygnus.com>
5150
5151 * configure.tgt (i[3456]86-*-sysv4.2MP, i[3456]86-*-sysv4.2uw2*):
5152 Recognize both, as i[3456]86-*-sysv4.2*.
5153 (i[3456]86-*-sysv5*): Recognize.
5154
5155 * infrun.c (wait_for_inferior): Remove most #if 0 segments.
5156
5157Fri Mar 26 17:27:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
5158
5159 * blockframe.c (pc_in_call_dummy_on_stack): Fix. Had copied code
5160 from at_entry_point.
5161
5162Thu Mar 25 19:30:02 1999 Andrew Cagney <cagney@amy.cygnus.com>
5163
5164 * gdbarch.c: Include all headers.
0f71a2f6
JM
5165 (struct gdbarch), gdbarch.h (CALL_DUMMY_LOCATION,
5166 CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET,
5167 CALL_DUMMY_BREAKPOINT_OFFSET, CALL_DUMMY_LENGTH,
5168 PC_IN_CALL_DUMMY): Add ``call_dummy_location'',
5169 ``call_dummy_length'', ``pc_in_call_dummy'',
5170 ``call_dummy_start_offset'', ``call_dummy_breakpoint_offset'' to
5171 multi-arch framework.
7a292a7a
SS
5172
5173 * inferior.h, blockframe.c (pc_in_call_dummy_before_text_end,
5174 pc_in_call_dummy_after_text_end, pc_in_call_dummy_on_stack,
5175 pc_in_call_dummy_at_entry_point): Convert PC_IN_CALL_DUMMY macro's
5176 into functions.
5177
5178Tue Mar 23 17:22:57 1999 Philippe De Muyter <phdm@macqel.be>
5179
5180 * remote.c, parse.c: Include ctype.h.
c906108c
SS
5181
51821999-03-24 Stan Shebs <shebs@andros.cygnus.com>
5183
7a292a7a 5184 * configure.host (mips-dec-mach3*): Use mipsm3 not mach3.
c906108c
SS
5185
5186 Attempt to sort out SCO-related configs.
5187 * configure.host (i[3456]86-*-sysv4.2*): Use instead of
5188 i[3456]86-*-sysv4.2MP and i[3456]86-*-sysv4.2uw2*.
5189 (i[3456]86-*-sysv5*): Recognize.
5190 * configure.tgt (i[3456]86-*-sco3.2v5*, i[3456]86-*-sco3.2v4*):
5191 Recognize.
5192
7a292a7a
SS
5193Wed Mar 24 16:19:01 1999 Christopher Faylor <cgf@cygnus.com>
5194
5195 * MAINTAINERS: Add DJ Delorie (dj@cygnus.com) as the djgpp
5196 maintainer.
5197
5198Wed Mar 24 21:19:57 1999 Andrew Cagney <cagney@amy.cygnus.com>
5199
5200 * target.h (enum target_signal): Do not hardwire values of MACH
5201 signals.
5202
52031999-03-14 Ken Raeburn <raeburn@raeburn.org>
5204
5205 * target.h (enum target_signal): Add TARGET_SIGNAL_INFO.
5206 * target.c (signals): Add SIGINFO description.
5207 (target_signal_from_host, target_signal_to_host): Translate
5208 SIGINFO to/from TARGET_SIGNAL_INFO.
5209
c906108c
SS
5210Wed Mar 24 01:01:27 1999 Andrew Cagney <cagney@sludge.cygnus.com>
5211
5212 * rs6000-tdep.c (rs6000_software_single_step): Change SIGNAL to
5213 unsigned int.
5214
7a292a7a 5215 From Rodney Brown <rodneybrown@pmsc.com>
c906108c
SS
5216 * target.h (enum thread_control_capabilities), breakpoint.h (enum
5217 bptype), breakpoint.c (enum insertion_state_t): Strict ISO-C
5218 doesn't allow trailing comma in enum definition.
5219
7a292a7a 5220Mon Mar 22 15:56:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
c906108c 5221
7a292a7a
SS
5222 * blockframe.c (inside_entry_file, inside_entry_func): Convert #if
5223 CALL_DUMMY_LOCATION to if.
5224 * valops.c (call_function_by_hand): Ditto.
5225 * infcmd.c (run_stack_dummy): Ditto.
5226 * inferior.h (CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET,
5227 CALL_DUMMY_BREAKPOINT_OFFSET): Provide default.
c906108c 5228
7a292a7a 52291999-03-23 Jason Molenda (jsm@bugshack.cygnus.com)
c906108c 5230
7a292a7a
SS
5231 * hppa-tdep.c (pa_register_look_aside): Remove CPU_HPPA_RISC_20
5232 check, test for presence of struct save_state_t and the ss_wide
5233 member directly.
5234 * configure.in: Remove CPU_HPPA_RISC_20 test. Add tests for
5235 HAVE_STRUCT_SAVE_STATE_T and HAVE_STRUCT_MEMBER_SS_WIDE.
5236 * acconfig.h: Add HAVE_STRUCT_SAVE_STATE_T HAVE_STRUCT_MEMBER_SS_WIDE.
5237 * configure, config.in: Regenerated.
c906108c
SS
5238
5239Mon Mar 22 13:25:13 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
5240
5241 * infttrace.c (proc_wait): rename to ptrace_wait.
5242
7a292a7a
SS
52431999-03-18 Jim Blandy <jimb@zwingli.cygnus.com>
5244
5245 * dwarf2read.c: Correctly recognize location expressions that
5246 designate LOC_REF_ARG arguments. Doc fixes.
5247 (isderef): New global. (Yuck.)
5248 (dwarf2_complex_location_expr): New complaint.
5249 (read_func_scope): Reject frame_base attributes that use the
5250 `deref' opcode as too complex.
5251 (new_symbol): If both regoff and isderef are set, and the base
5252 register is the frame pointer, then it's a LOC_REF_ARG argument.
5253 (decode_locdesc): Recognize the `deref' opcode in location
5254 expressions. Complain if it's not the last op in the expression.
5255
5256 * config/fr30/tm-fr30.h (COERCE_FLOAT_TO_DOUBLE): #define this to
5257 be true, or else value_arg_coere won't respect the (accurate)
5258 information we have about whether a function is prototyped.
5259
52601999-03-17 Jim Blandy <jimb@zwingli.cygnus.com>
5261
5262 * config/fr30/tm-fr30.h (STACK_ALIGN): Define this here, so
5263 calling functions by hand with odd-sized arguments doesn't munge
5264 the stack.
5265
c906108c
SS
52661999-03-17 Jason Molenda (jsm@bugshack.cygnus.com)
5267
5268 * configure.in (HAVE_MULTIPLE_PROC_FDS): Don't define for Solaris
5269 hosts--gdb doesn't support this yet.
5270 * configure: Regenerated.
5271
7a292a7a
SS
52721999-03-16 Keith Seitz <keiths@cygnus.com>
5273
5274 * remote.c (remote_binary_checked): New file global.
5275 (check_binary_download): New function to check if
5276 stub supports binary downloading that works with
5277 stubs that are not eight bit clean.
5278 (remote_write_bytes): Check for binary download capability
5279 and use it if available.
5280 Remove references to global remote_binary_length. What a hack.
5281 (putpkt_binary): New function.
5282 (putpkt): Call putpkt_binary.
5283 Use xor to escape trouble characters.
5284 * m32r-stub.c (bin2mem): Follow escape char convention change.
5285
c906108c
SS
5286Tue Mar 16 01:11:33 1999 Andrew Cagney <cagney@rhino.cygnus.com>
5287
5288 * target.h (struct target_ops), target.c (debug_to_query),
5289 remote.c (pack_hex_byte, remote_query): Promote char parameters to
5290 int. Stops compile problems with pedantic ISO-C compilers.
7a292a7a 5291
c906108c
SS
5292Tue Mar 16 15:29:04 1999 Stan Shebs <shebs@andros.cygnus.com>
5293
7a292a7a
SS
5294 * go32-xdep.c: Remove, no longer used by anything.
5295 * Makefile.in: Remove references.
5296
c906108c
SS
5297 * jv-lang.c, jv-lang.h (java_primitive_type): Declare argument
5298 as int instead of char.
5299
7a292a7a 5300Mon Mar 15 11:42:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
c906108c 5301
7a292a7a
SS
5302 * d10v-tdep.c (push_stack_item, pop_stack_item): New function.
5303 (d10v_push_arguments): Use.
c906108c 5304
7a292a7a
SS
5305 From Martin M. Hunt <hunt@cygnus.com>:
5306 * d10v-tdep.c (d10v_push_arguments): When arguments
5307 must be pushed onto the stack, they go on in
5308 reverse order.
c906108c 5309
7a292a7a
SS
53101999-03-16 Jim Blandy <jimb@zwingli.cygnus.com>
5311
5312 * symtab.c (make_symbol_overload_list): Don't try to stuff minimal
5313 or partial symbols into the overload list; we don't know their
5314 types. (Thanks to Rajiv Mirani.)
5315
53161999-03-15 Jason Molenda (jsm@bugshack.cygnus.com)
5317
5318 * acinclude.m4 (--with-itclconfig, --with-itkconfig, --with-tixconfig):
5319 Fix whitespace so --help messages line up.
5320 * configure.in (--with-cpu): Fix capitalization for --help messages.
5321 * configure, aclocal.m4: Regenerated.
5322
5323Mon Mar 15 11:39:03 1999 Ian Carmichael <iancarm@cygnus.com>
5324
5325 Support building gdb w/o simulator:
5326 * configure.in: Support --disable-sim. Check for sim directory.
5327 * Makefile.in (IGNORE_SIM, IGNORE_SIM_OBS): New.
5328 * acconfig.h (WITH_SIM): Define.
5329 * configure, config.in: Regenerate.
5330
5331Mon Mar 15 08:01:33 1999 Elena Zannoni <ezannoni@cygnus.com>
5332
5333 Patch from Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
5334
5335 * top.c (read_command_lines): Reset control_level to 0.
5336 (define_command): Don't do it here.
5337
5338Sun Mar 14 16:12:15 1999 Andrew Cagney <cagney@rhino.cygnus.com>
5339
5340 * hppah-nat.c (store_inferior_registers): Delete extern
5341 registers[] declaration.
5342
5343Sun Mar 14 19:17:30 1999 Andrew Cagney <cagney@b1.cygnus.com>
5344
5345 * infrun.c (write_inferior_status_register): New function. Provide
5346 update access to an inf_status register buffer. Only used by HP.
5347 * inferior.h (write_inferior_status_register): Add prototype.
5348
5349 * hppa-tdep.c (push_dummy_frame): Use
5350 write_inferior_status_register when hacking around a sleeping
5351 inferior. Accidently fix byte-order problem.
5352
5353Sun Mar 14 16:40:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
5354
5355 * config/pa/tm-hppa.h (PUSH_DUMMY_FRAME): Fix parameter. Address
5356 not needed.
5357
5358Fri Mar 12 13:11:48 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
5359
5360 * remote.c (remote_write_bytes): fix 'X' packet protocol so that it
5361 can't overwrite the end of its buffer with escaped characters.
c906108c
SS
5362
53631999-03-12 Jim Blandy <jimb@zwingli.cygnus.com>
5364
7a292a7a 5365 Alpha patches from Richard Henderson:
c906108c 5366
7a292a7a 5367 * alpha-tdep.c (alpha_skip_prologue): Recognize subq.
c906108c 5368
7a292a7a
SS
5369 * config/alpha/tm-alpha.h (REGISTER_NAMES): No f31, but fpcr.
5370 (FPCR_REGNUM): New.
5371 (REGISTER_CONVERTIBLE): Don't convert fpcr.
5372 (REGISTER_VIRTUAL_TYPE): Don't make fpcr a double.
c906108c 5373
7a292a7a
SS
5374 * stabsread.c (define_symbol): Only consider live range extension
5375 if we have an open parenthesis.
c906108c 5376
7a292a7a
SS
53771999-03-11 Jim Blandy <jimb@zwingli.cygnus.com>
5378
5379 * monitor.c (monitor_fetch_register): Print RDEBUG info correctly
5380 when the register name is null.
5381
5382Thu Mar 11 19:33:07 1999 Stan Shebs <shebs@andros.cygnus.com>
5383
5384 * infrun.c (wait_for_inferior): Change #if DECR_PC_AFTER_BREAK
5385 uses to expressions, remove redundant extern decls.
5386
5387Thu Mar 11 18:05:11 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
c906108c
SS
5388
5389 * infptrace.c (proc_wait): Rename to ptrace_wait.
5390 * inftarg.c (child_wait): call ptrace_wait instead of proc_wait.
5391 * inferior.h: Declare ptrace_wait instead of proc_wait.
5392
7a292a7a
SS
5393Thu Mar 11 11:46:25 1999 Andrew Cagney <cagney@amy.cygnus.com>
5394
5395 * breakpoint.c (create_solib_load_unload_event_breakpoint,
5396 create_fork_vfork_event_catchpoint, tcatch_command,
5397 create_exception_catchpoint, break_at_finish_at_depth_command_1,
5398 catch_fork_command_1, ep_skip_leading_whitespace,
5399 break_at_finish_command_1, catch_exec_command_1,
5400 catch_exception_command_1, stop_command, stopin_command,
5401 stopat_command, ep_parse_optional_filename,
5402 ep_find_event_name_end, ep_parse_optional_if_clause,
5403 catch_fork_command_1), stack.c (show_and_print_stack_frame_stub,
5404 print_stack_frame_stub, print_only_stack_frame_stub,
5405 backtrace_command_1, backtrace_full_command, func_command),
5406 valprint.c (print_decimal), source.c (print_source_lines_base):
5407 Add prototype.
5408
5409 * stack.c (print_stack_frame_stub, show_and_print_stack_frame_stub,
5410 print_only_stack_frame_stub): Make param void*.
5411
5412Wed Mar 10 19:33:28 1999 Geoffrey Noer <noer@cygnus.com>
5413
5414 * win32-nat.c: If old Cygwin Win32 API headers aren't being used,
5415 define some gdb-specific defines that shouldn't have been in the
5416 global headers.
5417
5418Wed Mar 10 21:20:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
5419
5420 * findvar.c (registers, register_valid): Replace array with pointer.
5421 (build_findvar): New function. Allocate space for REGISTERS and
5422 REGISTER_VALID.
5423 (_initialize_findvar): Call build_findvar.
0f71a2f6
JM
5424 (_initialize_findvar): Register REGISTERS and REGISTER_VALID as
5425 arch dependant.
7a292a7a
SS
5426
5427 * inferior.h (registers, register_valid): Replace array with
5428 pointer.
5429
5430 * inferior.h (struct inferior_status): Move definition from here.
5431
5432 * infrun.c (struct inferior_status): To here.
5433 (struct inferior_status): Change ``stop_registers'' and
5434 ``registers'' to pointers.
5435 (xmalloc_inferior_status, free_inferior_status): New functions.
5436 (restore_inferior_status): Call free_inferior_status.
5437 (save_inferior_status): Call xmalloc_inferior_status.
5438 (discard_inferior_status): New function, discard inf_status
5439 buffer. Call free_inferior_status.
5440
5441 * inferior.h (stop_registers): Replace array with pointer.
5442 * infrun.c (stop_registers): Update.
5443 (build_infrun): Initialize stop_registers.
5444 (_initialize_infrun): Call build_infrun.
0f71a2f6 5445 (_initialize_infrun): Register ``stop_registers'' as arch dependant.
7a292a7a
SS
5446
5447Wed Mar 10 14:50:42 1999 Andrew Cagney <cagney@amy.cygnus.com>
5448
5449 * alpha-tdep.c (alpha_linux_sigtramp_offset): Only compile when
5450 LINUXALPHA target. Hack.
5451
5452 * infrun.c (set_follow_fork_mode_command): Make static. Add
5453 prototype.
5454 * tracepoint.c (add_register): Ditto.
5455 * valprint.c (strcat_longest): Comment out. Does not appear to be
5456 used.
5457 * valops.c (find_method_list): Make static. Add prototype.
5458 * thread.c (target_find_new_threads): Make static. Add prototype.
5459 * stack.c (stack_publish_stopped_with_no_frame,
5460 select_and_maybe_print_frame): Comment out. Does not appear to be
5461 used.
5462 (current_frame_command): Add prototype.
5463 * breakpoint.c (break_at_finish_command,
5464 break_at_finish_at_depth_command, tbreak_at_finish_command): Make
5465 static. Add prototype.
5466 * findvar.c (read_relative_register_raw_bytes_for_frame): Ditto.
5467
5468Wed Mar 10 23:38:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
5469
5470 * corefile.c (registers): Delete redundant variable declaration.
5471 * inferior.h (run_stack_dummy): Change array argument to pointer.
5472 * infcmd.c (run_stack_dummy): Update.
5473 * value.h (value_being_returned): Change RETBUF to a pointer.
5474 * values.c (value_being_returned): Update.
5475
5476Wed Mar 10 11:08:16 1999 Andrew Cagney <cagney@amy.cygnus.com>
5477
5478 * source.c (list_command): GCC suggested explicit braces to avoid
5479 ambiguous `else'.
5480
5481 * jv-typeprint.c: Include "c-lang.h".
5482 * Makefile.in (jv-typeprint.o): Add dependency.
5483 * jv-valprint.c: Include "gdbcore.h", "annotate.h".
5484 * Makefile.in (jv-valprint.o): Add dependencies.
5485 * objfiles.c: Include "breakpoint.h".
5486 * Makefile.in (objfiles.o): Add dependency.
5487 * main.c: Include <unistd.h>.
5488 * parse.c: Include <ctype.h>.
5489 * remote.c: Include <ctype.h>.
5490 * ser-tcp.c: Include <unistd.h>.
5491 * ax-general.c: Include "value.h".
5492 * Makefile.in (ax-general.o): Add dependency.
5493
5494 * alpha-tdep.c (alpha_push_arguments): Make ``i'' an int instead
5495 of a register.
5496 * frame.h (show_and_print_stack_frame): Add function prototype.
5497 * language.h (language_enum): Add function prototype.
5498 * value.h (find_overload_match): Add function prototype.
5499
5500 * defs.h, utils.c (subset_compare): Rename subsetCompare. Add
5501 prototype.
5502 * stack.c (backtrace_command): Update.
5503
5504Wed Mar 10 13:58:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
5505
5506 * configure.in (AC_CHECK_HEADERS): Check for <sys/select.h>
5507 * configure, config.in: Re-generate.
5508 * inflow.c: Conditionally include <sys/select.h>.
5509
5510Wed Mar 10 13:44:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
5511
5512 * frame.h (struct dummy_frame): Move from here.
5513 * blockframe.c (struct dummy_frame): To here.
5514
5515 * blockframe.c (struct dummy_frame): Replace ``regs'' with pointer
5516 ``registers''.
5517 (generic_pop_dummy_frame): Free it.
5518 (generic_push_dummy_frame): Allocate dummy frame register buffer.
5519
5520Wed Mar 10 11:08:16 1999 Andrew Cagney <cagney@amy.cygnus.com>
5521
5522 * thread.c (_initialize_thread): Delete redundant ``extern struct
5523 cmd_list_element *cmdlist''.
5524 * printcmd.c (print_command_1): Ditto for ``objectprint'';
5525
55261999-03-09 Stan Shebs <shebs@andros.cygnus.com>
5527
5528 * MAINTAINERS: New file, list of maintainers and areas they
5529 maintain.
c906108c
SS
5530
55311999-03-09 Rodney Brown <RodneyBrown@pmsc.com>
5532
5533 Get working on UnixWare 2.1.1.
5534 * acconfig.h: Update for defines for procfs.c.
5535 * configure.in: Identify defines for procfs.c.
5536 * configure.host: i386-*-sysv4.2uw2* => i386v42mp
5537 * configure.tgt: i386-*-sysv4.2uw2* => i386v42mp
5538 * configure, config.in: Regenerate.
5539 * procfs.c: Rename HAVE_NO_PRRUN_T to HAVE_PRRUN_T (autoconf
5540 standard), wrap UNIXWARE difference in THE_PR_LWP macro for
5541 legibility.
5542 * config/i386/tm-i386v42mp.h: Remove HAVE_PSTATUS_T,
5543 HAVE_NO_PRRUN_T; now set by configure.
5544
7a292a7a
SS
5545Tue Mar 9 16:29:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
5546
5547 * i386-tdep.c (gdb_print_insn_i386): Abort when disassembly_flavor
5548 undefined..
5549
5550 * fr30-tdep.c (_initialize_fr30_tdep): Add prototype. Fix
5551 coding style.
5552
5553 * target.c (debug_to_enable_exception_callback,
5554 debug_to_get_current_exception_event): Return result of call to
5555 debug_target().
5556
55571999-03-09 Jim Blandy <jimb@zwingli.cygnus.com>
5558
5559 Another HURD fix from Mark Kettenis:
5560 * gnu-nat.c: Include <string.h>. Remove declaration of strerror.
5561 Include <bits/waitflags.h> instead of <waitflags.h> and define
5562 _SYS_WAIT_H to prevent the warning that we should not include it.
5563 (gnu_create_inferior): Change return type of attach_to_child to
5564 void. Do not return INFERIOR_PID.
5565 (gnu_pid_to_exec_file): Change return type to char *.
5566 Return NULL.
5567
5568 Fix for the HURD from Mark Kettenis:
5569 * configure.in: Add AC_PROG_AWK. Needed by the machine-dependent
5570 makefile fragments for the Hurd.
5571 * Makefile.in (AWK): Add. Set by configure.
5572 * configure: Regenerated.
5573
55741999-03-08 Jason Molenda (jsm@bugshack.cygnus.com)
5575
5576 * infttrace.c (hppa_get_process_events): Removed. Function only
5577 usable on HPUX 10 and above. It is not called by any other part
5578 of GDB.
5579 * hppah-nat.c (hppa_get_process_events): Ditto.
5580 (child_pid_to_exec_file): Only call ptrace with
5581 PT_GET_PROCESS_PATHNAME if that symbol has been defined.
5582 * config/pa/nm-hppah.h: Don't set up prototypes et al for
5583 hppa_get_process_events.
5584
5585 * config/pa/hppahpux.mh (TERM_LIB): Do not initialize, let autoconf
5586 determine best library automatically.
5587 * config/pa/hpux1020.mh: Ditto.
5588 * config/pa/hpux1100.mh: Ditto.
5589 * configure.in (TERM_LIB): Also check for libHcurses.
5590 * configure: Regenerated.
5591
5592Thu Mar 4 17:16:04 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
5593
5594 * m32r-stub.c: add support for crc "Compare" command.
5595
c906108c
SS
55961999-03-04 Jim Blandy <jimb@zwingli.cygnus.com>
5597
7a292a7a
SS
5598 * fr30-tdep.c (fr30_store_return_value): Allocate zeroes
5599 dynamically, to save BSS space, and to remove assumptions about
5600 the size of the largest value we'll return.
5601
5602 * config/fr30/tm-fr30.h (fr30_store_return_value): Use PARAMS in
5603 prototype.
5604
5605Thu Mar 4 08:37:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
5606
5607 * sh3-rom.c (sh3_supply_register, sh3_supply_register),
5608 mips-tdep.c (mips_push_arguments), m32r-rom.c
5609 (m32r_upload_command), m32r-tdep.c (decode_prologue), monitor.c
5610 (longlong_hexchars), tracepoint.c (validate_actionline,
5611 read_actions), mdebugread.c
5612 (parse_symbol), jv-typeprint.c
5613 (java_type_print_base, java_type_print_base), mdebugread.c
5614 (parse_symbol), top.c (source_command), utils.c
5615 (floatformat_to_doublest): GCC suggest explicit braces to avoid
5616 ambiguous `else'.
c906108c 5617
7a292a7a
SS
5618 * tracepoint.c (map_args_over_tracepoints, trace_actions_command),
5619 m32r-rom.c (m32r_supply_register), win32-nat.c
5620 (handle_output_debug_string, child_continue), i960-tdep.c
5621 (pop_frame), m32r-rom.c (m32r_upload_command): GCC suggested
5622 parentheses around assignment used as truth value.
5623
5624 * remote-sds.c (sds_wait), monitor.c (monitor_fetch_register),
5625 ser-e7kpc.c, (dosasync_write), arc-tdep.c (arc_get_frame_setup):
5626 GCC suggested parentheses around operands.
5627
5628 * c-typeprint.c (c_type_print_base): GCC suggested enclosing
5629 "while" expression in paren.
5630
5631Wed Mar 3 18:14:33 1999 Andrew Cagney <cagney@chook.cygnus.com>
5632
5633 * sol-thread.c (save_inferior_pid): Cast the saved pid to void*.
5634 (restore_inferior_pid): Takes void* as required by make_cleanup.
5635 Casts pid back to an int.
5636
5637 * procfs.c (make_cleanup_close_proc_file,
5638 close_proc_file_cleanup): Create a proc_file cleanup.
5639 (info_proc): Use.
5640
5641 * defs.h (make_cleanup_freeargv): Helper function. Establish
5642 cleanup using freeargv. Can not just typecast/pass freeargv as it
5643 violates ISO-C.
5644 * utils.c (do_freeargv): Helper.
5645 (make_cleanup_freeargv): New function.
5646
5647 * symmisc.c (maintenance_print_symbols,
5648 maintenance_print_psymbols, maintenance_print_msymbols), symfile.c
5649 (symbol_file_command), stack.c (backtrace_command), remote-sim.c
5650 (gdbsim_create_inferior, gdbsim_open), remote-mips.c
5651 (common_open), procfs.c (info_proc), infrun.c (handle_command,
5652 xdb_handle_command), exec.c (exec_file_attach): Call
5653 make_cleanup_freeargv.
5654
56551999-03-03 James Ingham <jingham@cygnus.com>
5656
5657 * i386-tdep.c (_initialize_i386_tdep): Set the inital value for
5658 disassembly flavor at startup, rather than hardcoding it.
5659
56601999-03-03 Jim Blandy <jimb@zwingli.cygnus.com>
5661
5662 Put return values in the right place.
5663 * fr30-tdep.c (fr30_store_return_value): New function.
5664 * config/fr30/tm-fr30.h (STORE_RETURN_VALUE): Call
5665 fr30_store_return_value.
5666
5667Wed Mar 3 18:10:55 1999 Andrew Cagney <cagney@chook.cygnus.com>
5668
5669 * gdbtypes.c (virtual_base_list_aux): Return void. Add prototype.
5670
5671 * breakpoint.c (map_catch_names): Comment out unused function.
5672
56731999-03-02 Jason Molenda (jsm@bugshack.cygnus.com)
5674
5675 * hppa-tdep.c (pa_register_look_aside): Only refer to save_state_t
5676 structure on PA 2.0 systems.
5677
56781999-03-02 Stan Shebs <shebs@andros.cygnus.com>
5679
5680 From Gary Thomas <gthomas@cygnus.co.uk>:
5681 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT,
5682 THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Use illegal instruction
5683 instead of SWI 24.
5684 * config/arm/tm-arm.h (CALL_DUMMY): Ditto.
5685 (IN_SIGTRAMP): Define.
5686
56871999-03-02 Nick Clifton <nickc@cygnus.com>
5688
5689 * findvar.c (store_address): Delete incorrect big endian
5690 code.
5691
5692Tue Mar 2 18:02:42 1999 Andrew Cagney <cagney@chook>
5693
5694 * configure.in (gdb_cv_os_cygwin): Compat. Continue to reconize
5695 __CYGWIN32__.
5696
56971999-03-01 Jason Molenda (jsm@bugshack.cygnus.com)
5698
5699 * configure.in: Move setting of gdb_cv_os_cygwin to before
5700 setting of TERM_LIB. Check for __CYGWIN__ instead of __CYGWIN32__.
5701 * configure: Regenerated.
5702
57031999-03-01 DJ Delorie <dj@cygnus.com>
5704
5705 * configure.in: Change -cygwin32* to -cygwin*.
5706 * configure: Ditto.
5707
57081999-02-25 Stan Shebs <shebs@andros.cygnus.com>
5709
5710 * breakpoint.c (SOLIB_LOADED_LIBRARY_PATHNAME,
5711 SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_CREATE_CATCH_LOAD_HOOK,
5712 SOLIB_CREATE_CATCH_UNLOAD_HOOK): Supply default definitions.
5713 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Ditto.
5714
57151999-02-25 Keith Seitz <keiths@cygnus.com>
5716
5717 * corelow.c (core_close): Clear out solib state before
5718 closing the bfd associated with the core file.
5719 * solib.c (clear_solib): Mention that clear_solib requires
5720 an open BFD in order for disable_breakpoints_in_shlibs to
5721 determine whether breakpoints live in shared libraries.
5722
57231999-02-24 Jason Molenda (jsm@bugshack.cygnus.com)
c906108c
SS
5724
5725 * configure.in: Set CPU_HPPA_RISC_20 if the host CPU is a PA 2.0
5726 processor.
5727 * acconfig.h: Add CPU_HPPA_RISC_20
5728 * config.in, configure: Regenerated.
5729 * hppa-tdep.c (pa_register_look_aside): Only refer to new
5730 structure elements if we are on a PA2.0 system.
5731 * defs.h: Include limits.h.
5732
7a292a7a
SS
5733Tue Feb 23 14:37:08 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
5734
5735 * infrun.c (wait_for_inferior): Check scheduler_locking state
5736 before resuming after a thread-specific breakpoint.
5737
57381999-02-23 Jim Blandy <jimb@zwingli.cygnus.com>
5739
5740 * aclocal.m4, config.in, configure: Regenerated with latest
5741 autotools.
5742
5743Mon Feb 22 12:32:19 1999 Per Bothner <bothner@cygnus.com>
5744
5745 * jv-valprint.c (java_val_print): Restore line that somehow got lost.
5746
5747 * jv-valprint.c (java_print_value_fields): Check for NULL type.
5748
57491999-02-21 Jim Blandy <jimb@zwingli.cygnus.com>
5750
5751 * tm-h8500.h, i386lynx-nat.c: Removed. These files are long
5752 dead; it seems that they only appeared due to some CVS weirdness.
5753 If they appear again, we may need to distribute garlic and holy
5754 water.
5755
57561999-02-19 Jason Molenda (jsm@bugshack.cygnus.com)
5757
5758 * configure.in (TERM_LIB): Move checking for TERM_LIB, substituting.
5759 * configure: Regenerated.
5760
57611999-02-19 Robert Hoehne (robert.hoehne@gmx.net)
5762
5763 * configure.host (i[3456]86-*-msdosdjgpp*): New host.
5764 * configure.tgt (i[3456]86-*-msdosdjgpp*): New target.
5765 * go32-nat.c: New file, native DJGPP support.
5766 * config/i386/go32.mh: Rewrite for DJGPP (go32) host.
5767 * config/i386/go32.mt: New file, DJGPP (go32) target.
5768 * config/i386/nm-go32.h: New file.
5769 * config/i386/tm-go32.h: New file.
5770 * config/i386/xm-go32.h: Rewritten for current DJGPP.
5771
57721999-02-18 Jason Molenda (jsm@bugshack.cygnus.com)
5773
5774 * reply_mig_hack.awk, config/nm-gnu.h, config/alpha/nm-linux.h
5775 config/alpha/xm-alphalinux.h, config/alpha/xm-alphaosf.h
5776 config/i386/nm-i386sco5.h, config/i386/tm-fbsd.h, config/i386/tm-i386.h
5777 config/powerpc/nm-aix.h, config/powerpc/tm-macos.h
5778 config/powerpc/tm-ppc-aix.h, config/powerpc/xm-aix.h
5779 config/rs6000/tm-rs6000-aix4.h, testsuite/gdb.chill/tests1.ch
5780 testsuite/gdb.chill/tests2.ch, testsuite/gdb.chill/tests2.exp:
5781 Update FSF address in copyright notices.
5782
57831999-02-18 Jason Molenda (jsm@bugshack.cygnus.com)
5784
5785 * configure.in: Quote "$GCC" correctly.
5786 * configure: Regenerated.
5787
57881999-02-18 Jim Blandy <jimb@zwingli.cygnus.com>
5789
5790 * dbxread.c (elfstab_build_psymtabs): Don't assume that there's a
5791 section named ".text", which has all the code in it. Instead, look
5792 at all the sections in the file with the `code' flag set.
5793 (find_text_range): New function, that does all the work.
5794
5795Thu Feb 18 17:50:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
5796
5797 * mips-tdep.c (FP_REGISTER_DOUBLE): Conditionally define.
5798
5799Fri Jan 29 16:51:11 1999 Andrew Cagney <cagney@chook.cygnus.com>
5800
5801 * mips-tdep.c (return_value_location): New function. Merge/rewrite
5802 of return-value code in mips_extract_return_value,
5803 mips_store_return_value. Stop buffer overflow when 64 bit value
5804 in 32 bit registers. Extract 64bit float from 32 bit register
5805 pair of correct order.
5806 (mips_extract_return_value, mips_store_return_value): Call
5807 return_value_location. For store, ensure that remainder of
5808 register is zero.
c906108c 5809
7a292a7a 5810Wed Feb 17 10:10:27 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
c906108c
SS
5811
5812 * gdbtypes.h (get_discrete_bounds): Remove duplicate decl.
5813
5814 * jv-typeprint.c (java_type_print_base): Change fputs => fputs_filtered.
5815
7a292a7a 5816Mon Jan 25 18:30:57 1999 Per Bothner <bothner@cygnus.com>
c906108c
SS
5817
5818 * jv-lang.h (JAVA_OBJECT_SIZE): Change from hard-wired constant.
5819 (java_primitive_type_from_name, get_java_object_header_size): Declare.
5820 * jv-lang.c (java_class_from_object): Use get_java_object_type.
5821 * jv-lang.c: Update Class field names: dtable->vtable,
5822 msize->method_count, nfields->field_count, bfsize->size_in_bytes,
5823 nmethods->method_count.
5824 (type_from_class): Demangle array type names.
5825 (java_link_class_type): Array type names are now demangled.
5826 (get_java_object_type): If not defined yet, try looking it up.
5827 (get_java_object_header_size): New function.
5828 (java_primitive_type_from_name): New function.
5829 (java_demangled_signature_length, java_demangled_signature_copy): New.
5830 (java_demangle_type_signature): Re-implement using above functions.
5831 (evaluate_subexp_java): For UNOP_IND, call evaluate_subexp_java
5832 to evaluate subexp (not evaluate_subexp_standard).
5833 For BINOP_SUBSCRIPT update for new array type naming scheme.
5834 * jv-valprint.c (java_value_print): Use java_class_from_object.
5835 Update array printing to new array type naming convention.
5836 (java_val_print): Doing check_typedef when printing a pointer is
5837 is a waste of effort. Also, handle TYPE_CODE_INT, to make sure
5838 Java bytes as not printed as C chars.
5839
7a292a7a 5840Fri Jan 8 16:58:22 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
c906108c
SS
5841
5842 * blockframe.c (find_pc_sect_partial_function): Search full symtabs as
5843 a last ditch effort (after the partial & minimal symtabs).
5844 * defs.h utils.c: Fixup prototypes for vprintf_filtered,
5845 vfprintf_filtered, vfprintf_unfiltered and vprintf_unfiltered to return
5846 ints to match their standard equivalents.
5847 * defs.h symtab.c top.c: Create skip_prologue_hook to allow Java to
5848 control the prologue skipping process.
5849 * jv-typeprint.c (java_type_print_base): Remove extern for
5850 jv_class_demangle, add new arg for objfile (NULL).
5851 * symtab.h: Remove struct sourcevector and struct source. Definately
5852 not needed.
5853 * values.c (value_virtual_fn_field): Fixes code to handle new vtable
5854 debug info format. Patch from marka.
5855
7a292a7a 5856Wed Dec 16 23:11:25 1998 Stu Grossman <grossman@fencer.cygnus.com>
c906108c
SS
5857
5858 * jv-lang.c (java_class_from_object java_class_is_primitive
5859 is_object_type): Change dtable to vtable.
5860 * (java_primitive_type): Change arg to type char.
5861 * (_initialize_java_language): Make java_char_type be unsigned.
5862 * jv-lang.h: Fixup prototypes.
5863
7a292a7a 5864Mon Dec 7 19:02:15 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
c906108c
SS
5865
5866 * jv-valprint.c (java_value_print): Fix printing of values where
5867 run time type != compile time type.
5868
7a292a7a
SS
5869Fri Dec 4 15:23:38 1998 Stu Grossman <grossman@fencer.cygnus.com>
5870
c906108c
SS
5871 * Makefile.in: Whack out m2-typeprint.c.
5872 * c-typeprint.c (c_type_print_varspec_suffix) typeprint.h: Make this
5873 global. It's needed by Java.
5874 * (c_type_print_base): Whack prefix off of qualified method names
5875 (names with name spaces).
5876 * gdbtypes.h (struct cplus_struct_type): Add bits for Java attributes.
5877 Shrink voffset
5878 to 16 bits to compensate for added bits above (hopefully this is still
5879 enough).
5880 * Add new accessor macros (TYPE_FND_FIELD_PUBLIC, ...) for all new
5881 attribute bits.
5882 * jv-typeprint.c (java_type_print_base): Fix printing of method
5883 attributes. Handle JVM style manglings.
5884 * (java_print_type): Enable code type print varspec_suffix to allow
5885 array indices to print out.
5886 * jv-valprint.c (java_val_print): Minor formatting.
5887 * m2-lang.c (m2_language_d): Change m2_print_type to c_print_type.
5888 * stabsread.c (read_member_functions): Save public and static attributes.
7a292a7a
SS
5889
5890Wed Feb 17 15:32:57 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
c906108c 5891
c906108c
SS
5892 * breakpoint.c (watch_command_1): Reformat comment.
5893
c906108c
SS
5894 * c-typeprint.c (c_type_print_base): Reformat comments.
5895
7a292a7a
SS
58961999-02-17 Jim Blandy <jimb@zwingli.cygnus.com>
5897
5898 * Makefile.in (VERSION): Bump version to 4.17.2.
5899
5900Tue Feb 16 15:48:20 1999 Edith Epstein <eepstein@sophia.cygnus.com>
5901
c906108c
SS
5902 * config/pa/nm-hppah.h: Added prototype declarations for
5903 hppa_enable_page_protection_events and
5904 hppa_disable_page_protection_events.
7a292a7a 5905
c906108c
SS
5906 * inftarg.c (child_wait): Fixed code that checks whether
5907 or not the target program has done a fork/vfork.
5908 related_pid does not have a value unless the target
5909 program has forked/vforked.
7a292a7a
SS
5910
5911 * infttrace.c (hppa_insert_hw_watchpoint): Make sure that
5912 function always returns a value.
5913 (hppa_remove_hw_watchpoint): Make sure that function always
5914 returns a value.
c906108c 5915
7a292a7a 5916Tue Feb 16 06:31:58 1999 Keith Seitz <keiths@cygnus.com>
c906108c 5917
7a292a7a
SS
5918 * config/powerpc/tm-ppc-eabi.h: Do not define PC_IN_CALL_DUMMY,
5919 let the generic call dummy infrastructure do it.
c906108c
SS
5920
5921Sun Feb 14 18:21:08 1999 Mark Alexander <marka@cygnus.com>
5922
5923 * config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
5924 coffread.c will correctly handle char or short function parameters.
5925
59261999-02-11 Jason Molenda (jsm@bugshack.cygnus.com)
5927
5928 * configure, aclocal.m4: Regenerate with correct version of aclocal.
5929
59301999-02-10 Syd Polk <spolk@cygnus.com>
5931
5932 * acinclude.m4: Fix for new location of itclConfig.sh and itkConfig.sh.
5933 * aclocal.m4: Regnerate.
5934 * configure: Regenerate.
5935
59361999-02-10 Jason Molenda (jsm@bugshack.cygnus.com)
5937
5938 * demangle.c: Fix comments to mention "set demangle-style"
5939 instead of "set demangle".
5940 Run through indent to fix minor indenting problems.
5941
5942Wed Feb 10 17:53:09 1999 Bob Manson <manson@charmed.cygnus.com>
5943
5944 * i386-tdep.c (gdb_print_insn_i386): Add missing returns.
5945
5946Wed Feb 10 13:17:21 1999 Stan Shebs <shebs@andros.cygnus.com>
5947
5948 Declare Gould configuration obsolete:
5949 * configure.host, configure.tgt: Comment out Gould configs.
5950 * Makefile.in: Comment out Gould-related actions.
5951 * gould-xdep.c, gould-tdep.c, config/gould/*: Comment out.
5952 * NEWS: Mention obsolete status.
5953
59541999-02-09 DJ Delorie <dj@cygnus.com>
5955
5956 * sparcl-tdep.c: UDP download works in cygwin
5957
59581999-02-08 Jason Molenda (jsm@bugshack.cygnus.com)
5959
5960 * gnu-regex.c: Check ENABLE_NLS instead of HAVE_LIBINTL_H.
5961 * configure.in: Don't check for libintl.h.
5962 * configure, config.in: Regenerated.
5963
5964Mon Feb 8 18:10:50 1999 Stan Shebs <shebs@andros.cygnus.com>
5965
5966 * NEWS: Mention new X packet and PowerPC variant support.
5967
59681999-02-08 Nick Clifton <nickc@cygnus.com>
5969
5970 * configure.host: Add support for StrongARM host.
5971 * configure.tgt: Add support for StrongARM target.
5972
5973Mon Feb 8 12:05:05 1999 David Taylor <taylor@texas.cygnus.com>
5974
5975 * dsrec.c (make_srec): Cast targ_addr to int in call to sprintf
5976 otherwise on big endian machine with a bfd_vma of 64 bits,
5977 *everything* gets loaded at location 0.
5978
5979Mon Feb 7 10:05:43 1999 Frank Ch. Eigler <fche@cygnus.com>
5980
5981 * infrun.c (wait_for_inferior): Allow SIGTRAP to be "pass"ed
5982 to target program.
5983
5984Fri Feb 5 16:46:14 1999 Stan Shebs <shebs@andros.cygnus.com>
5985
5986 * NEWS: Add mentions of various new things.
5987
5988Thu Feb 4 00:19:14 1999 Christopher Faylor <cgf@cygnus.com>
5989
5990 * configure.in: Move termcap determination later in the
5991 file to catch setting of cygwin flag.
5992 * configure: Regenerate.
5993
5994Wed Feb 3 14:16:38 1999 Christopher Faylor <cgf@cygnus.com>
5995
5996 * config/i386/cygwin.mh: Move TERMCAP test code to configure.in.
5997 * configure.in: Treat libtermcap.a detection as a special case
5998 when hosting on cygwin.
5999 * configure: Regenerate.
6000
60011999-02-03 Keith Seitz <keiths@cygnus.com>
6002
6003 * remote.c (remote_binary_download, remote_binary_length): New
6004 static globals for dealing with binary transmissions.
6005 (remote_write_bytes): Add support for binary downloads
6006 by shadowing the "M" packet with a new "X" packet. This
6007 defaults to ON; if the stub does not understand this, it
6008 will fall back to using "M".
6009 (putpkt): Add support for binary downloading.
6010 * monitor.c (monitor_expect): The mon2000 monitor
6011 on the MSA2000 will also emit random DC1/DC3 chars.
6012 * m32r-stub.c: Change all char's to unsigned char's
6013 to support binary downloading.
6014 (handle_exception): Add support for binary downloading
6015 via a new "X" packet.
6016 (getpacket): Do NOT strip eighth bit of incoming chars.
6017 Watch out for escaped characters in the incoming stream.
6018 (putpacket): Do NOT strip eighth bit of incoming chars.
6019 (bin2mem): New function to write binary data directly to
6020 memory.
6021 * m32r-rom.c: Add new "mon2000" target.
6022
6023Tue Feb 2 18:40:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6024
6025 * hp-psymtab-read.c (hpread_build_psymtabs): Coerce first arg
6026 passed to make_cleanup to the correct type.
6027 (hpread_quick_traverse): Change fifth arg to call to
6028 hpread_end_psymtab to be 0.
6029 Compare CURR_MODULE_END to 0 rather than NULL.
6030 Get rid of ifdef'ed out code.
6031 (scan_procs): Get rid of ifdef'ed out code.
6032
6033 * somread.c (som_symfile_read): Coerce first argument passed to
6034 make_cleanup to the correct type.
6035
6036Tue Feb 2 17:36:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6037
6038 * hp-psymtab-read.c (do_pxdb): New function. Check whether the
6039 file needs to be processed by pxdb (an HP debug info massaging
6040 tool), if so call it.
6041 (hpread_build_psymtabs): Initialize scan_start to 0 and
6042 simplify flow of control.
6043
6044 * somread.c (som_symfile_read): Add call to do_pxdb (),
6045 in hp-psymtab-read.c.
6046
6047 * symfile.c (symbol_file_add): Remove ifdef'ed out HPUX specific
6048 code.
6049 (symfile_bfd_open): Remove HPUXHPPA ifdef'ed code. Code is now
6050 in hp-psymtab-read.c.
6051
60521999-02-02 Martin Hunt <hunt@cygnus.com>
6053
6054 * printcmd.c (print_scalar_formatted): Use strcat to concat all
6055 the output together before calling fprintf_filtered().
6056
60571999-02-01 Jason Molenda (jsm@bugshack.cygnus.com)
6058
6059 * configure.in: Require autoconf 2.13.
6060 (AM_EXEEXT): Replace with new AC_EXEEXT.
6061 * acinclude.m4: Move itcl header macros from aclocal.m4 to here.
6062 * aclocal.m4: Regenerated.
6063 * configure: Regenerated.
6064
60651999-02-01 Jim Blandy <jimb@zwingli.cygnus.com>
6066
6067 Allow PPC users to select which PPC/RS6000 variant they're
6068 debugging at run-time. At the moment, the only thing this affects
6069 is the set of registers visible.
6070 * config/rs6000/tm-rs6000.h (REGISTER_NAME): Define this as a call
6071 to the function rs6000_register_name.
6072 (rs6000_register_name): Include extern decl.
6073 (NUM_REGS): Bump to 183. What's the right way to do this?
6074 (FIRST_UISA_SP_REGNUM, LAST_UISA_SP_REGNUM): Renamed from
6075 FIRST_SP_REGNUM, LAST_SP_REGNUM.
6076 (REGISTER_BYTES): Recompute this.
6077 * rs6000-tdep.c: Renamed all uses of FIRST_SP_REGNUM and
6078 LAST_SP_REGNUM to FIRST_UISA_SP_REGNUM and LAST_UISA_SP_REGNUM, with
6079 some concomitant formatting changes.
6080 #include "gdbcmd.h", so we can define commands here.
6081 (struct variant): New structure.
6082 (COMMON_UISA_REG_NAMES, PPC_UISA_SPR_NAMES, PPC_SEGMENT_REG_NAMES,
6083 PPC_32_OEA_SPR_NAMES, num_registers): New macros.
6084 (register_names_rs6000, register_names_uisa, register_names_403,
6085 register_names_403GC, register_names_505, register_names_860,
6086 register_names_601, register_names_602, register_names_603,
6087 register_names_604, register_names_750, variants): New variables.
6088 (rs6000_register_name, install_variant, find_variant_by_name,
6089 install_variant_by_name, list_variants, show_current_variant,
6090 set_processor, show_processor): New functions.
6091 (_initialize_rs6000_tdep): Define new commands `set processor' and
6092 `show processor', and call install_variant_by_name to set the
6093 default variant.
6094 * rs6000-nat.c: Renamed all uses of FIRST_SP_REGNUM and
6095 LAST_SP_REGNUM to FIRST_UISA_SP_REGNUM and LAST_UISA_SP_REGNUM, with
6096 some concomitant formatting changes.
6097 * configure.in: Accept the `--with-cpu' flag, to specify a default
6098 processor variant.
6099 * acconfig.h: Provide a blurb for TARGET_CPU_DEFAULT, which is set
6100 by configure's `--with-cpu' flag.
6101 * config.in, configure: Regenerated.
6102
6103Sun Jan 31 15:24:24 1999 Stan Shebs <shebs@andros.cygnus.com>
6104
6105 * buildsym.h, buildsym.c: Convert to ANSI-only.
6106
6107 * buildsym.h, buildsym.c: Reformat to standard.
6108
6109 * buildsym.c (merge_symbol_lists): Remove unused variable.
6110 (_initialize_buildsym): Remove, does nothing.
6111
61121999-01-31 J.T. Conklin <jtc@redbacknetworks.com>
6113
6114 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
6115 sparcl-stub, sparclet-stub.c: Change declaration of putDebugChar
6116 to include explicit void return type as per documentation. Fix up
6117 occasions where stubs erroneously checked return type.
6118
6119Sun Jan 31 13:18:33 1999 Stan Shebs <shebs@andros.cygnus.com>
6120
6121 From J.T. Conklin <jtc@redbacknetworks.com>:
6122 * remote.c (remote_query): Fix tipo.
6123
6124Fri Jan 29 15:25:09 1999 Stan Shebs <shebs@andros.cygnus.com>
6125
6126 * configure.tgt (v850): Add wildcard to match.
6127
6128Fri Jan 29 16:44:01 1999 Edith Epstein <eepstein@sophia.cygnus.com>
6129
6130 * inferior.h: Ran indent.
6131
6132 * fork-child.c: Ran indent.
6133
6134 * infrun.c : Ran indent.
6135
6136Fri Jan 29 12:57:34 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6137
6138 * infrun.c (_initialize_infrun): Do not stop or print anything
6139 when a SIGWINCH is received.
6140
6141 * Makefile.in (m2-exp.tab.c): Use YACC not BISON.
6142 (f-exp.tab.c): Ditto.
6143 (jv-exp.tab.c): Ditto.
6144 (c-exp.tab.c): Ditto.
6145 (YACC): Define as @YACC@.
6146
61471999-01-29 Martin Hunt <hunt@cygnus.com>
6148
6149 Changes from Keith Seitz <keiths@cygnus.com>
6150 * valops.c (value_assign): Add calls to register_changed_hook and
6151 memory_changed_hook to inform UIs that the user has changed
6152 the target's registers/memory.
6153 * findvar.c (write_register_gen): Remove call to pc_changed_hook.
6154 * defs.h: Remove declaration for pc_changed_hook and
6155 add declarations for register_changed_hook and
6156 memory_changed_hook.
6157 * top.c: Ditto.
6158
61591999-01-29 Mark Alexander <marka@cygnus.com>
6160
6161 * procfs.c (wait_fd): Handle deleted threads correctly.
6162
61631999-01-28 Jason Molenda (jsm@bugshack.cygnus.com)
6164
6165 * utils.c (init_page_info): Force window size if running under emacs.
6166
61671999-01-27 James Ingham <jingham@cygnus.com>
6168
6169 * typeprint.c (whatis_exp): Remove static declaration.
6170
6171Wed Jan 27 16:50:25 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6172
6173 * hp-psymtab-read.c: Reformat using indent.
6174
6175Wed Jan 27 13:20:25 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6176
6177 * hp-psymtab-read.c: Reformat comments, update copyright.
6178
6179Tue Jan 26 16:02:47 1999 Mark Alexander <marka@cygnus.com>
6180
6181 * v850-tdep.c (v850_generic_reg_names, v850e_reg_names,
6182 v850_register_names, v850_processor_type_table): Declare tables
6183 and structures for handling differences in register names for
6184 v850 and v850e.
6185 (struct reg_list): Define new structure for creating tables
6186 of register bit masks in v850e instrutions.
6187 (handle_prepare, handle_pushm): New helpers for v850_scan_prologue.
6188 (v850_scan_prologue): Recognize v850e instructions: callt, prepare,
6189 and pushm.
6190 (v850_target_architecture_hook): New function to set register
6191 names based on current machine.
6192 (_initialize_v850_tdep): Set up target_architecture_hook.
6193 * config/v850/tm-v850.h (v850_register_names): Declare.
6194 (REGISTER_NAME): Define to refer to v850_register_names.
6195 (SR0_REGNUM, CTBP_REGNUM): Define.
6196 (PS_REGNUM): Redefine in terms of SR0_REGNUM.
6197
6198Tue Jan 26 18:27:26 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6199
6200 * Makefile.in (c-exp.tab.c): Use BISON instead of YACC, to pick
6201 the correct value from configure output.
6202 (jv-exp.tab.c): Ditto.
6203 (f-exp.tab.c): Ditto.
6204 (m2-exp.tab.c): Ditto.
6205
62061999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
6207
6208 * breakpoint.h (ep_is_exception_catchpoint): Add prototype.
6209 * frame.h (select_and_print_frame): Add prototype.
6210 * stack.c (func_command): Call select_and_print_frame with correct
6211 number of arguments. Reformat whitespace.
6212
6213Tue Jan 26 16:53:54 1999 Fernando Nasser <fnasser@cygnus.com>
6214
6215 * remote.c (remote_query): fix maximum packet size to account for
6216 remote_debug use.
6217 (putpkt): add comment to alert about extra byte need.
6218
6219Mon Jan 25 19:55:30 1999 Mark Alexander <marka@cygnus.com>
6220
6221 * sh-tdep.c (sh_target_architecture_hook): Return immediately
6222 when a matching machine is found.
6223
6224Fri Jan 22 09:10:35 1999 Mark Alexander <marka@cygnus.com>
6225
6226 * remote-mips.c (mips_initialize): Fix parameters to clear_breakpoint.
6227 (common_breakpoint): Restore support for instruction breakpoints
6228 on non-LSI targets.
6229
6230Thu Jan 21 17:16:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
6231
6232 * stack.c: Close open comment.
6233 * symtab.c (find_pc_sect_line): Ditto.
6234
6235Thu Jan 21 17:51:51 1999 Stan Shebs <shebs@andros.cygnus.com>
6236
6237 * procfs.c (init_procfs_ops): New function, fills in procfs_ops,
6238 init only nonzero fields, leave to_require_attach and
6239 to_require_detach empty, not needed for /proc systems yet.
6240 (_initialize_procfs): Call init_procfs_ops.
6241
6242 From J.T. Conklin <jtc@redbacknetworks.com>:
6243 * top.c (init_main): Fix tipo in description of the remotetimeout
6244 variable.
6245 * breakpoint.c (bpstat_stop_status): Handle systems where
6246 DECR_PC_AFTER_BREAK != DECR_PC_AFTER_HW_BREAK.
6247
6248Thu Jan 21 17:25:46 1999 Mark Alexander <marka@cygnus.com>
6249
6250 * mon960-rom.c (_initialize_mon960): Call init_mon960_cmds
6251 to fill in mon960_cmds structure properly.
6252
6253Wed Jan 20 17:53:22 1999 Stan Shebs <shebs@andros.cygnus.com>
6254
6255 * remote-sds.c (sds_ops): Define only once.
6256 (init_sds_ops, sds_command, _initialize_remote_sds): Declare.
6257 (init_sds_ops): Init only non-zero fields.
6258
6259Wed Jan 20 15:45:15 1999 Mark Alexander <marka@cygnus.com>
6260
6261 * h8300-tdep.c (original_register_names, h8300h_register_names,
6262 h8300_register_names): Define new variables.
6263 (set_register_names): New function to set register names based on
6264 current CPU type.
6265 (h8300_command, h8300h_command, h8300s_command): Call
6266 set_register_names.
6267 * config/h8300/tm-h8300.h (h8300_register_names): Declare.
6268 (REGISTER_NAME): Define to refer to h8300_register_names.
6269
62701999-01-19 Fernando Nasser <fnasser@totem.to.cygnus.com>
6271
6272 * sol-thread.c abug-rom.c cpu32bug-rom.c dbug-rom.c m32r-rom.c
6273 mac-nat.c mon960-rom.c op50-rom.c ppc-bdm.c remote-adapt.c
6274 remote-array.c remote-bug.c remote-e7000.c remote-eb.c remote-es.c
6275 remote-est.c remote-hms.c remote-mm.c remote-nindy.c remote-nrom.c
6276 remote-os9k.c remote-rdp.c remote-sds.c remote-sim.c remote-st.c
6277 remote-udi.c rom68k-rom.c sh3-rom.c sparcl-tdep.c sparclet-rom.c
6278 v850ice.c win32-nat.c: cosmetic changes to conform to coding
6279 standards.
6280
62811999-01-19 Jim Blandy <jimb@zwingli.cygnus.com>
6282
6283 Use aclocal to generate GDB's aclocal.m4 script.
6284 * acinclude.m4: New file, containing the hand-written local macro
6285 definitions that used to be in aclocal.m4. Don't sinclude
6286 ../bfd/aclocal.m4 any more; running aclocal in this directory will
6287 get us the definitions we need. HOWEVER: Do sinclude
6288 ../bfd/acinclude.m4, because we need the definition of
6289 BFD_NEED_DECLARATION.
6290 * aclocal.m4: Regenerated by aclocal.
6291 * configure: Regenerated by autoconf.
6292
6293Tue Jan 19 10:27:23 1999 David Taylor <taylor@texas.cygnus.com>
6294
6295 * breakpoint.c (disable_breakpoints_in_shlibs): new parameter,
6296 silent, controls whether to print message about removal of shared
6297 library breakpoints.
6298 * breakpoint.h (disable_breakpoints_in_shlibs): decl updated.
6299 * irix5-nat.c (clear_solib): call disable_breakpoints_in_shlibs.
6300 * osfsolib.c (clear_solib): ditto.
6301 * solib.c (clear_solib): ditto.
6302 * somsolib.c (som_solib_restart): update call to
6303 disable_breakpoints_in_shlibs.
6304
6305 * target.h (child_post_attach): only declare if CHILD_POST_ATTACH
6306 is define.
6307
6308Tue Jan 19 18:07:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
6309
6310 * corelow.c (solib_add_stub): Ditto.
6311 (core_file_to_sym_file): Cast make_cleanup parameter.
6312
6313 * solib.c (symbol_add_stub, solib_map_sections): Change argument
6314 to PTR insted of a char*. Matches catch_errors interface.
6315
6316Mon Jan 18 14:01:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
6317
6318 * remote-array.c (array_open): Don't use fprintf_filtered to send
6319 data to the log file.
6320
6321 * remote-array.c (handle_load_dll): Change argument type to PTR so
6322 that it is compatible with catch_errors.
6323 * ocd.c (ocd_start_remote): Ditto.
6324 * remote-sds.c (sds_start_remote): Ditto.
6325
6326 * win32-nat.c (win32_child_thread_alive): Namespace proof
6327 child_thread_alive.
6328 (init_child_ops): Update.
6329
6330Mon Jan 18 12:03:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
6331
6332 * remote-rdi.c (arm_rdi_open): Set gdb_hostif.hostosarg and
6333 gdb_hostif.dbgarg to NULL instead of stdout.
6334 (voiddummy, myprint, mywritec): Use gdb_stdout instead of stdout.
6335
6336Mon Jan 18 16:40:50 1999 Stan Shebs <shebs@andros.cygnus.com>
6337
6338 * ser-ocd.c (ocd_open): Handle Unix case gracefully.
6339
6340 * target.c (dummy_target): Don't initialize statically.
6341 (init_dummy_target): New function, fills in dummy_target.
6342 (initialize_targets): Use it.
6343 * hpux-thread.c (hpux_thread_ops): Don't initialize statically.
6344 (init_hpux_thread_ops): New function, fills in hpux_thread_ops.
6345 (_initialize_hpux_thread): Use it.
6346 * m3-nat.c (m3_ops): Don't initialize statically.
6347 (init_m3_ops): New function, fills in m3_ops.
6348 (_initialize_m3): Use it.
6349
63501999-01-18 Fernando Nasser <fnasser@totem.to.cygnus.com>
6351
6352 * sol-thread.c: delete compile time initialization of target_ops
6353 (_initialize_sol_thread): initialize target_ops at run time.
6354 * hpux-thread.c: added target_ops entry.
6355 * m3-nat.c: ditto.
6356
6357Mon Jan 18 15:19:13 1999 David Taylor <taylor@texas.cygnus.com>
6358
6359 * procfs.c (procfs_ops): delete compile time initialization.
6360 (_initialize_procfs): initialize procfs_ops at run time.
6361
6362Mon Jan 18 12:51:44 1999 Christopher Faylor <cgf@cygnus.com>
6363
6364 * configure.in: Ensure that -luser32 is always linked in
6365 for cygwin build.
6366 * configure: Regenerated.
6367
6368Mon Jan 18 08:38:05 1999 Mark Alexander <marka@cygnus.com>
6369
6370 * values.c (value_virtual_fn_field): Clear the pointed-to
6371 offset when casting to the base class.
6372
6373Mon Jan 18 10:30:51 1999 David Taylor <taylor@texas.cygnus.com>
6374
6375 * remote-udi.c (init_udi_ops): change non-existant udi_run_ops to
6376 udi_ops; delete NULL initializers.
6377
6378Mon Jan 18 12:03:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
6379
6380 * serial.c (serial_close): gdb_fclose tages gdb_file** arg, not
6381 gdb_file*.
6382
6383 * f-valprint.c, target.c, gdbarch.c: Pass gdb_stderr not stderr.
6384
6385Mon Jan 18 10:46:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
6386
6387 * stack.c (print_frame_info_base): Don't cast call to
6388 catch_errors.
6389 (print_args_stub): Change char* arg to PTR.
6390 * symmisc.c (print_symbol): Ditto.
6391 * top.c (quit_cover): Ditto.
6392 * remote.c (remote_open_1, remote_start_remote): Ditto.
6393 * infrun.c (normal_stop, hook_stop_stub, restore_selected_frame):
6394 Ditto.
6395
6396 * stack.c (backtrace_command): Cast first arg of make_cleanup to
6397 make_cleanup_func.
6398 * remote.c (remote_kill): Cast putpkt arg to catch_errors_ftype.
6399
6400Mon Jan 18 08:47:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
6401
6402 * defs.h (catch_errors_ftype): Define.
6403 (catch_errors): Replace char* arg with PTR arg.
6404 * top.c (catch_errors): Update
6405
6406 * breakpoint.c (bpstat_stop_status, bpstat_stop_status,
6407 delete_breakpoint, breakpoint_re_set): Delete all casts in call to
6408 catch_errors.
6409 (breakpoint_cond_eval, watchpoint_check,
6410 cover_target_enable_exception_callback, breakpoint_re_set_one):
6411 Arg is PTR not char*.
6412
6413 * breakpoint.c (cover_target_enable_exception_callback): Change
6414 type to int. Check for cast values of 0 and -1. Return a result!
6415 (insert_breakpoints): Move declaration of SAL and ARGS to where
6416 they are used.
6417
64181999-01-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
6419
6420 * remote.c (remote_query): new function - creates proper interface
6421 to the remote protocol "q" command.
6422
6423Fri Jan 15 17:11:48 EST 1999 Zdenek Radouch (radouch@cygnus.com)
6424
6425 * config/fr30/tm-fr30.h: Changed ABI to match GCC change
6426 (always use pointer for structs passed by value).
6427
64281999-01-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
6429
6430 * target.h: added entry for target queries (to_query)
6431 target.c: ditto.
6432
6433Thu Jan 14 18:29:17 1999 David Taylor <taylor@texas.cygnus.com>
6434
6435 * remote-mm.c (mm_wait): fix stream arg to gdb_flush.
6436 * remote-udi.c (udi_wait): fix stream arg to fwrite.
6437 * symmisc.c (maintenance_check_symtabs): fix stream argument to
6438 print_address_numeric.
6439
6440Wed Jan 13 19:33:16 1999 David Taylor <taylor@texas.cygnus.com>
6441
6442 * breakpoint.c (insert_breakpoints): insert cast to eliminate
6443 warning.
6444
6445Wed Jan 13 14:59:02 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
6446
6447 * infrun.c (set/show scheduler-locking) New command. Set a
6448 mode bit that will control how GDB attempts to control thread
6449 scheduling for step, continue, etc. (resume): make use of
6450 the schedule-locking mode.
6451 * target.h (struct target_ops): new field to_has_thread_control.
6452 * sol-thread.c: initialize target_ops to_has_thread_control.
6453 * procfs.c: ditto.
6454 * target.c: ditto.
6455 * m3-nat.c: ditto.
6456 * remote.c: ditto.
6457 * hpux-thread.c: ditto.
6458 * thread.c: cull duplicate prototypes. Move prototypes to top.
6459 * serial.c: indentation cleanup.
6460 * breakpoint.c: add casts to eliminate compiler warnings.
6461
6462Tue Jan 12 17:00:00 1999 Edith Epstein <eepstein@sophia.cygnus.com>
6463
6464 * inftarg.c (child_create_inferior): fixed HPUXHPPA specific
6465 call to fork_inferior. The shell param is now NULL.
6466
64671999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
6468
6469 * monitor.c (init_base_monitor_ops): Whitespace cleanup.
6470 (_initialize_remote_monitors): Same.
6471
64721999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
6473
6474 * monitor.c (init_monitor_ops): Initialize the monitor_ops
6475 structure if it hasn't already been done.
6476
6477Tue Jan 12 14:50:10 1999 Stan Shebs <shebs@andros.cygnus.com>
6478
6479 * inftarg.c (child_ops): Don't initialize statically.
6480 (init_child_ops): New function, fills in child_ops.
6481 (_initialize_inftarg): Use it.
6482 (child_post_attach): Declare extern.
6483 (child_wait): Fix ambiguous parens.
6484 (child_attach_to_process): Remove unused local wstatus.
6485 (child_insert_fork_catchpoint, child_remove_fork_catchpoint,
6486 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
6487 child_has_forked, child_insert_exec_catchpoint,
6488 child_remove_exec_catchpoint): Return a value.
6489
6490Mon Jan 11 16:43:44 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
6491
6492 * remote.c (remote_wait): Add inferior_pid to thread list only
6493 if it is not already there.
6494
64951999-01-11 Jason Molenda (jsm@bugshack.cygnus.com)
6496
6497 * scm-tags.h: Update FSF's address on copyright notice.
6498 * ser-e7kpc.c: Same.
6499 * gnu-nat.h: Same.
6500
6501Mon Jan 11 13:45:57 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
6502
6503 * dwarf2read.c (dump_die): Change stderr to gdb_stderr.
6504 * expprint.c (print_subexp): fprintf => fprintf_unfiltered.
6505 * jv-typeprint.c (java_type_print_base): fputs => fputs_filtered.
6506 * stack.c (struct function_bounds): Remove superfluous `typedef'.
6507 * symfile.c (list_overlays_command): stdout => gdb_stdout.
6508 * symmisc.c (maintenance_check_symtabs): stdout => gdb_stdout.
6509 * utils.c (print_spaces): Make more efficient.
6510
6511Mon Jan 11 13:55:51 1999 David Taylor <taylor@texas.cygnus.com>
6512
6513 * utils (print_spaces): fix arg to strcat; fix formatting.
6514
6515Fri Jan 8 11:57:24 1999 Stan Shebs <shebs@andros.cygnus.com>
6516
6517 * exec.c (exec_ops): Don't initialize statically.
6518 (init_exec_ops): New function, fills in exec_ops.
6519 (_initialize_exec): Use it.
6520
6521Thu Jan 7 17:50:15 EST 1999 Zdenek Radouch (radouch@cygnus.com)
6522
6523 Beta FR30 port.
6524 * fr30-tdep.c
6525 * config/fr30/tm-fr30.h
6526
6527Wed Jan 6 12:28:35 1999 David Taylor <taylor@texas.cygnus.com>
6528
6529 * configure.in: Add an --enable-tui argument. Construct
6530 tui/Makefile from tui/Makefile.in. Use AM_PROG_CC_STDC. If we
6531 have the GUI, then we need this to process libgui.h.
6532 (ENABLE_CFLAGS): define and export BUILD_TUI.
6533 (AC_CHECK_HEADERS): Add check for term.h.
6534
6535 * configure.host (hppa-*-hpux10.20, hppa-*-hpux11.0*): New configs.
6536
6537 * config.in, configure : regenerated.
6538
6539 * Makefile.in: Allow the TUI code to be conditionally enabled.
6540 (TUI_LIBRARY): New variable, value are set by the configuration
6541 script. Set to the empty string when the TUI isn't enabled.
6542 (gdb$(GDBEXT)): Use those, instead of referring to all-tui and
6543 tui/libtui.a directly.
6544 (BUILD_TUI): build the tui -- only when configured with
6545 --enable-tui.
6546 (YLWRAP): use ylwrap to avoid problems on systems w/o bison.
6547 (gdb$(EXEEXT)): make it dependent on BUILD_TUI.
6548 (all-tui): remove dependency from phony target.
6549 (c-exp.tab.c): use ylwrap instead of bison.
6550 (jv-exp.tab.c): ditto.
6551 (f-exp.tab.c): ditto.
6552 (m2-exp.tab.c): ditto.
6553 (ALLDEPFILES): add somread.c, hp-psymtab-read.c, hp-symtab-read.c.
6554 (SFILES): remove the above files
6555 (COMMON_OBS): remove somread.o
6556 (SFILES): Add the tui files to this, so they get included in etags
6557 tables.
6558 (gdb$(EXEEXT)): Add all-tui to the list of dependencies, and add
6559 tui/libtui.a to the link list.
6560 (all-tui): New rule, which does a recursive make in the tui
6561 subdir.
6562 (tui/libtui.a): When recursing, pass down ${FLAGS_TO_PASS}. And
6563 don't echo the make command. This is closer to what the other
6564 recursions do.
6565 (HFILES_NO_SRCDIR): add hpread.h
6566 (COMMON_OBS): add hp-psymtab-read.o, hp-symtab-read.o
6567 (SFILES): add hp-psymtab-read.c, hp-symtab-read.c add rules for
6568 the new files. Remove hpread.c, hpread.o
6569 (gdb$(EXEEXT)): Depend on the actual tui library, not on a
6570 fictitious target. Since the fictitious target never existed,
6571 make would always relink.
6572 (tui/libtui.a): Always recurse to make sure the library is up to
6573 date.
6574
6575Wed Jan 6 12:05:12 1999 Stan Shebs <shebs@andros.cygnus.com>
6576
6577 * remote.c: Pacify --enable-build-warnings, reformat code
6578 to conform to standards, fix spelling errors.
6579 (ishex, stubhex, record_currthread, etc): Declare.
6580 (ishex, stubhex): Declare char arg as int.
6581 (pack_string): Comment out, never used but possibly useful.
6582 (threadref_to_int, remote_get_threadinfo, etc): Make static.
6583
6584Wed Jan 6 11:43:32 1999 David Taylor <taylor@texas.cygnus.com>
6585
6586 The following changes were made by Elena Zannoni
6587 <ezannoni@cygnus.com> and Edith Epstein <eepstein@cygnus.com> as
6588 part of a project to merge in changes made by HP.
6589
6590 * c-exp.y: use external flag hp_som_som_object_present to decide
6591 whether code was compiled by HP's compilers. Add two new C++
6592 tokens for true and false.
6593 (yylex): check for template name is done differently for the
6594 HP/aCC compiler case. Change some of the template processing code
6595 for handling HP aCC templates. Handle true and false tokens.
6596
6597Tue Jan 5 11:13:36 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
6598
6599 * remote.c (record_curthread): Must not modify inferior_pid when
6600 called from wait_for_inferior. Instead, if a new thread-id is
6601 detected, call add_thread.
6602 (MAGIC_NULL_PID): new macro, use instead of the magic number
6603 "42000".
6604 (remote_find_new_threads): if inferior_pid is unknown, get and use
6605 the current thread id.
6606 (remote_start_remote): on connecting, attempt to get the current
6607 thread id for inferior_pid.
6608 (remote_resume): If pid == -1, then resume any-thread (not the
6609 current thread specifically). Also some cosmetic fixups.
6610
6611 * thread.c (info_threads_command): don't initialize current_pid
6612 until after call to FIND_NEW_THREADS (which may change inferior_pid).
6613 Also some cosmetic fixups.
6614 * infrun.c: cosmetic fixups and casts to avoid warnings.
6615 * infcmd.c: cosmetic fixups, mainly long lines.
6616
6617Tue Jan 5 11:55:57 1999 David Taylor <taylor@texas.cygnus.com>
6618
6619 * target.c (noprocess): terminate sentence with a period.
6620 * breakpoint.c (catch_command_1): ditto.
6621
6622 * c-valprint.c (c_value_print): remove hack^2 from HP; it causes
6623 testsuite losses with no real gain.
6624
6625 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): restore, but only
6626 if tm-*.h hasn't overridden default value.
6627
66281999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
6629
6630 * configure.in: Fix whitespace indentation for --help.
6631 * configure: Regenerated.
6632
66331999-01-04 Manuel Bouyer <bouyer@antioche.lip6.fr>
6634
6635 * main.c: Add --write command line option, document -w.
6636 * gdb.1: Document --write.
6637
66381999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
6639
6640 * configure.in: Require autoconf 2.12.1 or higher.
6641 * doc/configure.in: Ditto.
6642 * nlm/configure.in: Ditto.
6643 * rdi-share/configure.in: Ditto.
6644 * testsuite/configure.in: Ditto.
6645 * doc/Makefile.in: Don't hardcode $(SHELL).
6646 * nlm/Makefile.in: Ditto.
6647 * rdi-share/Makefile.in: Ditto.
6648 * testsuite/Makefile.in: Ditto.
6649
6650Mon Jan 4 12:53:03 1999 Stan Shebs <shebs@andros.cygnus.com>
6651
6652 * remote-vx.c (init_vx_ops, init_vx_run_ops): Remove unneeded
6653 inits of new fields, including ref to bogus field.
6654 (vx_ops, vx_run_ops): Make static.
6655
6656Mon Jan 4 15:05:29 1999 David Taylor <taylor@texas.cygnus.com>
6657
6658 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): delete,
6659 already defined in tm.h.
6660
6661 * inftarg.c: change <sys/unistd.h> to <unistd.h> and
6662 conditionalize its inclusion.
6663 * infttrace.c: ditto.
6664
6665For older changes see ChangeLog-98
6666\f
6667Local Variables:
6668mode: change-log
6669left-margin: 8
6670fill-column: 74
6671version-control: never
6672End: