1 1999-08-01 Jason Molenda (jsm@bugshack.cygnus.com)
3 * config/mips/tm-mips.h (BIG_ENDIAN): Don't define here.
5 1999-08-01 Jim Blandy <jimb@zwingli.cygnus.com>
7 * stabsread.c (read_range_type): Handle an unsigned range type
8 whose length in bytes is any power of two, not just a few
11 * monitor.c (monitor_expect): When we receive a character that
12 isn't part of the string we were expecting, don't just start
13 matching again at the beginning of the string --- some shorter
14 suffix of the input might be a prefix of the string too.
16 1999-07-31 Fred Fish <fnf@cygnus.com>
18 * symfile.c (symbol_file_command): Fix typo that made -1 casted
19 to a CORE_ADDR look like an subtraction expression.
20 (add_symbol_file_command): Ditto.
22 1999-07-30 Jim Blandy <jimb@cris.red-bean.com>
24 * hppa-tdep.c (pa_print_registers): Frob register output some more.
26 1999-07-29 Jim Blandy <jimb@cris.red-bean.com>
28 * config/pa/nm-hppah.h (PTRACE_ARG3_TYPE): After more
29 consideration, make this a CORE_ADDR, like WDB did.
31 Rather than casting every single use of really_free_pendings to
32 make_cleanup_func, why not actually make it have that type? Golly!
33 * buildsym.c (really_free_pendings): Change argument type to PTR.
34 buildsym.h (really_free_pendings): Fix declaration.
35 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1),
36 dwarf2read.c (psymtab_to_symtab_1), dwarfread
37 (psymtab_to_symtab_1), hp-psymtab-read.c (hpread_build_psymtabs),
38 os9kread.c (os9k_symfile_read, os9k_psymtab_to_symtab_1),
39 xcoffread.c (xcoff_psymtab_to_symtab_1, xcoff_initial_scan):
42 Pass a CORE_ADDR safely through catch_errors.
43 * hppa-tdep.c (args_for_find_stub): New member, return_val.
44 (cover_find_stub_with_shl_get): Change argument and return type to
45 match catch_errors. Save return value of find_stub_with_shl_get
47 (initialize_hp_cxx_exception_support): Collect value of
48 eh_notify_callback_addr from args.
50 Get rid of some noise. It would be nice to get helpful warnings
51 from the compiler about lossy conversions.
52 * hppa-tdep.c (eh_notify_hook_addr, eh_notify_callback_addr,
53 eh_break_addr, eh_catch_catch_addr, eh_catch_throw_addr,
54 break_callback_sal): Initialize these to zero, not NULL, to shush
56 * infttrace.c (thread_fake_step): Compare signal to
57 TARGET_SIGNAL_0, not NULL, to avoid warnings.
58 (_initialize_infttrace): Add sanity check.
60 * config/pa/nm-hppah.h (PTRACE_ARG3_TYPE): Define this to be
61 long, so we can pass arguments properly to ptrace.
63 * hppah-nat.c (child_xfer_memory): Correctly compute mask to round
64 address to an int boundary.
66 1999-07-29 Jim Blandy <jimb@savonarola.red-bean.com>
68 Change from Ian Lance Taylor <ian@zembu.com>. The
69 i386_linux_sigtramp* functions should be moved to
70 i386-linux-tdep.c, when that file is introduced.
72 * config/i386/tm-linux.h (LINUX_SIGCONTEXT_SIZE): Define.
73 (LINUX_SIGCONTEXT_PC_OFFSET): Define.
74 (LINUX_SIGCONTEXT_SP_OFFSET): Define.
75 (SIGCONTEXT_PC_OFFSET): Don't define.
76 (I386_LINUX_SIGTRAMP): Define.
77 (IN_SIGTRAMP): Define.
78 (i386_linux_sigtramp): Declare.
79 (sigtramp_saved_pc): Define.
80 (i386_linux_sigtramp_saved_pc): Declare.
81 (FRAMELESS_SIGNAL): Define.
82 (FRAME_CHAIN, FRAME_SAVED_PC): Define after #undef.
83 * i386-tdep.c (i386_linux_sigtramp_start): New static function if
85 (i386_linux_sigtramp): New function if I386_LINUX_SIGTRAMP.
86 (i386_linux_sigtramp_saved_pc): Likewise.
87 (i386_linux_sigtramp_saved_sp): Likewise.
89 1999-07-28 Jim Blandy <jimb@savonarola.red-bean.com>
91 * infrun.c (handle_inferior_event): Don't try to use the code for
92 stepping over a function call to also handle stepping out of a
93 sigtramp on HP-UX. That ends up trashing step-resume breakpoints.
94 This change reverts some of David Taylor's change of 31 Dec 1998.
95 The HP-UX maintainer needs to submit a new change for whatever
96 problem the original change was trying to fix.
98 1999-07-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
100 * event-top.c (command_line_handler): Don't treat an empty line
101 from readline the same way as a multiline command. This avoids
102 missing detecting when the user presses just 'enter'.
104 1999-07-28 Jim Blandy <jimb@savonarola.red-bean.com>
106 Provide more sanity checking:
107 * infrun.c (handle_inferior_event): Before assigning a new
108 breakpoint to step_resume_breakpoint, make sure it's not already
109 pointing at one; if it is, that's a bug.
110 (check_for_old_step_resume_breakpoint): New function.
112 1999-07-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
114 From Eli Zaretskii <eliz@is.elta.co.il>:
115 * top.c (gdb_init) [__MSDOS__]: Arrange for GDB to return to the
116 original directory before exiting.
117 (cd_command) [_WIN32 || __MSDOS__]: Canonicalize the new directory
118 name explicitly. Handle "d:/" names correctly.
119 (init_history) [__MSDOS__]: Use _gdb_history as the default GDB
122 Mon Jul 26 17:13:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
124 * remote.c (enum packet_support, enum packet_detect, struct
125 packet_config): Define.
126 (set_packet_config_cmd, show_packet_config_cmd,
127 add_packet_config_cmd, init_packet_config): New functions.
128 Generic support for optional packets.
129 (remote_protocol_P): Replace stub_supports_P.
130 (set_remote_protocol_P_packet_cmd, show_remote_protocol_P_packet_cmd):
132 (_initialize_remote): Add ``set remote-protocol-P-packet'' command.
133 (remote_open_1, remote_async_open_1, remote_cisco_open):
134 Initialize ``remote_protocol_P''.
135 (remote_store_registers): Re-write ``P'' probe logic.
136 (store_register_using_P): New function.
138 From Ian Lance Taylor <ian@airs.com>:
139 (remote_prepare_to_store): Only read registers when ``P'' packet
140 is in state unsupported or support-unknown.
142 1999-07-24 Fred Fish <fnf@cygnus.com>
144 * symfile.c (default_symfile_offsets): Clear section_offsets
145 before filling it in.
147 1999-07-16 Keith Seitz <keiths@cygnus.com>
149 * remote.c (_initialize_remote): "remotebreak" should be a var_boolean.
151 1999-07-15 Jim Blandy <jimb@cris.red-bean.com>
153 Make the output from "info registers" fit withinin 80 columns.
154 * hppa-tdep.c (pa_print_registers): Make it easy to change row and
155 column counts. Switch to three columns, instead of four, and
158 First cut at supporting HPPA2.0 in "wide" (64-bit) mode.
159 * configure.tgt: Add hppa2.0w target.
160 * config/pa/hppa64.mt, config/pa/tm-hppa64.h: New files.
161 * hppa-tdep.c (hppa_fix_call_dummy): Dyke out code to tweak the
162 call dummy, if target is PA2.0w. This is temporary, until I get
163 function calls working.
164 * hppah-nat.c (fetch_register): Rewritten to handle both narrow
165 and wide register requests.
166 (HPPAH_OFFSETOF): New macro.
168 * gdbtypes.c (is_integral_type): New function.
169 * gdbtypes.h: Prototype for above.
171 1999-07-15 J.T. Conklin <jtc@redback.com>
173 * configure.tgt (i[3456]86-*-vxworks*): New target.
174 * config/i386/vxworks.mt: New file, x86 VxWorks target
175 * config/i386/tm-vxworks.h: New file.
177 * configure.tgt (powerpc-*-vxworks*): New target.
178 * config/powerpc/vxworks.mt: New file, PowerPC VxWorks target
179 * config/powerpc/tm-vxworks.h: New file.
181 * NEWS: Mention the new configs.
183 1999-07-15 Fernando Nasser <fnasser@cygnus.com>
185 * target.c (target_preopen): Prevent query when not from_tty.
186 * infcmd.c (run_command): Prevent query when not from_tty.
188 1999-07-15 Fernando Nasser <fnasser@cygnus.com>
190 * event-loop.c: Fix typo in comment.
192 Wed Jul 14 17:29:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
194 * ser-pipe.c (struct pipe_state): Define.
195 (pipe_close): Retain the PID of the sub-process using ``struct
196 pipe_state''. Delete #ifdef code that used popen().
197 (pipe_close): Kill of the sub-process as part of the cleanup.
199 * serial.h (struct _serial_t): Add field ``state''.
201 1999-07-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
203 * event-top.c (display_gdb_prompt): Don't display the prompt if we
204 are in the middle of an execution command. Also trick readline so
205 it doesn't try to display the prompt.
206 (command_line_handler): Get rid of change_prompt, unused variable.
207 Use {push, pop}_prompt mechanism in case of multiline commands.
209 * infrun.c (complete_execution): Set target_executing to 0 as
210 first thing, so that display_gdb_prompt does the right thing.
212 Tue Jul 13 20:29:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
214 * parse.c (build_parse): Fix conditional increment of num_std_regs
215 for SP_REGNUM. Was conditional on FP_REGNUM.
217 Tue Jul 13 16:44:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
219 * gdbarch.h, gdbarch.c: Revert 1999-07-07 Stan Shebs
220 <shebs@andros.cygnus.com> indentation change. Don't let indent
221 mess with these files.
223 Mon Jul 12 11:15:09 1999 Andrew Cagney <cagney@b1.cygnus.com>
225 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_RAW,
226 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERTIBLE): Define.
227 (REGISTER_RAW_SIZE): Re-define as mips_register_convert_to_raw.
228 * mips-tdep.c (mips_register_convert_to_raw,
229 mips_register_convert_to_virtual, ): New functions.
230 (mips_register_raw_size, mips_register_convertible): New
231 functions. Handle bug introduced by ``Wed Apr 1 23:13:23 1998
232 Andrew Cagney <cagney@b1.cygnus.com>'' where remote mips64 target
233 transfers SR as 64 bits yet GDB expected only 32 bits.
234 (mips64_transfers_32bit_regs): New static variable.
235 (_initialize_mips_tdep): Add obscure command ``set
236 remote-mips64-transfers-32bit-regs'' that provides backward
238 (do_gp_register_row): Extract register values from raw buffer.
240 * NEWS: Document protocol change.
242 1999-07-12 Keith Seitz <keiths@cygnus.com>
244 * rdi-share/unixcomm.c (Unix_ResetSerial): Remove CYGWIN32
245 conditional. It's no longer needed.
246 (SERPORT1, SERPORT2): Linux serial ports are "/dev/ttyX", not
247 "/dev/cuaX" (X=0,1,2,3,...).
249 Mon Jul 12 02:02:00 1999 Andrew Cagney <cagney@amy.cygnus.com>
251 * defs.h, utils.c (fputstrn_filtered, fputstrn_unfiltered,
252 fputstrnn_unfiltered): New functions.
253 (gdb_printchar): Delete.
255 * remote.c (print_packet): Replace gdb_printchar with
257 (getpkt): Use fputstrn_unfiltered to dump packet received.
258 (putpkt_binary): Use fputstrnn_unfiltered to dump packet sent.
260 1999-07-09 Keith Seitz <keiths@cygnus.com>
262 * blockframe.c (blockvector_for_pc_sect): When looking for a block,
263 we want the one whose end is greater than our PC, not greater or equal.
265 1999-07-08 Stan Shebs <shebs@andros.cygnus.com>
267 * sparcl-tdep.c (init_sparclite_ops): Fix doc strings, remove
269 (sparclite_ops): Remove redundant decl.
271 Thu Jul 8 16:48:40 1999 Andrew Cagney <cagney@b1.cygnus.com>
273 * ser-pipe.c (pipe_open): Bi-directional popen found on both
275 * ser-pipe.c: New file. Implement popen() style serial interface.
277 * Makefile.in (ALLDEPFILES): Add ser-pipe.c.
278 (ser-pipe.o): Add new target. Specify dependencies.
279 (SER_HARDWIRE): Add ser-pipe.o.
280 * serial.c (serial_open): Recognize a serial pipe ``|''.
282 1999-07-07 Stan Shebs <shebs@andros.cygnus.com>
284 * All C files except *-stub.c and *-share/*: Indent to GNU
285 standard, using indent 1.9.1.
286 * defs.h: Make indent ignore this file, macros confuse it.
288 * gnu-regex.c, gnu-regex.h: Don't let indent mess with these.
290 Wed Jul 7 13:06:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
292 * remote-mips.c (fputs_readable): Rename puts_readable, add struct
294 (fputc_readable): Rename putc_readable, add struct gdb_file
297 * remote-mips.c (mips_expect_timeout, mips_receive_header,
298 mips_send_packet, mips_receive_packet), remote-rdp.c (put_byte,
299 get_byte, put_word, rdp_init, rdp_init), remote-sds.c
300 (sds_interrupt, sds_wait, readchar, putmessage, read_frame,
301 getmessage), remote-udi.c (udi_store_registers, fetch_register):
302 (store_register), xmodem.c (readchar), utils.c (puts_debug),
303 gnu-nat.h (debug), parse.c (parse_exp_1): Cleanup - send debug/log
304 messages to gdb_stdlog.
306 1999-07-06 Stan Shebs <shebs@andros.cygnus.com>
308 * exec.c: Remove long-#ifed-out section of code that confuses
310 * gdbtypes.c (add_mangled_type): Add some braces to indicate
312 * gnu-nat.c: Remove literal newlines embedded in strings,
313 causes indent to weird out.
314 * language.c (binop_result_type): Remove extra paren.
315 * lynx-nat.c: Add a missing paren to fetch_core_registers decl.
316 * nec4102rom.c (vr4102_insert_step): Fix typos.
317 (_initialize_vr4102_rom): Remove literal newline in string.
318 * config/a29k/tm-a29k.h: Suppress formatting of pictures.
319 * config/m68k/xm-3b1.h: Remove excess #endif.
321 Declare Pyramid configuration obsolete.
322 * configure.host, configure.tgt: Comment out Pyramid configs.
323 * Makefile.in: Comment out Pyramid-related actions.
324 * pyr-xdep.c, pyr-tdep.c, config/pyr/*: Comment out.
325 * NEWS: Mention obsolete status.
327 1999-07-06 Jason Molenda (jsm@bugshack.cygnus.com)
329 * remote.c: Include <sys/time.h> to pick up FD_SET et al defns on
330 some old Linux distributions.
331 * remote-os9k.c, remote-st.c, ser-tcp.c, ser-unix.c,
332 sparcl-tdep.c, remote.c: Back out inclusion of <sys/select.h>.
333 It isn't necessary after all.
335 1999-07-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
337 * infcmd.c (strip_bg_char): Remove assignment from 'if' condition.
339 1999-07-05 Jason Molenda (jsm@bugshack.cygnus.com)
341 * remote.c: Include <sys/select.h> if it exists in order to pick up
343 * remote-os9k.c: Same.
347 * sparcl-tdep.c: Same.
349 Fri Jul 2 19:38:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
351 * top.c (target_output_hook): Delete definition.
352 * defs.h (target_output_hook): Delete declaration.
354 * remote.c (remote_console_output): Delete call to
355 target_output_hook(). Send target output to gdb_stdtarg using an
356 unfiltered write. Make more robust.
358 * remote-sim.c (gdb_os_write_stdout, gdb_os_write_stderr):
359 Ditto. For moment, do not try to separate target stdout and stderr
362 * defs.h (gdb_stdtarg): New global. Output from target and
365 1999-07-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
367 * top.c (return_to_top_level): Do all the exec_cleanups too.
369 * event-top.c (command_handler): Set up for a continuation, if we
370 are in the middle of running an execution command which will
371 finish later on. Do cleanups, an display of time/space only if not
372 running with an async target or not running an execution command.
373 (command_line_handler_continuation): New function. Continuation
374 for command_line_handler.
376 * utils.c (exec_cleanup_chain): New cleanup chain to be used in
377 async mode for the execution commands.
378 (make_exec_cleanup): New function. Add a cleanup to the
380 (do_exec_cleanups): New Function. Do cleanups on the
382 (add_continuation): New function. Add a new continuation to the
383 cmd_continuation list.
384 (do_all_continuations): New function. Do all the continuations on
385 the cmd_continuation list.
387 * top.h (ALL_CLEANUPS): Move from here to defs.h.
389 * defs.h (struct continuation_arg): New structure. Arg to pass to
390 the call to a command continuation.
391 (struct continuation): New structure. Continuation for an
393 (ALL_CLEANUPS): Move here from top.h.
395 * remote.c (remote_async_open_1): Set things up for telling the
396 target we are running the extended protocol, only after the target
398 (set_extended_protocol): New function. Tell the target we are
399 using the extended protocol.
400 (remote_async_resume): Set things up for sync execution only if
401 this is the first time we are called.
403 * breakpoint.c (until_break_command_continuation): New function.
404 Stuff to be done after the target stops during the 'until'
406 (until_break_command): Set things up for completing the 'until'
407 command later on. Do the final cleanups only if not running
408 asynchronously or async execution is not supported by the target.
410 * infcmd.c (until_command): Recognize '&' at end of command and
412 (finish_command_continuation): New function. Do whatever is needed
413 after the target has stopped.
414 (finish_command): Recognize '&' at end of command and handle it
415 properly. Don't do stuff needed after target has stopped if
416 running asynchronously and target has async. Use exec_cleanup_chain
417 if running asynchronously and target is asynchronous.
419 * infrun.c (cmd_continuation): New gloabl variable. Used to
420 coplete execution commands in async mode, after the target has
422 (fetch_inferior_event): Use exec_cleanup_chain, instead of
423 cleanup_chain. Do all the exec cleanups at the end. Do all the
424 continuations at the end. Call complete_execution from here,
425 instead of normal_stop.
426 (complete_execution): Cleanup the signals handlers for SIGINT
427 before displaying the prompt.
428 (start_remote): Set target_executing to 1.
429 (normal_stop): Don't call complete_execution from here.
431 Thu Jul 1 19:14:30 1999 Andrew Cagney <cagney@b1.cygnus.com>
433 * blockframe.c (struct dummy_frame): Add member ``top''.
434 (generic_push_dummy_frame): Initialize top to sp.
435 (generic_save_dummy_frame_tos): New function. Initialize top.
436 (generic_find_dummy_frame): Check for the top of the frame.
438 * blockframe.c (generic_push_dummy_frame): Free the dummy_frame
441 * config/mn10300/tm-mn10300.h (SAVE_DUMMY_FRAME_TOS): Define.
442 (TARGET_READ_FP): Return the SP as a best guess.
444 Wed Jun 30 15:45:48 1999 Jeffrey A Law (law@cygnus.com)
446 * configure.host (hppa*-*-hpux11*): Accept any version of hpux11
447 instead of hpux11.0*.
449 1999-06-30 Fernando Nasser <fnasser@totem.to.cygnus.com>
451 * source.c (directory_command): Add missing test for from_tty.
453 1999-06-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
455 * remote.c: Include event-loop.h.
456 (remote_async_ops, extended_async_remote_ops): Define new target
457 vector structures for asynchronous debugging.
458 (remote_async_open): New function. Asynchronous version of
460 (extended_remote_async_open): New function. Asynchronous version
461 of extended_remote_open.
462 (remote_async_open_1): New function. Async version of
464 (remote_async_detach): New function. Async version of
466 (remote_async_resume): New function. Async version of
468 (initialize_sigint_signal_handler, handle_remote_sigint,
469 handle_remote_sigint_twice, async_remote_interrupt,
470 async_remote_interrupt_twice, cleanup_sigint_signal_handler): New
471 functions. Used for handling ^C while target is running.
472 (remote_async_wait): New function. Async version of remote_wait.
473 (remote_async_kill): New function. Async version of remote_kill.
474 (extended_remote_async_create_inferior): New function. Async
475 version of extended_remote_create_inferior.
476 (init_remote_async_ops): New function. Initialize target vector
478 (init_extended_async_remote_ops): New function. Initialize target
479 vector for target extended-async.
480 (_initialize_remote): Initialize remote_async_ops and
481 extended_async_remote_ops.
483 * infrun.c: Include "event-loop.h".
484 (sync_execution): new global variable.
485 (proceed): Invoke wait_for_inferior and normal_stop only if not
486 running in async mode or if target doesn't support async
488 (start_remote): Don't call wait_for_inferior and normal_stop if
489 not running in async mode or if target not async. If running async
490 and target is async, start the target in simulated synchronous
492 (async_ecss, async_ecs): New global vars, for inferior state.
493 (fetch_inferior_event): New function. Async version of
495 (complete_execution): New function. Reset of gdb prompt and stdin,
496 after inferior execution has completed.
497 (normal_stop): Call complete_execution at end of asynchronous
500 * infcmd.c (strip_bg_char): New function to detect the background
502 (run_command): Modify to support background and foreground
503 execution in async mode.
504 (continue_command): Ditto.
506 (jump_command): Ditto.
507 (interrupt_target_command): New function. Interrupt the
509 (_initialize_infcmd): Add new command 'interrupt'.
511 * top.c (target_executing): New global variable.
512 (execute_command): Reject commands that cannot be executed while
513 the target is running asynchronously.
515 * event-top.c (push_prompt): Make non static.
516 (pop_prompt): Make non static. If the current prompt is empty,
517 don't try to copy it over the previous one.
518 (handle_sigint): Make non static.
519 (command_handler): Do the cleanups only when not executing with an
522 * event-loop.c (delete_async_signal_handler): Pass a pointer to a
523 pointer to a signal handler, so that is can be freed at the end.
525 * target.c (update_current_target): Inherit to_has_async_exec.
527 * inferior.h: Add global variables target_executing, and
528 sync_execution. Export function fetch_inferior_event.
530 * event-loop.h: Add push_prompt, pop_prompt, handle_sigint to the
531 exported functions. Update prototype for delete_signal_handler.
533 * target.h (struct target_ops): New target op: to_has_async_exec.
534 (target_has_async): New macro.
536 * Makefile.in (infrun.o): Add dependency on event-loop.h.
539 1999-06-28 Jim Blandy <jimb@zwingli.cygnus.com>
541 * solib.c (clear_solib): Don't disable breakpoints if we're
542 running an a.out executable (Solaris's SunOS emulation).
544 1999-06-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
546 * main.c (main): Remove intialization of command_loop_hook, it
547 is now done in _initialize_event_loop().
548 * event-loop.c (gdb_do_one_event): Make static.
549 (start_event_loop): New function. Just start the event loop.
550 * event-top.c (cli_command_loop): New name for start_event_loop().
551 (gdb_readline2): Make non static.
552 (_initialize_event_loop): Set command_loop_hook to cli_command_loop.
553 * event-loop.h: Adjust exported functions accordingly.
555 * top.c (init_main): Move setting of async_command_editing_p from
557 * event-top.c (_initialize_event_loop): To here.
558 (change_line_handler): Revert previous change. Add comment.
559 (_initialize_event_loop): Revert previous change.
560 (cli_command_loop): New name for start_event_loop().
561 (start_event_loop): New function. This just starts up the event loop.
562 (gdb_readline2): Make non static.
563 (_initialize_event_loop): Set command_loop_hook to cli_command_loop.
565 1999-06-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
567 * event-top.c (change_line_handler): Get rid of the global
568 variable input_fd, use `fileno (instream)' instead.
569 (_initialize_event_loop): Ditto
571 * event-loop.c (add_file_handler): New function. Wrapper for
573 (create_file_handler): Make static.
574 * event-top.c (_initialize_event_loop): Call add_file_handler,
575 instead of create_file_handler.
576 (change_line_handler): Ditto.
577 Remove poll.h include.
578 * event-loop.h: Export add_file_handler instead of
581 1999-06-24 Stan Shebs <shebs@andros.cygnus.com>
583 Declare Altos configuration obsolete.
584 * configure.host, configure.tgt: Comment out Altos config.
585 * Makefile.in: Comment out Altos-related actions.
586 * altos-xdep.c, config/m68k/altos.mh, altos.mt, tm-altos.h,
587 xm-altos.h: Comment out.
588 * NEWS: Mention obsolete status.
590 1999-06-24 Jason Molenda (jsm@bugshack.cygnus.com)
592 * Makefile.in: Add MAKEHTML and MAKEHTMLFLAGS; pass them down;
593 recognize html and install-html targets.
594 * gdbserver/Makefile.in: Add empty html and install-html targets.
595 * nlm/Makefile.in: Ditto.
596 * rdi-share/Makefile.in: Ditto.
598 1999-06-24 Jim Blandy <jimb@zwingli.cygnus.com>
600 * ax-gdb.c (agent_command): Remove vestigial call to ax_reqs.
602 1999-06-24 James Ingham <jingham@leda.cygnus.com>
604 * arm-tdep.c (arm_othernames): Change both gdb's register display
605 AND the opcode disassembly register naming if the othernames
606 command. Fixes the gdb part of CR 101177.
608 1999-06-23 Stan Shebs <shebs@andros.cygnus.com>
610 Declare Convex configuration obsolete.
611 * configure.host, configure.tgt: Comment out Convex configs.
612 * Makefile.in: Comment out Convex-related actions.
613 * convex-xdep.c, convex-tdep.c, config/convex/*: Comment out.
614 * NEWS: Mention obsolete status.
616 1999-06-23 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
618 * main.c: Turn on async by default by setting async_p to 1.
620 Wed Jun 23 15:44:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
622 From Jimmy Guo <guo@cup.hp.com>:
623 * frame.h (enum lval_type): Delcare when an __STDC__ compiler.
624 Reverts Mon Aug 11 16:08:52 1997 Fred Fish <fnf@cygnus.com>
626 * utils.c (gdb_file_rewind, gdb_file_put): Fix. A void function
627 does not return a result.
629 Wed Jun 23 15:30:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
631 * remote.c (set_thread, remote_get_threadinfo,
632 remote_threads_info, remote_current_thread, remote_get_threadlist,
633 extended_remote_restart, get_offsets, remote_open_1,
634 remote_detach, remote_resume, remote_wait, remote_fetch_registers,
635 remote_store_registers, check_binary_download, remote_write_bytes,
636 remote_read_bytes, remote_search, putpkt_binary, putpkt_binary,
637 read_frame, compare_sections_command, remote_query,
638 packet_command, remote_info_process): Use alloca to create space
639 for arrays of size PBUFSIZ.
641 1999-06-22 Jason Molenda (jsm@bugshack.cygnus.com)
643 * top.c: Update copyright years to include 1999.
645 1999-06-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
647 * top.c: Move include of event-loop.h, to avoid redefinition of
650 * event-loop.c (create_file_handler): Do not do a realloc of the
651 pollfd structure of the notifier, unless there is already one.
652 Include <sys/types.h> for platforms that have no poll.
654 * event-top.c: Fix prototype for _initialize_event_loop.
655 (_initialize_event_loop): Do something only if running in async
658 1999-06-17 Jim Blandy <jimb@zwingli.cygnus.com>
660 Make the '/c' print format use a true character type. This is
661 more appropriate than builtin_type_char for languages other than
662 C, and C tolerates it.
663 * gdbtypes.c (builtin_type_true_char): New variable.
664 (build_gdbtypes): Initialize it.
665 * gdbtypes.h (builtin_type_true_char): New declaration.
666 * printcmd.c (print_scalar_formatted): When the format is 'c',
667 extract the value as a builtin_type_true_char.
669 * jv-exp.y (yylex): Say character literals are java_char_type, not
670 builtin_type_char. Java treats the latter like `byte'.
672 1999-06-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
674 * Makefile.in (top_h): Define.
675 (event-loop.o): Add dependencies on top.h and defs.h.
676 (event-top.o): Add dependency on terminal.h.
678 * event-loop.c: Get rid of #include <readline.h>.
680 * event-loop.h: Get rid of nested #include's.
681 * event-loop.c: Rearrange includes to accomodate change in
682 event-loop.h. Include poll.h, not sys/poll.h.
683 * event-top.c: Ditto.
686 1999-06-16 David Taylor <taylor@louisiana.cygnus.com>
688 * alpha-tdep.c (alpha_pop_frame): if frame->proc_desc
689 is NULL, call find_proc_desc so we know how to restore
692 1999-06-15 Michael Snyder <msnyder@cleaver.cygnus.com>
694 * event-top.c (start_event_loop): call get_prompt.
695 (display_gdb_prompt): call get_prompt.
696 (async_stop_sig): call get_prompt.
698 1999-06-15 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
700 * event-loop.c (delete_file_handler): When positioning prev_ptr,
701 keep looping while the one after is not equal to file_ptr, instead
704 1999-06-14 Stan Shebs <shebs@andros.cygnus.com>
706 * MAINTAINERS: Add Jimmy Guo and Jim Blandy as HP testsuite and
707 SVR4 solib maintainers, respectively.
709 1999-06-14 Michael Snyder <msnyder@cleaver.cygnus.com>
711 Add parameters to the gdb prompt.
712 * top.c (prompt): Rename to gdb_prompt_string for clarity.
713 (command_line_input): rename "prrompt" to prompt_arg for clarity.
714 (gdb_readline): rename "prrompt" to prompt_arg for clarity.
715 (read_command_lines): rename "prompt" to prompt_arg for clarity.
716 (stop_sig): call get_prompt instead of reading prompt string directly.
717 (command_loop): ditto.
718 (gdb_prompt_escape): New variable. Esc char for prompt parameters.
719 (get_prompt_1): New function, workhorse for get_prompt.
720 (get_prompt): Completely rewrite. Add functionality for a
721 parameterized prompt, ie. the displayed prompt can change according
722 to the value of one or more expressions given as parameters in the
724 (init_main): use renamed variable gdb_prompt_string. Add new
725 command "set prompt-escape-char" to set gdb_prompt_escape.
727 Sun Jun 13 10:44:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
729 * defs.h (gdb_stdlog), main.c: Declare.
730 * main.c (main): Initialize.
731 * gdbarch.c: Write trace messages to the log file.
732 * remote.c: Update any debug/log prints.
734 1999-06-11 Michael Snyder <msnyder@cleaver.cygnus.com>
736 * remote.c (remote_wait): Clean up new thread handling.
737 (record_currthread): Announce new threads.
739 1999-06-11 Jim Blandy <jimb@zwingli.cygnus.com>
741 * partial-stab.h (case N_LSYM, 'T' descriptor): Don't create
742 partial symbol table entries for nameless enums, even if the type
743 name is " ". (We still pick up the enum elements, though.)
745 * partial-stab.h: Remove #if 0'd sections, dating back to 1992,
746 which set a variable which exists nowhere else in the source.
747 Please examine your test suite output carefully, and report any
750 1999-06-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
752 * event-top.c (setup_event_loop): Change name to start_event_loop.
753 Move the intialization of event-loop variables to
754 _initialize_event_loop.
755 (_initialize_event_loop): New function. Called at init time, to
756 set up important event-loop variables.
758 * event-loop.h: setup_event_loop is now start_event_loop.
759 * main.c (main): Ditto.
761 Fri Jun 11 18:34:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
763 * defs.h (gdb_file_rewind_ftype, gdb_file_rewind,
764 set_gdb_file_rewind, gdb_file_put_ftype, gdb_file_put,
765 set_gdb_file_put): Declare.
767 * utils.c (gdb_file_new): Initialize ``rewind'' and ``put''.
768 (struct gdb_file): Add to_rewind and to_put.
769 (null_file_put, null_file_rewind, gdb_file_put, gdb_file_rewind,
770 set_gdb_file_put, set_gdb_file_rewind): New functions.
771 (tui_file_rewind, tui_file_put): New functions.
772 (tui_file_new): Add rewind and put.
774 Fri Jun 11 15:10:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
776 * d10v-tdep.c (d10v_push_arguments): Fix order of arguments passed
779 Fri Jun 11 10:31:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
781 * remote.c (tty_input): Change array to pointer.
782 (_initialize_remote): Call build_remote_gdbarch_data.
783 (build_remote_gdbarch_data): New function. Allocate space for
785 (readsocket, readtty): Delete extern declaration of tty_input.
787 1999-06-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
789 * event-top.c (gdb_readline2): Call the command handling function
790 via the input_handler pointer.
791 (change_line_handler): When turning off editing, set input_handler
794 * utils.c (prompt_for_continue): If running asynchronously, call
795 async_request_quit, instead of request_quit.
797 * tracepoint.c (read_actions): If running asynchronously, set the
798 signal handler for STOP_SIGNAL to handle_stop_sig.
800 * top.h: (source_line_number, source_file_name, source_error,
801 source_pre_error, history_expansion_p, server_command): export for
804 * event-top.c: Include top.h and terminal.h.
805 (instream): Remove extern declaration.
806 (handle_sigint, handle_sigquit, handle_sighup, handle_sigfpe,
807 handle_sigwinch, async_do_nothing, async_disconnect,
808 async_float_handler, async_stop_sig): Make static.
809 (async_request_quit, async_do_nothing, async_disconnect,
810 async_float_handler, async_stop_sig): Add gdb_glient_data
812 (handle_stop_sig): New function.
813 (sigtstp_token): New variable.
814 (sigint_token, sigquit_token, sigfpe_token, sigwinch_token):
815 Change their type tp PTR.
816 (mark_async_signal_handler_wrapper): New function.
817 (setup_event_loop): Initialize all the variables used by readline
818 only if not already done while reading the .gdbinit file. Display
819 the initial gdb prompt, if .gdbinit took care of setting things up
821 (change_line_handler): When turning on the use of readline,
822 initialize input_handler as well.
823 (command_line_handler): Set up the signal handler for STOP_SIGNAL
824 to be handle_stop_sig.
825 (async_init_signals): Remove coercion of signal handlers in calls
826 to create_async_signal_handler. Initialize token for stop signal.
827 (handle_sigint): Call async_request_quit using one argument.
828 (handle_sigint, handle_sigquit, handle_sighup, handle_sigfpe,
829 handle_sigwinch): Call mark_async_signal_handler_wrapper instead
830 of mark_async_signal_handler.
832 * event-loop.h: Add extern declarations for handle_stop_sig,
833 async_command_editing_p, async_annotation_suffix,
834 new_async_prompt, the_prompts.
836 * top.c (command_line_input): Set the signal handler to be
837 handle_stop_sig, in case gdb is running asynchronously.
838 (get_prompt): Return the top of the prompt stack if running
840 (set_prompt): Set the top of the prompt stack if running
842 (init_main): Move ``extern'' vars from here to event-loop.h.
844 1999-06-10 Michael Snyder <msnyder@cleaver.cygnus.com>
846 * values.c (value_from_string): new function. Make a value_ptr
847 from a string, with storage in local GDB memory (not in inferior).
848 * value.h (value_from_string): add prototype.
849 * remote.c (remote_cisco_ops): New remote target, "target cisco".
850 (init_remote_cisco_ops): New function, initialize new target.
851 (remote_cisco_mourn, remote_cisco_wait, remote_cisco_open,
852 remote_cisco_close): New functions, implement new target cisco.
853 (minitelnet, readtty, readsocket) New functions, implement the
854 I/O pass-through mode for target cisco.
855 (remote_wait): Detect special enhanced version of the 'S' packet
857 (remote_cisco_expand): Perform Cisco variant of RLL decoding.
859 1999-06-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
861 * event-loop.c (gdb_wait_for_event): Initialize num_found to 0.
863 * top.c (print_prompt): Delete this function.
865 From: Andrew Cagney <cagney@b1.cygnus.com>
867 * event-top.c (async_hook): Delete extern declaration.
869 * defs.h: Replace ``async_hook'' with ``async_p''.
870 * top.c (gdb_init, init_main, init_main, init_main, init_main):
871 Replace ``async_hook'' with ``async_p''.
873 * main.c: Rename ``async'' to ``async_p''.
874 (main): Add --noasync option.
875 (main): Hook in the asynchronous event-loop based CLI using
876 command_loop_hook instead of async_hook. Delete call to
879 Thu Jun 10 21:14:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
881 * mn10300-tdep.c (mn10300_store_return_value,
882 mn10300_extract_struct_value_address,
883 mn10300_extract_return_value), config/mn10300/tm-mn10300.h: New
885 * config/mn10300/tm-mn10300.h (EXTRACT_STRUCT_VALUE_ADDRESS,
886 STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE): Update.
887 (TARGET_MN10300): Delete macro. Not used.
889 Thu Jun 10 20:04:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
891 * mn10300-tdep.c (mn10300_register_names): Make static.
892 (STORE_STRUCT_RETURN): Do not modify SP.
894 * config/mn10300/tm-mn10300.h(mn10300_register_name),
895 mn10300-tdep.c : New function.
896 * config/mn10300/tm-mn10300.h (REGISTER_NAME): Update.
897 * config/mn10300/tm-mn10300.h (mn10300_saved_pc_after_call),
898 mn10300-tdep.c: New function.
899 * config/mn10300/tm-mn10300.h (SAVED_PC_AFTER_CALL): Update.
901 1999-06-09 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
903 * rs6000-tdep.c (skip_prologue): Don't mistake a branch for a
906 1999-06-08 Michael Snyder <msnyder@cleaver.cygnus.com>
908 * remote.c (remote_wait): Add 'N' response packet, which is a
909 stop with signal number plus section offsets for .text, .data and
910 .bss. This is used by Cisco to indicate relocation offsets.
911 (remote_cisco_section_offsets, remote_cisco_objfile_relocate):
912 new files to support 'N' packet.
913 (remote_info_process): New function. Implements the
914 "info remote-process" command, by means of which the remote target
915 can report anything it wants to about the remote process/app being
917 (_initialize_remote): add info remote-proc command.
918 (remote_threads_info): New function for "info threads" command.
919 Attempts to use new query "qfThreadInfo" instead of the old
921 * exec.c (exec_set_section_offsets) new files to support 'N' packet.
923 Tue Jun 8 13:33:42 1999 Andrew Cagney <cagney@amy.cygnus.com>
925 * inferior.h (generic_target_read_pc, generic_target_write_pc,
926 generic_target_read_fp, generic_target_write_fp,
927 generic_target_read_sp, generic_target_write_sp): Declare new
929 * findvar.c (generic_target_read_pc, generic_target_write_pc,
930 generic_target_read_fp, generic_target_write_fp,
931 generic_target_read_sp, generic_target_write_sp): New functions.
932 (TARGET_READ_PC, TARGET_WRITE_PC, TARGET_READ_FP, TARGET_WRITE_FP,
933 TARGET_READ_SP, TARGET_WRITE_SP): Default to corresponding generic
935 (write_pc_pid, write_pc_pid, read_sp, write_sp, read_fp,
938 * gdbarch.c (verify_gdbarch): Always verify TARGET_PTR_BIT,
939 TARGET_SHORT_BIT, TARGET_INT_BIT, TARGET_LONG_BIT,
940 TARGET_LONG_LONG_BIT, TARGET_FLOAT_BIT, TARGET_DOUBLE_BIT,
941 TARGET_LONG_DOUBLE_BIT, TARGET_READ_PC, TARGET_WRITE_PC,
942 TARGET_READ_FP, TARGET_WRITE_FP, TARGET_READ_SP, TARGET_WRITE_SP,
943 USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY_BREAKPOINT_OFFSET_P,
944 CALL_DUMMY_P, CALL_DUMMY_STACK_ADJUST_P, GET_SAVED_REGISTER,
945 REGISTER_CONVERTIBLE, PUSH_ARGUMENTS, PUSH_RETURN_ADDRESS,
947 (GET_GDBARCH, SET_GDBARCH): Delete macros. Implement functions
949 * gdbarch.h, gdbarch.c: Call fatal() instead of abort(). Identify
950 the function / macro with a problem. Always verify a architecture
951 attribute before returning it.
952 * gdbarch.h, gdbarch.c (generic_register_convertible_not): New
955 * mips-tdep.c (mips_push_return_address): New function.
956 * config/mips/tm-mips.h (PUSH_RETURN_ADDRESS): Define.
958 * mips-tdep.c (mips_gdbarch_init): Initialize short_bit,
959 double_bit, long_double_bit, read_pc, write_pc, read_fp, write_fp,
960 read_sp, write_sp, frame_chain_valid, get_saved_register,
961 push_arguments, push_return_address, register_convertible,
962 call_dummy_p, use_generic_dummy_frames,
963 call_dummy_breakpoint_offset_p, call_dummy_stack_adjust_p,
964 call_dummy_words and sizeof_call_dummy_words.
965 * config/mips/tm-mips.h: Don't define CALL_DUMMY when multi-arch.
967 1999-06-07 Keith Seitz <keiths@cygnus.com>
969 * v850ice.c (init_hidden_window): Do not rely on the existence of
970 a gui for window creation. Return boolean status.
971 (v850ice_open): Use boolean status of init_hidden_window.
972 Allow any ICE execution command to run under CLI. Maybe one
973 day gdb will use a real event loop and allow this code to run.
974 * configure.tgt: Configure the v850 ice for all cygwin-hosted
977 Mon Jun 7 23:37:26 1999 Andrew Cagney <cagney@amy.cygnus.com>
979 * config/mips/tm-mips.h (EXTRA_FRAME_INFO): Delete.
980 * mips-tdep.c (mips_init_extra_frame_info): Allocate saved_regs.
981 (temp_saved_regs): Replace struct with a simple pointer.
982 (set_reg_offset, mips32_heuristic_proc_desc, heuristic_proc_desc,
983 mips_init_extra_frame_info): Update.
985 Mon Jun 7 21:40:12 1999 Andrew Cagney <cagney@amy.cygnus.com>
987 * config/mips/tm-mips.h (EXTRA_FRAME_INFO): Move elements from here.
988 * mips-tdep.c (struct frame_extra_info): To here.
990 * mips-tdep.c (mips_print_extra_frame_info, mips_find_saved_regs,
991 mips_init_extra_frame_info, mips_pop_frame): Update
992 (mips_init_extra_frame_info): Allocate space for the extra info.
994 Mon Jun 7 21:08:50 1999 Andrew Cagney <cagney@amy.cygnus.com>
996 * config/mips/tm-mips.h (mips_init_extra_frame_info), mips-tdep.c:
997 Rename init_extra_frame_info. Add argument ``fromleaf''.
999 * config/mips/tm-mips.h (mips_print_extra_frame_info),
1000 mips-tdep.c: New function.
1001 (PRINT_EXTRA_FRAME_INFO): Update definition.
1003 Mon Jun 7 20:11:07 1999 Andrew Cagney <cagney@amy.cygnus.com>
1005 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
1006 config/mips/tm-tx19.h, config/mips/tm-tx19l.h,
1007 config/mips/tm-tx39.h, config/mips/tm-tx39l.h: Rename macro
1008 REGISTER_NAMES to MIPS_REGISTER_NAMES.
1010 * config/mips/tm-mips.h (REGISTER_NAME): Define.
1011 * mips-tdep.c (mips_processor_reg_names): New static variable.
1012 (mips_register_name): New function.
1013 (mips_set_processor_type): Update mips_processor_reg_names.
1014 (mips_generic_reg_names): Initialize using MIPS_REGISTER_NAMES.
1016 Sun Jun 6 11:09:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
1018 * remote.c (PBUFSIZ): Re-define so that value is computed at
1020 (MAXBUFBYTES): Re-define as a macro function.
1021 * gdbarch.h, gdbarch.c: Add multi-arch support for REGISTER_BYTES.
1022 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
1024 1999-06-05 Fernando Nasser <fnasser@totem.to.cygnus.com>
1026 * symtab.c (decode_line_1): Accept filenames with spaces in
1027 'linespecs' when enclosed in double quotation marks and handle
1028 drive specification is DOS format (D:).
1030 1999-06-04 Jim Blandy <jimb@zwingli.cygnus.com>
1032 * parse.c: Don't include <ctype.h> twice.
1034 1999-06-04 David Taylor <taylor@louisiana.cygnus.com>
1036 Sat May 15 12:16:09 1999 Per Bothner <bothner@deneb.cygnus.com>
1038 * eval.c (evaluate_subexp_standard): Remove Gilmore rant.
1039 (Of course C has "expected types", at least if you allow
1040 brace-initializer expressions - as in Gcc.)
1041 Remove NULLing out expect_type. Do pass NULL_TYPE in place
1042 the incoming expect_type where appropriate.
1044 Fri Jun 4 10:56:23 1999 Jeffrey A Law (law@cygnus.com)
1046 * hppa-tdep.c (hppa_fix_call_dummy): Make it work for GCC compiled
1047 executables without end.o. Clean up lots of mis-guided comments.
1049 Fri Jun 4 17:10:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
1051 * parser-defs.h (std_regs): Replace array with pointer.
1052 * parse.c (build_parse): Build the std_regs table according to the
1053 standard registers available.
1054 (_initialize_parse): Register std_regs and num_std_regs as
1055 architecture specific.
1056 * gdbarch.h, gdbarch.c: Add multi-arch support for SP_REGNUM,
1057 FP_REGNUM, PC_REGNUM, NUM_REGS, REGISTER_NAME.
1058 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
1060 1999-06-03 Michael Snyder <msnyder@cleaver.cygnus.com>
1062 * thread.c: eliminate the target_thread_vector (functionality
1063 moved into the standard target vector).
1064 * gdbthread.h: eliminate target_thread_vector. Move all related
1065 defines into remote.c, since they are no longer shared with thread.c.
1066 * remote.c: eliminate the target_thread_vector.
1067 (remote_find_new_threads): change return type to void, consistent
1068 with the target vector table. (cont_thread): rename continue_thread.
1069 (record_currthread): remove dead code. (remote_thread_alive):
1070 clean up and simplify. (threadref etc.): move definitions to here
1073 1999-06-02 Jason Molenda (jsm@bugshack.cygnus.com)
1075 * inftarg.c (child_create_inferior): Remove dead HPUX specific code
1076 which tries to find csh.
1077 * fork-child.c: Remove DEBUGGING predefine and conditionalized
1079 (fork_inferior): Remove dead HPUX specific code which assumes shell
1082 * hppa-tdep.c: Remove DEBUGGING and #if 0 debugging printfs.
1086 * gdbarch.h: Forward decl of struct value.
1088 Thu Jun 3 10:12:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
1090 * d10v-tdep.c (do_d10v_pop_frame): Rename d10v_pop_frame. Make
1092 * d10v-tdep.c (d10v_pop_frame), config/d10v/tm-d10v.h: New
1093 function. Call generic_pop_current_frame.
1094 * config/d10v/tm-d10v.h (POP_FRAME): Update.
1095 * gdbarch.h, gdbarch.c (frame_num_args_unknown): New function.
1096 * gdbarch.h, gdbarch.c: Add multi-arch support for POP_FRAME,
1097 SKIP_PROLOGUE, INNER_THAN, DECR_PC_AFTER_BREAK,
1098 FUNCTION_START_OFFSET, REMOTE_TRANSLATE_XFER_ADDRESS, FRAME_CHAIN,
1099 FRAME_CHAIN_VALID, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS,
1100 FRAME_LOCALS_ADDRESS, FRAME_ARGS_SKIP,
1101 FRAMELESS_FUNCTION_INVOCATION, REGISTER_BYTE, REGISTER_RAW_SIZE,
1102 REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, SAVED_PC_AFTER_CALL,
1103 FRAME_NUM_ARGS, MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
1105 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
1106 * config/d10v/tm-d10v.h (DMEM_START, IMEM_START, STACK_START,
1107 ARG1_REGNUM, ARGN_REGNUM, RET1_REGNUM): Move definitions from
1109 * d10v-tdep.c: To here.
1110 * config/d10v/tm-d10v.h (struct type): Move declaration from here.
1111 * gdbarch.h: To here.
1112 * config/d10v/tm-d10v.h (struct frame_info, struct
1113 frame_saved_regs, struct type): Delete declarations.
1115 1999-06-02 Robert Hoehne <robert.hoehne@gmx.net>
1117 * go32-nat.c: go32_terminal_init, go32_terminal_inferior and
1118 go32_terminal_ours are new functions to save/restore the inferior`s
1119 stdin/stdout filemodes
1121 1999-06-02 Stan Shebs <shebs@andros.cygnus.com>
1123 * MAINTAINERS: Add Mark Kettenis, Jeff Law, and Philippe De Muyter
1124 as maintainers for Hurd, HP/UX, and COFF, respectively.
1126 1999-06-02 Mark Kettenis <kettenis@gnu.org>
1128 * gnu-nat.c (inf_continue): New function.
1129 (struct inf): Use `unsigned int' instead of `int' for bit-fields.
1130 Add new bit-field named `nomsg'.
1131 (inf_validate_procinfo): Renamed from inf_validate_stopped, all
1132 callers changed. Also update the `nomsg' and `traced' fields of
1134 (make_inf): Initialize INF->nomsg.
1135 (inf_cleanup): Reset INF->nomsg.
1136 (inf_detach): Call `inf_validate_procinfo'. Call `inf_continue'
1137 instead of `inf_signal' if the inferior does not have a message
1139 (gnu_resume): Likewise.
1140 (gnu_create_inferior): Reset INF->nomsg in `attach_to_child'.
1141 Call `inf_validate_procinfo' after returning from `fork_inferior'.
1142 (gnu_attach): Update signal thread and tracing state.
1144 * config/i386/tm-i386gnu.h: Include "i386/tm-i386.h" instead of
1146 (STACK_END_ADDR): Remove.
1147 (SIGCONTEXT_PC_OFFSET): New define.
1148 Include "tm-sysv4.h".
1150 1999-06-02 J.T. Conklin <jtc@redback.com>
1152 * config/tm-vxworks.h: New file, header for definitions common to
1153 all vxWorks targets.
1154 * config/a29k/tm-vx29k.h, config/i960/tm-vx960.h,
1155 config/m68k/tm-vx68.h, config/mips/tm-vxmips.h,
1156 config/sparc/tm-vxsparc.h: Include tm-vxworks.h.
1158 Wed Jun 2 17:37:03 1999 Jeffrey A Law (law@cygnus.com)
1160 * config/pa/tm-hppa.h (IMPORT_SHLIB): New unwind stub type.
1162 1999-06-02 Christopher Faylor <cgf@cygnus.com>
1164 * configure.tgt: Alphabetically reorder some targets.
1166 1999-06-02 Keith Seitz <keiths@cygnus.com>
1168 * v850ice.c (v850ice_xfer_memory): Insert lost "break".
1170 1999-06-02 Jim Blandy <jimb@zwingli.cygnus.com>
1172 * rs6000-tdep.c (variants): Fix description of 750 register set.
1173 (Thanks to J. T. Conklin.)
1175 Wed Jun 2 16:10:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
1177 * gdbarch.h, gdbarch.c: Add multi-arch support for
1178 STORE_STRUCT_RETURN, STORE_RETURN_VALUE,
1179 EXTRACT_STRUCT_VALUE_ADDRESS, USE_STRUCT_CONVENTION,
1180 FRAME_INIT_SAVED_REGS and INIT_EXTRA_FRAME_INFO.
1181 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
1183 * config/d10v/tm-d10v.h (FRAME_INIT_SAVED_REGS): Replace
1184 FRAME_FIND_SAVED_REGS.
1185 (d10v_frame_init_saved_regs): Replace d10v_frame_find_saved_regs.
1186 * d10v-tdep.c (d10v_pop_frame, d10v_frame_chain,
1187 d10v_frame_init_saved_regs): Update.
1188 * gdbarch.h: Disallow FRAME_FIND_SAVED_REGS when multi-arch.
1190 * gdbarch.h, gdbarch.c: Add multi-arch support for
1191 D10V_MAKE_DADDR, D10V_MAKE_IADDR, D10V_DADDR_P, D10V_IADDR_P,
1192 D10V_CONVERT_DADDR_TO_RAW and D10V_CONVERT_IADDR_TO_RAW.
1193 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
1195 * config/d10v/tm-d10v.h (EXTRA_FRAME_INFO): Delete.
1196 * d10v-tdep.c (struct frame_extra_info): Define.
1197 (d10v_init_extra_frame_info, d10v_pop_frame, d10v_frame_chain,
1198 d10v_frame_find_saved_regs): Update.
1199 * gdbarch.h: Disallow EXTRA_FRAME_INFO when multi-arch.
1201 Tue Jun 1 13:36:31 1999 Philippe De Muyter <phdm@macqel.be>
1203 * config/m68k/tm-delta68.h (FRAME_NUM_ARGS): Macro prototype fixed.
1204 * config/m68k/tm-news.h, config/ns32k/tm-merlin.h: Ditto.
1205 * config/ns32k/tm-umax.h (FRAME_NUM_ARGS): Old macro definition
1206 removed; new macro prototype fixed.
1208 Wed Jun 2 11:18:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
1210 * gdbarch.h, gdbarch.c: Add multi-arch support for
1211 EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS, PUSH_DUMMY_FRAME,
1212 PUSH_RETURN_ADDRESS, POP_FRAME, FRAME_FIND_SAVED_REGS.
1213 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
1215 * gdbarch.h, gdbarch.c: Add multi-arch support for
1216 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
1217 REGISTER_CONVERT_TO_RAW.
1218 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
1220 * defs.h (REGISTER_NAME): Move compatibility definition from here.
1221 * gdbarch.h: To here.
1223 * frame.h, blockframe.c (generic_fix_call_dummy): New
1225 * gdbarch.h, gdbarch.c: Add multi-arch support for FIX_CALL_DUMMY.
1226 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
1228 Tue Jun 1 20:06:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
1230 * d10v-tdep.c (d10v_gdbarch_init): Set get_saved_register.
1231 * config/d10v/tm-d10v.h: Update.
1233 Tue Jun 1 19:50:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
1235 * gdbarch.h, gdbarch.c: Add multi-arch support for TARGET_READ_PC,
1236 TARGET_WRITE_PC, TARGET_READ_FP, TARGET_WRITE_FP, TARGET_READ_SP
1237 and TARGET_WRITE_SP.
1238 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
1240 Tue Jun 1 19:19:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
1242 * gdbarch.c (default_gdbarch): Set field GET_SAVED_REGISTER to
1243 generic_get_saved_register.
1244 * gdbarch.c: Change update dispatch functions so that they check
1245 for a NULL function pointer.
1247 Tue Jun 1 19:19:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
1249 * gdbarch.h, gdbarch.c: Add multi-arch support for TARGET_INT_BIT,
1250 TARGET_CHAR_BIT, TARGET_SHORT_BIT, TARGET_FLOAT_BIT,
1251 TARGET_DOUBLE_BIT and TARGET_LONG_DOUBLE_BIT.
1252 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
1254 Tue Jun 1 18:47:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
1256 * parse.c (build_parse): New function. Initialize
1257 msym_text_symbol_type, msym_data_symbol_type and
1258 msym_unknown_symbol_type.
1259 (_initialize_parse): Call build_parse.
1260 (_initialize_parse): Register variables msym_text_symbol_type,
1261 msym_data_symbol_type as msym_unknown_symbol_type as
1264 Tue Jun 1 11:30:09 1999 Andrew Cagney <cagney@b1.cygnus.com>
1266 * d10v-tdep.c (_initialize_d10v_tdep): Register d10v as an
1268 (d10v_gdbarch_init): New function.
1269 * confg/d10v/tm-d10v.h (GDB_MULTI_ARCH): Define.
1271 Tue Jun 1 10:45:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
1273 * config/d10v/tm-d10v.h (REGISTER_CONVERTIBLE,
1274 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERT_TO_VIRTUAL): Convert
1275 macros into functions.
1276 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_register_convertable,
1277 d10v_register_convert_to_virtual, d10v_register_convert_to_raw):
1280 1999-05-31 Fernando Nasser <fnasser@totem.to.cygnus.com>
1282 * stack.c (print_args_stub): Add missing stream parameter.
1284 Mon May 31 15:50:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
1286 Fri May 28 16:51:00 1999 Martin Dorey <martin.dorey@madge.com>:
1287 * valops.c, value.h (default_push_arguments): Fix order of
1288 parameters to match PUSH_ARGUMENTS arguments.
1290 Thu May 27 11:42:55 1999 Andrew Cagney <cagney@b1.cygnus.com>
1292 * gdbarch.h (EXTRACT_STRUCT_VALUE_ADDRESS): Return 0.
1294 * valops.c (value_assign): Delete redundant test of
1295 REGISTER_CONVERTIBLE.
1297 Thu May 27 11:33:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
1299 * config/w65/tm-w65.h, config/tic80/tm-tic80.h, config/sh/tm-sh.h,
1300 config/i386/tm-i386m3.h, config/i386/tm-go32.h,
1301 config/i386/tm-cygwin.h, config/h8500/tm-h8500.h,
1302 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h: Delete definition of
1303 macro NAMES_HAVE_UNDERSCORE.
1305 Thu May 27 09:31:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
1307 * gdbarch.h (EXTRACT_STRUCT_VALUE_ADDRESS,
1308 EXTRACT_STRUCT_VALUE_ADDRESS_P): Provide default definitions.
1309 * values.c (value_being_returned): Use
1310 EXTRACT_STRUCT_VALUE_ADDRESS when EXTRACT_STRUCT_VALUE_ADDRESS_P.
1312 Wed May 26 13:51:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
1314 * utils.c (tui_file_new, tui_file_delete, tui_fileopen): New
1316 (tui_file_isatty): Rename gdb_file_isatty.
1317 (gdb_file_init_astring): Use tui_file_new to create stream.
1318 (gdb_file_get_strbuf, gdb_file_adjust_strbuf): Call gdb_file_data
1319 to access the tui_stream.
1320 (tui_file_flush): Rename gdb_flush. Call gdb_file_data to access
1321 the tui_stream. Pass FILE and not STREAM down.
1323 * utils.c (struct stdio_file, stdio_file_flush, stdio_file_fputs,
1324 stdio_file_isatty, stdio_file_delete, stdio_file_new,
1325 stdio_fileopen): Define type and functions. Implement a simple
1326 STDIO based gdb_file.
1327 (struct gdb_file, gdb_file_new, gdb_file_delete, null_file_isatty,
1328 null_file_flush, null_file_fputs, null_file_delete, gdb_file_data,
1329 set_gdb_file_flush, set_gdb_file_isatty, set_gdb_file_fputs,
1330 set_gdb_file_data, fputs_unfiltered, gdb_flush, gdb_file_isatty):
1331 Define type and functions. Implement virtual functions for
1334 * defs.h (struct gdb_file): Declare.
1335 (GDB_FILE): Change type to struct gdb_file. Deprecate.
1336 (gdb_file_flush_ftype, gdb_file_fputs_ftype,
1337 gdb_file_isatty_ftype, gdb_file_delete_ftype): Add function type
1340 * defs.h (set_gdb_file_flush, set_gdb_file_fputs,
1341 set_gdb_file_isatty, set_gdb_file_data, gdb_file_new,
1342 gdb_file_delete, gdb_file_data, stdio_fileopen, tui_fileopen): Add
1343 function declarations.
1344 (gdb_fopen): Re-implement. Call stdio_file_new.
1345 (gdb_fclose): Re-implement. Call gdb_file_delete.
1347 * main.c (tui_file_fputs): Rename fputs_unfiltered. Use
1348 gdb_file_data to gain access to the tui_stream data. Use FILE
1349 instead of STREAM where applicable.
1350 (main): Create gdb_stdout and gdb_stderr using tui_fileopen.
1352 * defs.h (struct tui_stream): Add field ts_magic.
1353 * utils.c (tui_file_magic): Local variable.
1354 (tui_file_new): Set field ts_magic.
1355 (tui_file_delete, tui_file_isatty, gdb_file_init_astring,
1356 gdb_file_get_strbuf, gdb_file_adjust_strbuf, tui_file_flush):
1359 1999-05-25 Jim Blandy <jimb@zwingli.cygnus.com>
1361 * breakpoint.c (insert_breakpoints, remove_breakpoint,
1362 breakpoint_1): Add a 'default' case, which prints a warning
1363 message, to remove EGCS warnings.
1365 1999-05-25 Fernando Nasser <fnasser@totem.to.cygnus.com>
1367 * utils.c (gdb_file_adjust_strbuf): Take into account the
1368 possibility that the buffer has not been allocated yet.
1370 Tue May 25 16:05:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
1372 * gdbarch.h (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
1373 REGISTER_CONVERT_TO_RAW): Provide default definition.
1375 * valops.c (value_assign), infcmd.c (do_registers_info), findvar.c
1376 (value_from_register, value_of_register): Remove #ifdef
1377 REGISTER_CONVERTIBLE. Assume REGISTER_CONVERTIBLE etc defined.
1379 Tue May 25 16:18:25 1999 Andrew Cagney <cagney@amy.cygnus.com>
1381 * remote-d10v.c (d10v_eva_prepare_to_trace,
1382 d10v_eva_get_trace_data), remote-sim.c (_initialize_remote_sim):
1383 Add declaraton. Make static.
1385 * remote-d10v.c (_initialize_remote_d10v), d10v-tdep.c
1386 (_initialize_d10v_tdep): Add declaration.
1387 * config/d10v/tm-d10v.h (d10v_frame_chain): Add declaration.
1389 Tue May 25 15:20:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
1391 * main.c (init_proc, proc_remove_foreign): Delete function.
1392 * inftarg.c (child_mourn_inferior): Update. Delete call to
1393 proc_remove_foreign().
1394 * top.c (gdb_init): Update. Delete call to init_proc().
1396 * utils.c (pollquit, fmthex, hexlate): Delete function.
1398 Tue May 25 13:01:43 1999 Andrew Cagney <cagney@amy.cygnus.com>
1400 * main.c (gdb_init): Move declaration from here.
1403 * defs.h (init_page_info): Add declaration.
1405 * top.c (initialize_utils): Move declaration from here.
1408 * infcmd.c (target_map_name_to_register): Move declaration from
1410 * parser-defs.h: To here.
1412 * c-typeprint.c (cp_type_print_method_args), target.c
1413 (nosupport_runtime, normal_target_post_startup_inferior): Add
1414 declaration. Make static.
1416 Tue May 25 13:53:23 1999 Andrew Cagney <cagney@amy.cygnus.com>
1418 * main.c: Include "event-loop.h".
1419 * Makefile.in (main.o): Add dependency.
1421 * top.h (setup_event_loop, async_init_signals), top.c
1422 (set_async_editing_command, set_async_annotation_level,
1423 set_async_prompt), event-loop.c (display_gdb_prompt): Move
1424 declarations from here.
1425 * event-loop.h: To here.
1427 * event-loop.h (delete_async_signal_handler): Add function
1430 * event-top.c (change_annotation_level, command_handler): Add
1431 declaration. Make static.
1433 Tue May 25 12:44:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
1435 * tracepoint.c (free_actions_list, add_register): Add declaration.
1437 (free_actions_list_cleanup_wrapper): New function. Wraps
1438 free_actions_list for make_cleanup.
1439 (trace_start_command): Pass free_actions_list_cleanup_wrapper
1440 instead of free_actions_list to make_cleanup.
1441 (_initialize_tracepoint): Add extern declaration.
1443 Tue May 25 12:23:39 1999 Andrew Cagney <cagney@amy.cygnus.com>
1445 * jv-typeprint.c (java_type_print_base, jv-valprint.c
1446 (java_print_value_fields): Add static declaration.
1448 * jv-lang.c (java_lookup_type, get_java_utf8_name,
1449 java_lookup_type): Add static declaration.
1450 (get_java_class_symtab, java_class_is_primitive,
1451 java_value_string): Add declaration. Make static.
1452 (java_rerun_cleanup): Add extern declaration for this stub
1455 Tue May 25 12:06:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
1457 * gdbarch.h: When multi-arch, check that REGISTER_NAMES was not
1460 Mon May 24 16:16:29 1999 Andrew Cagney <cagney@amy.cygnus.com>
1462 * inflow.c (_initialize_inflow), annotate.c
1463 (_initialize_annotate), os9kread.c (_initialize_os9kread),
1464 serial.c (_initialize_serial), nlmread.c (_initialize_nlmread),
1465 f-valprint.c (_initialize_f_valprint), cp-valprint.c
1466 (_initialize_cp_valprint), typeprint.c (_initialize_typeprint),
1467 complaints.c (_initialize_complaints), scm-lang.c
1468 (_initialize_scheme_language), m2-lang.c
1469 (_initialize_m2_language), dbxread.c (_initialize_dbxread),
1470 f-lang.c (_initialize_f_language), ch-lang.c
1471 (_initialize_chill_language), c-lang.c (_initialize_c_language),
1472 corefile.c (_initialize_core), stabsread.c
1473 (_initialize_stabsread), mipsread.c (_initialize_mipsread),
1474 elfread.c (_initialize_elfread), coffread.c
1475 (_initialize_coffread), maint.c (_initialize_maint_cmds),
1476 demangle.c (_initialize_demangler), maint.c
1477 (_initialize_maint_cmds), language.c (_initialize_language): Add
1478 external declaration.
1480 Mon May 24 10:04:56 1999 Andrew Cagney <cagney@b1.cygnus.com>
1482 * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/v850/tm-v850.h,
1483 config/tic80/tm-tic80.h, config/tahoe/tm-tahoe.h,
1484 config/rs6000/tm-rs6000.h, config/sparc/tm-sparc.h,
1485 config/sh/tm-sh.h, config/pyr/tm-pyr.h, config/pa/tm-hppa.h,
1486 config/ns32k/tm-merlin.h, config/mn10300/tm-mn10300.h,
1487 config/mn10200/tm-mn10200.h, config/mips/tm-mips.h,
1488 config/m88k/tm-m88k.h, config/m68k/tm-news.h,
1489 config/m68k/tm-delta68.h, config/m68k/tm-isi.h,
1490 config/m68k/tm-m68k.h, config/m32r/tm-m32r.h,
1491 config/i960/tm-i960.h, config/i386/tm-i386v.h,
1492 config/i386/tm-i386.h, config/h8500/tm-h8500.h,
1493 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
1494 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h,
1495 config/convex/tm-convex.h, config/arc/tm-arc.h,
1496 config/arm/tm-arm.h, config/alpha/tm-alpha.h,
1497 config/a29k/tm-a29k.h: Re-write definition of FRAME_NUM_ARGS so
1498 that it returns NUM_ARGS as a result instead of setting a variable
1501 * ns32k-tdep.c (merlin_frame_num_args), tahoe-tdep.c
1502 (tahoe_frame_num_args), vax-tdep.c (vax_frame_num_args),
1503 m68k-tdep.c (news_frame_num_args, delta68_frame_num_args,
1504 isi_frame_num_args), convex-tdep.c (convex_frame_num_args): New
1507 * stack.c (print_args_stub): Update use of FRAME_NUM_ARGS.
1509 Mon May 24 11:57:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
1511 * remote.c (remote_xfer_memory): Re-write with assumption that
1512 REMOTE_TRANSLATE_XFER_ADDRESS is defined. Pass targ_addr and
1513 targ_len by reference.
1514 (REMOTE_TRANSLATE_XFER_ADDRESS): Provide default definition.
1516 * remote-d10v.c (remote_d10v_translate_xfer_address): Update.
1517 * config/d10v/tm-d10v.h (REMOTE_TRANSLATE_XFER_ADDRESS): Update.
1519 Mon May 24 12:10:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
1521 * value.h (default_push_arguments): Add function declaration.
1523 * alpha-tdep.c (alpha_about_to_return), gdbarch.c (verify_gdbarch,
1524 arch_ok, set_arch), command.c (find_cmd), infrun.c
1525 (follow_inferior_fork, follow_fork, follow_vfork,
1526 set_schedlock_func, is_internal_shlib_eventpoint,
1527 stopped_for_internal_shlib_event, stopped_for_shlib_catchpoint,
1528 xdb_handle_command), infcmd.c (run_no_args_command, go_command),
1529 symfile.c (add_filename_language, set_ext_lang_command,
1530 info_ext_lang_command, init_filename_language_table), symtab.c
1531 (overload_list_add_symbol), defs.h (default_get_saved_register),
1532 ax-general.c (grow_expr, append_const, read_const, generic_ext):
1535 * infrun.c (currently_stepping): Ditto. Make static.
1537 * valops.c (hand_function_call): Explictly type static variable
1540 Mon May 24 08:36:18 1999 Andrew Cagney <cagney@b1.cygnus.com>
1542 * d10v-tdep.c (d10v_breakpoint_from_pc, d10v_register_name,
1543 d10v_register_byte, d10v_register_raw_size,
1544 d10v_register_virtual_size, d10v_register_virtual_type,
1545 d10v_make_daddr, d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
1546 d10v_convert_iaddr_to_raw, d10v_convert_daddr_to_raw,
1547 d10v_store_struct_return, d10v_store_return_value,
1548 d10v_extract_struct_value_address, d10v_frame_saved_pc,
1549 d10v_frame_args_address, d10v_frame_locals_address,
1550 d10v_saved_pc_after_call): New functions.
1552 * config/d10v/tm-d10v.h (REGISTER_BYTE, REGISTER_RAW_SIZE,
1553 REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN,
1554 D10V_MAKE_DADDR, D10V_MAKE_IADDR, D10V_DADDR_P, D10V_IADDR_P,
1555 D10V_CONVERT_DADDR_TO_RAW, D10V_CONVERT_IADDR_TO_RAW,
1556 STORE_STRUCT_RETURN, STORE_RETURN_VALUE,
1557 EXTRACT_STRUCT_VALUE_ADDRESS, SAVED_PC_AFTER_CALL, FRAME_SAVED_PC,
1558 FRAME_ARGS_ADDRESS): Re-define using new functions.
1560 * config/d10v/tm-d10v.h (BREAKPOINT_FROM_PC): Replace BREAKPOINT.
1561 (REGISTER_NAME): Replace REGISTER_NAMES.
1563 * utils.c (core_addr_lessthan, core_addr_greaterthan): New
1565 * defs.h (core_addr_lessthan, core_addr_greaterthan): Declare.
1567 Sat May 22 16:44:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
1569 * utils.c (n_spaces): Handle case where first call has N equal to
1571 (print_spaces): Use n_spaces.
1573 Fri May 21 11:23:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
1575 * valops.c (value_push): Remove conditional definition based on
1576 absense of macro PUSH_ARGUMENTS. Pass SP and STRUCT_ADDR by
1578 (default_push_arguments): New function.
1580 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
1581 config/sparc/tm-sparc.h, config/sparc/tm-sp64.h,
1582 config/sh/tm-sh.h, config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
1583 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
1584 config/mips/tm-mips.h, config/m32r/tm-m32r.h,
1585 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
1586 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h, config/arm/tm-arm.h,
1587 config/alpha/tm-alpha.h: Update definition of PUSH_ARGUMENTS.
1590 * rs6000-tdep.c (rs6000_push_arguments): Rename push_arguments.
1592 Thu May 20 12:18:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
1594 * blockframe.c (get_prev_frame): Remove #ifdef around test for
1595 FRAMELESS_FUNCTION_INVOCATION.
1596 (get_prev_frame): Change FRAMELESS_FUNCTION_INVOCATION call to a
1597 function invocation.
1598 * i386-tdep.c (i386_frame_num_args), stack.c (frame_info): Ditto.
1599 * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/vax/tm-vax.h,
1600 config/sparc/tm-sparc.h, config/sh/tm-sh.h,
1601 config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
1602 config/mips/tm-mips.h, config/m88k/tm-m88k.h,
1603 config/m68k/tm-m68k.h, config/i960/tm-i960.h,
1604 config/i386/tm-sun386.h, config/i386/tm-i386v.h,
1605 config/i386/tm-i386.h, config/h8500/tm-h8500.h,
1606 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
1607 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h,
1608 config/convex/tm-convex.h, config/arm/tm-arm.h,
1609 config/arc/tm-arc.h, config/alpha/tm-alpha.h,
1610 config/a29k/tm-a29k.h: Update FRAMELESS_FUNCTION_INVOCATION.
1611 * fr30-tdep.c (fr30_frameless_function_invocation), convex-tdep.c
1612 (convex_frameless_function_invocation), arm-tdep.c
1613 (arm_frameless_function_invocation): New functions.
1615 1999-05-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1617 * top.c: Change dates in comments to ISO format.
1619 * event-top.c: Ditto.
1620 * event-loop.c: Ditto.
1623 1999-05-19 Keith Seitz <keiths@cygnus.com>
1625 * monitor.c (monitor_open): Only assume we have eight
1626 breakpoints if the monitor implementation does not tell
1627 us how many there really are. Alloc memory for these
1629 (monitor_close): Free memory associated with breakpoint
1631 (monitor_insert_breakpoint): Don't rely on a hardcoded
1632 number of breakpoints.
1633 (monitor_remove_breakpoint): Ditto.
1634 (NUM_MONITOR_BREAKPOINTS): Removed and replaced with monitor_ops
1636 * monitor.h (struct monitor_ops): Add new member so that the
1637 individual monitor implementations can tell us how many
1638 breakpoints the monitor supports.
1640 1999-05-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1642 From Philippe De Muyter <phdm@macqel.be>:
1643 * event-loop.h: Include sys/wait.h only if HAVE_SYS_WAIT_H.
1645 1999-05-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
1647 * top.c (print_command_line): Added the missing stream argument.
1648 * gdbcmd.h: Added argument to prototype.
1649 * command.c: Fixed call to include extra argument.
1650 * breakpoint.c: Same.
1652 1999-05-14 Jim Blandy <jimb@zwingli.cygnus.com>
1654 Targets are #defining PREPARE_TO_PROCEED with inconsistent numbers
1655 of arguments. Since the Mach 3 target needs an argument, we'll
1656 make things consistent by adding an argument everywhere.
1657 * infrun.c (proceed): Pass an argument to PREPARE_TO_PROCEED.
1658 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Add ignored argument
1661 1999-05-11 Stan Shebs <shebs@andros.cygnus.com>
1663 Fri Apr 23 13:27:34 PDT 1999 Toshiyasu Morita (tm@netcom.com)
1664 * sh-stub.c: Mostly localize processor dependencies.
1666 1999-05-10 Martin Hunt <hunt@cygnus.com>
1668 * debugify.c, debugify.h: Removed because they are no
1671 1999-05-08 Jim Blandy <jimb@zwingli.cygnus.com>
1673 * infrun.c (_initialize_infrun): Handle TARGET_SIGNAL_LWP,
1674 TARGET_SIGNAL_WAITING, and TARGET_SIGNAL_CANCEL like SIGALRM or
1675 SIGIO --- pass them through to the inferior silently.
1676 * target.h (enum target_signals): Add TARGET_SIGNAL_CANCEL, for
1677 Solaris's SIGCANCEL.
1678 * target.c (target_signal_from_host, target_signal_to_host): Add
1679 mapping between SIGCANCEL and TARGET_SIGNAL_CANCEL.
1680 (signals): Add entry for SIGCANCEL.
1682 1999-05-07 Stan Shebs <shebs@andros.cygnus.com>
1684 After years of talking about it, finally break up the
1685 wait_for_inferior loop.
1686 * infrun.c (struct execution_control_state): New struct,
1687 holds what used to be local vars governing wfi behavior.
1688 (init_execution_control_state): New function, was code in
1689 wfi that set up execution control state.
1690 (handle_inferior_event): New function, was body of main
1691 wfi loop. Rewrite all local var references to go through
1692 the ecs structure passed into this function.
1693 (wait_for_inferior): Rewrite to set up and use execution control
1694 state, and to call the new functions.
1695 (currently_stepping): New function, was the macro
1697 (enum infwait_states): Rename from wfi_states.
1698 (infwait_normal_state, etc): Similarly.
1700 Thu May 6 15:25:32 1999 Philippe De Muyter <phdm@macqel.be>
1702 * coffread.c (coff_symtab_read): Call `record_line' with the line
1703 number of the ".bf" symbol only for one-line functions.
1705 1999-05-06 Michael Snyder <msnyder@cleaver.cygnus.com>
1707 * Makefile.in: thread.o depends on target.h.
1709 1999-05-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1711 * event-top.c (change_line_handler): Use POLLIN instead of
1712 POLLRDNORM, for compatibility with Linux.
1713 (setup_event_loop): Ditto.
1715 1999-05-06 Jim Blandy <jimb@zwingli.cygnus.com>
1717 * mips-tdep.c (heuristic_proc_start): Rewrite cryptic error
1718 message about hitting the "heuristic fence post" with something
1719 that actually gives the user a fighting chance of figuring out
1722 1999-05-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1724 * top.c: Include event-loop.h.
1725 (init_main): Add async version of 'set prompt' command.
1726 If in async mode define the editing and annotate set
1727 commands in a different way.
1728 Initialize new variable asyn_command_editing_p to 1.
1729 Initialize the gdb prompt for async mode.
1730 (quit_cover): Make not static, for use by the event loop.
1731 (gdb_init): Call async_init_signals for the asynchronous case.
1732 (source_line_number, source_file_name, source_error,
1733 source_pre_error, history_expansion_p): Make non-static, so
1734 event-top.c can use them.
1735 (command_loop_marker): Make non-static, for use in event-top.c.
1736 Include event-loop.h.
1738 * top.h: Add prototype for async_init_signals.
1739 (SET_TOP_LEVEL): Move here from main.c.
1740 Add setup_event_loop to exported functions.
1742 * defs.h: Add async_hook to exported variables.
1744 * main.c (SET_TOP_LEVEL): Move to top.h, so that it is visible in
1745 event-loop.c. Add new global variable async to determine whether
1746 we are running in async mode or not.
1747 (main): Add support for --async switch. Use async_hook to call
1748 setup_event_loop, when running in async mode.
1750 * event-top.c: New file. Gdb input line handler and command line
1751 handler for the event loop. Initialization of signal handlers.
1752 All the handled signals have handlers called handle_<signalname>.
1753 Set up all the appropriate tokens for asynchronous signal
1756 * event-loop.h: New file. Data structures and definitions for the
1759 * event-loop.c: New file. Functions for the event loop
1762 * config.in: Regenerate with autoheader.
1764 * configure.in (AC_CHECK_FUNCS): Add poll to list of functions
1767 * configure: Regenerate.
1769 * Makefile.in (SFILES): Add new source files.
1770 (eventloop_h): Define.
1771 (COMMON_OBS): Add new object files.
1772 (event-loop.o): Add rule for target object.
1773 (event-top.o): Ditto.
1775 1999-05-05 Stan Shebs <shebs@andros.cygnus.com>
1777 * infrun.c (wait_for_inferior): Transform breaks and continues
1778 into gotos, move the target_wait to the very top of the loop.
1780 1999-05-05 Jonathan Larmour <jlarmour@cygnus.co.uk>
1782 * configure.in: Ensure that GDB links with libuser32.a under
1783 cygwin because libreadline requires it.
1784 * Makefile.in (WIN32LIBS): Substitute in result from configure
1785 * configure: regenerate
1787 1999-05-04 Jim Blandy <jimb@zwingli.cygnus.com>
1789 Fix from John Rigby. Richard Henderson says it seems okay.
1790 * alpha-tdep.c (PROC_DUMMY_FRAME): As long as we're abusing fields
1791 of (proc)->pdr, we ought to at least abuse one large enough to
1792 hold the value we're trying to store in it. iopt is only 32 bits
1793 wide; cbLineOffset is a bfd_vma.
1795 1999-05-04 DJ Delorie <dj@cygnus.com>
1797 DJGPP changes from Robert Hoehne <robert.hoehne@gmx.net>
1799 * ser-go32.c: correct includes
1800 * source.c (openp): use ROOTED_P instead of SLASH_P
1801 * go32-nat.c: enhance exception and NPX handling
1802 (go32_kill_inferior): fix small bug killing inferior
1803 * configure.in: don't look for termcap with djgpp
1804 * configure: rebuild
1806 1999-05-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1808 * main.c (main): Comment out unused and undocumented command line
1811 1999-04-30 Jim Blandy <jimb@zwingli.cygnus.com>
1813 Cleanup from Philippe De Muyter:
1814 * configure.in (BFD_NEED_DECLARATION): Check also for strstr.
1815 * acconfig.h (NEED_DECLARATION_MALLOC, NEED_DECLARATION_REALLOC,
1816 NEED_DECLARATION_FREE, NEED_DECLARATION_STRERROR): Define slots
1817 removed; they are now generated automatically.
1818 * gdb_string.h (strstr): Provide function prototype if
1819 NEED_DECLARATION_STRSTR.
1820 * configure, config.in: Regenerated.
1822 Fri Apr 30 11:16:09 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
1824 * target.h (to_find_new_threads): new target ops vector.
1825 (target_find_new_threads): define.
1826 * target.c (update_current_target): inherit new target ops vector.
1827 * remote.c: Setup to_find_new_threads vector.
1828 * sol-thread.c: ditto.
1829 * thread.c (target_find_new_threads): rename: local_find_new_threads.
1830 (info_threads_command): call target_find_new_threads by new method,
1831 as a target ops vector, rather than previous macro definition method.
1832 * infcmd.c (go_command): define only if in xdb mode.
1833 * procfs.c: fix typo in comment.
1835 Fri Apr 30 01:02:05 1999 Jeffrey A Law (law@cygnus.com)
1837 * hppah-nat.c: Fix various coding convention violations introduced
1839 (child_acknowledge_created_inferior): Do nothing if PT_SET_EVENT_MASK
1842 1999-04-28 Stan Shebs <shebs@andros.cygnus.com>
1844 * TODO: Add some items inspired by review of the manual.
1846 Tue Apr 27 17:38:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
1848 * config/z8k/tm-z8k.h, config/v850/tm-v850.h,
1849 config/tic80/tm-tic80.h, config/sparc/tm-sparc.h,
1850 config/sh/tm-sh.h, config/pyr/tm-pyr.h, config/pa/tm-hppa.h,
1851 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
1852 config/mips/tm-mips.h, config/m88k/tm-m88k.h,
1853 config/m68k/tm-m68k.h, config/m32r/tm-m32r.h,
1854 config/i960/tm-i960.h, config/i386/tm-i386.h,
1855 config/h8500/tm-h8500.h, config/h8300/tm-h8300.h,
1856 config/fr30/tm-fr30.h, config/d30v/tm-d30v.h,
1857 config/d10v/tm-d10v.h, config/alpha/tm-alpha.h,
1858 config/arm/tm-arm.h, config/a29k/tm-a29k.h, config/arc/tm-arc.h:
1859 Change SKIP_PROLOGUE and SKIP_PROLOGUE_FRAMELESS_P macros so that
1860 they return the new address.
1862 * sparc-tdep.c (sparc_skip_prologue), hppa-tdep.c
1863 (hppa_skip_prologue), m88k-tdep.c
1864 (m88k_skip_prologue), i960-tdep.c
1865 (i960_skip_prologue), arc-tdep.c
1866 (arc_skip_prologue), a29k-tdep.c (a29k_skip_prologue): Rename
1867 skip_prologue function.
1869 * config/m68k/tm-isi.h: Convert macro SKIP_PROLOGUE into a new
1871 * m68k-tdep.c (isi_skip_prologue): That new function.
1872 * vax-tdep.c (vax_skip_prologue), config/vax/tm-vax.h: Ditto.
1873 * tahoe-tdep.c (tahoe_skip_prologue), config/tahoe/tm-tahoe.h: Ditto.
1874 * rs6000-tdep.c (rs6000_skip_prologue), config/rs6000/tm-rs6000.h:
1876 * ns32k-tdep.c (umax_skip_prologue), config/ns32k/tm-umax.h: Ditto.
1877 * config/ns32k/tm-merlin.h, ns32k-tdep.c (merlin_skip_prologue):
1879 * config/m68k/tm-altos.h, m68k-tdep.c (altos_skip_prologue): Ditto.
1880 * config/convex/tm-convex.h, convex-tdep.c (convex_skip_prologue):
1883 * symtab.c (in_prologue, find_function_start_sal, decode_line_1),
1884 infrun.c (wait_for_inferior), blockframe.c
1885 (frameless_look_for_prologue): Update.
1886 * config/fr30/tm-fr30.h (FRAMELESS_FUNCTION_INVOCATION): Update.
1888 1999-04-27 Stan Shebs <shebs@andros.cygnus.com>
1890 * TODO: Remove item about DEBUG_EXPRESSIONS, no longer meaningful.
1892 * infrun.c (enum wfi_state): New enum.
1893 (wait_for_inferior): Merge all but one of the target_wait calls
1894 into a single call, add a wfi_state variable to encode which of
1895 the calls is being made.
1897 1999-04-26 Jim Blandy <jimb@zwingli.cygnus.com>
1899 Fix from Dave Holcomb.
1900 * hpux-thread.c (init_hpux_thread_ops): Use the right function
1901 name when initializing hpux_thread_ops.to_thread_alive.
1903 * coffread.c (coff_symfile_read): If we have a `.stab' section,
1904 but no `.stabstr' section, then print an error message; don't
1907 1999-04-26 Jim Blandy <jimb@zwingli.cygnus.com>
1909 1999-04-25 Mark Kettenis <kettenis@gnu.org>
1911 * gnu-nat.c (gnu_attach): Call target_terminal_init before calling
1912 inf_set_traced, since that function calls code that might try to
1913 restore the terminal settings.
1915 Mon Apr 26 08:55:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
1917 * gdbarch.h, gdbarch.c: More format cleanups.
1919 Sun Apr 25 18:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
1921 * gdbarch.h (CALL_DUMMY_STACK_ADJUST_P): Replace
1922 SIZEOF_CALL_DUMMY_STACK_ADJUST_P.
1923 (CALL_DUMMY_STACK_ADJUST): Replace
1924 SIZEOF_CALL_DUMMY_STACK_ADJUST_P.
1925 * gdbarch.c (gdbarch_call_dummy_stack_adjust,
1926 set_gdbarch_call_dummy_stack_adjust): Define.
1928 Fri Apr 23 15:00:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
1930 * gdbarch.c (arch_ok): New function. Fix logic test for a valid
1934 1999-04-22 Jason Molenda (jsm@bugshack.cygnus.com)
1936 * README: Note that readline is not installed as a part of
1939 Thu Apr 22 21:02:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
1941 * gdbarch.h, gdbarch.c (GET_SAVED_REGISTER, get_saved_register):
1943 (struct gdbarch, verify_gdbarch, gdbarch_alloc, gdbarch_dump,
1944 default_gdbarch): Update.
1946 * value.h (get_saved_register): Cleanup prototype.
1947 * findvar.c (default_get_saved_register): Rename function
1949 (GET_SAVED_REGISTER): Define as default_get_saved_register when
1951 (get_saved_register): Always declare. Call GET_SAVED_REGISTER.
1953 * sparc-tdep.c (sparc_get_saved_register): Rename function
1955 * config/sparc/tm-sparc.h (GET_SAVED_REGISTER): Update.
1956 * a29k-tdep.c (a29k_get_saved_register): Rename function
1958 * config/a29k/tm-a29k.h (GET_SAVED_REGISTER): Update.
1960 * config/d10v/tm-d10v.h, config/powerpc/tm-ppc-eabi.h,
1961 config/h8300/tm-h8300.h, config/m32r/tm-m32r.h,
1962 config/mn10200/tm-mn10200.h, config/mn10300/tm-mn10300.h,
1963 config/sh/tm-sh.h, config/tic80/tm-tic80.h, config/v850/tm-v850.h:
1964 Update macro GET_SAVED_REGISTER so that it calls
1965 generic_get_saved_register.
1966 * v850-tdep.c, tic80-tdep.c, sh-tdep.c, mn10300-tdep.c,
1967 mn10200-tdep.c, m32r-tdep.c, h8300-tdep.c, rs6000-tdep.c: Delete
1968 function get_saved_register.
1970 Thu Apr 22 13:32:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
1972 * gdbarch.c: Cleanup. Re-order the definition of the ``struct
1973 gdbarch'' initialization functions so that maintenance is more
1976 Thu Apr 22 11:07:21 1999 Andrew Cagney <cagney@b1.cygnus.com>
1978 * gdbarch.h, gdbarch.c (use_generic_dummy_frames,
1979 USE_GENERIC_DUMMY_FRAMES): Add.
1980 (struct gdbarch, verify_gdbarch, gdbarch_alloc, gdbarch_dump,
1981 default_gdbarch): Update.
1983 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
1984 config/sh/tm-sh.h, config/powerpc/tm-ppc-eabi.h,
1985 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
1986 config/m32r/tm-m32r.h, config/h8300/tm-h8300.h,
1987 config/fr30/tm-fr30.h, config/d10v/tm-d10v.h: Give the
1988 USE_GENERIC_DUMMY_FRAMES macro the value one.
1989 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Default to a value of
1992 * blockframe.c (generic_find_dummy_frame,
1993 generic_pc_in_call_dummy, generic_read_register_dummy,
1994 generic_push_dummy_frame, generic_pop_current_frame,
1995 generic_pop_dummy_frame, generic_frame_chain_valid,
1996 generic_get_saved_register): Always define.
1998 * breakpoint.c (frame_in_dummy): Convert #ifdef
1999 USE_GENERIC_DUMMY_FRAMES to runtime test.
2001 * rs6000-tdep.c (pop_frame, push_arguments, push_arguments,
2002 push_arguments, frame_saved_pc, rs6000_frame_chain,
2003 rs6000_frame_chain): Convert #ifdef USE_GENERIC_DUMMY_FRAMES to
2005 (get_saved_register): Always define.
2007 Wed Apr 21 17:15:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
2009 * gdbarch.c (gdbarch_dump): Fix robustness check on
2010 BELIEVE_PCC_PROMOTION_TYPE.
2012 Wed Apr 21 15:39:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
2014 * gdbarch.h (TARGET_BYTE_ORDER_SELECTABLE_P): When multi-arch,
2015 force selectable byte order.
2016 (CALL_DUMMY): Check for CALL_DUMMY definition when multi-arch. Are
2018 * gdbarch.c (verify_gdbarch): Check call_dummy_stack_adjust.
2020 Wed Apr 21 14:45:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
2022 * gdbarch.c (gdbarch_update): Move dump-arch code from here.
2023 (gdbarch_dump): To here. Make more robust.
2024 * gdbarch.h (gdbarch_dump): Add prototype.
2026 * gdbarch.c (enum set_arch): Declare.
2027 (set_arch): Add type parameter. Only disable
2028 ``target_architecture_auto'' when set_arch_manual.
2029 (set_architecture, set_architecture_from_arch_mach,
2030 set_architecture_from_file): Update.
2031 (set_arch): When ``gdbarch_debug'', gdbarch_dump() the current
2034 Wed Apr 21 10:48:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
2036 * frame.h (generic_pc_in_call_dummy): Make signature consistent
2037 with other pc_in_call_dummy functions by adding SP parameter.
2038 * blockframe.c (generic_pc_in_call_dummy): Update. Pass SP and
2039 not FP to generic_find_dummy_frame().
2040 * breakpoint.c (frame_in_dummy): Update.
2041 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
2042 config/sh/tm-sh.h, config/mn10300/tm-mn10300.h,
2043 config/mn10200/tm-mn10200.h, config/m32r/tm-m32r.h,
2044 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
2045 config/d10v/tm-d10v.h: Update PC_IN_CALL_DUMMY definition.
2047 Tue Apr 20 12:15:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
2049 * config/d10v/tm-d10v.h (GDB_TARGET_IS_D10V): Move from here.
2050 * gdbarch.h (GDB_TARGET_IS_D10V): To here. Implement using
2051 TARGET_ARCHITECTURE.
2052 (D10V_MAKE_DADDR, D10V_MAKE_IADDR): Provide fatal default
2055 * valops.c (value_at): Replace #ifdef GDB_TARGET_IS_D10V code with
2057 (value_fetch_lazy): Ditto.
2058 * values.c (unpack_long): Ditto.
2059 * printcmd.c (print_frame_args): Ditto.
2061 Sat Apr 17 15:39:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
2063 * gdbarch.h: Cleanup multi-arch comments.
2065 Fri Apr 16 15:39:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
2067 * gdbarch.h: Provide definition if GDB_MULTI_ARCH > 1 or
2068 GDB_MULTI_ARCH > 0 and no previous definition.
2069 * gdbarch.c (verify_gdbarch): Only verify a full multi-arch
2072 1999-04-15 Stan Shebs <shebs@andros.cygnus.com>
2074 * infrun.c (wait_for_inferior) [HAVE_STEPPABLE_WATCHPOINT,
2075 HAVE_NONSTEPPABLE_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT]: Test
2076 at runtime instead of compile time.
2078 1999-04-14 Philippe De Muyter <phdm@macqel.be>
2080 * breakpoint.c (maintenance_info_breakpoints): Function made
2081 static to match previous prototype.
2083 * coffread.c (coff_record_line): Static function removed.
2084 (enter_linenos): Call `record_line' instead of `coff_record_line'.
2085 (FILE-LEVEL, coff_start_symtab, coff_end_symtab): `coff_record_line'
2086 -related stuff removed.
2087 (coff_symfile_read): Redundant statement removed.
2088 (coff_symtab_read): `record_line' is now called with the first line
2089 number of each function, given by the ".bf" symbol. This solves
2090 the line-number bug for one-line functions.
2092 Wed Apr 14 11:09:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
2094 * gdbarch.h (BELIEVE_PCC_PROMOTION_TYPE, BELIEVE_PCC_PROMOTION):
2095 Add multi-arch definitions.
2096 * gdbarch.c (gdbarch_believe_pcc_promotion,
2097 gdbarch_believe_pcc_promotion_type): New functions.
2098 (gdbarch_update): Update
2099 (struct gdbarch default_gdbarch): Update.
2101 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Provide default.
2102 (define_symbol): Change #if BELIEVE_PCC_PROMOTION_TYPE and #if
2103 BELIEVE_PCC_PROMOTION to if().
2105 1999-04-13 Jason Molenda (jsm@bugshack.cygnus.com)
2107 * configure.in (HAVE_MULTIPLE_PROC_FDS): Don't define if we're
2108 on a Solaris host (of any architecture).
2109 * configure: Regenerated.
2111 Wed Apr 14 08:23:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
2113 * gdbarch.c (SET_GDBARCH, GET_GDBARCH, FSET_GDBARCH): New macros.
2114 (gdbarch_byte_order, gdbarch_long_bit, gdbarch_long_long_bit,
2115 gdbarch_ptr_bit, gdbarch_call_dummy_location,
2116 gdbarch_call_dummy_address, gdbarch_call_dummy_address,
2117 gdbarch_call_dummy_breakpoint_offset,
2118 gdbarch_call_dummy_breakpoint_offset, gdbarch_call_dummy_length,
2119 gdbarch_pc_in_call_dummy, dbarch_call_dummy_breakpoint_offset_p,
2120 dbarch_call_dummy_p, dbarch_call_dummy_words,
2121 dbarch_sizeof_call_dummy_words, dbarch_call_dummy_stack_adjust,
2122 dbarch_call_dummy_stack_adjust_p): Define using new macros.
2124 1999-04-13 Jason Molenda (jsm@bugshack.cygnus.com)
2126 * rom68k-rom.c (init_rom68k_cmds): Fix an accidental substitution
2127 in monitor command strings, fix some formatting mistakes.
2129 1999-04-13 Stan Shebs <shebs@andros.cygnus.com>
2131 * configure.tgt (arm-*-*): Whack another vestige of wingdb.
2133 1999-04-12 James Ingham <jingham@cygnus.com>
2135 * arm-tdep.c (arm_pop_frame): don't clobber the previous frame's
2136 stack pointer (stored in frame->framereg's register) BEFORE
2137 reading it. This was causing "return" to behave very oddly.
2139 1999-04-12 Stan Shebs <shebs@andros.cygnus.com>
2141 * NEWS: Mention tic80.
2143 1999-04-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2145 * a68v-nat.c: Remove reference to 'extern char registers[]' throughout.
2146 * altos-xdep.c: Ditto.
2147 * arm-xdep.c: Ditto.
2148 * convex-xdep.c: Ditto.
2149 * cxux-nat.c: Ditto.
2150 * hp300ux-nat.c: Ditto.
2151 * hppab-nat.c: Ditto.
2152 * i386aix-nat.c: Ditto.
2153 * i386mach-nat.c: Ditto.
2154 * m88k-nat.c: Ditto.
2155 * ptx4-nat.c: Ditto.
2156 * pyr-xdep.c: Ditto.
2157 * rs6000-nat.c: Ditto.
2158 * sun3-nat.c: Ditto.
2159 * sun386-nat.c: Ditto.
2160 * symm-nat.c: Ditto.
2161 * umax-xdep.c: Ditto.
2162 * i386v4-nat.c: Ditto. Also include inferior.h.
2163 * m68k-tdep.c: Ditto. Also include inferior.h.
2165 Mon Apr 12 15:57:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
2167 * inferior.h (CALL_DUMMY_STACK_ADJUST, CALL_DUMMY_STACK_ADJUST_P):
2168 Provide default definitions.
2169 * valops.c (hand_function_call): Replace #ifdef
2170 CALL_DUMMY_STACK_ADJUST with if (CALL_DUMMY_STACK_ADJUST_P).
2172 * gdbarch.h (SIZEOF_CALL_DUMMY_STACK_ADJUST,
2173 (SIZEOF_CALL_DUMMY_STACK_ADJUST_P): Define
2174 * gdbarch.c (struct gdbarch): Add call_dummy_stack_adjust,
2175 call_dummy_stack_adjust_p.
2176 (gdbarch_call_dummy_stack_adjust,
2177 set_gdbarch_call_dummy_stack_adjust,
2178 gdbarch_call_dummy_stack_adjust_p,
2179 set_gdbarch_call_dummy_stack_adjust_p): New functions.
2180 (default_gdbarch): Update.
2182 1999-04-09 Jim Blandy <jimb@zwingli.cygnus.com>
2184 * ax-gdb.c, ax-gdb.h, ax-general.c, ax.h: Remove RCS Id strings.
2187 * GDB 4.18 released.
2188 * Makefile.in (VERSION): Bump to 4.18.1.
2190 Thu Apr 8 16:04:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
2192 * inferior.h (CALL_DUMMY_P, CALL_DUMMY_WORDS,
2193 SIZEOF_CALL_DUMMY_WORDS): Define macros.
2194 (PUSH_DUMMY_FRAME, FIX_CALL_DUMMY, STORE_STRUCT_RETURN): Provide
2197 * inferior.h, gdbarch.c (call_dummy_words,
2198 sizeof_call_dummy_words): Declare/Define variables.
2199 * valops.c (value_arg_coerce, find_function_addr,
2200 call_function_by_hand): Always define.
2201 (hand_function_call): Rename CALL_DUMMY version of
2202 call_function_by_hand. Make static. Add prototype.
2203 (hand_function_call): Update. Allocate space for *dummy and
2204 *dummy1 using alloca.
2205 * breakpoint.c (frame_in_dummy): Update.
2207 * gdbarch.h (CALL_DUMMY_P, CALL_DUMMY_WORDS,
2208 SIZEOF_CALL_DUMMY_WORDS): Define.
2209 * gdbarch.c (gdbarch_call_dummy_p, set_gdbarch_call_dummy_p,
2210 gdbarch_call_dummy_words, set_gdbarch_call_dummy_words,
2211 gdbarch_sizeof_call_dummy_words,
2212 set_gdbarch_sizeof_call_dummy_words): New functions.
2213 (gdbarch_alloc, verify_gdbarch, gdbarch_update, struct
2214 default_gdbarch): Update.
2216 1999-04-08 Jason Molenda (jsm@bugshack.cygnus.com)
2218 * monitor.c (monitor_read_memory): If a MO_GETMEM_NEEDS_RANGE
2219 monitor, increase the end address by one byte.
2221 1999-04-08 Jason Molenda (jsm@bugshack.cygnus.com)
2223 * dbug-rom.c (init_dbug_cmds): Fix strings in
2224 dbug_cmds.{step,clr_break,clr_all_break,fill} to send correct
2225 commands to the monitor.
2227 1999-04-08 Keith Seitz <keiths@cygnus.com>
2229 * m32r-stub.c (branchDestination): Undo overly ambitious
2230 sed script's conversion of cast from "char" to "unsigned char".
2231 Return offset should now be properly computed.
2233 Thu Apr 8 14:13:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
2235 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): New macro.
2236 Non-zero when CALL_DUMMY_BREAKPOINT_OFFSET is valid.
2238 * infcmd.c (breakpoint_auto_delete_contents): Always define.
2239 (run_stack_dummy): Update.
2240 * infrun.c (wait_for_inferior): Update
2242 * gdbarch.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): New macro.
2243 * gdbarch.c (set_gdbarch_call_dummy_breakpoint_offset_p,
2244 gdbarch_call_dummy_breakpoint_offset_p): New functions.
2245 (struct gdbarch, gdbarch_alloc, default_gdbarch, gdbarch_update):
2248 1999-04-07 Stan Shebs <shebs@andros.cygnus.com>
2250 * MAINTAINERS: Mark Alexander can no longer maintain
2251 h8300 and other embedded targets, sniff.
2253 1999-04-06 Stan Shebs <shebs@andros.cygnus.com>
2255 * inftarg.c (child_wait): Initialize execd_pathname.
2256 * target.c (debug_to_has_execd): Handle NULL execd_pathname.
2258 * solib.c (clear_solib): Don't call disable_breakpoints_in_shlibs,
2259 this breaks rerunning on sun4 native.
2261 1999-04-06 Jim Blandy <jimb@zwingli.cygnus.com>
2263 * config/sparc/nm-linux.h: Don't redefine PT_ATTACH to use the
2264 deprecated PTRACE_SUNATTACH compatibility commands. The
2265 definitions from <sys/ptrace.h> are fine.
2267 1999-04-06 Martin Hunt <hunt@cygnus.com>
2269 * annotate.h: Declare annotate_signal_hook.
2271 * annotate.c (annotate_signal): Add a call to
2272 annotate_signal_hook().
2274 1999-04-06 Jim Blandy <jimb@zwingli.cygnus.com>
2276 * dwarf2read.c (dwarf_decode_lines): Don't call record_line when
2277 we hit a DW_LNE_end_sequence instruction.
2279 * README: Note that GDB requires an ANSI C compiler, and explain
2284 1999-04-05 Stan Shebs <shebs@andros.cygnus.com>
2286 * NEWS: Add more notes about user-visible changes.
2288 Mon Apr 5 14:56:59 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
2290 * target.c (target_signal_to_string): check for signal
2291 number in range; otherwise if the target board returns
2292 a bogus signal number we might core dump (per David Taylor).
2294 1999-04-05 David Taylor <taylor@ryobi.cygnus.com>
2296 * utils.c (fputs_maybe_filtered): test value of
2297 pagination_enabled before paginating.
2299 1999-04-02 James Ingham <jingham@cygnus.com>
2301 * blockframe.c (get_prev_frame): Remove the redundant
2302 get_prev_frame_info. It is now exactly the same as
2303 get_prev_frame, so there is no reason to have both functions.
2305 * rs6000-tdep.c (rs6000_init_extra_frame_info):
2307 a29k-tdep.c (init_extra_frame_info):
2308 config/a29k/tm-a29k.h:
2310 Change all references to get_prev_frame_info to get_prev_frame.
2312 1999-04-02 Stan Shebs <shebs@andros.cygnus.com>
2314 * bcache.c, bcache.h, breakpoint.c, defs.h, expprint.c,
2315 expression.h, gdbarch.c, gdbtypes.c, gdbtypes.h, gnu-nat.c,
2316 gnu-nat.h, hppa-tdep.c, maint.c, monitor.c, objfiles.h, parse.c,
2317 remote-mips.c, remote-sds.c, remote.c, sol-thread.c, symmisc.c,
2318 symtab.h, target.c, top.c, typeprint.c, config/nm-gnu.h: Evaporate
2319 the unused MAINTENANCE_CMDS conditional.
2321 1999-04-02 James Ingham <jingham@cygnus.com>
2323 * config/arm/tm-arm.h: (EXTRACT_STRUCT_VALUE_ADDRESS): This needs
2324 to call extract_address, not just cast the first 4 bytes, since
2325 the result will be passed to value_at which expects host-byte
2328 * arm-tdep.c (arm_scan_prologue): The prologue_start address was
2329 directly &'ed with 0x03fffffc, rather than using
2330 ADDR_BITS_REMOVE. This would cause inferior function calls to
2331 report the stack incorrectly on return.
2334 1999-04-02 Keith Seitz <keiths@cygnus.com>
2336 * top.c (ui_loop_hook): Change declaration. Now returns an int.
2337 * win32-nat.c (child_wait): Timeout WaitForDebugEvent and call
2338 the ui_loop_hook if there was no debug event.
2339 * top.c (ui_loop_hook): Change to return an int and include
2340 on all non-Cygwin builds.
2341 * v850ice.c: Change prototype of ui_loop_hook.
2342 (v850ice_wait): Update call to ui_loop_hook.
2343 * ser-unix.c (hardwire_readchar): Enable ui_loop_hook callbacks
2344 for non-Cygwin builds. Check return status of ui_loop_hook and
2345 return a timeout if told to detach. Add more documentation.
2346 * ser-tcp.c (tcp_readchar): Break up timeouts into one second
2347 intervals and call ui_loop_hook so that other UIs can
2348 keep up to date. If ui_loop_hook returns non-zero, then
2349 return SERIAL_TIMEOUT to facilitate detaching from the
2351 * remote.c (remote_interrupted_already): Remove.
2352 (remote_interrupt_twice): Revive.
2353 (remote_interrupt): Call remote_stop to interrupt the target
2354 and install remote_interrupt_twice to take more severe
2355 actions if this fails.
2356 (remote_stop): Only attempt to stop the target. This separates
2357 the command line from other UIs.
2358 * remote-sim.c (gdb_os_poll_quit): Add a call to ui_loop_hook,
2361 1999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
2363 Fix for cross-debugging on an AIX host from Johanna Svenningsson:
2364 * ax-gdb.h (enum axs_lvalue_kind): Remove trailing comma from enum.
2365 * ax.h (enum agent_op): Same.
2366 * tracepoint.h (enum actionline_type): Same.
2367 * config/xm-aix4.h: Add declaration for termdef.
2369 1999-03-31 Stan Shebs <shebs@andros.cygnus.com>
2371 * jv-lang.h (dynamics_objfile): Remove decl, conflicts with static
2374 * infrun.c (follow_inferior_fork): Add ifdefs around
2375 SOLIB_REMOVE_INFERIOR_HOOK.
2377 Wed Mar 31 11:39:49 1999 David Taylor <taylor@ryobi.cygnus.com>
2379 * valops.c (search_struct_field): revert HP merge change
2380 to this function -- it causes messages to be printed about
2381 member class ambiguity when the compiler is happy.
2382 (search_struct_field_aux): delete -- added as part of HP merge
2383 change; with aforementioned change it is no longer called.
2385 1999-03-30 Stan Shebs <shebs@andros.cygnus.com>
2387 Make more HPUX-specific code generic.
2388 * infrun.c: Include top.h.
2389 (MAY_SWITCH_FROM_INFERIOR_PID, MAY_FOLLOW_EXEC,
2390 USE_THREAD_STEP_NEEDED): New native macros.
2391 (may_switch_from_inferior_pid, may_follow_exec,
2392 use_thread_step_needed): New globals.
2393 (follow_inferior_fork): Remove HPUXHPPA ifdef.
2394 (follow_exec): Ditto, also save run target and re-push instead of
2395 always pushing child_ops, add ifdefs around SOLIB_RESTART and
2396 SOLIB_CREATE_INFERIOR_HOOK.
2397 (wait_for_inferior): Use new globals instead of ifdefing HPUXHPPA,
2398 always use printf_filtered to report new threads.
2399 (normal_stop): Ditto.
2400 * target.h, target.c (find_run_target): New function.
2401 * config/pa/nm-hppah.h: Define new macros.
2403 1999-03-29 Stan Shebs <shebs@andros.cygnus.com>
2405 * top.h: Include setjmp.h here.
2406 * main.c, top.c: Don't include it here.
2408 1999-03-29 Keith Seitz <keiths@cygnus.com>
2410 * symtab.c (decode_line_1): Take out change which breaks symbols
2411 which include class names and methods, e.g., "Foo::bar".
2413 1999-03-26 Stan Shebs <shebs@andros.cygnus.com>
2415 * configure.tgt (i[3456]86-*-sysv4.2MP, i[3456]86-*-sysv4.2uw2*):
2416 Recognize both, as i[3456]86-*-sysv4.2*.
2417 (i[3456]86-*-sysv5*): Recognize.
2419 * infrun.c (wait_for_inferior): Remove most #if 0 segments.
2421 Fri Mar 26 17:27:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
2423 * blockframe.c (pc_in_call_dummy_on_stack): Fix. Had copied code
2424 from at_entry_point.
2426 Thu Mar 25 19:30:02 1999 Andrew Cagney <cagney@amy.cygnus.com>
2428 * gdbarch.c: Include all headers.
2429 (struct gdbarch), gdbarch.h (CALL_DUMMY_LOCATION,
2430 CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET,
2431 CALL_DUMMY_BREAKPOINT_OFFSET, CALL_DUMMY_LENGTH,
2432 PC_IN_CALL_DUMMY): Add ``call_dummy_location'',
2433 ``call_dummy_length'', ``pc_in_call_dummy'',
2434 ``call_dummy_start_offset'', ``call_dummy_breakpoint_offset'' to
2435 multi-arch framework.
2437 * inferior.h, blockframe.c (pc_in_call_dummy_before_text_end,
2438 pc_in_call_dummy_after_text_end, pc_in_call_dummy_on_stack,
2439 pc_in_call_dummy_at_entry_point): Convert PC_IN_CALL_DUMMY macro's
2442 Tue Mar 23 17:22:57 1999 Philippe De Muyter <phdm@macqel.be>
2444 * remote.c, parse.c: Include ctype.h.
2446 1999-03-24 Stan Shebs <shebs@andros.cygnus.com>
2448 * configure.host (mips-dec-mach3*): Use mipsm3 not mach3.
2450 Attempt to sort out SCO-related configs.
2451 * configure.host (i[3456]86-*-sysv4.2*): Use instead of
2452 i[3456]86-*-sysv4.2MP and i[3456]86-*-sysv4.2uw2*.
2453 (i[3456]86-*-sysv5*): Recognize.
2454 * configure.tgt (i[3456]86-*-sco3.2v5*, i[3456]86-*-sco3.2v4*):
2457 Wed Mar 24 16:19:01 1999 Christopher Faylor <cgf@cygnus.com>
2459 * MAINTAINERS: Add DJ Delorie (dj@cygnus.com) as the djgpp
2462 Wed Mar 24 21:19:57 1999 Andrew Cagney <cagney@amy.cygnus.com>
2464 * target.h (enum target_signal): Do not hardwire values of MACH
2467 1999-03-14 Ken Raeburn <raeburn@raeburn.org>
2469 * target.h (enum target_signal): Add TARGET_SIGNAL_INFO.
2470 * target.c (signals): Add SIGINFO description.
2471 (target_signal_from_host, target_signal_to_host): Translate
2472 SIGINFO to/from TARGET_SIGNAL_INFO.
2474 Wed Mar 24 01:01:27 1999 Andrew Cagney <cagney@sludge.cygnus.com>
2476 * rs6000-tdep.c (rs6000_software_single_step): Change SIGNAL to
2479 From Rodney Brown <rodneybrown@pmsc.com>
2480 * target.h (enum thread_control_capabilities), breakpoint.h (enum
2481 bptype), breakpoint.c (enum insertion_state_t): Strict ISO-C
2482 doesn't allow trailing comma in enum definition.
2484 Mon Mar 22 15:56:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
2486 * blockframe.c (inside_entry_file, inside_entry_func): Convert #if
2487 CALL_DUMMY_LOCATION to if.
2488 * valops.c (call_function_by_hand): Ditto.
2489 * infcmd.c (run_stack_dummy): Ditto.
2490 * inferior.h (CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET,
2491 CALL_DUMMY_BREAKPOINT_OFFSET): Provide default.
2493 1999-03-23 Jason Molenda (jsm@bugshack.cygnus.com)
2495 * hppa-tdep.c (pa_register_look_aside): Remove CPU_HPPA_RISC_20
2496 check, test for presence of struct save_state_t and the ss_wide
2498 * configure.in: Remove CPU_HPPA_RISC_20 test. Add tests for
2499 HAVE_STRUCT_SAVE_STATE_T and HAVE_STRUCT_MEMBER_SS_WIDE.
2500 * acconfig.h: Add HAVE_STRUCT_SAVE_STATE_T HAVE_STRUCT_MEMBER_SS_WIDE.
2501 * configure, config.in: Regenerated.
2503 Mon Mar 22 13:25:13 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
2505 * infttrace.c (proc_wait): rename to ptrace_wait.
2507 1999-03-18 Jim Blandy <jimb@zwingli.cygnus.com>
2509 * dwarf2read.c: Correctly recognize location expressions that
2510 designate LOC_REF_ARG arguments. Doc fixes.
2511 (isderef): New global. (Yuck.)
2512 (dwarf2_complex_location_expr): New complaint.
2513 (read_func_scope): Reject frame_base attributes that use the
2514 `deref' opcode as too complex.
2515 (new_symbol): If both regoff and isderef are set, and the base
2516 register is the frame pointer, then it's a LOC_REF_ARG argument.
2517 (decode_locdesc): Recognize the `deref' opcode in location
2518 expressions. Complain if it's not the last op in the expression.
2520 * config/fr30/tm-fr30.h (COERCE_FLOAT_TO_DOUBLE): #define this to
2521 be true, or else value_arg_coere won't respect the (accurate)
2522 information we have about whether a function is prototyped.
2524 1999-03-17 Jim Blandy <jimb@zwingli.cygnus.com>
2526 * config/fr30/tm-fr30.h (STACK_ALIGN): Define this here, so
2527 calling functions by hand with odd-sized arguments doesn't munge
2530 1999-03-17 Jason Molenda (jsm@bugshack.cygnus.com)
2532 * configure.in (HAVE_MULTIPLE_PROC_FDS): Don't define for Solaris
2533 hosts--gdb doesn't support this yet.
2534 * configure: Regenerated.
2536 1999-03-16 Keith Seitz <keiths@cygnus.com>
2538 * remote.c (remote_binary_checked): New file global.
2539 (check_binary_download): New function to check if
2540 stub supports binary downloading that works with
2541 stubs that are not eight bit clean.
2542 (remote_write_bytes): Check for binary download capability
2543 and use it if available.
2544 Remove references to global remote_binary_length. What a hack.
2545 (putpkt_binary): New function.
2546 (putpkt): Call putpkt_binary.
2547 Use xor to escape trouble characters.
2548 * m32r-stub.c (bin2mem): Follow escape char convention change.
2550 Tue Mar 16 01:11:33 1999 Andrew Cagney <cagney@rhino.cygnus.com>
2552 * target.h (struct target_ops), target.c (debug_to_query),
2553 remote.c (pack_hex_byte, remote_query): Promote char parameters to
2554 int. Stops compile problems with pedantic ISO-C compilers.
2556 Tue Mar 16 15:29:04 1999 Stan Shebs <shebs@andros.cygnus.com>
2558 * go32-xdep.c: Remove, no longer used by anything.
2559 * Makefile.in: Remove references.
2561 * jv-lang.c, jv-lang.h (java_primitive_type): Declare argument
2562 as int instead of char.
2564 Mon Mar 15 11:42:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
2566 * d10v-tdep.c (push_stack_item, pop_stack_item): New function.
2567 (d10v_push_arguments): Use.
2569 From Martin M. Hunt <hunt@cygnus.com>:
2570 * d10v-tdep.c (d10v_push_arguments): When arguments
2571 must be pushed onto the stack, they go on in
2574 1999-03-16 Jim Blandy <jimb@zwingli.cygnus.com>
2576 * symtab.c (make_symbol_overload_list): Don't try to stuff minimal
2577 or partial symbols into the overload list; we don't know their
2578 types. (Thanks to Rajiv Mirani.)
2580 1999-03-15 Jason Molenda (jsm@bugshack.cygnus.com)
2582 * acinclude.m4 (--with-itclconfig, --with-itkconfig, --with-tixconfig):
2583 Fix whitespace so --help messages line up.
2584 * configure.in (--with-cpu): Fix capitalization for --help messages.
2585 * configure, aclocal.m4: Regenerated.
2587 Mon Mar 15 11:39:03 1999 Ian Carmichael <iancarm@cygnus.com>
2589 Support building gdb w/o simulator:
2590 * configure.in: Support --disable-sim. Check for sim directory.
2591 * Makefile.in (IGNORE_SIM, IGNORE_SIM_OBS): New.
2592 * acconfig.h (WITH_SIM): Define.
2593 * configure, config.in: Regenerate.
2595 Mon Mar 15 08:01:33 1999 Elena Zannoni <ezannoni@cygnus.com>
2597 Patch from Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2599 * top.c (read_command_lines): Reset control_level to 0.
2600 (define_command): Don't do it here.
2602 Sun Mar 14 16:12:15 1999 Andrew Cagney <cagney@rhino.cygnus.com>
2604 * hppah-nat.c (store_inferior_registers): Delete extern
2605 registers[] declaration.
2607 Sun Mar 14 19:17:30 1999 Andrew Cagney <cagney@b1.cygnus.com>
2609 * infrun.c (write_inferior_status_register): New function. Provide
2610 update access to an inf_status register buffer. Only used by HP.
2611 * inferior.h (write_inferior_status_register): Add prototype.
2613 * hppa-tdep.c (push_dummy_frame): Use
2614 write_inferior_status_register when hacking around a sleeping
2615 inferior. Accidently fix byte-order problem.
2617 Sun Mar 14 16:40:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
2619 * config/pa/tm-hppa.h (PUSH_DUMMY_FRAME): Fix parameter. Address
2622 Fri Mar 12 13:11:48 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
2624 * remote.c (remote_write_bytes): fix 'X' packet protocol so that it
2625 can't overwrite the end of its buffer with escaped characters.
2627 1999-03-12 Jim Blandy <jimb@zwingli.cygnus.com>
2629 Alpha patches from Richard Henderson:
2631 * alpha-tdep.c (alpha_skip_prologue): Recognize subq.
2633 * config/alpha/tm-alpha.h (REGISTER_NAMES): No f31, but fpcr.
2635 (REGISTER_CONVERTIBLE): Don't convert fpcr.
2636 (REGISTER_VIRTUAL_TYPE): Don't make fpcr a double.
2638 * stabsread.c (define_symbol): Only consider live range extension
2639 if we have an open parenthesis.
2641 1999-03-11 Jim Blandy <jimb@zwingli.cygnus.com>
2643 * monitor.c (monitor_fetch_register): Print RDEBUG info correctly
2644 when the register name is null.
2646 Thu Mar 11 19:33:07 1999 Stan Shebs <shebs@andros.cygnus.com>
2648 * infrun.c (wait_for_inferior): Change #if DECR_PC_AFTER_BREAK
2649 uses to expressions, remove redundant extern decls.
2651 Thu Mar 11 18:05:11 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
2653 * infptrace.c (proc_wait): Rename to ptrace_wait.
2654 * inftarg.c (child_wait): call ptrace_wait instead of proc_wait.
2655 * inferior.h: Declare ptrace_wait instead of proc_wait.
2657 Thu Mar 11 11:46:25 1999 Andrew Cagney <cagney@amy.cygnus.com>
2659 * breakpoint.c (create_solib_load_unload_event_breakpoint,
2660 create_fork_vfork_event_catchpoint, tcatch_command,
2661 create_exception_catchpoint, break_at_finish_at_depth_command_1,
2662 catch_fork_command_1, ep_skip_leading_whitespace,
2663 break_at_finish_command_1, catch_exec_command_1,
2664 catch_exception_command_1, stop_command, stopin_command,
2665 stopat_command, ep_parse_optional_filename,
2666 ep_find_event_name_end, ep_parse_optional_if_clause,
2667 catch_fork_command_1), stack.c (show_and_print_stack_frame_stub,
2668 print_stack_frame_stub, print_only_stack_frame_stub,
2669 backtrace_command_1, backtrace_full_command, func_command),
2670 valprint.c (print_decimal), source.c (print_source_lines_base):
2673 * stack.c (print_stack_frame_stub, show_and_print_stack_frame_stub,
2674 print_only_stack_frame_stub): Make param void*.
2676 Wed Mar 10 19:33:28 1999 Geoffrey Noer <noer@cygnus.com>
2678 * win32-nat.c: If old Cygwin Win32 API headers aren't being used,
2679 define some gdb-specific defines that shouldn't have been in the
2682 Wed Mar 10 21:20:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
2684 * findvar.c (registers, register_valid): Replace array with pointer.
2685 (build_findvar): New function. Allocate space for REGISTERS and
2687 (_initialize_findvar): Call build_findvar.
2688 (_initialize_findvar): Register REGISTERS and REGISTER_VALID as
2691 * inferior.h (registers, register_valid): Replace array with
2694 * inferior.h (struct inferior_status): Move definition from here.
2696 * infrun.c (struct inferior_status): To here.
2697 (struct inferior_status): Change ``stop_registers'' and
2698 ``registers'' to pointers.
2699 (xmalloc_inferior_status, free_inferior_status): New functions.
2700 (restore_inferior_status): Call free_inferior_status.
2701 (save_inferior_status): Call xmalloc_inferior_status.
2702 (discard_inferior_status): New function, discard inf_status
2703 buffer. Call free_inferior_status.
2705 * inferior.h (stop_registers): Replace array with pointer.
2706 * infrun.c (stop_registers): Update.
2707 (build_infrun): Initialize stop_registers.
2708 (_initialize_infrun): Call build_infrun.
2709 (_initialize_infrun): Register ``stop_registers'' as arch dependant.
2711 Wed Mar 10 14:50:42 1999 Andrew Cagney <cagney@amy.cygnus.com>
2713 * alpha-tdep.c (alpha_linux_sigtramp_offset): Only compile when
2714 LINUXALPHA target. Hack.
2716 * infrun.c (set_follow_fork_mode_command): Make static. Add
2718 * tracepoint.c (add_register): Ditto.
2719 * valprint.c (strcat_longest): Comment out. Does not appear to be
2721 * valops.c (find_method_list): Make static. Add prototype.
2722 * thread.c (target_find_new_threads): Make static. Add prototype.
2723 * stack.c (stack_publish_stopped_with_no_frame,
2724 select_and_maybe_print_frame): Comment out. Does not appear to be
2726 (current_frame_command): Add prototype.
2727 * breakpoint.c (break_at_finish_command,
2728 break_at_finish_at_depth_command, tbreak_at_finish_command): Make
2729 static. Add prototype.
2730 * findvar.c (read_relative_register_raw_bytes_for_frame): Ditto.
2732 Wed Mar 10 23:38:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
2734 * corefile.c (registers): Delete redundant variable declaration.
2735 * inferior.h (run_stack_dummy): Change array argument to pointer.
2736 * infcmd.c (run_stack_dummy): Update.
2737 * value.h (value_being_returned): Change RETBUF to a pointer.
2738 * values.c (value_being_returned): Update.
2740 Wed Mar 10 11:08:16 1999 Andrew Cagney <cagney@amy.cygnus.com>
2742 * source.c (list_command): GCC suggested explicit braces to avoid
2745 * jv-typeprint.c: Include "c-lang.h".
2746 * Makefile.in (jv-typeprint.o): Add dependency.
2747 * jv-valprint.c: Include "gdbcore.h", "annotate.h".
2748 * Makefile.in (jv-valprint.o): Add dependencies.
2749 * objfiles.c: Include "breakpoint.h".
2750 * Makefile.in (objfiles.o): Add dependency.
2751 * main.c: Include <unistd.h>.
2752 * parse.c: Include <ctype.h>.
2753 * remote.c: Include <ctype.h>.
2754 * ser-tcp.c: Include <unistd.h>.
2755 * ax-general.c: Include "value.h".
2756 * Makefile.in (ax-general.o): Add dependency.
2758 * alpha-tdep.c (alpha_push_arguments): Make ``i'' an int instead
2760 * frame.h (show_and_print_stack_frame): Add function prototype.
2761 * language.h (language_enum): Add function prototype.
2762 * value.h (find_overload_match): Add function prototype.
2764 * defs.h, utils.c (subset_compare): Rename subsetCompare. Add
2766 * stack.c (backtrace_command): Update.
2768 Wed Mar 10 13:58:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
2770 * configure.in (AC_CHECK_HEADERS): Check for <sys/select.h>
2771 * configure, config.in: Re-generate.
2772 * inflow.c: Conditionally include <sys/select.h>.
2774 Wed Mar 10 13:44:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
2776 * frame.h (struct dummy_frame): Move from here.
2777 * blockframe.c (struct dummy_frame): To here.
2779 * blockframe.c (struct dummy_frame): Replace ``regs'' with pointer
2781 (generic_pop_dummy_frame): Free it.
2782 (generic_push_dummy_frame): Allocate dummy frame register buffer.
2784 Wed Mar 10 11:08:16 1999 Andrew Cagney <cagney@amy.cygnus.com>
2786 * thread.c (_initialize_thread): Delete redundant ``extern struct
2787 cmd_list_element *cmdlist''.
2788 * printcmd.c (print_command_1): Ditto for ``objectprint'';
2790 1999-03-09 Stan Shebs <shebs@andros.cygnus.com>
2792 * MAINTAINERS: New file, list of maintainers and areas they
2795 1999-03-09 Rodney Brown <RodneyBrown@pmsc.com>
2797 Get working on UnixWare 2.1.1.
2798 * acconfig.h: Update for defines for procfs.c.
2799 * configure.in: Identify defines for procfs.c.
2800 * configure.host: i386-*-sysv4.2uw2* => i386v42mp
2801 * configure.tgt: i386-*-sysv4.2uw2* => i386v42mp
2802 * configure, config.in: Regenerate.
2803 * procfs.c: Rename HAVE_NO_PRRUN_T to HAVE_PRRUN_T (autoconf
2804 standard), wrap UNIXWARE difference in THE_PR_LWP macro for
2806 * config/i386/tm-i386v42mp.h: Remove HAVE_PSTATUS_T,
2807 HAVE_NO_PRRUN_T; now set by configure.
2809 Tue Mar 9 16:29:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
2811 * i386-tdep.c (gdb_print_insn_i386): Abort when disassembly_flavor
2814 * fr30-tdep.c (_initialize_fr30_tdep): Add prototype. Fix
2817 * target.c (debug_to_enable_exception_callback,
2818 debug_to_get_current_exception_event): Return result of call to
2821 1999-03-09 Jim Blandy <jimb@zwingli.cygnus.com>
2823 Another HURD fix from Mark Kettenis:
2824 * gnu-nat.c: Include <string.h>. Remove declaration of strerror.
2825 Include <bits/waitflags.h> instead of <waitflags.h> and define
2826 _SYS_WAIT_H to prevent the warning that we should not include it.
2827 (gnu_create_inferior): Change return type of attach_to_child to
2828 void. Do not return INFERIOR_PID.
2829 (gnu_pid_to_exec_file): Change return type to char *.
2832 Fix for the HURD from Mark Kettenis:
2833 * configure.in: Add AC_PROG_AWK. Needed by the machine-dependent
2834 makefile fragments for the Hurd.
2835 * Makefile.in (AWK): Add. Set by configure.
2836 * configure: Regenerated.
2838 1999-03-08 Jason Molenda (jsm@bugshack.cygnus.com)
2840 * infttrace.c (hppa_get_process_events): Removed. Function only
2841 usable on HPUX 10 and above. It is not called by any other part
2843 * hppah-nat.c (hppa_get_process_events): Ditto.
2844 (child_pid_to_exec_file): Only call ptrace with
2845 PT_GET_PROCESS_PATHNAME if that symbol has been defined.
2846 * config/pa/nm-hppah.h: Don't set up prototypes et al for
2847 hppa_get_process_events.
2849 * config/pa/hppahpux.mh (TERM_LIB): Do not initialize, let autoconf
2850 determine best library automatically.
2851 * config/pa/hpux1020.mh: Ditto.
2852 * config/pa/hpux1100.mh: Ditto.
2853 * configure.in (TERM_LIB): Also check for libHcurses.
2854 * configure: Regenerated.
2856 Thu Mar 4 17:16:04 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
2858 * m32r-stub.c: add support for crc "Compare" command.
2860 1999-03-04 Jim Blandy <jimb@zwingli.cygnus.com>
2862 * fr30-tdep.c (fr30_store_return_value): Allocate zeroes
2863 dynamically, to save BSS space, and to remove assumptions about
2864 the size of the largest value we'll return.
2866 * config/fr30/tm-fr30.h (fr30_store_return_value): Use PARAMS in
2869 Thu Mar 4 08:37:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
2871 * sh3-rom.c (sh3_supply_register, sh3_supply_register),
2872 mips-tdep.c (mips_push_arguments), m32r-rom.c
2873 (m32r_upload_command), m32r-tdep.c (decode_prologue), monitor.c
2874 (longlong_hexchars), tracepoint.c (validate_actionline,
2875 read_actions), mdebugread.c
2876 (parse_symbol), jv-typeprint.c
2877 (java_type_print_base, java_type_print_base), mdebugread.c
2878 (parse_symbol), top.c (source_command), utils.c
2879 (floatformat_to_doublest): GCC suggest explicit braces to avoid
2882 * tracepoint.c (map_args_over_tracepoints, trace_actions_command),
2883 m32r-rom.c (m32r_supply_register), win32-nat.c
2884 (handle_output_debug_string, child_continue), i960-tdep.c
2885 (pop_frame), m32r-rom.c (m32r_upload_command): GCC suggested
2886 parentheses around assignment used as truth value.
2888 * remote-sds.c (sds_wait), monitor.c (monitor_fetch_register),
2889 ser-e7kpc.c, (dosasync_write), arc-tdep.c (arc_get_frame_setup):
2890 GCC suggested parentheses around operands.
2892 * c-typeprint.c (c_type_print_base): GCC suggested enclosing
2893 "while" expression in paren.
2895 Wed Mar 3 18:14:33 1999 Andrew Cagney <cagney@chook.cygnus.com>
2897 * sol-thread.c (save_inferior_pid): Cast the saved pid to void*.
2898 (restore_inferior_pid): Takes void* as required by make_cleanup.
2899 Casts pid back to an int.
2901 * procfs.c (make_cleanup_close_proc_file,
2902 close_proc_file_cleanup): Create a proc_file cleanup.
2905 * defs.h (make_cleanup_freeargv): Helper function. Establish
2906 cleanup using freeargv. Can not just typecast/pass freeargv as it
2908 * utils.c (do_freeargv): Helper.
2909 (make_cleanup_freeargv): New function.
2911 * symmisc.c (maintenance_print_symbols,
2912 maintenance_print_psymbols, maintenance_print_msymbols), symfile.c
2913 (symbol_file_command), stack.c (backtrace_command), remote-sim.c
2914 (gdbsim_create_inferior, gdbsim_open), remote-mips.c
2915 (common_open), procfs.c (info_proc), infrun.c (handle_command,
2916 xdb_handle_command), exec.c (exec_file_attach): Call
2917 make_cleanup_freeargv.
2919 1999-03-03 James Ingham <jingham@cygnus.com>
2921 * i386-tdep.c (_initialize_i386_tdep): Set the inital value for
2922 disassembly flavor at startup, rather than hardcoding it.
2924 1999-03-03 Jim Blandy <jimb@zwingli.cygnus.com>
2926 Put return values in the right place.
2927 * fr30-tdep.c (fr30_store_return_value): New function.
2928 * config/fr30/tm-fr30.h (STORE_RETURN_VALUE): Call
2929 fr30_store_return_value.
2931 Wed Mar 3 18:10:55 1999 Andrew Cagney <cagney@chook.cygnus.com>
2933 * gdbtypes.c (virtual_base_list_aux): Return void. Add prototype.
2935 * breakpoint.c (map_catch_names): Comment out unused function.
2937 1999-03-02 Jason Molenda (jsm@bugshack.cygnus.com)
2939 * hppa-tdep.c (pa_register_look_aside): Only refer to save_state_t
2940 structure on PA 2.0 systems.
2942 1999-03-02 Stan Shebs <shebs@andros.cygnus.com>
2944 From Gary Thomas <gthomas@cygnus.co.uk>:
2945 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT,
2946 THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Use illegal instruction
2948 * config/arm/tm-arm.h (CALL_DUMMY): Ditto.
2949 (IN_SIGTRAMP): Define.
2951 1999-03-02 Nick Clifton <nickc@cygnus.com>
2953 * findvar.c (store_address): Delete incorrect big endian
2956 Tue Mar 2 18:02:42 1999 Andrew Cagney <cagney@chook>
2958 * configure.in (gdb_cv_os_cygwin): Compat. Continue to reconize
2961 1999-03-01 Jason Molenda (jsm@bugshack.cygnus.com)
2963 * configure.in: Move setting of gdb_cv_os_cygwin to before
2964 setting of TERM_LIB. Check for __CYGWIN__ instead of __CYGWIN32__.
2965 * configure: Regenerated.
2967 1999-03-01 DJ Delorie <dj@cygnus.com>
2969 * configure.in: Change -cygwin32* to -cygwin*.
2972 1999-02-25 Stan Shebs <shebs@andros.cygnus.com>
2974 * breakpoint.c (SOLIB_LOADED_LIBRARY_PATHNAME,
2975 SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_CREATE_CATCH_LOAD_HOOK,
2976 SOLIB_CREATE_CATCH_UNLOAD_HOOK): Supply default definitions.
2977 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Ditto.
2979 1999-02-25 Keith Seitz <keiths@cygnus.com>
2981 * corelow.c (core_close): Clear out solib state before
2982 closing the bfd associated with the core file.
2983 * solib.c (clear_solib): Mention that clear_solib requires
2984 an open BFD in order for disable_breakpoints_in_shlibs to
2985 determine whether breakpoints live in shared libraries.
2987 1999-02-24 Jason Molenda (jsm@bugshack.cygnus.com)
2989 * configure.in: Set CPU_HPPA_RISC_20 if the host CPU is a PA 2.0
2991 * acconfig.h: Add CPU_HPPA_RISC_20
2992 * config.in, configure: Regenerated.
2993 * hppa-tdep.c (pa_register_look_aside): Only refer to new
2994 structure elements if we are on a PA2.0 system.
2995 * defs.h: Include limits.h.
2997 Tue Feb 23 14:37:08 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
2999 * infrun.c (wait_for_inferior): Check scheduler_locking state
3000 before resuming after a thread-specific breakpoint.
3002 1999-02-23 Jim Blandy <jimb@zwingli.cygnus.com>
3004 * aclocal.m4, config.in, configure: Regenerated with latest
3007 Mon Feb 22 12:32:19 1999 Per Bothner <bothner@cygnus.com>
3009 * jv-valprint.c (java_val_print): Restore line that somehow got lost.
3011 * jv-valprint.c (java_print_value_fields): Check for NULL type.
3013 1999-02-21 Jim Blandy <jimb@zwingli.cygnus.com>
3015 * tm-h8500.h, i386lynx-nat.c: Removed. These files are long
3016 dead; it seems that they only appeared due to some CVS weirdness.
3017 If they appear again, we may need to distribute garlic and holy
3020 1999-02-19 Jason Molenda (jsm@bugshack.cygnus.com)
3022 * configure.in (TERM_LIB): Move checking for TERM_LIB, substituting.
3023 * configure: Regenerated.
3025 1999-02-19 Robert Hoehne (robert.hoehne@gmx.net)
3027 * configure.host (i[3456]86-*-msdosdjgpp*): New host.
3028 * configure.tgt (i[3456]86-*-msdosdjgpp*): New target.
3029 * go32-nat.c: New file, native DJGPP support.
3030 * config/i386/go32.mh: Rewrite for DJGPP (go32) host.
3031 * config/i386/go32.mt: New file, DJGPP (go32) target.
3032 * config/i386/nm-go32.h: New file.
3033 * config/i386/tm-go32.h: New file.
3034 * config/i386/xm-go32.h: Rewritten for current DJGPP.
3036 1999-02-18 Jason Molenda (jsm@bugshack.cygnus.com)
3038 * reply_mig_hack.awk, config/nm-gnu.h, config/alpha/nm-linux.h
3039 config/alpha/xm-alphalinux.h, config/alpha/xm-alphaosf.h
3040 config/i386/nm-i386sco5.h, config/i386/tm-fbsd.h, config/i386/tm-i386.h
3041 config/powerpc/nm-aix.h, config/powerpc/tm-macos.h
3042 config/powerpc/tm-ppc-aix.h, config/powerpc/xm-aix.h
3043 config/rs6000/tm-rs6000-aix4.h, testsuite/gdb.chill/tests1.ch
3044 testsuite/gdb.chill/tests2.ch, testsuite/gdb.chill/tests2.exp:
3045 Update FSF address in copyright notices.
3047 1999-02-18 Jason Molenda (jsm@bugshack.cygnus.com)
3049 * configure.in: Quote "$GCC" correctly.
3050 * configure: Regenerated.
3052 1999-02-18 Jim Blandy <jimb@zwingli.cygnus.com>
3054 * dbxread.c (elfstab_build_psymtabs): Don't assume that there's a
3055 section named ".text", which has all the code in it. Instead, look
3056 at all the sections in the file with the `code' flag set.
3057 (find_text_range): New function, that does all the work.
3059 Thu Feb 18 17:50:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
3061 * mips-tdep.c (FP_REGISTER_DOUBLE): Conditionally define.
3063 Fri Jan 29 16:51:11 1999 Andrew Cagney <cagney@chook.cygnus.com>
3065 * mips-tdep.c (return_value_location): New function. Merge/rewrite
3066 of return-value code in mips_extract_return_value,
3067 mips_store_return_value. Stop buffer overflow when 64 bit value
3068 in 32 bit registers. Extract 64bit float from 32 bit register
3069 pair of correct order.
3070 (mips_extract_return_value, mips_store_return_value): Call
3071 return_value_location. For store, ensure that remainder of
3074 Wed Feb 17 10:10:27 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
3076 * gdbtypes.h (get_discrete_bounds): Remove duplicate decl.
3078 * jv-typeprint.c (java_type_print_base): Change fputs => fputs_filtered.
3080 Mon Jan 25 18:30:57 1999 Per Bothner <bothner@cygnus.com>
3082 * jv-lang.h (JAVA_OBJECT_SIZE): Change from hard-wired constant.
3083 (java_primitive_type_from_name, get_java_object_header_size): Declare.
3084 * jv-lang.c (java_class_from_object): Use get_java_object_type.
3085 * jv-lang.c: Update Class field names: dtable->vtable,
3086 msize->method_count, nfields->field_count, bfsize->size_in_bytes,
3087 nmethods->method_count.
3088 (type_from_class): Demangle array type names.
3089 (java_link_class_type): Array type names are now demangled.
3090 (get_java_object_type): If not defined yet, try looking it up.
3091 (get_java_object_header_size): New function.
3092 (java_primitive_type_from_name): New function.
3093 (java_demangled_signature_length, java_demangled_signature_copy): New.
3094 (java_demangle_type_signature): Re-implement using above functions.
3095 (evaluate_subexp_java): For UNOP_IND, call evaluate_subexp_java
3096 to evaluate subexp (not evaluate_subexp_standard).
3097 For BINOP_SUBSCRIPT update for new array type naming scheme.
3098 * jv-valprint.c (java_value_print): Use java_class_from_object.
3099 Update array printing to new array type naming convention.
3100 (java_val_print): Doing check_typedef when printing a pointer is
3101 is a waste of effort. Also, handle TYPE_CODE_INT, to make sure
3102 Java bytes as not printed as C chars.
3104 Fri Jan 8 16:58:22 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
3106 * blockframe.c (find_pc_sect_partial_function): Search full symtabs as
3107 a last ditch effort (after the partial & minimal symtabs).
3108 * defs.h utils.c: Fixup prototypes for vprintf_filtered,
3109 vfprintf_filtered, vfprintf_unfiltered and vprintf_unfiltered to return
3110 ints to match their standard equivalents.
3111 * defs.h symtab.c top.c: Create skip_prologue_hook to allow Java to
3112 control the prologue skipping process.
3113 * jv-typeprint.c (java_type_print_base): Remove extern for
3114 jv_class_demangle, add new arg for objfile (NULL).
3115 * symtab.h: Remove struct sourcevector and struct source. Definately
3117 * values.c (value_virtual_fn_field): Fixes code to handle new vtable
3118 debug info format. Patch from marka.
3120 Wed Dec 16 23:11:25 1998 Stu Grossman <grossman@fencer.cygnus.com>
3122 * jv-lang.c (java_class_from_object java_class_is_primitive
3123 is_object_type): Change dtable to vtable.
3124 * (java_primitive_type): Change arg to type char.
3125 * (_initialize_java_language): Make java_char_type be unsigned.
3126 * jv-lang.h: Fixup prototypes.
3128 Mon Dec 7 19:02:15 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
3130 * jv-valprint.c (java_value_print): Fix printing of values where
3131 run time type != compile time type.
3133 Fri Dec 4 15:23:38 1998 Stu Grossman <grossman@fencer.cygnus.com>
3135 * Makefile.in: Whack out m2-typeprint.c.
3136 * c-typeprint.c (c_type_print_varspec_suffix) typeprint.h: Make this
3137 global. It's needed by Java.
3138 * (c_type_print_base): Whack prefix off of qualified method names
3139 (names with name spaces).
3140 * gdbtypes.h (struct cplus_struct_type): Add bits for Java attributes.
3142 to 16 bits to compensate for added bits above (hopefully this is still
3144 * Add new accessor macros (TYPE_FND_FIELD_PUBLIC, ...) for all new
3146 * jv-typeprint.c (java_type_print_base): Fix printing of method
3147 attributes. Handle JVM style manglings.
3148 * (java_print_type): Enable code type print varspec_suffix to allow
3149 array indices to print out.
3150 * jv-valprint.c (java_val_print): Minor formatting.
3151 * m2-lang.c (m2_language_d): Change m2_print_type to c_print_type.
3152 * stabsread.c (read_member_functions): Save public and static attributes.
3154 Wed Feb 17 15:32:57 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3156 * breakpoint.c (watch_command_1): Reformat comment.
3158 * c-typeprint.c (c_type_print_base): Reformat comments.
3160 1999-02-17 Jim Blandy <jimb@zwingli.cygnus.com>
3162 * Makefile.in (VERSION): Bump version to 4.17.2.
3164 Tue Feb 16 15:48:20 1999 Edith Epstein <eepstein@sophia.cygnus.com>
3166 * config/pa/nm-hppah.h: Added prototype declarations for
3167 hppa_enable_page_protection_events and
3168 hppa_disable_page_protection_events.
3170 * inftarg.c (child_wait): Fixed code that checks whether
3171 or not the target program has done a fork/vfork.
3172 related_pid does not have a value unless the target
3173 program has forked/vforked.
3175 * infttrace.c (hppa_insert_hw_watchpoint): Make sure that
3176 function always returns a value.
3177 (hppa_remove_hw_watchpoint): Make sure that function always
3180 Tue Feb 16 06:31:58 1999 Keith Seitz <keiths@cygnus.com>
3182 * config/powerpc/tm-ppc-eabi.h: Do not define PC_IN_CALL_DUMMY,
3183 let the generic call dummy infrastructure do it.
3185 Sun Feb 14 18:21:08 1999 Mark Alexander <marka@cygnus.com>
3187 * config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
3188 coffread.c will correctly handle char or short function parameters.
3190 1999-02-11 Jason Molenda (jsm@bugshack.cygnus.com)
3192 * configure, aclocal.m4: Regenerate with correct version of aclocal.
3194 1999-02-10 Syd Polk <spolk@cygnus.com>
3196 * acinclude.m4: Fix for new location of itclConfig.sh and itkConfig.sh.
3197 * aclocal.m4: Regnerate.
3198 * configure: Regenerate.
3200 1999-02-10 Jason Molenda (jsm@bugshack.cygnus.com)
3202 * demangle.c: Fix comments to mention "set demangle-style"
3203 instead of "set demangle".
3204 Run through indent to fix minor indenting problems.
3206 Wed Feb 10 17:53:09 1999 Bob Manson <manson@charmed.cygnus.com>
3208 * i386-tdep.c (gdb_print_insn_i386): Add missing returns.
3210 Wed Feb 10 13:17:21 1999 Stan Shebs <shebs@andros.cygnus.com>
3212 Declare Gould configuration obsolete:
3213 * configure.host, configure.tgt: Comment out Gould configs.
3214 * Makefile.in: Comment out Gould-related actions.
3215 * gould-xdep.c, gould-tdep.c, config/gould/*: Comment out.
3216 * NEWS: Mention obsolete status.
3218 1999-02-09 DJ Delorie <dj@cygnus.com>
3220 * sparcl-tdep.c: UDP download works in cygwin
3222 1999-02-08 Jason Molenda (jsm@bugshack.cygnus.com)
3224 * gnu-regex.c: Check ENABLE_NLS instead of HAVE_LIBINTL_H.
3225 * configure.in: Don't check for libintl.h.
3226 * configure, config.in: Regenerated.
3228 Mon Feb 8 18:10:50 1999 Stan Shebs <shebs@andros.cygnus.com>
3230 * NEWS: Mention new X packet and PowerPC variant support.
3232 1999-02-08 Nick Clifton <nickc@cygnus.com>
3234 * configure.host: Add support for StrongARM host.
3235 * configure.tgt: Add support for StrongARM target.
3237 Mon Feb 8 12:05:05 1999 David Taylor <taylor@texas.cygnus.com>
3239 * dsrec.c (make_srec): Cast targ_addr to int in call to sprintf
3240 otherwise on big endian machine with a bfd_vma of 64 bits,
3241 *everything* gets loaded at location 0.
3243 Mon Feb 7 10:05:43 1999 Frank Ch. Eigler <fche@cygnus.com>
3245 * infrun.c (wait_for_inferior): Allow SIGTRAP to be "pass"ed
3248 Fri Feb 5 16:46:14 1999 Stan Shebs <shebs@andros.cygnus.com>
3250 * NEWS: Add mentions of various new things.
3252 Thu Feb 4 00:19:14 1999 Christopher Faylor <cgf@cygnus.com>
3254 * configure.in: Move termcap determination later in the
3255 file to catch setting of cygwin flag.
3256 * configure: Regenerate.
3258 Wed Feb 3 14:16:38 1999 Christopher Faylor <cgf@cygnus.com>
3260 * config/i386/cygwin.mh: Move TERMCAP test code to configure.in.
3261 * configure.in: Treat libtermcap.a detection as a special case
3262 when hosting on cygwin.
3263 * configure: Regenerate.
3265 1999-02-03 Keith Seitz <keiths@cygnus.com>
3267 * remote.c (remote_binary_download, remote_binary_length): New
3268 static globals for dealing with binary transmissions.
3269 (remote_write_bytes): Add support for binary downloads
3270 by shadowing the "M" packet with a new "X" packet. This
3271 defaults to ON; if the stub does not understand this, it
3272 will fall back to using "M".
3273 (putpkt): Add support for binary downloading.
3274 * monitor.c (monitor_expect): The mon2000 monitor
3275 on the MSA2000 will also emit random DC1/DC3 chars.
3276 * m32r-stub.c: Change all char's to unsigned char's
3277 to support binary downloading.
3278 (handle_exception): Add support for binary downloading
3279 via a new "X" packet.
3280 (getpacket): Do NOT strip eighth bit of incoming chars.
3281 Watch out for escaped characters in the incoming stream.
3282 (putpacket): Do NOT strip eighth bit of incoming chars.
3283 (bin2mem): New function to write binary data directly to
3285 * m32r-rom.c: Add new "mon2000" target.
3287 Tue Feb 2 18:40:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3289 * hp-psymtab-read.c (hpread_build_psymtabs): Coerce first arg
3290 passed to make_cleanup to the correct type.
3291 (hpread_quick_traverse): Change fifth arg to call to
3292 hpread_end_psymtab to be 0.
3293 Compare CURR_MODULE_END to 0 rather than NULL.
3294 Get rid of ifdef'ed out code.
3295 (scan_procs): Get rid of ifdef'ed out code.
3297 * somread.c (som_symfile_read): Coerce first argument passed to
3298 make_cleanup to the correct type.
3300 Tue Feb 2 17:36:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3302 * hp-psymtab-read.c (do_pxdb): New function. Check whether the
3303 file needs to be processed by pxdb (an HP debug info massaging
3304 tool), if so call it.
3305 (hpread_build_psymtabs): Initialize scan_start to 0 and
3306 simplify flow of control.
3308 * somread.c (som_symfile_read): Add call to do_pxdb (),
3309 in hp-psymtab-read.c.
3311 * symfile.c (symbol_file_add): Remove ifdef'ed out HPUX specific
3313 (symfile_bfd_open): Remove HPUXHPPA ifdef'ed code. Code is now
3314 in hp-psymtab-read.c.
3316 1999-02-02 Martin Hunt <hunt@cygnus.com>
3318 * printcmd.c (print_scalar_formatted): Use strcat to concat all
3319 the output together before calling fprintf_filtered().
3321 1999-02-01 Jason Molenda (jsm@bugshack.cygnus.com)
3323 * configure.in: Require autoconf 2.13.
3324 (AM_EXEEXT): Replace with new AC_EXEEXT.
3325 * acinclude.m4: Move itcl header macros from aclocal.m4 to here.
3326 * aclocal.m4: Regenerated.
3327 * configure: Regenerated.
3329 1999-02-01 Jim Blandy <jimb@zwingli.cygnus.com>
3331 Allow PPC users to select which PPC/RS6000 variant they're
3332 debugging at run-time. At the moment, the only thing this affects
3333 is the set of registers visible.
3334 * config/rs6000/tm-rs6000.h (REGISTER_NAME): Define this as a call
3335 to the function rs6000_register_name.
3336 (rs6000_register_name): Include extern decl.
3337 (NUM_REGS): Bump to 183. What's the right way to do this?
3338 (FIRST_UISA_SP_REGNUM, LAST_UISA_SP_REGNUM): Renamed from
3339 FIRST_SP_REGNUM, LAST_SP_REGNUM.
3340 (REGISTER_BYTES): Recompute this.
3341 * rs6000-tdep.c: Renamed all uses of FIRST_SP_REGNUM and
3342 LAST_SP_REGNUM to FIRST_UISA_SP_REGNUM and LAST_UISA_SP_REGNUM, with
3343 some concomitant formatting changes.
3344 #include "gdbcmd.h", so we can define commands here.
3345 (struct variant): New structure.
3346 (COMMON_UISA_REG_NAMES, PPC_UISA_SPR_NAMES, PPC_SEGMENT_REG_NAMES,
3347 PPC_32_OEA_SPR_NAMES, num_registers): New macros.
3348 (register_names_rs6000, register_names_uisa, register_names_403,
3349 register_names_403GC, register_names_505, register_names_860,
3350 register_names_601, register_names_602, register_names_603,
3351 register_names_604, register_names_750, variants): New variables.
3352 (rs6000_register_name, install_variant, find_variant_by_name,
3353 install_variant_by_name, list_variants, show_current_variant,
3354 set_processor, show_processor): New functions.
3355 (_initialize_rs6000_tdep): Define new commands `set processor' and
3356 `show processor', and call install_variant_by_name to set the
3358 * rs6000-nat.c: Renamed all uses of FIRST_SP_REGNUM and
3359 LAST_SP_REGNUM to FIRST_UISA_SP_REGNUM and LAST_UISA_SP_REGNUM, with
3360 some concomitant formatting changes.
3361 * configure.in: Accept the `--with-cpu' flag, to specify a default
3363 * acconfig.h: Provide a blurb for TARGET_CPU_DEFAULT, which is set
3364 by configure's `--with-cpu' flag.
3365 * config.in, configure: Regenerated.
3367 Sun Jan 31 15:24:24 1999 Stan Shebs <shebs@andros.cygnus.com>
3369 * buildsym.h, buildsym.c: Convert to ANSI-only.
3371 * buildsym.h, buildsym.c: Reformat to standard.
3373 * buildsym.c (merge_symbol_lists): Remove unused variable.
3374 (_initialize_buildsym): Remove, does nothing.
3376 1999-01-31 J.T. Conklin <jtc@redbacknetworks.com>
3378 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
3379 sparcl-stub, sparclet-stub.c: Change declaration of putDebugChar
3380 to include explicit void return type as per documentation. Fix up
3381 occasions where stubs erroneously checked return type.
3383 Sun Jan 31 13:18:33 1999 Stan Shebs <shebs@andros.cygnus.com>
3385 From J.T. Conklin <jtc@redbacknetworks.com>:
3386 * remote.c (remote_query): Fix tipo.
3388 Fri Jan 29 15:25:09 1999 Stan Shebs <shebs@andros.cygnus.com>
3390 * configure.tgt (v850): Add wildcard to match.
3392 Fri Jan 29 16:44:01 1999 Edith Epstein <eepstein@sophia.cygnus.com>
3394 * inferior.h: Ran indent.
3396 * fork-child.c: Ran indent.
3398 * infrun.c : Ran indent.
3400 Fri Jan 29 12:57:34 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3402 * infrun.c (_initialize_infrun): Do not stop or print anything
3403 when a SIGWINCH is received.
3405 * Makefile.in (m2-exp.tab.c): Use YACC not BISON.
3406 (f-exp.tab.c): Ditto.
3407 (jv-exp.tab.c): Ditto.
3408 (c-exp.tab.c): Ditto.
3409 (YACC): Define as @YACC@.
3411 1999-01-29 Martin Hunt <hunt@cygnus.com>
3413 Changes from Keith Seitz <keiths@cygnus.com>
3414 * valops.c (value_assign): Add calls to register_changed_hook and
3415 memory_changed_hook to inform UIs that the user has changed
3416 the target's registers/memory.
3417 * findvar.c (write_register_gen): Remove call to pc_changed_hook.
3418 * defs.h: Remove declaration for pc_changed_hook and
3419 add declarations for register_changed_hook and
3420 memory_changed_hook.
3423 1999-01-29 Mark Alexander <marka@cygnus.com>
3425 * procfs.c (wait_fd): Handle deleted threads correctly.
3427 1999-01-28 Jason Molenda (jsm@bugshack.cygnus.com)
3429 * utils.c (init_page_info): Force window size if running under emacs.
3431 1999-01-27 James Ingham <jingham@cygnus.com>
3433 * typeprint.c (whatis_exp): Remove static declaration.
3435 Wed Jan 27 16:50:25 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3437 * hp-psymtab-read.c: Reformat using indent.
3439 Wed Jan 27 13:20:25 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3441 * hp-psymtab-read.c: Reformat comments, update copyright.
3443 Tue Jan 26 16:02:47 1999 Mark Alexander <marka@cygnus.com>
3445 * v850-tdep.c (v850_generic_reg_names, v850e_reg_names,
3446 v850_register_names, v850_processor_type_table): Declare tables
3447 and structures for handling differences in register names for
3449 (struct reg_list): Define new structure for creating tables
3450 of register bit masks in v850e instrutions.
3451 (handle_prepare, handle_pushm): New helpers for v850_scan_prologue.
3452 (v850_scan_prologue): Recognize v850e instructions: callt, prepare,
3454 (v850_target_architecture_hook): New function to set register
3455 names based on current machine.
3456 (_initialize_v850_tdep): Set up target_architecture_hook.
3457 * config/v850/tm-v850.h (v850_register_names): Declare.
3458 (REGISTER_NAME): Define to refer to v850_register_names.
3459 (SR0_REGNUM, CTBP_REGNUM): Define.
3460 (PS_REGNUM): Redefine in terms of SR0_REGNUM.
3462 Tue Jan 26 18:27:26 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3464 * Makefile.in (c-exp.tab.c): Use BISON instead of YACC, to pick
3465 the correct value from configure output.
3466 (jv-exp.tab.c): Ditto.
3467 (f-exp.tab.c): Ditto.
3468 (m2-exp.tab.c): Ditto.
3470 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
3472 * breakpoint.h (ep_is_exception_catchpoint): Add prototype.
3473 * frame.h (select_and_print_frame): Add prototype.
3474 * stack.c (func_command): Call select_and_print_frame with correct
3475 number of arguments. Reformat whitespace.
3477 Tue Jan 26 16:53:54 1999 Fernando Nasser <fnasser@cygnus.com>
3479 * remote.c (remote_query): fix maximum packet size to account for
3481 (putpkt): add comment to alert about extra byte need.
3483 Mon Jan 25 19:55:30 1999 Mark Alexander <marka@cygnus.com>
3485 * sh-tdep.c (sh_target_architecture_hook): Return immediately
3486 when a matching machine is found.
3488 Fri Jan 22 09:10:35 1999 Mark Alexander <marka@cygnus.com>
3490 * remote-mips.c (mips_initialize): Fix parameters to clear_breakpoint.
3491 (common_breakpoint): Restore support for instruction breakpoints
3494 Thu Jan 21 17:16:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
3496 * stack.c: Close open comment.
3497 * symtab.c (find_pc_sect_line): Ditto.
3499 Thu Jan 21 17:51:51 1999 Stan Shebs <shebs@andros.cygnus.com>
3501 * procfs.c (init_procfs_ops): New function, fills in procfs_ops,
3502 init only nonzero fields, leave to_require_attach and
3503 to_require_detach empty, not needed for /proc systems yet.
3504 (_initialize_procfs): Call init_procfs_ops.
3506 From J.T. Conklin <jtc@redbacknetworks.com>:
3507 * top.c (init_main): Fix tipo in description of the remotetimeout
3509 * breakpoint.c (bpstat_stop_status): Handle systems where
3510 DECR_PC_AFTER_BREAK != DECR_PC_AFTER_HW_BREAK.
3512 Thu Jan 21 17:25:46 1999 Mark Alexander <marka@cygnus.com>
3514 * mon960-rom.c (_initialize_mon960): Call init_mon960_cmds
3515 to fill in mon960_cmds structure properly.
3517 Wed Jan 20 17:53:22 1999 Stan Shebs <shebs@andros.cygnus.com>
3519 * remote-sds.c (sds_ops): Define only once.
3520 (init_sds_ops, sds_command, _initialize_remote_sds): Declare.
3521 (init_sds_ops): Init only non-zero fields.
3523 Wed Jan 20 15:45:15 1999 Mark Alexander <marka@cygnus.com>
3525 * h8300-tdep.c (original_register_names, h8300h_register_names,
3526 h8300_register_names): Define new variables.
3527 (set_register_names): New function to set register names based on
3529 (h8300_command, h8300h_command, h8300s_command): Call
3531 * config/h8300/tm-h8300.h (h8300_register_names): Declare.
3532 (REGISTER_NAME): Define to refer to h8300_register_names.
3534 1999-01-19 Fernando Nasser <fnasser@totem.to.cygnus.com>
3536 * sol-thread.c abug-rom.c cpu32bug-rom.c dbug-rom.c m32r-rom.c
3537 mac-nat.c mon960-rom.c op50-rom.c ppc-bdm.c remote-adapt.c
3538 remote-array.c remote-bug.c remote-e7000.c remote-eb.c remote-es.c
3539 remote-est.c remote-hms.c remote-mm.c remote-nindy.c remote-nrom.c
3540 remote-os9k.c remote-rdp.c remote-sds.c remote-sim.c remote-st.c
3541 remote-udi.c rom68k-rom.c sh3-rom.c sparcl-tdep.c sparclet-rom.c
3542 v850ice.c win32-nat.c: cosmetic changes to conform to coding
3545 1999-01-19 Jim Blandy <jimb@zwingli.cygnus.com>
3547 Use aclocal to generate GDB's aclocal.m4 script.
3548 * acinclude.m4: New file, containing the hand-written local macro
3549 definitions that used to be in aclocal.m4. Don't sinclude
3550 ../bfd/aclocal.m4 any more; running aclocal in this directory will
3551 get us the definitions we need. HOWEVER: Do sinclude
3552 ../bfd/acinclude.m4, because we need the definition of
3553 BFD_NEED_DECLARATION.
3554 * aclocal.m4: Regenerated by aclocal.
3555 * configure: Regenerated by autoconf.
3557 Tue Jan 19 10:27:23 1999 David Taylor <taylor@texas.cygnus.com>
3559 * breakpoint.c (disable_breakpoints_in_shlibs): new parameter,
3560 silent, controls whether to print message about removal of shared
3561 library breakpoints.
3562 * breakpoint.h (disable_breakpoints_in_shlibs): decl updated.
3563 * irix5-nat.c (clear_solib): call disable_breakpoints_in_shlibs.
3564 * osfsolib.c (clear_solib): ditto.
3565 * solib.c (clear_solib): ditto.
3566 * somsolib.c (som_solib_restart): update call to
3567 disable_breakpoints_in_shlibs.
3569 * target.h (child_post_attach): only declare if CHILD_POST_ATTACH
3572 Tue Jan 19 18:07:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
3574 * corelow.c (solib_add_stub): Ditto.
3575 (core_file_to_sym_file): Cast make_cleanup parameter.
3577 * solib.c (symbol_add_stub, solib_map_sections): Change argument
3578 to PTR insted of a char*. Matches catch_errors interface.
3580 Mon Jan 18 14:01:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
3582 * remote-array.c (array_open): Don't use fprintf_filtered to send
3583 data to the log file.
3585 * remote-array.c (handle_load_dll): Change argument type to PTR so
3586 that it is compatible with catch_errors.
3587 * ocd.c (ocd_start_remote): Ditto.
3588 * remote-sds.c (sds_start_remote): Ditto.
3590 * win32-nat.c (win32_child_thread_alive): Namespace proof
3592 (init_child_ops): Update.
3594 Mon Jan 18 12:03:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
3596 * remote-rdi.c (arm_rdi_open): Set gdb_hostif.hostosarg and
3597 gdb_hostif.dbgarg to NULL instead of stdout.
3598 (voiddummy, myprint, mywritec): Use gdb_stdout instead of stdout.
3600 Mon Jan 18 16:40:50 1999 Stan Shebs <shebs@andros.cygnus.com>
3602 * ser-ocd.c (ocd_open): Handle Unix case gracefully.
3604 * target.c (dummy_target): Don't initialize statically.
3605 (init_dummy_target): New function, fills in dummy_target.
3606 (initialize_targets): Use it.
3607 * hpux-thread.c (hpux_thread_ops): Don't initialize statically.
3608 (init_hpux_thread_ops): New function, fills in hpux_thread_ops.
3609 (_initialize_hpux_thread): Use it.
3610 * m3-nat.c (m3_ops): Don't initialize statically.
3611 (init_m3_ops): New function, fills in m3_ops.
3612 (_initialize_m3): Use it.
3614 1999-01-18 Fernando Nasser <fnasser@totem.to.cygnus.com>
3616 * sol-thread.c: delete compile time initialization of target_ops
3617 (_initialize_sol_thread): initialize target_ops at run time.
3618 * hpux-thread.c: added target_ops entry.
3621 Mon Jan 18 15:19:13 1999 David Taylor <taylor@texas.cygnus.com>
3623 * procfs.c (procfs_ops): delete compile time initialization.
3624 (_initialize_procfs): initialize procfs_ops at run time.
3626 Mon Jan 18 12:51:44 1999 Christopher Faylor <cgf@cygnus.com>
3628 * configure.in: Ensure that -luser32 is always linked in
3630 * configure: Regenerated.
3632 Mon Jan 18 08:38:05 1999 Mark Alexander <marka@cygnus.com>
3634 * values.c (value_virtual_fn_field): Clear the pointed-to
3635 offset when casting to the base class.
3637 Mon Jan 18 10:30:51 1999 David Taylor <taylor@texas.cygnus.com>
3639 * remote-udi.c (init_udi_ops): change non-existant udi_run_ops to
3640 udi_ops; delete NULL initializers.
3642 Mon Jan 18 12:03:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
3644 * serial.c (serial_close): gdb_fclose tages gdb_file** arg, not
3647 * f-valprint.c, target.c, gdbarch.c: Pass gdb_stderr not stderr.
3649 Mon Jan 18 10:46:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
3651 * stack.c (print_frame_info_base): Don't cast call to
3653 (print_args_stub): Change char* arg to PTR.
3654 * symmisc.c (print_symbol): Ditto.
3655 * top.c (quit_cover): Ditto.
3656 * remote.c (remote_open_1, remote_start_remote): Ditto.
3657 * infrun.c (normal_stop, hook_stop_stub, restore_selected_frame):
3660 * stack.c (backtrace_command): Cast first arg of make_cleanup to
3662 * remote.c (remote_kill): Cast putpkt arg to catch_errors_ftype.
3664 Mon Jan 18 08:47:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
3666 * defs.h (catch_errors_ftype): Define.
3667 (catch_errors): Replace char* arg with PTR arg.
3668 * top.c (catch_errors): Update
3670 * breakpoint.c (bpstat_stop_status, bpstat_stop_status,
3671 delete_breakpoint, breakpoint_re_set): Delete all casts in call to
3673 (breakpoint_cond_eval, watchpoint_check,
3674 cover_target_enable_exception_callback, breakpoint_re_set_one):
3675 Arg is PTR not char*.
3677 * breakpoint.c (cover_target_enable_exception_callback): Change
3678 type to int. Check for cast values of 0 and -1. Return a result!
3679 (insert_breakpoints): Move declaration of SAL and ARGS to where
3682 1999-01-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
3684 * remote.c (remote_query): new function - creates proper interface
3685 to the remote protocol "q" command.
3687 Fri Jan 15 17:11:48 EST 1999 Zdenek Radouch (radouch@cygnus.com)
3689 * config/fr30/tm-fr30.h: Changed ABI to match GCC change
3690 (always use pointer for structs passed by value).
3692 1999-01-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
3694 * target.h: added entry for target queries (to_query)
3697 Thu Jan 14 18:29:17 1999 David Taylor <taylor@texas.cygnus.com>
3699 * remote-mm.c (mm_wait): fix stream arg to gdb_flush.
3700 * remote-udi.c (udi_wait): fix stream arg to fwrite.
3701 * symmisc.c (maintenance_check_symtabs): fix stream argument to
3702 print_address_numeric.
3704 Wed Jan 13 19:33:16 1999 David Taylor <taylor@texas.cygnus.com>
3706 * breakpoint.c (insert_breakpoints): insert cast to eliminate
3709 Wed Jan 13 14:59:02 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
3711 * infrun.c (set/show scheduler-locking) New command. Set a
3712 mode bit that will control how GDB attempts to control thread
3713 scheduling for step, continue, etc. (resume): make use of
3714 the schedule-locking mode.
3715 * target.h (struct target_ops): new field to_has_thread_control.
3716 * sol-thread.c: initialize target_ops to_has_thread_control.
3721 * hpux-thread.c: ditto.
3722 * thread.c: cull duplicate prototypes. Move prototypes to top.
3723 * serial.c: indentation cleanup.
3724 * breakpoint.c: add casts to eliminate compiler warnings.
3726 Tue Jan 12 17:00:00 1999 Edith Epstein <eepstein@sophia.cygnus.com>
3728 * inftarg.c (child_create_inferior): fixed HPUXHPPA specific
3729 call to fork_inferior. The shell param is now NULL.
3731 1999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
3733 * monitor.c (init_base_monitor_ops): Whitespace cleanup.
3734 (_initialize_remote_monitors): Same.
3736 1999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
3738 * monitor.c (init_monitor_ops): Initialize the monitor_ops
3739 structure if it hasn't already been done.
3741 Tue Jan 12 14:50:10 1999 Stan Shebs <shebs@andros.cygnus.com>
3743 * inftarg.c (child_ops): Don't initialize statically.
3744 (init_child_ops): New function, fills in child_ops.
3745 (_initialize_inftarg): Use it.
3746 (child_post_attach): Declare extern.
3747 (child_wait): Fix ambiguous parens.
3748 (child_attach_to_process): Remove unused local wstatus.
3749 (child_insert_fork_catchpoint, child_remove_fork_catchpoint,
3750 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
3751 child_has_forked, child_insert_exec_catchpoint,
3752 child_remove_exec_catchpoint): Return a value.
3754 Mon Jan 11 16:43:44 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
3756 * remote.c (remote_wait): Add inferior_pid to thread list only
3757 if it is not already there.
3759 1999-01-11 Jason Molenda (jsm@bugshack.cygnus.com)
3761 * scm-tags.h: Update FSF's address on copyright notice.
3762 * ser-e7kpc.c: Same.
3765 Mon Jan 11 13:45:57 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
3767 * dwarf2read.c (dump_die): Change stderr to gdb_stderr.
3768 * expprint.c (print_subexp): fprintf => fprintf_unfiltered.
3769 * jv-typeprint.c (java_type_print_base): fputs => fputs_filtered.
3770 * stack.c (struct function_bounds): Remove superfluous `typedef'.
3771 * symfile.c (list_overlays_command): stdout => gdb_stdout.
3772 * symmisc.c (maintenance_check_symtabs): stdout => gdb_stdout.
3773 * utils.c (print_spaces): Make more efficient.
3775 Mon Jan 11 13:55:51 1999 David Taylor <taylor@texas.cygnus.com>
3777 * utils (print_spaces): fix arg to strcat; fix formatting.
3779 Fri Jan 8 11:57:24 1999 Stan Shebs <shebs@andros.cygnus.com>
3781 * exec.c (exec_ops): Don't initialize statically.
3782 (init_exec_ops): New function, fills in exec_ops.
3783 (_initialize_exec): Use it.
3785 Thu Jan 7 17:50:15 EST 1999 Zdenek Radouch (radouch@cygnus.com)
3789 * config/fr30/tm-fr30.h
3791 Wed Jan 6 12:28:35 1999 David Taylor <taylor@texas.cygnus.com>
3793 * configure.in: Add an --enable-tui argument. Construct
3794 tui/Makefile from tui/Makefile.in. Use AM_PROG_CC_STDC. If we
3795 have the GUI, then we need this to process libgui.h.
3796 (ENABLE_CFLAGS): define and export BUILD_TUI.
3797 (AC_CHECK_HEADERS): Add check for term.h.
3799 * configure.host (hppa-*-hpux10.20, hppa-*-hpux11.0*): New configs.
3801 * config.in, configure : regenerated.
3803 * Makefile.in: Allow the TUI code to be conditionally enabled.
3804 (TUI_LIBRARY): New variable, value are set by the configuration
3805 script. Set to the empty string when the TUI isn't enabled.
3806 (gdb$(GDBEXT)): Use those, instead of referring to all-tui and
3807 tui/libtui.a directly.
3808 (BUILD_TUI): build the tui -- only when configured with
3810 (YLWRAP): use ylwrap to avoid problems on systems w/o bison.
3811 (gdb$(EXEEXT)): make it dependent on BUILD_TUI.
3812 (all-tui): remove dependency from phony target.
3813 (c-exp.tab.c): use ylwrap instead of bison.
3814 (jv-exp.tab.c): ditto.
3815 (f-exp.tab.c): ditto.
3816 (m2-exp.tab.c): ditto.
3817 (ALLDEPFILES): add somread.c, hp-psymtab-read.c, hp-symtab-read.c.
3818 (SFILES): remove the above files
3819 (COMMON_OBS): remove somread.o
3820 (SFILES): Add the tui files to this, so they get included in etags
3822 (gdb$(EXEEXT)): Add all-tui to the list of dependencies, and add
3823 tui/libtui.a to the link list.
3824 (all-tui): New rule, which does a recursive make in the tui
3826 (tui/libtui.a): When recursing, pass down ${FLAGS_TO_PASS}. And
3827 don't echo the make command. This is closer to what the other
3829 (HFILES_NO_SRCDIR): add hpread.h
3830 (COMMON_OBS): add hp-psymtab-read.o, hp-symtab-read.o
3831 (SFILES): add hp-psymtab-read.c, hp-symtab-read.c add rules for
3832 the new files. Remove hpread.c, hpread.o
3833 (gdb$(EXEEXT)): Depend on the actual tui library, not on a
3834 fictitious target. Since the fictitious target never existed,
3835 make would always relink.
3836 (tui/libtui.a): Always recurse to make sure the library is up to
3839 Wed Jan 6 12:05:12 1999 Stan Shebs <shebs@andros.cygnus.com>
3841 * remote.c: Pacify --enable-build-warnings, reformat code
3842 to conform to standards, fix spelling errors.
3843 (ishex, stubhex, record_currthread, etc): Declare.
3844 (ishex, stubhex): Declare char arg as int.
3845 (pack_string): Comment out, never used but possibly useful.
3846 (threadref_to_int, remote_get_threadinfo, etc): Make static.
3848 Wed Jan 6 11:43:32 1999 David Taylor <taylor@texas.cygnus.com>
3850 The following changes were made by Elena Zannoni
3851 <ezannoni@cygnus.com> and Edith Epstein <eepstein@cygnus.com> as
3852 part of a project to merge in changes made by HP.
3854 * c-exp.y: use external flag hp_som_som_object_present to decide
3855 whether code was compiled by HP's compilers. Add two new C++
3856 tokens for true and false.
3857 (yylex): check for template name is done differently for the
3858 HP/aCC compiler case. Change some of the template processing code
3859 for handling HP aCC templates. Handle true and false tokens.
3861 Tue Jan 5 11:13:36 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
3863 * remote.c (record_curthread): Must not modify inferior_pid when
3864 called from wait_for_inferior. Instead, if a new thread-id is
3865 detected, call add_thread.
3866 (MAGIC_NULL_PID): new macro, use instead of the magic number
3868 (remote_find_new_threads): if inferior_pid is unknown, get and use
3869 the current thread id.
3870 (remote_start_remote): on connecting, attempt to get the current
3871 thread id for inferior_pid.
3872 (remote_resume): If pid == -1, then resume any-thread (not the
3873 current thread specifically). Also some cosmetic fixups.
3875 * thread.c (info_threads_command): don't initialize current_pid
3876 until after call to FIND_NEW_THREADS (which may change inferior_pid).
3877 Also some cosmetic fixups.
3878 * infrun.c: cosmetic fixups and casts to avoid warnings.
3879 * infcmd.c: cosmetic fixups, mainly long lines.
3881 Tue Jan 5 11:55:57 1999 David Taylor <taylor@texas.cygnus.com>
3883 * target.c (noprocess): terminate sentence with a period.
3884 * breakpoint.c (catch_command_1): ditto.
3886 * c-valprint.c (c_value_print): remove hack^2 from HP; it causes
3887 testsuite losses with no real gain.
3889 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): restore, but only
3890 if tm-*.h hasn't overridden default value.
3892 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
3894 * configure.in: Fix whitespace indentation for --help.
3895 * configure: Regenerated.
3897 1999-01-04 Manuel Bouyer <bouyer@antioche.lip6.fr>
3899 * main.c: Add --write command line option, document -w.
3900 * gdb.1: Document --write.
3902 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
3904 * configure.in: Require autoconf 2.12.1 or higher.
3905 * doc/configure.in: Ditto.
3906 * nlm/configure.in: Ditto.
3907 * rdi-share/configure.in: Ditto.
3908 * testsuite/configure.in: Ditto.
3909 * doc/Makefile.in: Don't hardcode $(SHELL).
3910 * nlm/Makefile.in: Ditto.
3911 * rdi-share/Makefile.in: Ditto.
3912 * testsuite/Makefile.in: Ditto.
3914 Mon Jan 4 12:53:03 1999 Stan Shebs <shebs@andros.cygnus.com>
3916 * remote-vx.c (init_vx_ops, init_vx_run_ops): Remove unneeded
3917 inits of new fields, including ref to bogus field.
3918 (vx_ops, vx_run_ops): Make static.
3920 Mon Jan 4 15:05:29 1999 David Taylor <taylor@texas.cygnus.com>
3922 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): delete,
3923 already defined in tm.h.
3925 * inftarg.c: change <sys/unistd.h> to <unistd.h> and
3926 conditionalize its inclusion.
3927 * infttrace.c: ditto.
3929 For older changes see ChangeLog-98
3935 version-control: never