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