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