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