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