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