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