The following changes avoid polluting global namespace with the
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2001-08-02 Eli Zaretskii <eliz@is.elta.co.il>
2
3 The following changes avoid polluting global namespace with the
4 `enable' and `disable' identifiers, because some platforms define
5 in their system headers symbols with global scope that go by those
6 names.
7
8 * breakpoint.h (enum enable_state): Rename from `enum enable'.
9 Also rename all the enum members to have the "bp_" prefix.
10 (struct breakpoint): Rename the `enable' member to `enable_state'.
11 (enum bpdisp): Rename all members to have the "disp_" prefix.
12
13 * breakpoint.c: All users of `enum enable' and `enum bpdisp'
14 changed.
15 (args_for_catchpoint_enable): Rename the `enable' member to
16 `enable_p'. All users changed.
17
18 * tracepoint.h (enum enable): Remove.
19 (struct tracepoint): The member `enabled' is now `int enabled_p'.
20
21 * tracepoint.c: All users of the `enabled' member changed.
22
23 * printcmd.c (struct display): The `status' member is now an int.
24
25 * memattr.h (struct mem_region): Rename the `status' member to
26 `enabled_p'.
27 (enum enable): Remove.
28
29 * memattr.c: Change all users of the `status' member of struct
30 mem_region to use `enabled_p' instead.
31
32 * infcmd.c (run_stack_dummy): Use disp_del instead of del.
33
34 * go32-nat.c: Remove the kludgey work-around for conflicts between
35 <dos.h> and "breakpoint.h".
36
37 2001-08-02 Corinna Vinschen <vinschen@redhat.com>
38
39 * MAINTAINERS: Add myself to the write-after-approval list.
40 * ser-tcp.c (tcp_open): Use `localhost' as default host if no
41 hostname is given.
42
43 2001-08-01 Andrew Cagney <ac131313@redhat.com>
44
45 * doublest.h (store_floating, floatformat_to_doublest): Make IN
46 paramter a const void pointer.
47 (floatformat_from_doublest): Make IN const, Make OUT a void
48 pointer.
49 * doublest.c (floatformat_to_doublest): Update.
50 (floatformat_from_doublest): Update.
51 (extract_floating): Update.
52
53 2001-07-31 Andrew Cagney <ac131313@redhat.com>
54
55 * defs.h (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
56 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
57 (HOST_LONG_DOUBLE_FORMAT, DOUBLEST)
58 (floatformat_to_doublest, floatformat_from_doublest)
59 (floatformat_is_negative, floatformat_is_nan)
60 (floatformat_mantissa, store_floating)
61 (extract_floating): Move declaration from here.
62 * doublest.h: To here. New file.
63 * utils.c (get_field, floatformat_to_doublest, put_field)
64 (ldfrexp, floatformat_from_doublest, floatformat_is_negative)
65 (floatformat_is_nan, floatformat_mantissa)
66 (FLOATFORMAT_CHAR_BIT): Move from here.
67 * doublest.c: To here. New file.
68 * findvar.c (store_floating, extract_floating): Move from here.
69 * doublest.c: To here.
70 * Makefile.in (SFILES): Add doublest.c.
71 (COMMON_OBS): Add doublest.o.
72 (doublest.o): Specify dependencies.
73 (doublest_h): Define.
74
75 * config/m88k/tm-m88k.h: Include "doublest.h".
76 * config/i960/tm-i960.h: Ditto.
77 * config/i386/tm-symmetry.h: Ditto.
78 * rs6000-tdep.c, valarith.c: Ditto.
79 * valprint.c, stabsread.c, sh-tdep.c: Ditto.
80 * ia64-tdep.c, i387-tdep.c, i386-tdep.c: Ditto.
81 * values.c, arm-tdep.c, arm-linux-tdep.c: Ditto.
82 * alpha-tdep.c, ax.h, expression.h: Ditto.
83 * sh-tdep.c, parse.c, top.c, value.h: Ditto.
84
85 * Makefile.in (arm-tdep.o): Add $(doublest_h).
86 (i386-tdep.o, i387-tdep.o, ia64-tdep.o): Ditto.
87 (rs6000-tdep.o, stabsread.o, valarith.o): Ditto.
88 (values.o, valprint.o, arm-linux-tdep.o): Ditto.
89 (alpha-tdep.o, ax_h, parse.o, top.o, value_h): Ditto.
90 (parser_defs_h): Ditto.
91 (expression_h): Add $(doublest_h) and $(symtab_h).
92
93 2001-08-01 Andrew Cagney <ac131313@redhat.com>
94
95 * Makefile.in: Sort header definitions.
96 (parser_defs_h, dis_asm_h, annotate_h, gdbthread_h): Define.
97 Replace parser-defs.h with $(parser_defs_h). Replace $(dis-asm_h)
98 and $(dis-asm.h) with $(dis_asm_h). Replace annotate.h with
99 $(annotate_h). Replace target.h with $(target_h). Replace
100 gdbthread.h with $(gdb_thread_h). Replace symfile.h with $(symfile_h).
101
102 2001-07-31 Mark Kettenis <kettenis@gnu.org>
103
104 * config/i386/xm-i386.h: New file.
105 * config/i386/xm-fbsd.h: Removed.
106 * config/i386/xm-linux.h: Removed.
107 * config/i386/fbsd.mh: Reorganize a bit.
108 (XM_FILE): Set to xm-i386.h instead of xm-fbsd.h.
109 * config/i386/linux.mh (XM_FILE): Set to xm-i386.h insread of
110 xm-linux.h.
111
112 2001-07-30 Jim Blandy <jimb@redhat.com>
113
114 * dwarf2read.c (dwarf2_build_psymtabs_hard): Doc fix.
115
116 2001-07-27 Daniel Jacobowitz <drow@mvista.com>
117
118 * configure.in: Only invoke AC_FUNC_SETPGRP if not cross-compiling.
119 Check for SETPGRP_VOID separately if cross-compiling and ISO C
120 headers are available.
121
122 2001-07-30 Mark Kettenis <kettenis@gnu.org>
123
124 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Redefine to call
125 i386_dwarf_reg_to_regnum.
126
127 * i386-tdep.c (i386_register_convert_to_virtual): Replace
128 assertion with a warning if we're asked to convert towards a
129 non-floating-point type. Zero out the the buffer where the data
130 is supposed to be stored in that case.
131
132 2001-07-29 Eli Zaretskii <eliz@is.elta.co.il>
133
134 * config/djgpp/djconfig.sh: Unset CDPATH.
135
136 * go32-nat.c (get_cr3): Temporary disable support for page tables
137 in UMBs, as it is incomplete.
138
139 Support for stepping through longjmp in DJGPP programs:
140
141 * config/i386/tm-go32.h (JB_ELEMENT_SIZE, JB_PC): New macros.
142 (GET_LONGJMP_TARGET): Define to call get_longjmp_target.
143 (get_longjmp_target): Add prototype.
144
145 2001-07-28 Andrew Cagney <ac131313@redhat.com>
146
147 Fix some PID/TPID fallout for HP/UX.
148 From 2001-07-22 Rodney Brown <rbrown64@csc.com.au>:
149 * infttrace.c (ptrace_wait): Match external declaration,
150 and match target_post_wait declaration.
151
152 2001-07-28 Andrew Cagney <ac131313@redhat.com>
153
154 * MAINTAINERS: Add Orjan Friberg as cris target maintainer.
155 (cris): Set --enable-gdb-build-warnings flag to -w.
156
157 2001-07-28 Andrew Cagney <ac131313@redhat.com>
158
159 From 2001-07-23 Andreas Schwab <schwab@suse.de>:
160 * config/m68k/tm-m68k.h (TARGET_LONG_DOUBLE_FORMAT): Define.
161 (TARGET_LONG_DOUBLE_BIT): Define.
162 (REGISTER_VIRTUAL_SIZE): Return 12 for floating point registers.
163 (MAX_REGISTER_VIRTUAL_SIZE): Increase to 12.
164 (REGISTER_VIRTUAL_TYPE): Return builtin_type_long_double for
165 floating point registers.
166 (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL)
167 (REGISTER_CONVERT_TO_RAW): Remove.
168 * config/m68k/xm-linux.h (HOST_LONG_DOUBLE_FORMAT): Define.
169
170 2001-07-26 Andrew Cagney <ac131313@redhat.com>
171
172 * thread.c, breakpoint.c: Include "gdb.h".
173 * Makefile.in (gdb_h): Define.
174 (HFILES_NO_SRCDIR): Add gdb.h.
175 (mi-cmd-break.o, mi-main.o, thread.o)
176 (breakpoint.o): Add dependency on $(gdb_h).
177
178 * defs.h (enum gdb_rc, gdb_breakpoint_query)
179 (gdb_breakpoint, gdb_thread_select)
180 (gdb_list_thread_ids): Move declaration from here ...
181 * gdb.h: To here. New file.
182
183 2001-07-28 Stephane Carrez <Stephane.Carrez@worldnet.fr>
184
185 * Makefile.in (SUBDIR_TUI_OBS): Add tui-out.o, tui-hooks.o.
186 (SUBDIR_TUI_SRCS): Add tui-out.c tui-hooks.c
187 (SFILES): Likewise.
188 (tui-out.o): Define dependencies.
189 (tui-hooks.o): Likewise.
190
191 2001-07-28 Andrew Cagney <ac131313@redhat.com>
192
193 * MAINTAINERS: Update e-mail address of active @cygnus.com
194 maintainers to @redhat.com.
195
196 2001-07-28 Andrew Cagney <ac131313@redhat.com>
197
198 * README (Known bugs): Delete section.
199 (Kernel debugging): Delete section.
200 (Languages other than C): Delete section.
201 (Host/target specific installation notes) New section.
202
203 2001-07-28 Mark Kettenis <kettenis@gnu.org>
204
205 * config/i386/tm-i386.h (STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
206 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): New defines.
207 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): New
208 prototypes.
209 * config/i386/tm-fbsd.h, config/i386/tm-i386gnu.h,
210 config/i386/tm-linux.h (STAB_REG_TO_REGNUM): Redefine to call
211 i386_dwarf_reg_to_regnum.
212 * i386-tdep.c (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum):
213 New functions.
214
215 * i386-tdep.c: Include "gdb_assert.h"
216 (i386_register_convert_to_virtual): Fix such that it can handle
217 conversion to any floating-point type. Assert that we are dealing
218 with a floating-point first.
219 (i386_register_convert_to_raw): Assert that TYPE is a
220 floating-point type with length 12.
221
222 2001-07-27 John R. Moore <jmoore@redhat.com>
223
224 * configure.in: Added dependency of gdb on tcl/tk libraries.
225 * Makefile.in: Likewise.
226 * configure: Regenerated with the above using autoconf.
227
228 2001-07-26 Elena Zannoni <ezannoni@redhat.com>
229
230 * sh-tdep.c (sh_gdbarch_init): Use SH_DEFAULT_NUM_REGS instead of
231 NUM_REGS.
232 (SH_DEFAULT_NUM_REGS): Define.
233
234 2001-07-26 Eli Zaretskii <eliz@is.elta.co.il>
235
236 * go32-nat.c (read_memory_region): Make sure the segment limit was
237 indeed set, to work around a Windows 2000 bug.
238
239 2001-07-25 Daniel Jacobowitz <drow@mvista.com>
240
241 * infptrace.c (child_xfer_memory): Add cast to CORE_ADDR.
242 * infttrace.c (child_xfer_memory): Likewise.
243 * symm-nat.c (child_xfer_memory): Likewise.
244 * gdbserver/low-hppabsd.c (read_inferior_memory): Likewise.
245 (write_inferior_memory): Likewise.
246 * gdbserver/low-linux.c (read_inferior_memory): Likewise.
247 (write_inferior_memory): Likewise.
248 * gdbserver/low-lynx.c (read_inferior_memory): Likewise.
249 (write_inferior_memory): Likewise.
250 * gdbserver/low-nbsd.c (read_inferior_memory): Likewise.
251 (write_inferior_memory): Likewise.
252 * gdbserver/low-sparc.c (read_inferior_memory): Likewise.
253 (write_inferior_memory): Likewise.
254 * gdbserver/low-sun3.c (read_inferior_memory): Likewise.
255 (write_inferior_memory): Likewise.
256
257 2001-07-25 Eli Zaretskii <eliz@is.elta.co.il>
258
259 * README: Mention how to make gdb.pdf.
260
261 * NEWS: Update.
262
263 2001-07-24 Stephen P. Smith <ischis2@home.com>
264
265 * MAINTAINERS (Stephen P. Smith): Added to write after approval
266 list.
267
268 2001-07-23 Andrew Cagney <ac131313@redhat.com>
269
270 * mips-tdep.c (mips_push_arguments): Add comment explaining
271 problem with LE o32 GCC.
272
273 2001-07-23 Elena Zannoni <ezannoni@redhat.com>
274
275 * config/powerpc/aix.mh (MH_LDFLAGS): Don't set these, the Gnu linker
276 doesn't understand them.
277
278 2001-07-23 Elena Zannoni <ezannoni@redhat.com>
279
280 * memattr.c (mem_info_command): Reformat output to look more like
281 'info break' output.
282 (_initialize_mem): Improve help.
283
284 2001-07-23 Mark Kettenis <kettenis@gnu.org>
285
286 * configure.in (AC_CHECK_FUNCS): Add setpggrp.
287 (AC_FUNC_SETPGRP): Add.
288 * aclocal.m4, configure, config.in: Regenerated.
289 * inflow.c (gdb_setpgid): Get rid of NEED_POSIX_SETPGID and
290 SETPGRP_ARGS. Always use setpgid if it is available, fall back on
291 setpgrp if it isn't. Use SETPGRP_VOID (defined by autoconf) to
292 distinguish between the two setpgrp flavours.
293 * config/xm-sysv4.h, config/arm/xm-linux.h,
294 config/i386/xm-i386aix.h, config/i386/xm-sco.h,
295 config/i386/xm-linux.h, config/i386/xm-ptx.h,
296 config/m68k/xm-linux.h, config/powerpc/xm-linux.h,
297 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h,
298 config/ia64/xm-linux.h (NEED_POSIX_SETPGID): Remove.
299 * config/rs6000/xm-rs6000.h (SETPGRP_ARGS): Remove.
300
301 2001-07-23 Eli Zaretskii <eliz@is.elta.co.il>
302
303 * go32-nat.c (read_memory_region): Set the granularity bit of the
304 allocated segment according to its size, and adjust the limit to
305 be page-aligned if the segment is page-granular.
306
307 * (get_cr3, get_pde, get_pte, display_ptable_entry, go32_pde)
308 (display_page_table, go32_pte, go32_pte_for_address): New functions.
309 (_initialize_go32_nat): Initialize and document them.
310
311 2001-07-22 Mark Kettenis <kettenis@gnu.org>
312
313 * i386gnu-nat.c: Include "i387-nat.h".
314 (struct env387): Removed.
315 (reg_offset): Fix comment.
316 (fetch_fpregs): Use FCTRL_REGNUM and FOP_REGNUM instead of
317 FIRST_FPU_CONTROL_REGNUM and LAST_FPU_CONTROL_REGNUM. Rewrite to
318 use i387_supply_fsave.
319 (gnu_fetch_registers): Remove spurious whitespace.
320 (convert_to_env387): Remove.
321 (store_fpregs): Add argument regno. Use i387_fill_fsave instead
322 of convert_to_env387.
323 (gnu_store_registers): Remove spurious whitespace. Pass REGNO to
324 store_fpregs.
325 * config/i386/i386gnu.mt (TDEPFILES): Add i387-tdep.o.
326 * config/i386/i386gnu.mh (XDEPFILES): Remove i387-tdep.o.
327 (NATDEPFILES): Add i387-nat.o.
328
329 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
330
331 * Makefile.in (ALLDEPFILES): Add m68hc11-tdep.c.
332 (m68hc11-tdep.o): Define dependencies.
333
334 2001-07-22 Stephane Carrez <Stephane.Carrez@worldnet.fr>
335
336 * m68hc11-tdep.c (m68hc11_gdbarch_init): Define int at 16-bits.
337
338 2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
339
340 * utils.c (init_page_info): Use tui_get_command_dimension.
341 * printcmd.c (disassemble_command): Simplify tui specific code,
342 use tui_is_window_visible, tui_show_assembly.
343
344 2001-07-21 Mark Kettenis <kettenis@gnu.org>
345
346 * i386bsd-nat.c: Do not include <sys/sysctl.h>.
347 (_initialize_i386bsd_nat) [KERN_PS_STRINGS]: Move FreeBSD-specific
348 code to ...
349 * i386fbsd-nat.c: ... here. New file.
350 * config/i386/fbsd.mh (NATDEPFILES): Add i386-fbsd.o.
351 * config/i386/nm-fbsd.h (CHILD_RESUME): Define.
352 * Makefile.in (ALLDEPFILES): Add i386fbsd-nat.c.
353 (i386fbsd-nat.o): Add dependencies.
354
355 2001-07-19 Daniel Jacobowitz <drow@mvista.com>
356
357 * signals.c: New file.
358 * Makefile.in: Add signals.o.
359 * target.c (struct signals, target_signal_to_name)
360 (target_signal_from_name, target_signal_from_host)
361 (do_target_signal_to_host, target_signal_to_host_p)
362 (target_signal_to_host, target_signal_from_command): Move to
363 signals.c.
364 (initialize_targets): Move check of struct signals to...
365 * signals.c (_initialize_signals): Here.
366
367 2001-07-19 Andrew Cagney <ac131313@redhat.com>
368
369 * MAINTAINERS: Add Michael Chastain as C++ testsuite maintainer.
370
371 2001-07-19 Andrew Cagney <ac131313@redhat.com>
372
373 From Stephen Smith:
374 * configure.tgt (i*86-*-pe*): New target.
375
376 2001-07-19 Andrew Cagney <ac131313@redhat.com>
377
378 From 2001-07-16 Rodney Brown <rbrown64@csc.com.au>:
379 * infttrace.c (child_thread_alive): Fix gdb_tid typo.
380 * somsolib.c (no_shared_libraries): Provide stub.
381 * xcoffsolib.c (no_shared_libraries): Provide stub.
382
383 2001-07-18 Stephane Carrez <Stephane.Carrez@worldnet.fr>
384
385 * Makefile.in (COMMON_OBS): Remove tui-file.o.
386 (SUBDIR_TUI_OBS): Add it here.
387 (SUBDIR_TUI_SRCS): Move tui-file.c and tui-file.h here.
388 (main.o): Remove dependency with tui-file.h.
389
390 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
391
392 * Makefile.in (tui-file.o): Update dependencies.
393
394 2001-07-17 Elena Zannoni <ezannoni@redhat.com>
395
396 * top.c (catch_errors): Convert PTR to void * in parameters list.
397 (quit_cover): Ditto.
398
399 2001-07-17 Stephane Carrez <Stephane.Carrez@worldnet.fr>
400
401 * source.c (find_source_lines): Remove tui test, must be replaced
402 by appropriate warning hook.
403 (print_source_lines): Remove tui hacks, must be replaced by cli.
404 (forward_search_command): Remove tui hacks, can be replaced by
405 appropriate calls to identify_source_line when tui scrolls.
406 (reverse_search_command): Likewise.
407
408 2001-07-16 Nick Duffek <nsd@redhat.com>
409
410 * remote.c (init_remote_ops, init_remote_cisco_ops,
411 init_remote_async_ops): Set to_pid_to_str and
412 to_extra_thread_info correctly and in the same order as declared
413 in target.h.
414
415 2001-07-16 Andrew Cagney <ac131313@redhat.com>
416
417 * remote.c: Revert below. Included more than intended.
418
419 2001-07-16 Nick Duffek <nsd@redhat.com>
420
421 * remote.c (init_remote_ops, init_remote_cisco_ops,
422 init_remote_async_ops): Set to_pid_to_str and
423 to_extra_thread_info correctly and in the same order as declared
424 in target.h.
425
426 2001-07-16 Nick Duffek <nsd@redhat.com>
427
428 * findvar.c (read_var_value): Apply value_as_pointer() to
429 addresses retrieved from the target for LOC_BASEREG and
430 LOC_BASEREG_ARG variables.
431
432 2001-07-16 Orjan Friberg <orjanf@axis.com>
433
434 * NEWS: New target CRIS.
435
436 2001-07-16 Elena Zannoni <ezannoni@redhat.com>
437
438 * top.c (show_commands): Remove extern decl of history_get, it's
439 already in readline/history.h.
440
441 2001-07-16 Elena Zannoni <ezannoni@redhat.com>
442
443 * top.c (is_complete_command, init_cmd_lists, init_cli_cmds,
444 execute_user_command, do_setshow_command, get_prompt, init_proc,
445 serial_log_command): Remove extern declarations. Include
446 cli/cli-cmds.h, cli/cli-script.h, cli/cli-setshow.h, serial.h.
447 * gdbcmd.h (execute_user_command): Remove declaration, it's already
448 in cli/cli-script.h.
449 * command.h (do_setshow_command): Remove declaration, it's already
450 in cli/cli-setshow.h.
451 * infrun.c: Include "cli/cli-script.h" for execute_user_command.
452 * Makefile.in (infrun.o): Update dependencies.
453 (top.o): Ditto.
454 * cli/cli-setshow.h: Add comment for do_setshow_command.
455
456 2001-07-16 Eli Zaretskii <eliz@is.elta.co.il>
457
458 * cli/cli-cmds.c (shell_escape) [GLOBAL_CURDIR]: Condition the
459 call to chdir on this symbol rather than on __DJGPP__.
460 (CANT_FORK) [__MSDOS__]: Move from here...
461 * defs.h (CANT_FORK) [__MSDOS__]: ...to here.
462 (GLOBAL_CURDIR) [__MSDOS__]: Define.
463
464 2001-07-16 Orjan Friberg <orjanf@axis.com>
465
466 * configure.tgt: Recognise the CRIS architecture.
467 * config/cris/cris.mt: New file for CRIS target.
468 * cris-tdep.c: New file for CRIS target.
469
470 2001-07-15 Elena Zannoni <ezannoni@redhat.com>
471
472 * top.c (quit_cover, float_handler): Move definition up before use.
473 (gdb_init): Move to end of file, to avoid calls to not yet defined
474 functions.
475 Delete prototypes.
476
477 2001-07-14 Andrew Cagney <ac131313@redhat.com>
478
479 * serial.h (SERIAL_ASYNC): Delete.
480 (DEPRECATED_SERIAL_FD): Delete.
481 (SERIAL_DEBUG): Delete.
482 (SERIAL_DEBUG_P): Delete.
483 (SERIAL_DRAIN_OUTPUT): Delete.
484 (SERIAL_FLUSH_OUTPUT): Delete.
485 (SERIAL_FLUSH_INPUT): Delete.
486 (SERIAL_SEND_BREAK): Delete.
487 (SERIAL_RAW): Delete.
488 (SERIAL_GET_TTY_STATE): Delete.
489 (SERIAL_SET_TTY_STATE): Delete.
490 (SERIAL_PRINT_TTY_STATE): Delete.
491 (SERIAL_NOFLUSH_SET_TTY_STATE): Delete.
492 (SERIAL_SETBAUDRATE): Delete.
493 (SERIAL_SETSTOPBITS): Delete.
494 (SERIAL_CAN_ASYNC_P): Delete.
495 (SERIAL_IS_ASYNC_P): Delete.
496 (SERIAL_UN_FDOPEN): Delete.
497 (SERIAL_READCHAR): Delete.
498 (SERIAL_CLOSE): Delete.
499 (SERIAL_FDOPEN): Delete.
500 (SERIAL_OPEN): Delete.
501 * ser-unix.c: Update.
502 * sparclet-rom.c: Update.
503 * remote-bug.c: Update.
504 * dsrec.c: Update.
505 * xmodem.c: Update.
506 * nindy-share/ttyflush.c: Update.
507 * nindy-share/Onindy.c: Update.
508 * utils.c: Update.
509 * serial.c: Update.
510 * remote-nindy.c: Update.
511 * inflow.c: Update.
512 * sparcl-tdep.c: Update.
513 * sh3-rom.c: Update.
514 * remote.c: Update.
515 * remote-utils.c: Update.
516 * remote-st.c: Update.
517 * remote-sds.c: Update.
518 * remote-rdp.c: Update.
519 * remote-os9k.c: Update.
520 * remote-nrom.c: Update.
521 * remote-mips.c: Update.
522 * remote-es.c: Update.
523 * remote-e7000.c: Update.
524 * remote-array.c: Update.
525 * ocd.c: Update.
526 * nindy-share/nindy.c: Update.
527 * monitor.c: Update.
528
529 2001-07-14 Andrew Cagney <ac131313@redhat.com>
530
531 * mn10200-tdep.c: Replace value_ptr with ``struct value *''.
532 * mcore-tdep.c: Ditto.
533 * sparc-tdep.c: Ditto.
534 * sh-tdep.c: Ditto.
535 * rs6000-tdep.c: Ditto.
536 * ppc-linux-tdep.c: Ditto.
537 * m68hc11-tdep.c: Ditto.
538 * ia64-tdep.c: Ditto.
539 * i386-tdep.c: Ditto.
540 * arm-linux-tdep.c: Ditto.
541 * hppa-tdep.c: Ditto.
542 * h8500-tdep.c: Ditto.
543 * fr30-tdep.c: Ditto.
544 * arm-tdep.c: Ditto.
545 * alpha-tdep.c: Ditto.
546 * d30v-tdep.c: Ditto.
547 * d10v-tdep.c: Ditto.
548 * m32r-tdep.c: Ditto.
549 * mips-tdep.c: Ditto.
550 * v850-tdep.c: Ditto.
551
552 2001-07-15 Elena Zannoni <ezannoni@redhat.com>
553
554 * top.c (readline_line_completion_function, noop_completer): Move
555 from here...
556 * completer.c (readline_line_completion_function, noop_completer):
557 ...to here.
558 * gdbcmd.h (readline_line_completion_function, noop_completer):
559 Move declarations from here...
560 * completer.h (readline_line_completion_function, noop_completer):
561 ...to here.
562 * corefile.c: Include completer.h.
563 * source.c: Ditto.
564 * symfile.c: Ditto.
565 * Makefile.in: Update dependencies.
566
567 2001-07-15 Eli Zaretskii <eliz@is.elta.co.il>
568
569 * go32-nat.c (go32_create_inferior): Support command lines longer
570 than 126 characters.
571
572 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
573
574 * NEWS: New target 68HC11/68HC12.
575
576 2001-07-14 Stephane Carrez <Stephane.Carrez@worldnet.fr>
577
578 * utils.c (query): Remove tui hacks; tui must use the query_hook.
579 * top.c (command_loop): Remove tui insert_mode hacks; don't call
580 tuiCleanUp because this must be made with atexit by tui.
581 * symfile.c (symbol_file_command): Remove call to TUIDO
582 * stack.c (show_and_print_stack_frame_stub): Remove tui check;
583 not necessary when using the selected frame hooks.
584 (print_stack_frame_stub): Likewise.
585 (print_frame_info_base): Likewise.
586 (print_frame_info): Likewise.
587 (up_silently_command): Likewise.
588 (down_silently_command): Likewise.
589 (show_stack_frame): Likewise for TUIDO.
590 (select_frame): Likewise.
591 (select_and_print_frame): Likewise.
592 (stack_publish_stopped_with_no_frame): Remove.
593 (select_and_maybe_print_frame): Remove.
594 * main.c (captured_main): Remove tui_fileopen and tuiInit; tui
595 must use the initialize ui hook.
596 * infrun.c (normal_stop): Remove call to TUIDO; tui must use the
597 selected frame hooks.
598 * event-top.c (command_handler): Remove tui insert_mode hack.
599 * defs.h: Remove TUIDO; Only include tui.h.
600 * breakpoint.c (mention): Remove calls to TUIDO.
601 (delete_breakpoint): Remove tui hacks; tui must install
602 the breakpoint hooks.
603
604 2001-07-14 Mark Kettenis <kettenis@gnu.org>
605
606 * config/i386/xm-linux.h (KERNEL_U_ADDR): Move from here...
607 * config/i386/nm-linux.h: ...to here. Change comments about user
608 area/struct a bit.
609
610 * config/i386/xm-linux.h (HAVE_TERMIOS): Really remove.
611
612 * Makefile.in (ALLDEPFILES): Add i386bsd-nat.c and i386bsd-tdep.c
613 (i386bsd-tdep.o, i386bsd-nat.o): New targets.
614
615 2001-07-13 Elena Zannoni <ezannoni@redhat.com>
616
617 * remote-e7000.c (fetch_regs_from_dump): If register set is null,
618 generate an internal error.
619 (e7000_fetch_registers): Initialize variable 'wanted'.
620 (e7000_wait): Initialize variable 'wanted_nopc'.
621 (e7000_store_register): Fix sprintf compiler warnings.
622 (sub2_from_pc): Ditto.
623 (e7000_open): Close the descriptor, not the name.
624 (e7000_load): Fix compiler warnings.
625 (sub2_from_pc): Ditto.
626 * Makefile.in (remote-e7000.o): Can now compile with -Werror.
627
628 2001-07-13 Mark Kettenis <kettenis@gnu.org>
629
630 * i386bsd-nat.c: Include <signal.h>, <stddef.h> and
631 <sys/sysctl.h>.
632 (store_inferior_registers): Wrap long line.
633 (i386bsd_dr_get_status): Fix typo in comment.
634 (_initialize_i386bsd_nat): New function. * i386bsd-tdep.c: New
635 file. * config/i386/tm-fbsd.h (IN_SIGTRAMP): New define.
636 (i386bsd_in_sigtramp): New prototype.
637 (SIGTRAMP_START, SIGTRAMP_END): Redefine in terms...
638 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): ...these new
639 (external) variables.
640 (SIGCONTEXT_PC_OFFSET): Removed.
641 (FRAME_SAVED_PC): New define.
642 (i386bsd_frame_saved_pc): New function. * config/i386/fbsd.mt
643 (TDEPFILES): Add i386bsd-tdep.o.
644
645 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
646
647 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Use ISO C
648 definition.
649
650 2001-07-13 Mark Kettenis <kettenis@gnu.org>
651
652 * lin-lwp.c (lin_lwp_wait): Avoid check for resumed LWPs if there
653 are no registered LWPs yet.
654
655 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
656
657 * config/i386/nm-linux.h (CANNOT_FETCH_REGISTER): Call the right
658 function.
659 (CANNOT_STORE_REGISTER): Likewise.
660
661 2001-07-12 Keith Seitz <keiths@redhat.com>
662
663 * remote-rdp.c: Include "serial.h"
664
665 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
666
667 * gdbserver/remote-utils.c (remote_open): Set VMIN to 1
668 in HAVE_TERMIO/HAVE_TERMIOS cases.
669
670 2001-07-12 Mark Kettenis <kettenis@gnu.org>
671
672 * lin-lwp.c (stop_wait_callback): Add support for flushing
673 signals. Use that in favour of the old code to get rid of
674 superfluous SIGINTs.
675 (lin_lwp_wait): Use the new support in stop_wait_callback to
676 flush all but one SIGINT.
677
678 * i386-tdep.c (i386_extract_return_value): Undo 2001-07-11 changes
679 to comment.
680 (i386_store_return_value): Improve comments about storing
681 floating-point return values.
682
683 * config/arm/xm-linux.h, config/i386/xm-linux.h,
684 config/m68k/xm-linux.h, config/powerpc/xm-linux.h,
685 config/sparc/xm-linux.h, config/ia64/xm-linux.h (HAVE_TERMIOS):
686 Removed. Taken care of by autoconf and terminal.h.
687
688 2001-07-12 Daniel Jacobowitz <drow@mvista.com>
689
690 * mips-tdep.c (mips_type_needs_double_align): New function.
691 (mips_push_arguments): Align o32 structs to even argument
692 registers if necessary.
693
694 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
695
696 * config/djgpp/fnchange.lst: Add entries for
697 mips-linux-nat.c and mips-linux-tdep.c.
698
699 2001-07-12 Mark Kettenis <kettenis@gnu.org>
700
701 * config/powerpc/xm-linux.h: Fix corrupted file.
702
703 * configure.in: Add check for sigsetjmp.
704 * config/m68k/xm-linux.h (HAVE_SIGSETJMP): Removed.
705 * config/xm-sysv4.h (HAVE_SIGSETJMP): Removed.
706 * configure, config.in: Regenerated.
707
708 2001-07-11 Elena Zannoni <ezannoni@redhat.com>
709
710 * config/sh/tm-sh.h (struct gdbarch_tdep): Add
711 FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM,
712 PR_REGNUM fields.
713
714 * sh-tdep.c (sh_skip_prologue_hard_way): Rename from
715 skip_prologue_hard_way().
716 (skip_prologue_hard_way): Make it a function pointer.
717 (sh_print_register): Use function pointer do_pseudo_register,
718 instead of sh_do_pseudo_register.
719 (sh_do_registers_info): Ditto.
720 (sh_gdbarch_init): Initialize do_pseudo_register.
721 (IS_MOV_TO_R14): Rename from IS_MOV_R14.
722 (skip_prologue_hard_way): Update.
723 (sh_gdbarch_init): Move setting of frame_chain,
724 get_saved_register, init_extra_frame_info, push_arguments,
725 extract_return_value, pop_frame, store_struct_return,
726 extract_struct_value_address, use_struct_convention,
727 init_extra_frame_info to before target specific settings.
728 (sh_gdbarch_init): Initialize new tdep fields
729 FLOAT_ARGLAST_REGNUM, RETURN_REGNUM, ARG0_REGNUM, ARGLAST_REGNUM,
730 PR_REGNUM.
731 (sh_push_arguments): Use new gdbarch_tdep fields
732 {ARG0,ARGLAST}_REGNUM.
733 (sh_saved_pc_after_call, sh_nofp_frame_init_saved_regs,
734 sh_init_extra_frame_info, sh_push_return_address,
735 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
736 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs): Update to use
737 gdbarch_tdep->PR_REGNUM.
738 (dr_reg_base_num, fv_reg_base_num): Move to earlier in the file.
739
740 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
741
742 * config/mips/tm-linux.h: Include "tm-linux.h" instead of copying
743 from it. Move definitions of REALTIME_LO and REALTIME_HI above
744 include.
745
746 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
747
748 * MAINTAINERS: List myself for MIPS/Linux
749 port.
750
751 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
752
753 * gdbserver/remote-utils.c (remote_open): Only
754 check for F_SETOWN if we had F_SETFL and FASYNC.
755
756 2001-07-11 Daniel Jacobowitz <drow@mvista.com>
757
758 From Michael Fedrowitz <michael.fedrowitz@informatik.uni-ulm.de>:
759
760 * config/m68k/linux.mh: Remove core-regset.o.
761 * m68klinux-nat.c: Fix comment.
762 (supply_gregset): Change argument to elf_gregset_t *.
763 (supply_fpregset): Change argument to elf_fpregset_t *.
764 (fetch_core_registers): New function.
765 (linux_elf_core_fns): Define.
766 (_initialize_m68k_linux_nat): New function.
767
768 2001-07-11 Andrew Cagney <ac131313@redhat.com>
769
770 * configure.tgt: Mark d10v as pure multi-arch.
771 * config/d10v/tm-d10v.h: Delete file.
772 * config/d10v/d10v.mt (TM_FILE): Delete.
773
774 2001-07-10 Andrew Cagney <ac131313@redhat.com>
775
776 * serial.h (typedef serial_t): Delete. Replace all references to
777 serial_t with `struct serial *'.
778 * serial.c: Update.
779 * nindy-share/ttyflush.c: Update.
780 * nindy-share/ttyflush.c: Update.
781 * nindy-share/Onindy.c: Update.
782 * nindy-share/nindy.c: Update.
783 * remote-rdp.c: Update.
784 * remote-sds.c: Update.
785 * remote-st.c: Update.
786 * remote-nindy.c: Update.
787 * remote-mips.c: Update.
788 * remote-e7000.c: Update.
789 * remote-os9k.c: Update.
790 * remote-nrom.c: Update.
791 * remote-es.c: Update.
792 * remote-array.c: Update.
793 * ocd.c: Update.
794 * mon960-rom.c: Update.
795 * dsrec.c: Update.
796 * inflow.c: Update.
797 * ser-e7kpc.c: Update.
798 * sparclet-rom.c: Update.
799 * srec.h: Update.
800 * ser-tcp.c: Update.
801 * ser-go32.c: Update.
802 * sparcl-tdep.c: Update.
803 * w89k-rom.c: Update.
804 * utils.c: Update.
805 * sh3-rom.c: Update.
806 * remote.c: Update.
807 * ser-pipe.c: Update.
808 * ser-unix.c: Update.
809 * ser-unix.h: Update.
810 * xmodem.c: Update.
811 * xmodem.h: Update.
812
813 2001-07-11 J.T. Conklin <jtc@redback.com>
814
815 From Greg McGary <greg@mcgary.org>:
816 * gdbserver/remote-utils.c (remote_open): Set gdbserver as "owner"
817 of SIGIO.
818 (input_interrupt): Don't block on read, in case we got redundant
819 SIGIO. Don't gripe about redundant SIGIO.
820 * gdbserver/low-hppabsd.c (mywait): Use waitpid(). Enable SIGIO
821 handler while waiting.
822 * gdbserver/low-linux.c (mywait): Likewise.
823 * gdbserver/low-nbsd.c (mywait): Likewise.
824 * gdbserver/low-sparc.c (mywait): Likewise.
825
826 2001-07-11 Keith Seitz <keiths@redhat.com>
827
828 * infrun.c (print_stop_reason): Add missing uiout field
829 "reason" for SIGNAL_RECEIVED case.
830
831 2001-07-11 Mark Kettenis <kettenis@gnu.org>
832
833 * config/alpha/nm-linux.h (TARGET_ELF64, PSIGNAL_IN_SIGNAL_H):
834 Remove unused macro's.
835
836 * config/powerpc/nm-linux.h (NO_SYS_REG_H): Remove, it's no longer
837 used.
838
839 2001-07-11 Eli Zaretskii <eliz@is.elta.co.il>
840
841 * go32-nat.c (info_dos_cmdlist): New variable.
842 (go32_info_dos_command): New function.
843 (_initialize_go32_nat): Convert all DOS-specific commands into
844 subcommands of "info dos". Suggested by Andrew Cagney
845 <ac131313@redhat.com>.
846
847 2001-07-11 Mark Kettenis <kettenis@gnu.org>
848
849 * config/nm-linux.h: Fix comments.
850
851 * thread-db.c (enable_thread_event_reporting): Correct warning
852 message about getting thread death breakpoint.
853 Reported by John S Kallal <jskallal@home.com>.
854
855 * i386-tdep.c (i386_extract_return_value): "Fix" comment.
856 (i386_store_return_value): Frob FPU status and tag word to make
857 sure the return value is the only value on the FPU stack.
858
859 * config/tm-linux.h: Do not include <signal.h>. Instead provide
860 reasonable defaults for REALTIME_LO and REALTIME_HI if they're not
861 already defined.
862 * config/nm-linux.h: Include <signal.h>.
863 [__SIGRTMIN] (REALTIME_LO, REALTIME_HI): Define to __SIGRTMIN and
864 (__SIGRTMAX + 1) respectively.
865
866 2001-07-10 Andrew Cagney <ac131313@redhat.com>
867
868 * mcore-rom.c: Include "serial.h".
869 * Makefile.in (mcore-rom.o): Depends on "serial.h".
870
871 2001-07-10 Andrew Cagney <ac131313@redhat.com>
872
873 * Makefile.in (remote-bug.o): Depends on serial.h.
874 * remote-bug.c: Include "serial.h".
875 * MAINTAINERS: Mark m88k target as buildable.
876 * TODO: Update.
877
878 2001-07-10 Jim Blandy <jimb@redhat.com>
879
880 Clean up the D10V port so that GDB and the target program no
881 longer disagree on how big pointers are.
882 * findvar.c (value_from_register): Remove special case code for D10V.
883 * printcmd.c (print_frame_args): Same.
884 * valops.c (value_at, value_fetch_lazy): Same.
885 * values.c (unpack_long): Same.
886 * gdbarch.sh: Changes to effect the following:
887 * gdbarch.h (GDB_TARGET_IS_D10V, D10V_MAKE_DADDR,
888 gdbarch_d10v_make_daddr_ftype, gdbarch_d10v_make_daddr,
889 set_gdbarch_d10v_make_daddr, D10V_MAKE_IADDR,
890 gdbarch_d10v_make_iaddr_ftype, gdbarch_d10v_make_iaddr,
891 set_gdbarch_d10v_make_iaddr, D10V_DADDR_P,
892 gdbarch_d10v_daddr_p_ftype, gdbarch_d10v_daddr_p,
893 set_gdbarch_d10v_daddr_p, D10V_IADDR_P,
894 gdbarch_d10v_iaddr_p_ftype, gdbarch_d10v_iaddr_p,
895 set_gdbarch_d10v_iaddr_p, D10V_CONVERT_DADDR_TO_RAW,
896 gdbarch_d10v_convert_daddr_to_raw_ftype,
897 gdbarch_d10v_convert_daddr_to_raw,
898 set_gdbarch_d10v_convert_daddr_to_raw, D10V_CONVERT_IADDR_TO_RAW,
899 gdbarch_d10v_convert_iaddr_to_raw_ftype,
900 gdbarch_d10v_convert_iaddr_to_raw,
901 set_gdbarch_d10v_convert_iaddr_to_raw): Delete declarations.
902 * gdbarch.c: Delete the corresponding definitions.
903 (struct gdbarch): Delete members d10v_make_daddr,
904 d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
905 d10v_convert_daddr_to_raw, and d10v_convert_iaddr_to_raw.
906 (startup_gdbarch): Remove initializers for the above.
907 (verify_gdbarch, gdbarch_dump): Don't verify or dump them any
908 more.
909 * d10v-tdep.c (d10v_register_virtual_type): Rather that
910 claiming the stack pointer and PC are 32 bits long (which they
911 aren't), say that the stack pointer is an int16_t, and the
912 program counter is a function pointer. This allows the rest
913 of GDB to make the appropriate conversions between the code
914 pointer format and real addresses.
915 (d10v_register_convertible, d10v_register_convert_to_virtual,
916 d10v_register_convert_to_raw): Delete function; no registers
917 are convertible now, so we use
918 generic_register_convertible_not instead.
919 (d10v_address_to_pointer, d10v_pointer_to_address): New gdbarch
920 methods.
921 (d10v_push_arguments, d10v_extract_return_value): Remove special
922 cases for code and data pointers.
923 (d10v_gdbarch_init): Set gdbarch_ptr_bit to 16, so that GDB and
924 the target agree on how large pointers are. Say that addresses
925 are 32 bits long. Register the address_to_pointer and
926 pointer_to_address conversion functions. Since no registers are
927 convertible now, register generic_register_convertible_not as the
928 gdbarch_register_convertible method instead of
929 d10v_register_convertible. Remove registrations for
930 d10v_register_convert_to_virtual,
931 d10v_register_convert_to_raw, gdbarch_d10v_make_daddr,
932 gdbarch_d10v_make_iaddr, gdbarch_d10v_daddr_p,
933 gdbarch_d10v_iaddr_p, gdbarch_d10v_convert_daddr_to_raw, and
934 gdbarch_d10v_convert_iaddr_to_raw.
935
936 * printcmd.c (print_scalar_formatted): If we are printing an
937 address, remember that TARGET_ADDR_BIT is not always equal to
938 TARGET_PTR_BIT.
939
940 * valops.c (value_cast): When casting a pointer to an integer,
941 don't convert it to an address.
942
943 2001-07-10 Andrew Cagney <ac131313@redhat.com>
944
945 * remote-utils.h (struct serial): Declare as opaque. Remove
946 include of "serial.h".
947 * Makefile.in (remote_utils_h): Update.
948
949 * monitor.h (struct serial): Declare as opaque. Remove include of
950 "serial.h".
951 (struct monitor_ops): Replace serial_t with `struct serial *'.
952 * monitor.c (monitor_desc): Ditto.
953
954 2001-07-10 Daniel Jacobowitz <drow@mvista.com>
955
956 * mips-linux-tdep.c: New file.
957 * mips-linux-nat.c: New file.
958 * config/mips/linux.mh: New file.
959 * config/mips/linux.mt: New file.
960 * config/mips/xm-linux.h: New file.
961 * config/mips/nm-linux.h: New file.
962 * config/mips/tm-linux.h: New file.
963 * configure.host: Recognize mips*-*-linux*.
964 * configure.tgt: Likewise.
965 * NEWS: Mention mips*-*-linux* port.
966
967 2001-07-09 Andrew Cagney <ac131313@redhat.com>
968
969 * serial.h (struct serial): Rename `struct _serial_t'.
970 * serial.c (XMALLOC): Define.
971 (serial_open): Update. Use XMALLOC.
972 (serial_fdopen): Ditto.
973
974 2001-07-07 Andrew Cagney <ac131313@redhat.com>
975
976 * gdbtypes.h (builtin_type_void_data_ptr): Rename
977 builtin_type_ptr.
978 * gdbtypes.c (builtin_type_void_data_ptr): Update.
979 (build_gdbtypes): Update.
980 (_initialize_gdbtypes): Update.
981 * values.c (value_as_pointer): Update.
982 * utils.c (host_pointer_to_address): Update.
983 (address_to_host_pointer): Update.
984
985 2001-07-08 Andrew Cagney <ac131313@redhat.com>
986
987 * remote-udi.c (udi_wait): Make type, instead of name, of first
988 parameter a ptid_t.
989
990 2001-07-07 Andrew Cagney <ac131313@redhat.com>
991
992 * ser-mac.c: Make obsolete.
993 * Makefile.in (ser-mac.o): Ditto.
994
995 2001-07-08 Eli Zaretskii <eliz@is.elta.co.il>
996
997 * go32-nat.c (go32_get_windows_version, print_mem, go32_sysinfo)
998 (read_memory_region, get_descriptor, display_descriptor)
999 (go32_sldt, go32_sgdt, go32_sidt): New functions.
1000 (top-level): Include ctype.h, utsname.h, dos.h, and go32.h. Ifdef
1001 away `disable' from dos.h, since breakpoint.h defines an enum
1002 member of the same name, and GCC 2.7.2 barfs.
1003 (_initialize_go32_nat): Provide new commands dos-sysinfo, dos-ldt,
1004 dos-gdt, and dos-idt, all of them in the "info" class
1005
1006 2001-07-07 Kevin Buettner <kevinb@redhat.com>
1007
1008 * procfs.c (create_procinfo): Allocate space for saved_entryset
1009 and saved_exitset.
1010 (destroy_one_procinfo): Free space allocated to saved_entryset
1011 and saved_exitset.
1012
1013 2001-07-07 Andrew Cagney <ac131313@redhat.com>
1014
1015 * TODO (5.1): Update.
1016
1017 2001-07-07 Andrew Cagney <ac131313@redhat.com>
1018
1019 * symtab.c (main_name): New function.
1020 (set_main_name): New function.
1021 * symtab.h: Declare.
1022 * TODO: Update
1023
1024 From 2000-03-05 Anthony Green <green@redhat.com>:
1025 * dbxread.c (process_one_symbol): Handle the N_MAIN stab by
1026 setting main_name.
1027 * blockframe.c (inside_main_func): Use main_name instead of
1028 "main".
1029 * symtab.c (find_main_psymtab): Ditto.
1030 * source.c (select_source_symtab): Ditto.
1031 * nlmread.c (nlm_symfile_read): Ditto.
1032 * rs6000-tdep.c (skip_prologue): Ditto.
1033
1034 2001-07-07 Andrew Cagney <ac131313@redhat.com>
1035
1036 * TODO: Convert most items into PRs.
1037
1038 2001-07-07 Mark Kettenis <kettenis@gnu.org>
1039
1040 * lin-lwp.c (status_to_str): New function.
1041 (lin_lwp_wait): Use it to print debug messages where appropriate.
1042
1043 2001-07-06 Michael Chastain <chastain@redhat.com>
1044
1045 * i387-tdep.c (print_i387_value): Fix pointer glitch.
1046
1047 2001-07-07 Mark Kettenis <kettenis@gnu.org>
1048
1049 * lin-lwp.c (count_events_callback): Fix formatting. Turn check
1050 commented with "paranoia" into gdb_assert.
1051 (select_event_lwp_callback): Likewise.
1052 (cancel_breakpoints_callback): Bail out early if LP is the event
1053 LWP. Add comment about backup up breakpoints. Fix formatting and
1054 debug message.
1055 (select_event_lwp): Make solely repsonsible for switching event
1056 LWP. Fix formatting and remove bogus "ERROR" debug message.
1057 Don't backup breakpoints from here.
1058 (lin_lwp_wait): Don't touch LP->status, let select_event_lwp
1059 handle that. Only call select_event_lwp if we're not waiting for
1060 a specific LWP, i.e. when PID == -1. Backup breakpoints from here.
1061
1062 2001-07-06 Michael Snyder <msnyder@redhat.com>
1063
1064 * procfs.c (procfs_resume): Silence noisy warning.
1065
1066 2001-06-12 Michael Snyder <msnyder@redhat.com>
1067
1068 * lin-lwp.c: Prevent thread starvation by using a monte carlo
1069 method to choose which of several event threads to handle next.
1070
1071 (stop_wait_callback): Defer pushback of breakpoint events until
1072 later; add SIGTRAP events to the queue of unhandled events.
1073 Keep calling waitpid until SIGSTOP retrieved. If more than one
1074 non-SIGSTOP event is retrieved, push them back onto the process
1075 queue using kill.
1076 (count_events_callback, select_singlestep_lwp_callback,
1077 select_event_lwp_callback, cancel_breakpoints_callback,
1078 select_event_lwp): New functions. Implement monte carlo method
1079 for selecting which of several SIGTRAP threads to handle next.
1080 Push back the breakpoint event for all threads other than the
1081 selected one.
1082 (lin_lwp_wait): Call select_event_lwp to decide which of several
1083 sigtrapped lwps to handle next.
1084 (resume_callback): Disable code that attempts to handle
1085 step_resume breakpoints. Let core gdb handle this.
1086
1087 2001-07-06 Jim Blandy <jimb@redhat.com>
1088
1089 * gdbtypes.h (builtin_type_void_func_ptr): New builtin type.
1090 * gdbtypes.c (builtin_type_void_func_ptr): Define the variable.
1091 (build_gdbtypes): Initialize it.
1092 (_initialize_gdbtypes): Swap it.
1093
1094 2001-07-04 Daniel Jacobowitz <drow@mvista.com>
1095
1096 * mips-tdep.c (mips32_op): Correct offset.
1097 (itype_op): Likewise.
1098 (itype_rs): Fix formatting.
1099 (itype_immediate): Fix formatting.
1100 (jtype_op): Correct offset.
1101 (jtype_target): Fix formatting.
1102 (rtype_op): Correct offset.
1103 (rtype_rs): Fix formatting.
1104 (rtype_rt): Likewise.
1105 (rtype_rd): Likewise.
1106 (rtype_shamt): Likewise.
1107 (rtype_funct): Likewise.
1108
1109 (mips32_next_pc): Fix formatting and comments. Recognize
1110 coprocessor 1 branches. Check the correct field for BLT family
1111 branches. Use itype_rt instead of itype_rs for the second register
1112 of a BNE or BNEL branch. Move (unreachable) default case.
1113
1114 2001-07-04 Andrew Cagney <ac131313@redhat.com>
1115
1116 * ui-out.h (struct ui_out_impl): Add field is_mi_like_p.
1117 (ui_out_is_mi_like_p): Declare.
1118 * ui-out.c (ui_out_is_mi_like_p): Define.
1119 (default_ui_out_impl): Initialize is_mi_like_p to zero.
1120 * cli-out.c (cli_ui_out_impl): Ditto.
1121 * breakpoint.c (print_it_typical): Use ui_out_is_mi_like_p.
1122 (watchpoint_check, print_one_breakpoint, mention): Ditto.
1123 * infrun.c (print_stop_reason, normal_stop): Ditto.
1124
1125 2001-07-05 Daniel Jacobowitz <drow@mvista.com>
1126
1127 * mips-tdep.c (mips_software_single_step): New function.
1128 * config/mips/tm-mips.h: Add prototype for
1129 mips_software_single_step.
1130
1131 2001-07-05 Daniel Jacobowitz <drow@mvista.com>
1132
1133 * ppc-linux-nat.c (supply_gregset): Use elf_greg_t instead
1134 of greg_t.
1135 (fill_gregset): Likewise.
1136
1137 2001-07-05 Andrew Cagney <ac131313@redhat.com>
1138
1139 * objfiles.c (open_mapped_file): Use lbasename instead of
1140 basename.
1141
1142 2001-07-05 Jim Blandy <jimb@redhat.com>
1143
1144 * d10v-tdep.c (d10v_frame_chain, d10v_frame_init_saved_regs,
1145 show_regs, d10v_read_pc, d10v_write_pc, d10v_read_sp,
1146 d10v_write_sp, d10v_write_fp, d10v_read_fp,
1147 d10v_push_return_address): Call the functions d10v_make_daddr,
1148 d10v_make_iaddr, d10v_convert_iaddr_to_raw, and
1149 d10v_convert_daddr_to_raw, not the global macros D10V_MAKE_DADDR,
1150 D10V_MAKE_IADDR, D10V_CONVERT_IADDR_TO_RAW, and
1151 D10V_CONVERT_DADDR_TO_RAW.
1152
1153 * dwarf2read (dwarf2_build_psymtabs_hard): Doc fix.
1154
1155 2001-07-05 Mark Kettenis <kettenis@gnu.org>
1156
1157 * config/i386/xm-go32.h (HOST_I386): Removed.
1158 * config/i386/xm-linux.h (HOST_I386): Removed.
1159
1160 2001-07-04 Mark Kettenis <kettenis@gnu.org>
1161
1162 * i387-tdep.c (print_i387_value): Add extra space after final full
1163 stop in comment.
1164
1165 2001-07-04 Andrew Cagney <ac131313@redhat.com>
1166
1167 * TODO (5.1): Update. Doco changes committed.
1168
1169 2001-06-29 Andrew Cagney <ac131313@redhat.com>
1170
1171 * config/arm/tm-arm.h: Include "floatformat.h".
1172
1173 2001-06-29 Andrew Cagney <ac131313@redhat.com>
1174
1175 * i387-tdep.c: Include "gdb_assert.h".
1176 (print_i387_value): Use extract_floating to extract the FP value
1177 from a zero padded local buffer.
1178
1179 2001-06-28 Andrew Cagney <ac131313@redhat.com>
1180
1181 * TODO: Delete all thread items. The thread code was overhauled.
1182
1183 2001-07-04 Elena Zannoni <ezannoni@redhat.com>
1184
1185 * memattr.c (create_mem_region): Move n to next memory region,
1186 to avoid infinite loop.
1187
1188 * memattr.h: Add copyright statement.
1189 * memattr.c: Ditto.
1190
1191 2001-07-04 Jim Blandy <jimb@redhat.com>
1192
1193 * dwarf2read.c (struct partial_die_info): New member: has_pc_info.
1194 (read_partial_die): Delete fourth argument; we return this info in
1195 the struct partial_die_info object itself now.
1196 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Use the
1197 has_pc_info field of the partial die struct, rather than passing a
1198 variable by reference to read_partial_die.
1199
1200 * dwarf2read.c (dwarf2_build_psymtabs_hard): Remove extraneous
1201 code in loop condition.
1202
1203 2001-07-03 Michael Snyder <msnyder@redhat.com>
1204
1205 * thread_db (find_new_threads_callback, thread_db_thread_alive,
1206 attach_thread): Update comments.
1207
1208 2001-06-29 Ken Whaley <ken@believe.com>
1209
1210 * thread-db.c (attach_thread): Check for TD_THR_ZOMBIE in addition
1211 to TD_THR_UNKNOWN when looking for defunct zombie threads.
1212 (thread_db_thread_alive): Ditto.
1213 (find_new_threads_callback): Ditto.
1214
1215 2001-07-02 Daniel Jacobowitz <drow@mvista.com>
1216
1217 * MAINTAINERS: Add myself to the write-after-approval list.
1218
1219 2001-07-02 Daniel Jacobowitz <drow@mvista.com>
1220
1221 * solib-svr4.c: Include "elf/mips.h".
1222 (elf_locate_base): Make DT_MIPS_RLD_MAP block unconditional.
1223
1224 2001-07-02 Jim Blandy <jimb@redhat.com>
1225
1226 * dwarf2read.c (read_comp_unit, sibling_die, dump_die,
1227 dump_die_list, store_in_ref_table, follow_die_ref): Make these
1228 static; they're private functions.
1229
1230 2001-07-01 Mark Elbrecht <snowball@bigfoot.com>
1231
1232 * coffread.c (coff_symfile_read): Parse DWARF2 info if present.
1233
1234 2001-06-28 Elena Zannoni <ezannoni@redhat.com>
1235
1236 * TODO: Add import of readline 4.2 as a gdb 5.2 task.
1237
1238 2001-06-29 Andrew Cagney <ac131313@redhat.com>
1239
1240 * config/djgpp/fnchange.lst: Sort.
1241
1242 2001-06-28 Andrew Cagney <ac131313@redhat.com>
1243
1244 * config/djgpp/fnchange.lst: Rename mi0-var-block.exp,
1245 mi0-var-cmd.exp, mi0-var-child.exp and mi0-var-display.exp.
1246
1247 2001-06-29 Andreas Jaeger <aj@suse.de>
1248
1249 * MAINTAINERS: Add myself to the write-after-approval list.
1250
1251 2001-06-28 Andrew Cagney <ac131313@redhat.com>
1252
1253 * remote-array.c (SWAP_TARGET_AND_HOST): Delete macro.
1254 (get_hex_word): Don't use HOST_BYTE_ORDER.
1255 (array_fetch_registers): Add variable ``reg''. Use
1256 store_unsigned_integer to byte-swap the register. Delete unused
1257 local ``regs''.
1258
1259 2001-06-28 Andrew Cagney <ac131313@redhat.com>
1260
1261 * MAINTAINERS: Add Per Bothner to Java maintainers.
1262
1263 2001-06-28 Andrew Cagney <ac131313@redhat.com>
1264
1265 * rdi-share/unixcomm.c (SERIAL_PREFIX): Always provide a default.
1266 * rdi-share/hostchan.h (__unix): Hack, provide a default value.
1267 * rdi-share/host.h (__unix): Hack, define when __NetBSD__.
1268 * TODO: Update.
1269 * MAINTAINERS: Update. arm-elf builds.
1270
1271 2001-06-28 Jim Blandy <jimb@redhat.com>
1272
1273 * d10v-tdep.c (d10v_ts2_dmap_register): Doc fix.
1274
1275 * d10v-tdep.c (d10v_frame_chain_valid, d10v_use_struct_convention,
1276 d10v_breakpoint_from_pc, d10v_register_byte,
1277 d10v_register_raw_size, d10v_register_virtual_size,
1278 d10v_register_virtual_type, d10v_register_convertible,
1279 d10v_register_convert_to_virtual, d10v_register_convert_to_raw,
1280 d10v_make_daddr, d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
1281 d10v_convert_iaddr_to_raw, d10v_convert_daddr_to_raw,
1282 d10v_store_struct_return, d10v_store_return_value,
1283 d10v_extract_struct_value_address, d10v_frame_saved_pc,
1284 d10v_saved_pc_after_call, d10v_pop_frame, d10v_skip_prologue,
1285 d10v_frame_chain, d10v_frame_init_saved_regs,
1286 d10v_init_extra_frame_info, d10v_read_pc, d10v_write_pc,
1287 d10v_read_sp, d10v_write_sp, d10v_write_fp, d10v_read_fp,
1288 d10v_push_return_address, d10v_push_arguments,
1289 d10v_extract_return_value): Make these functions static.
1290
1291 2001-06-28 Andrew Cagney <ac131313@redhat.com>
1292
1293 From Fernando Nasser:
1294 * infrun.c (handle_inferior_event): Handle "nexti" inside function
1295 prologues.
1296
1297 2001-06-28 Michael Snyder <msnyder@redhat.com>
1298
1299 * infrun.c (handle_inferior_event): Replace prev_pc test in all
1300 calls to bpstat_stop_status (removed in 1999-09-24). This test
1301 helps distinguish stepping over a breakpoint trap from stepping
1302 thru a jump to the instruction after a breakpoint trap.
1303 (handle_inferior_event): Don't bother writing the PC if
1304 DECR_PC_AFTER_BREAK is zero (optimization).
1305 * breakpoint.c (bpstat_stop_status): Add comment explaining the
1306 purpose and usage of the "not_a_breakpoint" argument in computing
1307 the breakpoint address.
1308
1309 2001-06-28 Andrew Cagney <ac131313@redhat.com>
1310
1311 From 2000-12-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
1312 * monitor.c (setmem_resp_delim_pattern): New regexp pattern.
1313 (setreg_resp_delim_pattern): Likewise.
1314 (setmem_resp_delim_fastmap): New buffer.
1315 (setreg_resp_delim_fastmap): Likewise.
1316 (monitor_open): Initialize above regexp if they are defined.
1317 (monitor_write_memory): Use regexp to check the result of write.
1318 (monitor_store_register): Likewise to check result of register set.
1319
1320 2001-06-28 Andrew Cagney <ac131313@redhat.com>
1321
1322 From 2000-06-14 John Marshall <john_w_marshall@palm.com>:
1323 * coff-solib.c: Include symfile.h and objfiles.h to make
1324 OBJF_SHARED visible.
1325
1326 2001-06-28 Andrew Cagney <ac131313@redhat.com>
1327
1328 * configure.in (--enable-gdbmi): Enable by default.
1329 * configure: Regenerate.
1330 * TODO: Update.
1331 * NEWS: Update
1332
1333 2001-06-28 Joel Brobecker <brobecker@act-europe.fr>
1334
1335 * solib-osf.c (osf_in_dynsym_resolve_code): Add a comment
1336 explaining the consequences of always returning zero. No code
1337 change.
1338
1339 2001-06-28 Andrew Cagney <ac131313@redhat.com>
1340
1341 From 2001-06-08 Daniel Jacobowitz <djacobowitz@mvista.com>:
1342 * defs.h (enum target_signal): Add TARGET_SIGNAL_REALTIME_65
1343 to TARGET_SIGNAL_REALTIME_127.
1344 * target.c (struct signals): Add SIG63 to SIG127.
1345 (target_signal_from_host): Handle up to 127 signals.
1346 (do_target_signal_to_host): Likewise.
1347
1348 2001-06-27 Andrew Cagney <ac131313@redhat.com>
1349
1350 * remote-sds.c (sds_start_remote): Change type of ``c'' to int
1351 from possibly unsigned char.
1352
1353 2001-06-27 Andrew Cagney <ac131313@redhat.com>
1354
1355 * ser-ocd.c: Delete file.
1356 * Makefile.in (ALLDEPFILES): Remove ser-ocd.c
1357 (ser-ocd.o): Delete target.
1358 * TODO: Update.
1359 * NEWS: Update.
1360
1361 2001-06-27 Andrew Cagney <ac131313@redhat.com>
1362
1363 * MAINTAINERS (Write After Approval): Sort.
1364 (Past Maintainers): Daniel Berlin stepped down as C++ maintainer.
1365
1366 2001-06-26 Andrew Cagney <ac131313@redhat.com>
1367
1368 * breakpoint.c (breakpoint_1): Always output the breakpoint
1369 headings. Leave it to ui-out to decide which
1370
1371 2001-06-25 Andrew Cagney <ac131313@redhat.com>
1372
1373 * stack.c (print_frame): For ui_out, output a list of arguments.
1374
1375 2001-06-25 Kevin Buettner <kevinb@redhat.com>
1376
1377 * MAINTAINERS (paper trail): Update.
1378
1379 2001-06-25 Michael Snyder <msnyder@redhat.com>
1380
1381 * infrun.c: Eliminate the "thread_step_needed" state variable,
1382 and replace it with a relatively simple test in resume.
1383 (resume): Replace thread_step_needed logic with a test for
1384 stepping, breakpoint_here_p and breakpoints_inserted.
1385 Move CANNOT_STEP_BREAKPOINT logic to after thread_step logic.
1386 (proceed): Discard thread_step_needed logic.
1387 (wait_for_inferior, fetch_inferior_event, handle_inferior_event):
1388 Discard thread_step_needed logic.
1389
1390 2001-06-24 Fernando Nasser <fnasser@redhat.com>
1391
1392 * remote-rdi.c (arm_rdi_wait): Fix return type in prototype.
1393 * rdi-share/host.h: Add missing parenthesis in conditional.
1394
1395 2001-06-22 J.T. Conklin <jtc@redback.com>
1396
1397 * configure.in: include nlist.h when checking for member som_addr
1398 in struct so_map.
1399 * configure: regenerate.
1400
1401 2001-06-21 Keith Seitz <keiths@redhat.com>
1402
1403 * cli-out.c (cli_out_new): Initialize new structure member
1404 "suppress_output".
1405
1406 2001-06-20 Andrew Cagney <ac131313@redhat.com>
1407
1408 * ui-out.h (ui_out_table_header): Add parameter ``col_name''.
1409 (table_header_ftype): Ditto.
1410 * cli-out.c (cli_table_header): Update.
1411 * ui-out.c (ui_out_table_header): Update.
1412 (uo_table_header): Update.
1413 (default_table_header): Update.
1414 (append_header_to_list): Update.
1415 (struct ui_out_header): Add field ``col_name''.
1416 (append_header_to_list): Use xstrdup. Initialize col_name.
1417 * breakpoint.c (breakpoint_1): Pass COL_NAME to
1418 ui_out_table_header.
1419
1420 2001-06-19 Andrew Cagney <ac131313@redhat.com>
1421
1422 * cli-out.c: Include "gdb_assert.h'.
1423 (struct ui_out_data): Add field ``suppress_output.
1424 (cli_table_begin): When NR_ROWS is zero, suppress_output.
1425 (cli_table_end): Clear suppress_output.
1426 (cli_table_body): Check suppress_output.
1427 (cli_table_header, cli_begin): Ditto.
1428 (cli_end, cli_field_int, cli_field_skip): Ditto.
1429 (cli_field_string, cli_field_fmt, cli_spaces): Ditto.
1430 (cli_text, cli_message, cli_wrap_hint): Ditto.
1431 * breakpoint.c (breakpoint_1): Close the ui_out table before
1432 printing the breakpoint not found message.
1433
1434 2001-06-18 Andrew Cagney <ac131313@redhat.com>
1435
1436 * ui-out.c (ui_out_table_begin): Add parameter ``nr_rows''.
1437 (default_table_begin): Ditto.
1438 (uo_table_begin): Ditto.
1439 * cli-out.c (cli_table_begin): Ditto.
1440 * ui-out.h (ui_out_table_begin): Update
1441 (table_begin_ftype): Update.
1442 * breakpoint.c (breakpoint_1): Pass nr_printable_breakpoints to
1443 ui_out_table_begin.
1444
1445 2001-06-16 Andrew Cagney <ac131313@redhat.com>
1446
1447 * breakpoint.c (breakpoint_1): Restructure. Compute the
1448 nr_printable_breakpoints. Move the header output to before the
1449 main print breakpoints loop.
1450 (user_settable_breakpoint): New function.
1451
1452 2001-06-18 Andrew Cagney <ac131313@redhat.com>
1453
1454 * infrun.c, breakpoint.c: Use strncmp as the "mi" test. Allow,
1455 "mi", "mi0" and "mi1".
1456
1457 2001-06-17 Andrew Cagney <ac131313@redhat.com>
1458
1459 * gdbarch.sh: Generate an error when conflicting macro
1460 definitions. Generate an error when both pure multi-arch and
1461 "tm.h".
1462 * gdbarch.h, gdbarch.c: Regenerate.
1463 * defs.h (GDB_MULTI_ARCH_TM): Rewrite definition.
1464
1465 2001-06-17 Andrew Cagney <ac131313@redhat.com>
1466
1467 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Down grade to
1468 GDB_MULTI_ARCH_PARTIAL from two.
1469
1470 2001-06-17 Fernando Nasser <fnasser@redhat.com>
1471
1472 From 2001-06-15 Eirik Fuller <eirik@hackrat.com>
1473 * cli/cli-script.c (free_command_lines): Reset list pointer.
1474
1475 2001-06-16 Andrew Cagney <ac131313@redhat.com>
1476
1477 * arch-utils.c (init_frame_pc_default): New function
1478 * arch-utils.h (init_frame_pc_default): Declare.
1479 * gdbarch.sh (INIT_FRAME_PC): Default to init_frame_pc_default and
1480 not init_frame_pc_noop.
1481 * gdbarch.h, gdbarch.c: Re-generate.
1482 * blockframe.c (INIT_FRAME_PC): Delete macro definition.
1483 * mips-tdep.c (mips_gdbarch_init): Set init_frame_pc to
1484 init_frame_pc_noop.
1485
1486 2001-06-16 Andrew Cagney <ac131313@redhat.com>
1487
1488 * gdbarch.c: Regenerate. Out-of-sync with gdbarch.sh.
1489
1490 2001-06-15 Andrew Cagney <ac131313@redhat.com>
1491
1492 * gdbarch.sh (CANNOT_FETCH_REGISTER): Multi-arch.
1493 (CANNOT_STORE_REGISTER): Ditto.
1494 * infptrace.c (CANNOT_FETCH_REGISTER): Delete definition.
1495 (CANNOT_STORE_REGISTER): Ditto.
1496 * regcache.c (CANNOT_STORE_REGISTER): Ditto.
1497 * lynx-nat.c (CANNOT_STORE_REGISTER): Ditto.
1498 * arch-utils.h (cannot_register_not): Define.
1499 * arch-utils.c (cannot_register_not): Declare.
1500
1501 2001-06-15 Andrew Cagney <ac131313@redhat.com>
1502
1503 * gdbarch.sh: Clarify pre/post default
1504 (INIT_FRAME_PC_FIRST, INIT_FRAME_PC): Multiarch.
1505 * blockframe.c (get_prev_frame): Remove #ifdef from around
1506 INIT_FRAME_PC_FIRST call.
1507 * arch-utils.c (init_frame_pc_noop): Define.
1508 * arch-utils.h (init_frame_pc_noop): Declare.
1509 * config/mips/tm-mips.h (INIT_FRAME_PC_FIRST): Delete.
1510 (INIT_FRAME_PC, mips_init_frame_pc_first): Ditto.
1511 * mips-tdep.c (mips_init_frame_pc_first): Make static.
1512 (mips_gdbarch_init): Initialize init_frame_pc_first.
1513 (mips_dump_tdep): Update.
1514
1515 2001-06-15 Michael Snyder <msnyder@redhat.com>
1516
1517 * infrun.c (context_switch): New function. Abstract the operation
1518 of saving and restoring infrun's state when switching threads.
1519 (handle_inferior_event): Normalize the handling of the 'thread hop'
1520 event (when the wrong thread hits a thread-specific breakpoint,
1521 and we need to solo-step that thread past the breakpoint).
1522 Call keep_going, instead of target_resume. Handle the subsequent
1523 singlestep-trap as a normal event instead of just resuming.
1524
1525 2001-06-15 Andrew Cagney <ac131313@redhat.com>
1526
1527 * arch-utils.c (core_addr_identity): New function. Rename
1528 default_convert_from_func_ptr_addr.
1529 * gdbarch.sh (CONVERT_FROM_FUNC_PTR_ADDR): Update.
1530 (ADDR_BITS_REMOVE): Define. Default to core_addr_identity.
1531 * defs.h (ADDR_BITS_REMOVE): Delete macro definition.
1532 * config/mips/tm-mips.h (ADDR_BITS_REMOVE): Delete definition.
1533 * mips-tdep.c (mips_addr_bits_remove): Make static.
1534 (mips_gdbarch_init): Initialize addr_bits_remove.
1535
1536 2001-06-15 Andrew Cagney <ac131313@redhat.com>
1537
1538 From 2001-02-26 D.J. Barrow <djbarrow@de.ibm.com>:
1539 * configure.tgt: Add S/390 31 & 64 bit target configuration.
1540 * configure.host: Ditto for host.
1541
1542 2001-06-15 Andrew Cagney <ac131313@redhat.com>
1543
1544 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS_P): Delete definition.
1545 (EXTRACT_STRUCT_VALUE_ADDRESS): Change to a function with
1546 predicate.
1547 * gdbarch.h, gdbarch.c: Regenerate.
1548 * values.c (value_being_returned): Change the reference to
1549 EXTRACT_STRUCT_VALUE_ADDRESS_P to a function call.
1550
1551 2001-06-15 Joel Brobecker <brobecker@act-europe.fr>
1552
1553 * MAINTAINERS: Add Paul Hilfinger and Joel Brobecker to the
1554 Write After Approval list.
1555
1556 2001-06-14 Michael Snyder <msnyder@redhat.com>
1557
1558 * remote.c (show_remote_protocol_qSymbol_packet_cmd,
1559 set_remote_protocol_qSymbol_packet_cmd): New functions.
1560 (init_all_packet_configs, show_remote_cmd): Add qSymbol packet.
1561 (remote_check_symbols): New function. Implement qSymbol packet,
1562 allowing target to request symbol lookup service from gdb.
1563 (remote_open_1, remote_async_open_1): Call remote_check_symbols,
1564 allowing symbol lookup from exec_bfd on connection to target.
1565 (remote_new_objfile): New function. Catch new objfile notifications
1566 from shared library module, and call remote_check_symbols.
1567 (_initialize_remote): Hook remote_new_objfile into the shared
1568 library notification chain. Add "set remote symbol-lookup" command.
1569
1570 2001-06-14 Keith Seitz <keiths@redhat.com>
1571
1572 * tracepoint.c (trace_command): We now have tracepoint
1573 events. Get rid of those ugly hooks.
1574 (tracepoint_operation): Likewise.
1575 (trace_pass_command): Likewise.
1576
1577 2001-06-13 Michael Snyder <msnyder@redhat.com>
1578
1579 * gdbthread.h (struct thread_info): Add new fields:
1580 current_line, current_symtab, step_sp, for saved infrun state.
1581 * thread.c (save_infrun_state, load_infrun_state): Save and
1582 restore current_line, current_symtab, and step_sp.
1583 (add_thread): Rather than adding assignments to initialize
1584 the new fields, just use memset (tp, 0, sizeof (*tp).
1585 This way future new fields will not be overlooked.
1586 * infrun.c (handle_inferior_event): Save and restore save_sp,
1587 current_line, and current_symtab when switching threads.
1588
1589 2001-06-13 Elena Zannoni <ezannoni@redhat.com>
1590
1591 * MAINTAINERS: Add Andrew Cagney as co-maintainer of
1592 testsuite/gdb.mi.
1593
1594 2001-06-11 Andrew Cagney <ac131313@redhat.com>
1595
1596 * symtab.c (lookup_symtab_1): Replace basename with lbasename.
1597 (lookup_partial_symtab, file_matches): Ditto.
1598 (make_source_files_completion_list): Ditto.
1599 (make_file_symbol_completion_list): Ditto. Make local char*
1600 variable ``tail'' constant.
1601 (make_source_files_completion_list): Ditto with ``base_name''.
1602 * source.c (open_source_file): Use lbasename. Make ``p'' const
1603 char *.
1604
1605 2001-06-13 Eli Zaretskii <eliz@is.elta.co.il>
1606
1607 * config/i386/xm-go32.h (SLASH_P, ROOTED_P, SLASH_CHAR)
1608 (SLASH_STRING): Remove unused definitions.
1609 * config/i386/xm-cygwin.h: Likewise.
1610
1611 2001-06-12 Andrew Cagney <ac131313@redhat.com>
1612
1613 * ui-out.c (ui_out_list_begin): Add parameter ``id''.
1614 (make_cleanup_ui_out_list_begin_end): Ditto. Open the list.
1615 * ui-out.h: Update declarations.
1616
1617 Mon Jun 11 17:26:43 2001 Andrew Cagney <cagney@b1.cygnus.com>
1618
1619 * source.c (openp): Make parameters ``path'' and ``string''
1620 constant.
1621 (openp): Use alloca to safely duplicate ``string''. Make local
1622 variables ``p'' and ``p1'' constant. Delete char* casts.
1623 * defs.h: Update.
1624
1625 * symtab.c (lookup_symtab_1): Make parameter ``name'' constant.
1626 (lookup_symtab, lookup_partial_symtab): Ditto.
1627 * symtab.h (lookup_symtab, lookup_partial_symtab): Update.
1628
1629 2001-06-11 Andrew Cagney <ac131313@redhat.com>
1630
1631 * ui-out.h (ui_out_table_begin): Make char* parameters constant.
1632 (ui_out_table_header, ui_out_field_int): Ditto.
1633 (ui_out_field_core_addr, ui_out_field_string): Ditto.
1634 (ui_out_field_stream, ui_out_field_fmt): Ditto.
1635 (ui_out_field_skip, ui_out_text, ui_out_message): Ditto.
1636 * ui-out.c (ui_out_table_begin, ui_out_table_header): Update.
1637 (ui_out_field_core_addr, ui_out_field_stream): Update.
1638 (ui_out_field_string, ui_out_field_fmt): Update.
1639 (ui_out_text, ui_out_message): Update.
1640 (append_header_to_list): Make char* parameters constant.
1641 (uo_table_header, uo_table_begin): Ditto.
1642 (uo_field_int, uo_field_skip): Ditto.
1643 (uo_field_string, uo_field_fmt): Ditto.
1644 (uo_text, uo_message): Ditto.
1645
1646 2001-06-11 Eli Zaretskii <eliz@is.elta.co.il>
1647
1648 * completer.c (gdb_completer_loc_break_characters): New variable.
1649 (line_completion_function): If we are completing on locations,
1650 back up the start of word pointer past all characters which can
1651 appear in a location spec.
1652 (location_completer): New function.
1653
1654 * completer.h: Add prototype for location_completer.
1655
1656 * symtab.c (make_source_files_completion_list)
1657 (add_filename_to_list, not_interesting_fname): New functions.
1658 (filename_seen): New function, body extracted from
1659 output_source_filename.
1660 (output_source_filename): Call filename_seen to check if the file
1661 was already printed.
1662 (make_symbol_completion_list): If TEXT includes a
1663 double-quoted string, return an empty list, not NULL.
1664 (make_file_symbol_completion_list): New function, similar to
1665 make_symbol_completion_list but with an additional argument
1666 SRCFILE.
1667
1668 * symtab.h (make_file_symbol_completion_list)
1669 (make_source_files_completion_list): Add prototypes.
1670
1671 * breakpoint.c (_initialize_breakpoint): Make location_completer
1672 be the completion function for all commands which set breakpoints
1673 and watchpoints.
1674 (top-level): #include "completer.h".
1675
1676 * tracepoint.c (_initialize_tracepoint): Make location_completer
1677 be the completion function for the "trace" command.
1678 (top-level): #include "completer.h".
1679
1680 * printcmd.c (_initialize_printcmd): Make location_completer be
1681 the completion function for the "print", "inspect", "call", and
1682 "disassemble" commands.
1683 (top-level): #include "completer.h".
1684
1685 * infcmd.c (_initialize_infcmd): Make location_completer be the
1686 completion function for the "go", "jump", and "until" commands.
1687 (top-level): #include "completer.h".
1688
1689 2001-06-10 Christopher Faylor <cgf@redhat.com>
1690
1691 * gnu-regex.c: Eliminate obsolete check for _MSC_VER.
1692 * utils.c (notice_quit): Remove dummy function only used for _MSC_VER.
1693 * values.c (unpack_double): Remove obsolete check for _MSC_VER.
1694 * defs.h: Ditto.
1695 * m32r-rom.c: Ditto.
1696 * p-exp.y: Ditto.
1697 * ser-e7kpc.c: Ditto. Define WIN32_LEAN_AND_MEAN under _WIN32, for
1698 faster compilation.
1699 (get_ds_base): Remove _MSC_VER version of this function.
1700 * nindy-share/ttyflush.c: Ditto.
1701 * rdi-share/host.h: Ditto.
1702 * ser-go32.c (dos_readchar): Remove call to obsolete function.
1703 * remote-sim.c (gdb_os_poll_quit): Ditto.
1704 * remote-e7000.c (expect): Remove obsolete #if 0'ed code.
1705
1706 * main.c (captured_main): Eliminate special Cygwin checks.
1707 * ser-tcp.c: Remove unneeded __CYGWIN__ guard against system include.
1708
1709 2001-06-09 Andrew Cagney <ac131313@redhat.com>
1710
1711 * Makefile.in (gdbcmd_h): Add ui_out_h.
1712 (breakpoint.o, infcmd.o, main.o, printcmd.o, stack.o): Ditto.
1713 (thread.o, top.o): Ditto.
1714
1715 * ui-out.h (table_begin_ftype): Make string parameters constant.
1716 (table_header_ftype): Ditto.
1717 (field_int_ftype): Ditto.
1718 (field_skip_ftype): Ditto.
1719 (field_string_ftype): Ditto.
1720 (field_fmt_ftype): Ditto.
1721 (text_ftype): Ditto.
1722 (message_ftype): Ditto.
1723 * cli-out.c (cli_table_begin): Ditto.
1724 (cli_table_header): Ditto.
1725 (cli_field_int): Ditto.
1726 (cli_field_skip): Ditto.
1727 (cli_field_string): Ditto.
1728 (cli_field_fmt): Ditto.
1729 (cli_text): Ditto.
1730 (cli_message): Ditto.
1731 (out_field_fmt): Ditto.
1732 * ui-out.c (default_table_begin): Ditto.
1733 (default_table_header): Ditto.
1734 (default_field_int): Ditto.
1735 (default_field_skip): Ditto.
1736 (default_field_string): Ditto.
1737 (default_field_fmt): Ditto.
1738 (default_text): Ditto.
1739 (default_message): Ditto.
1740
1741 2001-06-08 Michael Snyder <msnyder@redhat.com>
1742
1743 * breakpoint.c (delete_breakpoint): Pass mark_inserted to
1744 remove_breakpoint, so that the subsequent test for
1745 bpt->inserted will succeed, and duplicates will be fixed up.
1746
1747 2001-06-08 Per Bothner <per@bothner.com>
1748
1749 * dwarf2read.c (set_cu_language): Handle DW_LANG_Java.
1750
1751 2001-06-07 Keith Seitz <keiths@redhat.com>
1752
1753 * tracepoint.c (tracepoint_opertation): Add ui event
1754 notifications.
1755 (trace_pass_command): Ditto.
1756
1757 2001-06-07 Andrew Cagney <ac131313@redhat.com>
1758
1759 * MAINTAINERS (Write After Approval): Note the entry criteria.
1760 (HP/PA): Jeff Law stepped down
1761
1762 2001-06-07 Jim Blandy <jimb@redhat.com>
1763
1764 * gdbarch.sh: Make sure that '[' doesn't interpret interesting
1765 variable values as operators.
1766
1767 2001-06-07 Keith Seitz <keiths@redhat.com>
1768
1769 * gdb-events.sh: Fix quote escaping which was obsoleted
1770 by last patch.
1771
1772 2001-06-07 Keith Seitz <keiths@redhat.com>
1773
1774 * gdb-events.sh: Make if statements and tests
1775 a little more portable.
1776 Don't use shell's echo command to put strings containing
1777 escaped characeters into a file -- different flavors of /bin/sh
1778 require differnt levels of escaping. Use cat <<EOF instead.
1779 Our internal field separator is a colon. Change all
1780 commands which assume it is a space.
1781
1782 2001-06-06 Mark Kettenis <kettenis@gnu.org>
1783
1784 * lin-lwp.c (struct lwp_info): Add member `resumed'.
1785 (iterate_over_lwps): Make sure we can handle CALLBACK deleting the
1786 LWP it's called for.
1787 (lin_lwp_attach): Mark LWP as resumed to make sure the fake
1788 SIGSTOP is reported.
1789 (resume_clear_callback): New function.
1790 (resume_set_callback): New function.
1791 (lin_lwp_resume): Mark all LWP's that we're going to resume as
1792 resumed, and unmark all others.
1793 (status_callback): Only report a pending wait status if we pretend
1794 that LP has been resumed.
1795 (resumed_callback): New function.
1796 (lin_lwp_wait): Add assertions to check that LWP's are properly
1797 marked as resumed. Partially revert 2001-05-25 patch by Michael
1798 Snyder: do not resume all threads. Add comment explaining the
1799 problems associated with this bit of code.
1800
1801 2001-06-07 Keith Seitz <keiths@redhat.com>
1802
1803 * MAINTAINTERS: Syd Polk is stepping down from
1804 maintaining libgui. I am replacing him.
1805
1806 2001-06-07 Eli Zaretskii <elis@is.elta.co.il>
1807
1808 * config/mips/tm-irix6.h: New file.
1809
1810 * config/mips/irix6.mh: New file.
1811
1812 * config/mips/irix6.mt: New file.
1813
1814 * config/mips/xm-irix6.h: New file.
1815
1816 * config/mips/nm-irix6.h: New file.
1817
1818 * mips-tdep.c (mips_gdbarch_init) <MIPS_ABI_N32>: Set up the
1819 disassembler info in tm_print_insn_info as appropriate for the N32
1820 ABI. Force N32 ABI to be the default if the CPU is R8000 or
1821 R10000.
1822
1823 * configure.tgt (mips*-sgi-irix6*): Map to irix6.
1824
1825 * configure.host (mips*-sgi-irix6*): Ditto.
1826
1827 2001-06-07 Andrew Cagney <ac131313@redhat.com>
1828
1829 * gnu-v3-abi.c: Include "gdb_assert.h".
1830 (build_gdb_vtable_type): Replace abort() with gdb_assert().
1831
1832 2001-06-06 Jim Blandy <jimb@redhat.com>
1833
1834 * cp-abi.h: Rearrange code to put documentation comments above the
1835 functions we export. The actual function table itself simply
1836 refers to those functions. Minor doc fixes.
1837
1838 * gdbarch.sh: Changes to effect the following:
1839 * gdbarch.c (initialize_non_multiarch): New function.
1840 * gdbarch.h (initialize_non_multiarch): New declaration.
1841 * arch-utils.c (initialize_current_architecture): For
1842 non-multiarch configurations, call initialize_non_multiarch.
1843
1844 2001-06-06 Andrew Cagney <ac131313@redhat.com>
1845
1846 * symfile.c (compare_psymbols): Replace PTR with void*. Delete
1847 declaration.
1848 (compare_symbols): Ditto.
1849
1850 2001-06-06 Jonathan Larmour <jlarmour@redhat.com>
1851
1852 * arch-utils.c (generic_prepare_to_proceed): Allow for having
1853 stopped due to a Ctrl-C as well as breakpoints.
1854
1855 * hppa-tdep.c (hppa_prepare_to_proceed): Add FIXME as this may not
1856 support thread switches after Ctrl-C.
1857 * lin-lwp.c (lin_lwp_prepare_to_proceed): Ditto.
1858 * linux-thread.c (linuxthreads_prepare_to_proceed): Ditto.
1859 * m3-nat.c (mach3_prepare_to_proceed): Ditto.
1860
1861 2001-06-06 Jim Blandy <jimb@redhat.com>
1862
1863 * gdbarch.sh, gdbarch.c: Revert change of 2001-06-01; all
1864 per-architecture data should be registered at initialization time,
1865 before any gdbarch objects get used, so the generality is
1866 unnecessary.
1867
1868 2001-06-06 Keith Seitz <keiths@redhat.com>
1869
1870 * gdb-events.sh (function_list): Add tracepoint_create,
1871 tracepoint_delete, and tracepoint_modify events.
1872 * gdb-events.c: Regenerated.
1873 * gdb-events.h: Regenerated.
1874
1875 2001-06-06 Keith Seitz <keiths@redhat.com>
1876
1877 * gdb-events.sh: Update copyrights.
1878 Change free to xfree.
1879 * gdb-events.c: Regenerated.
1880 * gdb-events.h: Regenerated.
1881
1882 2001-06-06 Eli Zaretskii <eliz@is.elta.co.il>
1883
1884 * source.c (mod_path, openp): Use #ifdef HAVE_DOS_BASED_FILE_SYSTEM
1885 instead of #if HAVE_DOS_BASED_FILE_SYSTEM.
1886 * completer.c: Ditto.
1887 * cli/cli-cmds.c (cd_command): Ditto.
1888
1889 2001-06-04 Eli Zaretskii <eliz@is.elta.co.il>
1890
1891 * mips-tdep.c (show_mipsfpu_command): Remove unused variable msg.
1892 (mips_set_processor_type_command): Remove unused variable j.
1893 (mips_breakpoint_from_pc): Declare breakpoint instruction
1894 sequences as unsigned char, to avoid compiler warnings.
1895
1896 * source.c (mod_path, openp): Use HAVE_DOS_BASED_FILE_SYSTEM
1897 instead of system-specific define's like _WIN32 and __MSDOS__.
1898 Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH instead of SLASH_P and
1899 ROOTED_P.
1900 (top-level): #include "filenames.h".
1901
1902 * solib.c (solib_open): Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH
1903 instead of SLASH_CHAR, ROOTED_P and SLASH_P.
1904 (top-level): #include "filenames.h".
1905
1906 * defs.h (SLASH_P, SLASH_CHAR, ROOTED_P): Remove definitions.
1907 (SLASH_STRING): Define only for _WIN32.
1908
1909 * completer.c: Use HAVE_DOS_BASED_FILE_SYSTEM instead of
1910 __MSDOS_.
1911
1912 * cli/cli-cmds.c (cd_command): Use IS_DIR_SEPARATOR and
1913 IS_ABSOLUTE_PATH instead of SLASH_P and ROOTED_P. Replace
1914 system-specific ifdefs with HAVE_DOS_BASED_FILE_SYSTEM.
1915 (top-level): #include "filenames.h".
1916
1917 * go32-nat.c (go32_wait): Change the return value to ptid_t.
1918
1919 * config/djgpp/fnchange.lst: Add two new files in the
1920 gdb/testsuite/gdb.c++/ directory to the remapped names.
1921
1922 * config/djgpp/djconfig.sh (lt_cv_sys_max_cmd_len): Set to 12KB.
1923
1924 2001-06-01 Jim Blandy <jimb@redhat.com>
1925
1926 Expand the gdbarch per-architecture data vector as needed, rather
1927 than requiring that all per-architecture data be registered before
1928 the first gdbarch object is allocated.
1929 * gdbarch.sh: Changes to effect the following:
1930 * gdbarch.c (alloc_gdbarch_data, init_gdbarch_data): Delete
1931 declarations and definitions.
1932 (check_gdbarch_data): New function, and declaration.
1933 (gdbarch_alloc): Don't call alloc_gdbarch_data; leaving the fields
1934 zero is good enough.
1935 (free_gdbarch_data): Tolerate a null data pointer. Free only
1936 those data items gdbarch->data actually has allocated.
1937 (set_gdbarch_data, gdbarch_data): Call check_gdbarch_data.
1938 (gdbarch_update_p): No need to call init_gdbarch_data.
1939
1940 2001-06-01 Kevin Buettner <kevinb@redhat.com>
1941
1942 * ia64-tdep.c (is_float_or_hfa_type_recurse): Call check_typedef()
1943 on types that we wish to recurse on.
1944 (slot_alignment_is_next_even): New function.
1945 (ia64_push_arguments): Call slot_alignment_is_next_even() to
1946 examine the type in order to decide if it's necessary to skip
1947 an odd slot.
1948
1949 2001-06-01 Michael Snyder <msnyder@redhat.com>
1950
1951 * thread.c (delete_step_resume_breakpoint): New function.
1952 Maintain internal consistency of the thread list while deleting
1953 a step_resume_breakpoint.
1954 * gdbthread.h (delete_step_resume_breakpoint): Export.
1955 * breakpoint.c (bpstat_find_step_resume_breakpoint):
1956 Make thread-aware: don't return a step_resume_breakpoint
1957 for the wrong thread.
1958 * infrun.c (wait_for_inferior): Call delete_step_resume_breakpoint
1959 instead of delete_breakpoint_current_contents.
1960 (fetch_inferior_event): Ditto.
1961 (handle_inferior_event): Call delete_step_resume_breakpoint
1962 instead of delete_breakpoint.
1963 * infrun.c (handle_inferior_event): After singlestepping over a
1964 thread-specific breakpoint, use currently_stepping() to decide
1965 whether to step or continue.
1966
1967 2001-06-01 Jim Blandy <jimb@redhat.com>
1968
1969 * gnu-v3-abi.c (gnu_v3_abi_ops, vtable_type_gdbarch_data): Make
1970 these static --- there's no reason other files should use these.
1971
1972 * partial-stab.h (case N_FUN: case 'f':, case N_FUN: case 'F':)
1973 Fix memory leak.
1974
1975 * partial-stab.h: New complaint: function_outside_compilation_unit.
1976 (case N_FUN: case 'f':, case N_FUN: case 'F':): If pst is zero,
1977 complain, and don't try to set pst's start address.
1978
1979 2001-05-31 Kevin Buettner <kevinb@redhat.com>
1980
1981 * ia64-linux-tdep.c (IA64_LINUX_SIGCONTEXT_OFFSET): Revise to
1982 match the location at which the kernel is placing the sigcontext
1983 struct.
1984
1985 * ia64-tdep.c (max_skip_non_prologue_insns): New static global.
1986 (refine_prologue_limit): New function.
1987 (examine_prologue): Further limit number of instructions
1988 scanned by calling refine_prologue_limit(). Revise way in
1989 which the end of prologue address is computed for frameless
1990 functions.
1991
1992 2001-05-29 Christopher Faylor <cgf@redhat.com>
1993
1994 * partial-stab.h: Revert previous patch.
1995
1996 2001-05-29 Christopher Faylor <cgf@redhat.com>
1997
1998 * partial-stab.h: Consistently guard against pst being NULL.
1999
2000 2001-05-29 Alexandre Oliva <aoliva@redhat.com>
2001
2002 * symfile.c (compare_psymbols, compare_symbols): Declare using
2003 PTR, as in the definition.
2004 * minsyms.c (compare_minimal_symbols): Likewise.
2005 * coffread.c (find_targ_sec): Likewise.
2006 * elfread.c (free_elfinfo, elf_locate_sections): Likewise.
2007 * mipsread.c (alphacoff_locate_sections): Likewise.
2008 * mdebugread.c (compare_blocks): Likewise.
2009
2010 2001-05-25 Nick Duffek <nsd@redhat.com>
2011
2012 * solib.c (update_solib_list): Move target_resize_to_sections()
2013 into solib_map_sections() loop.
2014 (info_sharedlibrary_command): Try bfd_arch_bits_per_address() if
2015 bfd_get_arch_size() fails.
2016
2017 2001-05-25 Nick Duffek <nsd@redhat.com>
2018
2019 * Makefile.in (osfsolib.c, osfsolib.o): Rename to solib-osf.c and
2020 solib-osf.o.
2021 * config/alpha/alpha-osf1.mh (NATDEPFILES): Replace osfsolib.o
2022 with solib-osf.o and solib.o.
2023 * config/alpha/alpha-osf2.mh: Likewise.
2024 * config/alpha/alpha-osf3.mh: Likewise.
2025 * solib-osf.c: New file, renamed and largely rewritten from
2026 osfsolib.c.
2027
2028 2001-05-25 Michael Snyder <msnyder@redhat.com>
2029
2030 * lin-lwp.c (lin_lwp_attach_lwp): Call stop_wait_callback,
2031 to consume the SIGSTOP generated by PTRACE_ATTACH.
2032 (stop_wait_callback): If a SIGTRAP or a SIGINT event is consumed,
2033 try again to get the SIGSTOP event.
2034 (lin_lwp_wait): Resume all threads when ignoring a signal.
2035 This will insure that newly attached threads get resumed.
2036 * lin-lwp.c (stop_wait_callback): Discard redundant SIGINT events.
2037 * remote.c (remote_write_bytes): Update 'p' packet pointer.
2038
2039 2001-05-25 Jim Blandy <jimb@redhat.com>
2040
2041 * gnu-v2-abi.c (gnuv2_virtual_fn_field): There's no need to clear
2042 VALUE_POINTED_TO_OFFSET here; if value_cast doesn't return a
2043 useful value, then we should fix that instead.
2044
2045 2001-05-24 Nick Duffek <nsd@redhat.com>
2046
2047 * solist.h (struct so_list): Document the requirement that
2048 current_sos initialize some fields to 0.
2049
2050 2001-05-24 Mark Kettenis <kettenis@gnu.org>
2051
2052 * gnu-nat.c: Include <ctype.h>.
2053 (gnu_pid_to_exec_file): Add PID parameter.
2054 (set_sig_thread_cmd): Use PIDGET on return value from
2055 thread_id_to_pid.
2056 (proc_string): Use MERGEPID to construct argument to
2057 pid_to_thread_id.
2058
2059 2001-05-22 Kevin Buettner <kevinb@redhat.com>
2060
2061 * breakpoint.c (breakpoint_address_is_meaningful): New function.
2062 (check_duplicates): Don't compare non-meaningful addresses.
2063
2064 2001-05-22 Michael Snyder <msnyder@redhat.com>
2065
2066 * thread-db.c: Allow for defunct zombie threads.
2067 (attach_thread): Do not attempt to attach zombie thread.
2068 (thread_db_thread_alive): Return false for defunct zombie thread.
2069 (find_new_threads_callback): Don't add defunct zombie thread to list.
2070
2071 2001-05-22 Jim Blandy <jimb@redhat.com>
2072
2073 Add support for the GNU V3 C++ ABI.
2074 (Includes changes by Dan Berlin.)
2075
2076 * gnu-v3-abi.c: New file.
2077 * minsyms.c: #include "value.h" and "cp-abi.h".
2078 (install_minimal_symbols): Check the minimal symbol table for
2079 symbols that look mangled in the V3 style, and select the V3 ABI
2080 if we find any.
2081 * Makefile.in (SFILES): Add gnu-v3-abi.c.
2082 (COMMON_OBS): Add gnu-v3-abi.o.
2083 (gnu-v3-abi.o): Add new rule.
2084 (minsyms.o): Depend on $(cp_abi_h) and $(value_h).
2085
2086 2001-05-21 Jim Blandy <jimb@redhat.com>
2087
2088 * values.c (value_primitive_field): If we're extracting a base
2089 class, then the type of the result should be the base class being
2090 extracted, not the type of which it is a base class.
2091
2092 * value.h (struct value): Doc fix, and rearrange members to place
2093 them near their explanations.
2094
2095 2001-05-21 Michael Snyder <msnyder@redhat.com>
2096
2097 * remote.c (remote_async_wait): Added new variable fieldsize.
2098 Add fieldsize (return value of hex2bin) to string pointer p.
2099
2100 2001-05-20 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2101
2102 * m68hc11-tdep.c (m68hc11_pop_frame): Fix stack pointer computation.
2103 (m68hc11_analyze_instruction): Update the pc correctly.
2104 (m68hc11_guess_from_prologue): Take into account the stack correction
2105 for the saving address.
2106
2107 2001-05-07 Daniel Berlin <dan@cgsoftware.com>
2108
2109 Changes by Jim Ingham:
2110
2111 * values.c (value_change_enclosing_type): New function. If the
2112 new enclosing type is larger than the old one, we need to allocate
2113 more space.
2114 * value.h: Add value_change_enclosing_type prototype.
2115 * valops.c (value_cast): Use it.
2116 (value_assign): Use it.
2117 (value_addr): Use it.
2118 (value_ind): Use it.
2119 (value_full_object): Use it.
2120
2121 2001-05-07 Daniel Berlin <dan@cgsoftware.com>
2122
2123 * values.c (value_static_field): Handle static fields that have a
2124 constant value.
2125
2126 2001-05-17 Michael Snyder <msnyder@redhat.com>
2127
2128 * blockframe.c (create_new_frame): Zero all the fields via memset,
2129 rather than zeroing them one by one.
2130
2131 2001-05-17 Eli Zaretskii <eliz@is.elta.co.il>
2132
2133 * top.c (user_args): Remove unused declaration.
2134
2135 2001-05-16 Michael Snyder <msnyder@redhat.com>
2136
2137 * infcmd.c (do_registers_info): Move alloca outside of loop.
2138
2139 2001-05-15 John S Kallal <jskallal@home.com>
2140
2141 * remote.c (remote_wait): Added new variable fieldsize.
2142 Add fieldsize (return value of hex2bin) to string pointer p.
2143
2144 2001-05-15 Mark Kettenis <kettenis@gnu.org>
2145
2146 * sparc-tdep.c (sparc_gdbarch_init): Get the architecture from
2147 info.bfd_arch_info.
2148
2149 2001-05-14 Kevin Buettner <kevinb@redhat.com>
2150
2151 * lin-lwp.c (detach_callback, lin_lwp_wait, lin_lwp_pid_to_str):
2152 Adjust format strings for printing LWPs to account for the fact
2153 that the type returned by GET_LWP() is now a long instead of an
2154 int.
2155
2156 2001-05-14 Kevin Buettner <kevinb@redhat.com>
2157
2158 * inferior.h (null_ptid, minus_one_ptid): New variable declarations.
2159 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
2160 (ptid_get_tid, ptid_equal): New function declarations.
2161 * infrun.c (null_ptid, minus_one_ptid): New variables.
2162 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
2163 (ptid_get_tid, ptid_equal): New functions.
2164 (_initialize_infrun): Initialize null_ptid, minus_one_ptid,
2165 inferior_ptid, and target_last_wait_ptid.
2166
2167 * defs.h (ptid_t): Redefine to be a struct rather than an int.
2168 (pid_to_ptid, null_ptid, ptid_equal): Delete these macros.
2169 (PIDGET, TIDGET, MERGEPID): Redefine these macros using the
2170 new ptid accessors and constructor.
2171
2172 * config/i386/tm-i386v42mp.h (PIDGET, TIDGET, LIDGET, MERGEPID,
2173 MKLID, MKTID, ISTID): Provide new definitions for these macros.
2174 The old macros are retained, but disabled via #if 0 in order
2175 to aid in future restructuring. See FIXME.
2176
2177 * arm-linux-nat.c (PIDGET, TIDGET): Delete macro definitions.
2178 * i386-linux-nat.c (PIDGET, TIDGET): Likewise.
2179 * infptrace.c (PIDGET, TIDGET): Likewise.
2180 * lin-lwp.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
2181 * lin-thread.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
2182 * proc-service.c (MERGEPID): Likewise.
2183 * procfs.c (PIDGET, TIDGET, MERGEPID): Likewise.
2184 * thread-db.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
2185 * config/nm-linux.h (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
2186 * config/i386/tm-i386sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
2187 Likewise.
2188 * config/sparc/tm-sun4sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
2189 Likewise.
2190
2191 * lin-lwp.c (THREAD_FLAG): Delete macro definition.
2192 (GET_LWP): Redefine in terms of ptid_get_lwp().
2193 (GET_PID): Redefine in terms of ptid_get_pid().
2194 (is_lwp): Redefine without the need for THREAD_FLAG.
2195 (BUILD_LWP): Redefine in terms of ptid_build().
2196 * lin-thread.c (THREAD_FLAG): Delete macro definition.
2197 (GET_LWP): Redefine in terms of ptid_get_lwp().
2198 (GET_PID): Redefine in terms of ptid_get_pid().
2199 (GET_THREAD): Redefine in terms of ptid_get_tid().
2200 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
2201 (is_lwp, is_thread): Redefine.
2202 (linux_child_wait, check_all_signal_numbers)
2203 (linuxthreads_discard_global_state, attach_thread): Declare these
2204 functions to squash warnings about missing declarations.
2205 * sol-thread.c (THREAD_FLAG): Delete macro definition.
2206 (GET_PID): Redefine in terms of ptid_get_pid().
2207 (GET_LWP): Redefine in terms of ptid_get_lwp().
2208 (GET_THREAD): Redefine in terms of ptid_get_tid().
2209 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
2210 (is_lwp, is_thread): Redefine.
2211 * thread-db.c (THREAD_FLAG): Delete macro definition.
2212 (GET_PID): Redefine in terms of ptid_get_pid().
2213 (GET_LWP): Redefine in terms of ptid_get_lwp().
2214 (GET_THREAD): Redefine in terms of ptid_get_tid().
2215 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
2216 (is_lwp, is_thread): Redefine.
2217
2218 * corelow.c (add_to_thread_list, get_core_register_section):
2219 Eliminate hacks needed to prevent regressions when inferior_ptid
2220 wasn't wide enough to hold the core file thread id in the pid
2221 component of inferior_ptid.
2222
2223 2001-05-14 Michael Snyder <msnyder@redhat.com>
2224
2225 * remote.c (hex2bin): Make first argument const.
2226 Require explicit count, don't accept null-terminated str.
2227 (remote_resume, remote_async_resume): White space fix-up.
2228 (remote_write_bytes): Set nr_bytes to return value of bin2hex.
2229
2230 2001-05-13 Mark Kettenis <kettenis@gnu.org>
2231
2232 * symtab.c (lookup_symtab_1): Use lbasename (NAME) instead of
2233 basename (NAME). The FreeBSD basename returns a pointer to a
2234 static buffer, even if it's simply returning a string identical to
2235 its argument.
2236 (lookup_partial_symtab): Likewise.
2237
2238 2001-05-14 Michael Snyder <msnyder@redhat.com>
2239
2240 * solib.c, solib.h: Add comment for function no_shared_libraries.
2241
2242 2001-05-14 Kevin Buettner <kevinb@redhat.com>
2243
2244 * solib.h (no_shared_libraries): Make declaration match definition
2245 in solib.c.
2246
2247 2001-05-14 Andrew Cagney <ac131313@redhat.com>
2248
2249 * remote.c (remote_write_bytes): Set nr_bytes before returning it.
2250 * solib.h (no_shared_libraries): Declare.
2251
2252 2001-05-12 Andrew Cagney <ac131313@redhat.com>
2253
2254 * gdbarch.sh (struct gdbarch_info): Delete field bfd_architecture.
2255 (gdbarch_update_p): Rewrite logic filling in INFO struct. Use
2256 user specified values when available.
2257 * rs6000-tdep.c (rs6000_gdbarch_init): Update. Get the
2258 architecture from info.bfd_arch_info.
2259 * gdbarch.c, gdbarch.h: Regenerate.
2260
2261 2001-05-12 Fernando Nasser <fnasser@redhat.com>
2262
2263 * remote-e7000.c (e7000_open): Check for bad baud rate.
2264 * remote-st.c (st2000_open): Ditto.
2265
2266 2001-05-11 Jim Blandy <jimb@redhat.com>
2267
2268 * thread.c (do_captured_list_thread_ids): Use ui_out_tuple_begin
2269 and ui_out_tuple_end instead of ui_out_list_begin and
2270 ui_out_list_end.
2271
2272 * Makefile.in (gnu-v2-abi.o): Add $(demangle_h) to list of
2273 dependencies. Reorder dependencies to match #includes in file,
2274 for easier verification.
2275
2276 Fri May 11 13:32:50 2001 Andrew Cagney <cagney@b1.cygnus.com>
2277
2278 * breakpoint.c: Replace ui_out_list_begin, ui_out_list_end and
2279 make_cleanup_ui_out_list_end with ui_out_tuple_begin,
2280 ui_out_tuple_end and make_cleanup_ui_out_tuple_begin_end.
2281 * cli/cli-setshow.c: Ditto.
2282 * printcmd.c: Ditto.
2283 * stack.c: Ditto.
2284
2285 * ui-out.h (enum ui_out_type): Fix tipo - tupple -> tuple.
2286 * ui-out.c (ui_out_list_begin): Delete ``lstid'' parameter.
2287 (ui_out_tuple_begin): New function.
2288 (ui_out_tuple_end): New function.
2289 (ui_out_tuple_begin_end): New function.
2290 (make_cleanup_ui_out_list_begin_end): Replace
2291 make_cleanup_ui_out_list_end function.
2292 * ui-out.h (ui_out_list_begin): Update declaration.
2293 (make_cleanup_ui_out_list_begin_end): Replace
2294 make_cleanup_ui_out_list_end declaration.
2295 (ui_out_tuple_begin, ui_out_tuple_end): Declare.
2296 (ui_out_tuple_begin_end): Declare.
2297
2298 2001-05-11 Jim Blandy <jimb@redhat.com>
2299
2300 * gnu-v2-abi.c: Don't #include "gdb_regex.h". We don't use it.
2301
2302 2001-05-11 Andrew Cagney <ac131313@redhat.com>
2303
2304 From 2001-03-26 Rodney Brown <RodneyBrown@mynd.com>
2305 * config/pa/tm-hppa.h: Remove trigraph.
2306 * hp-symtab-read.c (hpread_type_translate): Provide return value.
2307 (hpread_read_struct_type): Remove trigraph. Add parameter in
2308 `warning'.
2309 (hpread_read_array_type): Provide return value.
2310 (hpread_type_lookup): Avoid ambiguous `else'. Provide return
2311 value.
2312 * hppa-tdep.c (initialize_hp_cxx_exception_support): Remove
2313 trigraph.
2314
2315 2001-05-11 Jim Blandy <jimb@redhat.com>
2316
2317 * mips-tdep.c (mips_store_return_value,
2318 mips_extract_return_value): Pass arguments to
2319 return_value_location in the proper order.
2320
2321 2001-05-11 Andrew Cagney <ac131313@redhat.com>
2322
2323 * Makefile.in (VERSION): Delete. Moved to file ``version.in''.
2324 (version.c): Depends on file ``version.in''. Extract version
2325 number from ``version.in'' file.
2326 (clean mostlyclean): Update.
2327 * version.in: New file.
2328 * NEWS: Update.
2329
2330 2001-05-11 Kevin Buettner <kevinb@redhat.com>
2331
2332 * breakpoint.c (set_raw_breakpoint): Add new parameter
2333 representing the breakpoint's type. Adjust all callers.
2334 (create_longjmp_breakpoint, create_temp_exception_breakpoint)
2335 (create_thread_event_breakpoint): Don't test for zero return
2336 value from set_raw_breakpoint(). It can never be zero.
2337 (create_exception_catchpoint, watch_command_1): Move logic
2338 which calculates the breakpoint type prior to the call to
2339 set_raw_breakpoint().
2340
2341 2001-05-11 Fernando Nasser <fnasser@redhat.com>
2342
2343 * ser-unix.c (rate_to_code): Issue warning if baud rate is invalid.
2344 (hardwire_setbaudrate): Set errno to EINVAL and return with error
2345 if the conversion of the baud rate to code fails.
2346
2347 2001-05-10 Andrew Cagney <ac131313@redhat.com>
2348
2349 * ui-out.h (make_cleanup_ui_out_begin_end): Declare.
2350 * ui-out.c (struct ui_out_end_cleanup_data): Define.
2351 (do_cleanup_end): New function. Replace do_list_end.
2352 (make_cleanup_ui_out_end): New function.
2353 (make_cleanup_ui_out_begin_end): New function.
2354 (make_cleanup_ui_out_list_end): Use make_cleanup_ui_out_end.
2355
2356 2001-05-10 Elena Zannoni <ezannoni@redhat.com>
2357
2358 * MAINTAINERS: Declare xcoffread.c open to all maintainers,
2359 and make Kevin Buettner (kevinb@redhat.com) the reference person.
2360
2361 2001-05-10 Elena Zannoni <ezannoni@redhat.com>
2362
2363 * proc-api.c (ioctl_with_trace): Fix uninitialized variable.
2364
2365 2001-05-10 Fernando Nasser <fnasser@redhat.com>
2366
2367 * MAINTAINERS: Add testsuite subdirectory co-maintainers.
2368
2369 Thu May 10 16:26:47 2001 Andrew Cagney <cagney@b1.cygnus.com>
2370
2371 * Makefile.in (mi-main.o): Compile with -Werror.
2372
2373 2001-05-10 Michael Snyder <msnyder@redhat.com>
2374
2375 * remote.c (remote_open_1): Call no_shared_libraries, so that
2376 symbols for shared libraries can be reloaded per session.
2377 (remote_async_open_1): Ditto.
2378 * remote.c (bin2hex, hex2bin): New functions. Factor out these
2379 two conversions which are coded for repeatedly in this module.
2380 (remote_threads_extra_info, remote_wait, remote_async_wait,
2381 store_register_using_P, remote_store_registers, remote_write_bytes,
2382 remote_read_bytes, remote_rcmd): Use bin2hex and hex2bin instead
2383 of coding the conversions inline.
2384 (fromhex): Not exported, change from extern to static.
2385
2386 2001-05-10 Andrew Cagney <ac131313@redhat.com>
2387
2388 * arch-utils.c (initialize_current_architecture): Delete obsolete
2389 ``info architecture'' command.
2390 (info_architecture): Delete function.
2391
2392 2001-05-10 Andrew Cagney <ac131313@redhat.com>
2393
2394 * TODO (5.1, 5.2): Update.
2395
2396 2001-05-09 Andrew Cagney <ac131313@redhat.com>
2397
2398 * MAINTAINERS: Jim Ingham is no longer maintaining Arm related
2399 stuff.
2400
2401 2001-05-10 Keith Seitz <keiths@cygnus.com>
2402
2403 * Makefile.in (SUBDIR_GDBTK_OBS): Add gdbtk-bp.o, gdbtk-register.o
2404 and gdbtk-stack.o.
2405 (SUBDIR_GDBTK_SRCS): Ditto for the sources.
2406 (gdbtk-bp.o): New rule.
2407 (gdbtk-register.o): New rule.
2408 (gdbtk-stack.o): New rule.
2409 (gdbtk-cmds.o): Update dependencies.
2410 (gdbtk.o): Ditto.
2411 (gdbtk-hooks.o): Ditto.
2412 (gdbtk-varobj.o): Ditto.
2413
2414 2001-05-10 Fernando Nasser <fnasser@redhat.com>
2415
2416 * varobj.c (c_number_of_children): Fix memory leak. Delete unwanted old
2417 variables, not just unregister them.
2418
2419 2001-05-10 Fernando Nasser <fnasser@redhat.com>
2420
2421 * varobj.c (c_number_of_children): Check for target type of void*,
2422 not the target type name. Allow dereferencing char*.
2423
2424 2001-05-10 Fernando Nasser <fnasser@redhat.com>
2425
2426 * symfile.c (symbol_file_add_main_1): New static function.
2427 Passes the flags arguments to symbol_file_add() and takes care
2428 of any necessary reinitializations.
2429 (symbol_file_command): Call symbol_file_add_main_1() instead of
2430 symbol_file_add().
2431 (symbol_file_add_main): Ditto.
2432
2433 2001-05-09 Kevin Buettner <kevinb@redhat.com>
2434
2435 * lin-lwp.c (lin_lwp_pid_to_str): Revert inadvertent format
2436 string change in 2001-05-03 changes.
2437 (lin_lwp_wait): Revert GET_LWP coercion introduced in 2001-05-03
2438 changes.
2439
2440 2001-05-09 Kevin Buettner <kevinb@redhat.com>
2441
2442 * lin-lwp.c (lin_lwp_attach): Use PIDGET() to fetch the pid
2443 component from inferior_ptid.
2444 (lin_lwp_detach): Use pid_to_ptid() to convert from a pid to a
2445 ptid.
2446
2447 2001-05-09 Elena Zannoni <ezannoni@redhat.com>
2448
2449 * sh3-rom.c (_initialize_sh3_rom): Get rid of specific _WINDOWS
2450 conditional for help with connections through parallel ports,
2451 given that the actual code for downloading through a parallel port
2452 is not conditionalized.
2453
2454 * sh-tdep.c: Remove WIN32_WCE conditional. The wince sh target is
2455 unmaintaned, and probably on its way to obsolescence.
2456
2457 2001-05-09 Mark Kettenis <kettenis@gnu.org>
2458
2459 * i386-tdep.c (i386_frame_saved_pc): New function.
2460 * config/i386/tm-i386.h (FRAME_SAVED_PC): Redefine in terms of
2461 i386_frame_saved_pc.
2462 (i386_frame_saved_pc): New prototype.
2463
2464 * i386-tdep.c (i386_register_virtual_type): New function.
2465 (i386_register_convertible): New function.
2466 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE): Redefine in terms
2467 of i386_register_virtual_type.
2468 (REGISTER_CONVERTIBLE): Redefine in terms of
2469 i386_register_convertible.
2470 (i386_register_virtual_type, i386_register_convertible): New
2471 prototypes.
2472
2473 2001-05-08 Jim Blandy <jimb@redhat.com>
2474
2475 * Makefile.in (mn10300-tdep.o): New rule.
2476
2477 * Makefile.in (gdb_string_h): Define. Use it throughout.
2478 Some rules were already using this, even though it isn't defined.
2479
2480 * Makefile.in (obstack_h, target_h): Define; these are already
2481 used elsewhere, but have been expanding to the empty string.
2482 (memattr_h): Define; needed by target_h.
2483
2484 * mn10300-tdep.c (mn10300_extract_return_value): Mark this as
2485 static. (This was accidentally omitted from the earlier patch.)
2486
2487 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): New function.
2488 (mn10300_gdbarch_init): Register it as the architecture's
2489 dwarf2_reg_to_regnum method.
2490
2491 Correct and expand handling of `movm' instruction, and register
2492 saves in general.
2493 * config/mn10300/tm-mn10300.h (D0_REGNUM, A0_REGNUM, MDRQ_REGNUM,
2494 MCRH_REGNUM, MCRL_REGNUM, MCVF_REGNUM): New definitions.
2495 (enum movm_register_bits): New enum.
2496 * mn10300-tdep.c (set_movm_offsets): Use symbolic names for the
2497 bits, not hex literals. Handle the `other', `exreg0', and
2498 `exother' bits. Correct handling of `exreg1': it saves r4, r5,
2499 r6, and r7, not r2, r3, r4, and r5.
2500 (saved_regs_size): New function.
2501 (mn10300_frame_chain, mn10300_frame_saved_pc): Use it, instead
2502 of computing the same thing inline, incorrectly.
2503
2504 * mn10300-tdep.c (mn10300_gdbarch_init): We do have a
2505 dummy_breakpoint_offset; it's zero.
2506
2507 * mn10300-tdep.c (mn10300_pop_frame): Split the mn10300-specific
2508 stuff out into mn10300_pop_frame_regular, and use
2509 generic_pop_current_frame. This lets us share code, and also
2510 makes this function's prototype match that expected by gdbarch.
2511 Make this function static.
2512 (mn10300_pop_frame_regular): New function.
2513 (mn10300_gdbarch_init): Register mn10300_pop_frame as the
2514 gdbarch's pop_frame method.
2515 * config/mn10300/tm-mn10300.h (POP_FRAME): Delete definition.
2516 (mn10300_pop_frame): Delete declaration.
2517
2518 * mn10300-tdep.c (mn10300_saved_pc_after_call,
2519 mn10300_extract_return_value,
2520 mn10300_extract_struct_value_address, mn10300_store_return_value,
2521 mn10300_use_struct_convention, mn10300_breakpoint_from_pc,
2522 mn10300_frame_chain, mn10300_skip_prologue,
2523 mn10300_push_arguments, mn10300_push_return_address,
2524 mn10300_store_struct_return, mn10300_frame_saved_pc,
2525 mn10300_init_extra_frame_info, mn10300_frame_init_saved_regs):
2526 Make these functions static; they should only be visible to the
2527 outside world as gdbarch methods.
2528
2529 * config/mn10300/tm-mn10300.h (mn10300_find_callers_reg): Delete
2530 unused declaration.
2531
2532 * mn10300-tdep.c (mn10300_gdbarch_init): Put the gdbarch methods
2533 in some rational order.
2534
2535 * mn10300-tdep.c (mn10300_gdbarch_init): Rather than using
2536 generic_pc_in_call_dummy, use pc_in_call_dummy_at_entry_point.
2537
2538 Use gdbarch for most target parameters for the MN10300, rather
2539 than the tm-*.h file.
2540 * config/mn10300/tm-mn10300.h (MAX_REGISTER_VIRTUAL_SIZE,
2541 REGISTER_BYTES, FP_REGNUM, BREAKPOINT_FROM_PC,
2542 FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK, INNER_THAN,
2543 SAVED_PC_AFTER_CALL, INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS,
2544 FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC,
2545 EXTRACT_RETURN_VALUE, EXTRACT_STRUCT_VALUE_ADDRESS,
2546 STORE_RETURN_VALUE, STORE_STRUCT_RETURN, SKIP_PROLOGUE,
2547 FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2548 FRAME_NUM_ARGS, POP_FRAME, USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY,
2549 CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2550 CALL_DUMMY_LOCATION, FIX_CALL_DUMMY, CALL_DUMMY_ADDRESS,
2551 TARGET_READ_FP, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2552 SAVE_DUMMY_FRAME_TOS, PUSH_ARGUMENTS, PC_IN_CALL_DUMMY,
2553 REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER):
2554 Delete definitions. We register gdbarch methods for these now.
2555 (struct frame_info, struct type, struct value): Delete forward
2556 declarations of these types; they're no longer necessary, since we
2557 don't have function declarations here any more.
2558 * mn10300-tdep.c: #include "arch-utils.h", to get declarations for
2559 some default gdbarch methods.
2560 (mn10300_store_struct_return): Return void, as expected by
2561 gdbarch.
2562 (mn10300_init_extra_frame_info): Take initial `fromleaf' argument,
2563 as expected by gdbarch.
2564 (mn10300_frame_init_saved_regs): Provide dummy definition for
2565 this, as required by gdbarch.
2566 (mn10300_gdbarch_init): Add mn10300_call_dummy_words, as expected
2567 by gdbarch. Register gdbarch methods or values for all the stuff
2568 removed from tm-10300.h, listed above.
2569
2570 2001-05-08 Andrew Cagney <ac131313@redhat.com>
2571
2572 * cli-out.c (cli_begin, cli_end): Replace cli_list_begin and
2573 cli_list_end.
2574 (cli_ui_out_impl): Update.
2575
2576 * ui-out.c (default_begin, default_end): Replace
2577 default_list_begin and default_list_end.
2578 (default_ui_out_impl): Update.
2579 (uo_begin, uo_end): Replace ou_list_begin and uo_list_end.
2580 (ui_out_begin, ui_out_end): Replace ui_out_list_begin and
2581 ui_out_list_end.
2582 (ui_out_list_begin, ui_out_list_end): New. Compatibility
2583 functions.
2584 (struct ui_out_level): Add field type.
2585 (push_level, pop_level): Update. Add type parameter.
2586
2587 * ui-out.h (enum ui_out_type): Declare.
2588 (ui_out_begin, ui_out_end): Declare.
2589 (ui_out_begin_ftype, ui_out_end_ftype): Replace list_begin_ftype
2590 and list_end_ftype.
2591 (struct ui_out_impl): Update.
2592
2593 2001-05-07 Andrew Cagney <ac131313@redhat.com>
2594
2595 * ui-out.h (list_begin_ftype, list_end_ftype): Rename argument
2596 ``list_flag'' to ``depth''.
2597 * ui-out.c (default_list_begin, default_list_end): Update.
2598 (uo_list_begin, uo_list_end): Update.
2599 (MAX_UI_OUT_LEVELS): Define.
2600 (struct ui_out_level): Define.
2601 (top-level): Include "gdb_assert.h".
2602 (struct ui_out): Add fields ``level'' and ``levels''. Delete
2603 fields ``list_flag'' and ``field_count''.
2604 (ui_out_new): Update.
2605 (verify_field_proper_position): Update.
2606 (current_level, push_level, pop_level): New functions.
2607 (ui_out_list_begin): Use push_level.
2608 (ui_out_list_end): Use pop_level.
2609 (ui_out_field_int): Use current_level.
2610 (ui_out_field_skip): Ditto.
2611 (ui_out_field_fmt): Ditto.
2612
2613 2001-05-08 Michael Snyder <msnyder@redhat.com>
2614
2615 * language.c (longest_local_hex_string_custom): Strlen test is
2616 inverted -- reverse the sense of the test.
2617
2618 2001-05-08 Mark Kettenis <kettenis@gnu.org>
2619
2620 * config/i386/tm-i386v.h (struct frame_info, struct
2621 frame_saved_regs): Remove declarations.
2622 (i386_frame_num_args): Remove prototype.
2623
2624 2001-05-07 Andrew Cagney <ac131313@redhat.com>
2625
2626 * MAINTAINERS: I'm no longer actively maintaining the mn10300
2627 target.
2628
2629 2001-05-04 Andrew Cagney <ac131313@redhat.com>
2630
2631 * main.c (captured_main): Delete #ifndef _WIN32 conditional for
2632 WinGDB.
2633
2634 2001-05-06 Kevin Buettner <kevinb@redhat.com>
2635
2636 * inferior.h (save_inferior_ptid): Declare.
2637 * infrun.c (save_inferior_ptid, restore_inferior_ptid): Define.
2638
2639 * hpux-thread.c (save_inferior_ptid, restore_inferior_ptid):
2640 Delete these functions.
2641 * lin-lwp.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
2642 * lin-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
2643 * linux-thread.c (save_inferior_ptid, restore_inferior_ptid):
2644 Likewise.
2645 * proc-service.c (save_inferior_ptid, restore_inferior_ptid):
2646 Likewise.
2647 * sol-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
2648 * thread-db.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
2649
2650 * somsolib.c (reset_inferior_ptid): Delete.
2651 (som_solib_remove_inferior_hook): Use save_inferior_ptid() to
2652 build the cleanup struct.
2653
2654 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
2655 a cleanup to save/restore inferior_ptid.
2656
2657 2001-05-06 Mark Kettenis <kettenis@gnu.org>
2658
2659 Implement attach/detach for multi-threaded programs on Linux.
2660 * thread-db.c (keep_thread_db): Adjust comment.
2661 (deactivate_target): Removed.
2662 (thread_db_new_objfile): Don't call deactivate_target. Implement
2663 guts of deactivate_target inline instead.
2664 (attach_thread): Call ATTACH_LWP unconditionally if defined.
2665 (thread_db_attach): New function.
2666 (thread_db_detach): Don't call deactivate_target. Do necessary
2667 cleanup inline instead. Set inferior_ptid to LWP corresponding to
2668 the current user-level thread.
2669 (thread_db_kill): Set inferior_ptid to LWP corresponding to the
2670 current user-level thread.
2671 (thread_db_create_inferior): Deactivate target vector if
2672 KEEP_THREAD_DB is zero.
2673 (thread_db_mourn_inferior): Don't call deactivate_target. Do
2674 necessary cleanup inline instead.
2675 (init_thread_db_ops): Initialize to_attach field to
2676 thread_db_attach.
2677 * lin-lwp.c (lin_lwp_mourn_inferior): Remove prototype.
2678 (stop_wait_callback): Add prototype.
2679 (init_lwp_list): Add comment about when to re-initialize the LWP
2680 list.
2681 (lin_lwp_attach_lwp): Only call ptrace for cloned processes.
2682 Avoid adding publicates to the LWP list. Only mark an LWP as
2683 signalled if it doesn't correspond to a cloned process.
2684 (lin_lwp_attach): Add initial process to the LWP list. Make sure
2685 it's stopped and fake a SIGSTOP.
2686 (detach_callback): New function.
2687 (lin_lwp_detach): Implement.
2688 (lin_lwp_create_inferior): Don't re-initialize LWP list here.
2689 Call child_ops.to_create_inferior directly instead of via
2690 target_beneath local.
2691 (lin_lwp_mourn_inferior): Call child_ops.to_mourn_inferior
2692 directly instead of via target_beneath local.
2693
2694 2001-05-06 Eli Zaretskii <eliz@is.elta.co.il>
2695
2696 * symtab.c (lookup_symtab_1, lookup_partial_symtab): Use basename
2697 instead of non-portable search for `/'. Use FILENAME_CMP instead
2698 of STREQ, to account for case-insensitive filesystems.
2699 (top-level): #include "filenames.h".
2700
2701 2001-05-05 Jim Blandy <jimb@redhat.com>
2702
2703 * breakpoint.c (check_duplicates): Use the breakpoint's type, not
2704 its address, to decide whether it's a watchpoint or not. Zero
2705 is a valid code address.
2706 (update_breakpoints_after_exec): Admonishing comments.
2707 * breakpoint.h (struct breakpoint): Doc fixes.
2708
2709 * breakpoint.c (check_duplicates): Take a breakpoint object as an
2710 argument, rather than an address and section. All callers changed.
2711
2712 2001-05-03 Kevin Buettner <kevinb@redhat.com>
2713
2714 * defs.h (ptid_t): New typedef.
2715 (pid_to_ptid, null_ptid, minus_one_ptid, ptid_equal): New macros.
2716
2717 * a68v-nat.c, alphabsd-nat.c, arch-utils.c, arm-linux-nat.c,
2718 blockframe.c, breakpoint.c, breakpoint.h,
2719 config/i386/nm-i386sol2.h, config/i386/tm-i386sco5.h,
2720 config/ia64/nm-linux.h, config/m68k/nm-hp300bsd.h,
2721 config/mips/nm-irix4.h, config/mips/nm-irix5.h,
2722 config/pa/nm-hppah.h, config/pa/tm-hppa.h,
2723 config/rs6000/nm-rs6000.h, config/sparc/nm-sun4sol2.h,
2724 corelow.c, cxux-nat.c, d10v-tdep.c, dink32-rom.c,
2725 dve3900-rom.c, fork-child.c, frame.c, gnu-nat.c, go32-nat.c,
2726 hp300ux-nat.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c,
2727 hpux-thread.c, i386-linux-nat.c, i386aix-nat.c, i386b-nat.c,
2728 i386bsd-nat.c, i386gnu-nat.c, i386mach-nat.c, i386nbsd-nat.c,
2729 infcmd.c, inferior.h, inflow.c, infptrace.c, infrun.c,
2730 inftarg.c, infttrace.c, lin-lwp.c, lin-thread.c,
2731 linux-thread.c, lynx-nat.c, m3-nat.c, m32r-rom.c,
2732 m68knbsd-nat.c, m88k-nat.c, mac-nat.c, mips-nat.c,
2733 mon960-rom.c, monitor.c, ns32knbsd-nat.c, ocd.c, ppc-bdm.c,
2734 ppcnbsd-nat.c, proc-service.c, procfs.c, ptx4-nat.c,
2735 regcache.c, remote-adapt.c, remote-array.c, remote-bug.c,
2736 remote-e7000.c, remote-es.c, remote-mips.c, remote-mm.c,
2737 remote-nindy.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
2738 remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
2739 remote-vx.c, remote.c, rs6000-nat.c, sol-thread.c,
2740 solib-aix5.c, solib-svr4.c, somsolib.c, sparc-nat.c,
2741 standalone.c, sun3-nat.c, sun386-nat.c, symm-nat.c, target.c,
2742 target.h, thread-db.c, thread.c, top.c, ultra3-nat.c,
2743 uw-thread.c, v850ice.c, win32-nat.c, wince.c, xcoffsolib.c
2744 (inferior_pid): Rename to inferior_ptid everywhere - even in
2745 comments and obsolete ports. In cases where this variable
2746 really is supposed to be used as a process id, use PIDGET() to
2747 extract the process id component from inferior_ptid. The
2748 other cases, either involving other variables whose types had
2749 to be changed or functions whose signatures had to changed
2750 are listed separately below.
2751
2752 * arm-linux-nat.c (get_thread_id): Change type of argument
2753 representing a combined process/thread id from ``int'' to
2754 ``ptid_t''. Also change parameter name to ptid.
2755 * breakpoint.h, breakpoint.c (breakpoint_thread_match): Likewise.
2756 * corelow.c (core_file_thread_alive): Likewise.
2757 * d10v-tdep.c (d10v_read_pc, d10v_write_pc): Likewise.
2758 * defs.h (*target_wait_hook): Likewise.
2759 * gdbthread.h (thread_info, delete_thread, pid_to_thread_id)
2760 (find_thread_pid, save_infrun_state, load_infrun_state): Likewise.
2761 * gnu-nat.c (gnu_thread_alive, gnu_pid_to_str, gnu_wait)
2762 (gnu_resume): Likewise.
2763 * go32-nat.c (go32_wait, go32_resume): Likewise.
2764 * h8500-tdep.c (h8500_read_pc, h8500_write_pc): Likewise.
2765 * hppa-tdep.c (target_read_pc, target_write_pc): Likewise.
2766 * hppah-nat.c (child_pid_to_str, hppa_tid_to_str,
2767 (hppa_pid_or_tid_to_str, child_post_startup_inferior)
2768 (child_thread_alive): Likewise.
2769 * hpux-thread.c (hpux_thread_notice_signals, hpux_thread_alive)
2770 (hpux_pid_to_str, hpux_thread_wait, hpux_thread_resume): Likewise.
2771 * i386-linux-nat.c (child_resume): Likewise.
2772 * ia64-linux-nat.c (enable_watchpoints_in_psr, fetch_debug_register)
2773 (store_debug_register, fetch_debug_register_pair)
2774 (store_debug_register_pair, ia64_linux_insert_watchpoint)
2775 (ia64_linux_remove_watchpoint, ia64_linux_stopped_by_watchpoint):
2776 Likewise.
2777 * ia64-tdep.c (ia64_read_pc, ia64_write_pc): Likewise.
2778 * inferior.h (read_pc_pid, generic_target_read_pc, write_pc_pid)
2779 (generic_target_write_pc, ptrace_wait, child_resume)
2780 (get_last_target_status): Likewise.
2781 * infptrace.c (ptrace_wait, child_resume): Likewise.
2782 * inftarg.c (child_wait, child_post_wait, child_thread_live)
2783 (child_pid_to_str): Likewise.
2784 * infttrace.c (ptrace_wait, child_thread_alive, child_resume)
2785 (hppa_pid_or_tid_to_str, child_post_startup_inferior): Likewise.
2786 * lin-lwp.c (add_lwp, delete_lwp, find_lwp_pid, lin_lwp_attach_lwp)
2787 (lin_lwp_resume, lin_lwp_wait, lin_lwp_thread_alive)
2788 (lin_lwp_pid_to_str): Likewise.
2789 * lin-thread.c (thread_db_alive, thread_db_pid_to_str)
2790 (thread_db_resume, thread_db_wait): Likewise.
2791 * linux-thread.c (linuxthreads_thread_alive, linuxthreads_pid_to_str)
2792 (linuxthreads_resume, linuxthreads_wait): Likewise.
2793 * lynx-nat.c (child_wait, child_thread_alive, child_resume)
2794 (child_pid_to_str): Likewise.
2795 * m3-nat.c (mach_really_wait, m3_resume): Likewise.
2796 * mac-nat.c (child_wait, child_resume): Likewise.
2797 * mips-tdep.c (mips_read_pc): Likewise.
2798 * monitor.c (monitor_wait, monitor_resume): Likewise.
2799 * ocd.c, ocd.h (ocd_thread_alive, ocd_resume): Likewise.
2800 * ppc-bdm.c (bdm_ppc_wait): Likewise.
2801 * procfs.c (do_attach, procfs_wait, procfs_resume)
2802 (procfs_notice_signals, procfs_thread_alive, procfs_pid_to_str)
2803 (procfs_set_watchpoint, procfs_stopped_by_watchpoint)
2804 (procfs_find_LDT_entry): Likewise.
2805 * regcache.c (read_register_pid, read_signed_register_pid)
2806 (write_register_pid, generic_target_read_pc, read_pc_pid)
2807 (generic_target_write_pc, write_pc_pid): Likewise.
2808 * regcache.h (read_register_pid, read_signed_register_pid)
2809 (write_register_pid): Likewise.
2810 * remote-adapt.c (adapt_wait, adapt_resume): Likewise.
2811 * remote-array.c (array_wait, array_resume): Likewise.
2812 * remote-bug.c (bug_wait, bug_resume): Likewise.
2813 * remote-e7000.c (e7000_wait, e7000_resume): Likewise.
2814 * remote-eb.c (eb_wait, eb_resume): Likewise.
2815 * remote-es.c (es1800_wait, es1800_resume): Likewise.
2816 * remote-mips.c (mips_wait, mips_resume): Likewise.
2817 * remote-mm.c (mm_wait, mm_resume): Likewise.
2818 * remote-nindy.c (nindy_wait, nindy_resume): Likewise.
2819 * remote-os9k.c (rombug_wait, rombug_resume): Likewise.
2820 * remote-rdi.c (arm_rdi_wait, arm_rdi_resume): Likewise.
2821 * remote-rdp.c (remote_rdp_resume, remote_rdp_wait): Likewise.
2822 * remote-sds.c (sds_wait, sds_resume): Likewise.
2823 * remote-sim.c (gdbsim_wait, gdbsim_resume): Likewise.
2824 * remote-st.c (st2000_wait, st2000_resume): Likewise.
2825 * remote-udi.c (udi_wait, udi_resume): Likewise.
2826 * remote-vx.c (vx_wait, vx_resume): Likewise.
2827 * remote.c (remote_current_thread, remote_resume, remote_wait)
2828 (remote_async_resume, remote_async_wait, remote_cisco_wait)
2829 (remote_thread_alive): Likewise.
2830 * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_resume)
2831 (sol_thread_wait, sol_thread_notice_signals, sol_thread_alive)
2832 (solaris_pid_to_str): Likewise.
2833 * symm-nat.c (child_wait, child_resume): Likewise.
2834 * target.c (debug_to_resume, debug_to_wait, debug_to_post_wait)
2835 (debug_to_notice_signals, debug_to_thread_alive)
2836 (normal_target_post_startup_inferior, normal_pid_to_str)
2837 (debug_to_post_startup_inferior): Likewise.
2838 * target.h (to_resume, to_wait, to_post_wait)
2839 (to_post_startup_inferior, to_notice_signals, to_thread_alive)
2840 (to_pid_to_str [all in struct target_ops]): Likewise.
2841 (child_post_wait, child_thread_alive, normal_pid_to_str): Likewise.
2842 * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait)
2843 (attach_thread, detach_thread, thread_db_resume, check_event)
2844 (thread_db_post_startup_inferior, thread_db_thread_alive)
2845 (thread_db_pid_to_str): Likewise.
2846 * thread.c (add_thread, delete_thread, find_thread_pid)
2847 (pid_to_thread_id, in_thread_list, load_infrun_state)
2848 (save_infrun_state, switch_to_thread, restore_current_thread)
2849 (make_cleanup_restore_current_thread): Likewise.
2850 * top.c (target_wait_hook): Likewise.
2851 * uw-thread.c (dbgpid, thr_to_lwp, lwp_to_thr, add_thread_uw)
2852 (uw_thread_resume, libtrhead_stub, uw_thread_wait, uw_thread_alive)
2853 (uw_thread_pid_to_str): Likewise.
2854 * v850ice.c (v850ice_wait, v850ice_resume): Likewise.
2855 * win32-nat.c (child_wait, child_resume, win32_child_thread_alive)
2856 (cywin_pid_to_str): Likewise.
2857 * wince.c (child_wait, child_resume, win32_child_thread_alive):
2858 Likewise.
2859 * config/nm-linux.h (linuxthreads_pid_to_str): Likewise.
2860 * config/nm-lynx.h (child_wait, lynx_pid_to_str): Likewise.
2861 * config/alpha/nm-linux.h (lin_lwp_attach_lwp): Likewise.
2862 * config/arm/nm-linux.h (lin_lwp_attach_lwp): Likewise.
2863 * config/h8500/tm-h8500.h (h8500_read_pc, h8500_write_pc): Likewise.
2864 * config/i386/nm-i386sol2.h (procfs_stopped_by_watchpoint)
2865 (procfs_set_watchpoint): Likewise.
2866 * config/i386/nm-linux.h (lin_lwp_attach_lwp): Likewise.
2867 * config/i386/nm-ptx4.h (child_wait): Likewise.
2868 * config/i386/nm-symmetry.h (child_wait): Likewise.
2869 * config/i386/tm-cygwin.h (cygwin_pid_to_str): Likewise.
2870 * config/ia64/nm-linux.h (ia64_linux_stopped_by_watchpoint)
2871 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
2872 (lin_lwp_attach_lwp): Likewise.
2873 * config/mips/nm-irix4.h, config/mips/nm-irix5.h
2874 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Likewise.
2875 * config/pa/nm-hppah.h (child_pid_to_str, hppa_tid_to_str)
2876 (hppa_pid_or_tid_to_str): Likewise.
2877 * config/pa/tm-hppa.h (target_read_pc, target_write_pc): Likewise.
2878 * config/powerpc/nm-linux.h (lin_lwp_attach_lwp): Likewise.
2879 * config/sparc/nm-sun4sol2.h (procfs_stopped_by_watchpoint)
2880 (procfs_set_watchpoint): Likewise.
2881
2882 * gdbthread.h (thread_id_to_pid): Change return type which
2883 represents a combined process/thread id from ``int'' to
2884 ``ptid_t''.
2885 * gnu-nat.c (gnu_wait): Likewise.
2886 * go32-nat.c (go32_wait): Likewise.
2887 * hpux-thread.c (hpux_thread_wait): Likewise.
2888 * inferior.h (procfs_first_available): Likewise.
2889 * inftarg.c (child_wait): Likewise.
2890 * infttrace.c (ptrace_wait): Likewise.
2891 * lin-lwp.c (lin_lwp_wait): Likewise.
2892 * lin-thread.c (thread_db_wait): Likewise.
2893 * linux-thread.c (linuxthreads_wait): Likewise.
2894 * lynx-nat.c (child_wait): Likewise.
2895 * m3-nat.c (mach_really_wait): Likewise.
2896 * mac-nat.c (child_wait): Likewise.
2897 * monitor.c (monitor_wait): Likewise.
2898 * ppc-bdm.c (bdm_ppc_wait): Likewise.
2899 * procfs.c (do_attach, procfs_wait, procfs_first_available): Likewise.
2900 * remote-adapt.c (adapt_wait): Likewise.
2901 * remote-array.c (array_wait): Likewise.
2902 * remote-bug.c (bug_wait): Likewise.
2903 * remote-e7000.c (e7000_wait): Likewise.
2904 * remote-eb.c (eb_wait): Likewise.
2905 * remote-es.c (es1800_wait): Likewise.
2906 * remote-mips.c (mips_wait): Likewise.
2907 * remote-mm.c (mm_wait): Likewise.
2908 * remote-nindy.c (nindy_wait): Likewise.
2909 * remote-os9k (rombug_wait): Likewise.
2910 * remote-rdi.c (arm_rdi_wait): Likewise.
2911 * remote-rdp.c (remote_rdp_wait): Likewise.
2912 * remote-sds.c (sds_wait): Likewise.
2913 * remote-sim.c (gdbsim_wait): Likewise.
2914 * remote-st.c (st2000_wait): Likewise.
2915 * remote-udi.c (udi_wait): Likewise.
2916 * remote-vx.c (vx_wait): Likewise.
2917 * remote.c (remote_wait, remote_async_wait, remote_current_thread)
2918 (remote_cisco_wait): Likewise.
2919 * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_wait):
2920 Likewise.
2921 * symm-nat.c (child_wait): Likewise.
2922 * target.c (debug_to_wait): Likewise.
2923 * target.h (to_wait [in struct target_ops]): Likewise.
2924 * thread.c (thread_id_to_pid): Likewise.
2925 * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait):
2926 Likewise.
2927 * top.c (*target_wait_hook): Likewise.
2928 * uw-thread.c (lwp_to_thr, uw_thread_wait): Likewise.
2929 * v850ice.c (v850ice_wait): Likewise.
2930 * win32-nat.c (child_wait): Likewise.
2931 * wince.c (child_wait): Likewise.
2932 * config/nm-lynx.h (child_wait): Likewise.
2933 * config/i386/nm-ptx4.h (child_wait): Likewise.
2934 * config/i386/nm-symmetry.h (child_wait): Likewise.
2935
2936 * arch-utils.c (generic_prepare_to_proceed): Rename wait_pid
2937 to wait_ptid and change its type from ``int'' to ``ptid_t''.
2938 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Likewise,
2939 but rename saved_inferior_pid to saved_inferior_ptid.
2940 * d10v-tdep.c (d10v_read_pc, d10_write_pc): Likewise, but rename
2941 save_pid to save_ptid.
2942 * gdbthread.h (struct thread_info): Likewise, but rename pid to ptid.
2943 * hppah-nat.c (child_pid_to_exec): Likewise, but rename
2944 saved_inferior_pid to saved_inferior_ptid.
2945 * hpux-thread.c (main_ptid): Likewise, but rename from main_pid.
2946 * infrun.c (previous_inferior_pid [static global]): Likewise,
2947 but rename to previous_inferior_ptid.
2948 (resume): Likewise, but rename resume_pid to resume_ptid.
2949 (struct execution_control_state): Likewise, but rename
2950 pid to ptid, saved_inferior_pid to saved_inferior_ptid,
2951 and waiton_pid to waiton_ptid.
2952 (target_last_wait_pid): Likewise, but rename to
2953 target_last_wait_ptid.
2954 * infttrace.c (saved_real_pid): Likewise, but rename to
2955 saved_real_ptid.
2956 (child_pid_to_exec_file): Likewise, but rename saved_inferior_pid
2957 to saved_inferior_ptid.
2958 * lin-lwp.c (struct lwp_info): Likewise, but rename pid to ptid.
2959 (trap_ptid): Likewise, but renamed from trap_pid.
2960 * lin-thread.c (handle_new_thread): Likewise, but rename gdb_pid
2961 to gdb_ptid.
2962 * linux-thread.c (detach_thread): Likewise, but rename pid to ptid.
2963 (thread_db_wait): Likewise, but rename ret_pid to retptid.
2964 * procfs.c (procfs_wait): Likewise, for retval whose name
2965 doesn't change. Also, ``temp'' becomes two separate variables,
2966 one named temp_tid (an int) and the other temp_ptid.
2967 (procfs_notice_thread): Likewise (type change) for gdb_threadid
2968 whose name does not change.
2969 * regcache.c (registers_ptid): Likewise, but renamed from
2970 registers_pid.
2971 (read_register_pid, read_signed_register_pid, write_register_pid):
2972 Likewise, but rename save_pid to save_ptid.
2973 (read_pc_pid, write_pc_pid): Likewise, but rename saved_inferior_pid
2974 to saved_inferior_ptid.
2975 * remote.c (remote_newthread_step): Likewise, but rename pid to ptid.
2976 * sol-thread.c (struct ps_prochandle): Likewise.
2977 (sol_thread_resume): Likewise, for save_pid which becomes save_ptid.
2978 (sol_thread_wait): Likewise, for rtnval whose name does not
2979 change, and for save_pid which becomes save_ptid.
2980 (solaris_pid_to_str): Likewise for lwp whose name does not change.
2981 (sol_find_new_threads_callback): Likewise, for pid which becomes
2982 ptid.
2983 * target.h (target_resume, target_wait, target_post_wait)
2984 (target_post_startup_inferior, target_notice_signals)
2985 (target_thread_alive): Likewise.
2986 * thread.c (info_threads_command): Likewise, but rename
2987 current_pid to current_ptid.
2988 (struct current_thread_cleanup): Likewise, but rename field
2989 inferior_pid to inferior_ptid.
2990 * thread-db.c (find_new_threads_callback): Likewise, but rename
2991 pid to ptid.
2992 * uw-thread.c (thr_to_lwp): Likewise for lid whose name does not
2993 change.
2994 (lwp_to_tr): Likewise fo tid whose name remains unchanged.
2995 (thr_infpid, lwp_infpid, notice_thread, libthread_stub): Likewise,
2996 but rename pid to ptid.
2997 * config/alpha/nm-linux.h (ATTACH_LWP): Likewise.
2998 * config/arm/nm-linux.h (ATTACH_LWP): Likewise.
2999 * config/i386/nm-linux.h (ATTACH_LWP): Likewise.
3000 * config/ia64/nm-linux.h (ATTACH_LWP): Likewise.
3001 * config/pa/nm-hppah.h (target_tid_to_str): Likewise.
3002 * config/powerpc/nm-linux.h (ATTACH_LWP): Likewise.
3003
3004 * arch-utils.c (generic_prepare_to_proceed): Test for the
3005 "zero" ptid by using ptid_equal() to test to see if variable
3006 in question is the same as null_ptid. This replaces a direct
3007 test against zero.
3008 * cxux-nat.c (add_shared_symbol_files): Likewise.
3009 * i386aix-nat.c, i386b-nat.c (i386_float_info): Likewise.
3010 * infcmd.c (run_command): Likewise.
3011 * inflow.c (kill_command): Likewise.
3012 * infttrace.c (call_ttrace): Likewise.
3013 * lin-lwp.c (lin_lwp_prepare_to_proceed): Likewise.
3014 * lin-thread.c (thread_db_kill): Likewise.
3015 * procfs.c (procfs_kill_inferior, procfs_mourn_inferior): Likewise.
3016 * remote-es.c (es1800_kill): Likewise.
3017 * sol-thread.c (sol_thread_create_inferior): Likewise.
3018 * solib.c (locate_base): Likewise.
3019 * target.c (nosupport_runtime): Likewise.
3020 * thread-db.c (thread_db_wait): Likewise.
3021 * top.c (quit_confirm, quit_force): Likewise.
3022 * uw-thread (lwp_infpid, uw_thread_resume): Likewise.
3023
3024 * infrun.c (handle_inferior_event, stop_stepping, normal_stop):
3025 Use ptid_equal to compare value of process/thread ids instead of
3026 ``=='' and ``!='' operators.
3027 lin-lwp.c (delete_lwp, lin_lwp_prepare_to_proceed)
3028 (stop_wait_callback, lin_lwp_wait): Likewise.
3029 * procfs.c (procfs_wait): Likewise.
3030 * regcache.c (read_register_bytes, read_register_gen)
3031 (write_register_gen, read_register, read_register_pid)
3032 (read_signed_register, read_signed_register_pid, write_register)
3033 (write_register_pid, supply_register): Likewise.
3034 * remote-vx.c (vx_resume): Likewise.
3035 * sol-thread.c (sol_thread_wait): Likewise.
3036 * symm-nat.c (kill_inferior): Likewise.
3037 * thread.c (delete_thread, find_thread_pid, pid_to_thread_id)
3038 (in_thread_list, info_threads_command, switch_to_thread)
3039 (restore_current_thread): Likewise.
3040 * uw-thread (libtread_stub): Likewise.
3041
3042 * arm-linux-nat.c (GET_THREAD_ID): Change PID to PTID.
3043
3044 * corelow.c (add_to_thread_list): Convert argument in add_thread()
3045 call to a ptid_t.
3046 * gnu-nat.c (inf_validate_procs): Likewise.
3047 * linux-thread.c (stop_thread, update_stop_threads): Likewise.
3048 * remote.c (record_currthread, remote_threads_info): Likewise.
3049 * win32-nat.c (child_add_thread): Likewise.
3050
3051 * hpux-thread.c (save_inferior_pid, restore_inferior_pid): Rename,
3052 respectively, to save_inferior_ptid() and restore_inferior_ptid().
3053 Adjust implementations to operate on ``ptid_t'' instead of ``int''.
3054 * lin-lwp.c (save_inferior_pid, restore_inferior_pid): Likewise.
3055 * lin-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
3056 * linux-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
3057 * proc-service.c (save_inferior_pid, restore_inferior_pid): Likewise.
3058 * sol-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
3059 * thread-db.c (save_inferior_pid, restore_inferior_pid): Likewise.
3060
3061 * infrun.c (RESUME_ALL): New macro representing the -1 ptid
3062 to be passed to target_resume() when all threads should resume.
3063 (resume): Set resume_ptid to RESUME_ALL rather than -1.
3064 (handle_inferior_event): Invoke target_resume() with RESUME_ALL
3065 instead of -1.
3066 * irix5-nat.c (solib_create_inferior_hook): Convert -1 to
3067 a ptid_t in target_resume() call.
3068 * osfsolib.c (solib_create_inferior_hook): Likewise.
3069 * solib-svr4.c (solib_create_inferior_hook): Likewise.
3070
3071 * lin-lwp.c (PIDGET, PIDGET0): Rename original PIDGET macro to
3072 PIDGET0. Define new PIDGET macro which uses PIDGET0, the only
3073 difference being that the 0xffff pattern will be interpreted
3074 as -1.
3075 * lin-thread.c (PIDGET, PIDGET0): Likewise.
3076 * thread-db.c (PIDGET, PIDGET0): Likewise.
3077 * config/nm-linux.h (PIDGET, PIDGET0): Likewise.
3078 * config/i386/tm-i386sol2.h (PIDGET, PIDGET0): Likewise.
3079 * config/i386/tm-i386v42mp.h (PIDGET, PIDGET0): Likewise.
3080 * config/sparc/tm-sun4sol2.h (PIDGET, PIDGET0): Likewise.
3081
3082 * m3-nat.c (init_m3_ops): Fix typo; initialize to_wait field to
3083 mach_really_wait rather than mach_really__wait.
3084 * lin-thread.c (check_for_thread_event): Fix warning; make function
3085 actually return a value.
3086
3087 * gdbarch.sh (TARGET_READ_PC, TARGET_WRITE_PC): Change type of
3088 ``pid'' arguments from ``int'' to ``ptid_t''. Also renamed
3089 pid to ptid.
3090 * gdbarch.h, gdbarch.c: Regenerated.
3091
3092 2001-05-03 Jonathan Larmour <jlarmour@redhat.com>
3093
3094 * rdi-share/devsw.c: Include <time.h> for struct tm
3095
3096 2001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
3097
3098 * config/djgpp/fnchange.lst: Add mappings for the new
3099 opcodes/openrisc-* files.
3100
3101 2001-05-01 Michael Snyder <msnyder@redhat.com>
3102
3103 * lin-lwp.c: Change printf to fprintf_unfiltered.
3104 * Makefile.in: Add rules for thread-db.o, lin-lwp.o, proc-service.o.
3105
3106 2001-05-01 Nicholas Duffek <nsd@redhat.com>
3107
3108 * config/rs6000/tm-rs6000.h (IN_SOLIB_RETURN_TRAMPOLINE): Define.
3109 (rs6000_in_solib_return_trampoline): Declare.
3110 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): New
3111 function.
3112 (rs6000_skip_trampoline_code): Skip bigtoc fixup code.
3113 * xcoffread.c (read_xcoff_symtab): Perform the ISFCN function
3114 check after the CSECT check rather than before it. Allocate
3115 separate symtabs for CSECTs whose names begin with '@'.
3116 (scan_xcoff_symtab): Don't ignore symbols beginning with '@'.
3117 Activate the misc_func_recorded mechanism for whose names begin
3118 with '@'.
3119
3120 2001-04-30 J.T. Conklin <jtc@redback.com>
3121
3122 * ppcnbsd-nat.c (fetch_inferior_registers)
3123 (store_inferior_registers, fetch_core_registers): Changed to use
3124 fpreg[] instead of r_regs[] to access floating point registers.
3125
3126 2001-04-30 Elena Zannoni <ezannoni@redhat.com>
3127
3128 * sh-tdep.c: Get rid of the function prototypes.
3129 (sh_sh4_build_float_register_type): Move earlier in file.
3130 (fv_reg_base_num): Ditto.
3131 (dr_reg_base_num): Ditto.
3132
3133 2001-04-30 Michael Snyder <msnyder@redhat.com>
3134
3135 * thread-db.c: Revert 2001-04-26 change for debugging output.
3136 * lin-lwp.c: Ditto.
3137 * lin-lwp.c: Add set/show debug lin-lwp command. Use this
3138 command to turn extra debugging output on / off.
3139
3140 2001-04-30 Eli Zaretskii <eliz@is.elta.co.il>
3141
3142 * buildsym.c (start_subfile): Use FILENAME_CMP instead of STREQ.
3143 (top-level): #include filenames.h.
3144
3145 * dwarf2read.c (dwarf2_start_subfile): Use IS_ABSOLUTE_PATH and
3146 FILENAME_CMP, to DTRT on non-Posix platforms.
3147 (top-level): #include filenames.h.
3148
3149
3150 2001-04-27 Andrew Cagney <ac131313@redhat.com>
3151
3152 * gdbtypes.c (check_stub_method): Always initialize ``p''.
3153
3154 2001-04-27 Andrew Cagney <ac131313@redhat.com>
3155
3156 * configure.host: Delete romp host.
3157 * TODO: Update.
3158
3159 2001-04-27 Andrew Cagney <ac131313@redhat.com>
3160
3161 * TODO: Updates to 5.1. No more targets to obsolete.
3162
3163 2001-04-27 Don Howard <dhoward@redhat.com>
3164
3165 (Changes from Kevin Buettner, with minor update by Don Howard.)
3166
3167 * i387-nat.c (i387_supply_fxsave, i387_fill_fxsave, i387_tag): Fix
3168 typos in which hexadecimal constants were really intended to be
3169 binary constants.
3170 (i387_tag): Swap logic regarding zero vs non-zero exponents.
3171 * MAINTAINERS (Misc): Added myself to the write-after-approval
3172 list.
3173
3174 2001-04-26 Jim Blandy <jimb@redhat.com>
3175
3176 (Changes from Daniel Berlin, with revisions by Jim Blandy.)
3177
3178 Abstract out operations specific to particular C++ ABI's, and
3179 invoke them through a function table. This removes the C++ ABI
3180 dependencies scattered throughout the code, and allows us to
3181 cleanly add support for new C++ ABI's.
3182 * cp-abi.h, cp-abi.h, gnu-v2-abi.c, hpacc-abi.c: New files.
3183 * c-typeprint.c, c-valprint.c, dbxread.c, eval.c, gdbtypes.c,
3184 jv-typeprint.c, linespec.c, symtab.c, typeprint.c, valops.c:
3185 #include "cp-abi.h". These files all use functions now declared
3186 there.
3187 * symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P):
3188 Deleted. These services are now provided by functions declared in
3189 cp-abi.h.
3190 * value.h (value_rtti_type, value_virtual_fn_field): Same.
3191 * values.c (value_virtual_fn_field): Same, for this definition.
3192 * valops.c (value_rtti_type): Same.
3193 * c-typeprint.c (c_type_print_base): Use the functions from
3194 "cp-abi.h", instead of the old macros, or hard-coded ABI-specific
3195 tests.
3196 * dbxread.c (record_minimal_symbol): Same.
3197 * gdbtypes.c (get_destructor_fn_field, virtual_base_index,
3198 virtual_base_index_skip_primaries): Same.
3199 * jv-typeprint.c (java_type_print_base): Same.
3200 * linespec.c (find_methods, decode_line_1): Same.
3201 * symtab.c (gdb_mangle_name): Same.
3202 * Makefile.in (SFILES): Add the new .c files mentioned above.
3203 (cp_abi_h): New variable.
3204 (COMMON_OBS): Add gnu-v2-abi.o, hpacc-abi.o, and cp-abi.o.
3205 (cp-abi.o, gnu-v2-abi.o, hpacc-abi.o): New targets.
3206 (c-typeprint.o, c-valprint.o, dbxread.o, eval.o, gdbtypes.o,
3207 jv-typeprint.o, symtab.o, linespec.o, typeprint.o, valops.o): Add
3208 dependency on $(cp_abi_h).
3209
3210 2001-04-26 Michael Snyder <msnyder@redhat.com>
3211
3212 * thread-db.c (_initialize_thread_db): Add set/show command
3213 "debug-linux-threads" for debugging output.
3214 * lin-lwp.c (various): Use global "debug_linux_threads to
3215 turn on extra debugging output.
3216 * lin-lwp.c: Minor cleanups in comments.
3217 * target.c (normal_pid_to_str): Get rid of an ancient hack.
3218 * remote.c (remote_pid_to_str): New function for remote target.
3219
3220 2001-04-24 Jim Blandy <jimb@redhat.com>
3221
3222 * c-typeprint.c (c_type_print_cv_qualifier): Don't print `const'
3223 qualifier on C++ references; all references are innately const.
3224
3225 2001-04-20 Mark Kettenis <kettenis@gnu.org>
3226
3227 * event-top.h: Fix formatting.
3228
3229 2001-04-17 Andrew Cagney <ac131313@redhat.com>
3230
3231 * source.c (openp): Obsolete #ifdef MPW code.
3232 (open_source_file): Ditto.
3233 * event-top.c (display_gdb_prompt): Ditto.
3234 * utils.c (query): Ditto.
3235 (init_page_info): Ditto.
3236 (init_page_info): Delete #ifndef MPW.
3237 * top.c (gdb_readline): Ditto.
3238 * mac-xdep.c: Obsolete.
3239 * mac-gdb.r: Obsolete.
3240 * config/powerpc/xm-mpw.h: Obsolete.
3241 * config/xm-mpw.h: Obsolete.
3242 * mpw-make.sed: Obsolete.
3243 * mpw-config.in: Obsolete.
3244 * TODO: Update
3245 * NEWS: Update
3246
3247 2001-04-19 Mark Kettenis <kettenis@gnu.org>
3248
3249 * i386-tdep.c (i386_frameless_function_invocation): New function.
3250 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION): Redefine
3251 in terms of i386_frameless_function_invocation. Adjust comment.
3252 (i386_frameless_function_invocation): New prototype.
3253
3254 2001-04-18 Martin M. Hunt <hunt@redhat.com>
3255
3256 * top.c (gdb_init): Don't call cli_out_new() to
3257 create global uiout if init_ui_hook is set. uiout will
3258 have to be initialized there.
3259
3260 2001-04-18 Andrew Cagney <ac131313@redhat.com>
3261
3262 * arch-utils.c: Include "regcache.h".
3263
3264 2001-04-18 Mark Kettenis <kettenis@gnu.org>
3265
3266 * i386-tdep.c (i386_saved_pc_after_call): New function.
3267 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Redefine in terms
3268 of i386_saved_pc_after_call.
3269 (i386_saved_pc_after_call): New prototype.
3270
3271 2001-04-17 Michael Snyder <msnyder@redhat.com>
3272
3273 * i386-nat.c: Fix typo in comment.
3274 * solib.c (no_shared_libraries): New function. Discard all symbols
3275 from shared libraries.
3276 (_initialize_solib): Add command "nosharedlibrary" as complement
3277 to the command "sharedlibrary". Unloads symbols for all solibs.
3278
3279 2001-04-16 Andrew Cagney <ac131313@redhat.com>
3280
3281 * configure.host (m68030-sony-*, m68*-isi-*, m68*-sony-*):
3282 * configure.tgt (m68*-rom68k-*, m68*-*bug-*, m68*-monitor-*)
3283 (m68*-est-*, m68*-sony-*, m68*-isi-*):
3284 * Makefile.in (xm-news1000.h, tm-news.h, xm-news.h): Obsolete..
3285 * config/m68k/xm-news.h: Obsolete.
3286 * config/m68k/tm-news.h:
3287 * config/m68k/xm-news1000.h: Obsolete.
3288 * config/m68k/news.mh: Obsolete.
3289 * config/m68k/news.mt: Obsolete.
3290 * config/m68k/nm-news.h: Obsolete.
3291 * config/m68k/news1000.mh: Obsolete.
3292 * news-xdep.c: Obsolete.
3293 * Makefile.in (isi-xdep.o): Obsolete.
3294 (ALLDEPFILES): Delete isi-xdep.c.
3295 (tm-isi.h): Obsolete.
3296 * m68k-tdep.c (altos_skip_prologue): Update comments.
3297 (isi_skip_prologue): Obsolete.
3298 * isi-xdep.c: Obsolete.
3299 * config/m68k/xm-isi.h: Obsolete.
3300 * config/m68k/isi.mh: Obsolete.
3301 * config/m68k/tm-isi.h: Obsolete.
3302 * config/m68k/isi.mt: Obsolete.
3303
3304 * TODO: Update.
3305 * NEWS: Update.
3306
3307 2001-04-17 Michael Snyder <msnyder@redhat.com>
3308
3309 * remote.c (remote_open_1): On opening the remote target, activate
3310 the solib_create_inferior_hook, so that it can detect when the
3311 target loads shared libraries.
3312 (remote_async_open_1): Ditto.
3313
3314 2001-04-17 Michael Snyder <msnyder@redhat.com>
3315
3316 * breakpoint.c (print_one_breakpoint): Handle 64-bit addresses.
3317 * tracepoint.c (tracepoints_info): Handle 64-bit addresses.
3318 * testsuite/gdb.trace/deltrace.exp: Allow for 64-bit addresses.
3319 * testsuite/gdb.trace/infotrace.exp: Ditto.
3320 * testsuite/gdb.trace/passcount.exp: Ditto.
3321 * testsuite/gdb.trace/while-stepping.exp: Ditto.
3322
3323 2001-04-17 Michael Snyder <msnyder@redhat.com>
3324
3325 * thread-db.c (check_thread_signals): When looping over all
3326 signals, ignore signal zero.
3327 (disable_thread_signals): Ditto.
3328
3329 2001-04-17 Eirik Fuller <eirik@netapp.com>
3330
3331 * thread.c (do_captured_thread_select): Allow the argument to the
3332 thread command to be an expression rather than a literal integer.
3333
3334 2001-04-17 Mark Kettenis <kettenis@gnu.org>
3335
3336 * i386-linux-tdep.c (i386_linux_saved_pc_after_call): Use
3337 read_memory_unsigned_integer instead of read_memory_integer.
3338
3339 2001-04-16 Kevin Buettner <kevinb@redhat.com>
3340
3341 * solib-aix5.c (map_index_vs_section_name_okay): New function.
3342 (aix5_relocate_main_executable): Don't use file offsets for
3343 determining corresponding sections and map file entries. Call
3344 map_index_vs_section_name_okay() to do this instead.
3345
3346 2001-04-16 Kevin Buettner <kevinb@redhat.com>
3347
3348 * procfs.c (open_with_retry): New function.
3349 (open_procinfo_files, load_syscalls, proc_iterate_over_mappings)
3350 (proc_get_LDT_entry): Call open_with_retry() instead of open().
3351
3352 2001-04-16 Kevin Buettner <kevinb@redhat.com>
3353
3354 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Adjust
3355 comparison against TRAP_HWBKPT constant yet again to account
3356 for the various values used by different kernel versions.
3357
3358 2001-04-16 Daniel Berlin <dan@cgsoftware.com>
3359
3360 * demangle.c (_initialize_demangler): Use xcalloc on the
3361 demangling_style_names, and make it a null terminated array of
3362 names, to avoid a crash.
3363
3364 2001-04-16 Mark Kettenis <kettenis@gnu.org>
3365
3366 * i386-tdep.c (i386_frame_chain): New function.
3367 * config/i386/tm-i386.h (FRAME_CHAIN): Redefine in terms of
3368 i386_frame_chain.
3369 (i386_frame_chain): New prototype.
3370
3371 2001-04-14 J.T. Conklin <jtc@redback.com>
3372
3373 * target.h (target_ops): Removed to_core_file_to_sym_file vector
3374 function.
3375 * corelow.c (core_ops): Updated for above change.
3376 * gnu-nat.c (core_ops): Likewise.
3377 * inftarg.c (child_ops): Likewise.
3378 * monitor.c (monitor_ops): Likewise.
3379 * ppc-bdm.c (bdm_ppc_ops): Likewise.
3380 * remote-adapt.c (adapt_ops): Likewise.
3381 * remote-bug.c (bug_ops): Likewise.
3382 * remote-e7000.c (e7000_ops): Likewise.
3383 * remote-eb.c (eb_ops): Likewise.
3384 * remote-es.c (es1800_ops, es1800_child_ops): Likewise.
3385 * remote-mm.c (mm_ops): Likewise.
3386 * remote-nindy.c (nindy_ops): Likewise.
3387 * remote-nrom.c (nrom_ops): Likewise.
3388 * remote-os9k.c (rombug_ops): Likewise.
3389 * remote-rdp.c (remote_rdp_ops): Likewise.
3390 * remote-sim.c (gdbsim_ops): Likewise.
3391 * remote-st.c (st2000_ops): Likewise.
3392 * v850ice.c (v850ice_ops): Likewise.
3393 * target.c (cleanup_target): Likewise
3394 (update_current_target): Likewise.
3395 (setup_target_debug): Likewise
3396 (debug_to_core_file_to_sym_file): Removed.
3397
3398 * corefile.c (core_file_command) [HPUXHPPA]: Removed code that
3399 sets symbol file from information obtained from the core file.
3400 * corelow.c (core_file_to_sym_file): Removed.
3401
3402 2001-04-13 Fernando Nasser <fnasser@redhat.com>
3403
3404 From Adam Mirowski <Adam.Mirowski@Sun.COM>
3405 Fixed Insight on Solaris. It was not possible to debug a process
3406 because of EINTR "errors".
3407 * procfs.c: (procfs_wait): if proc_wait_for_stop() fails
3408 with EINTR, retry the call.
3409
3410 2001-04-12 Kevin Buettner <kevinb@redhat.com>
3411
3412 * solib-aix5.c (enum maptype): Delete.
3413 (struct lm_info): Add new member ``nmappings''. Make ``mapping''
3414 member a pointer instead of a statically sized array.
3415 (build_so_list_from_mapfile): Dynamically allocate ``mapping''
3416 array.
3417 (aix5_relocate_main_executable, aix5_relocate_section_addresses,
3418 aix5_find_global_pointer): Search for correct mapping to use
3419 based on file offset instead of knowledge of whether the section
3420 is read-only or read/write.
3421 (aix5_find_gate_addresses): Use the first mapping instead of
3422 the (now defunct) MT_READONLY mapping.
3423
3424 2001-04-12 Nicholas Duffek <nsd@redhat.com>
3425
3426 * xcoffread.c (scan_xcoff_symtab): Ignore symbols beginning with
3427 "@".
3428
3429 2001-04-12 Kevin Buettner <kevinb@redhat.com>
3430
3431 * config/i386/fbsd.mh (NATDEPFILES): Add i386-nat.o.
3432
3433 2001-04-09 Andrew Cagney <ac131313@redhat.com>
3434
3435 Obsolete i[3456]86-*-sunos* (aka Sun386) host and target.
3436 * config/i386/sun386.mh: Obsolete.
3437 * config/i386/sun386.mt: Obsolete.
3438 * config/i386/xm-sun386.h: Obsolete.
3439 * config/i386/tm-sun386.h: Obsolete.
3440 * config/i386/nm-sun386.h: Obsolete.
3441 * Makefile.in (ALLDEPFILES): Delete sun386-nat.c.
3442 (sun386-nat.o): Target is obsolete.
3443 * sun386-nat.c: Obsolete.
3444 * configure.tgt (i[3456]86-*-sunos*): Obsolete.
3445 * configure.host (i[3456]86-*-sunos*): Obsolete.
3446 * NEWS: Update.
3447 * TODO: Update.
3448
3449 2001-04-10 J.T. Conklin <jtc@redback.com>
3450
3451 * maint.c: Fix typo in comment.
3452
3453 2001-04-09 Keith Seitz <keiths@cygnus.com>
3454
3455 * MAINTAINERS: Swap with Syd Polk as a gdbtk maintainer.
3456
3457 2001-04-08 Kevin Buettner <kevinb@redhat.com>
3458
3459 * fork-child.c (fork_inferior, clone_and_follow_inferior):
3460 Document fact that apparent call to vfork() might actually be
3461 a call to fork() instead.
3462 * ser-pipe.c (pipe_open): Likewise.
3463
3464 2001-04-08 Kevin Buettner <kevinb@redhat.com>
3465
3466 * printcmd.c (print_frame_args): Use a cleanup to invoke
3467 ui_out_list_end() so that the list count nesting flag will
3468 be decremented properly when an error occurs.
3469 * stack.c (print_frame): Likewise.
3470
3471 2001-04-06 J.T. Conklin <jtc@redback.com>
3472
3473 * dcache.c (dcache_write_line): Fixed bugs where cache line was
3474 not written to target correctly.
3475
3476 * gdbserver/low-hppabsd.c (read_inferior_memory): Add explicit
3477 void return value;
3478 * gdbserver/low-nbsd.c: Likewise.
3479 * gdbserver/low-sparc.c: Likewise.
3480 * gdbserver/low-sun3.c: Likewise.
3481
3482 2001-04-06 Geoffrey Keating <geoffk@redhat.com>
3483
3484 * config/rs6000/nm-rs6000.h (PTRACE_ATTACH): Don't define.
3485 (PTRACE_DETACH): Don't define.
3486
3487 2001-04-06 David Smith <dsmith@redhat.com>
3488
3489 * arch-utils.c (default_prepare_to_proceed)
3490 (generic_prepare_to_proceed): Added new functions.
3491 * arch-utils.h: New function declarations for
3492 default_prepare_to_proceed() and generic_prepare_to_proceed().
3493 * gdbarch.sh: Added PREPARE_TO_PROCEED.
3494 * gdbarch.c: Regenerated.
3495 * gdbarch.h: Regenerated.
3496 * inferior.h: Added get_last_target_status() declaration.
3497 * infrun.c (get_last_target_status): Added new function.
3498 (handle_inferior_event): Saves last pid and waitstatus, which will
3499 get returned by get_last_target_status().
3500
3501 * hppa-tdep.c (prepare_to_proceed): Added comment stating that
3502 prepare_to_proceed() is potentially redundant since
3503 default_prepare_to_proceed() has been added.
3504 * linux-thread.c (prepare_to_proceed): Ditto.
3505 * lin-lwp.c (prepare_to_proceed): Ditto.
3506 * m3-nat.c (prepare_to_proceed): Ditto.
3507
3508 2001-04-05 Andrew Cagney <ac131313@redhat.com>
3509
3510 Obsolete powerpcle-*-cygwin* and powerpcle-*-solaris* platforms
3511 and powerpc-*-netware* target.
3512 * configure.host (powerpcle-*-cygwin*, powerpcle-*-solaris*):
3513 Obsolete.
3514 * configure.tgt (powerpc-*-netware*, powerpcle-*-cygwin*)
3515 (powerpcle-*-solaris*): Obsolete.
3516 * config/powerpc/tm-cygwin.h: Obsolete.
3517 * config/powerpc/cygwin.mt: Obsolete.
3518 * config/powerpc/xm-cygwin.h: Obsolete.
3519 * config/powerpc/cygwin.mh: Obsolete.
3520 * config/powerpc/nm-solaris.h: Obsolete.
3521 * config/powerpc/xm-solaris.h: Obsolete.
3522 * config/powerpc/tm-solaris.h: Obsolete.
3523 * config/powerpc/solaris.mt: Obsolete.
3524 * config/powerpc/tm-ppc-nw.h: Obsolete.
3525 * config/powerpc/ppc-nw.mt: Obsolete.
3526 * TODO: Update.
3527 * NEWS: Update.
3528
3529 2001-04-06 Fernando Nasser <fnasser@redhat.com>
3530
3531 * buildsym.c (record_line): Turn off unused addr bits.
3532
3533 2001-04-06 Fernando Nasser <fnasser@redhat.com>
3534
3535 From David Deephanphongs <deephan@telocity.com>
3536 * inferior.h: Fix declarations of get_inferior_args and
3537 set_inferior_args, which were missing the trailing 's'.
3538
3539 2001-04-05 Jeff Holcomb <jeffh@redhat.com>
3540
3541 * monitor.c (monitor_supply_register): Only report an error if we
3542 don't get a valid value.
3543
3544 2001-04-05 Eli Zaretskii <eliz@is.elta.co.il>
3545
3546 * README: Don't mention gdba.el.
3547
3548 2001-04-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3549
3550 From Jimmy Guo <guo@cup.hp.com>
3551 * top.c (init_main): set prompt if annotation_level>1,
3552 this is necessary when annotation_level is set to 2 via
3553 --annotate=2 command line option.
3554
3555 2001-04-04 Andrew Cagney <ac131313@redhat.com>
3556
3557 Obsolete a29k-*-* host and a29k-*-sym1* and a29k-*-kern* targets.
3558 * configure.tgt (a29k-*-sym1*, a29k-*-kern*): Obsolete.
3559 * configure.host (a29k-*-*): Obsolete.
3560 * Makefile.in (ALLDEPFILES): Remove ultra3-nat.c and
3561 ultra3-xdep.c.
3562 (ultra3-nat.o, ultra3-xdep.o): Obsolete.
3563 * config/a29k/tm-ultra3.h: Obsolete.
3564 * config/a29k/ultra3.mt: Obsolete.
3565 * config/a29k/ultra3.mh: Obsolete.
3566 * config/a29k/nm-ultra3.h: Obsolete.
3567 * config/a29k/xm-ultra3.h: Obsolete.
3568 * ultra3-xdep.c: Obsolete.
3569 * ultra3-nat.c: Obsolete.
3570 * config/a29k/a29k-kern.mt: Obsolete.
3571 * NEWS: Update.
3572 * TODO: Update.
3573
3574 Wed Apr 4 21:48:42 2001 Christopher Faylor <cgf@cygnus.com>
3575
3576 * main.c: Remove windows.h use.
3577 (gdbtk_test): Use PATH_MAX for home var calculation.
3578 * remote-e7000.c (e7000_parse_device): Accomodate Cygwin as well as
3579 Win32 in colon test.
3580 * ser-tcp.c: Use modern __CYGWIN__ conditional.
3581 * source.c (mod_path): Add __CYGWIN__ conditional to WIN32 test.
3582 (openp): Ditto.
3583 * symfile.c (symfile_bfd_open): Ditto.
3584
3585 2001-04-04 Martin M. Hunt <hunt@redhat.com>
3586
3587 * main.c (captured_main): For GDBtk, don't use tui_fileopen().
3588 Handle all stream setup in gdbtk_init
3589
3590 2001-04-04 Mark Kettenis <kettenis@gnu.org>
3591
3592 * i386-tdep.c (i386_extract_return_value): Don't return the return
3593 value of a void function.
3594 (i386_store_return_value): Likewise.
3595
3596 2001-04-03 Andrew Cagney <ac131313@redhat.com>
3597
3598 Obsolete w65-*-* target.
3599 * configure.tgt (w65-*-*): Obsolete.
3600 * config/w65/w65.mt: Obsolete.
3601 * config/w65/tm-w65.h: Obsolete.
3602 * w65-tdep.c: Obsolete.
3603 * NEWS: Update. Fix TiC80 description.
3604 * TODO: Update.
3605
3606 2001-04-03 Andrew Cagney <ac131313@redhat.com>
3607
3608 Obsolete tic80-*-* target.
3609 * configure.tgt (tic80-*-*): Obsolete.
3610 * config/tic80/tic80.mt: Obsolete.
3611 * config/tic80/tm-tic80.h: Obsolete.
3612 * tic80-tdep.c: Obsolete.
3613 * TODO: Update
3614 * NEWS: Update.
3615
3616 2001-04-02 J.T. Conklin <jtc@redback.com>
3617
3618 * remote-mips.c (S_IROTH): Moved definition from here.
3619 * gdb_stat.h (S_IROTH): to here.
3620
3621 * remote.c (remote_protocol_e, remote_protocol_E): Define.
3622 (set_remote_protocol_e_packet_cmd)
3623 (set_remote_protocol_E_packet_cmd)
3624 (show_remote_protocol_e_packet_command)
3625 (show_remote_protocol_E_packet_command): New functions.
3626 (init_all_packet_configs): Initialize remote_protocol_e and
3627 remote_protocol_E.
3628 (remote_resume, remote_async_resume): Support e/E command
3629 packets.
3630 (show_remote_cmd): Show state of remote_protocol_e and
3631 remote_protocol_E.
3632 (_initialize_remote): Add "set remote step-over-range-packet"
3633 and "set remote step-over-range-w-signal-packet" to CLI.
3634
3635 2001-04-01 Andrew Cagney <ac131313@redhat.com>
3636
3637 Obsolete ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv* and
3638 ns32k-utek-*.
3639 * Makefile.in (ALLDEPFILES): Delete umax-xdep.c and ns32km3-nat.c.
3640 (umax-xdep.o, ns32km3-nat.o): Obsolete.
3641 * configure.tgt (ns32k-*-mach3*, ns32k-utek-sysv*, ns32k-utek-*):
3642 Obsolete.
3643 * configure.host (ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv*):
3644 Obsolete.
3645 * config/ns32k/merlin.mh: Obsolete.
3646 * config/ns32k/merlin.mt: Obsolete.
3647 * config/ns32k/xm-merlin.h: Obsolete.
3648 * config/ns32k/tm-merlin.h: Obsolete.
3649 * config/ns32k/nm-umax.h: Obsolete.
3650 * config/ns32k/umax.mh: Obsolete.
3651 * config/ns32k/umax.mt: Obsolete.
3652 * config/ns32k/xm-umax.h: Obsolete.
3653 * umax-xdep.c: Obsolete.
3654 * config/ns32k/ns32km3.mh: Obsolete.
3655 * config/ns32k/ns32km3.mt: Obsolete.
3656 * config/ns32k/tm-ns32km3.h: Obsolete.
3657 * config/ns32k/xm-ns32km3.h: Obsolete.
3658 * ns32km3-nat.c: Obsolete.
3659 * ns32k-tdep.c (merlin_skip_prologue): Obsolete.
3660 (merlin_frame_num_args): Ditto.
3661 * NEWS: Update.
3662 * TODO: Update.
3663
3664 2001-04-02 Eli Zaretskii <eliz@is.elta.co.il>
3665
3666 * config/djgpp/fnchange.lst: Tweak due to
3667 expect/example/chesslib.c.
3668
3669 2001-04-02 Kevin Buettner <kevinb@redhat.com>
3670
3671 * m88k-tdep.c (examine_prologue): Change type of ``insn'' from
3672 unsigned int to unsigned long. Also, fix format string.
3673 (pop_frame): Fix PC_IN_CALL_DUMMY() call so that it doesn't
3674 use an undeclared variable. Also, delete declaration and
3675 initialization of ``fp'' because it is otherwise unused.
3676 * remote-bug.c (sleep): Delete declaration.
3677 (bug_store_register, bug_write_memory, bug_read_memory)
3678 (bug_insert_breakpoint, bug_remove_breakpoint): Fix sprintf()
3679 format statements and cast certain sprintf() arguments to
3680 eliminate warnings.
3681 (bug_load): Likewise for call to printf_filtered().
3682 * config/m88k/tm-m88k.h (FIX_CALL_DUMMY): Eliminate
3683 assignment to ``pc''. The necessary assignment is done in
3684 hand_function_call() after the invocation of FIX_CALL_DUMMY().
3685
3686 2001-03-20 Daniel Berlin <dberlin@redhat.com>
3687
3688 * symtab.c (completion_list_add_name): Remove duplicate string checks,
3689 readline already does this, and it's much faster at it, too.
3690
3691 2001-04-01 Eli Zaretskii <eliz@is.elta.co.il>
3692
3693 * go32-nat.c: Minor tweaks, to pacify the ari script.
3694
3695 2001-04-01 Mark Kettenis <kettenis@gnu.org>
3696
3697 * i386-tdep.c (i386_extract_struct_value_address): New function.
3698 * config/i386/tm-i386.h (EXTRACT_STRUCT_VALUE_ADDRESS): Redefine
3699 in terms of i386_extract_struct_value_address.
3700 (i386_extract_struct_value_address): New prototype.
3701
3702 * i386-linux-nat.c (i386_linux_dr_get): Change type of return
3703 value to `unsigned long'. Change type of `value' to `unsigned
3704 long'.
3705 (i386_linux_dr_set): Change type of second argument to `unsigned
3706 long'.
3707 (i386_linux_dr_set_control): Change type of first argument to
3708 `unsigned long'.
3709 (i386_linux_dr_get_status): Change type of return value to
3710 unsigned long.
3711 * config/i386/nm-linux.h (i386_linux_dr_set_control,
3712 i386_linux_dr_get_status): Adjust prototypes accordingly.
3713
3714 2001-03-31 Kevin Buettner <kevinb@redhat.com>
3715
3716 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Change
3717 TRAP_HWBKPT constant to match that in the kernel headers for
3718 Linux/IA-64.
3719
3720 2001-03-31 Mark Kettenis <kettenis@gnu.org>
3721
3722 * i386bsd-nat.c: Include "gdb_assert.h".
3723 [HAVE_PT_GETDBREGS] (DBREG_DRX): Define if not
3724 already defined.
3725 [HAVE_PT_GETDBREGS] (i386bsd_dr_set, i386bsd_dr_set_control,
3726 i386bsd_dr_set_addr, i386bsd_dr_reset_addr,
3727 i386bsd_dr_get_status): New functions.
3728 * config/i386/nm-fbsd.h [HAVE_PT_GETDBREGS]
3729 (I386_USE_GENERIC_WATCHPOINTS): Define.
3730 Include "i386/nm-i386.h".
3731 (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
3732 I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
3733 (i386bsd_dr_set_control, i386bsd_dr_set_addr,
3734 i386bsd_dr_reset_addr, i386bsd_dr_get_status): New prototypes.
3735 * acconfig.h (HAVE_PT_GETDBREGS): New configure macro.
3736 * configure.in: Cleanup a few comments. Check for PT_GETDBREGS
3737 ptrace request.
3738 * config.in, configure: Regenerate.
3739
3740 * i386-nat.c (i386_insert_aligned_watchpoint): Set address
3741 register before enabling it by setting the control register.
3742 (i386_remove_aligned_watchpoint): Reset address register after
3743 disabling it by setting the control register.
3744
3745 * i386-tdep.c (i386_extract_return_value): If the type of the
3746 return value is TYPE_STRUCT and the number of fields is one, call
3747 ourselves with TYPE set tp the type of the first field.
3748 (i386_store_return_value): Likewise.
3749 This fixes a problem with returning structs consisting of a single
3750 `float' or `double' on *BSD.
3751
3752 2001-03-30 Mark Kettenis <kettenis@gnu.org>
3753
3754 * lin-lwp.c (lin_lwp_resume): Don't mark LWP as not stopped until
3755 we're absolutely sure we're going to resume it.
3756
3757 * thread-db.c (check_event): Don't report an error if we encounter
3758 a thread creation event for a thread that's already in the thread
3759 list, since that may legitemately happen. Instead only call
3760 attach_thread if it's not already in the thread list.
3761
3762 2001-03-28 Andrew Cagney <ac131313@redhat.com>
3763
3764 * config/pa/xm-hppah.h (malloc): Really delete declaration
3765 (MALLOC_INCOMPATIBLE): Really delete macro.
3766 * cli/cli-cmds.c (apropos_command): Use xcalloc.
3767
3768 2001-03-28 Andrew Cagney <ac131313@redhat.com>
3769
3770 * configure.in (build_warnings): Add -Wuninitialized.
3771 * configure: Regenerate.
3772
3773 * v850-tdep.c (v850_scan_prologue): Initialize ``insn2''.
3774 * sparc-tdep.c (sparc64_push_arguments): Add default case to
3775 switch.
3776 * sh-tdep.c (sh_do_fp_register): Replace ``?:'' printf format
3777 expression with if statement.
3778 * mn10200-tdep.c (mn10200_analyze_prologue): Initialize
3779 ``stack_size''.
3780 * mips-tdep.c (show_mipsfpu_command): Add default case to switch.
3781 (mips_dump_tdep): Fix setting of ef_mips_arch.
3782 * mcore-tdep.c (mcore_analyze_prologue): Initialize ``fp_regnum''.
3783 * dsrec.c (make_srec): Always initialize ``binbuf''.
3784 * monitor.c (monitor_read_memory_single): Do not pass an
3785 uninitialized buffer to monitor_error. Make ``i'' more local.
3786
3787 2001-03-28 Andrew Cagney <ac131313@redhat.com>
3788
3789 * MAINTAINERS: Change ns32k target to ,-Werror.
3790
3791 * ns32k-tdep.c: Include "gdbcore.h"
3792 (flip_bytes): Change first argument to void*. Add forward
3793 declaration.
3794 (sign_extend): Add declaration.
3795 (merlin_frame_num_args): Add final else clause to if-else chain.
3796 (umax_frame_num_args): Ditto.
3797 * config/ns32k/tm-umax.h (ns32k_localcount): Declare.
3798 (flip_bytes): Ditto.
3799
3800 2001-03-28 Mark Kettenis <kettenis@gnu.org>
3801
3802 * i386-linux-tdep.c (FRAMELESS_SIGNAL): Moved here from
3803 config/i386/nm-linux.h (including comment).
3804 (i386_linux_frame_chain): New function implementing guts of the
3805 former FRAME_CHAIN macro, but using read_memory_unsigned_integer
3806 instead of read_memory_integer.
3807 (i386_linux_frame_saved_pc): Removed doc pointing to
3808 i386/tm-linux.h for an explanation of FRAMELESS_SIGNAL since that
3809 now lives in this file.
3810 * config/i386/tm-linux.h (FRAMELESS_SIGNAL): Moved to
3811 i386-linux-tdep.c (including comment).
3812 (FRAME_CHAIN): Redefined in terms of i386_linux_frame_chain.
3813 (i386_linux_frame_chain): New prototype.
3814
3815 * gdbserver/low-linux.c [I386_GNULINUX_TARGET]: Cleanup code and
3816 make it work again.
3817 (NUM_FREGS): Redefine to 0.
3818 (NUM_REGS): Redefine as NUM_GREGS.
3819 (i386_register_byte, i386_register_raw_size): Update from
3820 i386-tdep.c. Add comment about their origin.
3821 (regmap, register_u_addr): Take these from i386-linux-nat.c.
3822 (i386_register_u_addr): Removed.
3823
3824 * i386-linux-nat.c (i386_linux_dr_get): Return 0 if ptrace call
3825 fails instead of calling perror_with_name. This should fix
3826 debugging remote i386 targets with a native Linux/x86 GDB. Add
3827 FIXME for this hack.
3828
3829 2001-03-19 J.T. Conklin <jtc@redback.com>
3830
3831 * arch-utils.c (#include "gdbthread.h"): Removed.
3832 (#include "symfile.h"): Removed.
3833 (XMALLOC): Removed unused macro.
3834 * breakpoint.c (tbreak_command): Removed local declaration.
3835 (awatch_command, do_enable_breakpoint, set_breakpoint_count):
3836 Remove duplicate declarations.
3837 (bpstat_should_step, bpstat_have_active_hw_watchpoints)
3838 (remove_solib_event_breakpoints): Fix indentation botch.
3839 * c-typeprint.c (#include "command.h"): Removed.
3840 (#include "gdbcmd.h"): Removed.
3841 * ch-exp.c (ch_terminal_match_float_literal, parse_expr)
3842 (parse_primval, parse_untyped_expr, parse_opt_untyped_expr):
3843 Removed duplicate declarations.
3844 * ch-typeprint.c (#include "command.h"): Removed.
3845 (#include "gdbcmd.h"): Removed.
3846 * corefile.c (#include "frame.h"): Removed
3847 (#include "symfile.h"): Removed.
3848 (#include "language.h"): Removed.
3849 * dbxread.c (#include "command.h"): Removed.
3850 * environ.c (#include "gdbcore.h"): Removed.
3851 * event-loop.c (#include "top.h"): Removed.
3852 * f-typeprint.c (#include "command.h"): Removed.
3853 (#include "gdbcmd.h"): Removed.
3854 (#include "language.h"): Removed.
3855 (#include "typeprint.h"): Removed.
3856 (#include "frame.h"): Removed.
3857 * gdbtypes.h (print_type_scalar): Removed declaration.
3858 * infcmd.c (#include "completer.h"): Removed.
3859 * language.c (#include "frame.h"): Removed.
3860 * m2-typeprint.c (#include "command.h"): Removed.
3861 (#include "gdbcmd.h"): Removed.
3862 (#include "language.h"): Removed.
3863 * m2-valprint.c (#include "valprint.h"): Removed.
3864 * p-typeprint.c (#include "command.h"): Removed.
3865 (#include "gdbcmd.h"): Removed.
3866 * p-valprint.c (#include "typeprint.h"): Removed.
3867 * parse.c (#include "linespec.h"): Removed.
3868 * regcache.c (#include "frame.h"): Removed.
3869 * remote.c (#include "frame.h"): Removed.
3870 (getpkt_sane): Make static.
3871 * source.c (#include "completer.h"): Removed.
3872 * stack.c (#include "symfile.h"): Removed.
3873 (#include "objfiles.h"): Removed.
3874 * symfile.c (#include "completer.h"): Removed.
3875 * tracepoint.c (#include "completer.h"): Removed.
3876 * values.c (#include "frame.h"): Removed.
3877 * varobj.c (#include "valprint.h"): Removed.
3878 * wrapper.c (#include "frame.h"): Removed.
3879
3880 * memattr.c (create_mem_region): Removed unused variable.
3881 * remote-nrom.c: Removed spurious semicolon after init_nrom_ops.
3882
3883 2001-03-27 Nick Clifton <nickc@redhat.com>
3884
3885 * remote-rdp.c (rdp_set_command_line): Add missing double quote.
3886
3887 2001-03-27 Kevin Buettner <kevinb@redhat.com>
3888
3889 * solib-aix5.c (build_so_lib_from_mapfile): Use xfree() instead
3890 of free().
3891
3892 2001-03-27 Eli Zaretskii <eliz@is.elta.co.il>
3893
3894 * TODO (Cleanups): Remove the item about converting docs to GFDL.
3895
3896 2001-03-26 Kevin Buettner <kevinb@redhat.com>
3897
3898 * ia64-tdep.c (slotN_contents, replace_slotN_contents): Change
3899 type of ``bundle'' from unsigned char * to char *.
3900 (ia64_get_saved_register): Use alloca() to allocate register
3901 buffers.
3902
3903 * solib-aix5.c (build_so_lib_from_mapfile): Fix xasprintf() usage.
3904
3905 2001-03-26 Kevin Buettner <kevinb@redhat.com>
3906
3907 * proc-utils.h (procfs_ctl_t): New typedef.
3908 * proc-api.c (write_with_trace): Change type of ``opcode'' from
3909 long to procfs_ctl_t. Don't assume that the target has defined
3910 BREAKPOINT. Handle case in which PCRESET is the same as PCUNSET.
3911 * proc-events.c (sys/syscall.h, sys/fault.h): Include conditionally.
3912 * procfs.c (sys/fault.h, sys/syscall.h): Include conditionally.
3913 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t, gdb_premptysysset)
3914 (gdb_praddsysset, gdb_prdelsysset, gdb_pr_issyssetmember):
3915 Conditionally define as appropriate for AIX/non-AIX systems. Use
3916 these defines/typedefs as appropriate elsewhere in file.
3917 (struct procinfo): Change type of saved_sigset and saved_sighold
3918 from sigset_t to gdb_sigset_t. Make saved_exitset and
3919 saved_entryset pointer variables. Add two new fields, num_syscalls
3920 and syscall_names.
3921 (DYNAMIC_SYSCALLS): Define when HAVE_PRSYSENT_T is defined.
3922 (sysset_t_size, sysset_t_alloc): New functions.
3923 (load_syscalls, free_syscalls, find_syscall): New functions for
3924 platforms which define DYNAMIC_SYSCALLS.
3925 (create_procinfo): Call load_syscalls.
3926 (destroy_one_procinfo): Call free_syscalls.
3927 (GDBRESET): Don't define twice.
3928 (proc_modify_flag): Change type of operation code array `arg'
3929 from long to procfs_ctl_t.
3930 (proc_stop_process, proc_wait_for_stop, proc_run_process)
3931 (proc_set_traced_signals, proc_set_traced_faults)
3932 (proc_set_traced_sysentry, proc_set_traced_sysexit)
3933 (proc_set_held_signals, proc_clear_current_fault)
3934 (proc_set_current_signal, proc_clear_current_signal, proc_set_gregs)
3935 (proc_set_fpregs, proc_kill, proc_set_watchpoint): Likewise for `cmd'.
3936 (proc_set_traced_sysentry): Dynamically allocate variable sized
3937 struct gdb_proc_ctl_pcsentry. Also, free it at function exit.
3938 (proc_set_traced_sysexit): Dynamically allocate variable
3939 sized struct gdb_proc_ctl_pcsexit. Also, free it at
3940 function exit.
3941 (proc_get_traced_sysentry, proc_get_traced_sysexit): Add new code
3942 for reading the sysset_t struct on AIX5.
3943 (procfs_debug_inferior): Don't assume that SYS_exit will be
3944 defined. Add new code for finding certain syscalls on AIX5.
3945 (syscall_is_lwp_exit, syscall_is_exit, syscall_is_exec)
3946 (syscall_is_lwp_create): New functions.
3947 (procfs_wait): Restructured code which checks for certain
3948 system calls to use the new syscall_is_... functions.
3949 (procfs_notice_signals): Account for the fact that saved_entryset
3950 and saved_exitset in struct procinfo are now pointers.
3951
3952 2001-03-26 Kevin Buettner <kevinb@redhat.com>
3953
3954 * symtab.c (find_pc_sect_line): Revise method used for finding
3955 the ending pc.
3956
3957 2001-03-26 Mark Kettenis <kettenis@gnu.org>
3958
3959 * i386-linux-tdep.c (i386_linux_sigtramp_saved_pc,
3960 i386_linux_sigtramp_saved_sp): Make static.
3961 (i386_linux_frame_saved_pc): New function based on the old
3962 FRAME_SAVED_PC macro, but use read_memory_unsigned_integer instead
3963 of read_memory_integer.
3964 * config/i386/tm-linux.h (sigtramp_saved_pc): Remove definition.
3965 (i386_linux_sigtramp_saved_pc): Remove prototype.
3966 (FRAME_SAVED_PC): Redefine in terms of i386_linux_frame_saved_pc.
3967 (i386_linux_frame_saved_pc): New prototype.
3968
3969 2001-03-26 Andrew Cagney <ac131313@redhat.com>
3970
3971 * MAINTAINERS: Document m88k as a ``Known problem in 5.1''.
3972 * TODO (GDB 5.1 - Cleanups): Update.
3973
3974 2001-03-26 Andrew Cagney <ac131313@redhat.com>
3975
3976 * fork-child.c (clone_and_follow_inferior): Delete #ifdef
3977 HAVE_VFORK.
3978
3979 2001-03-26 Mark Kettenis <kettenis@gnu.org>
3980
3981 * config/i386/tm-symmetry.h (PUSH_ARGUMENTS): #undef.
3982
3983 * i386-tdep.c (i386_push_arguments, i386_store_struct_return): New
3984 functions.
3985 * config/i386/tm-i386.h (PUSH_ARGUMENTS): New macro.
3986 (STORE_STRUCT_RETURN): Redefine in terms of
3987 i386_store_struct_return.
3988 (i386_push_arguments, i386_store_struct_return): New prototypes.
3989 * config/i386/tm-i386v.h (STORE_STRUCT_RETURN): Remove. It's
3990 definition was identical to the definition in "i386/tm-i386.h" so
3991 the new definition should suffice too.
3992
3993 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
3994
3995 * event-loop.c (toplevel) [!HAVE_POLL] [NO_FD_SET]: Remove unused
3996 definitions for SELECT, NBBY, FD_SETSIZE, NFDBITS, and MASK_SIZE.
3997
3998 * config/djgpp/djconfig.sh: Add copyright notice.
3999
4000 * ser-go32.c (rawclock): Remove prototype; include time.h instead.
4001 (ISR, dos_hookirq, isr_t): Convert K&R definition to ANSI C.
4002 (top level) <string.h>: Include gdb_string.h instead.
4003 (dos_noop, dos_raw, dos_noflush_set_tty_state)
4004 (dos_print_tty_state, dos_info): Remove ATTRIBUTE_UNUSED.
4005
4006 * go32-nat.c (go32_create_inferior): Move the declaration of
4007 `environ' to here from the top level.
4008 (top level) <_initialize_go32_nat>: Remove redundant prototype.
4009 <gdb_string.h>: Include it instead of string.h.
4010 (store_register): Call register_buffer instead of accessing
4011 registers[] directly.
4012 (redir_cmdline_delete, redir_cmdline_parse, redir_to_debugger)
4013 (redir_to_debugger, redir_debug_init) [__DJGPP_MINOR__ < 3]: Put
4014 the function names at the start of the line.
4015 (go32_set_dr): Throw internal_error if the argument is not a valid
4016 debug register number.
4017 (go32_open, go32_close, go32_attach, go32_detach, go32_resume)
4018 (go32_wait, go32_xfer_memory, go32_files_info)
4019 (go32_terminal_info): Remove ATTRIBUTE_UNUSED.
4020
4021 2001-03-25 Jim Blandy <jimb@redhat.com>
4022
4023 * mips-tdep.c (mips_gdbarch_init): Tweak indentation.
4024
4025 2001-03-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4026
4027 From Andrew Cagney <ac131313@redhat.com>
4028
4029 * coffread.c: Include "gdb_assert.h".
4030 (coff_symtab_read): Cast the integer s_sclass to a long before
4031 casting it to a pointer.
4032
4033 2001-03-25 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4034
4035 From Andrew Cagney <ac131313@redhat.com>
4036
4037 * coffread.c (coff_symtab_read): Initialize
4038 ``fcn_first_line_addr''. Check that the ``.bf'' always preceeds
4039 the ``.ef'' info.
4040 * dbxread.c (find_text_range): Initialize ``start'' and ``end''.
4041
4042 2001-03-23 Andrew Cagney <ac131313@redhat.com>
4043
4044 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Down grade to
4045 GDB_MULTI_ARCH_PARTIAL from two. SOFTWARE_SINGLE_STEP is not
4046 multi-arch.
4047
4048 * gdbarch.sh (SOFTWARE_SINGLE_STEP): Add.
4049 * gdbarch.h, gdbarch.c: Re-generate.
4050
4051 * target.h (SOFTWARE_SINGLE_STEP_P)
4052 (SOFTWARE_SINGLE_STEP): Delete macro definitions.
4053
4054 2001-03-23 Andrew Cagney <ac131313@redhat.com>
4055
4056 * gdbarch.sh (gdbarch_register_read, gdbarch_register_write): Add.
4057 * gdbarch.h, gdbarch.c: Regenerate.
4058
4059 * regcache.h (regcache_read, regcache_write): Declare.
4060 (registers, register_valid, register_buffer): Add note that these
4061 interfaces are deprecated.
4062
4063 * regcache.c: Include "gdb_assert.h".
4064 (legacy_write_register_gen): Rename write_register_gen.
4065 (legacy_read_register_gen): Rename read_register_gen.
4066 (regcache_read, regcache_write): New function.
4067 (read_register_gen, write_register_gen): New function.
4068 (write_register): Simplify. Use write_register_gen.
4069 (read_register): Ditto using read_register_gen.
4070 (read_signed_register): Ditto.
4071 (read_register_bytes): Ditto!!!!
4072 (supply_register): Add note that CLEANUP_REGISTER_VALUE is being
4073 replaced by gdbarch_register_read.
4074
4075 * TODO (GDB 5.2 - Cleanups): Add list of gdbarch methods to
4076 deprecate.
4077
4078 2001-03-23 Jim Blandy <jimb@redhat.com>
4079
4080 Fix from Dan Berlin:
4081
4082 * stabsread.c (read_cpp_abbrev): Properly construct the names of
4083 virtual function table pointer fields.
4084
4085 2001-03-19 Andrew Cagney <ac131313@redhat.com>
4086
4087 * defs.h (xfree, mcalloc, mmalloc, mrealloc, mfree, xmmalloc,
4088 xmrealloc): Move existing declarations to the one place and
4089 re-order to be consistent.
4090 (xmcalloc, xmfree): Declare.
4091 (xmmalloc, xmrealoc): Assume ISO-C - use size_t and void* in
4092 declaration.
4093
4094 * utils.c (size_t): Delete #ifdef defining size_t.
4095 (mmalloc, mrealloc, mcalloc, mfree): Re-order.
4096 (mmalloc, mrealloc, mcalloc): Document as only calls in GDB
4097 corresponding malloc, realloc, calloc.
4098 (mfree): Call free directly.
4099 (xmmalloc, xmrealloc): Clean up. Assume ISO-C.
4100 (xmcalloc, xmfree): New functions. Copy old xcalloc and xfree
4101 function bodies to here.
4102 (xcalloc, xfree): Call xmcalloc and xmfree respectfully.
4103
4104 2001-03-23 Andrew Cagney <ac131313@redhat.com>
4105
4106 * fork-child.c (fork_inferior): Make ``argv'', ``exec_file'' and
4107 ``shell_file'' static locals.
4108
4109 * jv-lang.c (java_link_class_type): Initialize ``field'' and
4110 ``method''.
4111
4112 * jv-valprint.c (java_value_print): Initialize ``next_element''.
4113
4114 2001-03-23 Mark Kettenis <kettenis@gnu.org>
4115
4116 * config/i386/nm-i386.h: Fix formatting and change reference to
4117 i386-tdep.c to i386-nat.c.
4118
4119 2001-03-23 David Smith <dsmith@redhat.com>
4120
4121 * configure.in: Corrected spelling errors.
4122 * configure: Regenerated.
4123
4124 2001-03-22 Andrew Cagney <ac131313@redhat.com>
4125
4126 * TODO (GDB 5.1 - Cleanups): Add more targets to obsolete.
4127
4128 2001-03-22 Andrew Cagney <ac131313@redhat.com>
4129
4130 * Makefile.in (NTSSTART): Delete.
4131 (NTSOBS): Delete.
4132 (kdb): Delete target.
4133 * kdb-start.c, stuff.c: Mark as obsolete.
4134 * NEWS: Update.
4135
4136 2001-03-22 Andrew Cagney <ac131313@redhat.com>
4137
4138 * config/pa/xm-hppah.h (HPPA_COMPILER_BUG): Delete. GDB only
4139 compiles using an ISO-C compiler.
4140 (MALLOC_INCOMPATIBLE): Ditto.
4141 * linespec.c (decode_line_1): Delete hack to work around
4142 HPPA_COMPILER_BUG.
4143
4144 2001-03-22 Andrew Cagney <ac131313@redhat.com>
4145
4146 * exec.c (xfer_memory): Always initialize section.
4147 * infrun.c (normal_stop): Always initialize source_flag.
4148
4149 2001-03-22 Andrew Cagney <ac131313@redhat.com>
4150
4151 * TODO (Remote Protocol Support): Review. Add notes about ``!'',
4152 non-use of a continue address and typical use of ``q'' packet.
4153
4154 2001-03-22 Eli Zaretskii <eliz@is.elta.co.il>
4155
4156 Make DJGPP use the new unified support for hardware
4157 breakpoints and watchpoints on x86 targets:
4158
4159 * config/i386/nm-go32.h <top level>: Don't include nm-i386v.h,
4160 include nm-i386.h instead.
4161 (TARGET_HAS_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT)
4162 (TARGET_CAN_USE_HARDWARE_WATCHPOINT, STOPPED_BY_WATCHPOINT)
4163 (TARGET_REGION_OK_FOR_HW_WATCHPOINT, DECR_PC_AFTER_HW_BREAK)
4164 (target_stopped_data_address, target_insert_watchpoint)
4165 (target_remove_watchpoint, target_insert_hw_breakpoint)
4166 (target_remove_hw_breakpoint): Don't define.
4167 (I386_USE_GENERIC_WATCHPOINTS, I386_DR_LOW_SET_CONTROL)
4168 (I386_DR_LOW_SET_ADDR, I386_DR_LOW_RESET_ADDR)
4169 (I386_DR_LOW_GET_STATUS): Define to call appropriate go32_*
4170 functions from go32-nat.c.
4171
4172 * config/i386/go32.mh (NATDEPFILES): Add i386-nat.o.
4173
4174 * go32-nat.c <top level>: Remove prototypes for watchpoint-
4175 related functions. Remove definitions of watchpoint-related
4176 macros.
4177 (go32_mourn_inferior): Call i386_cleanup_dregs instead of the
4178 private cleanup_dregs function.
4179 (cleanup_dregs, go32_insert_watchpoint)
4180 (go32_insert_aligned_watchpoint, go32_handle_nonaligned_watchpoint)
4181 (go32_remove_watchpoint, go32_remove_aligned_watchpoint)
4182 (go32_region_ok_for_watchpoint, go32_stopped_by_watchpoint)
4183 (go32_remove_hw_breakpoint, go32_insert_hw_breakpoint): Remove.
4184 (go32_set_dr, go32_set_dr7, go32_get_dr6): New functions.
4185
4186 2001-03-21 Kevin Buettner <kevinb@redhat.com>
4187
4188 * ia64-tdep.c (fetch_instruction): Warn about slot numbers greater
4189 than two instead of generating an error.
4190
4191 2001-03-21 Jim Blandy <jimb@redhat.com>
4192
4193 * cp-valprint.c: Reformat to bring into line with GNU coding
4194 standards.
4195
4196 2001-03-21 Mark Kettenis <kettenis@gnu.org>
4197
4198 Make Linux use the new unified support for hardware breakpoints
4199 and watchpoints on x86 targets.
4200 * i386-linux-nat.c: Doc fixes. Include "gdb_assert.h".
4201 [HAVE_SYS_DEBUGREG_H]: Include <sys/debugreg.h>.
4202 (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS, DR_CONTROL): Define to
4203 appropriate value if not already defined.
4204 (register_u_addr): New function.
4205 (kernel_u_size): New function.
4206 (i386_linux_dr_get, i386_linux_dr_set): New functions.
4207 (i386_linux_dr_set_control, i386_linux_dr_set_addr,
4208 i386_linux_reset_addr, i386_linux_dr_get_status): New functions.
4209 * config/i386/nm-linux.h: Don't include "nm-i386v.h".
4210 (I386_USE_GENERIC_WATCHPOINTS): Define and include "nm-i386.h".
4211 (TARGET_HAS_HARDWARE_WATCHPOINTS,
4212 TARGET_CAN_USE_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT,
4213 STOPPED_BY_WATCHPOINT, target_insert_watchpoint,
4214 target_remove_watchpoint): Remove macros.
4215 (i386_stopped_by_watchpoint, i386_insert_watchpoint,
4216 i386_remove_watchpoint): Remove prototypes.
4217 (register_u_addr): New prototype.
4218 (REGISTER_U_ADDR): Define in terms of register_u_addr.
4219 (i386_linux_dr_set_control, i386_linux_dr_set_addr,
4220 i386_linux_reset_addr, i386_linux_dr_get_status): New prototypes.
4221 (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
4222 I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
4223 * config/i386/linux.mh (NATDEPFILES): Replace i386v-nat.o with
4224 i386-nat.o.
4225
4226 2001-03-21 Jim Blandy <jimb@redhat.com>
4227
4228 Fix from Dan Berlin:
4229
4230 * linespec.c (find_methods): Whitespace differences aren't
4231 significant in *un*mangled method names. Use strcmp_iw to compare
4232 them, not STREQ.
4233
4234 2001-03-21 Andrew Cagney <ac131313@redhat.com>
4235
4236 * gdbarch.sh: Allow a non- multi-arch target to override a
4237 predicate.
4238 * gdbarch.h: Regenerate.
4239
4240 2001-03-21 Andrew Cagney <ac131313@redhat.com>
4241
4242 * gdbarch.sh: Avoid use of ``!''.
4243
4244 2001-03-20 Andrew Cagney <ac131313@redhat.com>
4245
4246 * target.h (enum target_signal): Move definition from here.
4247 * defs.h (enum target_signal): To here.
4248
4249 * config/arc/tm-arc.h (arc_software_single_step): Change type of
4250 first parameter to enum target_signal.
4251 * config/rs6000/tm-rs6000.h (rs6000_software_single_step): Ditto.
4252 * config/sparc/tm-sparc.h (sparc_software_single_step): Ditto.
4253 * rs6000-tdep.c (rs6000_software_single_step): Update.
4254
4255 2001-03-20 Andrew Cagney <ac131313@redhat.com>
4256
4257 * frame.h (SIZEOF_FRAME_SAVED_REGS): Report an error if macro
4258 already defined.
4259
4260 From 2000-08-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
4261 * stabsread.c (define_symbol): A parameter ('R'), a local ('r'),
4262 or a reference ('a') can be in a pseudo register.
4263 * infcmd.c (do_registers_info): Must take into account the pseudo
4264 registers to print their value.
4265 (registers_info): Likewise.
4266 * stack.c (frame_info): Likewise.
4267 * frame.h (SIZEOF_FRAME_SAVED_REGS): Save the pseudo registers.
4268
4269 2001-03-21 Eli Zaretskii <eliz@is.elta.co.il>
4270
4271 Unified support for hardware breakpoints and watchpoints on
4272 x86 targets:
4273
4274 * config/i386/nm-i386.h: New file.
4275
4276 * config/i386/nm-i386.h: (i386_cleanup_dregs)
4277 (i386_insert_watchpoint, i386_remove_watchpoint)
4278 (i386_region_ok_for_watchpoint, i386_stopped_by_hwbp)
4279 (i386_stopped_data_address, i386_insert_hw_breakpoint)
4280 (i386_remove_hw_breakpoint): Declare prototypes.
4281 [I386_USE_GENERIC_WATCHPOINTS] (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4282 Define if not already defined.
4283 (TARGET_REGION_OK_FOR_HW_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT)
4284 (STOPPED_BY_WATCHPOINT, target_stopped_data_address)
4285 (target_insert_watchpoint, target_remove_watchpoint)
4286 (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Define
4287 to call the appropriate i386_* functions.
4288
4289 * i386-nat.c: New file.
4290
4291 * i386-nat.c (I386_DR_CONTROL_MASK, I386_DR_LOCAL_ENABLE)
4292 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4293 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): New macros.
4294 (dr_mirror, dr_status_mirror, dr_control_mirror, dr_ref_count)
4295 (maint_show_dr): New variables.
4296 (i386_cleanup_dregs, i386_show_dr, i386_length_and_rw_bits)
4297 (i386_insert_aligned_watchpoint, i386_remove_aligned_watchpoint)
4298 (i386_handle_nonaligned_watchpoint, i386_insert_watchpoint)
4299 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
4300 (i386_stopped_data_address, i386_stopped_by_hwbp)
4301 (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): New
4302 functions.
4303 (_initialize_i386_nat): New function.
4304 [I386_USE_GENERIC_WATCHPOINTS]: Add new maint command
4305 `show-debug-regs', sets maint_show_dr to non-zero value and
4306 activates debugging print-outs in functions which insert, remove,
4307 and test watchpoints and hardware breakpoints.
4308
4309 * Makefile.in (i386-nat.o): New target.
4310 (ALLDEPFILES): Add i386-nat.o.
4311
4312 2001-03-21 Mark Kettenis <kettenis@gnu.org>
4313
4314 * i386-tdep.c: Add back _initialize_i386_tdep prototype with
4315 appropriate comment.
4316
4317 2001-03-20 Kevin Buettner <kevinb@redhat.com>
4318
4319 * config/alpha/alpha-linux.mh (NATDEPFILES): Use proc-service.o,
4320 thread-db.o, and lin-lwp.o for thread support instead of
4321 linux-thread.o and lin-thread.o.
4322 * config/alpha/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS)
4323 (ATTACH_LWP): Define to use the following lin-lwp.c functions...
4324 (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals)
4325 (lin_lwp_attach_lwp): Declare.
4326
4327 2001-03-20 Jim Blandy <jimb@redhat.com>
4328
4329 Fix from Dan Berlin:
4330
4331 * Makefile.in: Clean up dependencies on ../include/demangle.h.
4332 (demangle_h): New variable.
4333 (jv-typeprint.o, jv-valprint.o, linespec.o): Use it.
4334
4335 2001-03-20 Andrew Cagney <ac131313@redhat.com>
4336
4337 * target.h (SOFTWARE_SINGLE_STEP_P): Add empty parameter list.
4338 * breakpoint.c (bpstat_stop_status): Update.
4339 * infrun.c (handle_inferior_event): Ditto.
4340 * mips-tdep.c (mips_dump_tdep): Ditto.
4341 * infrun.c (resume): Ditto.
4342 * infptrace.c (child_resume): Ditto.
4343 * config/mips/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
4344 * config/sh/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
4345 * config/sparc/tm-sparc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
4346 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP_P): Ditto.
4347 * config/arm/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
4348 * config/arc/tm-arc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
4349 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
4350
4351 2001-03-20 Andrew Cagney <ac131313@redhat.com>
4352
4353 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Replace abort
4354 with internal_error.
4355
4356 2001-03-20 Jim Blandy <jimb@redhat.com>
4357
4358 Fix from Dan Berlin:
4359
4360 * linespec.c (find_methods): Just call CHECK_TYPEDEF on t, rather
4361 than asking for sym_class's type; that's circuitous. Remove
4362 sym_class, since the last use of it is gone.
4363
4364 2001-03-20 Eli Zaretskii <eliz@is.elta.co.il>
4365
4366 * breakpoint.c (print_it_typical) <bp_access_watchpoint> [UI_OUT]:
4367 Correct the order of calls to ui_out_field_string and
4368 ui_out_list_begin when bs->old_val is NULL.
4369
4370 2001-03-19 Kevin Buettner <kevinb@redhat.com>
4371
4372 * configure.in (AC_CHECK_HEADERS): Check for existence of nlist.h.
4373 * configure: Regenerate.
4374 * config.in: Regenerate.
4375 * solib-legacy.c (nlist.h): Include if HAVE_NLIST_H is defined.
4376
4377 2001-03-19 Kevin Buettner <kevinb@redhat.com>
4378
4379 * config/i386/i386v42mp.mh (NATDEPFILES): List all files on
4380 same line to avoid problems with Unixware 7's make when building
4381 a cross debugger.
4382
4383 2001-03-19 Andrew Cagney <ac131313@redhat.com>
4384
4385 * defs.h (malloc): Move declaration from here.
4386 * utils.c (malloc): To here.
4387 * config/pa/xm-hppah.h (malloc): Delete declaration.
4388
4389 * gnu-nat.c (make_proc): Use xmalloc instead of malloc.
4390 * hp-psymtab-read.c (hpread_call_pxdb): Ditto.
4391 (hpread_quick_traverse): Ditto.
4392 * infttrace.c (create_thread_info): Ditto.
4393 (kill_inferior): Ditto.
4394 * gnu-nat.c (make_inf): Ditto, and don't check return value.
4395 * procfs.c (proc_update_threads): Ditto.
4396 * valprint.c (print_decimal_chars): Ditto.
4397 * gdbtypes.c (cfront_mangle_name): Use xasprintf instead of
4398 malloc and sprintf.
4399 * remote-rdp.c (rdp_set_command_line): Ditto.
4400
4401 2001-03-19 Andrew Cagney <ac131313@redhat.com>
4402
4403 * defs.h (realloc): Move declaration from here.
4404 * utils.c (realloc): To here.
4405 * config/pa/xm-hppah.h (realloc): Delete declaration.
4406 * lin-thread.c (insert_thread): Use xrealloc instead of realloc.
4407 * symfile.c (add_filename_language): Ditto.
4408 * event-loop.c (create_file_handler): Ditto.
4409
4410 2001-03-19 Andrew Cagney <ac131313@redhat.com>
4411
4412 * defs.h (free): Move declaration from here.
4413 * utils.c (free): To here.
4414 (xfree): Document as the only call to free().
4415 * config/pa/xm-hppah.h (free): Delete declaration.
4416
4417 2001-03-19 Kevin Buettner <kevinb@redhat.com>
4418
4419 * config/ia64/linux.mh (NATDEPFILES): Add proc-service.o to
4420 this list.
4421
4422 2001-03-19 Andrew Cagney <ac131313@redhat.com>
4423
4424 * eval.c (evaluate_subexp): Remove #ifdef __STDC__ and ``inline''.
4425 * config/mips/xm-mips.h (offsetof): Define when !GNUC not !STDC.
4426 * cli/cli-cmds.c (init_cli_cmds): Remove #ifdef __STDC__
4427
4428 2001-03-19 Andrew Cagney <ac131313@redhat.com>
4429
4430 * TODO: List known problems with TUI.
4431
4432 2001-03-19 Andrew Cagney <ac131313@redhat.com>
4433
4434 * MAINTAINERS: Jimmy Guo stepped down as a maintiner (TUI,
4435 gdb.hp).
4436
4437 2001-03-19 Andrew Cagney <ac131313@redhat.com>
4438
4439 * remote.c (remote_cisco_section_offsets): Do not cast result from
4440 bfd_get_section_name.
4441 (compare_sections_command): Ditto.
4442 (remote_cisco_section_offsets): Make ``p'' a const pointer.
4443 (compare_sections_command): Ditto for ``sectname''.
4444
4445 2001-03-19 Andrew Cagney <ac131313@redhat.com>
4446
4447 From Mon Nov 20 13:59:29 2000 Andrew Cagney <cagney@b1.cygnus.com>:
4448 * valops.c (hand_function_call): Simplify computation of the
4449 address of the pushed argument.
4450
4451 2001-03-17 Andrew Cagney <ac131313@redhat.com>
4452
4453 * p-exp.y (parse_number): Avoid shift overflow when ``long''.
4454 Code copied from c-exp.y.
4455
4456 2001-03-18 Kevin Buettner <kevinb@redhat.com>
4457
4458 * acconfig.h (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
4459 (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
4460 (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New configure macros.
4461 * configure.in (HAVE_STRUCT_LINK_MAP32): Move this test out
4462 of the Solaris procfs testing section. Instead, group with...
4463 (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
4464 (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
4465 (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New <link.h> tests.
4466 * configure: Regenerate.
4467 * config.in: Regenerate.
4468
4469 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Use
4470 new configure macros to choose which (if any) code to
4471 compile in. Added code to explicitly handle *BSD systems;
4472 these systems were previously handled only through macro
4473 redefinition. Also, due to the way the autoconf tests are set
4474 up, this function will no longer return a non-zero value when
4475 GDB is configured as a cross debugger. I.e, cross debuggers
4476 will no longer be able to "accidentally" get the host system's
4477 link map offsets.
4478
4479 2001-03-18 Kevin Buettner <kevinb@redhat.com>
4480
4481 * config/i386/nbsd.mh (NATDEPFILES): List all files on the same
4482 line to avoid build problem on NetBSD 1.4.
4483
4484 2001-03-17 Michael Chastain <chastain@redhat.com>
4485
4486 * win32-nat.c (child_attach): check args for NULL before passing
4487 to strtoul. This fixes PR gdb/43.
4488
4489 2001-03-17 Mark Kettenis <kettenis@gnu.org>
4490
4491 * i387-nat.h: Doc Fix.
4492
4493 * i386-tdep.c: Fix formatting.
4494 (i386_get_frame_setup, i386_follow_jump, codestream_read,
4495 codestream_seek, codestream_fill, skip_trampoline_code,
4496 gdb_print_insn_i386, _initialize_i386_tdep): Remove redundant
4497 prototypoes.
4498
4499 2001-03-17 Mark Kettenis <kettenis@gnu.org>
4500
4501 * config/i386/tm-linux.h (TARGET_ANALYZE_FLOATING): Remove. It's
4502 no longer used. Also remove associated FIXME.
4503
4504 2001-03-16 Andrew Cagney <ac131313@redhat.com>
4505
4506 * gdbarch.sh: Add classes ``m'' and ``M'' for pure multi-arch. Do
4507 not generate macro wrappers for multi-arch functions or
4508 predicates.
4509 (class_is_info_p, class_is_predicate_p): Update.
4510 (class_is_function_p, class_is_variable_p): Ditto.
4511 (class_is_multiarch_p): New class function.
4512
4513 2001-03-16 J.T. Conklin <jtc@redback.com>
4514
4515 * config/h8300/tm-h8300.h (FRAME_ARGS_ADDRESS): Changed to use
4516 h8300_frame_args_address from frame_args_address.
4517 (FRAME_LOCALS_ADDRESS): Changed to use h8300_frame_locals_address
4518 from frame_locals_address.
4519 (PRINT_REGISTER_HOOK): Changed to use h8300_print_register_hook
4520 from print_register_hook.
4521 (h8300_frame_args_address): Declare.
4522 (h8300_frame_find_saved_regs): Declare.
4523 (h8300_frame_locals_address): Declare.
4524 (h8300_frame_saved_pc): Declare.
4525 (h8300_pop_frame): Declare.
4526 (h8300_print_register_hook): Declare.
4527 * h8300-tdep.c (h8300_frame_find_saved_regs): Removed declaration.
4528 (h8300_frame_args_address): Renamed from frame_args_address.
4529 (h8300_frame_locals_address): Renamed from frame_locals_address.
4530 (h8300_pop_frame): Renamed from pop_frame.
4531 (h8300_print_register_hook): Renamed from print_register_hook.
4532
4533 2001-03-16 Kevin Buettner <kevinb@redhat.com>
4534
4535 * solib-svr4.c (bfd_lookup_symbol): Change type of
4536 ``storage_needed'' from unsigned int to long in order to
4537 match return type of bfd_get_symtab_upper_bound() and
4538 bfd_get_dynamic_symtab_upper_bound().
4539 * solib-aix5.c (bfd_lookup_symbol): Likewise. Also, eliminate
4540 REASONABLE_LIMIT hack which had been added to work around this
4541 problem.
4542
4543 2001-03-15 Kevin Buettner <kevinb@redhat.com>
4544
4545 * solib-aix5.c (bfd_lookup_symbol, build_so_list_from_mapfile)
4546 (aix5_relocate_main_executable, aix5_clear_solib): Replace calls
4547 to free() with calls to xfree().
4548 (bfd_lookup_symbol): Eliminate use of PTR.
4549 (build_so_list_from_mapfile): Use xasprintf() instead of sprintf().
4550
4551 2001-03-15 Martin Hunt <hunt@redhat.com>
4552
4553 * linespec.c (decode_line_1): Remove trailing quote
4554 when parsing double quotes.
4555
4556 2001-03-15 Kevin Buettner <kevinb@redhat.com>
4557
4558 * uw-thread.c (read_thr_debug, read_map, read_lwp, thread_iter)
4559 (libthread_stub, libthread_init): Pass NULL for the mem_attrib
4560 argument in the to_xfer_memory calls.
4561
4562 2001-03-15 Andrew Cagney <ac131313@redhat.com>
4563
4564 * MAINTAINERS: Fix typo - w65 not w64. Still doesn't build.
4565 * TODO (GDB 5.1 - Cleanups): Add status of targets being obsoleted.
4566
4567 2001-03-15 Andrew Cagney <ac131313@redhat.com>
4568
4569 * wince.c (child_xfer_memory): Add attrib parameter.
4570 * symm-nat.c (child_xfer_memory): Ditto.
4571 * mac-nat.c (child_xfer_memory): Ditto.
4572 * infttrace.c (child_xfer_memory): Ditto.
4573 * procfs.c (procfs_xfer_memory): Ditto.
4574 * lin-thread.c (thread_db_xfer_memory): Ditto.
4575 * gnu-nat.c (gnu_xfer_memory): Ditto.
4576
4577 2001-03-14 Andrew Cagney <ac131313@redhat.com>
4578
4579 * NEWS: Mention that Harris/CXUX m88k is obsolete.
4580
4581 2001-03-13 Andrew Cagney <ac131313@redhat.com>
4582
4583 * config/mips/tm-mips.h: Include "regcache.h" for macros refering
4584 to regcache functions.
4585 * config/m68k/tm-m68k.h: Ditto.
4586 * config/i386/tm-i386v.h: Ditto.
4587 * config/mcore/tm-mcore.h: Ditto.
4588 * config/m88k/tm-m88k.h: Ditto.
4589 * config/m68k/tm-news.h: Ditto.
4590 * config/m68k/tm-linux.h: Ditto.
4591 * config/m68k/tm-delta68.h: Ditto.
4592 * config/m68k/nm-sun3.h: Ditto.
4593 * config/m32r/tm-m32r.h: Ditto.
4594 * config/i386/tm-symmetry.h: Ditto.
4595 * config/i386/tm-sun386.h: Ditto.
4596 * config/i386/tm-i386.h: Ditto.
4597 * config/i386/nm-symmetry.h: Ditto.
4598 * config/i386/nm-sun386.h: Ditto.
4599 * config/i386/nm-ptx4.h: Ditto.
4600 * config/i386/nm-i386mach.h: Ditto.
4601 * config/h8500/tm-h8500.h: Ditto.
4602 * config/h8300/tm-h8300.h: Ditto.
4603 * config/fr30/tm-fr30.h: Ditto.
4604 * config/d30v/tm-d30v.h: Ditto.
4605 * config/arm/tm-arm.h: Ditto.
4606 * config/arc/tm-arc.h: Ditto.
4607 * config/alpha/tm-alpha.h: Ditto.
4608 * config/a29k/tm-vx29k.h: Ditto.
4609 * config/a29k/tm-a29k.h: Ditto.
4610 * config/w65/tm-w65.h: Ditto.
4611 * config/vax/tm-vax.h: Ditto.
4612 * config/v850/tm-v850.h: Ditto.
4613 * config/tic80/tm-tic80.h: Ditto.
4614 * config/sparc/tm-sparclite.h: Ditto.
4615 * config/sparc/tm-sparclet.h: Ditto.
4616 * config/sparc/tm-sparc.h: Ditto.
4617 * config/sparc/nm-sun4sol2.h: Ditto.
4618 * config/sparc/nm-sun4os4.h: Ditto.
4619 * config/sparc/nm-nbsd.h: Ditto.
4620 * config/powerpc/nm-solaris.h: Ditto.
4621 * config/pa/tm-hppao.h: Ditto.
4622 * config/pa/tm-hppa.h: Ditto.
4623 * config/pa/nm-hppab.h: Ditto.
4624 * config/ns32k/tm-umax.h: Ditto.
4625 * config/ns32k/tm-merlin.h: Ditto.
4626 * config/nm-m3.h: Ditto.
4627 * config/nm-gnu.h: Ditto.
4628
4629 2001-03-14 Andrew Cagney <ac131313@redhat.com>
4630
4631 * MAINTAINERS: Update list of targets. Mark arm-* and v850-elf as
4632 broken. Mark sh-*, ia64-linux and ns32k-netbsd as buildable.
4633 Specify an m88k target. Include sample GAWK script to generate
4634 target list. Delete non-existant romp target.
4635 * TODO (GDB 5.1 - Cleanups): Update.
4636
4637 2001-03-14 Keith Seitz <keiths@cygnus.com>
4638
4639 * linespec.c (decode_line_1): Skip argptr over a leading
4640 double quote. Prevents alloc of 0 bytes and memcpy of -1 bytes.
4641
4642 2001-03-14 Kevin Buettner <kevinb@redhat.com>
4643
4644 * config/djgpp/fnchange.lst (ia64-aix-nat.c): Add entry.
4645
4646 2001-03-13 Andrew Cagney <ac131313@redhat.com>
4647
4648 * ui-out.h: Remove #if __STDC__, assume an ISO-C compiler.
4649 * m3-nat.c: Ditto.
4650 * p-lang.h: Ditto.
4651 * printcmd.c (printf_command): Ditto.
4652 * ch-exp.c (match_integer_literal): Ditto.
4653 * scm-tags.h: Ditto.
4654 * ser-go32.c: Ditto.
4655 * hppa-tdep.c (unwind_command): Ditto.
4656 * defs.h (volatile): Delete macro definition. Assume __STDC__.
4657 * remote-adapt.c (volatile): Ditto.
4658 * remote-eb.c (volatile): Ditto.
4659 * remote-mm.c (volatile): Ditto.
4660 * defs.h (alloca): Assume __STDC__, declare returning void *.
4661
4662 2001-03-08 Andrew Cagney <ac131313@redhat.com>
4663
4664 * inferior.h (ARCH_NUM_REGS): Delete definition.
4665 * stack.c (frame_info): Use NUM_REGS, not ARCH_NUM_REGS.
4666 * regcache.c (registers_changed): Ditto.
4667 (registers_fetched): Ditto.
4668 * infptrace.c (fetch_inferior_registers): Ditto.
4669 (store_inferior_registers): Ditto.
4670 * infcmd.c (do_registers_info): Ditto.
4671 (registers_info): Ditto.
4672 * i386-linux-nat.c (old_fetch_inferior_registers): Ditto.
4673 (old_store_inferior_registers): Ditto.
4674 * gdbserver/low-linux.c (register_addr): Ditto.
4675 * gdbserver/low-hppabsd.c (register_addr): Ditto.
4676 * core-aout.c: Don't include "inferior.h".
4677 (fetch_core_registers): Use NUM_REGS not ARCH_NUM_REGS.
4678 (register_addr): Ditto.
4679
4680 2001-03-13 Fernando Nasser <fnasser@redhat.com>
4681
4682 From Steven Johnson <sjohnson@neurizon.net>
4683 * cli/cli-script.c (define_command): Fix setting of post hooks.
4684
4685 2001-03-13 Mark Kettenis <kettenis@gnu.org>
4686
4687 * i386-linux-tdep.c: Fix formatting and clarify comments.
4688 (i386_linux_svr4_fetch_link_map_offsets): Use NULL instead of 0
4689 where appropriate.
4690
4691 2001-03-12 Andrew Cagney <ac131313@redhat.com>
4692
4693 * gnu-nat.c: Include "gdb_assert.h" instead of <assert.h>.
4694 (proc_update_sc): Use gdb_assert instead of assert.
4695 (proc_abort): Ditto.
4696 (inf_set_step_thread): Ditto.
4697 (gnu_wait): Ditto.
4698 (S_exception_raise_request): Ditto.
4699 (gnu_terminal_init_inferior): Ditto.
4700
4701 2001-03-09 Kevin Buettner <kevinb@redhat.com>
4702
4703 * Makefile.in (solib-svr4.o): Depend on solib-svr4.c, not solib.c.
4704 (solib-legacy.o): New makefile target.
4705 * solib-legacy.c: New file.
4706 * solib-svr4.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4707 (default_svr4_fetch_link_map_offsets): Delete.
4708 (set_solib_svr4_fetch_link_map_offsets): Declare.
4709 (legacy_svr4_fetch_link_map_offsets_hook): Declare.
4710 * solib-svr4.c (elf/common.h): Include.
4711 (link.h): Only include for SunOS shared library support.
4712 (_SYSCALL32): Don't define.
4713 (SVR4_FETCH_LINK_MAP_OFFSETS): Define.
4714 (default_svr4_fetch_link_map_offsets): Made static; added forward
4715 declaration.
4716 (fetch_link_map_offsets): New static global.
4717 (legacy_svr4_fetch_link_map_offsets_hook): New global variable.
4718 (default_svr4_fetch_link_map_offsets): Rewritten. The guts
4719 of what used to be in this function now reside in
4720 legacy_svr4_fetch_link_map_offsets() in solib-legacy.c.
4721 (open_symbol_file_object): Fix declaration in SunOS section
4722 of the code.
4723 (set_solib_svr4_fetch_link_map_offsets): New extern function.
4724 (init_fetch_link_map_offsets): New static function.
4725 (_initialize_svr4_solib): Put static global fetch_link_map_offsets
4726 under multiarch control.
4727
4728 * config/alpha/alpha-linux.mt (TDEPFILES): Add solib-legacy.o to
4729 list.
4730 * config/alpha/fbsd.mh (NATDEPFILES): Likewise.
4731 * config/arm/linux.mt (TDEPFILES): Likewise.
4732 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
4733 * config/i386/i386dgux.mh (NATDEPFILES): Likewise.
4734 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
4735 * config/i386/i386sco5.mh (NATDEPFILES): Likewise.
4736 * config/i386/i386sol2.mt (TDEPFILES): Likewise.
4737 * config/i386/i386v4.mh (NATDEPFILES): Likewise.
4738 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
4739 * config/i386/linux.mt (TDEPFILES): Likewise.
4740 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
4741 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4742 * config/i386/ncr3000.mt (TDEPFILES): Likewise.
4743 * config/i386/ptx4.mh (XDEPFILES): Likewise.
4744 * config/i386/sun386.mt (TDEPFILES): Likewise.
4745 * config/ia64/linux.mt (TDEPFILES): Likewise.
4746 * config/m68k/linux.mt (TDEPFILES): Likewise.
4747 * config/m68k/m68kv4.mh (NATDEPFILES): Likewise.
4748 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
4749 * config/m68k/sun2os4.mt (TDEPFILES): Likewise.
4750 * config/m68k/sun3os4.mt (TDEPFILES): Likewise.
4751 * config/m88k/delta88v4.mh (NATDEPFILES): Likewise.
4752 * config/mips/mipsv4.mh (NATDEPFILES): Likewise.
4753 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
4754 * config/powerpc/linux.mt (TDEPFILES): Likewise.
4755 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
4756 * config/powerpc/solaris.mh (NATDEPFILES): Likewise.
4757 * config/sh/linux.mt (TDEPFILES): Likewise.
4758 * config/sparc/linux.mt (TDEPFILES): Likewise.
4759 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
4760 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
4761 * config/sparc/sp64linux.mt (TDEPFILES): Likewise.
4762 * config/sparc/sun4os4.mt (TDEPFILES): Likewise.
4763 * config/sparc/sun4sol2.mh (NATDEPFILES): Likewise.
4764
4765 2001-03-09 Kevin Buettner <kevinb@redhat.com>
4766
4767 * utils.c (xmrealloc, xcalloc): Return NULL for zero-sized requests.
4768
4769 2001-03-09 Andrew Cagney <ac131313@redhat.com>
4770
4771 * MAINTAINERS (Write After Approval): Update Philip Blundell.
4772
4773 2001-03-09 Keith Seitz <keiths@cygnus.com>
4774
4775 * MAINTAINERS: Add myself to write after approval list.
4776
4777 2001-03-09 Mark Kettenis <kettenis@gnu.org>
4778
4779 * i387-tdep.c (print_i387_status_word): Fix printing of Stack
4780 fault flag. It is bit 6 of the x87 FPU status word, not bit 7.
4781
4782 2001-03-08 Andrew Cagney <ac131313@redhat.com>
4783
4784 * configure.host (m88*-harris-cxux*): Mark as obsolete.
4785 * configure.tgt: Ditto.
4786 * config/m88k/xm-cxux.h: Ditto.
4787 * config/m88k/tm-cxux.h: Ditto.
4788 * config/m88k/nm-cxux.h: Ditto.
4789 * config/m88k/cxux.mt: Ditto.
4790 * config/m88k/cxux.mh: Ditto.
4791
4792 2001-03-08 Andrew Cagney <ac131313@redhat.com>
4793
4794 * Makefile.in: Delete rules for obsolete files.
4795
4796 Thu Mar 8 15:43:40 2001 David Taylor <taylor@redhat.com>
4797
4798 * stack.c (parse_frame_specification): For one argument case,
4799 handle the situation where the argument is an integer, not an
4800 address -- arguably the most common case. This matters on
4801 targets where pointers and addresses are different.
4802
4803 2001-03-08 Andrew Cagney <ac131313@redhat.com>
4804
4805 * TODO: Revise 5.1 list. Delete PARAMS task. Add coding standard
4806 review. Clarify GNU/LINUX/sparc. Move other tasks to 5.2 or
4807 general.
4808
4809 2001-03-07 Andrew Cagney <ac131313@redhat.com>
4810
4811 * TODO (GDB 5.1 Known Problems): Document problem of building GDB
4812 with SID on Solaris 8.
4813
4814 2001-03-07 Mark Kettenis <kettenis@gnu.org>
4815
4816 * defs.h: Provide prototypes for floatformat_is_negative,
4817 floatformat_is_nan and floatformat_mantissa.
4818 * utils.c: Include "gdb_assert.h".
4819 (floatformat_is_negative): New function.
4820 (floatformat_is_nan): New function.
4821 (floatformat_mantissa): New function.
4822 * valprint.c: Include "floatformat.h".
4823 (print_floating): Get rid of the Linux-specific
4824 TARGET_ANALYZE_FLOATING macro and rewrite NaN detection with the
4825 help these new functions. Print NaN's in a format conforming to
4826 ISO C99.
4827
4828 2001-03-07 Eli Zaretskii <eliz@is.elta.co.il>
4829
4830 * top.c (init_main): Make `set history file name' complete on file
4831 names.
4832
4833 2001-03-06 J.T. Conklin <jtc@redback.com>
4834
4835 * Makefile.in (LINTFLAGS): Update to contain all of the macros
4836 which define include paths used when compiling.
4837
4838 * util.c (savestring, msavestring): Change type of length argument.
4839 * defs.h (savestring, msavestring): Update to match.
4840
4841 * symtab.h (decode_line_1): Removed declaration.
4842
4843 * symfile.c (#include <assert.h>): Removed.
4844
4845 * arch-utils.c (#include <ctype.h>): Removed.
4846 * c-typeprint.c: Likewise.
4847 * dbxread.c: Likewise.
4848 * gdbtypes.c: Likewise.
4849 * target.c: Likewise.
4850 * os9kread.c: Likewise.
4851
4852 * c-valprint.c (#include "demangle.h"): Removed.
4853 * ch-typeprint.c: Likewise.
4854 * eval.c: Likewise.
4855 * f-typeprint.c: Likewise.
4856 * f-valprint.c: Likewise.
4857 * m2-typeprint.c: Likewise.
4858 * typeprint.c: Likewise.
4859 * p-typeprint.c: Likewise.
4860 * valarith.c: Likewise.
4861 * valprint.c: Likewise.
4862
4863 * m2-typeprint.c (#include "gdb_string.h"): Removed.
4864 * nlmread.c: Likewise.
4865
4866 * mdebugread.c (#include "gdb-stabs.h"): Removed.
4867 * minsyms.c: Likewise.
4868 * mipsread.c: Likewise.
4869 * nlmread.c: Likewise.
4870
4871 * m2-typeprint.c (#include "obstack.h"): Removed.
4872 * m2-valprint.c: Likewise.
4873
4874 * event-loop.c (#include <setjmp.h>): Removed.
4875
4876 2001-03-06 Stan Shebs <shebs@apple.com>
4877
4878 * MAINTAINERS: Remove self from specific maintenance domains
4879 (macos, gdbserver, documentation, testsuite).
4880
4881 2001-03-06 Kevin Buettner <kevinb@redhat.com>
4882
4883 * 29k-share/udi/udip2soc.c, Makefile.in, a29k-tdep.c,
4884 a68v-nat.c, abug-rom.c, aclocal.m4, alpha-nat.c, alpha-tdep.c,
4885 annotate.c, annotate.h, arc-tdep.c, arch-utils.c,
4886 arch-utils.h, arm-tdep.c, ax-gdb.c, ax-gdb.h, ax-general.c,
4887 ax.h, bcache.c, bcache.h, blockframe.c, breakpoint.c,
4888 breakpoint.h, buildsym.c, buildsym.h, c-exp.y, c-lang.c,
4889 c-lang.h, c-typeprint.c, c-valprint.c, call-cmds.h, ch-exp.c,
4890 ch-lang.c, ch-lang.h, ch-typeprint.c, ch-valprint.c,
4891 cli/cli-cmds.h, cli/cli-decode.c, cli/cli-decode.h,
4892 cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.h,
4893 cli/cli-utils.h, cli-out.c, cli-out.h, coff-solib.c,
4894 coff-solib.h, coffread.c, command.h, complaints.c,
4895 complaints.h, completer.c, completer.h,
4896 config/a29k/nm-ultra3.h, config/a29k/tm-a29k.h,
4897 config/a29k/tm-ultra3.h, config/a29k/tm-vx29k.h,
4898 config/a29k/xm-ultra3.h, config/alpha/nm-fbsd.h,
4899 config/alpha/nm-linux.h, config/alpha/nm-osf.h,
4900 config/alpha/nm-osf2.h, config/alpha/nm-osf3.h,
4901 config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h,
4902 config/alpha/xm-alphalinux.h, config/alpha/xm-alphaosf.h,
4903 config/alpha/xm-fbsd.h, config/arc/tm-arc.h,
4904 config/arm/nm-linux.h, config/arm/tm-arm.h,
4905 config/arm/tm-embed.h, config/d10v/tm-d10v.h,
4906 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
4907 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
4908 config/i386/nm-fbsd.h, config/i386/nm-gnu.h,
4909 config/i386/nm-i386bsd.h, config/i386/nm-i386mach.h,
4910 config/i386/nm-i386sco.h, config/i386/nm-i386sol2.h,
4911 config/i386/nm-i386v.h, config/i386/nm-i386v4.h,
4912 config/i386/nm-i386v42mp.h, config/i386/nm-linux.h,
4913 config/i386/nm-nbsd.h, config/i386/nm-nbsdelf.h,
4914 config/i386/nm-ptx4.h, config/i386/nm-sun386.h,
4915 config/i386/nm-symmetry.h, config/i386/tm-cygwin.h,
4916 config/i386/tm-fbsd.h, config/i386/tm-i386.h,
4917 config/i386/tm-i386aix.h, config/i386/tm-i386bsd.h,
4918 config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h,
4919 config/i386/tm-i386m3.h, config/i386/tm-i386mk.h,
4920 config/i386/tm-i386nw.h, config/i386/tm-i386os9k.h,
4921 config/i386/tm-i386sco5.h, config/i386/tm-i386sol2.h,
4922 config/i386/tm-i386v.h, config/i386/tm-i386v4.h,
4923 config/i386/tm-i386v42mp.h, config/i386/tm-linux.h,
4924 config/i386/tm-nbsd.h, config/i386/tm-ptx.h,
4925 config/i386/tm-ptx4.h, config/i386/tm-sun386.h,
4926 config/i386/tm-symmetry.h, config/i386/tm-vxworks.h,
4927 config/i386/xm-fbsd.h, config/i386/xm-i386bsd.h,
4928 config/i386/xm-i386gnu.h, config/i386/xm-i386m3.h,
4929 config/i386/xm-i386mach.h, config/i386/xm-i386mk.h,
4930 config/i386/xm-i386sco.h, config/i386/xm-i386v4.h,
4931 config/i386/xm-linux.h, config/i386/xm-nbsd.h,
4932 config/i386/xm-ptx.h, config/i386/xm-ptx4.h,
4933 config/i386/xm-sun386.h, config/i386/xm-symmetry.h,
4934 config/i960/tm-i960.h, config/i960/tm-mon960.h,
4935 config/i960/tm-nindy960.h, config/i960/tm-vx960.h,
4936 config/ia64/nm-aix.h, config/ia64/nm-linux.h,
4937 config/ia64/tm-aix.h, config/ia64/tm-ia64.h,
4938 config/ia64/tm-linux.h, config/ia64/xm-aix.h,
4939 config/ia64/xm-linux.h, config/m68k/nm-apollo68b.h,
4940 config/m68k/nm-delta68.h, config/m68k/nm-dpx2.h,
4941 config/m68k/nm-hp300bsd.h, config/m68k/nm-hp300hpux.h,
4942 config/m68k/nm-linux.h, config/m68k/nm-sun3.h,
4943 config/m68k/tm-apollo68b.h, config/m68k/tm-cisco.h,
4944 config/m68k/tm-dpx2.h, config/m68k/tm-es1800.h,
4945 config/m68k/tm-hp300bsd.h, config/m68k/tm-hp300hpux.h,
4946 config/m68k/tm-isi.h, config/m68k/tm-linux.h,
4947 config/m68k/tm-m68k.h, config/m68k/tm-m68kv4.h,
4948 config/m68k/tm-mac.h, config/m68k/tm-monitor.h,
4949 config/m68k/tm-nbsd.h, config/m68k/tm-news.h,
4950 config/m68k/tm-os68k.h, config/m68k/tm-sun3.h,
4951 config/m68k/tm-vx68.h, config/m68k/xm-3b1.h,
4952 config/m68k/xm-apollo68b.h, config/m68k/xm-dpx2.h,
4953 config/m68k/xm-hp300bsd.h, config/m68k/xm-hp300hpux.h,
4954 config/m68k/xm-linux.h, config/m68k/xm-m68kv4.h,
4955 config/m68k/xm-mpw.h, config/m68k/xm-news.h,
4956 config/m68k/xm-sun2.h, config/m68k/xm-sun3.h,
4957 config/m68k/xm-sun3os4.h, config/m88k/nm-delta88v4.h,
4958 config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h,
4959 config/m88k/tm-m88k.h, config/m88k/xm-cxux.h,
4960 config/m88k/xm-delta88.h, config/m88k/xm-delta88v4.h,
4961 config/m88k/xm-dgux.h, config/mcore/tm-mcore.h,
4962 config/mips/nm-irix3.h, config/mips/nm-irix4.h,
4963 config/mips/nm-irix5.h, config/mips/nm-mips.h,
4964 config/mips/nm-news-mips.h, config/mips/tm-bigmips.h,
4965 config/mips/tm-embed.h, config/mips/tm-embed64.h,
4966 config/mips/tm-embedl.h, config/mips/tm-embedl64.h,
4967 config/mips/tm-irix3.h, config/mips/tm-irix5.h,
4968 config/mips/tm-mips.h, config/mips/tm-mips64.h,
4969 config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h,
4970 config/mips/tm-tx39.h, config/mips/tm-tx39l.h,
4971 config/mips/tm-vr4100.h, config/mips/tm-vr4300.h,
4972 config/mips/tm-vr4300el.h, config/mips/tm-vr4xxx.h,
4973 config/mips/tm-vr4xxxel.h, config/mips/tm-vr5000.h,
4974 config/mips/tm-vr5000el.h, config/mips/xm-irix3.h,
4975 config/mips/xm-irix4.h, config/mips/xm-irix5.h,
4976 config/mips/xm-mips.h, config/mips/xm-mipsm3.h,
4977 config/mips/xm-mipsv4.h, config/mips/xm-news-mips.h,
4978 config/mips/xm-riscos.h, config/mn10200/tm-mn10200.h,
4979 config/mn10300/tm-mn10300.h, config/nm-gnu.h,
4980 config/nm-linux.h, config/nm-lynx.h, config/nm-m3.h,
4981 config/nm-sysv4.h, config/none/nm-none.h,
4982 config/none/tm-none.h, config/none/xm-none.h,
4983 config/ns32k/nm-nbsd.h, config/ns32k/nm-umax.h,
4984 config/ns32k/tm-merlin.h, config/ns32k/tm-nbsd.h,
4985 config/ns32k/tm-ns32km3.h, config/ns32k/tm-umax.h,
4986 config/ns32k/xm-merlin.h, config/ns32k/xm-ns32km3.h,
4987 config/pa/nm-hppab.h, config/pa/nm-hppah.h,
4988 config/pa/nm-hppao.h, config/pa/tm-hppa.h,
4989 config/pa/tm-hppa64.h, config/pa/tm-hppah.h,
4990 config/pa/xm-hppab.h, config/pa/xm-hppah.h,
4991 config/powerpc/nm-aix.h, config/powerpc/nm-linux.h,
4992 config/powerpc/nm-macos.h, config/powerpc/nm-nbsd.h,
4993 config/powerpc/tm-cygwin.h, config/powerpc/tm-linux.h,
4994 config/powerpc/tm-macos.h, config/powerpc/tm-ppc-aix.h,
4995 config/powerpc/tm-ppc-eabi.h, config/powerpc/tm-ppc-nw.h,
4996 config/powerpc/tm-ppcle-eabi.h, config/powerpc/tm-solaris.h,
4997 config/powerpc/xm-aix.h, config/powerpc/xm-linux.h,
4998 config/powerpc/xm-mpw.h, config/rs6000/nm-rs6000.h,
4999 config/rs6000/tm-rs6000.h, config/rs6000/tm-rs6000ly.h,
5000 config/rs6000/xm-aix4.h, config/rs6000/xm-rs6000.h,
5001 config/sh/tm-linux.h, config/sh/tm-sh.h, config/sh/tm-wince.h,
5002 config/sparc/nm-linux.h, config/sparc/nm-nbsd.h,
5003 config/sparc/nm-nbsdelf.h, config/sparc/nm-sparclynx.h,
5004 config/sparc/nm-sun4os4.h, config/sparc/nm-sun4sol2.h,
5005 config/sparc/tm-linux.h, config/sparc/tm-sp64.h,
5006 config/sparc/tm-sp64sim.h, config/sparc/tm-sparc.h,
5007 config/sparc/tm-sparclet.h, config/sparc/tm-sparclite.h,
5008 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
5009 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
5010 config/sparc/xm-sun4os4.h, config/sparc/xm-sun4sol2.h,
5011 config/tic80/tm-tic80.h, config/tm-linux.h, config/tm-lynx.h,
5012 config/tm-sysv4.h, config/v850/tm-v850.h, config/vax/tm-vax.h,
5013 config/w65/tm-w65.h, config/xm-aix4.h, config/xm-lynx.h,
5014 config/xm-mpw.h, config/xm-nbsd.h, config/xm-sysv4.h,
5015 config/z8k/tm-z8k.h, configure.in, core-aout.c, core-regset.c,
5016 core-sol2.c, corefile.c, corelow.c, cp-valprint.c,
5017 cpu32bug-rom.c, cxux-nat.c, d10v-tdep.c, d30v-tdep.c,
5018 dbug-rom.c, dbxread.c, dcache.c, dcache.h, defs.h,
5019 delta68-nat.c, demangle.c, dink32-rom.c, dpx2-nat.c, dsrec.c,
5020 dstread.c, dve3900-rom.c, dwarf2read.c, dwarfread.c,
5021 elfread.c, environ.c, environ.h, eval.c, event-loop.c,
5022 event-loop.h, event-top.c, exec.c, expprint.c, f-exp.y,
5023 f-lang.c, f-lang.h, f-typeprint.c, f-valprint.c, findvar.c,
5024 fork-child.c, fr30-tdep.c, frame.c, frame.h, gdb-events.c,
5025 gdb-events.h, gdb-events.sh, gdb-stabs.h, gdb.1, gdb_string.h,
5026 gdb_thread_db.h, gdbcmd.h, gdbcore.h, gdbserver/Makefile.in,
5027 gdbserver/gdbreplay.c, gdbserver/gdbserver.1,
5028 gdbserver/low-hppabsd.c, gdbserver/low-linux.c,
5029 gdbserver/low-lynx.c, gdbserver/low-nbsd.c,
5030 gdbserver/low-sim.c, gdbserver/low-sparc.c,
5031 gdbserver/low-sun3.c, gdbserver/remote-utils.c,
5032 gdbserver/server.c, gdbserver/server.h, gdbserver/utils.c,
5033 gdbthread.h, gdbtypes.c, gdbtypes.h, gnu-nat.c, gnu-nat.h,
5034 gnu-regex.c, gnu-regex.h, h8300-tdep.c, h8500-tdep.c,
5035 hp-psymtab-read.c, hp-symtab-read.c, hp300ux-nat.c,
5036 hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c, hpread.c,
5037 hpread.h, hpux-thread.c, i386-tdep.c, i386aix-nat.c,
5038 i386b-nat.c, i386gnu-nat.c, i386ly-tdep.c, i386m3-nat.c,
5039 i386mach-nat.c, i386nbsd-nat.c, i386nbsd-tdep.c, i386v-nat.c,
5040 i386v4-nat.c, i387-tdep.c, i960-tdep.c, infcmd.c, inferior.h,
5041 inflow.c, infptrace.c, infrun.c, inftarg.c, infttrace.c,
5042 irix4-nat.c, irix5-nat.c, isi-xdep.c, jv-exp.y, jv-lang.c,
5043 jv-lang.h, jv-typeprint.c, jv-valprint.c, kdb-start.c,
5044 kod-cisco.c, kod.c, language.c, language.h, lin-thread.c,
5045 linespec.c, linespec.h, linux-thread.c, lynx-nat.c, m2-exp.y,
5046 m2-lang.c, m2-lang.h, m2-typeprint.c, m2-valprint.c, m3-nat.c,
5047 m32r-rom.c, m32r-tdep.c, m68k-tdep.c, m68klinux-nat.c,
5048 m68knbsd-nat.c, m88k-nat.c, m88k-tdep.c, mac-nat.c,
5049 mac-xdep.c, main.c, maint.c, mcore-rom.c, mcore-tdep.c,
5050 mdebugread.c, mem-break.c, minimon.h, minsyms.c, mips-nat.c,
5051 mips-tdep.c, mipsm3-nat.c, mipsread.c, mipsv4-nat.c,
5052 mn10200-tdep.c, mn10300-tdep.c, mon960-rom.c, monitor.c,
5053 monitor.h, news-xdep.c, nindy-share/env.h, nindy-tdep.c,
5054 nlm/Makefile.in, nlmread.c, ns32k-tdep.c, ns32km3-nat.c,
5055 ns32knbsd-nat.c, objfiles.c, objfiles.h, ocd.c, ocd.h,
5056 op50-rom.c, os9kread.c, osfsolib.c, p-exp.y, pa64solib.c,
5057 pa64solib.h, parse.c, parser-defs.h, partial-stab.h,
5058 ppc-bdm.c, ppc-linux-nat.c, ppc-linux-tdep.c, ppcbug-rom.c,
5059 ppcnbsd-nat.c, printcmd.c, proc-api.c, proc-events.c,
5060 proc-flags.c, proc-utils.h, proc-why.c, procfs.c, ptx4-nat.c,
5061 rdi-share/Makefile.in, rdi-share/aclocal.m4, regcache.c,
5062 regcache.h, remote-adapt.c, remote-array.c, remote-bug.c,
5063 remote-e7000.c, remote-eb.c, remote-es.c, remote-est.c,
5064 remote-hms.c, remote-mips.c, remote-mm.c, remote-nindy.c,
5065 remote-nrom.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
5066 remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
5067 remote-utils.c, remote-utils.h, remote-vx.c, remote.c,
5068 remote.h, reply_mig_hack.awk, rom68k-rom.c, rs6000-nat.c,
5069 rs6000-tdep.c, scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h,
5070 scm-valprint.c, ser-e7kpc.c, ser-mac.c, ser-ocd.c, ser-pipe.c,
5071 ser-tcp.c, ser-unix.c, serial.c, serial.h, sh-tdep.c,
5072 sh3-rom.c, sol-thread.c, solib-aix5.c, solib-svr4.c, solib.c,
5073 solib.h, solist.h, somread.c, somsolib.c, somsolib.h,
5074 source.c, sparc-nat.c, sparc-tdep.c, sparcl-tdep.c,
5075 sparclet-rom.c, srec.h, stabsread.c, stabsread.h, stack.c,
5076 standalone.c, stop-gdb.c, stuff.c, sun3-nat.c, sun386-nat.c,
5077 symfile.c, symfile.h, symm-nat.c, symm-tdep.c, symmisc.c,
5078 symtab.c, symtab.h, target.c, target.h, terminal.h, thread.c,
5079 tic80-tdep.c, top.c, top.h, tracepoint.c, tracepoint.h,
5080 typeprint.c, ui-file.c, ui-file.h, ui-out.h, ultra3-nat.c,
5081 ultra3-xdep.c, umax-xdep.c, utils.c, v850-tdep.c, v850ice.c,
5082 valarith.c, valops.c, valprint.c, value.h, values.c, varobj.h,
5083 vax-tdep.c, version.h, vx-share/vxWorks.h, vx-share/xdr_ld.c,
5084 vx-share/xdr_ptrace.c, vx-share/xdr_ptrace.h,
5085 vx-share/xdr_rdb.c, w65-tdep.c, w89k-rom.c, win32-nat.c,
5086 wrapper.c, wrapper.h, xcoffread.c, xcoffsolib.c, xcoffsolib.h,
5087 xmodem.c, xmodem.h, z8k-tdep.c: Update/correct copyright
5088 notices.
5089
5090 2001-03-05 Kevin Buettner <kevinb@redhat.com>
5091
5092 * acconfig.h (HAVE_PRSYSENT_T, HAVE_PR_SIGSET_T,
5093 HAVE_PR_SIGACTION64_T, HAVE_PR_SIGINFO64_T): New configure
5094 macros.
5095 * configure.in (prsysent_t, pr_sigset_t, pr_sigaction64_t,
5096 pr_siginfo64_t): Test for these typedefs in <sys/procfs.h>.
5097 (sys/fault.h, sys/select.h): Test for presence of these
5098 header files.
5099 (ia64-*-aix*): Define NEW_PROC_API for this host.
5100 * configure: Regenerate.
5101 * config.in: Regenerate.
5102
5103 * configure.host (ia64-*-aix*): New host.
5104 * configure.tgt (ia64-*-aix*): New target.
5105
5106 2001-03-05 Andrew Cagney <ac131313@redhat.com>
5107
5108 * TODO (GDB 5.1 Known Problems): Document z8k as broken.
5109
5110 Mon Mar 5 11:56:09 2001 Christopher Faylor <cgf@cygnus.com>
5111
5112 * wince.c: Change realloc to xrealloc throughout.
5113 (handle_load_dll): Use void * rather than PTR in argument.
5114
5115 2001-03-04 Andrew Cagney <ac131313@redhat.com>
5116
5117 * ocd.h (ocd_xfer_memory): Add ``attrib'' parameter.
5118 * ocd.c (ocd_xfer_memory): Ditto.
5119 * ser-ocd.c (ocd_setstopbits): New function. Add to ocd_ops.
5120 * MAINTAINERS: Document powerpc-eabi and powerpcle-eabi as
5121 buildable with ,-Werror.
5122
5123 * Makefile.in (symfile_h): Define.
5124 (mcore-tdep.o): Add $(symfile_h), $(gdbcore_h) and $(inferior_h).
5125 * mcore-tdep.c: Include "symfile.h", "gdbcore.h" and "inferior.h".
5126 * MAINTAINERS: Document mcore-elf and mcore-pe as buildable with
5127 ,-Werror.
5128
5129 * dsrec.c (make_srec): Fix internal_error fmt arg.
5130 * MAINTAINERS: Document i960-coff as buildable with ,-Werror.
5131
5132 2001-03-03 Kevin Buettner <kevinb@redhat.com>
5133
5134 * solib-aix5.c (aix5_relocate_main_executable): Don't use ANOFFSET
5135 as an lvalue.
5136
5137 2001-03-02 Andrew Cagney <ac131313@redhat.com>
5138
5139 * MAINTAINERS (paper trail): Update.
5140
5141 * CONTRIBUTE: Update note on ``Fix PR gdb/4706'' convention.
5142
5143 2001-03-02 Andrew Cagney <ac131313@redhat.com>
5144
5145 From 2001-03-01 Tom Rix <trix@redhat.com>:
5146 * mn10200-tdep.c (mn10200_frame_chain): Pass 0 for ``pc''
5147 parameter to mn10200_analyze_prologue.
5148
5149 * config/mn10200/tm-mn10200.h: Include "regcache.h".
5150 * MAINTAINERS: Document that mn10200-elf target is buildable.
5151
5152 2001-03-02 Kevin Buettner <kevinb@redhat.com>
5153
5154 * config/ia64/xm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): Move defines
5155 from here...
5156 * config/ia64/nm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): ...to here.
5157 (MONTEREY): Don't define.
5158 (AIX5): Define.
5159
5160 2001-03-02 Matt Hiller <hiller@redhat.com>
5161
5162 * config/mn10300/tm-mn10300.h (E0_REGNUM): Correct to 15.
5163
5164 2001-03-02 Kevin Buettner <kevinb@redhat.com>
5165
5166 * sparc-nat.c (sparc-nat.c): Don't include self.
5167
5168 2001-03-01 J.T. Conklin <jtc@redback.com>
5169
5170 * defs.h (__CYGWIN__): Moved conditional which defines __CYGWIN__
5171 if __CYGWIN32__ is set from here.
5172 * config/i386/xm-cygwin.h: To here.
5173 * config/powerpc/xm-cygwin.h: To here.
5174
5175 * i386-stub.c (handle_exception): Use 'T' response packet.
5176
5177 2001-03-01 Michael Snyder <msnyder@mvstp600e.cygnus.com>
5178
5179 * m32r-tdep.c: Fix cut and paste error in comment.
5180
5181 2001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
5182
5183 * symtab.c (print_msymbol_info): Print addresses by portable method
5184 longest_local_hex_string_custom. Allow for 64-bit addresses.
5185
5186 2001-03-01 J.T. Conklin <jtc@redback.com>
5187
5188 * gdbtypes.h (builtin_type_f_integer): Removed duplicate declaration.
5189 (MAX_OF_TYPE): Wrap macro definition in parenthesis.
5190 (MIN_OF_TYPE): Likewise.
5191
5192 * memattr.h (mem_access_mode): Removed extraneous trailing comma.
5193
5194 2001-03-01 Andrew Cagney <ac131313@redhat.com>
5195
5196 * Makefile.in (os9kread.o): Do not compile with WERROR_CFLAGS.
5197 * os9kread.c (os9k_process_one_symbol): Add assert to detect
5198 ``loses if sizeof (char *) > sizeof (int)''.
5199
5200 2001-03-01 Andrew Cagney <ac131313@redhat.com>
5201
5202 * gdb_assert.h: Document pragmatics behind gdb_assert's case.
5203
5204 2001-03-01 Andrew Cagney <ac131313@redhat.com>
5205
5206 * Makefile.in (gdbtk-cmds.o): Add $(regcache_h) to dependency
5207 lists.
5208 (mi-main.o): Ditto.
5209
5210 2001-03-01 Andrew Cagney <ac131313@redhat.com>
5211
5212 * Makefile.in (regcache_h): Define. Add $(regcache_h) to
5213 dependency lists.
5214
5215 2001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
5216
5217 * printcmd.c (print_address_numeric): Update comments to refer
5218 to sizeof addr, not sizeof pointer.
5219 (x_command): Remove needless whitespace (shorten long line).
5220
5221 * breakpoint.c (print_one_breakpoint): Formatting clean-up.
5222 (read_memory_nobpt): Ditto.
5223 (ep_is_catchpoint): Ditto.
5224 (ep_is_shlib_catchpoint): Ditto.
5225 (ep_is_exception_catchpoint): Ditto.
5226 (describe_other_breakpoints): Ditto.
5227
5228 Wed Feb 28 20:37:36 2001 Andrew Cagney <ac131313@redhat.com>
5229
5230 * regcache.h (register_valid): Fix comment documenting valid
5231 states.
5232
5233 Tue Feb 27 23:56:23 2001 Andrew Cagney <ac131313@redhat.com>
5234
5235 From Steven Johnson:
5236 * regcache.h: New file.
5237
5238 * value.h (read_register_bytes, read_register_gen)
5239 (write_register_gen, write_register_bytes)
5240 (read_register, read_register_pid)
5241 (read_signed_register, read_signed_register_pid)
5242 (write_register, write_register_pid)
5243 (register_cached, set_register_cached)
5244 (register_changed, register_buffer)
5245 (registers_changed, supply_register): Move declaration from here.
5246 * regcache.h: To here.
5247 * gdbcore.h (registers_fetched): Ditto.
5248 * inferior.h (registers, registers_valid): Ditto.
5249
5250 * regcache.c (generic_target_read_pc, read_pc_pid, read_pc,
5251 generic_target_write_pc, write_pc_pid, write_pc,
5252 generic_target_read_sp, read_sp, generic_target_write_sp,
5253 write_sp, generic_target_read_fp, read_fp,
5254 generic_target_write_fp, write_fp): Add note that these functions
5255 will be moved from this file.
5256
5257 * a29k-tdep.c: Include "regcache.h".
5258 * a68v-nat.c: Ditto.
5259 * abug-rom.c: Ditto.
5260 * alpha-nat.c: Ditto.
5261 * alpha-tdep.c: Ditto.
5262 * alphabsd-nat.c: Ditto.
5263 * arc-tdep.c: Ditto.
5264 * arm-linux-nat.c: Ditto.
5265 * arm-linux-tdep.c: Ditto.
5266 * arm-tdep.c: Ditto.
5267 * blockframe.c: Ditto.
5268 * core-aout.c: Ditto.
5269 * core-sol2.c: Ditto.
5270 * corelow.c: Ditto.
5271 * cpu32bug-rom.c: Ditto.
5272 * cxux-nat.c: Ditto.
5273 * d10v-tdep.c: Ditto.
5274 * d30v-tdep.c: Ditto.
5275 * dbug-rom.c: Ditto.
5276 * dink32-rom.c: Ditto.
5277 * dve3900-rom.c: Ditto.
5278 * findvar.c: Ditto.
5279 * fr30-tdep.c: Ditto.
5280 * frame.c: Ditto.
5281 * go32-nat.c: Ditto.
5282 * h8300-tdep.c: Ditto.
5283 * h8500-tdep.c: Ditto.
5284 * hp300ux-nat.c: Ditto.
5285 * hppa-tdep.c: Ditto.
5286 * hppab-nat.c: Ditto.
5287 * hppah-nat.c: Ditto.
5288 * hppam3-nat.c: Ditto.
5289 * hpux-thread.c: Ditto.
5290 * i386-linux-nat.c: Ditto.
5291 * i386-linux-tdep.c: Ditto.
5292 * i386-tdep.c: Ditto.
5293 * i386aix-nat.c: Ditto.
5294 * i386b-nat.c: Ditto.
5295 * i386bsd-nat.c: Ditto.
5296 * i386gnu-nat.c: Ditto.
5297 * i386ly-tdep.c: Ditto.
5298 * i386m3-nat.c: Ditto.
5299 * i386mach-nat.c: Ditto.
5300 * i386nbsd-nat.c: Ditto.
5301 * i386v4-nat.c: Ditto.
5302 * i387-nat.c: Ditto.
5303 * i387-tdep.c: Ditto.
5304 * i960-tdep.c: Ditto.
5305 * ia64-aix-nat.c: Ditto.
5306 * ia64-linux-nat.c: Ditto.
5307 * ia64-tdep.c: Ditto.
5308 * infptrace.c: Ditto.
5309 * infrun.c: Ditto.
5310 * irix4-nat.c: Ditto.
5311 * irix5-nat.c: Ditto.
5312 * lin-lwp.c: Ditto.
5313 * lin-thread.c: Ditto.
5314 * lynx-nat.c: Ditto.
5315 * m3-nat.c: Ditto.
5316 * m32r-rom.c: Ditto.
5317 * m32r-tdep.c: Ditto.
5318 * m68hc11-tdep.c: Ditto.
5319 * m68k-tdep.c: Ditto.
5320 * m68klinux-nat.c: Ditto.
5321 * m68knbsd-nat.c: Ditto.
5322 * m68knbsd-tdep.c: Ditto.
5323 * m88k-nat.c: Ditto.
5324 * m88k-tdep.c: Ditto.
5325 * mac-nat.c: Ditto.
5326 * mcore-rom.c: Ditto.
5327 * mcore-tdep.c: Ditto.
5328 * mi/mi-main.c: Ditto.
5329 * mips-nat.c: Ditto.
5330 * mips-tdep.c: Ditto.
5331 * mipsm3-nat.c: Ditto.
5332 * mipsv4-nat.c: Ditto.
5333 * mn10200-tdep.c: Ditto.
5334 * mn10300-tdep.c: Ditto.
5335 * monitor.c: Ditto.
5336 * ns32km3-nat.c: Ditto.
5337 * ns32knbsd-nat.c: Ditto.
5338 * ocd.c: Ditto.
5339 * pa64solib.c: Ditto.
5340 * ppc-bdm.c: Ditto.
5341 * ppc-linux-nat.c: Ditto.
5342 * ppc-linux-tdep.c: Ditto.
5343 * ppcbug-rom.c: Ditto.
5344 * ppcnbsd-nat.c: Ditto.
5345 * ptx4-nat.c: Ditto.
5346 * regcache.c: Ditto.
5347 * remote-adapt.c: Ditto.
5348 * remote-array.c: Ditto.
5349 * remote-bug.c: Ditto.
5350 * remote-e7000.c: Ditto.
5351 * remote-eb.c: Ditto.
5352 * remote-es.c: Ditto.
5353 * remote-est.c: Ditto.
5354 * remote-hms.c: Ditto.
5355 * remote-mips.c: Ditto.
5356 * remote-mm.c: Ditto.
5357 * remote-nindy.c: Ditto.
5358 * remote-os9k.c: Ditto.
5359 * remote-rdi.c: Ditto.
5360 * remote-rdp.c: Ditto.
5361 * remote-sds.c: Ditto.
5362 * remote-sim.c: Ditto.
5363 * remote-st.c: Ditto.
5364 * remote-udi.c: Ditto.
5365 * remote-utils.c: Ditto.
5366 * remote-vx.c: Ditto.
5367 * remote-vx29k.c: Ditto.
5368 * remote-vx68.c: Ditto.
5369 * remote-vx960.c: Ditto.
5370 * remote-vxmips.c: Ditto.
5371 * remote-vxsparc.c: Ditto.
5372 * remote.c: Ditto.
5373 * rom68k-rom.c: Ditto.
5374 * rs6000-nat.c: Ditto.
5375 * rs6000-tdep.c: Ditto.
5376 * sh-tdep.c: Ditto.
5377 * sh3-rom.c: Ditto.
5378 * sol-thread.c: Ditto.
5379 * solib-svr4.c: Ditto.
5380 * somsolib.c: Ditto.
5381 * sparc-nat.c: Ditto.
5382 * sparc-tdep.c: Ditto.
5383 * sparcl-tdep.c: Ditto.
5384 * sparclet-rom.c: Ditto.
5385 * sun3-nat.c: Ditto.
5386 * sun386-nat.c: Ditto.
5387 * symm-nat.c: Ditto.
5388 * target.c: Ditto.
5389 * thread-db.c: Ditto.
5390 * thread.c: Ditto.
5391 * tic80-tdep.c: Ditto.
5392 * tracepoint.c: Ditto.
5393 * ultra3-nat.c: Ditto.
5394 * umax-xdep.c: Ditto.
5395 * uw-thread.c: Ditto.
5396 * v850-tdep.c: Ditto.
5397 * v850ice.c: Ditto.
5398 * valops.c: Ditto.
5399 * w65-tdep.c: Ditto.
5400 * w89k-rom.c: Ditto.
5401 * win32-nat.c: Ditto.
5402 * wince.c: Ditto.
5403 * z8k-tdep.c: Ditto.
5404
5405 2001-02-28 Matt Hiller <hiller@redhat.com>
5406
5407 * MAINTAINERS: Add Matt Hiller to Write After Approval list.
5408
5409 2001-02-27 Matt Hiller <hiller@redhat.com>
5410
5411 * mn10300-tdep.c (mn10300_stab_reg_to_regnum): New function.
5412 (mn10300_gdbarch_init): Set appropriate elements of gdbarch to
5413 mn10300_stab_reg_to_regnum.
5414
5415 Tue Feb 27 16:56:13 2001 David Taylor <taylor@redhat.com>
5416
5417 * symtab.c (search_symbols): Fix off by one error in test for
5418 error.
5419
5420 2001-02-23 Andrew Cagney <ac131313@redhat.com>
5421
5422 * config/sparc/sp64linux.mt: New file.
5423 * configure.tgt: Recognize sparc64-*-linux* as a sp64linux target.
5424 * configure.host: Recognize sparc64-*-linux* as a linux host.
5425
5426 From 2000-03-17 Jakub Jelinek <jakub@redhat.com>:
5427 * config/sparc/tm-sp64linux.h: New file.
5428
5429 2001-02-24 Kevin Buettner <kevinb@redhat.com>
5430
5431 * buildsym.c (push_subfile, pop_subfile): Replace call to abort()
5432 with call to internal_error().
5433 * dbxread.c (process_one_symbol): Likewise.
5434 * exec.c (build_section_table, xfer_memory): Likewise.
5435 * h8500-tdep.c (h8500_register_size, h8500_register_virtual_type):
5436 Likewise.
5437 * hpread.c (hpread_type_translate, hpread_read_array_type)
5438 (hpread_type_lookup): Likewise.
5439 * i386-tdep.c (gdb_print_insn_i386): Likewise.
5440 * i960-tdep.c (mem): Likewise
5441 * inflow.c (set_sigio_trap, clear_sigio_trap): Likewise.
5442 * infptrace.c (child_resume): Likewise.
5443 * infttrace.c (_initialize_infttrace): Likewise.
5444 * language.c (binop_result_type, add_language): Likewise.
5445 * lynx-nat.c (store_inferior_registers): Likewise.
5446 * m3-nat.c (port_chain_insert, m3_trace_me): Likewise.
5447 * mdebugread.c (parse_partial_symbols): Likewise.
5448 * monitor.c (monitor_printf_noecho, monitor_printf)
5449 (monitor_dump_regs): Likewise.
5450 * ocd.c (stu_put_packet): Likewise.
5451 * printcmd.c (decode_format, print_scalar_formatted): Likewise.
5452 * remote-bug.c (bug_open): Likewise.
5453 * remote-e7000.c (fetch_regs_from_dump, e7000_wait): Likewise.
5454 * remote-es.c (es1800_read_bytes): Likewise.
5455 * remote-mips.c (common_breakpoint): Likewise.
5456 * remote-rdp.c (send_rdp): Likewise.
5457 * remote-sds.c (putmessage): Likewise.
5458 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
5459 Likewise.
5460 * sparcl-tdep.c (sparclite_download): Likewise.
5461 * symtab.c (lookup_partial_symbol): Likewise.
5462 * target.c (push_target, pop_target, initialize_targets): Likewise.
5463 * utils.c (internal_verror, malloc_botch, wrap_here, decimal2str):
5464 Likewise.
5465 * valprint.c (print_decimal, print_longest, print_longest)
5466 (strcat_longest): Likewise.
5467 * w65-tdep.c (init_frame_pc, w65_push_dummy_frame): Likewise.
5468 * xmodem.c (xmodem_send_packet): Likewise.
5469 * z8k-tdep.c (init_frame_pc, z8k_push_dummy_frame): Likewise.
5470 * config/h8500/tm-h8500.h (STORE_STRUCT_RETURN): Likewise.
5471 * config/mn10200/tm-mn10200.h (EXTRACT_RETURN_VALUE)
5472 (STORE_RETURN_VALUE): Likewise.
5473 * config/ns32k/nm-umax.h (REGISTER_U_ADDR): Likewise.
5474 * config/ns32k/xm-merlin.h (REGISTER_U_ADDR): Likewise.
5475 * config/z8k/tm-z8k.h (STORE_STRUCT_RETURN, STORE_RETURN_VALUE):
5476 Likewise.
5477
5478 2001-02-23 Andrew Cagney <ac131313@redhat.com>
5479
5480 * CONTRIBUTE: Document how to cite a problem report.
5481 * TODO: Note need to replace CONTRIBUTE with generated file.
5482
5483 * CONTRIBUTE: Mention that patches do not need to include the
5484 generated files gdbarch.h and gdbarch.c.
5485
5486 2001-02-21 Andrew Cagney <ac131313@redhat.com>
5487
5488 * value.h (get_saved_register): Move from here.
5489 * frame.h: To here.
5490
5491 2001-02-21 Kevin Buettner <kevinb@redhat.com>
5492
5493 * solib.h (in_svr4_dynsym_resolve_code): Delete declaration.
5494 (in_solib_dynsym_resolve_code): Add declaration.
5495 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Changed define to invoke
5496 in_solib_dynsym_resolve_code() rather than
5497 in_svr4_dynsym_resolve_code(). Also, removed the ifdefs
5498 which caused this macro to only be defined when
5499 SVR4_SHARED_LIBS is defined.
5500 * solib.c (in_solib_dynsym_resolve_code): New function.
5501 * solist.h (struct target_so_ops): Add new member
5502 in_dynsym_resolve_code.
5503 * solib-aix5.c (aix5_in_dynsym_resolve_code): Renamed from
5504 in_svr4_dynsym_resolve_code. Also, made static.
5505 (_initialize_aix5_solib): Initialize in_dynsym_resolve_code
5506 member in aix5_so_ops.
5507 * solib-svr4.c (svr4_in_dynsym_resolve_code): Renamed from
5508 in_svr4_dynsym_resolve_code. Also, added second version
5509 of this function which will be used when SVR4_SHARED_LIBS
5510 is not defined.
5511 (_initialize_svr4_solib): Initialize in_dynsym_resolve_code
5512 member in svr4_so_ops.
5513
5514 * ia64-aix-nat.c, ia64-aix-tdep.c, config/ia64/aix.mh,
5515 config/ia64/aix.mt, config/ia64/nm-aix.h, config/ia64/tm-aix.h,
5516 config/ia64/xm-aix.h: New files.
5517 * ia64-tdep.c (_initialize_ia64_tdep): Remove declaration.
5518 (ia64_aix_sigcontext_register_address): New declaration.
5519 (ia64_gdbarch_init): Provide for initialization of
5520 sigcontext_register_address member of struct tdep when
5521 on target is detected to be running AIX.
5522 * config/ia64/linux.mt (TDEPFILES): Add ia64-aix-tdep.o to
5523 this list.
5524
5525 2001-02-20 Kevin Buettner <kevinb@redhat.com>
5526
5527 * ia64-tdep.c (ia64_frameless_function_invocation): Implement.
5528 * config/ia64/linux.mh (NATDEPFILES): Use thread-db.o and lin-lwp.o
5529 for thread support instead of linux-thread.o and lin-thread.o.
5530 * config/ia64/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS,
5531 ATTACH_LWP): Define to use the following lin-lwp.c functions...
5532 (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals,
5533 lin_lwp_attach_lwp): Declare.
5534
5535 2001-02-20 Andrew Cagney <ac131313@redhat.com>
5536
5537 * mips-tdep.c (do_fp_register_row, do_fp_register_row): Fix printf
5538 formatting.
5539
5540 2001-02-20 Kevin Buettner <kevinb@redhat.com>
5541
5542 * solib-aix5.c (solib-svr4.h): Remove include.
5543 (solib_break_names): Delete names which aren't actually
5544 used by AIX5.
5545 (bkpt_names): Remove.
5546 (aix5_relocate_main_executable, bfd_lookup_symbol): Replace calls
5547 to STREQ() with equivalent calls to strcmp().
5548 (in_svr4_dynsym_resolve_code, enable_break, bfd_lookup_symbol,
5549 aix5_solib_create_inferior_hook): Revise comments.
5550 (enable_break): Remove old ``bkpt_names'' code.
5551
5552 2001-02-19 Andrew Cagney <ac131313@redhat.com>
5553
5554 * Makefile.in (SFILES): Add frame.c .
5555 (COMMON_OBS): Add frame.o .
5556 (frame.o): New target.
5557
5558 * frame.c (find_saved_register):
5559 (default_get_saved_register):
5560 (get_saved_register):
5561 (read_relative_register_raw_bytes_for_frame):
5562 (read_relative_register_raw_bytes): Moved to here.
5563 * regcache.c: From here.
5564
5565 2001-02-20 Kevin Buettner <kevinb@redhat.com>
5566
5567 * solib-aix5.c: New file.
5568
5569 2001-02-20 Martin M. Hunt <hunt@redhat.com>
5570
5571 * solib.c (info_sharedlibrary_command): Don't assume pointers
5572 are the same size of long, call longest_local_hex_string_custom().
5573
5574 * solib-svr4.c (LM_ADDR): LM_ADDR is a signed offset, so
5575 extract_signed_integer() should be called instead of
5576 extract_address().
5577
5578 2001-02-20 Martin M. Hunt <hunt@redhat.com>
5579
5580 * MAINTAINERS: Add Martin Hunt to Write After Approval list.
5581
5582 2001-02-19 Andrew Cagney <ac131313@redhat.com>
5583
5584 Frm 2001-02-09 Jim Kingdon <jkingdon@engr.sgi.com>:
5585 * mips-tdep.c (mips_register_raw_size): If FP_REGISTER_DOUBLE,
5586 then floating point registers are 8 bytes.
5587
5588 2001-02-19 Michael Snyder <msnyder@mvstp600e.cygnus.com>
5589
5590 * parse.c (write_exp_msymbol): Make the type CORE_ADDR, to
5591 accomodate 64-bit addresses.
5592
5593 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5594
5595 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>
5596 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux, not
5597 lookup_symbol, when trying to find a symbol with a mangled name,
5598 to avoid infinite recursion.
5599
5600 2001-02-18 Andrew Cagney <ac131313@redhat.com>
5601
5602 * TODO (5.2): Mention G++ 3.0 ABI. General cleanups.
5603
5604 2001-02-19 Jonathan Larmour <jlarmour@redhat.com>
5605
5606 * arm-tdep.c (check_prologue_cache): Fix off by 1 error.
5607 (save_prologue_cache): Ditto.
5608
5609 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5610
5611 From: innadadadavida@yahoo.com:
5612 * partial-stab.h (switch): Check that pst is not null
5613 before dereferencing it.
5614
5615 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5616
5617 From Andrew Cagney <cagney@b1.cygnus.com>:
5618 * symfile.c (add_symbol_file_command): Always initialize
5619 my_cleanup using a NULL cleanup.
5620
5621 2001-02-19 Eli Zaretskii <eliz@is.elta.co.il>
5622
5623 * demangle.c (demangling_style_names): New variable.
5624 (_initialize_demangler): Fill demangling_style_names with the
5625 names of known demangling styles from libiberty_demanglers[]. Use
5626 add_set_enum_cmd instead of add_set_cmd, to get completion on
5627 demangling style names.
5628
5629 * proc-api.c (_initialize_proc_api): Make `procfs-file' use
5630 file-name completion.
5631
5632 * remote-rdi.c (_initialize_remote_rdi): Ditto for `rdilogfile'.
5633
5634 * solib.c (_initialize_solib): Ditto for `solib-search-path' and
5635 `solib-absolute-prefix'.
5636
5637 * tracepoint.c (_initialize_tracepoint): Ditto for
5638 `save-tracepoints'.
5639
5640 * win32-nat.c (_initialize_inftarg): Ditto for `dll-symbols'.
5641
5642 * cli/cli-cmds.c (init_cli_cmds): Make `shell' and `make' use
5643 file-name completion.
5644
5645 * infcmd.c (_initialize_infcmd): Make the following commands use
5646 the file-name completer: `tty', `args', `path', `paths', and
5647 `run'.
5648
5649 2001-02-18 Eli Zaretskii <eliz@is.elta.co.il>
5650
5651 * go32-nat.c: Include i387-nat.h.
5652 (fetch_register): New function, uses some of the guts of
5653 go32_fetch_registers and calls i387_supply_register.
5654 (go32_fetch_registers): Most of the code moved into
5655 fetch_register. Use i387_supply_fsave.
5656 (store_register): Use i387_fill_fsave instead of custom code.
5657 (go32_store_registers): Use i387_fill_fsave.
5658
5659 * Makefile.in (go32-nat.o): Depend on i387-nat.h.
5660
5661 * config/i386/go32.mh (NATDEPFILES): Add i387-nat.o.
5662
5663 * completer.c (gdb_completer_file_name_break_characters): Remove
5664 slash from file-name break characters.
5665 [__MSDOS__]: Special definition for DOS/Windows file names.
5666 (line_completion_function): When completing on file names, bump
5667 `p' to the first file-name constituent character of `word', before
5668 invoking the completer.
5669
5670 2001-02-17 Mark Kettenis <kettenis@gnu.org>
5671
5672 * i387-nat.c: Include "i387-nat.h". Use regnum instead of regno
5673 consistently for parameter names. Fix comments accordingly.
5674 (i387_supply_register): New function.
5675 (i387_supply_fsave): Implement using i387_supply_register.
5676 * i387-nat.h: Use regnum instead of regno consistently for
5677 parameter names. Fix comments accordingly.
5678 (i387_supply_register): New prototype.
5679
5680 2001-02-16 Michael Snyder <msnyder@mvstp600e.cygnus.com>
5681
5682 * remote.c (build_remote_gdbarch_data): Use new TARGET_ADDR_BIT
5683 instead of TARGET_PTR_BIT (to support Harvard architectures).
5684
5685 2001-02-16 Andrew Cagney <ac131313@redhat.com>
5686
5687 From 2001-02-11 Paul Hilfinger <hilfingr@lisbon.int.act-europe.fr>
5688 * hpux-thread.c (hpux_thread_xfer_memory): Add mem_attrib
5689 argument to parameter list and to call in order to conform to
5690 to_xfer_memory field of struct target_ops.
5691
5692 2001-02-12 Michael Chastain <chastain@redhat.com>
5693
5694 * somsolib.c (som_solib_add_solib_objfile): Do not use
5695 section relocation feature of syms_from_objfile. Do my own
5696 section relocation, offsetting each section of the som by
5697 either text_addr - text_link_addr or data_start.
5698
5699 2001-02-16 Andrew Cagney <ac131313@redhat.com>
5700
5701 * TODO (5.1): Move ``Hardware watchpint problems'' out of 5.1.
5702
5703 2001-02-16 Andrew Cagney <ac131313@redhat.com>
5704
5705 * MAINTAINERS (paper trail): Update.
5706
5707 2001-02-16 Mark Kettenis <kettenis@gnu.org>
5708
5709 * target.h (target_fetch_registers): Fix comment.
5710
5711 2001-02-15 Andrew Cagney <ac131313@redhat.com>
5712
5713 * f-exp.y: Include <ctype.h>.
5714 (parse_number): Ensure that ``i'' is always initialized.
5715
5716 2001-02-14 Jim Kingdon <jkingdon@engr.sgi.com>
5717
5718 * MAINTAINERS: Add myself to paper trail section.
5719
5720 2001-02-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5721
5722 * configure.in (AC_CHECK_HEADERS): Add sys/file.h.
5723 * configure, config.in: Regenerate.
5724 * corelow.c: Include <sys/file.h> if present.
5725
5726 2001-02-14 Andrew Cagney <ac131313@redhat.com>
5727
5728 * inflow.c (terminal_ours_1): Initialize ``osigtou''. Only
5729 declare when have SIGTTOU.
5730
5731 2001-02-14 Eli Zaretskii <eliz@is.elta.co.il>
5732
5733 * config/djgpp/fnchange.lst: Add entries for gdb/gdbtk/*/ChangeLog-*.
5734
5735 2001-02-12 Jim Kingdon <jkingdon@engr.sgi.com>
5736
5737 * MAINTAINERS: Update my email address.
5738
5739 2001-02-11 Eli Zaretskii <eliz@is.elta.co.il>
5740
5741 * NEWS: Document that "info symbol" works with COFF debug info and
5742 its variants.
5743
5744 * minsyms.c (lookup_minimal_symbol_by_pc_section): Don't skip
5745 symbols whose SYMBOL_BFD_SECTION is NULL.
5746
5747 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5748
5749 Get rid of AIX specific PC_LOAD_SEGMENT, replace with PC_SOLIB.
5750 * xcoffsolib.c (xcoff_solib_address): Renamed from
5751 pc_load_segment_name. Return NULL if address is not in a shared
5752 library. Cleanup shared library name construction, using xasprintf.
5753 Format shared library member names consistent with format in exec.c.
5754 (solib_info): Format shared library member names consistent with
5755 format in exec.c.
5756 * config/rs6000/nm-rs6000.h: Replace PC_LOAD_SEGMENT with PC_SOLIB,
5757 using xcoff_solib_address for PC_SOLIB definition.
5758 * stack.c (print_frame): Remove PC_LOAD_SEGMENT code, no longer
5759 needed.
5760
5761 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5762
5763 * mipsread.c (read_alphacoff_dynamic_symtab): Replace alloca calls
5764 with xmalloc calls and cleanups.
5765
5766 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5767
5768 * rs6000-nat.c (child_xfer_memory): Add missing parameter
5769 'struct mem_attrib *' required by 2001-01-23 change.
5770
5771 2001-02-08 Jim Kingdon <jkingdon@engr.sgi.com>
5772
5773 Updates to "make TAGS":
5774 * Makefile.in (ALLDEPFILES): Remove altos-xdep.c arm-convert.s
5775 arm-xdep.c convex-tdep.c convex-xdep.c pyr-tdep.c pyr-xdep.c
5776 tahoe-tdep.c.
5777 (TAGFILES_NO_SRCDIR): Add $(SUBDIR_CLI_SRCS).
5778
5779 2001-02-08 Eli Zaretskii <eliz@is.elta.co.il>
5780
5781 * config/djgpp/fnchange.lst: Remove extraneous "too many dots".
5782
5783 Wed Feb 7 22:39:26 2001 Andrew Cagney <cagney@redhat.com>
5784
5785 From Dean Luick <luick@cray.com>:
5786 * defs.h (continuation): Remove unused global variable.
5787
5788 Wed Feb 7 22:28:31 2001 Andrew Cagney <cagney@redhat.com>
5789
5790 * configure.tgt: Remove references to convex, pyramid, altos and
5791 tahoe.
5792 * configure.host: Ditto.
5793 * MAINTAINERS: Ditto.
5794 * NEWS: Update.
5795
5796 * tahoe-tdep.c: Delete obsolete file.
5797 * pyr-xdep.c: Ditto.
5798 * pyr-tdep.c: Ditto.
5799 * convex-tdep.c: Ditto.
5800 * convex-xdep.c: Ditto.
5801 * config/tahoe/xm-tahoe.h: Ditto.
5802 * config/tahoe/tm-tahoe.h: Ditto.
5803 * config/tahoe/tahoe.mt: Ditto.
5804 * config/tahoe/tahoe.mh: Ditto.
5805 * config/pyr/xm-pyr.h: Ditto.
5806 * config/pyr/tm-pyr.h: Ditto.
5807 * config/pyr/pyramid.mt: Ditto.
5808 * config/pyr/pyramid.mh: Ditto.
5809 * config/m68k/xm-altos.h: Ditto.
5810 * config/m68k/tm-altos.h: Ditto.
5811 * config/m68k/altos.mt: Ditto.
5812 * config/m68k/altos.mh: Ditto.
5813 * config/convex/xm-convex.h: Ditto.
5814 * config/convex/tm-convex.h: Ditto.
5815 * config/convex/convex.mt: Ditto.
5816 * config/convex/convex.mh: Ditto.
5817 * config/convex/Convex.notes: Ditto.
5818 * config/arm/xm-arm.h: Ditto.
5819 * config/arm/nm-arm.h: Ditto.
5820 * config/arm/arm.mt: Ditto.
5821 * config/arm/arm.mh: Ditto.
5822 * arm-convert.s: Ditto.
5823 * arm-xdep.c: Ditto.
5824 * altos-xdep.c: Ditto.
5825
5826 Wed Feb 7 19:41:21 2001 Andrew Cagney <cagney@redhat.com>
5827
5828 * defs.h (internal_error, internal_verror): Add __FILE__ and
5829 __LINE__ parameter.
5830 * utils.c (internal_error, internal_verror): Update.
5831
5832 * v850-tdep.c: Update calls to internal_error.
5833 * utils.c: Ditto.
5834 * ui-out.c: Ditto.
5835 * ui-file.c: Ditto.
5836 * target.h: Ditto.
5837 * symtab.h: Ditto.
5838 * symm-nat.c: Ditto.
5839 * sparc-tdep.c: Ditto.
5840 * source.c: Ditto.
5841 * serial.c: Ditto.
5842 * rs6000-tdep.c: Ditto.
5843 * rs6000-nat.c: Ditto.
5844 * remote.c: Ditto.
5845 * remote-vx.c: Ditto.
5846 * remote-sim.c: Ditto.
5847 * remote-mips.c: Ditto.
5848 * regcache.c: Ditto.
5849 * objfiles.h: Ditto.
5850 * objfiles.c: Ditto.
5851 * mn10300-tdep.c: Ditto.
5852 * mips-tdep.c: Ditto.
5853 * maint.c: Ditto.
5854 * m68k-tdep.c: Ditto.
5855 * m3-nat.c: Ditto.
5856 * language.c: Ditto.
5857 * infptrace.c: Ditto.
5858 * inferior.h: Ditto.
5859 * infcmd.c: Ditto.
5860 * ia64-tdep.c: Ditto.
5861 * i386-tdep.c: Ditto.
5862 * i386-linux-nat.c: Ditto.
5863 * hppah-nat.c: Ditto.
5864 * go32-nat.c: Ditto.
5865 * findvar.c: Ditto.
5866 * f-lang.c: Ditto.
5867 * elfread.c: Ditto.
5868 * event-loop.c: Ditto.
5869 * dwarf2read.c: Ditto.
5870 * dsrec.c: Ditto.
5871 * d30v-tdep.c: Ditto.
5872 * d10v-tdep.c: Ditto.
5873 * cli/cli-setshow.c: Ditto.
5874 * cli/cli-script.c: Ditto.
5875 * ch-exp.c: Ditto.
5876 * breakpoint.c: Ditto.
5877 * ax-gdb.c: Ditto.
5878 * arch-utils.c: Ditto.
5879 * a29k-tdep.c: Ditto.
5880 * gdb_assert.h: Ditto.
5881 * gdbarch.sh: Ditto.
5882 * gdbarch.h, gdbarch.c: Re-generate.
5883
5884 2001-02-07 Andrew Cagney <ac131313@redhat.com>
5885
5886 From Mark Kettenis <kettenis@gnu.org>:
5887 * event-top.h [!STOP_SIGNAL]: #include <signal.h>.
5888
5889 2001-02-07 Andrew Cagney <ac131313@redhat.com>
5890
5891 * remote-sim.c (dump_mem): Cleanup printf format argument.
5892 * MAINTAINERS: Update, mn10300-elf now builds.
5893
5894 2001-02-07 Mark Kettenis <kettenis@gnu.org>
5895
5896 * event-top.c: Remove duplicate #include <signal.h>.
5897
5898 2001-02-06 Andrew Cagney <ac131313@redhat.com>
5899
5900 * sol-thread.c (restore_inferior_pid): Save the PID in a freshly
5901 allocated buffer.
5902 (save_inferior_pid): Restore the PID from that tempoary
5903 buffer. Delete the buffer.
5904 * utils.c (make_cleanup_close, do_close_cleanup): Ditto for FD.
5905
5906 2001-02-06 Andrew Cagney <ac131313@redhat.com>
5907
5908 * MAINTAINERS: Add ``The Obvious Fix Rule''.
5909
5910 2001-02-06 Andrew Cagney <ac131313@redhat.com>
5911
5912 * MAINTAINERS: Add Michael Snyder to Solaris/SPARC list.
5913
5914 2001-02-06 Andrew Cagney <ac131313@cygnus.com>
5915
5916 * gdbarch.sh: Include "gdb_assert.h".
5917 (struct gdbarch): Change ``nr_data'' to unsigned.
5918 (alloc_gdbarch_data, free_gdbarch_data): New functions.
5919 (gdbarch_free): Free the data-pointer vector. Use xfree to delete
5920 architecture vector.
5921 (struct gdbarch_data, struct gdbarch_data_registration): Move init
5922 method to gdbarch_data. Add free method, make index unsigned.
5923 (struct gdbarch_data_registry): Make nr unsigned.
5924 (register_gdbarch_data): Add free parameter. Store in
5925 gdbarch_data.
5926 (init_gdbarch_data): Use set_gdbarch_data.
5927 (set_gdbarch_data): New function.
5928
5929 * gdbarch.h, gdbarch.c: Re-generate.
5930
5931 2001-02-06 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5932
5933 * ser-unix.c (hardware_print_tty_state) [HAVE_SGTTY]: Call
5934 fprintf_filtered with correct arguments.
5935
5936 2001-02-06 Michael Snyder <msnyder@makita.cygnus.com>
5937 Submitted by Paul Hilfinger (hilfingr@gnat.com)
5938 and Andrei Petrov (and@genesyslab.com).
5939 * findvar.c: Buffers of size MAX_REGISTER_RAW_SIZE or REGISTER_BYTES
5940 must be allocated dynamically, since these are no longer constants.
5941 * infcmd.c: Ditto.
5942 * regcache.c: Ditto.
5943 * remote.c: Ditto.
5944 * sol-thread.c: Ditto.
5945 * valops.c: Ditto.
5946 * config/sparc/sun4sol2.mh (MH_CFLAGS): Add -I/usr/include/v9, as a
5947 work-around for a missing Sun header file in solaris for sparc64.
5948
5949 2001-02-04 Philip Blundell <philb@gnu.org>
5950
5951 * config/arm/linux.mh (NATDEPFILES): Add proc-service.o,
5952 thread-db.o, lin-lwp.o; remove lin-thread.o, linux-thread.o.
5953 * config/arm/nm-linux.h (PREPARE_TO_PROCEED, ATTACH_LWP,
5954 GET_THREAD_SIGNALS): Define.
5955 * arm-linux-nat.c (fill_gregset): Correct type of argument.
5956 (supply_gregset): Likewise.
5957 (fill_fpregset): Likewise.
5958 (supply_fpregset): Likewise.
5959
5960 Tue Feb 6 11:58:57 2001 David Taylor <taylor@redhat.com>
5961
5962 * valops.c (value_cast): If casting a scalar to a pointer, do not
5963 issue a message about truncation unless it exceeds the length of
5964 an address, not the length of a pointer. This is because what the
5965 user gives us is an address, not a pointer, and we will ultimately
5966 convert it (via ADDRESS_TO_POINTER) to a pointer, not truncate it
5967 to a pointer. This allows things like "print *(int *)0x01000234"
5968 to work without generating a misleading message on a target having
5969 two byte pointers and four byte addresses.
5970
5971 2001-02-05 Christopher Faylor <cgf@cygnus.com>
5972
5973 * win32-nat.c: Change PTR to void * throughout.
5974
5975 2001-02-05 J.T. Conklin <jtc@redback.com>
5976
5977 * signals.h: Removed.
5978 * event-top.c (#include <signal.h>): Changed from signals.h.
5979 * inflow.c: Likewise.
5980 * mac-xdep.c: Likewise.
5981 * ser-pipe.c: Likewise.
5982 * ser-tcp.c: Likewise.
5983 * standalone.c: Likewise.
5984 * top.c: Likewise.
5985 * utils.c: Likewise.
5986 * Makefile.in: Removed signals.h from dependencies.
5987
5988 2001-02-05 Christopher Faylor <cgf@cygnus.com>
5989
5990 Change suggested by Dean Luick <luick@cray.com>
5991 * inferior.h (step_over_calls_kind): Remove trailing comma from
5992 last enum element.
5993 (step_over_calls): Declare as extern rather than global.
5994
5995 2001-02-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
5996
5997 * sh-tdep.c: Update copyright.
5998 (sh_extract_return_value): Rewrite.
5999 (sh3e_sh4_extract_return_value): New function.
6000 (sh_gdbarch_init): Initialize gdbarch_extract-return_value to new
6001 version of the function for sh3e and sh4 CPUs.
6002
6003 2001-02-05 Michael Chastain <chastain@redhat.com>
6004
6005 * hppah-nat.c (child_xfer_memory): Add parameter 'struct mem_attrib *'
6006 to conform with interface change.
6007
6008 2001-02-04 Eli Zaretskii <eliz@is.elta.co.il>
6009
6010 * config/djgpp/fnchange.lst: Tweak to make consistent with the
6011 new files.
6012
6013 * config/djgpp/djconfig.sh: Use explicit absolute file name when
6014 invoking `find'.
6015
6016 * ser-go32.c (dos_write) [UART_FIFO_WORKS]: Use outportsb only if
6017 UART_FIFO_WORKS is defined. Otherwise use outportb.
6018 From Francisco Pastor <fpastor.etra-id@etra.es>
6019
6020 * go32-nat.c (go32_xfer_memory): Make the argument list consistent
6021 with target.h's `to_xfer_memory' member.
6022
6023 2001-02-02 J.T. Conklin <jtc@redback.com>
6024
6025 * ppc-bdm.c (#include <signal.h>): Removed.
6026 * remote-array.c: Likewise.
6027 * remote-bug.c: Likewise.
6028 * remote-e7000.c: Likewise.
6029 * remote-mips.c: Likewise.
6030 * remote-os9k.c: Likewise.
6031 * remote-st.c: Likewise.
6032 * remote-udi.c: Likewise.
6033 * remote-vx29k.c: Likewise.
6034 * remote-vx68.c: Likewise.
6035 * remote-vx960.c: Likewise.
6036 * remote-vxmips.c: Likewise.
6037 * remote-vxsparc.c: Likewise.
6038
6039 2001-02-02 John Moore <jmoore@redhat.com>
6040
6041 * remote-utils.h (sr_set_device): Changed free() to xfree() where
6042 appropriate. Also changed Copyright to include 2001.
6043 * symtab.h (obstack_chunk_free, SYMBOL_INIT_DEMANGLED_NAME): Likewise.
6044 * value.h (value_free): Likewise.
6045 * gdbarch.sh (gdbarch_free): Likewise.
6046 * gdbarch.c, gdbarch.h: Regenerated.
6047
6048 2001-02-02 John Moore <jmoore@redhat.com>
6049
6050 * cli/cli-cmds.c (apropos_command): Changed occurance of free() to
6051 xfree(). Also changed Copyright to include 2001.
6052
6053 2001-02-02 J.T. Conklin <jtc@redback.com>
6054
6055 * monitor.c (#include "gdb_wait.h"): Removed.
6056 * ocd.c: Likewise.
6057 * ppc-bdm.c: Likewise.
6058 * remote-adapt.c: Likewise.
6059 * remote-array.c: Likewise.
6060 * remote-bug.c: Likewise.
6061 * remote-e7000.c: Likewise.
6062 * remote-eb.c: Likewise.
6063 * remote-es.c: Likewise.
6064 * remote-mips.c: Likewise.
6065 * remote-mm.c: Likewise.
6066 * remote-nindy.c: Likewise.
6067 * remote-os9k.c: Likewise.
6068 * remote-rdi.c: Likewise.
6069 * remote-rdp.c: Likewise.
6070 * remote-sds.c: Likewise.
6071 * remote-sim.c: Likewise.
6072 * remote-st.c: Likewise.
6073 * remote-udi.c: Likewise.
6074 * remote-vx.c: Likewise.
6075 * remote-vx29k.c: Likewise.
6076 * remote-vx68.c: Likewise.
6077 * remote-vx960.c: Likewise.
6078 * remote-vxmips.c: Likewise.
6079 * remote-vxsparc.c: Likewise.
6080 * remote.c: Likewise.
6081 * ser-pipe.c: Likewise.
6082 * ser-unix.c: Likewise.
6083 * Makefile.in: Updated dependencies.
6084
6085 2001-01-31 David Smith <dsmith@redhat.com>
6086
6087 * event-loop.c: Change inclusion of string.h to gdb_string.h and
6088 updated the copyright notice.
6089 * ser-pipe.c: Ditto.
6090 * mi/mi-cmds.c: Ditto.
6091 * mi/mi-console.c: Ditto.
6092 * mi/mi-getopt.c: Ditto.
6093 * mi/mi-parse.c: Ditto.
6094
6095 2001-01-31 David Smith <dsmith@redhat.com>
6096
6097 * MAINTAINERS: Add David Smith to Write After Approval list.
6098
6099 Tue Jan 30 15:43:08 2001 Andrew Cagney <cagney@cygnus.com>
6100
6101 * cli/cli-utils.c (putchar_filtered): Move function from here.
6102 * utils.c (putchar_filtered): To here.
6103 * cli/cli-utils.h (putchar_filtered): Move declaration from here.
6104 * defs.h (putchar_filtered): To here.
6105
6106 Tue Jan 30 17:27:11 2001 Andrew Cagney <cagney@redhat.com>
6107
6108 * configure.in (AC_CHECK_FUNCS): Replace vfork test with
6109 AC_FUNC_VFORK macro.
6110 * config.in, configure: Re-generate.
6111
6112 * gdb_vfork.h: New file.
6113 * ser-pipe.c (pipe_open): Update. Include "gdb_vfork.h".
6114 * fork-child.c (fork_inferior): Ditto.
6115
6116 Tue Jan 30 17:09:07 2001 Andrew Cagney <cagney@redhat.com>
6117
6118 * defs.h (strsave): Delete declaration.
6119 * utils.c (strsave): Delete definition.
6120 * TODO (strsave): Update
6121
6122 * mac-xdep.c (tilde_expand): Replace strsave with xstrdup.
6123 * sparcl-tdep.c (sparclite_open): Ditto.
6124 * mips-tdep.c (mips_set_processor_type_command): Ditto.
6125 (_initialize_mips_tdep): Ditto.
6126 * solib.c (solib_open): Ditto.
6127 * symfile.c (add_filename_language): Ditto.
6128 (set_ext_lang_command): Ditto.
6129 * source.c (init_source_path): Ditto.
6130 (mod_path): Ditto.
6131 * sh3-rom.c (sh3_open): Ditto.
6132 (sh3e_open): Ditto.
6133 * serial.c (serial_open): Ditto.
6134 * remote-mips.c (common_open): Ditto.
6135 * monitor.c (monitor_open): Ditto.
6136 * m32r-rom.c (m32r_upload_command): Ditto.
6137 * infcmd.c (path_command): Ditto.
6138 * f-exp.y (parse_number): Ditto.
6139 * breakpoint.c (create_longjmp_breakpoint): Ditto.
6140 (create_thread_event_breakpoint): Ditto.
6141 * arc-tdep.c (arc_set_cpu_type_command): Ditto.
6142 (_initialize_arc_tdep): Ditto.
6143
6144 Tue Jan 30 15:14:26 2001 Andrew Cagney <cagney@skil>
6145
6146 * cli/cli-script.c (define_command): Check for a bad hook value in
6147 switch statement.
6148
6149 2001-01-30 J.T. Conklin <jtc@redback.com>
6150
6151 * configure/sh/embed.mt: New file.
6152 * configure/sh/linux.mt: New file.
6153 * configure/sh/sh.mt: Removed.
6154 * configure.tgt (sh-*-hms,sh-*-coff*,sh-*-elf*,sh-*-linux): New targets.
6155 (sh-*-*): Removed.
6156
6157 2001-01-29 Michael Chastain <chastain@redhat.com>
6158
6159 * symtab.c (block_lookup_symbol): Use 'namespace' parameter in
6160 symbol comparisons in binary search.
6161
6162 2001-01-27 Christopher Faylor <cgf@cygnus.com>
6163
6164 * win32-nat.c (child_xfer_memory): Add missing argument required by
6165 2001-01-23 change.
6166
6167 2001-01-27 Mark Kettenis <kettenis@gnu.org>
6168
6169 * ui-out.c (do_list_end): New function.
6170 (make_cleanup_ui_out_list_end): New function.
6171 * ui-out.h: Provide prototype for make_cleanup_ui_out_list_end.
6172 * stack.c (print_frame) [UI_OUT]: Call
6173 make_cleanup_ui_out_list_end to make sure we mark the end of the
6174 list if we do a non-local exit. At the end of the function,
6175 instead of calling ui_out_list_end directly, let do_cleanups
6176 handle it.
6177
6178 2001-01-26 Fernando Nasser <fnasser@redhat.com>
6179
6180 Fix double parsing of filenames passed as command line arguments
6181 to GDB (causes weird handling of escape characters).
6182 Also, remove dependencies on the CLI from libgdb.
6183 * call-cmds.h: Remove declaration of exec_file_command().
6184 * gdbcore.h: Remove declaration of exec_file_command().
6185 Add declarations for exec_open() and exec_file_clear().
6186 * symfile.h: Add declarations for symbol_file_add_main() and
6187 symbol_file_clear().
6188 * exec.c (exec_open): New function. Implements to_open for exec
6189 targets.
6190 (exec_file_clear): New function. Makes GDB forget about a previously
6191 specified executable file.
6192 (exec_file_attach): Move parsing of arguments from here ...
6193 (exec_file_command): ... to here.
6194 (init_exec_ops): Use exec_open(), not exec_file_command() to
6195 implement to_open for exec targets.
6196 * symfile.c (symbol_file_add_main): New function. Call symbol_file_add()
6197 with default values. Used when the file name has already been parsed.
6198 (symbol_file_clear): New function. Makes GDB forget about previously
6199 read symbols.
6200 (symbol_file_command): Call the above function instead of inline code.
6201 * main.c: Include "symfile.h" and "gdbcore.h" instead of the deprecated
6202 "call-cmds.h".
6203 (captured_main): Call exec_file_attach() and symbol_file_add_main()
6204 instead of exec_file_command() and symbol_file_command().
6205 (captured_main): Add comment.
6206 * corefile.c: Include "symfile.h".
6207 (core_file_command): Call symbol_file_add_main() instead of
6208 symbol_file_command().
6209 (reopen_exec_file): Call exec_open() instead of exec_file_command().
6210 * infcmd.c: Include "symfile.h".
6211 (attach_command): Call symbol_file_add_main() instead of
6212 symbol_file_command().
6213 * infrun.c: Remove comment about the inclusion of "symfile.h",
6214 not any longer appropriate.
6215 (follow_exec): Call symbol_file_add_main() instead of
6216 symbol_file_command().
6217 * remote-es.c: Include "symfile.h".
6218 (es1800_load): Call symbol_file_add_main() instead of
6219 symbol_file_command().
6220 * remote-vx.c: Remove comment about the inclusion of "symfile.h",
6221 not any longer appropriate.
6222 (vx-wait): Call symbol_file_add_main() instead of
6223 symbol_file_command().
6224 * solib-svr4.c (open_symbol_file_object): Call symbol_file_add_main()
6225 instead of symbol_file_command().
6226 * v850ice.c (ice_file): Call exec_open(), exec_file_attach() and
6227 symbol_file_add_main() instead of exec_file_command() and
6228 symbol_file_command().
6229 * Makefile.in: Update dependencies.
6230
6231 2001-01-26 Jeff Holcomb <jeffh@redhat.com>
6232
6233 * remote-udi.c (udi_open): Change strdup to xstrdup.
6234 * thread.c (thread_apply_all_command): Change strdup to xstrdup.
6235 Update copyright message.
6236 * varobj.c (delete_variable_1): Likewise.
6237
6238 * gdb_string.h: Remove declaration of strdup. Update copyright
6239 message.
6240 * config/xm-mpw.h: Likewise.
6241 * config/i386/xm-i386mach.h: Likewise.
6242 * config/m68k/xm-apollo68b.h: Likewise.
6243 * config/m68k/xm-hp300bsd.h: Likewise.
6244 * config/rs6000/xm-rs6000.h: Likewise.
6245 * config/vax/xm-vaxult.h: Remove declaration of strdup.
6246 * config/vax/xm-vaxult2.h: Likewise.
6247
6248 2001-01-26 Jeff Holcomb <jeffh@redhat.com>
6249
6250 * MAINTAINERS: Add Jeff Holcomb to Write After Approval list.
6251
6252 2001-01-25 J.T. Conklin <jtc@redback.com>
6253
6254 * target.c (target_xfer_memory_partial): Return -1 on failure due
6255 to invalid access mode attribute.
6256
6257 2001-01-25 Christopher Faylor <cgf@cygnus.com>
6258
6259 * win32-nat.c (_initialize_core_win32): Prototype correctly.
6260
6261 2001-01-25 Mark Kettenis <kettenis@gnu.org>
6262
6263 * config/alpha/tm-fbsd.h: Update copyright.
6264 (USE_STRUCT_CONVENTION): Define in terms of
6265 alphabsd_use_struct_convention.
6266 * config/alpha/fbsd.mt (TDEPFILES): Add alphafbsd-tdep.c.
6267 * alphafbsd-tdep.c: New file.
6268
6269 2001-01-24 Fernando Nasser <fnasser@redhat.com>
6270
6271 * top.c (print_gdb_version): Update Copyright year.
6272
6273 2001-01-24 J.T. Conklin <jtc@redback.com>
6274
6275 * dcache.c (dcache_write_line): Fix typo.
6276
6277 * memattr.c (delete_mem_region): Replace free() with xfree().
6278 (mem_number): Add explicit type.
6279
6280 * sol-thread.c (sol_thread_xfer_memory): Add attrib argument.
6281 (rw_common): Likewise.
6282
6283 2001-01-24 Fernando Nasser <fnasser@redhat.com>
6284
6285 * infcmd.c (get_inferior_args, set_inferior_args): Accessor functions
6286 for the inferior program arguments.
6287 (run_command, run_no_args_command, init_infcmd)): Use accessor
6288 functions to set the inferior program arguments.
6289 * inferior.h: Add definitions to the accessor functions above.
6290
6291 2001-01-23 Jim Blandy <jimb@redhat.com>
6292
6293 * dwarf2read.c (read_tag_const_type, read_tag_volatile_type):
6294 Implement these correctly, using make_cv_type.
6295
6296 2001-01-23 J.T. Conklin <jtc@redback.com>
6297
6298 * exec.c (xfer_memory): Add attrib argument.
6299 * infptrace.c (child_xfer_memory): Likewise.
6300 * lin-lwp.c (lin_lwp_xfer_memory): Likewise.
6301 * monitor.c (monitor_xfer_memory): Likewise.
6302 * remote-adapt.c (adapt_xfer_inferior_memory): Likewise.
6303 * remote-array.c (array_xfer_memory): Likewise.
6304 * remote-bug.c (bug_xfer_memory): Likewise.
6305 * remote-e7000.c (e7000_xfer_inferior_memory): Likewise.
6306 * remote-eb.c (eb_xfer_inferior_memory): Likewise.
6307 * remote-es.c (es1800_xfer_inferior_memory): Likewise.
6308 * remote-mips.c (mips_xfer_memory): Likewise.
6309 * remote-mm.c (mm_xfer_inferior_memory): Likewise.
6310 * remote-nindy.c (nindy_xfer_inferior_memory): Likewise.
6311 * remote-os9k.c (rombug_xfer_inferior_memory): Likewise.
6312 * remote-rdi.c (arm_rdi_xfer_memory): Likewise.
6313 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Likewise.
6314 * remote-sds.c (sds_xfer_memory): Likewise.
6315 * remote-sim.c (gdbsim_xfer_inferior_memory): Likewise.
6316 * remote-st.c (st2000_xfer_inferior_memory): Likewise.
6317 * remote-udi.c (udi_xfer_inferior_memory): Likewise.
6318 * remote-vx.c (vx_xfer_memory): Likewise.
6319 * remote.c (remote_xfer_memory): Likewise.
6320 * target.c (debug_to_xfer_memory, do_xfer_memory): Likewise.
6321 * target.h (child_xfer_memory, do_xfer_memory, xfer_memory): Likewise.
6322 * thread-db.c (thread_db_xfer_memory): Likewise.
6323
6324 * target.h (#include "memattr.h"): Added.
6325 (target_ops.to_xfer_memory): Add attrib argument.
6326
6327 * wince.c (_initialize_inftarg): Removed call to set_dcache_state.
6328 * dcache.h (set_dcache_state): Removed declaration.
6329 * dcache.c (set_dcache_state): Removed definition
6330
6331 * dcache.c: Update module comment, as dcache is now enabled and
6332 disabled with memory region attributes instead of by the global
6333 variable "remotecache". Add comment describing the interaction
6334 between dcache and memory region attributes.
6335 (dcache_xfer_memory): Add comment describing benefits of moving
6336 cache writeback to a higher level.
6337 (dcache_struct): Removed cache_has_stuff field. This was used to
6338 record whether the cache had been accessed in order to invalidate
6339 it when it was disabled. However, this is not needed because the
6340 cache is write through and the code that enables, disables, and
6341 deletes memory regions invalidate the cache. Add comment which
6342 suggests that we could be more selective and only invalidate those
6343 cache lines containing data from those memory regions.
6344 (dcache_invalidate): Updated.
6345 (dcache_xfer_memory): Updated.
6346
6347 (dcache_alloc): Don't abort() if dcache_enabled_p is clear.
6348 (dcache_xfer_memory): Removed code that called do_xfer_memory() to
6349 perform a uncached transfer if dcache_enabled_p was clear. This
6350 function is now only called if caching is enabled for the memory
6351 region.
6352 (dcache_info): Always print cache info.
6353
6354 * target.c (do_xfer_memory): Add attrib argument.
6355 (target_xfer_memory, target_xfer_memory_partial): Break transfer
6356 into chunks defined by memory regions, pass region attributes to
6357 do_xfer_memory().
6358 * dcache.c (dcache_read_line, dcache_write_line): Likewise.
6359
6360 * Makefile.in (SFILES): Add memattr.c.
6361 (COMMON_OBS): Add memattr.o.
6362 (dcache.o): Add target.h to dependencies.
6363 * memattr.c: New file.
6364 * memattr.h: Likewise.
6365
6366 * config/m32r/m32r.mt (GDBSERVER_LIBS): Added ../../intl/libintl.a.
6367 * config/mips/vr5000.mt (GDBSERVER_LIBS): Likewise.
6368 * config/tic80/tic80.mt (GDBSERVER_LIBS): Likewise.
6369 * gdbserver/low-sim.c (#include "defs.h"): Removed.
6370 (mygeneric_load): Rename from generic_load.
6371
6372 * gdbserver/low-hppabsd.c (#include "server.h"): Added.
6373 (#include "defs.h"): Removed.
6374 (inferior_pid, perror_with_name): Remove declarations.
6375 * gdbserver/low-linux.c: Likewise.
6376 * gdbserver/low-nbsd.c: Likewise.
6377 * gdbserver/low-sparc.c: Likewise.
6378 * gdbserver/low-sun3.c: Likewise.
6379
6380 * i386-stub.c: Re-indent.
6381 * m68k-stub.c: Re-indent.
6382
6383 2001-01-22 Nicholas Duffek <nsd@redhat.com>
6384
6385 * gdbarch.sh (PARM_BOUNDARY): Define.
6386 * gdbarch.c: Regenerate.
6387 * gdbarch.h: Regenerate.
6388
6389 2001-01-22 J.T. Conklin <jtc@redback.com>
6390
6391 * ns32k-tdep.c: #include "frame.h"
6392 * config/ns32k/tm-umax.h (FRAME_FIND_SAVED_REGS): Restore. It
6393 appears to have been inadvertantly removed sometime in May 1999.
6394
6395 * Revert 2000-11-09 changes where shared library objects were
6396 moved from NATDEPFILES to TDEPFILES on NetBSD targets. While
6397 we'd like to be able to debug dynamically linked executables,
6398 this makes it impossible to build a cross debugger on a many
6399 hosts.
6400
6401 * config/i386/nbsd.mt: Remove solib.o, solib-svr4.o from TDEPFILES.
6402 * config/i386/nbsdelf.mt: Likewise.
6403 * config/m68k/nbsd.mt: Likewise.
6404 * config/ns32k/nbsd.mt: Likewise.
6405 * config/powerpc/nbsd.mt: Likewise.
6406 * config/sparc/nbsd.mt: Likewise.
6407 * config/sparc/nbsdelf.mt: Likewise.
6408 * config/i386/nbsd.mh: Add solib.o, solib-svr4.o to NATDEPFILES.
6409 * config/i386/nbsdelf.mh: Likewise.
6410 * config/m68k/nbsd.mh: Likewise.
6411 * config/ns32k/nbsd.mh: Likewise.
6412 * config/powerpc/nbsd.mh: Likewise.
6413 * config/sparc/nbsd.mh: Likewise.
6414
6415 2001-01-19 Jason Merrill <jason@redhat.com>
6416
6417 * dbxread.c (read_ofile_symtab): Stay with AUTO_DEMANGLING for G++.
6418 (process_one_symbol): Likewise.
6419 * dwarfread.c (handle_producer): Likewise.
6420
6421 Thu Jan 18 12:08:57 2001 Andrew Cagney <cagney@b1.cygnus.com>
6422
6423 * configure.in (build_warnings): Disable -Wuninitialized until GDB
6424 compiles with -Wuninitialized,-Werror.
6425 * configure: Regenerate.
6426
6427 * MAINTAINERS: Add list of buildable targets.
6428
6429 Thu Jan 18 12:48:04 2001 Andrew Cagney <cagney@b1.cygnus.com>
6430
6431 * defs.h (STRCMP): Delete macro.
6432
6433 * objfiles.c (objfile_relocate): Replace STRCMP with call to
6434 strcmp.
6435 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
6436 * symfile.c (compare_symbols): Ditto.
6437 * standalone.c (open): Ditto.
6438 * remote-es.c (verify_break): Ditto.
6439 * cli/cli-decode.c (add_cmd, add_show_from_set): Ditto.
6440
6441 * symfile.c (compare_psymbols): Delete comment refering to STRCMP.
6442
6443 Thu Jan 18 12:25:06 2001 Andrew Cagney <cagney@b1.cygnus.com>
6444
6445 * varobj.c (FREEIF): Delete macro.
6446 (varobj_set_value, free_variable): Replace FREEIF with ``xfree''
6447 call.
6448
6449 2001-01-18 Nick Clifton <nickc@redhat.com>
6450
6451 * arc-tdep.c (arc_cpu_type_table): Add new arc core numbers.
6452 (arc_print_insn): No bfd available, so pass NULL to
6453 arc_get_disassembler.
6454
6455 2001-01-09 James Ingham <jingham@inghji.apple.com>
6456
6457 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux to lookup
6458 a mangled symbol rather than recursing into lookup_symbol, since
6459 this will just re-unmangle the name & call lookup_symbol_aux -
6460 leading to an infinite recursion.
6461
6462 2001-01-18 Mark Kettenis <kettenis@gnu.org>
6463
6464 * infcmd.c (print_return_value): Restore another space lost by
6465 switch to UIOUT. ``$NN='' should be ``$NN =''.
6466
6467 Fri Jan 19 02:31:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
6468
6469 * target.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
6470 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Wrap macro
6471 definition in parenthesis.
6472
6473 Fri Jan 19 02:13:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
6474
6475 From 2000-10-27 Mark Salter <msalter@redhat.com>:
6476 * remote.c (remote_remove_hw_breakpoint): Add 'len' field to Z
6477 packet.
6478 (remote_insert_hw_breakpoint): Ditto.
6479
6480 2001-01-17 J.T. Conklin <jtc@redback.com>
6481
6482 * config/m68k/tm-nbsd.h (USE_STRUCT_CONVENTION): Define.
6483 (BPT_VECTOR, REMOTE_BPT_VECTOR): Change to 0xf.
6484 * config/m68k/nbsd.mt (TDEPFILES): Add m68knbsd-tdep.o.
6485 * m68knbsd-tdep.c: New file.
6486
6487 * i386nbsd-tdep.c: Remove #if 0'd out #includes.
6488
6489 * m68knbsd-nat.c: #include gdbcore.h.
6490
6491 Wed Jan 17 09:41:58 2001 Andrew Cagney <cagney@b1.cygnus.com>
6492
6493 * MAINTAINERS: Add J.T. Conklin to Blanket Write Privs.
6494
6495 2001-01-16 Michael Snyder <msnyder@cleaver.cygnus.com>
6496
6497 * procfs.c (procfs_stopped_by_watchpoint): Don't die if process
6498 goes away -- just return false (ie. not stopped by watchpoint).
6499 * source.c (openp): Fix typo in comment.
6500
6501 2001-01-12 Nicholas Duffek <nsd@redhat.com>
6502
6503 * blockframe.c (generic_get_saved_register): Spelling fix.
6504 * frame.h (FRAME_FP): Spelling fix.
6505
6506 Fri Jan 12 18:29:46 2001 Andrew Cagney <cagney@b1.cygnus.com>
6507
6508 * infcmd.c (print_return_value): Restore space lost by switch to
6509 UIOUT. ``$NN='' should be ``$NN =''.
6510
6511 2001-01-08 Nicholas Duffek <nsd@redhat.com>
6512
6513 * regcache.c (set_register_cached, register_buffer,
6514 real_register, pseudo_register fetch_register, store_register):
6515 New functions.
6516 (register_changed, read_relative_register_raw_bytes_for_frame,
6517 registers_changed, registers_fetched, read_register_bytes,
6518 read_register_gen, write_register_gen, read_register,
6519 read_signed_register, write_register, supply_register): Replace
6520 register_valid[] with register_cached() and
6521 set_register_cached().
6522 (read_register_bytes, read_register_gen, write_register_gen,
6523 read_register, read_signed_register, write_register,
6524 supply_register): Replace registers[] with register_buffer().
6525 (read_register_bytes, read_register_gen, read_register,
6526 read_signed_register): Call fetch_register().
6527 (write_register_gen, write_register): Call real_register() and
6528 store_register().
6529 (write_register_bytes): Call store_register().
6530 * value.h (set_register_cached, register_buffer): Prototype.
6531 * remote.c (remote_fetch_registers): Allocate regs[] with a
6532 run-time size. Replace register_valid[] with
6533 set_register_cached().
6534 (store_register_using_P, remote_store_registers): Replace
6535 registers[] with register_buffer().
6536
6537 2001-01-08 Nicholas Duffek <nsd@redhat.com>
6538
6539 * regcache.c: Change "write-back" comment to "write-through".
6540 Change "regno" to "regnum".
6541 (read_register, read_signed_register): Remove "raw" from return
6542 value description.
6543 (supply_register): Spelling fix.
6544 * value.h: Change "regno" to "regnum".
6545
6546 2001-01-08 Fernando Nasser <fnasser@redhat.com>
6547
6548 * Makefile.in (install-gdbtk): Add .itcl files to the list of files
6549 to be installed.
6550
6551 2001-01-04 Michael Snyder <msnyder@mvstp600e.cygnus.com>
6552
6553 * mips-tdep.c (mips_coerce_float_to_double): Fix typo in comment.
6554
6555 2001-01-04 Nicholas Duffek <nsd@redhat.com>
6556
6557 * valops.c (VALUE_SUBSTRING_START): Delete.
6558
6559 2001-01-04 Nicholas Duffek <nsd@redhat.com>
6560
6561 * Makefile.in (SUBDIR_CLI_OBS): Add cli/cli-utils.o.
6562 (SUBDIR_CLI_SRCS): Add cli/cli-utils.c.
6563 (cli_utils_h): New variable.
6564 (cli/cli-utils.o): New rule.
6565 * cli/cli-utils.c: New file.
6566 * cli/cli-utils.h: New file.
6567
6568 2001-01-04 Nicholas Duffek <nsd@redhat.com>
6569
6570 * config/i386/tm-i386.h (REGISTER_CONVERT_TO_VIRTUAL,
6571 REGISTER_CONVERT_TO_RAW): Delete trailing semicolon.
6572
6573 2001-01-03 J.T. Conklin <jtc@redback.com>
6574
6575 * alphabsd-nat.c, i386-linux-nat.c, i386bsd-nat.c: Fix typo in
6576 comment.
6577
6578 2001-01-02 Michael Snyder <msnyder@cleaver.cygnus.com>
6579
6580 * sh-tdep.c (sh_default_store_return_value): Allow for small return type.
6581 (sh3e_sh4_store_return_value): Call sh_default_store_return_value for
6582 non-float types.
6583 * sparc-tdep.c (sparc_frame_chain): Fix typo in comment.
6584 Update copyright notice.
6585
6586 For older changes see ChangeLog-2000
6587 \f
6588 Local Variables:
6589 mode: change-log
6590 left-margin: 8
6591 fill-column: 74
6592 version-control: never
6593 End:
This page took 0.192523 seconds and 4 git commands to generate.