e08d55a678a1f305a61bc3a159ef0a323928c205
[binutils-gdb.git] / gdb / ChangeLog
1 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
2
3 * alpha-tdep.c: Update copyright years.
4 (alpha_next_pc): New function.
5 (alpha_software_single_step): Ditto.
6 * config/alpha/tm-alpha.h: Add prototype for
7 alpha_software_single_step.
8
9 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10
11 * alphabsd-nat.c: Update copyright years.
12 (fill_gregset): Use regcache_collect.
13 (fill_fpregset): Likewise.
14 (fetch_inferior_registers): Only fetch integer registers
15 if requested to do so.
16 (store_inferior_registers): Only store integer registers
17 if requested to do so.
18
19 2002-01-17 Andrew Cagney <ac131313@redhat.com>
20
21 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
22 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
23 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
24 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
25 * config/alpha/fbsd.mh (XDEPFILES): Delete.
26 * config/arm/linux.mh (XDEPFILES): Delete.
27 * config/arm/nbsd.mh (XDEPFILES): Delete.
28 * config/i386/i386dgux.mh (XDEPFILES): Delete.
29 * config/i386/i386sol2.mh (XDEPFILES): Delete.
30 * config/i386/i386m3.mh (XDEPFILES): Delete.
31 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
32 * config/i386/i386gnu.mh (XDEPFILES): Delete.
33 * config/i386/fbsd.mh (XDEPFILES): Delete.
34 * config/i386/i386bsd.mh (XDEPFILES): Delete.
35 * config/i386/i386sco5.mh (XDEPFILES): Delete.
36 * config/i386/i386v4.mh (XDEPFILES): Delete.
37 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
38 * config/i386/i386sco4.mh (XDEPFILES): Delete.
39 * config/i386/i386aix.mh (XDEPFILES): Delete.
40 * config/i386/go32.mh (XDEPFILES): Delete.
41 * config/i386/cygwin.mh (XDEPFILES): Delete.
42 * config/i386/i386lynx.mh (XDEPFILES): Delete.
43 * config/i386/i386mach.mh (XDEPFILES): Delete.
44 * config/i386/i386v32.mh (XDEPFILES): Delete.
45 * config/i386/linux.mh (XDEPFILES): Delete.
46 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
47 * config/i386/ncr3000.mh (XDEPFILES): Delete.
48 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
49 * config/i386/i386sco.mh (XDEPFILES): Delete.
50 * config/i386/i386v.mh (XDEPFILES): Delete.
51 * config/i386/nbsd.mh (XDEPFILES): Delete.
52 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
53 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
54 * config/i386/symmetry.mh (XDEPFILES): Delete.
55 * config/i386/obsd.mh (XDEPFILES): Delete.
56 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
57 * config/ia64/linux.mh (XDEPFILES): Delete.
58 * config/ia64/aix.mh (XDEPFILES): Delete.
59 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
60 * config/m68k/dpx2.mh (XDEPFILES): Delete.
61 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
62 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
63 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
64 * config/m68k/linux.mh (XDEPFILES): Delete.
65 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
66 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
67 * config/m68k/nbsd.mh (XDEPFILES): Delete.
68 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
69 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
70 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
71 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
72 * config/m88k/delta88.mh (XDEPFILES): Delete.
73 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
74 * config/m88k/m88k.mh (XDEPFILES): Delete.
75 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
76 * config/mips/linux.mh (XDEPFILES): Delete.
77 * config/mips/irix6.mh (XDEPFILES): Delete.
78 * config/mips/irix5.mh (XDEPFILES): Delete.
79 * config/mips/irix4.mh (XDEPFILES): Delete.
80 * config/mips/irix3.mh (XDEPFILES): Delete.
81 * config/mips/decstation.mh (XDEPFILES): Delete.
82 * config/mips/mipsm3.mh (XDEPFILES): Delete.
83 (NATDEPFILES): Move core-aout.o to here.
84 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
85 * config/pa/hpux1020.mh (XDEPFILES): Delete.
86 * config/pa/hppabsd.mh (XDEPFILES): Delete.
87 * config/pa/hppahpux.mh (XDEPFILES): Delete.
88 * config/pa/hpux11w.mh (XDEPFILES): Delete.
89 * config/pa/hppaosf.mh (XDEPFILES): Delete.
90 * config/pa/hpux11.mh (XDEPFILES): Delete.
91 * config/powerpc/aix.mh (XDEPFILES): Delete.
92 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
93 * config/powerpc/linux.mh (XDEPFILES): Delete.
94 * config/romp/rtbsd.mh: Rename XDEPFILES.
95 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
96 * config/rs6000/aix4.mh (XDEPFILES): Delete.
97 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
98 * config/s390/s390.mh (XDEPFILES): Delete.
99 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
100 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
101 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
102 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
103 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
104 * config/sparc/nbsd.mh (XDEPFILES): Delete.
105 * config/sparc/linux.mh (XDEPFILES): Delete.
106 * config/vax/vaxult.mh (XDEPFILES): Delete.
107 * config/vax/vaxult2.mh (XDEPFILES): Delete.
108 * Makefile.in (DEPFILES): Remove XDEPFILES.
109
110 2002-01-17 Andrew Cagney <ac131313@redhat.com>
111
112 * utils.c (internal_verror): Fix comments, default is yes not no.
113 Update queries to match. Default to quit and dump core.
114
115 2002-01-17 Andrew Cagney <ac131313@redhat.com>
116
117 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
118 copyright.
119 * defs.h, event-top.c, gdbcmd.h: Ditto.
120 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
121 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
122 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
123 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
124 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
125 * mi/mi-main.c:Ditto.
126
127 * stack.c, symfile.c: Update copyright.
128
129 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
130
131 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
132 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
133 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
134 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
135
136 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
137
138 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
139 * gdbserver/low-lynx.c (myattach): Likewise.
140 * gdbserver/low-nbsd.c (myattach): Likewise.
141 * gdbserver/low-sim.c (myattach): Likewise.
142 * gdbserver/low-sparc.c (myattach): Likewise.
143 * gdbserver/low-sun3.c (myattach): Likewise.
144
145 * gdbserver/low-linux.c (myattach): New function.
146
147 * gdbserver/server.c (attach_inferior): New function.
148 (main): Handle "--attach".
149
150 2002-01-16 Andrew Cagney <ac131313@redhat.com>
151
152 * MAINTAINERS (language support): Daniel Jacobwitz is C++
153 maintainer.
154
155 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
156
157 * c-typeprint.c (is_type_conversion_operator): Add additional
158 check for non-conversion operators.
159
160 2002-01-15 Michael Snyder <msnyder@redhat.com>
161
162 * linux-proc.c: Add "info proc" command, a la procfs.c.
163 (read_mapping): New function, abstract and re-use code.
164 (linux_find_memory_regions): Use new func read_mapping.
165 (linux_info_proc_cmd): New function, implement "info proc".
166 (_initialize_linux_proc): Add new command "info proc".
167
168 2002-01-15 Michael Snyder <msnyder@redhat.com>
169
170 * symfile.c (generic_load): Use bfd_map_over_sections method
171 instead of manipulating bfd structure members directly.
172 (add_section_size_callback): New function, bfd sections callback
173 used by generic_load.
174 (load_sections_callback): New function, bfd sections callback
175 used by generic_load.
176
177 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
178
179 [Based on work by Jim Blandy]
180 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
181 (builtin_type_vec128): Export.
182 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
183 types.
184 (builtin_type_vec128): New builtin type for 128 bit vector
185 registers.
186 (build_gdbtypes): Initialize builtin_type_v16qi and
187 builtin_type_v8hi. Create the vec128 register builtin type
188 structure.
189 (build_builtin_type_vec128): New function.
190 (_initialize_gdbtypes): Register builtin_type_v16qi and
191 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
192 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
193 AltiVec register to new builtin type.
194
195 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
196
197 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
198 to make_cv_type.
199
200 2002-01-14 Andrew Cagney <ac131313@redhat.com>
201
202 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
203 CLEAN_UP_REGISTER_VALUE.
204 * regcache.c (supply_register): Update only call.
205
206 2002-01-14 Andrew Cagney <ac131313@redhat.com>
207
208 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
209 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
210 a29k-*-vxworks* targets as obsolete.
211
212 2002-01-14 Michael Snyder <msnyder@redhat.com>
213
214 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
215 until we can resolve portability issues.
216 * gregset.h: Remove references to fpxregs.
217 * gcore.c (gcore_command): Initialize note_sec to NULL.
218
219 2002-01-13 Andrew Cagney <ac131313@redhat.com>
220
221 * signals.c (target_signal_to_name): Rewrite. Only use
222 signals[].name when in bounds and non-NULL.
223
224 2002-01-13 Andrew Cagney <ac131313@redhat.com>
225
226 From Petr Ledvina <ledvinap@kae.zcu.cz>:
227 * signals.c (target_signal_to_name): Verify that SIG is within the
228 bounds of the signals array.
229
230 2002-01-13 Andrew Cagney <ac131313@redhat.com>
231
232 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
233
234 2002-01-13 Keith Seitz <keiths@redhat.com>
235
236 * stack.c (print_frame_info_base): Print the frame's pc
237 only if when print_frame_info_listing_hook is not defined.
238
239 2002-01-13 Keith Seitz <keiths@redhat.com>
240
241 * varobj.c (varobj_set_value): Make sure that there were no
242 errors evaluating the object before attempting to set its
243 value.
244 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
245 so this offset adjustment is no longer necessary.
246 (create_child): Don't set the error flag if the child is
247 a CPLUS_FAKE_CHILD.
248 (value_of_child): If value_fetch_lazy fails, return NULL
249 so that callers will be notified that an error occurred.
250 (c_value_of_variable): Delay check of variable's validity
251 until later. We actually want all structs and unions to have
252 the value "{...}".
253 Do not return "???" for variables which could not be evaluated.
254 This error condition must be returned to the caller so that it
255 can get the error condition from gdb.
256 (cplus_name_of_child): Adjust index for vptr before figuring
257 out the name of the child.
258 (cplus_value_of_child): If a child's (real) parent is not valid,
259 don't even bother trying to give a value for it. Just return
260 an error. Change all instances in this function.
261 (cplus_type_of_child): If our parent is one of the "fake"
262 parents, we need to get at the type of the real parent, and
263 derive the child's true type using this information.
264
265 2002-01-13 Andrew Cagney <ac131313@redhat.com>
266
267 From 2002-01-09 John Marshall <johnm@falch.net>:
268 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
269 sources.redhat.com, and tweak some related URLs which had
270 suffered from linkrot.
271
272 2002-01-13 Andrew Cagney <ac131313@redhat.com>
273
274 From Jeff law:
275 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
276 structures passed in registers.
277
278 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
279
280 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
281 white space which prevented compilation. Reported by DSK
282 <dsk@student.unsw.edu.au>.
283
284 2002-01-11 Michael Snyder <msnyder@redhat.com>
285
286 * symfile.c (build_section_addr_info_from_section_tab):
287 Use bfd access method instead of manipulating bfd directly.
288 (syms_from_objfile): Ditto.
289 (simple_overlay_update_1): Ditto.
290 (simple_overlay_update): Ditto.
291 (generic_load): Ditto.
292 (overlay_unmapped_address): FIXME comment, bfd access methods.
293 (sections_overlap): FIXME comment, bfd access methods.
294 (pc_in_mapped_range): FIXME comment, bfd access methods.
295 (pc_in_unmapped_range): FIXME comment, bfd access methods.
296 (section_is_mapped): FIXME comment, bfd access methods.
297 (section_is_overlay): FIXME comment, bfd access methods.
298
299 * symfile.c (generic_load): Whitespace and long line cleanups.
300 Remove duplicate variable, change several local variables to
301 more appropriate data types.
302 (print_transfer_performance): Use %lu instead of %ld for ulongs.
303
304 2002-01-12 Andrew Cagney <ac131313@redhat.com>
305
306 From Peter Schauer:
307 * language.c (longest_local_hex_string_custom): Use phex_nz to
308 convert NUM to a hex string.
309
310 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
311
312 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
313 the function.
314 Update Copyright year.
315
316 2002-01-12 Andrew Cagney <ac131313@redhat.com>
317
318 * language.c (longest_raw_hex_string): Delete unused function.
319
320 2002-01-11 Petr Sorfa <petrs@caldera.com>
321
322 * MAINTAINERS (write-after-approval): Add myself.
323 * dwarf2read.c (read_tag_string_type): Handling of
324 DW_AT_byte_size.
325 (read_tag_string_type): FORTRAN fix to prevent propagation of
326 first string size.
327 (set_cu_language): Handling of DW_LANG_Fortran95
328
329 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
330
331 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
332 GETPID(inferior_ptid).
333 (store_inferior_registers): Likewise.
334
335 2002-01-10 Jason Merrill <jason@redhat.com>
336
337 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
338 Fix DW_OP_minus.
339
340 2002-01-10 Andrew Cagney <ac131313@redhat.com>
341
342 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
343 and bfd/elf32-sh-nbsd.c.
344
345 2002-01-10 Michael Snyder <msnyder@redhat.com>
346
347 * NEWS: Mention --pid and corefile/proc-id behavior change.
348
349 * Makefile.in: Add rules for gcore.o and linux-proc.o.
350 * gcore.c: Include cli/cli-decode.h instead of command.h.
351
352 * main.c (captured_main): Add new command line option "--pid".
353 If the second command line argument (following the symbol-file)
354 begins with a digit, try to attach to it before trying to open
355 it as a corefile.
356 (print_gdb_help): Document the "--pid" argument.
357
358 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
359
360 * completer.c (command_completer): New function.
361
362 * completer.h <command_completer>: Add prototype.
363
364 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
365 completer for the "help" command.
366
367 2002-01-09 Jason Merrill <jason@redhat.com>
368
369 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
370
371 2002-01-09 Michael Snyder <msnyder@redhat.com>
372
373 * i386-linux-nat.c (fill_fpxregset): Make global.
374 (store_fpxregset): Ditto.
375
376 * gregset.h (gdb_fpxregset_t): Define.
377 (supply_fpxregset): Prototype.
378 (fill_fpxregset): Prototype.
379
380 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
381
382 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
383
384 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
385 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
386 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
387
388 2002-01-09 Andrew Cagney <ac131313@redhat.com>
389
390 * MAINTAINERS: Update target maintainer rules so that any
391 Maintainer can approve a tested patch for a maintenance-only
392 target.
393
394 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
395
396 * MAINTAINERS (write-after-approval): Add myself.
397
398 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
399 IN_SIGTRAMP.
400
401 2002-01-08 Michael Snyder <msnyder@redhat.com>
402
403 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
404 real name of the executable, rather than the /proc name.
405
406 2002-01-03 Michael Snyder <msnyder@redhat.com>
407
408 Implement a "generate-core-file" command in gdb, save target state.
409 * gcore.c: New file. Implement new command 'generate-core-file'.
410 Save a corefile image of the current state of the inferior.
411 * linux-proc.c: Add linux-specific code for saving corefiles.
412 * target.h (struct target_ops): Add new target vectors for saving
413 corefiles; to_find_memory_regions and to_make_corefile_notes.
414 (target_find_memory_regions): New macro.
415 (target_make_corefile_notes): New macro.
416 * target.c (update_current_target): Inherit new target methods.
417 (dummy_find_memory_regions): New place-holder method.
418 (dummy_make_corefile_notes): New place-holder method.
419 (init_dummy_target): Initialize new dummy target vectors.
420 * exec.c (exec_set_find_memory_regions): New function.
421 Allow the exec_ops vector for memory regions to be taken over.
422 (exec_make_note_section): New function, target vector method.
423 * defs.h (exec_set_find_memory_regions): Export prototype.
424 * procfs.c (proc_find_memory_regions): New function, corefile method.
425 (procfs_make_note_section): New function, corefile method.
426 (init_procfs_ops): Set new target vector pointers.
427 (find_memory_regions_callback): New function.
428 (procfs_do_thread_registers): New function.
429 (procfs_corefile_thread_callback): New function.
430 * sol-thread.c (sol_find_memory_regions): New function.
431 (sol_make_note_section): New function.
432 (init_sol_thread_ops): Initialize new target vectors.
433 * inftarg.c (inftarg_set_find_memory_regions): New function.
434 Allow to_find_memory_regions vector to be taken over.
435 (inftarg_set_make_corefile_notes): New function.
436 Allow to_make_corefile_notes vector to be taken over.
437 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
438 interface layer if not target_has_execution (may be a corefile).
439 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
440 * config/sparc/sun4sol2.mh: Ditto.
441 * config/alpha/alpha-linux.mh: Ditto.
442 * config/arm/linux.mh: Ditto.
443 * config/i386/x86-64linux.mh: Ditto.
444 * config/ia64/linux.mh: Ditto.
445 * config/m68k/linux.mh: Ditto.
446 * config/mips/linux.mh: Ditto.
447 * config/powerpc/linux.mh: Ditto.
448 * config/sparc/linux.mh: Ditto.
449
450 2002-01-07 Michael Snyder <msnyder@redhat.com>
451
452 * arm-linux-nat.c: Remove references to regcache.c internal data
453 (registers[] and register_valid[]).
454
455 2002-01-07 Michael Snyder <msnyder@redhat.com>
456
457 * linux-proc.c: New file. Implement child_pid_to_exec_file,
458 so that attaching to a pid will automatically read the process's
459 symbol file and shlibs.
460 * Makefile.in: Add rule for linux-proc.o.
461 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
462 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
463 * config/arm/linux.mh: Ditto.
464 * config/i386/linux.mh: Ditto.
465 * config/i386/x86-64linux.mh: Ditto.
466 * config/ia64/linux.mh: Ditto.
467 * config/m68k/linux.mh: Ditto.
468 * config/mips/linux.mh: Ditto.
469 * config/powerpc/linux.mh: Ditto.
470 * config/sparc/linux.mh: Ditto.
471
472 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
473
474 * win32-nat.c: Add i386-tdep.h dependency.
475
476 2002-01-07 Michael Snyder <msnyder@redhat.com>
477
478 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
479 instead of bfd_get_arch_size. Don't bail out just because
480 there's no exec_bfd.
481
482 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
483 * p-valprint.c (pascal_object_print_value): Ditto.
484 * somread.c (som_symtab_read): Ditto.
485 * symfile.c (simple_free_overlay_region_table): Ditto.
486 * valops.c (value_assign): Ditto.
487
488 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
489 use tilde_expand and strerror for opening save-tracepoints file.
490
491 * thread-db.c (thread_db_new_objfile): Indendation fix.
492
493 * infptrace.c (GDB_MAX_ALLOCA): New define.
494 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
495 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
496 can be overridden with whatever value is appropriate to the host).
497 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
498 alloca to allocate potentially large buffer.
499 * rs6000-nat.c (child_xfer_memory): Ditto.
500 * symm-nat.c (child_xfer_memory): Ditto.
501 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
502
503 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
504
505 From Nick Clifton <nickc@redhat.com>
506 * d10v-tdep.c: Set STACK_START to 0x200bffe.
507
508 2002-01-07 Michael Snyder <msnyder@redhat.com>
509
510 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
511 Don't use exec_bfd if it's NULL.
512
513 2002-01-06 Mark Kettenis <kettenis@gnu.org>
514
515 * valops.c (value_arg_coerce): Fix formatting.
516
517 2002-01-06 Andrew Cagney <ac131313@redhat.com>
518
519 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
520 * gnu-nat.c: Ditto.
521
522 2002-01-06 Andrew Cagney <ac131313@redhat.com>
523
524 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
525 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
526 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
527 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
528 z8k-coff have not been multi-arched. Update z8k-coff build
529 status.
530
531 2002-01-06 Andrew Cagney <ac131313@redhat.com>
532
533 * MAINTAINERS: Mark a29k target as obsolete.
534 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
535 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
536 comments.
537 * NEWS: Note that a29k targets are obsolete.
538 * a29k-tdep.c: Mark as obsolete.
539 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
540 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
541 a29k-*-vxworks* targets as obsolete.
542 * remote-adapt.c: Obsolete.
543 * remote-eb.c: Obsolete.
544 * remote-mm.c: Obsolete.
545 * remote-udi.c: Obsolete.
546 * config/a29k/a29k-udi.mt: Obsolete.
547 * config/a29k/a29k.mt: Obsolete.
548 * config/a29k/tm-a29k.h: Obsolete.
549 * config/a29k/tm-vx29k.h: Obsolete.
550 * config/a29k/vx29k.mt: Obsolete.
551
552 2002-01-05 Andrew Cagney <ac131313@redhat.com>
553
554 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
555 with BFD_ENDIAN_BIG.
556
557 2002-01-05 Andrew Cagney <ac131313@redhat.com>
558
559 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
560 * configure, config.in: Re-generate.
561 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
562 * defs.h: Do not include <endian.h>.
563
564 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
565
566 * acconfig.h (HAVE_PT_GETXMMREGS): New.
567 * config.in: Regenerate.
568 * configure.in: Update copyright years.
569 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
570 * configure: Regenerate.
571 * i386bsd-nat.c: Update copyright years.
572 (fill_gregset): Use regcache_collect.
573 (fetch_inferior_registers): Only fetch integer registers
574 if requested to do so. Add support for XMM registers
575 using PT_GETXMMREGS.
576 (store_inferior_registers): Only store integer registers
577 if requested to do so. Add support for XMM registers
578 using PT_SETXMMREGS.
579 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
580 (store_inferior_registers): Remove.
581 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
582 (fetch_elfcore_registers): New function.
583 (i386nbsd_elfcore_fns): New.
584 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
585 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
586 i386bsd-nat.o.
587 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
588 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
589 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
590 * config/i386/tm-nbsd.h: Update copyright years.
591 (HAVE_SSE_REGS): Define.
592 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
593 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
594 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
595 (SIGCONTEXT_PC_OFFSET): Remove.
596 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
597
598 2002-01-05 Andrew Cagney <ac131313@redhat.com>
599
600 * configure.tgt: Remove powerpc-*-macos* target.
601 * config/m68k/xm-mpw.h: Delete file.
602 * config/xm-mpw.h: Delete file.
603 * ser-mac.c: Delete file.
604 * mpw-make.sed: Delete file.
605 * mpw-config.in: Delete file.
606 * mac-xdep.c: Delete file.
607 * mac-gdb.r: Delete file.
608 * mac-defs.h: Delete file.
609 * mac-nat.c: Delete file.
610 * config/powerpc/macos.mh: Delete file.
611 * config/powerpc/macos.mt: Delete file.
612 * config/powerpc/nm-macos.h: Delete file.
613 * config/powerpc/tm-macos.h: Delete file.
614 * source.c (openp, open_source_file): Remove obsolete code.
615 * top.c (gdb_readline): Ditto.
616 * utils.c (query): Ditto.
617 * event-top.c (display_gdb_prompt): Ditto.
618 * Makefile.in (ser-mac.o): Delete obsolete target.
619 * NEWS: Update.
620
621 2002-01-04 Andrew Cagney <ac131313@redhat.com>
622
623 * defs.h (BIG_ENDIAN): Delete macro definition.
624 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
625 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
626 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
627 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
628 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
629 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
630 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
631 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
632 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
633 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
634 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
635 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
636 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
637 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
638 * gdbarch.c: Re-generate.
639
640 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
641
642 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
643 for core files.
644
645 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
646
647 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
648
649 2002-01-04 Andrew Cagney <ac131313@redhat.com>
650
651 * value.h (value_ptr): Delete typedef.
652
653 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
654
655 * i386nbsd-nat.c: Update copyright years.
656 Include i386-tdep.h.
657
658 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
659
660 * stabsread.c: Update copyright years.
661
662 From Debashis Mahata <debashis.mahata@wipro.com>:
663 (read_struct_fields): Deal with Sun C compiler erroneous stab
664 output for structs and unions.
665 Fix PR gdb/269.
666
667 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
668
669 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
670 prototype.
671
672 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
673
674 * cp-abi.c: Fix whitespace.
675 (baseclass_offset): New wrapper function.
676 * cp-abi.h (baseclass_offset): Add prototype.
677 (struct cp_abi_ops): Add baseclass_offset pointer.
678
679 * valops.c (vb_match): Move to...
680 * gnu-v2-abi.c (vb_match): here.
681 * valops.c (baseclass_offset): Move to...
682 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
683
684 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
685
686 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
687 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
688 * hpacc-abi.c (init_hpacc_ops): Likewise.
689
690 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
691
692 * valops.c (find_overload_match): Accept obj as a
693 reference parameter. Update it before returning.
694 * value.h (find_overload_match): Update prototype.
695 * eval.c (evaluate_subexp_standard): Pass object to
696 find_overload_match by reference.
697
698 2002-01-03 Andrew Cagney <ac131313@redhat.com>
699
700 * valarith.c: Replace value_ptr with struct value pointer. Remove
701 register attribute from value declarations.
702 * valops.c: Ditto.
703 * value.h: Ditto.
704 * scm-lang.c (scm_lookup_name): Ditto.
705
706 2002-01-03 Michael Snyder <msnyder@redhat.com>
707
708 Abstract the functionality of iterating over mapped memory
709 regions into a general purpose iterator function.
710 * procfs.c (iterate_over_mappings): New function, general purpose
711 iterator for memory sections.
712 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
713 (solib_mappings_callback): New function, callback for above.
714 (info_proc_mappings): Reimpliment using iterate_over_mappings.
715 (info_mappings_callback): New function, callback for above.
716
717 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
718
719 2002-01-01 Mark Kettenis <kettenis@gnu.org>
720
721 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
722 * i386-tdep.c: Include "elf-bfd.h".
723 (process_note_abi_tag_sections): New function.
724 (i386_gdbarch_init): Add code to recognize various OS/ABI
725 combinations.
726
727 * maint.c (_initialize_maint_cmds): Add missing \ in
728 string-literal.
729
730 For older changes see ChangeLog-2001
731 \f
732 Local Variables:
733 mode: change-log
734 left-margin: 8
735 fill-column: 74
736 version-control: never
737 End: