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