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