import gdb-1999-10-11 snapshot
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 1999-10-11 Jim Blandy <jimb@zwingli.cygnus.com>
2
3 * config/pa/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): It's not
4 enough to #define this; you have to give it a non-zero value.
5
6 1999-10-11 Jim Blandy <jimb@zenia.red-bean.com>
7
8 Fix from Jim Kingdon <kingdon@redhat.com>, with tweaks to make it
9 gdbarch- and bigendian-friendly:
10 * valops.c (PARM_BOUNDARY): If not #defined, default to zero.
11 (value_push): If PARM_BOUNDARY is not zero, align arguments to
12 that boundary.
13 * config/i386/tm-i386.h: Define PARM_BOUNDARY.
14
15 Mon Oct 11 14:23:55 1999 Fred Fish <fnf@cygnus.com>
16
17 * config/mips/tm-irix3.h (PS_REGNUM): Don't undef if we aren't
18 going to redefine it to something else.
19
20 1999-10-11 Jason Merrill <jason@yorick.cygnus.com>
21
22 * dwarfread.c (read_func_scope): Don't try to set main_func_*;
23 we handle that in blockframe.c:inside_main_func.
24 * dwarf2read.c (read_func_scope): Likewise.
25 (dwarf2_add_field, dwarf2_add_member_fn): Get member function name
26 directly, not from mangled name.
27 (skip_member_fn_name): Lose.
28
29 Mon Oct 11 12:24:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
30
31 * serial.h (enum serial_rc): Clarify SERIAL_TIMEOUT and
32 restrictions on TIMEOUT in ASYNC mode.
33
34 * serial.c (serial_readchar): Check for invalid timeout when in
35 async mode. Disable test.
36
37 Thu Oct 7 17:20:01 1999 Andrew Cagney <cagney@amy.cygnus.com>
38
39 * monitor.c (monitor_printable_string): Add length argument. Don't
40 return final string length.
41 (monitor_printf_noecho, monitor_printf, monitor_expect): Update.
42 (monitor_error): Pass real_len to monitor_printable_string.
43 (monitor_error): Rewrite. Replace printf fmt string parameter with
44 function name and message parameters.
45 (monitor_read_memory_single, monitor_read_memory): Update.
46
47 1999-10-07 Stan Shebs <shebs@andros.cygnus.com>
48
49 * main.c (print_gdb_help): Fix bug reporting address.
50 * gnu-regex.h, gnu-regex.c: Ditto.
51
52 1999-10-07 Jim Blandy <jimb@zwingli.cygnus.com>
53
54 * parse.c (SYMBOLS_CAN_START_WITH_DOLLAR): New macro,
55 whose value can be overridden by target files.
56 (write_dollar_variable): Don't check the symbol table for
57 identifiers beginning with `$' unless
58 SYMBOLS_CAN_START_WITH_DOLLAR is non-zero.
59 * config/pa/tm-hppa.h (SYMBOLS_CAN_START_WITH_DOLLAR): Define.
60 * doc/gdbint.texinfo (SYMBOLS_CAN_START_WITH_DOLLAR): Document.
61
62 Remove all traces of the BINOP_SCOPE operator. It's never
63 generated, and not implemented.
64 * expression.h (enum exp_opcode): Delete BINOP_SCOPE.
65 * c-lang.c (c_op_print_tab): Delete entry for BINOP_SCOPE.
66 * eval.c (evaluate_subexp_standard): Doc fix.
67 * expprint.c (op_name): Remove case for BINOP_SCOPE.
68 (dump_subexp): Same.
69
70 * dwarf2read.c (dwarf2_const_value): Treat DW_FORM_data1,
71 DW_FORM_data2, DW_FORM_data4, and DW_FORM_data8 as signed values,
72 since that's what read_var_value will do anyway.
73
74 1999-10-07 Fred Fish <fnf@cygnus.com>
75
76 * objfiles.h (struct objfile): Delete is_solib member, now handled
77 by OBJF_SHARED bit in struct objfile's flags.
78 * objfiles.c (objfile_purge_solibs): Check OBJF_SHARED bit in flags
79 instead of old is_solib int member in objfile struct.
80
81 * objfiles.c (allocate_objfile): Remove is_solib arg. Now passed
82 as a bit in combined flags arg.
83 * symfile.c (symbol_file_add): Ditto.
84 * objfiles.h (allocate_objfile): Adjust prototype after removal
85 of is_solib arg.
86 * symtab.h (symbol_file_add): Ditto.
87
88 * cxux-nat.c (add_shared_symbol_files): Remove zero passed to
89 symbol_file_add in old is_solib arg, defaults to zero now in
90 flags.
91 * irix5-nat.c (symbol_add_stub): Ditto.
92 * remote-mm.c (mm_load): Ditto.
93 * remote-udi.c (udi_load): Ditto.
94 * remote-vx.c (vx_add_symbols): Ditto.
95 * symfile.c (symbol_file_command): Ditto.
96 (add_symbol_file_command): Ditto.
97
98 * coff-solib.c (coff_solib_add): Call symbol_file_add with
99 OBJF_SHARED in flags bit, rather than 1 in old is_solib
100 arg.
101 * osfsolib.c (symbol_add_stub): Ditto.
102 * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
103 * solib.c (symbol_add_stub): Ditto.
104 * somsolib.c (som_solib_add_solib_objfile): Ditto.
105 * win32-nat.c (handle_load_dll): Ditto.
106
107 * objfiles.c (allocate_objfile): Remove old args "mapped" and
108 "user_loaded". Replaced with new arg "flags" containing specific
109 If global var mapped_symbol_files is nonzero
110 then set OBJF_MAPPED in flags arg. Check for OBJF_MAPPED bit in
111 flags where we used to check mapped arg.
112 Pass flags to open_mapped_file instead of mapped arg.
113 Ensure that OBJF_MAPPED bit is reset in flags when the objfile
114 is not mapped. Add passed flags bits to objfile's flags bits.
115 (open_mapped_file): Replace "mapped" arg with new "flags" arg.
116 Adjust prototype. Pass flags to open_existing_mapped_file.
117 (open_existing_mapped_file): Replace "mapped" arg with new "flags".
118 Check flags for OBJF_MAPPED.
119 * objfiles.h (allocate_objfile): Adjust prototype.
120 * rs6000-nat.c (add_vmap): Pass zero for combined flags, rather
121 than separate zero ints for old "mapped" and "user_loaded" flags.
122 * symfile.c (symbol_file_add): Pass allocate_objfile combined flags
123 rather than individual mapped and user loaded bits.
124
125 * symfile.c (symbol_file_add): Delete user_loaded arg.
126 * symtab.h (symbol_file_add): Adjust prototype for deleted
127 user_loaded arg.
128 * objfiles.h (struct objfile): Delete user_loaded member.
129 (OBJF_USERLOADED): New flag bit to replace user_loaded.
130
131 * symfile.c (symbol_file_command): Add OBJF_USER_LOADED to flags
132 passed to symbol_file_add. Delete previous passing of explicit 1
133 for user_loaded.
134 (add_symbol_file_command): Ditto.
135
136 * coff-solib.c (coff_solib_add): No longer pass zero for user loaded,
137 now defaults to zero in flags.
138 * cxux-nat.c (add_shared_symbol_files): Ditto.
139 * irix5-nat.c (symbol_add_stub): Ditto.
140 * osfsolib.c (symbol_add_stub): Ditto.
141 * remote-mm.c (mm_load): Ditto.
142 * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
143 * remote-udi.c (udi_load): Ditto.
144 * remote-vx.c (vx_add_symbols): Ditto.
145 * solib.c (symbol_add_stub): Ditto.
146 * somsolib.c (som_solib_add_solib_objfile): Ditto.
147 * win32-nat.c (handle_load_dll): Ditto.
148
149 Thu Oct 7 19:24:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
150
151 * Makefile.in (monitor.o): Allow monitor.o to be compiled with
152 -Werror.
153
154 * monitor.c (monitor_debug_p): New variable. Replaces macro.
155 (EXTRA_RDEBUG): Delete. Update all uses.
156 (monitor_debug): New function. Replaces macro.
157 (RDEBUG): Delete macro. Update all uses.
158 debug output to gdb_stdlog and not the console.
159
160 * monitor.c: Fix printf formating. Replace printf calls with
161 fprintf_unfiltered.
162
163 1999-10-06 Stan Shebs <shebs@andros.cygnus.com>
164
165 * MAINTAINERS: Switch ARM target maintenance from Elena
166 Zannoni to Jim Ingham.
167
168 1999-10-06 Frank Ch. Eigler <fche@cygnus.com>
169
170 * remote.c (hexnumnstr): New function. Allow setting of width.
171 (hexnumstr): Call the above.
172 (remote_write_bytes): Fill in X-protocol address field more
173 reliably.
174
175 1999-10-06 Fred Fish <fnf@cygnus.com>
176
177 * xcoffread.c (xcoff_symfile_offsets): Fix typo, addr->addrs.
178
179 1999-10-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
180
181 * remote.c (handle_remote_sigint_twice): Make this signal be
182 handled by inferior_event_handler, via the wrapper function.
183 (async_remote_interrupt_twice): Make not static. Add debug print.
184 * remote.h (async_remote_interrupt_twice): Export for use in
185 inf-loop.c.
186
187 * inf-loop.c (inferior_event_handler_wrapper): New function.
188 (inferior_event_handler): Handle a request to quit and kill the
189 target.
190 Include remote.h.
191 * inf-loop.h (inferior_event_handler_wrapper): Export.
192
193 1999-10-04 James Ingham <jingham@leda.cygnus.com>
194
195 * remote-rdi.c (arm_rdi_open): If the angel_RDI_Open fails, close
196 the serial port and raise an error. If you try to go on, you will
197 stall forever down in the rdi-share code.
198
199 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
200
201 * printcmd.c (output_command): Makes sure result from the output
202 command is printed before the next prompt.
203
204 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
205
206 * printcmd.c (print_formatted): Add missing stream parameter.
207 (do_examine, print_command_1, output_command, do_one_display):
208 Adjust call to print_formatted().
209
210 1999-10-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
211
212 * infcmd.c: Remove include of event-loop.h.
213 * utils.c: Ditto.
214 * top.c: Ditto.
215
216 * infrun.c (fetch_inferior_event): Call inferior_event_handler
217 when inferior stops, instead of doing work ourselves.
218 (fetch_inferior_event): Use void* instead of gdb_client_data.
219 Remove includes of event-top.h and event-loop.h. Add include of
220 inf-loop.h.
221 (complete_execution): Move from here.
222
223 * inf-loop.c (complete_execution): To here.
224 (inferior_event_handler): Handle inferior's execution completion
225 case as well.
226 * inf-loop.h: Add def of INF_LOOP_H.
227
228 * event-top.h: Don't use gdb_client_data, use void*, to avoid
229 dependency on event-loop.h.
230
231 * remote.c (remote_async_resume): Set target_executing only after we
232 actually register the inferior with the event loop.
233
234 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
235
236 * corefile.c (memory_error): Use error_stream() and eliminate call
237 to return_to_top_level().
238
239 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
240
241 * utils.c (error): Save error message text (w/o new line).
242 (error_last_message): New function. Returns the last message
243 issued by gdb.
244 (error_init): New function. Initializes error handling machinery.
245 (error_stream): New function. Allows the error message to be
246 passed on a stream buffer.
247 * defs.h: Add prototypes for error_stream() and
248 error_last_message().
249 * main.c (main): Add call to error_init().
250
251 1999-10-04 Fernando Nasser <fnasser@totem.to.cygnus.com>
252
253 * utils.c (tui_sfileopen): New function. Replaces
254 gdb_file_init_astring().
255 * defs.h: Add prototype for the above.
256
257 Mon Oct 4 19:25:55 1999 Andrew Cagney <cagney@b1.cygnus.com>
258
259 * symfile.c (add_symbol_file_command): Fix -Wformat on query call.
260
261 1999-10-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
262
263 * target.c (cleanup_target): Type of to_async param is now
264 function with enum inferior_event_type param.
265
266 * target.h (target_ops): Adjust to_async accordingly. Move enum
267 inferior_event_type to this file. Don't have a typedef for
268 inferior_event_type. Add more enumeration constants INF_QUIT_REQ,
269 INF_EXEC_COMPLETE. Remove INF_SIGINT_FIRST, INF_SIGINT_SECOND.
270
271 * inf-loop.c (inferior_event_handler): Change first param to tell
272 the type of event we are dealing with. Deal with INF_ERROR and
273 INF_REG_EVENT, for the moment.
274 Include target.h.
275
276 * inf-loop.h (inferior_event_handler): Adjust prototype. Remove
277 enum inferior_event_type from here.
278
279 * remote.c (remote_async_serial_handler): Pass INF_REG_EVENT to
280 the client callback.
281 (remote_async): Change callback's param type to inferior_event_type.
282 (async_client_callback): Change type as above.
283
284 1999-10-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
285
286 * event-top.c (stdin_event_handler): Delete fd parameter, use
287 input_fd instead.
288 * event-top.h (stdin_event_handler): Delete fd parameter.
289
290 * inf-loop.c (inferior_event_handler): Delete fd parameter. Use
291 target_async() to unregister the inferior fd in case of errors.
292 * inf-loop.h(inferior_event_handler): Delete fd parameter.
293
294 * ser-unix.c (fd_event): Delete fd parameter. Use scb->fd,
295 instead.
296
297 * remote.c (async_client_callback): Delete fd parameter.
298 (remote_async_serial_handler): Ditto.
299 (remote_async): Adjust to new type of callback function.
300
301 * target.c (cleanup_target): Adjust parameters for to_async
302 default case.
303 * target.h (*to_async): Delete fd parameter from cb function.
304
305 * event-loop.h (handler_func): Delete fd parameter.
306 * event-loop.c (handle_file_event): Delete fd param from call to
307 proc. Do not include inferior.h.
308
309 1999-10-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
310
311 * event-loop.c (inferior_event_handler,
312 inferior_event_handler_wrapper): Move from here.
313 * inf-loop.c: To here. New file.
314
315 * event-loop.h (inferior_event_handler): Move from here.
316 * inf-loop.h: To here. New file.
317
318 * remote.c: Include inf-loop.h.
319 (set_extende_protocol): Remove unused prototpye.
320
321 * Makefile.in (SFILES): Add inf-loop.c.
322 (inf_loop_h): Define.
323 (COMMON_OBS): Add inf-loop.o.
324 (inf-loop.o): Add rule.
325 (remote.o): Add dependency on inf-loop.h.
326
327 Fri Oct 1 19:59:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
328
329 * ser-unix.c: Add some notes on how the async code works.
330
331 Fri Oct 1 01:45:32 1999 Jeffrey A Law (law@cygnus.com)
332
333 * somread.c (som_symfile_offsets): Fix typo in last change.
334
335 1999-09-30 Fred Fish <fnf@cygnus.com>
336
337 * coff-solib.c (coff_solib_add): Adjust call to symbol_file_add.
338 * cxux-nat.c (add_shared_symbol_files): Ditto.
339 * irix5-nat.c (symbol_add_stub): Ditto.
340 * osfsolib.c (symbol_add_stub): Ditto.
341 * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
342 * remote-mm.c (mm_load): Ditto.
343 * remote-udi.c (udi_load): Ditto.
344 * remote-vx.c (vx_add_symbols): Ditto.
345 * solib.c (symbol_add_stub): Ditto.
346 * somsolib.c (som_solib_add_solib_objfile): Ditto.
347 * win32-nat.c (handle_load_dll): Ditto.
348
349 * irix5-nat.c (symbol_add_stub): Add section_addrs, zero it.
350 * cxux-nat.c (add_shared_symbol_files): Ditto.
351 * osfsolib.c (symbol_add_stub): Ditto.
352 * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
353 * solib.c (symbol_add_stub): Ditto.
354 * somsolib.c (som_solib_add_solib_objfile): Ditto.
355 * symfile.c (symbol_file_command): Ditto.
356 * win32-nat.c (handle_load_dll): Ditto.
357
358 * irix5-nat.c (symbol_add_stub): Use section_addrs to pass text addr.
359 * cxux-nat.c (add_shared_symbol_files): Ditto.
360 * osfsolib.c (symbol_add_stub): Ditto.
361 * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
362 * solib.c (symbol_add_stub): Ditto.
363 * somsolib.c (som_solib_add_solib_objfile): Ditto.
364 * symfile.c (symbol_file_command): Ditto.
365 * win32-nat.c (handle_load_dll): Ditto.
366
367 * coff-solib.c (coff_solib_add): Call symbol_file_add with NULL ptr.
368 * cxux-nat.c (add_shared_symbol_files): Ditto.
369 * remote-udi.c (udi_load): Ditto.
370 * remote-vx.c (vx_add_symbols): Ditto.
371 * symfile.c (symbol_file_command): Ditto.
372
373 * dstread.c (dst_symfile_offsets): Take "section_addr_info *"
374 instead of CORE_ADDR.
375 * somread.c (som_symfile_offsets): Ditto.
376 * symfile.c (default_symfile_offsets): Ditto.
377 * xcoffread.c (xcoff_symfile_offsets): Ditto.
378
379 * symfile.h (default_symfile_offsets): Adjust prototype.
380 (syms_from_objfile): Ditto.
381 * symtab.h (symbol_file_add): Ditto.
382
383 * rs6000-nat.c (objfile_symbol_add): Call syms_from_objfile with NULL.
384 * xcoffsolib.c (solib_add): Ditto.
385 * gdb-stabs.h (SECT_OFF_MAX): Increase from 4 to 16.
386 * symtab.h (MAX_SECTIONS): Define.
387 (struct section_addr_info): New struct for better control over
388 changing load addresses of sections.
389 * objfiles.h (OBJF_READNOW): Add new flag bit.
390 * symfile.h (sym_offsets): Change second param from CORE_ADDR to
391 "section_addr_info *".
392
393 * symfile.c (symbol_file_add): Replace scalar arg "CORE_ADDR addr"
394 with "struct section_addr_info *addrs".
395 (syms_from_objfile): Ditto.
396 (add_symbol_file_command): Remove local variables "readnow" and
397 "mapped". Replaced with general "flags" variable.
398 (symbol_file_command): Ditto.
399 (add_symbol_file_command): Add local variables i, sec_num, argcnt,
400 expecting_option, option_index, and opt. Rework option parsing code
401 to handle additional options.
402 (_initialize_symfile): Adjust add-symbol-file usage to match new
403 option handling.
404 (symbol_file_add): Remove parameters "mapped" and "readnow",
405 replace with general "flags".
406 (symbol_file_add): In call to allocate_objfile, replace "mapped"
407 with extracted OBJF_MAPPED bit from flags.
408 (symbol_file_add): Use OBJF_READNOW bit from flags, instead of
409 "readnow" variable.
410 (symbol_file_command): Set OBJF_MAPPED and OBJF_READNOW bits
411 from parsed options. Pass flags to symbol_file_add.
412 (add_symbol_file_command): Ditto.
413 (syms_from_objfile): Add local variables i, sect, lower_sect,
414 lower_offset, and local_addr. Substitute local_addr for addrs
415 when addrs is NULL. Find lowest loadable section to be used as
416 starting point for contiguous sections. Adjust offsets if segments
417 are not contiguous. Call sym_offsets with section_addr_info
418 instead of single addr.
419 (default_symfile_offsets): Initialize objfile's section_offsets
420 with user specified offsets.
421 (symbol_file_add): Call syms_from_objfile with offsets.
422 (unknown_option_complaint): Add.
423 (add_symbol_file_command): Add "section_addrs", zero it with memset.
424
425 1999-09-30 Jason Molenda (jsm@bugshack.cygnus.com)
426
427 * configure.in: Call config.sub explicitly instead of misusing the
428 autoconf internal variable $ac_config_sub.
429 * configure: Regenerated.
430
431 Thu Sep 30 15:53:59 1999 Andrew Cagney <cagney@b1.cygnus.com>
432
433 * remote.c (readchar): When EOF mourn the inferior.
434 (getpkt): Try QUIT. Might not be a watchdog timer timeout.
435 (remote_async_serial_handler): Pass ``-1'' as the dummy FD. Safer
436 than ZERO == STDIN.
437
438 * serial.h (enum serial_rc): Replace #define SERIAL_ERROR,
439 SERIAL_TIMEOUT and SERIAL_EOF.
440 (struct _serial_t): Add more notes on termios specific fields.
441
442 * ser-unix.c (generic_readchar): Make SERIAL_ERROR sticky.
443 (do_hardwire_readchar, do_unix_readchar): Don't use bufcnt as a
444 tempoary for the return-value from read.
445
446 * serial.c (serial_logchar): Add a stream parameter.
447 (serial_readchar, serial_write, serial_send_break): Update.
448 (serial_readchar): Add serial debug trace.
449
450 Thu Sep 30 12:07:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
451
452 * serial.h (struct _serial_t): Add field async_state. Better
453 document field bufcnt.
454 (SERIAL_ERROR): Delete comment about errno.
455 * serial.c (serial_open, serial_fdopen): Initialize async_state.
456
457 * ser-unix.c (push_event, fd_event, reschedule): New functions.
458 Handle ASYNC serial input.
459 (ser_unix_async): Update.
460 (generic_readchar): New function. Handle event scheduling. Make
461 EOF condition sticky.
462 (do_unix_readchar): Rename ser_unix_readchar.
463 (ser_unix_readchar): New function, call do_unix_readchar via
464 generic_readchar.
465 (do_hardwire_readchar, hardwire_readchar): Ditto.
466
467 * ser-unix.c (ser_unix_readchar): Delete code working around ASYNC
468 fifo bugs.
469 (hardwire_readchar): Delete code working around ASYNC fifo bugs.
470
471 Wed Sep 29 21:27:16 1999 Jeffrey A Law (law@cygnus.com)
472
473 * breakpoint.c (insert_breakpoints): Addresses are CORE_ADDRs,
474 not "int"s.
475 (remove_breakpoint): Likewise.
476
477 1999-09-29 Fred Fish <fnf@cygnus.com>
478
479 * breakpoint.c (breakpoint_1): Replace cast "(CORE_ADDR) - 1"
480 with the more obviously intended expression "(CORE_ADDR) -1".
481 * dwarf2read.c (scan_partial_symbols, read_file_scope): Ditto.
482 * gnu-nat.c (gnu_create_inferior): Ditto.
483 * go32-nat.c (go32_create_inferior): Ditto.
484 * hppa-tdep.c (hppa_pop_frame): Ditto.
485 * infcmd.c (continue_command, step_1, signal_command): Ditto.
486 (until_next_command, finish_command): Ditto.
487 * infrun.c (proceed): Ditto.
488 * inftarg.c (child_create_inferior): Ditto.
489 * m3-nat.c (m3_create_inferior): Ditto.
490 * mac-nat.c (child_create_inferior): Ditto.
491 * procfs.c (procfs_create_inferior): Ditto.
492 * remote-sim.c (gdbsim_create_inferior): Ditto.
493 * target.c (target_link): Ditto.
494 * win32-nat.c (child_create_inferior): Ditto.
495
496 Thu Sep 30 10:36:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
497
498 * ser-unix.c (ser_unix_flush_input): New function. Discard input
499 buffer.
500 (hardwire_flush_input): Use ser_unix_flush_input.
501 (ser_unix_nop_flush_input): Delete.
502 * ser-unix.h (ser_unix_flush_input): Update.
503 ser-tcp.c (_initialize_ser_tcp), ser-pipe.c
504 (_initialize_ser_pipe): Update.
505
506 * ser-unix.c (hardwire_write): Delete.
507 (_initialize_ser_hardwire): Update, use ser_unix_write.
508
509 Thu Sep 30 10:16:50 1999 Andrew Cagney <cagney@b1.cygnus.com>
510
511 * ser-pipe.c (pipe_open): Don't make the FD non-blocking. Already
512 being handled in ser_unix_wait_for by a select.
513
514 Thu Sep 30 10:00:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
515
516 * serial.h (struct _serial_t): Add field debug_p.
517 (SERIAL_DEBUG, SERIAL_DEBUG_P): Define.
518
519 * serial.c (serial_open, serial_fdopen): Initialize debug_p.
520 (serial_debug, serial_debug_p): New functions.
521 (global_serial_debug_p): New variable.
522 (_initialize_serial): Add ``set serialdebug'' command.
523
524 Thu Sep 30 09:09:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
525
526 * serial.h (serial_event_ftype): Replace FD and ERROR args with
527 SERRIAL_T arg.
528 * ser-unix.c (ser_unix_event): Update.
529
530 * remote.c (remote_async_serial_handler): New function. Handle
531 serial events.
532 (remote_async): Pass remote_async_serial_handler to SERIAL.
533 (async_client_callback, async_client_context): New variables.
534
535 * remote.c (extended_remote_async_create_inferior): Use
536 target_async to register the inferior event handler.
537
538 Thu Sep 30 00:02:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
539
540 * configure.in (AC_CHECK_FUNCS): Test for sigprocmask.
541 * configure, config.in: Re-generate.
542 * event-top.c (async_stop_sig): Use sigprocmask when available.
543
544 1999-09-29 Doug Evans <devans@casey.cygnus.com>
545
546 * sh-stub.c (handle_exception): Fix typo in patch of 1999-08-26.
547 * m68k-stub.c (handle_exception): Ditto.
548
549 1999-09-28 Fred Fish <fnf@cygnus.com>
550
551 * alpha-nat.c (alpha_osf_core_fns, alpha_elf_core_fns):
552 Add default entries for check_format and core_sniffer.
553 * core-aout.c (aout_core_fns): Ditto.
554 * core-regset.c (regset_core_fns): Ditto.
555 * core-sol2.c (solaris_core_fns): Ditto.
556 * i386aix-nat.c (i386aix_core_fns): Ditto.
557 * i386mach-nat.c (i386mach_core_fns): Ditto.
558 * irix4-nat.c (irix4_core_fns): Ditto.
559 * irix5-nat.c (irix5_core_fns): Ditto.
560 * lynx-nat.c (lynx_core_fns): Ditto.
561 * mips-nat.c (mips_core_fns): Ditto.
562 * ns32knbsd-nat.c (nat_core_fns): Ditto.
563 * rs6000-nat.c (rs6000_core_fns): Ditto.
564 * sparc-nat.c (sparc_core_fns): Ditto.
565 * sun-nat.c (sun3_core_fns): Ditto.
566 * ultra3-nat.c (ultra3_core_fns): Ditto.
567
568 * corelow.c (core_vec): New, for selected core file handler.
569 (sniff_core_bfd): New function.
570 (gdb_check_format): New function.
571 (default_check_format): New function.
572 (default_core_sniffer): New function.
573 (sniff_core_bfd): New function.
574 (core_close): Reset core_vec to NULL.
575 (core_open): Fall back to gdb_check_format if bfd_check_format
576 does not identify the file format. Call sniff_core_bfd to pick
577 a core file handler.
578 (get_core_registers): Remove code that is now in sniff_core_bfd.
579 Use current core_vec.
580
581 * gdbcore.h (check_format): New core_fns function, points to function
582 to try and identify a core file format.
583 (core_sniffer): New core_fns function, points to function to select
584 a specific handler for the selected core file format.
585 (default_core_sniffer): Add prototype.
586 (default_check_format): Add prototype.
587
588 * i960-tdep.c (inferior.h): Include.
589 * mips-tdep.c (read_next_frame_reg): Use ADDR_BITS_REMOVE
590 on addresses pulled from stack.
591
592 1999-09-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
593
594 * event-loop.c (poll_timers): Check whether the timer list has any
595 element on it by looking at the first element pointer, instead of
596 num_timers.
597
598 Wed Sep 29 18:02:31 1999 Andrew Cagney <cagney@amy.cygnus.com>
599
600 * command.c: Attempt to include POSIX <sys/wait.h> before
601 <wait.h>.
602
603 * ser-unix.c (hardwire_print_tty_state): Ditto.
604 * inflow.c (child_terminal_info): Fix printf args.
605
606 1999-09-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
607
608 * remote.c (remote_async_resume): Register the inferior with the
609 event loop.
610 (remote_async_open_1): Don't put the target in async mode here,
611 just do it when executing.
612
613 * infrun.c (complete_execution): Unregister the inferior from the
614 event loop.
615
616 * event-top.c (async_disable_stdin): Don't add
617 async_enable_stdin() to the exec_cleanups chain.
618
619 Tue Sep 28 11:08:34 1999 Jeffrey A Law (law@cygnus.com)
620
621 * hppa-tdep.c (hppa_fix_call_dummy): Ignore IMPORT_SHLIB stubs
622 except for hpux11 native. Break out of the loop to find a
623 stub as soon as we find an IMPORT stub.
624 (skip_prologue_hard_way): Also recognize copy %ret1,target and
625 all PA64 argument stores as prologue instructions.
626
627 1999-09-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
628
629 * breakpoint.c, defs.h, event-top.c, infcmd.c, infrun.c, main.c,
630 remote.c, top.c, tracepoint.c, utils.c (async_p): Change var name
631 to event_loop_p.
632
633 1999-09-28 Jim Blandy <jimb@cris.red-bean.com>
634
635 * hppa-tdep.c (skip_prologue_hard_way): Recognize ldo insns
636 which generate pointers into the argument list.
637
638 Tue Sep 28 13:56:49 1999 Andrew Cagney <cagney@b1.cygnus.com>
639
640 * remote.h (cleanup_sigint_signal_handler,
641 initialize_sigint_signal_handler): Delete extern declarations.
642 * event-top.c, infrun.c: No longer need to include "remote.h".
643 * remote.c (cleanup_sigint_signal_handler,
644 initialize_sigint_signal_handler): Make static.
645 * Makefile.in (event-top.o): Delete dependency on "remote.h".
646
647 * remote.c (remote_async_terminal_ours_p): New static global. Keep
648 track of who currently owns the terminal.
649 (remote_async_open_1): Initialize.
650 (remote_async_terminal_inferior): Test
651 remote_async_terminal_ours_p. Claim CNTRL-C handler as part of
652 transfering the terminal to the target.
653 (remote_async_terminal_ours): Similar.
654
655 Mon Sep 27 12:33:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
656
657 * remote.c (async_interrupt_query): Delete function. Merged into
658 interrupt_query. Async cases handled by target_terminal_ours,
659 target_terminal_inferior and SERIAL_CLOSE.
660 (async_remote_interrupt_twice): Update.
661 (remote_async_terminal_ours, remote_async_terminal_inferior): New
662 functions. Steal STDIN from GDB's CLI.
663 (init_remote_async_ops): Initialize to_terminal_ours and
664 to_terminal_inferior.
665
666 * event-top.c (async_disable_stdin, async_disable_stdin): Use
667 target_terminal_ours / target_terminal_inferior to transfer
668 ownership of the terminal between GDB and the target.
669
670 1999-09-27 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
671
672 * infcmd.c (run_command): Call async_disable_stdin() only if
673 dealing with an asynchronous target.
674
675 Mon Sep 27 11:48:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
676
677 * target.h (struct target_ops): Add to_can_async_p, to_is_async_p,
678 to_async. Delete to_has_async. These correspond well with
679 SERIAL* async methods.
680 (target_can_async_p, target_is_async_p, target_async): Define.
681 * target.c (update_current_target, cleanup_target): Update.
682
683 * remote.c (remote_async_open_1): Change target to async using
684 target_async.
685 (remote_can_async_p, remote_is_async_p, remote_async): New
686 functions.
687 (remote_async_wait, remote_async_open_1): Add FIXME about how
688 wait_forever_enabled_p can almost be deleted once the client can
689 enable/disable target_async.
690
691 * breakpoint.c (until_break_command), infrun.c (proceed), infcmd.c
692 (run_command, continue_command, step_1, jump_command,
693 until_command, finish_command, interrupt_target_command), top.c
694 (return_to_top_level, execute_command), event-top.c
695 (command_handler): Replace target_has_async with
696 target_can_async_p.
697
698 Sun Sep 26 02:10:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
699
700 * remote.c (remote_async_open_1): If we go into async mode, never
701 wait for ever.
702
703 * infcmd.c: Include "event-top.h".
704 (run_command, continue_command, jump_command, until_command,
705 finish_command): Use async_disable_stdin to disable the console
706 for synchronous commands.
707
708 * remote.c (async_interrupt_query): Only disconnect the console
709 from the terminal when sync_execution.
710
711 * remote.c (initialize_sigint_signal_handler): Move declaration
712 from here.
713 * remote.h: To here. Make non-static.
714
715 * remote.c (remote_async_resume, async_interrupt_query): Move
716 prompt code from here.
717 * event-top.c (async_disable_stdin, async_enable_stdin): To
718 here. New function.
719
720 * infrun.c (start_remote): Delete commented out code.
721
722 Fri Sep 24 12:38:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
723
724 * remote.c (remote_async_open_1): Perform the initial async_open
725 using only synchronous calls. Only after the target is fully
726 connected, switch to async mode. Include FIXME about now it
727 currently works VS how it should be working.
728 (remote_async_open_1, set_extended_protocol): Delete function
729 set_extended_protocol. All open communication is now done
730 synchronously.
731 (forever_enabled_p): New variable. Determine if remote_async_wait
732 should block FOREVER when fetching target information.
733 (remote_cisco_open, remote_open_1): Set forever_enabled_p.
734
735 * infrun.c (start_remote): During the initial connect, always use
736 a synchronous wait.
737
738 Sat Sep 25 18:13:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
739
740 * Makefile.in (event-top.o): Add dependency.
741 * event-top.c: Include "remote.h".
742 * remote.c (async_interrupt_query), event-top.c:
743 (async_enable_stdin): Pass dummy parameter to
744 cleanup_sigint_signal_handler.
745 * remote.c (cleanup_sigint_signal_handler), remote.h
746 (cleanup_sigint_signal_handler), event-top.c (async_enable_stdin),
747 event-top.h (async_enable_stdin): Change signature to match
748 make_exec_error_cleanup handler pararameter.
749
750 Thu Sep 23 20:48:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
751
752 * defs.h (enum command_class): Move from here.
753 * command.h (command_class): To here.
754
755 1999-09-24 Kevin Buettner <kevinb@cygnus.com>
756 * breakpoint.c (bpstat_stop_status): Use not_a_breakpoint to
757 help properly set bp_addr.
758 * infrun.c (handle_inferior_event): Simplify calls to
759 bp_stop_status.
760
761 1999-09-24 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
762
763 * top.c (return_to_top_level): Do exec_error cleanups if are
764 interrupting a simulated synchronous execution command.
765
766 * infrun.c (start_remote): Create a cleanup to enable stdin in
767 case of error from this command.
768 (complete_execution): Do the enabling of stdin via the exec_error
769 cleanups, when needed.
770
771 * remote.c (remote_async_resume): Make sure we re-enable stdin in
772 case of error from the target.
773 (handle_remote_sigint_twice): The handler to be set is
774 async_remote_interrupt_twice, not async_remote_interrupt.
775 (async_remote_interrupt_twice): Don't do anything if the target
776 has been killed already. Call async_interrupt_query, instead of
777 interrupt_query.
778 (async_interrupt_query): New function. Async case of
779 interrupt_query().
780
781 * event-top.c (async_enable_stdin): New function. Reinstate stdin
782 with the event loop.
783 * event-top.h (async_enable_stdin): Export.
784
785 * utils.c (exec_error_cleanup_chain): New cleanup chain.
786 (make_exec_error_cleanup, do_exec_error_cleanups,
787 discard_exec_error_cleanups): New functions.
788 * defs.h (make_exec_error_cleanup, do_exec_error_cleanups,
789 discard_exec_error_cleanups): Export.
790
791 1999-09-24 Jim Blandy <jimb@zwingli.cygnus.com>
792
793 * ax-gdb.c (expr_to_agent): Don't forget to pass argument to
794 new_agent_expr.
795
796 1999-09-24 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
797
798 * event-loop.c (fetch_inferior_event_wrapper): New
799 function. Wrapper to pass to catch_errors.
800 (inferior_event_handler): Pop the target if things go bad with it.
801 Call fetch_inferior_event() from within catch_errors().
802
803 1999-09-24 Jim Blandy <jimb@zwingli.cygnus.com>
804
805 * ax-gdb.c: Use internal_error instead of error, where
806 appropriate.
807
808 1999-09-23 James Ingham <jingham@leda.cygnus.com>
809
810 * target.c (target_resize_to_sections): New function. Gather the
811 resizing code for the to_sections field into one place, and make
812 sure you update the other targets that are sharing the to_sections
813 structure.
814 * target.h: Declare the target_resize_to_sections function.
815 * solib.c (solib_add): use target_resize_to_sections.
816 * somsolib.c (som_solib_load_symbols): ditto
817 * rs6000-nat.c (xcoff_relocate_core): ditto
818 * pa64solib.c (pa64_solib_load_symbols): ditto
819 * irix5-nat.c (solib_add):ditto
820
821 * top.c: Define the attach & detach hooks
822 * defs.h: Declare the attach & detach hooks.
823 * infcmd.c (attach_command): call the attach hook if it exists.
824 (detach_command): call the detach hook if it exists.
825
826 * complaints.c (complain): Send the complaints to stderr rather
827 than stdout, so they don't get mixed into the result stream from
828 commands.
829
830 1999-09-23 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
831
832 * event-loop.c (poll_timers): Use correct timeval field names,
833 when setting the notifier timeouts, in case of select() used.
834 (gdb_wait_for_event): Pass a pointer to the timeout structure to
835 select(), not the structure.
836
837 Wed Sep 22 10:35:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
838
839 * Makefile.in (init.c): Change generated file to include "defs.h"
840 and "call-cmds.h". Use initialize_file_ftype when declaring
841 each initialize functions.
842 (call_cmds_h): Add definition.
843 (init.o): Add target and dependencies.
844 (init.c): Don't grep for _initialize* in init.c.
845
846 * defs.h (initialize_file_ftype): Add function typedef.
847
848 1999-09-22 Michael Snyder <msnyder@cleaver.cygnus.com>
849
850 * procfs.c (init_procinfo): move fltset initialization to caller.
851 (do_attach, create_procinfo): initialize fltset.
852
853 1999-09-22 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
854
855 * event-loop.c, event-top.c, event-loop.h: Rerun indent.
856
857 1999-09-21 Doug Evans <devans@casey.cygnus.com>
858
859 * m32r-stub.c (handle_exception): Fix typo in patch of 1999-08-26.
860
861 Tue Sep 21 14:55:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
862
863 From 1999-08-20 J.T. Conklin <jtc@redback.com>:
864 * remote.c (read_frame): expand cisco run-length encoding variant
865 inline as is done for the standard encoding.
866 (remote_cisco_expand): Removed.
867
868 1999-09-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
869
870 * event-loop.c: Include <sys/time.h>.
871
872 1999-09-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
873
874 * ser-ocd.c: (ser_ocd_open, ser_ocd_raw, ser_ocd_readchar,
875 ser_ocd_setbaudrate, ser_ocd_write, ser_ocd_close,
876 ser_ocd_get_tty_state, ser_ocd_set_tty_state): Remove unused
877 prototypes.
878 (ocd_readremote): Remove.
879 (ocd_write): Remove unused var 'c'.
880
881 1999-09-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
882
883 * event-top.c (change_line_handler): Cleanup dead code. Add comments.
884 * event-loop.c: Cleanup #if 0 code.
885
886 * event-loop.h (timer_handler_func): New function type.
887 (create_timer): Export function.
888 (delete_timer): Export function.
889
890 * event-loop.c: Add timeout and timeout_valid fields to
891 gdb_notifier. New structures gdb_timer and timer_list.
892 (gdb_do_one_event): Check whether there are any timers tht are
893 ready, before going to wait.
894 (gdb_wait_for_event): If the timeout structure is meaningful, pass
895 that to select()/poll().
896 (create_timer): New function. Creates a timer.
897 (delete_timer): New function. Deletes a timer.
898 (handle_timer_event): New function. Deals with timers that are ready.
899 (poll_timers): New Function. Chack whether timers have expired.
900
901 Mon Sep 20 17:00:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
902
903 * remote.c (getpkt, putpkt, remote_console_output): Move
904 declaration from here.
905 * remote.h: To here. New file.
906 * tracepoint.c(putpkt, getpkt, remote_console_output): Delete
907 declarations. Moved to "remote.h".
908 * Makefile.in (remote_h): Define.
909 * remote.c, tracepoint.c: Include "remote.h".
910 * Makefile.in (tracepoint.o, remote.o): Add dependency on
911 "remote.h".
912
913 * remote.h (remote_cisco_objfile_relocate,
914 cleanup_sigint_signal_handler): Add declaration. Include FIXME.
915 * infrun.c: Include "remote.h".
916 (complete_execution): Delete local extern declaration
917 of ``cleanup_sigint_signal_handler''.
918 * Makefile.in (infrun.o): Add dependency on remote.h.
919
920 Mon Sep 20 13:41:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
921
922 * kod.c (ecos_kod_open, ecos_kod_request, ecos_kod_close,
923 cisco_kod_open, cisco_kod_request, cisco_kod_close): Move
924 declarations from here.
925 * kod.h: To here. New file.
926 * kod-cisco.c, kod.c: Include "kod.h".
927 * Makefile.in (kod-cisco.o, kod.o): Add dependency on "kod.h".
928
929 * kod.h (kod_display_callback_ftype, kod_query_callback_ftype):
930 New function types.
931 * kod.h (kod_cisco_open): Use in declaration.
932 * kod.c (gdb_kod_open): Update definition.
933 * kod-cisco.c (cisco_kod_open): Update definition.
934
935 Mon Sep 20 12:13:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
936
937 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
938
939 * breakpoint.c (until_break_command_continuation): Add
940 declaration. Make static.
941 * event-top.c (rl_callback_read_char_wrapper): Ditto.
942
943 Fri Sep 17 19:28:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
944
945 * source.c: Include "source.h".
946 (open_source_file, find_source_lines): Move declaration from here.
947 * source.h: New file. To here.
948 * Makefile.in (source.o): Add dependency on source.h.
949
950 * breakpoints.c (delete_command): Move declaration from here.
951 * breakpoints.h (delete_command): To here.
952
953 1999-09-18 Jim Blandy <jimb@cris.red-bean.com>
954
955 * hppa-tdep.c (in_solib_call_trampoline): If we can't recognize
956 the instruction we're at, we're not in a stub.
957
958 Sat Sep 18 07:13:03 1999 Jeffrey A Law (law@cygnus.com)
959
960 * dwarf2read.c (dwarf_decode_lines): Correctly handle
961 DW_LNS_const_add_pc.
962
963 1999-09-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
964
965 * remote.c (remote_async_open_1): Use inferior_event_handler to
966 handle inferior events.
967 (extended_remote_async_create_inferior): Ditto.
968
969 * serial.h (serial_event_ftype): Add two pars.
970
971 * ser-unix.c (ser_unix_event): Add two parameters, error and fd.
972 Pass those into the call to the actual inferior event handler.
973
974 * infrun.c (complete_execution): Stdin handler is stdin_event_handler.
975
976 * event-top.h (stdin_event_handler): Export new function.
977
978 * event-top.c (stdin_event_handler): New function. Smarter handler
979 for events on stdin.
980 (change_line_handler): Don't need to update the handler for stdin
981 here anymore.
982 (_initialize_event_loop): Stdin handler is now stdin_event_handler.
983
984 * event-loop.h: (handler_func): Change signature, adding two new
985 args.
986 (sig_handler_func): New function type. It is the old handler_func.
987 (create_async_signal_handler): Update to use sig_handler_func.
988 (delete_async_signal_handler): Prototype for new function.
989
990 * event-loop.c: Include "inferior.h".
991 (struct file_handler): Add field error, to indicate error
992 condition on fd.
993 (struct async_signal_handler): Rename type of proc field.
994 (add_file_handler): Add exception condition as something select()
995 should report.
996 (handle_file_event): In case of error on the fd, record this in
997 the file_handler structure. Update call to (*proc)() to match new
998 signature.
999 (gdb_wait_for_event): If select() or poll() return error, report
1000 this to user.
1001 (create_async_signal_handler): Change first param type to
1002 sig_handler_func*.
1003 (inferior_event_handler): New function. Smarter inferior event
1004 handling.
1005
1006 1999-09-18 Jim Blandy <jimb@cris.red-bean.com>
1007
1008 * pa64solib.c (pa64_solib_create_inferior_hook): Remove code which
1009 tries to set __d_pid; it's not relevant to PA64 shared libraries.
1010
1011 A psymtab's texthigh element, and a block's endaddr element, are
1012 the address past the end of the address range, never the address
1013 of the last byte. These data structures mean the same thing on
1014 forty different architectures; there's no reason they should be
1015 different on HP/UX.
1016 * symtab.c (find_pc_sect_psymtab): Remove special case for HP/UX.
1017 (find_pc_sect_symtab): Same.
1018 * objfiles.c (find_pc_sect_section): Same.
1019
1020 Sat Sep 18 07:13:03 1999 Jeffrey A Law (law@cygnus.com)
1021
1022 * hppa-tdep.c (internalize_unwinds): Handle PA64 shared libraries
1023 correctly
1024
1025 * hppa-tdep.c (in_solib_call_trampoline): Handle PA64 shared library
1026 trampolines.
1027
1028 1999-09-17 Jim Blandy <jimb@zwingli.cygnus.com>
1029
1030 * breakpoint.c (permanent_breakpoint_here_p): Delete.
1031 Accidentally left over from previous changes.
1032
1033 1999-09-17 Jim Blandy <jimb@cris.red-bean.com>
1034
1035 * config/pa/tm-hppa64.h (ARGS_GROW_DOWNWARD): Deleted. There are
1036 many more differences between the 32- and 64-bit ABI's than the
1037 direction the arguments grow, so this name is misleading.
1038 (PA20W_CALLING_CONVENTIONS): Define this instead.
1039 * config/pa/tm-hppa.h (ARGS_GROW_DOWNWARD): Delete.
1040 * hppa-tdep.c (hppa_push_arguments): Split into two separate
1041 functions, depending on whether PA20W_CALLING_CONVENTIONS is
1042 #defined. These implement completely separate specifications,
1043 they don't really share that much code anyway, and this is much
1044 more readable. Specifically: leave a 16-byte, not 32-byte, frame
1045 marker; correctly align objects larger than eight bytes; promote
1046 all integral scalar arguments smaller than eight bytes to a full
1047 register width; pad aggregates smaller than eight bytes on the
1048 right.
1049
1050 Thu Sep 16 17:33:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
1051
1052 * remote.c (remote_async_open_1): Use SERIAL_ASYNC to
1053 enable/disable async event callback on serial port. Use
1054 SERIAL_CAN_ASYNC_P / SERIAL_IS_ASYNC_P to determine if / when
1055 async mode.
1056 (remote_async_resume, remote_async_detach, remote_async_kill,
1057 extended_remote_async_create_inferior, remote_async_wait): Ditto.
1058
1059 * ser-unix.c (hardwire_readchar): When ASYNC, only read a single
1060 character.
1061 (ser_unix_readchar): Ditto. Problems occure with back-to-back
1062 data from a target. The ASYNC code can loose the second data
1063 chunk.
1064
1065 * serial.c (serial_fdopen): Initialize async_handler and
1066 async_context.
1067
1068 1999-09-16 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1069
1070 * utils.c (discard_all_continuations): New function.
1071 * defs.h: (discard_all_continuations): Add prototype.
1072
1073 1999-09-16 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1074
1075 * valops.c: Remove prototype for search_struct_field_aux(). THe
1076 function was nowhere in the file.
1077 (value_ind): Remove unused var real_val.
1078 (value_find_oload_method_list): Remove unused var v.
1079 (find_overload_match): Remove extra declaration of var jj.
1080
1081 * Makefile.in (event_top_h): Define. Add dependency on this for
1082 every file that includes event-top.h.
1083
1084 Thu Sep 16 17:33:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
1085
1086 * serial.c (serial_open): Delete ``&'' device.
1087 * ser-unix.c (_initialize_ser_hardwire): Make the "hardwire"
1088 device async. Delete temporary "async-hardwire" device.
1089
1090 Thu Sep 16 16:27:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
1091
1092 * serial.h (SERIAL_IS_ASYNC_P): Define. Non-zero when serial
1093 device is in async mode.
1094 (SERIAL_CAN_ASYNC_P): Rename SERIAL_ASYNC_P.
1095 * serial.c (serial_is_async_p): Implement.
1096 (serial_can_async_p): Rename serial_async_p.
1097 (serial_open): Initialize ASYNC_HANDLER and ASYNC_CONTEXT. Save
1098 the original name in SCB instead of the stripped name.
1099
1100 Thu Sep 16 12:20:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
1101
1102 * serial.h (struct serial_ops): Add field ASYNC.
1103 (SERIAL_ASYNC, SERIAL_ASYNC_P): New macros.
1104 (struct _serial_t): Add fields async_context and async_handler.
1105 * serial.c (serial_async, serial_async_p): Implement.
1106
1107 * ser-unix.c: Include "event-loop.h".
1108 (ser_unix_async), ser-unix.c: New function. Implement async mode.
1109 (async_event): Handle async events.
1110 * ser-unix.c (_initialize_ser_hardwire), ser-tcp.c
1111 (_initialize_ser_tcp), ser-pipe.c (_initialize_ser_pipe): Enable
1112 ASYNC.
1113
1114 * serial.c (serial_open): Discard leading ``|'' before opening a
1115 pipe device.
1116 * ser-pipe.c (pipe_open): Adjust.
1117 * serial.c (serial_open): Add ``&'' prefix so that
1118 "async-hardwire" device can be explicitly selected. Work in
1119 progress.
1120 * ser-unix.c: Register "async-hardwire" device.
1121
1122 Thu Sep 16 09:04:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
1123
1124 * ser-unix.h: New file. Declare generic ser_unix functions.
1125 * ser-unix.c (ser_unix_nop_get_tty_state,
1126 ser_unix_nop_set_tty_state, ser_unix_nop_raw, ser_unix_wait_for,
1127 ser_unix_readchar, ser_unix_nop_noflush_set_tty_state,
1128 ser_unix_nop_print_tty_state, ser_unix_nop_setbaudrate,
1129 ser_unix_nop_setstopbits, ser_unix_write,
1130 ser_unix_nop_flush_output, ser_unix_nop_flush_input,
1131 ser_unix_nop_send_break, ser_unix_nop_drain_output): New
1132 functions.
1133 * ser-unix.c: Include <sys/wait.h>, <sys/socket.h>,
1134 "gdb_string.h".
1135
1136 * ser-tcp.c (_initialize_ser_tcp), ser-unix.c
1137 (_initialize_ser_hardwire), ser-pipe.c (_initialize_ser_tcp):
1138 Initialize ops vector using assignment.
1139
1140 * ser-pipe.c, ser-tcp.c, ser-unix.c: Include ser-unix.h.
1141
1142 * ser-pipe.c (pipe_get_tty_state, pipe_set_tty_state,
1143 pipe_return_0, pipe_raw, wait_for, pipe_readchar,
1144 pipe_noflush_set_tty_state, pipe_print_tty_state,
1145 pipe_setbaudrate, pipe_setstopbits, pipe_write), ser-tcp.c
1146 (tcp_get_tty_state, tcp_set_tty_state, tcp_return_0, tcp_raw,
1147 wait_for, tcp_readchar, tcp_noflush_set_tty_state,
1148 tcp_print_tty_state, tcp_setbaudrate, tcp_setstopbits, tcp_write):
1149 Delete functions.
1150
1151 1999-09-15 Stan Shebs <shebs@andros.cygnus.com>
1152
1153 * d10v-tdep.c (remote_d10v_translate_xfer_address): Move to here
1154 from remote-d10v.c, also change the memory translation to its
1155 previous version.
1156 * remote-d10v.c: Remove.
1157 * config/d10v/d10v.mt (TDEPFILES): Remove remote-d10v.o.
1158
1159 1999-09-15 Jim Blandy <jimb@cris.red-bean.com>
1160
1161 * breakpoint.c (remove_breakpoint): Return zero, not nothing.
1162
1163 1999-09-14 Jim Blandy <jimb@cris.red-bean.com>
1164
1165 * hppa-tdep.c (frame_chain): If the unwind info says we've saved
1166 r3, don't trust it. Call get_frame_saved_regs and see if we can
1167 actually find an address for r3 there.
1168
1169 * pa64solib.c (pa64_sharedlibrary_info_command): Text fix.
1170
1171 Tue Sep 14 14:34:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
1172
1173 * serial.h (DEPRECATED_SERIAL_FD): Define.
1174 * serial.c (deprecated_serial_fd): New function.
1175
1176 * remote.c (remote_async_open_1, remote_async_open_1,
1177 remote_async_detach, remote_async_kill,
1178 extended_remote_async_create_inferior, minitelnet): Update.
1179 * remote-es.c (es1800_open, es1800_close, es1800_transparent): Update.
1180
1181 * remote-st.c (connect_command), remote-os9k.c (connect_command):
1182 Fix. Call FD_SET et.al. with FD instead of serial_t.
1183
1184 1999-09-14 Jim Blandy <jimb@cris.red-bean.com>
1185
1186 * hppa-tdep.c (hppa_frame_find_saved_regs): The two possible
1187 instructions for saving the return pointer (32- and 64-bit) save
1188 it at different offsets.
1189
1190 * config/pa/tm-hppa64.h: Doc fix.
1191
1192 * defs.h (continuation): Make this a typedef.
1193
1194 * Makefile.in (gdbtk.o, gdbtk-cmds.o): Depend on $(top_h).
1195
1196 * Makefile.in (i386-linux-nat.o): Depend on symfile.h, not
1197 $(symfile_h); the latter has no definition.
1198
1199 * breakpoint.c (breakpoint_here_p): Remove meaningless code,
1200 testing b->enable against shlib_disabled and call_disabled after
1201 we know it is enabled.
1202
1203 Implement "permanent breakpoints" --- breakpoints that are
1204 hardwired into the inferior's code. GDB knows they're there, but
1205 doesn't try to insert or remove them, etc.
1206 * breakpoint.h (enum enable): Add `permanent' enablement state.
1207 * breakpoint.c (make_breakpoint_permanent): New function.
1208 * breakpoint.h (make_breakpoint_permanent): Add declaration.
1209 * breakpoint.c (insert_breakpoints): Don't bother to insert
1210 permanent breakpoints...
1211 (remove_breakpoint): ... or remove them.
1212 (breakpoint_here_p): Handle `permanent' like `enabled'. Change
1213 return value to indicate whether it's a permanent breakpoint here,
1214 or an ordinary breakpoint.
1215 * breakpoint.h (enum breakpoint_here): New enum.
1216 (breakpoint_here_p): Change declaration.
1217 * breakpoint.h (breakpoint_1): Extend bpenables to cover all the
1218 enablement states.
1219 (describe_other_breakpoints): Describe permanent breakpoints.
1220 (check_duplicates): If one of the breakpoints at ADDRESS is a
1221 permanent breakpoint, treat all the others as the duplicates, so
1222 we don't try to insert or remove any of them. Verify that only
1223 the permanent breakpoint is actually inserted.
1224 (delete_breakpoint): Complain if we discover that another
1225 breakpoint was inserted at the same place as a permanent
1226 breakpoint.
1227 (disable_breakpoint): Fail silently if asked to disable a
1228 permanent breakpoint.
1229 (do_enable_breakpoint): Don't change a permanent breakpoint's
1230 enablement to ordinary `enabled'. Leave it alone.
1231 (create_solib_event_breakpoint): Return the
1232 breakpoint object created.
1233 * breakpoint.h (create_solib_event_breakpoint): Fix declaration.
1234 * pa64solib.c (pa64_solib_create_inferior_hook): Do turn on the
1235 DT_HP_DEBUG_CALLBACK flag in the dynamic linker, so it will call
1236 __dld_break, which contains the permanent breakpoint, when interesting
1237 things happen. Tell GDB that the breakpoint in __dld_break is
1238 permanent.
1239 * gdbtk-cmds.c (gdb_get_breakpoint_info): Report a permanent
1240 breakpoint as enabled.
1241 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Provide default definition.
1242 (default_skip_permanent_breakpoint): New function.
1243 (resume): If we're trying to resume at a permanent breakpoint, use
1244 SKIP_PERMANENT_BREAKPOINT to step over it.
1245 * hppa-tdep.c (hppa_skip_permanent_breakpoint): New function.
1246 * config/pa/tm-hppa.h (hppa_skip_permanent_breakpoint): Declare.
1247 (SKIP_PERMANENT_BREAKPOINT): Define.
1248
1249 1999-09-14 Kevin Buettner <kevinb@cygnus.com>
1250
1251 * symtab.h, minsyms.c (find_stab_function_addr): Changed
1252 type of second parameter from partial_symtab * to char *.
1253 Fixed all callers.
1254 * minsyms.c (find_stab_function_addr): Look for minimal
1255 symbol without filename if filename based search fails.
1256 * dbxread.c (process_one_symbol): Call find_stab_function_addr()
1257 in place of inline code with identical functionality.
1258 * partial-stab.h (case N_FUN, descriptors 'F' and 'f'): Look
1259 up symbol's address from minimal symbol table when N_FUN
1260 address is missing. Also, make sure this value is used for
1261 calculating the value of the texthigh field.
1262
1263 1999-09-14 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1264
1265 * event-loop.c (create_file_handler): Increment the total number
1266 of file descriptors for the poll case, only if this is a new file
1267 desc.
1268
1269 1999-09-14 Eli Zaretskii <eliz@is.elta.co.il>
1270
1271 * go32-nat.c: misc minor cleanups and fixes missed in last patch.
1272
1273 Tue Sep 14 12:37:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
1274
1275 * serial.h (SERIAL_PRINT_TTY_STATE): Add STREAM parameter.
1276 (union serial_ops): Update.
1277
1278 * ser-unix.c (hardwire_print_tty_state, ser-tcp.c
1279 (tcp_print_tty_state), ser-pipe.c (pipe_print_tty_state,
1280 ser-go32.c (dos_print_tty_state, ser-mac.c (mac_print_tty_state,
1281 ser-ocd.c (ocd_print_tty_state, ser-e7kpc.c
1282 (e7000pc_print_tty_state): Update.
1283 * inflow.c (child_terminal_info): Update.
1284 * serial.c (serial_print_tty_state): Update.
1285
1286 Tue Sep 14 11:41:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
1287
1288 * serial.c, serial.h, ser-tcp.c, ser-unix.c, ser-pipe.c: Convert
1289 all functions to ISO-C.
1290 * serial.h, serial.c: Move all indirect macro function calls from
1291 serial.h into serial.c.
1292 (serial_drain_output, serial_flush_output, serial_flush_input,
1293 serial_raw, serial_get_tty_state, serial_set_tty_state,
1294 serial_print_tty_state, serial_noflush_set_tty_state,
1295 serial_setbaudrate, serial_setstopbits): New functions.
1296 (do_serial_close): Rename serial_close.
1297 (serial_close, serial_un_fdopen): New functions. Call
1298 do_serial_close.
1299
1300 1999-09-13 James Ingham <jingham@leda.cygnus.com>
1301
1302 * symtab.c (decode_line_1): Find the rightmost parenthesis in the
1303 expression, not the leftmost. This allows us to parse function
1304 declarations with embedded function prototypes.
1305
1306 Mon Sep 13 18:39:31 1999 Jeffrey A Law (law@cygnus.com)
1307
1308 * pa64solib.c (pa64_sharedlibrary_info_command): Fix typos.
1309
1310 1999-09-13 Kevin Buettner <kevinb@cygnus.com>
1311
1312 * i386-tdep.c (i386_extract_return_value): ifdef'd so that
1313 non-linux targets will work again.
1314 (i386_do_registers_info, i386_print_register): Revert changes
1315 of 1999-09-03; these functions have been removed because they
1316 are Linux specific and break non-Linux builds. This functionality
1317 will be restored after FP support unification has been achieved.
1318 * i387-tdep.c (i387_print_register, void i387_float_info):
1319 Likewise.
1320 * config/i386/tm-linux.h (i387_float_info, FLOAT_INFO,
1321 DO_REGISTERS_INFO, i386_do_registers_info,
1322 i387_print_register): Likewise.
1323
1324 1999-09-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1325
1326 * event-top.c (call_readline): Change to accept gdb_client_data as
1327 param.
1328 (rl_callback_read_char_wrapper): New function to match what the
1329 event loop expects and what readline expects.
1330 (change_line_handler): Make call_readline point to
1331 rl_callback_read_char_wrapper, instead of rl_callback_read_char.
1332 (_initialize_event_loop): Ditto.
1333 (gdb_readline2): Change parameter to gdb_client_data.
1334 * event-top.h (call_readline, gdb_readline2): Change accordingly.
1335
1336 * event-loop.c (add_file_handler): Change 2nd par to
1337 handler_func*. No more need for casting.
1338 * event-loop.h (create_async_signal_handler): Change accordingly.
1339
1340 * inferior.h (fetch_inferior_event): Change parameter to void*.
1341 * infrun.c (fetch_inferior_event): Ditto.
1342
1343 1999-09-13 Stan Shebs <shebs@andros.cygnus.com>
1344
1345 * infrun.c (step_into_function): New function, broken out from the
1346 step_into_function label in handle_inferior_event.
1347 (handle_inferior_event): Change a goto into a function call.
1348
1349 1999-09-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1350
1351 * event-top.h: New file. All the exported vars and functions from
1352 event-top.c.
1353
1354 * event-loop.h (struct gdb_event, event_handler_func,
1355 file_handler, async_signal_handler, SELECT_MASK, fd_mask, NBBY,
1356 FD_SETSIZE, howmany, NFDBITS, MASK_SIZE): Move to event-loop.c.
1357 (struct prompts, PROMPT, PREFIX, SUFFIX, display_gdb_prompt,
1358 async_init_signals, set_async_editing_command,
1359 set_async_annotation_level, set_async_prompt, handle_stop_sig,
1360 handle_sigint, pop_prompt, push_prompt, gdb_readline2,
1361 mark_async_signal_handler_wrapper, async_request_quit,
1362 async_command_editing_p, exec_done_display_p,
1363 async_annotation_suffix, new_async_prompt, the_prompts,
1364 call_readline, input_handler, input_fd): Move to event-top.h.
1365 (All function prototypes): Don't use PARAMS anymore.
1366
1367 * event-loop.c: (struct gdb_event, event_handler_func,
1368 file_handler, async_signal_handler, SELECT_MASK, fd_mask, NBBY,
1369 FD_SETSIZE, howmany, NFDBITS, MASK_SIZE): Move to here from
1370 event-loop.h.
1371 Include event-top.h. Remove use of PARAMS. ANSIfy functions headers.
1372
1373 * event-top.c: Include event-top.h. Include "signals.h", not
1374 <signals.h>.
1375 Remove use of PARAMS. ANSIfy functions headers.
1376 (handle_stop_sig): move prototype to event-top.h.
1377
1378 * remote.c: Include event-top.h. Make it understand
1379 async_signal_handler type.
1380 * infrun.c: Include event-top.h.
1381 * mi-main.c: Ditto.
1382 * top.c Ditto.
1383 * utils.c: Ditto.
1384
1385 Mon Sep 13 18:54:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
1386
1387 * gdbarch.sh: Describe each of the fields.
1388
1389 Mon Sep 13 17:51:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
1390
1391 From 1999-09-12 Jim Blandy <jimb@cris.red-bean.com>:
1392 * gdbarch.sh (generating setters): Use sed to generate the proper
1393 indentation, not tr; tr's behavior is notoriously unportable.
1394
1395 1999-09-10 Jim Blandy <jimb@zwingli.cygnus.com>
1396
1397 * i387-tdep.c (print_387_control_bits): Don't print newline; the
1398 callers take care of that. (Thanks to H.J. Lu.)
1399
1400 1999-09-09 Stan Shebs <shebs@andros.cygnus.com>
1401
1402 * d10v-tdep.c (DMEM_START): Set to 0x2000000.
1403 (itrace, iuntrace, info itrace, itdisassemble, itracedisplay,
1404 itracesource): Add 'i' prefix to commands, so as not to conflict
1405 with generic trace commands.
1406
1407 1999-09-09 Fernando Nasser <fnasser@totem.to.cygnus.com>
1408
1409 * remote.c (_initialize_remote): Fix the specification of the
1410 "remote" prefix to set and show commands.
1411
1412 1999-09-09 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1413
1414 * event-loop.c (create_file_event): New function. Creates a gdb
1415 event for a given fd.
1416 (gdb_wait_for_event): Use create_file_event().
1417 * event-loop.h: export create_file_event().
1418
1419 * event-loop.c (delete_file_handler): Move the clearing of the
1420 mask to later on in the function, because we need it in order to
1421 deactivate the correct fd when using select().
1422
1423 * m32r-tdep.c (decode_prologue): Fix typo. Instructions starting
1424 with 0xf are branch instructions.
1425 (m32r_scan_prologue): Initialize framesize to 0.
1426
1427 1999-09-07 J.T. Conklin <jtc@redback.com>
1428
1429 * i386-stub.c (exceptionHook, oldExceptionHook): Removed.
1430 (handle_exception): Removed #if'd out exception hook code.
1431
1432 * i386-stub.c, m68k-stub.c (error): Removed unused variable.
1433
1434 * i386-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
1435 sparcl-stub.c, sparclet-stub.c (remcomInBuffer, remcomOutBuffer):
1436 Make static.
1437
1438 Tue Sep 7 14:06:22 1999 Kevin Buettner <kevinb@cygnus.com>
1439
1440 * config/i386/tm-linux.h (SOFUN_ADDRESS_MAYBE_MISSING):
1441 Define.
1442
1443 Tue Sep 7 08:18:01 1999 Kevin Buettner <kevinb@cygnus.com>
1444
1445 From Jim Blandy <jimb@cygnus.com>:
1446
1447 Step into calls to functions in shared libraries properly. See
1448 the comments for SKIP_SOLIB_RESOLVER atop infrun.c for details.
1449 * infrun.c (SKIP_SOLIB_RESOLVER): New macro.
1450
1451 1999-09-05 Fred Fish <fnf@cygnus.com>
1452
1453 * elfread.c (elf_symtab_read): Remove separately passed bfd
1454 pointer and offset. Pick up bfd pointer from objfile, and
1455 get offset from objfile's section_offsets.
1456
1457 Fri Sep 3 22:29:39 1999 Kevin Buettner <kevinb@cygnus.com>
1458
1459 * config/i386/tm-linux.h (REGISTER_NAMES): Changed register
1460 named "foo" to "fopo" which more accurately describes the FPU
1461 Operand Pointer Offset. The real reason for this change, of
1462 course, is that many programmers use $foo as a convenience
1463 variable and are likely to be unpleasantly surprised to find
1464 that they're unwittingly changing the state of their ia32 FPU.
1465
1466 1999-09-03 Jason Molenda (jsm@bugshack.cygnus.com)
1467
1468 * monitor.c (monitor_supply_register): Stop scanning val string
1469 if a newline is encountered.
1470
1471 1999-09-03 Jason Molenda (jsm@bugshack.cygnus.com)
1472
1473 monitor.c (TARGET_BUF_SIZE): New macro, defined to 2048.
1474 (monitor_expect_regexp, monitor_wait, monitor_dump_reg_block,
1475 monitor_dump_reg_block): Dump hard-coded constants in favor
1476 of TARGET_BUF_SIZE.
1477
1478 (readchar): Re-enable output of characters read from monitor when
1479 remotedebug is set.
1480
1481 (monitor_supply_register): Use ULONGEST to hold value.
1482 Replace strtoul() call with hand-coded loop to handle values
1483 larger than 'long'.
1484
1485 (monitor_store_register): Use ULONGEST to hold value.
1486
1487 Fri Sep 3 00:47:44 1999 Kevin Buettner <kevinb@cygnus.com>
1488
1489 [Merged linux/x86 floating point code from Bill Metzenthen,
1490 Jim Blandy, Anthony Green, H. J. Lu, and possibly others. The
1491 following remarks are Jim Blandy's.]
1492
1493 * findvar.c (extract_floating): Call TARGET_EXTRACT_FLOATING, if
1494 #defined.
1495 (store_floating): Call TARGET_STORE_FLOATING, if #defined.
1496
1497 * i386-tdep.c (i386_print_register, i386_do_registers_info): New
1498 functions.
1499 (i386_extract_return_value): GNU/Linux returns floating point
1500 values in a floating point register too.
1501 (set_disassembly_flavor): Add prototype.
1502 (i386_extract_return_value): Use FPDATA_REGNUM, not FP0_REGNUM (
1503 which wasn't the first FP data register).
1504 (i386_do_registers_info): Use FPSTART_REGNUM and FPEND_REGNUM as
1505 the limits of the FPU-related registers.
1506 (i386_extract_return_value): Tell GDB how to find return values
1507 larger than four bytes. (Thanks to Paul N. Hilfinger for the bug
1508 report.)
1509
1510 * i387-tdep.c (print_387_control_word): Break out bit-splitting into...
1511 (print_387_control_bits): New function.
1512 (print_387_status_word): Break out bit-splitting into...
1513 (print_387_status_bits): New function.
1514 (i387_print_register, i387_float_info, i387_hex_float_input): New
1515 functions.
1516 (i387_extract_floating, i387_store_floating): New functions.
1517
1518 * valprint.c (print_floating): Use macro TARGET_ANALYZE_FLOATING,
1519 if it's #defined. Tolerate values of `nonnegative' other than
1520 zero and one.
1521
1522 * i386-linux-nat.c: New file.
1523 * Makefile.in (ALLDEPFILES): Mention i386-linux-nat.c.
1524 (i386-linux-nat.o): New rule, listing dependencies.
1525 * config/i386/linux.mh (NATDEPFILES): Use i386-linux-nat.o, not
1526 the plain i386v4-nat.o.
1527 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
1528 * config/i386/xm-linux.h: Define HOST_I386.
1529
1530 * config/i386/tm-linux.h (FP0_REGNUM): Replaced by...
1531 (FPSTART_REGNUM, FPCONTROL_REGNUM, FPSTATUS_REGNUM, FPTAG_REGNUM,
1532 FPDATA_REGNUM, FPEND_REGNUM): New definitions.
1533 (REGISTER_BYTES): Changed accordingly.
1534 (SKIP_SOLIB_RESOLVER): #define this.
1535 (i386_linux_skip_solib_resolver): New declaration.
1536 (i387_float_info): Added extern decl for this function.
1537 (TARGET_EXTRACT_FLOATING, TARGET_STORE_FLOATING,
1538 TARGET_ANALYZE_FLOATING): Define.
1539 (i387_extract_floating, i387_store_floating): New extern decls.
1540 (I386_GNULINUX_TARGET): Define.
1541 (NUM_REGS, NUM_FREGS, REGISTER_NAMES, FP0_REGNUM, FPDATA_REGNUM,
1542 FPENV_BYTES, FPREG_RAW_SIZE, FPREG_BYTES, REGISTER_BYTES,
1543 REGISTER_BYTE, REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE,
1544 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
1545 TARGET_LONG_DOUBLE_BIT, FLOAT_INFO, DO_REGISTERS_INFO): New
1546 definitions, perhaps overriding those inherited from
1547 config/i386/tm-i386.h.
1548 (i386_do_registers_info, i387_print_register, double_to_i387,
1549 i387_to_double): New declarations.
1550 (LD_I387): Define iff both the host and target are using i387
1551 FPU's.
1552 (HEX_FLOAT_INPUT, REGISTER_CONVERTIBLE,
1553 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW,
1554 REGISTER_VIRTUAL_TYPE): Define these if LD_I387 is defined.
1555
1556 * source.c (list_command): List the right number of source lines,
1557 even if we're at the top of the file.
1558
1559 1999-09-02 Stan Shebs <shebs@andros.cygnus.com>
1560
1561 * infrun.c (step_over_function): New function, broken out from the
1562 step_over_function label in handle_inferior_event.
1563 (handle_inferior_event): Change a goto into a function call.
1564
1565 Thu Sep 2 18:26:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
1566
1567 * Makefile.in (GDB_WERROR_CFLAGS, GBB_WARN_CFLAGS): Define.
1568 (INTERNAL_CFLAGS): Update
1569 * configure.in (WERROR_CFLAGS, WARN_CFLAGS): Sync with
1570 ../sim/common/aclocal.m4.
1571 * configure: Re-generate.
1572
1573 Thu Sep 2 00:27:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
1574
1575 * Makefile.in (z8k-tdep.o): For moment, don't try to compile with
1576 -Werror. See Makefile.in.
1577 * z8k-tdep.c (z8k_set_pointer_size): Document problem.
1578
1579 * config/z8k/tm-z8k.h (z8k_print_register_hook, z8k_frame_chain,
1580 z8k_saved_pc_after_call, z8k_frame_saved_pc,
1581 z8k_set_pointer_size): Declare.
1582 (z8k_skip_prologue): Fix typo. Was mz8k_skip_prologue.
1583 (FRAME_CHAIN, PRINT_REGISTER_HOOK, FRAME_SAVED_PC,
1584 SAVED_PC_AFTER_CALL): Update.
1585 * z8k-tdep.c (z8k_print_register_hook): Rename
1586 z8k_print_register_hook.
1587 (z8k_frame_chain): Rename frame_chain.
1588 (z8k_saved_pc_after_call): Rename saved_pc_after_call.
1589 (z8k_frame_saved_pc): Rename frame_saved_pc.
1590 (z8k_print_register_hook): Fix printf.
1591 (read_memory_pointer): Add declaration.
1592 ("value.h"): Include.
1593 * Makefile.in (z8k-tdep.o): Add dependency on value.h.
1594
1595 * config/sparc/tm-sparc.h (PRINT_EXTRA_FRAME_INFO): Fix
1596 printf. calls
1597 * Makefile.in (remote-e7000.o): For moment, don't try to compile
1598 with -Werror. See Makefile.in.
1599 * sh-tdep.c (sh_show_regs): Fix printf calls.
1600 * xcoffsolib.c (solib_info): Fix Printf calls.
1601 * dink32-rom.c: #include "symfile.h" for generic_load and
1602 "inferior.h" for write_pc.
1603 * Makefile.in (dink32-rom.o): Update.
1604
1605 * config/mn10300/tm-mn10300.h (mn10300_store_struct_return),
1606 config/mn10200/tm-mn10200.h (mn10200_store_struct_return): Add
1607 declarations.
1608
1609 Tue Aug 31 00:48:27 1999 Andrew Cagney <cagney@amy.cygnus.com>
1610
1611 * config/mips/tm-tx49el.h (REGISTER_SIM_REGNO): Define.
1612
1613 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
1614 Pass REGISTER_SIM_REGNO converted register number to the
1615 simulator.
1616
1617 1999-09-01 Tom Tromey <tromey@cygnus.com>
1618
1619 * config/i386/nm-linux.h (PREPARE_TO_PROCEED): Added argument.
1620
1621 1999-09-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1622
1623 * values.c (value_virtual_fn_field): Remove unused var(s).
1624 * thread.c (prune_threads): Ditto.
1625 * symtab.c (lookup_transparent_type): Ditto.
1626 (decode_line_1): Ditto.
1627 (make_symbol_overload_list): Ditto.
1628 * rs6000-tdep.c (frame_get_saved_regs): Ditto.
1629 (set_processor): Ditto.
1630 * remote.c (remote_remove_breakpoint): Ditto.
1631 (remote_query): Ditto.
1632 (readtty): Ditto.
1633 * remote-sds.c (sds_fetch_registers): Ditto.
1634 (putmessage): Ditto.
1635 * ppcbug-rom.c (ppcbug_supply_register): Ditto.
1636 (ppcbug_open): Remove unused prototype.
1637 * parse.c (parse_nested_classes_for_hpacc): Remove unused var(s).
1638 * ocd.c (ocd_open): Ditto.
1639 (ocd_get_packet): Ditto.
1640 * monitor.c (monitor_error): Ditto.
1641 (monitor_wait_srec_ack): Ditto.
1642 * main.c (main): Ditto.
1643 * gdbtypes.c (count_virtual_fns): Ditto.
1644 * exec.c (exec_file_command): Ditto.
1645
1646 * event-top.c: Include handle_sigwinch() function prototype within
1647 appropriate #ifdef.
1648
1649 * eval.c (evaluate_subexp_standard): Remove unused variable.
1650 (evaluate_subexp_standard): Remove unused variables.
1651 * dink32-rom.c (dink32_supply_register): Remove unused variable.
1652 * dbxread.c (elfstab_build_psymtabs): Ditto.
1653 * command.c (do_setshow_command): Ditto.
1654 * breakpoint.c (solib_load_unload_1): Remove unused variables 'i'
1655 and 'sal'.
1656 (until_break_command): Remove unused variables 'arg1' and 'arg2'.
1657 (create_exception_catchpoint): Remove unused variable 'i'.
1658 * ax-gdb.c (gen_sub): Remove unused variable.
1659 (_initialize_ax_gdb): Ditto.
1660
1661 * ser-pipe.c (pipe_readchar): If timeout is expired return
1662 SERIAL_TIMEOUT.
1663 * ser-tcp.c (tcp_readchar): If timeout is expired return
1664 SERIAL_TIMEOUT.
1665
1666 Wed Sep 1 15:07:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
1667
1668 * version.h: New file.
1669 * Makefile.in (version_h): Define.
1670 (version.o): Add target.
1671
1672 * remote-array.c: #include "version.h".
1673 (version): Delete extern declarations.
1674 * Makefile.in (remote-array.o): Add dependency on version.h.
1675
1676 * top.c: #include "version.h".
1677 (version, host_name, target_name): Delete extern declarations.
1678 * Makefile.in (top.o): Add dependency on version.h.
1679
1680 * remote.c (remote_remove_watchpoint, remote_insert_watchpoint),
1681 remote-array.c (array_open), remote-mips.c (send_srec),
1682 dve3900-rom.c (store_bitmapped_register): Fix Printfs.
1683
1684 * mips-tdep.c (mips_print_extra_frame_info, print_unpack),
1685 m32r-rom.c (m32r_load_section), m32r-tdep.c (m32r_frame_chain),
1686 dsrec.c (load_srec): Fix printf problems.
1687
1688 Wed Sep 1 13:16:49 1999 Andrew Cagney <cagney@b1.cygnus.com>
1689
1690 * Makefile.in (monitor.o): For moment, don't try to compile with
1691 -Werror. monitor.c has -Wformat problems. See Makefile.in for
1692 more info.
1693
1694 Tue Aug 31 21:23:38 1999 Jeffrey A Law (law@cygnus.com)
1695
1696 * hppa-tdep.c (prologue_inst_adjust_sp): Correct offset computation
1697 for doubleword store instructions.
1698 (hppa_frame_find_saved_regs): Similarly.
1699
1700 Wed Sep 1 09:22:50 1999 Andrew Cagney <cagney@b1.cygnus.com>
1701
1702 * d30v-tdep.c (d30v_print_register):
1703 (tdisassemble_command):
1704
1705 * d10v-tdep.c (show_regs, trace_info, tdisassemble_command): Fix
1706 printf problems.
1707
1708 * remote-sim.c (dump_mem), remote-rdi.c (arm_rdi_create_inferior):
1709 Fix printf arguments.
1710
1711 * remote-mips.c, mips-tdep.c: Move declaration of
1712 ``mips_set_processor_type_command'' from here.
1713 * config/mips/tm-mips.h: To here.
1714 * remote-array.c: #include "inferior.h".
1715 * config/mips/tm-embed.h (remote_mips_stopped_by_watchpoint): Add
1716 declaration.
1717 * remote-mips.c (remote_mips_stopped_by_watchpoint): Define using
1718 ISO-C prototype.
1719 (monitor_supports_breakpoints): Integer variable.
1720
1721 * m32r-rom.c: #include "inferior.h" and <ctype.h>
1722 * config/m32r/tm-m32r.h (m32r_write_sp): Add declaration.
1723
1724 * config/i960/tm-i960.h (leafproc_return, i960_pop_frame): Add
1725 declaration.
1726 (POP_FRAME): Call i960_pop_frame.
1727 * i960-tdep.c (i960_pop_frame): Rename pop_frame.
1728 * mon960-rom.c: #include "inferior.h" for declaration of write_pc.
1729
1730 1999-08-15 Fred Fish <fnf@cygnus.com>
1731
1732 * objfiles.c (objfile_relocate): Use SIZEOF_SECTION_OFFSETS when
1733 allocating section_offsets array.
1734 * remote-os9k.c (rombug_wait): Ditto.
1735 * remote-vx.c (vx_add_symbols): Ditto.
1736 * remote.c (get_offsets): Ditto.
1737 (remote_cisco_objfile_relocate): Ditto.
1738 * rs6000-nat.c (vmap_symtab): Ditto.
1739
1740 * dstread.c (dst_symfile_offsets): Set section_offsets directly instead
1741 of returning a pointer to section offsets.
1742 * somread.c (som_symfile_offsets): Ditto.
1743 * xcoffread.c (xcoff_symfile_offsets): Ditto.
1744 * symfile.c (default_symfile_offsets): Ditto.
1745 (syms_from_objfile): The sym_offsets function has already set section
1746 offsets and no longer returns a value.
1747
1748 * xcoffread.c (scan_xcoff_symtab): Eliminate section_offsets passed
1749 separate from objfile.
1750 (xcoff_start_psymtab): Ditto.
1751 (START_PSYMTAB): Ditto.
1752 * os9kread.c (read_minimal_symbols): Ditto.
1753 (read_os9k_psymtab): Ditto.
1754 (os9k_start_psymtab): Ditto.
1755 (record_minimal_symbol): Ditto.
1756 * dbxread.c (START_PSYMTAB): Ditto.
1757 (start_psymtab): Ditto.
1758 * mdebugread.c (START_PSYMTAB): Ditto.
1759 (elfmdebug_build_psymtabs): Ditto.
1760 (mdebug_build_psymtabs): Ditto.
1761 (parse_partial_symbols): Ditto.
1762 (new_psymtab): Ditto.
1763 * dwarfread.c (dwarf_build_psymtabs): Ditto.
1764 * partial-stab.h (START_PSYMTAB): Ditto.
1765 * stabsread.h (start_psymtab): Ditto.
1766 * dwarf2read.c (dwarf2_build_psymtabs): Ditto.
1767 (dwarf2_build_psymtabs_easy): Ditto.
1768 (dwarf2_build_psymtabs_hard): Ditto.
1769 * hp-psymtab-read.c (hpread_build_psymtabs): Ditto.
1770 (hpread_quick_traverse): Ditto.
1771 (hpread_start_psymtab): Ditto.
1772 (scan_procs): Ditto.
1773 * hpread.c (hpread_build_psymtabs): Ditto.
1774 * symfile.h (dwarf2_build_psymtabs): Ditto.
1775
1776 * dbxread.c (read_dbx_symtab): Use ANOFFSET to access section
1777 offsets.
1778 * coffread.c (enter_linenos): Pass objfile instead of section
1779 offsets.
1780
1781 * dbxread.c (dbx_symfile_read): No need to explicitly pass
1782 text addr and size. Let read_dbx_symtab find them.
1783 (read_dbx_symtab): Get text addr and size from objfile.
1784 (dbx_symfile_read): Remove dead code (call to strlen);
1785
1786 1999-08-31 Michael Snyder <msnyder@cleaver.cygnus.com>
1787
1788 * Makefile.in: add rule for sol-thread.o.
1789 Add rule for linux-thread.o.
1790
1791 1999-08-13 Jim Kingdon <kingdon@redhat.com>
1792
1793 Threads code from gdb 4.18-codefusion-990706
1794 [Thanks to Eric Paire, H. J. Lu, Jim Blandy and others]
1795 * infrun.c (signal_stop_update, signal_print_update,
1796 signal_pass_update): new functions.
1797 * inferior.h: new prototypes for above functions.
1798 * target.h (enum strata): add thread stratum.
1799 * linux-thread.c: new file. Support for debugging linux threads.
1800 * config/i386/nm-linux.h: several new prototypes for above.
1801 * config/i386/linux.mh: add linux-thread.o to NATDEPFILES.
1802
1803 More threads code from the same place:
1804 * config/i386/tm-linux.h (REALTIME_LO, REALTIME_HI): Add
1805 definitions.
1806 * target.h (enum target_signal): Add TARGET_SIGNAL_REALTIME_32.
1807 * target.c (signals, target_signal_from_host,
1808 target_signal_to_host): Add clauses for
1809 TARGET_SIGNAL_REALTIME_32.
1810
1811 1999-08-31 Neil Schellenberger <neil.schellenberger@crosskeys.com>
1812
1813 * sol-thread.c (sol_thread_detach): strip thread-id out of
1814 inferior_pid, so that procfs_detach can't choke on it.
1815
1816 1999-08-31 J.T. Conklin <jtc@redback.com>
1817
1818 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
1819 sparcl-stub.c, sparclet-stub.c (getpacket): Remove 'buffer' arg,
1820 define it as a pointer to &remcomInBuffer[0].
1821 (handle_exception): Update.
1822
1823 * sparc-stub.c, sparcl-stub.c, sparclet-stub.c (handle_exception):
1824 Removed #ifdef'd out code which implements the non-standard 'b'
1825 (set baud rate) command.
1826
1827 1999-08-31 Stan Shebs <shebs@andros.cygnus.com>
1828
1829 * infrun.c (keep_going): New function, broken out from the
1830 keep_going label in handle_inferior_event.
1831 (handle_inferior_event): Change more gotos into function calls.
1832
1833 Tue Aug 31 02:29:27 1999 Jeffrey A Law (law@cygnus.com)
1834
1835 * hppa-tdep.c (read_unwind_info): Handle multiple unwind sections.
1836
1837 Tue Aug 31 15:28:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
1838
1839 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Fix printf
1840 format argument.
1841 * alpha-tdep.c (heuristic_proc_start): Ditto.
1842
1843 From Stan Shebs <shebs@andros.cygnus.com>:
1844 * defs.h (strlen_paddr): Fix prototype - add void argument list.
1845
1846 Tue Aug 31 14:02:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
1847
1848 * defs.h (gdb_print_host_address), utils.c
1849 (gdb_print_host_address): Rename gdb_print_address.
1850
1851 * expprint.c, gdbtypes.c, symmisc.c: Update.
1852
1853 *expprint.c: Use gdb_print_host_address when displaying native
1854 pointers.
1855
1856 Sat Aug 28 14:23:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
1857
1858 * scm-valprint.c (scm_ipruk), jv-valprint.c (java_value_print),
1859 cp-valprint.c (cp_print_class_member), exec.c (exec_files_info),
1860 remote.c (putpkt_binary, compare_sections_command,
1861 remote_cisco_section_offsets), dcache.c (dcache_info),
1862 breakpoint.c (break_at_finish_at_depth_command_1,
1863 break_at_finish_command_1), symfile.c (generic_load),
1864 (report_transfer_performance), top.c (get_prompt_1), f-valprint.c
1865 (f_val_print), maint.c (maintenance_translate_address): Fix printf
1866 -Wformat warnings. Use paddr, paddr_nz, sizeof_paddr, paddr_u and
1867 paddr_d to print addresses. Change ``d'' to ``ld''.
1868
1869 * utils.c (strlen_paddr): New function.
1870
1871 Tue Aug 31 01:36:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
1872
1873 * config/d30v/tm-d30v.h (d30v_frame_chain,
1874 d30v_init_frame_pc): Add declaration.
1875
1876 * arc-tdep.c (arc_pop_frame): Rename pop_frame.
1877 (arc_push_dummy_frame): Rename push_dummy_frame.
1878 (arc_set_cpu_type_command): Add declaration.
1879
1880 * config/arc/tm-arc.h (arc_pop_frame, arc_push_dummy_frame): Add
1881 declaration.
1882
1883 1999-08-30 Stan Shebs <shebs@andros.cygnus.com>
1884
1885 * infrun.c (prepare_to_wait): New function, broken out from the
1886 wfi_continue label in handle_inferior_event.
1887 (handle_inferior_event): Change more gotos into function calls.
1888
1889 1999-08-30 Michael Snyder <msnyder@cleaver.cygnus.com>
1890
1891 * tracepoint.c: -Wall warning cleanup.
1892 (parse_and_eval_memrange): remove (unused).
1893 (output_command, args_info, locals_info, registers_info): add decls.
1894 (getpkt, putpkt, remote_console_output): add decls.
1895 (isalnum, isspace): cast arg to avoid warning.
1896 (printf, fprintf, sprintf): use [fs]printf_vma for printing addrs.
1897
1898 Mon Aug 30 21:47:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
1899
1900 * d10v-tdep.c: #include "language.h".
1901
1902 Mon Aug 30 20:38:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
1903
1904 * configure.in (AC_CHECK_HEADERS): Check for <time.h>.
1905 * configure, acconfig.in: Re-generate.
1906
1907 * remote-rdp.c: #include <time.h>
1908
1909 * config/arm/tm-arm.h (arm_float_info): Add declaration.
1910
1911 * arm-tdep.c (convert_from_extended, convert_to_extended): Change
1912 double ptr arg to void ptr arg.
1913
1914 * config/arm/tm-arm.h (arm_frameless_function_invocation): Add
1915 declaration.
1916 (arm_frame_find_saved_regs): Rename frame_find_saved_regs.
1917 (convert_from_extended, convert_to_extended): Add declaration.
1918
1919 Mon Aug 30 19:05:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
1920
1921 * configure.in (WERR_CFLAGS): Separate the -Werror flag.
1922 * configure: Re-generate.
1923
1924 * Makefile.in (INTERNAL_CFLAGS): Re-define using
1925 INTERNAL_WARN_CFLAGS.
1926 (INTERNAL_WARN_CFLAGS): Define. Leave off WERR_CFLAGS.
1927 (tracepoint.o): Add explicit rule.
1928 (WERR_CFLAGS): Add definition.
1929
1930 Mon Aug 30 17:52:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
1931
1932 * utils.c: #include "event-loop.h" for declaration of
1933 async_request_quit.
1934 * Makefile.in (utils.o): Add dependency on event-loop.h.
1935
1936 * event-top.c (mark_async_signal_handler_wrapper,
1937 async_request_quit): Move declaration from here.
1938 * event-loop.h: To here.
1939
1940 * defs.h: Add declaration of exec.c:exec_set_section_offsets.
1941
1942 * event-top.c: #include "gdbcmd.h" which includes "command.h" and
1943 hence expose declaration of function dont_repeat.
1944
1945 * top.c (ISATTY), tracepoint.c (ISATTY), utils.c (ISATTY),
1946 event-top.c (ISATTY): Move definitions from here.
1947 * defs.h (ISATTY): To here. #include <unistd.h>.
1948
1949 * sol-thread.c, solib.c, source.c, sparcl-tdep.c, tracepoint.c,
1950 utils.c, win32-nat.c, wince.c, top.c, symfile.c, ser-unix.c,
1951 ser-tcp.c, procfs.c, maint.c, infttrace.c, hppa-tdep.c,
1952 ser-pipe.c, remote-rdp.c, main.c, inftarg.c, inflow.c,
1953 hpux-thread.c, hp-psymtab-read.c, go32-nat.c, fork-child.c,
1954 corelow.c, command.c: Do not #include <unistd.h>, moved to defs.h.
1955
1956 Mon Aug 30 15:14:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
1957
1958 * defs.h (struct tui_stream, enum streamtype): Move from here.
1959 * utils.c: To here.
1960
1961 * main.c (tui_file_fputs): Move from here.
1962 * utils.c: To here.
1963
1964 Sun Aug 29 10:03:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
1965
1966 * gdb-events.h, gdb-events.c, gdb-events.sh: New files.
1967
1968 1999-08-27 Michael Snyder <msnyder@cleaver.cygnus.com>
1969
1970 * solib.c (open_symbol_file_object): new function.
1971 Called when attaching to a new process, if there is no loaded
1972 symbol file. Attempts to locate the executable file for the
1973 attached process and load symbols from it.
1974 (solib_add): Call open_symbol_file_object if attaching to a
1975 new process and no open symbol file.
1976
1977 1999-08-27 Jason Molenda (jsm@bugshack.cygnus.com)
1978
1979 * config/i386/tm-sun386.h (GDB_TARGET_IS_SUN386): Definition
1980 removed--no longer checked anywhere in gdb.
1981
1982 1999-08-27 Stan Shebs <shebs@andros.cygnus.com>
1983
1984 * infrun.c (stop_stepping): New function, broken out from
1985 stop_stepping label in handle_inferior_event.
1986 (handle_inferior_event): Change gotos into function calls.
1987
1988 Fri Aug 27 20:13:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
1989
1990 * defs.h (LONGEST): Move definition to earlier in file - to just
1991 after BFD.
1992 (paddr_u, paddr_d): Declare.
1993 * utils.c (decimal2str): New function.
1994 (paddr_u, paddr_d): Define.
1995
1996 * remote.c (remote_cisco_section_offsets,
1997 compare_sections_command): Fix XprintfX arguments. Use paddr...
1998 (putpkt_binary): Fix XprintfX arguments.
1999
2000 Tue Aug 24 21:30:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
2001
2002 * arm-tdep.c (arm_init_extra_frame_info): Add braces. Recommended
2003 by gcc -Wparentheses.
2004
2005 1999-08-26 Stan Shebs <shebs@andros.cygnus.com>
2006
2007 * infrun.c (check_sigtramp2): New function, broken out from
2008 check_sigtramp2 label in handle_inferior_event.
2009 (handle_inferior_event): Change gotos into function calls.
2010
2011 Declare Tahoe configuration obsolete.
2012 * configure.host, configure.tgt: Comment out Tahoe configs.
2013 * Makefile.in: Comment out Tahoe-related action.
2014 * tahoe-tdep.c, config/tahoe/*: Comment out.
2015 * NEWS: Mention obsolete status.
2016
2017 1999-08-26 J.T. Conklin <jtc@redback.com>
2018
2019 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sh-stub.c,
2020 sparc-stub, sparcl-stub.c sparclet-stub.c (getpacket): If '$',
2021 the packet start character is received in the 'middle' of a
2022 packet, assume that packet end character has been lost and
2023 start a new packet.
2024
2025 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
2026 sparcl-stub.c sparclet-stub.c (getpacket): Changed to return ptr
2027 to first character of input buffer. Removed & 0x7f masks.
2028 (handle_exception): Don't access remcomInBuffer directly.
2029
2030 1999-08-25 Stan Shebs <shebs@andros.cygnus.com>
2031
2032 * breakpoint.c (disable_breakpoints_in_shlibs): Only disable
2033 enabled breakpoints.
2034
2035 Tue Aug 24 14:59:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
2036
2037 * tracepoint.c, remote.c, pa64solib.h, value.h, somsolib.h,
2038 solib.h, scm-lang.h, language.h, inferior.h, defs.h, coff-solib.h,
2039 ch-lang.h, breakpoint.h, annotate.h: Remove #if __STDC__ wrapping
2040 struct declarations.
2041
2042 * config/sparc/nm-sun4sol2.h, config/mn10300/tm-mn10300.h,
2043 config/mn10200/tm-mn10200.h, config/i386/tm-i386.h,
2044 config/i386/tm-i386v.h, config/i386/nm-i386sol2.h,
2045 config/pa/nm-hppah.h, config/rs6000/nm-rs6000.h,
2046 config/sparc/tm-sp64.h, config/v850/tm-v850.h,
2047 config/tic80/tm-tic80.h, config/sparc/tm-sparc.h,
2048 config/sh/tm-sh.h, config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
2049 config/mips/tm-mips.h, config/m68k/tm-m68k.h,
2050 config/m32r/tm-m32r.h, config/i960/tm-mon960.h,
2051 config/fr30/tm-fr30.h, config/h8300/tm-h8300.h,
2052 config/arm/tm-arm.h, config/alpha/tm-alpha.h,
2053 config/a29k/tm-a29k.h: Ditto.
2054
2055 Wed Aug 25 10:45:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
2056
2057 * Makefile.in (gdb$(EXEEXT)): Add dependency on TDEPLIBS.
2058
2059 * config/arm/arm.mt (TDEPLIBS): Define. Move libangsd.a to here.
2060 (TDEPFILES): From here.
2061
2062 1999-08-24 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2063
2064 * top.c (init_main): Add new set/show command exec-done-display,
2065 default value is off.
2066 * event-loop.h: Export exec_done_display_p.
2067 * event-top.c: New variable exec_done_display_p.
2068 * infrun.c (complete_execution): Print completion message if
2069 corresponding flag is set.
2070
2071 * top.c (DEFAULT_PROMPT): Add space after "(gdb)" at end of prompt.
2072
2073 From: J.T. Conklin <jtc@redback.com>
2074 * top.c (DEFAULT_PROMPT): Set to "(gdb)" if not already defined.
2075 (init_main): Always use DEFAULT_PROMPT.
2076
2077 Tue Aug 24 03:23:31 1999 Jeffrey A Law (law@cygnus.com)
2078
2079 * hppa-tdep.c: Remove useless "purecov: deadcode" comments.
2080 (hppa_use_struct_convention): Update for PA64.
2081 (hppa_frame_saved_pc): Properly extract the saved PC in a call
2082 dummy frame.
2083 (in_solib_call_trampoline): Return nonzero if we are in a function
2084 called ".stub".
2085 (prologue_inst_adjust_sp): Handle std,ma.
2086 (skip_prologue_hard_way): Handle more PA2.0/PA64 insns.
2087 (hppa_frame_find_saved_regs): Similarly. Handle indirect save of
2088 %r3 into the stack.
2089
2090 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Define.
2091 (CALL_DUMMY_BREAKPOINT_OFFSET): Define.
2092
2093 Tue Aug 24 14:59:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
2094
2095 * Makefile.in (gdb$(EXEEXT)): Add dependency on main.o that was
2096 lost when libgdb.a was added.
2097
2098 Tue Aug 24 14:26:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
2099
2100 * gdbarch.c, gdbarch.h: Convert to pure ISO-C.
2101
2102 * gdbarch.sh: New file.
2103 * gdbarch.c, gdbarch.h: Add note describing gdbarch.sh
2104
2105 Mon Aug 23 19:36:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
2106
2107 * Makefile.in (libgdb.a): New target.
2108 (gdb$(EXEEXT)): Add dependency on libgdb.a.
2109 (libgdb-files, LIBGDB_OBS, libgdb, LIBGDBDEPS, LIBGDBFILES): Delete.
2110
2111 Mon Aug 23 10:16:32 1999 Jeffrey A Law (law@cygnus.com)
2112
2113 * infttrate.c (child_pid_to_exec_file): Find the correct base
2114 of the stack for PA64.
2115
2116 * pa64solib.c: Fix some minor whitespace problems.
2117 (bfd_lookup_symbol): New function.
2118 (pa64_solib_create_inferior_hook): Find the address __dld_break
2119 in the dynamic linker. Try to set a shlib event breakpoint in
2120 that function.
2121 (add_to_solist): Do not add the same shared library to the shlib
2122 list more than once.
2123
2124 Sun Aug 22 14:49:40 1999 Andrew Cagney <cagney@b1.cygnus.com>
2125
2126 * value.h (enum lval_type): Move declaration from here.
2127 * defs.h (enum lval_type): To here.
2128 * frame.h, gdbarch.h: Delete incomplete declaration of ``enum
2129 lval_type''.
2130
2131 1999-08-20 Michael Snyder <msnyder@cleaver.cygnus.com>
2132
2133 * breakpoint.c (can_use_hardware_watchpoint): reject expressions
2134 that refer to registers or register variables.
2135
2136 Fri Aug 20 10:53:38 1999 Jeffrey A Law (law@cygnus.com)
2137
2138 * hppa-tdep.c (hppa_fix_call_dummy): Provide PA2.0W aware code.
2139
2140 * pa64solib.c pa64solib.h: New files.
2141
2142 * config/pa/hppa64.mt: Delete commented out code that is and
2143 never will be appropriate for this target.
2144 * config/pa/hpux11w.mt (TDEPFILES): Remove SOM references. Also
2145 remove pa64solib.o.
2146 * config/pa/hpux11w.mh (NATDEPFILES): Remove SOM references.
2147
2148 * configure.host; Use "hpux11w" and "hpux11" instead of
2149 "hpux1100w" and "hpux1100" respectively
2150 * config/pa/hpux11w.mh: Renamed from hpux1100w.mh.
2151 * config/pa/hpux11w.mt, config/pa/hpux11.mh: Likewise.
2152 * config/pa/hpux11.mt: Likewise.
2153
2154 1999-08-19 Michael Snyder <msnyder@cleaver.cygnus.com>
2155
2156 * breakpoint.h (target_hw_bp_type): new enum.
2157 * breakpoint.c (insert_breakpoints): use enum instead of consts.
2158 (remove_breakpoint): use enum instead of consts.
2159 (throughout): use "warning" instead of "fprintf(stderr, ..."
2160 [Also clean up a bunch of excessively long lines.]
2161
2162 1999-08-19 J.T. Conklin <jtc@redback.com>
2163
2164 * i386-stub.c (waitabit): Removed.
2165 (breakpoint): Update.
2166
2167 * i386-stub.c, m32r-stub.c, sparc-stub.c, sparcl-stub.c,
2168 sparclet-stub.c (set_debug_traps): Don't send gratuitous ACK.
2169
2170 * m68k-stub.c (putpacket): Restore code so that packets are sent
2171 until an ACK is received.
2172
2173 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
2174
2175 * breakpoint.c (bpstat_stop_status): Accept triggered addresses
2176 anywhere inside the region occupied by a watched variable as a
2177 sign that the watchpoint fired. Don't stop if some watchpoint
2178 was triggered, but its address doesn't match the address of this
2179 watchpoint.
2180 (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New macro.
2181 Default definition is to call TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT.
2182 (can_use_hardware_watchpoint): Call TARGET_REGION_OK_FOR_HW_WATCHPOINT;
2183 if it returns zero, return zero immediately.
2184 (insert_breakpoints): Try to insert watchpoints for all the values
2185 on the value chain, even if some of them fail to insert. Remove
2186 the breakpoint if parts of its value chain couldn't be inserted.
2187
2188 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
2189
2190 * go32-nat.c (go32_stopped_by_watchpoint): Remove unused code.
2191
2192 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
2193
2194 * go32-nat.c (tcgetpgrp, tcsetpgrp): New functions.
2195
2196 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
2197
2198 * go32-nat.c (go32_wait): If we are in a single-step mode, and the
2199 next instruction is INT nn or INTO, use a temporary breakpoint to
2200 simulate single-step mode, and reset the trace flag.
2201
2202 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
2203
2204 * go32-nat.c (wp_op): New typedef.
2205 (SHOW_DR): Print the length of watched region as well.
2206 (go32_insert_aligned_watchpoint): Remove unused argument PID. All
2207 callers and the prototype changed.
2208 (go32_handle_nonaligned_watchpoint): Renamed from
2209 go32_insert_nonaligned_watchpoint. Now handles all operations on
2210 non-aligned watchpoints: insertion, deletion, and counting. If
2211 called with wp_count as the first argument, return the count of
2212 debug registers needed to watch the region. Don't break out of
2213 the loop before all the addresses in the region are processed.
2214 (go32_remove_watchpoint): Call go32_remove_aligned_watchpoint to
2215 do the actual work.
2216 (go32_remove_aligned_watchpoint): New function, modeled after
2217 go32_insert_aligned_watchpoint. Removes watchpoints that watch
2218 regions of arbitrary length by calling
2219 go32_handle_nonaligned_watchpoint as needed.
2220 (go32_region_ok_for_watchpoint): New function, called from
2221 can_use_hardware_watchpoint via the new macro
2222 TARGET_REGION_OK_FOR_HW_WATCHPOINT.
2223
2224 * config/i386/nm-go32.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
2225 Define to call go32_region_ok_for_watchpoint.
2226 (DECR_PC_AFTER_HW_BREAK): Define back to zero (previous redefinition
2227 to 1 was due to a bug in go32-nat.c).
2228
2229 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
2230
2231 * go32-nat.c (cleanup_dregs): New function.
2232 (go32_mourn_inferior): Call it.
2233 (IS_REG_FREE, LOCAL_ENABLE_REG, GLOBAL_ENABLE_REG, DISABLE_REG,
2234 SET_BREAK, SET_WATCH, IS_WATCH, WATCH_HIT): Protect arguments with
2235 parentheses.
2236 (SET_BREAK): Increment the debug register's reference count.
2237 (DR_DEF): New macro, returns the access and length bits of the
2238 breakpoint.
2239 (SHOW_DR): Print the reference count of each register. Disable or
2240 enable print-out depending on an environment variable GDB_SHOW_DR.
2241 (go32_insert_aligned_watchpoint): Look for an occupied debug
2242 register with the same address and access/length bits, and reuse
2243 it by incrementing reference the count, before occupying another
2244 register. Return zero upon success.
2245 (go32_insert_nonaligned_watchpoint): Pass the read/write bits to
2246 go32_remove_watchpoint.
2247 (go32_remove_watchpoint): Accept an additional parameter: the
2248 read/write bits of the watchpoint to remove, and only remove a
2249 watchpoint if it's occupied and its address and read/write bits
2250 match. Only disable the register if its reference count is zero;
2251 otherwise just decrease the reference count.
2252 (go32_remove_hw_breakpoint): Only decrease reference count and
2253 disable the debug register if it is occupied and its access bits
2254 match those of an instruction breakpoint.
2255 (go32_insert_hw_breakpoint): Before occupying another debug
2256 register, look for an already occupied register that defines an
2257 instruction breakpoint with the same address. If found, increment
2258 its reference count. Call SHOW_DR even if failed to insert a
2259 breakpoint.
2260
2261 * config/i386/nm-go32.h (target_remove_watchpoint): Accept the
2262 TYPE argument as well.
2263
2264 Wed Aug 18 17:47:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
2265
2266 * mips-tdep.c: Add more comments.
2267
2268 1999-08-17 Stan Shebs <shebs@andros.cygnus.com>
2269
2270 * blockframe.c: Don't use PARAMS anymore, remove obsolete comment
2271 about frameless functions.
2272
2273 1999-08-16 Michael Snyder <msnyder@cleaver.cygnus.com>
2274
2275 * thread.c (delete_thread): delete any step_resume breakpoint
2276 held by the thread. (prune_threads): call delete_thread.
2277 * breakpoint.c (breakpoint_init_inferior): if startup, then
2278 delete any remaining step_resume breakpoints.
2279 * infrun.c (handle_inferior_event): add cautionary comment.
2280
2281 1999-08-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
2282
2283 * remote.c (remote_async_mourn): New function. Async version of
2284 remote_mourn().
2285
2286 1999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
2287
2288 * terminal.h [__GO32__]: Remove conditional; DJGPP now supports
2289 termios.
2290
2291 1999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
2292
2293 * command.c (CANT_FORK) [__MSDOS__]: Define.
2294 (shell_escape) [CANT_FORK]: If ARG is NULL, pass an empty string
2295 to `system'.
2296 [__DJGPP__]: Return to the original directory after the shell
2297 exits.
2298
2299 1999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
2300
2301 * config/i386/xm-go32.h (ROOTED_P): Don't reference X[1] if X[0]
2302 is a null character.
2303
2304 * config/i386/nm-go32.h (DECR_PC_AFTER_HW_BREAK): Define to 1.
2305
2306 1999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
2307
2308 * go32-nat.c (redir_cmdline_parse, redir_cmdline_delete,
2309 redir_to_child, redir_to_debugger, redir_debug_init)
2310 [__DJGPP_MINOR__ < 3]: Dummy stubs for redirecting debuggee's
2311 standard handles.
2312 (print_387_status): Print "last FP instruction", not "last
2313 exception". Restore the upper 5 bits of the opcode that aren't
2314 stored in the FPU state. Print the FPU stack in its physical
2315 order, not relative to ST(0). Print "special", not "trap" for
2316 unnormals and infinities. Print all 10 bytes of each FP register,
2317 and print them with 19 significant digits.
2318 (regno_mapping): Make the mapping consistent with tm-go32.h.
2319 (sig_map): Add mappings for SIGQUIT, SIGFPE, SIGALRM. Map NMI to
2320 SIGBUS.
2321 (excep_map): New variable, maps GDB signals to DJGPP exceptions.
2322 (go32_attach): Signal an error: we cannot attach to other
2323 processes.
2324 (go32_resume): Record the signal with which the inferior should be
2325 resumed, mapped to the DJGPP exception number.
2326 (go32_wait): Pass the signal recorded in go32_resume to the
2327 debuggee. Save and restore debugger's and debuggee's current
2328 working directory.
2329 [__DJGPP_MINOR__ < 3]: Save and restore inferior's FPU state.
2330 (store_register): FPU regsiters have numbers less than 31.
2331 (go32_kill_inferior): Delete the parsed command-line storage.
2332 (go32_create_inferior): Initialize the parsed command-line
2333 storage. Parse the command line and create the redirections for
2334 inferior's standard handles.
2335 [__DJGPP_MINOR__ < 3]: Init the inferior's FPU state.
2336 (ignore2): Function deleted.
2337 (device_mode): New function, switches a character device between
2338 raw and cooked mode.
2339 (go32_terminal_init): Invalidate the raw/cooked mode information.
2340 (go32_terminal_info): Print whether the inferior's terminal is in
2341 raw or cooked mode.
2342 [__DJGPP_MINOR__ > 2]: Say if standard handles are redirected or
2343 closed by the inferior.
2344 (go32_terminal_inferior): Switch standard handles to the
2345 inferior's files/devices. Put the inferior's input device to
2346 raw/cooked mode, exactly like we found it last time.
2347 (go32_terminal_ours): Restore debugger's standard handles and put
2348 the terminal into cooked mode. Save the mode of inferior's input
2349 device.
2350 (init_go32_ops): Assign go32_ops.to_attach,
2351 go32_ops.to_terminal_info, go32_ops.to_terminal_ours_for_output.
2352 Initialize inferior's cwd and the command-line storage.
2353
2354 Mon Aug 16 14:29:30 1999 Jeffrey A Law (law@cygnus.com)
2355
2356 * config/pa/tm-hppa.h (ARGS_GROW_DOWNWARD): Define.
2357 * config/pa/tm-hppa64.h (ARGS_GROW_DOWNWARD): Undefine.
2358 * hppa-tdep.c (hppa_push_arguments): Handle arguments growing in
2359 both directions depending ARGS_GROW_DOWNWARD.
2360 (hppa_find_saved_regs): Update for 64bit wide registers & pointers
2361 and PA64 ABI.
2362
2363 * hppa-tdep.c (hppa_pop_frame): Various fixes for 64bit wide
2364 registers and pointers.
2365 (hppa_fix_call_dummy, skip_trampoline_code): Likewise.
2366 (restore_pc_queue): Update tests for width of memory loads.
2367 (hppa_push_arguments): Delete version that was #if 0'd out.
2368
2369 * hppa-tdep.c (push_dummy_frame): Handle the new 64it ABI.
2370 (find_dummy_frame_regs): Corresponding changes.
2371
2372 * hppa-tdep.c (read_unwind_info): Initialize obj_private->dp.
2373 (internalize_unwinds): Improve test for when to use segment
2374 relative code for unwinder bounds.
2375 (rp_saved): Fix offset of saved return pointer for the 64bit ABI.
2376 (hppa_frame_saved_pc): Various updates to handle 64bit registers
2377 and pointers.
2378 (frame_chain, restore_pc_queue): Likewise.
2379
2380 * hppa-tdep.c (rp_saved): RP is saved at frame-16 when
2381 pointers are 64bits wide.
2382
2383 * hppa-tdep.c (record_text_segment_lowaddr): New function.
2384 (internalize_unwinds): Use it if addressess are 8 bytes wide.
2385
2386 * symfile.c (syms_from_objfile): No longer warn if the lowest
2387 section does not have SEC_CODE set.
2388
2389 * Makefile.in (pa64solib.o): Add dependencies.
2390
2391 * hppah-nat.c (store_inferior_registers): Do not try to write a
2392 nonzero value to the high part of IPSW. Fix typo in unable to store
2393 warning.
2394
2395 * config/pa/tm-hppa.h (opd_data structure): Delete. Not actually
2396 needed.
2397 (struct obj_private_struct): Add new entry for the objfile's DP
2398 value.
2399 * config/pa/tm-hppa64.h (CALL_DUMMY): Add a nop to make it an even
2400 number of instructions. Pack the dummy into word sized hunks.
2401 (CALL_DUMMY_LENGTH): Update appropriately.
2402 (PC_IN_CALL_DUMMY, CALL_DUMMY_LOCATION_AFTER_TEXT_END): Delete.
2403
2404 Mon Aug 16 19:08:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
2405
2406 * configure.in: Try -lsocket when looking for socketpair.
2407 * configure, config.h: Re-generate.
2408
2409 1999-08-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2410
2411 From Christopher Faylor <cgf@cygnus.com>:
2412
2413 * event-loop.c (gdb_wait_for_event): Before going to wait for
2414 another event with select or poll, flush the error and the output
2415 streams.
2416
2417 * event-top.c (gdb_readline2): Do not buffer the input, because
2418 doing so can interfere with select/poll in bad ways.
2419
2420 Fri Aug 13 17:36:56 1999 Eli Zaretskii <eliz@is.elta.co.il>
2421
2422 * maint.c (maintenance_dump_me) [__DJGPP__]: Simulate a core dump
2423 with SIGABRT.
2424 * utils.c (quit) [__MSDOS__]: Don't mention SIGINT, since it's not
2425 gonna happen.
2426 (notice_quit): No need to define this function for the DJGPP port.
2427
2428 1999-08-13 James Ingham <jingham@leda.cygnus.com>
2429
2430 * arm-tdep.c (arm_frameless_function_invocation): SKIP_PROLOGUE
2431 macro no longer modifies its argument. Update uses to accord.
2432
2433 * config/arm/arm.mt (TDEPFILES): Add the remote-rdi.o to the
2434 TDEPFILES.
2435 * configure.tgt: Add rdi-share to configdir for the Arm targets.
2436
2437 Fri Aug 13 11:16:32 1999 Jeffrey A Law (law@cygnus.com)
2438
2439 * hppah-nat.c (store_inferior_registers): Revamp to be PA2.0W
2440 aware.
2441
2442 * infttrace.c (ttrace_write_reg_64): New function.
2443
2444 * hp-symtab-read.c (is_in_import_list): Delete extern declaration.
2445 * somread.c (is_in_import_list): Delete function.
2446 * objfiles.c (is_in_import_list): New function.
2447 * objfiles.h (is_in_import_list): Declare.
2448
2449 * config/pa/tm-hppa64.h (GDB_TARGET_IS_HPPA20W): Define before
2450 including tm-hppah.h.
2451 (PC_IN_CALL_DUMMY): Define.
2452 (HPUX_1100): Similarly.
2453 * config/pa/tm-hppa.h (somsolib.h, pa64solib.h): Conditionalize
2454 includes on GDB_TARGET_IS_HPPA20W.
2455
2456 * configure.host: Distinguish between wide and narrow modes
2457 for hpux11.
2458 * config/pa/hpux1100w.mh, config/pa/hpux1100w.mt: New files.
2459
2460 * config/pa/tm-hppa64.h (STACK_ALIGN): Redefine.
2461 (REG_PARM_STACK_SPACE): Likewise.
2462
2463 * config/pa/tm-hppa.h (CLEAN_UP_REGISTER_VALUE): Handle 64bit
2464 PA target correctly.
2465 (REG_PARM_STACK_SPACE): Define.
2466 (struct unwind_table_entry): region_start and region_end are
2467 CORE_ADDRs.
2468 (typedef opd_data): New.
2469 (obj_private_data_t): Include pointer to opd_data structure.
2470
2471 1999-08-13 Keith Seitz <keiths@cygnus.com>
2472
2473 * stabsread.c (stabsread_clear_cache): New funciton which clears
2474 an optimization cache of the reader.
2475
2476 * coffread.c (coff_symfile_finish): Give stabs reader a chance to
2477 clean up.
2478
2479 * win32-nat.c (handle_load_dll): Don't suppress re-reading symbols
2480 from a DLL if an objfile for it already exists. (Not that this should
2481 happen anymore anyway...)
2482
2483 1999-08-13 Keith Seitz <keiths@cygnus.com>
2484
2485 * config/mcore/tm-mcore.h (SAVE_DUMMY_FRAME_TOS): Define for MCore,
2486 which also requires that the stack pointer be saved for call
2487 dummies BEFORE arguments get pushed onto it.
2488
2489 1999-08-12 Stan Shebs <shebs@andros.cygnus.com>
2490
2491 From Eli Zaretskii <eliz@is.elta.co.il>:
2492 * source.c (mod_path) [_WIN32 || __DJGPP__]: Don't remove trailing
2493 slash from "d:/". Don't overstep the beginning of name.
2494 [_WIN32 || __MSDOS__]: Convert "d:" to "d:.", otherwise appending
2495 a slash changes its meaning.
2496 (openp): Use SLASH_P, not equality with SLASH_CHAR.
2497 (print_source_lines_base) [CRLF_SOURCE_FILES]: Skip \r only before
2498 a \n.
2499 (forward_search_command) [CRLF_SOURCE_FILES]: Remove \r at the end
2500 of all lines.
2501 (reverse_search_command) [CRLF_SOURCE_FILES]: Likewise.
2502
2503 * gnu-regex.c (CHAR_CLASS_MAX_LENGTH): Don't use wide characters
2504 unless HAVE_BTOWC is defined.
2505
2506 Fri Aug 13 10:20:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
2507
2508 From J.T. Conklin <jtc@redback.com>:
2509 * gdbinit.in: Change the template .gdbinit to match the recent
2510 fatal error handling change.
2511
2512 1999-08-11 Keith Seitz <keiths@cygnus.com>
2513
2514 * maint.c (maintenance_internal_error): Fix typo in prototype.
2515
2516 Wed Aug 11 15:38:05 1999 Andrew Cagney <cagney@amy.cygnus.com>
2517
2518 * remote.c (remote_rcmd): Pass an empty command across to the
2519 target. Check for and handle an ``Enn'' return status.
2520
2521 Tue Aug 10 13:59:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
2522
2523 * maint.c (_initialize_maint_cmds): Add ``maintenance
2524 internal-error'' command.
2525 (maintenance_internal_error): New function.
2526
2527 1999-08-10 James Ingham <jingham@leda.cygnus.com>
2528
2529 * top.c: Remove the disassembly_flavor_hook, use the new set_hook
2530 instead.
2531 * defs.h: Ditto.
2532 * arm-tdep.c (set_disassembly_flavor_sfunc): Ditto.
2533
2534 1999-08-10 Michael Snyder <msnyder@cleaver.cygnus.com>
2535
2536 * config/i386/nm-i386sol2.h (FIND_NEW_THREADS): remove, obsolete.
2537 * config/sparc/nm-sun4sol2.h (FIND_NEW_THREADS): remove, obsolete.
2538
2539 1999-08-10 J.T. Conklin <jtc@redback.com>
2540
2541 * configure.tgt (i[3456]86-*-aout*, i[3456]86-*-coff*,
2542 i[3456]86-*-elf*): Use embed.mt.
2543 * config/i386/embed.mt: New file.
2544
2545 1999-08-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2546
2547 * remote.c (remote_async_open_1): Remove casting in call to
2548 add_file_handler.
2549 (extended_remote_async_create_inferior): Ditto.
2550
2551 * event-top.c (change_line_handler): Ditto.
2552 (_initialize_event_loop): Ditto.
2553
2554 * infrun.c (complete_execution): Ditto.
2555
2556 * event-loop.c (add_file_handler): Change proc parameter to be ptr
2557 to func with void parameter, rather than void*. Coerce second
2558 paramter in calls to create_file_handler. Replace
2559 async_handler_func and file_handler_func with handler_func.
2560
2561 * event-loop.h: Get rid of typedefs for file_handler_func and
2562 async_handler_func, just have one, and call it handler_func.
2563 Replace async_handler_func and file_handler_func occurrences with
2564 handler_func.
2565
2566 Tue Aug 10 03:13:03 1999 Jeffrey A Law (law@cygnus.com)
2567
2568 * hppa-tdep.c: Delete random #if 0 code.
2569 (is_branch): Handle new branching opcodes from PA2.0
2570 (inst_saves_gr, inst_saves_fr): Handle additional instructions
2571 used to save general and floating point registers in the stack.
2572 (skip_prologue_hard_way): Handle additional instructions to
2573 save the return pointer in the stack.
2574 (after_prologue): Fix mis-guided and incorrect code to find
2575 the end of the prologue using debug symbols.
2576 (hppa_skip_prologue): Generally clean up comments, lose code
2577 which does not apply to the PA, etc.
2578
2579 Sun Aug 8 17:53:41 1999 Andrew Cagney <cagney@amy.cygnus.com>
2580
2581 * MAINTAINERS: Make Andrew Cagney the mn10300 maintainer.
2582 Transfer responsibility for the PowerPC from Andrew Cagney to
2583 Elena Zannoni.
2584
2585 Tue Aug 10 13:59:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
2586
2587 Based on code from J.T. Conklin <jtc@redback.com>:
2588 * utils.c (internal_error): Make quit? and coredump? separate
2589 questions so that the user can dump-core and not quit.
2590 (internal_error): Cleanup error message.
2591
2592 1999-08-09 Tom Tromey <tromey@cygnus.com>
2593
2594 * kod-cisco.c (cisco_kod_open): Removed incorrect `arg' argument.
2595
2596 Sun Aug 8 12:06:47 1999 Fred Fish <fnf@cygnus.com>
2597
2598 * coffread.c (process_coff_symbol): Remove section_offsets from
2599 prototype and function definition. Get section_offsets from the
2600 passed objfile and pass it on to callees the same way.
2601 (coff_symtab_read): Ditto.
2602 (coff_symfile_read): Ditto.
2603 * dbxread.c (read_dbx_dynamic_symtab): Ditto.
2604 (read_dbx_symtab): Ditto.
2605 (dbx_symfile_read): Ditto.
2606 (coffstab_build_psymtabs): Ditto.
2607 (elfstab_build_psymtabs): Ditto.
2608 (stabsect_build_psymtabs): Ditto.
2609 * dstread.c (dst_symfile_read): Ditto.
2610 * elfread.c (elf_symfile_read): Ditto.
2611 * jv-class.c (jv_class_symfile_read): Ditto.
2612 * mipsread.c (mipscoff_symfile_read): Ditto.
2613 * nlmread.c (nlm_symfile_read): Ditto.
2614 * os9kread.c (os9k_symfile_read): Ditto.
2615 * somread.c (som_symfile_read): Ditto.
2616 * stabsread.h (elfstab_build_psymtabs): Ditto.
2617 * xcoffread.c (xcoff_initial_scan): Ditto.
2618
2619 * symfile.h (sym_read): Remove section_offsets from prototype.
2620 * symfile.c (syms_from_objfile): Call sym_read without
2621 section_offsets.
2622 (reread_symbols): Ditto.
2623
2624 * elfread.c (elfstab_offset_sections): Use SIZEOF_SECTION_OFFSETS
2625 to allocate sections offsets array.
2626 * xcoffread.c (xcoff_symfile_offsets): Ditto.
2627
2628 * partial-stab.h (section_offsets): Get from objfile.
2629 * dbxread.c (read_dbx_symtab): Fix typo that made -1 casted
2630 to a CORE_ADDR look like an subtraction expression.
2631 * objfiles.h: Add some comments.
2632 * symfile.c: Add some comments.
2633 * objfiles.c: Add some comments.
2634 (objfile_relocated): Use ALL_OBJFILE_OSECTIONS to iterate over
2635 sections.
2636 (find_pc_sect_sections): Use ALL_OBJSECTIONS to iterate over all
2637 sections in all objfiles.
2638 * symfile.c (syms_from_objfile): Use ALL_OBJFILE_OSECTIONS.
2639
2640 * irix5-nat.c (symbol_add_stub): Fix typo that made taking the
2641 address of lowest_sect with '&' look like a bitwise and op.
2642 * osfsolib.c (symbol_add_stub): Ditto.
2643 * solib.c (symbol_add_stub): Ditto.
2644 * symfile.c (syms_from_objfile): Ditto.
2645
2646 * dwarf2read.c (dwarf2_build_psymtabs_hard): Minor format tweak.
2647 * symfile.c (syms_from_objfile): Ditto, and fix typo.
2648 * top.c (init_main): Fix typo in comment (DEFULAT_PROMPT).
2649 * doc/gdbint.texinfo (find_sym_fns): This replaces symfile_init.
2650
2651 1999-08-08 James Ingham <jingham@leda.cygnus.com>
2652
2653 * remote.c (remote_insert_breakpoint): Fix typo in Z packet support.
2654 Also move Z packet support OUTSIDE of REMOTE_BREAKPOINT ifdef,
2655 since this is not set for all targets that support the Z packet.
2656
2657 Fri Aug 6 17:17:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
2658
2659 * defs.h (fatal): Delete declaration.
2660 (internal_error): Declare.
2661 * utils.c (nomem): Call internal_error instead of fatal.
2662 (fatal_dump_core): Delete.
2663 (malloc_botch): Print message direct to stderr.
2664 (fatal): Delete definition.
2665 * utils.c (internal_error): Define.
2666
2667 * gdbarch.h, gdbarch.c, hppah-nat.c, ch-exp.c, dsrec.c, sh-tdep.c,
2668 infptrace.c, f-lang.c, symm-nat.c, top.c, m3-nat.c, v850-tdep.c,
2669 remote-vx.c, remote-sim.c, remote-mips.c, source.c, infcmd.c,
2670 findvar.c, remote.c: Replace fatal with call to internal_error.
2671
2672 Sun Aug 8 15:28:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
2673
2674 * ser-pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Move
2675 definition from here.
2676 * defs.h: To here.
2677
2678 Sat Aug 7 21:44:59 1999 Fred Fish <fnf@cygnus.com>
2679
2680 * remote.c (remote_insert_breakpoint): Fix typo, missing ';'.
2681
2682 Sun Aug 8 11:26:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
2683
2684 * mips-tdep.c (mips_gdbarch_init): Add break; to the default case.
2685
2686 Fri Aug 6 19:26:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
2687
2688 * defs.h: Delete #if ANSI_PROTOTYPES code, GDB assumes ISO-C.
2689 * remote-rdp.c (send_rdp), remote-os9k.c (printf_monitor),
2690 remote-mips.c: (mips_error), remote-array.c: (printf_monitor,
2691 debuglogs), complaints.c (complain), monitor.c:
2692 (monitor_printf_noecho, monitor_printf), language.c (type_error,
2693 range_error), remote-st.c: (printf_stdebug), remote-sim.c
2694 (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
2695 gdb_os_evprintf_filtered, gdb_os_error), serial.c (serial_printf),
2696 utils.c (warning, error, fatal, fatal_dump_core, (query,
2697 fprintf_filtered, fprintf_unfiltered, fprintfi_filtered,
2698 printf_filtered, printf_unfiltered, printfi_filtered): Delete
2699 legacy #ifndef ANSI_PROTOTYPES varargs code.
2700
2701 * defs.h: Don't #include <varargs.h>.
2702 * remote-rdp.c, remote-os9k.c, remote-mips.c, remote-array.c,
2703 monitor.c, remote-st.c: Don't include <varargs.h> or <stdarg.h>.
2704
2705 1999-08-06 James Ingham <jingham@leda.cygnus.com>
2706
2707 * configure.in, configure: add the --enable-multi-ice to determine
2708 whether to configure and build the multi-ice-gdb-server. Note,
2709 for now this only builds on cygwin, so don't enable it for other
2710 platforms...
2711
2712 1999-08-06 Tom Tromey <tromey@cygnus.com>
2713
2714 * Makefile.in (SFILES): Added kod.c and kod-cisco.c.
2715 (COMMON_OBS): Added kod.o and kod-cisco.o.
2716 (kod-cisco.o): New target.
2717 (kod.o): New target.
2718 * kod-cisco.c: New file.
2719 * kod.c: New file.
2720
2721 1999-08-06 James Ingham <jingham@leda.cygnus.com>
2722
2723 These are some fixups for the Arm, and support for the
2724 disassembly-flavor for the ARM.
2725
2726 * defs.h: Declare the disassembly_flavor_hook
2727 * top.c: Define the disassembly_flavor_hook
2728 * i386-tdep.c: Remove unnecessary declaration of the
2729 disassembly_flavor_hook.
2730
2731 * config/arm/tm-arm.h: Change definition of
2732 arm_init_extra_frame_info.
2733 Add a few more comments.
2734 * arm-tdep.c (arm_init_extra_frame_info): Listen to and use the
2735 fromleaf parameter passed into init_extra_frame_info.
2736 (set_disassembly_flavor_sfunc): New Function.
2737 (set_disassembly_flavor): New Function.
2738 (arm_othernames): Use the set_disassembly_flavor.
2739 (_initialize_arm_tdep): Setup the disassembly flavor commands, and
2740 initialize the flavor.
2741 (arm_frameless_function_invocation): Adjust for
2742 frameless functions that have 1 or 2 instructions that mimic the
2743 standard APCS form.
2744 (arm_scan_prologue): Be more careful about scanning the function
2745 prologue. Don't match things that just have a few of the prologue
2746 instructions out of order, and don't get thrown by the scheduler
2747 migrating instructions into the prologue.
2748
2749 Add support for the "Z" and "z" packets to request the stub
2750 to set a breakpoint.
2751
2752 * remote.c (set_remote_protocol_Z_packet_cmd): New function.
2753 (show_remote_protocol_Z_packet_cmd): New Function.
2754 (remote_open_1): Init the Z packet config.
2755 (remote_async_open_1): Init the Z packet config.
2756 (remote_insert_breakpoint): Use the "Z" packet if supported.
2757 (remote_remove_breakpoint): Use the "z" packet if supported.
2758 (remote_insert_watchpoint): New Function - currently wired to
2759 nothing.
2760 (remote_remove_watchpoint): Ditto.
2761 (remote_insert_hw_breakpoint): Ditto.
2762 (remote_remove_hw_breakpoint): Ditto.
2763
2764 1999-08-06 Stan Shebs <shebs@andros.cygnus.com>
2765
2766 * infcmd.c: Include parser-defs.h.
2767 (interrupt_target_command): Declare.
2768 (stack_dummy_testing): Remove old funky flag.
2769 (run_stack_dummy): Remove unused reference to old funky flag.
2770
2771 1999-08-06 Tom Tromey <tromey@cygnus.com>
2772
2773 * command.c (do_setshow_command): Call set_hook if not NULL.
2774 * top.c (set_hook): New hook definition.
2775 * defs.h (set_hook): Declare.
2776
2777 1999-08-05 Stan Shebs <shebs@andros.cygnus.com>
2778
2779 * infrun.c: Convert code to pure standard C, elim some warnings.
2780 (stopped_for_shlib_catchpoint): Remove, never used.
2781
2782 1999-08-05 Keith Seitz <keiths@cygnus.com>
2783
2784 * NEWS: Mention new Motorola MCore target.
2785
2786 * sparc-tdep.c (gdb_print_insn_sparc): Print insns of the current
2787 architecture.
2788
2789 Thu Aug 5 20:41:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
2790
2791 * configure.in (configdirs): Add check for socketpair.
2792 * configure, config.in: Re-generate.
2793
2794 From Mon Jul 19 10:46:18 1999 Philippe De Muyter <phdm@macqel.be>:
2795 * ser-pipe.c (sys/wait.h): Include this file only #if HAVE_SYS_WAIT_H.
2796 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Macros defined if needed.
2797
2798 Thu Aug 5 20:04:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
2799
2800 * target.c (debug_to_open, debug_to_attach, debug_to_post_attach,
2801 debug_to_require_attach, debug_to_detach, debug_to_require_detach,
2802 debug_to_wait, debug_to_post_wait, debug_to_fetch_registers,
2803 debug_to_store_registers, debug_to_prepare_to_store,
2804 debug_to_xfer_memory, debug_to_files_info,
2805 debug_to_insert_breakpoint, debug_to_remove_breakpoint,
2806 debug_to_terminal_init, debug_to_terminal_inferior,
2807 debug_to_terminal_ours_for_output, debug_to_terminal_ours,
2808 debug_to_terminal_info, debug_to_kill, debug_to_load,
2809 debug_to_lookup_symbol, debug_to_create_inferior,
2810 debug_to_post_startup_inferior,
2811 debug_to_acknowledge_created_inferior,
2812 debug_to_clone_and_follow_inferior,
2813 debug_to_post_follow_inferior_by_clone,
2814 debug_to_insert_fork_catchpoint, debug_to_remove_fork_catchpoint,
2815 debug_to_insert_vfork_catchpoint,
2816 debug_to_remove_vfork_catchpoint, debug_to_has_forked,
2817 debug_to_has_vforked, debug_to_can_follow_vfork_prior_to_exec,
2818 debug_to_post_follow_vfork, debug_to_insert_exec_catchpoint,
2819 debug_to_remove_exec_catchpoint, debug_to_has_execd,
2820 debug_to_reported_exec_events_per_exec_call,
2821 debug_to_has_syscall_event, debug_to_has_exited,
2822 debug_to_mourn_inferior, debug_to_can_run,
2823 debug_to_notice_signals, debug_to_thread_alive, debug_to_stop,
2824 debug_to_query, debug_to_rcmd, debug_to_enable_exception_callback,
2825 debug_to_get_current_exception_event, debug_to_pid_to_exec_file,
2826 debug_to_core_file_to_sym_file, debug_to_close): Send trace output
2827 to ``gdb_stdlog'' instead of ``gdb_stderr''.
2828
2829 Thu Aug 5 16:22:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
2830
2831 * remote.c (init_remote_ops): Initialize remote_ops.to_rcmd.
2832 (init_remote_async_ops): Initialize remote_async_ops.to_query.
2833 (remote_rcmd): New function.
2834
2835 * monitor.c (monitor_rcmd): Rename monitor_command.
2836 (init_base_monitor_ops): Initialize monitor_ops.to_rcmd.
2837 (_initialize_remote_monitors): Move "monitor" command from here.
2838 * target.c (initialize_targets): To here.
2839 (monitor_command): New function. Implement "monitor" command.
2840
2841 * target.c (cleanup_target): de_fault to_rcmd.
2842 (update_current_target): INHERIT to_rcmd.
2843 (debug_to_rcmd): New function.
2844 (setup_target_debug): Initialize current_target.to_rcmd.
2845
2846 * target.h (struct target_ops): Add field to_rcmd.
2847 (target_rcmd): Define.
2848
2849 Thu Aug 5 14:24:07 1999 Andrew Cagney <cagney@b1.cygnus.com>
2850
2851 * remote.c: Replace comment describing remote protocol with
2852 pointer to official document.
2853
2854 Thu Aug 5 11:59:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
2855
2856 * remote.c (remote_protocol_binary_download): New variable.
2857 Replace ``remote_binary_download'' and ``remote_binary_checked''.
2858 (set_remote_protocol_binary_download_cmd,
2859 show_remote_protocol_binary_download_cmd): New functions.
2860 (remote_open_1, remote_async_open_1, remote_cisco_open):
2861 Initialize ``remote_protocol_binary_download'' instead of
2862 ``remote_binary_download''.
2863 (check_binary_download): Re-write.
2864 (remote_write_bytes): Ditto.
2865 (_initialize_remote): Add ``set remote X-packet'' and ``show
2866 remote X-packet'' commands. Disable old ``set
2867 remotebinarydownload'' command.
2868
2869 1999-08-04 Keith Seitz <keiths@cygnus.com>
2870
2871 * remote-rdi.c (arm_rdi_close): Close the transport device, too.
2872
2873 Wed Aug 4 10:42:58 1999 Fred Fish <fnf@cygnus.com>
2874
2875 * xcoffread.c (scan_xcoff_symtab): Change main_aux into
2876 an array of 5 internal_auxent to leave room for bfd to
2877 write n_numaux entries. Change code to use the first one.
2878
2879 1999-08-02 Stan Shebs <shebs@andros.cygnus.com>
2880
2881 * c-valprint.c (c_val_print): When printing decimal equivalent
2882 of a char, cast appropriately.
2883
2884 1999-08-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2885
2886 From Jonathan Larmour <jlarmour@cygnus.co.uk>:
2887 * main.c (print_gdb_help): Use gdbinit variable to determine file
2888 name used for --nx help
2889
2890 1999-08-01 Jason Molenda (jsm@bugshack.cygnus.com)
2891
2892 * config/mips/tm-mips.h (BIG_ENDIAN): Don't define here.
2893
2894 1999-08-01 Jim Blandy <jimb@zwingli.cygnus.com>
2895
2896 * stabsread.c (read_range_type): Handle an unsigned range type
2897 whose length in bytes is any power of two, not just a few
2898 common ones.
2899
2900 * monitor.c (monitor_expect): When we receive a character that
2901 isn't part of the string we were expecting, don't just start
2902 matching again at the beginning of the string --- some shorter
2903 suffix of the input might be a prefix of the string too.
2904
2905 1999-07-31 Fred Fish <fnf@cygnus.com>
2906
2907 * symfile.c (symbol_file_command): Fix typo that made -1 casted
2908 to a CORE_ADDR look like an subtraction expression.
2909 (add_symbol_file_command): Ditto.
2910
2911 1999-07-30 Jim Blandy <jimb@cris.red-bean.com>
2912
2913 * hppa-tdep.c (pa_print_registers): Frob register output some more.
2914
2915 1999-07-29 Jim Blandy <jimb@cris.red-bean.com>
2916
2917 * config/pa/nm-hppah.h (PTRACE_ARG3_TYPE): After more
2918 consideration, make this a CORE_ADDR, like WDB did.
2919
2920 Rather than casting every single use of really_free_pendings to
2921 make_cleanup_func, why not actually make it have that type? Golly!
2922 * buildsym.c (really_free_pendings): Change argument type to PTR.
2923 buildsym.h (really_free_pendings): Fix declaration.
2924 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1),
2925 dwarf2read.c (psymtab_to_symtab_1), dwarfread
2926 (psymtab_to_symtab_1), hp-psymtab-read.c (hpread_build_psymtabs),
2927 os9kread.c (os9k_symfile_read, os9k_psymtab_to_symtab_1),
2928 xcoffread.c (xcoff_psymtab_to_symtab_1, xcoff_initial_scan):
2929 Remove casts.
2930
2931 Pass a CORE_ADDR safely through catch_errors.
2932 * hppa-tdep.c (args_for_find_stub): New member, return_val.
2933 (cover_find_stub_with_shl_get): Change argument and return type to
2934 match catch_errors. Save return value of find_stub_with_shl_get
2935 in *args.
2936 (initialize_hp_cxx_exception_support): Collect value of
2937 eh_notify_callback_addr from args.
2938
2939 Get rid of some noise. It would be nice to get helpful warnings
2940 from the compiler about lossy conversions.
2941 * hppa-tdep.c (eh_notify_hook_addr, eh_notify_callback_addr,
2942 eh_break_addr, eh_catch_catch_addr, eh_catch_throw_addr,
2943 break_callback_sal): Initialize these to zero, not NULL, to shush
2944 warnings.
2945 * infttrace.c (thread_fake_step): Compare signal to
2946 TARGET_SIGNAL_0, not NULL, to avoid warnings.
2947 (_initialize_infttrace): Add sanity check.
2948
2949 * config/pa/nm-hppah.h (PTRACE_ARG3_TYPE): Define this to be
2950 long, so we can pass arguments properly to ptrace.
2951
2952 * hppah-nat.c (child_xfer_memory): Correctly compute mask to round
2953 address to an int boundary.
2954
2955 1999-07-29 Jim Blandy <jimb@savonarola.red-bean.com>
2956
2957 Change from Ian Lance Taylor <ian@zembu.com>. The
2958 i386_linux_sigtramp* functions should be moved to
2959 i386-linux-tdep.c, when that file is introduced.
2960
2961 * config/i386/tm-linux.h (LINUX_SIGCONTEXT_SIZE): Define.
2962 (LINUX_SIGCONTEXT_PC_OFFSET): Define.
2963 (LINUX_SIGCONTEXT_SP_OFFSET): Define.
2964 (SIGCONTEXT_PC_OFFSET): Don't define.
2965 (I386_LINUX_SIGTRAMP): Define.
2966 (IN_SIGTRAMP): Define.
2967 (i386_linux_sigtramp): Declare.
2968 (sigtramp_saved_pc): Define.
2969 (i386_linux_sigtramp_saved_pc): Declare.
2970 (FRAMELESS_SIGNAL): Define.
2971 (FRAME_CHAIN, FRAME_SAVED_PC): Define after #undef.
2972 * i386-tdep.c (i386_linux_sigtramp_start): New static function if
2973 I386_LINUX_SIGTRAMP.
2974 (i386_linux_sigtramp): New function if I386_LINUX_SIGTRAMP.
2975 (i386_linux_sigtramp_saved_pc): Likewise.
2976 (i386_linux_sigtramp_saved_sp): Likewise.
2977
2978 1999-07-28 Jim Blandy <jimb@savonarola.red-bean.com>
2979
2980 * infrun.c (handle_inferior_event): Don't try to use the code for
2981 stepping over a function call to also handle stepping out of a
2982 sigtramp on HP-UX. That ends up trashing step-resume breakpoints.
2983 This change reverts some of David Taylor's change of 31 Dec 1998.
2984 The HP-UX maintainer needs to submit a new change for whatever
2985 problem the original change was trying to fix.
2986
2987 1999-07-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2988
2989 * event-top.c (command_line_handler): Don't treat an empty line
2990 from readline the same way as a multiline command. This avoids
2991 missing detecting when the user presses just 'enter'.
2992
2993 1999-07-28 Jim Blandy <jimb@savonarola.red-bean.com>
2994
2995 Provide more sanity checking:
2996 * infrun.c (handle_inferior_event): Before assigning a new
2997 breakpoint to step_resume_breakpoint, make sure it's not already
2998 pointing at one; if it is, that's a bug.
2999 (check_for_old_step_resume_breakpoint): New function.
3000
3001 1999-07-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3002
3003 From Eli Zaretskii <eliz@is.elta.co.il>:
3004 * top.c (gdb_init) [__MSDOS__]: Arrange for GDB to return to the
3005 original directory before exiting.
3006 (cd_command) [_WIN32 || __MSDOS__]: Canonicalize the new directory
3007 name explicitly. Handle "d:/" names correctly.
3008 (init_history) [__MSDOS__]: Use _gdb_history as the default GDB
3009 history file name.
3010
3011 Mon Jul 26 17:13:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
3012
3013 * remote.c (enum packet_support, enum packet_detect, struct
3014 packet_config): Define.
3015 (set_packet_config_cmd, show_packet_config_cmd,
3016 add_packet_config_cmd, init_packet_config): New functions.
3017 Generic support for optional packets.
3018 (remote_protocol_P): Replace stub_supports_P.
3019 (set_remote_protocol_P_packet_cmd, show_remote_protocol_P_packet_cmd):
3020 New functions.
3021 (_initialize_remote): Add ``set remote-protocol-P-packet'' command.
3022 (remote_open_1, remote_async_open_1, remote_cisco_open):
3023 Initialize ``remote_protocol_P''.
3024 (remote_store_registers): Re-write ``P'' probe logic.
3025 (store_register_using_P): New function.
3026
3027 From Ian Lance Taylor <ian@airs.com>:
3028 (remote_prepare_to_store): Only read registers when ``P'' packet
3029 is in state unsupported or support-unknown.
3030
3031 1999-07-24 Fred Fish <fnf@cygnus.com>
3032
3033 * symfile.c (default_symfile_offsets): Clear section_offsets
3034 before filling it in.
3035
3036 1999-07-16 Keith Seitz <keiths@cygnus.com>
3037
3038 * remote.c (_initialize_remote): "remotebreak" should be a var_boolean.
3039
3040 1999-07-15 Jim Blandy <jimb@cris.red-bean.com>
3041
3042 Make the output from "info registers" fit withinin 80 columns.
3043 * hppa-tdep.c (pa_print_registers): Make it easy to change row and
3044 column counts. Switch to three columns, instead of four, and
3045 adjust spacing.
3046
3047 First cut at supporting HPPA2.0 in "wide" (64-bit) mode.
3048 * configure.tgt: Add hppa2.0w target.
3049 * config/pa/hppa64.mt, config/pa/tm-hppa64.h: New files.
3050 * hppa-tdep.c (hppa_fix_call_dummy): Dyke out code to tweak the
3051 call dummy, if target is PA2.0w. This is temporary, until I get
3052 function calls working.
3053 * hppah-nat.c (fetch_register): Rewritten to handle both narrow
3054 and wide register requests.
3055 (HPPAH_OFFSETOF): New macro.
3056
3057 * gdbtypes.c (is_integral_type): New function.
3058 * gdbtypes.h: Prototype for above.
3059
3060 1999-07-15 J.T. Conklin <jtc@redback.com>
3061
3062 * configure.tgt (i[3456]86-*-vxworks*): New target.
3063 * config/i386/vxworks.mt: New file, x86 VxWorks target
3064 * config/i386/tm-vxworks.h: New file.
3065
3066 * configure.tgt (powerpc-*-vxworks*): New target.
3067 * config/powerpc/vxworks.mt: New file, PowerPC VxWorks target
3068 * config/powerpc/tm-vxworks.h: New file.
3069
3070 * NEWS: Mention the new configs.
3071
3072 1999-07-15 Fernando Nasser <fnasser@cygnus.com>
3073
3074 * target.c (target_preopen): Prevent query when not from_tty.
3075 * infcmd.c (run_command): Prevent query when not from_tty.
3076
3077 1999-07-15 Fernando Nasser <fnasser@cygnus.com>
3078
3079 * event-loop.c: Fix typo in comment.
3080
3081 Wed Jul 14 17:29:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
3082
3083 * ser-pipe.c (struct pipe_state): Define.
3084 (pipe_close): Retain the PID of the sub-process using ``struct
3085 pipe_state''. Delete #ifdef code that used popen().
3086 (pipe_close): Kill of the sub-process as part of the cleanup.
3087
3088 * serial.h (struct _serial_t): Add field ``state''.
3089
3090 1999-07-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3091
3092 * event-top.c (display_gdb_prompt): Don't display the prompt if we
3093 are in the middle of an execution command. Also trick readline so
3094 it doesn't try to display the prompt.
3095 (command_line_handler): Get rid of change_prompt, unused variable.
3096 Use {push, pop}_prompt mechanism in case of multiline commands.
3097
3098 * infrun.c (complete_execution): Set target_executing to 0 as
3099 first thing, so that display_gdb_prompt does the right thing.
3100
3101 Tue Jul 13 20:29:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
3102
3103 * parse.c (build_parse): Fix conditional increment of num_std_regs
3104 for SP_REGNUM. Was conditional on FP_REGNUM.
3105
3106 Tue Jul 13 16:44:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
3107
3108 * gdbarch.h, gdbarch.c: Revert 1999-07-07 Stan Shebs
3109 <shebs@andros.cygnus.com> indentation change. Don't let indent
3110 mess with these files.
3111
3112 Mon Jul 12 11:15:09 1999 Andrew Cagney <cagney@b1.cygnus.com>
3113
3114 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_RAW,
3115 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERTIBLE): Define.
3116 (REGISTER_RAW_SIZE): Re-define as mips_register_convert_to_raw.
3117 * mips-tdep.c (mips_register_convert_to_raw,
3118 mips_register_convert_to_virtual, ): New functions.
3119 (mips_register_raw_size, mips_register_convertible): New
3120 functions. Handle bug introduced by ``Wed Apr 1 23:13:23 1998
3121 Andrew Cagney <cagney@b1.cygnus.com>'' where remote mips64 target
3122 transfers SR as 64 bits yet GDB expected only 32 bits.
3123 (mips64_transfers_32bit_regs): New static variable.
3124 (_initialize_mips_tdep): Add obscure command ``set
3125 remote-mips64-transfers-32bit-regs'' that provides backward
3126 compatibility.
3127 (do_gp_register_row): Extract register values from raw buffer.
3128
3129 * NEWS: Document protocol change.
3130
3131 1999-07-12 Keith Seitz <keiths@cygnus.com>
3132
3133 * rdi-share/unixcomm.c (Unix_ResetSerial): Remove CYGWIN32
3134 conditional. It's no longer needed.
3135 (SERPORT1, SERPORT2): Linux serial ports are "/dev/ttyX", not
3136 "/dev/cuaX" (X=0,1,2,3,...).
3137
3138 Mon Jul 12 02:02:00 1999 Andrew Cagney <cagney@amy.cygnus.com>
3139
3140 * defs.h, utils.c (fputstrn_filtered, fputstrn_unfiltered,
3141 fputstrnn_unfiltered): New functions.
3142 (gdb_printchar): Delete.
3143
3144 * remote.c (print_packet): Replace gdb_printchar with
3145 fputstrn_filtered.
3146 (getpkt): Use fputstrn_unfiltered to dump packet received.
3147 (putpkt_binary): Use fputstrnn_unfiltered to dump packet sent.
3148
3149 1999-07-09 Keith Seitz <keiths@cygnus.com>
3150
3151 * blockframe.c (blockvector_for_pc_sect): When looking for a block,
3152 we want the one whose end is greater than our PC, not greater or equal.
3153
3154 1999-07-08 Stan Shebs <shebs@andros.cygnus.com>
3155
3156 * sparcl-tdep.c (init_sparclite_ops): Fix doc strings, remove
3157 useless inits.
3158 (sparclite_ops): Remove redundant decl.
3159
3160 Thu Jul 8 16:48:40 1999 Andrew Cagney <cagney@b1.cygnus.com>
3161
3162 * ser-pipe.c (pipe_open): Bi-directional popen found on both
3163 NetBSD and OpenBSD.
3164 * ser-pipe.c: New file. Implement popen() style serial interface.
3165 * NEWS: Mention.
3166 * Makefile.in (ALLDEPFILES): Add ser-pipe.c.
3167 (ser-pipe.o): Add new target. Specify dependencies.
3168 (SER_HARDWIRE): Add ser-pipe.o.
3169 * serial.c (serial_open): Recognize a serial pipe ``|''.
3170
3171 1999-07-07 Stan Shebs <shebs@andros.cygnus.com>
3172
3173 * All C files except *-stub.c and *-share/*: Indent to GNU
3174 standard, using indent 1.9.1.
3175 * defs.h: Make indent ignore this file, macros confuse it.
3176
3177 * gnu-regex.c, gnu-regex.h: Don't let indent mess with these.
3178
3179 Wed Jul 7 13:06:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
3180
3181 * remote-mips.c (fputs_readable): Rename puts_readable, add struct
3182 gdb_file argument.
3183 (fputc_readable): Rename putc_readable, add struct gdb_file
3184 argument.
3185
3186 * remote-mips.c (mips_expect_timeout, mips_receive_header,
3187 mips_send_packet, mips_receive_packet), remote-rdp.c (put_byte,
3188 get_byte, put_word, rdp_init, rdp_init), remote-sds.c
3189 (sds_interrupt, sds_wait, readchar, putmessage, read_frame,
3190 getmessage), remote-udi.c (udi_store_registers, fetch_register):
3191 (store_register), xmodem.c (readchar), utils.c (puts_debug),
3192 gnu-nat.h (debug), parse.c (parse_exp_1): Cleanup - send debug/log
3193 messages to gdb_stdlog.
3194
3195 1999-07-06 Stan Shebs <shebs@andros.cygnus.com>
3196
3197 * exec.c: Remove long-#ifed-out section of code that confuses
3198 indent.
3199 * gdbtypes.c (add_mangled_type): Add some braces to indicate
3200 grouping better.
3201 * gnu-nat.c: Remove literal newlines embedded in strings,
3202 causes indent to weird out.
3203 * language.c (binop_result_type): Remove extra paren.
3204 * lynx-nat.c: Add a missing paren to fetch_core_registers decl.
3205 * nec4102rom.c (vr4102_insert_step): Fix typos.
3206 (_initialize_vr4102_rom): Remove literal newline in string.
3207 * config/a29k/tm-a29k.h: Suppress formatting of pictures.
3208 * config/m68k/xm-3b1.h: Remove excess #endif.
3209
3210 Declare Pyramid configuration obsolete.
3211 * configure.host, configure.tgt: Comment out Pyramid configs.
3212 * Makefile.in: Comment out Pyramid-related actions.
3213 * pyr-xdep.c, pyr-tdep.c, config/pyr/*: Comment out.
3214 * NEWS: Mention obsolete status.
3215
3216 1999-07-06 Jason Molenda (jsm@bugshack.cygnus.com)
3217
3218 * remote.c: Include <sys/time.h> to pick up FD_SET et al defns on
3219 some old Linux distributions.
3220 * remote-os9k.c, remote-st.c, ser-tcp.c, ser-unix.c,
3221 sparcl-tdep.c, remote.c: Back out inclusion of <sys/select.h>.
3222 It isn't necessary after all.
3223
3224 1999-07-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3225
3226 * infcmd.c (strip_bg_char): Remove assignment from 'if' condition.
3227
3228 1999-07-05 Jason Molenda (jsm@bugshack.cygnus.com)
3229
3230 * remote.c: Include <sys/select.h> if it exists in order to pick up
3231 FD_SET et al defns.
3232 * remote-os9k.c: Same.
3233 * remote-st.c: Same.
3234 * ser-tcp.c: Same.
3235 * ser-unix.c: Same.
3236 * sparcl-tdep.c: Same.
3237
3238 Fri Jul 2 19:38:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
3239
3240 * top.c (target_output_hook): Delete definition.
3241 * defs.h (target_output_hook): Delete declaration.
3242
3243 * remote.c (remote_console_output): Delete call to
3244 target_output_hook(). Send target output to gdb_stdtarg using an
3245 unfiltered write. Make more robust.
3246
3247 * remote-sim.c (gdb_os_write_stdout, gdb_os_write_stderr):
3248 Ditto. For moment, do not try to separate target stdout and stderr
3249 streams.
3250
3251 * defs.h (gdb_stdtarg): New global. Output from target and
3252 simulators.
3253
3254 1999-07-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3255
3256 * top.c (return_to_top_level): Do all the exec_cleanups too.
3257
3258 * event-top.c (command_handler): Set up for a continuation, if we
3259 are in the middle of running an execution command which will
3260 finish later on. Do cleanups, an display of time/space only if not
3261 running with an async target or not running an execution command.
3262 (command_line_handler_continuation): New function. Continuation
3263 for command_line_handler.
3264
3265 * utils.c (exec_cleanup_chain): New cleanup chain to be used in
3266 async mode for the execution commands.
3267 (make_exec_cleanup): New function. Add a cleanup to the
3268 exec_cleanup_chain.
3269 (do_exec_cleanups): New Function. Do cleanups on the
3270 exec_cleanup_chain.
3271 (add_continuation): New function. Add a new continuation to the
3272 cmd_continuation list.
3273 (do_all_continuations): New function. Do all the continuations on
3274 the cmd_continuation list.
3275
3276 * top.h (ALL_CLEANUPS): Move from here to defs.h.
3277
3278 * defs.h (struct continuation_arg): New structure. Arg to pass to
3279 the call to a command continuation.
3280 (struct continuation): New structure. Continuation for an
3281 execution command.
3282 (ALL_CLEANUPS): Move here from top.h.
3283
3284 * remote.c (remote_async_open_1): Set things up for telling the
3285 target we are running the extended protocol, only after the target
3286 has stopped.
3287 (set_extended_protocol): New function. Tell the target we are
3288 using the extended protocol.
3289 (remote_async_resume): Set things up for sync execution only if
3290 this is the first time we are called.
3291
3292 * breakpoint.c (until_break_command_continuation): New function.
3293 Stuff to be done after the target stops during the 'until'
3294 command.
3295 (until_break_command): Set things up for completing the 'until'
3296 command later on. Do the final cleanups only if not running
3297 asynchronously or async execution is not supported by the target.
3298
3299 * infcmd.c (until_command): Recognize '&' at end of command and
3300 handle it properly.
3301 (finish_command_continuation): New function. Do whatever is needed
3302 after the target has stopped.
3303 (finish_command): Recognize '&' at end of command and handle it
3304 properly. Don't do stuff needed after target has stopped if
3305 running asynchronously and target has async. Use exec_cleanup_chain
3306 if running asynchronously and target is asynchronous.
3307
3308 * infrun.c (cmd_continuation): New gloabl variable. Used to
3309 coplete execution commands in async mode, after the target has
3310 stoped.
3311 (fetch_inferior_event): Use exec_cleanup_chain, instead of
3312 cleanup_chain. Do all the exec cleanups at the end. Do all the
3313 continuations at the end. Call complete_execution from here,
3314 instead of normal_stop.
3315 (complete_execution): Cleanup the signals handlers for SIGINT
3316 before displaying the prompt.
3317 (start_remote): Set target_executing to 1.
3318 (normal_stop): Don't call complete_execution from here.
3319
3320 Thu Jul 1 19:14:30 1999 Andrew Cagney <cagney@b1.cygnus.com>
3321
3322 * blockframe.c (struct dummy_frame): Add member ``top''.
3323 (generic_push_dummy_frame): Initialize top to sp.
3324 (generic_save_dummy_frame_tos): New function. Initialize top.
3325 (generic_find_dummy_frame): Check for the top of the frame.
3326
3327 * blockframe.c (generic_push_dummy_frame): Free the dummy_frame
3328 registers.
3329
3330 * config/mn10300/tm-mn10300.h (SAVE_DUMMY_FRAME_TOS): Define.
3331 (TARGET_READ_FP): Return the SP as a best guess.
3332
3333 Wed Jun 30 15:45:48 1999 Jeffrey A Law (law@cygnus.com)
3334
3335 * configure.host (hppa*-*-hpux11*): Accept any version of hpux11
3336 instead of hpux11.0*.
3337
3338 1999-06-30 Fernando Nasser <fnasser@totem.to.cygnus.com>
3339
3340 * source.c (directory_command): Add missing test for from_tty.
3341
3342 1999-06-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3343
3344 * remote.c: Include event-loop.h.
3345 (remote_async_ops, extended_async_remote_ops): Define new target
3346 vector structures for asynchronous debugging.
3347 (remote_async_open): New function. Asynchronous version of
3348 remote_open.
3349 (extended_remote_async_open): New function. Asynchronous version
3350 of extended_remote_open.
3351 (remote_async_open_1): New function. Async version of
3352 remote_open_1.
3353 (remote_async_detach): New function. Async version of
3354 remote_detach.
3355 (remote_async_resume): New function. Async version of
3356 remote_resume.
3357 (initialize_sigint_signal_handler, handle_remote_sigint,
3358 handle_remote_sigint_twice, async_remote_interrupt,
3359 async_remote_interrupt_twice, cleanup_sigint_signal_handler): New
3360 functions. Used for handling ^C while target is running.
3361 (remote_async_wait): New function. Async version of remote_wait.
3362 (remote_async_kill): New function. Async version of remote_kill.
3363 (extended_remote_async_create_inferior): New function. Async
3364 version of extended_remote_create_inferior.
3365 (init_remote_async_ops): New function. Initialize target vector
3366 for target async.
3367 (init_extended_async_remote_ops): New function. Initialize target
3368 vector for target extended-async.
3369 (_initialize_remote): Initialize remote_async_ops and
3370 extended_async_remote_ops.
3371
3372 * infrun.c: Include "event-loop.h".
3373 (sync_execution): new global variable.
3374 (proceed): Invoke wait_for_inferior and normal_stop only if not
3375 running in async mode or if target doesn't support async
3376 execution.
3377 (start_remote): Don't call wait_for_inferior and normal_stop if
3378 not running in async mode or if target not async. If running async
3379 and target is async, start the target in simulated synchronous
3380 mode.
3381 (async_ecss, async_ecs): New global vars, for inferior state.
3382 (fetch_inferior_event): New function. Async version of
3383 wait_for_inferior.
3384 (complete_execution): New function. Reset of gdb prompt and stdin,
3385 after inferior execution has completed.
3386 (normal_stop): Call complete_execution at end of asynchronous
3387 execution.
3388
3389 * infcmd.c (strip_bg_char): New function to detect the background
3390 execution char '&'.
3391 (run_command): Modify to support background and foreground
3392 execution in async mode.
3393 (continue_command): Ditto.
3394 (step_1): Ditto.
3395 (jump_command): Ditto.
3396 (interrupt_target_command): New function. Interrupt the
3397 target execution.
3398 (_initialize_infcmd): Add new command 'interrupt'.
3399
3400 * top.c (target_executing): New global variable.
3401 (execute_command): Reject commands that cannot be executed while
3402 the target is running asynchronously.
3403
3404 * event-top.c (push_prompt): Make non static.
3405 (pop_prompt): Make non static. If the current prompt is empty,
3406 don't try to copy it over the previous one.
3407 (handle_sigint): Make non static.
3408 (command_handler): Do the cleanups only when not executing with an
3409 asynchronous target.
3410
3411 * event-loop.c (delete_async_signal_handler): Pass a pointer to a
3412 pointer to a signal handler, so that is can be freed at the end.
3413
3414 * target.c (update_current_target): Inherit to_has_async_exec.
3415
3416 * inferior.h: Add global variables target_executing, and
3417 sync_execution. Export function fetch_inferior_event.
3418
3419 * event-loop.h: Add push_prompt, pop_prompt, handle_sigint to the
3420 exported functions. Update prototype for delete_signal_handler.
3421
3422 * target.h (struct target_ops): New target op: to_has_async_exec.
3423 (target_has_async): New macro.
3424
3425 * Makefile.in (infrun.o): Add dependency on event-loop.h.
3426 (remote.o): Ditto.
3427
3428 1999-06-28 Jim Blandy <jimb@zwingli.cygnus.com>
3429
3430 * solib.c (clear_solib): Don't disable breakpoints if we're
3431 running an a.out executable (Solaris's SunOS emulation).
3432
3433 1999-06-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3434
3435 * main.c (main): Remove intialization of command_loop_hook, it
3436 is now done in _initialize_event_loop().
3437 * event-loop.c (gdb_do_one_event): Make static.
3438 (start_event_loop): New function. Just start the event loop.
3439 * event-top.c (cli_command_loop): New name for start_event_loop().
3440 (gdb_readline2): Make non static.
3441 (_initialize_event_loop): Set command_loop_hook to cli_command_loop.
3442 * event-loop.h: Adjust exported functions accordingly.
3443
3444 * top.c (init_main): Move setting of async_command_editing_p from
3445 here.
3446 * event-top.c (_initialize_event_loop): To here.
3447 (change_line_handler): Revert previous change. Add comment.
3448 (_initialize_event_loop): Revert previous change.
3449 (cli_command_loop): New name for start_event_loop().
3450 (start_event_loop): New function. This just starts up the event loop.
3451 (gdb_readline2): Make non static.
3452 (_initialize_event_loop): Set command_loop_hook to cli_command_loop.
3453
3454 1999-06-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3455
3456 * event-top.c (change_line_handler): Get rid of the global
3457 variable input_fd, use `fileno (instream)' instead.
3458 (_initialize_event_loop): Ditto
3459
3460 * event-loop.c (add_file_handler): New function. Wrapper for
3461 create_file_handler.
3462 (create_file_handler): Make static.
3463 * event-top.c (_initialize_event_loop): Call add_file_handler,
3464 instead of create_file_handler.
3465 (change_line_handler): Ditto.
3466 Remove poll.h include.
3467 * event-loop.h: Export add_file_handler instead of
3468 create_file_handler.
3469
3470 1999-06-24 Stan Shebs <shebs@andros.cygnus.com>
3471
3472 Declare Altos configuration obsolete.
3473 * configure.host, configure.tgt: Comment out Altos config.
3474 * Makefile.in: Comment out Altos-related actions.
3475 * altos-xdep.c, config/m68k/altos.mh, altos.mt, tm-altos.h,
3476 xm-altos.h: Comment out.
3477 * NEWS: Mention obsolete status.
3478
3479 1999-06-24 Jason Molenda (jsm@bugshack.cygnus.com)
3480
3481 * Makefile.in: Add MAKEHTML and MAKEHTMLFLAGS; pass them down;
3482 recognize html and install-html targets.
3483 * gdbserver/Makefile.in: Add empty html and install-html targets.
3484 * nlm/Makefile.in: Ditto.
3485 * rdi-share/Makefile.in: Ditto.
3486
3487 1999-06-24 Jim Blandy <jimb@zwingli.cygnus.com>
3488
3489 * ax-gdb.c (agent_command): Remove vestigial call to ax_reqs.
3490
3491 1999-06-24 James Ingham <jingham@leda.cygnus.com>
3492
3493 * arm-tdep.c (arm_othernames): Change both gdb's register display
3494 AND the opcode disassembly register naming if the othernames
3495 command. Fixes the gdb part of CR 101177.
3496
3497 1999-06-23 Stan Shebs <shebs@andros.cygnus.com>
3498
3499 Declare Convex configuration obsolete.
3500 * configure.host, configure.tgt: Comment out Convex configs.
3501 * Makefile.in: Comment out Convex-related actions.
3502 * convex-xdep.c, convex-tdep.c, config/convex/*: Comment out.
3503 * NEWS: Mention obsolete status.
3504
3505 1999-06-23 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3506
3507 * main.c: Turn on async by default by setting async_p to 1.
3508
3509 Wed Jun 23 15:44:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
3510
3511 From Jimmy Guo <guo@cup.hp.com>:
3512 * frame.h (enum lval_type): Delcare when an __STDC__ compiler.
3513 Reverts Mon Aug 11 16:08:52 1997 Fred Fish <fnf@cygnus.com>
3514 change.
3515 * utils.c (gdb_file_rewind, gdb_file_put): Fix. A void function
3516 does not return a result.
3517
3518 Wed Jun 23 15:30:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
3519
3520 * remote.c (set_thread, remote_get_threadinfo,
3521 remote_threads_info, remote_current_thread, remote_get_threadlist,
3522 extended_remote_restart, get_offsets, remote_open_1,
3523 remote_detach, remote_resume, remote_wait, remote_fetch_registers,
3524 remote_store_registers, check_binary_download, remote_write_bytes,
3525 remote_read_bytes, remote_search, putpkt_binary, putpkt_binary,
3526 read_frame, compare_sections_command, remote_query,
3527 packet_command, remote_info_process): Use alloca to create space
3528 for arrays of size PBUFSIZ.
3529
3530 1999-06-22 Jason Molenda (jsm@bugshack.cygnus.com)
3531
3532 * top.c: Update copyright years to include 1999.
3533
3534 1999-06-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3535
3536 * top.c: Move include of event-loop.h, to avoid redefinition of
3537 NFDBITS.
3538
3539 * event-loop.c (create_file_handler): Do not do a realloc of the
3540 pollfd structure of the notifier, unless there is already one.
3541 Include <sys/types.h> for platforms that have no poll.
3542
3543 * event-top.c: Fix prototype for _initialize_event_loop.
3544 (_initialize_event_loop): Do something only if running in async
3545 mode.
3546
3547 1999-06-17 Jim Blandy <jimb@zwingli.cygnus.com>
3548
3549 Make the '/c' print format use a true character type. This is
3550 more appropriate than builtin_type_char for languages other than
3551 C, and C tolerates it.
3552 * gdbtypes.c (builtin_type_true_char): New variable.
3553 (build_gdbtypes): Initialize it.
3554 * gdbtypes.h (builtin_type_true_char): New declaration.
3555 * printcmd.c (print_scalar_formatted): When the format is 'c',
3556 extract the value as a builtin_type_true_char.
3557
3558 * jv-exp.y (yylex): Say character literals are java_char_type, not
3559 builtin_type_char. Java treats the latter like `byte'.
3560
3561 1999-06-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3562
3563 * Makefile.in (top_h): Define.
3564 (event-loop.o): Add dependencies on top.h and defs.h.
3565 (event-top.o): Add dependency on terminal.h.
3566
3567 * event-loop.c: Get rid of #include <readline.h>.
3568
3569 * event-loop.h: Get rid of nested #include's.
3570 * event-loop.c: Rearrange includes to accomodate change in
3571 event-loop.h. Include poll.h, not sys/poll.h.
3572 * event-top.c: Ditto.
3573 * main.c: Ditto.
3574
3575 1999-06-16 David Taylor <taylor@louisiana.cygnus.com>
3576
3577 * alpha-tdep.c (alpha_pop_frame): if frame->proc_desc
3578 is NULL, call find_proc_desc so we know how to restore
3579 the registers.
3580
3581 1999-06-15 Michael Snyder <msnyder@cleaver.cygnus.com>
3582
3583 * event-top.c (start_event_loop): call get_prompt.
3584 (display_gdb_prompt): call get_prompt.
3585 (async_stop_sig): call get_prompt.
3586
3587 1999-06-15 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3588
3589 * event-loop.c (delete_file_handler): When positioning prev_ptr,
3590 keep looping while the one after is not equal to file_ptr, instead
3591 of equal.
3592
3593 1999-06-14 Stan Shebs <shebs@andros.cygnus.com>
3594
3595 * MAINTAINERS: Add Jimmy Guo and Jim Blandy as HP testsuite and
3596 SVR4 solib maintainers, respectively.
3597
3598 1999-06-14 Michael Snyder <msnyder@cleaver.cygnus.com>
3599
3600 Add parameters to the gdb prompt.
3601 * top.c (prompt): Rename to gdb_prompt_string for clarity.
3602 (command_line_input): rename "prrompt" to prompt_arg for clarity.
3603 (gdb_readline): rename "prrompt" to prompt_arg for clarity.
3604 (read_command_lines): rename "prompt" to prompt_arg for clarity.
3605 (stop_sig): call get_prompt instead of reading prompt string directly.
3606 (command_loop): ditto.
3607 (gdb_prompt_escape): New variable. Esc char for prompt parameters.
3608 (get_prompt_1): New function, workhorse for get_prompt.
3609 (get_prompt): Completely rewrite. Add functionality for a
3610 parameterized prompt, ie. the displayed prompt can change according
3611 to the value of one or more expressions given as parameters in the
3612 prompt string.
3613 (init_main): use renamed variable gdb_prompt_string. Add new
3614 command "set prompt-escape-char" to set gdb_prompt_escape.
3615
3616 Sun Jun 13 10:44:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
3617
3618 * defs.h (gdb_stdlog), main.c: Declare.
3619 * main.c (main): Initialize.
3620 * gdbarch.c: Write trace messages to the log file.
3621 * remote.c: Update any debug/log prints.
3622
3623 1999-06-11 Michael Snyder <msnyder@cleaver.cygnus.com>
3624
3625 * remote.c (remote_wait): Clean up new thread handling.
3626 (record_currthread): Announce new threads.
3627
3628 1999-06-11 Jim Blandy <jimb@zwingli.cygnus.com>
3629
3630 * partial-stab.h (case N_LSYM, 'T' descriptor): Don't create
3631 partial symbol table entries for nameless enums, even if the type
3632 name is " ". (We still pick up the enum elements, though.)
3633
3634 * partial-stab.h: Remove #if 0'd sections, dating back to 1992,
3635 which set a variable which exists nowhere else in the source.
3636 Please examine your test suite output carefully, and report any
3637 problems to me.
3638
3639 1999-06-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3640
3641 * event-top.c (setup_event_loop): Change name to start_event_loop.
3642 Move the intialization of event-loop variables to
3643 _initialize_event_loop.
3644 (_initialize_event_loop): New function. Called at init time, to
3645 set up important event-loop variables.
3646
3647 * event-loop.h: setup_event_loop is now start_event_loop.
3648 * main.c (main): Ditto.
3649
3650 Fri Jun 11 18:34:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
3651
3652 * defs.h (gdb_file_rewind_ftype, gdb_file_rewind,
3653 set_gdb_file_rewind, gdb_file_put_ftype, gdb_file_put,
3654 set_gdb_file_put): Declare.
3655
3656 * utils.c (gdb_file_new): Initialize ``rewind'' and ``put''.
3657 (struct gdb_file): Add to_rewind and to_put.
3658 (null_file_put, null_file_rewind, gdb_file_put, gdb_file_rewind,
3659 set_gdb_file_put, set_gdb_file_rewind): New functions.
3660 (tui_file_rewind, tui_file_put): New functions.
3661 (tui_file_new): Add rewind and put.
3662
3663 Fri Jun 11 15:10:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
3664
3665 * d10v-tdep.c (d10v_push_arguments): Fix order of arguments passed
3666 to store_address.
3667
3668 Fri Jun 11 10:31:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
3669
3670 * remote.c (tty_input): Change array to pointer.
3671 (_initialize_remote): Call build_remote_gdbarch_data.
3672 (build_remote_gdbarch_data): New function. Allocate space for
3673 tty_input.
3674 (readsocket, readtty): Delete extern declaration of tty_input.
3675
3676 1999-06-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3677
3678 * event-top.c (gdb_readline2): Call the command handling function
3679 via the input_handler pointer.
3680 (change_line_handler): When turning off editing, set input_handler
3681 as well.
3682
3683 * utils.c (prompt_for_continue): If running asynchronously, call
3684 async_request_quit, instead of request_quit.
3685
3686 * tracepoint.c (read_actions): If running asynchronously, set the
3687 signal handler for STOP_SIGNAL to handle_stop_sig.
3688
3689 * top.h: (source_line_number, source_file_name, source_error,
3690 source_pre_error, history_expansion_p, server_command): export for
3691 use of event-top.c.
3692
3693 * event-top.c: Include top.h and terminal.h.
3694 (instream): Remove extern declaration.
3695 (handle_sigint, handle_sigquit, handle_sighup, handle_sigfpe,
3696 handle_sigwinch, async_do_nothing, async_disconnect,
3697 async_float_handler, async_stop_sig): Make static.
3698 (async_request_quit, async_do_nothing, async_disconnect,
3699 async_float_handler, async_stop_sig): Add gdb_glient_data
3700 argument.
3701 (handle_stop_sig): New function.
3702 (sigtstp_token): New variable.
3703 (sigint_token, sigquit_token, sigfpe_token, sigwinch_token):
3704 Change their type tp PTR.
3705 (mark_async_signal_handler_wrapper): New function.
3706 (setup_event_loop): Initialize all the variables used by readline
3707 only if not already done while reading the .gdbinit file. Display
3708 the initial gdb prompt, if .gdbinit took care of setting things up
3709 for readline.
3710 (change_line_handler): When turning on the use of readline,
3711 initialize input_handler as well.
3712 (command_line_handler): Set up the signal handler for STOP_SIGNAL
3713 to be handle_stop_sig.
3714 (async_init_signals): Remove coercion of signal handlers in calls
3715 to create_async_signal_handler. Initialize token for stop signal.
3716 (handle_sigint): Call async_request_quit using one argument.
3717 (handle_sigint, handle_sigquit, handle_sighup, handle_sigfpe,
3718 handle_sigwinch): Call mark_async_signal_handler_wrapper instead
3719 of mark_async_signal_handler.
3720
3721 * event-loop.h: Add extern declarations for handle_stop_sig,
3722 async_command_editing_p, async_annotation_suffix,
3723 new_async_prompt, the_prompts.
3724
3725 * top.c (command_line_input): Set the signal handler to be
3726 handle_stop_sig, in case gdb is running asynchronously.
3727 (get_prompt): Return the top of the prompt stack if running
3728 asynchronously.
3729 (set_prompt): Set the top of the prompt stack if running
3730 asynchronously.
3731 (init_main): Move ``extern'' vars from here to event-loop.h.
3732
3733 1999-06-10 Michael Snyder <msnyder@cleaver.cygnus.com>
3734
3735 * values.c (value_from_string): new function. Make a value_ptr
3736 from a string, with storage in local GDB memory (not in inferior).
3737 * value.h (value_from_string): add prototype.
3738 * remote.c (remote_cisco_ops): New remote target, "target cisco".
3739 (init_remote_cisco_ops): New function, initialize new target.
3740 (remote_cisco_mourn, remote_cisco_wait, remote_cisco_open,
3741 remote_cisco_close): New functions, implement new target cisco.
3742 (minitelnet, readtty, readsocket) New functions, implement the
3743 I/O pass-through mode for target cisco.
3744 (remote_wait): Detect special enhanced version of the 'S' packet
3745 for target cisco.
3746 (remote_cisco_expand): Perform Cisco variant of RLL decoding.
3747
3748 1999-06-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3749
3750 * event-loop.c (gdb_wait_for_event): Initialize num_found to 0.
3751
3752 * top.c (print_prompt): Delete this function.
3753
3754 From: Andrew Cagney <cagney@b1.cygnus.com>
3755
3756 * event-top.c (async_hook): Delete extern declaration.
3757
3758 * defs.h: Replace ``async_hook'' with ``async_p''.
3759 * top.c (gdb_init, init_main, init_main, init_main, init_main):
3760 Replace ``async_hook'' with ``async_p''.
3761
3762 * main.c: Rename ``async'' to ``async_p''.
3763 (main): Add --noasync option.
3764 (main): Hook in the asynchronous event-loop based CLI using
3765 command_loop_hook instead of async_hook. Delete call to
3766 async_hook().
3767
3768 Thu Jun 10 21:14:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
3769
3770 * mn10300-tdep.c (mn10300_store_return_value,
3771 mn10300_extract_struct_value_address,
3772 mn10300_extract_return_value), config/mn10300/tm-mn10300.h: New
3773 functions.
3774 * config/mn10300/tm-mn10300.h (EXTRACT_STRUCT_VALUE_ADDRESS,
3775 STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE): Update.
3776 (TARGET_MN10300): Delete macro. Not used.
3777
3778 Thu Jun 10 20:04:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
3779
3780 * mn10300-tdep.c (mn10300_register_names): Make static.
3781 (STORE_STRUCT_RETURN): Do not modify SP.
3782
3783 * config/mn10300/tm-mn10300.h(mn10300_register_name),
3784 mn10300-tdep.c : New function.
3785 * config/mn10300/tm-mn10300.h (REGISTER_NAME): Update.
3786 * config/mn10300/tm-mn10300.h (mn10300_saved_pc_after_call),
3787 mn10300-tdep.c: New function.
3788 * config/mn10300/tm-mn10300.h (SAVED_PC_AFTER_CALL): Update.
3789
3790 1999-06-10 Keith Seitz <keiths@cygnus.com>
3791
3792 * mcore-rom.c (picobug_dumpregs): Return a value. Any value, it
3793 doesn't matter.
3794 * mcore-tdep.c (mcore_analyze_prologue): Set NO_MORE_FRAMES
3795 if the start of the function is the entry point.
3796 (mcore_analyze_prologue): rotli takes an immediate, not an
3797 offset immediate.
3798 (mcore_push_arguments): Fix compiler warning.
3799
3800 1999-06-09 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3801
3802 * rs6000-tdep.c (skip_prologue): Don't mistake a branch for a
3803 subroutine call.
3804
3805 1999-06-08 Michael Snyder <msnyder@cleaver.cygnus.com>
3806
3807 * remote.c (remote_wait): Add 'N' response packet, which is a
3808 stop with signal number plus section offsets for .text, .data and
3809 .bss. This is used by Cisco to indicate relocation offsets.
3810 (remote_cisco_section_offsets, remote_cisco_objfile_relocate):
3811 new files to support 'N' packet.
3812 (remote_info_process): New function. Implements the
3813 "info remote-process" command, by means of which the remote target
3814 can report anything it wants to about the remote process/app being
3815 debugged.
3816 (_initialize_remote): add info remote-proc command.
3817 (remote_threads_info): New function for "info threads" command.
3818 Attempts to use new query "qfThreadInfo" instead of the old
3819 undocumented query.
3820 * exec.c (exec_set_section_offsets) new files to support 'N' packet.
3821
3822 Tue Jun 8 13:33:42 1999 Andrew Cagney <cagney@amy.cygnus.com>
3823
3824 * inferior.h (generic_target_read_pc, generic_target_write_pc,
3825 generic_target_read_fp, generic_target_write_fp,
3826 generic_target_read_sp, generic_target_write_sp): Declare new
3827 functions.
3828 * findvar.c (generic_target_read_pc, generic_target_write_pc,
3829 generic_target_read_fp, generic_target_write_fp,
3830 generic_target_read_sp, generic_target_write_sp): New functions.
3831 (TARGET_READ_PC, TARGET_WRITE_PC, TARGET_READ_FP, TARGET_WRITE_FP,
3832 TARGET_READ_SP, TARGET_WRITE_SP): Default to corresponding generic
3833 function.
3834 (write_pc_pid, write_pc_pid, read_sp, write_sp, read_fp,
3835 write_fp): Simplify.
3836
3837 * gdbarch.c (verify_gdbarch): Always verify TARGET_PTR_BIT,
3838 TARGET_SHORT_BIT, TARGET_INT_BIT, TARGET_LONG_BIT,
3839 TARGET_LONG_LONG_BIT, TARGET_FLOAT_BIT, TARGET_DOUBLE_BIT,
3840 TARGET_LONG_DOUBLE_BIT, TARGET_READ_PC, TARGET_WRITE_PC,
3841 TARGET_READ_FP, TARGET_WRITE_FP, TARGET_READ_SP, TARGET_WRITE_SP,
3842 USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY_BREAKPOINT_OFFSET_P,
3843 CALL_DUMMY_P, CALL_DUMMY_STACK_ADJUST_P, GET_SAVED_REGISTER,
3844 REGISTER_CONVERTIBLE, PUSH_ARGUMENTS, PUSH_RETURN_ADDRESS,
3845 FRAME_CHAIN_VALID.
3846 (GET_GDBARCH, SET_GDBARCH): Delete macros. Implement functions
3847 directly.
3848 * gdbarch.h, gdbarch.c: Call fatal() instead of abort(). Identify
3849 the function / macro with a problem. Always verify a architecture
3850 attribute before returning it.
3851 * gdbarch.h, gdbarch.c (generic_register_convertible_not): New
3852 function.
3853
3854 * mips-tdep.c (mips_push_return_address): New function.
3855 * config/mips/tm-mips.h (PUSH_RETURN_ADDRESS): Define.
3856
3857 * mips-tdep.c (mips_gdbarch_init): Initialize short_bit,
3858 double_bit, long_double_bit, read_pc, write_pc, read_fp, write_fp,
3859 read_sp, write_sp, frame_chain_valid, get_saved_register,
3860 push_arguments, push_return_address, register_convertible,
3861 call_dummy_p, use_generic_dummy_frames,
3862 call_dummy_breakpoint_offset_p, call_dummy_stack_adjust_p,
3863 call_dummy_words and sizeof_call_dummy_words.
3864 * config/mips/tm-mips.h: Don't define CALL_DUMMY when multi-arch.
3865
3866 1999-06-07 Keith Seitz <keiths@cygnus.com>
3867
3868 * v850ice.c (init_hidden_window): Do not rely on the existence of
3869 a gui for window creation. Return boolean status.
3870 (v850ice_open): Use boolean status of init_hidden_window.
3871 Allow any ICE execution command to run under CLI. Maybe one
3872 day gdb will use a real event loop and allow this code to run.
3873 * configure.tgt: Configure the v850 ice for all cygwin-hosted
3874 toolchains.
3875
3876 Mon Jun 7 23:37:26 1999 Andrew Cagney <cagney@amy.cygnus.com>
3877
3878 * config/mips/tm-mips.h (EXTRA_FRAME_INFO): Delete.
3879 * mips-tdep.c (mips_init_extra_frame_info): Allocate saved_regs.
3880 (temp_saved_regs): Replace struct with a simple pointer.
3881 (set_reg_offset, mips32_heuristic_proc_desc, heuristic_proc_desc,
3882 mips_init_extra_frame_info): Update.
3883
3884 Mon Jun 7 21:40:12 1999 Andrew Cagney <cagney@amy.cygnus.com>
3885
3886 * config/mips/tm-mips.h (EXTRA_FRAME_INFO): Move elements from here.
3887 * mips-tdep.c (struct frame_extra_info): To here.
3888
3889 * mips-tdep.c (mips_print_extra_frame_info, mips_find_saved_regs,
3890 mips_init_extra_frame_info, mips_pop_frame): Update
3891 (mips_init_extra_frame_info): Allocate space for the extra info.
3892
3893 Mon Jun 7 21:08:50 1999 Andrew Cagney <cagney@amy.cygnus.com>
3894
3895 * config/mips/tm-mips.h (mips_init_extra_frame_info), mips-tdep.c:
3896 Rename init_extra_frame_info. Add argument ``fromleaf''.
3897
3898 * config/mips/tm-mips.h (mips_print_extra_frame_info),
3899 mips-tdep.c: New function.
3900 (PRINT_EXTRA_FRAME_INFO): Update definition.
3901
3902 Mon Jun 7 20:11:07 1999 Andrew Cagney <cagney@amy.cygnus.com>
3903
3904 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
3905 config/mips/tm-tx19.h, config/mips/tm-tx19l.h,
3906 config/mips/tm-tx39.h, config/mips/tm-tx39l.h: Rename macro
3907 REGISTER_NAMES to MIPS_REGISTER_NAMES.
3908
3909 * config/mips/tm-mips.h (REGISTER_NAME): Define.
3910 * mips-tdep.c (mips_processor_reg_names): New static variable.
3911 (mips_register_name): New function.
3912 (mips_set_processor_type): Update mips_processor_reg_names.
3913 (mips_generic_reg_names): Initialize using MIPS_REGISTER_NAMES.
3914
3915 Sun Jun 6 11:09:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
3916
3917 * remote.c (PBUFSIZ): Re-define so that value is computed at
3918 run-time.
3919 (MAXBUFBYTES): Re-define as a macro function.
3920 * gdbarch.h, gdbarch.c: Add multi-arch support for REGISTER_BYTES.
3921 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
3922
3923 1999-06-05 Fernando Nasser <fnasser@totem.to.cygnus.com>
3924
3925 * symtab.c (decode_line_1): Accept filenames with spaces in
3926 'linespecs' when enclosed in double quotation marks and handle
3927 drive specification is DOS format (D:).
3928
3929 1999-06-04 Jim Blandy <jimb@zwingli.cygnus.com>
3930
3931 * parse.c: Don't include <ctype.h> twice.
3932
3933 1999-06-04 David Taylor <taylor@louisiana.cygnus.com>
3934
3935 Sat May 15 12:16:09 1999 Per Bothner <bothner@deneb.cygnus.com>
3936
3937 * eval.c (evaluate_subexp_standard): Remove Gilmore rant.
3938 (Of course C has "expected types", at least if you allow
3939 brace-initializer expressions - as in Gcc.)
3940 Remove NULLing out expect_type. Do pass NULL_TYPE in place
3941 the incoming expect_type where appropriate.
3942
3943 Fri Jun 4 10:56:23 1999 Jeffrey A Law (law@cygnus.com)
3944
3945 * hppa-tdep.c (hppa_fix_call_dummy): Make it work for GCC compiled
3946 executables without end.o. Clean up lots of mis-guided comments.
3947
3948 Fri Jun 4 17:10:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
3949
3950 * parser-defs.h (std_regs): Replace array with pointer.
3951 * parse.c (build_parse): Build the std_regs table according to the
3952 standard registers available.
3953 (_initialize_parse): Register std_regs and num_std_regs as
3954 architecture specific.
3955 * gdbarch.h, gdbarch.c: Add multi-arch support for SP_REGNUM,
3956 FP_REGNUM, PC_REGNUM, NUM_REGS, REGISTER_NAME.
3957 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
3958
3959 1999-06-03 Michael Snyder <msnyder@cleaver.cygnus.com>
3960
3961 * thread.c: eliminate the target_thread_vector (functionality
3962 moved into the standard target vector).
3963 * gdbthread.h: eliminate target_thread_vector. Move all related
3964 defines into remote.c, since they are no longer shared with thread.c.
3965 * remote.c: eliminate the target_thread_vector.
3966 (remote_find_new_threads): change return type to void, consistent
3967 with the target vector table. (cont_thread): rename continue_thread.
3968 (record_currthread): remove dead code. (remote_thread_alive):
3969 clean up and simplify. (threadref etc.): move definitions to here
3970 from gdbthread.h.
3971
3972 1999-06-02 Jason Molenda (jsm@bugshack.cygnus.com)
3973
3974 * inftarg.c (child_create_inferior): Remove dead HPUX specific code
3975 which tries to find csh.
3976 * fork-child.c: Remove DEBUGGING predefine and conditionalized
3977 printfs.
3978 (fork_inferior): Remove dead HPUX specific code which assumes shell
3979 is csh.
3980
3981 * hppa-tdep.c: Remove DEBUGGING and #if 0 debugging printfs.
3982 * parse.c: Ditto.
3983 * somread.c: Ditto.
3984
3985 * gdbarch.h: Forward decl of struct value.
3986
3987 Thu Jun 3 10:12:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
3988
3989 * d10v-tdep.c (do_d10v_pop_frame): Rename d10v_pop_frame. Make
3990 static.
3991 * d10v-tdep.c (d10v_pop_frame), config/d10v/tm-d10v.h: New
3992 function. Call generic_pop_current_frame.
3993 * config/d10v/tm-d10v.h (POP_FRAME): Update.
3994 * gdbarch.h, gdbarch.c (frame_num_args_unknown): New function.
3995 * gdbarch.h, gdbarch.c: Add multi-arch support for POP_FRAME,
3996 SKIP_PROLOGUE, INNER_THAN, DECR_PC_AFTER_BREAK,
3997 FUNCTION_START_OFFSET, REMOTE_TRANSLATE_XFER_ADDRESS, FRAME_CHAIN,
3998 FRAME_CHAIN_VALID, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS,
3999 FRAME_LOCALS_ADDRESS, FRAME_ARGS_SKIP,
4000 FRAMELESS_FUNCTION_INVOCATION, REGISTER_BYTE, REGISTER_RAW_SIZE,
4001 REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, SAVED_PC_AFTER_CALL,
4002 FRAME_NUM_ARGS, MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4003 REGISTER_SIZE.
4004 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
4005 * config/d10v/tm-d10v.h (DMEM_START, IMEM_START, STACK_START,
4006 ARG1_REGNUM, ARGN_REGNUM, RET1_REGNUM): Move definitions from
4007 here.
4008 * d10v-tdep.c: To here.
4009 * config/d10v/tm-d10v.h (struct type): Move declaration from here.
4010 * gdbarch.h: To here.
4011 * config/d10v/tm-d10v.h (struct frame_info, struct
4012 frame_saved_regs, struct type): Delete declarations.
4013
4014 1999-06-02 Robert Hoehne <robert.hoehne@gmx.net>
4015
4016 * go32-nat.c: go32_terminal_init, go32_terminal_inferior and
4017 go32_terminal_ours are new functions to save/restore the inferior`s
4018 stdin/stdout filemodes
4019
4020 1999-06-02 Stan Shebs <shebs@andros.cygnus.com>
4021
4022 * MAINTAINERS: Add Mark Kettenis, Jeff Law, and Philippe De Muyter
4023 as maintainers for Hurd, HP/UX, and COFF, respectively.
4024
4025 1999-06-02 Mark Kettenis <kettenis@gnu.org>
4026
4027 * gnu-nat.c (inf_continue): New function.
4028 (struct inf): Use `unsigned int' instead of `int' for bit-fields.
4029 Add new bit-field named `nomsg'.
4030 (inf_validate_procinfo): Renamed from inf_validate_stopped, all
4031 callers changed. Also update the `nomsg' and `traced' fields of
4032 INF.
4033 (make_inf): Initialize INF->nomsg.
4034 (inf_cleanup): Reset INF->nomsg.
4035 (inf_detach): Call `inf_validate_procinfo'. Call `inf_continue'
4036 instead of `inf_signal' if the inferior does not have a message
4037 port.
4038 (gnu_resume): Likewise.
4039 (gnu_create_inferior): Reset INF->nomsg in `attach_to_child'.
4040 Call `inf_validate_procinfo' after returning from `fork_inferior'.
4041 (gnu_attach): Update signal thread and tracing state.
4042
4043 * config/i386/tm-i386gnu.h: Include "i386/tm-i386.h" instead of
4044 "i386/tm-i386v.h".
4045 (STACK_END_ADDR): Remove.
4046 (SIGCONTEXT_PC_OFFSET): New define.
4047 Include "tm-sysv4.h".
4048
4049 1999-06-02 J.T. Conklin <jtc@redback.com>
4050
4051 * config/tm-vxworks.h: New file, header for definitions common to
4052 all vxWorks targets.
4053 * config/a29k/tm-vx29k.h, config/i960/tm-vx960.h,
4054 config/m68k/tm-vx68.h, config/mips/tm-vxmips.h,
4055 config/sparc/tm-vxsparc.h: Include tm-vxworks.h.
4056
4057 Wed Jun 2 17:37:03 1999 Jeffrey A Law (law@cygnus.com)
4058
4059 * config/pa/tm-hppa.h (IMPORT_SHLIB): New unwind stub type.
4060
4061 1999-06-02 Christopher Faylor <cgf@cygnus.com>
4062
4063 * configure.tgt: Alphabetically reorder some targets.
4064
4065 1999-06-02 Keith Seitz <keiths@cygnus.com>
4066
4067 * v850ice.c (v850ice_xfer_memory): Insert lost "break".
4068
4069 1999-06-02 Jim Blandy <jimb@zwingli.cygnus.com>
4070
4071 * rs6000-tdep.c (variants): Fix description of 750 register set.
4072 (Thanks to J. T. Conklin.)
4073
4074 Wed Jun 2 16:10:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
4075
4076 * gdbarch.h, gdbarch.c: Add multi-arch support for
4077 STORE_STRUCT_RETURN, STORE_RETURN_VALUE,
4078 EXTRACT_STRUCT_VALUE_ADDRESS, USE_STRUCT_CONVENTION,
4079 FRAME_INIT_SAVED_REGS and INIT_EXTRA_FRAME_INFO.
4080 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
4081
4082 * config/d10v/tm-d10v.h (FRAME_INIT_SAVED_REGS): Replace
4083 FRAME_FIND_SAVED_REGS.
4084 (d10v_frame_init_saved_regs): Replace d10v_frame_find_saved_regs.
4085 * d10v-tdep.c (d10v_pop_frame, d10v_frame_chain,
4086 d10v_frame_init_saved_regs): Update.
4087 * gdbarch.h: Disallow FRAME_FIND_SAVED_REGS when multi-arch.
4088
4089 * gdbarch.h, gdbarch.c: Add multi-arch support for
4090 D10V_MAKE_DADDR, D10V_MAKE_IADDR, D10V_DADDR_P, D10V_IADDR_P,
4091 D10V_CONVERT_DADDR_TO_RAW and D10V_CONVERT_IADDR_TO_RAW.
4092 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
4093
4094 * config/d10v/tm-d10v.h (EXTRA_FRAME_INFO): Delete.
4095 * d10v-tdep.c (struct frame_extra_info): Define.
4096 (d10v_init_extra_frame_info, d10v_pop_frame, d10v_frame_chain,
4097 d10v_frame_find_saved_regs): Update.
4098 * gdbarch.h: Disallow EXTRA_FRAME_INFO when multi-arch.
4099
4100 Tue Jun 1 13:36:31 1999 Philippe De Muyter <phdm@macqel.be>
4101
4102 * config/m68k/tm-delta68.h (FRAME_NUM_ARGS): Macro prototype fixed.
4103 * config/m68k/tm-news.h, config/ns32k/tm-merlin.h: Ditto.
4104 * config/ns32k/tm-umax.h (FRAME_NUM_ARGS): Old macro definition
4105 removed; new macro prototype fixed.
4106
4107 Wed Jun 2 11:18:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
4108
4109 * gdbarch.h, gdbarch.c: Add multi-arch support for
4110 EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS, PUSH_DUMMY_FRAME,
4111 PUSH_RETURN_ADDRESS, POP_FRAME, FRAME_FIND_SAVED_REGS.
4112 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
4113
4114 * gdbarch.h, gdbarch.c: Add multi-arch support for
4115 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4116 REGISTER_CONVERT_TO_RAW.
4117 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
4118
4119 * defs.h (REGISTER_NAME): Move compatibility definition from here.
4120 * gdbarch.h: To here.
4121
4122 * frame.h, blockframe.c (generic_fix_call_dummy): New
4123 stub function.
4124 * gdbarch.h, gdbarch.c: Add multi-arch support for FIX_CALL_DUMMY.
4125 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
4126
4127 Tue Jun 1 20:06:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
4128
4129 * d10v-tdep.c (d10v_gdbarch_init): Set get_saved_register.
4130 * config/d10v/tm-d10v.h: Update.
4131
4132 Tue Jun 1 19:50:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
4133
4134 * gdbarch.h, gdbarch.c: Add multi-arch support for TARGET_READ_PC,
4135 TARGET_WRITE_PC, TARGET_READ_FP, TARGET_WRITE_FP, TARGET_READ_SP
4136 and TARGET_WRITE_SP.
4137 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
4138
4139 Tue Jun 1 19:19:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
4140
4141 * gdbarch.c (default_gdbarch): Set field GET_SAVED_REGISTER to
4142 generic_get_saved_register.
4143 * gdbarch.c: Change update dispatch functions so that they check
4144 for a NULL function pointer.
4145
4146 Tue Jun 1 19:19:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
4147
4148 * gdbarch.h, gdbarch.c: Add multi-arch support for TARGET_INT_BIT,
4149 TARGET_CHAR_BIT, TARGET_SHORT_BIT, TARGET_FLOAT_BIT,
4150 TARGET_DOUBLE_BIT and TARGET_LONG_DOUBLE_BIT.
4151 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
4152
4153 Tue Jun 1 18:47:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
4154
4155 * parse.c (build_parse): New function. Initialize
4156 msym_text_symbol_type, msym_data_symbol_type and
4157 msym_unknown_symbol_type.
4158 (_initialize_parse): Call build_parse.
4159 (_initialize_parse): Register variables msym_text_symbol_type,
4160 msym_data_symbol_type as msym_unknown_symbol_type as
4161 per-architecture.
4162
4163 Tue Jun 1 11:30:09 1999 Andrew Cagney <cagney@b1.cygnus.com>
4164
4165 * d10v-tdep.c (_initialize_d10v_tdep): Register d10v as an
4166 architecture.
4167 (d10v_gdbarch_init): New function.
4168 * confg/d10v/tm-d10v.h (GDB_MULTI_ARCH): Define.
4169
4170 Tue Jun 1 10:45:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
4171
4172 * config/d10v/tm-d10v.h (REGISTER_CONVERTIBLE,
4173 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERT_TO_VIRTUAL): Convert
4174 macros into functions.
4175 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_register_convertable,
4176 d10v_register_convert_to_virtual, d10v_register_convert_to_raw):
4177 The new functions.
4178
4179 1999-05-31 Fernando Nasser <fnasser@totem.to.cygnus.com>
4180
4181 * stack.c (print_args_stub): Add missing stream parameter.
4182
4183 Mon May 31 15:50:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
4184
4185 Fri May 28 16:51:00 1999 Martin Dorey <martin.dorey@madge.com>:
4186 * valops.c, value.h (default_push_arguments): Fix order of
4187 parameters to match PUSH_ARGUMENTS arguments.
4188
4189 Thu May 27 11:42:55 1999 Andrew Cagney <cagney@b1.cygnus.com>
4190
4191 * gdbarch.h (EXTRACT_STRUCT_VALUE_ADDRESS): Return 0.
4192
4193 * valops.c (value_assign): Delete redundant test of
4194 REGISTER_CONVERTIBLE.
4195
4196 Thu May 27 11:33:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
4197
4198 * config/w65/tm-w65.h, config/tic80/tm-tic80.h, config/sh/tm-sh.h,
4199 config/i386/tm-i386m3.h, config/i386/tm-go32.h,
4200 config/i386/tm-cygwin.h, config/h8500/tm-h8500.h,
4201 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h: Delete definition of
4202 macro NAMES_HAVE_UNDERSCORE.
4203
4204 Thu May 27 09:31:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
4205
4206 * gdbarch.h (EXTRACT_STRUCT_VALUE_ADDRESS,
4207 EXTRACT_STRUCT_VALUE_ADDRESS_P): Provide default definitions.
4208 * values.c (value_being_returned): Use
4209 EXTRACT_STRUCT_VALUE_ADDRESS when EXTRACT_STRUCT_VALUE_ADDRESS_P.
4210
4211 Wed May 26 13:51:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
4212
4213 * utils.c (tui_file_new, tui_file_delete, tui_fileopen): New
4214 functions.
4215 (tui_file_isatty): Rename gdb_file_isatty.
4216 (gdb_file_init_astring): Use tui_file_new to create stream.
4217 (gdb_file_get_strbuf, gdb_file_adjust_strbuf): Call gdb_file_data
4218 to access the tui_stream.
4219 (tui_file_flush): Rename gdb_flush. Call gdb_file_data to access
4220 the tui_stream. Pass FILE and not STREAM down.
4221
4222 * utils.c (struct stdio_file, stdio_file_flush, stdio_file_fputs,
4223 stdio_file_isatty, stdio_file_delete, stdio_file_new,
4224 stdio_fileopen): Define type and functions. Implement a simple
4225 STDIO based gdb_file.
4226 (struct gdb_file, gdb_file_new, gdb_file_delete, null_file_isatty,
4227 null_file_flush, null_file_fputs, null_file_delete, gdb_file_data,
4228 set_gdb_file_flush, set_gdb_file_isatty, set_gdb_file_fputs,
4229 set_gdb_file_data, fputs_unfiltered, gdb_flush, gdb_file_isatty):
4230 Define type and functions. Implement virtual functions for
4231 gdb_file.
4232
4233 * defs.h (struct gdb_file): Declare.
4234 (GDB_FILE): Change type to struct gdb_file. Deprecate.
4235 (gdb_file_flush_ftype, gdb_file_fputs_ftype,
4236 gdb_file_isatty_ftype, gdb_file_delete_ftype): Add function type
4237 declarations.
4238
4239 * defs.h (set_gdb_file_flush, set_gdb_file_fputs,
4240 set_gdb_file_isatty, set_gdb_file_data, gdb_file_new,
4241 gdb_file_delete, gdb_file_data, stdio_fileopen, tui_fileopen): Add
4242 function declarations.
4243 (gdb_fopen): Re-implement. Call stdio_file_new.
4244 (gdb_fclose): Re-implement. Call gdb_file_delete.
4245
4246 * main.c (tui_file_fputs): Rename fputs_unfiltered. Use
4247 gdb_file_data to gain access to the tui_stream data. Use FILE
4248 instead of STREAM where applicable.
4249 (main): Create gdb_stdout and gdb_stderr using tui_fileopen.
4250
4251 * defs.h (struct tui_stream): Add field ts_magic.
4252 * utils.c (tui_file_magic): Local variable.
4253 (tui_file_new): Set field ts_magic.
4254 (tui_file_delete, tui_file_isatty, gdb_file_init_astring,
4255 gdb_file_get_strbuf, gdb_file_adjust_strbuf, tui_file_flush):
4256 Verify ts_magic.
4257
4258 1999-05-25 Jim Blandy <jimb@zwingli.cygnus.com>
4259
4260 * breakpoint.c (insert_breakpoints, remove_breakpoint,
4261 breakpoint_1): Add a 'default' case, which prints a warning
4262 message, to remove EGCS warnings.
4263
4264 1999-05-25 Fernando Nasser <fnasser@totem.to.cygnus.com>
4265
4266 * utils.c (gdb_file_adjust_strbuf): Take into account the
4267 possibility that the buffer has not been allocated yet.
4268
4269 Tue May 25 16:05:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
4270
4271 * gdbarch.h (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
4272 REGISTER_CONVERT_TO_RAW): Provide default definition.
4273
4274 * valops.c (value_assign), infcmd.c (do_registers_info), findvar.c
4275 (value_from_register, value_of_register): Remove #ifdef
4276 REGISTER_CONVERTIBLE. Assume REGISTER_CONVERTIBLE etc defined.
4277
4278 1999-05-25 Keith Seitz <keiths@cygnus.com>
4279
4280 * config/mcore/tm-mcore.h (FRAME_NUM_ARGS): Re-write definition of
4281 FRAME_NUM_ARGS so that it returns NUM_ARGS as a result instead of
4282 setting a variable as a side effect.
4283
4284 Tue May 25 16:18:25 1999 Andrew Cagney <cagney@amy.cygnus.com>
4285
4286 * remote-d10v.c (d10v_eva_prepare_to_trace,
4287 d10v_eva_get_trace_data), remote-sim.c (_initialize_remote_sim):
4288 Add declaraton. Make static.
4289
4290 * remote-d10v.c (_initialize_remote_d10v), d10v-tdep.c
4291 (_initialize_d10v_tdep): Add declaration.
4292 * config/d10v/tm-d10v.h (d10v_frame_chain): Add declaration.
4293
4294 Tue May 25 15:20:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
4295
4296 * main.c (init_proc, proc_remove_foreign): Delete function.
4297 * inftarg.c (child_mourn_inferior): Update. Delete call to
4298 proc_remove_foreign().
4299 * top.c (gdb_init): Update. Delete call to init_proc().
4300
4301 * utils.c (pollquit, fmthex, hexlate): Delete function.
4302
4303 Tue May 25 13:01:43 1999 Andrew Cagney <cagney@amy.cygnus.com>
4304
4305 * main.c (gdb_init): Move declaration from here.
4306 * top.h: To here.
4307
4308 * defs.h (init_page_info): Add declaration.
4309
4310 * top.c (initialize_utils): Move declaration from here.
4311 * defs.h: To here.
4312
4313 * infcmd.c (target_map_name_to_register): Move declaration from
4314 here.
4315 * parser-defs.h: To here.
4316
4317 * c-typeprint.c (cp_type_print_method_args), target.c
4318 (nosupport_runtime, normal_target_post_startup_inferior): Add
4319 declaration. Make static.
4320
4321 Tue May 25 13:53:23 1999 Andrew Cagney <cagney@amy.cygnus.com>
4322
4323 * main.c: Include "event-loop.h".
4324 * Makefile.in (main.o): Add dependency.
4325
4326 * top.h (setup_event_loop, async_init_signals), top.c
4327 (set_async_editing_command, set_async_annotation_level,
4328 set_async_prompt), event-loop.c (display_gdb_prompt): Move
4329 declarations from here.
4330 * event-loop.h: To here.
4331
4332 * event-loop.h (delete_async_signal_handler): Add function
4333 declaration.
4334
4335 * event-top.c (change_annotation_level, command_handler): Add
4336 declaration. Make static.
4337
4338 Tue May 25 12:44:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
4339
4340 * tracepoint.c (free_actions_list, add_register): Add declaration.
4341 Make static.
4342 (free_actions_list_cleanup_wrapper): New function. Wraps
4343 free_actions_list for make_cleanup.
4344 (trace_start_command): Pass free_actions_list_cleanup_wrapper
4345 instead of free_actions_list to make_cleanup.
4346 (_initialize_tracepoint): Add extern declaration.
4347
4348 Tue May 25 12:23:39 1999 Andrew Cagney <cagney@amy.cygnus.com>
4349
4350 * jv-typeprint.c (java_type_print_base, jv-valprint.c
4351 (java_print_value_fields): Add static declaration.
4352
4353 * jv-lang.c (java_lookup_type, get_java_utf8_name,
4354 java_lookup_type): Add static declaration.
4355 (get_java_class_symtab, java_class_is_primitive,
4356 java_value_string): Add declaration. Make static.
4357 (java_rerun_cleanup): Add extern declaration for this stub
4358 function.
4359
4360 Tue May 25 12:06:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
4361
4362 * gdbarch.h: When multi-arch, check that REGISTER_NAMES was not
4363 defined.
4364
4365 Mon May 24 16:16:29 1999 Andrew Cagney <cagney@amy.cygnus.com>
4366
4367 * inflow.c (_initialize_inflow), annotate.c
4368 (_initialize_annotate), os9kread.c (_initialize_os9kread),
4369 serial.c (_initialize_serial), nlmread.c (_initialize_nlmread),
4370 f-valprint.c (_initialize_f_valprint), cp-valprint.c
4371 (_initialize_cp_valprint), typeprint.c (_initialize_typeprint),
4372 complaints.c (_initialize_complaints), scm-lang.c
4373 (_initialize_scheme_language), m2-lang.c
4374 (_initialize_m2_language), dbxread.c (_initialize_dbxread),
4375 f-lang.c (_initialize_f_language), ch-lang.c
4376 (_initialize_chill_language), c-lang.c (_initialize_c_language),
4377 corefile.c (_initialize_core), stabsread.c
4378 (_initialize_stabsread), mipsread.c (_initialize_mipsread),
4379 elfread.c (_initialize_elfread), coffread.c
4380 (_initialize_coffread), maint.c (_initialize_maint_cmds),
4381 demangle.c (_initialize_demangler), maint.c
4382 (_initialize_maint_cmds), language.c (_initialize_language): Add
4383 external declaration.
4384
4385 Mon May 24 10:04:56 1999 Andrew Cagney <cagney@b1.cygnus.com>
4386
4387 * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/v850/tm-v850.h,
4388 config/tic80/tm-tic80.h, config/tahoe/tm-tahoe.h,
4389 config/rs6000/tm-rs6000.h, config/sparc/tm-sparc.h,
4390 config/sh/tm-sh.h, config/pyr/tm-pyr.h, config/pa/tm-hppa.h,
4391 config/ns32k/tm-merlin.h, config/mn10300/tm-mn10300.h,
4392 config/mn10200/tm-mn10200.h, config/mips/tm-mips.h,
4393 config/m88k/tm-m88k.h, config/m68k/tm-news.h,
4394 config/m68k/tm-delta68.h, config/m68k/tm-isi.h,
4395 config/m68k/tm-m68k.h, config/m32r/tm-m32r.h,
4396 config/i960/tm-i960.h, config/i386/tm-i386v.h,
4397 config/i386/tm-i386.h, config/h8500/tm-h8500.h,
4398 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
4399 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h,
4400 config/convex/tm-convex.h, config/arc/tm-arc.h,
4401 config/arm/tm-arm.h, config/alpha/tm-alpha.h,
4402 config/a29k/tm-a29k.h: Re-write definition of FRAME_NUM_ARGS so
4403 that it returns NUM_ARGS as a result instead of setting a variable
4404 as a side effect.
4405
4406 * ns32k-tdep.c (merlin_frame_num_args), tahoe-tdep.c
4407 (tahoe_frame_num_args), vax-tdep.c (vax_frame_num_args),
4408 m68k-tdep.c (news_frame_num_args, delta68_frame_num_args,
4409 isi_frame_num_args), convex-tdep.c (convex_frame_num_args): New
4410 functions.
4411
4412 * stack.c (print_args_stub): Update use of FRAME_NUM_ARGS.
4413
4414 Mon May 24 11:57:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
4415
4416 * remote.c (remote_xfer_memory): Re-write with assumption that
4417 REMOTE_TRANSLATE_XFER_ADDRESS is defined. Pass targ_addr and
4418 targ_len by reference.
4419 (REMOTE_TRANSLATE_XFER_ADDRESS): Provide default definition.
4420
4421 * remote-d10v.c (remote_d10v_translate_xfer_address): Update.
4422 * config/d10v/tm-d10v.h (REMOTE_TRANSLATE_XFER_ADDRESS): Update.
4423
4424 Mon May 24 12:10:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
4425
4426 * value.h (default_push_arguments): Add function declaration.
4427
4428 * alpha-tdep.c (alpha_about_to_return), gdbarch.c (verify_gdbarch,
4429 arch_ok, set_arch), command.c (find_cmd), infrun.c
4430 (follow_inferior_fork, follow_fork, follow_vfork,
4431 set_schedlock_func, is_internal_shlib_eventpoint,
4432 stopped_for_internal_shlib_event, stopped_for_shlib_catchpoint,
4433 xdb_handle_command), infcmd.c (run_no_args_command, go_command),
4434 symfile.c (add_filename_language, set_ext_lang_command,
4435 info_ext_lang_command, init_filename_language_table), symtab.c
4436 (overload_list_add_symbol), defs.h (default_get_saved_register),
4437 ax-general.c (grow_expr, append_const, read_const, generic_ext):
4438 Ditto.
4439
4440 * infrun.c (currently_stepping): Ditto. Make static.
4441
4442 * valops.c (hand_function_call): Explictly type static variable
4443 ``checked''.
4444
4445 Mon May 24 08:36:18 1999 Andrew Cagney <cagney@b1.cygnus.com>
4446
4447 * d10v-tdep.c (d10v_breakpoint_from_pc, d10v_register_name,
4448 d10v_register_byte, d10v_register_raw_size,
4449 d10v_register_virtual_size, d10v_register_virtual_type,
4450 d10v_make_daddr, d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
4451 d10v_convert_iaddr_to_raw, d10v_convert_daddr_to_raw,
4452 d10v_store_struct_return, d10v_store_return_value,
4453 d10v_extract_struct_value_address, d10v_frame_saved_pc,
4454 d10v_frame_args_address, d10v_frame_locals_address,
4455 d10v_saved_pc_after_call): New functions.
4456
4457 * config/d10v/tm-d10v.h (REGISTER_BYTE, REGISTER_RAW_SIZE,
4458 REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN,
4459 D10V_MAKE_DADDR, D10V_MAKE_IADDR, D10V_DADDR_P, D10V_IADDR_P,
4460 D10V_CONVERT_DADDR_TO_RAW, D10V_CONVERT_IADDR_TO_RAW,
4461 STORE_STRUCT_RETURN, STORE_RETURN_VALUE,
4462 EXTRACT_STRUCT_VALUE_ADDRESS, SAVED_PC_AFTER_CALL, FRAME_SAVED_PC,
4463 FRAME_ARGS_ADDRESS): Re-define using new functions.
4464
4465 * config/d10v/tm-d10v.h (BREAKPOINT_FROM_PC): Replace BREAKPOINT.
4466 (REGISTER_NAME): Replace REGISTER_NAMES.
4467
4468 * utils.c (core_addr_lessthan, core_addr_greaterthan): New
4469 functions.
4470 * defs.h (core_addr_lessthan, core_addr_greaterthan): Declare.
4471
4472 Sat May 22 16:44:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
4473
4474 * utils.c (n_spaces): Handle case where first call has N equal to
4475 zero.
4476 (print_spaces): Use n_spaces.
4477
4478 Fri May 21 11:23:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
4479
4480 * valops.c (value_push): Remove conditional definition based on
4481 absense of macro PUSH_ARGUMENTS. Pass SP and STRUCT_ADDR by
4482 reference.
4483 (default_push_arguments): New function.
4484
4485 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
4486 config/sparc/tm-sparc.h, config/sparc/tm-sp64.h,
4487 config/sh/tm-sh.h, config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
4488 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
4489 config/mips/tm-mips.h, config/m32r/tm-m32r.h,
4490 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
4491 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h, config/arm/tm-arm.h,
4492 config/alpha/tm-alpha.h: Update definition of PUSH_ARGUMENTS.
4493 Return updated SP.
4494
4495 * rs6000-tdep.c (rs6000_push_arguments): Rename push_arguments.
4496
4497 Thu May 20 12:18:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
4498
4499 * blockframe.c (get_prev_frame): Remove #ifdef around test for
4500 FRAMELESS_FUNCTION_INVOCATION.
4501 (get_prev_frame): Change FRAMELESS_FUNCTION_INVOCATION call to a
4502 function invocation.
4503 * i386-tdep.c (i386_frame_num_args), stack.c (frame_info): Ditto.
4504 * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/vax/tm-vax.h,
4505 config/sparc/tm-sparc.h, config/sh/tm-sh.h,
4506 config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
4507 config/mips/tm-mips.h, config/m88k/tm-m88k.h,
4508 config/m68k/tm-m68k.h, config/i960/tm-i960.h,
4509 config/i386/tm-sun386.h, config/i386/tm-i386v.h,
4510 config/i386/tm-i386.h, config/h8500/tm-h8500.h,
4511 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
4512 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h,
4513 config/convex/tm-convex.h, config/arm/tm-arm.h,
4514 config/arc/tm-arc.h, config/alpha/tm-alpha.h,
4515 config/a29k/tm-a29k.h: Update FRAMELESS_FUNCTION_INVOCATION.
4516 * fr30-tdep.c (fr30_frameless_function_invocation), convex-tdep.c
4517 (convex_frameless_function_invocation), arm-tdep.c
4518 (arm_frameless_function_invocation): New functions.
4519
4520 1999-05-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4521
4522 * top.c: Change dates in comments to ISO format.
4523
4524 * event-top.c: Ditto.
4525 * event-loop.c: Ditto.
4526 * main.c: Ditto.
4527
4528 1999-05-19 Keith Seitz <keiths@cygnus.com>
4529
4530 * config/mcore/tm-mcore.h (BELIEVE_PCC_PROMOTION): Define. We
4531 really do want to believe what gcc tells us about types...
4532
4533 1999-05-19 Keith Seitz <keiths@cygnus.com>
4534
4535 * config/mcore/tm-mcore.h (FRAME_ARGS_ADDRESS): Define to a function.
4536 (FRAME_LOCALS_ADDRESS): Ditto.
4537 * mcore-tdep.c (mcore_frame_args_addcress): New function.
4538 (mcore_frame_locals_address): New function.
4539
4540 * monitor.c (monitor_open): Only assume we have eight
4541 breakpoints if the monitor implementation does not tell
4542 us how many there really are. Alloc memory for these
4543 dynamically.
4544 (monitor_close): Free memory associated with breakpoint
4545 storage.
4546 (monitor_insert_breakpoint): Don't rely on a hardcoded
4547 number of breakpoints.
4548 (monitor_remove_breakpoint): Ditto.
4549 (NUM_MONITOR_BREAKPOINTS): Removed and replaced with monitor_ops
4550 specification.
4551 * monitor.h (struct monitor_ops): Add new member so that the
4552 individual monitor implementations can tell us how many
4553 breakpoints the monitor supports.
4554
4555 * mcore-rom.c (init_picobug_cmds): Add number of breakpoints supported
4556 by picobug monitor.
4557
4558 1999-05-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4559
4560 From Philippe De Muyter <phdm@macqel.be>:
4561 * event-loop.h: Include sys/wait.h only if HAVE_SYS_WAIT_H.
4562
4563 1999-05-17 Keith Seitz <keiths@cygnus.com>
4564
4565 * configure.tgt: Add MCore target.
4566 * Makefile.in: Add mcore-tdep.c and mcore-rom.c
4567 * config/mcore/tm-mcore.h: New file.
4568 * config/mcore/mcore.mt: New file.
4569 * mcore-rom.c: New file.
4570 * mcore-tdep.c: New file.
4571
4572 1999-05-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
4573
4574 * top.c (print_command_line): Added the missing stream argument.
4575 * gdbcmd.h: Added argument to prototype.
4576 * command.c: Fixed call to include extra argument.
4577 * breakpoint.c: Same.
4578
4579 1999-05-14 Jim Blandy <jimb@zwingli.cygnus.com>
4580
4581 Targets are #defining PREPARE_TO_PROCEED with inconsistent numbers
4582 of arguments. Since the Mach 3 target needs an argument, we'll
4583 make things consistent by adding an argument everywhere.
4584 * infrun.c (proceed): Pass an argument to PREPARE_TO_PROCEED.
4585 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Add ignored argument
4586 to definition.
4587
4588 1999-05-11 Stan Shebs <shebs@andros.cygnus.com>
4589
4590 Fri Apr 23 13:27:34 PDT 1999 Toshiyasu Morita (tm@netcom.com)
4591 * sh-stub.c: Mostly localize processor dependencies.
4592
4593 1999-05-10 Martin Hunt <hunt@cygnus.com>
4594
4595 * debugify.c, debugify.h: Removed because they are no
4596 longer used.
4597
4598 1999-05-08 Jim Blandy <jimb@zwingli.cygnus.com>
4599
4600 * infrun.c (_initialize_infrun): Handle TARGET_SIGNAL_LWP,
4601 TARGET_SIGNAL_WAITING, and TARGET_SIGNAL_CANCEL like SIGALRM or
4602 SIGIO --- pass them through to the inferior silently.
4603 * target.h (enum target_signals): Add TARGET_SIGNAL_CANCEL, for
4604 Solaris's SIGCANCEL.
4605 * target.c (target_signal_from_host, target_signal_to_host): Add
4606 mapping between SIGCANCEL and TARGET_SIGNAL_CANCEL.
4607 (signals): Add entry for SIGCANCEL.
4608
4609 1999-05-07 Stan Shebs <shebs@andros.cygnus.com>
4610
4611 After years of talking about it, finally break up the
4612 wait_for_inferior loop.
4613 * infrun.c (struct execution_control_state): New struct,
4614 holds what used to be local vars governing wfi behavior.
4615 (init_execution_control_state): New function, was code in
4616 wfi that set up execution control state.
4617 (handle_inferior_event): New function, was body of main
4618 wfi loop. Rewrite all local var references to go through
4619 the ecs structure passed into this function.
4620 (wait_for_inferior): Rewrite to set up and use execution control
4621 state, and to call the new functions.
4622 (currently_stepping): New function, was the macro
4623 CURRENTLY_STEPPING.
4624 (enum infwait_states): Rename from wfi_states.
4625 (infwait_normal_state, etc): Similarly.
4626
4627 Thu May 6 15:25:32 1999 Philippe De Muyter <phdm@macqel.be>
4628
4629 * coffread.c (coff_symtab_read): Call `record_line' with the line
4630 number of the ".bf" symbol only for one-line functions.
4631
4632 1999-05-06 Michael Snyder <msnyder@cleaver.cygnus.com>
4633
4634 * Makefile.in: thread.o depends on target.h.
4635
4636 1999-05-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4637
4638 * event-top.c (change_line_handler): Use POLLIN instead of
4639 POLLRDNORM, for compatibility with Linux.
4640 (setup_event_loop): Ditto.
4641
4642 1999-05-06 Jim Blandy <jimb@zwingli.cygnus.com>
4643
4644 * mips-tdep.c (heuristic_proc_start): Rewrite cryptic error
4645 message about hitting the "heuristic fence post" with something
4646 that actually gives the user a fighting chance of figuring out
4647 why GDB is unhappy.
4648
4649 1999-05-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4650
4651 * top.c: Include event-loop.h.
4652 (init_main): Add async version of 'set prompt' command.
4653 If in async mode define the editing and annotate set
4654 commands in a different way.
4655 Initialize new variable asyn_command_editing_p to 1.
4656 Initialize the gdb prompt for async mode.
4657 (quit_cover): Make not static, for use by the event loop.
4658 (gdb_init): Call async_init_signals for the asynchronous case.
4659 (source_line_number, source_file_name, source_error,
4660 source_pre_error, history_expansion_p): Make non-static, so
4661 event-top.c can use them.
4662 (command_loop_marker): Make non-static, for use in event-top.c.
4663 Include event-loop.h.
4664
4665 * top.h: Add prototype for async_init_signals.
4666 (SET_TOP_LEVEL): Move here from main.c.
4667 Add setup_event_loop to exported functions.
4668
4669 * defs.h: Add async_hook to exported variables.
4670
4671 * main.c (SET_TOP_LEVEL): Move to top.h, so that it is visible in
4672 event-loop.c. Add new global variable async to determine whether
4673 we are running in async mode or not.
4674 (main): Add support for --async switch. Use async_hook to call
4675 setup_event_loop, when running in async mode.
4676
4677 * event-top.c: New file. Gdb input line handler and command line
4678 handler for the event loop. Initialization of signal handlers.
4679 All the handled signals have handlers called handle_<signalname>.
4680 Set up all the appropriate tokens for asynchronous signal
4681 handling.
4682
4683 * event-loop.h: New file. Data structures and definitions for the
4684 event loop.
4685
4686 * event-loop.c: New file. Functions for the event loop
4687 implementation.
4688
4689 * config.in: Regenerate with autoheader.
4690
4691 * configure.in (AC_CHECK_FUNCS): Add poll to list of functions
4692 to be checked for.
4693
4694 * configure: Regenerate.
4695
4696 * Makefile.in (SFILES): Add new source files.
4697 (eventloop_h): Define.
4698 (COMMON_OBS): Add new object files.
4699 (event-loop.o): Add rule for target object.
4700 (event-top.o): Ditto.
4701
4702 1999-05-05 Stan Shebs <shebs@andros.cygnus.com>
4703
4704 * infrun.c (wait_for_inferior): Transform breaks and continues
4705 into gotos, move the target_wait to the very top of the loop.
4706
4707 1999-05-05 Jonathan Larmour <jlarmour@cygnus.co.uk>
4708
4709 * configure.in: Ensure that GDB links with libuser32.a under
4710 cygwin because libreadline requires it.
4711 * Makefile.in (WIN32LIBS): Substitute in result from configure
4712 * configure: regenerate
4713
4714 1999-05-04 Jim Blandy <jimb@zwingli.cygnus.com>
4715
4716 Fix from John Rigby. Richard Henderson says it seems okay.
4717 * alpha-tdep.c (PROC_DUMMY_FRAME): As long as we're abusing fields
4718 of (proc)->pdr, we ought to at least abuse one large enough to
4719 hold the value we're trying to store in it. iopt is only 32 bits
4720 wide; cbLineOffset is a bfd_vma.
4721
4722 1999-05-04 DJ Delorie <dj@cygnus.com>
4723
4724 DJGPP changes from Robert Hoehne <robert.hoehne@gmx.net>
4725
4726 * ser-go32.c: correct includes
4727 * source.c (openp): use ROOTED_P instead of SLASH_P
4728 * go32-nat.c: enhance exception and NPX handling
4729 (go32_kill_inferior): fix small bug killing inferior
4730 * configure.in: don't look for termcap with djgpp
4731 * configure: rebuild
4732
4733 1999-05-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4734
4735 * main.c (main): Comment out unused and undocumented command line
4736 option '-'.
4737
4738 1999-04-30 Jim Blandy <jimb@zwingli.cygnus.com>
4739
4740 Cleanup from Philippe De Muyter:
4741 * configure.in (BFD_NEED_DECLARATION): Check also for strstr.
4742 * acconfig.h (NEED_DECLARATION_MALLOC, NEED_DECLARATION_REALLOC,
4743 NEED_DECLARATION_FREE, NEED_DECLARATION_STRERROR): Define slots
4744 removed; they are now generated automatically.
4745 * gdb_string.h (strstr): Provide function prototype if
4746 NEED_DECLARATION_STRSTR.
4747 * configure, config.in: Regenerated.
4748
4749 Fri Apr 30 11:16:09 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
4750
4751 * target.h (to_find_new_threads): new target ops vector.
4752 (target_find_new_threads): define.
4753 * target.c (update_current_target): inherit new target ops vector.
4754 * remote.c: Setup to_find_new_threads vector.
4755 * sol-thread.c: ditto.
4756 * thread.c (target_find_new_threads): rename: local_find_new_threads.
4757 (info_threads_command): call target_find_new_threads by new method,
4758 as a target ops vector, rather than previous macro definition method.
4759 * infcmd.c (go_command): define only if in xdb mode.
4760 * procfs.c: fix typo in comment.
4761
4762 Fri Apr 30 01:02:05 1999 Jeffrey A Law (law@cygnus.com)
4763
4764 * hppah-nat.c: Fix various coding convention violations introduced
4765 by HP.
4766 (child_acknowledge_created_inferior): Do nothing if PT_SET_EVENT_MASK
4767 is not defined.
4768
4769 1999-04-28 Stan Shebs <shebs@andros.cygnus.com>
4770
4771 * TODO: Add some items inspired by review of the manual.
4772
4773 Tue Apr 27 17:38:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
4774
4775 * config/z8k/tm-z8k.h, config/v850/tm-v850.h,
4776 config/tic80/tm-tic80.h, config/sparc/tm-sparc.h,
4777 config/sh/tm-sh.h, config/pyr/tm-pyr.h, config/pa/tm-hppa.h,
4778 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
4779 config/mips/tm-mips.h, config/m88k/tm-m88k.h,
4780 config/m68k/tm-m68k.h, config/m32r/tm-m32r.h,
4781 config/i960/tm-i960.h, config/i386/tm-i386.h,
4782 config/h8500/tm-h8500.h, config/h8300/tm-h8300.h,
4783 config/fr30/tm-fr30.h, config/d30v/tm-d30v.h,
4784 config/d10v/tm-d10v.h, config/alpha/tm-alpha.h,
4785 config/arm/tm-arm.h, config/a29k/tm-a29k.h, config/arc/tm-arc.h:
4786 Change SKIP_PROLOGUE and SKIP_PROLOGUE_FRAMELESS_P macros so that
4787 they return the new address.
4788
4789 * sparc-tdep.c (sparc_skip_prologue), hppa-tdep.c
4790 (hppa_skip_prologue), m88k-tdep.c
4791 (m88k_skip_prologue), i960-tdep.c
4792 (i960_skip_prologue), arc-tdep.c
4793 (arc_skip_prologue), a29k-tdep.c (a29k_skip_prologue): Rename
4794 skip_prologue function.
4795
4796 * config/m68k/tm-isi.h: Convert macro SKIP_PROLOGUE into a new
4797 function.
4798 * m68k-tdep.c (isi_skip_prologue): That new function.
4799 * vax-tdep.c (vax_skip_prologue), config/vax/tm-vax.h: Ditto.
4800 * tahoe-tdep.c (tahoe_skip_prologue), config/tahoe/tm-tahoe.h: Ditto.
4801 * rs6000-tdep.c (rs6000_skip_prologue), config/rs6000/tm-rs6000.h:
4802 Ditto.
4803 * ns32k-tdep.c (umax_skip_prologue), config/ns32k/tm-umax.h: Ditto.
4804 * config/ns32k/tm-merlin.h, ns32k-tdep.c (merlin_skip_prologue):
4805 Ditto.
4806 * config/m68k/tm-altos.h, m68k-tdep.c (altos_skip_prologue): Ditto.
4807 * config/convex/tm-convex.h, convex-tdep.c (convex_skip_prologue):
4808 Ditto.
4809
4810 * symtab.c (in_prologue, find_function_start_sal, decode_line_1),
4811 infrun.c (wait_for_inferior), blockframe.c
4812 (frameless_look_for_prologue): Update.
4813 * config/fr30/tm-fr30.h (FRAMELESS_FUNCTION_INVOCATION): Update.
4814
4815 1999-04-27 Stan Shebs <shebs@andros.cygnus.com>
4816
4817 * TODO: Remove item about DEBUG_EXPRESSIONS, no longer meaningful.
4818
4819 * infrun.c (enum wfi_state): New enum.
4820 (wait_for_inferior): Merge all but one of the target_wait calls
4821 into a single call, add a wfi_state variable to encode which of
4822 the calls is being made.
4823
4824 1999-04-26 Jim Blandy <jimb@zwingli.cygnus.com>
4825
4826 Fix from Dave Holcomb.
4827 * hpux-thread.c (init_hpux_thread_ops): Use the right function
4828 name when initializing hpux_thread_ops.to_thread_alive.
4829
4830 * coffread.c (coff_symfile_read): If we have a `.stab' section,
4831 but no `.stabstr' section, then print an error message; don't
4832 crash.
4833
4834 1999-04-26 Jim Blandy <jimb@zwingli.cygnus.com>
4835
4836 1999-04-25 Mark Kettenis <kettenis@gnu.org>
4837
4838 * gnu-nat.c (gnu_attach): Call target_terminal_init before calling
4839 inf_set_traced, since that function calls code that might try to
4840 restore the terminal settings.
4841
4842 Mon Apr 26 08:55:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
4843
4844 * gdbarch.h, gdbarch.c: More format cleanups.
4845
4846 Sun Apr 25 18:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
4847
4848 * gdbarch.h (CALL_DUMMY_STACK_ADJUST_P): Replace
4849 SIZEOF_CALL_DUMMY_STACK_ADJUST_P.
4850 (CALL_DUMMY_STACK_ADJUST): Replace
4851 SIZEOF_CALL_DUMMY_STACK_ADJUST_P.
4852 * gdbarch.c (gdbarch_call_dummy_stack_adjust,
4853 set_gdbarch_call_dummy_stack_adjust): Define.
4854
4855 Fri Apr 23 15:00:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
4856
4857 * gdbarch.c (arch_ok): New function. Fix logic test for a valid
4858 architecture.
4859 (set_arch): Use.
4860
4861 1999-04-22 Jason Molenda (jsm@bugshack.cygnus.com)
4862
4863 * README: Note that readline is not installed as a part of
4864 make install.
4865
4866 Thu Apr 22 21:02:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
4867
4868 * gdbarch.h, gdbarch.c (GET_SAVED_REGISTER, get_saved_register):
4869 Add.
4870 (struct gdbarch, verify_gdbarch, gdbarch_alloc, gdbarch_dump,
4871 default_gdbarch): Update.
4872
4873 * value.h (get_saved_register): Cleanup prototype.
4874 * findvar.c (default_get_saved_register): Rename function
4875 get_saved_register.
4876 (GET_SAVED_REGISTER): Define as default_get_saved_register when
4877 undefined.
4878 (get_saved_register): Always declare. Call GET_SAVED_REGISTER.
4879
4880 * sparc-tdep.c (sparc_get_saved_register): Rename function
4881 get_saved_register.
4882 * config/sparc/tm-sparc.h (GET_SAVED_REGISTER): Update.
4883 * a29k-tdep.c (a29k_get_saved_register): Rename function
4884 get_saved_register.
4885 * config/a29k/tm-a29k.h (GET_SAVED_REGISTER): Update.
4886
4887 * config/d10v/tm-d10v.h, config/powerpc/tm-ppc-eabi.h,
4888 config/h8300/tm-h8300.h, config/m32r/tm-m32r.h,
4889 config/mn10200/tm-mn10200.h, config/mn10300/tm-mn10300.h,
4890 config/sh/tm-sh.h, config/tic80/tm-tic80.h, config/v850/tm-v850.h:
4891 Update macro GET_SAVED_REGISTER so that it calls
4892 generic_get_saved_register.
4893 * v850-tdep.c, tic80-tdep.c, sh-tdep.c, mn10300-tdep.c,
4894 mn10200-tdep.c, m32r-tdep.c, h8300-tdep.c, rs6000-tdep.c: Delete
4895 function get_saved_register.
4896
4897 Thu Apr 22 13:32:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
4898
4899 * gdbarch.c: Cleanup. Re-order the definition of the ``struct
4900 gdbarch'' initialization functions so that maintenance is more
4901 straightforward.
4902
4903 Thu Apr 22 11:07:21 1999 Andrew Cagney <cagney@b1.cygnus.com>
4904
4905 * gdbarch.h, gdbarch.c (use_generic_dummy_frames,
4906 USE_GENERIC_DUMMY_FRAMES): Add.
4907 (struct gdbarch, verify_gdbarch, gdbarch_alloc, gdbarch_dump,
4908 default_gdbarch): Update.
4909
4910 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
4911 config/sh/tm-sh.h, config/powerpc/tm-ppc-eabi.h,
4912 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
4913 config/m32r/tm-m32r.h, config/h8300/tm-h8300.h,
4914 config/fr30/tm-fr30.h, config/d10v/tm-d10v.h: Give the
4915 USE_GENERIC_DUMMY_FRAMES macro the value one.
4916 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Default to a value of
4917 zero.
4918
4919 * blockframe.c (generic_find_dummy_frame,
4920 generic_pc_in_call_dummy, generic_read_register_dummy,
4921 generic_push_dummy_frame, generic_pop_current_frame,
4922 generic_pop_dummy_frame, generic_frame_chain_valid,
4923 generic_get_saved_register): Always define.
4924
4925 * breakpoint.c (frame_in_dummy): Convert #ifdef
4926 USE_GENERIC_DUMMY_FRAMES to runtime test.
4927
4928 * rs6000-tdep.c (pop_frame, push_arguments, push_arguments,
4929 push_arguments, frame_saved_pc, rs6000_frame_chain,
4930 rs6000_frame_chain): Convert #ifdef USE_GENERIC_DUMMY_FRAMES to
4931 runtime test.
4932 (get_saved_register): Always define.
4933
4934 Wed Apr 21 17:15:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
4935
4936 * gdbarch.c (gdbarch_dump): Fix robustness check on
4937 BELIEVE_PCC_PROMOTION_TYPE.
4938
4939 Wed Apr 21 15:39:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
4940
4941 * gdbarch.h (TARGET_BYTE_ORDER_SELECTABLE_P): When multi-arch,
4942 force selectable byte order.
4943 (CALL_DUMMY): Check for CALL_DUMMY definition when multi-arch. Are
4944 incompatible.
4945 * gdbarch.c (verify_gdbarch): Check call_dummy_stack_adjust.
4946
4947 Wed Apr 21 14:45:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
4948
4949 * gdbarch.c (gdbarch_update): Move dump-arch code from here.
4950 (gdbarch_dump): To here. Make more robust.
4951 * gdbarch.h (gdbarch_dump): Add prototype.
4952
4953 * gdbarch.c (enum set_arch): Declare.
4954 (set_arch): Add type parameter. Only disable
4955 ``target_architecture_auto'' when set_arch_manual.
4956 (set_architecture, set_architecture_from_arch_mach,
4957 set_architecture_from_file): Update.
4958 (set_arch): When ``gdbarch_debug'', gdbarch_dump() the current
4959 architecture.
4960
4961 Wed Apr 21 10:48:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
4962
4963 * frame.h (generic_pc_in_call_dummy): Make signature consistent
4964 with other pc_in_call_dummy functions by adding SP parameter.
4965 * blockframe.c (generic_pc_in_call_dummy): Update. Pass SP and
4966 not FP to generic_find_dummy_frame().
4967 * breakpoint.c (frame_in_dummy): Update.
4968 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
4969 config/sh/tm-sh.h, config/mn10300/tm-mn10300.h,
4970 config/mn10200/tm-mn10200.h, config/m32r/tm-m32r.h,
4971 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
4972 config/d10v/tm-d10v.h: Update PC_IN_CALL_DUMMY definition.
4973
4974 Tue Apr 20 12:15:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
4975
4976 * config/d10v/tm-d10v.h (GDB_TARGET_IS_D10V): Move from here.
4977 * gdbarch.h (GDB_TARGET_IS_D10V): To here. Implement using
4978 TARGET_ARCHITECTURE.
4979 (D10V_MAKE_DADDR, D10V_MAKE_IADDR): Provide fatal default
4980 definitions.
4981
4982 * valops.c (value_at): Replace #ifdef GDB_TARGET_IS_D10V code with
4983 runtime test.
4984 (value_fetch_lazy): Ditto.
4985 * values.c (unpack_long): Ditto.
4986 * printcmd.c (print_frame_args): Ditto.
4987
4988 Sat Apr 17 15:39:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
4989
4990 * gdbarch.h: Cleanup multi-arch comments.
4991
4992 Fri Apr 16 15:39:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
4993
4994 * gdbarch.h: Provide definition if GDB_MULTI_ARCH > 1 or
4995 GDB_MULTI_ARCH > 0 and no previous definition.
4996 * gdbarch.c (verify_gdbarch): Only verify a full multi-arch
4997 target.
4998
4999 1999-04-15 Stan Shebs <shebs@andros.cygnus.com>
5000
5001 * infrun.c (wait_for_inferior) [HAVE_STEPPABLE_WATCHPOINT,
5002 HAVE_NONSTEPPABLE_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT]: Test
5003 at runtime instead of compile time.
5004
5005 1999-04-14 Philippe De Muyter <phdm@macqel.be>
5006
5007 * breakpoint.c (maintenance_info_breakpoints): Function made
5008 static to match previous prototype.
5009
5010 * coffread.c (coff_record_line): Static function removed.
5011 (enter_linenos): Call `record_line' instead of `coff_record_line'.
5012 (FILE-LEVEL, coff_start_symtab, coff_end_symtab): `coff_record_line'
5013 -related stuff removed.
5014 (coff_symfile_read): Redundant statement removed.
5015 (coff_symtab_read): `record_line' is now called with the first line
5016 number of each function, given by the ".bf" symbol. This solves
5017 the line-number bug for one-line functions.
5018
5019 Wed Apr 14 11:09:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
5020
5021 * gdbarch.h (BELIEVE_PCC_PROMOTION_TYPE, BELIEVE_PCC_PROMOTION):
5022 Add multi-arch definitions.
5023 * gdbarch.c (gdbarch_believe_pcc_promotion,
5024 gdbarch_believe_pcc_promotion_type): New functions.
5025 (gdbarch_update): Update
5026 (struct gdbarch default_gdbarch): Update.
5027
5028 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Provide default.
5029 (define_symbol): Change #if BELIEVE_PCC_PROMOTION_TYPE and #if
5030 BELIEVE_PCC_PROMOTION to if().
5031
5032 1999-04-13 Jason Molenda (jsm@bugshack.cygnus.com)
5033
5034 * configure.in (HAVE_MULTIPLE_PROC_FDS): Don't define if we're
5035 on a Solaris host (of any architecture).
5036 * configure: Regenerated.
5037
5038 Wed Apr 14 08:23:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
5039
5040 * gdbarch.c (SET_GDBARCH, GET_GDBARCH, FSET_GDBARCH): New macros.
5041 (gdbarch_byte_order, gdbarch_long_bit, gdbarch_long_long_bit,
5042 gdbarch_ptr_bit, gdbarch_call_dummy_location,
5043 gdbarch_call_dummy_address, gdbarch_call_dummy_address,
5044 gdbarch_call_dummy_breakpoint_offset,
5045 gdbarch_call_dummy_breakpoint_offset, gdbarch_call_dummy_length,
5046 gdbarch_pc_in_call_dummy, dbarch_call_dummy_breakpoint_offset_p,
5047 dbarch_call_dummy_p, dbarch_call_dummy_words,
5048 dbarch_sizeof_call_dummy_words, dbarch_call_dummy_stack_adjust,
5049 dbarch_call_dummy_stack_adjust_p): Define using new macros.
5050
5051 1999-04-13 Jason Molenda (jsm@bugshack.cygnus.com)
5052
5053 * rom68k-rom.c (init_rom68k_cmds): Fix an accidental substitution
5054 in monitor command strings, fix some formatting mistakes.
5055
5056 1999-04-13 Stan Shebs <shebs@andros.cygnus.com>
5057
5058 * configure.tgt (arm-*-*): Whack another vestige of wingdb.
5059
5060 1999-04-12 James Ingham <jingham@cygnus.com>
5061
5062 * arm-tdep.c (arm_pop_frame): don't clobber the previous frame's
5063 stack pointer (stored in frame->framereg's register) BEFORE
5064 reading it. This was causing "return" to behave very oddly.
5065
5066 1999-04-12 Stan Shebs <shebs@andros.cygnus.com>
5067
5068 * NEWS: Mention tic80.
5069
5070 1999-04-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5071
5072 * a68v-nat.c: Remove reference to 'extern char registers[]' throughout.
5073 * altos-xdep.c: Ditto.
5074 * arm-xdep.c: Ditto.
5075 * convex-xdep.c: Ditto.
5076 * cxux-nat.c: Ditto.
5077 * hp300ux-nat.c: Ditto.
5078 * hppab-nat.c: Ditto.
5079 * i386aix-nat.c: Ditto.
5080 * i386mach-nat.c: Ditto.
5081 * m88k-nat.c: Ditto.
5082 * ptx4-nat.c: Ditto.
5083 * pyr-xdep.c: Ditto.
5084 * rs6000-nat.c: Ditto.
5085 * sun3-nat.c: Ditto.
5086 * sun386-nat.c: Ditto.
5087 * symm-nat.c: Ditto.
5088 * umax-xdep.c: Ditto.
5089 * i386v4-nat.c: Ditto. Also include inferior.h.
5090 * m68k-tdep.c: Ditto. Also include inferior.h.
5091
5092 Mon Apr 12 15:57:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
5093
5094 * inferior.h (CALL_DUMMY_STACK_ADJUST, CALL_DUMMY_STACK_ADJUST_P):
5095 Provide default definitions.
5096 * valops.c (hand_function_call): Replace #ifdef
5097 CALL_DUMMY_STACK_ADJUST with if (CALL_DUMMY_STACK_ADJUST_P).
5098
5099 * gdbarch.h (SIZEOF_CALL_DUMMY_STACK_ADJUST,
5100 (SIZEOF_CALL_DUMMY_STACK_ADJUST_P): Define
5101 * gdbarch.c (struct gdbarch): Add call_dummy_stack_adjust,
5102 call_dummy_stack_adjust_p.
5103 (gdbarch_call_dummy_stack_adjust,
5104 set_gdbarch_call_dummy_stack_adjust,
5105 gdbarch_call_dummy_stack_adjust_p,
5106 set_gdbarch_call_dummy_stack_adjust_p): New functions.
5107 (default_gdbarch): Update.
5108
5109 1999-04-09 Jim Blandy <jimb@zwingli.cygnus.com>
5110
5111 * ax-gdb.c, ax-gdb.h, ax-general.c, ax.h: Remove RCS Id strings.
5112 They're a pain.
5113
5114 * GDB 4.18 released.
5115 * Makefile.in (VERSION): Bump to 4.18.1.
5116
5117 Thu Apr 8 16:04:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
5118
5119 * inferior.h (CALL_DUMMY_P, CALL_DUMMY_WORDS,
5120 SIZEOF_CALL_DUMMY_WORDS): Define macros.
5121 (PUSH_DUMMY_FRAME, FIX_CALL_DUMMY, STORE_STRUCT_RETURN): Provide
5122 fatal default.
5123
5124 * inferior.h, gdbarch.c (call_dummy_words,
5125 sizeof_call_dummy_words): Declare/Define variables.
5126 * valops.c (value_arg_coerce, find_function_addr,
5127 call_function_by_hand): Always define.
5128 (hand_function_call): Rename CALL_DUMMY version of
5129 call_function_by_hand. Make static. Add prototype.
5130 (hand_function_call): Update. Allocate space for *dummy and
5131 *dummy1 using alloca.
5132 * breakpoint.c (frame_in_dummy): Update.
5133
5134 * gdbarch.h (CALL_DUMMY_P, CALL_DUMMY_WORDS,
5135 SIZEOF_CALL_DUMMY_WORDS): Define.
5136 * gdbarch.c (gdbarch_call_dummy_p, set_gdbarch_call_dummy_p,
5137 gdbarch_call_dummy_words, set_gdbarch_call_dummy_words,
5138 gdbarch_sizeof_call_dummy_words,
5139 set_gdbarch_sizeof_call_dummy_words): New functions.
5140 (gdbarch_alloc, verify_gdbarch, gdbarch_update, struct
5141 default_gdbarch): Update.
5142
5143 1999-04-08 Jason Molenda (jsm@bugshack.cygnus.com)
5144
5145 * monitor.c (monitor_read_memory): If a MO_GETMEM_NEEDS_RANGE
5146 monitor, increase the end address by one byte.
5147
5148 1999-04-08 Jason Molenda (jsm@bugshack.cygnus.com)
5149
5150 * dbug-rom.c (init_dbug_cmds): Fix strings in
5151 dbug_cmds.{step,clr_break,clr_all_break,fill} to send correct
5152 commands to the monitor.
5153
5154 1999-04-08 Keith Seitz <keiths@cygnus.com>
5155
5156 * m32r-stub.c (branchDestination): Undo overly ambitious
5157 sed script's conversion of cast from "char" to "unsigned char".
5158 Return offset should now be properly computed.
5159
5160 Thu Apr 8 14:13:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
5161
5162 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): New macro.
5163 Non-zero when CALL_DUMMY_BREAKPOINT_OFFSET is valid.
5164
5165 * infcmd.c (breakpoint_auto_delete_contents): Always define.
5166 (run_stack_dummy): Update.
5167 * infrun.c (wait_for_inferior): Update
5168
5169 * gdbarch.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): New macro.
5170 * gdbarch.c (set_gdbarch_call_dummy_breakpoint_offset_p,
5171 gdbarch_call_dummy_breakpoint_offset_p): New functions.
5172 (struct gdbarch, gdbarch_alloc, default_gdbarch, gdbarch_update):
5173 Update.
5174
5175 1999-04-07 Stan Shebs <shebs@andros.cygnus.com>
5176
5177 * MAINTAINERS: Mark Alexander can no longer maintain
5178 h8300 and other embedded targets, sniff.
5179
5180 1999-04-06 Stan Shebs <shebs@andros.cygnus.com>
5181
5182 * inftarg.c (child_wait): Initialize execd_pathname.
5183 * target.c (debug_to_has_execd): Handle NULL execd_pathname.
5184
5185 * solib.c (clear_solib): Don't call disable_breakpoints_in_shlibs,
5186 this breaks rerunning on sun4 native.
5187
5188 1999-04-06 Jim Blandy <jimb@zwingli.cygnus.com>
5189
5190 * config/sparc/nm-linux.h: Don't redefine PT_ATTACH to use the
5191 deprecated PTRACE_SUNATTACH compatibility commands. The
5192 definitions from <sys/ptrace.h> are fine.
5193
5194 1999-04-06 Martin Hunt <hunt@cygnus.com>
5195
5196 * annotate.h: Declare annotate_signal_hook.
5197
5198 * annotate.c (annotate_signal): Add a call to
5199 annotate_signal_hook().
5200
5201 1999-04-06 Jim Blandy <jimb@zwingli.cygnus.com>
5202
5203 * dwarf2read.c (dwarf_decode_lines): Don't call record_line when
5204 we hit a DW_LNE_end_sequence instruction.
5205
5206 * README: Note that GDB requires an ANSI C compiler, and explain
5207 how to get GCC.
5208
5209 * README: Update.
5210
5211 1999-04-05 Stan Shebs <shebs@andros.cygnus.com>
5212
5213 * NEWS: Add more notes about user-visible changes.
5214
5215 Mon Apr 5 14:56:59 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
5216
5217 * target.c (target_signal_to_string): check for signal
5218 number in range; otherwise if the target board returns
5219 a bogus signal number we might core dump (per David Taylor).
5220
5221 1999-04-05 David Taylor <taylor@ryobi.cygnus.com>
5222
5223 * utils.c (fputs_maybe_filtered): test value of
5224 pagination_enabled before paginating.
5225
5226 1999-04-02 James Ingham <jingham@cygnus.com>
5227
5228 * blockframe.c (get_prev_frame): Remove the redundant
5229 get_prev_frame_info. It is now exactly the same as
5230 get_prev_frame, so there is no reason to have both functions.
5231
5232 * rs6000-tdep.c (rs6000_init_extra_frame_info):
5233 frame.h:
5234 a29k-tdep.c (init_extra_frame_info):
5235 config/a29k/tm-a29k.h:
5236 i386-tdep.c:
5237 Change all references to get_prev_frame_info to get_prev_frame.
5238
5239 1999-04-02 Stan Shebs <shebs@andros.cygnus.com>
5240
5241 * bcache.c, bcache.h, breakpoint.c, defs.h, expprint.c,
5242 expression.h, gdbarch.c, gdbtypes.c, gdbtypes.h, gnu-nat.c,
5243 gnu-nat.h, hppa-tdep.c, maint.c, monitor.c, objfiles.h, parse.c,
5244 remote-mips.c, remote-sds.c, remote.c, sol-thread.c, symmisc.c,
5245 symtab.h, target.c, top.c, typeprint.c, config/nm-gnu.h: Evaporate
5246 the unused MAINTENANCE_CMDS conditional.
5247
5248 1999-04-02 James Ingham <jingham@cygnus.com>
5249
5250 * config/arm/tm-arm.h: (EXTRACT_STRUCT_VALUE_ADDRESS): This needs
5251 to call extract_address, not just cast the first 4 bytes, since
5252 the result will be passed to value_at which expects host-byte
5253 order.
5254
5255 * arm-tdep.c (arm_scan_prologue): The prologue_start address was
5256 directly &'ed with 0x03fffffc, rather than using
5257 ADDR_BITS_REMOVE. This would cause inferior function calls to
5258 report the stack incorrectly on return.
5259
5260
5261 1999-04-02 Keith Seitz <keiths@cygnus.com>
5262
5263 * top.c (ui_loop_hook): Change declaration. Now returns an int.
5264 * win32-nat.c (child_wait): Timeout WaitForDebugEvent and call
5265 the ui_loop_hook if there was no debug event.
5266 * top.c (ui_loop_hook): Change to return an int and include
5267 on all non-Cygwin builds.
5268 * v850ice.c: Change prototype of ui_loop_hook.
5269 (v850ice_wait): Update call to ui_loop_hook.
5270 * ser-unix.c (hardwire_readchar): Enable ui_loop_hook callbacks
5271 for non-Cygwin builds. Check return status of ui_loop_hook and
5272 return a timeout if told to detach. Add more documentation.
5273 * ser-tcp.c (tcp_readchar): Break up timeouts into one second
5274 intervals and call ui_loop_hook so that other UIs can
5275 keep up to date. If ui_loop_hook returns non-zero, then
5276 return SERIAL_TIMEOUT to facilitate detaching from the
5277 target.
5278 * remote.c (remote_interrupted_already): Remove.
5279 (remote_interrupt_twice): Revive.
5280 (remote_interrupt): Call remote_stop to interrupt the target
5281 and install remote_interrupt_twice to take more severe
5282 actions if this fails.
5283 (remote_stop): Only attempt to stop the target. This separates
5284 the command line from other UIs.
5285 * remote-sim.c (gdb_os_poll_quit): Add a call to ui_loop_hook,
5286 if it is defined.
5287
5288 1999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
5289
5290 Fix for cross-debugging on an AIX host from Johanna Svenningsson:
5291 * ax-gdb.h (enum axs_lvalue_kind): Remove trailing comma from enum.
5292 * ax.h (enum agent_op): Same.
5293 * tracepoint.h (enum actionline_type): Same.
5294 * config/xm-aix4.h: Add declaration for termdef.
5295
5296 1999-03-31 Stan Shebs <shebs@andros.cygnus.com>
5297
5298 * jv-lang.h (dynamics_objfile): Remove decl, conflicts with static
5299 decl in jv-lang.c.
5300
5301 * infrun.c (follow_inferior_fork): Add ifdefs around
5302 SOLIB_REMOVE_INFERIOR_HOOK.
5303
5304 Wed Mar 31 11:39:49 1999 David Taylor <taylor@ryobi.cygnus.com>
5305
5306 * valops.c (search_struct_field): revert HP merge change
5307 to this function -- it causes messages to be printed about
5308 member class ambiguity when the compiler is happy.
5309 (search_struct_field_aux): delete -- added as part of HP merge
5310 change; with aforementioned change it is no longer called.
5311
5312 1999-03-30 Stan Shebs <shebs@andros.cygnus.com>
5313
5314 Make more HPUX-specific code generic.
5315 * infrun.c: Include top.h.
5316 (MAY_SWITCH_FROM_INFERIOR_PID, MAY_FOLLOW_EXEC,
5317 USE_THREAD_STEP_NEEDED): New native macros.
5318 (may_switch_from_inferior_pid, may_follow_exec,
5319 use_thread_step_needed): New globals.
5320 (follow_inferior_fork): Remove HPUXHPPA ifdef.
5321 (follow_exec): Ditto, also save run target and re-push instead of
5322 always pushing child_ops, add ifdefs around SOLIB_RESTART and
5323 SOLIB_CREATE_INFERIOR_HOOK.
5324 (wait_for_inferior): Use new globals instead of ifdefing HPUXHPPA,
5325 always use printf_filtered to report new threads.
5326 (normal_stop): Ditto.
5327 * target.h, target.c (find_run_target): New function.
5328 * config/pa/nm-hppah.h: Define new macros.
5329
5330 1999-03-29 Stan Shebs <shebs@andros.cygnus.com>
5331
5332 * top.h: Include setjmp.h here.
5333 * main.c, top.c: Don't include it here.
5334
5335 1999-03-29 Keith Seitz <keiths@cygnus.com>
5336
5337 * symtab.c (decode_line_1): Take out change which breaks symbols
5338 which include class names and methods, e.g., "Foo::bar".
5339
5340 1999-03-26 Stan Shebs <shebs@andros.cygnus.com>
5341
5342 * configure.tgt (i[3456]86-*-sysv4.2MP, i[3456]86-*-sysv4.2uw2*):
5343 Recognize both, as i[3456]86-*-sysv4.2*.
5344 (i[3456]86-*-sysv5*): Recognize.
5345
5346 * infrun.c (wait_for_inferior): Remove most #if 0 segments.
5347
5348 Fri Mar 26 17:27:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
5349
5350 * blockframe.c (pc_in_call_dummy_on_stack): Fix. Had copied code
5351 from at_entry_point.
5352
5353 Thu Mar 25 19:30:02 1999 Andrew Cagney <cagney@amy.cygnus.com>
5354
5355 * gdbarch.c: Include all headers.
5356 (struct gdbarch), gdbarch.h (CALL_DUMMY_LOCATION,
5357 CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET,
5358 CALL_DUMMY_BREAKPOINT_OFFSET, CALL_DUMMY_LENGTH,
5359 PC_IN_CALL_DUMMY): Add ``call_dummy_location'',
5360 ``call_dummy_length'', ``pc_in_call_dummy'',
5361 ``call_dummy_start_offset'', ``call_dummy_breakpoint_offset'' to
5362 multi-arch framework.
5363
5364 * inferior.h, blockframe.c (pc_in_call_dummy_before_text_end,
5365 pc_in_call_dummy_after_text_end, pc_in_call_dummy_on_stack,
5366 pc_in_call_dummy_at_entry_point): Convert PC_IN_CALL_DUMMY macro's
5367 into functions.
5368
5369 Tue Mar 23 17:22:57 1999 Philippe De Muyter <phdm@macqel.be>
5370
5371 * remote.c, parse.c: Include ctype.h.
5372
5373 1999-03-24 Stan Shebs <shebs@andros.cygnus.com>
5374
5375 * configure.host (mips-dec-mach3*): Use mipsm3 not mach3.
5376
5377 Attempt to sort out SCO-related configs.
5378 * configure.host (i[3456]86-*-sysv4.2*): Use instead of
5379 i[3456]86-*-sysv4.2MP and i[3456]86-*-sysv4.2uw2*.
5380 (i[3456]86-*-sysv5*): Recognize.
5381 * configure.tgt (i[3456]86-*-sco3.2v5*, i[3456]86-*-sco3.2v4*):
5382 Recognize.
5383
5384 Wed Mar 24 16:19:01 1999 Christopher Faylor <cgf@cygnus.com>
5385
5386 * MAINTAINERS: Add DJ Delorie (dj@cygnus.com) as the djgpp
5387 maintainer.
5388
5389 Wed Mar 24 21:19:57 1999 Andrew Cagney <cagney@amy.cygnus.com>
5390
5391 * target.h (enum target_signal): Do not hardwire values of MACH
5392 signals.
5393
5394 1999-03-14 Ken Raeburn <raeburn@raeburn.org>
5395
5396 * target.h (enum target_signal): Add TARGET_SIGNAL_INFO.
5397 * target.c (signals): Add SIGINFO description.
5398 (target_signal_from_host, target_signal_to_host): Translate
5399 SIGINFO to/from TARGET_SIGNAL_INFO.
5400
5401 Wed Mar 24 01:01:27 1999 Andrew Cagney <cagney@sludge.cygnus.com>
5402
5403 * rs6000-tdep.c (rs6000_software_single_step): Change SIGNAL to
5404 unsigned int.
5405
5406 From Rodney Brown <rodneybrown@pmsc.com>
5407 * target.h (enum thread_control_capabilities), breakpoint.h (enum
5408 bptype), breakpoint.c (enum insertion_state_t): Strict ISO-C
5409 doesn't allow trailing comma in enum definition.
5410
5411 Mon Mar 22 15:56:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
5412
5413 * blockframe.c (inside_entry_file, inside_entry_func): Convert #if
5414 CALL_DUMMY_LOCATION to if.
5415 * valops.c (call_function_by_hand): Ditto.
5416 * infcmd.c (run_stack_dummy): Ditto.
5417 * inferior.h (CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET,
5418 CALL_DUMMY_BREAKPOINT_OFFSET): Provide default.
5419
5420 1999-03-23 Jason Molenda (jsm@bugshack.cygnus.com)
5421
5422 * hppa-tdep.c (pa_register_look_aside): Remove CPU_HPPA_RISC_20
5423 check, test for presence of struct save_state_t and the ss_wide
5424 member directly.
5425 * configure.in: Remove CPU_HPPA_RISC_20 test. Add tests for
5426 HAVE_STRUCT_SAVE_STATE_T and HAVE_STRUCT_MEMBER_SS_WIDE.
5427 * acconfig.h: Add HAVE_STRUCT_SAVE_STATE_T HAVE_STRUCT_MEMBER_SS_WIDE.
5428 * configure, config.in: Regenerated.
5429
5430 Mon Mar 22 13:25:13 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
5431
5432 * infttrace.c (proc_wait): rename to ptrace_wait.
5433
5434 1999-03-18 Jim Blandy <jimb@zwingli.cygnus.com>
5435
5436 * dwarf2read.c: Correctly recognize location expressions that
5437 designate LOC_REF_ARG arguments. Doc fixes.
5438 (isderef): New global. (Yuck.)
5439 (dwarf2_complex_location_expr): New complaint.
5440 (read_func_scope): Reject frame_base attributes that use the
5441 `deref' opcode as too complex.
5442 (new_symbol): If both regoff and isderef are set, and the base
5443 register is the frame pointer, then it's a LOC_REF_ARG argument.
5444 (decode_locdesc): Recognize the `deref' opcode in location
5445 expressions. Complain if it's not the last op in the expression.
5446
5447 * config/fr30/tm-fr30.h (COERCE_FLOAT_TO_DOUBLE): #define this to
5448 be true, or else value_arg_coere won't respect the (accurate)
5449 information we have about whether a function is prototyped.
5450
5451 1999-03-17 Jim Blandy <jimb@zwingli.cygnus.com>
5452
5453 * config/fr30/tm-fr30.h (STACK_ALIGN): Define this here, so
5454 calling functions by hand with odd-sized arguments doesn't munge
5455 the stack.
5456
5457 1999-03-17 Jason Molenda (jsm@bugshack.cygnus.com)
5458
5459 * configure.in (HAVE_MULTIPLE_PROC_FDS): Don't define for Solaris
5460 hosts--gdb doesn't support this yet.
5461 * configure: Regenerated.
5462
5463 1999-03-16 Keith Seitz <keiths@cygnus.com>
5464
5465 * remote.c (remote_binary_checked): New file global.
5466 (check_binary_download): New function to check if
5467 stub supports binary downloading that works with
5468 stubs that are not eight bit clean.
5469 (remote_write_bytes): Check for binary download capability
5470 and use it if available.
5471 Remove references to global remote_binary_length. What a hack.
5472 (putpkt_binary): New function.
5473 (putpkt): Call putpkt_binary.
5474 Use xor to escape trouble characters.
5475 * m32r-stub.c (bin2mem): Follow escape char convention change.
5476
5477 Tue Mar 16 01:11:33 1999 Andrew Cagney <cagney@rhino.cygnus.com>
5478
5479 * target.h (struct target_ops), target.c (debug_to_query),
5480 remote.c (pack_hex_byte, remote_query): Promote char parameters to
5481 int. Stops compile problems with pedantic ISO-C compilers.
5482
5483 Tue Mar 16 15:29:04 1999 Stan Shebs <shebs@andros.cygnus.com>
5484
5485 * go32-xdep.c: Remove, no longer used by anything.
5486 * Makefile.in: Remove references.
5487
5488 * jv-lang.c, jv-lang.h (java_primitive_type): Declare argument
5489 as int instead of char.
5490
5491 Mon Mar 15 11:42:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
5492
5493 * d10v-tdep.c (push_stack_item, pop_stack_item): New function.
5494 (d10v_push_arguments): Use.
5495
5496 From Martin M. Hunt <hunt@cygnus.com>:
5497 * d10v-tdep.c (d10v_push_arguments): When arguments
5498 must be pushed onto the stack, they go on in
5499 reverse order.
5500
5501 1999-03-16 Jim Blandy <jimb@zwingli.cygnus.com>
5502
5503 * symtab.c (make_symbol_overload_list): Don't try to stuff minimal
5504 or partial symbols into the overload list; we don't know their
5505 types. (Thanks to Rajiv Mirani.)
5506
5507 1999-03-15 Jason Molenda (jsm@bugshack.cygnus.com)
5508
5509 * acinclude.m4 (--with-itclconfig, --with-itkconfig, --with-tixconfig):
5510 Fix whitespace so --help messages line up.
5511 * configure.in (--with-cpu): Fix capitalization for --help messages.
5512 * configure, aclocal.m4: Regenerated.
5513
5514 Mon Mar 15 11:39:03 1999 Ian Carmichael <iancarm@cygnus.com>
5515
5516 Support building gdb w/o simulator:
5517 * configure.in: Support --disable-sim. Check for sim directory.
5518 * Makefile.in (IGNORE_SIM, IGNORE_SIM_OBS): New.
5519 * acconfig.h (WITH_SIM): Define.
5520 * configure, config.in: Regenerate.
5521
5522 Mon Mar 15 08:01:33 1999 Elena Zannoni <ezannoni@cygnus.com>
5523
5524 Patch from Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
5525
5526 * top.c (read_command_lines): Reset control_level to 0.
5527 (define_command): Don't do it here.
5528
5529 Sun Mar 14 16:12:15 1999 Andrew Cagney <cagney@rhino.cygnus.com>
5530
5531 * hppah-nat.c (store_inferior_registers): Delete extern
5532 registers[] declaration.
5533
5534 Sun Mar 14 19:17:30 1999 Andrew Cagney <cagney@b1.cygnus.com>
5535
5536 * infrun.c (write_inferior_status_register): New function. Provide
5537 update access to an inf_status register buffer. Only used by HP.
5538 * inferior.h (write_inferior_status_register): Add prototype.
5539
5540 * hppa-tdep.c (push_dummy_frame): Use
5541 write_inferior_status_register when hacking around a sleeping
5542 inferior. Accidently fix byte-order problem.
5543
5544 Sun Mar 14 16:40:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
5545
5546 * config/pa/tm-hppa.h (PUSH_DUMMY_FRAME): Fix parameter. Address
5547 not needed.
5548
5549 Fri Mar 12 13:11:48 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
5550
5551 * remote.c (remote_write_bytes): fix 'X' packet protocol so that it
5552 can't overwrite the end of its buffer with escaped characters.
5553
5554 1999-03-12 Jim Blandy <jimb@zwingli.cygnus.com>
5555
5556 Alpha patches from Richard Henderson:
5557
5558 * alpha-tdep.c (alpha_skip_prologue): Recognize subq.
5559
5560 * config/alpha/tm-alpha.h (REGISTER_NAMES): No f31, but fpcr.
5561 (FPCR_REGNUM): New.
5562 (REGISTER_CONVERTIBLE): Don't convert fpcr.
5563 (REGISTER_VIRTUAL_TYPE): Don't make fpcr a double.
5564
5565 * stabsread.c (define_symbol): Only consider live range extension
5566 if we have an open parenthesis.
5567
5568 1999-03-11 Jim Blandy <jimb@zwingli.cygnus.com>
5569
5570 * monitor.c (monitor_fetch_register): Print RDEBUG info correctly
5571 when the register name is null.
5572
5573 Thu Mar 11 19:33:07 1999 Stan Shebs <shebs@andros.cygnus.com>
5574
5575 * infrun.c (wait_for_inferior): Change #if DECR_PC_AFTER_BREAK
5576 uses to expressions, remove redundant extern decls.
5577
5578 Thu Mar 11 18:05:11 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
5579
5580 * infptrace.c (proc_wait): Rename to ptrace_wait.
5581 * inftarg.c (child_wait): call ptrace_wait instead of proc_wait.
5582 * inferior.h: Declare ptrace_wait instead of proc_wait.
5583
5584 Thu Mar 11 11:46:25 1999 Andrew Cagney <cagney@amy.cygnus.com>
5585
5586 * breakpoint.c (create_solib_load_unload_event_breakpoint,
5587 create_fork_vfork_event_catchpoint, tcatch_command,
5588 create_exception_catchpoint, break_at_finish_at_depth_command_1,
5589 catch_fork_command_1, ep_skip_leading_whitespace,
5590 break_at_finish_command_1, catch_exec_command_1,
5591 catch_exception_command_1, stop_command, stopin_command,
5592 stopat_command, ep_parse_optional_filename,
5593 ep_find_event_name_end, ep_parse_optional_if_clause,
5594 catch_fork_command_1), stack.c (show_and_print_stack_frame_stub,
5595 print_stack_frame_stub, print_only_stack_frame_stub,
5596 backtrace_command_1, backtrace_full_command, func_command),
5597 valprint.c (print_decimal), source.c (print_source_lines_base):
5598 Add prototype.
5599
5600 * stack.c (print_stack_frame_stub, show_and_print_stack_frame_stub,
5601 print_only_stack_frame_stub): Make param void*.
5602
5603 Wed Mar 10 19:33:28 1999 Geoffrey Noer <noer@cygnus.com>
5604
5605 * win32-nat.c: If old Cygwin Win32 API headers aren't being used,
5606 define some gdb-specific defines that shouldn't have been in the
5607 global headers.
5608
5609 Wed Mar 10 21:20:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
5610
5611 * findvar.c (registers, register_valid): Replace array with pointer.
5612 (build_findvar): New function. Allocate space for REGISTERS and
5613 REGISTER_VALID.
5614 (_initialize_findvar): Call build_findvar.
5615 (_initialize_findvar): Register REGISTERS and REGISTER_VALID as
5616 arch dependant.
5617
5618 * inferior.h (registers, register_valid): Replace array with
5619 pointer.
5620
5621 * inferior.h (struct inferior_status): Move definition from here.
5622
5623 * infrun.c (struct inferior_status): To here.
5624 (struct inferior_status): Change ``stop_registers'' and
5625 ``registers'' to pointers.
5626 (xmalloc_inferior_status, free_inferior_status): New functions.
5627 (restore_inferior_status): Call free_inferior_status.
5628 (save_inferior_status): Call xmalloc_inferior_status.
5629 (discard_inferior_status): New function, discard inf_status
5630 buffer. Call free_inferior_status.
5631
5632 * inferior.h (stop_registers): Replace array with pointer.
5633 * infrun.c (stop_registers): Update.
5634 (build_infrun): Initialize stop_registers.
5635 (_initialize_infrun): Call build_infrun.
5636 (_initialize_infrun): Register ``stop_registers'' as arch dependant.
5637
5638 Wed Mar 10 14:50:42 1999 Andrew Cagney <cagney@amy.cygnus.com>
5639
5640 * alpha-tdep.c (alpha_linux_sigtramp_offset): Only compile when
5641 LINUXALPHA target. Hack.
5642
5643 * infrun.c (set_follow_fork_mode_command): Make static. Add
5644 prototype.
5645 * tracepoint.c (add_register): Ditto.
5646 * valprint.c (strcat_longest): Comment out. Does not appear to be
5647 used.
5648 * valops.c (find_method_list): Make static. Add prototype.
5649 * thread.c (target_find_new_threads): Make static. Add prototype.
5650 * stack.c (stack_publish_stopped_with_no_frame,
5651 select_and_maybe_print_frame): Comment out. Does not appear to be
5652 used.
5653 (current_frame_command): Add prototype.
5654 * breakpoint.c (break_at_finish_command,
5655 break_at_finish_at_depth_command, tbreak_at_finish_command): Make
5656 static. Add prototype.
5657 * findvar.c (read_relative_register_raw_bytes_for_frame): Ditto.
5658
5659 Wed Mar 10 23:38:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
5660
5661 * corefile.c (registers): Delete redundant variable declaration.
5662 * inferior.h (run_stack_dummy): Change array argument to pointer.
5663 * infcmd.c (run_stack_dummy): Update.
5664 * value.h (value_being_returned): Change RETBUF to a pointer.
5665 * values.c (value_being_returned): Update.
5666
5667 Wed Mar 10 11:08:16 1999 Andrew Cagney <cagney@amy.cygnus.com>
5668
5669 * source.c (list_command): GCC suggested explicit braces to avoid
5670 ambiguous `else'.
5671
5672 * jv-typeprint.c: Include "c-lang.h".
5673 * Makefile.in (jv-typeprint.o): Add dependency.
5674 * jv-valprint.c: Include "gdbcore.h", "annotate.h".
5675 * Makefile.in (jv-valprint.o): Add dependencies.
5676 * objfiles.c: Include "breakpoint.h".
5677 * Makefile.in (objfiles.o): Add dependency.
5678 * main.c: Include <unistd.h>.
5679 * parse.c: Include <ctype.h>.
5680 * remote.c: Include <ctype.h>.
5681 * ser-tcp.c: Include <unistd.h>.
5682 * ax-general.c: Include "value.h".
5683 * Makefile.in (ax-general.o): Add dependency.
5684
5685 * alpha-tdep.c (alpha_push_arguments): Make ``i'' an int instead
5686 of a register.
5687 * frame.h (show_and_print_stack_frame): Add function prototype.
5688 * language.h (language_enum): Add function prototype.
5689 * value.h (find_overload_match): Add function prototype.
5690
5691 * defs.h, utils.c (subset_compare): Rename subsetCompare. Add
5692 prototype.
5693 * stack.c (backtrace_command): Update.
5694
5695 Wed Mar 10 13:58:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
5696
5697 * configure.in (AC_CHECK_HEADERS): Check for <sys/select.h>
5698 * configure, config.in: Re-generate.
5699 * inflow.c: Conditionally include <sys/select.h>.
5700
5701 Wed Mar 10 13:44:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
5702
5703 * frame.h (struct dummy_frame): Move from here.
5704 * blockframe.c (struct dummy_frame): To here.
5705
5706 * blockframe.c (struct dummy_frame): Replace ``regs'' with pointer
5707 ``registers''.
5708 (generic_pop_dummy_frame): Free it.
5709 (generic_push_dummy_frame): Allocate dummy frame register buffer.
5710
5711 Wed Mar 10 11:08:16 1999 Andrew Cagney <cagney@amy.cygnus.com>
5712
5713 * thread.c (_initialize_thread): Delete redundant ``extern struct
5714 cmd_list_element *cmdlist''.
5715 * printcmd.c (print_command_1): Ditto for ``objectprint'';
5716
5717 1999-03-09 Stan Shebs <shebs@andros.cygnus.com>
5718
5719 * MAINTAINERS: New file, list of maintainers and areas they
5720 maintain.
5721
5722 1999-03-09 Rodney Brown <RodneyBrown@pmsc.com>
5723
5724 Get working on UnixWare 2.1.1.
5725 * acconfig.h: Update for defines for procfs.c.
5726 * configure.in: Identify defines for procfs.c.
5727 * configure.host: i386-*-sysv4.2uw2* => i386v42mp
5728 * configure.tgt: i386-*-sysv4.2uw2* => i386v42mp
5729 * configure, config.in: Regenerate.
5730 * procfs.c: Rename HAVE_NO_PRRUN_T to HAVE_PRRUN_T (autoconf
5731 standard), wrap UNIXWARE difference in THE_PR_LWP macro for
5732 legibility.
5733 * config/i386/tm-i386v42mp.h: Remove HAVE_PSTATUS_T,
5734 HAVE_NO_PRRUN_T; now set by configure.
5735
5736 Tue Mar 9 16:29:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
5737
5738 * i386-tdep.c (gdb_print_insn_i386): Abort when disassembly_flavor
5739 undefined..
5740
5741 * fr30-tdep.c (_initialize_fr30_tdep): Add prototype. Fix
5742 coding style.
5743
5744 * target.c (debug_to_enable_exception_callback,
5745 debug_to_get_current_exception_event): Return result of call to
5746 debug_target().
5747
5748 1999-03-09 Jim Blandy <jimb@zwingli.cygnus.com>
5749
5750 Another HURD fix from Mark Kettenis:
5751 * gnu-nat.c: Include <string.h>. Remove declaration of strerror.
5752 Include <bits/waitflags.h> instead of <waitflags.h> and define
5753 _SYS_WAIT_H to prevent the warning that we should not include it.
5754 (gnu_create_inferior): Change return type of attach_to_child to
5755 void. Do not return INFERIOR_PID.
5756 (gnu_pid_to_exec_file): Change return type to char *.
5757 Return NULL.
5758
5759 Fix for the HURD from Mark Kettenis:
5760 * configure.in: Add AC_PROG_AWK. Needed by the machine-dependent
5761 makefile fragments for the Hurd.
5762 * Makefile.in (AWK): Add. Set by configure.
5763 * configure: Regenerated.
5764
5765 1999-03-08 Jason Molenda (jsm@bugshack.cygnus.com)
5766
5767 * infttrace.c (hppa_get_process_events): Removed. Function only
5768 usable on HPUX 10 and above. It is not called by any other part
5769 of GDB.
5770 * hppah-nat.c (hppa_get_process_events): Ditto.
5771 (child_pid_to_exec_file): Only call ptrace with
5772 PT_GET_PROCESS_PATHNAME if that symbol has been defined.
5773 * config/pa/nm-hppah.h: Don't set up prototypes et al for
5774 hppa_get_process_events.
5775
5776 * config/pa/hppahpux.mh (TERM_LIB): Do not initialize, let autoconf
5777 determine best library automatically.
5778 * config/pa/hpux1020.mh: Ditto.
5779 * config/pa/hpux1100.mh: Ditto.
5780 * configure.in (TERM_LIB): Also check for libHcurses.
5781 * configure: Regenerated.
5782
5783 Thu Mar 4 17:16:04 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
5784
5785 * m32r-stub.c: add support for crc "Compare" command.
5786
5787 1999-03-04 Jim Blandy <jimb@zwingli.cygnus.com>
5788
5789 * fr30-tdep.c (fr30_store_return_value): Allocate zeroes
5790 dynamically, to save BSS space, and to remove assumptions about
5791 the size of the largest value we'll return.
5792
5793 * config/fr30/tm-fr30.h (fr30_store_return_value): Use PARAMS in
5794 prototype.
5795
5796 Thu Mar 4 08:37:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
5797
5798 * sh3-rom.c (sh3_supply_register, sh3_supply_register),
5799 mips-tdep.c (mips_push_arguments), m32r-rom.c
5800 (m32r_upload_command), m32r-tdep.c (decode_prologue), monitor.c
5801 (longlong_hexchars), tracepoint.c (validate_actionline,
5802 read_actions), mdebugread.c
5803 (parse_symbol), jv-typeprint.c
5804 (java_type_print_base, java_type_print_base), mdebugread.c
5805 (parse_symbol), top.c (source_command), utils.c
5806 (floatformat_to_doublest): GCC suggest explicit braces to avoid
5807 ambiguous `else'.
5808
5809 * tracepoint.c (map_args_over_tracepoints, trace_actions_command),
5810 m32r-rom.c (m32r_supply_register), win32-nat.c
5811 (handle_output_debug_string, child_continue), i960-tdep.c
5812 (pop_frame), m32r-rom.c (m32r_upload_command): GCC suggested
5813 parentheses around assignment used as truth value.
5814
5815 * remote-sds.c (sds_wait), monitor.c (monitor_fetch_register),
5816 ser-e7kpc.c, (dosasync_write), arc-tdep.c (arc_get_frame_setup):
5817 GCC suggested parentheses around operands.
5818
5819 * c-typeprint.c (c_type_print_base): GCC suggested enclosing
5820 "while" expression in paren.
5821
5822 Wed Mar 3 18:14:33 1999 Andrew Cagney <cagney@chook.cygnus.com>
5823
5824 * sol-thread.c (save_inferior_pid): Cast the saved pid to void*.
5825 (restore_inferior_pid): Takes void* as required by make_cleanup.
5826 Casts pid back to an int.
5827
5828 * procfs.c (make_cleanup_close_proc_file,
5829 close_proc_file_cleanup): Create a proc_file cleanup.
5830 (info_proc): Use.
5831
5832 * defs.h (make_cleanup_freeargv): Helper function. Establish
5833 cleanup using freeargv. Can not just typecast/pass freeargv as it
5834 violates ISO-C.
5835 * utils.c (do_freeargv): Helper.
5836 (make_cleanup_freeargv): New function.
5837
5838 * symmisc.c (maintenance_print_symbols,
5839 maintenance_print_psymbols, maintenance_print_msymbols), symfile.c
5840 (symbol_file_command), stack.c (backtrace_command), remote-sim.c
5841 (gdbsim_create_inferior, gdbsim_open), remote-mips.c
5842 (common_open), procfs.c (info_proc), infrun.c (handle_command,
5843 xdb_handle_command), exec.c (exec_file_attach): Call
5844 make_cleanup_freeargv.
5845
5846 1999-03-03 James Ingham <jingham@cygnus.com>
5847
5848 * i386-tdep.c (_initialize_i386_tdep): Set the inital value for
5849 disassembly flavor at startup, rather than hardcoding it.
5850
5851 1999-03-03 Jim Blandy <jimb@zwingli.cygnus.com>
5852
5853 Put return values in the right place.
5854 * fr30-tdep.c (fr30_store_return_value): New function.
5855 * config/fr30/tm-fr30.h (STORE_RETURN_VALUE): Call
5856 fr30_store_return_value.
5857
5858 Wed Mar 3 18:10:55 1999 Andrew Cagney <cagney@chook.cygnus.com>
5859
5860 * gdbtypes.c (virtual_base_list_aux): Return void. Add prototype.
5861
5862 * breakpoint.c (map_catch_names): Comment out unused function.
5863
5864 1999-03-02 Jason Molenda (jsm@bugshack.cygnus.com)
5865
5866 * hppa-tdep.c (pa_register_look_aside): Only refer to save_state_t
5867 structure on PA 2.0 systems.
5868
5869 1999-03-02 Stan Shebs <shebs@andros.cygnus.com>
5870
5871 From Gary Thomas <gthomas@cygnus.co.uk>:
5872 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT,
5873 THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Use illegal instruction
5874 instead of SWI 24.
5875 * config/arm/tm-arm.h (CALL_DUMMY): Ditto.
5876 (IN_SIGTRAMP): Define.
5877
5878 1999-03-02 Nick Clifton <nickc@cygnus.com>
5879
5880 * findvar.c (store_address): Delete incorrect big endian
5881 code.
5882
5883 Tue Mar 2 18:02:42 1999 Andrew Cagney <cagney@chook>
5884
5885 * configure.in (gdb_cv_os_cygwin): Compat. Continue to reconize
5886 __CYGWIN32__.
5887
5888 1999-03-01 Jason Molenda (jsm@bugshack.cygnus.com)
5889
5890 * configure.in: Move setting of gdb_cv_os_cygwin to before
5891 setting of TERM_LIB. Check for __CYGWIN__ instead of __CYGWIN32__.
5892 * configure: Regenerated.
5893
5894 1999-03-01 DJ Delorie <dj@cygnus.com>
5895
5896 * configure.in: Change -cygwin32* to -cygwin*.
5897 * configure: Ditto.
5898
5899 1999-02-25 Stan Shebs <shebs@andros.cygnus.com>
5900
5901 * breakpoint.c (SOLIB_LOADED_LIBRARY_PATHNAME,
5902 SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_CREATE_CATCH_LOAD_HOOK,
5903 SOLIB_CREATE_CATCH_UNLOAD_HOOK): Supply default definitions.
5904 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Ditto.
5905
5906 1999-02-25 Keith Seitz <keiths@cygnus.com>
5907
5908 * corelow.c (core_close): Clear out solib state before
5909 closing the bfd associated with the core file.
5910 * solib.c (clear_solib): Mention that clear_solib requires
5911 an open BFD in order for disable_breakpoints_in_shlibs to
5912 determine whether breakpoints live in shared libraries.
5913
5914 1999-02-24 Jason Molenda (jsm@bugshack.cygnus.com)
5915
5916 * configure.in: Set CPU_HPPA_RISC_20 if the host CPU is a PA 2.0
5917 processor.
5918 * acconfig.h: Add CPU_HPPA_RISC_20
5919 * config.in, configure: Regenerated.
5920 * hppa-tdep.c (pa_register_look_aside): Only refer to new
5921 structure elements if we are on a PA2.0 system.
5922 * defs.h: Include limits.h.
5923
5924 Tue Feb 23 14:37:08 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
5925
5926 * infrun.c (wait_for_inferior): Check scheduler_locking state
5927 before resuming after a thread-specific breakpoint.
5928
5929 1999-02-23 Jim Blandy <jimb@zwingli.cygnus.com>
5930
5931 * aclocal.m4, config.in, configure: Regenerated with latest
5932 autotools.
5933
5934 Mon Feb 22 12:32:19 1999 Per Bothner <bothner@cygnus.com>
5935
5936 * jv-valprint.c (java_val_print): Restore line that somehow got lost.
5937
5938 * jv-valprint.c (java_print_value_fields): Check for NULL type.
5939
5940 1999-02-21 Jim Blandy <jimb@zwingli.cygnus.com>
5941
5942 * tm-h8500.h, i386lynx-nat.c: Removed. These files are long
5943 dead; it seems that they only appeared due to some CVS weirdness.
5944 If they appear again, we may need to distribute garlic and holy
5945 water.
5946
5947 1999-02-19 Jason Molenda (jsm@bugshack.cygnus.com)
5948
5949 * configure.in (TERM_LIB): Move checking for TERM_LIB, substituting.
5950 * configure: Regenerated.
5951
5952 1999-02-19 Robert Hoehne (robert.hoehne@gmx.net)
5953
5954 * configure.host (i[3456]86-*-msdosdjgpp*): New host.
5955 * configure.tgt (i[3456]86-*-msdosdjgpp*): New target.
5956 * go32-nat.c: New file, native DJGPP support.
5957 * config/i386/go32.mh: Rewrite for DJGPP (go32) host.
5958 * config/i386/go32.mt: New file, DJGPP (go32) target.
5959 * config/i386/nm-go32.h: New file.
5960 * config/i386/tm-go32.h: New file.
5961 * config/i386/xm-go32.h: Rewritten for current DJGPP.
5962
5963 1999-02-18 Jason Molenda (jsm@bugshack.cygnus.com)
5964
5965 * reply_mig_hack.awk, config/nm-gnu.h, config/alpha/nm-linux.h
5966 config/alpha/xm-alphalinux.h, config/alpha/xm-alphaosf.h
5967 config/i386/nm-i386sco5.h, config/i386/tm-fbsd.h, config/i386/tm-i386.h
5968 config/powerpc/nm-aix.h, config/powerpc/tm-macos.h
5969 config/powerpc/tm-ppc-aix.h, config/powerpc/xm-aix.h
5970 config/rs6000/tm-rs6000-aix4.h, testsuite/gdb.chill/tests1.ch
5971 testsuite/gdb.chill/tests2.ch, testsuite/gdb.chill/tests2.exp:
5972 Update FSF address in copyright notices.
5973
5974 1999-02-18 Jason Molenda (jsm@bugshack.cygnus.com)
5975
5976 * configure.in: Quote "$GCC" correctly.
5977 * configure: Regenerated.
5978
5979 1999-02-18 Jim Blandy <jimb@zwingli.cygnus.com>
5980
5981 * dbxread.c (elfstab_build_psymtabs): Don't assume that there's a
5982 section named ".text", which has all the code in it. Instead, look
5983 at all the sections in the file with the `code' flag set.
5984 (find_text_range): New function, that does all the work.
5985
5986 Thu Feb 18 17:50:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
5987
5988 * mips-tdep.c (FP_REGISTER_DOUBLE): Conditionally define.
5989
5990 Fri Jan 29 16:51:11 1999 Andrew Cagney <cagney@chook.cygnus.com>
5991
5992 * mips-tdep.c (return_value_location): New function. Merge/rewrite
5993 of return-value code in mips_extract_return_value,
5994 mips_store_return_value. Stop buffer overflow when 64 bit value
5995 in 32 bit registers. Extract 64bit float from 32 bit register
5996 pair of correct order.
5997 (mips_extract_return_value, mips_store_return_value): Call
5998 return_value_location. For store, ensure that remainder of
5999 register is zero.
6000
6001 Wed Feb 17 10:10:27 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
6002
6003 * gdbtypes.h (get_discrete_bounds): Remove duplicate decl.
6004
6005 * jv-typeprint.c (java_type_print_base): Change fputs => fputs_filtered.
6006
6007 Mon Jan 25 18:30:57 1999 Per Bothner <bothner@cygnus.com>
6008
6009 * jv-lang.h (JAVA_OBJECT_SIZE): Change from hard-wired constant.
6010 (java_primitive_type_from_name, get_java_object_header_size): Declare.
6011 * jv-lang.c (java_class_from_object): Use get_java_object_type.
6012 * jv-lang.c: Update Class field names: dtable->vtable,
6013 msize->method_count, nfields->field_count, bfsize->size_in_bytes,
6014 nmethods->method_count.
6015 (type_from_class): Demangle array type names.
6016 (java_link_class_type): Array type names are now demangled.
6017 (get_java_object_type): If not defined yet, try looking it up.
6018 (get_java_object_header_size): New function.
6019 (java_primitive_type_from_name): New function.
6020 (java_demangled_signature_length, java_demangled_signature_copy): New.
6021 (java_demangle_type_signature): Re-implement using above functions.
6022 (evaluate_subexp_java): For UNOP_IND, call evaluate_subexp_java
6023 to evaluate subexp (not evaluate_subexp_standard).
6024 For BINOP_SUBSCRIPT update for new array type naming scheme.
6025 * jv-valprint.c (java_value_print): Use java_class_from_object.
6026 Update array printing to new array type naming convention.
6027 (java_val_print): Doing check_typedef when printing a pointer is
6028 is a waste of effort. Also, handle TYPE_CODE_INT, to make sure
6029 Java bytes as not printed as C chars.
6030
6031 Fri Jan 8 16:58:22 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
6032
6033 * blockframe.c (find_pc_sect_partial_function): Search full symtabs as
6034 a last ditch effort (after the partial & minimal symtabs).
6035 * defs.h utils.c: Fixup prototypes for vprintf_filtered,
6036 vfprintf_filtered, vfprintf_unfiltered and vprintf_unfiltered to return
6037 ints to match their standard equivalents.
6038 * defs.h symtab.c top.c: Create skip_prologue_hook to allow Java to
6039 control the prologue skipping process.
6040 * jv-typeprint.c (java_type_print_base): Remove extern for
6041 jv_class_demangle, add new arg for objfile (NULL).
6042 * symtab.h: Remove struct sourcevector and struct source. Definately
6043 not needed.
6044 * values.c (value_virtual_fn_field): Fixes code to handle new vtable
6045 debug info format. Patch from marka.
6046
6047 Wed Dec 16 23:11:25 1998 Stu Grossman <grossman@fencer.cygnus.com>
6048
6049 * jv-lang.c (java_class_from_object java_class_is_primitive
6050 is_object_type): Change dtable to vtable.
6051 * (java_primitive_type): Change arg to type char.
6052 * (_initialize_java_language): Make java_char_type be unsigned.
6053 * jv-lang.h: Fixup prototypes.
6054
6055 Mon Dec 7 19:02:15 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
6056
6057 * jv-valprint.c (java_value_print): Fix printing of values where
6058 run time type != compile time type.
6059
6060 Fri Dec 4 15:23:38 1998 Stu Grossman <grossman@fencer.cygnus.com>
6061
6062 * Makefile.in: Whack out m2-typeprint.c.
6063 * c-typeprint.c (c_type_print_varspec_suffix) typeprint.h: Make this
6064 global. It's needed by Java.
6065 * (c_type_print_base): Whack prefix off of qualified method names
6066 (names with name spaces).
6067 * gdbtypes.h (struct cplus_struct_type): Add bits for Java attributes.
6068 Shrink voffset
6069 to 16 bits to compensate for added bits above (hopefully this is still
6070 enough).
6071 * Add new accessor macros (TYPE_FND_FIELD_PUBLIC, ...) for all new
6072 attribute bits.
6073 * jv-typeprint.c (java_type_print_base): Fix printing of method
6074 attributes. Handle JVM style manglings.
6075 * (java_print_type): Enable code type print varspec_suffix to allow
6076 array indices to print out.
6077 * jv-valprint.c (java_val_print): Minor formatting.
6078 * m2-lang.c (m2_language_d): Change m2_print_type to c_print_type.
6079 * stabsread.c (read_member_functions): Save public and static attributes.
6080
6081 Wed Feb 17 15:32:57 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6082
6083 * breakpoint.c (watch_command_1): Reformat comment.
6084
6085 * c-typeprint.c (c_type_print_base): Reformat comments.
6086
6087 1999-02-17 Jim Blandy <jimb@zwingli.cygnus.com>
6088
6089 * Makefile.in (VERSION): Bump version to 4.17.2.
6090
6091 Tue Feb 16 15:48:20 1999 Edith Epstein <eepstein@sophia.cygnus.com>
6092
6093 * config/pa/nm-hppah.h: Added prototype declarations for
6094 hppa_enable_page_protection_events and
6095 hppa_disable_page_protection_events.
6096
6097 * inftarg.c (child_wait): Fixed code that checks whether
6098 or not the target program has done a fork/vfork.
6099 related_pid does not have a value unless the target
6100 program has forked/vforked.
6101
6102 * infttrace.c (hppa_insert_hw_watchpoint): Make sure that
6103 function always returns a value.
6104 (hppa_remove_hw_watchpoint): Make sure that function always
6105 returns a value.
6106
6107 Tue Feb 16 06:31:58 1999 Keith Seitz <keiths@cygnus.com>
6108
6109 * config/powerpc/tm-ppc-eabi.h: Do not define PC_IN_CALL_DUMMY,
6110 let the generic call dummy infrastructure do it.
6111
6112 Sun Feb 14 18:21:08 1999 Mark Alexander <marka@cygnus.com>
6113
6114 * config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
6115 coffread.c will correctly handle char or short function parameters.
6116
6117 1999-02-11 Jason Molenda (jsm@bugshack.cygnus.com)
6118
6119 * configure, aclocal.m4: Regenerate with correct version of aclocal.
6120
6121 1999-02-10 Syd Polk <spolk@cygnus.com>
6122
6123 * acinclude.m4: Fix for new location of itclConfig.sh and itkConfig.sh.
6124 * aclocal.m4: Regnerate.
6125 * configure: Regenerate.
6126
6127 1999-02-10 Jason Molenda (jsm@bugshack.cygnus.com)
6128
6129 * demangle.c: Fix comments to mention "set demangle-style"
6130 instead of "set demangle".
6131 Run through indent to fix minor indenting problems.
6132
6133 Wed Feb 10 17:53:09 1999 Bob Manson <manson@charmed.cygnus.com>
6134
6135 * i386-tdep.c (gdb_print_insn_i386): Add missing returns.
6136
6137 Wed Feb 10 13:17:21 1999 Stan Shebs <shebs@andros.cygnus.com>
6138
6139 Declare Gould configuration obsolete:
6140 * configure.host, configure.tgt: Comment out Gould configs.
6141 * Makefile.in: Comment out Gould-related actions.
6142 * gould-xdep.c, gould-tdep.c, config/gould/*: Comment out.
6143 * NEWS: Mention obsolete status.
6144
6145 1999-02-09 DJ Delorie <dj@cygnus.com>
6146
6147 * sparcl-tdep.c: UDP download works in cygwin
6148
6149 1999-02-08 Jason Molenda (jsm@bugshack.cygnus.com)
6150
6151 * gnu-regex.c: Check ENABLE_NLS instead of HAVE_LIBINTL_H.
6152 * configure.in: Don't check for libintl.h.
6153 * configure, config.in: Regenerated.
6154
6155 Mon Feb 8 18:10:50 1999 Stan Shebs <shebs@andros.cygnus.com>
6156
6157 * NEWS: Mention new X packet and PowerPC variant support.
6158
6159 1999-02-08 Nick Clifton <nickc@cygnus.com>
6160
6161 * configure.host: Add support for StrongARM host.
6162 * configure.tgt: Add support for StrongARM target.
6163
6164 Mon Feb 8 12:05:05 1999 David Taylor <taylor@texas.cygnus.com>
6165
6166 * dsrec.c (make_srec): Cast targ_addr to int in call to sprintf
6167 otherwise on big endian machine with a bfd_vma of 64 bits,
6168 *everything* gets loaded at location 0.
6169
6170 Mon Feb 7 10:05:43 1999 Frank Ch. Eigler <fche@cygnus.com>
6171
6172 * infrun.c (wait_for_inferior): Allow SIGTRAP to be "pass"ed
6173 to target program.
6174
6175 Fri Feb 5 16:46:14 1999 Stan Shebs <shebs@andros.cygnus.com>
6176
6177 * NEWS: Add mentions of various new things.
6178
6179 Thu Feb 4 00:19:14 1999 Christopher Faylor <cgf@cygnus.com>
6180
6181 * configure.in: Move termcap determination later in the
6182 file to catch setting of cygwin flag.
6183 * configure: Regenerate.
6184
6185 Wed Feb 3 14:16:38 1999 Christopher Faylor <cgf@cygnus.com>
6186
6187 * config/i386/cygwin.mh: Move TERMCAP test code to configure.in.
6188 * configure.in: Treat libtermcap.a detection as a special case
6189 when hosting on cygwin.
6190 * configure: Regenerate.
6191
6192 1999-02-03 Keith Seitz <keiths@cygnus.com>
6193
6194 * remote.c (remote_binary_download, remote_binary_length): New
6195 static globals for dealing with binary transmissions.
6196 (remote_write_bytes): Add support for binary downloads
6197 by shadowing the "M" packet with a new "X" packet. This
6198 defaults to ON; if the stub does not understand this, it
6199 will fall back to using "M".
6200 (putpkt): Add support for binary downloading.
6201 * monitor.c (monitor_expect): The mon2000 monitor
6202 on the MSA2000 will also emit random DC1/DC3 chars.
6203 * m32r-stub.c: Change all char's to unsigned char's
6204 to support binary downloading.
6205 (handle_exception): Add support for binary downloading
6206 via a new "X" packet.
6207 (getpacket): Do NOT strip eighth bit of incoming chars.
6208 Watch out for escaped characters in the incoming stream.
6209 (putpacket): Do NOT strip eighth bit of incoming chars.
6210 (bin2mem): New function to write binary data directly to
6211 memory.
6212 * m32r-rom.c: Add new "mon2000" target.
6213
6214 Tue Feb 2 18:40:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6215
6216 * hp-psymtab-read.c (hpread_build_psymtabs): Coerce first arg
6217 passed to make_cleanup to the correct type.
6218 (hpread_quick_traverse): Change fifth arg to call to
6219 hpread_end_psymtab to be 0.
6220 Compare CURR_MODULE_END to 0 rather than NULL.
6221 Get rid of ifdef'ed out code.
6222 (scan_procs): Get rid of ifdef'ed out code.
6223
6224 * somread.c (som_symfile_read): Coerce first argument passed to
6225 make_cleanup to the correct type.
6226
6227 Tue Feb 2 17:36:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6228
6229 * hp-psymtab-read.c (do_pxdb): New function. Check whether the
6230 file needs to be processed by pxdb (an HP debug info massaging
6231 tool), if so call it.
6232 (hpread_build_psymtabs): Initialize scan_start to 0 and
6233 simplify flow of control.
6234
6235 * somread.c (som_symfile_read): Add call to do_pxdb (),
6236 in hp-psymtab-read.c.
6237
6238 * symfile.c (symbol_file_add): Remove ifdef'ed out HPUX specific
6239 code.
6240 (symfile_bfd_open): Remove HPUXHPPA ifdef'ed code. Code is now
6241 in hp-psymtab-read.c.
6242
6243 1999-02-02 Martin Hunt <hunt@cygnus.com>
6244
6245 * printcmd.c (print_scalar_formatted): Use strcat to concat all
6246 the output together before calling fprintf_filtered().
6247
6248 1999-02-01 Jason Molenda (jsm@bugshack.cygnus.com)
6249
6250 * configure.in: Require autoconf 2.13.
6251 (AM_EXEEXT): Replace with new AC_EXEEXT.
6252 * acinclude.m4: Move itcl header macros from aclocal.m4 to here.
6253 * aclocal.m4: Regenerated.
6254 * configure: Regenerated.
6255
6256 1999-02-01 Jim Blandy <jimb@zwingli.cygnus.com>
6257
6258 Allow PPC users to select which PPC/RS6000 variant they're
6259 debugging at run-time. At the moment, the only thing this affects
6260 is the set of registers visible.
6261 * config/rs6000/tm-rs6000.h (REGISTER_NAME): Define this as a call
6262 to the function rs6000_register_name.
6263 (rs6000_register_name): Include extern decl.
6264 (NUM_REGS): Bump to 183. What's the right way to do this?
6265 (FIRST_UISA_SP_REGNUM, LAST_UISA_SP_REGNUM): Renamed from
6266 FIRST_SP_REGNUM, LAST_SP_REGNUM.
6267 (REGISTER_BYTES): Recompute this.
6268 * rs6000-tdep.c: Renamed all uses of FIRST_SP_REGNUM and
6269 LAST_SP_REGNUM to FIRST_UISA_SP_REGNUM and LAST_UISA_SP_REGNUM, with
6270 some concomitant formatting changes.
6271 #include "gdbcmd.h", so we can define commands here.
6272 (struct variant): New structure.
6273 (COMMON_UISA_REG_NAMES, PPC_UISA_SPR_NAMES, PPC_SEGMENT_REG_NAMES,
6274 PPC_32_OEA_SPR_NAMES, num_registers): New macros.
6275 (register_names_rs6000, register_names_uisa, register_names_403,
6276 register_names_403GC, register_names_505, register_names_860,
6277 register_names_601, register_names_602, register_names_603,
6278 register_names_604, register_names_750, variants): New variables.
6279 (rs6000_register_name, install_variant, find_variant_by_name,
6280 install_variant_by_name, list_variants, show_current_variant,
6281 set_processor, show_processor): New functions.
6282 (_initialize_rs6000_tdep): Define new commands `set processor' and
6283 `show processor', and call install_variant_by_name to set the
6284 default variant.
6285 * rs6000-nat.c: Renamed all uses of FIRST_SP_REGNUM and
6286 LAST_SP_REGNUM to FIRST_UISA_SP_REGNUM and LAST_UISA_SP_REGNUM, with
6287 some concomitant formatting changes.
6288 * configure.in: Accept the `--with-cpu' flag, to specify a default
6289 processor variant.
6290 * acconfig.h: Provide a blurb for TARGET_CPU_DEFAULT, which is set
6291 by configure's `--with-cpu' flag.
6292 * config.in, configure: Regenerated.
6293
6294 Sun Jan 31 15:24:24 1999 Stan Shebs <shebs@andros.cygnus.com>
6295
6296 * buildsym.h, buildsym.c: Convert to ANSI-only.
6297
6298 * buildsym.h, buildsym.c: Reformat to standard.
6299
6300 * buildsym.c (merge_symbol_lists): Remove unused variable.
6301 (_initialize_buildsym): Remove, does nothing.
6302
6303 1999-01-31 J.T. Conklin <jtc@redbacknetworks.com>
6304
6305 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
6306 sparcl-stub, sparclet-stub.c: Change declaration of putDebugChar
6307 to include explicit void return type as per documentation. Fix up
6308 occasions where stubs erroneously checked return type.
6309
6310 Sun Jan 31 13:18:33 1999 Stan Shebs <shebs@andros.cygnus.com>
6311
6312 From J.T. Conklin <jtc@redbacknetworks.com>:
6313 * remote.c (remote_query): Fix tipo.
6314
6315 Fri Jan 29 15:25:09 1999 Stan Shebs <shebs@andros.cygnus.com>
6316
6317 * configure.tgt (v850): Add wildcard to match.
6318
6319 Fri Jan 29 16:44:01 1999 Edith Epstein <eepstein@sophia.cygnus.com>
6320
6321 * inferior.h: Ran indent.
6322
6323 * fork-child.c: Ran indent.
6324
6325 * infrun.c : Ran indent.
6326
6327 Fri Jan 29 12:57:34 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6328
6329 * infrun.c (_initialize_infrun): Do not stop or print anything
6330 when a SIGWINCH is received.
6331
6332 * Makefile.in (m2-exp.tab.c): Use YACC not BISON.
6333 (f-exp.tab.c): Ditto.
6334 (jv-exp.tab.c): Ditto.
6335 (c-exp.tab.c): Ditto.
6336 (YACC): Define as @YACC@.
6337
6338 1999-01-29 Martin Hunt <hunt@cygnus.com>
6339
6340 Changes from Keith Seitz <keiths@cygnus.com>
6341 * valops.c (value_assign): Add calls to register_changed_hook and
6342 memory_changed_hook to inform UIs that the user has changed
6343 the target's registers/memory.
6344 * findvar.c (write_register_gen): Remove call to pc_changed_hook.
6345 * defs.h: Remove declaration for pc_changed_hook and
6346 add declarations for register_changed_hook and
6347 memory_changed_hook.
6348 * top.c: Ditto.
6349
6350 1999-01-29 Mark Alexander <marka@cygnus.com>
6351
6352 * procfs.c (wait_fd): Handle deleted threads correctly.
6353
6354 1999-01-28 Jason Molenda (jsm@bugshack.cygnus.com)
6355
6356 * utils.c (init_page_info): Force window size if running under emacs.
6357
6358 1999-01-27 James Ingham <jingham@cygnus.com>
6359
6360 * typeprint.c (whatis_exp): Remove static declaration.
6361
6362 Wed Jan 27 16:50:25 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6363
6364 * hp-psymtab-read.c: Reformat using indent.
6365
6366 Wed Jan 27 13:20:25 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6367
6368 * hp-psymtab-read.c: Reformat comments, update copyright.
6369
6370 Tue Jan 26 16:02:47 1999 Mark Alexander <marka@cygnus.com>
6371
6372 * v850-tdep.c (v850_generic_reg_names, v850e_reg_names,
6373 v850_register_names, v850_processor_type_table): Declare tables
6374 and structures for handling differences in register names for
6375 v850 and v850e.
6376 (struct reg_list): Define new structure for creating tables
6377 of register bit masks in v850e instrutions.
6378 (handle_prepare, handle_pushm): New helpers for v850_scan_prologue.
6379 (v850_scan_prologue): Recognize v850e instructions: callt, prepare,
6380 and pushm.
6381 (v850_target_architecture_hook): New function to set register
6382 names based on current machine.
6383 (_initialize_v850_tdep): Set up target_architecture_hook.
6384 * config/v850/tm-v850.h (v850_register_names): Declare.
6385 (REGISTER_NAME): Define to refer to v850_register_names.
6386 (SR0_REGNUM, CTBP_REGNUM): Define.
6387 (PS_REGNUM): Redefine in terms of SR0_REGNUM.
6388
6389 Tue Jan 26 18:27:26 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6390
6391 * Makefile.in (c-exp.tab.c): Use BISON instead of YACC, to pick
6392 the correct value from configure output.
6393 (jv-exp.tab.c): Ditto.
6394 (f-exp.tab.c): Ditto.
6395 (m2-exp.tab.c): Ditto.
6396
6397 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
6398
6399 * breakpoint.h (ep_is_exception_catchpoint): Add prototype.
6400 * frame.h (select_and_print_frame): Add prototype.
6401 * stack.c (func_command): Call select_and_print_frame with correct
6402 number of arguments. Reformat whitespace.
6403
6404 Tue Jan 26 16:53:54 1999 Fernando Nasser <fnasser@cygnus.com>
6405
6406 * remote.c (remote_query): fix maximum packet size to account for
6407 remote_debug use.
6408 (putpkt): add comment to alert about extra byte need.
6409
6410 Mon Jan 25 19:55:30 1999 Mark Alexander <marka@cygnus.com>
6411
6412 * sh-tdep.c (sh_target_architecture_hook): Return immediately
6413 when a matching machine is found.
6414
6415 Fri Jan 22 09:10:35 1999 Mark Alexander <marka@cygnus.com>
6416
6417 * remote-mips.c (mips_initialize): Fix parameters to clear_breakpoint.
6418 (common_breakpoint): Restore support for instruction breakpoints
6419 on non-LSI targets.
6420
6421 Thu Jan 21 17:16:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
6422
6423 * stack.c: Close open comment.
6424 * symtab.c (find_pc_sect_line): Ditto.
6425
6426 Thu Jan 21 17:51:51 1999 Stan Shebs <shebs@andros.cygnus.com>
6427
6428 * procfs.c (init_procfs_ops): New function, fills in procfs_ops,
6429 init only nonzero fields, leave to_require_attach and
6430 to_require_detach empty, not needed for /proc systems yet.
6431 (_initialize_procfs): Call init_procfs_ops.
6432
6433 From J.T. Conklin <jtc@redbacknetworks.com>:
6434 * top.c (init_main): Fix tipo in description of the remotetimeout
6435 variable.
6436 * breakpoint.c (bpstat_stop_status): Handle systems where
6437 DECR_PC_AFTER_BREAK != DECR_PC_AFTER_HW_BREAK.
6438
6439 Thu Jan 21 17:25:46 1999 Mark Alexander <marka@cygnus.com>
6440
6441 * mon960-rom.c (_initialize_mon960): Call init_mon960_cmds
6442 to fill in mon960_cmds structure properly.
6443
6444 Wed Jan 20 17:53:22 1999 Stan Shebs <shebs@andros.cygnus.com>
6445
6446 * remote-sds.c (sds_ops): Define only once.
6447 (init_sds_ops, sds_command, _initialize_remote_sds): Declare.
6448 (init_sds_ops): Init only non-zero fields.
6449
6450 Wed Jan 20 15:45:15 1999 Mark Alexander <marka@cygnus.com>
6451
6452 * h8300-tdep.c (original_register_names, h8300h_register_names,
6453 h8300_register_names): Define new variables.
6454 (set_register_names): New function to set register names based on
6455 current CPU type.
6456 (h8300_command, h8300h_command, h8300s_command): Call
6457 set_register_names.
6458 * config/h8300/tm-h8300.h (h8300_register_names): Declare.
6459 (REGISTER_NAME): Define to refer to h8300_register_names.
6460
6461 1999-01-19 Fernando Nasser <fnasser@totem.to.cygnus.com>
6462
6463 * sol-thread.c abug-rom.c cpu32bug-rom.c dbug-rom.c m32r-rom.c
6464 mac-nat.c mon960-rom.c op50-rom.c ppc-bdm.c remote-adapt.c
6465 remote-array.c remote-bug.c remote-e7000.c remote-eb.c remote-es.c
6466 remote-est.c remote-hms.c remote-mm.c remote-nindy.c remote-nrom.c
6467 remote-os9k.c remote-rdp.c remote-sds.c remote-sim.c remote-st.c
6468 remote-udi.c rom68k-rom.c sh3-rom.c sparcl-tdep.c sparclet-rom.c
6469 v850ice.c win32-nat.c: cosmetic changes to conform to coding
6470 standards.
6471
6472 1999-01-19 Jim Blandy <jimb@zwingli.cygnus.com>
6473
6474 Use aclocal to generate GDB's aclocal.m4 script.
6475 * acinclude.m4: New file, containing the hand-written local macro
6476 definitions that used to be in aclocal.m4. Don't sinclude
6477 ../bfd/aclocal.m4 any more; running aclocal in this directory will
6478 get us the definitions we need. HOWEVER: Do sinclude
6479 ../bfd/acinclude.m4, because we need the definition of
6480 BFD_NEED_DECLARATION.
6481 * aclocal.m4: Regenerated by aclocal.
6482 * configure: Regenerated by autoconf.
6483
6484 Tue Jan 19 10:27:23 1999 David Taylor <taylor@texas.cygnus.com>
6485
6486 * breakpoint.c (disable_breakpoints_in_shlibs): new parameter,
6487 silent, controls whether to print message about removal of shared
6488 library breakpoints.
6489 * breakpoint.h (disable_breakpoints_in_shlibs): decl updated.
6490 * irix5-nat.c (clear_solib): call disable_breakpoints_in_shlibs.
6491 * osfsolib.c (clear_solib): ditto.
6492 * solib.c (clear_solib): ditto.
6493 * somsolib.c (som_solib_restart): update call to
6494 disable_breakpoints_in_shlibs.
6495
6496 * target.h (child_post_attach): only declare if CHILD_POST_ATTACH
6497 is define.
6498
6499 Tue Jan 19 18:07:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
6500
6501 * corelow.c (solib_add_stub): Ditto.
6502 (core_file_to_sym_file): Cast make_cleanup parameter.
6503
6504 * solib.c (symbol_add_stub, solib_map_sections): Change argument
6505 to PTR insted of a char*. Matches catch_errors interface.
6506
6507 Mon Jan 18 14:01:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
6508
6509 * remote-array.c (array_open): Don't use fprintf_filtered to send
6510 data to the log file.
6511
6512 * remote-array.c (handle_load_dll): Change argument type to PTR so
6513 that it is compatible with catch_errors.
6514 * ocd.c (ocd_start_remote): Ditto.
6515 * remote-sds.c (sds_start_remote): Ditto.
6516
6517 * win32-nat.c (win32_child_thread_alive): Namespace proof
6518 child_thread_alive.
6519 (init_child_ops): Update.
6520
6521 Mon Jan 18 12:03:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
6522
6523 * remote-rdi.c (arm_rdi_open): Set gdb_hostif.hostosarg and
6524 gdb_hostif.dbgarg to NULL instead of stdout.
6525 (voiddummy, myprint, mywritec): Use gdb_stdout instead of stdout.
6526
6527 Mon Jan 18 16:40:50 1999 Stan Shebs <shebs@andros.cygnus.com>
6528
6529 * ser-ocd.c (ocd_open): Handle Unix case gracefully.
6530
6531 * target.c (dummy_target): Don't initialize statically.
6532 (init_dummy_target): New function, fills in dummy_target.
6533 (initialize_targets): Use it.
6534 * hpux-thread.c (hpux_thread_ops): Don't initialize statically.
6535 (init_hpux_thread_ops): New function, fills in hpux_thread_ops.
6536 (_initialize_hpux_thread): Use it.
6537 * m3-nat.c (m3_ops): Don't initialize statically.
6538 (init_m3_ops): New function, fills in m3_ops.
6539 (_initialize_m3): Use it.
6540
6541 1999-01-18 Fernando Nasser <fnasser@totem.to.cygnus.com>
6542
6543 * sol-thread.c: delete compile time initialization of target_ops
6544 (_initialize_sol_thread): initialize target_ops at run time.
6545 * hpux-thread.c: added target_ops entry.
6546 * m3-nat.c: ditto.
6547
6548 Mon Jan 18 15:19:13 1999 David Taylor <taylor@texas.cygnus.com>
6549
6550 * procfs.c (procfs_ops): delete compile time initialization.
6551 (_initialize_procfs): initialize procfs_ops at run time.
6552
6553 Mon Jan 18 12:51:44 1999 Christopher Faylor <cgf@cygnus.com>
6554
6555 * configure.in: Ensure that -luser32 is always linked in
6556 for cygwin build.
6557 * configure: Regenerated.
6558
6559 Mon Jan 18 08:38:05 1999 Mark Alexander <marka@cygnus.com>
6560
6561 * values.c (value_virtual_fn_field): Clear the pointed-to
6562 offset when casting to the base class.
6563
6564 Mon Jan 18 10:30:51 1999 David Taylor <taylor@texas.cygnus.com>
6565
6566 * remote-udi.c (init_udi_ops): change non-existant udi_run_ops to
6567 udi_ops; delete NULL initializers.
6568
6569 Mon Jan 18 12:03:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
6570
6571 * serial.c (serial_close): gdb_fclose tages gdb_file** arg, not
6572 gdb_file*.
6573
6574 * f-valprint.c, target.c, gdbarch.c: Pass gdb_stderr not stderr.
6575
6576 Mon Jan 18 10:46:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
6577
6578 * stack.c (print_frame_info_base): Don't cast call to
6579 catch_errors.
6580 (print_args_stub): Change char* arg to PTR.
6581 * symmisc.c (print_symbol): Ditto.
6582 * top.c (quit_cover): Ditto.
6583 * remote.c (remote_open_1, remote_start_remote): Ditto.
6584 * infrun.c (normal_stop, hook_stop_stub, restore_selected_frame):
6585 Ditto.
6586
6587 * stack.c (backtrace_command): Cast first arg of make_cleanup to
6588 make_cleanup_func.
6589 * remote.c (remote_kill): Cast putpkt arg to catch_errors_ftype.
6590
6591 Mon Jan 18 08:47:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
6592
6593 * defs.h (catch_errors_ftype): Define.
6594 (catch_errors): Replace char* arg with PTR arg.
6595 * top.c (catch_errors): Update
6596
6597 * breakpoint.c (bpstat_stop_status, bpstat_stop_status,
6598 delete_breakpoint, breakpoint_re_set): Delete all casts in call to
6599 catch_errors.
6600 (breakpoint_cond_eval, watchpoint_check,
6601 cover_target_enable_exception_callback, breakpoint_re_set_one):
6602 Arg is PTR not char*.
6603
6604 * breakpoint.c (cover_target_enable_exception_callback): Change
6605 type to int. Check for cast values of 0 and -1. Return a result!
6606 (insert_breakpoints): Move declaration of SAL and ARGS to where
6607 they are used.
6608
6609 1999-01-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
6610
6611 * remote.c (remote_query): new function - creates proper interface
6612 to the remote protocol "q" command.
6613
6614 Fri Jan 15 17:11:48 EST 1999 Zdenek Radouch (radouch@cygnus.com)
6615
6616 * config/fr30/tm-fr30.h: Changed ABI to match GCC change
6617 (always use pointer for structs passed by value).
6618
6619 1999-01-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
6620
6621 * target.h: added entry for target queries (to_query)
6622 target.c: ditto.
6623
6624 Thu Jan 14 18:29:17 1999 David Taylor <taylor@texas.cygnus.com>
6625
6626 * remote-mm.c (mm_wait): fix stream arg to gdb_flush.
6627 * remote-udi.c (udi_wait): fix stream arg to fwrite.
6628 * symmisc.c (maintenance_check_symtabs): fix stream argument to
6629 print_address_numeric.
6630
6631 Wed Jan 13 19:33:16 1999 David Taylor <taylor@texas.cygnus.com>
6632
6633 * breakpoint.c (insert_breakpoints): insert cast to eliminate
6634 warning.
6635
6636 Wed Jan 13 14:59:02 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
6637
6638 * infrun.c (set/show scheduler-locking) New command. Set a
6639 mode bit that will control how GDB attempts to control thread
6640 scheduling for step, continue, etc. (resume): make use of
6641 the schedule-locking mode.
6642 * target.h (struct target_ops): new field to_has_thread_control.
6643 * sol-thread.c: initialize target_ops to_has_thread_control.
6644 * procfs.c: ditto.
6645 * target.c: ditto.
6646 * m3-nat.c: ditto.
6647 * remote.c: ditto.
6648 * hpux-thread.c: ditto.
6649 * thread.c: cull duplicate prototypes. Move prototypes to top.
6650 * serial.c: indentation cleanup.
6651 * breakpoint.c: add casts to eliminate compiler warnings.
6652
6653 Tue Jan 12 17:00:00 1999 Edith Epstein <eepstein@sophia.cygnus.com>
6654
6655 * inftarg.c (child_create_inferior): fixed HPUXHPPA specific
6656 call to fork_inferior. The shell param is now NULL.
6657
6658 1999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
6659
6660 * monitor.c (init_base_monitor_ops): Whitespace cleanup.
6661 (_initialize_remote_monitors): Same.
6662
6663 1999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
6664
6665 * monitor.c (init_monitor_ops): Initialize the monitor_ops
6666 structure if it hasn't already been done.
6667
6668 Tue Jan 12 14:50:10 1999 Stan Shebs <shebs@andros.cygnus.com>
6669
6670 * inftarg.c (child_ops): Don't initialize statically.
6671 (init_child_ops): New function, fills in child_ops.
6672 (_initialize_inftarg): Use it.
6673 (child_post_attach): Declare extern.
6674 (child_wait): Fix ambiguous parens.
6675 (child_attach_to_process): Remove unused local wstatus.
6676 (child_insert_fork_catchpoint, child_remove_fork_catchpoint,
6677 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
6678 child_has_forked, child_insert_exec_catchpoint,
6679 child_remove_exec_catchpoint): Return a value.
6680
6681 Mon Jan 11 16:43:44 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
6682
6683 * remote.c (remote_wait): Add inferior_pid to thread list only
6684 if it is not already there.
6685
6686 1999-01-11 Jason Molenda (jsm@bugshack.cygnus.com)
6687
6688 * scm-tags.h: Update FSF's address on copyright notice.
6689 * ser-e7kpc.c: Same.
6690 * gnu-nat.h: Same.
6691
6692 Mon Jan 11 13:45:57 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
6693
6694 * dwarf2read.c (dump_die): Change stderr to gdb_stderr.
6695 * expprint.c (print_subexp): fprintf => fprintf_unfiltered.
6696 * jv-typeprint.c (java_type_print_base): fputs => fputs_filtered.
6697 * stack.c (struct function_bounds): Remove superfluous `typedef'.
6698 * symfile.c (list_overlays_command): stdout => gdb_stdout.
6699 * symmisc.c (maintenance_check_symtabs): stdout => gdb_stdout.
6700 * utils.c (print_spaces): Make more efficient.
6701
6702 Mon Jan 11 13:55:51 1999 David Taylor <taylor@texas.cygnus.com>
6703
6704 * utils (print_spaces): fix arg to strcat; fix formatting.
6705
6706 Fri Jan 8 11:57:24 1999 Stan Shebs <shebs@andros.cygnus.com>
6707
6708 * exec.c (exec_ops): Don't initialize statically.
6709 (init_exec_ops): New function, fills in exec_ops.
6710 (_initialize_exec): Use it.
6711
6712 Thu Jan 7 17:50:15 EST 1999 Zdenek Radouch (radouch@cygnus.com)
6713
6714 Beta FR30 port.
6715 * fr30-tdep.c
6716 * config/fr30/tm-fr30.h
6717
6718 Wed Jan 6 12:28:35 1999 David Taylor <taylor@texas.cygnus.com>
6719
6720 * configure.in: Add an --enable-tui argument. Construct
6721 tui/Makefile from tui/Makefile.in. Use AM_PROG_CC_STDC. If we
6722 have the GUI, then we need this to process libgui.h.
6723 (ENABLE_CFLAGS): define and export BUILD_TUI.
6724 (AC_CHECK_HEADERS): Add check for term.h.
6725
6726 * configure.host (hppa-*-hpux10.20, hppa-*-hpux11.0*): New configs.
6727
6728 * config.in, configure : regenerated.
6729
6730 * Makefile.in: Allow the TUI code to be conditionally enabled.
6731 (TUI_LIBRARY): New variable, value are set by the configuration
6732 script. Set to the empty string when the TUI isn't enabled.
6733 (gdb$(GDBEXT)): Use those, instead of referring to all-tui and
6734 tui/libtui.a directly.
6735 (BUILD_TUI): build the tui -- only when configured with
6736 --enable-tui.
6737 (YLWRAP): use ylwrap to avoid problems on systems w/o bison.
6738 (gdb$(EXEEXT)): make it dependent on BUILD_TUI.
6739 (all-tui): remove dependency from phony target.
6740 (c-exp.tab.c): use ylwrap instead of bison.
6741 (jv-exp.tab.c): ditto.
6742 (f-exp.tab.c): ditto.
6743 (m2-exp.tab.c): ditto.
6744 (ALLDEPFILES): add somread.c, hp-psymtab-read.c, hp-symtab-read.c.
6745 (SFILES): remove the above files
6746 (COMMON_OBS): remove somread.o
6747 (SFILES): Add the tui files to this, so they get included in etags
6748 tables.
6749 (gdb$(EXEEXT)): Add all-tui to the list of dependencies, and add
6750 tui/libtui.a to the link list.
6751 (all-tui): New rule, which does a recursive make in the tui
6752 subdir.
6753 (tui/libtui.a): When recursing, pass down ${FLAGS_TO_PASS}. And
6754 don't echo the make command. This is closer to what the other
6755 recursions do.
6756 (HFILES_NO_SRCDIR): add hpread.h
6757 (COMMON_OBS): add hp-psymtab-read.o, hp-symtab-read.o
6758 (SFILES): add hp-psymtab-read.c, hp-symtab-read.c add rules for
6759 the new files. Remove hpread.c, hpread.o
6760 (gdb$(EXEEXT)): Depend on the actual tui library, not on a
6761 fictitious target. Since the fictitious target never existed,
6762 make would always relink.
6763 (tui/libtui.a): Always recurse to make sure the library is up to
6764 date.
6765
6766 Wed Jan 6 12:05:12 1999 Stan Shebs <shebs@andros.cygnus.com>
6767
6768 * remote.c: Pacify --enable-build-warnings, reformat code
6769 to conform to standards, fix spelling errors.
6770 (ishex, stubhex, record_currthread, etc): Declare.
6771 (ishex, stubhex): Declare char arg as int.
6772 (pack_string): Comment out, never used but possibly useful.
6773 (threadref_to_int, remote_get_threadinfo, etc): Make static.
6774
6775 Wed Jan 6 11:43:32 1999 David Taylor <taylor@texas.cygnus.com>
6776
6777 The following changes were made by Elena Zannoni
6778 <ezannoni@cygnus.com> and Edith Epstein <eepstein@cygnus.com> as
6779 part of a project to merge in changes made by HP.
6780
6781 * c-exp.y: use external flag hp_som_som_object_present to decide
6782 whether code was compiled by HP's compilers. Add two new C++
6783 tokens for true and false.
6784 (yylex): check for template name is done differently for the
6785 HP/aCC compiler case. Change some of the template processing code
6786 for handling HP aCC templates. Handle true and false tokens.
6787
6788 Tue Jan 5 11:13:36 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
6789
6790 * remote.c (record_curthread): Must not modify inferior_pid when
6791 called from wait_for_inferior. Instead, if a new thread-id is
6792 detected, call add_thread.
6793 (MAGIC_NULL_PID): new macro, use instead of the magic number
6794 "42000".
6795 (remote_find_new_threads): if inferior_pid is unknown, get and use
6796 the current thread id.
6797 (remote_start_remote): on connecting, attempt to get the current
6798 thread id for inferior_pid.
6799 (remote_resume): If pid == -1, then resume any-thread (not the
6800 current thread specifically). Also some cosmetic fixups.
6801
6802 * thread.c (info_threads_command): don't initialize current_pid
6803 until after call to FIND_NEW_THREADS (which may change inferior_pid).
6804 Also some cosmetic fixups.
6805 * infrun.c: cosmetic fixups and casts to avoid warnings.
6806 * infcmd.c: cosmetic fixups, mainly long lines.
6807
6808 Tue Jan 5 11:55:57 1999 David Taylor <taylor@texas.cygnus.com>
6809
6810 * target.c (noprocess): terminate sentence with a period.
6811 * breakpoint.c (catch_command_1): ditto.
6812
6813 * c-valprint.c (c_value_print): remove hack^2 from HP; it causes
6814 testsuite losses with no real gain.
6815
6816 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): restore, but only
6817 if tm-*.h hasn't overridden default value.
6818
6819 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
6820
6821 * configure.in: Fix whitespace indentation for --help.
6822 * configure: Regenerated.
6823
6824 1999-01-04 Manuel Bouyer <bouyer@antioche.lip6.fr>
6825
6826 * main.c: Add --write command line option, document -w.
6827 * gdb.1: Document --write.
6828
6829 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
6830
6831 * configure.in: Require autoconf 2.12.1 or higher.
6832 * doc/configure.in: Ditto.
6833 * nlm/configure.in: Ditto.
6834 * rdi-share/configure.in: Ditto.
6835 * testsuite/configure.in: Ditto.
6836 * doc/Makefile.in: Don't hardcode $(SHELL).
6837 * nlm/Makefile.in: Ditto.
6838 * rdi-share/Makefile.in: Ditto.
6839 * testsuite/Makefile.in: Ditto.
6840
6841 Mon Jan 4 12:53:03 1999 Stan Shebs <shebs@andros.cygnus.com>
6842
6843 * remote-vx.c (init_vx_ops, init_vx_run_ops): Remove unneeded
6844 inits of new fields, including ref to bogus field.
6845 (vx_ops, vx_run_ops): Make static.
6846
6847 Mon Jan 4 15:05:29 1999 David Taylor <taylor@texas.cygnus.com>
6848
6849 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): delete,
6850 already defined in tm.h.
6851
6852 * inftarg.c: change <sys/unistd.h> to <unistd.h> and
6853 conditionalize its inclusion.
6854 * infttrace.c: ditto.
6855
6856 For older changes see ChangeLog-98
6857 \f
6858 Local Variables:
6859 mode: change-log
6860 left-margin: 8
6861 fill-column: 74
6862 version-control: never
6863 End:
This page took 0.297188 seconds and 4 git commands to generate.