1 1999-09-07 J.T. Conklin <jtc@redback.com>
3 * i386-stub.c (exceptionHook, oldExceptionHook): Removed.
4 (handle_exception): Removed #if'd out exception hook code.
6 * i386-stub.c, m68k-stub.c (error): Removed unused variable.
8 * i386-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
9 sparcl-stub.c, sparclet-stub.c (remcomInBuffer, remcomOutBuffer):
12 Tue Sep 7 14:06:22 1999 Kevin Buettner <kevinb@cygnus.com>
14 * config/i386/tm-linux.h (SOFUN_ADDRESS_MAYBE_MISSING):
17 Tue Sep 7 08:18:01 1999 Kevin Buettner <kevinb@cygnus.com>
19 From Jim Blandy <jimb@cygnus.com>:
21 Step into calls to functions in shared libraries properly. See
22 the comments for SKIP_SOLIB_RESOLVER atop infrun.c for details.
23 * infrun.c (SKIP_SOLIB_RESOLVER): New macro.
25 1999-09-05 Fred Fish <fnf@cygnus.com>
27 * elfread.c (elf_symtab_read): Remove separately passed bfd
28 pointer and offset. Pick up bfd pointer from objfile, and
29 get offset from objfile's section_offsets.
31 Fri Sep 3 22:29:39 1999 Kevin Buettner <kevinb@cygnus.com>
33 * config/i386/tm-linux.h (REGISTER_NAMES): Changed register
34 named "foo" to "fopo" which more accurately describes the FPU
35 Operand Pointer Offset. The real reason for this change, of
36 course, is that many programmers use $foo as a convenience
37 variable and are likely to be unpleasantly surprised to find
38 that they're unwittingly changing the state of their ia32 FPU.
40 1999-09-03 Jason Molenda (jsm@bugshack.cygnus.com)
42 * monitor.c (monitor_supply_register): Stop scanning val string
43 if a newline is encountered.
45 1999-09-03 Jason Molenda (jsm@bugshack.cygnus.com)
47 monitor.c (TARGET_BUF_SIZE): New macro, defined to 2048.
48 (monitor_expect_regexp, monitor_wait, monitor_dump_reg_block,
49 monitor_dump_reg_block): Dump hard-coded constants in favor
52 (readchar): Re-enable output of characters read from monitor when
55 (monitor_supply_register): Use ULONGEST to hold value.
56 Replace strtoul() call with hand-coded loop to handle values
59 (monitor_store_register): Use ULONGEST to hold value.
61 Fri Sep 3 00:47:44 1999 Kevin Buettner <kevinb@cygnus.com>
63 [Merged linux/x86 floating point code from Bill Metzenthen,
64 Jim Blandy, Anthony Green, H. J. Liu, and possibly others. The
65 following remarks are Jim Blandy's.]
67 * findvar.c (extract_floating): Call TARGET_EXTRACT_FLOATING, if
69 (store_floating): Call TARGET_STORE_FLOATING, if #defined.
71 * i386-tdep.c (i386_print_register, i386_do_registers_info): New
73 (i386_extract_return_value): GNU/Linux returns floating point
74 values in a floating point register too.
75 (set_disassembly_flavor): Add prototype.
76 (i386_extract_return_value): Use FPDATA_REGNUM, not FP0_REGNUM (
77 which wasn't the first FP data register).
78 (i386_do_registers_info): Use FPSTART_REGNUM and FPEND_REGNUM as
79 the limits of the FPU-related registers.
80 (i386_extract_return_value): Tell GDB how to find return values
81 larger than four bytes. (Thanks to Paul N. Hilfinger for the bug
84 * i387-tdep.c (print_387_control_word): Break out bit-splitting into...
85 (print_387_control_bits): New function.
86 (print_387_status_word): Break out bit-splitting into...
87 (print_387_status_bits): New function.
88 (i387_print_register, i387_float_info, i387_hex_float_input): New
90 (i387_extract_floating, i387_store_floating): New functions.
92 * valprint.c (print_floating): Use macro TARGET_ANALYZE_FLOATING,
93 if it's #defined. Tolerate values of `nonnegative' other than
96 * i386-linux-nat.c: New file.
97 * Makefile.in (ALLDEPFILES): Mention i386-linux-nat.c.
98 (i386-linux-nat.o): New rule, listing dependencies.
99 * config/i386/linux.mh (NATDEPFILES): Use i386-linux-nat.o, not
100 the plain i386v4-nat.o.
101 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
102 * config/i386/xm-linux.h: Define HOST_I386.
104 * config/i386/tm-linux.h (FP0_REGNUM): Replaced by...
105 (FPSTART_REGNUM, FPCONTROL_REGNUM, FPSTATUS_REGNUM, FPTAG_REGNUM,
106 FPDATA_REGNUM, FPEND_REGNUM): New definitions.
107 (REGISTER_BYTES): Changed accordingly.
108 (SKIP_SOLIB_RESOLVER): #define this.
109 (i386_linux_skip_solib_resolver): New declaration.
110 (i387_float_info): Added extern decl for this function.
111 (TARGET_EXTRACT_FLOATING, TARGET_STORE_FLOATING,
112 TARGET_ANALYZE_FLOATING): Define.
113 (i387_extract_floating, i387_store_floating): New extern decls.
114 (I386_GNULINUX_TARGET): Define.
115 (NUM_REGS, NUM_FREGS, REGISTER_NAMES, FP0_REGNUM, FPDATA_REGNUM,
116 FPENV_BYTES, FPREG_RAW_SIZE, FPREG_BYTES, REGISTER_BYTES,
117 REGISTER_BYTE, REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE,
118 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
119 TARGET_LONG_DOUBLE_BIT, FLOAT_INFO, DO_REGISTERS_INFO): New
120 definitions, perhaps overriding those inherited from
121 config/i386/tm-i386.h.
122 (i386_do_registers_info, i387_print_register, double_to_i387,
123 i387_to_double): New declarations.
124 (LD_I387): Define iff both the host and target are using i387
126 (HEX_FLOAT_INPUT, REGISTER_CONVERTIBLE,
127 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW,
128 REGISTER_VIRTUAL_TYPE): Define these if LD_I387 is defined.
130 * source.c (list_command): List the right number of source lines,
131 even if we're at the top of the file.
133 1999-09-02 Stan Shebs <shebs@andros.cygnus.com>
135 * infrun.c (step_over_function): New function, broken out from the
136 step_over_function label in handle_inferior_event.
137 (handle_inferior_event): Change a goto into a function call.
139 Thu Sep 2 18:26:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
141 * Makefile.in (GDB_WERROR_CFLAGS, GBB_WARN_CFLAGS): Define.
142 (INTERNAL_CFLAGS): Update
143 * configure.in (WERROR_CFLAGS, WARN_CFLAGS): Sync with
144 ../sim/common/aclocal.m4.
145 * configure: Re-generate.
147 Thu Sep 2 00:27:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
149 * Makefile.in (z8k-tdep.o): For moment, don't try to compile with
150 -Werror. See Makefile.in.
151 * z8k-tdep.c (z8k_set_pointer_size): Document problem.
153 * config/z8k/tm-z8k.h (z8k_print_register_hook, z8k_frame_chain,
154 z8k_saved_pc_after_call, z8k_frame_saved_pc,
155 z8k_set_pointer_size): Declare.
156 (z8k_skip_prologue): Fix typo. Was mz8k_skip_prologue.
157 (FRAME_CHAIN, PRINT_REGISTER_HOOK, FRAME_SAVED_PC,
158 SAVED_PC_AFTER_CALL): Update.
159 * z8k-tdep.c (z8k_print_register_hook): Rename
160 z8k_print_register_hook.
161 (z8k_frame_chain): Rename frame_chain.
162 (z8k_saved_pc_after_call): Rename saved_pc_after_call.
163 (z8k_frame_saved_pc): Rename frame_saved_pc.
164 (z8k_print_register_hook): Fix printf.
165 (read_memory_pointer): Add declaration.
166 ("value.h"): Include.
167 * Makefile.in (z8k-tdep.o): Add dependency on value.h.
169 * config/sparc/tm-sparc.h (PRINT_EXTRA_FRAME_INFO): Fix
171 * Makefile.in (remote-e7000.o): For moment, don't try to compile
172 with -Werror. See Makefile.in.
173 * sh-tdep.c (sh_show_regs): Fix printf calls.
174 * xcoffsolib.c (solib_info): Fix Printf calls.
175 * dink32-rom.c: #include "symfile.h" for generic_load and
176 "inferior.h" for write_pc.
177 * Makefile.in (dink32-rom.o): Update.
179 * config/mn10300/tm-mn10300.h (mn10300_store_struct_return),
180 config/mn10200/tm-mn10200.h (mn10200_store_struct_return): Add
183 Tue Aug 31 00:48:27 1999 Andrew Cagney <cagney@amy.cygnus.com>
185 * config/mips/tm-tx49el.h (REGISTER_SIM_REGNO): Define.
187 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
188 Pass REGISTER_SIM_REGNO converted register number to the
191 1999-09-01 Tom Tromey <tromey@cygnus.com>
193 * config/i386/nm-linux.h (PREPARE_TO_PROCEED): Added argument.
195 1999-09-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
197 * values.c (value_virtual_fn_field): Remove unused var(s).
198 * thread.c (prune_threads): Ditto.
199 * symtab.c (lookup_transparent_type): Ditto.
200 (decode_line_1): Ditto.
201 (make_symbol_overload_list): Ditto.
202 * rs6000-tdep.c (frame_get_saved_regs): Ditto.
203 (set_processor): Ditto.
204 * remote.c (remote_remove_breakpoint): Ditto.
205 (remote_query): Ditto.
207 * remote-sds.c (sds_fetch_registers): Ditto.
209 * ppcbug-rom.c (ppcbug_supply_register): Ditto.
210 (ppcbug_open): Remove unused prototype.
211 * parse.c (parse_nested_classes_for_hpacc): Remove unused var(s).
212 * ocd.c (ocd_open): Ditto.
213 (ocd_get_packet): Ditto.
214 * monitor.c (monitor_error): Ditto.
215 (monitor_wait_srec_ack): Ditto.
216 * main.c (main): Ditto.
217 * gdbtypes.c (count_virtual_fns): Ditto.
218 * exec.c (exec_file_command): Ditto.
220 * event-top.c: Include handle_sigwinch() function prototype within
223 * eval.c (evaluate_subexp_standard): Remove unused variable.
224 (evaluate_subexp_standard): Remove unused variables.
225 * dink32-rom.c (dink32_supply_register): Remove unused variable.
226 * dbxread.c (elfstab_build_psymtabs): Ditto.
227 * command.c (do_setshow_command): Ditto.
228 * breakpoint.c (solib_load_unload_1): Remove unused variables 'i'
230 (until_break_command): Remove unused variables 'arg1' and 'arg2'.
231 (create_exception_catchpoint): Remove unused variable 'i'.
232 * ax-gdb.c (gen_sub): Remove unused variable.
233 (_initialize_ax_gdb): Ditto.
235 * ser-pipe.c (pipe_readchar): If timeout is expired return
237 * ser-tcp.c (tcp_readchar): If timeout is expired return
240 Wed Sep 1 15:07:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
242 * version.h: New file.
243 * Makefile.in (version_h): Define.
244 (version.o): Add target.
246 * remote-array.c: #include "version.h".
247 (version): Delete extern declarations.
248 * Makefile.in (remote-array.o): Add dependency on version.h.
250 * top.c: #include "version.h".
251 (version, host_name, target_name): Delete extern declarations.
252 * Makefile.in (top.o): Add dependency on version.h.
254 * remote.c (remote_remove_watchpoint, remote_insert_watchpoint),
255 remote-array.c (array_open), remote-mips.c (send_srec),
256 dve3900-rom.c (store_bitmapped_register): Fix Printfs.
258 * mips-tdep.c (mips_print_extra_frame_info, print_unpack),
259 m32r-rom.c (m32r_load_section), m32r-tdep.c (m32r_frame_chain),
260 dsrec.c (load_srec): Fix printf problems.
262 Wed Sep 1 13:16:49 1999 Andrew Cagney <cagney@b1.cygnus.com>
264 * Makefile.in (monitor.o): For moment, don't try to compile with
265 -Werror. monitor.c has -Wformat problems. See Makefile.in for
268 Tue Aug 31 21:23:38 1999 Jeffrey A Law (law@cygnus.com)
270 * hppa-tdep.c (prologue_inst_adjust_sp): Correct offset computation
271 for doubleword store instructions.
272 (hppa_frame_find_saved_regs): Similarly.
274 Wed Sep 1 09:22:50 1999 Andrew Cagney <cagney@b1.cygnus.com>
276 * d30v-tdep.c (d30v_print_register):
277 (tdisassemble_command):
279 * d10v-tdep.c (show_regs, trace_info, tdisassemble_command): Fix
282 * remote-sim.c (dump_mem), remote-rdi.c (arm_rdi_create_inferior):
283 Fix printf arguments.
285 * remote-mips.c, mips-tdep.c: Move declaration of
286 ``mips_set_processor_type_command'' from here.
287 * config/mips/tm-mips.h: To here.
288 * remote-array.c: #include "inferior.h".
289 * config/mips/tm-embed.h (remote_mips_stopped_by_watchpoint): Add
291 * remote-mips.c (remote_mips_stopped_by_watchpoint): Define using
293 (monitor_supports_breakpoints): Integer variable.
295 * m32r-rom.c: #include "inferior.h" and <ctype.h>
296 * config/m32r/tm-m32r.h (m32r_write_sp): Add declaration.
298 * config/i960/tm-i960.h (leafproc_return, i960_pop_frame): Add
300 (POP_FRAME): Call i960_pop_frame.
301 * i960-tdep.c (i960_pop_frame): Rename pop_frame.
302 * mon960-rom.c: #include "inferior.h" for declaration of write_pc.
304 1999-08-15 Fred Fish <fnf@cygnus.com>
306 * objfiles.c (objfile_relocate): Use SIZEOF_SECTION_OFFSETS when
307 allocating section_offsets array.
308 * remote-os9k.c (rombug_wait): Ditto.
309 * remote-vx.c (vx_add_symbols): Ditto.
310 * remote.c (get_offsets): Ditto.
311 (remote_cisco_objfile_relocate): Ditto.
312 * rs6000-nat.c (vmap_symtab): Ditto.
314 * dstread.c (dst_symfile_offsets): Set section_offsets directly instead
315 of returning a pointer to section offsets.
316 * somread.c (som_symfile_offsets): Ditto.
317 * xcoffread.c (xcoff_symfile_offsets): Ditto.
318 * symfile.c (default_symfile_offsets): Ditto.
319 (syms_from_objfile): The sym_offsets function has already set section
320 offsets and no longer returns a value.
322 * xcoffread.c (scan_xcoff_symtab): Eliminate section_offsets passed
323 separate from objfile.
324 (xcoff_start_psymtab): Ditto.
325 (START_PSYMTAB): Ditto.
326 * os9kread.c (read_minimal_symbols): Ditto.
327 (read_os9k_psymtab): Ditto.
328 (os9k_start_psymtab): Ditto.
329 (record_minimal_symbol): Ditto.
330 * dbxread.c (START_PSYMTAB): Ditto.
331 (start_psymtab): Ditto.
332 * mdebugread.c (START_PSYMTAB): Ditto.
333 (elfmdebug_build_psymtabs): Ditto.
334 (mdebug_build_psymtabs): Ditto.
335 (parse_partial_symbols): Ditto.
336 (new_psymtab): Ditto.
337 * dwarfread.c (dwarf_build_psymtabs): Ditto.
338 * partial-stab.h (START_PSYMTAB): Ditto.
339 * stabsread.h (start_psymtab): Ditto.
340 * dwarf2read.c (dwarf2_build_psymtabs): Ditto.
341 (dwarf2_build_psymtabs_easy): Ditto.
342 (dwarf2_build_psymtabs_hard): Ditto.
343 * hp-psymtab-read.c (hpread_build_psymtabs): Ditto.
344 (hpread_quick_traverse): Ditto.
345 (hpread_start_psymtab): Ditto.
347 * hpread.c (hpread_build_psymtabs): Ditto.
348 * symfile.h (dwarf2_build_psymtabs): Ditto.
350 * dbxread.c (read_dbx_symtab): Use ANOFFSET to access section
352 * core-cisco.c (get_seg_info): Make static.
353 * coffread.c (enter_linenos): Pass objfile instead of section
355 * jv-vm.c (jv_vm_internal_lookup_symbol): Call allocate_objfile
356 with the right number of arguments.
358 * dbxread.c (dbx_symfile_read): No need to explicitly pass
359 text addr and size. Let read_dbx_symtab find them.
360 (read_dbx_symtab): Get text addr and size from objfile.
361 (dbx_symfile_read): Remove dead code (call to strlen);
363 1999-08-31 Michael Snyder <msnyder@cleaver.cygnus.com>
365 * Makefile.in: add rule for sol-thread.o.
366 Add rule for linux-thread.o.
368 1999-08-13 Jim Kingdon <kingdon@redhat.com>
370 Threads code from gdb 4.18-codefusion-990706
371 [Thanks to Eric Paire, H. J. Liu, Jim Blandy and others]
372 * infrun.c (signal_stop_update, signal_print_update,
373 signal_pass_update): new functions.
374 * inferior.h: new prototypes for above functions.
375 * target.h (enum strata): add thread stratum.
376 * linux-thread.c: new file. Support for debugging linux threads.
377 * config/i386/nm-linux.h: several new prototypes for above.
378 * config/i386/linux.mh: add linux-thread.o to NATDEPFILES.
380 More threads code from the same place:
381 * config/i386/tm-linux.h (REALTIME_LO, REALTIME_HI): Add
383 * target.h (enum target_signal): Add TARGET_SIGNAL_REALTIME_32.
384 * target.c (signals, target_signal_from_host,
385 target_signal_to_host): Add clauses for
386 TARGET_SIGNAL_REALTIME_32.
388 1999-08-31 Neil Schellenberger <neil.schellenberger@crosskeys.com>
390 * sol-thread.c (sol_thread_detach): strip thread-id out of
391 inferior_pid, so that procfs_detach can't choke on it.
393 1999-08-31 J.T. Conklin <jtc@redback.com>
395 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
396 sparcl-stub.c, sparclet-stub.c (getpacket): Remove 'buffer' arg,
397 define it as a pointer to &remcomInBuffer[0].
398 (handle_exception): Update.
400 * sparc-stub.c, sparcl-stub.c, sparclet-stub.c (handle_exception):
401 Removed #ifdef'd out code which implements the non-standard 'b'
402 (set baud rate) command.
404 1999-08-31 Stan Shebs <shebs@andros.cygnus.com>
406 * infrun.c (keep_going): New function, broken out from the
407 keep_going label in handle_inferior_event.
408 (handle_inferior_event): Change more gotos into function calls.
410 Tue Aug 31 02:29:27 1999 Jeffrey A Law (law@cygnus.com)
412 * hppa-tdep.c (read_unwind_info): Handle multiple unwind sections.
414 Tue Aug 31 15:28:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
416 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Fix printf
418 * alpha-tdep.c (heuristic_proc_start): Ditto.
420 From Stan Shebs <shebs@andros.cygnus.com>:
421 * defs.h (strlen_paddr): Fix prototype - add void argument list.
423 Tue Aug 31 14:02:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
425 * defs.h (gdb_print_host_address), utils.c
426 (gdb_print_host_address): Rename gdb_print_address.
428 * expprint.c, gdbtypes.c, symmisc.c: Update.
430 *expprint.c: Use gdb_print_host_address when displaying native
433 Sat Aug 28 14:23:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
435 * scm-valprint.c (scm_ipruk), jv-valprint.c (java_value_print),
436 cp-valprint.c (cp_print_class_member), exec.c (exec_files_info),
437 remote.c (putpkt_binary, compare_sections_command,
438 remote_cisco_section_offsets), dcache.c (dcache_info),
439 breakpoint.c (break_at_finish_at_depth_command_1,
440 break_at_finish_command_1), symfile.c (generic_load),
441 (report_transfer_performance), top.c (get_prompt_1), f-valprint.c
442 (f_val_print), maint.c (maintenance_translate_address): Fix printf
443 -Wformat warnings. Use paddr, paddr_nz, sizeof_paddr, paddr_u and
444 paddr_d to print addresses. Change ``d'' to ``ld''.
446 * utils.c (strlen_paddr): New function.
448 Tue Aug 31 01:36:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
450 * config/d30v/tm-d30v.h (d30v_frame_chain,
451 d30v_init_frame_pc): Add declaration.
453 * arc-tdep.c (arc_pop_frame): Rename pop_frame.
454 (arc_push_dummy_frame): Rename push_dummy_frame.
455 (arc_set_cpu_type_command): Add declaration.
457 * config/arc/tm-arc.h (arc_pop_frame, arc_push_dummy_frame): Add
460 1999-08-30 Stan Shebs <shebs@andros.cygnus.com>
462 * infrun.c (prepare_to_wait): New function, broken out from the
463 wfi_continue label in handle_inferior_event.
464 (handle_inferior_event): Change more gotos into function calls.
466 1999-08-30 Michael Snyder <msnyder@cleaver.cygnus.com>
468 * tracepoint.c: -Wall warning cleanup.
469 (parse_and_eval_memrange): remove (unused).
470 (output_command, args_info, locals_info, registers_info): add decls.
471 (getpkt, putpkt, remote_console_output): add decls.
472 (isalnum, isspace): cast arg to avoid warning.
473 (printf, fprintf, sprintf): use [fs]printf_vma for printing addrs.
475 Mon Aug 30 21:47:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
477 * d10v-tdep.c: #include "language.h".
479 Mon Aug 30 20:38:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
481 * configure.in (AC_CHECK_HEADERS): Check for <time.h>.
482 * configure, acconfig.in: Re-generate.
484 * remote-rdp.c: #include <time.h>
486 * config/arm/tm-arm.h (arm_float_info): Add declaration.
488 * arm-tdep.c (convert_from_extended, convert_to_extended): Change
489 double ptr arg to void ptr arg.
491 * config/arm/tm-arm.h (arm_frameless_function_invocation): Add
493 (arm_frame_find_saved_regs): Rename frame_find_saved_regs.
494 (convert_from_extended, convert_to_extended): Add declaration.
496 Mon Aug 30 19:05:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
498 * configure.in (WERR_CFLAGS): Separate the -Werror flag.
499 * configure: Re-generate.
501 * Makefile.in (INTERNAL_CFLAGS): Re-define using
502 INTERNAL_WARN_CFLAGS.
503 (INTERNAL_WARN_CFLAGS): Define. Leave off WERR_CFLAGS.
504 (tracepoint.o): Add explicit rule.
505 (WERR_CFLAGS): Add definition.
507 Mon Aug 30 17:52:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
509 * utils.c: #include "event-loop.h" for declaration of
511 * Makefile.in (utils.o): Add dependency on event-loop.h.
513 * event-top.c (mark_async_signal_handler_wrapper,
514 async_request_quit): Move declaration from here.
515 * event-loop.h: To here.
517 * defs.h: Add declaration of exec.c:exec_set_section_offsets.
519 * event-top.c: #include "gdbcmd.h" which includes "command.h" and
520 hence expose declaration of function dont_repeat.
522 * top.c (ISATTY), tracepoint.c (ISATTY), utils.c (ISATTY),
523 event-top.c (ISATTY): Move definitions from here.
524 * defs.h (ISATTY): To here. #include <unistd.h>.
526 * sol-thread.c, solib.c, source.c, sparcl-tdep.c, tracepoint.c,
527 utils.c, win32-nat.c, wince.c, top.c, symfile.c, ser-unix.c,
528 ser-tcp.c, procfs.c, maint.c, infttrace.c, hppa-tdep.c,
529 ser-pipe.c, remote-rdp.c, main.c, inftarg.c, inflow.c,
530 hpux-thread.c, hp-psymtab-read.c, go32-nat.c, fork-child.c,
531 corelow.c, command.c: Do not #include <unistd.h>, moved to defs.h.
533 Mon Aug 30 15:14:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
535 * defs.h (struct tui_stream, enum streamtype): Move from here.
538 * main.c (tui_file_fputs): Move from here.
541 Sun Aug 29 10:03:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
543 * gdb-events.h, gdb-events.c, gdb-events.sh: New files.
545 1999-08-27 Michael Snyder <msnyder@cleaver.cygnus.com>
547 * solib.c (open_symbol_file_object): new function.
548 Called when attaching to a new process, if there is no loaded
549 symbol file. Attempts to locate the executable file for the
550 attached process and load symbols from it.
551 (solib_add): Call open_symbol_file_object if attaching to a
552 new process and no open symbol file.
554 1999-08-27 Jason Molenda (jsm@bugshack.cygnus.com)
556 * config/i386/tm-sun386.h (GDB_TARGET_IS_SUN386): Definition
557 removed--no longer checked anywhere in gdb.
559 1999-08-27 Stan Shebs <shebs@andros.cygnus.com>
561 * infrun.c (stop_stepping): New function, broken out from
562 stop_stepping label in handle_inferior_event.
563 (handle_inferior_event): Change gotos into function calls.
565 Fri Aug 27 20:13:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
567 * defs.h (LONGEST): Move definition to earlier in file - to just
569 (paddr_u, paddr_d): Declare.
570 * utils.c (decimal2str): New function.
571 (paddr_u, paddr_d): Define.
573 * remote.c (remote_cisco_section_offsets,
574 compare_sections_command): Fix XprintfX arguments. Use paddr...
575 (putpkt_binary): Fix XprintfX arguments.
577 Tue Aug 24 21:30:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
579 * arm-tdep.c (arm_init_extra_frame_info): Add braces. Recommended
580 by gcc -Wparentheses.
582 1999-08-26 Stan Shebs <shebs@andros.cygnus.com>
584 * infrun.c (check_sigtramp2): New function, broken out from
585 check_sigtramp2 label in handle_inferior_event.
586 (handle_inferior_event): Change gotos into function calls.
588 Declare Tahoe configuration obsolete.
589 * configure.host, configure.tgt: Comment out Tahoe configs.
590 * Makefile.in: Comment out Tahoe-related action.
591 * tahoe-tdep.c, config/tahoe/*: Comment out.
592 * NEWS: Mention obsolete status.
594 1999-08-26 J.T. Conklin <jtc@redback.com>
596 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sh-stub.c,
597 sparc-stub, sparcl-stub.c sparclet-stub.c (getpacket): If '$',
598 the packet start character is received in the 'middle' of a
599 packet, assume that packet end character has been lost and
602 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
603 sparcl-stub.c sparclet-stub.c (getpacket): Changed to return ptr
604 to first character of input buffer. Removed & 0x7f masks.
605 (handle_exception): Don't access remcomInBuffer directly.
607 1999-08-25 Stan Shebs <shebs@andros.cygnus.com>
609 * breakpoint.c (disable_breakpoints_in_shlibs): Only disable
612 Tue Aug 24 14:59:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
614 * tracepoint.c, remote.c, pa64solib.h, value.h, somsolib.h,
615 solib.h, scm-lang.h, language.h, inferior.h, defs.h, coff-solib.h,
616 ch-lang.h, breakpoint.h, annotate.h: Remove #if __STDC__ wrapping
619 * config/sparc/nm-sun4sol2.h, config/mn10300/tm-mn10300.h,
620 config/mn10200/tm-mn10200.h, config/i386/tm-i386.h,
621 config/i386/tm-i386v.h, config/i386/nm-i386sol2.h,
622 config/pa/nm-hppah.h, config/rs6000/nm-rs6000.h,
623 config/sparc/tm-sp64.h, config/v850/tm-v850.h,
624 config/tic80/tm-tic80.h, config/sparc/tm-sparc.h,
625 config/sh/tm-sh.h, config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
626 config/mips/tm-mips.h, config/m68k/tm-m68k.h,
627 config/m32r/tm-m32r.h, config/i960/tm-mon960.h,
628 config/fr30/tm-fr30.h, config/h8300/tm-h8300.h,
629 config/arm/tm-arm.h, config/alpha/tm-alpha.h,
630 config/a29k/tm-a29k.h: Ditto.
632 Wed Aug 25 10:45:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
634 * Makefile.in (gdb$(EXEEXT)): Add dependency on TDEPLIBS.
636 * config/arm/arm.mt (TDEPLIBS): Define. Move libangsd.a to here.
637 (TDEPFILES): From here.
639 1999-08-24 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
641 * top.c (init_main): Add new set/show command exec-done-display,
642 default value is off.
643 * event-loop.h: Export exec_done_display_p.
644 * event-top.c: New variable exec_done_display_p.
645 * infrun.c (complete_execution): Print completion message if
646 corresponding flag is set.
648 * top.c (DEFAULT_PROMPT): Add space after "(gdb)" at end of prompt.
650 From: J.T. Conklin <jtc@redback.com>
651 * top.c (DEFAULT_PROMPT): Set to "(gdb)" if not already defined.
652 (init_main): Always use DEFAULT_PROMPT.
654 Tue Aug 24 03:23:31 1999 Jeffrey A Law (law@cygnus.com)
656 * hppa-tdep.c: Remove useless "purecov: deadcode" comments.
657 (hppa_use_struct_convention): Update for PA64.
658 (hppa_frame_saved_pc): Properly extract the saved PC in a call
660 (in_solib_call_trampoline): Return nonzero if we are in a function
662 (prologue_inst_adjust_sp): Handle std,ma.
663 (skip_prologue_hard_way): Handle more PA2.0/PA64 insns.
664 (hppa_frame_find_saved_regs): Similarly. Handle indirect save of
667 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Define.
668 (CALL_DUMMY_BREAKPOINT_OFFSET): Define.
670 Tue Aug 24 14:59:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
672 * Makefile.in (gdb$(EXEEXT)): Add dependency on main.o that was
673 lost when libgdb.a was added.
675 Tue Aug 24 14:26:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
677 * gdbarch.c, gdbarch.h: Convert to pure ISO-C.
679 * gdbarch.sh: New file.
680 * gdbarch.c, gdbarch.h: Add note describing gdbarch.sh
682 Mon Aug 23 19:36:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
684 * Makefile.in (libgdb.a): New target.
685 (gdb$(EXEEXT)): Add dependency on libgdb.a.
686 (libgdb-files, LIBGDB_OBS, libgdb, LIBGDBDEPS, LIBGDBFILES): Delete.
688 Mon Aug 23 10:16:32 1999 Jeffrey A Law (law@cygnus.com)
690 * infttrate.c (child_pid_to_exec_file): Find the correct base
691 of the stack for PA64.
693 * pa64solib.c: Fix some minor whitespace problems.
694 (bfd_lookup_symbol): New function.
695 (pa64_solib_create_inferior_hook): Find the address __dld_break
696 in the dynamic linker. Try to set a shlib event breakpoint in
698 (add_to_solist): Do not add the same shared library to the shlib
701 Sun Aug 22 14:49:40 1999 Andrew Cagney <cagney@b1.cygnus.com>
703 * value.h (enum lval_type): Move declaration from here.
704 * defs.h (enum lval_type): To here.
705 * frame.h, gdbarch.h: Delete incomplete declaration of ``enum
708 1999-08-20 Michael Snyder <msnyder@cleaver.cygnus.com>
710 * breakpoint.c (can_use_hardware_watchpoint): reject expressions
711 that refer to registers or register variables.
713 Fri Aug 20 10:53:38 1999 Jeffrey A Law (law@cygnus.com)
715 * hppa-tdep.c (hppa_fix_call_dummy): Provide PA2.0W aware code.
717 * pa64solib.c pa64solib.h: New files.
719 * config/pa/hppa64.mt: Delete commented out code that is and
720 never will be appropriate for this target.
721 * config/pa/hpux11w.mt (TDEPFILES): Remove SOM references. Also
723 * config/pa/hpux11w.mh (NATDEPFILES): Remove SOM references.
725 * configure.host; Use "hpux11w" and "hpux11" instead of
726 "hpux1100w" and "hpux1100" respectively
727 * config/pa/hpux11w.mh: Renamed from hpux1100w.mh.
728 * config/pa/hpux11w.mt, config/pa/hpux11.mh: Likewise.
729 * config/pa/hpux11.mt: Likewise.
731 1999-08-19 Michael Snyder <msnyder@cleaver.cygnus.com>
733 * breakpoint.h (target_hw_bp_type): new enum.
734 * breakpoint.c (insert_breakpoints): use enum instead of consts.
735 (remove_breakpoint): use enum instead of consts.
736 (throughout): use "warning" instead of "fprintf(stderr, ..."
737 [Also clean up a bunch of excessively long lines.]
739 1999-08-19 J.T. Conklin <jtc@redback.com>
741 * i386-stub.c (waitabit): Removed.
742 (breakpoint): Update.
744 * i386-stub.c, m32r-stub.c, sparc-stub.c, sparcl-stub.c,
745 sparclet-stub.c (set_debug_traps): Don't send gratuitous ACK.
747 * m68k-stub.c (putpacket): Restore code so that packets are sent
748 until an ACK is received.
750 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
752 * breakpoint.c (bpstat_stop_status): Accept triggered addresses
753 anywhere inside the region occupied by a watched variable as a
754 sign that the watchpoint fired. Don't stop if some watchpoint
755 was triggered, but its address doesn't match the address of this
757 (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New macro.
758 Default definition is to call TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT.
759 (can_use_hardware_watchpoint): Call TARGET_REGION_OK_FOR_HW_WATCHPOINT;
760 if it returns zero, return zero immediately.
761 (insert_breakpoints): Try to insert watchpoints for all the values
762 on the value chain, even if some of them fail to insert. Remove
763 the breakpoint if parts of its value chain couldn't be inserted.
765 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
767 * go32-nat.c (go32_stopped_by_watchpoint): Remove unused code.
769 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
771 * go32-nat.c (tcgetpgrp, tcsetpgrp): New functions.
773 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
775 * go32-nat.c (go32_wait): If we are in a single-step mode, and the
776 next instruction is INT nn or INTO, use a temporary breakpoint to
777 simulate single-step mode, and reset the trace flag.
779 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
781 * go32-nat.c (wp_op): New typedef.
782 (SHOW_DR): Print the length of watched region as well.
783 (go32_insert_aligned_watchpoint): Remove unused argument PID. All
784 callers and the prototype changed.
785 (go32_handle_nonaligned_watchpoint): Renamed from
786 go32_insert_nonaligned_watchpoint. Now handles all operations on
787 non-aligned watchpoints: insertion, deletion, and counting. If
788 called with wp_count as the first argument, return the count of
789 debug registers needed to watch the region. Don't break out of
790 the loop before all the addresses in the region are processed.
791 (go32_remove_watchpoint): Call go32_remove_aligned_watchpoint to
793 (go32_remove_aligned_watchpoint): New function, modeled after
794 go32_insert_aligned_watchpoint. Removes watchpoints that watch
795 regions of arbitrary length by calling
796 go32_handle_nonaligned_watchpoint as needed.
797 (go32_region_ok_for_watchpoint): New function, called from
798 can_use_hardware_watchpoint via the new macro
799 TARGET_REGION_OK_FOR_HW_WATCHPOINT.
801 * config/i386/nm-go32.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
802 Define to call go32_region_ok_for_watchpoint.
803 (DECR_PC_AFTER_HW_BREAK): Define back to zero (previous redefinition
804 to 1 was due to a bug in go32-nat.c).
806 1999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
808 * go32-nat.c (cleanup_dregs): New function.
809 (go32_mourn_inferior): Call it.
810 (IS_REG_FREE, LOCAL_ENABLE_REG, GLOBAL_ENABLE_REG, DISABLE_REG,
811 SET_BREAK, SET_WATCH, IS_WATCH, WATCH_HIT): Protect arguments with
813 (SET_BREAK): Increment the debug register's reference count.
814 (DR_DEF): New macro, returns the access and length bits of the
816 (SHOW_DR): Print the reference count of each register. Disable or
817 enable print-out depending on an environment variable GDB_SHOW_DR.
818 (go32_insert_aligned_watchpoint): Look for an occupied debug
819 register with the same address and access/length bits, and reuse
820 it by incrementing reference the count, before occupying another
821 register. Return zero upon success.
822 (go32_insert_nonaligned_watchpoint): Pass the read/write bits to
823 go32_remove_watchpoint.
824 (go32_remove_watchpoint): Accept an additional parameter: the
825 read/write bits of the watchpoint to remove, and only remove a
826 watchpoint if it's occupied and its address and read/write bits
827 match. Only disable the register if its reference count is zero;
828 otherwise just decrease the reference count.
829 (go32_remove_hw_breakpoint): Only decrease reference count and
830 disable the debug register if it is occupied and its access bits
831 match those of an instruction breakpoint.
832 (go32_insert_hw_breakpoint): Before occupying another debug
833 register, look for an already occupied register that defines an
834 instruction breakpoint with the same address. If found, increment
835 its reference count. Call SHOW_DR even if failed to insert a
838 * config/i386/nm-go32.h (target_remove_watchpoint): Accept the
839 TYPE argument as well.
841 Wed Aug 18 17:47:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
843 * mips-tdep.c: Add more comments.
845 1999-08-17 Stan Shebs <shebs@andros.cygnus.com>
847 * blockframe.c: Don't use PARAMS anymore, remove obsolete comment
848 about frameless functions.
850 1999-08-16 Michael Snyder <msnyder@cleaver.cygnus.com>
852 * thread.c (delete_thread): delete any step_resume breakpoint
853 held by the thread. (prune_threads): call delete_thread.
854 * breakpoint.c (breakpoint_init_inferior): if startup, then
855 delete any remaining step_resume breakpoints.
856 * infrun.c (handle_inferior_event): add cautionary comment.
858 1999-08-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
860 * remote.c (remote_async_mourn): New function. Async version of
863 1999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
865 * terminal.h [__GO32__]: Remove conditional; DJGPP now supports
868 1999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
870 * command.c (CANT_FORK) [__MSDOS__]: Define.
871 (shell_escape) [CANT_FORK]: If ARG is NULL, pass an empty string
873 [__DJGPP__]: Return to the original directory after the shell
876 1999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
878 * config/i386/xm-go32.h (ROOTED_P): Don't reference X[1] if X[0]
881 * config/i386/nm-go32.h (DECR_PC_AFTER_HW_BREAK): Define to 1.
883 1999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
885 * go32-nat.c (redir_cmdline_parse, redir_cmdline_delete,
886 redir_to_child, redir_to_debugger, redir_debug_init)
887 [__DJGPP_MINOR__ < 3]: Dummy stubs for redirecting debuggee's
889 (print_387_status): Print "last FP instruction", not "last
890 exception". Restore the upper 5 bits of the opcode that aren't
891 stored in the FPU state. Print the FPU stack in its physical
892 order, not relative to ST(0). Print "special", not "trap" for
893 unnormals and infinities. Print all 10 bytes of each FP register,
894 and print them with 19 significant digits.
895 (regno_mapping): Make the mapping consistent with tm-go32.h.
896 (sig_map): Add mappings for SIGQUIT, SIGFPE, SIGALRM. Map NMI to
898 (excep_map): New variable, maps GDB signals to DJGPP exceptions.
899 (go32_attach): Signal an error: we cannot attach to other
901 (go32_resume): Record the signal with which the inferior should be
902 resumed, mapped to the DJGPP exception number.
903 (go32_wait): Pass the signal recorded in go32_resume to the
904 debuggee. Save and restore debugger's and debuggee's current
906 [__DJGPP_MINOR__ < 3]: Save and restore inferior's FPU state.
907 (store_register): FPU regsiters have numbers less than 31.
908 (go32_kill_inferior): Delete the parsed command-line storage.
909 (go32_create_inferior): Initialize the parsed command-line
910 storage. Parse the command line and create the redirections for
911 inferior's standard handles.
912 [__DJGPP_MINOR__ < 3]: Init the inferior's FPU state.
913 (ignore2): Function deleted.
914 (device_mode): New function, switches a character device between
916 (go32_terminal_init): Invalidate the raw/cooked mode information.
917 (go32_terminal_info): Print whether the inferior's terminal is in
919 [__DJGPP_MINOR__ > 2]: Say if standard handles are redirected or
920 closed by the inferior.
921 (go32_terminal_inferior): Switch standard handles to the
922 inferior's files/devices. Put the inferior's input device to
923 raw/cooked mode, exactly like we found it last time.
924 (go32_terminal_ours): Restore debugger's standard handles and put
925 the terminal into cooked mode. Save the mode of inferior's input
927 (init_go32_ops): Assign go32_ops.to_attach,
928 go32_ops.to_terminal_info, go32_ops.to_terminal_ours_for_output.
929 Initialize inferior's cwd and the command-line storage.
931 Mon Aug 16 14:29:30 1999 Jeffrey A Law (law@cygnus.com)
933 * config/pa/tm-hppa.h (ARGS_GROW_DOWNWARD): Define.
934 * config/pa/tm-hppa64.h (ARGS_GROW_DOWNWARD): Undefine.
935 * hppa-tdep.c (hppa_push_arguments): Handle arguments growing in
936 both directions depending ARGS_GROW_DOWNWARD.
937 (hppa_find_saved_regs): Update for 64bit wide registers & pointers
940 * hppa-tdep.c (hppa_pop_frame): Various fixes for 64bit wide
941 registers and pointers.
942 (hppa_fix_call_dummy, skip_trampoline_code): Likewise.
943 (restore_pc_queue): Update tests for width of memory loads.
944 (hppa_push_arguments): Delete version that was #if 0'd out.
946 * hppa-tdep.c (push_dummy_frame): Handle the new 64it ABI.
947 (find_dummy_frame_regs): Corresponding changes.
949 * hppa-tdep.c (read_unwind_info): Initialize obj_private->dp.
950 (internalize_unwinds): Improve test for when to use segment
951 relative code for unwinder bounds.
952 (rp_saved): Fix offset of saved return pointer for the 64bit ABI.
953 (hppa_frame_saved_pc): Various updates to handle 64bit registers
955 (frame_chain, restore_pc_queue): Likewise.
957 * hppa-tdep.c (rp_saved): RP is saved at frame-16 when
958 pointers are 64bits wide.
960 * hppa-tdep.c (record_text_segment_lowaddr): New function.
961 (internalize_unwinds): Use it if addressess are 8 bytes wide.
963 * symfile.c (syms_from_objfile): No longer warn if the lowest
964 section does not have SEC_CODE set.
966 * Makefile.in (pa64solib.o): Add dependencies.
968 * hppah-nat.c (store_inferior_registers): Do not try to write a
969 nonzero value to the high part of IPSW. Fix typo in unable to store
972 * config/pa/tm-hppa.h (opd_data structure): Delete. Not actually
974 (struct obj_private_struct): Add new entry for the objfile's DP
976 * config/pa/tm-hppa64.h (CALL_DUMMY): Add a nop to make it an even
977 number of instructions. Pack the dummy into word sized hunks.
978 (CALL_DUMMY_LENGTH): Update appropriately.
979 (PC_IN_CALL_DUMMY, CALL_DUMMY_LOCATION_AFTER_TEXT_END): Delete.
981 Mon Aug 16 19:08:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
983 * configure.in: Try -lsocket when looking for socketpair.
984 * configure, config.h: Re-generate.
986 1999-08-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
988 From Christopher Faylor <cgf@cygnus.com>:
990 * event-loop.c (gdb_wait_for_event): Before going to wait for
991 another event with select or poll, flush the error and the output
994 * event-top.c (gdb_readline2): Do not buffer the input, because
995 doing so can interfere with select/poll in bad ways.
997 Fri Aug 13 17:36:56 1999 Eli Zaretskii <eliz@is.elta.co.il>
999 * maint.c (maintenance_dump_me) [__DJGPP__]: Simulate a core dump
1001 * utils.c (quit) [__MSDOS__]: Don't mention SIGINT, since it's not
1003 (notice_quit): No need to define this function for the DJGPP port.
1005 1999-08-13 James Ingham <jingham@leda.cygnus.com>
1007 * arm-tdep.c (arm_frameless_function_invocation): SKIP_PROLOGUE
1008 macro no longer modifies its argument. Update uses to accord.
1010 * config/arm/arm.mt (TDEPFILES): Add the remote-rdi.o to the
1012 * configure.tgt: Add rdi-share to configdir for the Arm targets.
1014 Fri Aug 13 11:16:32 1999 Jeffrey A Law (law@cygnus.com)
1016 * hppah-nat.c (store_inferior_registers): Revamp to be PA2.0W
1019 * infttrace.c (ttrace_write_reg_64): New function.
1021 * hp-symtab-read.c (is_in_import_list): Delete extern declaration.
1022 * somread.c (is_in_import_list): Delete function.
1023 * objfiles.c (is_in_import_list): New function.
1024 * objfiles.h (is_in_import_list): Declare.
1026 * config/pa/tm-hppa64.h (GDB_TARGET_IS_HPPA20W): Define before
1027 including tm-hppah.h.
1028 (PC_IN_CALL_DUMMY): Define.
1029 (HPUX_1100): Similarly.
1030 * config/pa/tm-hppa.h (somsolib.h, pa64solib.h): Conditionalize
1031 includes on GDB_TARGET_IS_HPPA20W.
1033 * configure.host: Distinguish between wide and narrow modes
1035 * config/pa/hpux1100w.mh, config/pa/hpux1100w.mt: New files.
1037 * config/pa/tm-hppa64.h (STACK_ALIGN): Redefine.
1038 (REG_PARM_STACK_SPACE): Likewise.
1040 * config/pa/tm-hppa.h (CLEAN_UP_REGISTER_VALUE): Handle 64bit
1041 PA target correctly.
1042 (REG_PARM_STACK_SPACE): Define.
1043 (struct unwind_table_entry): region_start and region_end are
1045 (typedef opd_data): New.
1046 (obj_private_data_t): Include pointer to opd_data structure.
1048 1999-08-13 Keith Seitz <keiths@cygnus.com>
1050 * stabsread.c (stabsread_clear_cache): New funciton which clears
1051 an optimization cache of the reader.
1053 * coffread.c (coff_symfile_finish): Give stabs reader a chance to
1056 * win32-nat.c (handle_load_dll): Don't suppress re-reading symbols
1057 from a DLL if an objfile for it already exists. (Not that this should
1058 happen anymore anyway...)
1060 1999-08-13 Keith Seitz <keiths@cygnus.com>
1062 * config/mcore/tm-mcore.h (SAVE_DUMMY_FRAME_TOS): Define for MCore,
1063 which also requires that the stack pointer be saved for call
1064 dummies BEFORE arguments get pushed onto it.
1066 1999-08-12 Stan Shebs <shebs@andros.cygnus.com>
1068 From Eli Zaretskii <eliz@is.elta.co.il>:
1069 * source.c (mod_path) [_WIN32 || __DJGPP__]: Don't remove trailing
1070 slash from "d:/". Don't overstep the beginning of name.
1071 [_WIN32 || __MSDOS__]: Convert "d:" to "d:.", otherwise appending
1072 a slash changes its meaning.
1073 (openp): Use SLASH_P, not equality with SLASH_CHAR.
1074 (print_source_lines_base) [CRLF_SOURCE_FILES]: Skip \r only before
1076 (forward_search_command) [CRLF_SOURCE_FILES]: Remove \r at the end
1078 (reverse_search_command) [CRLF_SOURCE_FILES]: Likewise.
1080 * gnu-regex.c (CHAR_CLASS_MAX_LENGTH): Don't use wide characters
1081 unless HAVE_BTOWC is defined.
1083 Fri Aug 13 10:20:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
1085 From J.T. Conklin <jtc@redback.com>:
1086 * gdbinit.in: Change the template .gdbinit to match the recent
1087 fatal error handling change.
1089 1999-08-11 Keith Seitz <keiths@cygnus.com>
1091 * maint.c (maintenance_internal_error): Fix typo in prototype.
1093 Wed Aug 11 15:38:05 1999 Andrew Cagney <cagney@amy.cygnus.com>
1095 * remote.c (remote_rcmd): Pass an empty command across to the
1096 target. Check for and handle an ``Enn'' return status.
1098 Tue Aug 10 13:59:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
1100 * maint.c (_initialize_maint_cmds): Add ``maintenance
1101 internal-error'' command.
1102 (maintenance_internal_error): New function.
1104 1999-08-10 James Ingham <jingham@leda.cygnus.com>
1106 * top.c: Remove the disassembly_flavor_hook, use the new set_hook
1109 * arm-tdep.c (set_disassembly_flavor_sfunc): Ditto.
1111 1999-08-10 Michael Snyder <msnyder@cleaver.cygnus.com>
1113 * config/i386/nm-i386sol2.h (FIND_NEW_THREADS): remove, obsolete.
1114 * config/sparc/nm-sun4sol2.h (FIND_NEW_THREADS): remove, obsolete.
1116 1999-08-10 J.T. Conklin <jtc@redback.com>
1118 * configure.tgt (i[3456]86-*-aout*, i[3456]86-*-coff*,
1119 i[3456]86-*-elf*): Use embed.mt.
1120 * config/i386/embed.mt: New file.
1122 1999-08-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1124 * remote.c (remote_async_open_1): Remove casting in call to
1126 (extended_remote_async_create_inferior): Ditto.
1128 * event-top.c (change_line_handler): Ditto.
1129 (_initialize_event_loop): Ditto.
1131 * infrun.c (complete_execution): Ditto.
1133 * event-loop.c (add_file_handler): Change proc parameter to be ptr
1134 to func with void parameter, rather than void*. Coerce second
1135 paramter in calls to create_file_handler. Replace
1136 async_handler_func and file_handler_func with handler_func.
1138 * event-loop.h: Get rid of typedefs for file_handler_func and
1139 async_handler_func, just have one, and call it handler_func.
1140 Replace async_handler_func and file_handler_func occurrences with
1143 Tue Aug 10 03:13:03 1999 Jeffrey A Law (law@cygnus.com)
1145 * hppa-tdep.c: Delete random #if 0 code.
1146 (is_branch): Handle new branching opcodes from PA2.0
1147 (inst_saves_gr, inst_saves_fr): Handle additional instructions
1148 used to save general and floating point registers in the stack.
1149 (skip_prologue_hard_way): Handle additional instructions to
1150 save the return pointer in the stack.
1151 (after_prologue): Fix mis-guided and incorrect code to find
1152 the end of the prologue using debug symbols.
1153 (hppa_skip_prologue): Generally clean up comments, lose code
1154 which does not apply to the PA, etc.
1156 Sun Aug 8 17:53:41 1999 Andrew Cagney <cagney@amy.cygnus.com>
1158 * MAINTAINERS: Make Andrew Cagney the mn10300 maintainer.
1159 Transfer responsibility for the PowerPC from Andrew Cagney to
1162 Tue Aug 10 13:59:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
1164 Based on code from J.T. Conklin <jtc@redback.com>:
1165 * utils.c (internal_error): Make quit? and coredump? separate
1166 questions so that the user can dump-core and not quit.
1167 (internal_error): Cleanup error message.
1169 1999-08-09 Tom Tromey <tromey@cygnus.com>
1171 * kod-cisco.c (cisco_kod_open): Removed incorrect `arg' argument.
1173 Sun Aug 8 12:06:47 1999 Fred Fish <fnf@cygnus.com>
1175 * coffread.c (process_coff_symbol): Remove section_offsets from
1176 prototype and function definition. Get section_offsets from the
1177 passed objfile and pass it on to callees the same way.
1178 (coff_symtab_read): Ditto.
1179 (coff_symfile_read): Ditto.
1180 * dbxread.c (read_dbx_dynamic_symtab): Ditto.
1181 (read_dbx_symtab): Ditto.
1182 (dbx_symfile_read): Ditto.
1183 (coffstab_build_psymtabs): Ditto.
1184 (elfstab_build_psymtabs): Ditto.
1185 (stabsect_build_psymtabs): Ditto.
1186 * dstread.c (dst_symfile_read): Ditto.
1187 * elfread.c (elf_symfile_read): Ditto.
1188 * jv-class.c (jv_class_symfile_read): Ditto.
1189 * mipsread.c (mipscoff_symfile_read): Ditto.
1190 * nlmread.c (nlm_symfile_read): Ditto.
1191 * os9kread.c (os9k_symfile_read): Ditto.
1192 * somread.c (som_symfile_read): Ditto.
1193 * stabsread.h (elfstab_build_psymtabs): Ditto.
1194 * xcoffread.c (xcoff_initial_scan): Ditto.
1196 * symfile.h (sym_read): Remove section_offsets from prototype.
1197 * symfile.c (syms_from_objfile): Call sym_read without
1199 (reread_symbols): Ditto.
1201 * elfread.c (elfstab_offset_sections): Use SIZEOF_SECTION_OFFSETS
1202 to allocate sections offsets array.
1203 * xcoffread.c (xcoff_symfile_offsets): Ditto.
1205 * partial-stab.h (section_offsets): Get from objfile.
1206 * dbxread.c (read_dbx_symtab): Fix typo that made -1 casted
1207 to a CORE_ADDR look like an subtraction expression.
1208 * objfiles.h: Add some comments.
1209 * symfile.c: Add some comments.
1210 * objfiles.c: Add some comments.
1211 (objfile_relocated): Use ALL_OBJFILE_OSECTIONS to iterate over
1213 (find_pc_sect_sections): Use ALL_OBJSECTIONS to iterate over all
1214 sections in all objfiles.
1215 * symfile.c (syms_from_objfile): Use ALL_OBJFILE_OSECTIONS.
1217 * irix5-nat.c (symbol_add_stub): Fix typo that made taking the
1218 address of lowest_sect with '&' look like a bitwise and op.
1219 * osfsolib.c (symbol_add_stub): Ditto.
1220 * solib.c (symbol_add_stub): Ditto.
1221 * symfile.c (syms_from_objfile): Ditto.
1223 * dwarf2read.c (dwarf2_build_psymtabs_hard): Minor format tweak.
1224 * symfile.c (syms_from_objfile): Ditto, and fix typo.
1225 * top.c (init_main): Fix typo in comment (DEFULAT_PROMPT).
1226 * doc/gdbint.texinfo (find_sym_fns): This replaces symfile_init.
1228 1999-08-08 James Ingham <jingham@leda.cygnus.com>
1230 * remote.c (remote_insert_breakpoint): Fix typo in Z packet support.
1231 Also move Z packet support OUTSIDE of REMOTE_BREAKPOINT ifdef,
1232 since this is not set for all targets that support the Z packet.
1234 Fri Aug 6 17:17:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
1236 * defs.h (fatal): Delete declaration.
1237 (internal_error): Declare.
1238 * utils.c (nomem): Call internal_error instead of fatal.
1239 (fatal_dump_core): Delete.
1240 (malloc_botch): Print message direct to stderr.
1241 (fatal): Delete definition.
1242 * utils.c (internal_error): Define.
1244 * gdbarch.h, gdbarch.c, hppah-nat.c, ch-exp.c, dsrec.c, sh-tdep.c,
1245 infptrace.c, f-lang.c, symm-nat.c, top.c, m3-nat.c, v850-tdep.c,
1246 remote-vx.c, remote-sim.c, remote-mips.c, source.c, infcmd.c,
1247 findvar.c, remote.c: Replace fatal with call to internal_error.
1249 Sun Aug 8 15:28:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
1251 * ser-pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Move
1252 definition from here.
1255 Sat Aug 7 21:44:59 1999 Fred Fish <fnf@cygnus.com>
1257 * remote.c (remote_insert_breakpoint): Fix typo, missing ';'.
1259 Sun Aug 8 11:26:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
1261 * mips-tdep.c (mips_gdbarch_init): Add break; to the default case.
1263 Fri Aug 6 19:26:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
1265 * defs.h: Delete #if ANSI_PROTOTYPES code, GDB assumes ISO-C.
1266 * remote-rdp.c (send_rdp), remote-os9k.c (printf_monitor),
1267 remote-mips.c: (mips_error), remote-array.c: (printf_monitor,
1268 debuglogs), complaints.c (complain), monitor.c:
1269 (monitor_printf_noecho, monitor_printf), language.c (type_error,
1270 range_error), remote-st.c: (printf_stdebug), remote-sim.c
1271 (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
1272 gdb_os_evprintf_filtered, gdb_os_error), serial.c (serial_printf),
1273 utils.c (warning, error, fatal, fatal_dump_core, (query,
1274 fprintf_filtered, fprintf_unfiltered, fprintfi_filtered,
1275 printf_filtered, printf_unfiltered, printfi_filtered): Delete
1276 legacy #ifndef ANSI_PROTOTYPES varargs code.
1278 * defs.h: Don't #include <varargs.h>.
1279 * remote-rdp.c, remote-os9k.c, remote-mips.c, remote-array.c,
1280 monitor.c, remote-st.c: Don't include <varargs.h> or <stdarg.h>.
1282 1999-08-06 James Ingham <jingham@leda.cygnus.com>
1284 * configure.in, configure: add the --enable-multi-ice to determine
1285 whether to configure and build the multi-ice-gdb-server. Note,
1286 for now this only builds on cygwin, so don't enable it for other
1289 1999-08-06 Tom Tromey <tromey@cygnus.com>
1291 * Makefile.in (SFILES): Added kod.c and kod-cisco.c.
1292 (COMMON_OBS): Added kod.o and kod-cisco.o.
1293 (kod-cisco.o): New target.
1294 (kod.o): New target.
1295 * kod-cisco.c: New file.
1298 1999-08-06 James Ingham <jingham@leda.cygnus.com>
1300 These are some fixups for the Arm, and support for the
1301 disassembly-flavor for the ARM.
1303 * defs.h: Declare the disassembly_flavor_hook
1304 * top.c: Define the disassembly_flavor_hook
1305 * i386-tdep.c: Remove unnecessary declaration of the
1306 disassembly_flavor_hook.
1308 * config/arm/tm-arm.h: Change definition of
1309 arm_init_extra_frame_info.
1310 Add a few more comments.
1311 * arm-tdep.c (arm_init_extra_frame_info): Listen to and use the
1312 fromleaf parameter passed into init_extra_frame_info.
1313 (set_disassembly_flavor_sfunc): New Function.
1314 (set_disassembly_flavor): New Function.
1315 (arm_othernames): Use the set_disassembly_flavor.
1316 (_initialize_arm_tdep): Setup the disassembly flavor commands, and
1317 initialize the flavor.
1318 (arm_frameless_function_invocation): Adjust for
1319 frameless functions that have 1 or 2 instructions that mimic the
1321 (arm_scan_prologue): Be more careful about scanning the function
1322 prologue. Don't match things that just have a few of the prologue
1323 instructions out of order, and don't get thrown by the scheduler
1324 migrating instructions into the prologue.
1326 Add support for the "Z" and "z" packets to request the stub
1327 to set a breakpoint.
1329 * remote.c (set_remote_protocol_Z_packet_cmd): New function.
1330 (show_remote_protocol_Z_packet_cmd): New Function.
1331 (remote_open_1): Init the Z packet config.
1332 (remote_async_open_1): Init the Z packet config.
1333 (remote_insert_breakpoint): Use the "Z" packet if supported.
1334 (remote_remove_breakpoint): Use the "z" packet if supported.
1335 (remote_insert_watchpoint): New Function - currently wired to
1337 (remote_remove_watchpoint): Ditto.
1338 (remote_insert_hw_breakpoint): Ditto.
1339 (remote_remove_hw_breakpoint): Ditto.
1341 1999-08-06 Stan Shebs <shebs@andros.cygnus.com>
1343 * infcmd.c: Include parser-defs.h.
1344 (interrupt_target_command): Declare.
1345 (stack_dummy_testing): Remove old funky flag.
1346 (run_stack_dummy): Remove unused reference to old funky flag.
1348 1999-08-06 Tom Tromey <tromey@cygnus.com>
1350 * command.c (do_setshow_command): Call set_hook if not NULL.
1351 * top.c (set_hook): New hook definition.
1352 * defs.h (set_hook): Declare.
1354 1999-08-05 Stan Shebs <shebs@andros.cygnus.com>
1356 * infrun.c: Convert code to pure standard C, elim some warnings.
1357 (stopped_for_shlib_catchpoint): Remove, never used.
1359 1999-08-05 Keith Seitz <keiths@cygnus.com>
1361 * NEWS: Mention new Motorola MCore target.
1363 * sparc-tdep.c (gdb_print_insn_sparc): Print insns of the current
1366 Thu Aug 5 20:41:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
1368 * configure.in (configdirs): Add check for socketpair.
1369 * configure, config.in: Re-generate.
1371 From Mon Jul 19 10:46:18 1999 Philippe De Muyter <phdm@macqel.be>:
1372 * ser-pipe.c (sys/wait.h): Include this file only #if HAVE_SYS_WAIT_H.
1373 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Macros defined if needed.
1375 Thu Aug 5 20:04:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
1377 * target.c (debug_to_open, debug_to_attach, debug_to_post_attach,
1378 debug_to_require_attach, debug_to_detach, debug_to_require_detach,
1379 debug_to_wait, debug_to_post_wait, debug_to_fetch_registers,
1380 debug_to_store_registers, debug_to_prepare_to_store,
1381 debug_to_xfer_memory, debug_to_files_info,
1382 debug_to_insert_breakpoint, debug_to_remove_breakpoint,
1383 debug_to_terminal_init, debug_to_terminal_inferior,
1384 debug_to_terminal_ours_for_output, debug_to_terminal_ours,
1385 debug_to_terminal_info, debug_to_kill, debug_to_load,
1386 debug_to_lookup_symbol, debug_to_create_inferior,
1387 debug_to_post_startup_inferior,
1388 debug_to_acknowledge_created_inferior,
1389 debug_to_clone_and_follow_inferior,
1390 debug_to_post_follow_inferior_by_clone,
1391 debug_to_insert_fork_catchpoint, debug_to_remove_fork_catchpoint,
1392 debug_to_insert_vfork_catchpoint,
1393 debug_to_remove_vfork_catchpoint, debug_to_has_forked,
1394 debug_to_has_vforked, debug_to_can_follow_vfork_prior_to_exec,
1395 debug_to_post_follow_vfork, debug_to_insert_exec_catchpoint,
1396 debug_to_remove_exec_catchpoint, debug_to_has_execd,
1397 debug_to_reported_exec_events_per_exec_call,
1398 debug_to_has_syscall_event, debug_to_has_exited,
1399 debug_to_mourn_inferior, debug_to_can_run,
1400 debug_to_notice_signals, debug_to_thread_alive, debug_to_stop,
1401 debug_to_query, debug_to_rcmd, debug_to_enable_exception_callback,
1402 debug_to_get_current_exception_event, debug_to_pid_to_exec_file,
1403 debug_to_core_file_to_sym_file, debug_to_close): Send trace output
1404 to ``gdb_stdlog'' instead of ``gdb_stderr''.
1406 Thu Aug 5 16:22:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
1408 * remote.c (init_remote_ops): Initialize remote_ops.to_rcmd.
1409 (init_remote_async_ops): Initialize remote_async_ops.to_query.
1410 (remote_rcmd): New function.
1412 * monitor.c (monitor_rcmd): Rename monitor_command.
1413 (init_base_monitor_ops): Initialize monitor_ops.to_rcmd.
1414 (_initialize_remote_monitors): Move "monitor" command from here.
1415 * target.c (initialize_targets): To here.
1416 (monitor_command): New function. Implement "monitor" command.
1418 * target.c (cleanup_target): de_fault to_rcmd.
1419 (update_current_target): INHERIT to_rcmd.
1420 (debug_to_rcmd): New function.
1421 (setup_target_debug): Initialize current_target.to_rcmd.
1423 * target.h (struct target_ops): Add field to_rcmd.
1424 (target_rcmd): Define.
1426 Thu Aug 5 14:24:07 1999 Andrew Cagney <cagney@b1.cygnus.com>
1428 * remote.c: Replace comment describing remote protocol with
1429 pointer to official document.
1431 Thu Aug 5 11:59:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
1433 * remote.c (remote_protocol_binary_download): New variable.
1434 Replace ``remote_binary_download'' and ``remote_binary_checked''.
1435 (set_remote_protocol_binary_download_cmd,
1436 show_remote_protocol_binary_download_cmd): New functions.
1437 (remote_open_1, remote_async_open_1, remote_cisco_open):
1438 Initialize ``remote_protocol_binary_download'' instead of
1439 ``remote_binary_download''.
1440 (check_binary_download): Re-write.
1441 (remote_write_bytes): Ditto.
1442 (_initialize_remote): Add ``set remote X-packet'' and ``show
1443 remote X-packet'' commands. Disable old ``set
1444 remotebinarydownload'' command.
1446 1999-08-04 Keith Seitz <keiths@cygnus.com>
1448 * remote-rdi.c (arm_rdi_close): Close the transport device, too.
1450 Wed Aug 4 10:42:58 1999 Fred Fish <fnf@cygnus.com>
1452 * xcoffread.c (scan_xcoff_symtab): Change main_aux into
1453 an array of 5 internal_auxent to leave room for bfd to
1454 write n_numaux entries. Change code to use the first one.
1456 1999-08-02 Stan Shebs <shebs@andros.cygnus.com>
1458 * c-valprint.c (c_val_print): When printing decimal equivalent
1459 of a char, cast appropriately.
1461 1999-08-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1463 From Jonathan Larmour <jlarmour@cygnus.co.uk>:
1464 * main.c (print_gdb_help): Use gdbinit variable to determine file
1465 name used for --nx help
1467 1999-08-01 Jason Molenda (jsm@bugshack.cygnus.com)
1469 * config/mips/tm-mips.h (BIG_ENDIAN): Don't define here.
1471 1999-08-01 Jim Blandy <jimb@zwingli.cygnus.com>
1473 * stabsread.c (read_range_type): Handle an unsigned range type
1474 whose length in bytes is any power of two, not just a few
1477 * monitor.c (monitor_expect): When we receive a character that
1478 isn't part of the string we were expecting, don't just start
1479 matching again at the beginning of the string --- some shorter
1480 suffix of the input might be a prefix of the string too.
1482 1999-07-31 Fred Fish <fnf@cygnus.com>
1484 * symfile.c (symbol_file_command): Fix typo that made -1 casted
1485 to a CORE_ADDR look like an subtraction expression.
1486 (add_symbol_file_command): Ditto.
1488 1999-07-30 Jim Blandy <jimb@cris.red-bean.com>
1490 * hppa-tdep.c (pa_print_registers): Frob register output some more.
1492 1999-07-29 Jim Blandy <jimb@cris.red-bean.com>
1494 * config/pa/nm-hppah.h (PTRACE_ARG3_TYPE): After more
1495 consideration, make this a CORE_ADDR, like WDB did.
1497 Rather than casting every single use of really_free_pendings to
1498 make_cleanup_func, why not actually make it have that type? Golly!
1499 * buildsym.c (really_free_pendings): Change argument type to PTR.
1500 buildsym.h (really_free_pendings): Fix declaration.
1501 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1),
1502 dwarf2read.c (psymtab_to_symtab_1), dwarfread
1503 (psymtab_to_symtab_1), hp-psymtab-read.c (hpread_build_psymtabs),
1504 os9kread.c (os9k_symfile_read, os9k_psymtab_to_symtab_1),
1505 xcoffread.c (xcoff_psymtab_to_symtab_1, xcoff_initial_scan):
1508 Pass a CORE_ADDR safely through catch_errors.
1509 * hppa-tdep.c (args_for_find_stub): New member, return_val.
1510 (cover_find_stub_with_shl_get): Change argument and return type to
1511 match catch_errors. Save return value of find_stub_with_shl_get
1513 (initialize_hp_cxx_exception_support): Collect value of
1514 eh_notify_callback_addr from args.
1516 Get rid of some noise. It would be nice to get helpful warnings
1517 from the compiler about lossy conversions.
1518 * hppa-tdep.c (eh_notify_hook_addr, eh_notify_callback_addr,
1519 eh_break_addr, eh_catch_catch_addr, eh_catch_throw_addr,
1520 break_callback_sal): Initialize these to zero, not NULL, to shush
1522 * infttrace.c (thread_fake_step): Compare signal to
1523 TARGET_SIGNAL_0, not NULL, to avoid warnings.
1524 (_initialize_infttrace): Add sanity check.
1526 * config/pa/nm-hppah.h (PTRACE_ARG3_TYPE): Define this to be
1527 long, so we can pass arguments properly to ptrace.
1529 * hppah-nat.c (child_xfer_memory): Correctly compute mask to round
1530 address to an int boundary.
1532 1999-07-29 Jim Blandy <jimb@savonarola.red-bean.com>
1534 Change from Ian Lance Taylor <ian@zembu.com>. The
1535 i386_linux_sigtramp* functions should be moved to
1536 i386-linux-tdep.c, when that file is introduced.
1538 * config/i386/tm-linux.h (LINUX_SIGCONTEXT_SIZE): Define.
1539 (LINUX_SIGCONTEXT_PC_OFFSET): Define.
1540 (LINUX_SIGCONTEXT_SP_OFFSET): Define.
1541 (SIGCONTEXT_PC_OFFSET): Don't define.
1542 (I386_LINUX_SIGTRAMP): Define.
1543 (IN_SIGTRAMP): Define.
1544 (i386_linux_sigtramp): Declare.
1545 (sigtramp_saved_pc): Define.
1546 (i386_linux_sigtramp_saved_pc): Declare.
1547 (FRAMELESS_SIGNAL): Define.
1548 (FRAME_CHAIN, FRAME_SAVED_PC): Define after #undef.
1549 * i386-tdep.c (i386_linux_sigtramp_start): New static function if
1550 I386_LINUX_SIGTRAMP.
1551 (i386_linux_sigtramp): New function if I386_LINUX_SIGTRAMP.
1552 (i386_linux_sigtramp_saved_pc): Likewise.
1553 (i386_linux_sigtramp_saved_sp): Likewise.
1555 1999-07-28 Jim Blandy <jimb@savonarola.red-bean.com>
1557 * infrun.c (handle_inferior_event): Don't try to use the code for
1558 stepping over a function call to also handle stepping out of a
1559 sigtramp on HP-UX. That ends up trashing step-resume breakpoints.
1560 This change reverts some of David Taylor's change of 31 Dec 1998.
1561 The HP-UX maintainer needs to submit a new change for whatever
1562 problem the original change was trying to fix.
1564 1999-07-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1566 * event-top.c (command_line_handler): Don't treat an empty line
1567 from readline the same way as a multiline command. This avoids
1568 missing detecting when the user presses just 'enter'.
1570 1999-07-28 Jim Blandy <jimb@savonarola.red-bean.com>
1572 Provide more sanity checking:
1573 * infrun.c (handle_inferior_event): Before assigning a new
1574 breakpoint to step_resume_breakpoint, make sure it's not already
1575 pointing at one; if it is, that's a bug.
1576 (check_for_old_step_resume_breakpoint): New function.
1578 1999-07-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1580 From Eli Zaretskii <eliz@is.elta.co.il>:
1581 * top.c (gdb_init) [__MSDOS__]: Arrange for GDB to return to the
1582 original directory before exiting.
1583 (cd_command) [_WIN32 || __MSDOS__]: Canonicalize the new directory
1584 name explicitly. Handle "d:/" names correctly.
1585 (init_history) [__MSDOS__]: Use _gdb_history as the default GDB
1588 Mon Jul 26 17:13:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
1590 * remote.c (enum packet_support, enum packet_detect, struct
1591 packet_config): Define.
1592 (set_packet_config_cmd, show_packet_config_cmd,
1593 add_packet_config_cmd, init_packet_config): New functions.
1594 Generic support for optional packets.
1595 (remote_protocol_P): Replace stub_supports_P.
1596 (set_remote_protocol_P_packet_cmd, show_remote_protocol_P_packet_cmd):
1598 (_initialize_remote): Add ``set remote-protocol-P-packet'' command.
1599 (remote_open_1, remote_async_open_1, remote_cisco_open):
1600 Initialize ``remote_protocol_P''.
1601 (remote_store_registers): Re-write ``P'' probe logic.
1602 (store_register_using_P): New function.
1604 From Ian Lance Taylor <ian@airs.com>:
1605 (remote_prepare_to_store): Only read registers when ``P'' packet
1606 is in state unsupported or support-unknown.
1608 1999-07-24 Fred Fish <fnf@cygnus.com>
1610 * symfile.c (default_symfile_offsets): Clear section_offsets
1611 before filling it in.
1613 1999-07-16 Keith Seitz <keiths@cygnus.com>
1615 * remote.c (_initialize_remote): "remotebreak" should be a var_boolean.
1617 1999-07-15 Jim Blandy <jimb@cris.red-bean.com>
1619 Make the output from "info registers" fit withinin 80 columns.
1620 * hppa-tdep.c (pa_print_registers): Make it easy to change row and
1621 column counts. Switch to three columns, instead of four, and
1624 First cut at supporting HPPA2.0 in "wide" (64-bit) mode.
1625 * configure.tgt: Add hppa2.0w target.
1626 * config/pa/hppa64.mt, config/pa/tm-hppa64.h: New files.
1627 * hppa-tdep.c (hppa_fix_call_dummy): Dyke out code to tweak the
1628 call dummy, if target is PA2.0w. This is temporary, until I get
1629 function calls working.
1630 * hppah-nat.c (fetch_register): Rewritten to handle both narrow
1631 and wide register requests.
1632 (HPPAH_OFFSETOF): New macro.
1634 * gdbtypes.c (is_integral_type): New function.
1635 * gdbtypes.h: Prototype for above.
1637 1999-07-15 J.T. Conklin <jtc@redback.com>
1639 * configure.tgt (i[3456]86-*-vxworks*): New target.
1640 * config/i386/vxworks.mt: New file, x86 VxWorks target
1641 * config/i386/tm-vxworks.h: New file.
1643 * configure.tgt (powerpc-*-vxworks*): New target.
1644 * config/powerpc/vxworks.mt: New file, PowerPC VxWorks target
1645 * config/powerpc/tm-vxworks.h: New file.
1647 * NEWS: Mention the new configs.
1649 1999-07-15 Fernando Nasser <fnasser@cygnus.com>
1651 * target.c (target_preopen): Prevent query when not from_tty.
1652 * infcmd.c (run_command): Prevent query when not from_tty.
1654 1999-07-15 Fernando Nasser <fnasser@cygnus.com>
1656 * event-loop.c: Fix typo in comment.
1658 Wed Jul 14 17:29:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
1660 * ser-pipe.c (struct pipe_state): Define.
1661 (pipe_close): Retain the PID of the sub-process using ``struct
1662 pipe_state''. Delete #ifdef code that used popen().
1663 (pipe_close): Kill of the sub-process as part of the cleanup.
1665 * serial.h (struct _serial_t): Add field ``state''.
1667 1999-07-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1669 * event-top.c (display_gdb_prompt): Don't display the prompt if we
1670 are in the middle of an execution command. Also trick readline so
1671 it doesn't try to display the prompt.
1672 (command_line_handler): Get rid of change_prompt, unused variable.
1673 Use {push, pop}_prompt mechanism in case of multiline commands.
1675 * infrun.c (complete_execution): Set target_executing to 0 as
1676 first thing, so that display_gdb_prompt does the right thing.
1678 Tue Jul 13 20:29:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
1680 * parse.c (build_parse): Fix conditional increment of num_std_regs
1681 for SP_REGNUM. Was conditional on FP_REGNUM.
1683 Tue Jul 13 16:44:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
1685 * gdbarch.h, gdbarch.c: Revert 1999-07-07 Stan Shebs
1686 <shebs@andros.cygnus.com> indentation change. Don't let indent
1687 mess with these files.
1689 Mon Jul 12 11:15:09 1999 Andrew Cagney <cagney@b1.cygnus.com>
1691 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_RAW,
1692 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERTIBLE): Define.
1693 (REGISTER_RAW_SIZE): Re-define as mips_register_convert_to_raw.
1694 * mips-tdep.c (mips_register_convert_to_raw,
1695 mips_register_convert_to_virtual, ): New functions.
1696 (mips_register_raw_size, mips_register_convertible): New
1697 functions. Handle bug introduced by ``Wed Apr 1 23:13:23 1998
1698 Andrew Cagney <cagney@b1.cygnus.com>'' where remote mips64 target
1699 transfers SR as 64 bits yet GDB expected only 32 bits.
1700 (mips64_transfers_32bit_regs): New static variable.
1701 (_initialize_mips_tdep): Add obscure command ``set
1702 remote-mips64-transfers-32bit-regs'' that provides backward
1704 (do_gp_register_row): Extract register values from raw buffer.
1706 * NEWS: Document protocol change.
1708 1999-07-12 Keith Seitz <keiths@cygnus.com>
1710 * rdi-share/unixcomm.c (Unix_ResetSerial): Remove CYGWIN32
1711 conditional. It's no longer needed.
1712 (SERPORT1, SERPORT2): Linux serial ports are "/dev/ttyX", not
1713 "/dev/cuaX" (X=0,1,2,3,...).
1715 Mon Jul 12 02:02:00 1999 Andrew Cagney <cagney@amy.cygnus.com>
1717 * defs.h, utils.c (fputstrn_filtered, fputstrn_unfiltered,
1718 fputstrnn_unfiltered): New functions.
1719 (gdb_printchar): Delete.
1721 * remote.c (print_packet): Replace gdb_printchar with
1723 (getpkt): Use fputstrn_unfiltered to dump packet received.
1724 (putpkt_binary): Use fputstrnn_unfiltered to dump packet sent.
1726 1999-07-09 Keith Seitz <keiths@cygnus.com>
1728 * blockframe.c (blockvector_for_pc_sect): When looking for a block,
1729 we want the one whose end is greater than our PC, not greater or equal.
1731 1999-07-08 Stan Shebs <shebs@andros.cygnus.com>
1733 * sparcl-tdep.c (init_sparclite_ops): Fix doc strings, remove
1735 (sparclite_ops): Remove redundant decl.
1737 Thu Jul 8 16:48:40 1999 Andrew Cagney <cagney@b1.cygnus.com>
1739 * ser-pipe.c (pipe_open): Bi-directional popen found on both
1741 * ser-pipe.c: New file. Implement popen() style serial interface.
1743 * Makefile.in (ALLDEPFILES): Add ser-pipe.c.
1744 (ser-pipe.o): Add new target. Specify dependencies.
1745 (SER_HARDWIRE): Add ser-pipe.o.
1746 * serial.c (serial_open): Recognize a serial pipe ``|''.
1748 1999-07-07 Stan Shebs <shebs@andros.cygnus.com>
1750 * All C files except *-stub.c and *-share/*: Indent to GNU
1751 standard, using indent 1.9.1.
1752 * defs.h: Make indent ignore this file, macros confuse it.
1754 * gnu-regex.c, gnu-regex.h: Don't let indent mess with these.
1756 Wed Jul 7 13:06:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
1758 * remote-mips.c (fputs_readable): Rename puts_readable, add struct
1760 (fputc_readable): Rename putc_readable, add struct gdb_file
1763 * remote-mips.c (mips_expect_timeout, mips_receive_header,
1764 mips_send_packet, mips_receive_packet), remote-rdp.c (put_byte,
1765 get_byte, put_word, rdp_init, rdp_init), remote-sds.c
1766 (sds_interrupt, sds_wait, readchar, putmessage, read_frame,
1767 getmessage), remote-udi.c (udi_store_registers, fetch_register):
1768 (store_register), xmodem.c (readchar), utils.c (puts_debug),
1769 gnu-nat.h (debug), parse.c (parse_exp_1): Cleanup - send debug/log
1770 messages to gdb_stdlog.
1772 1999-07-06 Stan Shebs <shebs@andros.cygnus.com>
1774 * exec.c: Remove long-#ifed-out section of code that confuses
1776 * gdbtypes.c (add_mangled_type): Add some braces to indicate
1778 * gnu-nat.c: Remove literal newlines embedded in strings,
1779 causes indent to weird out.
1780 * language.c (binop_result_type): Remove extra paren.
1781 * lynx-nat.c: Add a missing paren to fetch_core_registers decl.
1782 * nec4102rom.c (vr4102_insert_step): Fix typos.
1783 (_initialize_vr4102_rom): Remove literal newline in string.
1784 * config/a29k/tm-a29k.h: Suppress formatting of pictures.
1785 * config/m68k/xm-3b1.h: Remove excess #endif.
1787 Declare Pyramid configuration obsolete.
1788 * configure.host, configure.tgt: Comment out Pyramid configs.
1789 * Makefile.in: Comment out Pyramid-related actions.
1790 * pyr-xdep.c, pyr-tdep.c, config/pyr/*: Comment out.
1791 * NEWS: Mention obsolete status.
1793 1999-07-06 Jason Molenda (jsm@bugshack.cygnus.com)
1795 * remote.c: Include <sys/time.h> to pick up FD_SET et al defns on
1796 some old Linux distributions.
1797 * remote-os9k.c, remote-st.c, ser-tcp.c, ser-unix.c,
1798 sparcl-tdep.c, remote.c: Back out inclusion of <sys/select.h>.
1799 It isn't necessary after all.
1801 1999-07-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1803 * infcmd.c (strip_bg_char): Remove assignment from 'if' condition.
1805 1999-07-05 Jason Molenda (jsm@bugshack.cygnus.com)
1807 * remote.c: Include <sys/select.h> if it exists in order to pick up
1809 * remote-os9k.c: Same.
1810 * remote-st.c: Same.
1813 * sparcl-tdep.c: Same.
1815 Fri Jul 2 19:38:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
1817 * top.c (target_output_hook): Delete definition.
1818 * defs.h (target_output_hook): Delete declaration.
1820 * remote.c (remote_console_output): Delete call to
1821 target_output_hook(). Send target output to gdb_stdtarg using an
1822 unfiltered write. Make more robust.
1824 * remote-sim.c (gdb_os_write_stdout, gdb_os_write_stderr):
1825 Ditto. For moment, do not try to separate target stdout and stderr
1828 * defs.h (gdb_stdtarg): New global. Output from target and
1831 1999-07-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1833 * top.c (return_to_top_level): Do all the exec_cleanups too.
1835 * event-top.c (command_handler): Set up for a continuation, if we
1836 are in the middle of running an execution command which will
1837 finish later on. Do cleanups, an display of time/space only if not
1838 running with an async target or not running an execution command.
1839 (command_line_handler_continuation): New function. Continuation
1840 for command_line_handler.
1842 * utils.c (exec_cleanup_chain): New cleanup chain to be used in
1843 async mode for the execution commands.
1844 (make_exec_cleanup): New function. Add a cleanup to the
1846 (do_exec_cleanups): New Function. Do cleanups on the
1848 (add_continuation): New function. Add a new continuation to the
1849 cmd_continuation list.
1850 (do_all_continuations): New function. Do all the continuations on
1851 the cmd_continuation list.
1853 * top.h (ALL_CLEANUPS): Move from here to defs.h.
1855 * defs.h (struct continuation_arg): New structure. Arg to pass to
1856 the call to a command continuation.
1857 (struct continuation): New structure. Continuation for an
1859 (ALL_CLEANUPS): Move here from top.h.
1861 * remote.c (remote_async_open_1): Set things up for telling the
1862 target we are running the extended protocol, only after the target
1864 (set_extended_protocol): New function. Tell the target we are
1865 using the extended protocol.
1866 (remote_async_resume): Set things up for sync execution only if
1867 this is the first time we are called.
1869 * breakpoint.c (until_break_command_continuation): New function.
1870 Stuff to be done after the target stops during the 'until'
1872 (until_break_command): Set things up for completing the 'until'
1873 command later on. Do the final cleanups only if not running
1874 asynchronously or async execution is not supported by the target.
1876 * infcmd.c (until_command): Recognize '&' at end of command and
1878 (finish_command_continuation): New function. Do whatever is needed
1879 after the target has stopped.
1880 (finish_command): Recognize '&' at end of command and handle it
1881 properly. Don't do stuff needed after target has stopped if
1882 running asynchronously and target has async. Use exec_cleanup_chain
1883 if running asynchronously and target is asynchronous.
1885 * infrun.c (cmd_continuation): New gloabl variable. Used to
1886 coplete execution commands in async mode, after the target has
1888 (fetch_inferior_event): Use exec_cleanup_chain, instead of
1889 cleanup_chain. Do all the exec cleanups at the end. Do all the
1890 continuations at the end. Call complete_execution from here,
1891 instead of normal_stop.
1892 (complete_execution): Cleanup the signals handlers for SIGINT
1893 before displaying the prompt.
1894 (start_remote): Set target_executing to 1.
1895 (normal_stop): Don't call complete_execution from here.
1897 Thu Jul 1 19:14:30 1999 Andrew Cagney <cagney@b1.cygnus.com>
1899 * blockframe.c (struct dummy_frame): Add member ``top''.
1900 (generic_push_dummy_frame): Initialize top to sp.
1901 (generic_save_dummy_frame_tos): New function. Initialize top.
1902 (generic_find_dummy_frame): Check for the top of the frame.
1904 * blockframe.c (generic_push_dummy_frame): Free the dummy_frame
1907 * config/mn10300/tm-mn10300.h (SAVE_DUMMY_FRAME_TOS): Define.
1908 (TARGET_READ_FP): Return the SP as a best guess.
1910 Wed Jun 30 15:45:48 1999 Jeffrey A Law (law@cygnus.com)
1912 * configure.host (hppa*-*-hpux11*): Accept any version of hpux11
1913 instead of hpux11.0*.
1915 1999-06-30 Fernando Nasser <fnasser@totem.to.cygnus.com>
1917 * source.c (directory_command): Add missing test for from_tty.
1919 1999-06-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1921 * remote.c: Include event-loop.h.
1922 (remote_async_ops, extended_async_remote_ops): Define new target
1923 vector structures for asynchronous debugging.
1924 (remote_async_open): New function. Asynchronous version of
1926 (extended_remote_async_open): New function. Asynchronous version
1927 of extended_remote_open.
1928 (remote_async_open_1): New function. Async version of
1930 (remote_async_detach): New function. Async version of
1932 (remote_async_resume): New function. Async version of
1934 (initialize_sigint_signal_handler, handle_remote_sigint,
1935 handle_remote_sigint_twice, async_remote_interrupt,
1936 async_remote_interrupt_twice, cleanup_sigint_signal_handler): New
1937 functions. Used for handling ^C while target is running.
1938 (remote_async_wait): New function. Async version of remote_wait.
1939 (remote_async_kill): New function. Async version of remote_kill.
1940 (extended_remote_async_create_inferior): New function. Async
1941 version of extended_remote_create_inferior.
1942 (init_remote_async_ops): New function. Initialize target vector
1944 (init_extended_async_remote_ops): New function. Initialize target
1945 vector for target extended-async.
1946 (_initialize_remote): Initialize remote_async_ops and
1947 extended_async_remote_ops.
1949 * infrun.c: Include "event-loop.h".
1950 (sync_execution): new global variable.
1951 (proceed): Invoke wait_for_inferior and normal_stop only if not
1952 running in async mode or if target doesn't support async
1954 (start_remote): Don't call wait_for_inferior and normal_stop if
1955 not running in async mode or if target not async. If running async
1956 and target is async, start the target in simulated synchronous
1958 (async_ecss, async_ecs): New global vars, for inferior state.
1959 (fetch_inferior_event): New function. Async version of
1961 (complete_execution): New function. Reset of gdb prompt and stdin,
1962 after inferior execution has completed.
1963 (normal_stop): Call complete_execution at end of asynchronous
1966 * infcmd.c (strip_bg_char): New function to detect the background
1968 (run_command): Modify to support background and foreground
1969 execution in async mode.
1970 (continue_command): Ditto.
1972 (jump_command): Ditto.
1973 (interrupt_target_command): New function. Interrupt the
1975 (_initialize_infcmd): Add new command 'interrupt'.
1977 * top.c (target_executing): New global variable.
1978 (execute_command): Reject commands that cannot be executed while
1979 the target is running asynchronously.
1981 * event-top.c (push_prompt): Make non static.
1982 (pop_prompt): Make non static. If the current prompt is empty,
1983 don't try to copy it over the previous one.
1984 (handle_sigint): Make non static.
1985 (command_handler): Do the cleanups only when not executing with an
1986 asynchronous target.
1988 * event-loop.c (delete_async_signal_handler): Pass a pointer to a
1989 pointer to a signal handler, so that is can be freed at the end.
1991 * target.c (update_current_target): Inherit to_has_async_exec.
1993 * inferior.h: Add global variables target_executing, and
1994 sync_execution. Export function fetch_inferior_event.
1996 * event-loop.h: Add push_prompt, pop_prompt, handle_sigint to the
1997 exported functions. Update prototype for delete_signal_handler.
1999 * target.h (struct target_ops): New target op: to_has_async_exec.
2000 (target_has_async): New macro.
2002 * Makefile.in (infrun.o): Add dependency on event-loop.h.
2005 1999-06-28 Jim Blandy <jimb@zwingli.cygnus.com>
2007 * solib.c (clear_solib): Don't disable breakpoints if we're
2008 running an a.out executable (Solaris's SunOS emulation).
2010 1999-06-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2012 * main.c (main): Remove intialization of command_loop_hook, it
2013 is now done in _initialize_event_loop().
2014 * event-loop.c (gdb_do_one_event): Make static.
2015 (start_event_loop): New function. Just start the event loop.
2016 * event-top.c (cli_command_loop): New name for start_event_loop().
2017 (gdb_readline2): Make non static.
2018 (_initialize_event_loop): Set command_loop_hook to cli_command_loop.
2019 * event-loop.h: Adjust exported functions accordingly.
2021 * top.c (init_main): Move setting of async_command_editing_p from
2023 * event-top.c (_initialize_event_loop): To here.
2024 (change_line_handler): Revert previous change. Add comment.
2025 (_initialize_event_loop): Revert previous change.
2026 (cli_command_loop): New name for start_event_loop().
2027 (start_event_loop): New function. This just starts up the event loop.
2028 (gdb_readline2): Make non static.
2029 (_initialize_event_loop): Set command_loop_hook to cli_command_loop.
2031 1999-06-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2033 * event-top.c (change_line_handler): Get rid of the global
2034 variable input_fd, use `fileno (instream)' instead.
2035 (_initialize_event_loop): Ditto
2037 * event-loop.c (add_file_handler): New function. Wrapper for
2038 create_file_handler.
2039 (create_file_handler): Make static.
2040 * event-top.c (_initialize_event_loop): Call add_file_handler,
2041 instead of create_file_handler.
2042 (change_line_handler): Ditto.
2043 Remove poll.h include.
2044 * event-loop.h: Export add_file_handler instead of
2045 create_file_handler.
2047 1999-06-24 Stan Shebs <shebs@andros.cygnus.com>
2049 Declare Altos configuration obsolete.
2050 * configure.host, configure.tgt: Comment out Altos config.
2051 * Makefile.in: Comment out Altos-related actions.
2052 * altos-xdep.c, config/m68k/altos.mh, altos.mt, tm-altos.h,
2053 xm-altos.h: Comment out.
2054 * NEWS: Mention obsolete status.
2056 1999-06-24 Jason Molenda (jsm@bugshack.cygnus.com)
2058 * Makefile.in: Add MAKEHTML and MAKEHTMLFLAGS; pass them down;
2059 recognize html and install-html targets.
2060 * gdbserver/Makefile.in: Add empty html and install-html targets.
2061 * nlm/Makefile.in: Ditto.
2062 * rdi-share/Makefile.in: Ditto.
2064 1999-06-24 Jim Blandy <jimb@zwingli.cygnus.com>
2066 * ax-gdb.c (agent_command): Remove vestigial call to ax_reqs.
2068 1999-06-24 James Ingham <jingham@leda.cygnus.com>
2070 * arm-tdep.c (arm_othernames): Change both gdb's register display
2071 AND the opcode disassembly register naming if the othernames
2072 command. Fixes the gdb part of CR 101177.
2074 1999-06-23 Stan Shebs <shebs@andros.cygnus.com>
2076 Declare Convex configuration obsolete.
2077 * configure.host, configure.tgt: Comment out Convex configs.
2078 * Makefile.in: Comment out Convex-related actions.
2079 * convex-xdep.c, convex-tdep.c, config/convex/*: Comment out.
2080 * NEWS: Mention obsolete status.
2082 1999-06-23 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2084 * main.c: Turn on async by default by setting async_p to 1.
2086 Wed Jun 23 15:44:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
2088 From Jimmy Guo <guo@cup.hp.com>:
2089 * frame.h (enum lval_type): Delcare when an __STDC__ compiler.
2090 Reverts Mon Aug 11 16:08:52 1997 Fred Fish <fnf@cygnus.com>
2092 * utils.c (gdb_file_rewind, gdb_file_put): Fix. A void function
2093 does not return a result.
2095 Wed Jun 23 15:30:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
2097 * remote.c (set_thread, remote_get_threadinfo,
2098 remote_threads_info, remote_current_thread, remote_get_threadlist,
2099 extended_remote_restart, get_offsets, remote_open_1,
2100 remote_detach, remote_resume, remote_wait, remote_fetch_registers,
2101 remote_store_registers, check_binary_download, remote_write_bytes,
2102 remote_read_bytes, remote_search, putpkt_binary, putpkt_binary,
2103 read_frame, compare_sections_command, remote_query,
2104 packet_command, remote_info_process): Use alloca to create space
2105 for arrays of size PBUFSIZ.
2107 1999-06-22 Jason Molenda (jsm@bugshack.cygnus.com)
2109 * top.c: Update copyright years to include 1999.
2111 1999-06-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2113 * top.c: Move include of event-loop.h, to avoid redefinition of
2116 * event-loop.c (create_file_handler): Do not do a realloc of the
2117 pollfd structure of the notifier, unless there is already one.
2118 Include <sys/types.h> for platforms that have no poll.
2120 * event-top.c: Fix prototype for _initialize_event_loop.
2121 (_initialize_event_loop): Do something only if running in async
2124 1999-06-17 Jim Blandy <jimb@zwingli.cygnus.com>
2126 Make the '/c' print format use a true character type. This is
2127 more appropriate than builtin_type_char for languages other than
2128 C, and C tolerates it.
2129 * gdbtypes.c (builtin_type_true_char): New variable.
2130 (build_gdbtypes): Initialize it.
2131 * gdbtypes.h (builtin_type_true_char): New declaration.
2132 * printcmd.c (print_scalar_formatted): When the format is 'c',
2133 extract the value as a builtin_type_true_char.
2135 * jv-exp.y (yylex): Say character literals are java_char_type, not
2136 builtin_type_char. Java treats the latter like `byte'.
2138 1999-06-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2140 * Makefile.in (top_h): Define.
2141 (event-loop.o): Add dependencies on top.h and defs.h.
2142 (event-top.o): Add dependency on terminal.h.
2144 * event-loop.c: Get rid of #include <readline.h>.
2146 * event-loop.h: Get rid of nested #include's.
2147 * event-loop.c: Rearrange includes to accomodate change in
2148 event-loop.h. Include poll.h, not sys/poll.h.
2149 * event-top.c: Ditto.
2152 1999-06-16 David Taylor <taylor@louisiana.cygnus.com>
2154 * alpha-tdep.c (alpha_pop_frame): if frame->proc_desc
2155 is NULL, call find_proc_desc so we know how to restore
2158 1999-06-15 Michael Snyder <msnyder@cleaver.cygnus.com>
2160 * event-top.c (start_event_loop): call get_prompt.
2161 (display_gdb_prompt): call get_prompt.
2162 (async_stop_sig): call get_prompt.
2164 1999-06-15 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2166 * event-loop.c (delete_file_handler): When positioning prev_ptr,
2167 keep looping while the one after is not equal to file_ptr, instead
2170 1999-06-14 Stan Shebs <shebs@andros.cygnus.com>
2172 * MAINTAINERS: Add Jimmy Guo and Jim Blandy as HP testsuite and
2173 SVR4 solib maintainers, respectively.
2175 1999-06-14 Michael Snyder <msnyder@cleaver.cygnus.com>
2177 Add parameters to the gdb prompt.
2178 * top.c (prompt): Rename to gdb_prompt_string for clarity.
2179 (command_line_input): rename "prrompt" to prompt_arg for clarity.
2180 (gdb_readline): rename "prrompt" to prompt_arg for clarity.
2181 (read_command_lines): rename "prompt" to prompt_arg for clarity.
2182 (stop_sig): call get_prompt instead of reading prompt string directly.
2183 (command_loop): ditto.
2184 (gdb_prompt_escape): New variable. Esc char for prompt parameters.
2185 (get_prompt_1): New function, workhorse for get_prompt.
2186 (get_prompt): Completely rewrite. Add functionality for a
2187 parameterized prompt, ie. the displayed prompt can change according
2188 to the value of one or more expressions given as parameters in the
2190 (init_main): use renamed variable gdb_prompt_string. Add new
2191 command "set prompt-escape-char" to set gdb_prompt_escape.
2193 Sun Jun 13 10:44:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
2195 * defs.h (gdb_stdlog), main.c: Declare.
2196 * main.c (main): Initialize.
2197 * gdbarch.c: Write trace messages to the log file.
2198 * remote.c: Update any debug/log prints.
2200 1999-06-11 Michael Snyder <msnyder@cleaver.cygnus.com>
2202 * remote.c (remote_wait): Clean up new thread handling.
2203 (record_currthread): Announce new threads.
2205 1999-06-11 Jim Blandy <jimb@zwingli.cygnus.com>
2207 * partial-stab.h (case N_LSYM, 'T' descriptor): Don't create
2208 partial symbol table entries for nameless enums, even if the type
2209 name is " ". (We still pick up the enum elements, though.)
2211 * partial-stab.h: Remove #if 0'd sections, dating back to 1992,
2212 which set a variable which exists nowhere else in the source.
2213 Please examine your test suite output carefully, and report any
2216 1999-06-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2218 * event-top.c (setup_event_loop): Change name to start_event_loop.
2219 Move the intialization of event-loop variables to
2220 _initialize_event_loop.
2221 (_initialize_event_loop): New function. Called at init time, to
2222 set up important event-loop variables.
2224 * event-loop.h: setup_event_loop is now start_event_loop.
2225 * main.c (main): Ditto.
2227 Fri Jun 11 18:34:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
2229 * defs.h (gdb_file_rewind_ftype, gdb_file_rewind,
2230 set_gdb_file_rewind, gdb_file_put_ftype, gdb_file_put,
2231 set_gdb_file_put): Declare.
2233 * utils.c (gdb_file_new): Initialize ``rewind'' and ``put''.
2234 (struct gdb_file): Add to_rewind and to_put.
2235 (null_file_put, null_file_rewind, gdb_file_put, gdb_file_rewind,
2236 set_gdb_file_put, set_gdb_file_rewind): New functions.
2237 (tui_file_rewind, tui_file_put): New functions.
2238 (tui_file_new): Add rewind and put.
2240 Fri Jun 11 15:10:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
2242 * d10v-tdep.c (d10v_push_arguments): Fix order of arguments passed
2245 Fri Jun 11 10:31:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
2247 * remote.c (tty_input): Change array to pointer.
2248 (_initialize_remote): Call build_remote_gdbarch_data.
2249 (build_remote_gdbarch_data): New function. Allocate space for
2251 (readsocket, readtty): Delete extern declaration of tty_input.
2253 1999-06-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2255 * event-top.c (gdb_readline2): Call the command handling function
2256 via the input_handler pointer.
2257 (change_line_handler): When turning off editing, set input_handler
2260 * utils.c (prompt_for_continue): If running asynchronously, call
2261 async_request_quit, instead of request_quit.
2263 * tracepoint.c (read_actions): If running asynchronously, set the
2264 signal handler for STOP_SIGNAL to handle_stop_sig.
2266 * top.h: (source_line_number, source_file_name, source_error,
2267 source_pre_error, history_expansion_p, server_command): export for
2270 * event-top.c: Include top.h and terminal.h.
2271 (instream): Remove extern declaration.
2272 (handle_sigint, handle_sigquit, handle_sighup, handle_sigfpe,
2273 handle_sigwinch, async_do_nothing, async_disconnect,
2274 async_float_handler, async_stop_sig): Make static.
2275 (async_request_quit, async_do_nothing, async_disconnect,
2276 async_float_handler, async_stop_sig): Add gdb_glient_data
2278 (handle_stop_sig): New function.
2279 (sigtstp_token): New variable.
2280 (sigint_token, sigquit_token, sigfpe_token, sigwinch_token):
2281 Change their type tp PTR.
2282 (mark_async_signal_handler_wrapper): New function.
2283 (setup_event_loop): Initialize all the variables used by readline
2284 only if not already done while reading the .gdbinit file. Display
2285 the initial gdb prompt, if .gdbinit took care of setting things up
2287 (change_line_handler): When turning on the use of readline,
2288 initialize input_handler as well.
2289 (command_line_handler): Set up the signal handler for STOP_SIGNAL
2290 to be handle_stop_sig.
2291 (async_init_signals): Remove coercion of signal handlers in calls
2292 to create_async_signal_handler. Initialize token for stop signal.
2293 (handle_sigint): Call async_request_quit using one argument.
2294 (handle_sigint, handle_sigquit, handle_sighup, handle_sigfpe,
2295 handle_sigwinch): Call mark_async_signal_handler_wrapper instead
2296 of mark_async_signal_handler.
2298 * event-loop.h: Add extern declarations for handle_stop_sig,
2299 async_command_editing_p, async_annotation_suffix,
2300 new_async_prompt, the_prompts.
2302 * top.c (command_line_input): Set the signal handler to be
2303 handle_stop_sig, in case gdb is running asynchronously.
2304 (get_prompt): Return the top of the prompt stack if running
2306 (set_prompt): Set the top of the prompt stack if running
2308 (init_main): Move ``extern'' vars from here to event-loop.h.
2310 1999-06-10 Michael Snyder <msnyder@cleaver.cygnus.com>
2312 * values.c (value_from_string): new function. Make a value_ptr
2313 from a string, with storage in local GDB memory (not in inferior).
2314 * value.h (value_from_string): add prototype.
2315 * remote.c (remote_cisco_ops): New remote target, "target cisco".
2316 (init_remote_cisco_ops): New function, initialize new target.
2317 (remote_cisco_mourn, remote_cisco_wait, remote_cisco_open,
2318 remote_cisco_close): New functions, implement new target cisco.
2319 (minitelnet, readtty, readsocket) New functions, implement the
2320 I/O pass-through mode for target cisco.
2321 (remote_wait): Detect special enhanced version of the 'S' packet
2323 (remote_cisco_expand): Perform Cisco variant of RLL decoding.
2325 1999-06-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2327 * event-loop.c (gdb_wait_for_event): Initialize num_found to 0.
2329 * top.c (print_prompt): Delete this function.
2331 From: Andrew Cagney <cagney@b1.cygnus.com>
2333 * event-top.c (async_hook): Delete extern declaration.
2335 * defs.h: Replace ``async_hook'' with ``async_p''.
2336 * top.c (gdb_init, init_main, init_main, init_main, init_main):
2337 Replace ``async_hook'' with ``async_p''.
2339 * main.c: Rename ``async'' to ``async_p''.
2340 (main): Add --noasync option.
2341 (main): Hook in the asynchronous event-loop based CLI using
2342 command_loop_hook instead of async_hook. Delete call to
2345 Thu Jun 10 21:14:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
2347 * mn10300-tdep.c (mn10300_store_return_value,
2348 mn10300_extract_struct_value_address,
2349 mn10300_extract_return_value), config/mn10300/tm-mn10300.h: New
2351 * config/mn10300/tm-mn10300.h (EXTRACT_STRUCT_VALUE_ADDRESS,
2352 STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE): Update.
2353 (TARGET_MN10300): Delete macro. Not used.
2355 Thu Jun 10 20:04:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
2357 * mn10300-tdep.c (mn10300_register_names): Make static.
2358 (STORE_STRUCT_RETURN): Do not modify SP.
2360 * config/mn10300/tm-mn10300.h(mn10300_register_name),
2361 mn10300-tdep.c : New function.
2362 * config/mn10300/tm-mn10300.h (REGISTER_NAME): Update.
2363 * config/mn10300/tm-mn10300.h (mn10300_saved_pc_after_call),
2364 mn10300-tdep.c: New function.
2365 * config/mn10300/tm-mn10300.h (SAVED_PC_AFTER_CALL): Update.
2367 1999-06-10 Keith Seitz <keiths@cygnus.com>
2369 * mcore-rom.c (picobug_dumpregs): Return a value. Any value, it
2371 * mcore-tdep.c (mcore_analyze_prologue): Set NO_MORE_FRAMES
2372 if the start of the function is the entry point.
2373 (mcore_analyze_prologue): rotli takes an immediate, not an
2375 (mcore_push_arguments): Fix compiler warning.
2377 1999-06-09 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2379 * rs6000-tdep.c (skip_prologue): Don't mistake a branch for a
2382 1999-06-08 Michael Snyder <msnyder@cleaver.cygnus.com>
2384 * remote.c (remote_wait): Add 'N' response packet, which is a
2385 stop with signal number plus section offsets for .text, .data and
2386 .bss. This is used by Cisco to indicate relocation offsets.
2387 (remote_cisco_section_offsets, remote_cisco_objfile_relocate):
2388 new files to support 'N' packet.
2389 (remote_info_process): New function. Implements the
2390 "info remote-process" command, by means of which the remote target
2391 can report anything it wants to about the remote process/app being
2393 (_initialize_remote): add info remote-proc command.
2394 (remote_threads_info): New function for "info threads" command.
2395 Attempts to use new query "qfThreadInfo" instead of the old
2397 * exec.c (exec_set_section_offsets) new files to support 'N' packet.
2399 Tue Jun 8 13:33:42 1999 Andrew Cagney <cagney@amy.cygnus.com>
2401 * inferior.h (generic_target_read_pc, generic_target_write_pc,
2402 generic_target_read_fp, generic_target_write_fp,
2403 generic_target_read_sp, generic_target_write_sp): Declare new
2405 * findvar.c (generic_target_read_pc, generic_target_write_pc,
2406 generic_target_read_fp, generic_target_write_fp,
2407 generic_target_read_sp, generic_target_write_sp): New functions.
2408 (TARGET_READ_PC, TARGET_WRITE_PC, TARGET_READ_FP, TARGET_WRITE_FP,
2409 TARGET_READ_SP, TARGET_WRITE_SP): Default to corresponding generic
2411 (write_pc_pid, write_pc_pid, read_sp, write_sp, read_fp,
2412 write_fp): Simplify.
2414 * gdbarch.c (verify_gdbarch): Always verify TARGET_PTR_BIT,
2415 TARGET_SHORT_BIT, TARGET_INT_BIT, TARGET_LONG_BIT,
2416 TARGET_LONG_LONG_BIT, TARGET_FLOAT_BIT, TARGET_DOUBLE_BIT,
2417 TARGET_LONG_DOUBLE_BIT, TARGET_READ_PC, TARGET_WRITE_PC,
2418 TARGET_READ_FP, TARGET_WRITE_FP, TARGET_READ_SP, TARGET_WRITE_SP,
2419 USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY_BREAKPOINT_OFFSET_P,
2420 CALL_DUMMY_P, CALL_DUMMY_STACK_ADJUST_P, GET_SAVED_REGISTER,
2421 REGISTER_CONVERTIBLE, PUSH_ARGUMENTS, PUSH_RETURN_ADDRESS,
2423 (GET_GDBARCH, SET_GDBARCH): Delete macros. Implement functions
2425 * gdbarch.h, gdbarch.c: Call fatal() instead of abort(). Identify
2426 the function / macro with a problem. Always verify a architecture
2427 attribute before returning it.
2428 * gdbarch.h, gdbarch.c (generic_register_convertible_not): New
2431 * mips-tdep.c (mips_push_return_address): New function.
2432 * config/mips/tm-mips.h (PUSH_RETURN_ADDRESS): Define.
2434 * mips-tdep.c (mips_gdbarch_init): Initialize short_bit,
2435 double_bit, long_double_bit, read_pc, write_pc, read_fp, write_fp,
2436 read_sp, write_sp, frame_chain_valid, get_saved_register,
2437 push_arguments, push_return_address, register_convertible,
2438 call_dummy_p, use_generic_dummy_frames,
2439 call_dummy_breakpoint_offset_p, call_dummy_stack_adjust_p,
2440 call_dummy_words and sizeof_call_dummy_words.
2441 * config/mips/tm-mips.h: Don't define CALL_DUMMY when multi-arch.
2443 1999-06-07 Keith Seitz <keiths@cygnus.com>
2445 * v850ice.c (init_hidden_window): Do not rely on the existence of
2446 a gui for window creation. Return boolean status.
2447 (v850ice_open): Use boolean status of init_hidden_window.
2448 Allow any ICE execution command to run under CLI. Maybe one
2449 day gdb will use a real event loop and allow this code to run.
2450 * configure.tgt: Configure the v850 ice for all cygwin-hosted
2453 Mon Jun 7 23:37:26 1999 Andrew Cagney <cagney@amy.cygnus.com>
2455 * config/mips/tm-mips.h (EXTRA_FRAME_INFO): Delete.
2456 * mips-tdep.c (mips_init_extra_frame_info): Allocate saved_regs.
2457 (temp_saved_regs): Replace struct with a simple pointer.
2458 (set_reg_offset, mips32_heuristic_proc_desc, heuristic_proc_desc,
2459 mips_init_extra_frame_info): Update.
2461 Mon Jun 7 21:40:12 1999 Andrew Cagney <cagney@amy.cygnus.com>
2463 * config/mips/tm-mips.h (EXTRA_FRAME_INFO): Move elements from here.
2464 * mips-tdep.c (struct frame_extra_info): To here.
2466 * mips-tdep.c (mips_print_extra_frame_info, mips_find_saved_regs,
2467 mips_init_extra_frame_info, mips_pop_frame): Update
2468 (mips_init_extra_frame_info): Allocate space for the extra info.
2470 Mon Jun 7 21:08:50 1999 Andrew Cagney <cagney@amy.cygnus.com>
2472 * config/mips/tm-mips.h (mips_init_extra_frame_info), mips-tdep.c:
2473 Rename init_extra_frame_info. Add argument ``fromleaf''.
2475 * config/mips/tm-mips.h (mips_print_extra_frame_info),
2476 mips-tdep.c: New function.
2477 (PRINT_EXTRA_FRAME_INFO): Update definition.
2479 Mon Jun 7 20:11:07 1999 Andrew Cagney <cagney@amy.cygnus.com>
2481 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
2482 config/mips/tm-tx19.h, config/mips/tm-tx19l.h,
2483 config/mips/tm-tx39.h, config/mips/tm-tx39l.h: Rename macro
2484 REGISTER_NAMES to MIPS_REGISTER_NAMES.
2486 * config/mips/tm-mips.h (REGISTER_NAME): Define.
2487 * mips-tdep.c (mips_processor_reg_names): New static variable.
2488 (mips_register_name): New function.
2489 (mips_set_processor_type): Update mips_processor_reg_names.
2490 (mips_generic_reg_names): Initialize using MIPS_REGISTER_NAMES.
2492 Sun Jun 6 11:09:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
2494 * remote.c (PBUFSIZ): Re-define so that value is computed at
2496 (MAXBUFBYTES): Re-define as a macro function.
2497 * gdbarch.h, gdbarch.c: Add multi-arch support for REGISTER_BYTES.
2498 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
2500 1999-06-05 Fernando Nasser <fnasser@totem.to.cygnus.com>
2502 * symtab.c (decode_line_1): Accept filenames with spaces in
2503 'linespecs' when enclosed in double quotation marks and handle
2504 drive specification is DOS format (D:).
2506 1999-06-04 Jim Blandy <jimb@zwingli.cygnus.com>
2508 * parse.c: Don't include <ctype.h> twice.
2510 1999-06-04 David Taylor <taylor@louisiana.cygnus.com>
2512 Sat May 15 12:16:09 1999 Per Bothner <bothner@deneb.cygnus.com>
2514 * eval.c (evaluate_subexp_standard): Remove Gilmore rant.
2515 (Of course C has "expected types", at least if you allow
2516 brace-initializer expressions - as in Gcc.)
2517 Remove NULLing out expect_type. Do pass NULL_TYPE in place
2518 the incoming expect_type where appropriate.
2520 Fri Jun 4 10:56:23 1999 Jeffrey A Law (law@cygnus.com)
2522 * hppa-tdep.c (hppa_fix_call_dummy): Make it work for GCC compiled
2523 executables without end.o. Clean up lots of mis-guided comments.
2525 Fri Jun 4 17:10:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
2527 * parser-defs.h (std_regs): Replace array with pointer.
2528 * parse.c (build_parse): Build the std_regs table according to the
2529 standard registers available.
2530 (_initialize_parse): Register std_regs and num_std_regs as
2531 architecture specific.
2532 * gdbarch.h, gdbarch.c: Add multi-arch support for SP_REGNUM,
2533 FP_REGNUM, PC_REGNUM, NUM_REGS, REGISTER_NAME.
2534 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
2536 1999-06-03 Michael Snyder <msnyder@cleaver.cygnus.com>
2538 * thread.c: eliminate the target_thread_vector (functionality
2539 moved into the standard target vector).
2540 * gdbthread.h: eliminate target_thread_vector. Move all related
2541 defines into remote.c, since they are no longer shared with thread.c.
2542 * remote.c: eliminate the target_thread_vector.
2543 (remote_find_new_threads): change return type to void, consistent
2544 with the target vector table. (cont_thread): rename continue_thread.
2545 (record_currthread): remove dead code. (remote_thread_alive):
2546 clean up and simplify. (threadref etc.): move definitions to here
2549 1999-06-02 Jason Molenda (jsm@bugshack.cygnus.com)
2551 * inftarg.c (child_create_inferior): Remove dead HPUX specific code
2552 which tries to find csh.
2553 * fork-child.c: Remove DEBUGGING predefine and conditionalized
2555 (fork_inferior): Remove dead HPUX specific code which assumes shell
2558 * hppa-tdep.c: Remove DEBUGGING and #if 0 debugging printfs.
2562 * gdbarch.h: Forward decl of struct value.
2564 Thu Jun 3 10:12:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
2566 * d10v-tdep.c (do_d10v_pop_frame): Rename d10v_pop_frame. Make
2568 * d10v-tdep.c (d10v_pop_frame), config/d10v/tm-d10v.h: New
2569 function. Call generic_pop_current_frame.
2570 * config/d10v/tm-d10v.h (POP_FRAME): Update.
2571 * gdbarch.h, gdbarch.c (frame_num_args_unknown): New function.
2572 * gdbarch.h, gdbarch.c: Add multi-arch support for POP_FRAME,
2573 SKIP_PROLOGUE, INNER_THAN, DECR_PC_AFTER_BREAK,
2574 FUNCTION_START_OFFSET, REMOTE_TRANSLATE_XFER_ADDRESS, FRAME_CHAIN,
2575 FRAME_CHAIN_VALID, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS,
2576 FRAME_LOCALS_ADDRESS, FRAME_ARGS_SKIP,
2577 FRAMELESS_FUNCTION_INVOCATION, REGISTER_BYTE, REGISTER_RAW_SIZE,
2578 REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, SAVED_PC_AFTER_CALL,
2579 FRAME_NUM_ARGS, MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
2581 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
2582 * config/d10v/tm-d10v.h (DMEM_START, IMEM_START, STACK_START,
2583 ARG1_REGNUM, ARGN_REGNUM, RET1_REGNUM): Move definitions from
2585 * d10v-tdep.c: To here.
2586 * config/d10v/tm-d10v.h (struct type): Move declaration from here.
2587 * gdbarch.h: To here.
2588 * config/d10v/tm-d10v.h (struct frame_info, struct
2589 frame_saved_regs, struct type): Delete declarations.
2591 1999-06-02 Robert Hoehne <robert.hoehne@gmx.net>
2593 * go32-nat.c: go32_terminal_init, go32_terminal_inferior and
2594 go32_terminal_ours are new functions to save/restore the inferior`s
2595 stdin/stdout filemodes
2597 1999-06-02 Stan Shebs <shebs@andros.cygnus.com>
2599 * MAINTAINERS: Add Mark Kettenis, Jeff Law, and Philippe De Muyter
2600 as maintainers for Hurd, HP/UX, and COFF, respectively.
2602 1999-06-02 Mark Kettenis <kettenis@gnu.org>
2604 * gnu-nat.c (inf_continue): New function.
2605 (struct inf): Use `unsigned int' instead of `int' for bit-fields.
2606 Add new bit-field named `nomsg'.
2607 (inf_validate_procinfo): Renamed from inf_validate_stopped, all
2608 callers changed. Also update the `nomsg' and `traced' fields of
2610 (make_inf): Initialize INF->nomsg.
2611 (inf_cleanup): Reset INF->nomsg.
2612 (inf_detach): Call `inf_validate_procinfo'. Call `inf_continue'
2613 instead of `inf_signal' if the inferior does not have a message
2615 (gnu_resume): Likewise.
2616 (gnu_create_inferior): Reset INF->nomsg in `attach_to_child'.
2617 Call `inf_validate_procinfo' after returning from `fork_inferior'.
2618 (gnu_attach): Update signal thread and tracing state.
2620 * config/i386/tm-i386gnu.h: Include "i386/tm-i386.h" instead of
2622 (STACK_END_ADDR): Remove.
2623 (SIGCONTEXT_PC_OFFSET): New define.
2624 Include "tm-sysv4.h".
2626 1999-06-02 J.T. Conklin <jtc@redback.com>
2628 * config/tm-vxworks.h: New file, header for definitions common to
2629 all vxWorks targets.
2630 * config/a29k/tm-vx29k.h, config/i960/tm-vx960.h,
2631 config/m68k/tm-vx68.h, config/mips/tm-vxmips.h,
2632 config/sparc/tm-vxsparc.h: Include tm-vxworks.h.
2634 Wed Jun 2 17:37:03 1999 Jeffrey A Law (law@cygnus.com)
2636 * config/pa/tm-hppa.h (IMPORT_SHLIB): New unwind stub type.
2638 1999-06-02 Christopher Faylor <cgf@cygnus.com>
2640 * configure.tgt: Alphabetically reorder some targets.
2642 1999-06-02 Keith Seitz <keiths@cygnus.com>
2644 * v850ice.c (v850ice_xfer_memory): Insert lost "break".
2646 1999-06-02 Jim Blandy <jimb@zwingli.cygnus.com>
2648 * rs6000-tdep.c (variants): Fix description of 750 register set.
2649 (Thanks to J. T. Conklin.)
2651 Wed Jun 2 16:10:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
2653 * gdbarch.h, gdbarch.c: Add multi-arch support for
2654 STORE_STRUCT_RETURN, STORE_RETURN_VALUE,
2655 EXTRACT_STRUCT_VALUE_ADDRESS, USE_STRUCT_CONVENTION,
2656 FRAME_INIT_SAVED_REGS and INIT_EXTRA_FRAME_INFO.
2657 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
2659 * config/d10v/tm-d10v.h (FRAME_INIT_SAVED_REGS): Replace
2660 FRAME_FIND_SAVED_REGS.
2661 (d10v_frame_init_saved_regs): Replace d10v_frame_find_saved_regs.
2662 * d10v-tdep.c (d10v_pop_frame, d10v_frame_chain,
2663 d10v_frame_init_saved_regs): Update.
2664 * gdbarch.h: Disallow FRAME_FIND_SAVED_REGS when multi-arch.
2666 * gdbarch.h, gdbarch.c: Add multi-arch support for
2667 D10V_MAKE_DADDR, D10V_MAKE_IADDR, D10V_DADDR_P, D10V_IADDR_P,
2668 D10V_CONVERT_DADDR_TO_RAW and D10V_CONVERT_IADDR_TO_RAW.
2669 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
2671 * config/d10v/tm-d10v.h (EXTRA_FRAME_INFO): Delete.
2672 * d10v-tdep.c (struct frame_extra_info): Define.
2673 (d10v_init_extra_frame_info, d10v_pop_frame, d10v_frame_chain,
2674 d10v_frame_find_saved_regs): Update.
2675 * gdbarch.h: Disallow EXTRA_FRAME_INFO when multi-arch.
2677 Tue Jun 1 13:36:31 1999 Philippe De Muyter <phdm@macqel.be>
2679 * config/m68k/tm-delta68.h (FRAME_NUM_ARGS): Macro prototype fixed.
2680 * config/m68k/tm-news.h, config/ns32k/tm-merlin.h: Ditto.
2681 * config/ns32k/tm-umax.h (FRAME_NUM_ARGS): Old macro definition
2682 removed; new macro prototype fixed.
2684 Wed Jun 2 11:18:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
2686 * gdbarch.h, gdbarch.c: Add multi-arch support for
2687 EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS, PUSH_DUMMY_FRAME,
2688 PUSH_RETURN_ADDRESS, POP_FRAME, FRAME_FIND_SAVED_REGS.
2689 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
2691 * gdbarch.h, gdbarch.c: Add multi-arch support for
2692 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
2693 REGISTER_CONVERT_TO_RAW.
2694 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
2696 * defs.h (REGISTER_NAME): Move compatibility definition from here.
2697 * gdbarch.h: To here.
2699 * frame.h, blockframe.c (generic_fix_call_dummy): New
2701 * gdbarch.h, gdbarch.c: Add multi-arch support for FIX_CALL_DUMMY.
2702 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
2704 Tue Jun 1 20:06:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
2706 * d10v-tdep.c (d10v_gdbarch_init): Set get_saved_register.
2707 * config/d10v/tm-d10v.h: Update.
2709 Tue Jun 1 19:50:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
2711 * gdbarch.h, gdbarch.c: Add multi-arch support for TARGET_READ_PC,
2712 TARGET_WRITE_PC, TARGET_READ_FP, TARGET_WRITE_FP, TARGET_READ_SP
2713 and TARGET_WRITE_SP.
2714 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
2716 Tue Jun 1 19:19:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
2718 * gdbarch.c (default_gdbarch): Set field GET_SAVED_REGISTER to
2719 generic_get_saved_register.
2720 * gdbarch.c: Change update dispatch functions so that they check
2721 for a NULL function pointer.
2723 Tue Jun 1 19:19:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
2725 * gdbarch.h, gdbarch.c: Add multi-arch support for TARGET_INT_BIT,
2726 TARGET_CHAR_BIT, TARGET_SHORT_BIT, TARGET_FLOAT_BIT,
2727 TARGET_DOUBLE_BIT and TARGET_LONG_DOUBLE_BIT.
2728 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
2730 Tue Jun 1 18:47:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
2732 * parse.c (build_parse): New function. Initialize
2733 msym_text_symbol_type, msym_data_symbol_type and
2734 msym_unknown_symbol_type.
2735 (_initialize_parse): Call build_parse.
2736 (_initialize_parse): Register variables msym_text_symbol_type,
2737 msym_data_symbol_type as msym_unknown_symbol_type as
2740 Tue Jun 1 11:30:09 1999 Andrew Cagney <cagney@b1.cygnus.com>
2742 * d10v-tdep.c (_initialize_d10v_tdep): Register d10v as an
2744 (d10v_gdbarch_init): New function.
2745 * confg/d10v/tm-d10v.h (GDB_MULTI_ARCH): Define.
2747 Tue Jun 1 10:45:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
2749 * config/d10v/tm-d10v.h (REGISTER_CONVERTIBLE,
2750 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERT_TO_VIRTUAL): Convert
2751 macros into functions.
2752 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_register_convertable,
2753 d10v_register_convert_to_virtual, d10v_register_convert_to_raw):
2756 1999-05-31 Fernando Nasser <fnasser@totem.to.cygnus.com>
2758 * stack.c (print_args_stub): Add missing stream parameter.
2760 Mon May 31 15:50:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
2762 Fri May 28 16:51:00 1999 Martin Dorey <martin.dorey@madge.com>:
2763 * valops.c, value.h (default_push_arguments): Fix order of
2764 parameters to match PUSH_ARGUMENTS arguments.
2766 Thu May 27 11:42:55 1999 Andrew Cagney <cagney@b1.cygnus.com>
2768 * gdbarch.h (EXTRACT_STRUCT_VALUE_ADDRESS): Return 0.
2770 * valops.c (value_assign): Delete redundant test of
2771 REGISTER_CONVERTIBLE.
2773 Thu May 27 11:33:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
2775 * config/w65/tm-w65.h, config/tic80/tm-tic80.h, config/sh/tm-sh.h,
2776 config/i386/tm-i386m3.h, config/i386/tm-go32.h,
2777 config/i386/tm-cygwin.h, config/h8500/tm-h8500.h,
2778 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h: Delete definition of
2779 macro NAMES_HAVE_UNDERSCORE.
2781 Thu May 27 09:31:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
2783 * gdbarch.h (EXTRACT_STRUCT_VALUE_ADDRESS,
2784 EXTRACT_STRUCT_VALUE_ADDRESS_P): Provide default definitions.
2785 * values.c (value_being_returned): Use
2786 EXTRACT_STRUCT_VALUE_ADDRESS when EXTRACT_STRUCT_VALUE_ADDRESS_P.
2788 Wed May 26 13:51:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
2790 * utils.c (tui_file_new, tui_file_delete, tui_fileopen): New
2792 (tui_file_isatty): Rename gdb_file_isatty.
2793 (gdb_file_init_astring): Use tui_file_new to create stream.
2794 (gdb_file_get_strbuf, gdb_file_adjust_strbuf): Call gdb_file_data
2795 to access the tui_stream.
2796 (tui_file_flush): Rename gdb_flush. Call gdb_file_data to access
2797 the tui_stream. Pass FILE and not STREAM down.
2799 * utils.c (struct stdio_file, stdio_file_flush, stdio_file_fputs,
2800 stdio_file_isatty, stdio_file_delete, stdio_file_new,
2801 stdio_fileopen): Define type and functions. Implement a simple
2802 STDIO based gdb_file.
2803 (struct gdb_file, gdb_file_new, gdb_file_delete, null_file_isatty,
2804 null_file_flush, null_file_fputs, null_file_delete, gdb_file_data,
2805 set_gdb_file_flush, set_gdb_file_isatty, set_gdb_file_fputs,
2806 set_gdb_file_data, fputs_unfiltered, gdb_flush, gdb_file_isatty):
2807 Define type and functions. Implement virtual functions for
2810 * defs.h (struct gdb_file): Declare.
2811 (GDB_FILE): Change type to struct gdb_file. Deprecate.
2812 (gdb_file_flush_ftype, gdb_file_fputs_ftype,
2813 gdb_file_isatty_ftype, gdb_file_delete_ftype): Add function type
2816 * defs.h (set_gdb_file_flush, set_gdb_file_fputs,
2817 set_gdb_file_isatty, set_gdb_file_data, gdb_file_new,
2818 gdb_file_delete, gdb_file_data, stdio_fileopen, tui_fileopen): Add
2819 function declarations.
2820 (gdb_fopen): Re-implement. Call stdio_file_new.
2821 (gdb_fclose): Re-implement. Call gdb_file_delete.
2823 * main.c (tui_file_fputs): Rename fputs_unfiltered. Use
2824 gdb_file_data to gain access to the tui_stream data. Use FILE
2825 instead of STREAM where applicable.
2826 (main): Create gdb_stdout and gdb_stderr using tui_fileopen.
2828 * defs.h (struct tui_stream): Add field ts_magic.
2829 * utils.c (tui_file_magic): Local variable.
2830 (tui_file_new): Set field ts_magic.
2831 (tui_file_delete, tui_file_isatty, gdb_file_init_astring,
2832 gdb_file_get_strbuf, gdb_file_adjust_strbuf, tui_file_flush):
2835 1999-05-25 Jim Blandy <jimb@zwingli.cygnus.com>
2837 * breakpoint.c (insert_breakpoints, remove_breakpoint,
2838 breakpoint_1): Add a 'default' case, which prints a warning
2839 message, to remove EGCS warnings.
2841 1999-05-25 Fernando Nasser <fnasser@totem.to.cygnus.com>
2843 * utils.c (gdb_file_adjust_strbuf): Take into account the
2844 possibility that the buffer has not been allocated yet.
2846 Tue May 25 16:05:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
2848 * gdbarch.h (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
2849 REGISTER_CONVERT_TO_RAW): Provide default definition.
2851 * valops.c (value_assign), infcmd.c (do_registers_info), findvar.c
2852 (value_from_register, value_of_register): Remove #ifdef
2853 REGISTER_CONVERTIBLE. Assume REGISTER_CONVERTIBLE etc defined.
2855 1999-05-25 Keith Seitz <keiths@cygnus.com>
2857 * config/mcore/tm-mcore.h (FRAME_NUM_ARGS): Re-write definition of
2858 FRAME_NUM_ARGS so that it returns NUM_ARGS as a result instead of
2859 setting a variable as a side effect.
2861 Tue May 25 16:18:25 1999 Andrew Cagney <cagney@amy.cygnus.com>
2863 * remote-d10v.c (d10v_eva_prepare_to_trace,
2864 d10v_eva_get_trace_data), remote-sim.c (_initialize_remote_sim):
2865 Add declaraton. Make static.
2867 * remote-d10v.c (_initialize_remote_d10v), d10v-tdep.c
2868 (_initialize_d10v_tdep): Add declaration.
2869 * config/d10v/tm-d10v.h (d10v_frame_chain): Add declaration.
2871 Tue May 25 15:20:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
2873 * main.c (init_proc, proc_remove_foreign): Delete function.
2874 * inftarg.c (child_mourn_inferior): Update. Delete call to
2875 proc_remove_foreign().
2876 * top.c (gdb_init): Update. Delete call to init_proc().
2878 * utils.c (pollquit, fmthex, hexlate): Delete function.
2880 Tue May 25 13:01:43 1999 Andrew Cagney <cagney@amy.cygnus.com>
2882 * main.c (gdb_init): Move declaration from here.
2885 * defs.h (init_page_info): Add declaration.
2887 * top.c (initialize_utils): Move declaration from here.
2890 * infcmd.c (target_map_name_to_register): Move declaration from
2892 * parser-defs.h: To here.
2894 * c-typeprint.c (cp_type_print_method_args), target.c
2895 (nosupport_runtime, normal_target_post_startup_inferior): Add
2896 declaration. Make static.
2898 Tue May 25 13:53:23 1999 Andrew Cagney <cagney@amy.cygnus.com>
2900 * main.c: Include "event-loop.h".
2901 * Makefile.in (main.o): Add dependency.
2903 * top.h (setup_event_loop, async_init_signals), top.c
2904 (set_async_editing_command, set_async_annotation_level,
2905 set_async_prompt), event-loop.c (display_gdb_prompt): Move
2906 declarations from here.
2907 * event-loop.h: To here.
2909 * event-loop.h (delete_async_signal_handler): Add function
2912 * event-top.c (change_annotation_level, command_handler): Add
2913 declaration. Make static.
2915 Tue May 25 12:44:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
2917 * tracepoint.c (free_actions_list, add_register): Add declaration.
2919 (free_actions_list_cleanup_wrapper): New function. Wraps
2920 free_actions_list for make_cleanup.
2921 (trace_start_command): Pass free_actions_list_cleanup_wrapper
2922 instead of free_actions_list to make_cleanup.
2923 (_initialize_tracepoint): Add extern declaration.
2925 Tue May 25 12:23:39 1999 Andrew Cagney <cagney@amy.cygnus.com>
2927 * jv-typeprint.c (java_type_print_base, jv-valprint.c
2928 (java_print_value_fields): Add static declaration.
2930 * jv-lang.c (java_lookup_type, get_java_utf8_name,
2931 java_lookup_type): Add static declaration.
2932 (get_java_class_symtab, java_class_is_primitive,
2933 java_value_string): Add declaration. Make static.
2934 (java_rerun_cleanup): Add extern declaration for this stub
2937 Tue May 25 12:06:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
2939 * gdbarch.h: When multi-arch, check that REGISTER_NAMES was not
2942 Mon May 24 16:16:29 1999 Andrew Cagney <cagney@amy.cygnus.com>
2944 * inflow.c (_initialize_inflow), annotate.c
2945 (_initialize_annotate), os9kread.c (_initialize_os9kread),
2946 serial.c (_initialize_serial), nlmread.c (_initialize_nlmread),
2947 f-valprint.c (_initialize_f_valprint), cp-valprint.c
2948 (_initialize_cp_valprint), typeprint.c (_initialize_typeprint),
2949 complaints.c (_initialize_complaints), scm-lang.c
2950 (_initialize_scheme_language), m2-lang.c
2951 (_initialize_m2_language), dbxread.c (_initialize_dbxread),
2952 f-lang.c (_initialize_f_language), ch-lang.c
2953 (_initialize_chill_language), c-lang.c (_initialize_c_language),
2954 corefile.c (_initialize_core), stabsread.c
2955 (_initialize_stabsread), mipsread.c (_initialize_mipsread),
2956 elfread.c (_initialize_elfread), coffread.c
2957 (_initialize_coffread), maint.c (_initialize_maint_cmds),
2958 demangle.c (_initialize_demangler), maint.c
2959 (_initialize_maint_cmds), language.c (_initialize_language): Add
2960 external declaration.
2962 Mon May 24 10:04:56 1999 Andrew Cagney <cagney@b1.cygnus.com>
2964 * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/v850/tm-v850.h,
2965 config/tic80/tm-tic80.h, config/tahoe/tm-tahoe.h,
2966 config/rs6000/tm-rs6000.h, config/sparc/tm-sparc.h,
2967 config/sh/tm-sh.h, config/pyr/tm-pyr.h, config/pa/tm-hppa.h,
2968 config/ns32k/tm-merlin.h, config/mn10300/tm-mn10300.h,
2969 config/mn10200/tm-mn10200.h, config/mips/tm-mips.h,
2970 config/m88k/tm-m88k.h, config/m68k/tm-news.h,
2971 config/m68k/tm-delta68.h, config/m68k/tm-isi.h,
2972 config/m68k/tm-m68k.h, config/m32r/tm-m32r.h,
2973 config/i960/tm-i960.h, config/i386/tm-i386v.h,
2974 config/i386/tm-i386.h, config/h8500/tm-h8500.h,
2975 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
2976 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h,
2977 config/convex/tm-convex.h, config/arc/tm-arc.h,
2978 config/arm/tm-arm.h, config/alpha/tm-alpha.h,
2979 config/a29k/tm-a29k.h: Re-write definition of FRAME_NUM_ARGS so
2980 that it returns NUM_ARGS as a result instead of setting a variable
2983 * ns32k-tdep.c (merlin_frame_num_args), tahoe-tdep.c
2984 (tahoe_frame_num_args), vax-tdep.c (vax_frame_num_args),
2985 m68k-tdep.c (news_frame_num_args, delta68_frame_num_args,
2986 isi_frame_num_args), convex-tdep.c (convex_frame_num_args): New
2989 * stack.c (print_args_stub): Update use of FRAME_NUM_ARGS.
2991 Mon May 24 11:57:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
2993 * remote.c (remote_xfer_memory): Re-write with assumption that
2994 REMOTE_TRANSLATE_XFER_ADDRESS is defined. Pass targ_addr and
2995 targ_len by reference.
2996 (REMOTE_TRANSLATE_XFER_ADDRESS): Provide default definition.
2998 * remote-d10v.c (remote_d10v_translate_xfer_address): Update.
2999 * config/d10v/tm-d10v.h (REMOTE_TRANSLATE_XFER_ADDRESS): Update.
3001 Mon May 24 12:10:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
3003 * value.h (default_push_arguments): Add function declaration.
3005 * alpha-tdep.c (alpha_about_to_return), gdbarch.c (verify_gdbarch,
3006 arch_ok, set_arch), command.c (find_cmd), infrun.c
3007 (follow_inferior_fork, follow_fork, follow_vfork,
3008 set_schedlock_func, is_internal_shlib_eventpoint,
3009 stopped_for_internal_shlib_event, stopped_for_shlib_catchpoint,
3010 xdb_handle_command), infcmd.c (run_no_args_command, go_command),
3011 symfile.c (add_filename_language, set_ext_lang_command,
3012 info_ext_lang_command, init_filename_language_table), symtab.c
3013 (overload_list_add_symbol), defs.h (default_get_saved_register),
3014 ax-general.c (grow_expr, append_const, read_const, generic_ext):
3017 * infrun.c (currently_stepping): Ditto. Make static.
3019 * valops.c (hand_function_call): Explictly type static variable
3022 Mon May 24 08:36:18 1999 Andrew Cagney <cagney@b1.cygnus.com>
3024 * d10v-tdep.c (d10v_breakpoint_from_pc, d10v_register_name,
3025 d10v_register_byte, d10v_register_raw_size,
3026 d10v_register_virtual_size, d10v_register_virtual_type,
3027 d10v_make_daddr, d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
3028 d10v_convert_iaddr_to_raw, d10v_convert_daddr_to_raw,
3029 d10v_store_struct_return, d10v_store_return_value,
3030 d10v_extract_struct_value_address, d10v_frame_saved_pc,
3031 d10v_frame_args_address, d10v_frame_locals_address,
3032 d10v_saved_pc_after_call): New functions.
3034 * config/d10v/tm-d10v.h (REGISTER_BYTE, REGISTER_RAW_SIZE,
3035 REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN,
3036 D10V_MAKE_DADDR, D10V_MAKE_IADDR, D10V_DADDR_P, D10V_IADDR_P,
3037 D10V_CONVERT_DADDR_TO_RAW, D10V_CONVERT_IADDR_TO_RAW,
3038 STORE_STRUCT_RETURN, STORE_RETURN_VALUE,
3039 EXTRACT_STRUCT_VALUE_ADDRESS, SAVED_PC_AFTER_CALL, FRAME_SAVED_PC,
3040 FRAME_ARGS_ADDRESS): Re-define using new functions.
3042 * config/d10v/tm-d10v.h (BREAKPOINT_FROM_PC): Replace BREAKPOINT.
3043 (REGISTER_NAME): Replace REGISTER_NAMES.
3045 * utils.c (core_addr_lessthan, core_addr_greaterthan): New
3047 * defs.h (core_addr_lessthan, core_addr_greaterthan): Declare.
3049 Sat May 22 16:44:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
3051 * utils.c (n_spaces): Handle case where first call has N equal to
3053 (print_spaces): Use n_spaces.
3055 Fri May 21 11:23:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
3057 * valops.c (value_push): Remove conditional definition based on
3058 absense of macro PUSH_ARGUMENTS. Pass SP and STRUCT_ADDR by
3060 (default_push_arguments): New function.
3062 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
3063 config/sparc/tm-sparc.h, config/sparc/tm-sp64.h,
3064 config/sh/tm-sh.h, config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
3065 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
3066 config/mips/tm-mips.h, config/m32r/tm-m32r.h,
3067 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
3068 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h, config/arm/tm-arm.h,
3069 config/alpha/tm-alpha.h: Update definition of PUSH_ARGUMENTS.
3072 * rs6000-tdep.c (rs6000_push_arguments): Rename push_arguments.
3074 Thu May 20 12:18:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
3076 * blockframe.c (get_prev_frame): Remove #ifdef around test for
3077 FRAMELESS_FUNCTION_INVOCATION.
3078 (get_prev_frame): Change FRAMELESS_FUNCTION_INVOCATION call to a
3079 function invocation.
3080 * i386-tdep.c (i386_frame_num_args), stack.c (frame_info): Ditto.
3081 * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/vax/tm-vax.h,
3082 config/sparc/tm-sparc.h, config/sh/tm-sh.h,
3083 config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
3084 config/mips/tm-mips.h, config/m88k/tm-m88k.h,
3085 config/m68k/tm-m68k.h, config/i960/tm-i960.h,
3086 config/i386/tm-sun386.h, config/i386/tm-i386v.h,
3087 config/i386/tm-i386.h, config/h8500/tm-h8500.h,
3088 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
3089 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h,
3090 config/convex/tm-convex.h, config/arm/tm-arm.h,
3091 config/arc/tm-arc.h, config/alpha/tm-alpha.h,
3092 config/a29k/tm-a29k.h: Update FRAMELESS_FUNCTION_INVOCATION.
3093 * fr30-tdep.c (fr30_frameless_function_invocation), convex-tdep.c
3094 (convex_frameless_function_invocation), arm-tdep.c
3095 (arm_frameless_function_invocation): New functions.
3097 1999-05-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3099 * top.c: Change dates in comments to ISO format.
3101 * event-top.c: Ditto.
3102 * event-loop.c: Ditto.
3105 1999-05-19 Keith Seitz <keiths@cygnus.com>
3107 * config/mcore/tm-mcore.h (BELIEVE_PCC_PROMOTION): Define. We
3108 really do want to believe what gcc tells us about types...
3110 1999-05-19 Keith Seitz <keiths@cygnus.com>
3112 * config/mcore/tm-mcore.h (FRAME_ARGS_ADDRESS): Define to a function.
3113 (FRAME_LOCALS_ADDRESS): Ditto.
3114 * mcore-tdep.c (mcore_frame_args_addcress): New function.
3115 (mcore_frame_locals_address): New function.
3117 * monitor.c (monitor_open): Only assume we have eight
3118 breakpoints if the monitor implementation does not tell
3119 us how many there really are. Alloc memory for these
3121 (monitor_close): Free memory associated with breakpoint
3123 (monitor_insert_breakpoint): Don't rely on a hardcoded
3124 number of breakpoints.
3125 (monitor_remove_breakpoint): Ditto.
3126 (NUM_MONITOR_BREAKPOINTS): Removed and replaced with monitor_ops
3128 * monitor.h (struct monitor_ops): Add new member so that the
3129 individual monitor implementations can tell us how many
3130 breakpoints the monitor supports.
3132 * mcore-rom.c (init_picobug_cmds): Add number of breakpoints supported
3135 1999-05-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3137 From Philippe De Muyter <phdm@macqel.be>:
3138 * event-loop.h: Include sys/wait.h only if HAVE_SYS_WAIT_H.
3140 1999-05-17 Keith Seitz <keiths@cygnus.com>
3142 * configure.tgt: Add MCore target.
3143 * Makefile.in: Add mcore-tdep.c and mcore-rom.c
3144 * config/mcore/tm-mcore.h: New file.
3145 * config/mcore/mcore.mt: New file.
3146 * mcore-rom.c: New file.
3147 * mcore-tdep.c: New file.
3149 1999-05-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
3151 * top.c (print_command_line): Added the missing stream argument.
3152 * gdbcmd.h: Added argument to prototype.
3153 * command.c: Fixed call to include extra argument.
3154 * breakpoint.c: Same.
3156 1999-05-14 Jim Blandy <jimb@zwingli.cygnus.com>
3158 Targets are #defining PREPARE_TO_PROCEED with inconsistent numbers
3159 of arguments. Since the Mach 3 target needs an argument, we'll
3160 make things consistent by adding an argument everywhere.
3161 * infrun.c (proceed): Pass an argument to PREPARE_TO_PROCEED.
3162 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Add ignored argument
3165 1999-05-11 Stan Shebs <shebs@andros.cygnus.com>
3167 Fri Apr 23 13:27:34 PDT 1999 Toshiyasu Morita (tm@netcom.com)
3168 * sh-stub.c: Mostly localize processor dependencies.
3170 1999-05-10 Martin Hunt <hunt@cygnus.com>
3172 * debugify.c, debugify.h: Removed because they are no
3175 1999-05-08 Jim Blandy <jimb@zwingli.cygnus.com>
3177 * infrun.c (_initialize_infrun): Handle TARGET_SIGNAL_LWP,
3178 TARGET_SIGNAL_WAITING, and TARGET_SIGNAL_CANCEL like SIGALRM or
3179 SIGIO --- pass them through to the inferior silently.
3180 * target.h (enum target_signals): Add TARGET_SIGNAL_CANCEL, for
3181 Solaris's SIGCANCEL.
3182 * target.c (target_signal_from_host, target_signal_to_host): Add
3183 mapping between SIGCANCEL and TARGET_SIGNAL_CANCEL.
3184 (signals): Add entry for SIGCANCEL.
3186 1999-05-07 Stan Shebs <shebs@andros.cygnus.com>
3188 After years of talking about it, finally break up the
3189 wait_for_inferior loop.
3190 * infrun.c (struct execution_control_state): New struct,
3191 holds what used to be local vars governing wfi behavior.
3192 (init_execution_control_state): New function, was code in
3193 wfi that set up execution control state.
3194 (handle_inferior_event): New function, was body of main
3195 wfi loop. Rewrite all local var references to go through
3196 the ecs structure passed into this function.
3197 (wait_for_inferior): Rewrite to set up and use execution control
3198 state, and to call the new functions.
3199 (currently_stepping): New function, was the macro
3201 (enum infwait_states): Rename from wfi_states.
3202 (infwait_normal_state, etc): Similarly.
3204 Thu May 6 15:25:32 1999 Philippe De Muyter <phdm@macqel.be>
3206 * coffread.c (coff_symtab_read): Call `record_line' with the line
3207 number of the ".bf" symbol only for one-line functions.
3209 1999-05-06 Michael Snyder <msnyder@cleaver.cygnus.com>
3211 * Makefile.in: thread.o depends on target.h.
3213 1999-05-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3215 * event-top.c (change_line_handler): Use POLLIN instead of
3216 POLLRDNORM, for compatibility with Linux.
3217 (setup_event_loop): Ditto.
3219 1999-05-06 Jim Blandy <jimb@zwingli.cygnus.com>
3221 * mips-tdep.c (heuristic_proc_start): Rewrite cryptic error
3222 message about hitting the "heuristic fence post" with something
3223 that actually gives the user a fighting chance of figuring out
3226 1999-05-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3228 * top.c: Include event-loop.h.
3229 (init_main): Add async version of 'set prompt' command.
3230 If in async mode define the editing and annotate set
3231 commands in a different way.
3232 Initialize new variable asyn_command_editing_p to 1.
3233 Initialize the gdb prompt for async mode.
3234 (quit_cover): Make not static, for use by the event loop.
3235 (gdb_init): Call async_init_signals for the asynchronous case.
3236 (source_line_number, source_file_name, source_error,
3237 source_pre_error, history_expansion_p): Make non-static, so
3238 event-top.c can use them.
3239 (command_loop_marker): Make non-static, for use in event-top.c.
3240 Include event-loop.h.
3242 * top.h: Add prototype for async_init_signals.
3243 (SET_TOP_LEVEL): Move here from main.c.
3244 Add setup_event_loop to exported functions.
3246 * defs.h: Add async_hook to exported variables.
3248 * main.c (SET_TOP_LEVEL): Move to top.h, so that it is visible in
3249 event-loop.c. Add new global variable async to determine whether
3250 we are running in async mode or not.
3251 (main): Add support for --async switch. Use async_hook to call
3252 setup_event_loop, when running in async mode.
3254 * event-top.c: New file. Gdb input line handler and command line
3255 handler for the event loop. Initialization of signal handlers.
3256 All the handled signals have handlers called handle_<signalname>.
3257 Set up all the appropriate tokens for asynchronous signal
3260 * event-loop.h: New file. Data structures and definitions for the
3263 * event-loop.c: New file. Functions for the event loop
3266 * config.in: Regenerate with autoheader.
3268 * configure.in (AC_CHECK_FUNCS): Add poll to list of functions
3271 * configure: Regenerate.
3273 * Makefile.in (SFILES): Add new source files.
3274 (eventloop_h): Define.
3275 (COMMON_OBS): Add new object files.
3276 (event-loop.o): Add rule for target object.
3277 (event-top.o): Ditto.
3279 1999-05-05 Stan Shebs <shebs@andros.cygnus.com>
3281 * infrun.c (wait_for_inferior): Transform breaks and continues
3282 into gotos, move the target_wait to the very top of the loop.
3284 1999-05-05 Jonathan Larmour <jlarmour@cygnus.co.uk>
3286 * configure.in: Ensure that GDB links with libuser32.a under
3287 cygwin because libreadline requires it.
3288 * Makefile.in (WIN32LIBS): Substitute in result from configure
3289 * configure: regenerate
3291 1999-05-04 Jim Blandy <jimb@zwingli.cygnus.com>
3293 Fix from John Rigby. Richard Henderson says it seems okay.
3294 * alpha-tdep.c (PROC_DUMMY_FRAME): As long as we're abusing fields
3295 of (proc)->pdr, we ought to at least abuse one large enough to
3296 hold the value we're trying to store in it. iopt is only 32 bits
3297 wide; cbLineOffset is a bfd_vma.
3299 1999-05-04 DJ Delorie <dj@cygnus.com>
3301 DJGPP changes from Robert Hoehne <robert.hoehne@gmx.net>
3303 * ser-go32.c: correct includes
3304 * source.c (openp): use ROOTED_P instead of SLASH_P
3305 * go32-nat.c: enhance exception and NPX handling
3306 (go32_kill_inferior): fix small bug killing inferior
3307 * configure.in: don't look for termcap with djgpp
3308 * configure: rebuild
3310 1999-05-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3312 * main.c (main): Comment out unused and undocumented command line
3315 1999-04-30 Jim Blandy <jimb@zwingli.cygnus.com>
3317 Cleanup from Philippe De Muyter:
3318 * configure.in (BFD_NEED_DECLARATION): Check also for strstr.
3319 * acconfig.h (NEED_DECLARATION_MALLOC, NEED_DECLARATION_REALLOC,
3320 NEED_DECLARATION_FREE, NEED_DECLARATION_STRERROR): Define slots
3321 removed; they are now generated automatically.
3322 * gdb_string.h (strstr): Provide function prototype if
3323 NEED_DECLARATION_STRSTR.
3324 * configure, config.in: Regenerated.
3326 Fri Apr 30 11:16:09 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
3328 * target.h (to_find_new_threads): new target ops vector.
3329 (target_find_new_threads): define.
3330 * target.c (update_current_target): inherit new target ops vector.
3331 * remote.c: Setup to_find_new_threads vector.
3332 * sol-thread.c: ditto.
3333 * thread.c (target_find_new_threads): rename: local_find_new_threads.
3334 (info_threads_command): call target_find_new_threads by new method,
3335 as a target ops vector, rather than previous macro definition method.
3336 * infcmd.c (go_command): define only if in xdb mode.
3337 * procfs.c: fix typo in comment.
3339 Fri Apr 30 01:02:05 1999 Jeffrey A Law (law@cygnus.com)
3341 * hppah-nat.c: Fix various coding convention violations introduced
3343 (child_acknowledge_created_inferior): Do nothing if PT_SET_EVENT_MASK
3346 1999-04-28 Stan Shebs <shebs@andros.cygnus.com>
3348 * TODO: Add some items inspired by review of the manual.
3350 Tue Apr 27 17:38:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
3352 * config/z8k/tm-z8k.h, config/v850/tm-v850.h,
3353 config/tic80/tm-tic80.h, config/sparc/tm-sparc.h,
3354 config/sh/tm-sh.h, config/pyr/tm-pyr.h, config/pa/tm-hppa.h,
3355 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
3356 config/mips/tm-mips.h, config/m88k/tm-m88k.h,
3357 config/m68k/tm-m68k.h, config/m32r/tm-m32r.h,
3358 config/i960/tm-i960.h, config/i386/tm-i386.h,
3359 config/h8500/tm-h8500.h, config/h8300/tm-h8300.h,
3360 config/fr30/tm-fr30.h, config/d30v/tm-d30v.h,
3361 config/d10v/tm-d10v.h, config/alpha/tm-alpha.h,
3362 config/arm/tm-arm.h, config/a29k/tm-a29k.h, config/arc/tm-arc.h:
3363 Change SKIP_PROLOGUE and SKIP_PROLOGUE_FRAMELESS_P macros so that
3364 they return the new address.
3366 * sparc-tdep.c (sparc_skip_prologue), hppa-tdep.c
3367 (hppa_skip_prologue), m88k-tdep.c
3368 (m88k_skip_prologue), i960-tdep.c
3369 (i960_skip_prologue), arc-tdep.c
3370 (arc_skip_prologue), a29k-tdep.c (a29k_skip_prologue): Rename
3371 skip_prologue function.
3373 * config/m68k/tm-isi.h: Convert macro SKIP_PROLOGUE into a new
3375 * m68k-tdep.c (isi_skip_prologue): That new function.
3376 * vax-tdep.c (vax_skip_prologue), config/vax/tm-vax.h: Ditto.
3377 * tahoe-tdep.c (tahoe_skip_prologue), config/tahoe/tm-tahoe.h: Ditto.
3378 * rs6000-tdep.c (rs6000_skip_prologue), config/rs6000/tm-rs6000.h:
3380 * ns32k-tdep.c (umax_skip_prologue), config/ns32k/tm-umax.h: Ditto.
3381 * config/ns32k/tm-merlin.h, ns32k-tdep.c (merlin_skip_prologue):
3383 * config/m68k/tm-altos.h, m68k-tdep.c (altos_skip_prologue): Ditto.
3384 * config/convex/tm-convex.h, convex-tdep.c (convex_skip_prologue):
3387 * symtab.c (in_prologue, find_function_start_sal, decode_line_1),
3388 infrun.c (wait_for_inferior), blockframe.c
3389 (frameless_look_for_prologue): Update.
3390 * config/fr30/tm-fr30.h (FRAMELESS_FUNCTION_INVOCATION): Update.
3392 1999-04-27 Stan Shebs <shebs@andros.cygnus.com>
3394 * TODO: Remove item about DEBUG_EXPRESSIONS, no longer meaningful.
3396 * infrun.c (enum wfi_state): New enum.
3397 (wait_for_inferior): Merge all but one of the target_wait calls
3398 into a single call, add a wfi_state variable to encode which of
3399 the calls is being made.
3401 1999-04-26 Jim Blandy <jimb@zwingli.cygnus.com>
3403 Fix from Dave Holcomb.
3404 * hpux-thread.c (init_hpux_thread_ops): Use the right function
3405 name when initializing hpux_thread_ops.to_thread_alive.
3407 * coffread.c (coff_symfile_read): If we have a `.stab' section,
3408 but no `.stabstr' section, then print an error message; don't
3411 1999-04-26 Jim Blandy <jimb@zwingli.cygnus.com>
3413 1999-04-25 Mark Kettenis <kettenis@gnu.org>
3415 * gnu-nat.c (gnu_attach): Call target_terminal_init before calling
3416 inf_set_traced, since that function calls code that might try to
3417 restore the terminal settings.
3419 Mon Apr 26 08:55:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
3421 * gdbarch.h, gdbarch.c: More format cleanups.
3423 Sun Apr 25 18:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
3425 * gdbarch.h (CALL_DUMMY_STACK_ADJUST_P): Replace
3426 SIZEOF_CALL_DUMMY_STACK_ADJUST_P.
3427 (CALL_DUMMY_STACK_ADJUST): Replace
3428 SIZEOF_CALL_DUMMY_STACK_ADJUST_P.
3429 * gdbarch.c (gdbarch_call_dummy_stack_adjust,
3430 set_gdbarch_call_dummy_stack_adjust): Define.
3432 Fri Apr 23 15:00:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
3434 * gdbarch.c (arch_ok): New function. Fix logic test for a valid
3438 1999-04-22 Jason Molenda (jsm@bugshack.cygnus.com)
3440 * README: Note that readline is not installed as a part of
3443 Thu Apr 22 21:02:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
3445 * gdbarch.h, gdbarch.c (GET_SAVED_REGISTER, get_saved_register):
3447 (struct gdbarch, verify_gdbarch, gdbarch_alloc, gdbarch_dump,
3448 default_gdbarch): Update.
3450 * value.h (get_saved_register): Cleanup prototype.
3451 * findvar.c (default_get_saved_register): Rename function
3453 (GET_SAVED_REGISTER): Define as default_get_saved_register when
3455 (get_saved_register): Always declare. Call GET_SAVED_REGISTER.
3457 * sparc-tdep.c (sparc_get_saved_register): Rename function
3459 * config/sparc/tm-sparc.h (GET_SAVED_REGISTER): Update.
3460 * a29k-tdep.c (a29k_get_saved_register): Rename function
3462 * config/a29k/tm-a29k.h (GET_SAVED_REGISTER): Update.
3464 * config/d10v/tm-d10v.h, config/powerpc/tm-ppc-eabi.h,
3465 config/h8300/tm-h8300.h, config/m32r/tm-m32r.h,
3466 config/mn10200/tm-mn10200.h, config/mn10300/tm-mn10300.h,
3467 config/sh/tm-sh.h, config/tic80/tm-tic80.h, config/v850/tm-v850.h:
3468 Update macro GET_SAVED_REGISTER so that it calls
3469 generic_get_saved_register.
3470 * v850-tdep.c, tic80-tdep.c, sh-tdep.c, mn10300-tdep.c,
3471 mn10200-tdep.c, m32r-tdep.c, h8300-tdep.c, rs6000-tdep.c: Delete
3472 function get_saved_register.
3474 Thu Apr 22 13:32:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
3476 * gdbarch.c: Cleanup. Re-order the definition of the ``struct
3477 gdbarch'' initialization functions so that maintenance is more
3480 Thu Apr 22 11:07:21 1999 Andrew Cagney <cagney@b1.cygnus.com>
3482 * gdbarch.h, gdbarch.c (use_generic_dummy_frames,
3483 USE_GENERIC_DUMMY_FRAMES): Add.
3484 (struct gdbarch, verify_gdbarch, gdbarch_alloc, gdbarch_dump,
3485 default_gdbarch): Update.
3487 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
3488 config/sh/tm-sh.h, config/powerpc/tm-ppc-eabi.h,
3489 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
3490 config/m32r/tm-m32r.h, config/h8300/tm-h8300.h,
3491 config/fr30/tm-fr30.h, config/d10v/tm-d10v.h: Give the
3492 USE_GENERIC_DUMMY_FRAMES macro the value one.
3493 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Default to a value of
3496 * blockframe.c (generic_find_dummy_frame,
3497 generic_pc_in_call_dummy, generic_read_register_dummy,
3498 generic_push_dummy_frame, generic_pop_current_frame,
3499 generic_pop_dummy_frame, generic_frame_chain_valid,
3500 generic_get_saved_register): Always define.
3502 * breakpoint.c (frame_in_dummy): Convert #ifdef
3503 USE_GENERIC_DUMMY_FRAMES to runtime test.
3505 * rs6000-tdep.c (pop_frame, push_arguments, push_arguments,
3506 push_arguments, frame_saved_pc, rs6000_frame_chain,
3507 rs6000_frame_chain): Convert #ifdef USE_GENERIC_DUMMY_FRAMES to
3509 (get_saved_register): Always define.
3511 Wed Apr 21 17:15:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
3513 * gdbarch.c (gdbarch_dump): Fix robustness check on
3514 BELIEVE_PCC_PROMOTION_TYPE.
3516 Wed Apr 21 15:39:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
3518 * gdbarch.h (TARGET_BYTE_ORDER_SELECTABLE_P): When multi-arch,
3519 force selectable byte order.
3520 (CALL_DUMMY): Check for CALL_DUMMY definition when multi-arch. Are
3522 * gdbarch.c (verify_gdbarch): Check call_dummy_stack_adjust.
3524 Wed Apr 21 14:45:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
3526 * gdbarch.c (gdbarch_update): Move dump-arch code from here.
3527 (gdbarch_dump): To here. Make more robust.
3528 * gdbarch.h (gdbarch_dump): Add prototype.
3530 * gdbarch.c (enum set_arch): Declare.
3531 (set_arch): Add type parameter. Only disable
3532 ``target_architecture_auto'' when set_arch_manual.
3533 (set_architecture, set_architecture_from_arch_mach,
3534 set_architecture_from_file): Update.
3535 (set_arch): When ``gdbarch_debug'', gdbarch_dump() the current
3538 Wed Apr 21 10:48:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
3540 * frame.h (generic_pc_in_call_dummy): Make signature consistent
3541 with other pc_in_call_dummy functions by adding SP parameter.
3542 * blockframe.c (generic_pc_in_call_dummy): Update. Pass SP and
3543 not FP to generic_find_dummy_frame().
3544 * breakpoint.c (frame_in_dummy): Update.
3545 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
3546 config/sh/tm-sh.h, config/mn10300/tm-mn10300.h,
3547 config/mn10200/tm-mn10200.h, config/m32r/tm-m32r.h,
3548 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
3549 config/d10v/tm-d10v.h: Update PC_IN_CALL_DUMMY definition.
3551 Tue Apr 20 12:15:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
3553 * config/d10v/tm-d10v.h (GDB_TARGET_IS_D10V): Move from here.
3554 * gdbarch.h (GDB_TARGET_IS_D10V): To here. Implement using
3555 TARGET_ARCHITECTURE.
3556 (D10V_MAKE_DADDR, D10V_MAKE_IADDR): Provide fatal default
3559 * valops.c (value_at): Replace #ifdef GDB_TARGET_IS_D10V code with
3561 (value_fetch_lazy): Ditto.
3562 * values.c (unpack_long): Ditto.
3563 * printcmd.c (print_frame_args): Ditto.
3565 Sat Apr 17 15:39:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
3567 * gdbarch.h: Cleanup multi-arch comments.
3569 Fri Apr 16 15:39:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
3571 * gdbarch.h: Provide definition if GDB_MULTI_ARCH > 1 or
3572 GDB_MULTI_ARCH > 0 and no previous definition.
3573 * gdbarch.c (verify_gdbarch): Only verify a full multi-arch
3576 1999-04-15 Stan Shebs <shebs@andros.cygnus.com>
3578 * infrun.c (wait_for_inferior) [HAVE_STEPPABLE_WATCHPOINT,
3579 HAVE_NONSTEPPABLE_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT]: Test
3580 at runtime instead of compile time.
3582 1999-04-14 Philippe De Muyter <phdm@macqel.be>
3584 * breakpoint.c (maintenance_info_breakpoints): Function made
3585 static to match previous prototype.
3587 * coffread.c (coff_record_line): Static function removed.
3588 (enter_linenos): Call `record_line' instead of `coff_record_line'.
3589 (FILE-LEVEL, coff_start_symtab, coff_end_symtab): `coff_record_line'
3590 -related stuff removed.
3591 (coff_symfile_read): Redundant statement removed.
3592 (coff_symtab_read): `record_line' is now called with the first line
3593 number of each function, given by the ".bf" symbol. This solves
3594 the line-number bug for one-line functions.
3596 Wed Apr 14 11:09:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
3598 * gdbarch.h (BELIEVE_PCC_PROMOTION_TYPE, BELIEVE_PCC_PROMOTION):
3599 Add multi-arch definitions.
3600 * gdbarch.c (gdbarch_believe_pcc_promotion,
3601 gdbarch_believe_pcc_promotion_type): New functions.
3602 (gdbarch_update): Update
3603 (struct gdbarch default_gdbarch): Update.
3605 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Provide default.
3606 (define_symbol): Change #if BELIEVE_PCC_PROMOTION_TYPE and #if
3607 BELIEVE_PCC_PROMOTION to if().
3609 1999-04-13 Jason Molenda (jsm@bugshack.cygnus.com)
3611 * configure.in (HAVE_MULTIPLE_PROC_FDS): Don't define if we're
3612 on a Solaris host (of any architecture).
3613 * configure: Regenerated.
3615 Wed Apr 14 08:23:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
3617 * gdbarch.c (SET_GDBARCH, GET_GDBARCH, FSET_GDBARCH): New macros.
3618 (gdbarch_byte_order, gdbarch_long_bit, gdbarch_long_long_bit,
3619 gdbarch_ptr_bit, gdbarch_call_dummy_location,
3620 gdbarch_call_dummy_address, gdbarch_call_dummy_address,
3621 gdbarch_call_dummy_breakpoint_offset,
3622 gdbarch_call_dummy_breakpoint_offset, gdbarch_call_dummy_length,
3623 gdbarch_pc_in_call_dummy, dbarch_call_dummy_breakpoint_offset_p,
3624 dbarch_call_dummy_p, dbarch_call_dummy_words,
3625 dbarch_sizeof_call_dummy_words, dbarch_call_dummy_stack_adjust,
3626 dbarch_call_dummy_stack_adjust_p): Define using new macros.
3628 1999-04-13 Jason Molenda (jsm@bugshack.cygnus.com)
3630 * rom68k-rom.c (init_rom68k_cmds): Fix an accidental substitution
3631 in monitor command strings, fix some formatting mistakes.
3633 1999-04-13 Stan Shebs <shebs@andros.cygnus.com>
3635 * configure.tgt (arm-*-*): Whack another vestige of wingdb.
3637 1999-04-12 James Ingham <jingham@cygnus.com>
3639 * arm-tdep.c (arm_pop_frame): don't clobber the previous frame's
3640 stack pointer (stored in frame->framereg's register) BEFORE
3641 reading it. This was causing "return" to behave very oddly.
3643 1999-04-12 Stan Shebs <shebs@andros.cygnus.com>
3645 * NEWS: Mention tic80.
3647 1999-04-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3649 * a68v-nat.c: Remove reference to 'extern char registers[]' throughout.
3650 * altos-xdep.c: Ditto.
3651 * arm-xdep.c: Ditto.
3652 * convex-xdep.c: Ditto.
3653 * cxux-nat.c: Ditto.
3654 * hp300ux-nat.c: Ditto.
3655 * hppab-nat.c: Ditto.
3656 * i386aix-nat.c: Ditto.
3657 * i386mach-nat.c: Ditto.
3658 * m88k-nat.c: Ditto.
3659 * ptx4-nat.c: Ditto.
3660 * pyr-xdep.c: Ditto.
3661 * rs6000-nat.c: Ditto.
3662 * sun3-nat.c: Ditto.
3663 * sun386-nat.c: Ditto.
3664 * symm-nat.c: Ditto.
3665 * umax-xdep.c: Ditto.
3666 * i386v4-nat.c: Ditto. Also include inferior.h.
3667 * m68k-tdep.c: Ditto. Also include inferior.h.
3669 Mon Apr 12 15:57:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
3671 * inferior.h (CALL_DUMMY_STACK_ADJUST, CALL_DUMMY_STACK_ADJUST_P):
3672 Provide default definitions.
3673 * valops.c (hand_function_call): Replace #ifdef
3674 CALL_DUMMY_STACK_ADJUST with if (CALL_DUMMY_STACK_ADJUST_P).
3676 * gdbarch.h (SIZEOF_CALL_DUMMY_STACK_ADJUST,
3677 (SIZEOF_CALL_DUMMY_STACK_ADJUST_P): Define
3678 * gdbarch.c (struct gdbarch): Add call_dummy_stack_adjust,
3679 call_dummy_stack_adjust_p.
3680 (gdbarch_call_dummy_stack_adjust,
3681 set_gdbarch_call_dummy_stack_adjust,
3682 gdbarch_call_dummy_stack_adjust_p,
3683 set_gdbarch_call_dummy_stack_adjust_p): New functions.
3684 (default_gdbarch): Update.
3686 1999-04-09 Jim Blandy <jimb@zwingli.cygnus.com>
3688 * ax-gdb.c, ax-gdb.h, ax-general.c, ax.h: Remove RCS Id strings.
3691 * GDB 4.18 released.
3692 * Makefile.in (VERSION): Bump to 4.18.1.
3694 Thu Apr 8 16:04:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
3696 * inferior.h (CALL_DUMMY_P, CALL_DUMMY_WORDS,
3697 SIZEOF_CALL_DUMMY_WORDS): Define macros.
3698 (PUSH_DUMMY_FRAME, FIX_CALL_DUMMY, STORE_STRUCT_RETURN): Provide
3701 * inferior.h, gdbarch.c (call_dummy_words,
3702 sizeof_call_dummy_words): Declare/Define variables.
3703 * valops.c (value_arg_coerce, find_function_addr,
3704 call_function_by_hand): Always define.
3705 (hand_function_call): Rename CALL_DUMMY version of
3706 call_function_by_hand. Make static. Add prototype.
3707 (hand_function_call): Update. Allocate space for *dummy and
3708 *dummy1 using alloca.
3709 * breakpoint.c (frame_in_dummy): Update.
3711 * gdbarch.h (CALL_DUMMY_P, CALL_DUMMY_WORDS,
3712 SIZEOF_CALL_DUMMY_WORDS): Define.
3713 * gdbarch.c (gdbarch_call_dummy_p, set_gdbarch_call_dummy_p,
3714 gdbarch_call_dummy_words, set_gdbarch_call_dummy_words,
3715 gdbarch_sizeof_call_dummy_words,
3716 set_gdbarch_sizeof_call_dummy_words): New functions.
3717 (gdbarch_alloc, verify_gdbarch, gdbarch_update, struct
3718 default_gdbarch): Update.
3720 1999-04-08 Jason Molenda (jsm@bugshack.cygnus.com)
3722 * monitor.c (monitor_read_memory): If a MO_GETMEM_NEEDS_RANGE
3723 monitor, increase the end address by one byte.
3725 1999-04-08 Jason Molenda (jsm@bugshack.cygnus.com)
3727 * dbug-rom.c (init_dbug_cmds): Fix strings in
3728 dbug_cmds.{step,clr_break,clr_all_break,fill} to send correct
3729 commands to the monitor.
3731 1999-04-08 Keith Seitz <keiths@cygnus.com>
3733 * m32r-stub.c (branchDestination): Undo overly ambitious
3734 sed script's conversion of cast from "char" to "unsigned char".
3735 Return offset should now be properly computed.
3737 Thu Apr 8 14:13:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
3739 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): New macro.
3740 Non-zero when CALL_DUMMY_BREAKPOINT_OFFSET is valid.
3742 * infcmd.c (breakpoint_auto_delete_contents): Always define.
3743 (run_stack_dummy): Update.
3744 * infrun.c (wait_for_inferior): Update
3746 * gdbarch.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): New macro.
3747 * gdbarch.c (set_gdbarch_call_dummy_breakpoint_offset_p,
3748 gdbarch_call_dummy_breakpoint_offset_p): New functions.
3749 (struct gdbarch, gdbarch_alloc, default_gdbarch, gdbarch_update):
3752 1999-04-07 Stan Shebs <shebs@andros.cygnus.com>
3754 * MAINTAINERS: Mark Alexander can no longer maintain
3755 h8300 and other embedded targets, sniff.
3757 1999-04-06 Stan Shebs <shebs@andros.cygnus.com>
3759 * inftarg.c (child_wait): Initialize execd_pathname.
3760 * target.c (debug_to_has_execd): Handle NULL execd_pathname.
3762 * solib.c (clear_solib): Don't call disable_breakpoints_in_shlibs,
3763 this breaks rerunning on sun4 native.
3765 1999-04-06 Jim Blandy <jimb@zwingli.cygnus.com>
3767 * config/sparc/nm-linux.h: Don't redefine PT_ATTACH to use the
3768 deprecated PTRACE_SUNATTACH compatibility commands. The
3769 definitions from <sys/ptrace.h> are fine.
3771 1999-04-06 Martin Hunt <hunt@cygnus.com>
3773 * annotate.h: Declare annotate_signal_hook.
3775 * annotate.c (annotate_signal): Add a call to
3776 annotate_signal_hook().
3778 1999-04-06 Jim Blandy <jimb@zwingli.cygnus.com>
3780 * dwarf2read.c (dwarf_decode_lines): Don't call record_line when
3781 we hit a DW_LNE_end_sequence instruction.
3783 * README: Note that GDB requires an ANSI C compiler, and explain
3788 1999-04-05 Stan Shebs <shebs@andros.cygnus.com>
3790 * NEWS: Add more notes about user-visible changes.
3792 Mon Apr 5 14:56:59 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
3794 * target.c (target_signal_to_string): check for signal
3795 number in range; otherwise if the target board returns
3796 a bogus signal number we might core dump (per David Taylor).
3798 1999-04-05 David Taylor <taylor@ryobi.cygnus.com>
3800 * utils.c (fputs_maybe_filtered): test value of
3801 pagination_enabled before paginating.
3803 1999-04-02 James Ingham <jingham@cygnus.com>
3805 * blockframe.c (get_prev_frame): Remove the redundant
3806 get_prev_frame_info. It is now exactly the same as
3807 get_prev_frame, so there is no reason to have both functions.
3809 * rs6000-tdep.c (rs6000_init_extra_frame_info):
3811 a29k-tdep.c (init_extra_frame_info):
3812 config/a29k/tm-a29k.h:
3814 Change all references to get_prev_frame_info to get_prev_frame.
3816 1999-04-02 Stan Shebs <shebs@andros.cygnus.com>
3818 * bcache.c, bcache.h, breakpoint.c, defs.h, expprint.c,
3819 expression.h, gdbarch.c, gdbtypes.c, gdbtypes.h, gnu-nat.c,
3820 gnu-nat.h, hppa-tdep.c, maint.c, monitor.c, objfiles.h, parse.c,
3821 remote-mips.c, remote-sds.c, remote.c, sol-thread.c, symmisc.c,
3822 symtab.h, target.c, top.c, typeprint.c, config/nm-gnu.h: Evaporate
3823 the unused MAINTENANCE_CMDS conditional.
3825 1999-04-02 James Ingham <jingham@cygnus.com>
3827 * config/arm/tm-arm.h: (EXTRACT_STRUCT_VALUE_ADDRESS): This needs
3828 to call extract_address, not just cast the first 4 bytes, since
3829 the result will be passed to value_at which expects host-byte
3832 * arm-tdep.c (arm_scan_prologue): The prologue_start address was
3833 directly &'ed with 0x03fffffc, rather than using
3834 ADDR_BITS_REMOVE. This would cause inferior function calls to
3835 report the stack incorrectly on return.
3838 1999-04-02 Keith Seitz <keiths@cygnus.com>
3840 * top.c (ui_loop_hook): Change declaration. Now returns an int.
3841 * win32-nat.c (child_wait): Timeout WaitForDebugEvent and call
3842 the ui_loop_hook if there was no debug event.
3843 * top.c (ui_loop_hook): Change to return an int and include
3844 on all non-Cygwin builds.
3845 * v850ice.c: Change prototype of ui_loop_hook.
3846 (v850ice_wait): Update call to ui_loop_hook.
3847 * ser-unix.c (hardwire_readchar): Enable ui_loop_hook callbacks
3848 for non-Cygwin builds. Check return status of ui_loop_hook and
3849 return a timeout if told to detach. Add more documentation.
3850 * ser-tcp.c (tcp_readchar): Break up timeouts into one second
3851 intervals and call ui_loop_hook so that other UIs can
3852 keep up to date. If ui_loop_hook returns non-zero, then
3853 return SERIAL_TIMEOUT to facilitate detaching from the
3855 * remote.c (remote_interrupted_already): Remove.
3856 (remote_interrupt_twice): Revive.
3857 (remote_interrupt): Call remote_stop to interrupt the target
3858 and install remote_interrupt_twice to take more severe
3859 actions if this fails.
3860 (remote_stop): Only attempt to stop the target. This separates
3861 the command line from other UIs.
3862 * remote-sim.c (gdb_os_poll_quit): Add a call to ui_loop_hook,
3865 1999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
3867 Fix for cross-debugging on an AIX host from Johanna Svenningsson:
3868 * ax-gdb.h (enum axs_lvalue_kind): Remove trailing comma from enum.
3869 * ax.h (enum agent_op): Same.
3870 * tracepoint.h (enum actionline_type): Same.
3871 * config/xm-aix4.h: Add declaration for termdef.
3873 1999-03-31 Stan Shebs <shebs@andros.cygnus.com>
3875 * jv-lang.h (dynamics_objfile): Remove decl, conflicts with static
3878 * infrun.c (follow_inferior_fork): Add ifdefs around
3879 SOLIB_REMOVE_INFERIOR_HOOK.
3881 Wed Mar 31 11:39:49 1999 David Taylor <taylor@ryobi.cygnus.com>
3883 * valops.c (search_struct_field): revert HP merge change
3884 to this function -- it causes messages to be printed about
3885 member class ambiguity when the compiler is happy.
3886 (search_struct_field_aux): delete -- added as part of HP merge
3887 change; with aforementioned change it is no longer called.
3889 1999-03-30 Stan Shebs <shebs@andros.cygnus.com>
3891 Make more HPUX-specific code generic.
3892 * infrun.c: Include top.h.
3893 (MAY_SWITCH_FROM_INFERIOR_PID, MAY_FOLLOW_EXEC,
3894 USE_THREAD_STEP_NEEDED): New native macros.
3895 (may_switch_from_inferior_pid, may_follow_exec,
3896 use_thread_step_needed): New globals.
3897 (follow_inferior_fork): Remove HPUXHPPA ifdef.
3898 (follow_exec): Ditto, also save run target and re-push instead of
3899 always pushing child_ops, add ifdefs around SOLIB_RESTART and
3900 SOLIB_CREATE_INFERIOR_HOOK.
3901 (wait_for_inferior): Use new globals instead of ifdefing HPUXHPPA,
3902 always use printf_filtered to report new threads.
3903 (normal_stop): Ditto.
3904 * target.h, target.c (find_run_target): New function.
3905 * config/pa/nm-hppah.h: Define new macros.
3907 1999-03-29 Stan Shebs <shebs@andros.cygnus.com>
3909 * top.h: Include setjmp.h here.
3910 * main.c, top.c: Don't include it here.
3912 1999-03-29 Keith Seitz <keiths@cygnus.com>
3914 * symtab.c (decode_line_1): Take out change which breaks symbols
3915 which include class names and methods, e.g., "Foo::bar".
3917 1999-03-26 Stan Shebs <shebs@andros.cygnus.com>
3919 * configure.tgt (i[3456]86-*-sysv4.2MP, i[3456]86-*-sysv4.2uw2*):
3920 Recognize both, as i[3456]86-*-sysv4.2*.
3921 (i[3456]86-*-sysv5*): Recognize.
3923 * infrun.c (wait_for_inferior): Remove most #if 0 segments.
3925 Fri Mar 26 17:27:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
3927 * blockframe.c (pc_in_call_dummy_on_stack): Fix. Had copied code
3928 from at_entry_point.
3930 Thu Mar 25 19:30:02 1999 Andrew Cagney <cagney@amy.cygnus.com>
3932 * gdbarch.c: Include all headers.
3933 (struct gdbarch), gdbarch.h (CALL_DUMMY_LOCATION,
3934 CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET,
3935 CALL_DUMMY_BREAKPOINT_OFFSET, CALL_DUMMY_LENGTH,
3936 PC_IN_CALL_DUMMY): Add ``call_dummy_location'',
3937 ``call_dummy_length'', ``pc_in_call_dummy'',
3938 ``call_dummy_start_offset'', ``call_dummy_breakpoint_offset'' to
3939 multi-arch framework.
3941 * inferior.h, blockframe.c (pc_in_call_dummy_before_text_end,
3942 pc_in_call_dummy_after_text_end, pc_in_call_dummy_on_stack,
3943 pc_in_call_dummy_at_entry_point): Convert PC_IN_CALL_DUMMY macro's
3946 Tue Mar 23 17:22:57 1999 Philippe De Muyter <phdm@macqel.be>
3948 * remote.c, parse.c: Include ctype.h.
3950 1999-03-24 Stan Shebs <shebs@andros.cygnus.com>
3952 * configure.host (mips-dec-mach3*): Use mipsm3 not mach3.
3954 Attempt to sort out SCO-related configs.
3955 * configure.host (i[3456]86-*-sysv4.2*): Use instead of
3956 i[3456]86-*-sysv4.2MP and i[3456]86-*-sysv4.2uw2*.
3957 (i[3456]86-*-sysv5*): Recognize.
3958 * configure.tgt (i[3456]86-*-sco3.2v5*, i[3456]86-*-sco3.2v4*):
3961 Wed Mar 24 16:19:01 1999 Christopher Faylor <cgf@cygnus.com>
3963 * MAINTAINERS: Add DJ Delorie (dj@cygnus.com) as the djgpp
3966 Wed Mar 24 21:19:57 1999 Andrew Cagney <cagney@amy.cygnus.com>
3968 * target.h (enum target_signal): Do not hardwire values of MACH
3971 1999-03-14 Ken Raeburn <raeburn@raeburn.org>
3973 * target.h (enum target_signal): Add TARGET_SIGNAL_INFO.
3974 * target.c (signals): Add SIGINFO description.
3975 (target_signal_from_host, target_signal_to_host): Translate
3976 SIGINFO to/from TARGET_SIGNAL_INFO.
3978 Wed Mar 24 01:01:27 1999 Andrew Cagney <cagney@sludge.cygnus.com>
3980 * rs6000-tdep.c (rs6000_software_single_step): Change SIGNAL to
3983 From Rodney Brown <rodneybrown@pmsc.com>
3984 * target.h (enum thread_control_capabilities), breakpoint.h (enum
3985 bptype), breakpoint.c (enum insertion_state_t): Strict ISO-C
3986 doesn't allow trailing comma in enum definition.
3988 Mon Mar 22 15:56:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
3990 * blockframe.c (inside_entry_file, inside_entry_func): Convert #if
3991 CALL_DUMMY_LOCATION to if.
3992 * valops.c (call_function_by_hand): Ditto.
3993 * infcmd.c (run_stack_dummy): Ditto.
3994 * inferior.h (CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET,
3995 CALL_DUMMY_BREAKPOINT_OFFSET): Provide default.
3997 1999-03-23 Jason Molenda (jsm@bugshack.cygnus.com)
3999 * hppa-tdep.c (pa_register_look_aside): Remove CPU_HPPA_RISC_20
4000 check, test for presence of struct save_state_t and the ss_wide
4002 * configure.in: Remove CPU_HPPA_RISC_20 test. Add tests for
4003 HAVE_STRUCT_SAVE_STATE_T and HAVE_STRUCT_MEMBER_SS_WIDE.
4004 * acconfig.h: Add HAVE_STRUCT_SAVE_STATE_T HAVE_STRUCT_MEMBER_SS_WIDE.
4005 * configure, config.in: Regenerated.
4007 Mon Mar 22 13:25:13 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
4009 * infttrace.c (proc_wait): rename to ptrace_wait.
4011 1999-03-18 Jim Blandy <jimb@zwingli.cygnus.com>
4013 * dwarf2read.c: Correctly recognize location expressions that
4014 designate LOC_REF_ARG arguments. Doc fixes.
4015 (isderef): New global. (Yuck.)
4016 (dwarf2_complex_location_expr): New complaint.
4017 (read_func_scope): Reject frame_base attributes that use the
4018 `deref' opcode as too complex.
4019 (new_symbol): If both regoff and isderef are set, and the base
4020 register is the frame pointer, then it's a LOC_REF_ARG argument.
4021 (decode_locdesc): Recognize the `deref' opcode in location
4022 expressions. Complain if it's not the last op in the expression.
4024 * config/fr30/tm-fr30.h (COERCE_FLOAT_TO_DOUBLE): #define this to
4025 be true, or else value_arg_coere won't respect the (accurate)
4026 information we have about whether a function is prototyped.
4028 1999-03-17 Jim Blandy <jimb@zwingli.cygnus.com>
4030 * config/fr30/tm-fr30.h (STACK_ALIGN): Define this here, so
4031 calling functions by hand with odd-sized arguments doesn't munge
4034 1999-03-17 Jason Molenda (jsm@bugshack.cygnus.com)
4036 * configure.in (HAVE_MULTIPLE_PROC_FDS): Don't define for Solaris
4037 hosts--gdb doesn't support this yet.
4038 * configure: Regenerated.
4040 1999-03-16 Keith Seitz <keiths@cygnus.com>
4042 * remote.c (remote_binary_checked): New file global.
4043 (check_binary_download): New function to check if
4044 stub supports binary downloading that works with
4045 stubs that are not eight bit clean.
4046 (remote_write_bytes): Check for binary download capability
4047 and use it if available.
4048 Remove references to global remote_binary_length. What a hack.
4049 (putpkt_binary): New function.
4050 (putpkt): Call putpkt_binary.
4051 Use xor to escape trouble characters.
4052 * m32r-stub.c (bin2mem): Follow escape char convention change.
4054 Tue Mar 16 01:11:33 1999 Andrew Cagney <cagney@rhino.cygnus.com>
4056 * target.h (struct target_ops), target.c (debug_to_query),
4057 remote.c (pack_hex_byte, remote_query): Promote char parameters to
4058 int. Stops compile problems with pedantic ISO-C compilers.
4060 Tue Mar 16 15:29:04 1999 Stan Shebs <shebs@andros.cygnus.com>
4062 * go32-xdep.c: Remove, no longer used by anything.
4063 * Makefile.in: Remove references.
4065 * jv-lang.c, jv-lang.h (java_primitive_type): Declare argument
4066 as int instead of char.
4068 Mon Mar 15 11:42:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
4070 * d10v-tdep.c (push_stack_item, pop_stack_item): New function.
4071 (d10v_push_arguments): Use.
4073 From Martin M. Hunt <hunt@cygnus.com>:
4074 * d10v-tdep.c (d10v_push_arguments): When arguments
4075 must be pushed onto the stack, they go on in
4078 1999-03-16 Jim Blandy <jimb@zwingli.cygnus.com>
4080 * symtab.c (make_symbol_overload_list): Don't try to stuff minimal
4081 or partial symbols into the overload list; we don't know their
4082 types. (Thanks to Rajiv Mirani.)
4084 1999-03-15 Jason Molenda (jsm@bugshack.cygnus.com)
4086 * acinclude.m4 (--with-itclconfig, --with-itkconfig, --with-tixconfig):
4087 Fix whitespace so --help messages line up.
4088 * configure.in (--with-cpu): Fix capitalization for --help messages.
4089 * configure, aclocal.m4: Regenerated.
4091 Mon Mar 15 11:39:03 1999 Ian Carmichael <iancarm@cygnus.com>
4093 Support building gdb w/o simulator:
4094 * configure.in: Support --disable-sim. Check for sim directory.
4095 * Makefile.in (IGNORE_SIM, IGNORE_SIM_OBS): New.
4096 * acconfig.h (WITH_SIM): Define.
4097 * configure, config.in: Regenerate.
4099 Mon Mar 15 08:01:33 1999 Elena Zannoni <ezannoni@cygnus.com>
4101 Patch from Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
4103 * top.c (read_command_lines): Reset control_level to 0.
4104 (define_command): Don't do it here.
4106 Sun Mar 14 16:12:15 1999 Andrew Cagney <cagney@rhino.cygnus.com>
4108 * hppah-nat.c (store_inferior_registers): Delete extern
4109 registers[] declaration.
4111 Sun Mar 14 19:17:30 1999 Andrew Cagney <cagney@b1.cygnus.com>
4113 * infrun.c (write_inferior_status_register): New function. Provide
4114 update access to an inf_status register buffer. Only used by HP.
4115 * inferior.h (write_inferior_status_register): Add prototype.
4117 * hppa-tdep.c (push_dummy_frame): Use
4118 write_inferior_status_register when hacking around a sleeping
4119 inferior. Accidently fix byte-order problem.
4121 Sun Mar 14 16:40:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
4123 * config/pa/tm-hppa.h (PUSH_DUMMY_FRAME): Fix parameter. Address
4126 Fri Mar 12 13:11:48 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
4128 * remote.c (remote_write_bytes): fix 'X' packet protocol so that it
4129 can't overwrite the end of its buffer with escaped characters.
4131 1999-03-12 Jim Blandy <jimb@zwingli.cygnus.com>
4133 Alpha patches from Richard Henderson:
4135 * alpha-tdep.c (alpha_skip_prologue): Recognize subq.
4137 * config/alpha/tm-alpha.h (REGISTER_NAMES): No f31, but fpcr.
4139 (REGISTER_CONVERTIBLE): Don't convert fpcr.
4140 (REGISTER_VIRTUAL_TYPE): Don't make fpcr a double.
4142 * stabsread.c (define_symbol): Only consider live range extension
4143 if we have an open parenthesis.
4145 1999-03-11 Jim Blandy <jimb@zwingli.cygnus.com>
4147 * monitor.c (monitor_fetch_register): Print RDEBUG info correctly
4148 when the register name is null.
4150 Thu Mar 11 19:33:07 1999 Stan Shebs <shebs@andros.cygnus.com>
4152 * infrun.c (wait_for_inferior): Change #if DECR_PC_AFTER_BREAK
4153 uses to expressions, remove redundant extern decls.
4155 Thu Mar 11 18:05:11 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
4157 * infptrace.c (proc_wait): Rename to ptrace_wait.
4158 * inftarg.c (child_wait): call ptrace_wait instead of proc_wait.
4159 * inferior.h: Declare ptrace_wait instead of proc_wait.
4161 Thu Mar 11 11:46:25 1999 Andrew Cagney <cagney@amy.cygnus.com>
4163 * breakpoint.c (create_solib_load_unload_event_breakpoint,
4164 create_fork_vfork_event_catchpoint, tcatch_command,
4165 create_exception_catchpoint, break_at_finish_at_depth_command_1,
4166 catch_fork_command_1, ep_skip_leading_whitespace,
4167 break_at_finish_command_1, catch_exec_command_1,
4168 catch_exception_command_1, stop_command, stopin_command,
4169 stopat_command, ep_parse_optional_filename,
4170 ep_find_event_name_end, ep_parse_optional_if_clause,
4171 catch_fork_command_1), stack.c (show_and_print_stack_frame_stub,
4172 print_stack_frame_stub, print_only_stack_frame_stub,
4173 backtrace_command_1, backtrace_full_command, func_command),
4174 valprint.c (print_decimal), source.c (print_source_lines_base):
4177 * stack.c (print_stack_frame_stub, show_and_print_stack_frame_stub,
4178 print_only_stack_frame_stub): Make param void*.
4180 Wed Mar 10 19:33:28 1999 Geoffrey Noer <noer@cygnus.com>
4182 * win32-nat.c: If old Cygwin Win32 API headers aren't being used,
4183 define some gdb-specific defines that shouldn't have been in the
4186 Wed Mar 10 21:20:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
4188 * findvar.c (registers, register_valid): Replace array with pointer.
4189 (build_findvar): New function. Allocate space for REGISTERS and
4191 (_initialize_findvar): Call build_findvar.
4192 (_initialize_findvar): Register REGISTERS and REGISTER_VALID as
4195 * inferior.h (registers, register_valid): Replace array with
4198 * inferior.h (struct inferior_status): Move definition from here.
4200 * infrun.c (struct inferior_status): To here.
4201 (struct inferior_status): Change ``stop_registers'' and
4202 ``registers'' to pointers.
4203 (xmalloc_inferior_status, free_inferior_status): New functions.
4204 (restore_inferior_status): Call free_inferior_status.
4205 (save_inferior_status): Call xmalloc_inferior_status.
4206 (discard_inferior_status): New function, discard inf_status
4207 buffer. Call free_inferior_status.
4209 * inferior.h (stop_registers): Replace array with pointer.
4210 * infrun.c (stop_registers): Update.
4211 (build_infrun): Initialize stop_registers.
4212 (_initialize_infrun): Call build_infrun.
4213 (_initialize_infrun): Register ``stop_registers'' as arch dependant.
4215 Wed Mar 10 14:50:42 1999 Andrew Cagney <cagney@amy.cygnus.com>
4217 * alpha-tdep.c (alpha_linux_sigtramp_offset): Only compile when
4218 LINUXALPHA target. Hack.
4220 * infrun.c (set_follow_fork_mode_command): Make static. Add
4222 * tracepoint.c (add_register): Ditto.
4223 * valprint.c (strcat_longest): Comment out. Does not appear to be
4225 * valops.c (find_method_list): Make static. Add prototype.
4226 * thread.c (target_find_new_threads): Make static. Add prototype.
4227 * stack.c (stack_publish_stopped_with_no_frame,
4228 select_and_maybe_print_frame): Comment out. Does not appear to be
4230 (current_frame_command): Add prototype.
4231 * breakpoint.c (break_at_finish_command,
4232 break_at_finish_at_depth_command, tbreak_at_finish_command): Make
4233 static. Add prototype.
4234 * findvar.c (read_relative_register_raw_bytes_for_frame): Ditto.
4236 Wed Mar 10 23:38:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
4238 * corefile.c (registers): Delete redundant variable declaration.
4239 * inferior.h (run_stack_dummy): Change array argument to pointer.
4240 * infcmd.c (run_stack_dummy): Update.
4241 * value.h (value_being_returned): Change RETBUF to a pointer.
4242 * values.c (value_being_returned): Update.
4244 Wed Mar 10 11:08:16 1999 Andrew Cagney <cagney@amy.cygnus.com>
4246 * source.c (list_command): GCC suggested explicit braces to avoid
4249 * jv-typeprint.c: Include "c-lang.h".
4250 * Makefile.in (jv-typeprint.o): Add dependency.
4251 * jv-valprint.c: Include "gdbcore.h", "annotate.h".
4252 * Makefile.in (jv-valprint.o): Add dependencies.
4253 * objfiles.c: Include "breakpoint.h".
4254 * Makefile.in (objfiles.o): Add dependency.
4255 * main.c: Include <unistd.h>.
4256 * parse.c: Include <ctype.h>.
4257 * remote.c: Include <ctype.h>.
4258 * ser-tcp.c: Include <unistd.h>.
4259 * ax-general.c: Include "value.h".
4260 * Makefile.in (ax-general.o): Add dependency.
4262 * alpha-tdep.c (alpha_push_arguments): Make ``i'' an int instead
4264 * frame.h (show_and_print_stack_frame): Add function prototype.
4265 * language.h (language_enum): Add function prototype.
4266 * value.h (find_overload_match): Add function prototype.
4268 * defs.h, utils.c (subset_compare): Rename subsetCompare. Add
4270 * stack.c (backtrace_command): Update.
4272 Wed Mar 10 13:58:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
4274 * configure.in (AC_CHECK_HEADERS): Check for <sys/select.h>
4275 * configure, config.in: Re-generate.
4276 * inflow.c: Conditionally include <sys/select.h>.
4278 Wed Mar 10 13:44:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
4280 * frame.h (struct dummy_frame): Move from here.
4281 * blockframe.c (struct dummy_frame): To here.
4283 * blockframe.c (struct dummy_frame): Replace ``regs'' with pointer
4285 (generic_pop_dummy_frame): Free it.
4286 (generic_push_dummy_frame): Allocate dummy frame register buffer.
4288 Wed Mar 10 11:08:16 1999 Andrew Cagney <cagney@amy.cygnus.com>
4290 * thread.c (_initialize_thread): Delete redundant ``extern struct
4291 cmd_list_element *cmdlist''.
4292 * printcmd.c (print_command_1): Ditto for ``objectprint'';
4294 1999-03-09 Stan Shebs <shebs@andros.cygnus.com>
4296 * MAINTAINERS: New file, list of maintainers and areas they
4299 1999-03-09 Rodney Brown <RodneyBrown@pmsc.com>
4301 Get working on UnixWare 2.1.1.
4302 * acconfig.h: Update for defines for procfs.c.
4303 * configure.in: Identify defines for procfs.c.
4304 * configure.host: i386-*-sysv4.2uw2* => i386v42mp
4305 * configure.tgt: i386-*-sysv4.2uw2* => i386v42mp
4306 * configure, config.in: Regenerate.
4307 * procfs.c: Rename HAVE_NO_PRRUN_T to HAVE_PRRUN_T (autoconf
4308 standard), wrap UNIXWARE difference in THE_PR_LWP macro for
4310 * config/i386/tm-i386v42mp.h: Remove HAVE_PSTATUS_T,
4311 HAVE_NO_PRRUN_T; now set by configure.
4313 Tue Mar 9 16:29:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
4315 * i386-tdep.c (gdb_print_insn_i386): Abort when disassembly_flavor
4318 * fr30-tdep.c (_initialize_fr30_tdep): Add prototype. Fix
4321 * target.c (debug_to_enable_exception_callback,
4322 debug_to_get_current_exception_event): Return result of call to
4325 1999-03-09 Jim Blandy <jimb@zwingli.cygnus.com>
4327 Another HURD fix from Mark Kettenis:
4328 * gnu-nat.c: Include <string.h>. Remove declaration of strerror.
4329 Include <bits/waitflags.h> instead of <waitflags.h> and define
4330 _SYS_WAIT_H to prevent the warning that we should not include it.
4331 (gnu_create_inferior): Change return type of attach_to_child to
4332 void. Do not return INFERIOR_PID.
4333 (gnu_pid_to_exec_file): Change return type to char *.
4336 Fix for the HURD from Mark Kettenis:
4337 * configure.in: Add AC_PROG_AWK. Needed by the machine-dependent
4338 makefile fragments for the Hurd.
4339 * Makefile.in (AWK): Add. Set by configure.
4340 * configure: Regenerated.
4342 1999-03-08 Jason Molenda (jsm@bugshack.cygnus.com)
4344 * infttrace.c (hppa_get_process_events): Removed. Function only
4345 usable on HPUX 10 and above. It is not called by any other part
4347 * hppah-nat.c (hppa_get_process_events): Ditto.
4348 (child_pid_to_exec_file): Only call ptrace with
4349 PT_GET_PROCESS_PATHNAME if that symbol has been defined.
4350 * config/pa/nm-hppah.h: Don't set up prototypes et al for
4351 hppa_get_process_events.
4353 * config/pa/hppahpux.mh (TERM_LIB): Do not initialize, let autoconf
4354 determine best library automatically.
4355 * config/pa/hpux1020.mh: Ditto.
4356 * config/pa/hpux1100.mh: Ditto.
4357 * configure.in (TERM_LIB): Also check for libHcurses.
4358 * configure: Regenerated.
4360 Thu Mar 4 17:16:04 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
4362 * m32r-stub.c: add support for crc "Compare" command.
4364 1999-03-04 Jim Blandy <jimb@zwingli.cygnus.com>
4366 * fr30-tdep.c (fr30_store_return_value): Allocate zeroes
4367 dynamically, to save BSS space, and to remove assumptions about
4368 the size of the largest value we'll return.
4370 * config/fr30/tm-fr30.h (fr30_store_return_value): Use PARAMS in
4373 Thu Mar 4 08:37:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
4375 * sh3-rom.c (sh3_supply_register, sh3_supply_register),
4376 mips-tdep.c (mips_push_arguments), m32r-rom.c
4377 (m32r_upload_command), m32r-tdep.c (decode_prologue), monitor.c
4378 (longlong_hexchars), tracepoint.c (validate_actionline,
4379 read_actions), mdebugread.c
4380 (parse_symbol), jv-typeprint.c
4381 (java_type_print_base, java_type_print_base), mdebugread.c
4382 (parse_symbol), top.c (source_command), utils.c
4383 (floatformat_to_doublest): GCC suggest explicit braces to avoid
4386 * tracepoint.c (map_args_over_tracepoints, trace_actions_command),
4387 m32r-rom.c (m32r_supply_register), win32-nat.c
4388 (handle_output_debug_string, child_continue), i960-tdep.c
4389 (pop_frame), m32r-rom.c (m32r_upload_command): GCC suggested
4390 parentheses around assignment used as truth value.
4392 * remote-sds.c (sds_wait), monitor.c (monitor_fetch_register),
4393 ser-e7kpc.c, (dosasync_write), arc-tdep.c (arc_get_frame_setup):
4394 GCC suggested parentheses around operands.
4396 * c-typeprint.c (c_type_print_base): GCC suggested enclosing
4397 "while" expression in paren.
4399 Wed Mar 3 18:14:33 1999 Andrew Cagney <cagney@chook.cygnus.com>
4401 * sol-thread.c (save_inferior_pid): Cast the saved pid to void*.
4402 (restore_inferior_pid): Takes void* as required by make_cleanup.
4403 Casts pid back to an int.
4405 * procfs.c (make_cleanup_close_proc_file,
4406 close_proc_file_cleanup): Create a proc_file cleanup.
4409 * defs.h (make_cleanup_freeargv): Helper function. Establish
4410 cleanup using freeargv. Can not just typecast/pass freeargv as it
4412 * utils.c (do_freeargv): Helper.
4413 (make_cleanup_freeargv): New function.
4415 * symmisc.c (maintenance_print_symbols,
4416 maintenance_print_psymbols, maintenance_print_msymbols), symfile.c
4417 (symbol_file_command), stack.c (backtrace_command), remote-sim.c
4418 (gdbsim_create_inferior, gdbsim_open), remote-mips.c
4419 (common_open), procfs.c (info_proc), infrun.c (handle_command,
4420 xdb_handle_command), exec.c (exec_file_attach): Call
4421 make_cleanup_freeargv.
4423 1999-03-03 James Ingham <jingham@cygnus.com>
4425 * i386-tdep.c (_initialize_i386_tdep): Set the inital value for
4426 disassembly flavor at startup, rather than hardcoding it.
4428 1999-03-03 Jim Blandy <jimb@zwingli.cygnus.com>
4430 Put return values in the right place.
4431 * fr30-tdep.c (fr30_store_return_value): New function.
4432 * config/fr30/tm-fr30.h (STORE_RETURN_VALUE): Call
4433 fr30_store_return_value.
4435 Wed Mar 3 18:10:55 1999 Andrew Cagney <cagney@chook.cygnus.com>
4437 * gdbtypes.c (virtual_base_list_aux): Return void. Add prototype.
4439 * breakpoint.c (map_catch_names): Comment out unused function.
4441 1999-03-02 Jason Molenda (jsm@bugshack.cygnus.com)
4443 * hppa-tdep.c (pa_register_look_aside): Only refer to save_state_t
4444 structure on PA 2.0 systems.
4446 1999-03-02 Stan Shebs <shebs@andros.cygnus.com>
4448 From Gary Thomas <gthomas@cygnus.co.uk>:
4449 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT,
4450 THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Use illegal instruction
4452 * config/arm/tm-arm.h (CALL_DUMMY): Ditto.
4453 (IN_SIGTRAMP): Define.
4455 1999-03-02 Nick Clifton <nickc@cygnus.com>
4457 * findvar.c (store_address): Delete incorrect big endian
4460 Tue Mar 2 18:02:42 1999 Andrew Cagney <cagney@chook>
4462 * configure.in (gdb_cv_os_cygwin): Compat. Continue to reconize
4465 1999-03-01 Jason Molenda (jsm@bugshack.cygnus.com)
4467 * configure.in: Move setting of gdb_cv_os_cygwin to before
4468 setting of TERM_LIB. Check for __CYGWIN__ instead of __CYGWIN32__.
4469 * configure: Regenerated.
4471 1999-03-01 DJ Delorie <dj@cygnus.com>
4473 * configure.in: Change -cygwin32* to -cygwin*.
4476 1999-02-25 Stan Shebs <shebs@andros.cygnus.com>
4478 * breakpoint.c (SOLIB_LOADED_LIBRARY_PATHNAME,
4479 SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_CREATE_CATCH_LOAD_HOOK,
4480 SOLIB_CREATE_CATCH_UNLOAD_HOOK): Supply default definitions.
4481 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Ditto.
4483 1999-02-25 Keith Seitz <keiths@cygnus.com>
4485 * corelow.c (core_close): Clear out solib state before
4486 closing the bfd associated with the core file.
4487 * solib.c (clear_solib): Mention that clear_solib requires
4488 an open BFD in order for disable_breakpoints_in_shlibs to
4489 determine whether breakpoints live in shared libraries.
4491 1999-02-24 Jason Molenda (jsm@bugshack.cygnus.com)
4493 * configure.in: Set CPU_HPPA_RISC_20 if the host CPU is a PA 2.0
4495 * acconfig.h: Add CPU_HPPA_RISC_20
4496 * config.in, configure: Regenerated.
4497 * hppa-tdep.c (pa_register_look_aside): Only refer to new
4498 structure elements if we are on a PA2.0 system.
4499 * defs.h: Include limits.h.
4501 Tue Feb 23 14:37:08 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
4503 * infrun.c (wait_for_inferior): Check scheduler_locking state
4504 before resuming after a thread-specific breakpoint.
4506 1999-02-23 Jim Blandy <jimb@zwingli.cygnus.com>
4508 * aclocal.m4, config.in, configure: Regenerated with latest
4511 Mon Feb 22 12:32:19 1999 Per Bothner <bothner@cygnus.com>
4513 * jv-valprint.c (java_val_print): Restore line that somehow got lost.
4515 * jv-valprint.c (java_print_value_fields): Check for NULL type.
4517 1999-02-21 Jim Blandy <jimb@zwingli.cygnus.com>
4519 * tm-h8500.h, i386lynx-nat.c: Removed. These files are long
4520 dead; it seems that they only appeared due to some CVS weirdness.
4521 If they appear again, we may need to distribute garlic and holy
4524 1999-02-19 Jason Molenda (jsm@bugshack.cygnus.com)
4526 * configure.in (TERM_LIB): Move checking for TERM_LIB, substituting.
4527 * configure: Regenerated.
4529 1999-02-19 Robert Hoehne (robert.hoehne@gmx.net)
4531 * configure.host (i[3456]86-*-msdosdjgpp*): New host.
4532 * configure.tgt (i[3456]86-*-msdosdjgpp*): New target.
4533 * go32-nat.c: New file, native DJGPP support.
4534 * config/i386/go32.mh: Rewrite for DJGPP (go32) host.
4535 * config/i386/go32.mt: New file, DJGPP (go32) target.
4536 * config/i386/nm-go32.h: New file.
4537 * config/i386/tm-go32.h: New file.
4538 * config/i386/xm-go32.h: Rewritten for current DJGPP.
4540 1999-02-18 Jason Molenda (jsm@bugshack.cygnus.com)
4542 * reply_mig_hack.awk, config/nm-gnu.h, config/alpha/nm-linux.h
4543 config/alpha/xm-alphalinux.h, config/alpha/xm-alphaosf.h
4544 config/i386/nm-i386sco5.h, config/i386/tm-fbsd.h, config/i386/tm-i386.h
4545 config/powerpc/nm-aix.h, config/powerpc/tm-macos.h
4546 config/powerpc/tm-ppc-aix.h, config/powerpc/xm-aix.h
4547 config/rs6000/tm-rs6000-aix4.h, testsuite/gdb.chill/tests1.ch
4548 testsuite/gdb.chill/tests2.ch, testsuite/gdb.chill/tests2.exp:
4549 Update FSF address in copyright notices.
4551 1999-02-18 Jason Molenda (jsm@bugshack.cygnus.com)
4553 * configure.in: Quote "$GCC" correctly.
4554 * configure: Regenerated.
4556 1999-02-18 Jim Blandy <jimb@zwingli.cygnus.com>
4558 * dbxread.c (elfstab_build_psymtabs): Don't assume that there's a
4559 section named ".text", which has all the code in it. Instead, look
4560 at all the sections in the file with the `code' flag set.
4561 (find_text_range): New function, that does all the work.
4563 Thu Feb 18 17:50:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
4565 * mips-tdep.c (FP_REGISTER_DOUBLE): Conditionally define.
4567 Fri Jan 29 16:51:11 1999 Andrew Cagney <cagney@chook.cygnus.com>
4569 * mips-tdep.c (return_value_location): New function. Merge/rewrite
4570 of return-value code in mips_extract_return_value,
4571 mips_store_return_value. Stop buffer overflow when 64 bit value
4572 in 32 bit registers. Extract 64bit float from 32 bit register
4573 pair of correct order.
4574 (mips_extract_return_value, mips_store_return_value): Call
4575 return_value_location. For store, ensure that remainder of
4578 Wed Feb 17 10:10:27 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
4580 * gdbtypes.h (get_discrete_bounds): Remove duplicate decl.
4582 * jv-typeprint.c (java_type_print_base): Change fputs => fputs_filtered.
4584 Mon Jan 25 18:30:57 1999 Per Bothner <bothner@cygnus.com>
4586 * jv-lang.h (JAVA_OBJECT_SIZE): Change from hard-wired constant.
4587 (java_primitive_type_from_name, get_java_object_header_size): Declare.
4588 * jv-lang.c (java_class_from_object): Use get_java_object_type.
4589 * jv-lang.c: Update Class field names: dtable->vtable,
4590 msize->method_count, nfields->field_count, bfsize->size_in_bytes,
4591 nmethods->method_count.
4592 (type_from_class): Demangle array type names.
4593 (java_link_class_type): Array type names are now demangled.
4594 (get_java_object_type): If not defined yet, try looking it up.
4595 (get_java_object_header_size): New function.
4596 (java_primitive_type_from_name): New function.
4597 (java_demangled_signature_length, java_demangled_signature_copy): New.
4598 (java_demangle_type_signature): Re-implement using above functions.
4599 (evaluate_subexp_java): For UNOP_IND, call evaluate_subexp_java
4600 to evaluate subexp (not evaluate_subexp_standard).
4601 For BINOP_SUBSCRIPT update for new array type naming scheme.
4602 * jv-valprint.c (java_value_print): Use java_class_from_object.
4603 Update array printing to new array type naming convention.
4604 (java_val_print): Doing check_typedef when printing a pointer is
4605 is a waste of effort. Also, handle TYPE_CODE_INT, to make sure
4606 Java bytes as not printed as C chars.
4608 Fri Jan 8 16:58:22 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
4610 * blockframe.c (find_pc_sect_partial_function): Search full symtabs as
4611 a last ditch effort (after the partial & minimal symtabs).
4612 * defs.h utils.c: Fixup prototypes for vprintf_filtered,
4613 vfprintf_filtered, vfprintf_unfiltered and vprintf_unfiltered to return
4614 ints to match their standard equivalents.
4615 * defs.h symtab.c top.c: Create skip_prologue_hook to allow Java to
4616 control the prologue skipping process.
4617 * jv-typeprint.c (java_type_print_base): Remove extern for
4618 jv_class_demangle, add new arg for objfile (NULL).
4619 * symtab.h: Remove struct sourcevector and struct source. Definately
4621 * values.c (value_virtual_fn_field): Fixes code to handle new vtable
4622 debug info format. Patch from marka.
4624 Wed Dec 16 23:11:25 1998 Stu Grossman <grossman@fencer.cygnus.com>
4626 * jv-lang.c (java_class_from_object java_class_is_primitive
4627 is_object_type): Change dtable to vtable.
4628 * (java_primitive_type): Change arg to type char.
4629 * (_initialize_java_language): Make java_char_type be unsigned.
4630 * jv-lang.h: Fixup prototypes.
4632 Mon Dec 7 19:02:15 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
4634 * jv-valprint.c (java_value_print): Fix printing of values where
4635 run time type != compile time type.
4637 Fri Dec 4 15:23:38 1998 Stu Grossman <grossman@fencer.cygnus.com>
4639 * Makefile.in: Whack out m2-typeprint.c.
4640 * c-typeprint.c (c_type_print_varspec_suffix) typeprint.h: Make this
4641 global. It's needed by Java.
4642 * (c_type_print_base): Whack prefix off of qualified method names
4643 (names with name spaces).
4644 * gdbtypes.h (struct cplus_struct_type): Add bits for Java attributes.
4646 to 16 bits to compensate for added bits above (hopefully this is still
4648 * Add new accessor macros (TYPE_FND_FIELD_PUBLIC, ...) for all new
4650 * jv-typeprint.c (java_type_print_base): Fix printing of method
4651 attributes. Handle JVM style manglings.
4652 * (java_print_type): Enable code type print varspec_suffix to allow
4653 array indices to print out.
4654 * jv-valprint.c (java_val_print): Minor formatting.
4655 * m2-lang.c (m2_language_d): Change m2_print_type to c_print_type.
4656 * stabsread.c (read_member_functions): Save public and static attributes.
4658 Wed Feb 17 15:32:57 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4660 * breakpoint.c (watch_command_1): Reformat comment.
4662 * c-typeprint.c (c_type_print_base): Reformat comments.
4664 1999-02-17 Jim Blandy <jimb@zwingli.cygnus.com>
4666 * Makefile.in (VERSION): Bump version to 4.17.2.
4668 Tue Feb 16 15:48:20 1999 Edith Epstein <eepstein@sophia.cygnus.com>
4670 * config/pa/nm-hppah.h: Added prototype declarations for
4671 hppa_enable_page_protection_events and
4672 hppa_disable_page_protection_events.
4674 * inftarg.c (child_wait): Fixed code that checks whether
4675 or not the target program has done a fork/vfork.
4676 related_pid does not have a value unless the target
4677 program has forked/vforked.
4679 * infttrace.c (hppa_insert_hw_watchpoint): Make sure that
4680 function always returns a value.
4681 (hppa_remove_hw_watchpoint): Make sure that function always
4684 Tue Feb 16 06:31:58 1999 Keith Seitz <keiths@cygnus.com>
4686 * config/powerpc/tm-ppc-eabi.h: Do not define PC_IN_CALL_DUMMY,
4687 let the generic call dummy infrastructure do it.
4689 Sun Feb 14 18:21:08 1999 Mark Alexander <marka@cygnus.com>
4691 * config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
4692 coffread.c will correctly handle char or short function parameters.
4694 1999-02-11 Jason Molenda (jsm@bugshack.cygnus.com)
4696 * configure, aclocal.m4: Regenerate with correct version of aclocal.
4698 1999-02-10 Syd Polk <spolk@cygnus.com>
4700 * acinclude.m4: Fix for new location of itclConfig.sh and itkConfig.sh.
4701 * aclocal.m4: Regnerate.
4702 * configure: Regenerate.
4704 1999-02-10 Jason Molenda (jsm@bugshack.cygnus.com)
4706 * demangle.c: Fix comments to mention "set demangle-style"
4707 instead of "set demangle".
4708 Run through indent to fix minor indenting problems.
4710 Wed Feb 10 17:53:09 1999 Bob Manson <manson@charmed.cygnus.com>
4712 * i386-tdep.c (gdb_print_insn_i386): Add missing returns.
4714 Wed Feb 10 13:17:21 1999 Stan Shebs <shebs@andros.cygnus.com>
4716 Declare Gould configuration obsolete:
4717 * configure.host, configure.tgt: Comment out Gould configs.
4718 * Makefile.in: Comment out Gould-related actions.
4719 * gould-xdep.c, gould-tdep.c, config/gould/*: Comment out.
4720 * NEWS: Mention obsolete status.
4722 1999-02-09 DJ Delorie <dj@cygnus.com>
4724 * sparcl-tdep.c: UDP download works in cygwin
4726 1999-02-08 Jason Molenda (jsm@bugshack.cygnus.com)
4728 * gnu-regex.c: Check ENABLE_NLS instead of HAVE_LIBINTL_H.
4729 * configure.in: Don't check for libintl.h.
4730 * configure, config.in: Regenerated.
4732 Mon Feb 8 18:10:50 1999 Stan Shebs <shebs@andros.cygnus.com>
4734 * NEWS: Mention new X packet and PowerPC variant support.
4736 1999-02-08 Nick Clifton <nickc@cygnus.com>
4738 * configure.host: Add support for StrongARM host.
4739 * configure.tgt: Add support for StrongARM target.
4741 Mon Feb 8 12:05:05 1999 David Taylor <taylor@texas.cygnus.com>
4743 * dsrec.c (make_srec): Cast targ_addr to int in call to sprintf
4744 otherwise on big endian machine with a bfd_vma of 64 bits,
4745 *everything* gets loaded at location 0.
4747 Mon Feb 7 10:05:43 1999 Frank Ch. Eigler <fche@cygnus.com>
4749 * infrun.c (wait_for_inferior): Allow SIGTRAP to be "pass"ed
4752 Fri Feb 5 16:46:14 1999 Stan Shebs <shebs@andros.cygnus.com>
4754 * NEWS: Add mentions of various new things.
4756 Thu Feb 4 00:19:14 1999 Christopher Faylor <cgf@cygnus.com>
4758 * configure.in: Move termcap determination later in the
4759 file to catch setting of cygwin flag.
4760 * configure: Regenerate.
4762 Wed Feb 3 14:16:38 1999 Christopher Faylor <cgf@cygnus.com>
4764 * config/i386/cygwin.mh: Move TERMCAP test code to configure.in.
4765 * configure.in: Treat libtermcap.a detection as a special case
4766 when hosting on cygwin.
4767 * configure: Regenerate.
4769 1999-02-03 Keith Seitz <keiths@cygnus.com>
4771 * remote.c (remote_binary_download, remote_binary_length): New
4772 static globals for dealing with binary transmissions.
4773 (remote_write_bytes): Add support for binary downloads
4774 by shadowing the "M" packet with a new "X" packet. This
4775 defaults to ON; if the stub does not understand this, it
4776 will fall back to using "M".
4777 (putpkt): Add support for binary downloading.
4778 * monitor.c (monitor_expect): The mon2000 monitor
4779 on the MSA2000 will also emit random DC1/DC3 chars.
4780 * m32r-stub.c: Change all char's to unsigned char's
4781 to support binary downloading.
4782 (handle_exception): Add support for binary downloading
4783 via a new "X" packet.
4784 (getpacket): Do NOT strip eighth bit of incoming chars.
4785 Watch out for escaped characters in the incoming stream.
4786 (putpacket): Do NOT strip eighth bit of incoming chars.
4787 (bin2mem): New function to write binary data directly to
4789 * m32r-rom.c: Add new "mon2000" target.
4791 Tue Feb 2 18:40:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4793 * hp-psymtab-read.c (hpread_build_psymtabs): Coerce first arg
4794 passed to make_cleanup to the correct type.
4795 (hpread_quick_traverse): Change fifth arg to call to
4796 hpread_end_psymtab to be 0.
4797 Compare CURR_MODULE_END to 0 rather than NULL.
4798 Get rid of ifdef'ed out code.
4799 (scan_procs): Get rid of ifdef'ed out code.
4801 * somread.c (som_symfile_read): Coerce first argument passed to
4802 make_cleanup to the correct type.
4804 Tue Feb 2 17:36:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4806 * hp-psymtab-read.c (do_pxdb): New function. Check whether the
4807 file needs to be processed by pxdb (an HP debug info massaging
4808 tool), if so call it.
4809 (hpread_build_psymtabs): Initialize scan_start to 0 and
4810 simplify flow of control.
4812 * somread.c (som_symfile_read): Add call to do_pxdb (),
4813 in hp-psymtab-read.c.
4815 * symfile.c (symbol_file_add): Remove ifdef'ed out HPUX specific
4817 (symfile_bfd_open): Remove HPUXHPPA ifdef'ed code. Code is now
4818 in hp-psymtab-read.c.
4820 1999-02-02 Martin Hunt <hunt@cygnus.com>
4822 * printcmd.c (print_scalar_formatted): Use strcat to concat all
4823 the output together before calling fprintf_filtered().
4825 1999-02-01 Jason Molenda (jsm@bugshack.cygnus.com)
4827 * configure.in: Require autoconf 2.13.
4828 (AM_EXEEXT): Replace with new AC_EXEEXT.
4829 * acinclude.m4: Move itcl header macros from aclocal.m4 to here.
4830 * aclocal.m4: Regenerated.
4831 * configure: Regenerated.
4833 1999-02-01 Jim Blandy <jimb@zwingli.cygnus.com>
4835 Allow PPC users to select which PPC/RS6000 variant they're
4836 debugging at run-time. At the moment, the only thing this affects
4837 is the set of registers visible.
4838 * config/rs6000/tm-rs6000.h (REGISTER_NAME): Define this as a call
4839 to the function rs6000_register_name.
4840 (rs6000_register_name): Include extern decl.
4841 (NUM_REGS): Bump to 183. What's the right way to do this?
4842 (FIRST_UISA_SP_REGNUM, LAST_UISA_SP_REGNUM): Renamed from
4843 FIRST_SP_REGNUM, LAST_SP_REGNUM.
4844 (REGISTER_BYTES): Recompute this.
4845 * rs6000-tdep.c: Renamed all uses of FIRST_SP_REGNUM and
4846 LAST_SP_REGNUM to FIRST_UISA_SP_REGNUM and LAST_UISA_SP_REGNUM, with
4847 some concomitant formatting changes.
4848 #include "gdbcmd.h", so we can define commands here.
4849 (struct variant): New structure.
4850 (COMMON_UISA_REG_NAMES, PPC_UISA_SPR_NAMES, PPC_SEGMENT_REG_NAMES,
4851 PPC_32_OEA_SPR_NAMES, num_registers): New macros.
4852 (register_names_rs6000, register_names_uisa, register_names_403,
4853 register_names_403GC, register_names_505, register_names_860,
4854 register_names_601, register_names_602, register_names_603,
4855 register_names_604, register_names_750, variants): New variables.
4856 (rs6000_register_name, install_variant, find_variant_by_name,
4857 install_variant_by_name, list_variants, show_current_variant,
4858 set_processor, show_processor): New functions.
4859 (_initialize_rs6000_tdep): Define new commands `set processor' and
4860 `show processor', and call install_variant_by_name to set the
4862 * rs6000-nat.c: Renamed all uses of FIRST_SP_REGNUM and
4863 LAST_SP_REGNUM to FIRST_UISA_SP_REGNUM and LAST_UISA_SP_REGNUM, with
4864 some concomitant formatting changes.
4865 * configure.in: Accept the `--with-cpu' flag, to specify a default
4867 * acconfig.h: Provide a blurb for TARGET_CPU_DEFAULT, which is set
4868 by configure's `--with-cpu' flag.
4869 * config.in, configure: Regenerated.
4871 Sun Jan 31 15:24:24 1999 Stan Shebs <shebs@andros.cygnus.com>
4873 * buildsym.h, buildsym.c: Convert to ANSI-only.
4875 * buildsym.h, buildsym.c: Reformat to standard.
4877 * buildsym.c (merge_symbol_lists): Remove unused variable.
4878 (_initialize_buildsym): Remove, does nothing.
4880 1999-01-31 J.T. Conklin <jtc@redbacknetworks.com>
4882 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
4883 sparcl-stub, sparclet-stub.c: Change declaration of putDebugChar
4884 to include explicit void return type as per documentation. Fix up
4885 occasions where stubs erroneously checked return type.
4887 Sun Jan 31 13:18:33 1999 Stan Shebs <shebs@andros.cygnus.com>
4889 From J.T. Conklin <jtc@redbacknetworks.com>:
4890 * remote.c (remote_query): Fix tipo.
4892 Fri Jan 29 15:25:09 1999 Stan Shebs <shebs@andros.cygnus.com>
4894 * configure.tgt (v850): Add wildcard to match.
4896 Fri Jan 29 16:44:01 1999 Edith Epstein <eepstein@sophia.cygnus.com>
4898 * inferior.h: Ran indent.
4900 * fork-child.c: Ran indent.
4902 * infrun.c : Ran indent.
4904 Fri Jan 29 12:57:34 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4906 * infrun.c (_initialize_infrun): Do not stop or print anything
4907 when a SIGWINCH is received.
4909 * Makefile.in (m2-exp.tab.c): Use YACC not BISON.
4910 (f-exp.tab.c): Ditto.
4911 (jv-exp.tab.c): Ditto.
4912 (c-exp.tab.c): Ditto.
4913 (YACC): Define as @YACC@.
4915 1999-01-29 Martin Hunt <hunt@cygnus.com>
4917 Changes from Keith Seitz <keiths@cygnus.com>
4918 * valops.c (value_assign): Add calls to register_changed_hook and
4919 memory_changed_hook to inform UIs that the user has changed
4920 the target's registers/memory.
4921 * findvar.c (write_register_gen): Remove call to pc_changed_hook.
4922 * defs.h: Remove declaration for pc_changed_hook and
4923 add declarations for register_changed_hook and
4924 memory_changed_hook.
4927 1999-01-29 Mark Alexander <marka@cygnus.com>
4929 * procfs.c (wait_fd): Handle deleted threads correctly.
4931 1999-01-28 Jason Molenda (jsm@bugshack.cygnus.com)
4933 * utils.c (init_page_info): Force window size if running under emacs.
4935 1999-01-27 James Ingham <jingham@cygnus.com>
4937 * typeprint.c (whatis_exp): Remove static declaration.
4939 Wed Jan 27 16:50:25 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4941 * hp-psymtab-read.c: Reformat using indent.
4943 Wed Jan 27 13:20:25 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4945 * hp-psymtab-read.c: Reformat comments, update copyright.
4947 Tue Jan 26 16:02:47 1999 Mark Alexander <marka@cygnus.com>
4949 * v850-tdep.c (v850_generic_reg_names, v850e_reg_names,
4950 v850_register_names, v850_processor_type_table): Declare tables
4951 and structures for handling differences in register names for
4953 (struct reg_list): Define new structure for creating tables
4954 of register bit masks in v850e instrutions.
4955 (handle_prepare, handle_pushm): New helpers for v850_scan_prologue.
4956 (v850_scan_prologue): Recognize v850e instructions: callt, prepare,
4958 (v850_target_architecture_hook): New function to set register
4959 names based on current machine.
4960 (_initialize_v850_tdep): Set up target_architecture_hook.
4961 * config/v850/tm-v850.h (v850_register_names): Declare.
4962 (REGISTER_NAME): Define to refer to v850_register_names.
4963 (SR0_REGNUM, CTBP_REGNUM): Define.
4964 (PS_REGNUM): Redefine in terms of SR0_REGNUM.
4966 Tue Jan 26 18:27:26 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4968 * Makefile.in (c-exp.tab.c): Use BISON instead of YACC, to pick
4969 the correct value from configure output.
4970 (jv-exp.tab.c): Ditto.
4971 (f-exp.tab.c): Ditto.
4972 (m2-exp.tab.c): Ditto.
4974 1999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
4976 * breakpoint.h (ep_is_exception_catchpoint): Add prototype.
4977 * frame.h (select_and_print_frame): Add prototype.
4978 * stack.c (func_command): Call select_and_print_frame with correct
4979 number of arguments. Reformat whitespace.
4981 Tue Jan 26 16:53:54 1999 Fernando Nasser <fnasser@cygnus.com>
4983 * remote.c (remote_query): fix maximum packet size to account for
4985 (putpkt): add comment to alert about extra byte need.
4987 Mon Jan 25 19:55:30 1999 Mark Alexander <marka@cygnus.com>
4989 * sh-tdep.c (sh_target_architecture_hook): Return immediately
4990 when a matching machine is found.
4992 Fri Jan 22 09:10:35 1999 Mark Alexander <marka@cygnus.com>
4994 * remote-mips.c (mips_initialize): Fix parameters to clear_breakpoint.
4995 (common_breakpoint): Restore support for instruction breakpoints
4998 Thu Jan 21 17:16:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
5000 * stack.c: Close open comment.
5001 * symtab.c (find_pc_sect_line): Ditto.
5003 Thu Jan 21 17:51:51 1999 Stan Shebs <shebs@andros.cygnus.com>
5005 * procfs.c (init_procfs_ops): New function, fills in procfs_ops,
5006 init only nonzero fields, leave to_require_attach and
5007 to_require_detach empty, not needed for /proc systems yet.
5008 (_initialize_procfs): Call init_procfs_ops.
5010 From J.T. Conklin <jtc@redbacknetworks.com>:
5011 * top.c (init_main): Fix tipo in description of the remotetimeout
5013 * breakpoint.c (bpstat_stop_status): Handle systems where
5014 DECR_PC_AFTER_BREAK != DECR_PC_AFTER_HW_BREAK.
5016 Thu Jan 21 17:25:46 1999 Mark Alexander <marka@cygnus.com>
5018 * mon960-rom.c (_initialize_mon960): Call init_mon960_cmds
5019 to fill in mon960_cmds structure properly.
5021 Wed Jan 20 17:53:22 1999 Stan Shebs <shebs@andros.cygnus.com>
5023 * remote-sds.c (sds_ops): Define only once.
5024 (init_sds_ops, sds_command, _initialize_remote_sds): Declare.
5025 (init_sds_ops): Init only non-zero fields.
5027 Wed Jan 20 15:45:15 1999 Mark Alexander <marka@cygnus.com>
5029 * h8300-tdep.c (original_register_names, h8300h_register_names,
5030 h8300_register_names): Define new variables.
5031 (set_register_names): New function to set register names based on
5033 (h8300_command, h8300h_command, h8300s_command): Call
5035 * config/h8300/tm-h8300.h (h8300_register_names): Declare.
5036 (REGISTER_NAME): Define to refer to h8300_register_names.
5038 1999-01-19 Fernando Nasser <fnasser@totem.to.cygnus.com>
5040 * sol-thread.c abug-rom.c cpu32bug-rom.c dbug-rom.c m32r-rom.c
5041 mac-nat.c mon960-rom.c op50-rom.c ppc-bdm.c remote-adapt.c
5042 remote-array.c remote-bug.c remote-e7000.c remote-eb.c remote-es.c
5043 remote-est.c remote-hms.c remote-mm.c remote-nindy.c remote-nrom.c
5044 remote-os9k.c remote-rdp.c remote-sds.c remote-sim.c remote-st.c
5045 remote-udi.c rom68k-rom.c sh3-rom.c sparcl-tdep.c sparclet-rom.c
5046 v850ice.c win32-nat.c: cosmetic changes to conform to coding
5049 1999-01-19 Jim Blandy <jimb@zwingli.cygnus.com>
5051 Use aclocal to generate GDB's aclocal.m4 script.
5052 * acinclude.m4: New file, containing the hand-written local macro
5053 definitions that used to be in aclocal.m4. Don't sinclude
5054 ../bfd/aclocal.m4 any more; running aclocal in this directory will
5055 get us the definitions we need. HOWEVER: Do sinclude
5056 ../bfd/acinclude.m4, because we need the definition of
5057 BFD_NEED_DECLARATION.
5058 * aclocal.m4: Regenerated by aclocal.
5059 * configure: Regenerated by autoconf.
5061 Tue Jan 19 10:27:23 1999 David Taylor <taylor@texas.cygnus.com>
5063 * breakpoint.c (disable_breakpoints_in_shlibs): new parameter,
5064 silent, controls whether to print message about removal of shared
5065 library breakpoints.
5066 * breakpoint.h (disable_breakpoints_in_shlibs): decl updated.
5067 * irix5-nat.c (clear_solib): call disable_breakpoints_in_shlibs.
5068 * osfsolib.c (clear_solib): ditto.
5069 * solib.c (clear_solib): ditto.
5070 * somsolib.c (som_solib_restart): update call to
5071 disable_breakpoints_in_shlibs.
5073 * target.h (child_post_attach): only declare if CHILD_POST_ATTACH
5076 Tue Jan 19 18:07:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
5078 * corelow.c (solib_add_stub): Ditto.
5079 (core_file_to_sym_file): Cast make_cleanup parameter.
5081 * solib.c (symbol_add_stub, solib_map_sections): Change argument
5082 to PTR insted of a char*. Matches catch_errors interface.
5084 Mon Jan 18 14:01:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
5086 * remote-array.c (array_open): Don't use fprintf_filtered to send
5087 data to the log file.
5089 * remote-array.c (handle_load_dll): Change argument type to PTR so
5090 that it is compatible with catch_errors.
5091 * ocd.c (ocd_start_remote): Ditto.
5092 * remote-sds.c (sds_start_remote): Ditto.
5094 * win32-nat.c (win32_child_thread_alive): Namespace proof
5096 (init_child_ops): Update.
5098 Mon Jan 18 12:03:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
5100 * remote-rdi.c (arm_rdi_open): Set gdb_hostif.hostosarg and
5101 gdb_hostif.dbgarg to NULL instead of stdout.
5102 (voiddummy, myprint, mywritec): Use gdb_stdout instead of stdout.
5104 Mon Jan 18 16:40:50 1999 Stan Shebs <shebs@andros.cygnus.com>
5106 * ser-ocd.c (ocd_open): Handle Unix case gracefully.
5108 * target.c (dummy_target): Don't initialize statically.
5109 (init_dummy_target): New function, fills in dummy_target.
5110 (initialize_targets): Use it.
5111 * hpux-thread.c (hpux_thread_ops): Don't initialize statically.
5112 (init_hpux_thread_ops): New function, fills in hpux_thread_ops.
5113 (_initialize_hpux_thread): Use it.
5114 * m3-nat.c (m3_ops): Don't initialize statically.
5115 (init_m3_ops): New function, fills in m3_ops.
5116 (_initialize_m3): Use it.
5118 1999-01-18 Fernando Nasser <fnasser@totem.to.cygnus.com>
5120 * sol-thread.c: delete compile time initialization of target_ops
5121 (_initialize_sol_thread): initialize target_ops at run time.
5122 * hpux-thread.c: added target_ops entry.
5125 Mon Jan 18 15:19:13 1999 David Taylor <taylor@texas.cygnus.com>
5127 * procfs.c (procfs_ops): delete compile time initialization.
5128 (_initialize_procfs): initialize procfs_ops at run time.
5130 Mon Jan 18 12:51:44 1999 Christopher Faylor <cgf@cygnus.com>
5132 * configure.in: Ensure that -luser32 is always linked in
5134 * configure: Regenerated.
5136 Mon Jan 18 08:38:05 1999 Mark Alexander <marka@cygnus.com>
5138 * values.c (value_virtual_fn_field): Clear the pointed-to
5139 offset when casting to the base class.
5141 Mon Jan 18 10:30:51 1999 David Taylor <taylor@texas.cygnus.com>
5143 * remote-udi.c (init_udi_ops): change non-existant udi_run_ops to
5144 udi_ops; delete NULL initializers.
5146 Mon Jan 18 12:03:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
5148 * serial.c (serial_close): gdb_fclose tages gdb_file** arg, not
5151 * f-valprint.c, target.c, gdbarch.c: Pass gdb_stderr not stderr.
5153 Mon Jan 18 10:46:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
5155 * stack.c (print_frame_info_base): Don't cast call to
5157 (print_args_stub): Change char* arg to PTR.
5158 * symmisc.c (print_symbol): Ditto.
5159 * top.c (quit_cover): Ditto.
5160 * remote.c (remote_open_1, remote_start_remote): Ditto.
5161 * infrun.c (normal_stop, hook_stop_stub, restore_selected_frame):
5164 * stack.c (backtrace_command): Cast first arg of make_cleanup to
5166 * remote.c (remote_kill): Cast putpkt arg to catch_errors_ftype.
5168 Mon Jan 18 08:47:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
5170 * defs.h (catch_errors_ftype): Define.
5171 (catch_errors): Replace char* arg with PTR arg.
5172 * top.c (catch_errors): Update
5174 * breakpoint.c (bpstat_stop_status, bpstat_stop_status,
5175 delete_breakpoint, breakpoint_re_set): Delete all casts in call to
5177 (breakpoint_cond_eval, watchpoint_check,
5178 cover_target_enable_exception_callback, breakpoint_re_set_one):
5179 Arg is PTR not char*.
5181 * breakpoint.c (cover_target_enable_exception_callback): Change
5182 type to int. Check for cast values of 0 and -1. Return a result!
5183 (insert_breakpoints): Move declaration of SAL and ARGS to where
5186 1999-01-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
5188 * remote.c (remote_query): new function - creates proper interface
5189 to the remote protocol "q" command.
5191 Fri Jan 15 17:11:48 EST 1999 Zdenek Radouch (radouch@cygnus.com)
5193 * config/fr30/tm-fr30.h: Changed ABI to match GCC change
5194 (always use pointer for structs passed by value).
5196 1999-01-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
5198 * target.h: added entry for target queries (to_query)
5201 Thu Jan 14 18:29:17 1999 David Taylor <taylor@texas.cygnus.com>
5203 * remote-mm.c (mm_wait): fix stream arg to gdb_flush.
5204 * remote-udi.c (udi_wait): fix stream arg to fwrite.
5205 * symmisc.c (maintenance_check_symtabs): fix stream argument to
5206 print_address_numeric.
5208 Wed Jan 13 19:33:16 1999 David Taylor <taylor@texas.cygnus.com>
5210 * breakpoint.c (insert_breakpoints): insert cast to eliminate
5213 Wed Jan 13 14:59:02 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
5215 * infrun.c (set/show scheduler-locking) New command. Set a
5216 mode bit that will control how GDB attempts to control thread
5217 scheduling for step, continue, etc. (resume): make use of
5218 the schedule-locking mode.
5219 * target.h (struct target_ops): new field to_has_thread_control.
5220 * sol-thread.c: initialize target_ops to_has_thread_control.
5225 * hpux-thread.c: ditto.
5226 * thread.c: cull duplicate prototypes. Move prototypes to top.
5227 * serial.c: indentation cleanup.
5228 * breakpoint.c: add casts to eliminate compiler warnings.
5230 Tue Jan 12 17:00:00 1999 Edith Epstein <eepstein@sophia.cygnus.com>
5232 * inftarg.c (child_create_inferior): fixed HPUXHPPA specific
5233 call to fork_inferior. The shell param is now NULL.
5235 1999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
5237 * monitor.c (init_base_monitor_ops): Whitespace cleanup.
5238 (_initialize_remote_monitors): Same.
5240 1999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
5242 * monitor.c (init_monitor_ops): Initialize the monitor_ops
5243 structure if it hasn't already been done.
5245 Tue Jan 12 14:50:10 1999 Stan Shebs <shebs@andros.cygnus.com>
5247 * inftarg.c (child_ops): Don't initialize statically.
5248 (init_child_ops): New function, fills in child_ops.
5249 (_initialize_inftarg): Use it.
5250 (child_post_attach): Declare extern.
5251 (child_wait): Fix ambiguous parens.
5252 (child_attach_to_process): Remove unused local wstatus.
5253 (child_insert_fork_catchpoint, child_remove_fork_catchpoint,
5254 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
5255 child_has_forked, child_insert_exec_catchpoint,
5256 child_remove_exec_catchpoint): Return a value.
5258 Mon Jan 11 16:43:44 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
5260 * remote.c (remote_wait): Add inferior_pid to thread list only
5261 if it is not already there.
5263 1999-01-11 Jason Molenda (jsm@bugshack.cygnus.com)
5265 * scm-tags.h: Update FSF's address on copyright notice.
5266 * ser-e7kpc.c: Same.
5269 Mon Jan 11 13:45:57 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
5271 * dwarf2read.c (dump_die): Change stderr to gdb_stderr.
5272 * expprint.c (print_subexp): fprintf => fprintf_unfiltered.
5273 * jv-typeprint.c (java_type_print_base): fputs => fputs_filtered.
5274 * stack.c (struct function_bounds): Remove superfluous `typedef'.
5275 * symfile.c (list_overlays_command): stdout => gdb_stdout.
5276 * symmisc.c (maintenance_check_symtabs): stdout => gdb_stdout.
5277 * utils.c (print_spaces): Make more efficient.
5279 Mon Jan 11 13:55:51 1999 David Taylor <taylor@texas.cygnus.com>
5281 * utils (print_spaces): fix arg to strcat; fix formatting.
5283 Fri Jan 8 11:57:24 1999 Stan Shebs <shebs@andros.cygnus.com>
5285 * exec.c (exec_ops): Don't initialize statically.
5286 (init_exec_ops): New function, fills in exec_ops.
5287 (_initialize_exec): Use it.
5289 Thu Jan 7 17:50:15 EST 1999 Zdenek Radouch (radouch@cygnus.com)
5293 * config/fr30/tm-fr30.h
5295 Wed Jan 6 12:28:35 1999 David Taylor <taylor@texas.cygnus.com>
5297 * configure.in: Add an --enable-tui argument. Construct
5298 tui/Makefile from tui/Makefile.in. Use AM_PROG_CC_STDC. If we
5299 have the GUI, then we need this to process libgui.h.
5300 (ENABLE_CFLAGS): define and export BUILD_TUI.
5301 (AC_CHECK_HEADERS): Add check for term.h.
5303 * configure.host (hppa-*-hpux10.20, hppa-*-hpux11.0*): New configs.
5305 * config.in, configure : regenerated.
5307 * Makefile.in: Allow the TUI code to be conditionally enabled.
5308 (TUI_LIBRARY): New variable, value are set by the configuration
5309 script. Set to the empty string when the TUI isn't enabled.
5310 (gdb$(GDBEXT)): Use those, instead of referring to all-tui and
5311 tui/libtui.a directly.
5312 (BUILD_TUI): build the tui -- only when configured with
5314 (YLWRAP): use ylwrap to avoid problems on systems w/o bison.
5315 (gdb$(EXEEXT)): make it dependent on BUILD_TUI.
5316 (all-tui): remove dependency from phony target.
5317 (c-exp.tab.c): use ylwrap instead of bison.
5318 (jv-exp.tab.c): ditto.
5319 (f-exp.tab.c): ditto.
5320 (m2-exp.tab.c): ditto.
5321 (ALLDEPFILES): add somread.c, hp-psymtab-read.c, hp-symtab-read.c.
5322 (SFILES): remove the above files
5323 (COMMON_OBS): remove somread.o
5324 (SFILES): Add the tui files to this, so they get included in etags
5326 (gdb$(EXEEXT)): Add all-tui to the list of dependencies, and add
5327 tui/libtui.a to the link list.
5328 (all-tui): New rule, which does a recursive make in the tui
5330 (tui/libtui.a): When recursing, pass down ${FLAGS_TO_PASS}. And
5331 don't echo the make command. This is closer to what the other
5333 (HFILES_NO_SRCDIR): add hpread.h
5334 (COMMON_OBS): add hp-psymtab-read.o, hp-symtab-read.o
5335 (SFILES): add hp-psymtab-read.c, hp-symtab-read.c add rules for
5336 the new files. Remove hpread.c, hpread.o
5337 (gdb$(EXEEXT)): Depend on the actual tui library, not on a
5338 fictitious target. Since the fictitious target never existed,
5339 make would always relink.
5340 (tui/libtui.a): Always recurse to make sure the library is up to
5343 Wed Jan 6 12:05:12 1999 Stan Shebs <shebs@andros.cygnus.com>
5345 * remote.c: Pacify --enable-build-warnings, reformat code
5346 to conform to standards, fix spelling errors.
5347 (ishex, stubhex, record_currthread, etc): Declare.
5348 (ishex, stubhex): Declare char arg as int.
5349 (pack_string): Comment out, never used but possibly useful.
5350 (threadref_to_int, remote_get_threadinfo, etc): Make static.
5352 Wed Jan 6 11:43:32 1999 David Taylor <taylor@texas.cygnus.com>
5354 The following changes were made by Elena Zannoni
5355 <ezannoni@cygnus.com> and Edith Epstein <eepstein@cygnus.com> as
5356 part of a project to merge in changes made by HP.
5358 * c-exp.y: use external flag hp_som_som_object_present to decide
5359 whether code was compiled by HP's compilers. Add two new C++
5360 tokens for true and false.
5361 (yylex): check for template name is done differently for the
5362 HP/aCC compiler case. Change some of the template processing code
5363 for handling HP aCC templates. Handle true and false tokens.
5365 Tue Jan 5 11:13:36 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
5367 * remote.c (record_curthread): Must not modify inferior_pid when
5368 called from wait_for_inferior. Instead, if a new thread-id is
5369 detected, call add_thread.
5370 (MAGIC_NULL_PID): new macro, use instead of the magic number
5372 (remote_find_new_threads): if inferior_pid is unknown, get and use
5373 the current thread id.
5374 (remote_start_remote): on connecting, attempt to get the current
5375 thread id for inferior_pid.
5376 (remote_resume): If pid == -1, then resume any-thread (not the
5377 current thread specifically). Also some cosmetic fixups.
5379 * thread.c (info_threads_command): don't initialize current_pid
5380 until after call to FIND_NEW_THREADS (which may change inferior_pid).
5381 Also some cosmetic fixups.
5382 * infrun.c: cosmetic fixups and casts to avoid warnings.
5383 * infcmd.c: cosmetic fixups, mainly long lines.
5385 Tue Jan 5 11:55:57 1999 David Taylor <taylor@texas.cygnus.com>
5387 * target.c (noprocess): terminate sentence with a period.
5388 * breakpoint.c (catch_command_1): ditto.
5390 * c-valprint.c (c_value_print): remove hack^2 from HP; it causes
5391 testsuite losses with no real gain.
5393 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): restore, but only
5394 if tm-*.h hasn't overridden default value.
5396 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
5398 * configure.in: Fix whitespace indentation for --help.
5399 * configure: Regenerated.
5401 1999-01-04 Manuel Bouyer <bouyer@antioche.lip6.fr>
5403 * main.c: Add --write command line option, document -w.
5404 * gdb.1: Document --write.
5406 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
5408 * configure.in: Require autoconf 2.12.1 or higher.
5409 * doc/configure.in: Ditto.
5410 * nlm/configure.in: Ditto.
5411 * rdi-share/configure.in: Ditto.
5412 * testsuite/configure.in: Ditto.
5413 * doc/Makefile.in: Don't hardcode $(SHELL).
5414 * nlm/Makefile.in: Ditto.
5415 * rdi-share/Makefile.in: Ditto.
5416 * testsuite/Makefile.in: Ditto.
5418 Mon Jan 4 12:53:03 1999 Stan Shebs <shebs@andros.cygnus.com>
5420 * remote-vx.c (init_vx_ops, init_vx_run_ops): Remove unneeded
5421 inits of new fields, including ref to bogus field.
5422 (vx_ops, vx_run_ops): Make static.
5424 Mon Jan 4 15:05:29 1999 David Taylor <taylor@texas.cygnus.com>
5426 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): delete,
5427 already defined in tm.h.
5429 * inftarg.c: change <sys/unistd.h> to <unistd.h> and
5430 conditionalize its inclusion.
5431 * infttrace.c: ditto.
5433 For older changes see ChangeLog-98
5439 version-control: never