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