* ocd.h (ocd_xfer_memory): Add ``attrib'' parameter.
[binutils-gdb.git] / gdb / ChangeLog
1 2001-03-04 Andrew Cagney <ac131313@redhat.com>
2
3 * ocd.h (ocd_xfer_memory): Add ``attrib'' parameter.
4 * ocd.c (ocd_xfer_memory): Ditto.
5 * ser-ocd.c (ocd_setstopbits): New function. Add to ocd_ops.
6 * MAINTAINERS: Document powerpc-eabi and powerpcle-eabi as
7 buildable with ,-Werror.
8
9 * Makefile.in (symfile_h): Define.
10 (mcore-tdep.o): Add $(symfile_h), $(gdbcore_h) and $(inferior_h).
11 * mcore-tdep.c: Include "symfile.h", "gdbcore.h" and "inferior.h".
12 * MAINTAINERS: Document mcore-elf and mcore-pe as buildable with
13 ,-Werror.
14
15 * dsrec.c (make_srec): Fix internal_error fmt arg.
16 * MAINTAINERS: Document i960-coff as buildable with ,-Werror.
17
18 2001-03-03 Kevin Buettner <kevinb@redhat.com>
19
20 * solib-aix5.c (aix5_relocate_main_executable): Don't use ANOFFSET
21 as an lvalue.
22
23 2001-03-02 Andrew Cagney <ac131313@redhat.com>
24
25 * MAINTAINERS (paper trail): Update.
26
27 * CONTRIBUTE: Update note on ``Fix PR gdb/4706'' convention.
28
29 2001-03-02 Andrew Cagney <ac131313@redhat.com>
30
31 From 2001-03-01 Tom Rix <trix@redhat.com>:
32 * mn10200-tdep.c (mn10200_frame_chain): Pass 0 for ``pc''
33 parameter to mn10200_analyze_prologue.
34
35 * config/mn10200/tm-mn10200.h: Include "regcache.h".
36 * MAINTAINERS: Document that mn10200-elf target is buildable.
37
38 2001-03-02 Kevin Buettner <kevinb@redhat.com>
39
40 * config/ia64/xm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): Move defines
41 from here...
42 * config/ia64/nm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): ...to here.
43 (MONTEREY): Don't define.
44 (AIX5): Define.
45
46 2001-03-02 Matt Hiller <hiller@redhat.com>
47
48 * config/mn10300/tm-mn10300.h (E0_REGNUM): Correct to 15.
49
50 2001-03-02 Kevin Buettner <kevinb@redhat.com>
51
52 * sparc-nat.c (sparc-nat.c): Don't include self.
53
54 2001-03-01 J.T. Conklin <jtc@redback.com>
55
56 * defs.h (__CYGWIN__): Moved conditional which defines __CYGWIN__
57 if __CYGWIN32__ is set from here.
58 * config/i386/xm-cygwin.h: To here.
59 * config/powerpc/xm-cygwin.h: To here.
60
61 * i386-stub.c (handle_exception): Use 'T' response packet.
62
63 2001-03-01 Michael Snyder <msnyder@mvstp600e.cygnus.com>
64
65 * m32r-tdep.c: Fix cut and paste error in comment.
66
67 2001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
68
69 * symtab.c (print_msymbol_info): Print addresses by portable method
70 longest_local_hex_string_custom. Allow for 64-bit addresses.
71
72 2001-03-01 J.T. Conklin <jtc@redback.com>
73
74 * gdbtypes.h (builtin_type_f_integer): Removed duplicate declaration.
75 (MAX_OF_TYPE): Wrap macro definition in parenthesis.
76 (MIN_OF_TYPE): Likewise.
77
78 * memattr.h (mem_access_mode): Removed extraneous trailing comma.
79
80 2001-03-01 Andrew Cagney <ac131313@redhat.com>
81
82 * Makefile.in (os9kread.o): Do not compile with WERROR_CFLAGS.
83 * os9kread.c (os9k_process_one_symbol): Add assert to detect
84 ``loses if sizeof (char *) > sizeof (int)''.
85
86 2001-03-01 Andrew Cagney <ac131313@redhat.com>
87
88 * gdb_assert.h: Document pragmatics behind gdb_assert's case.
89
90 2001-03-01 Andrew Cagney <ac131313@redhat.com>
91
92 * Makefile.in (gdbtk-cmds.o): Add $(regcache_h) to dependency
93 lists.
94 (mi-main.o): Ditto.
95
96 2001-03-01 Andrew Cagney <ac131313@redhat.com>
97
98 * Makefile.in (regcache_h): Define. Add $(regcache_h) to
99 dependency lists.
100
101 2001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
102
103 * printcmd.c (print_address_numeric): Update comments to refer
104 to sizeof addr, not sizeof pointer.
105 (x_command): Remove needless whitespace (shorten long line).
106
107 * breakpoint.c (print_one_breakpoint): Formatting clean-up.
108 (read_memory_nobpt): Ditto.
109 (ep_is_catchpoint): Ditto.
110 (ep_is_shlib_catchpoint): Ditto.
111 (ep_is_exception_catchpoint): Ditto.
112 (describe_other_breakpoints): Ditto.
113
114 Wed Feb 28 20:37:36 2001 Andrew Cagney <ac131313@redhat.com>
115
116 * regcache.h (register_valid): Fix comment documenting valid
117 states.
118
119 Tue Feb 27 23:56:23 2001 Andrew Cagney <ac131313@redhat.com>
120
121 From Steven Johnson:
122 * regcache.h: New file.
123
124 * value.h (read_register_bytes, read_register_gen)
125 (write_register_gen, write_register_bytes)
126 (read_register, read_register_pid)
127 (read_signed_register, read_signed_register_pid)
128 (write_register, write_register_pid)
129 (register_cached, set_register_cached)
130 (register_changed, register_buffer)
131 (registers_changed, supply_register): Move declaration from here.
132 * regcache.h: To here.
133 * gdbcore.h (registers_fetched): Ditto.
134 * inferior.h (registers, registers_valid): Ditto.
135
136 * regcache.c (generic_target_read_pc, read_pc_pid, read_pc,
137 generic_target_write_pc, write_pc_pid, write_pc,
138 generic_target_read_sp, read_sp, generic_target_write_sp,
139 write_sp, generic_target_read_fp, read_fp,
140 generic_target_write_fp, write_fp): Add note that these functions
141 will be moved from this file.
142
143 * a29k-tdep.c: Include "regcache.h".
144 * a68v-nat.c: Ditto.
145 * abug-rom.c: Ditto.
146 * alpha-nat.c: Ditto.
147 * alpha-tdep.c: Ditto.
148 * alphabsd-nat.c: Ditto.
149 * arc-tdep.c: Ditto.
150 * arm-linux-nat.c: Ditto.
151 * arm-linux-tdep.c: Ditto.
152 * arm-tdep.c: Ditto.
153 * blockframe.c: Ditto.
154 * core-aout.c: Ditto.
155 * core-sol2.c: Ditto.
156 * corelow.c: Ditto.
157 * cpu32bug-rom.c: Ditto.
158 * cxux-nat.c: Ditto.
159 * d10v-tdep.c: Ditto.
160 * d30v-tdep.c: Ditto.
161 * dbug-rom.c: Ditto.
162 * dink32-rom.c: Ditto.
163 * dve3900-rom.c: Ditto.
164 * findvar.c: Ditto.
165 * fr30-tdep.c: Ditto.
166 * frame.c: Ditto.
167 * go32-nat.c: Ditto.
168 * h8300-tdep.c: Ditto.
169 * h8500-tdep.c: Ditto.
170 * hp300ux-nat.c: Ditto.
171 * hppa-tdep.c: Ditto.
172 * hppab-nat.c: Ditto.
173 * hppah-nat.c: Ditto.
174 * hppam3-nat.c: Ditto.
175 * hpux-thread.c: Ditto.
176 * i386-linux-nat.c: Ditto.
177 * i386-linux-tdep.c: Ditto.
178 * i386-tdep.c: Ditto.
179 * i386aix-nat.c: Ditto.
180 * i386b-nat.c: Ditto.
181 * i386bsd-nat.c: Ditto.
182 * i386gnu-nat.c: Ditto.
183 * i386ly-tdep.c: Ditto.
184 * i386m3-nat.c: Ditto.
185 * i386mach-nat.c: Ditto.
186 * i386nbsd-nat.c: Ditto.
187 * i386v4-nat.c: Ditto.
188 * i387-nat.c: Ditto.
189 * i387-tdep.c: Ditto.
190 * i960-tdep.c: Ditto.
191 * ia64-aix-nat.c: Ditto.
192 * ia64-linux-nat.c: Ditto.
193 * ia64-tdep.c: Ditto.
194 * infptrace.c: Ditto.
195 * infrun.c: Ditto.
196 * irix4-nat.c: Ditto.
197 * irix5-nat.c: Ditto.
198 * lin-lwp.c: Ditto.
199 * lin-thread.c: Ditto.
200 * lynx-nat.c: Ditto.
201 * m3-nat.c: Ditto.
202 * m32r-rom.c: Ditto.
203 * m32r-tdep.c: Ditto.
204 * m68hc11-tdep.c: Ditto.
205 * m68k-tdep.c: Ditto.
206 * m68klinux-nat.c: Ditto.
207 * m68knbsd-nat.c: Ditto.
208 * m68knbsd-tdep.c: Ditto.
209 * m88k-nat.c: Ditto.
210 * m88k-tdep.c: Ditto.
211 * mac-nat.c: Ditto.
212 * mcore-rom.c: Ditto.
213 * mcore-tdep.c: Ditto.
214 * mi/mi-main.c: Ditto.
215 * mips-nat.c: Ditto.
216 * mips-tdep.c: Ditto.
217 * mipsm3-nat.c: Ditto.
218 * mipsv4-nat.c: Ditto.
219 * mn10200-tdep.c: Ditto.
220 * mn10300-tdep.c: Ditto.
221 * monitor.c: Ditto.
222 * ns32km3-nat.c: Ditto.
223 * ns32knbsd-nat.c: Ditto.
224 * ocd.c: Ditto.
225 * pa64solib.c: Ditto.
226 * ppc-bdm.c: Ditto.
227 * ppc-linux-nat.c: Ditto.
228 * ppc-linux-tdep.c: Ditto.
229 * ppcbug-rom.c: Ditto.
230 * ppcnbsd-nat.c: Ditto.
231 * ptx4-nat.c: Ditto.
232 * regcache.c: Ditto.
233 * remote-adapt.c: Ditto.
234 * remote-array.c: Ditto.
235 * remote-bug.c: Ditto.
236 * remote-e7000.c: Ditto.
237 * remote-eb.c: Ditto.
238 * remote-es.c: Ditto.
239 * remote-est.c: Ditto.
240 * remote-hms.c: Ditto.
241 * remote-mips.c: Ditto.
242 * remote-mm.c: Ditto.
243 * remote-nindy.c: Ditto.
244 * remote-os9k.c: Ditto.
245 * remote-rdi.c: Ditto.
246 * remote-rdp.c: Ditto.
247 * remote-sds.c: Ditto.
248 * remote-sim.c: Ditto.
249 * remote-st.c: Ditto.
250 * remote-udi.c: Ditto.
251 * remote-utils.c: Ditto.
252 * remote-vx.c: Ditto.
253 * remote-vx29k.c: Ditto.
254 * remote-vx68.c: Ditto.
255 * remote-vx960.c: Ditto.
256 * remote-vxmips.c: Ditto.
257 * remote-vxsparc.c: Ditto.
258 * remote.c: Ditto.
259 * rom68k-rom.c: Ditto.
260 * rs6000-nat.c: Ditto.
261 * rs6000-tdep.c: Ditto.
262 * sh-tdep.c: Ditto.
263 * sh3-rom.c: Ditto.
264 * sol-thread.c: Ditto.
265 * solib-svr4.c: Ditto.
266 * somsolib.c: Ditto.
267 * sparc-nat.c: Ditto.
268 * sparc-tdep.c: Ditto.
269 * sparcl-tdep.c: Ditto.
270 * sparclet-rom.c: Ditto.
271 * sun3-nat.c: Ditto.
272 * sun386-nat.c: Ditto.
273 * symm-nat.c: Ditto.
274 * target.c: Ditto.
275 * thread-db.c: Ditto.
276 * thread.c: Ditto.
277 * tic80-tdep.c: Ditto.
278 * tracepoint.c: Ditto.
279 * ultra3-nat.c: Ditto.
280 * umax-xdep.c: Ditto.
281 * uw-thread.c: Ditto.
282 * v850-tdep.c: Ditto.
283 * v850ice.c: Ditto.
284 * valops.c: Ditto.
285 * w65-tdep.c: Ditto.
286 * w89k-rom.c: Ditto.
287 * win32-nat.c: Ditto.
288 * wince.c: Ditto.
289 * z8k-tdep.c: Ditto.
290
291 2001-02-28 Matt Hiller <hiller@redhat.com>
292
293 * MAINTAINERS: Add Matt Hiller to Write After Approval list.
294
295 2001-02-27 Matt Hiller <hiller@redhat.com>
296
297 * mn10300-tdep.c (mn10300_stab_reg_to_regnum): New function.
298 (mn10300_gdbarch_init): Set appropriate elements of gdbarch to
299 mn10300_stab_reg_to_regnum.
300
301 Tue Feb 27 16:56:13 2001 David Taylor <taylor@redhat.com>
302
303 * symtab.c (search_symbols): Fix off by one error in test for
304 error.
305
306 2001-02-23 Andrew Cagney <ac131313@redhat.com>
307
308 * config/sparc/sp64linux.mt: New file.
309 * configure.tgt: Recognize sparc64-*-linux* as a sp64linux target.
310 * configure.host: Recognize sparc64-*-linux* as a linux host.
311
312 From 2000-03-17 Jakub Jelinek <jakub@redhat.com>:
313 * config/sparc/tm-sp64linux.h: New file.
314
315 2001-02-24 Kevin Buettner <kevinb@redhat.com>
316
317 * buildsym.c (push_subfile, pop_subfile): Replace call to abort()
318 with call to internal_error().
319 * dbxread.c (process_one_symbol): Likewise.
320 * exec.c (build_section_table, xfer_memory): Likewise.
321 * h8500-tdep.c (h8500_register_size, h8500_register_virtual_type):
322 Likewise.
323 * hpread.c (hpread_type_translate, hpread_read_array_type)
324 (hpread_type_lookup): Likewise.
325 * i386-tdep.c (gdb_print_insn_i386): Likewise.
326 * i960-tdep.c (mem): Likewise
327 * inflow.c (set_sigio_trap, clear_sigio_trap): Likewise.
328 * infptrace.c (child_resume): Likewise.
329 * infttrace.c (_initialize_infttrace): Likewise.
330 * language.c (binop_result_type, add_language): Likewise.
331 * lynx-nat.c (store_inferior_registers): Likewise.
332 * m3-nat.c (port_chain_insert, m3_trace_me): Likewise.
333 * mdebugread.c (parse_partial_symbols): Likewise.
334 * monitor.c (monitor_printf_noecho, monitor_printf)
335 (monitor_dump_regs): Likewise.
336 * ocd.c (stu_put_packet): Likewise.
337 * printcmd.c (decode_format, print_scalar_formatted): Likewise.
338 * remote-bug.c (bug_open): Likewise.
339 * remote-e7000.c (fetch_regs_from_dump, e7000_wait): Likewise.
340 * remote-es.c (es1800_read_bytes): Likewise.
341 * remote-mips.c (common_breakpoint): Likewise.
342 * remote-rdp.c (send_rdp): Likewise.
343 * remote-sds.c (putmessage): Likewise.
344 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
345 Likewise.
346 * sparcl-tdep.c (sparclite_download): Likewise.
347 * symtab.c (lookup_partial_symbol): Likewise.
348 * target.c (push_target, pop_target, initialize_targets): Likewise.
349 * utils.c (internal_verror, malloc_botch, wrap_here, decimal2str):
350 Likewise.
351 * valprint.c (print_decimal, print_longest, print_longest)
352 (strcat_longest): Likewise.
353 * w65-tdep.c (init_frame_pc, w65_push_dummy_frame): Likewise.
354 * xmodem.c (xmodem_send_packet): Likewise.
355 * z8k-tdep.c (init_frame_pc, z8k_push_dummy_frame): Likewise.
356 * config/h8500/tm-h8500.h (STORE_STRUCT_RETURN): Likewise.
357 * config/mn10200/tm-mn10200.h (EXTRACT_RETURN_VALUE)
358 (STORE_RETURN_VALUE): Likewise.
359 * config/ns32k/nm-umax.h (REGISTER_U_ADDR): Likewise.
360 * config/ns32k/xm-merlin.h (REGISTER_U_ADDR): Likewise.
361 * config/z8k/tm-z8k.h (STORE_STRUCT_RETURN, STORE_RETURN_VALUE):
362 Likewise.
363
364 2001-02-23 Andrew Cagney <ac131313@redhat.com>
365
366 * CONTRIBUTE: Document how to cite a problem report.
367 * TODO: Note need to replace CONTRIBUTE with generated file.
368
369 * CONTRIBUTE: Mention that patches do not need to include the
370 generated files gdbarch.h and gdbarch.c.
371
372 2001-02-21 Andrew Cagney <ac131313@redhat.com>
373
374 * value.h (get_saved_register): Move from here.
375 * frame.h: To here.
376
377 2001-02-21 Kevin Buettner <kevinb@redhat.com>
378
379 * solib.h (in_svr4_dynsym_resolve_code): Delete declaration.
380 (in_solib_dynsym_resolve_code): Add declaration.
381 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Changed define to invoke
382 in_solib_dynsym_resolve_code() rather than
383 in_svr4_dynsym_resolve_code(). Also, removed the ifdefs
384 which caused this macro to only be defined when
385 SVR4_SHARED_LIBS is defined.
386 * solib.c (in_solib_dynsym_resolve_code): New function.
387 * solist.h (struct target_so_ops): Add new member
388 in_dynsym_resolve_code.
389 * solib-aix5.c (aix5_in_dynsym_resolve_code): Renamed from
390 in_svr4_dynsym_resolve_code. Also, made static.
391 (_initialize_aix5_solib): Initialize in_dynsym_resolve_code
392 member in aix5_so_ops.
393 * solib-svr4.c (svr4_in_dynsym_resolve_code): Renamed from
394 in_svr4_dynsym_resolve_code. Also, added second version
395 of this function which will be used when SVR4_SHARED_LIBS
396 is not defined.
397 (_initialize_svr4_solib): Initialize in_dynsym_resolve_code
398 member in svr4_so_ops.
399
400 * ia64-aix-nat.c, ia64-aix-tdep.c, config/ia64/aix.mh,
401 config/ia64/aix.mt, config/ia64/nm-aix.h, config/ia64/tm-aix.h,
402 config/ia64/xm-aix.h: New files.
403 * ia64-tdep.c (_initialize_ia64_tdep): Remove declaration.
404 (ia64_aix_sigcontext_register_address): New declaration.
405 (ia64_gdbarch_init): Provide for initialization of
406 sigcontext_register_address member of struct tdep when
407 on target is detected to be running AIX.
408 * config/ia64/linux.mt (TDEPFILES): Add ia64-aix-tdep.o to
409 this list.
410
411 2001-02-20 Kevin Buettner <kevinb@redhat.com>
412
413 * ia64-tdep.c (ia64_frameless_function_invocation): Implement.
414 * config/ia64/linux.mh (NATDEPFILES): Use thread-db.o and lin-lwp.o
415 for thread support instead of linux-thread.o and lin-thread.o.
416 * config/ia64/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS,
417 ATTACH_LWP): Define to use the following lin-lwp.c functions...
418 (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals,
419 lin_lwp_attach_lwp): Declare.
420
421 2001-02-20 Andrew Cagney <ac131313@redhat.com>
422
423 * mips-tdep.c (do_fp_register_row, do_fp_register_row): Fix printf
424 formatting.
425
426 2001-02-20 Kevin Buettner <kevinb@redhat.com>
427
428 * solib-aix5.c (solib-svr4.h): Remove include.
429 (solib_break_names): Delete names which aren't actually
430 used by AIX5.
431 (bkpt_names): Remove.
432 (aix5_relocate_main_executable, bfd_lookup_symbol): Replace calls
433 to STREQ() with equivalent calls to strcmp().
434 (in_svr4_dynsym_resolve_code, enable_break, bfd_lookup_symbol,
435 aix5_solib_create_inferior_hook): Revise comments.
436 (enable_break): Remove old ``bkpt_names'' code.
437
438 2001-02-19 Andrew Cagney <ac131313@redhat.com>
439
440 * Makefile.in (SFILES): Add frame.c .
441 (COMMON_OBS): Add frame.o .
442 (frame.o): New target.
443
444 * frame.c (find_saved_register):
445 (default_get_saved_register):
446 (get_saved_register):
447 (read_relative_register_raw_bytes_for_frame):
448 (read_relative_register_raw_bytes): Moved to here.
449 * regcache.c: From here.
450
451 2001-02-20 Kevin Buettner <kevinb@redhat.com>
452
453 * solib-aix5.c: New file.
454
455 2001-02-20 Martin M. Hunt <hunt@redhat.com>
456
457 * solib.c (info_sharedlibrary_command): Don't assume pointers
458 are the same size of long, call longest_local_hex_string_custom().
459
460 * solib-svr4.c (LM_ADDR): LM_ADDR is a signed offset, so
461 extract_signed_integer() should be called instead of
462 extract_address().
463
464 2001-02-20 Martin M. Hunt <hunt@redhat.com>
465
466 * MAINTAINERS: Add Martin Hunt to Write After Approval list.
467
468 2001-02-19 Andrew Cagney <ac131313@redhat.com>
469
470 Frm 2001-02-09 Jim Kingdon <jkingdon@engr.sgi.com>:
471 * mips-tdep.c (mips_register_raw_size): If FP_REGISTER_DOUBLE,
472 then floating point registers are 8 bytes.
473
474 2001-02-19 Michael Snyder <msnyder@mvstp600e.cygnus.com>
475
476 * parse.c (write_exp_msymbol): Make the type CORE_ADDR, to
477 accomodate 64-bit addresses.
478
479 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
480
481 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>
482 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux, not
483 lookup_symbol, when trying to find a symbol with a mangled name,
484 to avoid infinite recursion.
485
486 2001-02-18 Andrew Cagney <ac131313@redhat.com>
487
488 * TODO (5.2): Mention G++ 3.0 ABI. General cleanups.
489
490 2001-02-19 Jonathan Larmour <jlarmour@redhat.com>
491
492 * arm-tdep.c (check_prologue_cache): Fix off by 1 error.
493 (save_prologue_cache): Ditto.
494
495 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
496
497 From: innadadadavida@yahoo.com:
498 * partial-stab.h (switch): Check that pst is not null
499 before dereferencing it.
500
501 2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
502
503 From Andrew Cagney <cagney@b1.cygnus.com>:
504 * symfile.c (add_symbol_file_command): Always initialize
505 my_cleanup using a NULL cleanup.
506
507 2001-02-19 Eli Zaretskii <eliz@is.elta.co.il>
508
509 * demangle.c (demangling_style_names): New variable.
510 (_initialize_demangler): Fill demangling_style_names with the
511 names of known demangling styles from libiberty_demanglers[]. Use
512 add_set_enum_cmd instead of add_set_cmd, to get completion on
513 demangling style names.
514
515 * proc-api.c (_initialize_proc_api): Make `procfs-file' use
516 file-name completion.
517
518 * remote-rdi.c (_initialize_remote_rdi): Ditto for `rdilogfile'.
519
520 * solib.c (_initialize_solib): Ditto for `solib-search-path' and
521 `solib-absolute-prefix'.
522
523 * tracepoint.c (_initialize_tracepoint): Ditto for
524 `save-tracepoints'.
525
526 * win32-nat.c (_initialize_inftarg): Ditto for `dll-symbols'.
527
528 * cli/cli-cmds.c (init_cli_cmds): Make `shell' and `make' use
529 file-name completion.
530
531 * infcmd.c (_initialize_infcmd): Make the following commands use
532 the file-name completer: `tty', `args', `path', `paths', and
533 `run'.
534
535 2001-02-18 Eli Zaretskii <eliz@is.elta.co.il>
536
537 * go32-nat.c: Include i387-nat.h.
538 (fetch_register): New function, uses some of the guts of
539 go32_fetch_registers and calls i387_supply_register.
540 (go32_fetch_registers): Most of the code moved into
541 fetch_register. Use i387_supply_fsave.
542 (store_register): Use i387_fill_fsave instead of custom code.
543 (go32_store_registers): Use i387_fill_fsave.
544
545 * Makefile.in (go32-nat.o): Depend on i387-nat.h.
546
547 * config/i386/go32.mh (NATDEPFILES): Add i387-nat.o.
548
549 * completer.c (gdb_completer_file_name_break_characters): Remove
550 slash from file-name break characters.
551 [__MSDOS__]: Special definition for DOS/Windows file names.
552 (line_completion_function): When completing on file names, bump
553 `p' to the first file-name constituent character of `word', before
554 invoking the completer.
555
556 2001-02-17 Mark Kettenis <kettenis@gnu.org>
557
558 * i387-nat.c: Include "i387-nat.h". Use regnum instead of regno
559 consistently for parameter names. Fix comments accordingly.
560 (i387_supply_register): New function.
561 (i387_supply_fsave): Implement using i387_supply_register.
562 * i387-nat.h: Use regnum instead of regno consistently for
563 parameter names. Fix comments accordingly.
564 (i387_supply_register): New prototype.
565
566 2001-02-16 Michael Snyder <msnyder@mvstp600e.cygnus.com>
567
568 * remote.c (build_remote_gdbarch_data): Use new TARGET_ADDR_BIT
569 instead of TARGET_PTR_BIT (to support Harvard architectures).
570
571 2001-02-16 Andrew Cagney <ac131313@redhat.com>
572
573 From 2001-02-11 Paul Hilfinger <hilfingr@lisbon.int.act-europe.fr>
574 * hpux-thread.c (hpux_thread_xfer_memory): Add mem_attrib
575 argument to parameter list and to call in order to conform to
576 to_xfer_memory field of struct target_ops.
577
578 2001-02-12 Michael Chastain <chastain@redhat.com>
579
580 * somsolib.c (som_solib_add_solib_objfile): Do not use
581 section relocation feature of syms_from_objfile. Do my own
582 section relocation, offsetting each section of the som by
583 either text_addr - text_link_addr or data_start.
584
585 2001-02-16 Andrew Cagney <ac131313@redhat.com>
586
587 * TODO (5.1): Move ``Hardware watchpint problems'' out of 5.1.
588
589 2001-02-16 Andrew Cagney <ac131313@redhat.com>
590
591 * MAINTAINERS (paper trail): Update.
592
593 2001-02-16 Mark Kettenis <kettenis@gnu.org>
594
595 * target.h (target_fetch_registers): Fix comment.
596
597 2001-02-15 Andrew Cagney <ac131313@redhat.com>
598
599 * f-exp.y: Include <ctype.h>.
600 (parse_number): Ensure that ``i'' is always initialized.
601
602 2001-02-14 Jim Kingdon <jkingdon@engr.sgi.com>
603
604 * MAINTAINERS: Add myself to paper trail section.
605
606 2001-02-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
607
608 * configure.in (AC_CHECK_HEADERS): Add sys/file.h.
609 * configure, config.in: Regenerate.
610 * corelow.c: Include <sys/file.h> if present.
611
612 2001-02-14 Andrew Cagney <ac131313@redhat.com>
613
614 * inflow.c (terminal_ours_1): Initialize ``osigtou''. Only
615 declare when have SIGTTOU.
616
617 2001-02-14 Eli Zaretskii <eliz@is.elta.co.il>
618
619 * config/djgpp/fnchange.lst: Add entries for gdb/gdbtk/*/ChangeLog-*.
620
621 2001-02-12 Jim Kingdon <jkingdon@engr.sgi.com>
622
623 * MAINTAINERS: Update my email address.
624
625 2001-02-11 Eli Zaretskii <eliz@is.elta.co.il>
626
627 * NEWS: Document that "info symbol" works with COFF debug info and
628 its variants.
629
630 * minsyms.c (lookup_minimal_symbol_by_pc_section): Don't skip
631 symbols whose SYMBOL_BFD_SECTION is NULL.
632
633 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
634
635 Get rid of AIX specific PC_LOAD_SEGMENT, replace with PC_SOLIB.
636 * xcoffsolib.c (xcoff_solib_address): Renamed from
637 pc_load_segment_name. Return NULL if address is not in a shared
638 library. Cleanup shared library name construction, using xasprintf.
639 Format shared library member names consistent with format in exec.c.
640 (solib_info): Format shared library member names consistent with
641 format in exec.c.
642 * config/rs6000/nm-rs6000.h: Replace PC_LOAD_SEGMENT with PC_SOLIB,
643 using xcoff_solib_address for PC_SOLIB definition.
644 * stack.c (print_frame): Remove PC_LOAD_SEGMENT code, no longer
645 needed.
646
647 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
648
649 * mipsread.c (read_alphacoff_dynamic_symtab): Replace alloca calls
650 with xmalloc calls and cleanups.
651
652 2001-02-10 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
653
654 * rs6000-nat.c (child_xfer_memory): Add missing parameter
655 'struct mem_attrib *' required by 2001-01-23 change.
656
657 2001-02-08 Jim Kingdon <jkingdon@engr.sgi.com>
658
659 Updates to "make TAGS":
660 * Makefile.in (ALLDEPFILES): Remove altos-xdep.c arm-convert.s
661 arm-xdep.c convex-tdep.c convex-xdep.c pyr-tdep.c pyr-xdep.c
662 tahoe-tdep.c.
663 (TAGFILES_NO_SRCDIR): Add $(SUBDIR_CLI_SRCS).
664
665 2001-02-08 Eli Zaretskii <eliz@is.elta.co.il>
666
667 * config/djgpp/fnchange.lst: Remove extraneous "too many dots".
668
669 Wed Feb 7 22:39:26 2001 Andrew Cagney <cagney@redhat.com>
670
671 From Dean Luick <luick@cray.com>:
672 * defs.h (continuation): Remove unused global variable.
673
674 Wed Feb 7 22:28:31 2001 Andrew Cagney <cagney@redhat.com>
675
676 * configure.tgt: Remove references to convex, pyramid, altos and
677 tahoe.
678 * configure.host: Ditto.
679 * MAINTAINERS: Ditto.
680 * NEWS: Update.
681
682 * tahoe-tdep.c: Delete obsolete file.
683 * pyr-xdep.c: Ditto.
684 * pyr-tdep.c: Ditto.
685 * convex-tdep.c: Ditto.
686 * convex-xdep.c: Ditto.
687 * config/tahoe/xm-tahoe.h: Ditto.
688 * config/tahoe/tm-tahoe.h: Ditto.
689 * config/tahoe/tahoe.mt: Ditto.
690 * config/tahoe/tahoe.mh: Ditto.
691 * config/pyr/xm-pyr.h: Ditto.
692 * config/pyr/tm-pyr.h: Ditto.
693 * config/pyr/pyramid.mt: Ditto.
694 * config/pyr/pyramid.mh: Ditto.
695 * config/m68k/xm-altos.h: Ditto.
696 * config/m68k/tm-altos.h: Ditto.
697 * config/m68k/altos.mt: Ditto.
698 * config/m68k/altos.mh: Ditto.
699 * config/convex/xm-convex.h: Ditto.
700 * config/convex/tm-convex.h: Ditto.
701 * config/convex/convex.mt: Ditto.
702 * config/convex/convex.mh: Ditto.
703 * config/convex/Convex.notes: Ditto.
704 * config/arm/xm-arm.h: Ditto.
705 * config/arm/nm-arm.h: Ditto.
706 * config/arm/arm.mt: Ditto.
707 * config/arm/arm.mh: Ditto.
708 * arm-convert.s: Ditto.
709 * arm-xdep.c: Ditto.
710 * altos-xdep.c: Ditto.
711
712 Wed Feb 7 19:41:21 2001 Andrew Cagney <cagney@redhat.com>
713
714 * defs.h (internal_error, internal_verror): Add __FILE__ and
715 __LINE__ parameter.
716 * utils.c (internal_error, internal_verror): Update.
717
718 * v850-tdep.c: Update calls to internal_error.
719 * utils.c: Ditto.
720 * ui-out.c: Ditto.
721 * ui-file.c: Ditto.
722 * target.h: Ditto.
723 * symtab.h: Ditto.
724 * symm-nat.c: Ditto.
725 * sparc-tdep.c: Ditto.
726 * source.c: Ditto.
727 * serial.c: Ditto.
728 * rs6000-tdep.c: Ditto.
729 * rs6000-nat.c: Ditto.
730 * remote.c: Ditto.
731 * remote-vx.c: Ditto.
732 * remote-sim.c: Ditto.
733 * remote-mips.c: Ditto.
734 * regcache.c: Ditto.
735 * objfiles.h: Ditto.
736 * objfiles.c: Ditto.
737 * mn10300-tdep.c: Ditto.
738 * mips-tdep.c: Ditto.
739 * maint.c: Ditto.
740 * m68k-tdep.c: Ditto.
741 * m3-nat.c: Ditto.
742 * language.c: Ditto.
743 * infptrace.c: Ditto.
744 * inferior.h: Ditto.
745 * infcmd.c: Ditto.
746 * ia64-tdep.c: Ditto.
747 * i386-tdep.c: Ditto.
748 * i386-linux-nat.c: Ditto.
749 * hppah-nat.c: Ditto.
750 * go32-nat.c: Ditto.
751 * findvar.c: Ditto.
752 * f-lang.c: Ditto.
753 * elfread.c: Ditto.
754 * event-loop.c: Ditto.
755 * dwarf2read.c: Ditto.
756 * dsrec.c: Ditto.
757 * d30v-tdep.c: Ditto.
758 * d10v-tdep.c: Ditto.
759 * cli/cli-setshow.c: Ditto.
760 * cli/cli-script.c: Ditto.
761 * ch-exp.c: Ditto.
762 * breakpoint.c: Ditto.
763 * ax-gdb.c: Ditto.
764 * arch-utils.c: Ditto.
765 * a29k-tdep.c: Ditto.
766 * gdb_assert.h: Ditto.
767 * gdbarch.sh: Ditto.
768 * gdbarch.h, gdbarch.c: Re-generate.
769
770 2001-02-07 Andrew Cagney <ac131313@redhat.com>
771
772 From Mark Kettenis <kettenis@gnu.org>:
773 * event-top.h [!STOP_SIGNAL]: #include <signal.h>.
774
775 2001-02-07 Andrew Cagney <ac131313@redhat.com>
776
777 * remote-sim.c (dump_mem): Cleanup printf format argument.
778 * MAINTAINERS: Update, mn10300-elf now builds.
779
780 2001-02-07 Mark Kettenis <kettenis@gnu.org>
781
782 * event-top.c: Remove duplicate #include <signal.h>.
783
784 2001-02-06 Andrew Cagney <ac131313@redhat.com>
785
786 * sol-thread.c (restore_inferior_pid): Save the PID in a freshly
787 allocated buffer.
788 (save_inferior_pid): Restore the PID from that tempoary
789 buffer. Delete the buffer.
790 * utils.c (make_cleanup_close, do_close_cleanup): Ditto for FD.
791
792 2001-02-06 Andrew Cagney <ac131313@redhat.com>
793
794 * MAINTAINERS: Add ``The Obvious Fix Rule''.
795
796 2001-02-06 Andrew Cagney <ac131313@redhat.com>
797
798 * MAINTAINERS: Add Michael Snyder to Solaris/SPARC list.
799
800 2001-02-06 Andrew Cagney <ac131313@cygnus.com>
801
802 * gdbarch.sh: Include "gdb_assert.h".
803 (struct gdbarch): Change ``nr_data'' to unsigned.
804 (alloc_gdbarch_data, free_gdbarch_data): New functions.
805 (gdbarch_free): Free the data-pointer vector. Use xfree to delete
806 architecture vector.
807 (struct gdbarch_data, struct gdbarch_data_registration): Move init
808 method to gdbarch_data. Add free method, make index unsigned.
809 (struct gdbarch_data_registry): Make nr unsigned.
810 (register_gdbarch_data): Add free parameter. Store in
811 gdbarch_data.
812 (init_gdbarch_data): Use set_gdbarch_data.
813 (set_gdbarch_data): New function.
814
815 * gdbarch.h, gdbarch.c: Re-generate.
816
817 2001-02-06 Michael Sokolov <msokolov@ivan.Harhan.ORG>
818
819 * ser-unix.c (hardware_print_tty_state) [HAVE_SGTTY]: Call
820 fprintf_filtered with correct arguments.
821
822 2001-02-06 Michael Snyder <msnyder@makita.cygnus.com>
823 Submitted by Paul Hilfinger (hilfingr@gnat.com)
824 and Andrei Petrov (and@genesyslab.com).
825 * findvar.c: Buffers of size MAX_REGISTER_RAW_SIZE or REGISTER_BYTES
826 must be allocated dynamically, since these are no longer constants.
827 * infcmd.c: Ditto.
828 * regcache.c: Ditto.
829 * remote.c: Ditto.
830 * sol-thread.c: Ditto.
831 * valops.c: Ditto.
832 * config/sparc/sun4sol2.mh (MH_CFLAGS): Add -I/usr/include/v9, as a
833 work-around for a missing Sun header file in solaris for sparc64.
834
835 2001-02-04 Philip Blundell <philb@gnu.org>
836
837 * config/arm/linux.mh (NATDEPFILES): Add proc-service.o,
838 thread-db.o, lin-lwp.o; remove lin-thread.o, linux-thread.o.
839 * config/arm/nm-linux.h (PREPARE_TO_PROCEED, ATTACH_LWP,
840 GET_THREAD_SIGNALS): Define.
841 * arm-linux-nat.c (fill_gregset): Correct type of argument.
842 (supply_gregset): Likewise.
843 (fill_fpregset): Likewise.
844 (supply_fpregset): Likewise.
845
846 Tue Feb 6 11:58:57 2001 David Taylor <taylor@redhat.com>
847
848 * valops.c (value_cast): If casting a scalar to a pointer, do not
849 issue a message about truncation unless it exceeds the length of
850 an address, not the length of a pointer. This is because what the
851 user gives us is an address, not a pointer, and we will ultimately
852 convert it (via ADDRESS_TO_POINTER) to a pointer, not truncate it
853 to a pointer. This allows things like "print *(int *)0x01000234"
854 to work without generating a misleading message on a target having
855 two byte pointers and four byte addresses.
856
857 2001-02-05 Christopher Faylor <cgf@cygnus.com>
858
859 * win32-nat.c: Change PTR to void * throughout.
860
861 2001-02-05 J.T. Conklin <jtc@redback.com>
862
863 * signals.h: Removed.
864 * event-top.c (#include <signal.h>): Changed from signals.h.
865 * inflow.c: Likewise.
866 * mac-xdep.c: Likewise.
867 * ser-pipe.c: Likewise.
868 * ser-tcp.c: Likewise.
869 * standalone.c: Likewise.
870 * top.c: Likewise.
871 * utils.c: Likewise.
872 * Makefile.in: Removed signals.h from dependencies.
873
874 2001-02-05 Christopher Faylor <cgf@cygnus.com>
875
876 Change suggested by Dean Luick <luick@cray.com>
877 * inferior.h (step_over_calls_kind): Remove trailing comma from
878 last enum element.
879 (step_over_calls): Declare as extern rather than global.
880
881 2001-02-05 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
882
883 * sh-tdep.c: Update copyright.
884 (sh_extract_return_value): Rewrite.
885 (sh3e_sh4_extract_return_value): New function.
886 (sh_gdbarch_init): Initialize gdbarch_extract-return_value to new
887 version of the function for sh3e and sh4 CPUs.
888
889 2001-02-05 Michael Chastain <chastain@redhat.com>
890
891 * hppah-nat.c (child_xfer_memory): Add parameter 'struct mem_attrib *'
892 to conform with interface change.
893
894 2001-02-04 Eli Zaretskii <eliz@is.elta.co.il>
895
896 * config/djgpp/fnchange.lst: Tweak to make consistent with the
897 new files.
898
899 * config/djgpp/djconfig.sh: Use explicit absolute file name when
900 invoking `find'.
901
902 * ser-go32.c (dos_write) [UART_FIFO_WORKS]: Use outportsb only if
903 UART_FIFO_WORKS is defined. Otherwise use outportb.
904 From Francisco Pastor <fpastor.etra-id@etra.es>
905
906 * go32-nat.c (go32_xfer_memory): Make the argument list consistent
907 with target.h's `to_xfer_memory' member.
908
909 2001-02-02 J.T. Conklin <jtc@redback.com>
910
911 * ppc-bdm.c (#include <signal.h>): Removed.
912 * remote-array.c: Likewise.
913 * remote-bug.c: Likewise.
914 * remote-e7000.c: Likewise.
915 * remote-mips.c: Likewise.
916 * remote-os9k.c: Likewise.
917 * remote-st.c: Likewise.
918 * remote-udi.c: Likewise.
919 * remote-vx29k.c: Likewise.
920 * remote-vx68.c: Likewise.
921 * remote-vx960.c: Likewise.
922 * remote-vxmips.c: Likewise.
923 * remote-vxsparc.c: Likewise.
924
925 2001-02-02 John Moore <jmoore@redhat.com>
926
927 * remote-utils.h (sr_set_device): Changed free() to xfree() where
928 appropriate. Also changed Copyright to include 2001.
929 * symtab.h (obstack_chunk_free, SYMBOL_INIT_DEMANGLED_NAME): Likewise.
930 * value.h (value_free): Likewise.
931 * gdbarch.sh (gdbarch_free): Likewise.
932 * gdbarch.c, gdbarch.h: Regenerated.
933
934 2001-02-02 John Moore <jmoore@redhat.com>
935
936 * cli/cli-cmds.c (apropos_command): Changed occurance of free() to
937 xfree(). Also changed Copyright to include 2001.
938
939 2001-02-02 J.T. Conklin <jtc@redback.com>
940
941 * monitor.c (#include "gdb_wait.h"): Removed.
942 * ocd.c: Likewise.
943 * ppc-bdm.c: Likewise.
944 * remote-adapt.c: Likewise.
945 * remote-array.c: Likewise.
946 * remote-bug.c: Likewise.
947 * remote-e7000.c: Likewise.
948 * remote-eb.c: Likewise.
949 * remote-es.c: Likewise.
950 * remote-mips.c: Likewise.
951 * remote-mm.c: Likewise.
952 * remote-nindy.c: Likewise.
953 * remote-os9k.c: Likewise.
954 * remote-rdi.c: Likewise.
955 * remote-rdp.c: Likewise.
956 * remote-sds.c: Likewise.
957 * remote-sim.c: Likewise.
958 * remote-st.c: Likewise.
959 * remote-udi.c: Likewise.
960 * remote-vx.c: Likewise.
961 * remote-vx29k.c: Likewise.
962 * remote-vx68.c: Likewise.
963 * remote-vx960.c: Likewise.
964 * remote-vxmips.c: Likewise.
965 * remote-vxsparc.c: Likewise.
966 * remote.c: Likewise.
967 * ser-pipe.c: Likewise.
968 * ser-unix.c: Likewise.
969 * Makefile.in: Updated dependencies.
970
971 2001-01-31 David Smith <dsmith@redhat.com>
972
973 * event-loop.c: Change inclusion of string.h to gdb_string.h and
974 updated the copyright notice.
975 * ser-pipe.c: Ditto.
976 * mi/mi-cmds.c: Ditto.
977 * mi/mi-console.c: Ditto.
978 * mi/mi-getopt.c: Ditto.
979 * mi/mi-parse.c: Ditto.
980
981 2001-01-31 David Smith <dsmith@redhat.com>
982
983 * MAINTAINERS: Add David Smith to Write After Approval list.
984
985 Tue Jan 30 15:43:08 2001 Andrew Cagney <cagney@cygnus.com>
986
987 * cli/cli-utils.c (putchar_filtered): Move function from here.
988 * utils.c (putchar_filtered): To here.
989 * cli/cli-utils.h (putchar_filtered): Move declaration from here.
990 * defs.h (putchar_filtered): To here.
991
992 Tue Jan 30 17:27:11 2001 Andrew Cagney <cagney@redhat.com>
993
994 * configure.in (AC_CHECK_FUNCS): Replace vfork test with
995 AC_FUNC_VFORK macro.
996 * config.in, configure: Re-generate.
997
998 * gdb_vfork.h: New file.
999 * ser-pipe.c (pipe_open): Update. Include "gdb_vfork.h".
1000 * fork-child.c (fork_inferior): Ditto.
1001
1002 Tue Jan 30 17:09:07 2001 Andrew Cagney <cagney@redhat.com>
1003
1004 * defs.h (strsave): Delete declaration.
1005 * utils.c (strsave): Delete definition.
1006 * TODO (strsave): Update
1007
1008 * mac-xdep.c (tilde_expand): Replace strsave with xstrdup.
1009 * sparcl-tdep.c (sparclite_open): Ditto.
1010 * mips-tdep.c (mips_set_processor_type_command): Ditto.
1011 (_initialize_mips_tdep): Ditto.
1012 * solib.c (solib_open): Ditto.
1013 * symfile.c (add_filename_language): Ditto.
1014 (set_ext_lang_command): Ditto.
1015 * source.c (init_source_path): Ditto.
1016 (mod_path): Ditto.
1017 * sh3-rom.c (sh3_open): Ditto.
1018 (sh3e_open): Ditto.
1019 * serial.c (serial_open): Ditto.
1020 * remote-mips.c (common_open): Ditto.
1021 * monitor.c (monitor_open): Ditto.
1022 * m32r-rom.c (m32r_upload_command): Ditto.
1023 * infcmd.c (path_command): Ditto.
1024 * f-exp.y (parse_number): Ditto.
1025 * breakpoint.c (create_longjmp_breakpoint): Ditto.
1026 (create_thread_event_breakpoint): Ditto.
1027 * arc-tdep.c (arc_set_cpu_type_command): Ditto.
1028 (_initialize_arc_tdep): Ditto.
1029
1030 Tue Jan 30 15:14:26 2001 Andrew Cagney <cagney@skil>
1031
1032 * cli/cli-script.c (define_command): Check for a bad hook value in
1033 switch statement.
1034
1035 2001-01-30 J.T. Conklin <jtc@redback.com>
1036
1037 * configure/sh/embed.mt: New file.
1038 * configure/sh/linux.mt: New file.
1039 * configure/sh/sh.mt: Removed.
1040 * configure.tgt (sh-*-hms,sh-*-coff*,sh-*-elf*,sh-*-linux): New targets.
1041 (sh-*-*): Removed.
1042
1043 2001-01-29 Michael Chastain <chastain@redhat.com>
1044
1045 * symtab.c (block_lookup_symbol): Use 'namespace' parameter in
1046 symbol comparisons in binary search.
1047
1048 2001-01-27 Christopher Faylor <cgf@cygnus.com>
1049
1050 * win32-nat.c (child_xfer_memory): Add missing argument required by
1051 2001-01-23 change.
1052
1053 2001-01-27 Mark Kettenis <kettenis@gnu.org>
1054
1055 * ui-out.c (do_list_end): New function.
1056 (make_cleanup_ui_out_list_end): New function.
1057 * ui-out.h: Provide prototype for make_cleanup_ui_out_list_end.
1058 * stack.c (print_frame) [UI_OUT]: Call
1059 make_cleanup_ui_out_list_end to make sure we mark the end of the
1060 list if we do a non-local exit. At the end of the function,
1061 instead of calling ui_out_list_end directly, let do_cleanups
1062 handle it.
1063
1064 2001-01-26 Fernando Nasser <fnasser@redhat.com>
1065
1066 Fix double parsing of filenames passed as command line arguments
1067 to GDB (causes weird handling of escape characters).
1068 Also, remove dependencies on the CLI from libgdb.
1069 * call-cmds.h: Remove declaration of exec_file_command().
1070 * gdbcore.h: Remove declaration of exec_file_command().
1071 Add declarations for exec_open() and exec_file_clear().
1072 * symfile.h: Add declarations for symbol_file_add_main() and
1073 symbol_file_clear().
1074 * exec.c (exec_open): New function. Implements to_open for exec
1075 targets.
1076 (exec_file_clear): New function. Makes GDB forget about a previously
1077 specified executable file.
1078 (exec_file_attach): Move parsing of arguments from here ...
1079 (exec_file_command): ... to here.
1080 (init_exec_ops): Use exec_open(), not exec_file_command() to
1081 implement to_open for exec targets.
1082 * symfile.c (symbol_file_add_main): New function. Call symbol_file_add()
1083 with default values. Used when the file name has already been parsed.
1084 (symbol_file_clear): New function. Makes GDB forget about previously
1085 read symbols.
1086 (symbol_file_command): Call the above function instead of inline code.
1087 * main.c: Include "symfile.h" and "gdbcore.h" instead of the deprecated
1088 "call-cmds.h".
1089 (captured_main): Call exec_file_attach() and symbol_file_add_main()
1090 instead of exec_file_command() and symbol_file_command().
1091 (captured_main): Add comment.
1092 * corefile.c: Include "symfile.h".
1093 (core_file_command): Call symbol_file_add_main() instead of
1094 symbol_file_command().
1095 (reopen_exec_file): Call exec_open() instead of exec_file_command().
1096 * infcmd.c: Include "symfile.h".
1097 (attach_command): Call symbol_file_add_main() instead of
1098 symbol_file_command().
1099 * infrun.c: Remove comment about the inclusion of "symfile.h",
1100 not any longer appropriate.
1101 (follow_exec): Call symbol_file_add_main() instead of
1102 symbol_file_command().
1103 * remote-es.c: Include "symfile.h".
1104 (es1800_load): Call symbol_file_add_main() instead of
1105 symbol_file_command().
1106 * remote-vx.c: Remove comment about the inclusion of "symfile.h",
1107 not any longer appropriate.
1108 (vx-wait): Call symbol_file_add_main() instead of
1109 symbol_file_command().
1110 * solib-svr4.c (open_symbol_file_object): Call symbol_file_add_main()
1111 instead of symbol_file_command().
1112 * v850ice.c (ice_file): Call exec_open(), exec_file_attach() and
1113 symbol_file_add_main() instead of exec_file_command() and
1114 symbol_file_command().
1115 * Makefile.in: Update dependencies.
1116
1117 2001-01-26 Jeff Holcomb <jeffh@redhat.com>
1118
1119 * remote-udi.c (udi_open): Change strdup to xstrdup.
1120 * thread.c (thread_apply_all_command): Change strdup to xstrdup.
1121 Update copyright message.
1122 * varobj.c (delete_variable_1): Likewise.
1123
1124 * gdb_string.h: Remove declaration of strdup. Update copyright
1125 message.
1126 * config/xm-mpw.h: Likewise.
1127 * config/i386/xm-i386mach.h: Likewise.
1128 * config/m68k/xm-apollo68b.h: Likewise.
1129 * config/m68k/xm-hp300bsd.h: Likewise.
1130 * config/rs6000/xm-rs6000.h: Likewise.
1131 * config/vax/xm-vaxult.h: Remove declaration of strdup.
1132 * config/vax/xm-vaxult2.h: Likewise.
1133
1134 2001-01-26 Jeff Holcomb <jeffh@redhat.com>
1135
1136 * MAINTAINERS: Add Jeff Holcomb to Write After Approval list.
1137
1138 2001-01-25 J.T. Conklin <jtc@redback.com>
1139
1140 * target.c (target_xfer_memory_partial): Return -1 on failure due
1141 to invalid access mode attribute.
1142
1143 2001-01-25 Christopher Faylor <cgf@cygnus.com>
1144
1145 * win32-nat.c (_initialize_core_win32): Prototype correctly.
1146
1147 2001-01-25 Mark Kettenis <kettenis@gnu.org>
1148
1149 * config/alpha/tm-fbsd.h: Update copyright.
1150 (USE_STRUCT_CONVENTION): Define in terms of
1151 alphabsd_use_struct_convention.
1152 * config/alpha/fbsd.mt (TDEPFILES): Add alphafbsd-tdep.c.
1153 * alphafbsd-tdep.c: New file.
1154
1155 2001-01-24 Fernando Nasser <fnasser@redhat.com>
1156
1157 * top.c (print_gdb_version): Update Copyright year.
1158
1159 2001-01-24 J.T. Conklin <jtc@redback.com>
1160
1161 * dcache.c (dcache_write_line): Fix typo.
1162
1163 * memattr.c (delete_mem_region): Replace free() with xfree().
1164 (mem_number): Add explicit type.
1165
1166 * sol-thread.c (sol_thread_xfer_memory): Add attrib argument.
1167 (rw_common): Likewise.
1168
1169 2001-01-24 Fernando Nasser <fnasser@redhat.com>
1170
1171 * infcmd.c (get_inferior_args, set_inferior_args): Accessor functions
1172 for the inferior program arguments.
1173 (run_command, run_no_args_command, init_infcmd)): Use accessor
1174 functions to set the inferior program arguments.
1175 * inferior.h: Add definitions to the accessor functions above.
1176
1177 2001-01-23 Jim Blandy <jimb@redhat.com>
1178
1179 * dwarf2read.c (read_tag_const_type, read_tag_volatile_type):
1180 Implement these correctly, using make_cv_type.
1181
1182 2001-01-23 J.T. Conklin <jtc@redback.com>
1183
1184 * exec.c (xfer_memory): Add attrib argument.
1185 * infptrace.c (child_xfer_memory): Likewise.
1186 * lin-lwp.c (lin_lwp_xfer_memory): Likewise.
1187 * monitor.c (monitor_xfer_memory): Likewise.
1188 * remote-adapt.c (adapt_xfer_inferior_memory): Likewise.
1189 * remote-array.c (array_xfer_memory): Likewise.
1190 * remote-bug.c (bug_xfer_memory): Likewise.
1191 * remote-e7000.c (e7000_xfer_inferior_memory): Likewise.
1192 * remote-eb.c (eb_xfer_inferior_memory): Likewise.
1193 * remote-es.c (es1800_xfer_inferior_memory): Likewise.
1194 * remote-mips.c (mips_xfer_memory): Likewise.
1195 * remote-mm.c (mm_xfer_inferior_memory): Likewise.
1196 * remote-nindy.c (nindy_xfer_inferior_memory): Likewise.
1197 * remote-os9k.c (rombug_xfer_inferior_memory): Likewise.
1198 * remote-rdi.c (arm_rdi_xfer_memory): Likewise.
1199 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Likewise.
1200 * remote-sds.c (sds_xfer_memory): Likewise.
1201 * remote-sim.c (gdbsim_xfer_inferior_memory): Likewise.
1202 * remote-st.c (st2000_xfer_inferior_memory): Likewise.
1203 * remote-udi.c (udi_xfer_inferior_memory): Likewise.
1204 * remote-vx.c (vx_xfer_memory): Likewise.
1205 * remote.c (remote_xfer_memory): Likewise.
1206 * target.c (debug_to_xfer_memory, do_xfer_memory): Likewise.
1207 * target.h (child_xfer_memory, do_xfer_memory, xfer_memory): Likewise.
1208 * thread-db.c (thread_db_xfer_memory): Likewise.
1209
1210 * target.h (#include "memattr.h"): Added.
1211 (target_ops.to_xfer_memory): Add attrib argument.
1212
1213 * wince.c (_initialize_inftarg): Removed call to set_dcache_state.
1214 * dcache.h (set_dcache_state): Removed declaration.
1215 * dcache.c (set_dcache_state): Removed definition
1216
1217 * dcache.c: Update module comment, as dcache is now enabled and
1218 disabled with memory region attributes instead of by the global
1219 variable "remotecache". Add comment describing the interaction
1220 between dcache and memory region attributes.
1221 (dcache_xfer_memory): Add comment describing benefits of moving
1222 cache writeback to a higher level.
1223 (dcache_struct): Removed cache_has_stuff field. This was used to
1224 record whether the cache had been accessed in order to invalidate
1225 it when it was disabled. However, this is not needed because the
1226 cache is write through and the code that enables, disables, and
1227 deletes memory regions invalidate the cache. Add comment which
1228 suggests that we could be more selective and only invalidate those
1229 cache lines containing data from those memory regions.
1230 (dcache_invalidate): Updated.
1231 (dcache_xfer_memory): Updated.
1232
1233 (dcache_alloc): Don't abort() if dcache_enabled_p is clear.
1234 (dcache_xfer_memory): Removed code that called do_xfer_memory() to
1235 perform a uncached transfer if dcache_enabled_p was clear. This
1236 function is now only called if caching is enabled for the memory
1237 region.
1238 (dcache_info): Always print cache info.
1239
1240 * target.c (do_xfer_memory): Add attrib argument.
1241 (target_xfer_memory, target_xfer_memory_partial): Break transfer
1242 into chunks defined by memory regions, pass region attributes to
1243 do_xfer_memory().
1244 * dcache.c (dcache_read_line, dcache_write_line): Likewise.
1245
1246 * Makefile.in (SFILES): Add memattr.c.
1247 (COMMON_OBS): Add memattr.o.
1248 (dcache.o): Add target.h to dependencies.
1249 * memattr.c: New file.
1250 * memattr.h: Likewise.
1251
1252 * config/m32r/m32r.mt (GDBSERVER_LIBS): Added ../../intl/libintl.a.
1253 * config/mips/vr5000.mt (GDBSERVER_LIBS): Likewise.
1254 * config/tic80/tic80.mt (GDBSERVER_LIBS): Likewise.
1255 * gdbserver/low-sim.c (#include "defs.h"): Removed.
1256 (mygeneric_load): Rename from generic_load.
1257
1258 * gdbserver/low-hppabsd.c (#include "server.h"): Added.
1259 (#include "defs.h"): Removed.
1260 (inferior_pid, perror_with_name): Remove declarations.
1261 * gdbserver/low-linux.c: Likewise.
1262 * gdbserver/low-nbsd.c: Likewise.
1263 * gdbserver/low-sparc.c: Likewise.
1264 * gdbserver/low-sun3.c: Likewise.
1265
1266 * i386-stub.c: Re-indent.
1267 * m68k-stub.c: Re-indent.
1268
1269 2001-01-22 Nicholas Duffek <nsd@redhat.com>
1270
1271 * gdbarch.sh (PARM_BOUNDARY): Define.
1272 * gdbarch.c: Regenerate.
1273 * gdbarch.h: Regenerate.
1274
1275 2001-01-22 J.T. Conklin <jtc@redback.com>
1276
1277 * ns32k-tdep.c: #include "frame.h"
1278 * config/ns32k/tm-umax.h (FRAME_FIND_SAVED_REGS): Restore. It
1279 appears to have been inadvertantly removed sometime in May 1999.
1280
1281 * Revert 2000-11-09 changes where shared library objects were
1282 moved from NATDEPFILES to TDEPFILES on NetBSD targets. While
1283 we'd like to be able to debug dynamically linked executables,
1284 this makes it impossible to build a cross debugger on a many
1285 hosts.
1286
1287 * config/i386/nbsd.mt: Remove solib.o, solib-svr4.o from TDEPFILES.
1288 * config/i386/nbsdelf.mt: Likewise.
1289 * config/m68k/nbsd.mt: Likewise.
1290 * config/ns32k/nbsd.mt: Likewise.
1291 * config/powerpc/nbsd.mt: Likewise.
1292 * config/sparc/nbsd.mt: Likewise.
1293 * config/sparc/nbsdelf.mt: Likewise.
1294 * config/i386/nbsd.mh: Add solib.o, solib-svr4.o to NATDEPFILES.
1295 * config/i386/nbsdelf.mh: Likewise.
1296 * config/m68k/nbsd.mh: Likewise.
1297 * config/ns32k/nbsd.mh: Likewise.
1298 * config/powerpc/nbsd.mh: Likewise.
1299 * config/sparc/nbsd.mh: Likewise.
1300
1301 2001-01-19 Jason Merrill <jason@redhat.com>
1302
1303 * dbxread.c (read_ofile_symtab): Stay with AUTO_DEMANGLING for G++.
1304 (process_one_symbol): Likewise.
1305 * dwarfread.c (handle_producer): Likewise.
1306
1307 Thu Jan 18 12:08:57 2001 Andrew Cagney <cagney@b1.cygnus.com>
1308
1309 * configure.in (build_warnings): Disable -Wuninitialized until GDB
1310 compiles with -Wuninitialized,-Werror.
1311 * configure: Regenerate.
1312
1313 * MAINTAINERS: Add list of buildable targets.
1314
1315 Thu Jan 18 12:48:04 2001 Andrew Cagney <cagney@b1.cygnus.com>
1316
1317 * defs.h (STRCMP): Delete macro.
1318
1319 * objfiles.c (objfile_relocate): Replace STRCMP with call to
1320 strcmp.
1321 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
1322 * symfile.c (compare_symbols): Ditto.
1323 * standalone.c (open): Ditto.
1324 * remote-es.c (verify_break): Ditto.
1325 * cli/cli-decode.c (add_cmd, add_show_from_set): Ditto.
1326
1327 * symfile.c (compare_psymbols): Delete comment refering to STRCMP.
1328
1329 Thu Jan 18 12:25:06 2001 Andrew Cagney <cagney@b1.cygnus.com>
1330
1331 * varobj.c (FREEIF): Delete macro.
1332 (varobj_set_value, free_variable): Replace FREEIF with ``xfree''
1333 call.
1334
1335 2001-01-18 Nick Clifton <nickc@redhat.com>
1336
1337 * arc-tdep.c (arc_cpu_type_table): Add new arc core numbers.
1338 (arc_print_insn): No bfd available, so pass NULL to
1339 arc_get_disassembler.
1340
1341 2001-01-09 James Ingham <jingham@inghji.apple.com>
1342
1343 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux to lookup
1344 a mangled symbol rather than recursing into lookup_symbol, since
1345 this will just re-unmangle the name & call lookup_symbol_aux -
1346 leading to an infinite recursion.
1347
1348 2001-01-18 Mark Kettenis <kettenis@gnu.org>
1349
1350 * infcmd.c (print_return_value): Restore another space lost by
1351 switch to UIOUT. ``$NN='' should be ``$NN =''.
1352
1353 Fri Jan 19 02:31:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
1354
1355 * target.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
1356 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Wrap macro
1357 definition in parenthesis.
1358
1359 Fri Jan 19 02:13:40 2001 Andrew Cagney <cagney@b1.cygnus.com>
1360
1361 From 2000-10-27 Mark Salter <msalter@redhat.com>:
1362 * remote.c (remote_remove_hw_breakpoint): Add 'len' field to Z
1363 packet.
1364 (remote_insert_hw_breakpoint): Ditto.
1365
1366 2001-01-17 J.T. Conklin <jtc@redback.com>
1367
1368 * config/m68k/tm-nbsd.h (USE_STRUCT_CONVENTION): Define.
1369 (BPT_VECTOR, REMOTE_BPT_VECTOR): Change to 0xf.
1370 * config/m68k/nbsd.mt (TDEPFILES): Add m68knbsd-tdep.o.
1371 * m68knbsd-tdep.c: New file.
1372
1373 * i386nbsd-tdep.c: Remove #if 0'd out #includes.
1374
1375 * m68knbsd-nat.c: #include gdbcore.h.
1376
1377 Wed Jan 17 09:41:58 2001 Andrew Cagney <cagney@b1.cygnus.com>
1378
1379 * MAINTAINERS: Add J.T. Conklin to Blanket Write Privs.
1380
1381 2001-01-16 Michael Snyder <msnyder@cleaver.cygnus.com>
1382
1383 * procfs.c (procfs_stopped_by_watchpoint): Don't die if process
1384 goes away -- just return false (ie. not stopped by watchpoint).
1385 * source.c (openp): Fix typo in comment.
1386
1387 2001-01-12 Nicholas Duffek <nsd@redhat.com>
1388
1389 * blockframe.c (generic_get_saved_register): Spelling fix.
1390 * frame.h (FRAME_FP): Spelling fix.
1391
1392 Fri Jan 12 18:29:46 2001 Andrew Cagney <cagney@b1.cygnus.com>
1393
1394 * infcmd.c (print_return_value): Restore space lost by switch to
1395 UIOUT. ``$NN='' should be ``$NN =''.
1396
1397 2001-01-08 Nicholas Duffek <nsd@redhat.com>
1398
1399 * regcache.c (set_register_cached, register_buffer,
1400 real_register, pseudo_register fetch_register, store_register):
1401 New functions.
1402 (register_changed, read_relative_register_raw_bytes_for_frame,
1403 registers_changed, registers_fetched, read_register_bytes,
1404 read_register_gen, write_register_gen, read_register,
1405 read_signed_register, write_register, supply_register): Replace
1406 register_valid[] with register_cached() and
1407 set_register_cached().
1408 (read_register_bytes, read_register_gen, write_register_gen,
1409 read_register, read_signed_register, write_register,
1410 supply_register): Replace registers[] with register_buffer().
1411 (read_register_bytes, read_register_gen, read_register,
1412 read_signed_register): Call fetch_register().
1413 (write_register_gen, write_register): Call real_register() and
1414 store_register().
1415 (write_register_bytes): Call store_register().
1416 * value.h (set_register_cached, register_buffer): Prototype.
1417 * remote.c (remote_fetch_registers): Allocate regs[] with a
1418 run-time size. Replace register_valid[] with
1419 set_register_cached().
1420 (store_register_using_P, remote_store_registers): Replace
1421 registers[] with register_buffer().
1422
1423 2001-01-08 Nicholas Duffek <nsd@redhat.com>
1424
1425 * regcache.c: Change "write-back" comment to "write-through".
1426 Change "regno" to "regnum".
1427 (read_register, read_signed_register): Remove "raw" from return
1428 value description.
1429 (supply_register): Spelling fix.
1430 * value.h: Change "regno" to "regnum".
1431
1432 2001-01-08 Fernando Nasser <fnasser@redhat.com>
1433
1434 * Makefile.in (install-gdbtk): Add .itcl files to the list of files
1435 to be installed.
1436
1437 2001-01-04 Michael Snyder <msnyder@mvstp600e.cygnus.com>
1438
1439 * mips-tdep.c (mips_coerce_float_to_double): Fix typo in comment.
1440
1441 2001-01-04 Nicholas Duffek <nsd@redhat.com>
1442
1443 * valops.c (VALUE_SUBSTRING_START): Delete.
1444
1445 2001-01-04 Nicholas Duffek <nsd@redhat.com>
1446
1447 * Makefile.in (SUBDIR_CLI_OBS): Add cli/cli-utils.o.
1448 (SUBDIR_CLI_SRCS): Add cli/cli-utils.c.
1449 (cli_utils_h): New variable.
1450 (cli/cli-utils.o): New rule.
1451 * cli/cli-utils.c: New file.
1452 * cli/cli-utils.h: New file.
1453
1454 2001-01-04 Nicholas Duffek <nsd@redhat.com>
1455
1456 * config/i386/tm-i386.h (REGISTER_CONVERT_TO_VIRTUAL,
1457 REGISTER_CONVERT_TO_RAW): Delete trailing semicolon.
1458
1459 2001-01-03 J.T. Conklin <jtc@redback.com>
1460
1461 * alphabsd-nat.c, i386-linux-nat.c, i386bsd-nat.c: Fix typo in
1462 comment.
1463
1464 2001-01-02 Michael Snyder <msnyder@cleaver.cygnus.com>
1465
1466 * sh-tdep.c (sh_default_store_return_value): Allow for small return type.
1467 (sh3e_sh4_store_return_value): Call sh_default_store_return_value for
1468 non-float types.
1469 * sparc-tdep.c (sparc_frame_chain): Fix typo in comment.
1470 Update copyright notice.
1471
1472 For older changes see ChangeLog-2000
1473 \f
1474 Local Variables:
1475 mode: change-log
1476 left-margin: 8
1477 fill-column: 74
1478 version-control: never
1479 End: