]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
import gdb-1999-07-12 snapshot
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
43e526b9
JM
1Mon Jul 12 11:15:09 1999 Andrew Cagney <cagney@b1.cygnus.com>
2
3 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_RAW,
4 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERTIBLE): Define.
5 (REGISTER_RAW_SIZE): Re-define as mips_register_convert_to_raw.
6 * mips-tdep.c (mips_register_convert_to_raw,
7 mips_register_convert_to_virtual, ): New functions.
8 (mips_register_raw_size, mips_register_convertible): New
9 functions. Handle bug introduced by ``Wed Apr 1 23:13:23 1998
10 Andrew Cagney <cagney@b1.cygnus.com>'' where remote mips64 target
11 transfers SR as 64 bits yet GDB expected only 32 bits.
12 (mips64_transfers_32bit_regs): New static variable.
13 (_initialize_mips_tdep): Add obscure command ``set
14 remote-mips64-transfers-32bit-regs'' that provides backward
15 compatibility.
16 (do_gp_register_row): Extract register values from raw buffer.
17
18 * NEWS: Document protocol change.
19
20Mon Jul 12 02:02:00 1999 Andrew Cagney <cagney@amy.cygnus.com>
21
22 * defs.h, utils.c (fputstrn_filtered, fputstrn_unfiltered,
23 fputstrnn_unfiltered): New functions.
24 (gdb_printchar): Delete.
25
26 * remote.c (print_packet): Replace gdb_printchar with
27 fputstrn_filtered.
28 (getpkt): Use fputstrn_unfiltered to dump packet received.
29 (putpkt_binary): Use fputstrnn_unfiltered to dump packet sent.
30
311999-07-09 Keith Seitz <keiths@cygnus.com>
32
33 * blockframe.c (blockvector_for_pc_sect): When looking for a block,
34 we want the one whose end is greater than our PC, not greater or equal.
35
361999-07-08 Stan Shebs <shebs@andros.cygnus.com>
37
38 * sparcl-tdep.c (init_sparclite_ops): Fix doc strings, remove
39 useless inits.
40 (sparclite_ops): Remove redundant decl.
41
42Thu Jul 8 16:48:40 1999 Andrew Cagney <cagney@b1.cygnus.com>
43
44 * ser-pipe.c (pipe_open): Bi-directional popen found on both
45 NetBSD and OpenBSD.
46 * ser-pipe.c: New file. Implement popen() style serial interface.
47 * NEWS: Mention.
48 * Makefile.in (ALLDEPFILES): Add ser-pipe.c.
49 (ser-pipe.o): Add new target. Specify dependencies.
50 (SER_HARDWIRE): Add ser-pipe.o.
51 * serial.c (serial_open): Recognize a serial pipe ``|''.
52
9846de1b
JM
531999-07-07 Stan Shebs <shebs@andros.cygnus.com>
54
c5aa993b
JM
55 * All C files except *-stub.c and *-share/*: Indent to GNU
56 standard, using indent 1.9.1.
57 * defs.h: Make indent ignore this file, macros confuse it.
58
9846de1b
JM
59 * gnu-regex.c, gnu-regex.h: Don't let indent mess with these.
60
61Wed Jul 7 13:06:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
62
63 * remote-mips.c (fputs_readable): Rename puts_readable, add struct
64 gdb_file argument.
65 (fputc_readable): Rename putc_readable, add struct gdb_file
66 argument.
67
68 * remote-mips.c (mips_expect_timeout, mips_receive_header,
69 mips_send_packet, mips_receive_packet), remote-rdp.c (put_byte,
70 get_byte, put_word, rdp_init, rdp_init), remote-sds.c
71 (sds_interrupt, sds_wait, readchar, putmessage, read_frame,
72 getmessage), remote-udi.c (udi_store_registers, fetch_register):
73 (store_register), xmodem.c (readchar), utils.c (puts_debug),
74 gnu-nat.h (debug), parse.c (parse_exp_1): Cleanup - send debug/log
75 messages to gdb_stdlog.
76
771999-07-06 Stan Shebs <shebs@andros.cygnus.com>
78
79 * exec.c: Remove long-#ifed-out section of code that confuses
80 indent.
81 * gdbtypes.c (add_mangled_type): Add some braces to indicate
82 grouping better.
83 * gnu-nat.c: Remove literal newlines embedded in strings,
84 causes indent to weird out.
85 * language.c (binop_result_type): Remove extra paren.
86 * lynx-nat.c: Add a missing paren to fetch_core_registers decl.
87 * nec4102rom.c (vr4102_insert_step): Fix typos.
88 (_initialize_vr4102_rom): Remove literal newline in string.
89 * config/a29k/tm-a29k.h: Suppress formatting of pictures.
90 * config/m68k/xm-3b1.h: Remove excess #endif.
91
92 Declare Pyramid configuration obsolete.
93 * configure.host, configure.tgt: Comment out Pyramid configs.
94 * Makefile.in: Comment out Pyramid-related actions.
95 * pyr-xdep.c, pyr-tdep.c, config/pyr/*: Comment out.
96 * NEWS: Mention obsolete status.
97
981999-07-06 Jason Molenda (jsm@bugshack.cygnus.com)
99
100 * remote.c: Include <sys/time.h> to pick up FD_SET et al defns on
101 some old Linux distributions.
102 * remote-os9k.c, remote-st.c, ser-tcp.c, ser-unix.c,
103 sparcl-tdep.c, remote.c: Back out inclusion of <sys/select.h>.
104 It isn't necessary after all.
105
1061999-07-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
107
108 * infcmd.c (strip_bg_char): Remove assignment from 'if' condition.
109
43ff13b4
JM
1101999-07-05 Jason Molenda (jsm@bugshack.cygnus.com)
111
112 * remote.c: Include <sys/select.h> if it exists in order to pick up
113 FD_SET et al defns.
114 * remote-os9k.c: Same.
115 * remote-st.c: Same.
116 * ser-tcp.c: Same.
117 * ser-unix.c: Same.
118 * sparcl-tdep.c: Same.
119
120Fri Jul 2 19:38:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
121
122 * top.c (target_output_hook): Delete definition.
123 * defs.h (target_output_hook): Delete declaration.
124
125 * remote.c (remote_console_output): Delete call to
126 target_output_hook(). Send target output to gdb_stdtarg using an
127 unfiltered write. Make more robust.
128
129 * remote-sim.c (gdb_os_write_stdout, gdb_os_write_stderr):
130 Ditto. For moment, do not try to separate target stdout and stderr
131 streams.
132
133 * defs.h (gdb_stdtarg): New global. Output from target and
134 simulators.
135
1361999-07-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
137
138 * top.c (return_to_top_level): Do all the exec_cleanups too.
139
140 * event-top.c (command_handler): Set up for a continuation, if we
141 are in the middle of running an execution command which will
142 finish later on. Do cleanups, an display of time/space only if not
143 running with an async target or not running an execution command.
144 (command_line_handler_continuation): New function. Continuation
145 for command_line_handler.
146
147 * utils.c (exec_cleanup_chain): New cleanup chain to be used in
148 async mode for the execution commands.
149 (make_exec_cleanup): New function. Add a cleanup to the
150 exec_cleanup_chain.
151 (do_exec_cleanups): New Function. Do cleanups on the
152 exec_cleanup_chain.
153 (add_continuation): New function. Add a new continuation to the
154 cmd_continuation list.
155 (do_all_continuations): New function. Do all the continuations on
156 the cmd_continuation list.
157
158 * top.h (ALL_CLEANUPS): Move from here to defs.h.
159
160 * defs.h (struct continuation_arg): New structure. Arg to pass to
161 the call to a command continuation.
162 (struct continuation): New structure. Continuation for an
163 execution command.
164 (ALL_CLEANUPS): Move here from top.h.
165
166 * remote.c (remote_async_open_1): Set things up for telling the
167 target we are running the extended protocol, only after the target
168 has stopped.
169 (set_extended_protocol): New function. Tell the target we are
170 using the extended protocol.
171 (remote_async_resume): Set things up for sync execution only if
172 this is the first time we are called.
173
174 * breakpoint.c (until_break_command_continuation): New function.
175 Stuff to be done after the target stops during the 'until'
176 command.
177 (until_break_command): Set things up for completing the 'until'
178 command later on. Do the final cleanups only if not running
179 asynchronously or async execution is not supported by the target.
180
181 * infcmd.c (until_command): Recognize '&' at end of command and
182 handle it properly.
183 (finish_command_continuation): New function. Do whatever is needed
184 after the target has stopped.
185 (finish_command): Recognize '&' at end of command and handle it
186 properly. Don't do stuff needed after target has stopped if
187 running asynchronously and target has async. Use exec_cleanup_chain
188 if running asynchronously and target is asynchronous.
189
190 * infrun.c (cmd_continuation): New gloabl variable. Used to
191 coplete execution commands in async mode, after the target has
192 stoped.
193 (fetch_inferior_event): Use exec_cleanup_chain, instead of
194 cleanup_chain. Do all the exec cleanups at the end. Do all the
195 continuations at the end. Call complete_execution from here,
196 instead of normal_stop.
197 (complete_execution): Cleanup the signals handlers for SIGINT
198 before displaying the prompt.
199 (start_remote): Set target_executing to 1.
200 (normal_stop): Don't call complete_execution from here.
201
202Thu Jul 1 19:14:30 1999 Andrew Cagney <cagney@b1.cygnus.com>
203
204 * blockframe.c (struct dummy_frame): Add member ``top''.
205 (generic_push_dummy_frame): Initialize top to sp.
206 (generic_save_dummy_frame_tos): New function. Initialize top.
207 (generic_find_dummy_frame): Check for the top of the frame.
208
209 * blockframe.c (generic_push_dummy_frame): Free the dummy_frame
210 registers.
211
212 * config/mn10300/tm-mn10300.h (SAVE_DUMMY_FRAME_TOS): Define.
213 (TARGET_READ_FP): Return the SP as a best guess.
214
215Wed Jun 30 15:45:48 1999 Jeffrey A Law (law@cygnus.com)
216
217 * configure.host (hppa*-*-hpux11*): Accept any version of hpux11
218 instead of hpux11.0*.
219
2201999-06-30 Fernando Nasser <fnasser@totem.to.cygnus.com>
221
222 * source.c (directory_command): Add missing test for from_tty.
223
2241999-06-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
225
226 * remote.c: Include event-loop.h.
227 (remote_async_ops, extended_async_remote_ops): Define new target
228 vector structures for asynchronous debugging.
229 (remote_async_open): New function. Asynchronous version of
230 remote_open.
231 (extended_remote_async_open): New function. Asynchronous version
232 of extended_remote_open.
233 (remote_async_open_1): New function. Async version of
234 remote_open_1.
235 (remote_async_detach): New function. Async version of
236 remote_detach.
237 (remote_async_resume): New function. Async version of
238 remote_resume.
239 (initialize_sigint_signal_handler, handle_remote_sigint,
240 handle_remote_sigint_twice, async_remote_interrupt,
241 async_remote_interrupt_twice, cleanup_sigint_signal_handler): New
242 functions. Used for handling ^C while target is running.
243 (remote_async_wait): New function. Async version of remote_wait.
244 (remote_async_kill): New function. Async version of remote_kill.
245 (extended_remote_async_create_inferior): New function. Async
246 version of extended_remote_create_inferior.
247 (init_remote_async_ops): New function. Initialize target vector
248 for target async.
249 (init_extended_async_remote_ops): New function. Initialize target
250 vector for target extended-async.
251 (_initialize_remote): Initialize remote_async_ops and
252 extended_async_remote_ops.
253
254 * infrun.c: Include "event-loop.h".
255 (sync_execution): new global variable.
256 (proceed): Invoke wait_for_inferior and normal_stop only if not
257 running in async mode or if target doesn't support async
258 execution.
259 (start_remote): Don't call wait_for_inferior and normal_stop if
260 not running in async mode or if target not async. If running async
261 and target is async, start the target in simulated synchronous
262 mode.
263 (async_ecss, async_ecs): New global vars, for inferior state.
264 (fetch_inferior_event): New function. Async version of
265 wait_for_inferior.
266 (complete_execution): New function. Reset of gdb prompt and stdin,
267 after inferior execution has completed.
268 (normal_stop): Call complete_execution at end of asynchronous
269 execution.
270
271 * infcmd.c (strip_bg_char): New function to detect the background
272 execution char '&'.
273 (run_command): Modify to support background and foreground
274 execution in async mode.
275 (continue_command): Ditto.
276 (step_1): Ditto.
277 (jump_command): Ditto.
278 (interrupt_target_command): New function. Interrupt the
279 target execution.
280 (_initialize_infcmd): Add new command 'interrupt'.
281
282 * top.c (target_executing): New global variable.
283 (execute_command): Reject commands that cannot be executed while
284 the target is running asynchronously.
285
286 * event-top.c (push_prompt): Make non static.
287 (pop_prompt): Make non static. If the current prompt is empty,
288 don't try to copy it over the previous one.
289 (handle_sigint): Make non static.
290 (command_handler): Do the cleanups only when not executing with an
291 asynchronous target.
292
293 * event-loop.c (delete_async_signal_handler): Pass a pointer to a
294 pointer to a signal handler, so that is can be freed at the end.
295
296 * target.c (update_current_target): Inherit to_has_async_exec.
297
298 * inferior.h: Add global variables target_executing, and
299 sync_execution. Export function fetch_inferior_event.
300
301 * event-loop.h: Add push_prompt, pop_prompt, handle_sigint to the
302 exported functions. Update prototype for delete_signal_handler.
303
304 * target.h (struct target_ops): New target op: to_has_async_exec.
305 (target_has_async): New macro.
306
307 * Makefile.in (infrun.o): Add dependency on event-loop.h.
308 (remote.o): Ditto.
309
085dd6e6
JM
3101999-06-28 Jim Blandy <jimb@zwingli.cygnus.com>
311
312 * solib.c (clear_solib): Don't disable breakpoints if we're
313 running an a.out executable (Solaris's SunOS emulation).
314
3151999-06-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
316
317 * main.c (main): Remove intialization of command_loop_hook, it
318 is now done in _initialize_event_loop().
319 * event-loop.c (gdb_do_one_event): Make static.
320 (start_event_loop): New function. Just start the event loop.
321 * event-top.c (cli_command_loop): New name for start_event_loop().
322 (gdb_readline2): Make non static.
323 (_initialize_event_loop): Set command_loop_hook to cli_command_loop.
324 * event-loop.h: Adjust exported functions accordingly.
325
326 * top.c (init_main): Move setting of async_command_editing_p from
327 here.
328 * event-top.c (_initialize_event_loop): To here.
329 (change_line_handler): Revert previous change. Add comment.
330 (_initialize_event_loop): Revert previous change.
331 (cli_command_loop): New name for start_event_loop().
332 (start_event_loop): New function. This just starts up the event loop.
333 (gdb_readline2): Make non static.
334 (_initialize_event_loop): Set command_loop_hook to cli_command_loop.
335
3361999-06-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
337
338 * event-top.c (change_line_handler): Get rid of the global
339 variable input_fd, use `fileno (instream)' instead.
340 (_initialize_event_loop): Ditto
341
342 * event-loop.c (add_file_handler): New function. Wrapper for
343 create_file_handler.
344 (create_file_handler): Make static.
345 * event-top.c (_initialize_event_loop): Call add_file_handler,
346 instead of create_file_handler.
347 (change_line_handler): Ditto.
348 Remove poll.h include.
349 * event-loop.h: Export add_file_handler instead of
350 create_file_handler.
351
3521999-06-24 Stan Shebs <shebs@andros.cygnus.com>
353
354 Declare Altos configuration obsolete.
355 * configure.host, configure.tgt: Comment out Altos config.
356 * Makefile.in: Comment out Altos-related actions.
357 * altos-xdep.c, config/m68k/altos.mh, altos.mt, tm-altos.h,
358 xm-altos.h: Comment out.
359 * NEWS: Mention obsolete status.
360
3611999-06-24 Jason Molenda (jsm@bugshack.cygnus.com)
362
363 * Makefile.in: Add MAKEHTML and MAKEHTMLFLAGS; pass them down;
364 recognize html and install-html targets.
365 * gdbserver/Makefile.in: Add empty html and install-html targets.
366 * nlm/Makefile.in: Ditto.
367 * rdi-share/Makefile.in: Ditto.
368
3691999-06-24 Jim Blandy <jimb@zwingli.cygnus.com>
370
371 * ax-gdb.c (agent_command): Remove vestigial call to ax_reqs.
372
3731999-06-24 James Ingham <jingham@leda.cygnus.com>
374
375 * arm-tdep.c (arm_othernames): Change both gdb's register display
376 AND the opcode disassembly register naming if the othernames
377 command. Fixes the gdb part of CR 101177.
378
3791999-06-23 Stan Shebs <shebs@andros.cygnus.com>
380
381 Declare Convex configuration obsolete.
382 * configure.host, configure.tgt: Comment out Convex configs.
383 * Makefile.in: Comment out Convex-related actions.
384 * convex-xdep.c, convex-tdep.c, config/convex/*: Comment out.
385 * NEWS: Mention obsolete status.
386
3871999-06-23 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
388
389 * main.c: Turn on async by default by setting async_p to 1.
390
391Wed Jun 23 15:44:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
392
393 From Jimmy Guo <guo@cup.hp.com>:
394 * frame.h (enum lval_type): Delcare when an __STDC__ compiler.
395 Reverts Mon Aug 11 16:08:52 1997 Fred Fish <fnf@cygnus.com>
396 change.
397 * utils.c (gdb_file_rewind, gdb_file_put): Fix. A void function
398 does not return a result.
399
400Wed Jun 23 15:30:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
401
402 * remote.c (set_thread, remote_get_threadinfo,
403 remote_threads_info, remote_current_thread, remote_get_threadlist,
404 extended_remote_restart, get_offsets, remote_open_1,
405 remote_detach, remote_resume, remote_wait, remote_fetch_registers,
406 remote_store_registers, check_binary_download, remote_write_bytes,
407 remote_read_bytes, remote_search, putpkt_binary, putpkt_binary,
408 read_frame, compare_sections_command, remote_query,
409 packet_command, remote_info_process): Use alloca to create space
410 for arrays of size PBUFSIZ.
411
4121999-06-22 Jason Molenda (jsm@bugshack.cygnus.com)
413
414 * top.c: Update copyright years to include 1999.
415
9e0b60a8
JM
4161999-06-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
417
418 * top.c: Move include of event-loop.h, to avoid redefinition of
419 NFDBITS.
420
421 * event-loop.c (create_file_handler): Do not do a realloc of the
422 pollfd structure of the notifier, unless there is already one.
423 Include <sys/types.h> for platforms that have no poll.
424
425 * event-top.c: Fix prototype for _initialize_event_loop.
426 (_initialize_event_loop): Do something only if running in async
427 mode.
428
4291999-06-17 Jim Blandy <jimb@zwingli.cygnus.com>
430
431 Make the '/c' print format use a true character type. This is
432 more appropriate than builtin_type_char for languages other than
433 C, and C tolerates it.
434 * gdbtypes.c (builtin_type_true_char): New variable.
435 (build_gdbtypes): Initialize it.
436 * gdbtypes.h (builtin_type_true_char): New declaration.
437 * printcmd.c (print_scalar_formatted): When the format is 'c',
438 extract the value as a builtin_type_true_char.
439
440 * jv-exp.y (yylex): Say character literals are java_char_type, not
441 builtin_type_char. Java treats the latter like `byte'.
442
4431999-06-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
444
445 * Makefile.in (top_h): Define.
446 (event-loop.o): Add dependencies on top.h and defs.h.
447 (event-top.o): Add dependency on terminal.h.
43ff13b4 448
9e0b60a8
JM
449 * event-loop.c: Get rid of #include <readline.h>.
450
451 * event-loop.h: Get rid of nested #include's.
452 * event-loop.c: Rearrange includes to accomodate change in
453 event-loop.h. Include poll.h, not sys/poll.h.
454 * event-top.c: Ditto.
455 * main.c: Ditto.
456
4571999-06-16 David Taylor <taylor@louisiana.cygnus.com>
458
459 * alpha-tdep.c (alpha_pop_frame): if frame->proc_desc
460 is NULL, call find_proc_desc so we know how to restore
461 the registers.
462
4631999-06-15 Michael Snyder <msnyder@cleaver.cygnus.com>
464
465 * event-top.c (start_event_loop): call get_prompt.
466 (display_gdb_prompt): call get_prompt.
467 (async_stop_sig): call get_prompt.
468
4691999-06-15 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
470
471 * event-loop.c (delete_file_handler): When positioning prev_ptr,
472 keep looping while the one after is not equal to file_ptr, instead
473 of equal.
474
0f71a2f6
JM
4751999-06-14 Stan Shebs <shebs@andros.cygnus.com>
476
477 * MAINTAINERS: Add Jimmy Guo and Jim Blandy as HP testsuite and
478 SVR4 solib maintainers, respectively.
479
4801999-06-14 Michael Snyder <msnyder@cleaver.cygnus.com>
481
482 Add parameters to the gdb prompt.
483 * top.c (prompt): Rename to gdb_prompt_string for clarity.
484 (command_line_input): rename "prrompt" to prompt_arg for clarity.
485 (gdb_readline): rename "prrompt" to prompt_arg for clarity.
486 (read_command_lines): rename "prompt" to prompt_arg for clarity.
487 (stop_sig): call get_prompt instead of reading prompt string directly.
488 (command_loop): ditto.
0f71a2f6
JM
489 (gdb_prompt_escape): New variable. Esc char for prompt parameters.
490 (get_prompt_1): New function, workhorse for get_prompt.
491 (get_prompt): Completely rewrite. Add functionality for a
492 parameterized prompt, ie. the displayed prompt can change according
493 to the value of one or more expressions given as parameters in the
494 prompt string.
495 (init_main): use renamed variable gdb_prompt_string. Add new
496 command "set prompt-escape-char" to set gdb_prompt_escape.
497
498Sun Jun 13 10:44:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
499
500 * defs.h (gdb_stdlog), main.c: Declare.
501 * main.c (main): Initialize.
502 * gdbarch.c: Write trace messages to the log file.
503 * remote.c: Update any debug/log prints.
504
5051999-06-11 Michael Snyder <msnyder@cleaver.cygnus.com>
506
507 * remote.c (remote_wait): Clean up new thread handling.
508 (record_currthread): Announce new threads.
509
5101999-06-11 Jim Blandy <jimb@zwingli.cygnus.com>
511
512 * partial-stab.h (case N_LSYM, 'T' descriptor): Don't create
513 partial symbol table entries for nameless enums, even if the type
514 name is " ". (We still pick up the enum elements, though.)
515
516 * partial-stab.h: Remove #if 0'd sections, dating back to 1992,
517 which set a variable which exists nowhere else in the source.
518 Please examine your test suite output carefully, and report any
519 problems to me.
520
5211999-06-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
522
523 * event-top.c (setup_event_loop): Change name to start_event_loop.
524 Move the intialization of event-loop variables to
525 _initialize_event_loop.
526 (_initialize_event_loop): New function. Called at init time, to
527 set up important event-loop variables.
528
529 * event-loop.h: setup_event_loop is now start_event_loop.
530 * main.c (main): Ditto.
531
532Fri Jun 11 18:34:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
533
534 * defs.h (gdb_file_rewind_ftype, gdb_file_rewind,
535 set_gdb_file_rewind, gdb_file_put_ftype, gdb_file_put,
536 set_gdb_file_put): Declare.
537
538 * utils.c (gdb_file_new): Initialize ``rewind'' and ``put''.
539 (struct gdb_file): Add to_rewind and to_put.
540 (null_file_put, null_file_rewind, gdb_file_put, gdb_file_rewind,
541 set_gdb_file_put, set_gdb_file_rewind): New functions.
542 (tui_file_rewind, tui_file_put): New functions.
543 (tui_file_new): Add rewind and put.
544
545Fri Jun 11 15:10:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
546
547 * d10v-tdep.c (d10v_push_arguments): Fix order of arguments passed
548 to store_address.
549
550Fri Jun 11 10:31:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
551
552 * remote.c (tty_input): Change array to pointer.
553 (_initialize_remote): Call build_remote_gdbarch_data.
554 (build_remote_gdbarch_data): New function. Allocate space for
555 tty_input.
556 (readsocket, readtty): Delete extern declaration of tty_input.
557
5581999-06-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
559
560 * event-top.c (gdb_readline2): Call the command handling function
561 via the input_handler pointer.
562 (change_line_handler): When turning off editing, set input_handler
563 as well.
564
565 * utils.c (prompt_for_continue): If running asynchronously, call
566 async_request_quit, instead of request_quit.
567
568 * tracepoint.c (read_actions): If running asynchronously, set the
569 signal handler for STOP_SIGNAL to handle_stop_sig.
570
571 * top.h: (source_line_number, source_file_name, source_error,
572 source_pre_error, history_expansion_p, server_command): export for
573 use of event-top.c.
574
575 * event-top.c: Include top.h and terminal.h.
576 (instream): Remove extern declaration.
577 (handle_sigint, handle_sigquit, handle_sighup, handle_sigfpe,
578 handle_sigwinch, async_do_nothing, async_disconnect,
579 async_float_handler, async_stop_sig): Make static.
580 (async_request_quit, async_do_nothing, async_disconnect,
581 async_float_handler, async_stop_sig): Add gdb_glient_data
582 argument.
583 (handle_stop_sig): New function.
584 (sigtstp_token): New variable.
585 (sigint_token, sigquit_token, sigfpe_token, sigwinch_token):
586 Change their type tp PTR.
587 (mark_async_signal_handler_wrapper): New function.
588 (setup_event_loop): Initialize all the variables used by readline
589 only if not already done while reading the .gdbinit file. Display
590 the initial gdb prompt, if .gdbinit took care of setting things up
591 for readline.
592 (change_line_handler): When turning on the use of readline,
593 initialize input_handler as well.
594 (command_line_handler): Set up the signal handler for STOP_SIGNAL
595 to be handle_stop_sig.
596 (async_init_signals): Remove coercion of signal handlers in calls
597 to create_async_signal_handler. Initialize token for stop signal.
598 (handle_sigint): Call async_request_quit using one argument.
599 (handle_sigint, handle_sigquit, handle_sighup, handle_sigfpe,
600 handle_sigwinch): Call mark_async_signal_handler_wrapper instead
601 of mark_async_signal_handler.
602
603 * event-loop.h: Add extern declarations for handle_stop_sig,
604 async_command_editing_p, async_annotation_suffix,
605 new_async_prompt, the_prompts.
606
607 * top.c (command_line_input): Set the signal handler to be
608 handle_stop_sig, in case gdb is running asynchronously.
609 (get_prompt): Return the top of the prompt stack if running
610 asynchronously.
611 (set_prompt): Set the top of the prompt stack if running
612 asynchronously.
613 (init_main): Move ``extern'' vars from here to event-loop.h.
614
6151999-06-10 Michael Snyder <msnyder@cleaver.cygnus.com>
616
617 * values.c (value_from_string): new function. Make a value_ptr
618 from a string, with storage in local GDB memory (not in inferior).
619 * value.h (value_from_string): add prototype.
620 * remote.c (remote_cisco_ops): New remote target, "target cisco".
621 (init_remote_cisco_ops): New function, initialize new target.
622 (remote_cisco_mourn, remote_cisco_wait, remote_cisco_open,
623 remote_cisco_close): New functions, implement new target cisco.
624 (minitelnet, readtty, readsocket) New functions, implement the
625 I/O pass-through mode for target cisco.
626 (remote_wait): Detect special enhanced version of the 'S' packet
627 for target cisco.
628 (remote_cisco_expand): Perform Cisco variant of RLL decoding.
629
6301999-06-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
631
632 * event-loop.c (gdb_wait_for_event): Initialize num_found to 0.
633
634 * top.c (print_prompt): Delete this function.
635
636 From: Andrew Cagney <cagney@b1.cygnus.com>
637
638 * event-top.c (async_hook): Delete extern declaration.
639
640 * defs.h: Replace ``async_hook'' with ``async_p''.
641 * top.c (gdb_init, init_main, init_main, init_main, init_main):
642 Replace ``async_hook'' with ``async_p''.
643
644 * main.c: Rename ``async'' to ``async_p''.
645 (main): Add --noasync option.
646 (main): Hook in the asynchronous event-loop based CLI using
647 command_loop_hook instead of async_hook. Delete call to
648 async_hook().
649
650Thu Jun 10 21:14:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
651
652 * mn10300-tdep.c (mn10300_store_return_value,
653 mn10300_extract_struct_value_address,
654 mn10300_extract_return_value), config/mn10300/tm-mn10300.h: New
655 functions.
656 * config/mn10300/tm-mn10300.h (EXTRACT_STRUCT_VALUE_ADDRESS,
657 STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE): Update.
658 (TARGET_MN10300): Delete macro. Not used.
659
660Thu Jun 10 20:04:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
661
662 * mn10300-tdep.c (mn10300_register_names): Make static.
663 (STORE_STRUCT_RETURN): Do not modify SP.
664
665 * config/mn10300/tm-mn10300.h(mn10300_register_name),
666 mn10300-tdep.c : New function.
667 * config/mn10300/tm-mn10300.h (REGISTER_NAME): Update.
668 * config/mn10300/tm-mn10300.h (mn10300_saved_pc_after_call),
669 mn10300-tdep.c: New function.
670 * config/mn10300/tm-mn10300.h (SAVED_PC_AFTER_CALL): Update.
671
6721999-06-09 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
673
674 * rs6000-tdep.c (skip_prologue): Don't mistake a branch for a
675 subroutine call.
676
6771999-06-08 Michael Snyder <msnyder@cleaver.cygnus.com>
678
679 * remote.c (remote_wait): Add 'N' response packet, which is a
680 stop with signal number plus section offsets for .text, .data and
681 .bss. This is used by Cisco to indicate relocation offsets.
682 (remote_cisco_section_offsets, remote_cisco_objfile_relocate):
683 new files to support 'N' packet.
684 (remote_info_process): New function. Implements the
685 "info remote-process" command, by means of which the remote target
686 can report anything it wants to about the remote process/app being
687 debugged.
688 (_initialize_remote): add info remote-proc command.
689 (remote_threads_info): New function for "info threads" command.
690 Attempts to use new query "qfThreadInfo" instead of the old
691 undocumented query.
692 * exec.c (exec_set_section_offsets) new files to support 'N' packet.
693
694Tue Jun 8 13:33:42 1999 Andrew Cagney <cagney@amy.cygnus.com>
695
696 * inferior.h (generic_target_read_pc, generic_target_write_pc,
697 generic_target_read_fp, generic_target_write_fp,
698 generic_target_read_sp, generic_target_write_sp): Declare new
699 functions.
700 * findvar.c (generic_target_read_pc, generic_target_write_pc,
701 generic_target_read_fp, generic_target_write_fp,
702 generic_target_read_sp, generic_target_write_sp): New functions.
703 (TARGET_READ_PC, TARGET_WRITE_PC, TARGET_READ_FP, TARGET_WRITE_FP,
704 TARGET_READ_SP, TARGET_WRITE_SP): Default to corresponding generic
705 function.
706 (write_pc_pid, write_pc_pid, read_sp, write_sp, read_fp,
707 write_fp): Simplify.
708
709 * gdbarch.c (verify_gdbarch): Always verify TARGET_PTR_BIT,
710 TARGET_SHORT_BIT, TARGET_INT_BIT, TARGET_LONG_BIT,
711 TARGET_LONG_LONG_BIT, TARGET_FLOAT_BIT, TARGET_DOUBLE_BIT,
712 TARGET_LONG_DOUBLE_BIT, TARGET_READ_PC, TARGET_WRITE_PC,
713 TARGET_READ_FP, TARGET_WRITE_FP, TARGET_READ_SP, TARGET_WRITE_SP,
714 USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY_BREAKPOINT_OFFSET_P,
715 CALL_DUMMY_P, CALL_DUMMY_STACK_ADJUST_P, GET_SAVED_REGISTER,
716 REGISTER_CONVERTIBLE, PUSH_ARGUMENTS, PUSH_RETURN_ADDRESS,
717 FRAME_CHAIN_VALID.
718 (GET_GDBARCH, SET_GDBARCH): Delete macros. Implement functions
719 directly.
720 * gdbarch.h, gdbarch.c: Call fatal() instead of abort(). Identify
721 the function / macro with a problem. Always verify a architecture
722 attribute before returning it.
723 * gdbarch.h, gdbarch.c (generic_register_convertible_not): New
724 function.
725
726 * mips-tdep.c (mips_push_return_address): New function.
727 * config/mips/tm-mips.h (PUSH_RETURN_ADDRESS): Define.
728
729 * mips-tdep.c (mips_gdbarch_init): Initialize short_bit,
730 double_bit, long_double_bit, read_pc, write_pc, read_fp, write_fp,
731 read_sp, write_sp, frame_chain_valid, get_saved_register,
732 push_arguments, push_return_address, register_convertible,
733 call_dummy_p, use_generic_dummy_frames,
734 call_dummy_breakpoint_offset_p, call_dummy_stack_adjust_p,
735 call_dummy_words and sizeof_call_dummy_words.
736 * config/mips/tm-mips.h: Don't define CALL_DUMMY when multi-arch.
737
cce74817
JM
7381999-06-07 Keith Seitz <keiths@cygnus.com>
739
740 * v850ice.c (init_hidden_window): Do not rely on the existence of
741 a gui for window creation. Return boolean status.
742 (v850ice_open): Use boolean status of init_hidden_window.
743 Allow any ICE execution command to run under CLI. Maybe one
744 day gdb will use a real event loop and allow this code to run.
745 * configure.tgt: Configure the v850 ice for all cygwin-hosted
746 toolchains.
747
748Mon Jun 7 23:37:26 1999 Andrew Cagney <cagney@amy.cygnus.com>
749
750 * config/mips/tm-mips.h (EXTRA_FRAME_INFO): Delete.
751 * mips-tdep.c (mips_init_extra_frame_info): Allocate saved_regs.
752 (temp_saved_regs): Replace struct with a simple pointer.
753 (set_reg_offset, mips32_heuristic_proc_desc, heuristic_proc_desc,
754 mips_init_extra_frame_info): Update.
755
756Mon Jun 7 21:40:12 1999 Andrew Cagney <cagney@amy.cygnus.com>
757
758 * config/mips/tm-mips.h (EXTRA_FRAME_INFO): Move elements from here.
759 * mips-tdep.c (struct frame_extra_info): To here.
760
761 * mips-tdep.c (mips_print_extra_frame_info, mips_find_saved_regs,
762 mips_init_extra_frame_info, mips_pop_frame): Update
763 (mips_init_extra_frame_info): Allocate space for the extra info.
764
765Mon Jun 7 21:08:50 1999 Andrew Cagney <cagney@amy.cygnus.com>
766
767 * config/mips/tm-mips.h (mips_init_extra_frame_info), mips-tdep.c:
768 Rename init_extra_frame_info. Add argument ``fromleaf''.
769
770 * config/mips/tm-mips.h (mips_print_extra_frame_info),
771 mips-tdep.c: New function.
772 (PRINT_EXTRA_FRAME_INFO): Update definition.
773
774Mon Jun 7 20:11:07 1999 Andrew Cagney <cagney@amy.cygnus.com>
775
776 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
777 config/mips/tm-tx19.h, config/mips/tm-tx19l.h,
778 config/mips/tm-tx39.h, config/mips/tm-tx39l.h: Rename macro
779 REGISTER_NAMES to MIPS_REGISTER_NAMES.
780
781 * config/mips/tm-mips.h (REGISTER_NAME): Define.
782 * mips-tdep.c (mips_processor_reg_names): New static variable.
783 (mips_register_name): New function.
784 (mips_set_processor_type): Update mips_processor_reg_names.
785 (mips_generic_reg_names): Initialize using MIPS_REGISTER_NAMES.
786
787Sun Jun 6 11:09:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
788
789 * remote.c (PBUFSIZ): Re-define so that value is computed at
790 run-time.
791 (MAXBUFBYTES): Re-define as a macro function.
0f71a2f6
JM
792 * gdbarch.h, gdbarch.c: Add multi-arch support for REGISTER_BYTES.
793 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
cce74817
JM
794
7951999-06-05 Fernando Nasser <fnasser@totem.to.cygnus.com>
796
797 * symtab.c (decode_line_1): Accept filenames with spaces in
798 'linespecs' when enclosed in double quotation marks and handle
799 drive specification is DOS format (D:).
800
8011999-06-04 Jim Blandy <jimb@zwingli.cygnus.com>
802
803 * parse.c: Don't include <ctype.h> twice.
804
8051999-06-04 David Taylor <taylor@louisiana.cygnus.com>
806
807 Sat May 15 12:16:09 1999 Per Bothner <bothner@deneb.cygnus.com>
808
809 * eval.c (evaluate_subexp_standard): Remove Gilmore rant.
810 (Of course C has "expected types", at least if you allow
811 brace-initializer expressions - as in Gcc.)
812 Remove NULLing out expect_type. Do pass NULL_TYPE in place
813 the incoming expect_type where appropriate.
814
815Fri Jun 4 10:56:23 1999 Jeffrey A Law (law@cygnus.com)
816
817 * hppa-tdep.c (hppa_fix_call_dummy): Make it work for GCC compiled
818 executables without end.o. Clean up lots of mis-guided comments.
819
820Fri Jun 4 17:10:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
821
822 * parser-defs.h (std_regs): Replace array with pointer.
823 * parse.c (build_parse): Build the std_regs table according to the
824 standard registers available.
0f71a2f6
JM
825 (_initialize_parse): Register std_regs and num_std_regs as
826 architecture specific.
827 * gdbarch.h, gdbarch.c: Add multi-arch support for SP_REGNUM,
828 FP_REGNUM, PC_REGNUM, NUM_REGS, REGISTER_NAME.
829 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
cce74817
JM
830
8311999-06-03 Michael Snyder <msnyder@cleaver.cygnus.com>
832
833 * thread.c: eliminate the target_thread_vector (functionality
834 moved into the standard target vector).
835 * gdbthread.h: eliminate target_thread_vector. Move all related
836 defines into remote.c, since they are no longer shared with thread.c.
837 * remote.c: eliminate the target_thread_vector.
838 (remote_find_new_threads): change return type to void, consistent
839 with the target vector table. (cont_thread): rename continue_thread.
840 (record_currthread): remove dead code. (remote_thread_alive):
841 clean up and simplify. (threadref etc.): move definitions to here
842 from gdbthread.h.
843
8441999-06-02 Jason Molenda (jsm@bugshack.cygnus.com)
845
846 * inftarg.c (child_create_inferior): Remove dead HPUX specific code
847 which tries to find csh.
848 * fork-child.c: Remove DEBUGGING predefine and conditionalized
849 printfs.
850 (fork_inferior): Remove dead HPUX specific code which assumes shell
851 is csh.
852
853 * hppa-tdep.c: Remove DEBUGGING and #if 0 debugging printfs.
854 * parse.c: Ditto.
855 * somread.c: Ditto.
856
0f71a2f6
JM
857 * gdbarch.h: Forward decl of struct value.
858
cce74817
JM
859Thu Jun 3 10:12:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
860
861 * d10v-tdep.c (do_d10v_pop_frame): Rename d10v_pop_frame. Make
862 static.
863 * d10v-tdep.c (d10v_pop_frame), config/d10v/tm-d10v.h: New
864 function. Call generic_pop_current_frame.
865 * config/d10v/tm-d10v.h (POP_FRAME): Update.
866 * gdbarch.h, gdbarch.c (frame_num_args_unknown): New function.
0f71a2f6
JM
867 * gdbarch.h, gdbarch.c: Add multi-arch support for POP_FRAME,
868 SKIP_PROLOGUE, INNER_THAN, DECR_PC_AFTER_BREAK,
869 FUNCTION_START_OFFSET, REMOTE_TRANSLATE_XFER_ADDRESS, FRAME_CHAIN,
870 FRAME_CHAIN_VALID, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS,
871 FRAME_LOCALS_ADDRESS, FRAME_ARGS_SKIP,
872 FRAMELESS_FUNCTION_INVOCATION, REGISTER_BYTE, REGISTER_RAW_SIZE,
873 REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, SAVED_PC_AFTER_CALL,
874 FRAME_NUM_ARGS, MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
875 REGISTER_SIZE.
876 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
cce74817
JM
877 * config/d10v/tm-d10v.h (DMEM_START, IMEM_START, STACK_START,
878 ARG1_REGNUM, ARGN_REGNUM, RET1_REGNUM): Move definitions from
879 here.
880 * d10v-tdep.c: To here.
881 * config/d10v/tm-d10v.h (struct type): Move declaration from here.
882 * gdbarch.h: To here.
883 * config/d10v/tm-d10v.h (struct frame_info, struct
884 frame_saved_regs, struct type): Delete declarations.
885
8861999-06-02 Robert Hoehne <robert.hoehne@gmx.net>
887
888 * go32-nat.c: go32_terminal_init, go32_terminal_inferior and
889 go32_terminal_ours are new functions to save/restore the inferior`s
890 stdin/stdout filemodes
891
8921999-06-02 Stan Shebs <shebs@andros.cygnus.com>
893
894 * MAINTAINERS: Add Mark Kettenis, Jeff Law, and Philippe De Muyter
895 as maintainers for Hurd, HP/UX, and COFF, respectively.
896
8971999-06-02 Mark Kettenis <kettenis@gnu.org>
898
899 * gnu-nat.c (inf_continue): New function.
900 (struct inf): Use `unsigned int' instead of `int' for bit-fields.
901 Add new bit-field named `nomsg'.
902 (inf_validate_procinfo): Renamed from inf_validate_stopped, all
903 callers changed. Also update the `nomsg' and `traced' fields of
904 INF.
905 (make_inf): Initialize INF->nomsg.
906 (inf_cleanup): Reset INF->nomsg.
907 (inf_detach): Call `inf_validate_procinfo'. Call `inf_continue'
908 instead of `inf_signal' if the inferior does not have a message
909 port.
910 (gnu_resume): Likewise.
911 (gnu_create_inferior): Reset INF->nomsg in `attach_to_child'.
912 Call `inf_validate_procinfo' after returning from `fork_inferior'.
913 (gnu_attach): Update signal thread and tracing state.
914
915 * config/i386/tm-i386gnu.h: Include "i386/tm-i386.h" instead of
916 "i386/tm-i386v.h".
917 (STACK_END_ADDR): Remove.
918 (SIGCONTEXT_PC_OFFSET): New define.
919 Include "tm-sysv4.h".
920
9211999-06-02 J.T. Conklin <jtc@redback.com>
922
923 * config/tm-vxworks.h: New file, header for definitions common to
924 all vxWorks targets.
925 * config/a29k/tm-vx29k.h, config/i960/tm-vx960.h,
926 config/m68k/tm-vx68.h, config/mips/tm-vxmips.h,
927 config/sparc/tm-vxsparc.h: Include tm-vxworks.h.
928
929Wed Jun 2 17:37:03 1999 Jeffrey A Law (law@cygnus.com)
930
931 * config/pa/tm-hppa.h (IMPORT_SHLIB): New unwind stub type.
932
9331999-06-02 Christopher Faylor <cgf@cygnus.com>
934
935 * configure.tgt: Alphabetically reorder some targets.
936
9371999-06-02 Keith Seitz <keiths@cygnus.com>
938
939 * v850ice.c (v850ice_xfer_memory): Insert lost "break".
940
9411999-06-02 Jim Blandy <jimb@zwingli.cygnus.com>
942
943 * rs6000-tdep.c (variants): Fix description of 750 register set.
944 (Thanks to J. T. Conklin.)
945
946Wed Jun 2 16:10:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
947
0f71a2f6
JM
948 * gdbarch.h, gdbarch.c: Add multi-arch support for
949 STORE_STRUCT_RETURN, STORE_RETURN_VALUE,
950 EXTRACT_STRUCT_VALUE_ADDRESS, USE_STRUCT_CONVENTION,
951 FRAME_INIT_SAVED_REGS and INIT_EXTRA_FRAME_INFO.
952 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
953
cce74817
JM
954 * config/d10v/tm-d10v.h (FRAME_INIT_SAVED_REGS): Replace
955 FRAME_FIND_SAVED_REGS.
956 (d10v_frame_init_saved_regs): Replace d10v_frame_find_saved_regs.
957 * d10v-tdep.c (d10v_pop_frame, d10v_frame_chain,
958 d10v_frame_init_saved_regs): Update.
0f71a2f6
JM
959 * gdbarch.h: Disallow FRAME_FIND_SAVED_REGS when multi-arch.
960
961 * gdbarch.h, gdbarch.c: Add multi-arch support for
962 D10V_MAKE_DADDR, D10V_MAKE_IADDR, D10V_DADDR_P, D10V_IADDR_P,
963 D10V_CONVERT_DADDR_TO_RAW and D10V_CONVERT_IADDR_TO_RAW.
964 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
cce74817
JM
965
966 * config/d10v/tm-d10v.h (EXTRA_FRAME_INFO): Delete.
967 * d10v-tdep.c (struct frame_extra_info): Define.
968 (d10v_init_extra_frame_info, d10v_pop_frame, d10v_frame_chain,
969 d10v_frame_find_saved_regs): Update.
0f71a2f6 970 * gdbarch.h: Disallow EXTRA_FRAME_INFO when multi-arch.
cce74817
JM
971
972Tue Jun 1 13:36:31 1999 Philippe De Muyter <phdm@macqel.be>
973
974 * config/m68k/tm-delta68.h (FRAME_NUM_ARGS): Macro prototype fixed.
975 * config/m68k/tm-news.h, config/ns32k/tm-merlin.h: Ditto.
976 * config/ns32k/tm-umax.h (FRAME_NUM_ARGS): Old macro definition
977 removed; new macro prototype fixed.
978
979Wed Jun 2 11:18:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
980
0f71a2f6
JM
981 * gdbarch.h, gdbarch.c: Add multi-arch support for
982 EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS, PUSH_DUMMY_FRAME,
983 PUSH_RETURN_ADDRESS, POP_FRAME, FRAME_FIND_SAVED_REGS.
984 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
985
986 * gdbarch.h, gdbarch.c: Add multi-arch support for
987 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
988 REGISTER_CONVERT_TO_RAW.
989 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
990
cce74817
JM
991 * defs.h (REGISTER_NAME): Move compatibility definition from here.
992 * gdbarch.h: To here.
993
994 * frame.h, blockframe.c (generic_fix_call_dummy): New
995 stub function.
0f71a2f6
JM
996 * gdbarch.h, gdbarch.c: Add multi-arch support for FIX_CALL_DUMMY.
997 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
998
999Tue Jun 1 20:06:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
1000
1001 * d10v-tdep.c (d10v_gdbarch_init): Set get_saved_register.
1002 * config/d10v/tm-d10v.h: Update.
1003
1004Tue Jun 1 19:50:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
1005
1006 * gdbarch.h, gdbarch.c: Add multi-arch support for TARGET_READ_PC,
1007 TARGET_WRITE_PC, TARGET_READ_FP, TARGET_WRITE_FP, TARGET_READ_SP
1008 and TARGET_WRITE_SP.
1009 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
1010
1011Tue Jun 1 19:19:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
1012
1013 * gdbarch.c (default_gdbarch): Set field GET_SAVED_REGISTER to
1014 generic_get_saved_register.
1015 * gdbarch.c: Change update dispatch functions so that they check
1016 for a NULL function pointer.
1017
1018Tue Jun 1 19:19:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
cce74817 1019
0f71a2f6
JM
1020 * gdbarch.h, gdbarch.c: Add multi-arch support for TARGET_INT_BIT,
1021 TARGET_CHAR_BIT, TARGET_SHORT_BIT, TARGET_FLOAT_BIT,
1022 TARGET_DOUBLE_BIT and TARGET_LONG_DOUBLE_BIT.
1023 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
1024
ac9a91a7
JM
1025Tue Jun 1 18:47:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
1026
1027 * parse.c (build_parse): New function. Initialize
1028 msym_text_symbol_type, msym_data_symbol_type and
1029 msym_unknown_symbol_type.
1030 (_initialize_parse): Call build_parse.
0f71a2f6
JM
1031 (_initialize_parse): Register variables msym_text_symbol_type,
1032 msym_data_symbol_type as msym_unknown_symbol_type as
1033 per-architecture.
1034
1035Tue Jun 1 11:30:09 1999 Andrew Cagney <cagney@b1.cygnus.com>
1036
1037 * d10v-tdep.c (_initialize_d10v_tdep): Register d10v as an
1038 architecture.
1039 (d10v_gdbarch_init): New function.
1040 * confg/d10v/tm-d10v.h (GDB_MULTI_ARCH): Define.
ac9a91a7
JM
1041
1042Tue Jun 1 10:45:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
1043
1044 * config/d10v/tm-d10v.h (REGISTER_CONVERTIBLE,
1045 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERT_TO_VIRTUAL): Convert
1046 macros into functions.
1047 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_register_convertable,
1048 d10v_register_convert_to_virtual, d10v_register_convert_to_raw):
1049 The new functions.
1050
10511999-05-31 Fernando Nasser <fnasser@totem.to.cygnus.com>
1052
1053 * stack.c (print_args_stub): Add missing stream parameter.
1054
1055Mon May 31 15:50:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
1056
1057 Fri May 28 16:51:00 1999 Martin Dorey <martin.dorey@madge.com>:
1058 * valops.c, value.h (default_push_arguments): Fix order of
1059 parameters to match PUSH_ARGUMENTS arguments.
1060
1061Thu May 27 11:42:55 1999 Andrew Cagney <cagney@b1.cygnus.com>
1062
1063 * gdbarch.h (EXTRACT_STRUCT_VALUE_ADDRESS): Return 0.
1064
1065 * valops.c (value_assign): Delete redundant test of
1066 REGISTER_CONVERTIBLE.
1067
1068Thu May 27 11:33:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
1069
1070 * config/w65/tm-w65.h, config/tic80/tm-tic80.h, config/sh/tm-sh.h,
1071 config/i386/tm-i386m3.h, config/i386/tm-go32.h,
1072 config/i386/tm-cygwin.h, config/h8500/tm-h8500.h,
1073 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h: Delete definition of
1074 macro NAMES_HAVE_UNDERSCORE.
1075
1076Thu May 27 09:31:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
1077
1078 * gdbarch.h (EXTRACT_STRUCT_VALUE_ADDRESS,
1079 EXTRACT_STRUCT_VALUE_ADDRESS_P): Provide default definitions.
1080 * values.c (value_being_returned): Use
1081 EXTRACT_STRUCT_VALUE_ADDRESS when EXTRACT_STRUCT_VALUE_ADDRESS_P.
1082
1083Wed May 26 13:51:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
1084
1085 * utils.c (tui_file_new, tui_file_delete, tui_fileopen): New
1086 functions.
1087 (tui_file_isatty): Rename gdb_file_isatty.
1088 (gdb_file_init_astring): Use tui_file_new to create stream.
1089 (gdb_file_get_strbuf, gdb_file_adjust_strbuf): Call gdb_file_data
1090 to access the tui_stream.
1091 (tui_file_flush): Rename gdb_flush. Call gdb_file_data to access
1092 the tui_stream. Pass FILE and not STREAM down.
1093
1094 * utils.c (struct stdio_file, stdio_file_flush, stdio_file_fputs,
1095 stdio_file_isatty, stdio_file_delete, stdio_file_new,
1096 stdio_fileopen): Define type and functions. Implement a simple
1097 STDIO based gdb_file.
1098 (struct gdb_file, gdb_file_new, gdb_file_delete, null_file_isatty,
1099 null_file_flush, null_file_fputs, null_file_delete, gdb_file_data,
1100 set_gdb_file_flush, set_gdb_file_isatty, set_gdb_file_fputs,
1101 set_gdb_file_data, fputs_unfiltered, gdb_flush, gdb_file_isatty):
1102 Define type and functions. Implement virtual functions for
1103 gdb_file.
1104
1105 * defs.h (struct gdb_file): Declare.
1106 (GDB_FILE): Change type to struct gdb_file. Deprecate.
1107 (gdb_file_flush_ftype, gdb_file_fputs_ftype,
1108 gdb_file_isatty_ftype, gdb_file_delete_ftype): Add function type
1109 declarations.
1110
1111 * defs.h (set_gdb_file_flush, set_gdb_file_fputs,
1112 set_gdb_file_isatty, set_gdb_file_data, gdb_file_new,
1113 gdb_file_delete, gdb_file_data, stdio_fileopen, tui_fileopen): Add
1114 function declarations.
1115 (gdb_fopen): Re-implement. Call stdio_file_new.
1116 (gdb_fclose): Re-implement. Call gdb_file_delete.
1117
1118 * main.c (tui_file_fputs): Rename fputs_unfiltered. Use
1119 gdb_file_data to gain access to the tui_stream data. Use FILE
1120 instead of STREAM where applicable.
1121 (main): Create gdb_stdout and gdb_stderr using tui_fileopen.
1122
1123 * defs.h (struct tui_stream): Add field ts_magic.
1124 * utils.c (tui_file_magic): Local variable.
1125 (tui_file_new): Set field ts_magic.
1126 (tui_file_delete, tui_file_isatty, gdb_file_init_astring,
1127 gdb_file_get_strbuf, gdb_file_adjust_strbuf, tui_file_flush):
1128 Verify ts_magic.
1129
11301999-05-25 Jim Blandy <jimb@zwingli.cygnus.com>
1131
1132 * breakpoint.c (insert_breakpoints, remove_breakpoint,
1133 breakpoint_1): Add a 'default' case, which prints a warning
1134 message, to remove EGCS warnings.
1135
392a587b
JM
11361999-05-25 Fernando Nasser <fnasser@totem.to.cygnus.com>
1137
1138 * utils.c (gdb_file_adjust_strbuf): Take into account the
1139 possibility that the buffer has not been allocated yet.
1140
1141Tue May 25 16:05:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
1142
1143 * gdbarch.h (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
1144 REGISTER_CONVERT_TO_RAW): Provide default definition.
1145
1146 * valops.c (value_assign), infcmd.c (do_registers_info), findvar.c
1147 (value_from_register, value_of_register): Remove #ifdef
1148 REGISTER_CONVERTIBLE. Assume REGISTER_CONVERTIBLE etc defined.
1149
1150Tue May 25 16:18:25 1999 Andrew Cagney <cagney@amy.cygnus.com>
1151
1152 * remote-d10v.c (d10v_eva_prepare_to_trace,
1153 d10v_eva_get_trace_data), remote-sim.c (_initialize_remote_sim):
1154 Add declaraton. Make static.
1155
1156 * remote-d10v.c (_initialize_remote_d10v), d10v-tdep.c
1157 (_initialize_d10v_tdep): Add declaration.
1158 * config/d10v/tm-d10v.h (d10v_frame_chain): Add declaration.
1159
1160Tue May 25 15:20:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
1161
1162 * main.c (init_proc, proc_remove_foreign): Delete function.
1163 * inftarg.c (child_mourn_inferior): Update. Delete call to
1164 proc_remove_foreign().
1165 * top.c (gdb_init): Update. Delete call to init_proc().
1166
1167 * utils.c (pollquit, fmthex, hexlate): Delete function.
1168
1169Tue May 25 13:01:43 1999 Andrew Cagney <cagney@amy.cygnus.com>
1170
1171 * main.c (gdb_init): Move declaration from here.
1172 * top.h: To here.
1173
1174 * defs.h (init_page_info): Add declaration.
1175
1176 * top.c (initialize_utils): Move declaration from here.
1177 * defs.h: To here.
1178
1179 * infcmd.c (target_map_name_to_register): Move declaration from
1180 here.
1181 * parser-defs.h: To here.
1182
1183 * c-typeprint.c (cp_type_print_method_args), target.c
1184 (nosupport_runtime, normal_target_post_startup_inferior): Add
1185 declaration. Make static.
1186
1187Tue May 25 13:53:23 1999 Andrew Cagney <cagney@amy.cygnus.com>
1188
1189 * main.c: Include "event-loop.h".
1190 * Makefile.in (main.o): Add dependency.
1191
1192 * top.h (setup_event_loop, async_init_signals), top.c
1193 (set_async_editing_command, set_async_annotation_level,
1194 set_async_prompt), event-loop.c (display_gdb_prompt): Move
1195 declarations from here.
1196 * event-loop.h: To here.
1197
1198 * event-loop.h (delete_async_signal_handler): Add function
1199 declaration.
1200
1201 * event-top.c (change_annotation_level, command_handler): Add
1202 declaration. Make static.
1203
1204Tue May 25 12:44:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
1205
1206 * tracepoint.c (free_actions_list, add_register): Add declaration.
1207 Make static.
1208 (free_actions_list_cleanup_wrapper): New function. Wraps
1209 free_actions_list for make_cleanup.
1210 (trace_start_command): Pass free_actions_list_cleanup_wrapper
1211 instead of free_actions_list to make_cleanup.
1212 (_initialize_tracepoint): Add extern declaration.
1213
1214Tue May 25 12:23:39 1999 Andrew Cagney <cagney@amy.cygnus.com>
1215
1216 * jv-typeprint.c (java_type_print_base, jv-valprint.c
1217 (java_print_value_fields): Add static declaration.
1218
1219 * jv-lang.c (java_lookup_type, get_java_utf8_name,
1220 java_lookup_type): Add static declaration.
1221 (get_java_class_symtab, java_class_is_primitive,
1222 java_value_string): Add declaration. Make static.
1223 (java_rerun_cleanup): Add extern declaration for this stub
1224 function.
1225
0f71a2f6
JM
1226Tue May 25 12:06:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
1227
1228 * gdbarch.h: When multi-arch, check that REGISTER_NAMES was not
1229 defined.
1230
392a587b
JM
1231Mon May 24 16:16:29 1999 Andrew Cagney <cagney@amy.cygnus.com>
1232
1233 * inflow.c (_initialize_inflow), annotate.c
1234 (_initialize_annotate), os9kread.c (_initialize_os9kread),
1235 serial.c (_initialize_serial), nlmread.c (_initialize_nlmread),
1236 f-valprint.c (_initialize_f_valprint), cp-valprint.c
1237 (_initialize_cp_valprint), typeprint.c (_initialize_typeprint),
1238 complaints.c (_initialize_complaints), scm-lang.c
1239 (_initialize_scheme_language), m2-lang.c
1240 (_initialize_m2_language), dbxread.c (_initialize_dbxread),
1241 f-lang.c (_initialize_f_language), ch-lang.c
1242 (_initialize_chill_language), c-lang.c (_initialize_c_language),
1243 corefile.c (_initialize_core), stabsread.c
1244 (_initialize_stabsread), mipsread.c (_initialize_mipsread),
1245 elfread.c (_initialize_elfread), coffread.c
1246 (_initialize_coffread), maint.c (_initialize_maint_cmds),
1247 demangle.c (_initialize_demangler), maint.c
1248 (_initialize_maint_cmds), language.c (_initialize_language): Add
1249 external declaration.
1250
1251Mon May 24 10:04:56 1999 Andrew Cagney <cagney@b1.cygnus.com>
1252
1253 * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/v850/tm-v850.h,
1254 config/tic80/tm-tic80.h, config/tahoe/tm-tahoe.h,
1255 config/rs6000/tm-rs6000.h, config/sparc/tm-sparc.h,
1256 config/sh/tm-sh.h, config/pyr/tm-pyr.h, config/pa/tm-hppa.h,
1257 config/ns32k/tm-merlin.h, config/mn10300/tm-mn10300.h,
1258 config/mn10200/tm-mn10200.h, config/mips/tm-mips.h,
1259 config/m88k/tm-m88k.h, config/m68k/tm-news.h,
1260 config/m68k/tm-delta68.h, config/m68k/tm-isi.h,
1261 config/m68k/tm-m68k.h, config/m32r/tm-m32r.h,
1262 config/i960/tm-i960.h, config/i386/tm-i386v.h,
1263 config/i386/tm-i386.h, config/h8500/tm-h8500.h,
1264 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
1265 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h,
1266 config/convex/tm-convex.h, config/arc/tm-arc.h,
1267 config/arm/tm-arm.h, config/alpha/tm-alpha.h,
1268 config/a29k/tm-a29k.h: Re-write definition of FRAME_NUM_ARGS so
1269 that it returns NUM_ARGS as a result instead of setting a variable
1270 as a side effect.
1271
1272 * ns32k-tdep.c (merlin_frame_num_args), tahoe-tdep.c
1273 (tahoe_frame_num_args), vax-tdep.c (vax_frame_num_args),
1274 m68k-tdep.c (news_frame_num_args, delta68_frame_num_args,
1275 isi_frame_num_args), convex-tdep.c (convex_frame_num_args): New
1276 functions.
1277
1278 * stack.c (print_args_stub): Update use of FRAME_NUM_ARGS.
1279
1280Mon May 24 11:57:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
1281
1282 * remote.c (remote_xfer_memory): Re-write with assumption that
1283 REMOTE_TRANSLATE_XFER_ADDRESS is defined. Pass targ_addr and
1284 targ_len by reference.
1285 (REMOTE_TRANSLATE_XFER_ADDRESS): Provide default definition.
1286
1287 * remote-d10v.c (remote_d10v_translate_xfer_address): Update.
1288 * config/d10v/tm-d10v.h (REMOTE_TRANSLATE_XFER_ADDRESS): Update.
1289
1290Mon May 24 12:10:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
1291
1292 * value.h (default_push_arguments): Add function declaration.
1293
1294 * alpha-tdep.c (alpha_about_to_return), gdbarch.c (verify_gdbarch,
1295 arch_ok, set_arch), command.c (find_cmd), infrun.c
1296 (follow_inferior_fork, follow_fork, follow_vfork,
1297 set_schedlock_func, is_internal_shlib_eventpoint,
1298 stopped_for_internal_shlib_event, stopped_for_shlib_catchpoint,
1299 xdb_handle_command), infcmd.c (run_no_args_command, go_command),
1300 symfile.c (add_filename_language, set_ext_lang_command,
1301 info_ext_lang_command, init_filename_language_table), symtab.c
1302 (overload_list_add_symbol), defs.h (default_get_saved_register),
1303 ax-general.c (grow_expr, append_const, read_const, generic_ext):
1304 Ditto.
1305
1306 * infrun.c (currently_stepping): Ditto. Make static.
1307
1308 * valops.c (hand_function_call): Explictly type static variable
1309 ``checked''.
1310
1311Mon May 24 08:36:18 1999 Andrew Cagney <cagney@b1.cygnus.com>
1312
1313 * d10v-tdep.c (d10v_breakpoint_from_pc, d10v_register_name,
1314 d10v_register_byte, d10v_register_raw_size,
1315 d10v_register_virtual_size, d10v_register_virtual_type,
1316 d10v_make_daddr, d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
1317 d10v_convert_iaddr_to_raw, d10v_convert_daddr_to_raw,
1318 d10v_store_struct_return, d10v_store_return_value,
1319 d10v_extract_struct_value_address, d10v_frame_saved_pc,
1320 d10v_frame_args_address, d10v_frame_locals_address,
1321 d10v_saved_pc_after_call): New functions.
1322
1323 * config/d10v/tm-d10v.h (REGISTER_BYTE, REGISTER_RAW_SIZE,
1324 REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN,
1325 D10V_MAKE_DADDR, D10V_MAKE_IADDR, D10V_DADDR_P, D10V_IADDR_P,
1326 D10V_CONVERT_DADDR_TO_RAW, D10V_CONVERT_IADDR_TO_RAW,
1327 STORE_STRUCT_RETURN, STORE_RETURN_VALUE,
1328 EXTRACT_STRUCT_VALUE_ADDRESS, SAVED_PC_AFTER_CALL, FRAME_SAVED_PC,
1329 FRAME_ARGS_ADDRESS): Re-define using new functions.
1330
1331 * config/d10v/tm-d10v.h (BREAKPOINT_FROM_PC): Replace BREAKPOINT.
1332 (REGISTER_NAME): Replace REGISTER_NAMES.
1333
1334 * utils.c (core_addr_lessthan, core_addr_greaterthan): New
1335 functions.
1336 * defs.h (core_addr_lessthan, core_addr_greaterthan): Declare.
1337
1338Sat May 22 16:44:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
1339
1340 * utils.c (n_spaces): Handle case where first call has N equal to
1341 zero.
1342 (print_spaces): Use n_spaces.
1343
1344Fri May 21 11:23:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
1345
1346 * valops.c (value_push): Remove conditional definition based on
1347 absense of macro PUSH_ARGUMENTS. Pass SP and STRUCT_ADDR by
1348 reference.
1349 (default_push_arguments): New function.
1350
1351 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
1352 config/sparc/tm-sparc.h, config/sparc/tm-sp64.h,
1353 config/sh/tm-sh.h, config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
1354 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
1355 config/mips/tm-mips.h, config/m32r/tm-m32r.h,
1356 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
1357 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h, config/arm/tm-arm.h,
1358 config/alpha/tm-alpha.h: Update definition of PUSH_ARGUMENTS.
1359 Return updated SP.
1360
1361 * rs6000-tdep.c (rs6000_push_arguments): Rename push_arguments.
1362
1363Thu May 20 12:18:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
1364
1365 * blockframe.c (get_prev_frame): Remove #ifdef around test for
1366 FRAMELESS_FUNCTION_INVOCATION.
1367 (get_prev_frame): Change FRAMELESS_FUNCTION_INVOCATION call to a
1368 function invocation.
1369 * i386-tdep.c (i386_frame_num_args), stack.c (frame_info): Ditto.
1370 * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/vax/tm-vax.h,
1371 config/sparc/tm-sparc.h, config/sh/tm-sh.h,
1372 config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
1373 config/mips/tm-mips.h, config/m88k/tm-m88k.h,
1374 config/m68k/tm-m68k.h, config/i960/tm-i960.h,
1375 config/i386/tm-sun386.h, config/i386/tm-i386v.h,
1376 config/i386/tm-i386.h, config/h8500/tm-h8500.h,
1377 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
1378 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h,
1379 config/convex/tm-convex.h, config/arm/tm-arm.h,
1380 config/arc/tm-arc.h, config/alpha/tm-alpha.h,
1381 config/a29k/tm-a29k.h: Update FRAMELESS_FUNCTION_INVOCATION.
1382 * fr30-tdep.c (fr30_frameless_function_invocation), convex-tdep.c
1383 (convex_frameless_function_invocation), arm-tdep.c
1384 (arm_frameless_function_invocation): New functions.
1385
13861999-05-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1387
1388 * top.c: Change dates in comments to ISO format.
1389
1390 * event-top.c: Ditto.
1391 * event-loop.c: Ditto.
1392 * main.c: Ditto.
1393
9e086581
JM
13941999-05-19 Keith Seitz <keiths@cygnus.com>
1395
1396 * monitor.c (monitor_open): Only assume we have eight
1397 breakpoints if the monitor implementation does not tell
1398 us how many there really are. Alloc memory for these
1399 dynamically.
1400 (monitor_close): Free memory associated with breakpoint
1401 storage.
1402 (monitor_insert_breakpoint): Don't rely on a hardcoded
1403 number of breakpoints.
1404 (monitor_remove_breakpoint): Ditto.
1405 (NUM_MONITOR_BREAKPOINTS): Removed and replaced with monitor_ops
1406 specification.
1407 * monitor.h (struct monitor_ops): Add new member so that the
1408 individual monitor implementations can tell us how many
1409 breakpoints the monitor supports.
1410
14111999-05-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1412
1413 From Philippe De Muyter <phdm@macqel.be>:
1414 * event-loop.h: Include sys/wait.h only if HAVE_SYS_WAIT_H.
1415
14161999-05-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
1417
392a587b
JM
1418 * top.c (print_command_line): Added the missing stream argument.
1419 * gdbcmd.h: Added argument to prototype.
1420 * command.c: Fixed call to include extra argument.
1421 * breakpoint.c: Same.
9e086581
JM
1422
14231999-05-14 Jim Blandy <jimb@zwingli.cygnus.com>
1424
1425 Targets are #defining PREPARE_TO_PROCEED with inconsistent numbers
1426 of arguments. Since the Mach 3 target needs an argument, we'll
1427 make things consistent by adding an argument everywhere.
1428 * infrun.c (proceed): Pass an argument to PREPARE_TO_PROCEED.
1429 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Add ignored argument
1430 to definition.
1431
14321999-05-11 Stan Shebs <shebs@andros.cygnus.com>
1433
1434 Fri Apr 23 13:27:34 PDT 1999 Toshiyasu Morita (tm@netcom.com)
1435 * sh-stub.c: Mostly localize processor dependencies.
1436
cd0fc7c3
SS
14371999-05-10 Martin Hunt <hunt@cygnus.com>
1438
1439 * debugify.c, debugify.h: Removed because they are no
1440 longer used.
1441
14421999-05-08 Jim Blandy <jimb@zwingli.cygnus.com>
1443
1444 * infrun.c (_initialize_infrun): Handle TARGET_SIGNAL_LWP,
1445 TARGET_SIGNAL_WAITING, and TARGET_SIGNAL_CANCEL like SIGALRM or
1446 SIGIO --- pass them through to the inferior silently.
1447 * target.h (enum target_signals): Add TARGET_SIGNAL_CANCEL, for
1448 Solaris's SIGCANCEL.
1449 * target.c (target_signal_from_host, target_signal_to_host): Add
1450 mapping between SIGCANCEL and TARGET_SIGNAL_CANCEL.
1451 (signals): Add entry for SIGCANCEL.
1452
14531999-05-07 Stan Shebs <shebs@andros.cygnus.com>
1454
1455 After years of talking about it, finally break up the
1456 wait_for_inferior loop.
1457 * infrun.c (struct execution_control_state): New struct,
1458 holds what used to be local vars governing wfi behavior.
1459 (init_execution_control_state): New function, was code in
1460 wfi that set up execution control state.
1461 (handle_inferior_event): New function, was body of main
1462 wfi loop. Rewrite all local var references to go through
1463 the ecs structure passed into this function.
1464 (wait_for_inferior): Rewrite to set up and use execution control
1465 state, and to call the new functions.
1466 (currently_stepping): New function, was the macro
1467 CURRENTLY_STEPPING.
1468 (enum infwait_states): Rename from wfi_states.
1469 (infwait_normal_state, etc): Similarly.
1470
1471Thu May 6 15:25:32 1999 Philippe De Muyter <phdm@macqel.be>
1472
1473 * coffread.c (coff_symtab_read): Call `record_line' with the line
1474 number of the ".bf" symbol only for one-line functions.
1475
14761999-05-06 Michael Snyder <msnyder@cleaver.cygnus.com>
1477
1478 * Makefile.in: thread.o depends on target.h.
1479
14801999-05-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1481
1482 * event-top.c (change_line_handler): Use POLLIN instead of
1483 POLLRDNORM, for compatibility with Linux.
1484 (setup_event_loop): Ditto.
1485
14861999-05-06 Jim Blandy <jimb@zwingli.cygnus.com>
1487
1488 * mips-tdep.c (heuristic_proc_start): Rewrite cryptic error
1489 message about hitting the "heuristic fence post" with something
1490 that actually gives the user a fighting chance of figuring out
1491 why GDB is unhappy.
1492
14931999-05-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1494
1495 * top.c: Include event-loop.h.
1496 (init_main): Add async version of 'set prompt' command.
1497 If in async mode define the editing and annotate set
1498 commands in a different way.
1499 Initialize new variable asyn_command_editing_p to 1.
1500 Initialize the gdb prompt for async mode.
1501 (quit_cover): Make not static, for use by the event loop.
1502 (gdb_init): Call async_init_signals for the asynchronous case.
1503 (source_line_number, source_file_name, source_error,
1504 source_pre_error, history_expansion_p): Make non-static, so
1505 event-top.c can use them.
1506 (command_loop_marker): Make non-static, for use in event-top.c.
1507 Include event-loop.h.
1508
1509 * top.h: Add prototype for async_init_signals.
1510 (SET_TOP_LEVEL): Move here from main.c.
1511 Add setup_event_loop to exported functions.
1512
1513 * defs.h: Add async_hook to exported variables.
1514
1515 * main.c (SET_TOP_LEVEL): Move to top.h, so that it is visible in
1516 event-loop.c. Add new global variable async to determine whether
1517 we are running in async mode or not.
1518 (main): Add support for --async switch. Use async_hook to call
1519 setup_event_loop, when running in async mode.
1520
1521 * event-top.c: New file. Gdb input line handler and command line
1522 handler for the event loop. Initialization of signal handlers.
1523 All the handled signals have handlers called handle_<signalname>.
1524 Set up all the appropriate tokens for asynchronous signal
1525 handling.
1526
1527 * event-loop.h: New file. Data structures and definitions for the
1528 event loop.
1529
1530 * event-loop.c: New file. Functions for the event loop
1531 implementation.
1532
1533 * config.in: Regenerate with autoheader.
1534
1535 * configure.in (AC_CHECK_FUNCS): Add poll to list of functions
1536 to be checked for.
1537
1538 * configure: Regenerate.
1539
1540 * Makefile.in (SFILES): Add new source files.
1541 (eventloop_h): Define.
1542 (COMMON_OBS): Add new object files.
1543 (event-loop.o): Add rule for target object.
1544 (event-top.o): Ditto.
1545
15461999-05-05 Stan Shebs <shebs@andros.cygnus.com>
1547
1548 * infrun.c (wait_for_inferior): Transform breaks and continues
1549 into gotos, move the target_wait to the very top of the loop.
1550
15511999-05-05 Jonathan Larmour <jlarmour@cygnus.co.uk>
1552
1553 * configure.in: Ensure that GDB links with libuser32.a under
1554 cygwin because libreadline requires it.
1555 * Makefile.in (WIN32LIBS): Substitute in result from configure
1556 * configure: regenerate
1557
15581999-05-04 Jim Blandy <jimb@zwingli.cygnus.com>
1559
1560 Fix from John Rigby. Richard Henderson says it seems okay.
1561 * alpha-tdep.c (PROC_DUMMY_FRAME): As long as we're abusing fields
1562 of (proc)->pdr, we ought to at least abuse one large enough to
1563 hold the value we're trying to store in it. iopt is only 32 bits
1564 wide; cbLineOffset is a bfd_vma.
1565
b83266a0
SS
15661999-05-04 DJ Delorie <dj@cygnus.com>
1567
1568 DJGPP changes from Robert Hoehne <robert.hoehne@gmx.net>
1569
1570 * ser-go32.c: correct includes
1571 * source.c (openp): use ROOTED_P instead of SLASH_P
1572 * go32-nat.c: enhance exception and NPX handling
1573 (go32_kill_inferior): fix small bug killing inferior
1574 * configure.in: don't look for termcap with djgpp
1575 * configure: rebuild
1576
15771999-05-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1578
1579 * main.c (main): Comment out unused and undocumented command line
1580 option '-'.
1581
15821999-04-30 Jim Blandy <jimb@zwingli.cygnus.com>
1583
1584 Cleanup from Philippe De Muyter:
1585 * configure.in (BFD_NEED_DECLARATION): Check also for strstr.
1586 * acconfig.h (NEED_DECLARATION_MALLOC, NEED_DECLARATION_REALLOC,
1587 NEED_DECLARATION_FREE, NEED_DECLARATION_STRERROR): Define slots
1588 removed; they are now generated automatically.
1589 * gdb_string.h (strstr): Provide function prototype if
1590 NEED_DECLARATION_STRSTR.
1591 * configure, config.in: Regenerated.
1592
1593Fri Apr 30 11:16:09 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
1594
1595 * target.h (to_find_new_threads): new target ops vector.
1596 (target_find_new_threads): define.
1597 * target.c (update_current_target): inherit new target ops vector.
1598 * remote.c: Setup to_find_new_threads vector.
1599 * sol-thread.c: ditto.
1600 * thread.c (target_find_new_threads): rename: local_find_new_threads.
1601 (info_threads_command): call target_find_new_threads by new method,
1602 as a target ops vector, rather than previous macro definition method.
1603 * infcmd.c (go_command): define only if in xdb mode.
1604 * procfs.c: fix typo in comment.
1605
1606Fri Apr 30 01:02:05 1999 Jeffrey A Law (law@cygnus.com)
1607
1608 * hppah-nat.c: Fix various coding convention violations introduced
1609 by HP.
1610 (child_acknowledge_created_inferior): Do nothing if PT_SET_EVENT_MASK
1611 is not defined.
1612
16131999-04-28 Stan Shebs <shebs@andros.cygnus.com>
1614
1615 * TODO: Add some items inspired by review of the manual.
1616
1617Tue Apr 27 17:38:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
1618
1619 * config/z8k/tm-z8k.h, config/v850/tm-v850.h,
1620 config/tic80/tm-tic80.h, config/sparc/tm-sparc.h,
1621 config/sh/tm-sh.h, config/pyr/tm-pyr.h, config/pa/tm-hppa.h,
1622 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
1623 config/mips/tm-mips.h, config/m88k/tm-m88k.h,
1624 config/m68k/tm-m68k.h, config/m32r/tm-m32r.h,
1625 config/i960/tm-i960.h, config/i386/tm-i386.h,
1626 config/h8500/tm-h8500.h, config/h8300/tm-h8300.h,
1627 config/fr30/tm-fr30.h, config/d30v/tm-d30v.h,
1628 config/d10v/tm-d10v.h, config/alpha/tm-alpha.h,
1629 config/arm/tm-arm.h, config/a29k/tm-a29k.h, config/arc/tm-arc.h:
1630 Change SKIP_PROLOGUE and SKIP_PROLOGUE_FRAMELESS_P macros so that
1631 they return the new address.
1632
1633 * sparc-tdep.c (sparc_skip_prologue), hppa-tdep.c
1634 (hppa_skip_prologue), m88k-tdep.c
1635 (m88k_skip_prologue), i960-tdep.c
1636 (i960_skip_prologue), arc-tdep.c
1637 (arc_skip_prologue), a29k-tdep.c (a29k_skip_prologue): Rename
1638 skip_prologue function.
1639
1640 * config/m68k/tm-isi.h: Convert macro SKIP_PROLOGUE into a new
1641 function.
1642 * m68k-tdep.c (isi_skip_prologue): That new function.
1643 * vax-tdep.c (vax_skip_prologue), config/vax/tm-vax.h: Ditto.
1644 * tahoe-tdep.c (tahoe_skip_prologue), config/tahoe/tm-tahoe.h: Ditto.
1645 * rs6000-tdep.c (rs6000_skip_prologue), config/rs6000/tm-rs6000.h:
1646 Ditto.
1647 * ns32k-tdep.c (umax_skip_prologue), config/ns32k/tm-umax.h: Ditto.
1648 * config/ns32k/tm-merlin.h, ns32k-tdep.c (merlin_skip_prologue):
1649 Ditto.
1650 * config/m68k/tm-altos.h, m68k-tdep.c (altos_skip_prologue): Ditto.
1651 * config/convex/tm-convex.h, convex-tdep.c (convex_skip_prologue):
1652 Ditto.
1653
1654 * symtab.c (in_prologue, find_function_start_sal, decode_line_1),
1655 infrun.c (wait_for_inferior), blockframe.c
1656 (frameless_look_for_prologue): Update.
1657 * config/fr30/tm-fr30.h (FRAMELESS_FUNCTION_INVOCATION): Update.
1658
16591999-04-27 Stan Shebs <shebs@andros.cygnus.com>
1660
1661 * TODO: Remove item about DEBUG_EXPRESSIONS, no longer meaningful.
1662
1663 * infrun.c (enum wfi_state): New enum.
1664 (wait_for_inferior): Merge all but one of the target_wait calls
1665 into a single call, add a wfi_state variable to encode which of
1666 the calls is being made.
1667
16681999-04-26 Jim Blandy <jimb@zwingli.cygnus.com>
1669
1670 Fix from Dave Holcomb.
1671 * hpux-thread.c (init_hpux_thread_ops): Use the right function
1672 name when initializing hpux_thread_ops.to_thread_alive.
1673
1674 * coffread.c (coff_symfile_read): If we have a `.stab' section,
1675 but no `.stabstr' section, then print an error message; don't
1676 crash.
1677
16781999-04-26 Jim Blandy <jimb@zwingli.cygnus.com>
1679
1680 1999-04-25 Mark Kettenis <kettenis@gnu.org>
1681
1682 * gnu-nat.c (gnu_attach): Call target_terminal_init before calling
1683 inf_set_traced, since that function calls code that might try to
1684 restore the terminal settings.
1685
1686Mon Apr 26 08:55:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
1687
1688 * gdbarch.h, gdbarch.c: More format cleanups.
1689
0f71a2f6
JM
1690Sun Apr 25 18:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
1691
1692 * gdbarch.h (CALL_DUMMY_STACK_ADJUST_P): Replace
1693 SIZEOF_CALL_DUMMY_STACK_ADJUST_P.
1694 (CALL_DUMMY_STACK_ADJUST): Replace
1695 SIZEOF_CALL_DUMMY_STACK_ADJUST_P.
1696 * gdbarch.c (gdbarch_call_dummy_stack_adjust,
1697 set_gdbarch_call_dummy_stack_adjust): Define.
1698
b83266a0
SS
1699Fri Apr 23 15:00:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
1700
1701 * gdbarch.c (arch_ok): New function. Fix logic test for a valid
1702 architecture.
1703 (set_arch): Use.
1704
7a292a7a
SS
17051999-04-22 Jason Molenda (jsm@bugshack.cygnus.com)
1706
1707 * README: Note that readline is not installed as a part of
1708 make install.
1709
1710Thu Apr 22 21:02:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
1711
0f71a2f6
JM
1712 * gdbarch.h, gdbarch.c (GET_SAVED_REGISTER, get_saved_register):
1713 Add.
1714 (struct gdbarch, verify_gdbarch, gdbarch_alloc, gdbarch_dump,
1715 default_gdbarch): Update.
1716
7a292a7a
SS
1717 * value.h (get_saved_register): Cleanup prototype.
1718 * findvar.c (default_get_saved_register): Rename function
1719 get_saved_register.
1720 (GET_SAVED_REGISTER): Define as default_get_saved_register when
1721 undefined.
1722 (get_saved_register): Always declare. Call GET_SAVED_REGISTER.
1723
1724 * sparc-tdep.c (sparc_get_saved_register): Rename function
1725 get_saved_register.
1726 * config/sparc/tm-sparc.h (GET_SAVED_REGISTER): Update.
1727 * a29k-tdep.c (a29k_get_saved_register): Rename function
1728 get_saved_register.
1729 * config/a29k/tm-a29k.h (GET_SAVED_REGISTER): Update.
1730
1731 * config/d10v/tm-d10v.h, config/powerpc/tm-ppc-eabi.h,
1732 config/h8300/tm-h8300.h, config/m32r/tm-m32r.h,
1733 config/mn10200/tm-mn10200.h, config/mn10300/tm-mn10300.h,
1734 config/sh/tm-sh.h, config/tic80/tm-tic80.h, config/v850/tm-v850.h:
1735 Update macro GET_SAVED_REGISTER so that it calls
1736 generic_get_saved_register.
1737 * v850-tdep.c, tic80-tdep.c, sh-tdep.c, mn10300-tdep.c,
1738 mn10200-tdep.c, m32r-tdep.c, h8300-tdep.c, rs6000-tdep.c: Delete
1739 function get_saved_register.
1740
0f71a2f6
JM
1741Thu Apr 22 13:32:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
1742
1743 * gdbarch.c: Cleanup. Re-order the definition of the ``struct
1744 gdbarch'' initialization functions so that maintenance is more
1745 straightforward.
1746
7a292a7a
SS
1747Thu Apr 22 11:07:21 1999 Andrew Cagney <cagney@b1.cygnus.com>
1748
0f71a2f6
JM
1749 * gdbarch.h, gdbarch.c (use_generic_dummy_frames,
1750 USE_GENERIC_DUMMY_FRAMES): Add.
1751 (struct gdbarch, verify_gdbarch, gdbarch_alloc, gdbarch_dump,
1752 default_gdbarch): Update.
1753
7a292a7a
SS
1754 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
1755 config/sh/tm-sh.h, config/powerpc/tm-ppc-eabi.h,
1756 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
1757 config/m32r/tm-m32r.h, config/h8300/tm-h8300.h,
1758 config/fr30/tm-fr30.h, config/d10v/tm-d10v.h: Give the
1759 USE_GENERIC_DUMMY_FRAMES macro the value one.
1760 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Default to a value of
1761 zero.
1762
1763 * blockframe.c (generic_find_dummy_frame,
1764 generic_pc_in_call_dummy, generic_read_register_dummy,
1765 generic_push_dummy_frame, generic_pop_current_frame,
1766 generic_pop_dummy_frame, generic_frame_chain_valid,
1767 generic_get_saved_register): Always define.
1768
1769 * breakpoint.c (frame_in_dummy): Convert #ifdef
1770 USE_GENERIC_DUMMY_FRAMES to runtime test.
1771
1772 * rs6000-tdep.c (pop_frame, push_arguments, push_arguments,
1773 push_arguments, frame_saved_pc, rs6000_frame_chain,
1774 rs6000_frame_chain): Convert #ifdef USE_GENERIC_DUMMY_FRAMES to
1775 runtime test.
1776 (get_saved_register): Always define.
1777
0f71a2f6
JM
1778Wed Apr 21 17:15:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
1779
1780 * gdbarch.c (gdbarch_dump): Fix robustness check on
1781 BELIEVE_PCC_PROMOTION_TYPE.
1782
1783Wed Apr 21 15:39:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
1784
1785 * gdbarch.h (TARGET_BYTE_ORDER_SELECTABLE_P): When multi-arch,
1786 force selectable byte order.
1787 (CALL_DUMMY): Check for CALL_DUMMY definition when multi-arch. Are
1788 incompatible.
1789 * gdbarch.c (verify_gdbarch): Check call_dummy_stack_adjust.
1790
7a292a7a
SS
1791Wed Apr 21 14:45:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
1792
0f71a2f6
JM
1793 * gdbarch.c (gdbarch_update): Move dump-arch code from here.
1794 (gdbarch_dump): To here. Make more robust.
1795 * gdbarch.h (gdbarch_dump): Add prototype.
1796
7a292a7a
SS
1797 * gdbarch.c (enum set_arch): Declare.
1798 (set_arch): Add type parameter. Only disable
1799 ``target_architecture_auto'' when set_arch_manual.
1800 (set_architecture, set_architecture_from_arch_mach,
1801 set_architecture_from_file): Update.
0f71a2f6
JM
1802 (set_arch): When ``gdbarch_debug'', gdbarch_dump() the current
1803 architecture.
7a292a7a
SS
1804
1805Wed Apr 21 10:48:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
1806
1807 * frame.h (generic_pc_in_call_dummy): Make signature consistent
1808 with other pc_in_call_dummy functions by adding SP parameter.
1809 * blockframe.c (generic_pc_in_call_dummy): Update. Pass SP and
1810 not FP to generic_find_dummy_frame().
1811 * breakpoint.c (frame_in_dummy): Update.
1812 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
1813 config/sh/tm-sh.h, config/mn10300/tm-mn10300.h,
1814 config/mn10200/tm-mn10200.h, config/m32r/tm-m32r.h,
1815 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
1816 config/d10v/tm-d10v.h: Update PC_IN_CALL_DUMMY definition.
1817
1818Tue Apr 20 12:15:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
1819
1820 * config/d10v/tm-d10v.h (GDB_TARGET_IS_D10V): Move from here.
1821 * gdbarch.h (GDB_TARGET_IS_D10V): To here. Implement using
1822 TARGET_ARCHITECTURE.
1823 (D10V_MAKE_DADDR, D10V_MAKE_IADDR): Provide fatal default
1824 definitions.
1825
1826 * valops.c (value_at): Replace #ifdef GDB_TARGET_IS_D10V code with
1827 runtime test.
1828 (value_fetch_lazy): Ditto.
1829 * values.c (unpack_long): Ditto.
1830 * printcmd.c (print_frame_args): Ditto.
1831
0f71a2f6
JM
1832Sat Apr 17 15:39:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
1833
1834 * gdbarch.h: Cleanup multi-arch comments.
1835
1836Fri Apr 16 15:39:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
1837
1838 * gdbarch.h: Provide definition if GDB_MULTI_ARCH > 1 or
1839 GDB_MULTI_ARCH > 0 and no previous definition.
1840 * gdbarch.c (verify_gdbarch): Only verify a full multi-arch
1841 target.
1842
7a292a7a
SS
18431999-04-15 Stan Shebs <shebs@andros.cygnus.com>
1844
1845 * infrun.c (wait_for_inferior) [HAVE_STEPPABLE_WATCHPOINT,
1846 HAVE_NONSTEPPABLE_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT]: Test
1847 at runtime instead of compile time.
1848
18491999-04-14 Philippe De Muyter <phdm@macqel.be>
1850
1851 * breakpoint.c (maintenance_info_breakpoints): Function made
1852 static to match previous prototype.
1853
1854 * coffread.c (coff_record_line): Static function removed.
1855 (enter_linenos): Call `record_line' instead of `coff_record_line'.
1856 (FILE-LEVEL, coff_start_symtab, coff_end_symtab): `coff_record_line'
1857 -related stuff removed.
1858 (coff_symfile_read): Redundant statement removed.
1859 (coff_symtab_read): `record_line' is now called with the first line
1860 number of each function, given by the ".bf" symbol. This solves
1861 the line-number bug for one-line functions.
1862
1863Wed Apr 14 11:09:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
1864
0f71a2f6
JM
1865 * gdbarch.h (BELIEVE_PCC_PROMOTION_TYPE, BELIEVE_PCC_PROMOTION):
1866 Add multi-arch definitions.
1867 * gdbarch.c (gdbarch_believe_pcc_promotion,
1868 gdbarch_believe_pcc_promotion_type): New functions.
1869 (gdbarch_update): Update
1870 (struct gdbarch default_gdbarch): Update.
1871
7a292a7a
SS
1872 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Provide default.
1873 (define_symbol): Change #if BELIEVE_PCC_PROMOTION_TYPE and #if
1874 BELIEVE_PCC_PROMOTION to if().
1875
18761999-04-13 Jason Molenda (jsm@bugshack.cygnus.com)
1877
1878 * configure.in (HAVE_MULTIPLE_PROC_FDS): Don't define if we're
1879 on a Solaris host (of any architecture).
1880 * configure: Regenerated.
1881
0f71a2f6
JM
1882Wed Apr 14 08:23:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
1883
1884 * gdbarch.c (SET_GDBARCH, GET_GDBARCH, FSET_GDBARCH): New macros.
1885 (gdbarch_byte_order, gdbarch_long_bit, gdbarch_long_long_bit,
1886 gdbarch_ptr_bit, gdbarch_call_dummy_location,
1887 gdbarch_call_dummy_address, gdbarch_call_dummy_address,
1888 gdbarch_call_dummy_breakpoint_offset,
1889 gdbarch_call_dummy_breakpoint_offset, gdbarch_call_dummy_length,
1890 gdbarch_pc_in_call_dummy, dbarch_call_dummy_breakpoint_offset_p,
1891 dbarch_call_dummy_p, dbarch_call_dummy_words,
1892 dbarch_sizeof_call_dummy_words, dbarch_call_dummy_stack_adjust,
1893 dbarch_call_dummy_stack_adjust_p): Define using new macros.
1894
7a292a7a
SS
18951999-04-13 Jason Molenda (jsm@bugshack.cygnus.com)
1896
1897 * rom68k-rom.c (init_rom68k_cmds): Fix an accidental substitution
1898 in monitor command strings, fix some formatting mistakes.
1899
19001999-04-13 Stan Shebs <shebs@andros.cygnus.com>
1901
1902 * configure.tgt (arm-*-*): Whack another vestige of wingdb.
1903
19041999-04-12 James Ingham <jingham@cygnus.com>
1905
1906 * arm-tdep.c (arm_pop_frame): don't clobber the previous frame's
1907 stack pointer (stored in frame->framereg's register) BEFORE
1908 reading it. This was causing "return" to behave very oddly.
1909
19101999-04-12 Stan Shebs <shebs@andros.cygnus.com>
1911
1912 * NEWS: Mention tic80.
1913
19141999-04-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1915
1916 * a68v-nat.c: Remove reference to 'extern char registers[]' throughout.
1917 * altos-xdep.c: Ditto.
1918 * arm-xdep.c: Ditto.
1919 * convex-xdep.c: Ditto.
1920 * cxux-nat.c: Ditto.
1921 * hp300ux-nat.c: Ditto.
1922 * hppab-nat.c: Ditto.
1923 * i386aix-nat.c: Ditto.
1924 * i386mach-nat.c: Ditto.
1925 * m88k-nat.c: Ditto.
1926 * ptx4-nat.c: Ditto.
1927 * pyr-xdep.c: Ditto.
1928 * rs6000-nat.c: Ditto.
1929 * sun3-nat.c: Ditto.
1930 * sun386-nat.c: Ditto.
1931 * symm-nat.c: Ditto.
1932 * umax-xdep.c: Ditto.
1933 * i386v4-nat.c: Ditto. Also include inferior.h.
1934 * m68k-tdep.c: Ditto. Also include inferior.h.
1935
1936Mon Apr 12 15:57:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
1937
1938 * inferior.h (CALL_DUMMY_STACK_ADJUST, CALL_DUMMY_STACK_ADJUST_P):
1939 Provide default definitions.
1940 * valops.c (hand_function_call): Replace #ifdef
1941 CALL_DUMMY_STACK_ADJUST with if (CALL_DUMMY_STACK_ADJUST_P).
1942
0f71a2f6
JM
1943 * gdbarch.h (SIZEOF_CALL_DUMMY_STACK_ADJUST,
1944 (SIZEOF_CALL_DUMMY_STACK_ADJUST_P): Define
1945 * gdbarch.c (struct gdbarch): Add call_dummy_stack_adjust,
1946 call_dummy_stack_adjust_p.
1947 (gdbarch_call_dummy_stack_adjust,
1948 set_gdbarch_call_dummy_stack_adjust,
1949 gdbarch_call_dummy_stack_adjust_p,
1950 set_gdbarch_call_dummy_stack_adjust_p): New functions.
1951 (default_gdbarch): Update.
1952
7a292a7a
SS
19531999-04-09 Jim Blandy <jimb@zwingli.cygnus.com>
1954
1955 * ax-gdb.c, ax-gdb.h, ax-general.c, ax.h: Remove RCS Id strings.
1956 They're a pain.
c906108c
SS
1957
1958 * GDB 4.18 released.
7a292a7a 1959 * Makefile.in (VERSION): Bump to 4.18.1.
c906108c 1960
7a292a7a
SS
1961Thu Apr 8 16:04:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
1962
1963 * inferior.h (CALL_DUMMY_P, CALL_DUMMY_WORDS,
1964 SIZEOF_CALL_DUMMY_WORDS): Define macros.
1965 (PUSH_DUMMY_FRAME, FIX_CALL_DUMMY, STORE_STRUCT_RETURN): Provide
1966 fatal default.
1967
1968 * inferior.h, gdbarch.c (call_dummy_words,
1969 sizeof_call_dummy_words): Declare/Define variables.
1970 * valops.c (value_arg_coerce, find_function_addr,
1971 call_function_by_hand): Always define.
1972 (hand_function_call): Rename CALL_DUMMY version of
1973 call_function_by_hand. Make static. Add prototype.
1974 (hand_function_call): Update. Allocate space for *dummy and
1975 *dummy1 using alloca.
1976 * breakpoint.c (frame_in_dummy): Update.
c906108c 1977
0f71a2f6
JM
1978 * gdbarch.h (CALL_DUMMY_P, CALL_DUMMY_WORDS,
1979 SIZEOF_CALL_DUMMY_WORDS): Define.
1980 * gdbarch.c (gdbarch_call_dummy_p, set_gdbarch_call_dummy_p,
1981 gdbarch_call_dummy_words, set_gdbarch_call_dummy_words,
1982 gdbarch_sizeof_call_dummy_words,
1983 set_gdbarch_sizeof_call_dummy_words): New functions.
1984 (gdbarch_alloc, verify_gdbarch, gdbarch_update, struct
1985 default_gdbarch): Update.
1986
7a292a7a
SS
19871999-04-08 Jason Molenda (jsm@bugshack.cygnus.com)
1988
1989 * monitor.c (monitor_read_memory): If a MO_GETMEM_NEEDS_RANGE
1990 monitor, increase the end address by one byte.
1991
19921999-04-08 Jason Molenda (jsm@bugshack.cygnus.com)
1993
1994 * dbug-rom.c (init_dbug_cmds): Fix strings in
1995 dbug_cmds.{step,clr_break,clr_all_break,fill} to send correct
1996 commands to the monitor.
1997
19981999-04-08 Keith Seitz <keiths@cygnus.com>
1999
2000 * m32r-stub.c (branchDestination): Undo overly ambitious
2001 sed script's conversion of cast from "char" to "unsigned char".
2002 Return offset should now be properly computed.
2003
2004Thu Apr 8 14:13:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
2005
2006 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): New macro.
2007 Non-zero when CALL_DUMMY_BREAKPOINT_OFFSET is valid.
2008
2009 * infcmd.c (breakpoint_auto_delete_contents): Always define.
2010 (run_stack_dummy): Update.
2011 * infrun.c (wait_for_inferior): Update
2012
0f71a2f6
JM
2013 * gdbarch.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): New macro.
2014 * gdbarch.c (set_gdbarch_call_dummy_breakpoint_offset_p,
2015 gdbarch_call_dummy_breakpoint_offset_p): New functions.
2016 (struct gdbarch, gdbarch_alloc, default_gdbarch, gdbarch_update):
2017 Update.
2018
7a292a7a
SS
20191999-04-07 Stan Shebs <shebs@andros.cygnus.com>
2020
2021 * MAINTAINERS: Mark Alexander can no longer maintain
2022 h8300 and other embedded targets, sniff.
c906108c
SS
2023
20241999-04-06 Stan Shebs <shebs@andros.cygnus.com>
2025
7a292a7a
SS
2026 * inftarg.c (child_wait): Initialize execd_pathname.
2027 * target.c (debug_to_has_execd): Handle NULL execd_pathname.
2028
c906108c
SS
2029 * solib.c (clear_solib): Don't call disable_breakpoints_in_shlibs,
2030 this breaks rerunning on sun4 native.
2031
7a292a7a 20321999-04-06 Jim Blandy <jimb@zwingli.cygnus.com>
c906108c 2033
7a292a7a
SS
2034 * config/sparc/nm-linux.h: Don't redefine PT_ATTACH to use the
2035 deprecated PTRACE_SUNATTACH compatibility commands. The
2036 definitions from <sys/ptrace.h> are fine.
2037
20381999-04-06 Martin Hunt <hunt@cygnus.com>
2039
2040 * annotate.h: Declare annotate_signal_hook.
2041
2042 * annotate.c (annotate_signal): Add a call to
2043 annotate_signal_hook().
2044
20451999-04-06 Jim Blandy <jimb@zwingli.cygnus.com>
2046
2047 * dwarf2read.c (dwarf_decode_lines): Don't call record_line when
2048 we hit a DW_LNE_end_sequence instruction.
c906108c
SS
2049
2050 * README: Note that GDB requires an ANSI C compiler, and explain
2051 how to get GCC.
2052
2053 * README: Update.
c906108c 2054
7a292a7a 20551999-04-05 Stan Shebs <shebs@andros.cygnus.com>
c906108c
SS
2056
2057 * NEWS: Add more notes about user-visible changes.
2058
7a292a7a
SS
2059Mon Apr 5 14:56:59 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
2060
2061 * target.c (target_signal_to_string): check for signal
2062 number in range; otherwise if the target board returns
2063 a bogus signal number we might core dump (per David Taylor).
2064
20651999-04-05 David Taylor <taylor@ryobi.cygnus.com>
2066
2067 * utils.c (fputs_maybe_filtered): test value of
2068 pagination_enabled before paginating.
2069
20701999-04-02 James Ingham <jingham@cygnus.com>
2071
2072 * blockframe.c (get_prev_frame): Remove the redundant
2073 get_prev_frame_info. It is now exactly the same as
2074 get_prev_frame, so there is no reason to have both functions.
2075
2076 * rs6000-tdep.c (rs6000_init_extra_frame_info):
2077 frame.h:
2078 a29k-tdep.c (init_extra_frame_info):
2079 config/a29k/tm-a29k.h:
2080 i386-tdep.c:
2081 Change all references to get_prev_frame_info to get_prev_frame.
2082
20831999-04-02 Stan Shebs <shebs@andros.cygnus.com>
2084
2085 * bcache.c, bcache.h, breakpoint.c, defs.h, expprint.c,
2086 expression.h, gdbarch.c, gdbtypes.c, gdbtypes.h, gnu-nat.c,
2087 gnu-nat.h, hppa-tdep.c, maint.c, monitor.c, objfiles.h, parse.c,
2088 remote-mips.c, remote-sds.c, remote.c, sol-thread.c, symmisc.c,
2089 symtab.h, target.c, top.c, typeprint.c, config/nm-gnu.h: Evaporate
2090 the unused MAINTENANCE_CMDS conditional.
2091
20921999-04-02 James Ingham <jingham@cygnus.com>
2093
2094 * config/arm/tm-arm.h: (EXTRACT_STRUCT_VALUE_ADDRESS): This needs
2095 to call extract_address, not just cast the first 4 bytes, since
2096 the result will be passed to value_at which expects host-byte
2097 order.
2098
2099 * arm-tdep.c (arm_scan_prologue): The prologue_start address was
2100 directly &'ed with 0x03fffffc, rather than using
2101 ADDR_BITS_REMOVE. This would cause inferior function calls to
2102 report the stack incorrectly on return.
2103
2104
21051999-04-02 Keith Seitz <keiths@cygnus.com>
2106
2107 * top.c (ui_loop_hook): Change declaration. Now returns an int.
2108 * win32-nat.c (child_wait): Timeout WaitForDebugEvent and call
2109 the ui_loop_hook if there was no debug event.
2110 * top.c (ui_loop_hook): Change to return an int and include
2111 on all non-Cygwin builds.
2112 * v850ice.c: Change prototype of ui_loop_hook.
2113 (v850ice_wait): Update call to ui_loop_hook.
2114 * ser-unix.c (hardwire_readchar): Enable ui_loop_hook callbacks
2115 for non-Cygwin builds. Check return status of ui_loop_hook and
2116 return a timeout if told to detach. Add more documentation.
2117 * ser-tcp.c (tcp_readchar): Break up timeouts into one second
2118 intervals and call ui_loop_hook so that other UIs can
2119 keep up to date. If ui_loop_hook returns non-zero, then
2120 return SERIAL_TIMEOUT to facilitate detaching from the
2121 target.
2122 * remote.c (remote_interrupted_already): Remove.
2123 (remote_interrupt_twice): Revive.
2124 (remote_interrupt): Call remote_stop to interrupt the target
2125 and install remote_interrupt_twice to take more severe
2126 actions if this fails.
2127 (remote_stop): Only attempt to stop the target. This separates
2128 the command line from other UIs.
2129 * remote-sim.c (gdb_os_poll_quit): Add a call to ui_loop_hook,
2130 if it is defined.
2131
c906108c
SS
21321999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
2133
2134 Fix for cross-debugging on an AIX host from Johanna Svenningsson:
2135 * ax-gdb.h (enum axs_lvalue_kind): Remove trailing comma from enum.
7a292a7a 2136 * ax.h (enum agent_op): Same.
c906108c
SS
2137 * tracepoint.h (enum actionline_type): Same.
2138 * config/xm-aix4.h: Add declaration for termdef.
2139
21401999-03-31 Stan Shebs <shebs@andros.cygnus.com>
2141
2142 * jv-lang.h (dynamics_objfile): Remove decl, conflicts with static
2143 decl in jv-lang.c.
2144
7a292a7a
SS
2145 * infrun.c (follow_inferior_fork): Add ifdefs around
2146 SOLIB_REMOVE_INFERIOR_HOOK.
c906108c 2147
7a292a7a 2148Wed Mar 31 11:39:49 1999 David Taylor <taylor@ryobi.cygnus.com>
c906108c
SS
2149
2150 * valops.c (search_struct_field): revert HP merge change
2151 to this function -- it causes messages to be printed about
2152 member class ambiguity when the compiler is happy.
2153 (search_struct_field_aux): delete -- added as part of HP merge
2154 change; with aforementioned change it is no longer called.
2155
7a292a7a 21561999-03-30 Stan Shebs <shebs@andros.cygnus.com>
c906108c 2157
7a292a7a
SS
2158 Make more HPUX-specific code generic.
2159 * infrun.c: Include top.h.
2160 (MAY_SWITCH_FROM_INFERIOR_PID, MAY_FOLLOW_EXEC,
2161 USE_THREAD_STEP_NEEDED): New native macros.
2162 (may_switch_from_inferior_pid, may_follow_exec,
2163 use_thread_step_needed): New globals.
2164 (follow_inferior_fork): Remove HPUXHPPA ifdef.
2165 (follow_exec): Ditto, also save run target and re-push instead of
2166 always pushing child_ops, add ifdefs around SOLIB_RESTART and
2167 SOLIB_CREATE_INFERIOR_HOOK.
2168 (wait_for_inferior): Use new globals instead of ifdefing HPUXHPPA,
2169 always use printf_filtered to report new threads.
2170 (normal_stop): Ditto.
2171 * target.h, target.c (find_run_target): New function.
2172 * config/pa/nm-hppah.h: Define new macros.
c906108c 2173
7a292a7a 21741999-03-29 Stan Shebs <shebs@andros.cygnus.com>
c906108c 2175
7a292a7a
SS
2176 * top.h: Include setjmp.h here.
2177 * main.c, top.c: Don't include it here.
c906108c 2178
7a292a7a 21791999-03-29 Keith Seitz <keiths@cygnus.com>
c906108c 2180
7a292a7a
SS
2181 * symtab.c (decode_line_1): Take out change which breaks symbols
2182 which include class names and methods, e.g., "Foo::bar".
2183
21841999-03-26 Stan Shebs <shebs@andros.cygnus.com>
2185
2186 * configure.tgt (i[3456]86-*-sysv4.2MP, i[3456]86-*-sysv4.2uw2*):
2187 Recognize both, as i[3456]86-*-sysv4.2*.
2188 (i[3456]86-*-sysv5*): Recognize.
2189
2190 * infrun.c (wait_for_inferior): Remove most #if 0 segments.
2191
2192Fri Mar 26 17:27:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
2193
2194 * blockframe.c (pc_in_call_dummy_on_stack): Fix. Had copied code
2195 from at_entry_point.
2196
2197Thu Mar 25 19:30:02 1999 Andrew Cagney <cagney@amy.cygnus.com>
2198
2199 * gdbarch.c: Include all headers.
0f71a2f6
JM
2200 (struct gdbarch), gdbarch.h (CALL_DUMMY_LOCATION,
2201 CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET,
2202 CALL_DUMMY_BREAKPOINT_OFFSET, CALL_DUMMY_LENGTH,
2203 PC_IN_CALL_DUMMY): Add ``call_dummy_location'',
2204 ``call_dummy_length'', ``pc_in_call_dummy'',
2205 ``call_dummy_start_offset'', ``call_dummy_breakpoint_offset'' to
2206 multi-arch framework.
7a292a7a
SS
2207
2208 * inferior.h, blockframe.c (pc_in_call_dummy_before_text_end,
2209 pc_in_call_dummy_after_text_end, pc_in_call_dummy_on_stack,
2210 pc_in_call_dummy_at_entry_point): Convert PC_IN_CALL_DUMMY macro's
2211 into functions.
2212
2213Tue Mar 23 17:22:57 1999 Philippe De Muyter <phdm@macqel.be>
2214
2215 * remote.c, parse.c: Include ctype.h.
c906108c
SS
2216
22171999-03-24 Stan Shebs <shebs@andros.cygnus.com>
2218
7a292a7a 2219 * configure.host (mips-dec-mach3*): Use mipsm3 not mach3.
c906108c
SS
2220
2221 Attempt to sort out SCO-related configs.
2222 * configure.host (i[3456]86-*-sysv4.2*): Use instead of
2223 i[3456]86-*-sysv4.2MP and i[3456]86-*-sysv4.2uw2*.
2224 (i[3456]86-*-sysv5*): Recognize.
2225 * configure.tgt (i[3456]86-*-sco3.2v5*, i[3456]86-*-sco3.2v4*):
2226 Recognize.
2227
7a292a7a
SS
2228Wed Mar 24 16:19:01 1999 Christopher Faylor <cgf@cygnus.com>
2229
2230 * MAINTAINERS: Add DJ Delorie (dj@cygnus.com) as the djgpp
2231 maintainer.
2232
2233Wed Mar 24 21:19:57 1999 Andrew Cagney <cagney@amy.cygnus.com>
2234
2235 * target.h (enum target_signal): Do not hardwire values of MACH
2236 signals.
2237
22381999-03-14 Ken Raeburn <raeburn@raeburn.org>
2239
2240 * target.h (enum target_signal): Add TARGET_SIGNAL_INFO.
2241 * target.c (signals): Add SIGINFO description.
2242 (target_signal_from_host, target_signal_to_host): Translate
2243 SIGINFO to/from TARGET_SIGNAL_INFO.
2244
c906108c
SS
2245Wed Mar 24 01:01:27 1999 Andrew Cagney <cagney@sludge.cygnus.com>
2246
2247 * rs6000-tdep.c (rs6000_software_single_step): Change SIGNAL to
2248 unsigned int.
2249
7a292a7a 2250 From Rodney Brown <rodneybrown@pmsc.com>
c906108c
SS
2251 * target.h (enum thread_control_capabilities), breakpoint.h (enum
2252 bptype), breakpoint.c (enum insertion_state_t): Strict ISO-C
2253 doesn't allow trailing comma in enum definition.
2254
7a292a7a 2255Mon Mar 22 15:56:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
c906108c 2256
7a292a7a
SS
2257 * blockframe.c (inside_entry_file, inside_entry_func): Convert #if
2258 CALL_DUMMY_LOCATION to if.
2259 * valops.c (call_function_by_hand): Ditto.
2260 * infcmd.c (run_stack_dummy): Ditto.
2261 * inferior.h (CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET,
2262 CALL_DUMMY_BREAKPOINT_OFFSET): Provide default.
c906108c 2263
7a292a7a 22641999-03-23 Jason Molenda (jsm@bugshack.cygnus.com)
c906108c 2265
7a292a7a
SS
2266 * hppa-tdep.c (pa_register_look_aside): Remove CPU_HPPA_RISC_20
2267 check, test for presence of struct save_state_t and the ss_wide
2268 member directly.
2269 * configure.in: Remove CPU_HPPA_RISC_20 test. Add tests for
2270 HAVE_STRUCT_SAVE_STATE_T and HAVE_STRUCT_MEMBER_SS_WIDE.
2271 * acconfig.h: Add HAVE_STRUCT_SAVE_STATE_T HAVE_STRUCT_MEMBER_SS_WIDE.
2272 * configure, config.in: Regenerated.
c906108c
SS
2273
2274Mon Mar 22 13:25:13 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
2275
2276 * infttrace.c (proc_wait): rename to ptrace_wait.
2277
7a292a7a
SS
22781999-03-18 Jim Blandy <jimb@zwingli.cygnus.com>
2279
2280 * dwarf2read.c: Correctly recognize location expressions that
2281 designate LOC_REF_ARG arguments. Doc fixes.
2282 (isderef): New global. (Yuck.)
2283 (dwarf2_complex_location_expr): New complaint.
2284 (read_func_scope): Reject frame_base attributes that use the
2285 `deref' opcode as too complex.
2286 (new_symbol): If both regoff and isderef are set, and the base
2287 register is the frame pointer, then it's a LOC_REF_ARG argument.
2288 (decode_locdesc): Recognize the `deref' opcode in location
2289 expressions. Complain if it's not the last op in the expression.
2290
2291 * config/fr30/tm-fr30.h (COERCE_FLOAT_TO_DOUBLE): #define this to
2292 be true, or else value_arg_coere won't respect the (accurate)
2293 information we have about whether a function is prototyped.
2294
22951999-03-17 Jim Blandy <jimb@zwingli.cygnus.com>
2296
2297 * config/fr30/tm-fr30.h (STACK_ALIGN): Define this here, so
2298 calling functions by hand with odd-sized arguments doesn't munge
2299 the stack.
2300
c906108c
SS
23011999-03-17 Jason Molenda (jsm@bugshack.cygnus.com)
2302
2303 * configure.in (HAVE_MULTIPLE_PROC_FDS): Don't define for Solaris
2304 hosts--gdb doesn't support this yet.
2305 * configure: Regenerated.
2306
7a292a7a
SS
23071999-03-16 Keith Seitz <keiths@cygnus.com>
2308
2309 * remote.c (remote_binary_checked): New file global.
2310 (check_binary_download): New function to check if
2311 stub supports binary downloading that works with
2312 stubs that are not eight bit clean.
2313 (remote_write_bytes): Check for binary download capability
2314 and use it if available.
2315 Remove references to global remote_binary_length. What a hack.
2316 (putpkt_binary): New function.
2317 (putpkt): Call putpkt_binary.
2318 Use xor to escape trouble characters.
2319 * m32r-stub.c (bin2mem): Follow escape char convention change.
2320
c906108c
SS
2321Tue Mar 16 01:11:33 1999 Andrew Cagney <cagney@rhino.cygnus.com>
2322
2323 * target.h (struct target_ops), target.c (debug_to_query),
2324 remote.c (pack_hex_byte, remote_query): Promote char parameters to
2325 int. Stops compile problems with pedantic ISO-C compilers.
7a292a7a 2326
c906108c
SS
2327Tue Mar 16 15:29:04 1999 Stan Shebs <shebs@andros.cygnus.com>
2328
7a292a7a
SS
2329 * go32-xdep.c: Remove, no longer used by anything.
2330 * Makefile.in: Remove references.
2331
c906108c
SS
2332 * jv-lang.c, jv-lang.h (java_primitive_type): Declare argument
2333 as int instead of char.
2334
7a292a7a 2335Mon Mar 15 11:42:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
c906108c 2336
7a292a7a
SS
2337 * d10v-tdep.c (push_stack_item, pop_stack_item): New function.
2338 (d10v_push_arguments): Use.
c906108c 2339
7a292a7a
SS
2340 From Martin M. Hunt <hunt@cygnus.com>:
2341 * d10v-tdep.c (d10v_push_arguments): When arguments
2342 must be pushed onto the stack, they go on in
2343 reverse order.
c906108c 2344
7a292a7a
SS
23451999-03-16 Jim Blandy <jimb@zwingli.cygnus.com>
2346
2347 * symtab.c (make_symbol_overload_list): Don't try to stuff minimal
2348 or partial symbols into the overload list; we don't know their
2349 types. (Thanks to Rajiv Mirani.)
2350
23511999-03-15 Jason Molenda (jsm@bugshack.cygnus.com)
2352
2353 * acinclude.m4 (--with-itclconfig, --with-itkconfig, --with-tixconfig):
2354 Fix whitespace so --help messages line up.
2355 * configure.in (--with-cpu): Fix capitalization for --help messages.
2356 * configure, aclocal.m4: Regenerated.
2357
2358Mon Mar 15 11:39:03 1999 Ian Carmichael <iancarm@cygnus.com>
2359
2360 Support building gdb w/o simulator:
2361 * configure.in: Support --disable-sim. Check for sim directory.
2362 * Makefile.in (IGNORE_SIM, IGNORE_SIM_OBS): New.
2363 * acconfig.h (WITH_SIM): Define.
2364 * configure, config.in: Regenerate.
2365
2366Mon Mar 15 08:01:33 1999 Elena Zannoni <ezannoni@cygnus.com>
2367
2368 Patch from Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2369
2370 * top.c (read_command_lines): Reset control_level to 0.
2371 (define_command): Don't do it here.
2372
2373Sun Mar 14 16:12:15 1999 Andrew Cagney <cagney@rhino.cygnus.com>
2374
2375 * hppah-nat.c (store_inferior_registers): Delete extern
2376 registers[] declaration.
2377
2378Sun Mar 14 19:17:30 1999 Andrew Cagney <cagney@b1.cygnus.com>
2379
2380 * infrun.c (write_inferior_status_register): New function. Provide
2381 update access to an inf_status register buffer. Only used by HP.
2382 * inferior.h (write_inferior_status_register): Add prototype.
2383
2384 * hppa-tdep.c (push_dummy_frame): Use
2385 write_inferior_status_register when hacking around a sleeping
2386 inferior. Accidently fix byte-order problem.
2387
2388Sun Mar 14 16:40:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
2389
2390 * config/pa/tm-hppa.h (PUSH_DUMMY_FRAME): Fix parameter. Address
2391 not needed.
2392
2393Fri Mar 12 13:11:48 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
2394
2395 * remote.c (remote_write_bytes): fix 'X' packet protocol so that it
2396 can't overwrite the end of its buffer with escaped characters.
c906108c
SS
2397
23981999-03-12 Jim Blandy <jimb@zwingli.cygnus.com>
2399
7a292a7a 2400 Alpha patches from Richard Henderson:
c906108c 2401
7a292a7a 2402 * alpha-tdep.c (alpha_skip_prologue): Recognize subq.
c906108c 2403
7a292a7a
SS
2404 * config/alpha/tm-alpha.h (REGISTER_NAMES): No f31, but fpcr.
2405 (FPCR_REGNUM): New.
2406 (REGISTER_CONVERTIBLE): Don't convert fpcr.
2407 (REGISTER_VIRTUAL_TYPE): Don't make fpcr a double.
c906108c 2408
7a292a7a
SS
2409 * stabsread.c (define_symbol): Only consider live range extension
2410 if we have an open parenthesis.
c906108c 2411
7a292a7a
SS
24121999-03-11 Jim Blandy <jimb@zwingli.cygnus.com>
2413
2414 * monitor.c (monitor_fetch_register): Print RDEBUG info correctly
2415 when the register name is null.
2416
2417Thu Mar 11 19:33:07 1999 Stan Shebs <shebs@andros.cygnus.com>
2418
2419 * infrun.c (wait_for_inferior): Change #if DECR_PC_AFTER_BREAK
2420 uses to expressions, remove redundant extern decls.
2421
2422Thu Mar 11 18:05:11 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
c906108c
SS
2423
2424 * infptrace.c (proc_wait): Rename to ptrace_wait.
2425 * inftarg.c (child_wait): call ptrace_wait instead of proc_wait.
2426 * inferior.h: Declare ptrace_wait instead of proc_wait.
2427
7a292a7a
SS
2428Thu Mar 11 11:46:25 1999 Andrew Cagney <cagney@amy.cygnus.com>
2429
2430 * breakpoint.c (create_solib_load_unload_event_breakpoint,
2431 create_fork_vfork_event_catchpoint, tcatch_command,
2432 create_exception_catchpoint, break_at_finish_at_depth_command_1,
2433 catch_fork_command_1, ep_skip_leading_whitespace,
2434 break_at_finish_command_1, catch_exec_command_1,
2435 catch_exception_command_1, stop_command, stopin_command,
2436 stopat_command, ep_parse_optional_filename,
2437 ep_find_event_name_end, ep_parse_optional_if_clause,
2438 catch_fork_command_1), stack.c (show_and_print_stack_frame_stub,
2439 print_stack_frame_stub, print_only_stack_frame_stub,
2440 backtrace_command_1, backtrace_full_command, func_command),
2441 valprint.c (print_decimal), source.c (print_source_lines_base):
2442 Add prototype.
2443
2444 * stack.c (print_stack_frame_stub, show_and_print_stack_frame_stub,
2445 print_only_stack_frame_stub): Make param void*.
2446
2447Wed Mar 10 19:33:28 1999 Geoffrey Noer <noer@cygnus.com>
2448
2449 * win32-nat.c: If old Cygwin Win32 API headers aren't being used,
2450 define some gdb-specific defines that shouldn't have been in the
2451 global headers.
2452
2453Wed Mar 10 21:20:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
2454
2455 * findvar.c (registers, register_valid): Replace array with pointer.
2456 (build_findvar): New function. Allocate space for REGISTERS and
2457 REGISTER_VALID.
2458 (_initialize_findvar): Call build_findvar.
0f71a2f6
JM
2459 (_initialize_findvar): Register REGISTERS and REGISTER_VALID as
2460 arch dependant.
7a292a7a
SS
2461
2462 * inferior.h (registers, register_valid): Replace array with
2463 pointer.
2464
2465 * inferior.h (struct inferior_status): Move definition from here.
2466
2467 * infrun.c (struct inferior_status): To here.
2468 (struct inferior_status): Change ``stop_registers'' and
2469 ``registers'' to pointers.
2470 (xmalloc_inferior_status, free_inferior_status): New functions.
2471 (restore_inferior_status): Call free_inferior_status.
2472 (save_inferior_status): Call xmalloc_inferior_status.
2473 (discard_inferior_status): New function, discard inf_status
2474 buffer. Call free_inferior_status.
2475
2476 * inferior.h (stop_registers): Replace array with pointer.
2477 * infrun.c (stop_registers): Update.
2478 (build_infrun): Initialize stop_registers.
2479 (_initialize_infrun): Call build_infrun.
0f71a2f6 2480 (_initialize_infrun): Register ``stop_registers'' as arch dependant.
7a292a7a
SS
2481
2482Wed Mar 10 14:50:42 1999 Andrew Cagney <cagney@amy.cygnus.com>
2483
2484 * alpha-tdep.c (alpha_linux_sigtramp_offset): Only compile when
2485 LINUXALPHA target. Hack.
2486
2487 * infrun.c (set_follow_fork_mode_command): Make static. Add
2488 prototype.
2489 * tracepoint.c (add_register): Ditto.
2490 * valprint.c (strcat_longest): Comment out. Does not appear to be
2491 used.
2492 * valops.c (find_method_list): Make static. Add prototype.
2493 * thread.c (target_find_new_threads): Make static. Add prototype.
2494 * stack.c (stack_publish_stopped_with_no_frame,
2495 select_and_maybe_print_frame): Comment out. Does not appear to be
2496 used.
2497 (current_frame_command): Add prototype.
2498 * breakpoint.c (break_at_finish_command,
2499 break_at_finish_at_depth_command, tbreak_at_finish_command): Make
2500 static. Add prototype.
2501 * findvar.c (read_relative_register_raw_bytes_for_frame): Ditto.
2502
2503Wed Mar 10 23:38:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
2504
2505 * corefile.c (registers): Delete redundant variable declaration.
2506 * inferior.h (run_stack_dummy): Change array argument to pointer.
2507 * infcmd.c (run_stack_dummy): Update.
2508 * value.h (value_being_returned): Change RETBUF to a pointer.
2509 * values.c (value_being_returned): Update.
2510
2511Wed Mar 10 11:08:16 1999 Andrew Cagney <cagney@amy.cygnus.com>
2512
2513 * source.c (list_command): GCC suggested explicit braces to avoid
2514 ambiguous `else'.
2515
2516 * jv-typeprint.c: Include "c-lang.h".
2517 * Makefile.in (jv-typeprint.o): Add dependency.
2518 * jv-valprint.c: Include "gdbcore.h", "annotate.h".
2519 * Makefile.in (jv-valprint.o): Add dependencies.
2520 * objfiles.c: Include "breakpoint.h".
2521 * Makefile.in (objfiles.o): Add dependency.
2522 * main.c: Include <unistd.h>.
2523 * parse.c: Include <ctype.h>.
2524 * remote.c: Include <ctype.h>.
2525 * ser-tcp.c: Include <unistd.h>.
2526 * ax-general.c: Include "value.h".
2527 * Makefile.in (ax-general.o): Add dependency.
2528
2529 * alpha-tdep.c (alpha_push_arguments): Make ``i'' an int instead
2530 of a register.
2531 * frame.h (show_and_print_stack_frame): Add function prototype.
2532 * language.h (language_enum): Add function prototype.
2533 * value.h (find_overload_match): Add function prototype.
2534
2535 * defs.h, utils.c (subset_compare): Rename subsetCompare. Add
2536 prototype.
2537 * stack.c (backtrace_command): Update.
2538
2539Wed Mar 10 13:58:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
2540
2541 * configure.in (AC_CHECK_HEADERS): Check for <sys/select.h>
2542 * configure, config.in: Re-generate.
2543 * inflow.c: Conditionally include <sys/select.h>.
2544
2545Wed Mar 10 13:44:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
2546
2547 * frame.h (struct dummy_frame): Move from here.
2548 * blockframe.c (struct dummy_frame): To here.
2549
2550 * blockframe.c (struct dummy_frame): Replace ``regs'' with pointer
2551 ``registers''.
2552 (generic_pop_dummy_frame): Free it.
2553 (generic_push_dummy_frame): Allocate dummy frame register buffer.
2554
2555Wed Mar 10 11:08:16 1999 Andrew Cagney <cagney@amy.cygnus.com>
2556
2557 * thread.c (_initialize_thread): Delete redundant ``extern struct
2558 cmd_list_element *cmdlist''.
2559 * printcmd.c (print_command_1): Ditto for ``objectprint'';
2560
25611999-03-09 Stan Shebs <shebs@andros.cygnus.com>
2562
2563 * MAINTAINERS: New file, list of maintainers and areas they
2564 maintain.
c906108c
SS
2565
25661999-03-09 Rodney Brown <RodneyBrown@pmsc.com>
2567
2568 Get working on UnixWare 2.1.1.
2569 * acconfig.h: Update for defines for procfs.c.
2570 * configure.in: Identify defines for procfs.c.
2571 * configure.host: i386-*-sysv4.2uw2* => i386v42mp
2572 * configure.tgt: i386-*-sysv4.2uw2* => i386v42mp
2573 * configure, config.in: Regenerate.
2574 * procfs.c: Rename HAVE_NO_PRRUN_T to HAVE_PRRUN_T (autoconf
2575 standard), wrap UNIXWARE difference in THE_PR_LWP macro for
2576 legibility.
2577 * config/i386/tm-i386v42mp.h: Remove HAVE_PSTATUS_T,
2578 HAVE_NO_PRRUN_T; now set by configure.
2579
7a292a7a
SS
2580Tue Mar 9 16:29:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
2581
2582 * i386-tdep.c (gdb_print_insn_i386): Abort when disassembly_flavor
2583 undefined..
2584
2585 * fr30-tdep.c (_initialize_fr30_tdep): Add prototype. Fix
2586 coding style.
2587
2588 * target.c (debug_to_enable_exception_callback,
2589 debug_to_get_current_exception_event): Return result of call to
2590 debug_target().
2591
25921999-03-09 Jim Blandy <jimb@zwingli.cygnus.com>
2593
2594 Another HURD fix from Mark Kettenis:
2595 * gnu-nat.c: Include <string.h>. Remove declaration of strerror.
2596 Include <bits/waitflags.h> instead of <waitflags.h> and define
2597 _SYS_WAIT_H to prevent the warning that we should not include it.
2598 (gnu_create_inferior): Change return type of attach_to_child to
2599 void. Do not return INFERIOR_PID.
2600 (gnu_pid_to_exec_file): Change return type to char *.
2601 Return NULL.
2602
2603 Fix for the HURD from Mark Kettenis:
2604 * configure.in: Add AC_PROG_AWK. Needed by the machine-dependent
2605 makefile fragments for the Hurd.
2606 * Makefile.in (AWK): Add. Set by configure.
2607 * configure: Regenerated.
2608
26091999-03-08 Jason Molenda (jsm@bugshack.cygnus.com)
2610
2611 * infttrace.c (hppa_get_process_events): Removed. Function only
2612 usable on HPUX 10 and above. It is not called by any other part
2613 of GDB.
2614 * hppah-nat.c (hppa_get_process_events): Ditto.
2615 (child_pid_to_exec_file): Only call ptrace with
2616 PT_GET_PROCESS_PATHNAME if that symbol has been defined.
2617 * config/pa/nm-hppah.h: Don't set up prototypes et al for
2618 hppa_get_process_events.
2619
2620 * config/pa/hppahpux.mh (TERM_LIB): Do not initialize, let autoconf
2621 determine best library automatically.
2622 * config/pa/hpux1020.mh: Ditto.
2623 * config/pa/hpux1100.mh: Ditto.
2624 * configure.in (TERM_LIB): Also check for libHcurses.
2625 * configure: Regenerated.
2626
2627Thu Mar 4 17:16:04 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
2628
2629 * m32r-stub.c: add support for crc "Compare" command.
2630
c906108c
SS
26311999-03-04 Jim Blandy <jimb@zwingli.cygnus.com>
2632
7a292a7a
SS
2633 * fr30-tdep.c (fr30_store_return_value): Allocate zeroes
2634 dynamically, to save BSS space, and to remove assumptions about
2635 the size of the largest value we'll return.
2636
2637 * config/fr30/tm-fr30.h (fr30_store_return_value): Use PARAMS in
2638 prototype.
2639
2640Thu Mar 4 08:37:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
2641
2642 * sh3-rom.c (sh3_supply_register, sh3_supply_register),
2643 mips-tdep.c (mips_push_arguments), m32r-rom.c
2644 (m32r_upload_command), m32r-tdep.c (decode_prologue), monitor.c
2645 (longlong_hexchars), tracepoint.c (validate_actionline,
2646 read_actions), mdebugread.c
2647 (parse_symbol), jv-typeprint.c
2648 (java_type_print_base, java_type_print_base), mdebugread.c
2649 (parse_symbol), top.c (source_command), utils.c
2650 (floatformat_to_doublest): GCC suggest explicit braces to avoid
2651 ambiguous `else'.
c906108c 2652
7a292a7a
SS
2653 * tracepoint.c (map_args_over_tracepoints, trace_actions_command),
2654 m32r-rom.c (m32r_supply_register), win32-nat.c
2655 (handle_output_debug_string, child_continue), i960-tdep.c
2656 (pop_frame), m32r-rom.c (m32r_upload_command): GCC suggested
2657 parentheses around assignment used as truth value.
2658
2659 * remote-sds.c (sds_wait), monitor.c (monitor_fetch_register),
2660 ser-e7kpc.c, (dosasync_write), arc-tdep.c (arc_get_frame_setup):
2661 GCC suggested parentheses around operands.
2662
2663 * c-typeprint.c (c_type_print_base): GCC suggested enclosing
2664 "while" expression in paren.
2665
2666Wed Mar 3 18:14:33 1999 Andrew Cagney <cagney@chook.cygnus.com>
2667
2668 * sol-thread.c (save_inferior_pid): Cast the saved pid to void*.
2669 (restore_inferior_pid): Takes void* as required by make_cleanup.
2670 Casts pid back to an int.
2671
2672 * procfs.c (make_cleanup_close_proc_file,
2673 close_proc_file_cleanup): Create a proc_file cleanup.
2674 (info_proc): Use.
2675
2676 * defs.h (make_cleanup_freeargv): Helper function. Establish
2677 cleanup using freeargv. Can not just typecast/pass freeargv as it
2678 violates ISO-C.
2679 * utils.c (do_freeargv): Helper.
2680 (make_cleanup_freeargv): New function.
2681
2682 * symmisc.c (maintenance_print_symbols,
2683 maintenance_print_psymbols, maintenance_print_msymbols), symfile.c
2684 (symbol_file_command), stack.c (backtrace_command), remote-sim.c
2685 (gdbsim_create_inferior, gdbsim_open), remote-mips.c
2686 (common_open), procfs.c (info_proc), infrun.c (handle_command,
2687 xdb_handle_command), exec.c (exec_file_attach): Call
2688 make_cleanup_freeargv.
2689
26901999-03-03 James Ingham <jingham@cygnus.com>
2691
2692 * i386-tdep.c (_initialize_i386_tdep): Set the inital value for
2693 disassembly flavor at startup, rather than hardcoding it.
2694
26951999-03-03 Jim Blandy <jimb@zwingli.cygnus.com>
2696
2697 Put return values in the right place.
2698 * fr30-tdep.c (fr30_store_return_value): New function.
2699 * config/fr30/tm-fr30.h (STORE_RETURN_VALUE): Call
2700 fr30_store_return_value.
2701
2702Wed Mar 3 18:10:55 1999 Andrew Cagney <cagney@chook.cygnus.com>
2703
2704 * gdbtypes.c (virtual_base_list_aux): Return void. Add prototype.
2705
2706 * breakpoint.c (map_catch_names): Comment out unused function.
2707
27081999-03-02 Jason Molenda (jsm@bugshack.cygnus.com)
2709
2710 * hppa-tdep.c (pa_register_look_aside): Only refer to save_state_t
2711 structure on PA 2.0 systems.
2712
27131999-03-02 Stan Shebs <shebs@andros.cygnus.com>
2714
2715 From Gary Thomas <gthomas@cygnus.co.uk>:
2716 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT,
2717 THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Use illegal instruction
2718 instead of SWI 24.
2719 * config/arm/tm-arm.h (CALL_DUMMY): Ditto.
2720 (IN_SIGTRAMP): Define.
2721
27221999-03-02 Nick Clifton <nickc@cygnus.com>
2723
2724 * findvar.c (store_address): Delete incorrect big endian
2725 code.
2726
2727Tue Mar 2 18:02:42 1999 Andrew Cagney <cagney@chook>
2728
2729 * configure.in (gdb_cv_os_cygwin): Compat. Continue to reconize
2730 __CYGWIN32__.
2731
27321999-03-01 Jason Molenda (jsm@bugshack.cygnus.com)
2733
2734 * configure.in: Move setting of gdb_cv_os_cygwin to before
2735 setting of TERM_LIB. Check for __CYGWIN__ instead of __CYGWIN32__.
2736 * configure: Regenerated.
2737
27381999-03-01 DJ Delorie <dj@cygnus.com>
2739
2740 * configure.in: Change -cygwin32* to -cygwin*.
2741 * configure: Ditto.
2742
27431999-02-25 Stan Shebs <shebs@andros.cygnus.com>
2744
2745 * breakpoint.c (SOLIB_LOADED_LIBRARY_PATHNAME,
2746 SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_CREATE_CATCH_LOAD_HOOK,
2747 SOLIB_CREATE_CATCH_UNLOAD_HOOK): Supply default definitions.
2748 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Ditto.
2749
27501999-02-25 Keith Seitz <keiths@cygnus.com>
2751
2752 * corelow.c (core_close): Clear out solib state before
2753 closing the bfd associated with the core file.
2754 * solib.c (clear_solib): Mention that clear_solib requires
2755 an open BFD in order for disable_breakpoints_in_shlibs to
2756 determine whether breakpoints live in shared libraries.
2757
27581999-02-24 Jason Molenda (jsm@bugshack.cygnus.com)
c906108c
SS
2759
2760 * configure.in: Set CPU_HPPA_RISC_20 if the host CPU is a PA 2.0
2761 processor.
2762 * acconfig.h: Add CPU_HPPA_RISC_20
2763 * config.in, configure: Regenerated.
2764 * hppa-tdep.c (pa_register_look_aside): Only refer to new
2765 structure elements if we are on a PA2.0 system.
2766 * defs.h: Include limits.h.
2767
7a292a7a
SS
2768Tue Feb 23 14:37:08 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
2769
2770 * infrun.c (wait_for_inferior): Check scheduler_locking state
2771 before resuming after a thread-specific breakpoint.
2772
27731999-02-23 Jim Blandy <jimb@zwingli.cygnus.com>
2774
2775 * aclocal.m4, config.in, configure: Regenerated with latest
2776 autotools.
2777
2778Mon Feb 22 12:32:19 1999 Per Bothner <bothner@cygnus.com>
2779
2780 * jv-valprint.c (java_val_print): Restore line that somehow got lost.
2781
2782 * jv-valprint.c (java_print_value_fields): Check for NULL type.
2783
27841999-02-21 Jim Blandy <jimb@zwingli.cygnus.com>
2785
2786 * tm-h8500.h, i386lynx-nat.c: Removed. These files are long
2787 dead; it seems that they only appeared due to some CVS weirdness.
2788 If they appear again, we may need to distribute garlic and holy
2789 water.
2790
27911999-02-19 Jason Molenda (jsm@bugshack.cygnus.com)
2792
2793 * configure.in (TERM_LIB): Move checking for TERM_LIB, substituting.
2794 * configure: Regenerated.
2795
27961999-02-19 Robert Hoehne (robert.hoehne@gmx.net)
2797
2798 * configure.host (i[3456]86-*-msdosdjgpp*): New host.
2799 * configure.tgt (i[3456]86-*-msdosdjgpp*): New target.
2800 * go32-nat.c: New file, native DJGPP support.
2801 * config/i386/go32.mh: Rewrite for DJGPP (go32) host.
2802 * config/i386/go32.mt: New file, DJGPP (go32) target.
2803 * config/i386/nm-go32.h: New file.
2804 * config/i386/tm-go32.h: New file.
2805 * config/i386/xm-go32.h: Rewritten for current DJGPP.
2806
28071999-02-18 Jason Molenda (jsm@bugshack.cygnus.com)
2808
2809 * reply_mig_hack.awk, config/nm-gnu.h, config/alpha/nm-linux.h
2810 config/alpha/xm-alphalinux.h, config/alpha/xm-alphaosf.h
2811 config/i386/nm-i386sco5.h, config/i386/tm-fbsd.h, config/i386/tm-i386.h
2812 config/powerpc/nm-aix.h, config/powerpc/tm-macos.h
2813 config/powerpc/tm-ppc-aix.h, config/powerpc/xm-aix.h
2814 config/rs6000/tm-rs6000-aix4.h, testsuite/gdb.chill/tests1.ch
2815 testsuite/gdb.chill/tests2.ch, testsuite/gdb.chill/tests2.exp:
2816 Update FSF address in copyright notices.
2817
28181999-02-18 Jason Molenda (jsm@bugshack.cygnus.com)
2819
2820 * configure.in: Quote "$GCC" correctly.
2821 * configure: Regenerated.
2822
28231999-02-18 Jim Blandy <jimb@zwingli.cygnus.com>
2824
2825 * dbxread.c (elfstab_build_psymtabs): Don't assume that there's a
2826 section named ".text", which has all the code in it. Instead, look
2827 at all the sections in the file with the `code' flag set.
2828 (find_text_range): New function, that does all the work.
2829
2830Thu Feb 18 17:50:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
2831
2832 * mips-tdep.c (FP_REGISTER_DOUBLE): Conditionally define.
2833
2834Fri Jan 29 16:51:11 1999 Andrew Cagney <cagney@chook.cygnus.com>
2835
2836 * mips-tdep.c (return_value_location): New function. Merge/rewrite
2837 of return-value code in mips_extract_return_value,
2838 mips_store_return_value. Stop buffer overflow when 64 bit value
2839 in 32 bit registers. Extract 64bit float from 32 bit register
2840 pair of correct order.
2841 (mips_extract_return_value, mips_store_return_value): Call
2842 return_value_location. For store, ensure that remainder of
2843 register is zero.
c906108c 2844
7a292a7a 2845Wed Feb 17 10:10:27 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
c906108c
SS
2846
2847 * gdbtypes.h (get_discrete_bounds): Remove duplicate decl.
2848
2849 * jv-typeprint.c (java_type_print_base): Change fputs => fputs_filtered.
2850
7a292a7a 2851Mon Jan 25 18:30:57 1999 Per Bothner <bothner@cygnus.com>
c906108c
SS
2852
2853 * jv-lang.h (JAVA_OBJECT_SIZE): Change from hard-wired constant.
2854 (java_primitive_type_from_name, get_java_object_header_size): Declare.
2855 * jv-lang.c (java_class_from_object): Use get_java_object_type.
2856 * jv-lang.c: Update Class field names: dtable->vtable,
2857 msize->method_count, nfields->field_count, bfsize->size_in_bytes,
2858 nmethods->method_count.
2859 (type_from_class): Demangle array type names.
2860 (java_link_class_type): Array type names are now demangled.
2861 (get_java_object_type): If not defined yet, try looking it up.
2862 (get_java_object_header_size): New function.
2863 (java_primitive_type_from_name): New function.
2864 (java_demangled_signature_length, java_demangled_signature_copy): New.
2865 (java_demangle_type_signature): Re-implement using above functions.
2866 (evaluate_subexp_java): For UNOP_IND, call evaluate_subexp_java
2867 to evaluate subexp (not evaluate_subexp_standard).
2868 For BINOP_SUBSCRIPT update for new array type naming scheme.
2869 * jv-valprint.c (java_value_print): Use java_class_from_object.
2870 Update array printing to new array type naming convention.
2871 (java_val_print): Doing check_typedef when printing a pointer is
2872 is a waste of effort. Also, handle TYPE_CODE_INT, to make sure
2873 Java bytes as not printed as C chars.
2874
7a292a7a 2875Fri Jan 8 16:58:22 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
c906108c
SS
2876
2877 * blockframe.c (find_pc_sect_partial_function): Search full symtabs as
2878 a last ditch effort (after the partial & minimal symtabs).
2879 * defs.h utils.c: Fixup prototypes for vprintf_filtered,
2880 vfprintf_filtered, vfprintf_unfiltered and vprintf_unfiltered to return
2881 ints to match their standard equivalents.
2882 * defs.h symtab.c top.c: Create skip_prologue_hook to allow Java to
2883 control the prologue skipping process.
2884 * jv-typeprint.c (java_type_print_base): Remove extern for
2885 jv_class_demangle, add new arg for objfile (NULL).
2886 * symtab.h: Remove struct sourcevector and struct source. Definately
2887 not needed.
2888 * values.c (value_virtual_fn_field): Fixes code to handle new vtable
2889 debug info format. Patch from marka.
2890
7a292a7a 2891Wed Dec 16 23:11:25 1998 Stu Grossman <grossman@fencer.cygnus.com>
c906108c
SS
2892
2893 * jv-lang.c (java_class_from_object java_class_is_primitive
2894 is_object_type): Change dtable to vtable.
2895 * (java_primitive_type): Change arg to type char.
2896 * (_initialize_java_language): Make java_char_type be unsigned.
2897 * jv-lang.h: Fixup prototypes.
2898
7a292a7a 2899Mon Dec 7 19:02:15 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
c906108c
SS
2900
2901 * jv-valprint.c (java_value_print): Fix printing of values where
2902 run time type != compile time type.
2903
7a292a7a
SS
2904Fri Dec 4 15:23:38 1998 Stu Grossman <grossman@fencer.cygnus.com>
2905
c906108c
SS
2906 * Makefile.in: Whack out m2-typeprint.c.
2907 * c-typeprint.c (c_type_print_varspec_suffix) typeprint.h: Make this
2908 global. It's needed by Java.
2909 * (c_type_print_base): Whack prefix off of qualified method names
2910 (names with name spaces).
2911 * gdbtypes.h (struct cplus_struct_type): Add bits for Java attributes.
2912 Shrink voffset
2913 to 16 bits to compensate for added bits above (hopefully this is still
2914 enough).
2915 * Add new accessor macros (TYPE_FND_FIELD_PUBLIC, ...) for all new
2916 attribute bits.
2917 * jv-typeprint.c (java_type_print_base): Fix printing of method
2918 attributes. Handle JVM style manglings.
2919 * (java_print_type): Enable code type print varspec_suffix to allow
2920 array indices to print out.
2921 * jv-valprint.c (java_val_print): Minor formatting.
2922 * m2-lang.c (m2_language_d): Change m2_print_type to c_print_type.
2923 * stabsread.c (read_member_functions): Save public and static attributes.
7a292a7a
SS
2924
2925Wed Feb 17 15:32:57 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
c906108c 2926
c906108c
SS
2927 * breakpoint.c (watch_command_1): Reformat comment.
2928
c906108c
SS
2929 * c-typeprint.c (c_type_print_base): Reformat comments.
2930
7a292a7a
SS
29311999-02-17 Jim Blandy <jimb@zwingli.cygnus.com>
2932
2933 * Makefile.in (VERSION): Bump version to 4.17.2.
2934
2935Tue Feb 16 15:48:20 1999 Edith Epstein <eepstein@sophia.cygnus.com>
2936
c906108c
SS
2937 * config/pa/nm-hppah.h: Added prototype declarations for
2938 hppa_enable_page_protection_events and
2939 hppa_disable_page_protection_events.
7a292a7a 2940
c906108c
SS
2941 * inftarg.c (child_wait): Fixed code that checks whether
2942 or not the target program has done a fork/vfork.
2943 related_pid does not have a value unless the target
2944 program has forked/vforked.
7a292a7a
SS
2945
2946 * infttrace.c (hppa_insert_hw_watchpoint): Make sure that
2947 function always returns a value.
2948 (hppa_remove_hw_watchpoint): Make sure that function always
2949 returns a value.
c906108c 2950
7a292a7a 2951Tue Feb 16 06:31:58 1999 Keith Seitz <keiths@cygnus.com>
c906108c 2952
7a292a7a
SS
2953 * config/powerpc/tm-ppc-eabi.h: Do not define PC_IN_CALL_DUMMY,
2954 let the generic call dummy infrastructure do it.
c906108c
SS
2955
2956Sun Feb 14 18:21:08 1999 Mark Alexander <marka@cygnus.com>
2957
2958 * config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
2959 coffread.c will correctly handle char or short function parameters.
2960
29611999-02-11 Jason Molenda (jsm@bugshack.cygnus.com)
2962
2963 * configure, aclocal.m4: Regenerate with correct version of aclocal.
2964
29651999-02-10 Syd Polk <spolk@cygnus.com>
2966
2967 * acinclude.m4: Fix for new location of itclConfig.sh and itkConfig.sh.
2968 * aclocal.m4: Regnerate.
2969 * configure: Regenerate.
2970
29711999-02-10 Jason Molenda (jsm@bugshack.cygnus.com)
2972
2973 * demangle.c: Fix comments to mention "set demangle-style"
2974 instead of "set demangle".
2975 Run through indent to fix minor indenting problems.
2976
2977Wed Feb 10 17:53:09 1999 Bob Manson <manson@charmed.cygnus.com>
2978
2979 * i386-tdep.c (gdb_print_insn_i386): Add missing returns.
2980
2981Wed Feb 10 13:17:21 1999 Stan Shebs <shebs@andros.cygnus.com>
2982
2983 Declare Gould configuration obsolete:
2984 * configure.host, configure.tgt: Comment out Gould configs.
2985 * Makefile.in: Comment out Gould-related actions.
2986 * gould-xdep.c, gould-tdep.c, config/gould/*: Comment out.
2987 * NEWS: Mention obsolete status.
2988
29891999-02-09 DJ Delorie <dj@cygnus.com>
2990
2991 * sparcl-tdep.c: UDP download works in cygwin
2992
29931999-02-08 Jason Molenda (jsm@bugshack.cygnus.com)
2994
2995 * gnu-regex.c: Check ENABLE_NLS instead of HAVE_LIBINTL_H.
2996 * configure.in: Don't check for libintl.h.
2997 * configure, config.in: Regenerated.
2998
2999Mon Feb 8 18:10:50 1999 Stan Shebs <shebs@andros.cygnus.com>
3000
3001 * NEWS: Mention new X packet and PowerPC variant support.
3002
30031999-02-08 Nick Clifton <nickc@cygnus.com>
3004
3005 * configure.host: Add support for StrongARM host.
3006 * configure.tgt: Add support for StrongARM target.
3007
3008Mon Feb 8 12:05:05 1999 David Taylor <taylor@texas.cygnus.com>
3009
3010 * dsrec.c (make_srec): Cast targ_addr to int in call to sprintf
3011 otherwise on big endian machine with a bfd_vma of 64 bits,
3012 *everything* gets loaded at location 0.
3013
3014Mon Feb 7 10:05:43 1999 Frank Ch. Eigler <fche@cygnus.com>
3015
3016 * infrun.c (wait_for_inferior): Allow SIGTRAP to be "pass"ed
3017 to target program.
3018
3019Fri Feb 5 16:46:14 1999 Stan Shebs <shebs@andros.cygnus.com>
3020
3021 * NEWS: Add mentions of various new things.
3022
3023Thu Feb 4 00:19:14 1999 Christopher Faylor <cgf@cygnus.com>
3024
3025 * configure.in: Move termcap determination later in the
3026 file to catch setting of cygwin flag.
3027 * configure: Regenerate.
3028
3029Wed Feb 3 14:16:38 1999 Christopher Faylor <cgf@cygnus.com>
3030
3031 * config/i386/cygwin.mh: Move TERMCAP test code to configure.in.
3032 * configure.in: Treat libtermcap.a detection as a special case
3033 when hosting on cygwin.
3034 * configure: Regenerate.
3035
30361999-02-03 Keith Seitz <keiths@cygnus.com>
3037
3038 * remote.c (remote_binary_download, remote_binary_length): New
3039 static globals for dealing with binary transmissions.
3040 (remote_write_bytes): Add support for binary downloads
3041 by shadowing the "M" packet with a new "X" packet. This
3042 defaults to ON; if the stub does not understand this, it
3043 will fall back to using "M".
3044 (putpkt): Add support for binary downloading.
3045 * monitor.c (monitor_expect): The mon2000 monitor
3046 on the MSA2000 will also emit random DC1/DC3 chars.
3047 * m32r-stub.c: Change all char's to unsigned char's
3048 to support binary downloading.
3049 (handle_exception): Add support for binary downloading
3050 via a new "X" packet.
3051 (getpacket): Do NOT strip eighth bit of incoming chars.
3052 Watch out for escaped characters in the incoming stream.
3053 (putpacket): Do NOT strip eighth bit of incoming chars.
3054 (bin2mem): New function to write binary data directly to
3055 memory.
3056 * m32r-rom.c: Add new "mon2000" target.
3057
3058Tue Feb 2 18:40:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3059
3060 * hp-psymtab-read.c (hpread_build_psymtabs): Coerce first arg
3061 passed to make_cleanup to the correct type.
3062 (hpread_quick_traverse): Change fifth arg to call to
3063 hpread_end_psymtab to be 0.
3064 Compare CURR_MODULE_END to 0 rather than NULL.
3065 Get rid of ifdef'ed out code.
3066 (scan_procs): Get rid of ifdef'ed out code.
3067
3068 * somread.c (som_symfile_read): Coerce first argument passed to
3069 make_cleanup to the correct type.
3070
3071Tue Feb 2 17:36:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3072
3073 * hp-psymtab-read.c (do_pxdb): New function. Check whether the
3074 file needs to be processed by pxdb (an HP debug info massaging
3075 tool), if so call it.
3076 (hpread_build_psymtabs): Initialize scan_start to 0 and
3077 simplify flow of control.
3078
3079 * somread.c (som_symfile_read): Add call to do_pxdb (),
3080 in hp-psymtab-read.c.
3081
3082 * symfile.c (symbol_file_add): Remove ifdef'ed out HPUX specific
3083 code.
3084 (symfile_bfd_open): Remove HPUXHPPA ifdef'ed code. Code is now
3085 in hp-psymtab-read.c.
3086
30871999-02-02 Martin Hunt <hunt@cygnus.com>
3088
3089 * printcmd.c (print_scalar_formatted): Use strcat to concat all
3090 the output together before calling fprintf_filtered().
3091
30921999-02-01 Jason Molenda (jsm@bugshack.cygnus.com)
3093
3094 * configure.in: Require autoconf 2.13.
3095 (AM_EXEEXT): Replace with new AC_EXEEXT.
3096 * acinclude.m4: Move itcl header macros from aclocal.m4 to here.
3097 * aclocal.m4: Regenerated.
3098 * configure: Regenerated.
3099
31001999-02-01 Jim Blandy <jimb@zwingli.cygnus.com>
3101
3102 Allow PPC users to select which PPC/RS6000 variant they're
3103 debugging at run-time. At the moment, the only thing this affects
3104 is the set of registers visible.
3105 * config/rs6000/tm-rs6000.h (REGISTER_NAME): Define this as a call
3106 to the function rs6000_register_name.
3107 (rs6000_register_name): Include extern decl.
3108 (NUM_REGS): Bump to 183. What's the right way to do this?
3109 (FIRST_UISA_SP_REGNUM, LAST_UISA_SP_REGNUM): Renamed from
3110 FIRST_SP_REGNUM, LAST_SP_REGNUM.
3111 (REGISTER_BYTES): Recompute this.
3112 * rs6000-tdep.c: Renamed all uses of FIRST_SP_REGNUM and
3113 LAST_SP_REGNUM to FIRST_UISA_SP_REGNUM and LAST_UISA_SP_REGNUM, with
3114 some concomitant formatting changes.
3115 #include "gdbcmd.h", so we can define commands here.
3116 (struct variant): New structure.
3117 (COMMON_UISA_REG_NAMES, PPC_UISA_SPR_NAMES, PPC_SEGMENT_REG_NAMES,
3118 PPC_32_OEA_SPR_NAMES, num_registers): New macros.
3119 (register_names_rs6000, register_names_uisa, register_names_403,
3120 register_names_403GC, register_names_505, register_names_860,
3121 register_names_601, register_names_602, register_names_603,
3122 register_names_604, register_names_750, variants): New variables.
3123 (rs6000_register_name, install_variant, find_variant_by_name,
3124 install_variant_by_name, list_variants, show_current_variant,
3125 set_processor, show_processor): New functions.
3126 (_initialize_rs6000_tdep): Define new commands `set processor' and
3127 `show processor', and call install_variant_by_name to set the
3128 default variant.
3129 * rs6000-nat.c: Renamed all uses of FIRST_SP_REGNUM and
3130 LAST_SP_REGNUM to FIRST_UISA_SP_REGNUM and LAST_UISA_SP_REGNUM, with
3131 some concomitant formatting changes.
3132 * configure.in: Accept the `--with-cpu' flag, to specify a default
3133 processor variant.
3134 * acconfig.h: Provide a blurb for TARGET_CPU_DEFAULT, which is set
3135 by configure's `--with-cpu' flag.
3136 * config.in, configure: Regenerated.
3137
3138Sun Jan 31 15:24:24 1999 Stan Shebs <shebs@andros.cygnus.com>
3139
3140 * buildsym.h, buildsym.c: Convert to ANSI-only.
3141
3142 * buildsym.h, buildsym.c: Reformat to standard.
3143
3144 * buildsym.c (merge_symbol_lists): Remove unused variable.
3145 (_initialize_buildsym): Remove, does nothing.
3146
31471999-01-31 J.T. Conklin <jtc@redbacknetworks.com>
3148
3149 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
3150 sparcl-stub, sparclet-stub.c: Change declaration of putDebugChar
3151 to include explicit void return type as per documentation. Fix up
3152 occasions where stubs erroneously checked return type.
3153
3154Sun Jan 31 13:18:33 1999 Stan Shebs <shebs@andros.cygnus.com>
3155
3156 From J.T. Conklin <jtc@redbacknetworks.com>:
3157 * remote.c (remote_query): Fix tipo.
3158
3159Fri Jan 29 15:25:09 1999 Stan Shebs <shebs@andros.cygnus.com>
3160
3161 * configure.tgt (v850): Add wildcard to match.
3162
3163Fri Jan 29 16:44:01 1999 Edith Epstein <eepstein@sophia.cygnus.com>
3164
3165 * inferior.h: Ran indent.
3166
3167 * fork-child.c: Ran indent.
3168
3169 * infrun.c : Ran indent.
3170
3171Fri Jan 29 12:57:34 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3172
3173 * infrun.c (_initialize_infrun): Do not stop or print anything
3174 when a SIGWINCH is received.
3175
3176 * Makefile.in (m2-exp.tab.c): Use YACC not BISON.
3177 (f-exp.tab.c): Ditto.
3178 (jv-exp.tab.c): Ditto.
3179 (c-exp.tab.c): Ditto.
3180 (YACC): Define as @YACC@.
3181
31821999-01-29 Martin Hunt <hunt@cygnus.com>
3183
3184 Changes from Keith Seitz <keiths@cygnus.com>
3185 * valops.c (value_assign): Add calls to register_changed_hook and
3186 memory_changed_hook to inform UIs that the user has changed
3187 the target's registers/memory.
3188 * findvar.c (write_register_gen): Remove call to pc_changed_hook.
3189 * defs.h: Remove declaration for pc_changed_hook and
3190 add declarations for register_changed_hook and
3191 memory_changed_hook.
3192 * top.c: Ditto.
3193
31941999-01-29 Mark Alexander <marka@cygnus.com>
3195
3196 * procfs.c (wait_fd): Handle deleted threads correctly.
3197
31981999-01-28 Jason Molenda (jsm@bugshack.cygnus.com)
3199
3200 * utils.c (init_page_info): Force window size if running under emacs.
3201
32021999-01-27 James Ingham <jingham@cygnus.com>
3203
3204 * typeprint.c (whatis_exp): Remove static declaration.
3205
3206Wed Jan 27 16:50:25 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3207
3208 * hp-psymtab-read.c: Reformat using indent.
3209
3210Wed Jan 27 13:20:25 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3211
3212 * hp-psymtab-read.c: Reformat comments, update copyright.
3213
3214Tue Jan 26 16:02:47 1999 Mark Alexander <marka@cygnus.com>
3215
3216 * v850-tdep.c (v850_generic_reg_names, v850e_reg_names,
3217 v850_register_names, v850_processor_type_table): Declare tables
3218 and structures for handling differences in register names for
3219 v850 and v850e.
3220 (struct reg_list): Define new structure for creating tables
3221 of register bit masks in v850e instrutions.
3222 (handle_prepare, handle_pushm): New helpers for v850_scan_prologue.
3223 (v850_scan_prologue): Recognize v850e instructions: callt, prepare,
3224 and pushm.
3225 (v850_target_architecture_hook): New function to set register
3226 names based on current machine.
3227 (_initialize_v850_tdep): Set up target_architecture_hook.
3228 * config/v850/tm-v850.h (v850_register_names): Declare.
3229 (REGISTER_NAME): Define to refer to v850_register_names.
3230 (SR0_REGNUM, CTBP_REGNUM): Define.
3231 (PS_REGNUM): Redefine in terms of SR0_REGNUM.
3232
3233Tue Jan 26 18:27:26 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3234
3235 * Makefile.in (c-exp.tab.c): Use BISON instead of YACC, to pick
3236 the correct value from configure output.
3237 (jv-exp.tab.c): Ditto.
3238 (f-exp.tab.c): Ditto.
3239 (m2-exp.tab.c): Ditto.
3240
32411999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
3242
3243 * breakpoint.h (ep_is_exception_catchpoint): Add prototype.
3244 * frame.h (select_and_print_frame): Add prototype.
3245 * stack.c (func_command): Call select_and_print_frame with correct
3246 number of arguments. Reformat whitespace.
3247
3248Tue Jan 26 16:53:54 1999 Fernando Nasser <fnasser@cygnus.com>
3249
3250 * remote.c (remote_query): fix maximum packet size to account for
3251 remote_debug use.
3252 (putpkt): add comment to alert about extra byte need.
3253
3254Mon Jan 25 19:55:30 1999 Mark Alexander <marka@cygnus.com>
3255
3256 * sh-tdep.c (sh_target_architecture_hook): Return immediately
3257 when a matching machine is found.
3258
3259Fri Jan 22 09:10:35 1999 Mark Alexander <marka@cygnus.com>
3260
3261 * remote-mips.c (mips_initialize): Fix parameters to clear_breakpoint.
3262 (common_breakpoint): Restore support for instruction breakpoints
3263 on non-LSI targets.
3264
3265Thu Jan 21 17:16:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
3266
3267 * stack.c: Close open comment.
3268 * symtab.c (find_pc_sect_line): Ditto.
3269
3270Thu Jan 21 17:51:51 1999 Stan Shebs <shebs@andros.cygnus.com>
3271
3272 * procfs.c (init_procfs_ops): New function, fills in procfs_ops,
3273 init only nonzero fields, leave to_require_attach and
3274 to_require_detach empty, not needed for /proc systems yet.
3275 (_initialize_procfs): Call init_procfs_ops.
3276
3277 From J.T. Conklin <jtc@redbacknetworks.com>:
3278 * top.c (init_main): Fix tipo in description of the remotetimeout
3279 variable.
3280 * breakpoint.c (bpstat_stop_status): Handle systems where
3281 DECR_PC_AFTER_BREAK != DECR_PC_AFTER_HW_BREAK.
3282
3283Thu Jan 21 17:25:46 1999 Mark Alexander <marka@cygnus.com>
3284
3285 * mon960-rom.c (_initialize_mon960): Call init_mon960_cmds
3286 to fill in mon960_cmds structure properly.
3287
3288Wed Jan 20 17:53:22 1999 Stan Shebs <shebs@andros.cygnus.com>
3289
3290 * remote-sds.c (sds_ops): Define only once.
3291 (init_sds_ops, sds_command, _initialize_remote_sds): Declare.
3292 (init_sds_ops): Init only non-zero fields.
3293
3294Wed Jan 20 15:45:15 1999 Mark Alexander <marka@cygnus.com>
3295
3296 * h8300-tdep.c (original_register_names, h8300h_register_names,
3297 h8300_register_names): Define new variables.
3298 (set_register_names): New function to set register names based on
3299 current CPU type.
3300 (h8300_command, h8300h_command, h8300s_command): Call
3301 set_register_names.
3302 * config/h8300/tm-h8300.h (h8300_register_names): Declare.
3303 (REGISTER_NAME): Define to refer to h8300_register_names.
3304
33051999-01-19 Fernando Nasser <fnasser@totem.to.cygnus.com>
3306
3307 * sol-thread.c abug-rom.c cpu32bug-rom.c dbug-rom.c m32r-rom.c
3308 mac-nat.c mon960-rom.c op50-rom.c ppc-bdm.c remote-adapt.c
3309 remote-array.c remote-bug.c remote-e7000.c remote-eb.c remote-es.c
3310 remote-est.c remote-hms.c remote-mm.c remote-nindy.c remote-nrom.c
3311 remote-os9k.c remote-rdp.c remote-sds.c remote-sim.c remote-st.c
3312 remote-udi.c rom68k-rom.c sh3-rom.c sparcl-tdep.c sparclet-rom.c
3313 v850ice.c win32-nat.c: cosmetic changes to conform to coding
3314 standards.
3315
33161999-01-19 Jim Blandy <jimb@zwingli.cygnus.com>
3317
3318 Use aclocal to generate GDB's aclocal.m4 script.
3319 * acinclude.m4: New file, containing the hand-written local macro
3320 definitions that used to be in aclocal.m4. Don't sinclude
3321 ../bfd/aclocal.m4 any more; running aclocal in this directory will
3322 get us the definitions we need. HOWEVER: Do sinclude
3323 ../bfd/acinclude.m4, because we need the definition of
3324 BFD_NEED_DECLARATION.
3325 * aclocal.m4: Regenerated by aclocal.
3326 * configure: Regenerated by autoconf.
3327
3328Tue Jan 19 10:27:23 1999 David Taylor <taylor@texas.cygnus.com>
3329
3330 * breakpoint.c (disable_breakpoints_in_shlibs): new parameter,
3331 silent, controls whether to print message about removal of shared
3332 library breakpoints.
3333 * breakpoint.h (disable_breakpoints_in_shlibs): decl updated.
3334 * irix5-nat.c (clear_solib): call disable_breakpoints_in_shlibs.
3335 * osfsolib.c (clear_solib): ditto.
3336 * solib.c (clear_solib): ditto.
3337 * somsolib.c (som_solib_restart): update call to
3338 disable_breakpoints_in_shlibs.
3339
3340 * target.h (child_post_attach): only declare if CHILD_POST_ATTACH
3341 is define.
3342
3343Tue Jan 19 18:07:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
3344
3345 * corelow.c (solib_add_stub): Ditto.
3346 (core_file_to_sym_file): Cast make_cleanup parameter.
3347
3348 * solib.c (symbol_add_stub, solib_map_sections): Change argument
3349 to PTR insted of a char*. Matches catch_errors interface.
3350
3351Mon Jan 18 14:01:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
3352
3353 * remote-array.c (array_open): Don't use fprintf_filtered to send
3354 data to the log file.
3355
3356 * remote-array.c (handle_load_dll): Change argument type to PTR so
3357 that it is compatible with catch_errors.
3358 * ocd.c (ocd_start_remote): Ditto.
3359 * remote-sds.c (sds_start_remote): Ditto.
3360
3361 * win32-nat.c (win32_child_thread_alive): Namespace proof
3362 child_thread_alive.
3363 (init_child_ops): Update.
3364
3365Mon Jan 18 12:03:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
3366
3367 * remote-rdi.c (arm_rdi_open): Set gdb_hostif.hostosarg and
3368 gdb_hostif.dbgarg to NULL instead of stdout.
3369 (voiddummy, myprint, mywritec): Use gdb_stdout instead of stdout.
3370
3371Mon Jan 18 16:40:50 1999 Stan Shebs <shebs@andros.cygnus.com>
3372
3373 * ser-ocd.c (ocd_open): Handle Unix case gracefully.
3374
3375 * target.c (dummy_target): Don't initialize statically.
3376 (init_dummy_target): New function, fills in dummy_target.
3377 (initialize_targets): Use it.
3378 * hpux-thread.c (hpux_thread_ops): Don't initialize statically.
3379 (init_hpux_thread_ops): New function, fills in hpux_thread_ops.
3380 (_initialize_hpux_thread): Use it.
3381 * m3-nat.c (m3_ops): Don't initialize statically.
3382 (init_m3_ops): New function, fills in m3_ops.
3383 (_initialize_m3): Use it.
3384
33851999-01-18 Fernando Nasser <fnasser@totem.to.cygnus.com>
3386
3387 * sol-thread.c: delete compile time initialization of target_ops
3388 (_initialize_sol_thread): initialize target_ops at run time.
3389 * hpux-thread.c: added target_ops entry.
3390 * m3-nat.c: ditto.
3391
3392Mon Jan 18 15:19:13 1999 David Taylor <taylor@texas.cygnus.com>
3393
3394 * procfs.c (procfs_ops): delete compile time initialization.
3395 (_initialize_procfs): initialize procfs_ops at run time.
3396
3397Mon Jan 18 12:51:44 1999 Christopher Faylor <cgf@cygnus.com>
3398
3399 * configure.in: Ensure that -luser32 is always linked in
3400 for cygwin build.
3401 * configure: Regenerated.
3402
3403Mon Jan 18 08:38:05 1999 Mark Alexander <marka@cygnus.com>
3404
3405 * values.c (value_virtual_fn_field): Clear the pointed-to
3406 offset when casting to the base class.
3407
3408Mon Jan 18 10:30:51 1999 David Taylor <taylor@texas.cygnus.com>
3409
3410 * remote-udi.c (init_udi_ops): change non-existant udi_run_ops to
3411 udi_ops; delete NULL initializers.
3412
3413Mon Jan 18 12:03:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
3414
3415 * serial.c (serial_close): gdb_fclose tages gdb_file** arg, not
3416 gdb_file*.
3417
3418 * f-valprint.c, target.c, gdbarch.c: Pass gdb_stderr not stderr.
3419
3420Mon Jan 18 10:46:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
3421
3422 * stack.c (print_frame_info_base): Don't cast call to
3423 catch_errors.
3424 (print_args_stub): Change char* arg to PTR.
3425 * symmisc.c (print_symbol): Ditto.
3426 * top.c (quit_cover): Ditto.
3427 * remote.c (remote_open_1, remote_start_remote): Ditto.
3428 * infrun.c (normal_stop, hook_stop_stub, restore_selected_frame):
3429 Ditto.
3430
3431 * stack.c (backtrace_command): Cast first arg of make_cleanup to
3432 make_cleanup_func.
3433 * remote.c (remote_kill): Cast putpkt arg to catch_errors_ftype.
3434
3435Mon Jan 18 08:47:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
3436
3437 * defs.h (catch_errors_ftype): Define.
3438 (catch_errors): Replace char* arg with PTR arg.
3439 * top.c (catch_errors): Update
3440
3441 * breakpoint.c (bpstat_stop_status, bpstat_stop_status,
3442 delete_breakpoint, breakpoint_re_set): Delete all casts in call to
3443 catch_errors.
3444 (breakpoint_cond_eval, watchpoint_check,
3445 cover_target_enable_exception_callback, breakpoint_re_set_one):
3446 Arg is PTR not char*.
3447
3448 * breakpoint.c (cover_target_enable_exception_callback): Change
3449 type to int. Check for cast values of 0 and -1. Return a result!
3450 (insert_breakpoints): Move declaration of SAL and ARGS to where
3451 they are used.
3452
34531999-01-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
3454
3455 * remote.c (remote_query): new function - creates proper interface
3456 to the remote protocol "q" command.
3457
3458Fri Jan 15 17:11:48 EST 1999 Zdenek Radouch (radouch@cygnus.com)
3459
3460 * config/fr30/tm-fr30.h: Changed ABI to match GCC change
3461 (always use pointer for structs passed by value).
3462
34631999-01-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
3464
3465 * target.h: added entry for target queries (to_query)
3466 target.c: ditto.
3467
3468Thu Jan 14 18:29:17 1999 David Taylor <taylor@texas.cygnus.com>
3469
3470 * remote-mm.c (mm_wait): fix stream arg to gdb_flush.
3471 * remote-udi.c (udi_wait): fix stream arg to fwrite.
3472 * symmisc.c (maintenance_check_symtabs): fix stream argument to
3473 print_address_numeric.
3474
3475Wed Jan 13 19:33:16 1999 David Taylor <taylor@texas.cygnus.com>
3476
3477 * breakpoint.c (insert_breakpoints): insert cast to eliminate
3478 warning.
3479
3480Wed Jan 13 14:59:02 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
3481
3482 * infrun.c (set/show scheduler-locking) New command. Set a
3483 mode bit that will control how GDB attempts to control thread
3484 scheduling for step, continue, etc. (resume): make use of
3485 the schedule-locking mode.
3486 * target.h (struct target_ops): new field to_has_thread_control.
3487 * sol-thread.c: initialize target_ops to_has_thread_control.
3488 * procfs.c: ditto.
3489 * target.c: ditto.
3490 * m3-nat.c: ditto.
3491 * remote.c: ditto.
3492 * hpux-thread.c: ditto.
3493 * thread.c: cull duplicate prototypes. Move prototypes to top.
3494 * serial.c: indentation cleanup.
3495 * breakpoint.c: add casts to eliminate compiler warnings.
3496
3497Tue Jan 12 17:00:00 1999 Edith Epstein <eepstein@sophia.cygnus.com>
3498
3499 * inftarg.c (child_create_inferior): fixed HPUXHPPA specific
3500 call to fork_inferior. The shell param is now NULL.
3501
35021999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
3503
3504 * monitor.c (init_base_monitor_ops): Whitespace cleanup.
3505 (_initialize_remote_monitors): Same.
3506
35071999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
3508
3509 * monitor.c (init_monitor_ops): Initialize the monitor_ops
3510 structure if it hasn't already been done.
3511
3512Tue Jan 12 14:50:10 1999 Stan Shebs <shebs@andros.cygnus.com>
3513
3514 * inftarg.c (child_ops): Don't initialize statically.
3515 (init_child_ops): New function, fills in child_ops.
3516 (_initialize_inftarg): Use it.
3517 (child_post_attach): Declare extern.
3518 (child_wait): Fix ambiguous parens.
3519 (child_attach_to_process): Remove unused local wstatus.
3520 (child_insert_fork_catchpoint, child_remove_fork_catchpoint,
3521 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
3522 child_has_forked, child_insert_exec_catchpoint,
3523 child_remove_exec_catchpoint): Return a value.
3524
3525Mon Jan 11 16:43:44 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
3526
3527 * remote.c (remote_wait): Add inferior_pid to thread list only
3528 if it is not already there.
3529
35301999-01-11 Jason Molenda (jsm@bugshack.cygnus.com)
3531
3532 * scm-tags.h: Update FSF's address on copyright notice.
3533 * ser-e7kpc.c: Same.
3534 * gnu-nat.h: Same.
3535
3536Mon Jan 11 13:45:57 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
3537
3538 * dwarf2read.c (dump_die): Change stderr to gdb_stderr.
3539 * expprint.c (print_subexp): fprintf => fprintf_unfiltered.
3540 * jv-typeprint.c (java_type_print_base): fputs => fputs_filtered.
3541 * stack.c (struct function_bounds): Remove superfluous `typedef'.
3542 * symfile.c (list_overlays_command): stdout => gdb_stdout.
3543 * symmisc.c (maintenance_check_symtabs): stdout => gdb_stdout.
3544 * utils.c (print_spaces): Make more efficient.
3545
3546Mon Jan 11 13:55:51 1999 David Taylor <taylor@texas.cygnus.com>
3547
3548 * utils (print_spaces): fix arg to strcat; fix formatting.
3549
3550Fri Jan 8 11:57:24 1999 Stan Shebs <shebs@andros.cygnus.com>
3551
3552 * exec.c (exec_ops): Don't initialize statically.
3553 (init_exec_ops): New function, fills in exec_ops.
3554 (_initialize_exec): Use it.
3555
3556Thu Jan 7 17:50:15 EST 1999 Zdenek Radouch (radouch@cygnus.com)
3557
3558 Beta FR30 port.
3559 * fr30-tdep.c
3560 * config/fr30/tm-fr30.h
3561
3562Wed Jan 6 12:28:35 1999 David Taylor <taylor@texas.cygnus.com>
3563
3564 * configure.in: Add an --enable-tui argument. Construct
3565 tui/Makefile from tui/Makefile.in. Use AM_PROG_CC_STDC. If we
3566 have the GUI, then we need this to process libgui.h.
3567 (ENABLE_CFLAGS): define and export BUILD_TUI.
3568 (AC_CHECK_HEADERS): Add check for term.h.
3569
3570 * configure.host (hppa-*-hpux10.20, hppa-*-hpux11.0*): New configs.
3571
3572 * config.in, configure : regenerated.
3573
3574 * Makefile.in: Allow the TUI code to be conditionally enabled.
3575 (TUI_LIBRARY): New variable, value are set by the configuration
3576 script. Set to the empty string when the TUI isn't enabled.
3577 (gdb$(GDBEXT)): Use those, instead of referring to all-tui and
3578 tui/libtui.a directly.
3579 (BUILD_TUI): build the tui -- only when configured with
3580 --enable-tui.
3581 (YLWRAP): use ylwrap to avoid problems on systems w/o bison.
3582 (gdb$(EXEEXT)): make it dependent on BUILD_TUI.
3583 (all-tui): remove dependency from phony target.
3584 (c-exp.tab.c): use ylwrap instead of bison.
3585 (jv-exp.tab.c): ditto.
3586 (f-exp.tab.c): ditto.
3587 (m2-exp.tab.c): ditto.
3588 (ALLDEPFILES): add somread.c, hp-psymtab-read.c, hp-symtab-read.c.
3589 (SFILES): remove the above files
3590 (COMMON_OBS): remove somread.o
3591 (SFILES): Add the tui files to this, so they get included in etags
3592 tables.
3593 (gdb$(EXEEXT)): Add all-tui to the list of dependencies, and add
3594 tui/libtui.a to the link list.
3595 (all-tui): New rule, which does a recursive make in the tui
3596 subdir.
3597 (tui/libtui.a): When recursing, pass down ${FLAGS_TO_PASS}. And
3598 don't echo the make command. This is closer to what the other
3599 recursions do.
3600 (HFILES_NO_SRCDIR): add hpread.h
3601 (COMMON_OBS): add hp-psymtab-read.o, hp-symtab-read.o
3602 (SFILES): add hp-psymtab-read.c, hp-symtab-read.c add rules for
3603 the new files. Remove hpread.c, hpread.o
3604 (gdb$(EXEEXT)): Depend on the actual tui library, not on a
3605 fictitious target. Since the fictitious target never existed,
3606 make would always relink.
3607 (tui/libtui.a): Always recurse to make sure the library is up to
3608 date.
3609
3610Wed Jan 6 12:05:12 1999 Stan Shebs <shebs@andros.cygnus.com>
3611
3612 * remote.c: Pacify --enable-build-warnings, reformat code
3613 to conform to standards, fix spelling errors.
3614 (ishex, stubhex, record_currthread, etc): Declare.
3615 (ishex, stubhex): Declare char arg as int.
3616 (pack_string): Comment out, never used but possibly useful.
3617 (threadref_to_int, remote_get_threadinfo, etc): Make static.
3618
3619Wed Jan 6 11:43:32 1999 David Taylor <taylor@texas.cygnus.com>
3620
3621 The following changes were made by Elena Zannoni
3622 <ezannoni@cygnus.com> and Edith Epstein <eepstein@cygnus.com> as
3623 part of a project to merge in changes made by HP.
3624
3625 * c-exp.y: use external flag hp_som_som_object_present to decide
3626 whether code was compiled by HP's compilers. Add two new C++
3627 tokens for true and false.
3628 (yylex): check for template name is done differently for the
3629 HP/aCC compiler case. Change some of the template processing code
3630 for handling HP aCC templates. Handle true and false tokens.
3631
3632Tue Jan 5 11:13:36 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
3633
3634 * remote.c (record_curthread): Must not modify inferior_pid when
3635 called from wait_for_inferior. Instead, if a new thread-id is
3636 detected, call add_thread.
3637 (MAGIC_NULL_PID): new macro, use instead of the magic number
3638 "42000".
3639 (remote_find_new_threads): if inferior_pid is unknown, get and use
3640 the current thread id.
3641 (remote_start_remote): on connecting, attempt to get the current
3642 thread id for inferior_pid.
3643 (remote_resume): If pid == -1, then resume any-thread (not the
3644 current thread specifically). Also some cosmetic fixups.
3645
3646 * thread.c (info_threads_command): don't initialize current_pid
3647 until after call to FIND_NEW_THREADS (which may change inferior_pid).
3648 Also some cosmetic fixups.
3649 * infrun.c: cosmetic fixups and casts to avoid warnings.
3650 * infcmd.c: cosmetic fixups, mainly long lines.
3651
3652Tue Jan 5 11:55:57 1999 David Taylor <taylor@texas.cygnus.com>
3653
3654 * target.c (noprocess): terminate sentence with a period.
3655 * breakpoint.c (catch_command_1): ditto.
3656
3657 * c-valprint.c (c_value_print): remove hack^2 from HP; it causes
3658 testsuite losses with no real gain.
3659
3660 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): restore, but only
3661 if tm-*.h hasn't overridden default value.
3662
36631999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
3664
3665 * configure.in: Fix whitespace indentation for --help.
3666 * configure: Regenerated.
3667
36681999-01-04 Manuel Bouyer <bouyer@antioche.lip6.fr>
3669
3670 * main.c: Add --write command line option, document -w.
3671 * gdb.1: Document --write.
3672
36731999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
3674
3675 * configure.in: Require autoconf 2.12.1 or higher.
3676 * doc/configure.in: Ditto.
3677 * nlm/configure.in: Ditto.
3678 * rdi-share/configure.in: Ditto.
3679 * testsuite/configure.in: Ditto.
3680 * doc/Makefile.in: Don't hardcode $(SHELL).
3681 * nlm/Makefile.in: Ditto.
3682 * rdi-share/Makefile.in: Ditto.
3683 * testsuite/Makefile.in: Ditto.
3684
3685Mon Jan 4 12:53:03 1999 Stan Shebs <shebs@andros.cygnus.com>
3686
3687 * remote-vx.c (init_vx_ops, init_vx_run_ops): Remove unneeded
3688 inits of new fields, including ref to bogus field.
3689 (vx_ops, vx_run_ops): Make static.
3690
3691Mon Jan 4 15:05:29 1999 David Taylor <taylor@texas.cygnus.com>
3692
3693 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): delete,
3694 already defined in tm.h.
3695
3696 * inftarg.c: change <sys/unistd.h> to <unistd.h> and
3697 conditionalize its inclusion.
3698 * infttrace.c: ditto.
3699
3700For older changes see ChangeLog-98
3701\f
3702Local Variables:
3703mode: change-log
3704left-margin: 8
3705fill-column: 74
3706version-control: never
3707End: