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