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