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