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