Only support interworking and pic for ELF or COFF targets
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
104c1213
JM
11999-08-30 Stan Shebs <shebs@andros.cygnus.com>
2
3 * infrun.c (prepare_to_wait): New function, broken out from the
4 wfi_continue label in handle_inferior_event.
5 (handle_inferior_event): Change more gotos into function calls.
6
71999-08-30 Michael Snyder <msnyder@cleaver.cygnus.com>
8
9 * tracepoint.c: -Wall warning cleanup.
10 (parse_and_eval_memrange): remove (unused).
11 (output_command, args_info, locals_info, registers_info): add decls.
12 (getpkt, putpkt, remote_console_output): add decls.
13 (isalnum, isspace): cast arg to avoid warning.
14 (printf, fprintf, sprintf): use [fs]printf_vma for printing addrs.
15
16Mon Aug 30 21:47:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
17
18 * d10v-tdep.c: #include "language.h".
19
20Mon Aug 30 20:38:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
21
22 * configure.in (AC_CHECK_HEADERS): Check for <time.h>.
23 * configure, acconfig.in: Re-generate.
24
25 * remote-rdp.c: #include <time.h>
26
27 * config/arm/tm-arm.h (arm_float_info): Add declaration.
28
29 * arm-tdep.c (convert_from_extended, convert_to_extended): Change
30 double ptr arg to void ptr arg.
31
32 * config/arm/tm-arm.h (arm_frameless_function_invocation): Add
33 declaration.
34 (arm_frame_find_saved_regs): Rename frame_find_saved_regs.
35 (convert_from_extended, convert_to_extended): Add declaration.
36
37Mon Aug 30 19:05:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
38
39 * configure.in (WERR_CFLAGS): Separate the -Werror flag.
40 * configure: Re-generate.
41
42 * Makefile.in (INTERNAL_CFLAGS): Re-define using
43 INTERNAL_WARN_CFLAGS.
44 (INTERNAL_WARN_CFLAGS): Define. Leave off WERR_CFLAGS.
45 (tracepoint.o): Add explicit rule.
46 (WERR_CFLAGS): Add definition.
47
48Mon Aug 30 17:52:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
49
50 * utils.c: #include "event-loop.h" for declaration of
51 async_request_quit.
52 * Makefile.in (utils.o): Add dependency on event-loop.h.
53
54 * event-top.c (mark_async_signal_handler_wrapper,
55 async_request_quit): Move declaration from here.
56 * event-loop.h: To here.
57
58 * defs.h: Add declaration of exec.c:exec_set_section_offsets.
59
60 * event-top.c: #include "gdbcmd.h" which includes "command.h" and
61 hence expose declaration of function dont_repeat.
62
63 * top.c (ISATTY), tracepoint.c (ISATTY), utils.c (ISATTY),
64 event-top.c (ISATTY): Move definitions from here.
65 * defs.h (ISATTY): To here. #include <unistd.h>.
66
67 * sol-thread.c, solib.c, source.c, sparcl-tdep.c, tracepoint.c,
68 utils.c, win32-nat.c, wince.c, top.c, symfile.c, ser-unix.c,
69 ser-tcp.c, procfs.c, maint.c, infttrace.c, hppa-tdep.c,
70 ser-pipe.c, remote-rdp.c, main.c, inftarg.c, inflow.c,
71 hpux-thread.c, hp-psymtab-read.c, go32-nat.c, fork-child.c,
72 corelow.c, command.c: Do not #include <unistd.h>, moved to defs.h.
73
74Mon Aug 30 15:14:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
75
76 * defs.h (struct tui_stream, enum streamtype): Move from here.
77 * utils.c: To here.
78
79 * main.c (tui_file_fputs): Move from here.
80 * utils.c: To here.
81
82Sun Aug 29 10:03:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
83
84 * gdb-events.h, gdb-events.c, gdb-events.sh: New files.
85
861999-08-27 Michael Snyder <msnyder@cleaver.cygnus.com>
87
88 * solib.c (open_symbol_file_object): new function.
89 Called when attaching to a new process, if there is no loaded
90 symbol file. Attempts to locate the executable file for the
91 attached process and load symbols from it.
92 (solib_add): Call open_symbol_file_object if attaching to a
93 new process and no open symbol file.
94
951999-08-27 Jason Molenda (jsm@bugshack.cygnus.com)
96
97 * config/i386/tm-sun386.h (GDB_TARGET_IS_SUN386): Definition
98 removed--no longer checked anywhere in gdb.
99
1001999-08-27 Stan Shebs <shebs@andros.cygnus.com>
101
102 * infrun.c (stop_stepping): New function, broken out from
103 stop_stepping label in handle_inferior_event.
104 (handle_inferior_event): Change gotos into function calls.
105
106Fri Aug 27 20:13:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
107
108 * defs.h (LONGEST): Move definition to earlier in file - to just
109 after BFD.
110 (paddr_u, paddr_d): Declare.
111 * utils.c (decimal2str): New function.
112 (paddr_u, paddr_d): Define.
113
114 * remote.c (remote_cisco_section_offsets,
115 compare_sections_command): Fix XprintfX arguments. Use paddr...
116 (putpkt_binary): Fix XprintfX arguments.
117
118Tue Aug 24 21:30:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
119
120 * arm-tdep.c (arm_init_extra_frame_info): Add braces. Recommended
121 by gcc -Wparentheses.
122
1231999-08-26 Stan Shebs <shebs@andros.cygnus.com>
124
125 * infrun.c (check_sigtramp2): New function, broken out from
126 check_sigtramp2 label in handle_inferior_event.
127 (handle_inferior_event): Change gotos into function calls.
128
129 Declare Tahoe configuration obsolete.
130 * configure.host, configure.tgt: Comment out Tahoe configs.
131 * Makefile.in: Comment out Tahoe-related action.
132 * tahoe-tdep.c, config/tahoe/*: Comment out.
133 * NEWS: Mention obsolete status.
134
1351999-08-26 J.T. Conklin <jtc@redback.com>
136
137 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sh-stub.c,
138 sparc-stub, sparcl-stub.c sparclet-stub.c (getpacket): If '$',
139 the packet start character is received in the 'middle' of a
140 packet, assume that packet end character has been lost and
141 start a new packet.
142
143 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
144 sparcl-stub.c sparclet-stub.c (getpacket): Changed to return ptr
145 to first character of input buffer. Removed & 0x7f masks.
146 (handle_exception): Don't access remcomInBuffer directly.
147
1481999-08-25 Stan Shebs <shebs@andros.cygnus.com>
149
150 * breakpoint.c (disable_breakpoints_in_shlibs): Only disable
151 enabled breakpoints.
152
153Tue Aug 24 14:59:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
154
155 * tracepoint.c, remote.c, pa64solib.h, value.h, somsolib.h,
156 solib.h, scm-lang.h, language.h, inferior.h, defs.h, coff-solib.h,
157 ch-lang.h, breakpoint.h, annotate.h: Remove #if __STDC__ wrapping
158 struct declarations.
159
160 * config/sparc/nm-sun4sol2.h, config/mn10300/tm-mn10300.h,
161 config/mn10200/tm-mn10200.h, config/i386/tm-i386.h,
162 config/i386/tm-i386v.h, config/i386/nm-i386sol2.h,
163 config/pa/nm-hppah.h, config/rs6000/nm-rs6000.h,
164 config/sparc/tm-sp64.h, config/v850/tm-v850.h,
165 config/tic80/tm-tic80.h, config/sparc/tm-sparc.h,
166 config/sh/tm-sh.h, config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
167 config/mips/tm-mips.h, config/m68k/tm-m68k.h,
168 config/m32r/tm-m32r.h, config/i960/tm-mon960.h,
169 config/fr30/tm-fr30.h, config/h8300/tm-h8300.h,
170 config/arm/tm-arm.h, config/alpha/tm-alpha.h,
171 config/a29k/tm-a29k.h: Ditto.
172
173Wed Aug 25 10:45:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
174
175 * Makefile.in (gdb$(EXEEXT)): Add dependency on TDEPLIBS.
176
177 * config/arm/arm.mt (TDEPLIBS): Define. Move libangsd.a to here.
178 (TDEPFILES): From here.
179
1801999-08-24 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
181
182 * top.c (init_main): Add new set/show command exec-done-display,
183 default value is off.
184 * event-loop.h: Export exec_done_display_p.
185 * event-top.c: New variable exec_done_display_p.
186 * infrun.c (complete_execution): Print completion message if
187 corresponding flag is set.
188
189 * top.c (DEFAULT_PROMPT): Add space after "(gdb)" at end of prompt.
190
191 From: J.T. Conklin <jtc@redback.com>
192 * top.c (DEFAULT_PROMPT): Set to "(gdb)" if not already defined.
193 (init_main): Always use DEFAULT_PROMPT.
194
195Tue Aug 24 03:23:31 1999 Jeffrey A Law (law@cygnus.com)
196
197 * hppa-tdep.c: Remove useless "purecov: deadcode" comments.
198 (hppa_use_struct_convention): Update for PA64.
199 (hppa_frame_saved_pc): Properly extract the saved PC in a call
200 dummy frame.
201 (in_solib_call_trampoline): Return nonzero if we are in a function
202 called ".stub".
203 (prologue_inst_adjust_sp): Handle std,ma.
204 (skip_prologue_hard_way): Handle more PA2.0/PA64 insns.
205 (hppa_frame_find_saved_regs): Similarly. Handle indirect save of
206 %r3 into the stack.
207
208 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Define.
209 (CALL_DUMMY_BREAKPOINT_OFFSET): Define.
210
211Tue Aug 24 14:59:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
212
213 * Makefile.in (gdb$(EXEEXT)): Add dependency on main.o that was
214 lost when libgdb.a was added.
215
216Tue Aug 24 14:26:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
217
218 * gdbarch.c, gdbarch.h: Convert to pure ISO-C.
219
220 * gdbarch.sh: New file.
221 * gdbarch.c, gdbarch.h: Add note describing gdbarch.sh
222
223Mon Aug 23 19:36:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
224
225 * Makefile.in (libgdb.a): New target.
226 (gdb$(EXEEXT)): Add dependency on libgdb.a.
227 (libgdb-files, LIBGDB_OBS, libgdb, LIBGDBDEPS, LIBGDBFILES): Delete.
228
53a5351d
JM
229Mon Aug 23 10:16:32 1999 Jeffrey A Law (law@cygnus.com)
230
104c1213
JM
231 * infttrate.c (child_pid_to_exec_file): Find the correct base
232 of the stack for PA64.
233
53a5351d
JM
234 * pa64solib.c: Fix some minor whitespace problems.
235 (bfd_lookup_symbol): New function.
236 (pa64_solib_create_inferior_hook): Find the address __dld_break
237 in the dynamic linker. Try to set a shlib event breakpoint in
238 that function.
239 (add_to_solist): Do not add the same shared library to the shlib
240 list more than once.
241
242Sun Aug 22 14:49:40 1999 Andrew Cagney <cagney@b1.cygnus.com>
243
244 * value.h (enum lval_type): Move declaration from here.
245 * defs.h (enum lval_type): To here.
246 * frame.h, gdbarch.h: Delete incomplete declaration of ``enum
247 lval_type''.
248
2491999-08-20 Michael Snyder <msnyder@cleaver.cygnus.com>
250
251 * breakpoint.c (can_use_hardware_watchpoint): reject expressions
252 that refer to registers or register variables.
253
254Fri Aug 20 10:53:38 1999 Jeffrey A Law (law@cygnus.com)
255
256 * hppa-tdep.c (hppa_fix_call_dummy): Provide PA2.0W aware code.
257
258 * pa64solib.c pa64solib.h: New files.
259
260 * config/pa/hppa64.mt: Delete commented out code that is and
261 never will be appropriate for this target.
262 * config/pa/hpux11w.mt (TDEPFILES): Remove SOM references. Also
263 remove pa64solib.o.
264 * config/pa/hpux11w.mh (NATDEPFILES): Remove SOM references.
265
266 * configure.host; Use "hpux11w" and "hpux11" instead of
267 "hpux1100w" and "hpux1100" respectively
268 * config/pa/hpux11w.mh: Renamed from hpux1100w.mh.
269 * config/pa/hpux11w.mt, config/pa/hpux11.mh: Likewise.
270 * config/pa/hpux11.mt: Likewise.
271
2721999-08-19 Michael Snyder <msnyder@cleaver.cygnus.com>
273
274 * breakpoint.h (target_hw_bp_type): new enum.
275 * breakpoint.c (insert_breakpoints): use enum instead of consts.
276 (remove_breakpoint): use enum instead of consts.
104c1213 277 (throughout): use "warning" instead of "fprintf(stderr, ..."
53a5351d
JM
278 [Also clean up a bunch of excessively long lines.]
279
2801999-08-19 J.T. Conklin <jtc@redback.com>
281
282 * i386-stub.c (waitabit): Removed.
283 (breakpoint): Update.
284
285 * i386-stub.c, m32r-stub.c, sparc-stub.c, sparcl-stub.c,
286 sparclet-stub.c (set_debug_traps): Don't send gratuitous ACK.
287
288 * m68k-stub.c (putpacket): Restore code so that packets are sent
289 until an ACK is received.
290
2911999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
292
293 * breakpoint.c (bpstat_stop_status): Accept triggered addresses
294 anywhere inside the region occupied by a watched variable as a
295 sign that the watchpoint fired. Don't stop if some watchpoint
296 was triggered, but its address doesn't match the address of this
297 watchpoint.
298 (TARGET_REGION_OK_FOR_HW_WATCHPOINT): New macro.
299 Default definition is to call TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT.
300 (can_use_hardware_watchpoint): Call TARGET_REGION_OK_FOR_HW_WATCHPOINT;
301 if it returns zero, return zero immediately.
302 (insert_breakpoints): Try to insert watchpoints for all the values
303 on the value chain, even if some of them fail to insert. Remove
304 the breakpoint if parts of its value chain couldn't be inserted.
305
3061999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
307
308 * go32-nat.c (go32_stopped_by_watchpoint): Remove unused code.
309
3101999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
311
312 * go32-nat.c (tcgetpgrp, tcsetpgrp): New functions.
313
3141999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
315
316 * go32-nat.c (go32_wait): If we are in a single-step mode, and the
317 next instruction is INT nn or INTO, use a temporary breakpoint to
318 simulate single-step mode, and reset the trace flag.
319
3201999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
321
322 * go32-nat.c (wp_op): New typedef.
323 (SHOW_DR): Print the length of watched region as well.
324 (go32_insert_aligned_watchpoint): Remove unused argument PID. All
325 callers and the prototype changed.
326 (go32_handle_nonaligned_watchpoint): Renamed from
327 go32_insert_nonaligned_watchpoint. Now handles all operations on
328 non-aligned watchpoints: insertion, deletion, and counting. If
329 called with wp_count as the first argument, return the count of
330 debug registers needed to watch the region. Don't break out of
331 the loop before all the addresses in the region are processed.
332 (go32_remove_watchpoint): Call go32_remove_aligned_watchpoint to
333 do the actual work.
334 (go32_remove_aligned_watchpoint): New function, modeled after
335 go32_insert_aligned_watchpoint. Removes watchpoints that watch
336 regions of arbitrary length by calling
337 go32_handle_nonaligned_watchpoint as needed.
338 (go32_region_ok_for_watchpoint): New function, called from
339 can_use_hardware_watchpoint via the new macro
340 TARGET_REGION_OK_FOR_HW_WATCHPOINT.
341
342 * config/i386/nm-go32.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
343 Define to call go32_region_ok_for_watchpoint.
344 (DECR_PC_AFTER_HW_BREAK): Define back to zero (previous redefinition
345 to 1 was due to a bug in go32-nat.c).
346
3471999-08-19 Eli Zaretskii <eliz@is.elta.co.il>
348
349 * go32-nat.c (cleanup_dregs): New function.
350 (go32_mourn_inferior): Call it.
351 (IS_REG_FREE, LOCAL_ENABLE_REG, GLOBAL_ENABLE_REG, DISABLE_REG,
352 SET_BREAK, SET_WATCH, IS_WATCH, WATCH_HIT): Protect arguments with
353 parentheses.
354 (SET_BREAK): Increment the debug register's reference count.
355 (DR_DEF): New macro, returns the access and length bits of the
356 breakpoint.
357 (SHOW_DR): Print the reference count of each register. Disable or
358 enable print-out depending on an environment variable GDB_SHOW_DR.
359 (go32_insert_aligned_watchpoint): Look for an occupied debug
360 register with the same address and access/length bits, and reuse
361 it by incrementing reference the count, before occupying another
362 register. Return zero upon success.
363 (go32_insert_nonaligned_watchpoint): Pass the read/write bits to
364 go32_remove_watchpoint.
365 (go32_remove_watchpoint): Accept an additional parameter: the
366 read/write bits of the watchpoint to remove, and only remove a
367 watchpoint if it's occupied and its address and read/write bits
368 match. Only disable the register if its reference count is zero;
369 otherwise just decrease the reference count.
370 (go32_remove_hw_breakpoint): Only decrease reference count and
371 disable the debug register if it is occupied and its access bits
372 match those of an instruction breakpoint.
373 (go32_insert_hw_breakpoint): Before occupying another debug
374 register, look for an already occupied register that defines an
375 instruction breakpoint with the same address. If found, increment
376 its reference count. Call SHOW_DR even if failed to insert a
377 breakpoint.
378
379 * config/i386/nm-go32.h (target_remove_watchpoint): Accept the
380 TYPE argument as well.
381
382Wed Aug 18 17:47:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
383
384 * mips-tdep.c: Add more comments.
385
3861999-08-17 Stan Shebs <shebs@andros.cygnus.com>
387
388 * blockframe.c: Don't use PARAMS anymore, remove obsolete comment
389 about frameless functions.
390
3911999-08-16 Michael Snyder <msnyder@cleaver.cygnus.com>
392
393 * thread.c (delete_thread): delete any step_resume breakpoint
394 held by the thread. (prune_threads): call delete_thread.
395 * breakpoint.c (breakpoint_init_inferior): if startup, then
396 delete any remaining step_resume breakpoints.
397 * infrun.c (handle_inferior_event): add cautionary comment.
398
3991999-08-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
400
401 * remote.c (remote_async_mourn): New function. Async version of
402 remote_mourn().
403
4041999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
405
406 * terminal.h [__GO32__]: Remove conditional; DJGPP now supports
407 termios.
408
4091999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
410
411 * command.c (CANT_FORK) [__MSDOS__]: Define.
412 (shell_escape) [CANT_FORK]: If ARG is NULL, pass an empty string
413 to `system'.
414 [__DJGPP__]: Return to the original directory after the shell
415 exits.
416
4171999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
418
419 * config/i386/xm-go32.h (ROOTED_P): Don't reference X[1] if X[0]
420 is a null character.
421
422 * config/i386/nm-go32.h (DECR_PC_AFTER_HW_BREAK): Define to 1.
423
4241999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
425
426 * go32-nat.c (redir_cmdline_parse, redir_cmdline_delete,
427 redir_to_child, redir_to_debugger, redir_debug_init)
428 [__DJGPP_MINOR__ < 3]: Dummy stubs for redirecting debuggee's
429 standard handles.
430 (print_387_status): Print "last FP instruction", not "last
431 exception". Restore the upper 5 bits of the opcode that aren't
432 stored in the FPU state. Print the FPU stack in its physical
433 order, not relative to ST(0). Print "special", not "trap" for
434 unnormals and infinities. Print all 10 bytes of each FP register,
435 and print them with 19 significant digits.
436 (regno_mapping): Make the mapping consistent with tm-go32.h.
437 (sig_map): Add mappings for SIGQUIT, SIGFPE, SIGALRM. Map NMI to
438 SIGBUS.
439 (excep_map): New variable, maps GDB signals to DJGPP exceptions.
440 (go32_attach): Signal an error: we cannot attach to other
441 processes.
442 (go32_resume): Record the signal with which the inferior should be
443 resumed, mapped to the DJGPP exception number.
444 (go32_wait): Pass the signal recorded in go32_resume to the
445 debuggee. Save and restore debugger's and debuggee's current
446 working directory.
447 [__DJGPP_MINOR__ < 3]: Save and restore inferior's FPU state.
448 (store_register): FPU regsiters have numbers less than 31.
449 (go32_kill_inferior): Delete the parsed command-line storage.
450 (go32_create_inferior): Initialize the parsed command-line
451 storage. Parse the command line and create the redirections for
452 inferior's standard handles.
453 [__DJGPP_MINOR__ < 3]: Init the inferior's FPU state.
454 (ignore2): Function deleted.
455 (device_mode): New function, switches a character device between
456 raw and cooked mode.
457 (go32_terminal_init): Invalidate the raw/cooked mode information.
458 (go32_terminal_info): Print whether the inferior's terminal is in
459 raw or cooked mode.
460 [__DJGPP_MINOR__ > 2]: Say if standard handles are redirected or
461 closed by the inferior.
462 (go32_terminal_inferior): Switch standard handles to the
463 inferior's files/devices. Put the inferior's input device to
464 raw/cooked mode, exactly like we found it last time.
465 (go32_terminal_ours): Restore debugger's standard handles and put
466 the terminal into cooked mode. Save the mode of inferior's input
467 device.
468 (init_go32_ops): Assign go32_ops.to_attach,
469 go32_ops.to_terminal_info, go32_ops.to_terminal_ours_for_output.
470 Initialize inferior's cwd and the command-line storage.
471
472Mon Aug 16 14:29:30 1999 Jeffrey A Law (law@cygnus.com)
473
474 * config/pa/tm-hppa.h (ARGS_GROW_DOWNWARD): Define.
475 * config/pa/tm-hppa64.h (ARGS_GROW_DOWNWARD): Undefine.
476 * hppa-tdep.c (hppa_push_arguments): Handle arguments growing in
477 both directions depending ARGS_GROW_DOWNWARD.
478 (hppa_find_saved_regs): Update for 64bit wide registers & pointers
479 and PA64 ABI.
480
481 * hppa-tdep.c (hppa_pop_frame): Various fixes for 64bit wide
482 registers and pointers.
483 (hppa_fix_call_dummy, skip_trampoline_code): Likewise.
484 (restore_pc_queue): Update tests for width of memory loads.
485 (hppa_push_arguments): Delete version that was #if 0'd out.
486
487 * hppa-tdep.c (push_dummy_frame): Handle the new 64it ABI.
488 (find_dummy_frame_regs): Corresponding changes.
489
490 * hppa-tdep.c (read_unwind_info): Initialize obj_private->dp.
491 (internalize_unwinds): Improve test for when to use segment
492 relative code for unwinder bounds.
493 (rp_saved): Fix offset of saved return pointer for the 64bit ABI.
494 (hppa_frame_saved_pc): Various updates to handle 64bit registers
495 and pointers.
496 (frame_chain, restore_pc_queue): Likewise.
497
498 * hppa-tdep.c (rp_saved): RP is saved at frame-16 when
499 pointers are 64bits wide.
500
501 * hppa-tdep.c (record_text_segment_lowaddr): New function.
502 (internalize_unwinds): Use it if addressess are 8 bytes wide.
503
504 * symfile.c (syms_from_objfile): No longer warn if the lowest
505 section does not have SEC_CODE set.
506
507 * Makefile.in (pa64solib.o): Add dependencies.
508
509 * hppah-nat.c (store_inferior_registers): Do not try to write a
510 nonzero value to the high part of IPSW. Fix typo in unable to store
511 warning.
512
513 * config/pa/tm-hppa.h (opd_data structure): Delete. Not actually
514 needed.
515 (struct obj_private_struct): Add new entry for the objfile's DP
516 value.
517 * config/pa/tm-hppa64.h (CALL_DUMMY): Add a nop to make it an even
518 number of instructions. Pack the dummy into word sized hunks.
519 (CALL_DUMMY_LENGTH): Update appropriately.
520 (PC_IN_CALL_DUMMY, CALL_DUMMY_LOCATION_AFTER_TEXT_END): Delete.
521
7be570e7
JM
522Mon Aug 16 19:08:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
523
524 * configure.in: Try -lsocket when looking for socketpair.
525 * configure, config.h: Re-generate.
526
5271999-08-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
528
529 From Christopher Faylor <cgf@cygnus.com>:
530
531 * event-loop.c (gdb_wait_for_event): Before going to wait for
532 another event with select or poll, flush the error and the output
533 streams.
534
535 * event-top.c (gdb_readline2): Do not buffer the input, because
536 doing so can interfere with select/poll in bad ways.
537
538Fri Aug 13 17:36:56 1999 Eli Zaretskii <eliz@is.elta.co.il>
539
540 * maint.c (maintenance_dump_me) [__DJGPP__]: Simulate a core dump
541 with SIGABRT.
542 * utils.c (quit) [__MSDOS__]: Don't mention SIGINT, since it's not
543 gonna happen.
544 (notice_quit): No need to define this function for the DJGPP port.
545
5461999-08-13 James Ingham <jingham@leda.cygnus.com>
547
548 * arm-tdep.c (arm_frameless_function_invocation): SKIP_PROLOGUE
549 macro no longer modifies its argument. Update uses to accord.
550
551 * config/arm/arm.mt (TDEPFILES): Add the remote-rdi.o to the
552 TDEPFILES.
553 * configure.tgt: Add rdi-share to configdir for the Arm targets.
554
555Fri Aug 13 11:16:32 1999 Jeffrey A Law (law@cygnus.com)
556
557 * hppah-nat.c (store_inferior_registers): Revamp to be PA2.0W
558 aware.
559
560 * infttrace.c (ttrace_write_reg_64): New function.
561
562 * hp-symtab-read.c (is_in_import_list): Delete extern declaration.
563 * somread.c (is_in_import_list): Delete function.
564 * objfiles.c (is_in_import_list): New function.
565 * objfiles.h (is_in_import_list): Declare.
566
567 * config/pa/tm-hppa64.h (GDB_TARGET_IS_HPPA20W): Define before
568 including tm-hppah.h.
569 (PC_IN_CALL_DUMMY): Define.
570 (HPUX_1100): Similarly.
571 * config/pa/tm-hppa.h (somsolib.h, pa64solib.h): Conditionalize
572 includes on GDB_TARGET_IS_HPPA20W.
573
574 * configure.host: Distinguish between wide and narrow modes
575 for hpux11.
576 * config/pa/hpux1100w.mh, config/pa/hpux1100w.mt: New files.
577
578 * config/pa/tm-hppa64.h (STACK_ALIGN): Redefine.
579 (REG_PARM_STACK_SPACE): Likewise.
580
581 * config/pa/tm-hppa.h (CLEAN_UP_REGISTER_VALUE): Handle 64bit
582 PA target correctly.
583 (REG_PARM_STACK_SPACE): Define.
584 (struct unwind_table_entry): region_start and region_end are
585 CORE_ADDRs.
586 (typedef opd_data): New.
587 (obj_private_data_t): Include pointer to opd_data structure.
588
5891999-08-13 Keith Seitz <keiths@cygnus.com>
590
591 * stabsread.c (stabsread_clear_cache): New funciton which clears
592 an optimization cache of the reader.
593
594 * coffread.c (coff_symfile_finish): Give stabs reader a chance to
595 clean up.
596
597 * win32-nat.c (handle_load_dll): Don't suppress re-reading symbols
598 from a DLL if an objfile for it already exists. (Not that this should
599 happen anymore anyway...)
600
6011999-08-13 Keith Seitz <keiths@cygnus.com>
602
603 * config/mcore/tm-mcore.h (SAVE_DUMMY_FRAME_TOS): Define for MCore,
604 which also requires that the stack pointer be saved for call
605 dummies BEFORE arguments get pushed onto it.
606
6071999-08-12 Stan Shebs <shebs@andros.cygnus.com>
608
609 From Eli Zaretskii <eliz@is.elta.co.il>:
610 * source.c (mod_path) [_WIN32 || __DJGPP__]: Don't remove trailing
611 slash from "d:/". Don't overstep the beginning of name.
612 [_WIN32 || __MSDOS__]: Convert "d:" to "d:.", otherwise appending
613 a slash changes its meaning.
614 (openp): Use SLASH_P, not equality with SLASH_CHAR.
615 (print_source_lines_base) [CRLF_SOURCE_FILES]: Skip \r only before
616 a \n.
617 (forward_search_command) [CRLF_SOURCE_FILES]: Remove \r at the end
618 of all lines.
619 (reverse_search_command) [CRLF_SOURCE_FILES]: Likewise.
620
621 * gnu-regex.c (CHAR_CLASS_MAX_LENGTH): Don't use wide characters
622 unless HAVE_BTOWC is defined.
623
624Fri Aug 13 10:20:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
625
626 From J.T. Conklin <jtc@redback.com>:
627 * gdbinit.in: Change the template .gdbinit to match the recent
628 fatal error handling change.
629
6301999-08-11 Keith Seitz <keiths@cygnus.com>
631
632 * maint.c (maintenance_internal_error): Fix typo in prototype.
633
634Wed Aug 11 15:38:05 1999 Andrew Cagney <cagney@amy.cygnus.com>
635
636 * remote.c (remote_rcmd): Pass an empty command across to the
637 target. Check for and handle an ``Enn'' return status.
638
639Tue Aug 10 13:59:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
640
641 * maint.c (_initialize_maint_cmds): Add ``maintenance
642 internal-error'' command.
643 (maintenance_internal_error): New function.
644
6451999-08-10 James Ingham <jingham@leda.cygnus.com>
646
647 * top.c: Remove the disassembly_flavor_hook, use the new set_hook
648 instead.
649 * defs.h: Ditto.
650 * arm-tdep.c (set_disassembly_flavor_sfunc): Ditto.
651
6521999-08-10 Michael Snyder <msnyder@cleaver.cygnus.com>
653
654 * config/i386/nm-i386sol2.h (FIND_NEW_THREADS): remove, obsolete.
655 * config/sparc/nm-sun4sol2.h (FIND_NEW_THREADS): remove, obsolete.
656
6571999-08-10 J.T. Conklin <jtc@redback.com>
658
659 * configure.tgt (i[3456]86-*-aout*, i[3456]86-*-coff*,
660 i[3456]86-*-elf*): Use embed.mt.
661 * config/i386/embed.mt: New file.
662
6631999-08-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
664
665 * remote.c (remote_async_open_1): Remove casting in call to
666 add_file_handler.
667 (extended_remote_async_create_inferior): Ditto.
668
669 * event-top.c (change_line_handler): Ditto.
670 (_initialize_event_loop): Ditto.
671
672 * infrun.c (complete_execution): Ditto.
673
674 * event-loop.c (add_file_handler): Change proc parameter to be ptr
675 to func with void parameter, rather than void*. Coerce second
676 paramter in calls to create_file_handler. Replace
677 async_handler_func and file_handler_func with handler_func.
678
679 * event-loop.h: Get rid of typedefs for file_handler_func and
680 async_handler_func, just have one, and call it handler_func.
681 Replace async_handler_func and file_handler_func occurrences with
682 handler_func.
683
684Tue Aug 10 03:13:03 1999 Jeffrey A Law (law@cygnus.com)
685
686 * hppa-tdep.c: Delete random #if 0 code.
687 (is_branch): Handle new branching opcodes from PA2.0
688 (inst_saves_gr, inst_saves_fr): Handle additional instructions
689 used to save general and floating point registers in the stack.
690 (skip_prologue_hard_way): Handle additional instructions to
691 save the return pointer in the stack.
692 (after_prologue): Fix mis-guided and incorrect code to find
693 the end of the prologue using debug symbols.
694 (hppa_skip_prologue): Generally clean up comments, lose code
695 which does not apply to the PA, etc.
696
697Sun Aug 8 17:53:41 1999 Andrew Cagney <cagney@amy.cygnus.com>
698
699 * MAINTAINERS: Make Andrew Cagney the mn10300 maintainer.
700 Transfer responsibility for the PowerPC from Andrew Cagney to
701 Elena Zannoni.
702
703Tue Aug 10 13:59:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
704
705 Based on code from J.T. Conklin <jtc@redback.com>:
706 * utils.c (internal_error): Make quit? and coredump? separate
707 questions so that the user can dump-core and not quit.
708 (internal_error): Cleanup error message.
709
7101999-08-09 Tom Tromey <tromey@cygnus.com>
711
712 * kod-cisco.c (cisco_kod_open): Removed incorrect `arg' argument.
713
96baa820
JM
714Sun Aug 8 12:06:47 1999 Fred Fish <fnf@cygnus.com>
715
716 * coffread.c (process_coff_symbol): Remove section_offsets from
717 prototype and function definition. Get section_offsets from the
718 passed objfile and pass it on to callees the same way.
719 (coff_symtab_read): Ditto.
720 (coff_symfile_read): Ditto.
721 * dbxread.c (read_dbx_dynamic_symtab): Ditto.
722 (read_dbx_symtab): Ditto.
723 (dbx_symfile_read): Ditto.
724 (coffstab_build_psymtabs): Ditto.
725 (elfstab_build_psymtabs): Ditto.
726 (stabsect_build_psymtabs): Ditto.
727 * dstread.c (dst_symfile_read): Ditto.
728 * elfread.c (elf_symfile_read): Ditto.
729 * jv-class.c (jv_class_symfile_read): Ditto.
730 * mipsread.c (mipscoff_symfile_read): Ditto.
731 * nlmread.c (nlm_symfile_read): Ditto.
732 * os9kread.c (os9k_symfile_read): Ditto.
733 * somread.c (som_symfile_read): Ditto.
734 * stabsread.h (elfstab_build_psymtabs): Ditto.
735 * xcoffread.c (xcoff_initial_scan): Ditto.
736
737 * symfile.h (sym_read): Remove section_offsets from prototype.
738 * symfile.c (syms_from_objfile): Call sym_read without
739 section_offsets.
740 (reread_symbols): Ditto.
741
742 * elfread.c (elfstab_offset_sections): Use SIZEOF_SECTION_OFFSETS
743 to allocate sections offsets array.
744 * xcoffread.c (xcoff_symfile_offsets): Ditto.
745
746 * partial-stab.h (section_offsets): Get from objfile.
747 * dbxread.c (read_dbx_symtab): Fix typo that made -1 casted
748 to a CORE_ADDR look like an subtraction expression.
749 * objfiles.h: Add some comments.
750 * symfile.c: Add some comments.
751 * objfiles.c: Add some comments.
752 (objfile_relocated): Use ALL_OBJFILE_OSECTIONS to iterate over
753 sections.
754 (find_pc_sect_sections): Use ALL_OBJSECTIONS to iterate over all
755 sections in all objfiles.
756 * symfile.c (syms_from_objfile): Use ALL_OBJFILE_OSECTIONS.
757
758 * irix5-nat.c (symbol_add_stub): Fix typo that made taking the
759 address of lowest_sect with '&' look like a bitwise and op.
760 * osfsolib.c (symbol_add_stub): Ditto.
761 * solib.c (symbol_add_stub): Ditto.
762 * symfile.c (syms_from_objfile): Ditto.
763
764 * dwarf2read.c (dwarf2_build_psymtabs_hard): Minor format tweak.
765 * symfile.c (syms_from_objfile): Ditto, and fix typo.
766 * top.c (init_main): Fix typo in comment (DEFULAT_PROMPT).
767 * doc/gdbint.texinfo (find_sym_fns): This replaces symfile_init.
768
7691999-08-08 James Ingham <jingham@leda.cygnus.com>
770
771 * remote.c (remote_insert_breakpoint): Fix typo in Z packet support.
104c1213
JM
772 Also move Z packet support OUTSIDE of REMOTE_BREAKPOINT ifdef,
773 since this is not set for all targets that support the Z packet.
96baa820
JM
774
775Fri Aug 6 17:17:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
776
777 * defs.h (fatal): Delete declaration.
778 (internal_error): Declare.
779 * utils.c (nomem): Call internal_error instead of fatal.
780 (fatal_dump_core): Delete.
781 (malloc_botch): Print message direct to stderr.
782 (fatal): Delete definition.
783 * utils.c (internal_error): Define.
784
785 * gdbarch.h, gdbarch.c, hppah-nat.c, ch-exp.c, dsrec.c, sh-tdep.c,
786 infptrace.c, f-lang.c, symm-nat.c, top.c, m3-nat.c, v850-tdep.c,
787 remote-vx.c, remote-sim.c, remote-mips.c, source.c, infcmd.c,
788 findvar.c, remote.c: Replace fatal with call to internal_error.
789
790Sun Aug 8 15:28:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
791
792 * ser-pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Move
793 definition from here.
794 * defs.h: To here.
795
796Sat Aug 7 21:44:59 1999 Fred Fish <fnf@cygnus.com>
797
798 * remote.c (remote_insert_breakpoint): Fix typo, missing ';'.
799
800Sun Aug 8 11:26:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
801
802 * mips-tdep.c (mips_gdbarch_init): Add break; to the default case.
803
804Fri Aug 6 19:26:03 1999 Andrew Cagney <cagney@b1.cygnus.com>
805
806 * defs.h: Delete #if ANSI_PROTOTYPES code, GDB assumes ISO-C.
807 * remote-rdp.c (send_rdp), remote-os9k.c (printf_monitor),
808 remote-mips.c: (mips_error), remote-array.c: (printf_monitor,
809 debuglogs), complaints.c (complain), monitor.c:
810 (monitor_printf_noecho, monitor_printf), language.c (type_error,
811 range_error), remote-st.c: (printf_stdebug), remote-sim.c
812 (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
813 gdb_os_evprintf_filtered, gdb_os_error), serial.c (serial_printf),
814 utils.c (warning, error, fatal, fatal_dump_core, (query,
815 fprintf_filtered, fprintf_unfiltered, fprintfi_filtered,
816 printf_filtered, printf_unfiltered, printfi_filtered): Delete
817 legacy #ifndef ANSI_PROTOTYPES varargs code.
818
819 * defs.h: Don't #include <varargs.h>.
820 * remote-rdp.c, remote-os9k.c, remote-mips.c, remote-array.c,
821 monitor.c, remote-st.c: Don't include <varargs.h> or <stdarg.h>.
822
8231999-08-06 James Ingham <jingham@leda.cygnus.com>
824
825 * configure.in, configure: add the --enable-multi-ice to determine
826 whether to configure and build the multi-ice-gdb-server. Note,
827 for now this only builds on cygwin, so don't enable it for other
828 platforms...
829
8301999-08-06 Tom Tromey <tromey@cygnus.com>
831
832 * Makefile.in (SFILES): Added kod.c and kod-cisco.c.
833 (COMMON_OBS): Added kod.o and kod-cisco.o.
834 (kod-cisco.o): New target.
835 (kod.o): New target.
836 * kod-cisco.c: New file.
837 * kod.c: New file.
838
8391999-08-06 James Ingham <jingham@leda.cygnus.com>
840
841 These are some fixups for the Arm, and support for the
842 disassembly-flavor for the ARM.
843
844 * defs.h: Declare the disassembly_flavor_hook
845 * top.c: Define the disassembly_flavor_hook
846 * i386-tdep.c: Remove unnecessary declaration of the
847 disassembly_flavor_hook.
848
849 * config/arm/tm-arm.h: Change definition of
850 arm_init_extra_frame_info.
851 Add a few more comments.
852 * arm-tdep.c (arm_init_extra_frame_info): Listen to and use the
853 fromleaf parameter passed into init_extra_frame_info.
854 (set_disassembly_flavor_sfunc): New Function.
855 (set_disassembly_flavor): New Function.
856 (arm_othernames): Use the set_disassembly_flavor.
857 (_initialize_arm_tdep): Setup the disassembly flavor commands, and
858 initialize the flavor.
104c1213 859 (arm_frameless_function_invocation): Adjust for
96baa820
JM
860 frameless functions that have 1 or 2 instructions that mimic the
861 standard APCS form.
862 (arm_scan_prologue): Be more careful about scanning the function
863 prologue. Don't match things that just have a few of the prologue
864 instructions out of order, and don't get thrown by the scheduler
865 migrating instructions into the prologue.
866
867 Add support for the "Z" and "z" packets to request the stub
868 to set a breakpoint.
869
870 * remote.c (set_remote_protocol_Z_packet_cmd): New function.
871 (show_remote_protocol_Z_packet_cmd): New Function.
872 (remote_open_1): Init the Z packet config.
873 (remote_async_open_1): Init the Z packet config.
874 (remote_insert_breakpoint): Use the "Z" packet if supported.
875 (remote_remove_breakpoint): Use the "z" packet if supported.
876 (remote_insert_watchpoint): New Function - currently wired to
877 nothing.
878 (remote_remove_watchpoint): Ditto.
879 (remote_insert_hw_breakpoint): Ditto.
880 (remote_remove_hw_breakpoint): Ditto.
881
8821999-08-06 Stan Shebs <shebs@andros.cygnus.com>
883
884 * infcmd.c: Include parser-defs.h.
885 (interrupt_target_command): Declare.
886 (stack_dummy_testing): Remove old funky flag.
887 (run_stack_dummy): Remove unused reference to old funky flag.
888
8891999-08-06 Tom Tromey <tromey@cygnus.com>
890
891 * command.c (do_setshow_command): Call set_hook if not NULL.
892 * top.c (set_hook): New hook definition.
893 * defs.h (set_hook): Declare.
894
8951999-08-05 Stan Shebs <shebs@andros.cygnus.com>
896
897 * infrun.c: Convert code to pure standard C, elim some warnings.
898 (stopped_for_shlib_catchpoint): Remove, never used.
899
9001999-08-05 Keith Seitz <keiths@cygnus.com>
901
902 * NEWS: Mention new Motorola MCore target.
903
904 * sparc-tdep.c (gdb_print_insn_sparc): Print insns of the current
905 architecture.
906
907Thu Aug 5 20:41:22 1999 Andrew Cagney <cagney@b1.cygnus.com>
908
909 * configure.in (configdirs): Add check for socketpair.
910 * configure, config.in: Re-generate.
911
912 From Mon Jul 19 10:46:18 1999 Philippe De Muyter <phdm@macqel.be>:
913 * ser-pipe.c (sys/wait.h): Include this file only #if HAVE_SYS_WAIT_H.
914 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Macros defined if needed.
915
916Thu Aug 5 20:04:17 1999 Andrew Cagney <cagney@b1.cygnus.com>
917
918 * target.c (debug_to_open, debug_to_attach, debug_to_post_attach,
919 debug_to_require_attach, debug_to_detach, debug_to_require_detach,
920 debug_to_wait, debug_to_post_wait, debug_to_fetch_registers,
921 debug_to_store_registers, debug_to_prepare_to_store,
922 debug_to_xfer_memory, debug_to_files_info,
923 debug_to_insert_breakpoint, debug_to_remove_breakpoint,
924 debug_to_terminal_init, debug_to_terminal_inferior,
925 debug_to_terminal_ours_for_output, debug_to_terminal_ours,
926 debug_to_terminal_info, debug_to_kill, debug_to_load,
927 debug_to_lookup_symbol, debug_to_create_inferior,
928 debug_to_post_startup_inferior,
929 debug_to_acknowledge_created_inferior,
930 debug_to_clone_and_follow_inferior,
931 debug_to_post_follow_inferior_by_clone,
932 debug_to_insert_fork_catchpoint, debug_to_remove_fork_catchpoint,
933 debug_to_insert_vfork_catchpoint,
934 debug_to_remove_vfork_catchpoint, debug_to_has_forked,
935 debug_to_has_vforked, debug_to_can_follow_vfork_prior_to_exec,
936 debug_to_post_follow_vfork, debug_to_insert_exec_catchpoint,
937 debug_to_remove_exec_catchpoint, debug_to_has_execd,
938 debug_to_reported_exec_events_per_exec_call,
939 debug_to_has_syscall_event, debug_to_has_exited,
940 debug_to_mourn_inferior, debug_to_can_run,
941 debug_to_notice_signals, debug_to_thread_alive, debug_to_stop,
942 debug_to_query, debug_to_rcmd, debug_to_enable_exception_callback,
943 debug_to_get_current_exception_event, debug_to_pid_to_exec_file,
944 debug_to_core_file_to_sym_file, debug_to_close): Send trace output
945 to ``gdb_stdlog'' instead of ``gdb_stderr''.
946
947Thu Aug 5 16:22:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
948
949 * remote.c (init_remote_ops): Initialize remote_ops.to_rcmd.
950 (init_remote_async_ops): Initialize remote_async_ops.to_query.
951 (remote_rcmd): New function.
952
953 * monitor.c (monitor_rcmd): Rename monitor_command.
954 (init_base_monitor_ops): Initialize monitor_ops.to_rcmd.
955 (_initialize_remote_monitors): Move "monitor" command from here.
956 * target.c (initialize_targets): To here.
957 (monitor_command): New function. Implement "monitor" command.
958
959 * target.c (cleanup_target): de_fault to_rcmd.
960 (update_current_target): INHERIT to_rcmd.
961 (debug_to_rcmd): New function.
962 (setup_target_debug): Initialize current_target.to_rcmd.
963
964 * target.h (struct target_ops): Add field to_rcmd.
965 (target_rcmd): Define.
966
967Thu Aug 5 14:24:07 1999 Andrew Cagney <cagney@b1.cygnus.com>
968
969 * remote.c: Replace comment describing remote protocol with
970 pointer to official document.
971
972Thu Aug 5 11:59:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
973
974 * remote.c (remote_protocol_binary_download): New variable.
975 Replace ``remote_binary_download'' and ``remote_binary_checked''.
976 (set_remote_protocol_binary_download_cmd,
977 show_remote_protocol_binary_download_cmd): New functions.
978 (remote_open_1, remote_async_open_1, remote_cisco_open):
979 Initialize ``remote_protocol_binary_download'' instead of
980 ``remote_binary_download''.
981 (check_binary_download): Re-write.
982 (remote_write_bytes): Ditto.
983 (_initialize_remote): Add ``set remote X-packet'' and ``show
984 remote X-packet'' commands. Disable old ``set
985 remotebinarydownload'' command.
986
9871999-08-04 Keith Seitz <keiths@cygnus.com>
988
989 * remote-rdi.c (arm_rdi_close): Close the transport device, too.
990
991Wed Aug 4 10:42:58 1999 Fred Fish <fnf@cygnus.com>
992
993 * xcoffread.c (scan_xcoff_symtab): Change main_aux into
994 an array of 5 internal_auxent to leave room for bfd to
995 write n_numaux entries. Change code to use the first one.
996
9971999-08-02 Stan Shebs <shebs@andros.cygnus.com>
998
999 * c-valprint.c (c_val_print): When printing decimal equivalent
1000 of a char, cast appropriately.
1001
10021999-08-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1003
1004 From Jonathan Larmour <jlarmour@cygnus.co.uk>:
1005 * main.c (print_gdb_help): Use gdbinit variable to determine file
1006 name used for --nx help
1007
a0b3c4fd
JM
10081999-08-01 Jason Molenda (jsm@bugshack.cygnus.com)
1009
1010 * config/mips/tm-mips.h (BIG_ENDIAN): Don't define here.
1011
10121999-08-01 Jim Blandy <jimb@zwingli.cygnus.com>
1013
1014 * stabsread.c (read_range_type): Handle an unsigned range type
1015 whose length in bytes is any power of two, not just a few
1016 common ones.
1017
1018 * monitor.c (monitor_expect): When we receive a character that
1019 isn't part of the string we were expecting, don't just start
1020 matching again at the beginning of the string --- some shorter
1021 suffix of the input might be a prefix of the string too.
1022
10231999-07-31 Fred Fish <fnf@cygnus.com>
1024
1025 * symfile.c (symbol_file_command): Fix typo that made -1 casted
1026 to a CORE_ADDR look like an subtraction expression.
1027 (add_symbol_file_command): Ditto.
1028
10291999-07-30 Jim Blandy <jimb@cris.red-bean.com>
1030
1031 * hppa-tdep.c (pa_print_registers): Frob register output some more.
1032
10331999-07-29 Jim Blandy <jimb@cris.red-bean.com>
1034
1035 * config/pa/nm-hppah.h (PTRACE_ARG3_TYPE): After more
1036 consideration, make this a CORE_ADDR, like WDB did.
1037
1038 Rather than casting every single use of really_free_pendings to
1039 make_cleanup_func, why not actually make it have that type? Golly!
1040 * buildsym.c (really_free_pendings): Change argument type to PTR.
1041 buildsym.h (really_free_pendings): Fix declaration.
1042 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1),
1043 dwarf2read.c (psymtab_to_symtab_1), dwarfread
1044 (psymtab_to_symtab_1), hp-psymtab-read.c (hpread_build_psymtabs),
1045 os9kread.c (os9k_symfile_read, os9k_psymtab_to_symtab_1),
1046 xcoffread.c (xcoff_psymtab_to_symtab_1, xcoff_initial_scan):
1047 Remove casts.
1048
1049 Pass a CORE_ADDR safely through catch_errors.
1050 * hppa-tdep.c (args_for_find_stub): New member, return_val.
1051 (cover_find_stub_with_shl_get): Change argument and return type to
1052 match catch_errors. Save return value of find_stub_with_shl_get
1053 in *args.
1054 (initialize_hp_cxx_exception_support): Collect value of
1055 eh_notify_callback_addr from args.
1056
1057 Get rid of some noise. It would be nice to get helpful warnings
1058 from the compiler about lossy conversions.
1059 * hppa-tdep.c (eh_notify_hook_addr, eh_notify_callback_addr,
1060 eh_break_addr, eh_catch_catch_addr, eh_catch_throw_addr,
1061 break_callback_sal): Initialize these to zero, not NULL, to shush
1062 warnings.
1063 * infttrace.c (thread_fake_step): Compare signal to
1064 TARGET_SIGNAL_0, not NULL, to avoid warnings.
1065 (_initialize_infttrace): Add sanity check.
1066
1067 * config/pa/nm-hppah.h (PTRACE_ARG3_TYPE): Define this to be
1068 long, so we can pass arguments properly to ptrace.
1069
1070 * hppah-nat.c (child_xfer_memory): Correctly compute mask to round
1071 address to an int boundary.
1072
10731999-07-29 Jim Blandy <jimb@savonarola.red-bean.com>
1074
1075 Change from Ian Lance Taylor <ian@zembu.com>. The
1076 i386_linux_sigtramp* functions should be moved to
1077 i386-linux-tdep.c, when that file is introduced.
1078
1079 * config/i386/tm-linux.h (LINUX_SIGCONTEXT_SIZE): Define.
1080 (LINUX_SIGCONTEXT_PC_OFFSET): Define.
1081 (LINUX_SIGCONTEXT_SP_OFFSET): Define.
1082 (SIGCONTEXT_PC_OFFSET): Don't define.
1083 (I386_LINUX_SIGTRAMP): Define.
1084 (IN_SIGTRAMP): Define.
1085 (i386_linux_sigtramp): Declare.
1086 (sigtramp_saved_pc): Define.
1087 (i386_linux_sigtramp_saved_pc): Declare.
1088 (FRAMELESS_SIGNAL): Define.
1089 (FRAME_CHAIN, FRAME_SAVED_PC): Define after #undef.
1090 * i386-tdep.c (i386_linux_sigtramp_start): New static function if
1091 I386_LINUX_SIGTRAMP.
1092 (i386_linux_sigtramp): New function if I386_LINUX_SIGTRAMP.
1093 (i386_linux_sigtramp_saved_pc): Likewise.
1094 (i386_linux_sigtramp_saved_sp): Likewise.
1095
10961999-07-28 Jim Blandy <jimb@savonarola.red-bean.com>
1097
1098 * infrun.c (handle_inferior_event): Don't try to use the code for
1099 stepping over a function call to also handle stepping out of a
1100 sigtramp on HP-UX. That ends up trashing step-resume breakpoints.
1101 This change reverts some of David Taylor's change of 31 Dec 1998.
1102 The HP-UX maintainer needs to submit a new change for whatever
1103 problem the original change was trying to fix.
1104
11051999-07-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1106
1107 * event-top.c (command_line_handler): Don't treat an empty line
1108 from readline the same way as a multiline command. This avoids
1109 missing detecting when the user presses just 'enter'.
1110
11111999-07-28 Jim Blandy <jimb@savonarola.red-bean.com>
1112
1113 Provide more sanity checking:
1114 * infrun.c (handle_inferior_event): Before assigning a new
1115 breakpoint to step_resume_breakpoint, make sure it's not already
1116 pointing at one; if it is, that's a bug.
1117 (check_for_old_step_resume_breakpoint): New function.
1118
11191999-07-28 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1120
104c1213 1121 From Eli Zaretskii <eliz@is.elta.co.il>:
a0b3c4fd
JM
1122 * top.c (gdb_init) [__MSDOS__]: Arrange for GDB to return to the
1123 original directory before exiting.
1124 (cd_command) [_WIN32 || __MSDOS__]: Canonicalize the new directory
1125 name explicitly. Handle "d:/" names correctly.
1126 (init_history) [__MSDOS__]: Use _gdb_history as the default GDB
1127 history file name.
1128
5a2468f5
JM
1129Mon Jul 26 17:13:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
1130
1131 * remote.c (enum packet_support, enum packet_detect, struct
1132 packet_config): Define.
1133 (set_packet_config_cmd, show_packet_config_cmd,
1134 add_packet_config_cmd, init_packet_config): New functions.
1135 Generic support for optional packets.
1136 (remote_protocol_P): Replace stub_supports_P.
1137 (set_remote_protocol_P_packet_cmd, show_remote_protocol_P_packet_cmd):
1138 New functions.
1139 (_initialize_remote): Add ``set remote-protocol-P-packet'' command.
1140 (remote_open_1, remote_async_open_1, remote_cisco_open):
1141 Initialize ``remote_protocol_P''.
1142 (remote_store_registers): Re-write ``P'' probe logic.
1143 (store_register_using_P): New function.
1144
1145 From Ian Lance Taylor <ian@airs.com>:
1146 (remote_prepare_to_store): Only read registers when ``P'' packet
1147 is in state unsupported or support-unknown.
1148
11491999-07-24 Fred Fish <fnf@cygnus.com>
1150
104c1213
JM
1151 * symfile.c (default_symfile_offsets): Clear section_offsets
1152 before filling it in.
5a2468f5 1153
adf40b2e
JM
11541999-07-16 Keith Seitz <keiths@cygnus.com>
1155
1156 * remote.c (_initialize_remote): "remotebreak" should be a var_boolean.
1157
11581999-07-15 Jim Blandy <jimb@cris.red-bean.com>
1159
1160 Make the output from "info registers" fit withinin 80 columns.
a0b3c4fd
JM
1161 * hppa-tdep.c (pa_print_registers): Make it easy to change row and
1162 column counts. Switch to three columns, instead of four, and
1163 adjust spacing.
adf40b2e
JM
1164
1165 First cut at supporting HPPA2.0 in "wide" (64-bit) mode.
1166 * configure.tgt: Add hppa2.0w target.
1167 * config/pa/hppa64.mt, config/pa/tm-hppa64.h: New files.
1168 * hppa-tdep.c (hppa_fix_call_dummy): Dyke out code to tweak the
1169 call dummy, if target is PA2.0w. This is temporary, until I get
1170 function calls working.
1171 * hppah-nat.c (fetch_register): Rewritten to handle both narrow
1172 and wide register requests.
1173 (HPPAH_OFFSETOF): New macro.
1174
1175 * gdbtypes.c (is_integral_type): New function.
1176 * gdbtypes.h: Prototype for above.
1177
11781999-07-15 J.T. Conklin <jtc@redback.com>
1179
1180 * configure.tgt (i[3456]86-*-vxworks*): New target.
1181 * config/i386/vxworks.mt: New file, x86 VxWorks target
1182 * config/i386/tm-vxworks.h: New file.
1183
1184 * configure.tgt (powerpc-*-vxworks*): New target.
1185 * config/powerpc/vxworks.mt: New file, PowerPC VxWorks target
1186 * config/powerpc/tm-vxworks.h: New file.
1187
1188 * NEWS: Mention the new configs.
1189
11901999-07-15 Fernando Nasser <fnasser@cygnus.com>
1191
1192 * target.c (target_preopen): Prevent query when not from_tty.
1193 * infcmd.c (run_command): Prevent query when not from_tty.
1194
11951999-07-15 Fernando Nasser <fnasser@cygnus.com>
1196
1197 * event-loop.c: Fix typo in comment.
1198
1199Wed Jul 14 17:29:31 1999 Andrew Cagney <cagney@b1.cygnus.com>
1200
1201 * ser-pipe.c (struct pipe_state): Define.
1202 (pipe_close): Retain the PID of the sub-process using ``struct
1203 pipe_state''. Delete #ifdef code that used popen().
1204 (pipe_close): Kill of the sub-process as part of the cleanup.
1205
1206 * serial.h (struct _serial_t): Add field ``state''.
1207
12081999-07-13 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1209
1210 * event-top.c (display_gdb_prompt): Don't display the prompt if we
1211 are in the middle of an execution command. Also trick readline so
1212 it doesn't try to display the prompt.
1213 (command_line_handler): Get rid of change_prompt, unused variable.
1214 Use {push, pop}_prompt mechanism in case of multiline commands.
1215
1216 * infrun.c (complete_execution): Set target_executing to 0 as
1217 first thing, so that display_gdb_prompt does the right thing.
1218
1219Tue Jul 13 20:29:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
1220
1221 * parse.c (build_parse): Fix conditional increment of num_std_regs
1222 for SP_REGNUM. Was conditional on FP_REGNUM.
1223
1224Tue Jul 13 16:44:58 1999 Andrew Cagney <cagney@b1.cygnus.com>
1225
1226 * gdbarch.h, gdbarch.c: Revert 1999-07-07 Stan Shebs
1227 <shebs@andros.cygnus.com> indentation change. Don't let indent
1228 mess with these files.
1229
43e526b9
JM
1230Mon Jul 12 11:15:09 1999 Andrew Cagney <cagney@b1.cygnus.com>
1231
1232 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_RAW,
1233 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERTIBLE): Define.
1234 (REGISTER_RAW_SIZE): Re-define as mips_register_convert_to_raw.
1235 * mips-tdep.c (mips_register_convert_to_raw,
1236 mips_register_convert_to_virtual, ): New functions.
1237 (mips_register_raw_size, mips_register_convertible): New
1238 functions. Handle bug introduced by ``Wed Apr 1 23:13:23 1998
1239 Andrew Cagney <cagney@b1.cygnus.com>'' where remote mips64 target
1240 transfers SR as 64 bits yet GDB expected only 32 bits.
1241 (mips64_transfers_32bit_regs): New static variable.
1242 (_initialize_mips_tdep): Add obscure command ``set
1243 remote-mips64-transfers-32bit-regs'' that provides backward
1244 compatibility.
1245 (do_gp_register_row): Extract register values from raw buffer.
1246
1247 * NEWS: Document protocol change.
1248
adf40b2e
JM
12491999-07-12 Keith Seitz <keiths@cygnus.com>
1250
104c1213 1251 * rdi-share/unixcomm.c (Unix_ResetSerial): Remove CYGWIN32
adf40b2e 1252 conditional. It's no longer needed.
104c1213
JM
1253 (SERPORT1, SERPORT2): Linux serial ports are "/dev/ttyX", not
1254 "/dev/cuaX" (X=0,1,2,3,...).
adf40b2e 1255
43e526b9
JM
1256Mon Jul 12 02:02:00 1999 Andrew Cagney <cagney@amy.cygnus.com>
1257
1258 * defs.h, utils.c (fputstrn_filtered, fputstrn_unfiltered,
1259 fputstrnn_unfiltered): New functions.
1260 (gdb_printchar): Delete.
1261
1262 * remote.c (print_packet): Replace gdb_printchar with
1263 fputstrn_filtered.
1264 (getpkt): Use fputstrn_unfiltered to dump packet received.
1265 (putpkt_binary): Use fputstrnn_unfiltered to dump packet sent.
1266
12671999-07-09 Keith Seitz <keiths@cygnus.com>
1268
1269 * blockframe.c (blockvector_for_pc_sect): When looking for a block,
1270 we want the one whose end is greater than our PC, not greater or equal.
1271
12721999-07-08 Stan Shebs <shebs@andros.cygnus.com>
1273
1274 * sparcl-tdep.c (init_sparclite_ops): Fix doc strings, remove
1275 useless inits.
1276 (sparclite_ops): Remove redundant decl.
1277
1278Thu Jul 8 16:48:40 1999 Andrew Cagney <cagney@b1.cygnus.com>
1279
1280 * ser-pipe.c (pipe_open): Bi-directional popen found on both
1281 NetBSD and OpenBSD.
1282 * ser-pipe.c: New file. Implement popen() style serial interface.
1283 * NEWS: Mention.
1284 * Makefile.in (ALLDEPFILES): Add ser-pipe.c.
1285 (ser-pipe.o): Add new target. Specify dependencies.
1286 (SER_HARDWIRE): Add ser-pipe.o.
1287 * serial.c (serial_open): Recognize a serial pipe ``|''.
1288
9846de1b
JM
12891999-07-07 Stan Shebs <shebs@andros.cygnus.com>
1290
c5aa993b
JM
1291 * All C files except *-stub.c and *-share/*: Indent to GNU
1292 standard, using indent 1.9.1.
1293 * defs.h: Make indent ignore this file, macros confuse it.
1294
9846de1b
JM
1295 * gnu-regex.c, gnu-regex.h: Don't let indent mess with these.
1296
1297Wed Jul 7 13:06:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
1298
1299 * remote-mips.c (fputs_readable): Rename puts_readable, add struct
1300 gdb_file argument.
1301 (fputc_readable): Rename putc_readable, add struct gdb_file
1302 argument.
1303
1304 * remote-mips.c (mips_expect_timeout, mips_receive_header,
1305 mips_send_packet, mips_receive_packet), remote-rdp.c (put_byte,
1306 get_byte, put_word, rdp_init, rdp_init), remote-sds.c
1307 (sds_interrupt, sds_wait, readchar, putmessage, read_frame,
1308 getmessage), remote-udi.c (udi_store_registers, fetch_register):
1309 (store_register), xmodem.c (readchar), utils.c (puts_debug),
1310 gnu-nat.h (debug), parse.c (parse_exp_1): Cleanup - send debug/log
1311 messages to gdb_stdlog.
1312
13131999-07-06 Stan Shebs <shebs@andros.cygnus.com>
1314
1315 * exec.c: Remove long-#ifed-out section of code that confuses
1316 indent.
1317 * gdbtypes.c (add_mangled_type): Add some braces to indicate
1318 grouping better.
1319 * gnu-nat.c: Remove literal newlines embedded in strings,
1320 causes indent to weird out.
1321 * language.c (binop_result_type): Remove extra paren.
1322 * lynx-nat.c: Add a missing paren to fetch_core_registers decl.
1323 * nec4102rom.c (vr4102_insert_step): Fix typos.
1324 (_initialize_vr4102_rom): Remove literal newline in string.
1325 * config/a29k/tm-a29k.h: Suppress formatting of pictures.
1326 * config/m68k/xm-3b1.h: Remove excess #endif.
1327
1328 Declare Pyramid configuration obsolete.
1329 * configure.host, configure.tgt: Comment out Pyramid configs.
1330 * Makefile.in: Comment out Pyramid-related actions.
1331 * pyr-xdep.c, pyr-tdep.c, config/pyr/*: Comment out.
1332 * NEWS: Mention obsolete status.
1333
13341999-07-06 Jason Molenda (jsm@bugshack.cygnus.com)
1335
1336 * remote.c: Include <sys/time.h> to pick up FD_SET et al defns on
1337 some old Linux distributions.
1338 * remote-os9k.c, remote-st.c, ser-tcp.c, ser-unix.c,
1339 sparcl-tdep.c, remote.c: Back out inclusion of <sys/select.h>.
1340 It isn't necessary after all.
1341
13421999-07-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1343
1344 * infcmd.c (strip_bg_char): Remove assignment from 'if' condition.
1345
43ff13b4
JM
13461999-07-05 Jason Molenda (jsm@bugshack.cygnus.com)
1347
1348 * remote.c: Include <sys/select.h> if it exists in order to pick up
1349 FD_SET et al defns.
1350 * remote-os9k.c: Same.
1351 * remote-st.c: Same.
1352 * ser-tcp.c: Same.
1353 * ser-unix.c: Same.
1354 * sparcl-tdep.c: Same.
1355
1356Fri Jul 2 19:38:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
1357
1358 * top.c (target_output_hook): Delete definition.
1359 * defs.h (target_output_hook): Delete declaration.
1360
1361 * remote.c (remote_console_output): Delete call to
1362 target_output_hook(). Send target output to gdb_stdtarg using an
1363 unfiltered write. Make more robust.
1364
1365 * remote-sim.c (gdb_os_write_stdout, gdb_os_write_stderr):
1366 Ditto. For moment, do not try to separate target stdout and stderr
1367 streams.
1368
1369 * defs.h (gdb_stdtarg): New global. Output from target and
1370 simulators.
1371
13721999-07-02 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1373
1374 * top.c (return_to_top_level): Do all the exec_cleanups too.
1375
1376 * event-top.c (command_handler): Set up for a continuation, if we
1377 are in the middle of running an execution command which will
1378 finish later on. Do cleanups, an display of time/space only if not
1379 running with an async target or not running an execution command.
1380 (command_line_handler_continuation): New function. Continuation
1381 for command_line_handler.
1382
1383 * utils.c (exec_cleanup_chain): New cleanup chain to be used in
1384 async mode for the execution commands.
1385 (make_exec_cleanup): New function. Add a cleanup to the
1386 exec_cleanup_chain.
1387 (do_exec_cleanups): New Function. Do cleanups on the
1388 exec_cleanup_chain.
1389 (add_continuation): New function. Add a new continuation to the
1390 cmd_continuation list.
1391 (do_all_continuations): New function. Do all the continuations on
1392 the cmd_continuation list.
1393
1394 * top.h (ALL_CLEANUPS): Move from here to defs.h.
1395
1396 * defs.h (struct continuation_arg): New structure. Arg to pass to
1397 the call to a command continuation.
1398 (struct continuation): New structure. Continuation for an
1399 execution command.
1400 (ALL_CLEANUPS): Move here from top.h.
1401
1402 * remote.c (remote_async_open_1): Set things up for telling the
1403 target we are running the extended protocol, only after the target
1404 has stopped.
1405 (set_extended_protocol): New function. Tell the target we are
1406 using the extended protocol.
1407 (remote_async_resume): Set things up for sync execution only if
1408 this is the first time we are called.
1409
1410 * breakpoint.c (until_break_command_continuation): New function.
1411 Stuff to be done after the target stops during the 'until'
1412 command.
1413 (until_break_command): Set things up for completing the 'until'
1414 command later on. Do the final cleanups only if not running
1415 asynchronously or async execution is not supported by the target.
1416
1417 * infcmd.c (until_command): Recognize '&' at end of command and
1418 handle it properly.
1419 (finish_command_continuation): New function. Do whatever is needed
1420 after the target has stopped.
1421 (finish_command): Recognize '&' at end of command and handle it
1422 properly. Don't do stuff needed after target has stopped if
1423 running asynchronously and target has async. Use exec_cleanup_chain
1424 if running asynchronously and target is asynchronous.
1425
1426 * infrun.c (cmd_continuation): New gloabl variable. Used to
1427 coplete execution commands in async mode, after the target has
1428 stoped.
1429 (fetch_inferior_event): Use exec_cleanup_chain, instead of
1430 cleanup_chain. Do all the exec cleanups at the end. Do all the
1431 continuations at the end. Call complete_execution from here,
1432 instead of normal_stop.
1433 (complete_execution): Cleanup the signals handlers for SIGINT
1434 before displaying the prompt.
1435 (start_remote): Set target_executing to 1.
1436 (normal_stop): Don't call complete_execution from here.
1437
1438Thu Jul 1 19:14:30 1999 Andrew Cagney <cagney@b1.cygnus.com>
1439
1440 * blockframe.c (struct dummy_frame): Add member ``top''.
1441 (generic_push_dummy_frame): Initialize top to sp.
1442 (generic_save_dummy_frame_tos): New function. Initialize top.
1443 (generic_find_dummy_frame): Check for the top of the frame.
1444
1445 * blockframe.c (generic_push_dummy_frame): Free the dummy_frame
1446 registers.
1447
1448 * config/mn10300/tm-mn10300.h (SAVE_DUMMY_FRAME_TOS): Define.
1449 (TARGET_READ_FP): Return the SP as a best guess.
1450
1451Wed Jun 30 15:45:48 1999 Jeffrey A Law (law@cygnus.com)
1452
1453 * configure.host (hppa*-*-hpux11*): Accept any version of hpux11
1454 instead of hpux11.0*.
1455
14561999-06-30 Fernando Nasser <fnasser@totem.to.cygnus.com>
1457
1458 * source.c (directory_command): Add missing test for from_tty.
1459
14601999-06-29 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1461
1462 * remote.c: Include event-loop.h.
1463 (remote_async_ops, extended_async_remote_ops): Define new target
1464 vector structures for asynchronous debugging.
1465 (remote_async_open): New function. Asynchronous version of
1466 remote_open.
1467 (extended_remote_async_open): New function. Asynchronous version
1468 of extended_remote_open.
1469 (remote_async_open_1): New function. Async version of
1470 remote_open_1.
1471 (remote_async_detach): New function. Async version of
1472 remote_detach.
1473 (remote_async_resume): New function. Async version of
1474 remote_resume.
1475 (initialize_sigint_signal_handler, handle_remote_sigint,
1476 handle_remote_sigint_twice, async_remote_interrupt,
1477 async_remote_interrupt_twice, cleanup_sigint_signal_handler): New
1478 functions. Used for handling ^C while target is running.
1479 (remote_async_wait): New function. Async version of remote_wait.
1480 (remote_async_kill): New function. Async version of remote_kill.
1481 (extended_remote_async_create_inferior): New function. Async
1482 version of extended_remote_create_inferior.
1483 (init_remote_async_ops): New function. Initialize target vector
1484 for target async.
1485 (init_extended_async_remote_ops): New function. Initialize target
1486 vector for target extended-async.
1487 (_initialize_remote): Initialize remote_async_ops and
1488 extended_async_remote_ops.
1489
1490 * infrun.c: Include "event-loop.h".
1491 (sync_execution): new global variable.
1492 (proceed): Invoke wait_for_inferior and normal_stop only if not
1493 running in async mode or if target doesn't support async
1494 execution.
1495 (start_remote): Don't call wait_for_inferior and normal_stop if
1496 not running in async mode or if target not async. If running async
1497 and target is async, start the target in simulated synchronous
1498 mode.
1499 (async_ecss, async_ecs): New global vars, for inferior state.
1500 (fetch_inferior_event): New function. Async version of
1501 wait_for_inferior.
1502 (complete_execution): New function. Reset of gdb prompt and stdin,
1503 after inferior execution has completed.
1504 (normal_stop): Call complete_execution at end of asynchronous
1505 execution.
1506
1507 * infcmd.c (strip_bg_char): New function to detect the background
1508 execution char '&'.
1509 (run_command): Modify to support background and foreground
1510 execution in async mode.
1511 (continue_command): Ditto.
1512 (step_1): Ditto.
1513 (jump_command): Ditto.
1514 (interrupt_target_command): New function. Interrupt the
1515 target execution.
1516 (_initialize_infcmd): Add new command 'interrupt'.
1517
1518 * top.c (target_executing): New global variable.
1519 (execute_command): Reject commands that cannot be executed while
1520 the target is running asynchronously.
1521
1522 * event-top.c (push_prompt): Make non static.
1523 (pop_prompt): Make non static. If the current prompt is empty,
1524 don't try to copy it over the previous one.
1525 (handle_sigint): Make non static.
1526 (command_handler): Do the cleanups only when not executing with an
1527 asynchronous target.
1528
1529 * event-loop.c (delete_async_signal_handler): Pass a pointer to a
1530 pointer to a signal handler, so that is can be freed at the end.
1531
1532 * target.c (update_current_target): Inherit to_has_async_exec.
1533
1534 * inferior.h: Add global variables target_executing, and
1535 sync_execution. Export function fetch_inferior_event.
1536
1537 * event-loop.h: Add push_prompt, pop_prompt, handle_sigint to the
1538 exported functions. Update prototype for delete_signal_handler.
1539
1540 * target.h (struct target_ops): New target op: to_has_async_exec.
1541 (target_has_async): New macro.
1542
1543 * Makefile.in (infrun.o): Add dependency on event-loop.h.
1544 (remote.o): Ditto.
1545
085dd6e6
JM
15461999-06-28 Jim Blandy <jimb@zwingli.cygnus.com>
1547
1548 * solib.c (clear_solib): Don't disable breakpoints if we're
1549 running an a.out executable (Solaris's SunOS emulation).
1550
15511999-06-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1552
1553 * main.c (main): Remove intialization of command_loop_hook, it
1554 is now done in _initialize_event_loop().
1555 * event-loop.c (gdb_do_one_event): Make static.
1556 (start_event_loop): New function. Just start the event loop.
1557 * event-top.c (cli_command_loop): New name for start_event_loop().
1558 (gdb_readline2): Make non static.
1559 (_initialize_event_loop): Set command_loop_hook to cli_command_loop.
1560 * event-loop.h: Adjust exported functions accordingly.
1561
1562 * top.c (init_main): Move setting of async_command_editing_p from
1563 here.
1564 * event-top.c (_initialize_event_loop): To here.
1565 (change_line_handler): Revert previous change. Add comment.
1566 (_initialize_event_loop): Revert previous change.
1567 (cli_command_loop): New name for start_event_loop().
1568 (start_event_loop): New function. This just starts up the event loop.
1569 (gdb_readline2): Make non static.
1570 (_initialize_event_loop): Set command_loop_hook to cli_command_loop.
1571
15721999-06-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1573
1574 * event-top.c (change_line_handler): Get rid of the global
1575 variable input_fd, use `fileno (instream)' instead.
1576 (_initialize_event_loop): Ditto
1577
1578 * event-loop.c (add_file_handler): New function. Wrapper for
1579 create_file_handler.
1580 (create_file_handler): Make static.
1581 * event-top.c (_initialize_event_loop): Call add_file_handler,
1582 instead of create_file_handler.
1583 (change_line_handler): Ditto.
1584 Remove poll.h include.
1585 * event-loop.h: Export add_file_handler instead of
1586 create_file_handler.
1587
15881999-06-24 Stan Shebs <shebs@andros.cygnus.com>
1589
1590 Declare Altos configuration obsolete.
1591 * configure.host, configure.tgt: Comment out Altos config.
1592 * Makefile.in: Comment out Altos-related actions.
1593 * altos-xdep.c, config/m68k/altos.mh, altos.mt, tm-altos.h,
1594 xm-altos.h: Comment out.
1595 * NEWS: Mention obsolete status.
1596
15971999-06-24 Jason Molenda (jsm@bugshack.cygnus.com)
1598
1599 * Makefile.in: Add MAKEHTML and MAKEHTMLFLAGS; pass them down;
1600 recognize html and install-html targets.
1601 * gdbserver/Makefile.in: Add empty html and install-html targets.
1602 * nlm/Makefile.in: Ditto.
1603 * rdi-share/Makefile.in: Ditto.
1604
16051999-06-24 Jim Blandy <jimb@zwingli.cygnus.com>
1606
1607 * ax-gdb.c (agent_command): Remove vestigial call to ax_reqs.
1608
16091999-06-24 James Ingham <jingham@leda.cygnus.com>
1610
1611 * arm-tdep.c (arm_othernames): Change both gdb's register display
1612 AND the opcode disassembly register naming if the othernames
1613 command. Fixes the gdb part of CR 101177.
1614
16151999-06-23 Stan Shebs <shebs@andros.cygnus.com>
1616
1617 Declare Convex configuration obsolete.
1618 * configure.host, configure.tgt: Comment out Convex configs.
1619 * Makefile.in: Comment out Convex-related actions.
1620 * convex-xdep.c, convex-tdep.c, config/convex/*: Comment out.
1621 * NEWS: Mention obsolete status.
1622
16231999-06-23 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1624
1625 * main.c: Turn on async by default by setting async_p to 1.
1626
1627Wed Jun 23 15:44:39 1999 Andrew Cagney <cagney@b1.cygnus.com>
1628
1629 From Jimmy Guo <guo@cup.hp.com>:
1630 * frame.h (enum lval_type): Delcare when an __STDC__ compiler.
1631 Reverts Mon Aug 11 16:08:52 1997 Fred Fish <fnf@cygnus.com>
1632 change.
1633 * utils.c (gdb_file_rewind, gdb_file_put): Fix. A void function
1634 does not return a result.
1635
1636Wed Jun 23 15:30:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
1637
1638 * remote.c (set_thread, remote_get_threadinfo,
1639 remote_threads_info, remote_current_thread, remote_get_threadlist,
1640 extended_remote_restart, get_offsets, remote_open_1,
1641 remote_detach, remote_resume, remote_wait, remote_fetch_registers,
1642 remote_store_registers, check_binary_download, remote_write_bytes,
1643 remote_read_bytes, remote_search, putpkt_binary, putpkt_binary,
1644 read_frame, compare_sections_command, remote_query,
1645 packet_command, remote_info_process): Use alloca to create space
1646 for arrays of size PBUFSIZ.
1647
16481999-06-22 Jason Molenda (jsm@bugshack.cygnus.com)
1649
1650 * top.c: Update copyright years to include 1999.
1651
9e0b60a8
JM
16521999-06-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1653
1654 * top.c: Move include of event-loop.h, to avoid redefinition of
1655 NFDBITS.
1656
1657 * event-loop.c (create_file_handler): Do not do a realloc of the
1658 pollfd structure of the notifier, unless there is already one.
1659 Include <sys/types.h> for platforms that have no poll.
1660
1661 * event-top.c: Fix prototype for _initialize_event_loop.
1662 (_initialize_event_loop): Do something only if running in async
1663 mode.
1664
16651999-06-17 Jim Blandy <jimb@zwingli.cygnus.com>
1666
1667 Make the '/c' print format use a true character type. This is
1668 more appropriate than builtin_type_char for languages other than
1669 C, and C tolerates it.
1670 * gdbtypes.c (builtin_type_true_char): New variable.
1671 (build_gdbtypes): Initialize it.
1672 * gdbtypes.h (builtin_type_true_char): New declaration.
1673 * printcmd.c (print_scalar_formatted): When the format is 'c',
1674 extract the value as a builtin_type_true_char.
1675
1676 * jv-exp.y (yylex): Say character literals are java_char_type, not
1677 builtin_type_char. Java treats the latter like `byte'.
1678
16791999-06-17 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1680
1681 * Makefile.in (top_h): Define.
1682 (event-loop.o): Add dependencies on top.h and defs.h.
1683 (event-top.o): Add dependency on terminal.h.
43ff13b4 1684
9e0b60a8
JM
1685 * event-loop.c: Get rid of #include <readline.h>.
1686
1687 * event-loop.h: Get rid of nested #include's.
1688 * event-loop.c: Rearrange includes to accomodate change in
1689 event-loop.h. Include poll.h, not sys/poll.h.
1690 * event-top.c: Ditto.
1691 * main.c: Ditto.
1692
16931999-06-16 David Taylor <taylor@louisiana.cygnus.com>
1694
1695 * alpha-tdep.c (alpha_pop_frame): if frame->proc_desc
1696 is NULL, call find_proc_desc so we know how to restore
1697 the registers.
1698
16991999-06-15 Michael Snyder <msnyder@cleaver.cygnus.com>
1700
1701 * event-top.c (start_event_loop): call get_prompt.
1702 (display_gdb_prompt): call get_prompt.
1703 (async_stop_sig): call get_prompt.
1704
17051999-06-15 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1706
1707 * event-loop.c (delete_file_handler): When positioning prev_ptr,
1708 keep looping while the one after is not equal to file_ptr, instead
1709 of equal.
1710
0f71a2f6
JM
17111999-06-14 Stan Shebs <shebs@andros.cygnus.com>
1712
1713 * MAINTAINERS: Add Jimmy Guo and Jim Blandy as HP testsuite and
1714 SVR4 solib maintainers, respectively.
1715
17161999-06-14 Michael Snyder <msnyder@cleaver.cygnus.com>
1717
1718 Add parameters to the gdb prompt.
1719 * top.c (prompt): Rename to gdb_prompt_string for clarity.
1720 (command_line_input): rename "prrompt" to prompt_arg for clarity.
1721 (gdb_readline): rename "prrompt" to prompt_arg for clarity.
1722 (read_command_lines): rename "prompt" to prompt_arg for clarity.
1723 (stop_sig): call get_prompt instead of reading prompt string directly.
1724 (command_loop): ditto.
0f71a2f6
JM
1725 (gdb_prompt_escape): New variable. Esc char for prompt parameters.
1726 (get_prompt_1): New function, workhorse for get_prompt.
1727 (get_prompt): Completely rewrite. Add functionality for a
1728 parameterized prompt, ie. the displayed prompt can change according
1729 to the value of one or more expressions given as parameters in the
1730 prompt string.
1731 (init_main): use renamed variable gdb_prompt_string. Add new
1732 command "set prompt-escape-char" to set gdb_prompt_escape.
1733
1734Sun Jun 13 10:44:13 1999 Andrew Cagney <cagney@b1.cygnus.com>
1735
1736 * defs.h (gdb_stdlog), main.c: Declare.
1737 * main.c (main): Initialize.
1738 * gdbarch.c: Write trace messages to the log file.
1739 * remote.c: Update any debug/log prints.
1740
17411999-06-11 Michael Snyder <msnyder@cleaver.cygnus.com>
1742
1743 * remote.c (remote_wait): Clean up new thread handling.
1744 (record_currthread): Announce new threads.
1745
17461999-06-11 Jim Blandy <jimb@zwingli.cygnus.com>
1747
1748 * partial-stab.h (case N_LSYM, 'T' descriptor): Don't create
1749 partial symbol table entries for nameless enums, even if the type
1750 name is " ". (We still pick up the enum elements, though.)
1751
1752 * partial-stab.h: Remove #if 0'd sections, dating back to 1992,
1753 which set a variable which exists nowhere else in the source.
1754 Please examine your test suite output carefully, and report any
1755 problems to me.
1756
17571999-06-11 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1758
1759 * event-top.c (setup_event_loop): Change name to start_event_loop.
1760 Move the intialization of event-loop variables to
1761 _initialize_event_loop.
1762 (_initialize_event_loop): New function. Called at init time, to
1763 set up important event-loop variables.
1764
1765 * event-loop.h: setup_event_loop is now start_event_loop.
1766 * main.c (main): Ditto.
1767
1768Fri Jun 11 18:34:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
1769
1770 * defs.h (gdb_file_rewind_ftype, gdb_file_rewind,
1771 set_gdb_file_rewind, gdb_file_put_ftype, gdb_file_put,
1772 set_gdb_file_put): Declare.
1773
1774 * utils.c (gdb_file_new): Initialize ``rewind'' and ``put''.
1775 (struct gdb_file): Add to_rewind and to_put.
1776 (null_file_put, null_file_rewind, gdb_file_put, gdb_file_rewind,
1777 set_gdb_file_put, set_gdb_file_rewind): New functions.
1778 (tui_file_rewind, tui_file_put): New functions.
1779 (tui_file_new): Add rewind and put.
1780
1781Fri Jun 11 15:10:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
1782
1783 * d10v-tdep.c (d10v_push_arguments): Fix order of arguments passed
1784 to store_address.
1785
1786Fri Jun 11 10:31:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
1787
1788 * remote.c (tty_input): Change array to pointer.
1789 (_initialize_remote): Call build_remote_gdbarch_data.
1790 (build_remote_gdbarch_data): New function. Allocate space for
1791 tty_input.
1792 (readsocket, readtty): Delete extern declaration of tty_input.
1793
17941999-06-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1795
1796 * event-top.c (gdb_readline2): Call the command handling function
1797 via the input_handler pointer.
1798 (change_line_handler): When turning off editing, set input_handler
1799 as well.
1800
1801 * utils.c (prompt_for_continue): If running asynchronously, call
1802 async_request_quit, instead of request_quit.
1803
1804 * tracepoint.c (read_actions): If running asynchronously, set the
1805 signal handler for STOP_SIGNAL to handle_stop_sig.
1806
1807 * top.h: (source_line_number, source_file_name, source_error,
1808 source_pre_error, history_expansion_p, server_command): export for
1809 use of event-top.c.
1810
1811 * event-top.c: Include top.h and terminal.h.
1812 (instream): Remove extern declaration.
1813 (handle_sigint, handle_sigquit, handle_sighup, handle_sigfpe,
1814 handle_sigwinch, async_do_nothing, async_disconnect,
1815 async_float_handler, async_stop_sig): Make static.
1816 (async_request_quit, async_do_nothing, async_disconnect,
1817 async_float_handler, async_stop_sig): Add gdb_glient_data
1818 argument.
1819 (handle_stop_sig): New function.
1820 (sigtstp_token): New variable.
1821 (sigint_token, sigquit_token, sigfpe_token, sigwinch_token):
1822 Change their type tp PTR.
1823 (mark_async_signal_handler_wrapper): New function.
1824 (setup_event_loop): Initialize all the variables used by readline
1825 only if not already done while reading the .gdbinit file. Display
1826 the initial gdb prompt, if .gdbinit took care of setting things up
1827 for readline.
1828 (change_line_handler): When turning on the use of readline,
1829 initialize input_handler as well.
1830 (command_line_handler): Set up the signal handler for STOP_SIGNAL
1831 to be handle_stop_sig.
1832 (async_init_signals): Remove coercion of signal handlers in calls
1833 to create_async_signal_handler. Initialize token for stop signal.
1834 (handle_sigint): Call async_request_quit using one argument.
1835 (handle_sigint, handle_sigquit, handle_sighup, handle_sigfpe,
1836 handle_sigwinch): Call mark_async_signal_handler_wrapper instead
1837 of mark_async_signal_handler.
1838
1839 * event-loop.h: Add extern declarations for handle_stop_sig,
1840 async_command_editing_p, async_annotation_suffix,
1841 new_async_prompt, the_prompts.
1842
1843 * top.c (command_line_input): Set the signal handler to be
1844 handle_stop_sig, in case gdb is running asynchronously.
1845 (get_prompt): Return the top of the prompt stack if running
1846 asynchronously.
1847 (set_prompt): Set the top of the prompt stack if running
1848 asynchronously.
1849 (init_main): Move ``extern'' vars from here to event-loop.h.
1850
18511999-06-10 Michael Snyder <msnyder@cleaver.cygnus.com>
1852
1853 * values.c (value_from_string): new function. Make a value_ptr
1854 from a string, with storage in local GDB memory (not in inferior).
1855 * value.h (value_from_string): add prototype.
1856 * remote.c (remote_cisco_ops): New remote target, "target cisco".
1857 (init_remote_cisco_ops): New function, initialize new target.
1858 (remote_cisco_mourn, remote_cisco_wait, remote_cisco_open,
1859 remote_cisco_close): New functions, implement new target cisco.
1860 (minitelnet, readtty, readsocket) New functions, implement the
1861 I/O pass-through mode for target cisco.
1862 (remote_wait): Detect special enhanced version of the 'S' packet
1863 for target cisco.
1864 (remote_cisco_expand): Perform Cisco variant of RLL decoding.
1865
18661999-06-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1867
1868 * event-loop.c (gdb_wait_for_event): Initialize num_found to 0.
1869
1870 * top.c (print_prompt): Delete this function.
1871
1872 From: Andrew Cagney <cagney@b1.cygnus.com>
1873
1874 * event-top.c (async_hook): Delete extern declaration.
1875
1876 * defs.h: Replace ``async_hook'' with ``async_p''.
1877 * top.c (gdb_init, init_main, init_main, init_main, init_main):
1878 Replace ``async_hook'' with ``async_p''.
1879
1880 * main.c: Rename ``async'' to ``async_p''.
1881 (main): Add --noasync option.
1882 (main): Hook in the asynchronous event-loop based CLI using
1883 command_loop_hook instead of async_hook. Delete call to
1884 async_hook().
1885
1886Thu Jun 10 21:14:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
1887
1888 * mn10300-tdep.c (mn10300_store_return_value,
1889 mn10300_extract_struct_value_address,
1890 mn10300_extract_return_value), config/mn10300/tm-mn10300.h: New
1891 functions.
1892 * config/mn10300/tm-mn10300.h (EXTRACT_STRUCT_VALUE_ADDRESS,
1893 STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE): Update.
1894 (TARGET_MN10300): Delete macro. Not used.
1895
1896Thu Jun 10 20:04:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
1897
1898 * mn10300-tdep.c (mn10300_register_names): Make static.
1899 (STORE_STRUCT_RETURN): Do not modify SP.
1900
1901 * config/mn10300/tm-mn10300.h(mn10300_register_name),
1902 mn10300-tdep.c : New function.
1903 * config/mn10300/tm-mn10300.h (REGISTER_NAME): Update.
1904 * config/mn10300/tm-mn10300.h (mn10300_saved_pc_after_call),
1905 mn10300-tdep.c: New function.
1906 * config/mn10300/tm-mn10300.h (SAVED_PC_AFTER_CALL): Update.
1907
96baa820
JM
19081999-06-10 Keith Seitz <keiths@cygnus.com>
1909
1910 * mcore-rom.c (picobug_dumpregs): Return a value. Any value, it
1911 doesn't matter.
1912 * mcore-tdep.c (mcore_analyze_prologue): Set NO_MORE_FRAMES
1913 if the start of the function is the entry point.
1914 (mcore_analyze_prologue): rotli takes an immediate, not an
1915 offset immediate.
1916 (mcore_push_arguments): Fix compiler warning.
1917
0f71a2f6 19181999-06-09 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
104c1213 1919
0f71a2f6
JM
1920 * rs6000-tdep.c (skip_prologue): Don't mistake a branch for a
1921 subroutine call.
1922
19231999-06-08 Michael Snyder <msnyder@cleaver.cygnus.com>
1924
1925 * remote.c (remote_wait): Add 'N' response packet, which is a
1926 stop with signal number plus section offsets for .text, .data and
1927 .bss. This is used by Cisco to indicate relocation offsets.
1928 (remote_cisco_section_offsets, remote_cisco_objfile_relocate):
1929 new files to support 'N' packet.
1930 (remote_info_process): New function. Implements the
1931 "info remote-process" command, by means of which the remote target
1932 can report anything it wants to about the remote process/app being
1933 debugged.
1934 (_initialize_remote): add info remote-proc command.
1935 (remote_threads_info): New function for "info threads" command.
1936 Attempts to use new query "qfThreadInfo" instead of the old
1937 undocumented query.
1938 * exec.c (exec_set_section_offsets) new files to support 'N' packet.
1939
1940Tue Jun 8 13:33:42 1999 Andrew Cagney <cagney@amy.cygnus.com>
1941
1942 * inferior.h (generic_target_read_pc, generic_target_write_pc,
1943 generic_target_read_fp, generic_target_write_fp,
1944 generic_target_read_sp, generic_target_write_sp): Declare new
1945 functions.
1946 * findvar.c (generic_target_read_pc, generic_target_write_pc,
1947 generic_target_read_fp, generic_target_write_fp,
1948 generic_target_read_sp, generic_target_write_sp): New functions.
1949 (TARGET_READ_PC, TARGET_WRITE_PC, TARGET_READ_FP, TARGET_WRITE_FP,
1950 TARGET_READ_SP, TARGET_WRITE_SP): Default to corresponding generic
1951 function.
1952 (write_pc_pid, write_pc_pid, read_sp, write_sp, read_fp,
1953 write_fp): Simplify.
1954
1955 * gdbarch.c (verify_gdbarch): Always verify TARGET_PTR_BIT,
1956 TARGET_SHORT_BIT, TARGET_INT_BIT, TARGET_LONG_BIT,
1957 TARGET_LONG_LONG_BIT, TARGET_FLOAT_BIT, TARGET_DOUBLE_BIT,
1958 TARGET_LONG_DOUBLE_BIT, TARGET_READ_PC, TARGET_WRITE_PC,
1959 TARGET_READ_FP, TARGET_WRITE_FP, TARGET_READ_SP, TARGET_WRITE_SP,
1960 USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY_BREAKPOINT_OFFSET_P,
1961 CALL_DUMMY_P, CALL_DUMMY_STACK_ADJUST_P, GET_SAVED_REGISTER,
1962 REGISTER_CONVERTIBLE, PUSH_ARGUMENTS, PUSH_RETURN_ADDRESS,
1963 FRAME_CHAIN_VALID.
1964 (GET_GDBARCH, SET_GDBARCH): Delete macros. Implement functions
1965 directly.
1966 * gdbarch.h, gdbarch.c: Call fatal() instead of abort(). Identify
1967 the function / macro with a problem. Always verify a architecture
1968 attribute before returning it.
1969 * gdbarch.h, gdbarch.c (generic_register_convertible_not): New
1970 function.
1971
1972 * mips-tdep.c (mips_push_return_address): New function.
1973 * config/mips/tm-mips.h (PUSH_RETURN_ADDRESS): Define.
1974
1975 * mips-tdep.c (mips_gdbarch_init): Initialize short_bit,
1976 double_bit, long_double_bit, read_pc, write_pc, read_fp, write_fp,
1977 read_sp, write_sp, frame_chain_valid, get_saved_register,
1978 push_arguments, push_return_address, register_convertible,
1979 call_dummy_p, use_generic_dummy_frames,
1980 call_dummy_breakpoint_offset_p, call_dummy_stack_adjust_p,
1981 call_dummy_words and sizeof_call_dummy_words.
1982 * config/mips/tm-mips.h: Don't define CALL_DUMMY when multi-arch.
1983
cce74817
JM
19841999-06-07 Keith Seitz <keiths@cygnus.com>
1985
1986 * v850ice.c (init_hidden_window): Do not rely on the existence of
1987 a gui for window creation. Return boolean status.
1988 (v850ice_open): Use boolean status of init_hidden_window.
1989 Allow any ICE execution command to run under CLI. Maybe one
1990 day gdb will use a real event loop and allow this code to run.
1991 * configure.tgt: Configure the v850 ice for all cygwin-hosted
1992 toolchains.
1993
1994Mon Jun 7 23:37:26 1999 Andrew Cagney <cagney@amy.cygnus.com>
1995
1996 * config/mips/tm-mips.h (EXTRA_FRAME_INFO): Delete.
1997 * mips-tdep.c (mips_init_extra_frame_info): Allocate saved_regs.
1998 (temp_saved_regs): Replace struct with a simple pointer.
1999 (set_reg_offset, mips32_heuristic_proc_desc, heuristic_proc_desc,
2000 mips_init_extra_frame_info): Update.
2001
2002Mon Jun 7 21:40:12 1999 Andrew Cagney <cagney@amy.cygnus.com>
2003
2004 * config/mips/tm-mips.h (EXTRA_FRAME_INFO): Move elements from here.
2005 * mips-tdep.c (struct frame_extra_info): To here.
2006
2007 * mips-tdep.c (mips_print_extra_frame_info, mips_find_saved_regs,
2008 mips_init_extra_frame_info, mips_pop_frame): Update
2009 (mips_init_extra_frame_info): Allocate space for the extra info.
2010
2011Mon Jun 7 21:08:50 1999 Andrew Cagney <cagney@amy.cygnus.com>
2012
2013 * config/mips/tm-mips.h (mips_init_extra_frame_info), mips-tdep.c:
2014 Rename init_extra_frame_info. Add argument ``fromleaf''.
2015
2016 * config/mips/tm-mips.h (mips_print_extra_frame_info),
2017 mips-tdep.c: New function.
2018 (PRINT_EXTRA_FRAME_INFO): Update definition.
2019
2020Mon Jun 7 20:11:07 1999 Andrew Cagney <cagney@amy.cygnus.com>
2021
2022 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
2023 config/mips/tm-tx19.h, config/mips/tm-tx19l.h,
2024 config/mips/tm-tx39.h, config/mips/tm-tx39l.h: Rename macro
2025 REGISTER_NAMES to MIPS_REGISTER_NAMES.
2026
2027 * config/mips/tm-mips.h (REGISTER_NAME): Define.
2028 * mips-tdep.c (mips_processor_reg_names): New static variable.
2029 (mips_register_name): New function.
2030 (mips_set_processor_type): Update mips_processor_reg_names.
2031 (mips_generic_reg_names): Initialize using MIPS_REGISTER_NAMES.
2032
2033Sun Jun 6 11:09:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
2034
2035 * remote.c (PBUFSIZ): Re-define so that value is computed at
2036 run-time.
2037 (MAXBUFBYTES): Re-define as a macro function.
0f71a2f6
JM
2038 * gdbarch.h, gdbarch.c: Add multi-arch support for REGISTER_BYTES.
2039 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
cce74817
JM
2040
20411999-06-05 Fernando Nasser <fnasser@totem.to.cygnus.com>
2042
2043 * symtab.c (decode_line_1): Accept filenames with spaces in
2044 'linespecs' when enclosed in double quotation marks and handle
2045 drive specification is DOS format (D:).
2046
20471999-06-04 Jim Blandy <jimb@zwingli.cygnus.com>
2048
2049 * parse.c: Don't include <ctype.h> twice.
2050
20511999-06-04 David Taylor <taylor@louisiana.cygnus.com>
2052
2053 Sat May 15 12:16:09 1999 Per Bothner <bothner@deneb.cygnus.com>
2054
2055 * eval.c (evaluate_subexp_standard): Remove Gilmore rant.
2056 (Of course C has "expected types", at least if you allow
2057 brace-initializer expressions - as in Gcc.)
2058 Remove NULLing out expect_type. Do pass NULL_TYPE in place
2059 the incoming expect_type where appropriate.
2060
2061Fri Jun 4 10:56:23 1999 Jeffrey A Law (law@cygnus.com)
2062
2063 * hppa-tdep.c (hppa_fix_call_dummy): Make it work for GCC compiled
2064 executables without end.o. Clean up lots of mis-guided comments.
2065
2066Fri Jun 4 17:10:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
2067
2068 * parser-defs.h (std_regs): Replace array with pointer.
2069 * parse.c (build_parse): Build the std_regs table according to the
2070 standard registers available.
0f71a2f6
JM
2071 (_initialize_parse): Register std_regs and num_std_regs as
2072 architecture specific.
2073 * gdbarch.h, gdbarch.c: Add multi-arch support for SP_REGNUM,
2074 FP_REGNUM, PC_REGNUM, NUM_REGS, REGISTER_NAME.
2075 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
cce74817
JM
2076
20771999-06-03 Michael Snyder <msnyder@cleaver.cygnus.com>
2078
2079 * thread.c: eliminate the target_thread_vector (functionality
2080 moved into the standard target vector).
2081 * gdbthread.h: eliminate target_thread_vector. Move all related
2082 defines into remote.c, since they are no longer shared with thread.c.
2083 * remote.c: eliminate the target_thread_vector.
2084 (remote_find_new_threads): change return type to void, consistent
2085 with the target vector table. (cont_thread): rename continue_thread.
2086 (record_currthread): remove dead code. (remote_thread_alive):
2087 clean up and simplify. (threadref etc.): move definitions to here
2088 from gdbthread.h.
2089
20901999-06-02 Jason Molenda (jsm@bugshack.cygnus.com)
2091
2092 * inftarg.c (child_create_inferior): Remove dead HPUX specific code
2093 which tries to find csh.
2094 * fork-child.c: Remove DEBUGGING predefine and conditionalized
2095 printfs.
2096 (fork_inferior): Remove dead HPUX specific code which assumes shell
2097 is csh.
2098
2099 * hppa-tdep.c: Remove DEBUGGING and #if 0 debugging printfs.
2100 * parse.c: Ditto.
2101 * somread.c: Ditto.
2102
0f71a2f6
JM
2103 * gdbarch.h: Forward decl of struct value.
2104
cce74817
JM
2105Thu Jun 3 10:12:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
2106
2107 * d10v-tdep.c (do_d10v_pop_frame): Rename d10v_pop_frame. Make
2108 static.
2109 * d10v-tdep.c (d10v_pop_frame), config/d10v/tm-d10v.h: New
2110 function. Call generic_pop_current_frame.
2111 * config/d10v/tm-d10v.h (POP_FRAME): Update.
2112 * gdbarch.h, gdbarch.c (frame_num_args_unknown): New function.
0f71a2f6
JM
2113 * gdbarch.h, gdbarch.c: Add multi-arch support for POP_FRAME,
2114 SKIP_PROLOGUE, INNER_THAN, DECR_PC_AFTER_BREAK,
2115 FUNCTION_START_OFFSET, REMOTE_TRANSLATE_XFER_ADDRESS, FRAME_CHAIN,
2116 FRAME_CHAIN_VALID, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS,
2117 FRAME_LOCALS_ADDRESS, FRAME_ARGS_SKIP,
2118 FRAMELESS_FUNCTION_INVOCATION, REGISTER_BYTE, REGISTER_RAW_SIZE,
2119 REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, SAVED_PC_AFTER_CALL,
2120 FRAME_NUM_ARGS, MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
2121 REGISTER_SIZE.
2122 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
cce74817
JM
2123 * config/d10v/tm-d10v.h (DMEM_START, IMEM_START, STACK_START,
2124 ARG1_REGNUM, ARGN_REGNUM, RET1_REGNUM): Move definitions from
2125 here.
2126 * d10v-tdep.c: To here.
2127 * config/d10v/tm-d10v.h (struct type): Move declaration from here.
2128 * gdbarch.h: To here.
2129 * config/d10v/tm-d10v.h (struct frame_info, struct
2130 frame_saved_regs, struct type): Delete declarations.
2131
21321999-06-02 Robert Hoehne <robert.hoehne@gmx.net>
2133
2134 * go32-nat.c: go32_terminal_init, go32_terminal_inferior and
2135 go32_terminal_ours are new functions to save/restore the inferior`s
2136 stdin/stdout filemodes
2137
21381999-06-02 Stan Shebs <shebs@andros.cygnus.com>
2139
2140 * MAINTAINERS: Add Mark Kettenis, Jeff Law, and Philippe De Muyter
2141 as maintainers for Hurd, HP/UX, and COFF, respectively.
2142
21431999-06-02 Mark Kettenis <kettenis@gnu.org>
2144
2145 * gnu-nat.c (inf_continue): New function.
2146 (struct inf): Use `unsigned int' instead of `int' for bit-fields.
2147 Add new bit-field named `nomsg'.
2148 (inf_validate_procinfo): Renamed from inf_validate_stopped, all
2149 callers changed. Also update the `nomsg' and `traced' fields of
2150 INF.
2151 (make_inf): Initialize INF->nomsg.
2152 (inf_cleanup): Reset INF->nomsg.
2153 (inf_detach): Call `inf_validate_procinfo'. Call `inf_continue'
2154 instead of `inf_signal' if the inferior does not have a message
2155 port.
2156 (gnu_resume): Likewise.
2157 (gnu_create_inferior): Reset INF->nomsg in `attach_to_child'.
2158 Call `inf_validate_procinfo' after returning from `fork_inferior'.
2159 (gnu_attach): Update signal thread and tracing state.
2160
2161 * config/i386/tm-i386gnu.h: Include "i386/tm-i386.h" instead of
2162 "i386/tm-i386v.h".
2163 (STACK_END_ADDR): Remove.
2164 (SIGCONTEXT_PC_OFFSET): New define.
2165 Include "tm-sysv4.h".
2166
21671999-06-02 J.T. Conklin <jtc@redback.com>
2168
2169 * config/tm-vxworks.h: New file, header for definitions common to
2170 all vxWorks targets.
2171 * config/a29k/tm-vx29k.h, config/i960/tm-vx960.h,
2172 config/m68k/tm-vx68.h, config/mips/tm-vxmips.h,
2173 config/sparc/tm-vxsparc.h: Include tm-vxworks.h.
2174
2175Wed Jun 2 17:37:03 1999 Jeffrey A Law (law@cygnus.com)
2176
2177 * config/pa/tm-hppa.h (IMPORT_SHLIB): New unwind stub type.
2178
21791999-06-02 Christopher Faylor <cgf@cygnus.com>
2180
2181 * configure.tgt: Alphabetically reorder some targets.
2182
21831999-06-02 Keith Seitz <keiths@cygnus.com>
2184
2185 * v850ice.c (v850ice_xfer_memory): Insert lost "break".
2186
21871999-06-02 Jim Blandy <jimb@zwingli.cygnus.com>
2188
2189 * rs6000-tdep.c (variants): Fix description of 750 register set.
2190 (Thanks to J. T. Conklin.)
2191
2192Wed Jun 2 16:10:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
2193
0f71a2f6
JM
2194 * gdbarch.h, gdbarch.c: Add multi-arch support for
2195 STORE_STRUCT_RETURN, STORE_RETURN_VALUE,
2196 EXTRACT_STRUCT_VALUE_ADDRESS, USE_STRUCT_CONVENTION,
2197 FRAME_INIT_SAVED_REGS and INIT_EXTRA_FRAME_INFO.
2198 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
2199
cce74817
JM
2200 * config/d10v/tm-d10v.h (FRAME_INIT_SAVED_REGS): Replace
2201 FRAME_FIND_SAVED_REGS.
2202 (d10v_frame_init_saved_regs): Replace d10v_frame_find_saved_regs.
2203 * d10v-tdep.c (d10v_pop_frame, d10v_frame_chain,
2204 d10v_frame_init_saved_regs): Update.
0f71a2f6
JM
2205 * gdbarch.h: Disallow FRAME_FIND_SAVED_REGS when multi-arch.
2206
2207 * gdbarch.h, gdbarch.c: Add multi-arch support for
2208 D10V_MAKE_DADDR, D10V_MAKE_IADDR, D10V_DADDR_P, D10V_IADDR_P,
2209 D10V_CONVERT_DADDR_TO_RAW and D10V_CONVERT_IADDR_TO_RAW.
2210 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
cce74817
JM
2211
2212 * config/d10v/tm-d10v.h (EXTRA_FRAME_INFO): Delete.
2213 * d10v-tdep.c (struct frame_extra_info): Define.
2214 (d10v_init_extra_frame_info, d10v_pop_frame, d10v_frame_chain,
2215 d10v_frame_find_saved_regs): Update.
0f71a2f6 2216 * gdbarch.h: Disallow EXTRA_FRAME_INFO when multi-arch.
cce74817
JM
2217
2218Tue Jun 1 13:36:31 1999 Philippe De Muyter <phdm@macqel.be>
2219
2220 * config/m68k/tm-delta68.h (FRAME_NUM_ARGS): Macro prototype fixed.
2221 * config/m68k/tm-news.h, config/ns32k/tm-merlin.h: Ditto.
2222 * config/ns32k/tm-umax.h (FRAME_NUM_ARGS): Old macro definition
2223 removed; new macro prototype fixed.
2224
2225Wed Jun 2 11:18:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
2226
0f71a2f6
JM
2227 * gdbarch.h, gdbarch.c: Add multi-arch support for
2228 EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS, PUSH_DUMMY_FRAME,
2229 PUSH_RETURN_ADDRESS, POP_FRAME, FRAME_FIND_SAVED_REGS.
2230 * d10v-tdep.c, config/d10v/tm-d10v.h: Update.
2231
2232 * gdbarch.h, gdbarch.c: Add multi-arch support for
2233 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
2234 REGISTER_CONVERT_TO_RAW.
2235 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
2236
cce74817
JM
2237 * defs.h (REGISTER_NAME): Move compatibility definition from here.
2238 * gdbarch.h: To here.
2239
2240 * frame.h, blockframe.c (generic_fix_call_dummy): New
2241 stub function.
0f71a2f6
JM
2242 * gdbarch.h, gdbarch.c: Add multi-arch support for FIX_CALL_DUMMY.
2243 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
2244
2245Tue Jun 1 20:06:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
2246
2247 * d10v-tdep.c (d10v_gdbarch_init): Set get_saved_register.
2248 * config/d10v/tm-d10v.h: Update.
2249
2250Tue Jun 1 19:50:05 1999 Andrew Cagney <cagney@b1.cygnus.com>
2251
2252 * gdbarch.h, gdbarch.c: Add multi-arch support for TARGET_READ_PC,
2253 TARGET_WRITE_PC, TARGET_READ_FP, TARGET_WRITE_FP, TARGET_READ_SP
2254 and TARGET_WRITE_SP.
2255 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
2256
2257Tue Jun 1 19:19:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
2258
2259 * gdbarch.c (default_gdbarch): Set field GET_SAVED_REGISTER to
2260 generic_get_saved_register.
2261 * gdbarch.c: Change update dispatch functions so that they check
2262 for a NULL function pointer.
2263
2264Tue Jun 1 19:19:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
cce74817 2265
0f71a2f6
JM
2266 * gdbarch.h, gdbarch.c: Add multi-arch support for TARGET_INT_BIT,
2267 TARGET_CHAR_BIT, TARGET_SHORT_BIT, TARGET_FLOAT_BIT,
2268 TARGET_DOUBLE_BIT and TARGET_LONG_DOUBLE_BIT.
2269 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_gdbarch_init): Update.
2270
ac9a91a7
JM
2271Tue Jun 1 18:47:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
2272
2273 * parse.c (build_parse): New function. Initialize
2274 msym_text_symbol_type, msym_data_symbol_type and
2275 msym_unknown_symbol_type.
2276 (_initialize_parse): Call build_parse.
0f71a2f6
JM
2277 (_initialize_parse): Register variables msym_text_symbol_type,
2278 msym_data_symbol_type as msym_unknown_symbol_type as
2279 per-architecture.
2280
2281Tue Jun 1 11:30:09 1999 Andrew Cagney <cagney@b1.cygnus.com>
2282
2283 * d10v-tdep.c (_initialize_d10v_tdep): Register d10v as an
2284 architecture.
2285 (d10v_gdbarch_init): New function.
2286 * confg/d10v/tm-d10v.h (GDB_MULTI_ARCH): Define.
ac9a91a7
JM
2287
2288Tue Jun 1 10:45:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
2289
2290 * config/d10v/tm-d10v.h (REGISTER_CONVERTIBLE,
2291 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERT_TO_VIRTUAL): Convert
2292 macros into functions.
2293 * config/d10v/tm-d10v.h, d10v-tdep.c (d10v_register_convertable,
2294 d10v_register_convert_to_virtual, d10v_register_convert_to_raw):
2295 The new functions.
2296
22971999-05-31 Fernando Nasser <fnasser@totem.to.cygnus.com>
2298
2299 * stack.c (print_args_stub): Add missing stream parameter.
2300
2301Mon May 31 15:50:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
2302
2303 Fri May 28 16:51:00 1999 Martin Dorey <martin.dorey@madge.com>:
2304 * valops.c, value.h (default_push_arguments): Fix order of
2305 parameters to match PUSH_ARGUMENTS arguments.
2306
2307Thu May 27 11:42:55 1999 Andrew Cagney <cagney@b1.cygnus.com>
2308
2309 * gdbarch.h (EXTRACT_STRUCT_VALUE_ADDRESS): Return 0.
2310
2311 * valops.c (value_assign): Delete redundant test of
2312 REGISTER_CONVERTIBLE.
2313
2314Thu May 27 11:33:57 1999 Andrew Cagney <cagney@b1.cygnus.com>
2315
2316 * config/w65/tm-w65.h, config/tic80/tm-tic80.h, config/sh/tm-sh.h,
2317 config/i386/tm-i386m3.h, config/i386/tm-go32.h,
2318 config/i386/tm-cygwin.h, config/h8500/tm-h8500.h,
2319 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h: Delete definition of
2320 macro NAMES_HAVE_UNDERSCORE.
2321
2322Thu May 27 09:31:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
2323
2324 * gdbarch.h (EXTRACT_STRUCT_VALUE_ADDRESS,
2325 EXTRACT_STRUCT_VALUE_ADDRESS_P): Provide default definitions.
2326 * values.c (value_being_returned): Use
2327 EXTRACT_STRUCT_VALUE_ADDRESS when EXTRACT_STRUCT_VALUE_ADDRESS_P.
2328
2329Wed May 26 13:51:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
2330
2331 * utils.c (tui_file_new, tui_file_delete, tui_fileopen): New
2332 functions.
2333 (tui_file_isatty): Rename gdb_file_isatty.
2334 (gdb_file_init_astring): Use tui_file_new to create stream.
2335 (gdb_file_get_strbuf, gdb_file_adjust_strbuf): Call gdb_file_data
2336 to access the tui_stream.
2337 (tui_file_flush): Rename gdb_flush. Call gdb_file_data to access
2338 the tui_stream. Pass FILE and not STREAM down.
2339
2340 * utils.c (struct stdio_file, stdio_file_flush, stdio_file_fputs,
2341 stdio_file_isatty, stdio_file_delete, stdio_file_new,
2342 stdio_fileopen): Define type and functions. Implement a simple
2343 STDIO based gdb_file.
2344 (struct gdb_file, gdb_file_new, gdb_file_delete, null_file_isatty,
2345 null_file_flush, null_file_fputs, null_file_delete, gdb_file_data,
2346 set_gdb_file_flush, set_gdb_file_isatty, set_gdb_file_fputs,
2347 set_gdb_file_data, fputs_unfiltered, gdb_flush, gdb_file_isatty):
2348 Define type and functions. Implement virtual functions for
2349 gdb_file.
2350
2351 * defs.h (struct gdb_file): Declare.
2352 (GDB_FILE): Change type to struct gdb_file. Deprecate.
2353 (gdb_file_flush_ftype, gdb_file_fputs_ftype,
2354 gdb_file_isatty_ftype, gdb_file_delete_ftype): Add function type
2355 declarations.
2356
2357 * defs.h (set_gdb_file_flush, set_gdb_file_fputs,
2358 set_gdb_file_isatty, set_gdb_file_data, gdb_file_new,
2359 gdb_file_delete, gdb_file_data, stdio_fileopen, tui_fileopen): Add
2360 function declarations.
2361 (gdb_fopen): Re-implement. Call stdio_file_new.
2362 (gdb_fclose): Re-implement. Call gdb_file_delete.
2363
2364 * main.c (tui_file_fputs): Rename fputs_unfiltered. Use
2365 gdb_file_data to gain access to the tui_stream data. Use FILE
2366 instead of STREAM where applicable.
2367 (main): Create gdb_stdout and gdb_stderr using tui_fileopen.
2368
2369 * defs.h (struct tui_stream): Add field ts_magic.
2370 * utils.c (tui_file_magic): Local variable.
2371 (tui_file_new): Set field ts_magic.
2372 (tui_file_delete, tui_file_isatty, gdb_file_init_astring,
2373 gdb_file_get_strbuf, gdb_file_adjust_strbuf, tui_file_flush):
2374 Verify ts_magic.
2375
23761999-05-25 Jim Blandy <jimb@zwingli.cygnus.com>
2377
2378 * breakpoint.c (insert_breakpoints, remove_breakpoint,
2379 breakpoint_1): Add a 'default' case, which prints a warning
2380 message, to remove EGCS warnings.
2381
392a587b
JM
23821999-05-25 Fernando Nasser <fnasser@totem.to.cygnus.com>
2383
2384 * utils.c (gdb_file_adjust_strbuf): Take into account the
2385 possibility that the buffer has not been allocated yet.
2386
2387Tue May 25 16:05:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
2388
2389 * gdbarch.h (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
2390 REGISTER_CONVERT_TO_RAW): Provide default definition.
2391
2392 * valops.c (value_assign), infcmd.c (do_registers_info), findvar.c
2393 (value_from_register, value_of_register): Remove #ifdef
2394 REGISTER_CONVERTIBLE. Assume REGISTER_CONVERTIBLE etc defined.
2395
96baa820
JM
23961999-05-25 Keith Seitz <keiths@cygnus.com>
2397
2398 * config/mcore/tm-mcore.h (FRAME_NUM_ARGS): Re-write definition of
2399 FRAME_NUM_ARGS so that it returns NUM_ARGS as a result instead of
2400 setting a variable as a side effect.
2401
392a587b
JM
2402Tue May 25 16:18:25 1999 Andrew Cagney <cagney@amy.cygnus.com>
2403
2404 * remote-d10v.c (d10v_eva_prepare_to_trace,
2405 d10v_eva_get_trace_data), remote-sim.c (_initialize_remote_sim):
2406 Add declaraton. Make static.
2407
2408 * remote-d10v.c (_initialize_remote_d10v), d10v-tdep.c
2409 (_initialize_d10v_tdep): Add declaration.
2410 * config/d10v/tm-d10v.h (d10v_frame_chain): Add declaration.
2411
2412Tue May 25 15:20:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
2413
2414 * main.c (init_proc, proc_remove_foreign): Delete function.
2415 * inftarg.c (child_mourn_inferior): Update. Delete call to
2416 proc_remove_foreign().
2417 * top.c (gdb_init): Update. Delete call to init_proc().
2418
2419 * utils.c (pollquit, fmthex, hexlate): Delete function.
2420
2421Tue May 25 13:01:43 1999 Andrew Cagney <cagney@amy.cygnus.com>
2422
2423 * main.c (gdb_init): Move declaration from here.
2424 * top.h: To here.
2425
2426 * defs.h (init_page_info): Add declaration.
2427
2428 * top.c (initialize_utils): Move declaration from here.
2429 * defs.h: To here.
2430
2431 * infcmd.c (target_map_name_to_register): Move declaration from
2432 here.
2433 * parser-defs.h: To here.
2434
2435 * c-typeprint.c (cp_type_print_method_args), target.c
2436 (nosupport_runtime, normal_target_post_startup_inferior): Add
2437 declaration. Make static.
2438
2439Tue May 25 13:53:23 1999 Andrew Cagney <cagney@amy.cygnus.com>
2440
2441 * main.c: Include "event-loop.h".
2442 * Makefile.in (main.o): Add dependency.
2443
2444 * top.h (setup_event_loop, async_init_signals), top.c
2445 (set_async_editing_command, set_async_annotation_level,
2446 set_async_prompt), event-loop.c (display_gdb_prompt): Move
2447 declarations from here.
2448 * event-loop.h: To here.
2449
2450 * event-loop.h (delete_async_signal_handler): Add function
2451 declaration.
2452
2453 * event-top.c (change_annotation_level, command_handler): Add
2454 declaration. Make static.
2455
2456Tue May 25 12:44:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
2457
2458 * tracepoint.c (free_actions_list, add_register): Add declaration.
2459 Make static.
2460 (free_actions_list_cleanup_wrapper): New function. Wraps
2461 free_actions_list for make_cleanup.
2462 (trace_start_command): Pass free_actions_list_cleanup_wrapper
2463 instead of free_actions_list to make_cleanup.
2464 (_initialize_tracepoint): Add extern declaration.
2465
2466Tue May 25 12:23:39 1999 Andrew Cagney <cagney@amy.cygnus.com>
2467
2468 * jv-typeprint.c (java_type_print_base, jv-valprint.c
2469 (java_print_value_fields): Add static declaration.
2470
2471 * jv-lang.c (java_lookup_type, get_java_utf8_name,
2472 java_lookup_type): Add static declaration.
2473 (get_java_class_symtab, java_class_is_primitive,
2474 java_value_string): Add declaration. Make static.
2475 (java_rerun_cleanup): Add extern declaration for this stub
2476 function.
2477
0f71a2f6
JM
2478Tue May 25 12:06:29 1999 Andrew Cagney <cagney@b1.cygnus.com>
2479
2480 * gdbarch.h: When multi-arch, check that REGISTER_NAMES was not
2481 defined.
2482
392a587b
JM
2483Mon May 24 16:16:29 1999 Andrew Cagney <cagney@amy.cygnus.com>
2484
2485 * inflow.c (_initialize_inflow), annotate.c
2486 (_initialize_annotate), os9kread.c (_initialize_os9kread),
2487 serial.c (_initialize_serial), nlmread.c (_initialize_nlmread),
2488 f-valprint.c (_initialize_f_valprint), cp-valprint.c
2489 (_initialize_cp_valprint), typeprint.c (_initialize_typeprint),
2490 complaints.c (_initialize_complaints), scm-lang.c
2491 (_initialize_scheme_language), m2-lang.c
2492 (_initialize_m2_language), dbxread.c (_initialize_dbxread),
2493 f-lang.c (_initialize_f_language), ch-lang.c
2494 (_initialize_chill_language), c-lang.c (_initialize_c_language),
2495 corefile.c (_initialize_core), stabsread.c
2496 (_initialize_stabsread), mipsread.c (_initialize_mipsread),
2497 elfread.c (_initialize_elfread), coffread.c
2498 (_initialize_coffread), maint.c (_initialize_maint_cmds),
2499 demangle.c (_initialize_demangler), maint.c
2500 (_initialize_maint_cmds), language.c (_initialize_language): Add
2501 external declaration.
2502
2503Mon May 24 10:04:56 1999 Andrew Cagney <cagney@b1.cygnus.com>
2504
2505 * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/v850/tm-v850.h,
2506 config/tic80/tm-tic80.h, config/tahoe/tm-tahoe.h,
2507 config/rs6000/tm-rs6000.h, config/sparc/tm-sparc.h,
2508 config/sh/tm-sh.h, config/pyr/tm-pyr.h, config/pa/tm-hppa.h,
2509 config/ns32k/tm-merlin.h, config/mn10300/tm-mn10300.h,
2510 config/mn10200/tm-mn10200.h, config/mips/tm-mips.h,
2511 config/m88k/tm-m88k.h, config/m68k/tm-news.h,
2512 config/m68k/tm-delta68.h, config/m68k/tm-isi.h,
2513 config/m68k/tm-m68k.h, config/m32r/tm-m32r.h,
2514 config/i960/tm-i960.h, config/i386/tm-i386v.h,
2515 config/i386/tm-i386.h, config/h8500/tm-h8500.h,
2516 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
2517 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h,
2518 config/convex/tm-convex.h, config/arc/tm-arc.h,
2519 config/arm/tm-arm.h, config/alpha/tm-alpha.h,
2520 config/a29k/tm-a29k.h: Re-write definition of FRAME_NUM_ARGS so
2521 that it returns NUM_ARGS as a result instead of setting a variable
2522 as a side effect.
2523
2524 * ns32k-tdep.c (merlin_frame_num_args), tahoe-tdep.c
2525 (tahoe_frame_num_args), vax-tdep.c (vax_frame_num_args),
2526 m68k-tdep.c (news_frame_num_args, delta68_frame_num_args,
2527 isi_frame_num_args), convex-tdep.c (convex_frame_num_args): New
2528 functions.
2529
2530 * stack.c (print_args_stub): Update use of FRAME_NUM_ARGS.
2531
2532Mon May 24 11:57:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
2533
2534 * remote.c (remote_xfer_memory): Re-write with assumption that
2535 REMOTE_TRANSLATE_XFER_ADDRESS is defined. Pass targ_addr and
2536 targ_len by reference.
2537 (REMOTE_TRANSLATE_XFER_ADDRESS): Provide default definition.
2538
2539 * remote-d10v.c (remote_d10v_translate_xfer_address): Update.
2540 * config/d10v/tm-d10v.h (REMOTE_TRANSLATE_XFER_ADDRESS): Update.
2541
2542Mon May 24 12:10:58 1999 Andrew Cagney <cagney@amy.cygnus.com>
2543
2544 * value.h (default_push_arguments): Add function declaration.
2545
2546 * alpha-tdep.c (alpha_about_to_return), gdbarch.c (verify_gdbarch,
2547 arch_ok, set_arch), command.c (find_cmd), infrun.c
2548 (follow_inferior_fork, follow_fork, follow_vfork,
2549 set_schedlock_func, is_internal_shlib_eventpoint,
2550 stopped_for_internal_shlib_event, stopped_for_shlib_catchpoint,
2551 xdb_handle_command), infcmd.c (run_no_args_command, go_command),
2552 symfile.c (add_filename_language, set_ext_lang_command,
2553 info_ext_lang_command, init_filename_language_table), symtab.c
2554 (overload_list_add_symbol), defs.h (default_get_saved_register),
2555 ax-general.c (grow_expr, append_const, read_const, generic_ext):
2556 Ditto.
2557
2558 * infrun.c (currently_stepping): Ditto. Make static.
2559
2560 * valops.c (hand_function_call): Explictly type static variable
2561 ``checked''.
2562
2563Mon May 24 08:36:18 1999 Andrew Cagney <cagney@b1.cygnus.com>
2564
2565 * d10v-tdep.c (d10v_breakpoint_from_pc, d10v_register_name,
2566 d10v_register_byte, d10v_register_raw_size,
2567 d10v_register_virtual_size, d10v_register_virtual_type,
2568 d10v_make_daddr, d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
2569 d10v_convert_iaddr_to_raw, d10v_convert_daddr_to_raw,
2570 d10v_store_struct_return, d10v_store_return_value,
2571 d10v_extract_struct_value_address, d10v_frame_saved_pc,
2572 d10v_frame_args_address, d10v_frame_locals_address,
2573 d10v_saved_pc_after_call): New functions.
2574
2575 * config/d10v/tm-d10v.h (REGISTER_BYTE, REGISTER_RAW_SIZE,
2576 REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN,
2577 D10V_MAKE_DADDR, D10V_MAKE_IADDR, D10V_DADDR_P, D10V_IADDR_P,
2578 D10V_CONVERT_DADDR_TO_RAW, D10V_CONVERT_IADDR_TO_RAW,
2579 STORE_STRUCT_RETURN, STORE_RETURN_VALUE,
2580 EXTRACT_STRUCT_VALUE_ADDRESS, SAVED_PC_AFTER_CALL, FRAME_SAVED_PC,
2581 FRAME_ARGS_ADDRESS): Re-define using new functions.
2582
2583 * config/d10v/tm-d10v.h (BREAKPOINT_FROM_PC): Replace BREAKPOINT.
2584 (REGISTER_NAME): Replace REGISTER_NAMES.
2585
2586 * utils.c (core_addr_lessthan, core_addr_greaterthan): New
2587 functions.
2588 * defs.h (core_addr_lessthan, core_addr_greaterthan): Declare.
2589
2590Sat May 22 16:44:06 1999 Andrew Cagney <cagney@b1.cygnus.com>
2591
2592 * utils.c (n_spaces): Handle case where first call has N equal to
2593 zero.
2594 (print_spaces): Use n_spaces.
2595
2596Fri May 21 11:23:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
2597
2598 * valops.c (value_push): Remove conditional definition based on
2599 absense of macro PUSH_ARGUMENTS. Pass SP and STRUCT_ADDR by
2600 reference.
2601 (default_push_arguments): New function.
2602
2603 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
2604 config/sparc/tm-sparc.h, config/sparc/tm-sp64.h,
2605 config/sh/tm-sh.h, config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
2606 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
2607 config/mips/tm-mips.h, config/m32r/tm-m32r.h,
2608 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
2609 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h, config/arm/tm-arm.h,
2610 config/alpha/tm-alpha.h: Update definition of PUSH_ARGUMENTS.
2611 Return updated SP.
2612
2613 * rs6000-tdep.c (rs6000_push_arguments): Rename push_arguments.
2614
2615Thu May 20 12:18:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
2616
2617 * blockframe.c (get_prev_frame): Remove #ifdef around test for
2618 FRAMELESS_FUNCTION_INVOCATION.
2619 (get_prev_frame): Change FRAMELESS_FUNCTION_INVOCATION call to a
2620 function invocation.
2621 * i386-tdep.c (i386_frame_num_args), stack.c (frame_info): Ditto.
2622 * config/z8k/tm-z8k.h, config/w65/tm-w65.h, config/vax/tm-vax.h,
2623 config/sparc/tm-sparc.h, config/sh/tm-sh.h,
2624 config/rs6000/tm-rs6000.h, config/pa/tm-hppa.h,
2625 config/mips/tm-mips.h, config/m88k/tm-m88k.h,
2626 config/m68k/tm-m68k.h, config/i960/tm-i960.h,
2627 config/i386/tm-sun386.h, config/i386/tm-i386v.h,
2628 config/i386/tm-i386.h, config/h8500/tm-h8500.h,
2629 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
2630 config/d30v/tm-d30v.h, config/d10v/tm-d10v.h,
2631 config/convex/tm-convex.h, config/arm/tm-arm.h,
2632 config/arc/tm-arc.h, config/alpha/tm-alpha.h,
2633 config/a29k/tm-a29k.h: Update FRAMELESS_FUNCTION_INVOCATION.
2634 * fr30-tdep.c (fr30_frameless_function_invocation), convex-tdep.c
2635 (convex_frameless_function_invocation), arm-tdep.c
2636 (arm_frameless_function_invocation): New functions.
2637
26381999-05-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2639
2640 * top.c: Change dates in comments to ISO format.
2641
2642 * event-top.c: Ditto.
2643 * event-loop.c: Ditto.
2644 * main.c: Ditto.
2645
9e086581
JM
26461999-05-19 Keith Seitz <keiths@cygnus.com>
2647
96baa820
JM
2648 * config/mcore/tm-mcore.h (BELIEVE_PCC_PROMOTION): Define. We
2649 really do want to believe what gcc tells us about types...
2650
26511999-05-19 Keith Seitz <keiths@cygnus.com>
2652
2653 * config/mcore/tm-mcore.h (FRAME_ARGS_ADDRESS): Define to a function.
2654 (FRAME_LOCALS_ADDRESS): Ditto.
2655 * mcore-tdep.c (mcore_frame_args_addcress): New function.
2656 (mcore_frame_locals_address): New function.
2657
9e086581
JM
2658 * monitor.c (monitor_open): Only assume we have eight
2659 breakpoints if the monitor implementation does not tell
2660 us how many there really are. Alloc memory for these
2661 dynamically.
2662 (monitor_close): Free memory associated with breakpoint
2663 storage.
2664 (monitor_insert_breakpoint): Don't rely on a hardcoded
2665 number of breakpoints.
2666 (monitor_remove_breakpoint): Ditto.
2667 (NUM_MONITOR_BREAKPOINTS): Removed and replaced with monitor_ops
2668 specification.
2669 * monitor.h (struct monitor_ops): Add new member so that the
2670 individual monitor implementations can tell us how many
2671 breakpoints the monitor supports.
2672
96baa820
JM
2673 * mcore-rom.c (init_picobug_cmds): Add number of breakpoints supported
2674 by picobug monitor.
2675
9e086581
JM
26761999-05-18 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2677
2678 From Philippe De Muyter <phdm@macqel.be>:
2679 * event-loop.h: Include sys/wait.h only if HAVE_SYS_WAIT_H.
2680
96baa820
JM
26811999-05-17 Keith Seitz <keiths@cygnus.com>
2682
2683 * configure.tgt: Add MCore target.
2684 * Makefile.in: Add mcore-tdep.c and mcore-rom.c
2685 * config/mcore/tm-mcore.h: New file.
2686 * config/mcore/mcore.mt: New file.
2687 * mcore-rom.c: New file.
2688 * mcore-tdep.c: New file.
2689
9e086581
JM
26901999-05-17 Fernando Nasser <fnasser@totem.to.cygnus.com>
2691
392a587b
JM
2692 * top.c (print_command_line): Added the missing stream argument.
2693 * gdbcmd.h: Added argument to prototype.
2694 * command.c: Fixed call to include extra argument.
2695 * breakpoint.c: Same.
9e086581
JM
2696
26971999-05-14 Jim Blandy <jimb@zwingli.cygnus.com>
2698
2699 Targets are #defining PREPARE_TO_PROCEED with inconsistent numbers
2700 of arguments. Since the Mach 3 target needs an argument, we'll
2701 make things consistent by adding an argument everywhere.
2702 * infrun.c (proceed): Pass an argument to PREPARE_TO_PROCEED.
2703 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Add ignored argument
2704 to definition.
2705
27061999-05-11 Stan Shebs <shebs@andros.cygnus.com>
2707
2708 Fri Apr 23 13:27:34 PDT 1999 Toshiyasu Morita (tm@netcom.com)
2709 * sh-stub.c: Mostly localize processor dependencies.
2710
cd0fc7c3
SS
27111999-05-10 Martin Hunt <hunt@cygnus.com>
2712
2713 * debugify.c, debugify.h: Removed because they are no
2714 longer used.
2715
27161999-05-08 Jim Blandy <jimb@zwingli.cygnus.com>
2717
2718 * infrun.c (_initialize_infrun): Handle TARGET_SIGNAL_LWP,
2719 TARGET_SIGNAL_WAITING, and TARGET_SIGNAL_CANCEL like SIGALRM or
2720 SIGIO --- pass them through to the inferior silently.
2721 * target.h (enum target_signals): Add TARGET_SIGNAL_CANCEL, for
2722 Solaris's SIGCANCEL.
2723 * target.c (target_signal_from_host, target_signal_to_host): Add
2724 mapping between SIGCANCEL and TARGET_SIGNAL_CANCEL.
2725 (signals): Add entry for SIGCANCEL.
2726
27271999-05-07 Stan Shebs <shebs@andros.cygnus.com>
2728
2729 After years of talking about it, finally break up the
2730 wait_for_inferior loop.
2731 * infrun.c (struct execution_control_state): New struct,
2732 holds what used to be local vars governing wfi behavior.
2733 (init_execution_control_state): New function, was code in
2734 wfi that set up execution control state.
2735 (handle_inferior_event): New function, was body of main
2736 wfi loop. Rewrite all local var references to go through
2737 the ecs structure passed into this function.
2738 (wait_for_inferior): Rewrite to set up and use execution control
2739 state, and to call the new functions.
2740 (currently_stepping): New function, was the macro
2741 CURRENTLY_STEPPING.
2742 (enum infwait_states): Rename from wfi_states.
2743 (infwait_normal_state, etc): Similarly.
2744
2745Thu May 6 15:25:32 1999 Philippe De Muyter <phdm@macqel.be>
2746
2747 * coffread.c (coff_symtab_read): Call `record_line' with the line
2748 number of the ".bf" symbol only for one-line functions.
2749
27501999-05-06 Michael Snyder <msnyder@cleaver.cygnus.com>
2751
2752 * Makefile.in: thread.o depends on target.h.
2753
27541999-05-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2755
2756 * event-top.c (change_line_handler): Use POLLIN instead of
2757 POLLRDNORM, for compatibility with Linux.
2758 (setup_event_loop): Ditto.
2759
27601999-05-06 Jim Blandy <jimb@zwingli.cygnus.com>
2761
2762 * mips-tdep.c (heuristic_proc_start): Rewrite cryptic error
2763 message about hitting the "heuristic fence post" with something
2764 that actually gives the user a fighting chance of figuring out
2765 why GDB is unhappy.
2766
27671999-05-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2768
2769 * top.c: Include event-loop.h.
2770 (init_main): Add async version of 'set prompt' command.
2771 If in async mode define the editing and annotate set
2772 commands in a different way.
2773 Initialize new variable asyn_command_editing_p to 1.
2774 Initialize the gdb prompt for async mode.
2775 (quit_cover): Make not static, for use by the event loop.
2776 (gdb_init): Call async_init_signals for the asynchronous case.
2777 (source_line_number, source_file_name, source_error,
2778 source_pre_error, history_expansion_p): Make non-static, so
2779 event-top.c can use them.
2780 (command_loop_marker): Make non-static, for use in event-top.c.
2781 Include event-loop.h.
2782
2783 * top.h: Add prototype for async_init_signals.
2784 (SET_TOP_LEVEL): Move here from main.c.
2785 Add setup_event_loop to exported functions.
2786
2787 * defs.h: Add async_hook to exported variables.
2788
2789 * main.c (SET_TOP_LEVEL): Move to top.h, so that it is visible in
2790 event-loop.c. Add new global variable async to determine whether
2791 we are running in async mode or not.
2792 (main): Add support for --async switch. Use async_hook to call
2793 setup_event_loop, when running in async mode.
2794
2795 * event-top.c: New file. Gdb input line handler and command line
2796 handler for the event loop. Initialization of signal handlers.
2797 All the handled signals have handlers called handle_<signalname>.
2798 Set up all the appropriate tokens for asynchronous signal
2799 handling.
2800
2801 * event-loop.h: New file. Data structures and definitions for the
2802 event loop.
2803
2804 * event-loop.c: New file. Functions for the event loop
2805 implementation.
2806
2807 * config.in: Regenerate with autoheader.
2808
2809 * configure.in (AC_CHECK_FUNCS): Add poll to list of functions
2810 to be checked for.
2811
2812 * configure: Regenerate.
2813
2814 * Makefile.in (SFILES): Add new source files.
2815 (eventloop_h): Define.
2816 (COMMON_OBS): Add new object files.
2817 (event-loop.o): Add rule for target object.
2818 (event-top.o): Ditto.
2819
28201999-05-05 Stan Shebs <shebs@andros.cygnus.com>
2821
2822 * infrun.c (wait_for_inferior): Transform breaks and continues
2823 into gotos, move the target_wait to the very top of the loop.
2824
28251999-05-05 Jonathan Larmour <jlarmour@cygnus.co.uk>
2826
2827 * configure.in: Ensure that GDB links with libuser32.a under
2828 cygwin because libreadline requires it.
2829 * Makefile.in (WIN32LIBS): Substitute in result from configure
2830 * configure: regenerate
2831
28321999-05-04 Jim Blandy <jimb@zwingli.cygnus.com>
2833
2834 Fix from John Rigby. Richard Henderson says it seems okay.
2835 * alpha-tdep.c (PROC_DUMMY_FRAME): As long as we're abusing fields
2836 of (proc)->pdr, we ought to at least abuse one large enough to
2837 hold the value we're trying to store in it. iopt is only 32 bits
2838 wide; cbLineOffset is a bfd_vma.
2839
b83266a0
SS
28401999-05-04 DJ Delorie <dj@cygnus.com>
2841
2842 DJGPP changes from Robert Hoehne <robert.hoehne@gmx.net>
2843
2844 * ser-go32.c: correct includes
2845 * source.c (openp): use ROOTED_P instead of SLASH_P
2846 * go32-nat.c: enhance exception and NPX handling
2847 (go32_kill_inferior): fix small bug killing inferior
2848 * configure.in: don't look for termcap with djgpp
2849 * configure: rebuild
2850
28511999-05-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2852
2853 * main.c (main): Comment out unused and undocumented command line
2854 option '-'.
2855
28561999-04-30 Jim Blandy <jimb@zwingli.cygnus.com>
2857
2858 Cleanup from Philippe De Muyter:
2859 * configure.in (BFD_NEED_DECLARATION): Check also for strstr.
2860 * acconfig.h (NEED_DECLARATION_MALLOC, NEED_DECLARATION_REALLOC,
2861 NEED_DECLARATION_FREE, NEED_DECLARATION_STRERROR): Define slots
2862 removed; they are now generated automatically.
2863 * gdb_string.h (strstr): Provide function prototype if
2864 NEED_DECLARATION_STRSTR.
2865 * configure, config.in: Regenerated.
2866
2867Fri Apr 30 11:16:09 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
2868
2869 * target.h (to_find_new_threads): new target ops vector.
2870 (target_find_new_threads): define.
2871 * target.c (update_current_target): inherit new target ops vector.
2872 * remote.c: Setup to_find_new_threads vector.
2873 * sol-thread.c: ditto.
2874 * thread.c (target_find_new_threads): rename: local_find_new_threads.
2875 (info_threads_command): call target_find_new_threads by new method,
2876 as a target ops vector, rather than previous macro definition method.
2877 * infcmd.c (go_command): define only if in xdb mode.
2878 * procfs.c: fix typo in comment.
2879
2880Fri Apr 30 01:02:05 1999 Jeffrey A Law (law@cygnus.com)
2881
2882 * hppah-nat.c: Fix various coding convention violations introduced
2883 by HP.
2884 (child_acknowledge_created_inferior): Do nothing if PT_SET_EVENT_MASK
2885 is not defined.
2886
28871999-04-28 Stan Shebs <shebs@andros.cygnus.com>
2888
2889 * TODO: Add some items inspired by review of the manual.
2890
2891Tue Apr 27 17:38:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
2892
2893 * config/z8k/tm-z8k.h, config/v850/tm-v850.h,
2894 config/tic80/tm-tic80.h, config/sparc/tm-sparc.h,
2895 config/sh/tm-sh.h, config/pyr/tm-pyr.h, config/pa/tm-hppa.h,
2896 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
2897 config/mips/tm-mips.h, config/m88k/tm-m88k.h,
2898 config/m68k/tm-m68k.h, config/m32r/tm-m32r.h,
2899 config/i960/tm-i960.h, config/i386/tm-i386.h,
2900 config/h8500/tm-h8500.h, config/h8300/tm-h8300.h,
2901 config/fr30/tm-fr30.h, config/d30v/tm-d30v.h,
2902 config/d10v/tm-d10v.h, config/alpha/tm-alpha.h,
2903 config/arm/tm-arm.h, config/a29k/tm-a29k.h, config/arc/tm-arc.h:
2904 Change SKIP_PROLOGUE and SKIP_PROLOGUE_FRAMELESS_P macros so that
2905 they return the new address.
2906
2907 * sparc-tdep.c (sparc_skip_prologue), hppa-tdep.c
2908 (hppa_skip_prologue), m88k-tdep.c
2909 (m88k_skip_prologue), i960-tdep.c
2910 (i960_skip_prologue), arc-tdep.c
2911 (arc_skip_prologue), a29k-tdep.c (a29k_skip_prologue): Rename
2912 skip_prologue function.
2913
2914 * config/m68k/tm-isi.h: Convert macro SKIP_PROLOGUE into a new
2915 function.
2916 * m68k-tdep.c (isi_skip_prologue): That new function.
2917 * vax-tdep.c (vax_skip_prologue), config/vax/tm-vax.h: Ditto.
2918 * tahoe-tdep.c (tahoe_skip_prologue), config/tahoe/tm-tahoe.h: Ditto.
2919 * rs6000-tdep.c (rs6000_skip_prologue), config/rs6000/tm-rs6000.h:
2920 Ditto.
2921 * ns32k-tdep.c (umax_skip_prologue), config/ns32k/tm-umax.h: Ditto.
2922 * config/ns32k/tm-merlin.h, ns32k-tdep.c (merlin_skip_prologue):
2923 Ditto.
2924 * config/m68k/tm-altos.h, m68k-tdep.c (altos_skip_prologue): Ditto.
2925 * config/convex/tm-convex.h, convex-tdep.c (convex_skip_prologue):
2926 Ditto.
2927
2928 * symtab.c (in_prologue, find_function_start_sal, decode_line_1),
2929 infrun.c (wait_for_inferior), blockframe.c
2930 (frameless_look_for_prologue): Update.
2931 * config/fr30/tm-fr30.h (FRAMELESS_FUNCTION_INVOCATION): Update.
2932
29331999-04-27 Stan Shebs <shebs@andros.cygnus.com>
2934
2935 * TODO: Remove item about DEBUG_EXPRESSIONS, no longer meaningful.
2936
2937 * infrun.c (enum wfi_state): New enum.
2938 (wait_for_inferior): Merge all but one of the target_wait calls
2939 into a single call, add a wfi_state variable to encode which of
2940 the calls is being made.
2941
29421999-04-26 Jim Blandy <jimb@zwingli.cygnus.com>
2943
2944 Fix from Dave Holcomb.
2945 * hpux-thread.c (init_hpux_thread_ops): Use the right function
2946 name when initializing hpux_thread_ops.to_thread_alive.
2947
2948 * coffread.c (coff_symfile_read): If we have a `.stab' section,
2949 but no `.stabstr' section, then print an error message; don't
2950 crash.
2951
29521999-04-26 Jim Blandy <jimb@zwingli.cygnus.com>
2953
2954 1999-04-25 Mark Kettenis <kettenis@gnu.org>
2955
2956 * gnu-nat.c (gnu_attach): Call target_terminal_init before calling
2957 inf_set_traced, since that function calls code that might try to
2958 restore the terminal settings.
2959
2960Mon Apr 26 08:55:46 1999 Andrew Cagney <cagney@b1.cygnus.com>
2961
2962 * gdbarch.h, gdbarch.c: More format cleanups.
2963
0f71a2f6
JM
2964Sun Apr 25 18:54:51 1999 Andrew Cagney <cagney@b1.cygnus.com>
2965
2966 * gdbarch.h (CALL_DUMMY_STACK_ADJUST_P): Replace
2967 SIZEOF_CALL_DUMMY_STACK_ADJUST_P.
2968 (CALL_DUMMY_STACK_ADJUST): Replace
2969 SIZEOF_CALL_DUMMY_STACK_ADJUST_P.
2970 * gdbarch.c (gdbarch_call_dummy_stack_adjust,
2971 set_gdbarch_call_dummy_stack_adjust): Define.
2972
b83266a0
SS
2973Fri Apr 23 15:00:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
2974
2975 * gdbarch.c (arch_ok): New function. Fix logic test for a valid
2976 architecture.
2977 (set_arch): Use.
2978
7a292a7a
SS
29791999-04-22 Jason Molenda (jsm@bugshack.cygnus.com)
2980
2981 * README: Note that readline is not installed as a part of
2982 make install.
2983
2984Thu Apr 22 21:02:28 1999 Andrew Cagney <cagney@b1.cygnus.com>
2985
0f71a2f6
JM
2986 * gdbarch.h, gdbarch.c (GET_SAVED_REGISTER, get_saved_register):
2987 Add.
2988 (struct gdbarch, verify_gdbarch, gdbarch_alloc, gdbarch_dump,
2989 default_gdbarch): Update.
2990
7a292a7a
SS
2991 * value.h (get_saved_register): Cleanup prototype.
2992 * findvar.c (default_get_saved_register): Rename function
2993 get_saved_register.
2994 (GET_SAVED_REGISTER): Define as default_get_saved_register when
2995 undefined.
2996 (get_saved_register): Always declare. Call GET_SAVED_REGISTER.
2997
2998 * sparc-tdep.c (sparc_get_saved_register): Rename function
2999 get_saved_register.
3000 * config/sparc/tm-sparc.h (GET_SAVED_REGISTER): Update.
3001 * a29k-tdep.c (a29k_get_saved_register): Rename function
3002 get_saved_register.
3003 * config/a29k/tm-a29k.h (GET_SAVED_REGISTER): Update.
3004
3005 * config/d10v/tm-d10v.h, config/powerpc/tm-ppc-eabi.h,
3006 config/h8300/tm-h8300.h, config/m32r/tm-m32r.h,
3007 config/mn10200/tm-mn10200.h, config/mn10300/tm-mn10300.h,
3008 config/sh/tm-sh.h, config/tic80/tm-tic80.h, config/v850/tm-v850.h:
3009 Update macro GET_SAVED_REGISTER so that it calls
3010 generic_get_saved_register.
3011 * v850-tdep.c, tic80-tdep.c, sh-tdep.c, mn10300-tdep.c,
3012 mn10200-tdep.c, m32r-tdep.c, h8300-tdep.c, rs6000-tdep.c: Delete
3013 function get_saved_register.
3014
0f71a2f6
JM
3015Thu Apr 22 13:32:23 1999 Andrew Cagney <cagney@b1.cygnus.com>
3016
3017 * gdbarch.c: Cleanup. Re-order the definition of the ``struct
3018 gdbarch'' initialization functions so that maintenance is more
3019 straightforward.
3020
7a292a7a
SS
3021Thu Apr 22 11:07:21 1999 Andrew Cagney <cagney@b1.cygnus.com>
3022
0f71a2f6
JM
3023 * gdbarch.h, gdbarch.c (use_generic_dummy_frames,
3024 USE_GENERIC_DUMMY_FRAMES): Add.
3025 (struct gdbarch, verify_gdbarch, gdbarch_alloc, gdbarch_dump,
3026 default_gdbarch): Update.
3027
7a292a7a
SS
3028 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
3029 config/sh/tm-sh.h, config/powerpc/tm-ppc-eabi.h,
3030 config/mn10300/tm-mn10300.h, config/mn10200/tm-mn10200.h,
3031 config/m32r/tm-m32r.h, config/h8300/tm-h8300.h,
3032 config/fr30/tm-fr30.h, config/d10v/tm-d10v.h: Give the
3033 USE_GENERIC_DUMMY_FRAMES macro the value one.
3034 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Default to a value of
3035 zero.
3036
3037 * blockframe.c (generic_find_dummy_frame,
3038 generic_pc_in_call_dummy, generic_read_register_dummy,
3039 generic_push_dummy_frame, generic_pop_current_frame,
3040 generic_pop_dummy_frame, generic_frame_chain_valid,
3041 generic_get_saved_register): Always define.
3042
3043 * breakpoint.c (frame_in_dummy): Convert #ifdef
3044 USE_GENERIC_DUMMY_FRAMES to runtime test.
3045
3046 * rs6000-tdep.c (pop_frame, push_arguments, push_arguments,
3047 push_arguments, frame_saved_pc, rs6000_frame_chain,
3048 rs6000_frame_chain): Convert #ifdef USE_GENERIC_DUMMY_FRAMES to
3049 runtime test.
3050 (get_saved_register): Always define.
3051
0f71a2f6
JM
3052Wed Apr 21 17:15:52 1999 Andrew Cagney <cagney@b1.cygnus.com>
3053
3054 * gdbarch.c (gdbarch_dump): Fix robustness check on
3055 BELIEVE_PCC_PROMOTION_TYPE.
3056
3057Wed Apr 21 15:39:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
3058
3059 * gdbarch.h (TARGET_BYTE_ORDER_SELECTABLE_P): When multi-arch,
3060 force selectable byte order.
3061 (CALL_DUMMY): Check for CALL_DUMMY definition when multi-arch. Are
3062 incompatible.
3063 * gdbarch.c (verify_gdbarch): Check call_dummy_stack_adjust.
3064
7a292a7a
SS
3065Wed Apr 21 14:45:44 1999 Andrew Cagney <cagney@b1.cygnus.com>
3066
0f71a2f6
JM
3067 * gdbarch.c (gdbarch_update): Move dump-arch code from here.
3068 (gdbarch_dump): To here. Make more robust.
3069 * gdbarch.h (gdbarch_dump): Add prototype.
3070
7a292a7a
SS
3071 * gdbarch.c (enum set_arch): Declare.
3072 (set_arch): Add type parameter. Only disable
3073 ``target_architecture_auto'' when set_arch_manual.
3074 (set_architecture, set_architecture_from_arch_mach,
3075 set_architecture_from_file): Update.
0f71a2f6
JM
3076 (set_arch): When ``gdbarch_debug'', gdbarch_dump() the current
3077 architecture.
7a292a7a
SS
3078
3079Wed Apr 21 10:48:53 1999 Andrew Cagney <cagney@b1.cygnus.com>
3080
3081 * frame.h (generic_pc_in_call_dummy): Make signature consistent
3082 with other pc_in_call_dummy functions by adding SP parameter.
3083 * blockframe.c (generic_pc_in_call_dummy): Update. Pass SP and
3084 not FP to generic_find_dummy_frame().
3085 * breakpoint.c (frame_in_dummy): Update.
3086 * config/v850/tm-v850.h, config/tic80/tm-tic80.h,
3087 config/sh/tm-sh.h, config/mn10300/tm-mn10300.h,
3088 config/mn10200/tm-mn10200.h, config/m32r/tm-m32r.h,
3089 config/h8300/tm-h8300.h, config/fr30/tm-fr30.h,
3090 config/d10v/tm-d10v.h: Update PC_IN_CALL_DUMMY definition.
3091
3092Tue Apr 20 12:15:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
3093
3094 * config/d10v/tm-d10v.h (GDB_TARGET_IS_D10V): Move from here.
3095 * gdbarch.h (GDB_TARGET_IS_D10V): To here. Implement using
3096 TARGET_ARCHITECTURE.
3097 (D10V_MAKE_DADDR, D10V_MAKE_IADDR): Provide fatal default
3098 definitions.
3099
3100 * valops.c (value_at): Replace #ifdef GDB_TARGET_IS_D10V code with
3101 runtime test.
3102 (value_fetch_lazy): Ditto.
3103 * values.c (unpack_long): Ditto.
3104 * printcmd.c (print_frame_args): Ditto.
3105
0f71a2f6
JM
3106Sat Apr 17 15:39:33 1999 Andrew Cagney <cagney@b1.cygnus.com>
3107
3108 * gdbarch.h: Cleanup multi-arch comments.
3109
3110Fri Apr 16 15:39:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
3111
3112 * gdbarch.h: Provide definition if GDB_MULTI_ARCH > 1 or
3113 GDB_MULTI_ARCH > 0 and no previous definition.
3114 * gdbarch.c (verify_gdbarch): Only verify a full multi-arch
3115 target.
3116
7a292a7a
SS
31171999-04-15 Stan Shebs <shebs@andros.cygnus.com>
3118
3119 * infrun.c (wait_for_inferior) [HAVE_STEPPABLE_WATCHPOINT,
3120 HAVE_NONSTEPPABLE_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT]: Test
3121 at runtime instead of compile time.
3122
31231999-04-14 Philippe De Muyter <phdm@macqel.be>
3124
3125 * breakpoint.c (maintenance_info_breakpoints): Function made
3126 static to match previous prototype.
3127
3128 * coffread.c (coff_record_line): Static function removed.
3129 (enter_linenos): Call `record_line' instead of `coff_record_line'.
3130 (FILE-LEVEL, coff_start_symtab, coff_end_symtab): `coff_record_line'
3131 -related stuff removed.
3132 (coff_symfile_read): Redundant statement removed.
3133 (coff_symtab_read): `record_line' is now called with the first line
3134 number of each function, given by the ".bf" symbol. This solves
3135 the line-number bug for one-line functions.
3136
3137Wed Apr 14 11:09:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
3138
0f71a2f6
JM
3139 * gdbarch.h (BELIEVE_PCC_PROMOTION_TYPE, BELIEVE_PCC_PROMOTION):
3140 Add multi-arch definitions.
3141 * gdbarch.c (gdbarch_believe_pcc_promotion,
3142 gdbarch_believe_pcc_promotion_type): New functions.
3143 (gdbarch_update): Update
3144 (struct gdbarch default_gdbarch): Update.
3145
7a292a7a
SS
3146 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Provide default.
3147 (define_symbol): Change #if BELIEVE_PCC_PROMOTION_TYPE and #if
3148 BELIEVE_PCC_PROMOTION to if().
3149
31501999-04-13 Jason Molenda (jsm@bugshack.cygnus.com)
3151
3152 * configure.in (HAVE_MULTIPLE_PROC_FDS): Don't define if we're
3153 on a Solaris host (of any architecture).
3154 * configure: Regenerated.
3155
0f71a2f6
JM
3156Wed Apr 14 08:23:32 1999 Andrew Cagney <cagney@b1.cygnus.com>
3157
3158 * gdbarch.c (SET_GDBARCH, GET_GDBARCH, FSET_GDBARCH): New macros.
3159 (gdbarch_byte_order, gdbarch_long_bit, gdbarch_long_long_bit,
3160 gdbarch_ptr_bit, gdbarch_call_dummy_location,
3161 gdbarch_call_dummy_address, gdbarch_call_dummy_address,
3162 gdbarch_call_dummy_breakpoint_offset,
3163 gdbarch_call_dummy_breakpoint_offset, gdbarch_call_dummy_length,
3164 gdbarch_pc_in_call_dummy, dbarch_call_dummy_breakpoint_offset_p,
3165 dbarch_call_dummy_p, dbarch_call_dummy_words,
3166 dbarch_sizeof_call_dummy_words, dbarch_call_dummy_stack_adjust,
3167 dbarch_call_dummy_stack_adjust_p): Define using new macros.
3168
7a292a7a
SS
31691999-04-13 Jason Molenda (jsm@bugshack.cygnus.com)
3170
3171 * rom68k-rom.c (init_rom68k_cmds): Fix an accidental substitution
3172 in monitor command strings, fix some formatting mistakes.
3173
31741999-04-13 Stan Shebs <shebs@andros.cygnus.com>
3175
3176 * configure.tgt (arm-*-*): Whack another vestige of wingdb.
3177
31781999-04-12 James Ingham <jingham@cygnus.com>
3179
3180 * arm-tdep.c (arm_pop_frame): don't clobber the previous frame's
3181 stack pointer (stored in frame->framereg's register) BEFORE
3182 reading it. This was causing "return" to behave very oddly.
3183
31841999-04-12 Stan Shebs <shebs@andros.cygnus.com>
3185
3186 * NEWS: Mention tic80.
3187
31881999-04-12 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3189
3190 * a68v-nat.c: Remove reference to 'extern char registers[]' throughout.
3191 * altos-xdep.c: Ditto.
3192 * arm-xdep.c: Ditto.
3193 * convex-xdep.c: Ditto.
3194 * cxux-nat.c: Ditto.
3195 * hp300ux-nat.c: Ditto.
3196 * hppab-nat.c: Ditto.
3197 * i386aix-nat.c: Ditto.
3198 * i386mach-nat.c: Ditto.
3199 * m88k-nat.c: Ditto.
3200 * ptx4-nat.c: Ditto.
3201 * pyr-xdep.c: Ditto.
3202 * rs6000-nat.c: Ditto.
3203 * sun3-nat.c: Ditto.
3204 * sun386-nat.c: Ditto.
3205 * symm-nat.c: Ditto.
3206 * umax-xdep.c: Ditto.
3207 * i386v4-nat.c: Ditto. Also include inferior.h.
3208 * m68k-tdep.c: Ditto. Also include inferior.h.
3209
3210Mon Apr 12 15:57:16 1999 Andrew Cagney <cagney@b1.cygnus.com>
3211
3212 * inferior.h (CALL_DUMMY_STACK_ADJUST, CALL_DUMMY_STACK_ADJUST_P):
3213 Provide default definitions.
3214 * valops.c (hand_function_call): Replace #ifdef
3215 CALL_DUMMY_STACK_ADJUST with if (CALL_DUMMY_STACK_ADJUST_P).
3216
0f71a2f6
JM
3217 * gdbarch.h (SIZEOF_CALL_DUMMY_STACK_ADJUST,
3218 (SIZEOF_CALL_DUMMY_STACK_ADJUST_P): Define
3219 * gdbarch.c (struct gdbarch): Add call_dummy_stack_adjust,
3220 call_dummy_stack_adjust_p.
3221 (gdbarch_call_dummy_stack_adjust,
3222 set_gdbarch_call_dummy_stack_adjust,
3223 gdbarch_call_dummy_stack_adjust_p,
3224 set_gdbarch_call_dummy_stack_adjust_p): New functions.
3225 (default_gdbarch): Update.
3226
7a292a7a
SS
32271999-04-09 Jim Blandy <jimb@zwingli.cygnus.com>
3228
3229 * ax-gdb.c, ax-gdb.h, ax-general.c, ax.h: Remove RCS Id strings.
3230 They're a pain.
c906108c
SS
3231
3232 * GDB 4.18 released.
7a292a7a 3233 * Makefile.in (VERSION): Bump to 4.18.1.
c906108c 3234
7a292a7a
SS
3235Thu Apr 8 16:04:34 1999 Andrew Cagney <cagney@b1.cygnus.com>
3236
3237 * inferior.h (CALL_DUMMY_P, CALL_DUMMY_WORDS,
3238 SIZEOF_CALL_DUMMY_WORDS): Define macros.
3239 (PUSH_DUMMY_FRAME, FIX_CALL_DUMMY, STORE_STRUCT_RETURN): Provide
3240 fatal default.
3241
3242 * inferior.h, gdbarch.c (call_dummy_words,
3243 sizeof_call_dummy_words): Declare/Define variables.
3244 * valops.c (value_arg_coerce, find_function_addr,
3245 call_function_by_hand): Always define.
3246 (hand_function_call): Rename CALL_DUMMY version of
3247 call_function_by_hand. Make static. Add prototype.
3248 (hand_function_call): Update. Allocate space for *dummy and
3249 *dummy1 using alloca.
3250 * breakpoint.c (frame_in_dummy): Update.
c906108c 3251
0f71a2f6
JM
3252 * gdbarch.h (CALL_DUMMY_P, CALL_DUMMY_WORDS,
3253 SIZEOF_CALL_DUMMY_WORDS): Define.
3254 * gdbarch.c (gdbarch_call_dummy_p, set_gdbarch_call_dummy_p,
3255 gdbarch_call_dummy_words, set_gdbarch_call_dummy_words,
3256 gdbarch_sizeof_call_dummy_words,
3257 set_gdbarch_sizeof_call_dummy_words): New functions.
3258 (gdbarch_alloc, verify_gdbarch, gdbarch_update, struct
3259 default_gdbarch): Update.
3260
7a292a7a
SS
32611999-04-08 Jason Molenda (jsm@bugshack.cygnus.com)
3262
3263 * monitor.c (monitor_read_memory): If a MO_GETMEM_NEEDS_RANGE
3264 monitor, increase the end address by one byte.
3265
32661999-04-08 Jason Molenda (jsm@bugshack.cygnus.com)
3267
3268 * dbug-rom.c (init_dbug_cmds): Fix strings in
3269 dbug_cmds.{step,clr_break,clr_all_break,fill} to send correct
3270 commands to the monitor.
3271
32721999-04-08 Keith Seitz <keiths@cygnus.com>
3273
3274 * m32r-stub.c (branchDestination): Undo overly ambitious
3275 sed script's conversion of cast from "char" to "unsigned char".
3276 Return offset should now be properly computed.
3277
3278Thu Apr 8 14:13:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
3279
3280 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): New macro.
3281 Non-zero when CALL_DUMMY_BREAKPOINT_OFFSET is valid.
3282
3283 * infcmd.c (breakpoint_auto_delete_contents): Always define.
3284 (run_stack_dummy): Update.
3285 * infrun.c (wait_for_inferior): Update
3286
0f71a2f6
JM
3287 * gdbarch.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): New macro.
3288 * gdbarch.c (set_gdbarch_call_dummy_breakpoint_offset_p,
3289 gdbarch_call_dummy_breakpoint_offset_p): New functions.
3290 (struct gdbarch, gdbarch_alloc, default_gdbarch, gdbarch_update):
3291 Update.
3292
7a292a7a
SS
32931999-04-07 Stan Shebs <shebs@andros.cygnus.com>
3294
3295 * MAINTAINERS: Mark Alexander can no longer maintain
3296 h8300 and other embedded targets, sniff.
c906108c
SS
3297
32981999-04-06 Stan Shebs <shebs@andros.cygnus.com>
3299
7a292a7a
SS
3300 * inftarg.c (child_wait): Initialize execd_pathname.
3301 * target.c (debug_to_has_execd): Handle NULL execd_pathname.
3302
c906108c
SS
3303 * solib.c (clear_solib): Don't call disable_breakpoints_in_shlibs,
3304 this breaks rerunning on sun4 native.
3305
7a292a7a 33061999-04-06 Jim Blandy <jimb@zwingli.cygnus.com>
c906108c 3307
7a292a7a
SS
3308 * config/sparc/nm-linux.h: Don't redefine PT_ATTACH to use the
3309 deprecated PTRACE_SUNATTACH compatibility commands. The
3310 definitions from <sys/ptrace.h> are fine.
3311
33121999-04-06 Martin Hunt <hunt@cygnus.com>
3313
3314 * annotate.h: Declare annotate_signal_hook.
3315
3316 * annotate.c (annotate_signal): Add a call to
3317 annotate_signal_hook().
3318
33191999-04-06 Jim Blandy <jimb@zwingli.cygnus.com>
3320
3321 * dwarf2read.c (dwarf_decode_lines): Don't call record_line when
3322 we hit a DW_LNE_end_sequence instruction.
c906108c
SS
3323
3324 * README: Note that GDB requires an ANSI C compiler, and explain
3325 how to get GCC.
3326
3327 * README: Update.
c906108c 3328
7a292a7a 33291999-04-05 Stan Shebs <shebs@andros.cygnus.com>
c906108c
SS
3330
3331 * NEWS: Add more notes about user-visible changes.
3332
7a292a7a
SS
3333Mon Apr 5 14:56:59 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
3334
3335 * target.c (target_signal_to_string): check for signal
3336 number in range; otherwise if the target board returns
3337 a bogus signal number we might core dump (per David Taylor).
3338
33391999-04-05 David Taylor <taylor@ryobi.cygnus.com>
3340
3341 * utils.c (fputs_maybe_filtered): test value of
3342 pagination_enabled before paginating.
3343
33441999-04-02 James Ingham <jingham@cygnus.com>
3345
3346 * blockframe.c (get_prev_frame): Remove the redundant
3347 get_prev_frame_info. It is now exactly the same as
3348 get_prev_frame, so there is no reason to have both functions.
3349
3350 * rs6000-tdep.c (rs6000_init_extra_frame_info):
3351 frame.h:
3352 a29k-tdep.c (init_extra_frame_info):
3353 config/a29k/tm-a29k.h:
3354 i386-tdep.c:
3355 Change all references to get_prev_frame_info to get_prev_frame.
3356
33571999-04-02 Stan Shebs <shebs@andros.cygnus.com>
3358
3359 * bcache.c, bcache.h, breakpoint.c, defs.h, expprint.c,
3360 expression.h, gdbarch.c, gdbtypes.c, gdbtypes.h, gnu-nat.c,
3361 gnu-nat.h, hppa-tdep.c, maint.c, monitor.c, objfiles.h, parse.c,
3362 remote-mips.c, remote-sds.c, remote.c, sol-thread.c, symmisc.c,
3363 symtab.h, target.c, top.c, typeprint.c, config/nm-gnu.h: Evaporate
3364 the unused MAINTENANCE_CMDS conditional.
3365
33661999-04-02 James Ingham <jingham@cygnus.com>
3367
3368 * config/arm/tm-arm.h: (EXTRACT_STRUCT_VALUE_ADDRESS): This needs
3369 to call extract_address, not just cast the first 4 bytes, since
3370 the result will be passed to value_at which expects host-byte
3371 order.
3372
3373 * arm-tdep.c (arm_scan_prologue): The prologue_start address was
3374 directly &'ed with 0x03fffffc, rather than using
3375 ADDR_BITS_REMOVE. This would cause inferior function calls to
3376 report the stack incorrectly on return.
3377
3378
33791999-04-02 Keith Seitz <keiths@cygnus.com>
3380
3381 * top.c (ui_loop_hook): Change declaration. Now returns an int.
3382 * win32-nat.c (child_wait): Timeout WaitForDebugEvent and call
3383 the ui_loop_hook if there was no debug event.
3384 * top.c (ui_loop_hook): Change to return an int and include
3385 on all non-Cygwin builds.
3386 * v850ice.c: Change prototype of ui_loop_hook.
3387 (v850ice_wait): Update call to ui_loop_hook.
3388 * ser-unix.c (hardwire_readchar): Enable ui_loop_hook callbacks
3389 for non-Cygwin builds. Check return status of ui_loop_hook and
3390 return a timeout if told to detach. Add more documentation.
3391 * ser-tcp.c (tcp_readchar): Break up timeouts into one second
3392 intervals and call ui_loop_hook so that other UIs can
3393 keep up to date. If ui_loop_hook returns non-zero, then
3394 return SERIAL_TIMEOUT to facilitate detaching from the
3395 target.
3396 * remote.c (remote_interrupted_already): Remove.
3397 (remote_interrupt_twice): Revive.
3398 (remote_interrupt): Call remote_stop to interrupt the target
3399 and install remote_interrupt_twice to take more severe
3400 actions if this fails.
3401 (remote_stop): Only attempt to stop the target. This separates
3402 the command line from other UIs.
3403 * remote-sim.c (gdb_os_poll_quit): Add a call to ui_loop_hook,
3404 if it is defined.
3405
c906108c
SS
34061999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
3407
3408 Fix for cross-debugging on an AIX host from Johanna Svenningsson:
3409 * ax-gdb.h (enum axs_lvalue_kind): Remove trailing comma from enum.
7a292a7a 3410 * ax.h (enum agent_op): Same.
c906108c
SS
3411 * tracepoint.h (enum actionline_type): Same.
3412 * config/xm-aix4.h: Add declaration for termdef.
3413
34141999-03-31 Stan Shebs <shebs@andros.cygnus.com>
3415
3416 * jv-lang.h (dynamics_objfile): Remove decl, conflicts with static
3417 decl in jv-lang.c.
3418
7a292a7a
SS
3419 * infrun.c (follow_inferior_fork): Add ifdefs around
3420 SOLIB_REMOVE_INFERIOR_HOOK.
c906108c 3421
7a292a7a 3422Wed Mar 31 11:39:49 1999 David Taylor <taylor@ryobi.cygnus.com>
c906108c
SS
3423
3424 * valops.c (search_struct_field): revert HP merge change
3425 to this function -- it causes messages to be printed about
3426 member class ambiguity when the compiler is happy.
3427 (search_struct_field_aux): delete -- added as part of HP merge
3428 change; with aforementioned change it is no longer called.
3429
7a292a7a 34301999-03-30 Stan Shebs <shebs@andros.cygnus.com>
c906108c 3431
7a292a7a
SS
3432 Make more HPUX-specific code generic.
3433 * infrun.c: Include top.h.
3434 (MAY_SWITCH_FROM_INFERIOR_PID, MAY_FOLLOW_EXEC,
3435 USE_THREAD_STEP_NEEDED): New native macros.
3436 (may_switch_from_inferior_pid, may_follow_exec,
3437 use_thread_step_needed): New globals.
3438 (follow_inferior_fork): Remove HPUXHPPA ifdef.
3439 (follow_exec): Ditto, also save run target and re-push instead of
3440 always pushing child_ops, add ifdefs around SOLIB_RESTART and
3441 SOLIB_CREATE_INFERIOR_HOOK.
3442 (wait_for_inferior): Use new globals instead of ifdefing HPUXHPPA,
3443 always use printf_filtered to report new threads.
3444 (normal_stop): Ditto.
3445 * target.h, target.c (find_run_target): New function.
3446 * config/pa/nm-hppah.h: Define new macros.
c906108c 3447
7a292a7a 34481999-03-29 Stan Shebs <shebs@andros.cygnus.com>
c906108c 3449
7a292a7a
SS
3450 * top.h: Include setjmp.h here.
3451 * main.c, top.c: Don't include it here.
c906108c 3452
7a292a7a 34531999-03-29 Keith Seitz <keiths@cygnus.com>
c906108c 3454
7a292a7a
SS
3455 * symtab.c (decode_line_1): Take out change which breaks symbols
3456 which include class names and methods, e.g., "Foo::bar".
3457
34581999-03-26 Stan Shebs <shebs@andros.cygnus.com>
3459
3460 * configure.tgt (i[3456]86-*-sysv4.2MP, i[3456]86-*-sysv4.2uw2*):
3461 Recognize both, as i[3456]86-*-sysv4.2*.
3462 (i[3456]86-*-sysv5*): Recognize.
3463
3464 * infrun.c (wait_for_inferior): Remove most #if 0 segments.
3465
3466Fri Mar 26 17:27:27 1999 Andrew Cagney <cagney@b1.cygnus.com>
3467
3468 * blockframe.c (pc_in_call_dummy_on_stack): Fix. Had copied code
3469 from at_entry_point.
3470
3471Thu Mar 25 19:30:02 1999 Andrew Cagney <cagney@amy.cygnus.com>
3472
3473 * gdbarch.c: Include all headers.
0f71a2f6
JM
3474 (struct gdbarch), gdbarch.h (CALL_DUMMY_LOCATION,
3475 CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET,
3476 CALL_DUMMY_BREAKPOINT_OFFSET, CALL_DUMMY_LENGTH,
3477 PC_IN_CALL_DUMMY): Add ``call_dummy_location'',
3478 ``call_dummy_length'', ``pc_in_call_dummy'',
3479 ``call_dummy_start_offset'', ``call_dummy_breakpoint_offset'' to
3480 multi-arch framework.
7a292a7a
SS
3481
3482 * inferior.h, blockframe.c (pc_in_call_dummy_before_text_end,
3483 pc_in_call_dummy_after_text_end, pc_in_call_dummy_on_stack,
3484 pc_in_call_dummy_at_entry_point): Convert PC_IN_CALL_DUMMY macro's
3485 into functions.
3486
3487Tue Mar 23 17:22:57 1999 Philippe De Muyter <phdm@macqel.be>
3488
3489 * remote.c, parse.c: Include ctype.h.
c906108c
SS
3490
34911999-03-24 Stan Shebs <shebs@andros.cygnus.com>
3492
7a292a7a 3493 * configure.host (mips-dec-mach3*): Use mipsm3 not mach3.
c906108c
SS
3494
3495 Attempt to sort out SCO-related configs.
3496 * configure.host (i[3456]86-*-sysv4.2*): Use instead of
3497 i[3456]86-*-sysv4.2MP and i[3456]86-*-sysv4.2uw2*.
3498 (i[3456]86-*-sysv5*): Recognize.
3499 * configure.tgt (i[3456]86-*-sco3.2v5*, i[3456]86-*-sco3.2v4*):
3500 Recognize.
3501
7a292a7a
SS
3502Wed Mar 24 16:19:01 1999 Christopher Faylor <cgf@cygnus.com>
3503
3504 * MAINTAINERS: Add DJ Delorie (dj@cygnus.com) as the djgpp
3505 maintainer.
3506
3507Wed Mar 24 21:19:57 1999 Andrew Cagney <cagney@amy.cygnus.com>
3508
3509 * target.h (enum target_signal): Do not hardwire values of MACH
3510 signals.
3511
35121999-03-14 Ken Raeburn <raeburn@raeburn.org>
3513
3514 * target.h (enum target_signal): Add TARGET_SIGNAL_INFO.
3515 * target.c (signals): Add SIGINFO description.
3516 (target_signal_from_host, target_signal_to_host): Translate
3517 SIGINFO to/from TARGET_SIGNAL_INFO.
3518
c906108c
SS
3519Wed Mar 24 01:01:27 1999 Andrew Cagney <cagney@sludge.cygnus.com>
3520
3521 * rs6000-tdep.c (rs6000_software_single_step): Change SIGNAL to
3522 unsigned int.
3523
7a292a7a 3524 From Rodney Brown <rodneybrown@pmsc.com>
c906108c
SS
3525 * target.h (enum thread_control_capabilities), breakpoint.h (enum
3526 bptype), breakpoint.c (enum insertion_state_t): Strict ISO-C
3527 doesn't allow trailing comma in enum definition.
3528
7a292a7a 3529Mon Mar 22 15:56:04 1999 Andrew Cagney <cagney@b1.cygnus.com>
c906108c 3530
7a292a7a
SS
3531 * blockframe.c (inside_entry_file, inside_entry_func): Convert #if
3532 CALL_DUMMY_LOCATION to if.
3533 * valops.c (call_function_by_hand): Ditto.
3534 * infcmd.c (run_stack_dummy): Ditto.
3535 * inferior.h (CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET,
3536 CALL_DUMMY_BREAKPOINT_OFFSET): Provide default.
c906108c 3537
7a292a7a 35381999-03-23 Jason Molenda (jsm@bugshack.cygnus.com)
c906108c 3539
7a292a7a
SS
3540 * hppa-tdep.c (pa_register_look_aside): Remove CPU_HPPA_RISC_20
3541 check, test for presence of struct save_state_t and the ss_wide
3542 member directly.
3543 * configure.in: Remove CPU_HPPA_RISC_20 test. Add tests for
3544 HAVE_STRUCT_SAVE_STATE_T and HAVE_STRUCT_MEMBER_SS_WIDE.
3545 * acconfig.h: Add HAVE_STRUCT_SAVE_STATE_T HAVE_STRUCT_MEMBER_SS_WIDE.
3546 * configure, config.in: Regenerated.
c906108c
SS
3547
3548Mon Mar 22 13:25:13 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
3549
3550 * infttrace.c (proc_wait): rename to ptrace_wait.
3551
7a292a7a
SS
35521999-03-18 Jim Blandy <jimb@zwingli.cygnus.com>
3553
3554 * dwarf2read.c: Correctly recognize location expressions that
3555 designate LOC_REF_ARG arguments. Doc fixes.
3556 (isderef): New global. (Yuck.)
3557 (dwarf2_complex_location_expr): New complaint.
3558 (read_func_scope): Reject frame_base attributes that use the
3559 `deref' opcode as too complex.
3560 (new_symbol): If both regoff and isderef are set, and the base
3561 register is the frame pointer, then it's a LOC_REF_ARG argument.
3562 (decode_locdesc): Recognize the `deref' opcode in location
3563 expressions. Complain if it's not the last op in the expression.
3564
3565 * config/fr30/tm-fr30.h (COERCE_FLOAT_TO_DOUBLE): #define this to
3566 be true, or else value_arg_coere won't respect the (accurate)
3567 information we have about whether a function is prototyped.
3568
35691999-03-17 Jim Blandy <jimb@zwingli.cygnus.com>
3570
3571 * config/fr30/tm-fr30.h (STACK_ALIGN): Define this here, so
3572 calling functions by hand with odd-sized arguments doesn't munge
3573 the stack.
3574
c906108c
SS
35751999-03-17 Jason Molenda (jsm@bugshack.cygnus.com)
3576
3577 * configure.in (HAVE_MULTIPLE_PROC_FDS): Don't define for Solaris
3578 hosts--gdb doesn't support this yet.
3579 * configure: Regenerated.
3580
7a292a7a
SS
35811999-03-16 Keith Seitz <keiths@cygnus.com>
3582
3583 * remote.c (remote_binary_checked): New file global.
3584 (check_binary_download): New function to check if
3585 stub supports binary downloading that works with
3586 stubs that are not eight bit clean.
3587 (remote_write_bytes): Check for binary download capability
3588 and use it if available.
3589 Remove references to global remote_binary_length. What a hack.
3590 (putpkt_binary): New function.
3591 (putpkt): Call putpkt_binary.
3592 Use xor to escape trouble characters.
3593 * m32r-stub.c (bin2mem): Follow escape char convention change.
3594
c906108c
SS
3595Tue Mar 16 01:11:33 1999 Andrew Cagney <cagney@rhino.cygnus.com>
3596
3597 * target.h (struct target_ops), target.c (debug_to_query),
3598 remote.c (pack_hex_byte, remote_query): Promote char parameters to
3599 int. Stops compile problems with pedantic ISO-C compilers.
7a292a7a 3600
c906108c
SS
3601Tue Mar 16 15:29:04 1999 Stan Shebs <shebs@andros.cygnus.com>
3602
7a292a7a
SS
3603 * go32-xdep.c: Remove, no longer used by anything.
3604 * Makefile.in: Remove references.
3605
c906108c
SS
3606 * jv-lang.c, jv-lang.h (java_primitive_type): Declare argument
3607 as int instead of char.
3608
7a292a7a 3609Mon Mar 15 11:42:43 1999 Andrew Cagney <cagney@b1.cygnus.com>
c906108c 3610
7a292a7a
SS
3611 * d10v-tdep.c (push_stack_item, pop_stack_item): New function.
3612 (d10v_push_arguments): Use.
c906108c 3613
7a292a7a
SS
3614 From Martin M. Hunt <hunt@cygnus.com>:
3615 * d10v-tdep.c (d10v_push_arguments): When arguments
3616 must be pushed onto the stack, they go on in
3617 reverse order.
c906108c 3618
7a292a7a
SS
36191999-03-16 Jim Blandy <jimb@zwingli.cygnus.com>
3620
3621 * symtab.c (make_symbol_overload_list): Don't try to stuff minimal
3622 or partial symbols into the overload list; we don't know their
3623 types. (Thanks to Rajiv Mirani.)
3624
36251999-03-15 Jason Molenda (jsm@bugshack.cygnus.com)
3626
3627 * acinclude.m4 (--with-itclconfig, --with-itkconfig, --with-tixconfig):
3628 Fix whitespace so --help messages line up.
3629 * configure.in (--with-cpu): Fix capitalization for --help messages.
3630 * configure, aclocal.m4: Regenerated.
3631
3632Mon Mar 15 11:39:03 1999 Ian Carmichael <iancarm@cygnus.com>
3633
3634 Support building gdb w/o simulator:
3635 * configure.in: Support --disable-sim. Check for sim directory.
3636 * Makefile.in (IGNORE_SIM, IGNORE_SIM_OBS): New.
3637 * acconfig.h (WITH_SIM): Define.
3638 * configure, config.in: Regenerate.
3639
3640Mon Mar 15 08:01:33 1999 Elena Zannoni <ezannoni@cygnus.com>
3641
3642 Patch from Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3643
3644 * top.c (read_command_lines): Reset control_level to 0.
3645 (define_command): Don't do it here.
3646
3647Sun Mar 14 16:12:15 1999 Andrew Cagney <cagney@rhino.cygnus.com>
3648
3649 * hppah-nat.c (store_inferior_registers): Delete extern
3650 registers[] declaration.
3651
3652Sun Mar 14 19:17:30 1999 Andrew Cagney <cagney@b1.cygnus.com>
3653
3654 * infrun.c (write_inferior_status_register): New function. Provide
3655 update access to an inf_status register buffer. Only used by HP.
3656 * inferior.h (write_inferior_status_register): Add prototype.
3657
3658 * hppa-tdep.c (push_dummy_frame): Use
3659 write_inferior_status_register when hacking around a sleeping
3660 inferior. Accidently fix byte-order problem.
3661
3662Sun Mar 14 16:40:10 1999 Andrew Cagney <cagney@b1.cygnus.com>
3663
3664 * config/pa/tm-hppa.h (PUSH_DUMMY_FRAME): Fix parameter. Address
3665 not needed.
3666
3667Fri Mar 12 13:11:48 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
3668
3669 * remote.c (remote_write_bytes): fix 'X' packet protocol so that it
3670 can't overwrite the end of its buffer with escaped characters.
c906108c
SS
3671
36721999-03-12 Jim Blandy <jimb@zwingli.cygnus.com>
3673
7a292a7a 3674 Alpha patches from Richard Henderson:
c906108c 3675
7a292a7a 3676 * alpha-tdep.c (alpha_skip_prologue): Recognize subq.
c906108c 3677
7a292a7a
SS
3678 * config/alpha/tm-alpha.h (REGISTER_NAMES): No f31, but fpcr.
3679 (FPCR_REGNUM): New.
3680 (REGISTER_CONVERTIBLE): Don't convert fpcr.
3681 (REGISTER_VIRTUAL_TYPE): Don't make fpcr a double.
c906108c 3682
7a292a7a
SS
3683 * stabsread.c (define_symbol): Only consider live range extension
3684 if we have an open parenthesis.
c906108c 3685
7a292a7a
SS
36861999-03-11 Jim Blandy <jimb@zwingli.cygnus.com>
3687
3688 * monitor.c (monitor_fetch_register): Print RDEBUG info correctly
3689 when the register name is null.
3690
3691Thu Mar 11 19:33:07 1999 Stan Shebs <shebs@andros.cygnus.com>
3692
3693 * infrun.c (wait_for_inferior): Change #if DECR_PC_AFTER_BREAK
3694 uses to expressions, remove redundant extern decls.
3695
3696Thu Mar 11 18:05:11 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
c906108c
SS
3697
3698 * infptrace.c (proc_wait): Rename to ptrace_wait.
3699 * inftarg.c (child_wait): call ptrace_wait instead of proc_wait.
3700 * inferior.h: Declare ptrace_wait instead of proc_wait.
3701
7a292a7a
SS
3702Thu Mar 11 11:46:25 1999 Andrew Cagney <cagney@amy.cygnus.com>
3703
3704 * breakpoint.c (create_solib_load_unload_event_breakpoint,
3705 create_fork_vfork_event_catchpoint, tcatch_command,
3706 create_exception_catchpoint, break_at_finish_at_depth_command_1,
3707 catch_fork_command_1, ep_skip_leading_whitespace,
3708 break_at_finish_command_1, catch_exec_command_1,
3709 catch_exception_command_1, stop_command, stopin_command,
3710 stopat_command, ep_parse_optional_filename,
3711 ep_find_event_name_end, ep_parse_optional_if_clause,
3712 catch_fork_command_1), stack.c (show_and_print_stack_frame_stub,
3713 print_stack_frame_stub, print_only_stack_frame_stub,
3714 backtrace_command_1, backtrace_full_command, func_command),
3715 valprint.c (print_decimal), source.c (print_source_lines_base):
3716 Add prototype.
3717
3718 * stack.c (print_stack_frame_stub, show_and_print_stack_frame_stub,
3719 print_only_stack_frame_stub): Make param void*.
3720
3721Wed Mar 10 19:33:28 1999 Geoffrey Noer <noer@cygnus.com>
3722
3723 * win32-nat.c: If old Cygwin Win32 API headers aren't being used,
3724 define some gdb-specific defines that shouldn't have been in the
3725 global headers.
3726
3727Wed Mar 10 21:20:25 1999 Andrew Cagney <cagney@b1.cygnus.com>
3728
3729 * findvar.c (registers, register_valid): Replace array with pointer.
3730 (build_findvar): New function. Allocate space for REGISTERS and
3731 REGISTER_VALID.
3732 (_initialize_findvar): Call build_findvar.
0f71a2f6
JM
3733 (_initialize_findvar): Register REGISTERS and REGISTER_VALID as
3734 arch dependant.
7a292a7a
SS
3735
3736 * inferior.h (registers, register_valid): Replace array with
3737 pointer.
3738
3739 * inferior.h (struct inferior_status): Move definition from here.
3740
3741 * infrun.c (struct inferior_status): To here.
3742 (struct inferior_status): Change ``stop_registers'' and
3743 ``registers'' to pointers.
3744 (xmalloc_inferior_status, free_inferior_status): New functions.
3745 (restore_inferior_status): Call free_inferior_status.
3746 (save_inferior_status): Call xmalloc_inferior_status.
3747 (discard_inferior_status): New function, discard inf_status
3748 buffer. Call free_inferior_status.
3749
3750 * inferior.h (stop_registers): Replace array with pointer.
3751 * infrun.c (stop_registers): Update.
3752 (build_infrun): Initialize stop_registers.
3753 (_initialize_infrun): Call build_infrun.
0f71a2f6 3754 (_initialize_infrun): Register ``stop_registers'' as arch dependant.
7a292a7a
SS
3755
3756Wed Mar 10 14:50:42 1999 Andrew Cagney <cagney@amy.cygnus.com>
3757
3758 * alpha-tdep.c (alpha_linux_sigtramp_offset): Only compile when
3759 LINUXALPHA target. Hack.
3760
3761 * infrun.c (set_follow_fork_mode_command): Make static. Add
3762 prototype.
3763 * tracepoint.c (add_register): Ditto.
3764 * valprint.c (strcat_longest): Comment out. Does not appear to be
3765 used.
3766 * valops.c (find_method_list): Make static. Add prototype.
3767 * thread.c (target_find_new_threads): Make static. Add prototype.
3768 * stack.c (stack_publish_stopped_with_no_frame,
3769 select_and_maybe_print_frame): Comment out. Does not appear to be
3770 used.
3771 (current_frame_command): Add prototype.
3772 * breakpoint.c (break_at_finish_command,
3773 break_at_finish_at_depth_command, tbreak_at_finish_command): Make
3774 static. Add prototype.
3775 * findvar.c (read_relative_register_raw_bytes_for_frame): Ditto.
3776
3777Wed Mar 10 23:38:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
3778
3779 * corefile.c (registers): Delete redundant variable declaration.
3780 * inferior.h (run_stack_dummy): Change array argument to pointer.
3781 * infcmd.c (run_stack_dummy): Update.
3782 * value.h (value_being_returned): Change RETBUF to a pointer.
3783 * values.c (value_being_returned): Update.
3784
3785Wed Mar 10 11:08:16 1999 Andrew Cagney <cagney@amy.cygnus.com>
3786
3787 * source.c (list_command): GCC suggested explicit braces to avoid
3788 ambiguous `else'.
3789
3790 * jv-typeprint.c: Include "c-lang.h".
3791 * Makefile.in (jv-typeprint.o): Add dependency.
3792 * jv-valprint.c: Include "gdbcore.h", "annotate.h".
3793 * Makefile.in (jv-valprint.o): Add dependencies.
3794 * objfiles.c: Include "breakpoint.h".
3795 * Makefile.in (objfiles.o): Add dependency.
3796 * main.c: Include <unistd.h>.
3797 * parse.c: Include <ctype.h>.
3798 * remote.c: Include <ctype.h>.
3799 * ser-tcp.c: Include <unistd.h>.
3800 * ax-general.c: Include "value.h".
3801 * Makefile.in (ax-general.o): Add dependency.
3802
3803 * alpha-tdep.c (alpha_push_arguments): Make ``i'' an int instead
3804 of a register.
3805 * frame.h (show_and_print_stack_frame): Add function prototype.
3806 * language.h (language_enum): Add function prototype.
3807 * value.h (find_overload_match): Add function prototype.
3808
3809 * defs.h, utils.c (subset_compare): Rename subsetCompare. Add
3810 prototype.
3811 * stack.c (backtrace_command): Update.
3812
3813Wed Mar 10 13:58:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
3814
3815 * configure.in (AC_CHECK_HEADERS): Check for <sys/select.h>
3816 * configure, config.in: Re-generate.
3817 * inflow.c: Conditionally include <sys/select.h>.
3818
3819Wed Mar 10 13:44:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
3820
3821 * frame.h (struct dummy_frame): Move from here.
3822 * blockframe.c (struct dummy_frame): To here.
3823
3824 * blockframe.c (struct dummy_frame): Replace ``regs'' with pointer
3825 ``registers''.
3826 (generic_pop_dummy_frame): Free it.
3827 (generic_push_dummy_frame): Allocate dummy frame register buffer.
3828
3829Wed Mar 10 11:08:16 1999 Andrew Cagney <cagney@amy.cygnus.com>
3830
3831 * thread.c (_initialize_thread): Delete redundant ``extern struct
3832 cmd_list_element *cmdlist''.
3833 * printcmd.c (print_command_1): Ditto for ``objectprint'';
3834
38351999-03-09 Stan Shebs <shebs@andros.cygnus.com>
3836
3837 * MAINTAINERS: New file, list of maintainers and areas they
3838 maintain.
c906108c
SS
3839
38401999-03-09 Rodney Brown <RodneyBrown@pmsc.com>
3841
3842 Get working on UnixWare 2.1.1.
3843 * acconfig.h: Update for defines for procfs.c.
3844 * configure.in: Identify defines for procfs.c.
3845 * configure.host: i386-*-sysv4.2uw2* => i386v42mp
3846 * configure.tgt: i386-*-sysv4.2uw2* => i386v42mp
3847 * configure, config.in: Regenerate.
3848 * procfs.c: Rename HAVE_NO_PRRUN_T to HAVE_PRRUN_T (autoconf
3849 standard), wrap UNIXWARE difference in THE_PR_LWP macro for
3850 legibility.
3851 * config/i386/tm-i386v42mp.h: Remove HAVE_PSTATUS_T,
3852 HAVE_NO_PRRUN_T; now set by configure.
3853
7a292a7a
SS
3854Tue Mar 9 16:29:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
3855
3856 * i386-tdep.c (gdb_print_insn_i386): Abort when disassembly_flavor
3857 undefined..
3858
3859 * fr30-tdep.c (_initialize_fr30_tdep): Add prototype. Fix
3860 coding style.
3861
3862 * target.c (debug_to_enable_exception_callback,
3863 debug_to_get_current_exception_event): Return result of call to
3864 debug_target().
3865
38661999-03-09 Jim Blandy <jimb@zwingli.cygnus.com>
3867
3868 Another HURD fix from Mark Kettenis:
3869 * gnu-nat.c: Include <string.h>. Remove declaration of strerror.
3870 Include <bits/waitflags.h> instead of <waitflags.h> and define
3871 _SYS_WAIT_H to prevent the warning that we should not include it.
3872 (gnu_create_inferior): Change return type of attach_to_child to
3873 void. Do not return INFERIOR_PID.
3874 (gnu_pid_to_exec_file): Change return type to char *.
3875 Return NULL.
3876
3877 Fix for the HURD from Mark Kettenis:
3878 * configure.in: Add AC_PROG_AWK. Needed by the machine-dependent
3879 makefile fragments for the Hurd.
3880 * Makefile.in (AWK): Add. Set by configure.
3881 * configure: Regenerated.
3882
38831999-03-08 Jason Molenda (jsm@bugshack.cygnus.com)
3884
3885 * infttrace.c (hppa_get_process_events): Removed. Function only
3886 usable on HPUX 10 and above. It is not called by any other part
3887 of GDB.
3888 * hppah-nat.c (hppa_get_process_events): Ditto.
3889 (child_pid_to_exec_file): Only call ptrace with
3890 PT_GET_PROCESS_PATHNAME if that symbol has been defined.
3891 * config/pa/nm-hppah.h: Don't set up prototypes et al for
3892 hppa_get_process_events.
3893
3894 * config/pa/hppahpux.mh (TERM_LIB): Do not initialize, let autoconf
3895 determine best library automatically.
3896 * config/pa/hpux1020.mh: Ditto.
3897 * config/pa/hpux1100.mh: Ditto.
3898 * configure.in (TERM_LIB): Also check for libHcurses.
3899 * configure: Regenerated.
3900
3901Thu Mar 4 17:16:04 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
3902
3903 * m32r-stub.c: add support for crc "Compare" command.
3904
c906108c
SS
39051999-03-04 Jim Blandy <jimb@zwingli.cygnus.com>
3906
7a292a7a
SS
3907 * fr30-tdep.c (fr30_store_return_value): Allocate zeroes
3908 dynamically, to save BSS space, and to remove assumptions about
3909 the size of the largest value we'll return.
3910
3911 * config/fr30/tm-fr30.h (fr30_store_return_value): Use PARAMS in
3912 prototype.
3913
3914Thu Mar 4 08:37:35 1999 Andrew Cagney <cagney@b1.cygnus.com>
3915
3916 * sh3-rom.c (sh3_supply_register, sh3_supply_register),
3917 mips-tdep.c (mips_push_arguments), m32r-rom.c
3918 (m32r_upload_command), m32r-tdep.c (decode_prologue), monitor.c
3919 (longlong_hexchars), tracepoint.c (validate_actionline,
3920 read_actions), mdebugread.c
3921 (parse_symbol), jv-typeprint.c
3922 (java_type_print_base, java_type_print_base), mdebugread.c
3923 (parse_symbol), top.c (source_command), utils.c
3924 (floatformat_to_doublest): GCC suggest explicit braces to avoid
3925 ambiguous `else'.
c906108c 3926
7a292a7a
SS
3927 * tracepoint.c (map_args_over_tracepoints, trace_actions_command),
3928 m32r-rom.c (m32r_supply_register), win32-nat.c
3929 (handle_output_debug_string, child_continue), i960-tdep.c
3930 (pop_frame), m32r-rom.c (m32r_upload_command): GCC suggested
3931 parentheses around assignment used as truth value.
3932
3933 * remote-sds.c (sds_wait), monitor.c (monitor_fetch_register),
3934 ser-e7kpc.c, (dosasync_write), arc-tdep.c (arc_get_frame_setup):
3935 GCC suggested parentheses around operands.
3936
3937 * c-typeprint.c (c_type_print_base): GCC suggested enclosing
3938 "while" expression in paren.
3939
3940Wed Mar 3 18:14:33 1999 Andrew Cagney <cagney@chook.cygnus.com>
3941
3942 * sol-thread.c (save_inferior_pid): Cast the saved pid to void*.
3943 (restore_inferior_pid): Takes void* as required by make_cleanup.
3944 Casts pid back to an int.
3945
3946 * procfs.c (make_cleanup_close_proc_file,
3947 close_proc_file_cleanup): Create a proc_file cleanup.
3948 (info_proc): Use.
3949
3950 * defs.h (make_cleanup_freeargv): Helper function. Establish
3951 cleanup using freeargv. Can not just typecast/pass freeargv as it
3952 violates ISO-C.
3953 * utils.c (do_freeargv): Helper.
3954 (make_cleanup_freeargv): New function.
3955
3956 * symmisc.c (maintenance_print_symbols,
3957 maintenance_print_psymbols, maintenance_print_msymbols), symfile.c
3958 (symbol_file_command), stack.c (backtrace_command), remote-sim.c
3959 (gdbsim_create_inferior, gdbsim_open), remote-mips.c
3960 (common_open), procfs.c (info_proc), infrun.c (handle_command,
3961 xdb_handle_command), exec.c (exec_file_attach): Call
3962 make_cleanup_freeargv.
3963
39641999-03-03 James Ingham <jingham@cygnus.com>
3965
3966 * i386-tdep.c (_initialize_i386_tdep): Set the inital value for
3967 disassembly flavor at startup, rather than hardcoding it.
3968
39691999-03-03 Jim Blandy <jimb@zwingli.cygnus.com>
3970
3971 Put return values in the right place.
3972 * fr30-tdep.c (fr30_store_return_value): New function.
3973 * config/fr30/tm-fr30.h (STORE_RETURN_VALUE): Call
3974 fr30_store_return_value.
3975
3976Wed Mar 3 18:10:55 1999 Andrew Cagney <cagney@chook.cygnus.com>
3977
3978 * gdbtypes.c (virtual_base_list_aux): Return void. Add prototype.
3979
3980 * breakpoint.c (map_catch_names): Comment out unused function.
3981
39821999-03-02 Jason Molenda (jsm@bugshack.cygnus.com)
3983
3984 * hppa-tdep.c (pa_register_look_aside): Only refer to save_state_t
3985 structure on PA 2.0 systems.
3986
39871999-03-02 Stan Shebs <shebs@andros.cygnus.com>
3988
3989 From Gary Thomas <gthomas@cygnus.co.uk>:
3990 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT,
3991 THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Use illegal instruction
3992 instead of SWI 24.
3993 * config/arm/tm-arm.h (CALL_DUMMY): Ditto.
3994 (IN_SIGTRAMP): Define.
3995
39961999-03-02 Nick Clifton <nickc@cygnus.com>
3997
3998 * findvar.c (store_address): Delete incorrect big endian
3999 code.
4000
4001Tue Mar 2 18:02:42 1999 Andrew Cagney <cagney@chook>
4002
4003 * configure.in (gdb_cv_os_cygwin): Compat. Continue to reconize
4004 __CYGWIN32__.
4005
40061999-03-01 Jason Molenda (jsm@bugshack.cygnus.com)
4007
4008 * configure.in: Move setting of gdb_cv_os_cygwin to before
4009 setting of TERM_LIB. Check for __CYGWIN__ instead of __CYGWIN32__.
4010 * configure: Regenerated.
4011
40121999-03-01 DJ Delorie <dj@cygnus.com>
4013
4014 * configure.in: Change -cygwin32* to -cygwin*.
4015 * configure: Ditto.
4016
40171999-02-25 Stan Shebs <shebs@andros.cygnus.com>
4018
4019 * breakpoint.c (SOLIB_LOADED_LIBRARY_PATHNAME,
4020 SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_CREATE_CATCH_LOAD_HOOK,
4021 SOLIB_CREATE_CATCH_UNLOAD_HOOK): Supply default definitions.
4022 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Ditto.
4023
40241999-02-25 Keith Seitz <keiths@cygnus.com>
4025
4026 * corelow.c (core_close): Clear out solib state before
4027 closing the bfd associated with the core file.
4028 * solib.c (clear_solib): Mention that clear_solib requires
4029 an open BFD in order for disable_breakpoints_in_shlibs to
4030 determine whether breakpoints live in shared libraries.
4031
40321999-02-24 Jason Molenda (jsm@bugshack.cygnus.com)
c906108c
SS
4033
4034 * configure.in: Set CPU_HPPA_RISC_20 if the host CPU is a PA 2.0
4035 processor.
4036 * acconfig.h: Add CPU_HPPA_RISC_20
4037 * config.in, configure: Regenerated.
4038 * hppa-tdep.c (pa_register_look_aside): Only refer to new
4039 structure elements if we are on a PA2.0 system.
4040 * defs.h: Include limits.h.
4041
7a292a7a
SS
4042Tue Feb 23 14:37:08 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
4043
4044 * infrun.c (wait_for_inferior): Check scheduler_locking state
4045 before resuming after a thread-specific breakpoint.
4046
40471999-02-23 Jim Blandy <jimb@zwingli.cygnus.com>
4048
4049 * aclocal.m4, config.in, configure: Regenerated with latest
4050 autotools.
4051
4052Mon Feb 22 12:32:19 1999 Per Bothner <bothner@cygnus.com>
4053
4054 * jv-valprint.c (java_val_print): Restore line that somehow got lost.
4055
4056 * jv-valprint.c (java_print_value_fields): Check for NULL type.
4057
40581999-02-21 Jim Blandy <jimb@zwingli.cygnus.com>
4059
4060 * tm-h8500.h, i386lynx-nat.c: Removed. These files are long
4061 dead; it seems that they only appeared due to some CVS weirdness.
4062 If they appear again, we may need to distribute garlic and holy
4063 water.
4064
40651999-02-19 Jason Molenda (jsm@bugshack.cygnus.com)
4066
4067 * configure.in (TERM_LIB): Move checking for TERM_LIB, substituting.
4068 * configure: Regenerated.
4069
40701999-02-19 Robert Hoehne (robert.hoehne@gmx.net)
4071
4072 * configure.host (i[3456]86-*-msdosdjgpp*): New host.
4073 * configure.tgt (i[3456]86-*-msdosdjgpp*): New target.
4074 * go32-nat.c: New file, native DJGPP support.
4075 * config/i386/go32.mh: Rewrite for DJGPP (go32) host.
4076 * config/i386/go32.mt: New file, DJGPP (go32) target.
4077 * config/i386/nm-go32.h: New file.
4078 * config/i386/tm-go32.h: New file.
4079 * config/i386/xm-go32.h: Rewritten for current DJGPP.
4080
40811999-02-18 Jason Molenda (jsm@bugshack.cygnus.com)
4082
4083 * reply_mig_hack.awk, config/nm-gnu.h, config/alpha/nm-linux.h
4084 config/alpha/xm-alphalinux.h, config/alpha/xm-alphaosf.h
4085 config/i386/nm-i386sco5.h, config/i386/tm-fbsd.h, config/i386/tm-i386.h
4086 config/powerpc/nm-aix.h, config/powerpc/tm-macos.h
4087 config/powerpc/tm-ppc-aix.h, config/powerpc/xm-aix.h
4088 config/rs6000/tm-rs6000-aix4.h, testsuite/gdb.chill/tests1.ch
4089 testsuite/gdb.chill/tests2.ch, testsuite/gdb.chill/tests2.exp:
4090 Update FSF address in copyright notices.
4091
40921999-02-18 Jason Molenda (jsm@bugshack.cygnus.com)
4093
4094 * configure.in: Quote "$GCC" correctly.
4095 * configure: Regenerated.
4096
40971999-02-18 Jim Blandy <jimb@zwingli.cygnus.com>
4098
4099 * dbxread.c (elfstab_build_psymtabs): Don't assume that there's a
4100 section named ".text", which has all the code in it. Instead, look
4101 at all the sections in the file with the `code' flag set.
4102 (find_text_range): New function, that does all the work.
4103
4104Thu Feb 18 17:50:45 1999 Andrew Cagney <cagney@b1.cygnus.com>
4105
4106 * mips-tdep.c (FP_REGISTER_DOUBLE): Conditionally define.
4107
4108Fri Jan 29 16:51:11 1999 Andrew Cagney <cagney@chook.cygnus.com>
4109
4110 * mips-tdep.c (return_value_location): New function. Merge/rewrite
4111 of return-value code in mips_extract_return_value,
4112 mips_store_return_value. Stop buffer overflow when 64 bit value
4113 in 32 bit registers. Extract 64bit float from 32 bit register
4114 pair of correct order.
4115 (mips_extract_return_value, mips_store_return_value): Call
4116 return_value_location. For store, ensure that remainder of
4117 register is zero.
c906108c 4118
7a292a7a 4119Wed Feb 17 10:10:27 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
c906108c
SS
4120
4121 * gdbtypes.h (get_discrete_bounds): Remove duplicate decl.
4122
4123 * jv-typeprint.c (java_type_print_base): Change fputs => fputs_filtered.
4124
7a292a7a 4125Mon Jan 25 18:30:57 1999 Per Bothner <bothner@cygnus.com>
c906108c
SS
4126
4127 * jv-lang.h (JAVA_OBJECT_SIZE): Change from hard-wired constant.
4128 (java_primitive_type_from_name, get_java_object_header_size): Declare.
4129 * jv-lang.c (java_class_from_object): Use get_java_object_type.
4130 * jv-lang.c: Update Class field names: dtable->vtable,
4131 msize->method_count, nfields->field_count, bfsize->size_in_bytes,
4132 nmethods->method_count.
4133 (type_from_class): Demangle array type names.
4134 (java_link_class_type): Array type names are now demangled.
4135 (get_java_object_type): If not defined yet, try looking it up.
4136 (get_java_object_header_size): New function.
4137 (java_primitive_type_from_name): New function.
4138 (java_demangled_signature_length, java_demangled_signature_copy): New.
4139 (java_demangle_type_signature): Re-implement using above functions.
4140 (evaluate_subexp_java): For UNOP_IND, call evaluate_subexp_java
4141 to evaluate subexp (not evaluate_subexp_standard).
4142 For BINOP_SUBSCRIPT update for new array type naming scheme.
4143 * jv-valprint.c (java_value_print): Use java_class_from_object.
4144 Update array printing to new array type naming convention.
4145 (java_val_print): Doing check_typedef when printing a pointer is
4146 is a waste of effort. Also, handle TYPE_CODE_INT, to make sure
4147 Java bytes as not printed as C chars.
4148
7a292a7a 4149Fri Jan 8 16:58:22 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
c906108c
SS
4150
4151 * blockframe.c (find_pc_sect_partial_function): Search full symtabs as
4152 a last ditch effort (after the partial & minimal symtabs).
4153 * defs.h utils.c: Fixup prototypes for vprintf_filtered,
4154 vfprintf_filtered, vfprintf_unfiltered and vprintf_unfiltered to return
4155 ints to match their standard equivalents.
4156 * defs.h symtab.c top.c: Create skip_prologue_hook to allow Java to
4157 control the prologue skipping process.
4158 * jv-typeprint.c (java_type_print_base): Remove extern for
4159 jv_class_demangle, add new arg for objfile (NULL).
4160 * symtab.h: Remove struct sourcevector and struct source. Definately
4161 not needed.
4162 * values.c (value_virtual_fn_field): Fixes code to handle new vtable
4163 debug info format. Patch from marka.
4164
7a292a7a 4165Wed Dec 16 23:11:25 1998 Stu Grossman <grossman@fencer.cygnus.com>
c906108c
SS
4166
4167 * jv-lang.c (java_class_from_object java_class_is_primitive
4168 is_object_type): Change dtable to vtable.
4169 * (java_primitive_type): Change arg to type char.
4170 * (_initialize_java_language): Make java_char_type be unsigned.
4171 * jv-lang.h: Fixup prototypes.
4172
7a292a7a 4173Mon Dec 7 19:02:15 1998 Stu Grossman <grossman@babylon-5.cygnus.com>
c906108c
SS
4174
4175 * jv-valprint.c (java_value_print): Fix printing of values where
4176 run time type != compile time type.
4177
7a292a7a
SS
4178Fri Dec 4 15:23:38 1998 Stu Grossman <grossman@fencer.cygnus.com>
4179
c906108c
SS
4180 * Makefile.in: Whack out m2-typeprint.c.
4181 * c-typeprint.c (c_type_print_varspec_suffix) typeprint.h: Make this
4182 global. It's needed by Java.
4183 * (c_type_print_base): Whack prefix off of qualified method names
4184 (names with name spaces).
4185 * gdbtypes.h (struct cplus_struct_type): Add bits for Java attributes.
4186 Shrink voffset
4187 to 16 bits to compensate for added bits above (hopefully this is still
4188 enough).
4189 * Add new accessor macros (TYPE_FND_FIELD_PUBLIC, ...) for all new
4190 attribute bits.
4191 * jv-typeprint.c (java_type_print_base): Fix printing of method
4192 attributes. Handle JVM style manglings.
4193 * (java_print_type): Enable code type print varspec_suffix to allow
4194 array indices to print out.
4195 * jv-valprint.c (java_val_print): Minor formatting.
4196 * m2-lang.c (m2_language_d): Change m2_print_type to c_print_type.
4197 * stabsread.c (read_member_functions): Save public and static attributes.
7a292a7a
SS
4198
4199Wed Feb 17 15:32:57 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
c906108c 4200
c906108c
SS
4201 * breakpoint.c (watch_command_1): Reformat comment.
4202
c906108c
SS
4203 * c-typeprint.c (c_type_print_base): Reformat comments.
4204
7a292a7a
SS
42051999-02-17 Jim Blandy <jimb@zwingli.cygnus.com>
4206
4207 * Makefile.in (VERSION): Bump version to 4.17.2.
4208
4209Tue Feb 16 15:48:20 1999 Edith Epstein <eepstein@sophia.cygnus.com>
4210
c906108c
SS
4211 * config/pa/nm-hppah.h: Added prototype declarations for
4212 hppa_enable_page_protection_events and
4213 hppa_disable_page_protection_events.
7a292a7a 4214
c906108c
SS
4215 * inftarg.c (child_wait): Fixed code that checks whether
4216 or not the target program has done a fork/vfork.
4217 related_pid does not have a value unless the target
4218 program has forked/vforked.
7a292a7a
SS
4219
4220 * infttrace.c (hppa_insert_hw_watchpoint): Make sure that
4221 function always returns a value.
4222 (hppa_remove_hw_watchpoint): Make sure that function always
4223 returns a value.
c906108c 4224
7a292a7a 4225Tue Feb 16 06:31:58 1999 Keith Seitz <keiths@cygnus.com>
c906108c 4226
7a292a7a
SS
4227 * config/powerpc/tm-ppc-eabi.h: Do not define PC_IN_CALL_DUMMY,
4228 let the generic call dummy infrastructure do it.
c906108c
SS
4229
4230Sun Feb 14 18:21:08 1999 Mark Alexander <marka@cygnus.com>
4231
4232 * config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
4233 coffread.c will correctly handle char or short function parameters.
4234
42351999-02-11 Jason Molenda (jsm@bugshack.cygnus.com)
4236
4237 * configure, aclocal.m4: Regenerate with correct version of aclocal.
4238
42391999-02-10 Syd Polk <spolk@cygnus.com>
4240
4241 * acinclude.m4: Fix for new location of itclConfig.sh and itkConfig.sh.
4242 * aclocal.m4: Regnerate.
4243 * configure: Regenerate.
4244
42451999-02-10 Jason Molenda (jsm@bugshack.cygnus.com)
4246
4247 * demangle.c: Fix comments to mention "set demangle-style"
4248 instead of "set demangle".
4249 Run through indent to fix minor indenting problems.
4250
4251Wed Feb 10 17:53:09 1999 Bob Manson <manson@charmed.cygnus.com>
4252
4253 * i386-tdep.c (gdb_print_insn_i386): Add missing returns.
4254
4255Wed Feb 10 13:17:21 1999 Stan Shebs <shebs@andros.cygnus.com>
4256
4257 Declare Gould configuration obsolete:
4258 * configure.host, configure.tgt: Comment out Gould configs.
4259 * Makefile.in: Comment out Gould-related actions.
4260 * gould-xdep.c, gould-tdep.c, config/gould/*: Comment out.
4261 * NEWS: Mention obsolete status.
4262
42631999-02-09 DJ Delorie <dj@cygnus.com>
4264
4265 * sparcl-tdep.c: UDP download works in cygwin
4266
42671999-02-08 Jason Molenda (jsm@bugshack.cygnus.com)
4268
4269 * gnu-regex.c: Check ENABLE_NLS instead of HAVE_LIBINTL_H.
4270 * configure.in: Don't check for libintl.h.
4271 * configure, config.in: Regenerated.
4272
4273Mon Feb 8 18:10:50 1999 Stan Shebs <shebs@andros.cygnus.com>
4274
4275 * NEWS: Mention new X packet and PowerPC variant support.
4276
42771999-02-08 Nick Clifton <nickc@cygnus.com>
4278
4279 * configure.host: Add support for StrongARM host.
4280 * configure.tgt: Add support for StrongARM target.
4281
4282Mon Feb 8 12:05:05 1999 David Taylor <taylor@texas.cygnus.com>
4283
4284 * dsrec.c (make_srec): Cast targ_addr to int in call to sprintf
4285 otherwise on big endian machine with a bfd_vma of 64 bits,
4286 *everything* gets loaded at location 0.
4287
4288Mon Feb 7 10:05:43 1999 Frank Ch. Eigler <fche@cygnus.com>
4289
4290 * infrun.c (wait_for_inferior): Allow SIGTRAP to be "pass"ed
4291 to target program.
4292
4293Fri Feb 5 16:46:14 1999 Stan Shebs <shebs@andros.cygnus.com>
4294
4295 * NEWS: Add mentions of various new things.
4296
4297Thu Feb 4 00:19:14 1999 Christopher Faylor <cgf@cygnus.com>
4298
4299 * configure.in: Move termcap determination later in the
4300 file to catch setting of cygwin flag.
4301 * configure: Regenerate.
4302
4303Wed Feb 3 14:16:38 1999 Christopher Faylor <cgf@cygnus.com>
4304
4305 * config/i386/cygwin.mh: Move TERMCAP test code to configure.in.
4306 * configure.in: Treat libtermcap.a detection as a special case
4307 when hosting on cygwin.
4308 * configure: Regenerate.
4309
43101999-02-03 Keith Seitz <keiths@cygnus.com>
4311
4312 * remote.c (remote_binary_download, remote_binary_length): New
4313 static globals for dealing with binary transmissions.
4314 (remote_write_bytes): Add support for binary downloads
4315 by shadowing the "M" packet with a new "X" packet. This
4316 defaults to ON; if the stub does not understand this, it
4317 will fall back to using "M".
4318 (putpkt): Add support for binary downloading.
4319 * monitor.c (monitor_expect): The mon2000 monitor
4320 on the MSA2000 will also emit random DC1/DC3 chars.
4321 * m32r-stub.c: Change all char's to unsigned char's
4322 to support binary downloading.
4323 (handle_exception): Add support for binary downloading
4324 via a new "X" packet.
4325 (getpacket): Do NOT strip eighth bit of incoming chars.
4326 Watch out for escaped characters in the incoming stream.
4327 (putpacket): Do NOT strip eighth bit of incoming chars.
4328 (bin2mem): New function to write binary data directly to
4329 memory.
4330 * m32r-rom.c: Add new "mon2000" target.
4331
4332Tue Feb 2 18:40:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4333
4334 * hp-psymtab-read.c (hpread_build_psymtabs): Coerce first arg
4335 passed to make_cleanup to the correct type.
4336 (hpread_quick_traverse): Change fifth arg to call to
4337 hpread_end_psymtab to be 0.
4338 Compare CURR_MODULE_END to 0 rather than NULL.
4339 Get rid of ifdef'ed out code.
4340 (scan_procs): Get rid of ifdef'ed out code.
4341
4342 * somread.c (som_symfile_read): Coerce first argument passed to
4343 make_cleanup to the correct type.
4344
4345Tue Feb 2 17:36:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4346
4347 * hp-psymtab-read.c (do_pxdb): New function. Check whether the
4348 file needs to be processed by pxdb (an HP debug info massaging
4349 tool), if so call it.
4350 (hpread_build_psymtabs): Initialize scan_start to 0 and
4351 simplify flow of control.
4352
4353 * somread.c (som_symfile_read): Add call to do_pxdb (),
4354 in hp-psymtab-read.c.
4355
4356 * symfile.c (symbol_file_add): Remove ifdef'ed out HPUX specific
4357 code.
4358 (symfile_bfd_open): Remove HPUXHPPA ifdef'ed code. Code is now
4359 in hp-psymtab-read.c.
4360
43611999-02-02 Martin Hunt <hunt@cygnus.com>
4362
4363 * printcmd.c (print_scalar_formatted): Use strcat to concat all
4364 the output together before calling fprintf_filtered().
4365
43661999-02-01 Jason Molenda (jsm@bugshack.cygnus.com)
4367
4368 * configure.in: Require autoconf 2.13.
4369 (AM_EXEEXT): Replace with new AC_EXEEXT.
4370 * acinclude.m4: Move itcl header macros from aclocal.m4 to here.
4371 * aclocal.m4: Regenerated.
4372 * configure: Regenerated.
4373
43741999-02-01 Jim Blandy <jimb@zwingli.cygnus.com>
4375
4376 Allow PPC users to select which PPC/RS6000 variant they're
4377 debugging at run-time. At the moment, the only thing this affects
4378 is the set of registers visible.
4379 * config/rs6000/tm-rs6000.h (REGISTER_NAME): Define this as a call
4380 to the function rs6000_register_name.
4381 (rs6000_register_name): Include extern decl.
4382 (NUM_REGS): Bump to 183. What's the right way to do this?
4383 (FIRST_UISA_SP_REGNUM, LAST_UISA_SP_REGNUM): Renamed from
4384 FIRST_SP_REGNUM, LAST_SP_REGNUM.
4385 (REGISTER_BYTES): Recompute this.
4386 * rs6000-tdep.c: Renamed all uses of FIRST_SP_REGNUM and
4387 LAST_SP_REGNUM to FIRST_UISA_SP_REGNUM and LAST_UISA_SP_REGNUM, with
4388 some concomitant formatting changes.
4389 #include "gdbcmd.h", so we can define commands here.
4390 (struct variant): New structure.
4391 (COMMON_UISA_REG_NAMES, PPC_UISA_SPR_NAMES, PPC_SEGMENT_REG_NAMES,
4392 PPC_32_OEA_SPR_NAMES, num_registers): New macros.
4393 (register_names_rs6000, register_names_uisa, register_names_403,
4394 register_names_403GC, register_names_505, register_names_860,
4395 register_names_601, register_names_602, register_names_603,
4396 register_names_604, register_names_750, variants): New variables.
4397 (rs6000_register_name, install_variant, find_variant_by_name,
4398 install_variant_by_name, list_variants, show_current_variant,
4399 set_processor, show_processor): New functions.
4400 (_initialize_rs6000_tdep): Define new commands `set processor' and
4401 `show processor', and call install_variant_by_name to set the
4402 default variant.
4403 * rs6000-nat.c: Renamed all uses of FIRST_SP_REGNUM and
4404 LAST_SP_REGNUM to FIRST_UISA_SP_REGNUM and LAST_UISA_SP_REGNUM, with
4405 some concomitant formatting changes.
4406 * configure.in: Accept the `--with-cpu' flag, to specify a default
4407 processor variant.
4408 * acconfig.h: Provide a blurb for TARGET_CPU_DEFAULT, which is set
4409 by configure's `--with-cpu' flag.
4410 * config.in, configure: Regenerated.
4411
4412Sun Jan 31 15:24:24 1999 Stan Shebs <shebs@andros.cygnus.com>
4413
4414 * buildsym.h, buildsym.c: Convert to ANSI-only.
4415
4416 * buildsym.h, buildsym.c: Reformat to standard.
4417
4418 * buildsym.c (merge_symbol_lists): Remove unused variable.
4419 (_initialize_buildsym): Remove, does nothing.
4420
44211999-01-31 J.T. Conklin <jtc@redbacknetworks.com>
4422
4423 * i386-stub.c, m32r-stub.c, m68k-stub.c, sh-stub.c, sparc-stub.c,
4424 sparcl-stub, sparclet-stub.c: Change declaration of putDebugChar
4425 to include explicit void return type as per documentation. Fix up
4426 occasions where stubs erroneously checked return type.
4427
4428Sun Jan 31 13:18:33 1999 Stan Shebs <shebs@andros.cygnus.com>
4429
4430 From J.T. Conklin <jtc@redbacknetworks.com>:
4431 * remote.c (remote_query): Fix tipo.
4432
4433Fri Jan 29 15:25:09 1999 Stan Shebs <shebs@andros.cygnus.com>
4434
4435 * configure.tgt (v850): Add wildcard to match.
4436
4437Fri Jan 29 16:44:01 1999 Edith Epstein <eepstein@sophia.cygnus.com>
4438
4439 * inferior.h: Ran indent.
4440
4441 * fork-child.c: Ran indent.
4442
4443 * infrun.c : Ran indent.
4444
4445Fri Jan 29 12:57:34 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4446
4447 * infrun.c (_initialize_infrun): Do not stop or print anything
4448 when a SIGWINCH is received.
4449
4450 * Makefile.in (m2-exp.tab.c): Use YACC not BISON.
4451 (f-exp.tab.c): Ditto.
4452 (jv-exp.tab.c): Ditto.
4453 (c-exp.tab.c): Ditto.
4454 (YACC): Define as @YACC@.
4455
44561999-01-29 Martin Hunt <hunt@cygnus.com>
4457
4458 Changes from Keith Seitz <keiths@cygnus.com>
4459 * valops.c (value_assign): Add calls to register_changed_hook and
4460 memory_changed_hook to inform UIs that the user has changed
4461 the target's registers/memory.
4462 * findvar.c (write_register_gen): Remove call to pc_changed_hook.
4463 * defs.h: Remove declaration for pc_changed_hook and
4464 add declarations for register_changed_hook and
4465 memory_changed_hook.
4466 * top.c: Ditto.
4467
44681999-01-29 Mark Alexander <marka@cygnus.com>
4469
4470 * procfs.c (wait_fd): Handle deleted threads correctly.
4471
44721999-01-28 Jason Molenda (jsm@bugshack.cygnus.com)
4473
4474 * utils.c (init_page_info): Force window size if running under emacs.
4475
44761999-01-27 James Ingham <jingham@cygnus.com>
4477
4478 * typeprint.c (whatis_exp): Remove static declaration.
4479
4480Wed Jan 27 16:50:25 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4481
4482 * hp-psymtab-read.c: Reformat using indent.
4483
4484Wed Jan 27 13:20:25 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4485
4486 * hp-psymtab-read.c: Reformat comments, update copyright.
4487
4488Tue Jan 26 16:02:47 1999 Mark Alexander <marka@cygnus.com>
4489
4490 * v850-tdep.c (v850_generic_reg_names, v850e_reg_names,
4491 v850_register_names, v850_processor_type_table): Declare tables
4492 and structures for handling differences in register names for
4493 v850 and v850e.
4494 (struct reg_list): Define new structure for creating tables
4495 of register bit masks in v850e instrutions.
4496 (handle_prepare, handle_pushm): New helpers for v850_scan_prologue.
4497 (v850_scan_prologue): Recognize v850e instructions: callt, prepare,
4498 and pushm.
4499 (v850_target_architecture_hook): New function to set register
4500 names based on current machine.
4501 (_initialize_v850_tdep): Set up target_architecture_hook.
4502 * config/v850/tm-v850.h (v850_register_names): Declare.
4503 (REGISTER_NAME): Define to refer to v850_register_names.
4504 (SR0_REGNUM, CTBP_REGNUM): Define.
4505 (PS_REGNUM): Redefine in terms of SR0_REGNUM.
4506
4507Tue Jan 26 18:27:26 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4508
4509 * Makefile.in (c-exp.tab.c): Use BISON instead of YACC, to pick
4510 the correct value from configure output.
4511 (jv-exp.tab.c): Ditto.
4512 (f-exp.tab.c): Ditto.
4513 (m2-exp.tab.c): Ditto.
4514
45151999-01-26 Jason Molenda (jsm@bugshack.cygnus.com)
4516
4517 * breakpoint.h (ep_is_exception_catchpoint): Add prototype.
4518 * frame.h (select_and_print_frame): Add prototype.
4519 * stack.c (func_command): Call select_and_print_frame with correct
4520 number of arguments. Reformat whitespace.
4521
4522Tue Jan 26 16:53:54 1999 Fernando Nasser <fnasser@cygnus.com>
4523
4524 * remote.c (remote_query): fix maximum packet size to account for
4525 remote_debug use.
4526 (putpkt): add comment to alert about extra byte need.
4527
4528Mon Jan 25 19:55:30 1999 Mark Alexander <marka@cygnus.com>
4529
4530 * sh-tdep.c (sh_target_architecture_hook): Return immediately
4531 when a matching machine is found.
4532
4533Fri Jan 22 09:10:35 1999 Mark Alexander <marka@cygnus.com>
4534
4535 * remote-mips.c (mips_initialize): Fix parameters to clear_breakpoint.
4536 (common_breakpoint): Restore support for instruction breakpoints
4537 on non-LSI targets.
4538
4539Thu Jan 21 17:16:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
4540
4541 * stack.c: Close open comment.
4542 * symtab.c (find_pc_sect_line): Ditto.
4543
4544Thu Jan 21 17:51:51 1999 Stan Shebs <shebs@andros.cygnus.com>
4545
4546 * procfs.c (init_procfs_ops): New function, fills in procfs_ops,
4547 init only nonzero fields, leave to_require_attach and
4548 to_require_detach empty, not needed for /proc systems yet.
4549 (_initialize_procfs): Call init_procfs_ops.
4550
4551 From J.T. Conklin <jtc@redbacknetworks.com>:
4552 * top.c (init_main): Fix tipo in description of the remotetimeout
4553 variable.
4554 * breakpoint.c (bpstat_stop_status): Handle systems where
4555 DECR_PC_AFTER_BREAK != DECR_PC_AFTER_HW_BREAK.
4556
4557Thu Jan 21 17:25:46 1999 Mark Alexander <marka@cygnus.com>
4558
4559 * mon960-rom.c (_initialize_mon960): Call init_mon960_cmds
4560 to fill in mon960_cmds structure properly.
4561
4562Wed Jan 20 17:53:22 1999 Stan Shebs <shebs@andros.cygnus.com>
4563
4564 * remote-sds.c (sds_ops): Define only once.
4565 (init_sds_ops, sds_command, _initialize_remote_sds): Declare.
4566 (init_sds_ops): Init only non-zero fields.
4567
4568Wed Jan 20 15:45:15 1999 Mark Alexander <marka@cygnus.com>
4569
4570 * h8300-tdep.c (original_register_names, h8300h_register_names,
4571 h8300_register_names): Define new variables.
4572 (set_register_names): New function to set register names based on
4573 current CPU type.
4574 (h8300_command, h8300h_command, h8300s_command): Call
4575 set_register_names.
4576 * config/h8300/tm-h8300.h (h8300_register_names): Declare.
4577 (REGISTER_NAME): Define to refer to h8300_register_names.
4578
45791999-01-19 Fernando Nasser <fnasser@totem.to.cygnus.com>
4580
4581 * sol-thread.c abug-rom.c cpu32bug-rom.c dbug-rom.c m32r-rom.c
4582 mac-nat.c mon960-rom.c op50-rom.c ppc-bdm.c remote-adapt.c
4583 remote-array.c remote-bug.c remote-e7000.c remote-eb.c remote-es.c
4584 remote-est.c remote-hms.c remote-mm.c remote-nindy.c remote-nrom.c
4585 remote-os9k.c remote-rdp.c remote-sds.c remote-sim.c remote-st.c
4586 remote-udi.c rom68k-rom.c sh3-rom.c sparcl-tdep.c sparclet-rom.c
4587 v850ice.c win32-nat.c: cosmetic changes to conform to coding
4588 standards.
4589
45901999-01-19 Jim Blandy <jimb@zwingli.cygnus.com>
4591
4592 Use aclocal to generate GDB's aclocal.m4 script.
4593 * acinclude.m4: New file, containing the hand-written local macro
4594 definitions that used to be in aclocal.m4. Don't sinclude
4595 ../bfd/aclocal.m4 any more; running aclocal in this directory will
4596 get us the definitions we need. HOWEVER: Do sinclude
4597 ../bfd/acinclude.m4, because we need the definition of
4598 BFD_NEED_DECLARATION.
4599 * aclocal.m4: Regenerated by aclocal.
4600 * configure: Regenerated by autoconf.
4601
4602Tue Jan 19 10:27:23 1999 David Taylor <taylor@texas.cygnus.com>
4603
4604 * breakpoint.c (disable_breakpoints_in_shlibs): new parameter,
4605 silent, controls whether to print message about removal of shared
4606 library breakpoints.
4607 * breakpoint.h (disable_breakpoints_in_shlibs): decl updated.
4608 * irix5-nat.c (clear_solib): call disable_breakpoints_in_shlibs.
4609 * osfsolib.c (clear_solib): ditto.
4610 * solib.c (clear_solib): ditto.
4611 * somsolib.c (som_solib_restart): update call to
4612 disable_breakpoints_in_shlibs.
4613
4614 * target.h (child_post_attach): only declare if CHILD_POST_ATTACH
4615 is define.
4616
4617Tue Jan 19 18:07:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
4618
4619 * corelow.c (solib_add_stub): Ditto.
4620 (core_file_to_sym_file): Cast make_cleanup parameter.
4621
4622 * solib.c (symbol_add_stub, solib_map_sections): Change argument
4623 to PTR insted of a char*. Matches catch_errors interface.
4624
4625Mon Jan 18 14:01:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
4626
4627 * remote-array.c (array_open): Don't use fprintf_filtered to send
4628 data to the log file.
4629
4630 * remote-array.c (handle_load_dll): Change argument type to PTR so
4631 that it is compatible with catch_errors.
4632 * ocd.c (ocd_start_remote): Ditto.
4633 * remote-sds.c (sds_start_remote): Ditto.
4634
4635 * win32-nat.c (win32_child_thread_alive): Namespace proof
4636 child_thread_alive.
4637 (init_child_ops): Update.
4638
4639Mon Jan 18 12:03:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
4640
4641 * remote-rdi.c (arm_rdi_open): Set gdb_hostif.hostosarg and
4642 gdb_hostif.dbgarg to NULL instead of stdout.
4643 (voiddummy, myprint, mywritec): Use gdb_stdout instead of stdout.
4644
4645Mon Jan 18 16:40:50 1999 Stan Shebs <shebs@andros.cygnus.com>
4646
4647 * ser-ocd.c (ocd_open): Handle Unix case gracefully.
4648
4649 * target.c (dummy_target): Don't initialize statically.
4650 (init_dummy_target): New function, fills in dummy_target.
4651 (initialize_targets): Use it.
4652 * hpux-thread.c (hpux_thread_ops): Don't initialize statically.
4653 (init_hpux_thread_ops): New function, fills in hpux_thread_ops.
4654 (_initialize_hpux_thread): Use it.
4655 * m3-nat.c (m3_ops): Don't initialize statically.
4656 (init_m3_ops): New function, fills in m3_ops.
4657 (_initialize_m3): Use it.
4658
46591999-01-18 Fernando Nasser <fnasser@totem.to.cygnus.com>
4660
4661 * sol-thread.c: delete compile time initialization of target_ops
4662 (_initialize_sol_thread): initialize target_ops at run time.
4663 * hpux-thread.c: added target_ops entry.
4664 * m3-nat.c: ditto.
4665
4666Mon Jan 18 15:19:13 1999 David Taylor <taylor@texas.cygnus.com>
4667
4668 * procfs.c (procfs_ops): delete compile time initialization.
4669 (_initialize_procfs): initialize procfs_ops at run time.
4670
4671Mon Jan 18 12:51:44 1999 Christopher Faylor <cgf@cygnus.com>
4672
4673 * configure.in: Ensure that -luser32 is always linked in
4674 for cygwin build.
4675 * configure: Regenerated.
4676
4677Mon Jan 18 08:38:05 1999 Mark Alexander <marka@cygnus.com>
4678
4679 * values.c (value_virtual_fn_field): Clear the pointed-to
4680 offset when casting to the base class.
4681
4682Mon Jan 18 10:30:51 1999 David Taylor <taylor@texas.cygnus.com>
4683
4684 * remote-udi.c (init_udi_ops): change non-existant udi_run_ops to
4685 udi_ops; delete NULL initializers.
4686
4687Mon Jan 18 12:03:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
4688
4689 * serial.c (serial_close): gdb_fclose tages gdb_file** arg, not
4690 gdb_file*.
4691
4692 * f-valprint.c, target.c, gdbarch.c: Pass gdb_stderr not stderr.
4693
4694Mon Jan 18 10:46:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
4695
4696 * stack.c (print_frame_info_base): Don't cast call to
4697 catch_errors.
4698 (print_args_stub): Change char* arg to PTR.
4699 * symmisc.c (print_symbol): Ditto.
4700 * top.c (quit_cover): Ditto.
4701 * remote.c (remote_open_1, remote_start_remote): Ditto.
4702 * infrun.c (normal_stop, hook_stop_stub, restore_selected_frame):
4703 Ditto.
4704
4705 * stack.c (backtrace_command): Cast first arg of make_cleanup to
4706 make_cleanup_func.
4707 * remote.c (remote_kill): Cast putpkt arg to catch_errors_ftype.
4708
4709Mon Jan 18 08:47:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
4710
4711 * defs.h (catch_errors_ftype): Define.
4712 (catch_errors): Replace char* arg with PTR arg.
4713 * top.c (catch_errors): Update
4714
4715 * breakpoint.c (bpstat_stop_status, bpstat_stop_status,
4716 delete_breakpoint, breakpoint_re_set): Delete all casts in call to
4717 catch_errors.
4718 (breakpoint_cond_eval, watchpoint_check,
4719 cover_target_enable_exception_callback, breakpoint_re_set_one):
4720 Arg is PTR not char*.
4721
4722 * breakpoint.c (cover_target_enable_exception_callback): Change
4723 type to int. Check for cast values of 0 and -1. Return a result!
4724 (insert_breakpoints): Move declaration of SAL and ARGS to where
4725 they are used.
4726
47271999-01-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
4728
4729 * remote.c (remote_query): new function - creates proper interface
4730 to the remote protocol "q" command.
4731
4732Fri Jan 15 17:11:48 EST 1999 Zdenek Radouch (radouch@cygnus.com)
4733
4734 * config/fr30/tm-fr30.h: Changed ABI to match GCC change
4735 (always use pointer for structs passed by value).
4736
47371999-01-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
4738
4739 * target.h: added entry for target queries (to_query)
4740 target.c: ditto.
4741
4742Thu Jan 14 18:29:17 1999 David Taylor <taylor@texas.cygnus.com>
4743
4744 * remote-mm.c (mm_wait): fix stream arg to gdb_flush.
4745 * remote-udi.c (udi_wait): fix stream arg to fwrite.
4746 * symmisc.c (maintenance_check_symtabs): fix stream argument to
4747 print_address_numeric.
4748
4749Wed Jan 13 19:33:16 1999 David Taylor <taylor@texas.cygnus.com>
4750
4751 * breakpoint.c (insert_breakpoints): insert cast to eliminate
4752 warning.
4753
4754Wed Jan 13 14:59:02 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
4755
4756 * infrun.c (set/show scheduler-locking) New command. Set a
4757 mode bit that will control how GDB attempts to control thread
4758 scheduling for step, continue, etc. (resume): make use of
4759 the schedule-locking mode.
4760 * target.h (struct target_ops): new field to_has_thread_control.
4761 * sol-thread.c: initialize target_ops to_has_thread_control.
4762 * procfs.c: ditto.
4763 * target.c: ditto.
4764 * m3-nat.c: ditto.
4765 * remote.c: ditto.
4766 * hpux-thread.c: ditto.
4767 * thread.c: cull duplicate prototypes. Move prototypes to top.
4768 * serial.c: indentation cleanup.
4769 * breakpoint.c: add casts to eliminate compiler warnings.
4770
4771Tue Jan 12 17:00:00 1999 Edith Epstein <eepstein@sophia.cygnus.com>
4772
4773 * inftarg.c (child_create_inferior): fixed HPUXHPPA specific
4774 call to fork_inferior. The shell param is now NULL.
4775
47761999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
4777
4778 * monitor.c (init_base_monitor_ops): Whitespace cleanup.
4779 (_initialize_remote_monitors): Same.
4780
47811999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
4782
4783 * monitor.c (init_monitor_ops): Initialize the monitor_ops
4784 structure if it hasn't already been done.
4785
4786Tue Jan 12 14:50:10 1999 Stan Shebs <shebs@andros.cygnus.com>
4787
4788 * inftarg.c (child_ops): Don't initialize statically.
4789 (init_child_ops): New function, fills in child_ops.
4790 (_initialize_inftarg): Use it.
4791 (child_post_attach): Declare extern.
4792 (child_wait): Fix ambiguous parens.
4793 (child_attach_to_process): Remove unused local wstatus.
4794 (child_insert_fork_catchpoint, child_remove_fork_catchpoint,
4795 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
4796 child_has_forked, child_insert_exec_catchpoint,
4797 child_remove_exec_catchpoint): Return a value.
4798
4799Mon Jan 11 16:43:44 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
4800
4801 * remote.c (remote_wait): Add inferior_pid to thread list only
4802 if it is not already there.
4803
48041999-01-11 Jason Molenda (jsm@bugshack.cygnus.com)
4805
4806 * scm-tags.h: Update FSF's address on copyright notice.
4807 * ser-e7kpc.c: Same.
4808 * gnu-nat.h: Same.
4809
4810Mon Jan 11 13:45:57 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
4811
4812 * dwarf2read.c (dump_die): Change stderr to gdb_stderr.
4813 * expprint.c (print_subexp): fprintf => fprintf_unfiltered.
4814 * jv-typeprint.c (java_type_print_base): fputs => fputs_filtered.
4815 * stack.c (struct function_bounds): Remove superfluous `typedef'.
4816 * symfile.c (list_overlays_command): stdout => gdb_stdout.
4817 * symmisc.c (maintenance_check_symtabs): stdout => gdb_stdout.
4818 * utils.c (print_spaces): Make more efficient.
4819
4820Mon Jan 11 13:55:51 1999 David Taylor <taylor@texas.cygnus.com>
4821
4822 * utils (print_spaces): fix arg to strcat; fix formatting.
4823
4824Fri Jan 8 11:57:24 1999 Stan Shebs <shebs@andros.cygnus.com>
4825
4826 * exec.c (exec_ops): Don't initialize statically.
4827 (init_exec_ops): New function, fills in exec_ops.
4828 (_initialize_exec): Use it.
4829
4830Thu Jan 7 17:50:15 EST 1999 Zdenek Radouch (radouch@cygnus.com)
4831
4832 Beta FR30 port.
4833 * fr30-tdep.c
4834 * config/fr30/tm-fr30.h
4835
4836Wed Jan 6 12:28:35 1999 David Taylor <taylor@texas.cygnus.com>
4837
4838 * configure.in: Add an --enable-tui argument. Construct
4839 tui/Makefile from tui/Makefile.in. Use AM_PROG_CC_STDC. If we
4840 have the GUI, then we need this to process libgui.h.
4841 (ENABLE_CFLAGS): define and export BUILD_TUI.
4842 (AC_CHECK_HEADERS): Add check for term.h.
4843
4844 * configure.host (hppa-*-hpux10.20, hppa-*-hpux11.0*): New configs.
4845
4846 * config.in, configure : regenerated.
4847
4848 * Makefile.in: Allow the TUI code to be conditionally enabled.
4849 (TUI_LIBRARY): New variable, value are set by the configuration
4850 script. Set to the empty string when the TUI isn't enabled.
4851 (gdb$(GDBEXT)): Use those, instead of referring to all-tui and
4852 tui/libtui.a directly.
4853 (BUILD_TUI): build the tui -- only when configured with
4854 --enable-tui.
4855 (YLWRAP): use ylwrap to avoid problems on systems w/o bison.
4856 (gdb$(EXEEXT)): make it dependent on BUILD_TUI.
4857 (all-tui): remove dependency from phony target.
4858 (c-exp.tab.c): use ylwrap instead of bison.
4859 (jv-exp.tab.c): ditto.
4860 (f-exp.tab.c): ditto.
4861 (m2-exp.tab.c): ditto.
4862 (ALLDEPFILES): add somread.c, hp-psymtab-read.c, hp-symtab-read.c.
4863 (SFILES): remove the above files
4864 (COMMON_OBS): remove somread.o
4865 (SFILES): Add the tui files to this, so they get included in etags
4866 tables.
4867 (gdb$(EXEEXT)): Add all-tui to the list of dependencies, and add
4868 tui/libtui.a to the link list.
4869 (all-tui): New rule, which does a recursive make in the tui
4870 subdir.
4871 (tui/libtui.a): When recursing, pass down ${FLAGS_TO_PASS}. And
4872 don't echo the make command. This is closer to what the other
4873 recursions do.
4874 (HFILES_NO_SRCDIR): add hpread.h
4875 (COMMON_OBS): add hp-psymtab-read.o, hp-symtab-read.o
4876 (SFILES): add hp-psymtab-read.c, hp-symtab-read.c add rules for
4877 the new files. Remove hpread.c, hpread.o
4878 (gdb$(EXEEXT)): Depend on the actual tui library, not on a
4879 fictitious target. Since the fictitious target never existed,
4880 make would always relink.
4881 (tui/libtui.a): Always recurse to make sure the library is up to
4882 date.
4883
4884Wed Jan 6 12:05:12 1999 Stan Shebs <shebs@andros.cygnus.com>
4885
4886 * remote.c: Pacify --enable-build-warnings, reformat code
4887 to conform to standards, fix spelling errors.
4888 (ishex, stubhex, record_currthread, etc): Declare.
4889 (ishex, stubhex): Declare char arg as int.
4890 (pack_string): Comment out, never used but possibly useful.
4891 (threadref_to_int, remote_get_threadinfo, etc): Make static.
4892
4893Wed Jan 6 11:43:32 1999 David Taylor <taylor@texas.cygnus.com>
4894
4895 The following changes were made by Elena Zannoni
4896 <ezannoni@cygnus.com> and Edith Epstein <eepstein@cygnus.com> as
4897 part of a project to merge in changes made by HP.
4898
4899 * c-exp.y: use external flag hp_som_som_object_present to decide
4900 whether code was compiled by HP's compilers. Add two new C++
4901 tokens for true and false.
4902 (yylex): check for template name is done differently for the
4903 HP/aCC compiler case. Change some of the template processing code
4904 for handling HP aCC templates. Handle true and false tokens.
4905
4906Tue Jan 5 11:13:36 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
4907
4908 * remote.c (record_curthread): Must not modify inferior_pid when
4909 called from wait_for_inferior. Instead, if a new thread-id is
4910 detected, call add_thread.
4911 (MAGIC_NULL_PID): new macro, use instead of the magic number
4912 "42000".
4913 (remote_find_new_threads): if inferior_pid is unknown, get and use
4914 the current thread id.
4915 (remote_start_remote): on connecting, attempt to get the current
4916 thread id for inferior_pid.
4917 (remote_resume): If pid == -1, then resume any-thread (not the
4918 current thread specifically). Also some cosmetic fixups.
4919
4920 * thread.c (info_threads_command): don't initialize current_pid
4921 until after call to FIND_NEW_THREADS (which may change inferior_pid).
4922 Also some cosmetic fixups.
4923 * infrun.c: cosmetic fixups and casts to avoid warnings.
4924 * infcmd.c: cosmetic fixups, mainly long lines.
4925
4926Tue Jan 5 11:55:57 1999 David Taylor <taylor@texas.cygnus.com>
4927
4928 * target.c (noprocess): terminate sentence with a period.
4929 * breakpoint.c (catch_command_1): ditto.
4930
4931 * c-valprint.c (c_value_print): remove hack^2 from HP; it causes
4932 testsuite losses with no real gain.
4933
4934 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): restore, but only
4935 if tm-*.h hasn't overridden default value.
4936
49371999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
4938
4939 * configure.in: Fix whitespace indentation for --help.
4940 * configure: Regenerated.
4941
49421999-01-04 Manuel Bouyer <bouyer@antioche.lip6.fr>
4943
4944 * main.c: Add --write command line option, document -w.
4945 * gdb.1: Document --write.
4946
49471999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
4948
4949 * configure.in: Require autoconf 2.12.1 or higher.
4950 * doc/configure.in: Ditto.
4951 * nlm/configure.in: Ditto.
4952 * rdi-share/configure.in: Ditto.
4953 * testsuite/configure.in: Ditto.
4954 * doc/Makefile.in: Don't hardcode $(SHELL).
4955 * nlm/Makefile.in: Ditto.
4956 * rdi-share/Makefile.in: Ditto.
4957 * testsuite/Makefile.in: Ditto.
4958
4959Mon Jan 4 12:53:03 1999 Stan Shebs <shebs@andros.cygnus.com>
4960
4961 * remote-vx.c (init_vx_ops, init_vx_run_ops): Remove unneeded
4962 inits of new fields, including ref to bogus field.
4963 (vx_ops, vx_run_ops): Make static.
4964
4965Mon Jan 4 15:05:29 1999 David Taylor <taylor@texas.cygnus.com>
4966
4967 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): delete,
4968 already defined in tm.h.
4969
4970 * inftarg.c: change <sys/unistd.h> to <unistd.h> and
4971 conditionalize its inclusion.
4972 * infttrace.c: ditto.
4973
4974For older changes see ChangeLog-98
4975\f
4976Local Variables:
4977mode: change-log
4978left-margin: 8
4979fill-column: 74
4980version-control: never
4981End:
This page took 0.221845 seconds and 4 git commands to generate.