2002-04-24 Pierre Muller <ics.u-strasbg.fr>
[binutils-gdb.git] / gdb / ChangeLog
1 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
2
3 * hpread.c (hpread_psymtab_to_symtab_1,
4 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
5 with fprintf_unfiltered (gdb_stderr,...).
6
7 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8
9 * remote-array.c (printf_monitor, write_monitor,
10 array_insert_breakpoint, array_remove_breakpoint ):
11 Replace fprintf (stderr,...
12 with fprintf_unfiltered (gdb_stderr,....
13 * remote-es.c: Likewise.
14 * remote-os9k.c: Likewise.
15 * remote-st.c: Likewise.
16
17 2002-04-28 Andreas Schwab <schwab@suse.de>
18
19 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
20 linux-proc.o and gcore.o.
21
22 2002-04-26 Michal Ludvig <mludvig@suse.cz>
23
24 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
25 code without frame pointers.
26
27 2002-04-26 Andrew Cagney <ac131313@redhat.com>
28
29 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
30 ON_STACK is needed.
31
32 2002-04-26 Ben Elliston <bje@redhat.com>
33
34 * target.c (do_xfer_memory): Correct reference to the new option
35 "trust-readonly-sections".
36
37 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
38
39 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
40 * gdbtypes.c (recursive_dump_type): Output the vector flag.
41 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
42 vectors.
43 (read_array_type): Record the fact that this array type is really a
44 vector (i.e. are passed in by value).
45
46 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
47
48 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
49 * alpha-tdep.c (alpha_sigcontext_addr): New function.
50 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
51 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
52 * alpha-linux-tdep.c: Include frame.h.
53 (alpha_linux_sigcontext_addr): New function.
54 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
55 alpha_linux_sigcontext_addr.
56 * alpha-osf1-tdep.c: Include gdbcore.h.
57 (alpha_osf1_sigcontext_addr): New function.
58 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
59 alpha_osf1_sigcontext_addr.
60 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
61 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
62
63 2002-04-26 Andrew Cagney <ac131313@redhat.com>
64
65 * stack.c (selected_frame_level):
66 (select_frame): Do not set selected_frame_level.
67 * frame.h (selected_frame_level): Delete declaration.
68
69 2002-04-26 Andrew Cagney <ac131313@redhat.com>
70
71 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
72 convert_from_func_ptr-addr when AIX / PowerOpen.
73
74 2002-04-25 Andrew Cagney <ac131313@redhat.com>
75
76 * valops.c (hand_function_call): Call
77 generic_save_call_dummy_addr.
78 * frame.h (generic_save_call_dummy_addr): Declare.
79 * blockframe.c (struct dummy_frame): Add fields call_lo and
80 call_hi.
81 (generic_find_dummy_frame): Check for PC in range call_lo to
82 call_hi instead of entry_point_address.
83 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
84 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
85 (generic_save_call_dummy_addr): New function.
86
87 2002-04-24 David S. Miller <davem@redhat.com>
88
89 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
90 sparc_skip_prologue.
91 (sparc_skip_prologue): Kill frameless_p arg, and use line number
92 information to find prologue when possible.
93 (sparc_prologue_frameless_p): Call examine_prologue directly.
94 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
95 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
96 second argument.
97 (SKIP_PROLOGUE): Likewise.
98
99 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
100
101 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
102 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
103 indicate that the condition it was testing is always true.
104 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
105 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
106 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
107
108 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
109
110 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
111 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
112 tdep->jb_pc and tdep->jb_elt_size.
113 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
114 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
115 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
116 * alpha-nat.c (get_longjmp_target): Remove.
117 (JB_ELEMENT_SIZE): Ditto.
118 (JB_PC): Ditto.
119 * alpha-tdep.c (alpha_get_longjmp_target): New function.
120 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
121 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
122 to alpha_get_longjmp_target.
123 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
124 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
125 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
126
127 2002-04-25 Andrew Cagney <ac131313@redhat.com>
128
129 * README: Update to GDB 5.2.
130
131 2002-04-25 Andrew Cagney <ac131313@redhat.com>
132
133 * gdbarch.sh (LC_ALL): Set to `c'.
134
135 2002-04-25 Theodore A. Roth <troth@verinet.com>
136
137 * avr-tdep.c: Ran through gdb_indent.sh.
138
139 2002-04-25 Theodore A. Roth <troth@verinet.com>
140
141 * MAINTAINERS: Add myself as AVR maintainer.
142 * NEWS: Note new target avr.
143
144 2002-04-25 Theodore A. Roth <troth@verinet.com>
145
146 * Makefile.in: Add support for AVR target.
147 * configure.tgt: Add support for AVR target.
148 * avr-tdep.c: New file
149 * config/avr/avr.mt: New file.
150
151 2002-04-25 Theodore A. Roth <troth@verinet.com>
152
153 * MAINTAINERS: Add myself to write-after-approval.
154
155 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
156
157 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
158 with fprintf_unfiltered (gdb_stderr,....
159
160 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
161
162 Fix PR gdb/508.
163 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
164
165 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
166
167 * p-exp.y: Also use new prev_lexptr variable
168 to improve error reporting. Based on Michael Snyder
169 2002-04-24 dated patch to c-exp.y.
170
171 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
172
173 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
174 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
175 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
176 to 0.
177 * config/alpha/tm-alpha.h: Remove forward decls of struct type
178 and struct value.
179 (FUNCTION_START_OFFSET): Remove.
180 (BREAKPOINT): Ditto.
181
182 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
183
184 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
185 * NEWS: Ditto.
186
187 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
188
189 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
190 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
191 alpha_linux_pc_in_sigtramp.
192 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
193 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
194 alpha_osf1_pc_in_sigtramp.
195 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
196 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
197 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
198 alphafbsd_pc_in_sigtramp.
199 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
200 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
201 alphanbsd_pc_in_sigtramp.
202 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
203 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
204
205 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
206
207 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
208
209 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
210
211 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
212 alphanbsd-tdep.c.
213 (alphanbsd-nat.o): New dependency list.
214 (alphanbsd-tdep.o): Ditto.
215 * NEWS: Note new native NetBSD/alpha configuration.
216 * alphanbsd-nat.c: New file.
217 * alphanbsd-tdep.c: Ditto.
218 * configure.host (alpha*-*-netbsd*): New host.
219 * configure.tgt (alpha*-*-netbsd*): New target.
220 * config/alpha/nbsd.mh: New file.
221 * config/alpha/nbsd.mt: Ditto.
222 * config/alpha/nm-nbsd.h: Ditto.
223 * config/alpha/tm-nbsd.h: Ditto.
224
225 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
226
227 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
228 (alpha-osf1-tdep.o): New dependency list.
229 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
230 and skip_sigtramp_frame members.
231 * alpha-linux-tdep.c: Include gdbcore.h.
232 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
233 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
234 * alpha-osf1-tdep.c: New file.
235 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
236 alpha-osf1-dep.c.
237 (alpha_frame_past_sigtramp_frame): New function.
238 (alpha_dynamic_sigtramp_offset): Ditto.
239 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
240 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
241 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
242 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
243 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
244 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
245 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
246 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
247 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
248 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
249 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
250 to find_solib_trampoline_target.
251 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
252 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
253 (SKIP_TRAMPOLINE_CODE): Remove.
254 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
255 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
256 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
257 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
258 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
259 (PROC_SIGTRAMP_MAGIC): Ditto.
260 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
261 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
262 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
263 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
264 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
265
266 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
267
268 * NEWS: Note that Alpha targets are now multi-arch.
269
270 2002-04-24 Michael Snyder <msnyder@redhat.com>
271
272 * parser-defs.h (prev_lexptr): New external variable.
273 * parse.c (parse_exp_1): Set prev_lexptr to null before
274 calling the language-specific parser.
275 * c-exp.y (yylex): Set prev_lexptr to start of current token.
276 (yyerror): Use prev_lexptr in error reporting.
277
278 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
279
280 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
281 * gregset.h: If FILL_FPXREGSET is defined, provide
282 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
283 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
284 is defined, call fill_fpxregset.
285
286 2002-04-24 Roland McGrath <roland@frob.com>
287
288 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
289 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
290 (supply_gregset, supply_fpregset): New functions.
291
292 * gnu-nat.c (gnu_find_memory_regions): New function.
293 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
294 (gnu_xfer_memory): Add a cast.
295
296 2002-04-24 Michael Snyder <msnyder@redhat.com>
297
298 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
299 loop. Add handling for "str lr, [sp, #-4]!" and for saves
300 of argument regs ("str r(0123), [r11, #-nn"]).
301 (arm_skip_prologue): Better handling for frameless functions.
302 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
303 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
304
305 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
306
307 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
308 NUM_PSEUDO_REGS can be used.
309
310 2002-04-24 Andrew Cagney <ac131313@redhat.com>
311
312 * arch-utils.h: Update copyright.
313
314 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
315 * gdbarch.h, gdbarch.c: Re-generate.
316
317 * inferior.h (IN_SIGTRAMP): Delete definition.
318 * arch-utils.c (legacy_pc_in_sigtramp): New function.
319 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
320
321 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
322 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
323 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
324 (find_proc_framesize): Ditto.
325 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
326 (alpha_init_extra_frame_info): Ditto.
327 * infrun.c (handle_inferior_event): Ditto.
328 (handle_inferior_event): Ditto.
329 (check_sigtramp2): Ditto.
330 * blockframe.c (create_new_frame): Ditto.
331 (get_prev_frame): Ditto.
332 * ppc-linux-tdep.c: Update comments.
333 * i386-linux-tdep.c: Update comments.
334 * breakpoint.c (bpstat_what): Update comment.
335
336 2002-04-24 Michal Ludvig <mludvig@suse.cz>
337
338 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
339 (regsets_store_inferior_registers): Removed cast to int from
340 ptrace() calls.
341 * gdbserver/regcache.h: Added declaration of struct inferior_info.
342
343 2002-04-24 David S. Miller <davem@redhat.com>
344
345 * i960-tdep.c (register_in_window_p): New function.
346 (i960_find_saved_register): Use it instead of
347 REGISTER_IN_WINDOW_P.
348 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
349
350 * symtab.h (find_stab_function_addr): Kill extern.
351 * minsyms.c (find_stab_function_addr): Remove from here...
352 * dbxread.c: ... to here, and mark it static.
353
354 2002-04-20 David S. Miller <davem@redhat.com>
355
356 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
357 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
358
359 2002-04-21 David S. Miller <davem@redhat.com>
360
361 * remote-vxsparc.c (vx_read_register): Fix typo, we want
362 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
363 (vx_write_register): Likewise.
364
365 2002-04-23 J. Brobecker <brobecker@gnat.com>
366
367 * source.c (is_regular_file): New function.
368 (openp): Check wether file to open is a regular file
369 to avoid opening directories.
370
371 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
372
373 * findvar.c (extract_signed_integer): Cast printf argument
374 to suppress format warning.
375 (extract_unsigned_integer): Likewise.
376 * infcmd.c (registers_info): Likewise.
377 * top.c (get_prompt_1): Likewise.
378 * valops.c (value_assign): Likewise.
379 * valprint.c (print_decimal): Likewise.
380
381 2002-04-22 H.J. Lu (hjl@gnu.org)
382
383 * c-exp.y (typebase): Support
384
385 [long|long long|short] [signed|unsigned] [int|]
386
387 and
388
389 signed [long|long long|short] int
390
391 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
392
393 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
394 and vax-tdep.h.
395 * vax-tdep.h: New file.
396 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
397 Make several routines static.
398 (vax_get_saved_register): New function.
399 (vax_gdbarch_init): New function.
400 (_initialize_vax_tdep): Register vax_gdbarch_init.
401 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
402 Remove macros now under the control of gdbarch.
403
404 2002-04-22 Michael Snyder <msnyder@redhat.com>
405
406 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
407 Some whitespace and coding standards tweaks.
408
409 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
410
411 * vax-tdep.c: Include regcache.h.
412 (vax_call_dummy_words): New.
413 (sizeof_vax_call_dummy_words): New.
414 (vax_fix_call_dummy): New function.
415 (vax_saved_pc_after_call): Ditto.
416 * config/vax/tm-vax.h: Don't include regcache.h.
417 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
418 (CALL_DUMMY): Remove.
419 (CALL_DUMMY_WORDS): Define.
420 (SIZEOF_CALL_DUMMY_WORDS): Define.
421 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
422
423 2002-04-18 Michael Snyder <msnyder@redhat.com>
424
425 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
426
427 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
428
429 * vax-tdep.c (vax_frame_chain): New function.
430 (vax_push_dummy_frame): Ditto.
431 (vax_pop_frame): Ditto.
432 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
433 (FRAMELESS_FUNCTION_INVOCATION): Use
434 generic_frameless_function_invocation_not.
435 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
436 (POP_FRAME): Use vax_pop_frame.
437
438 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
439
440 * vax-tdep.c (vax_store_struct_return): New function.
441 (vax_extract_return_value): Ditto.
442 (vax_store_return_value): Ditto.
443 (vax_extract_struct_value_address): Ditto.
444 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
445 vax_store_struct_return.
446 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
447 (STORE_RETURN_VALUE): Use vax_store_return_value.
448 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
449
450 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
451
452 * vax-tdep.c (vax_frame_saved_pc): New function.
453 (vax_frame_args_address_correct): Ditto.
454 (vax_frame_args_address): Ditto.
455 (vax_frame_locals_address): Ditto.
456 (vax_frame_num_args): Move code to be in proximity to
457 other frame-related functions.
458 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
459 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
460 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
461 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
462 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
463
464 2002-04-22 H.J. Lu (hjl@gnu.org)
465
466 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
467 includedir.
468
469 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
470
471 * vax-tdep.c (vax_frame_init_saved_regs): New function.
472 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
473 (FRAME_INIT_SAVED_REGS): New macro.
474
475 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
476
477 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
478
479 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
480
481 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
482 where needed.
483 (fetch_osf_core_registers): Likewise.
484 (supply_gregset): Likewise.
485
486 2002-04-22 J. Brobecker <brobecker@gnat.com>
487
488 * symfile.h (get_section_index): Define.
489 * symfile.c (get_section_index): New function.
490 * mdebugread.c (SC_IS_SBSS): New macro.
491 (SC_IS_BSS): Return true for the scBss storage class only, as
492 the scSBss storage class refers to the .sbss section.
493 (parse_partial_symbols): Discard the symbols which associated
494 section does not exist.
495 Make sure to use the .sbss section index for symbols which
496 storage class is scBss, rather than using the .bss section index.
497
498 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
499
500 * vax-tdep.c: Update copyright years.
501 (vax_register_name): New function.
502 (vax_register_byte): Ditto.
503 (vax_register_raw_size): Ditto.
504 (vax_register_virtual_size): Ditto.
505 (vax_register_virtual_type): Ditto.
506 * config/vax/tm-vax.h: Update copyright years.
507 (REGISTER_NAMES): Remove.
508 (REGISTER_NAME): Define.
509 (REGISTER_BYTE): Use vax_register_byte.
510 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
511 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
512 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
513
514 2002-04-21 Andrew Cagney <ac131313@redhat.com>
515
516 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
517 declaration
518 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
519
520 2002-04-21 David S. Miller <davem@redhat.com>
521
522 * arch-utils.c (generic_prologue_frameless_p): Kill
523 SKIP_PROLOGUE_FRAMELESS_P code.
524 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
525 references.
526 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
527 * arc-tdep.c (arc_prologue_frameless_p): Implement.
528 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
529 references.
530 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
531 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
532 (sparc_gdbarch_init): Pass it to
533 set_gdbarch_prologue_frameless_p.
534
535 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
536
537 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
538 (alphabsd-nat.o): New dependency list.
539
540 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
541
542 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
543 alphafbsd-tdep.c.
544 (alpha-linux-tdep.o): New dependency list.
545 (alphafbsd-tdep.o): Likewise.
546
547 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
548
549 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
550 to here...
551 * alpha-tdep.c: ...from here.
552 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
553
554 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
555
556 * config/alpha/tm-alpha.h: Move alpha_software_single_step
557 prototype from here...
558 * alpha-tdep.h: ...to here.
559
560 2002-04-21 Andrew Cagney <ac131313@redhat.com>
561
562 * frame.h (selected_frame_level): Document as deprecated.
563 (frame_relative_level): Declare.
564 * stack.c (frame_relative_level): New function.
565 (selected_frame_level): Document as deprecated.
566 (select_frame): Do not set the selected_frame_level.
567
568 * stack.c (frame_info, record_selected_frame): Update.
569 (frame_command, current_frame_command): Update.
570 (up_silently_base, up_command, down_silently_base): Update.
571 (down_command): Update.
572 * inflow.c (kill_command): Update.
573 * tracepoint.c (finish_tfind_command): Update.
574 * corelow.c (core_open): Update.
575 * thread.c (info_threads_command): Update.
576 (do_captured_thread_select): Update.
577 * infcmd.c (finish_command): Update.
578 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
579
580 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
581
582 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
583
584 2002-04-21 Andrew Cagney <ac131313@redhat.com>
585
586 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
587 type const.
588
589 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
590
591 * alphafbsd-tdep.c: Update copyright years. Include
592 alpha-tdep.h.
593 (alphafbsd_use_struct_convention): Make static.
594 (alphafbsd_init_abi): New function.
595 (_initialize_alphafbsd_tdep): New function.
596 * config/alpha/tm-fbsd.h: Update copyright years.
597 (USE_STRUCT_CONVENTION): Remove.
598
599 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
600
601 * alpha-tdep.c (alpha_abi_handler): New structure to describe
602 an Alpha ABI variant.
603 (alpha_abi_handler_list): Declare.
604 (alpha_gdbarch_register_os_abi): New function.
605 (alpha_gdbarch_init): Give registered ABI variant handlers a
606 chance to tweak the gdbarch once we have set up defaults.
607 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
608
609 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
610
611 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
612 to standard_coerce_float_to_double.
613 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
614
615 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
616
617 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
618 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
619 from gdbarch_tdep rather than a constant.
620 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
621 the default text address for all Alpha Unix ABIs.
622 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
623 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
624
625 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
626
627 * alpha-tdep.h: New file. Includes several Alpha target constants
628 taken from...
629 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
630 let gdbarch deal with.
631 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
632 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
633 to dependency list.
634 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
635 Alpha target register names.
636 * alphabsd-nat.c: Likewise.
637 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
638 Alpha target register names. Make serveral routines static.
639 (alpha_get_saved_register): New function.
640 (alpha_abi_names): New.
641 (process_note_abi_tag_sections): New function.
642 (get_elfosabi): New function.
643 (alpha_gdbarch_init): New function.
644 (alpha_dump_tdep): New function.
645 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
646
647 2002-04-21 Andrew Cagney <ac131313@redhat.com>
648
649 * frame.c (find_saved_register): Delete #ifdef
650 HAVE_REGISTER_WINDOWS code.
651 * config/sparc/tm-sparc.h: Update comments.
652 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
653
654 2002-04-21 Andrew Cagney <ac131313@redhat.com>
655
656 * i960-tdep.c (i960_find_saved_register): New function.
657 (i960_get_saved_register): New function.
658 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
659 (i960_get_saved_register): Declare.
660 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
661
662 2002-04-20 David S. Miller <davem@redhat.com>
663
664 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
665
666 2002-04-20 Andrew Cagney <ac131313@redhat.com>
667
668 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
669 instead of NUM_PSEUDO_REGS.
670
671 2002-04-20 David S. Miller <davem@redhat.com>
672
673 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
674 GDB_MULTI_ARCH_PARTIAL
675 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
676 define, let tm-sp64.h do it.
677
678 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
679
680 * frame.c (find_saved_register): Avoid a NULL pointer
681 dereference and actually walk the frame list.
682
683 2002-04-20 Andrew Cagney <ac131313@redhat.com>
684
685 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
686 sorted in most most-recent-used order. Document.
687 * gdbarch.h, gdbarch.c: Regenerate.
688
689 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
690
691 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
692 (add_inferior): Call create_register_cache.
693 (clear_inferiors): Call free_register_cache.
694 (inferior_regcache_data, set_inferior_regcache_data): New functions.
695 * gdbserver/regcache.c (struct inferior_regcache_data): New.
696 (registers): Remove.
697 (get_regcache): New function.
698 (create_register_cache, free_register_cache): New functions.
699 (set_register_cache): Don't initialize the register cache here.
700 (registers_to_string, registers_from_string, register_data): Call
701 get_regcache.
702 * gdbserver/regcache.h: Add prototypes.
703 * gdbserver/server.h: Likewise.
704
705 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
706
707 * gdbserver/mem-break.c: New file.
708 * gdbserver/mem-break.h: New file.
709 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
710 dependencies.
711 * gdbserver/inferiors.c (struct inferior_info): Add target_data
712 member.
713 (clear_inferiors): Free target_data member if set.
714 (inferior_target_data, set_inferior_target_data): New functions.
715 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
716 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
717 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
718 (struct inferior_linux_data): New.
719 (linux_create_inferior): Use set_inferior_target_data.
720 (linux_attach): Likewise. Call add_inferior.
721 (linux_wait_for_one_inferior): New function.
722 (linux_wait): Call it.
723 (linux_write_memory): Add const.
724 (initialize_low): Call set_breakpoint_data.
725 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
726 handling members.
727 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
728 call.
729 * gdbserver/server.h: Include mem-break.h. Update inferior.c
730 prototypes.
731 * gdbserver/target.c (read_inferior_memory)
732 (write_inferior_memory): New functions.
733 * gdbserver/target.h (read_inferior_memory)
734 (write_inferior_memory): Change macros to prototypes.
735 (struct target_ops): Update comments. Add const to write_memory
736 definition.
737
738 2002-04-19 Andrew Cagney <ac131313@redhat.com>
739
740 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
741 instead of ->prev.
742 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
743 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
744 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
745 instead of ->prev.
746
747 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
748
749 Fix PR gdb/471.
750 * gdbtypes.c (init_simd_type): Rewrite using new functions.
751 (build_builtin_type_vec128): Ditto.
752 (append_composite_type_field): Fix calculation of type length in
753 union case.
754
755 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
756
757 * config/djgpp/README: Update.
758
759 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
760 compiler warnings.
761
762 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
763
764 * alpha-tdep.c (setup_arbitrary_frame): Rename...
765 (alpha_setup_arbitrary_frame): ...to this.
766 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
767 for alpha_setup_arbitrary_frame.
768
769 2002-04-18 Andrew Cagney <cagney@redhat.com>
770
771 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
772 * gdbarch.h, gdbarch.c: Regenerate.
773
774 * defs.h (breakpoint_from_pc_fn): Delete type definition.
775 * target.h (memory_breakpoint_from_pc): Update declaration.
776 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
777
778 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
779 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
780 * mem-break.c (memory_breakpoint_from_pc): Ditto.
781 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
782 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
783 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
784 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
785 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
786 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
787 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
788 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
789 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
790
791 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
792 const pointer.
793 * monitor.c (monitor_insert_breakpoint): Ditto.
794 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
795
796 * config/mcore/tm-mcore.h: Update copyright.
797 * mem-break.c: Ditto.
798 * xstormy16-tdep.c: Ditto.
799
800 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
801
802 * p-exp.y: Add precedence rule for '^' token.
803 This removes the shift/reduce conflicts.
804 Remove the comment concerning these shift/reduce conflicts.
805
806 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
807
808 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
809 (registers_powerpc_nofp): New register set for processors
810 without floating point unit.
811
812 2002-04-18 David S. Miller <davem@redhat.com>
813
814 * MAINTAINERS: Add myself to write-after-approval.
815
816 2002-04-17 Michael Snyder <msnyder@redhat.com>
817
818 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
819
820 2002-04-17 Andrew Cagney <ac131313@redhat.com>
821
822 * rs6000-tdep.c (frame_initial_stack_address): Use
823 frame_register_read to read the alloca_reg.
824
825 2002-04-17 Andrew Cagney <ac131313@redhat.com>
826
827 * frame.c (find_saved_register): Find saved registers in the next
828 not prev frame.
829 Fix PR gdb/365.
830
831 2002-04-17 Andrew Cagney <ac131313@redhat.com>
832
833 * gdbarch.sh (LANG): Set to ``c''.
834
835 2002-04-15 Andrew Cagney <ac131313@redhat.com>
836
837 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
838
839 2002-04-15 Andrew Cagney <ac131313@redhat.com>
840
841 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
842 Update copyright.
843
844 * hpread.c (hpread_get_lntt): Add declaration.
845 Also fix PR gdb/391.
846
847 2002-04-14 Andrew Cagney <ac131313@redhat.com>
848
849 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
850 * aclocal.m4, configure: Re-generate.
851 Fix PR gdb/391.
852
853 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
854
855 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
856 instead of tm_print_insn.
857
858 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
859
860 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
861
862 2002-04-14 Andrew Cagney <ac131313@redhat.com>
863
864 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
865 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
866 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
867
868 2002-04-12 Don Howard <dhoward@redhat.com>
869
870 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
871 max_user_call_depth.
872 (init_cmd_lists): Initialize the new value;
873 * cli/cli-script.c (execute_user_command): Limit the call depth of
874 user defined commands. This avoids a core-dump when user commands
875 are infinitly recursive.
876
877 2002-04-12 Kevin Buettner <kevinb@redhat.com>
878
879 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
880 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
881 from tdep struct instead of DEFAULT_LR_SAVE.
882 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
883 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
884 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
885
886 2002-04-12 Michael Snyder <msnyder@redhat.com>
887
888 * Remote.c: Spelling fix.
889 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
890 If no symbol found for "sbrk", try "_sbrk".
891 (make_output_phdrs): Use bfd_section_name.
892 (gcore_copy_callback): Use bfd_section_name.
893 * eval.c: Indentation fix-ups.
894 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
895 in case it gets applied to an address that is already
896 in the instruction space.
897 * cli/cli-decode.c (help_list): Allow long lines to wrap.
898 * symfile.c: Fix indentation, long lines.
899 * source.c: White space fix-up.
900
901 2002-04-12 Andrew Cagney <cagney@redhat.com>
902
903 * defs.h (read_relative_register_raw_bytes): Delete declaration.
904 * frame.c (frame_register_read): New function. Return non-zero on
905 success.
906 (read_relative_register_raw_bytes_for_frame): Delete.
907 (read_relative_register_raw_bytes): Delete.
908 * frame.h (frame_register_read): Declare.
909 * d30v-tdep.c: Update Copyright. Use frame_register_read.
910 * sh-tdep.c: Ditto.
911 * infcmd.c (do_registers_info): Ditto.
912 * hppa-tdep.c: Ditto.
913 * rs6000-tdep.c: Ditto.
914 * h8500-tdep.c: Ditto.
915 * mips-tdep.c: Ditto.
916 * h8300-tdep.c: Ditto.
917 * z8k-tdep.c: Ditto.
918
919 2002-04-12 Kevin Buettner <kevinb@redhat.com>
920
921 From Jimi X <jimix@watson.ibm.com>:
922 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
923 64-bit SysV ABI.
924
925 2002-04-12 Kevin Buettner <kevinb@redhat.com>
926
927 From Jimi X <jimix@watson.ibm.com>:
928 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
929 bfd info.
930
931 2002-04-12 Kevin Buettner <kevinb@redhat.com>
932
933 From Jimi X <jimix@watson.ibm.com>:
934 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
935 register sets for these processor variants.
936
937 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
938
939 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
940 registers which are allowed to fail to store.
941 * gdbserver/linux-low.h (linux_target_ops): Likewise.
942 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
943 (ppc_cannot_store_register): FPSCR may not be storable.
944 * regformats/reg-ppc.dat: Support FPSCR.
945
946 2002-04-11 Kevin Buettner <kevinb@redhat.com>
947
948 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
949 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
950 Add fpscr as an invalid/unfetchable register.
951 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
952 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
953 (fill_fpregset): Add support for register fpscr.
954 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
955 (fill_gregset): Account for the fact that register ``mq'' might
956 not exist.
957 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
958 (registers_power): Add fpscr to register set at slot 71.
959 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
960 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
961
962 2002-04-11 Michael Snyder <msnyder@redhat.com>
963
964 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
965 * configure: Regenerate.
966 * config.in: Regenerate.
967 * acconfig.h: Add define for _SYSCALL32.
968 * core-sol2.c: Remove #define _SYSCALL32.
969 * solib-legacy.c: Remove #define _SYSCALL32.
970
971 2002-04-10 Andrew Cagney <ac131313@redhat.com>
972
973 * stack.c (select_frame): Cleanup internal error message, do not
974 use %p.
975
976 2002-04-10 Andrew Cagney <ac131313@redhat.com>
977
978 * stack.c (select_frame): Check that selected_frame and the
979 specified level are as expected.
980 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
981 Update copyright.
982 * frame.h (struct frame_info): Add field `level'. Update
983 copyright.
984 Work-in-progress PR gdb/464.
985
986 2002-04-10 Andrew Cagney <ac131313@redhat.com>
987
988 * maint.c (maint_print_section_info): Rename print_section_info.
989 (print_bfd_section_info, print_objfile_section_info): Update.
990 * inferior.h (struct gdbarch): Add opaque declaration.
991 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
992 * gdbarch.h: Regenerate.
993
994 2002-04-10 Michal Ludvig <mludvig@suse.cz>
995
996 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
997 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
998 (kernel_u_size): Added.
999 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
1000 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
1001
1002 2002-04-04 Jim Ingham <jingham@apple.com>
1003
1004 * valarith.c (find_size_for_pointer_math): New function, either returns
1005 the size for a pointer's target, returns 1 for void *, or errors for
1006 incomplete types.
1007 (value_add, value_sub): use find_size_for_pointer_math.
1008
1009 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1010
1011 * linux-low.c (linux_look_up_symbols): New hook.
1012 (linux_target_ops): Add linux_look_up_symbols.
1013 * remote-utils.c (decode_address): New function.
1014 (look_up_one_symbol): New function.
1015 * server.c (handle_query): Call target look_up_symbols hook.
1016 * server.h (look_up_one_symbol): Add prototype.
1017 * target.h (struct target_ops): Add look_up_symbols hook.
1018
1019 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1020
1021 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
1022 * ChangeLog: Correct paths in last ChangeLog entry.
1023
1024 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1025
1026 * gdbserver/linux-low.h: Remove obsolete prototypes.
1027 (struct linux_target_ops): New.
1028 (extern the_low_target): New.
1029 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
1030 (register_addr): Use the_low_target explicitly.
1031 (fetch_register): Likewise.
1032 (usr_fetch_inferior_registers): Likewise.
1033 (usr_store_inferior_registers): Likewise.
1034 * gdbserver/linux-arm-low.c (num_regs): Remove.
1035 (arm_num_regs): Define.
1036 (arm_regmap): Renamed from regmap, made static.
1037 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
1038 made static.
1039 (arm_cannot_store_register): Renamed from cannot_store_register,
1040 made static.
1041 (the_low_target): New.
1042 * gdbserver/linux-i386-low.c (num_regs): Remove.
1043 (i386_num_regs): Define.
1044 (i386_regmap): Renamed from regmap, made static.
1045 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
1046 made static.
1047 (i386_cannot_store_register): Renamed from cannot_store_register,
1048 made static.
1049 (the_low_target): New.
1050 * gdbserver/linux-ia64-low.c (num_regs): Remove.
1051 (ia64_num_regs): Define.
1052 (ia64_regmap): Renamed from regmap, made static.
1053 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
1054 made static.
1055 (ia64_cannot_store_register): Renamed from cannot_store_register,
1056 made static.
1057 (the_low_target): New.
1058 * gdbserver/linux-m68k-low.c (num_regs): Remove.
1059 (m68k_num_regs): Define.
1060 (m68k_regmap): Renamed from regmap, made static.
1061 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
1062 made static.
1063 (m68k_cannot_store_register): Renamed from cannot_store_register,
1064 made static.
1065 (the_low_target): New.
1066 * gdbserver/linux-mips-low.c (num_regs): Remove.
1067 (mips_num_regs): Define.
1068 (mips_regmap): Renamed from regmap, made static.
1069 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
1070 made static.
1071 (mips_cannot_store_register): Renamed from cannot_store_register,
1072 made static.
1073 (the_low_target): New.
1074 * gdbserver/linux-ppc-low.c (num_regs): Remove.
1075 (ppc_num_regs): Define.
1076 (ppc_regmap): Renamed from regmap, made static.
1077 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1078 made static.
1079 (ppc_cannot_store_register): Renamed from cannot_store_register,
1080 made static.
1081 (the_low_target): New.
1082 * gdbserver/linux-s390-low.c (num_regs): Remove.
1083 (s390_num_regs): Define.
1084 (s390_regmap): Renamed from regmap, made static.
1085 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1086 made static.
1087 (s390_cannot_store_register): Renamed from cannot_store_register,
1088 made static.
1089 (the_low_target): New.
1090 * gdbserver/linux-sh-low.c (num_regs): Remove.
1091 (sh_num_regs): Define.
1092 (sh_regmap): Renamed from regmap, made static.
1093 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1094 made static.
1095 (sh_cannot_store_register): Renamed from cannot_store_register,
1096 made static.
1097 (the_low_target): New.
1098 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
1099 (the_low_target): New.
1100
1101 2002-04-09 Andrew Cagney <ac131313@redhat.com>
1102
1103 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
1104 override FP_REGNUM with frame->fp. Update copyright.
1105 * parse.c (num_std_regs, std_regs): Delete.
1106 (target_map_name_to_register): Do not search std_regs. Update
1107 function description.
1108 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
1109 declarations. Update copyright.
1110 Fix PR gdb/251.
1111
1112 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1113
1114 * gdbserver/Makefile.in: Add stamp-h target.
1115 * gdbserver/configure.in: Create stamp-h.
1116 * gdbserver/configure: Regenerated.
1117
1118 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1119
1120 * gdbserver/inferiors.c: New file.
1121 * gdbserver/target.c: New file.
1122 * gdbserver/target.h: New file.
1123 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
1124 dependencies.
1125 * gdbserver/linux-low.c (inferior_pid): New static variable,
1126 moved from server.c.
1127 (linux_create_inferior): Renamed from create_inferior.
1128 Call add_inferior. Return 0 on success instead of a PID.
1129 (linux_attach): Renamed from myattach.
1130 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1131 (linux_thread_alive): Renamed from mythread_alive.
1132 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1133 child dies.
1134 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1135 (regsets_store_inferior_registers): Correct error message.
1136 Add missing ``return 0''.
1137 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1138 (linux_store_registers): Renamed from store_inferior_registers.
1139 (linux_read_memory): Renamed from read_inferior_memory.
1140 (linux_write_memory): Renamed from write_inferior_memory.
1141 (linux_target_ops): New structure.
1142 (initialize_low): Call set_target_ops ().
1143 * gdbserver/remote-utils.c (unhexify): New function.
1144 (hexify): New function.
1145 (input_interrupt): Send signals to ``signal_pid''.
1146 * gdbserver/server.c (inferior_pid): Remove.
1147 (start_inferior): Update create_inferior call.
1148 (attach_inferior): Call add_inferior.
1149 (handle_query): New function.
1150 (main): Call handle_query for `q' packets.
1151 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
1152 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1153
1154 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1155
1156 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
1157 dependencies.
1158 * gdbserver/configure.in: Check for <string.h>
1159 * gdbserver/configure: Regenerate.
1160 * gdbserver/config.in: Regenerate.
1161 * gdbserver/gdbreplay.c: Include needed system headers.
1162 (remote_open): Remove strchr prototype.
1163 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1164 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
1165 (supply_register_by_name): Likewise.
1166 (collect_register): Change buf argument to void *.
1167 (collect_register_by_name): Likewise.
1168 * gdbserver/regcache.h: Add missing prototypes.
1169 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1170 * gdbserver/server.c (handle_query): New function.
1171 (attached): New static variable, moved out of main.
1172 (main): Quiet longjmp clobber warnings.
1173 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1174 * gdbserver/utils.c (error): Remove NORETURN.
1175 (fatal): Likewise.
1176
1177 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1178
1179 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
1180 after the last symbol in a block.
1181
1182 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
1183
1184 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
1185 is non zero as a found symbol.
1186
1187 2002-04-08 Andrew Cagney <ac131313@redhat.com>
1188
1189 * findvar.c: Include "builtin-regs.h".
1190 (value_of_register): Call value_of_builtin_reg when applicable.
1191 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
1192 (target_map_name_to_register): Call
1193 builtin_reg_map_name_to_regnum.
1194 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
1195 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
1196 (builtin_regs_h): Define.
1197 (builtin-regs.o): New target.
1198 (findvar.o): Add $(builtin_regs_h).
1199 * builtin-regs.c, builtin-regs.h: New files.
1200 * std-regs.c: New file.
1201 Partial fix for PR gdb/251.
1202
1203 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1204
1205 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
1206 it's no longer required.
1207
1208 2002-04-08 Andrew Cagney <ac131313@redhat.com>
1209
1210 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
1211
1212 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1213
1214 From Jimi X <jimix@watson.ibm.com>:
1215 * rs6000-tdep.c (rs6000_software_single_step): Use
1216 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
1217 and size. Use target_insert_breakpoint() and
1218 target_remove_breakpoint() to insert and remove breakpoints
1219 instead of explicit memory reads and writes.
1220
1221 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1222
1223 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
1224 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
1225 ELF_OBJECT_FORMAT ifdef.
1226
1227 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1228
1229 From Jimi X <jimix@watson.ibm.com>:
1230 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
1231
1232 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1233
1234 From Jimi X <jimix@watson.ibm.com>:
1235 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
1236 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
1237
1238 2002-04-07 Mark Kettenis <kettenis@gnu.org>
1239
1240 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
1241 s/asprintf/xasprintf/.
1242 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
1243
1244 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1245
1246 I believe Jeff Law denies responsability for this one:
1247 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
1248 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
1249 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
1250 Work-around for PR gdb/366.
1251
1252 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
1253
1254 * remote-e7000.c (write_small, e7000_read_inferior_memory,
1255 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
1256 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
1257
1258 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
1259
1260 * sh-tdep.c (sh_fp_frame_init_saved_regs,
1261 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
1262 information.
1263
1264 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1265
1266 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
1267 maintainer.
1268
1269 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1270
1271 * README (Reporting Bugs in GDB): Document the bug web page as the
1272 prefered way of submitting bugs.
1273 Fix PR gdb/402.
1274
1275 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1276
1277 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
1278 -1. Update comment.
1279 * gdbarch.h, gdbarch.c: Re-generate.
1280
1281 2002-04-07 Andreas Schwab <schwab@suse.de>
1282
1283 * m68klinux-nat.c (fill_fpregset): Properly pass address of
1284 buffer to regcache_collect.
1285
1286 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1287
1288 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
1289 * gdbarch.c, gdbarch.h: Re-generate.
1290
1291 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1292
1293 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
1294 declaration. Fix -Werror.
1295
1296 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
1297
1298 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
1299 * gdbarch.c: Regenerate.
1300
1301 2002-04-05 Michael Snyder <msnyder@redhat.com>
1302
1303 * breakpoint.c (clear_command): Rewrite middle section to
1304 combine two loops with identical control conditions.
1305 Add a cleanup to eliminate a memory leak.
1306 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
1307
1308 2002-04-05 H.J. Lu (hjl@gnu.org)
1309
1310 * solib-svr4.c (bkpt_names): Add "__start".
1311
1312 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1313
1314 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
1315 as test for 64 bit target.
1316
1317 2002-04-05 Andrew Cagney <ac131313@redhat.com>
1318
1319 * h8500-tdep.c (h8500_write_fp): Delete function.
1320 * dwarf2cfi.c (cfi_write_fp): Document as not used.
1321 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
1322 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
1323 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
1324 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
1325 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
1326 (s390_write_fp):
1327 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
1328 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
1329 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
1330 (d10v_write_fp): Delete function.
1331 * inferior.h (write_fp, generic_target_write_fp): Delete
1332 declarations.
1333 * regcache.c (generic_target_write_fp): Delete function.
1334 (write_fp): Delete function.
1335 * gdbarch.sh (TARGET_WRITE_FP): Delete.
1336 * gdbarch.h, gdbarch.c: Regenerate.
1337 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
1338 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
1339 (sparc64_write_fp): Delete declaration.
1340 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
1341 (h8500_write_fp): Delete declaration.
1342
1343 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1344
1345 * sparc-tdep.c (sparc64_write_fp): Delete.
1346 (sparc_push_dummy_frame): Replace write_fp call with code to store
1347 the FP directly.
1348 (sparc_gdbarch_init): Do not initialize write_fp.
1349
1350 2002-04-05 Kevin Buettner <kevinb@redhat.com>
1351
1352 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
1353 clause.
1354
1355 2002-03-29 Jim Blandy <jimb@redhat.com>
1356
1357 * stack.c (get_selected_block): Add new argument `addr_in_block',
1358 used to return the exact code address we used to select the block,
1359 not just the block.
1360 * blockframe.c (get_frame_block, get_current_block): Same.
1361 * frame.h (get_frame_block, get_current_block,
1362 get_selected_block): Update declarations.
1363 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
1364 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
1365
1366 2002-04-05 Michael Snyder <msnyder@redhat.com>
1367
1368 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
1369 warning message.
1370
1371 2002-04-05 J. Brobecker <brobecker@gnat.com>
1372
1373 * utils.c (xfullpath): New function.
1374 * defs.h (xfullpath): Add declaration.
1375 * source.c (openp): Use xfullpath in place of gdb_realpath to
1376 avoid resolving the basename part of filenames when the
1377 associated file is a symbolic link. This fixes a potential
1378 inconsistency between the filenames known to GDB and the
1379 filenames it prints in the annotations.
1380 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
1381 to be able to match a filename with either the real filename, or
1382 the name of any symbolic link to this file.
1383 (lookup_partial_symtab): Ditto.
1384
1385 2002-04-04 Michael Snyder <msnyder@redhat.com>
1386
1387 * breakpoint.c: Add support for hardware breakpoints in overlays.
1388 (overlay_events_enabled): New state variable.
1389 (insert_breakpoints): Use overlay_events_enabled to decide
1390 whether to attempt to set a breakpoint at the overlay load addr.
1391 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1392 (remove_breakpoint): Use overlay_events_enabled to decide
1393 whether breakpoints need to be removed from overlay load addr.
1394 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1395 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
1396 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
1397 disable_overlay_breakpoints): Update overlay_events_enabled.
1398
1399 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
1400
1401 * dwarf2read.c (struct function_range): New.
1402 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
1403 (check_cu_functions): New.
1404 (read_file_scope): Initialize global function lists.
1405 Call dwarf_decode_line after processing children.
1406 (read_func_scope): Add to global function list.
1407 (dwarf_decode_lines): Call check_cu_functions everywhere
1408 record_line is called. Call record_line with a linenumber
1409 of 0 to mark sequence ends.
1410
1411 2002-04-04 Michal Ludvig <mludvig@suse.cz>
1412
1413 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
1414 change sync with glibc.
1415
1416 2002-04-03 Jim Blandy <jimb@redhat.com>
1417
1418 * configure.in: Call AC_C_INLINE.
1419 * configure: Regenerated.
1420
1421 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
1422
1423 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
1424 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
1425
1426 2002-03-31 Mark Kettenis <kettenis@gnu.org>
1427
1428 * NEWS: Mention gcore support on FreeBSD/i386.
1429
1430 * fbsd-proc.c: New file.
1431 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
1432 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
1433
1434 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
1435 while statement.
1436
1437 2002-03-29 Jim Blandy <jimb@redhat.com>
1438
1439 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
1440 unescaped newlines in string literals, but newer ones don't. So
1441 escape them.
1442
1443 2002-03-26 Michael Snyder <msnyder@redhat.com>
1444 Andrew Cagney <cagney@redhat.com>
1445
1446 * cli/cli-dump.c: New file. Dump memory to file,
1447 restore file to memory.
1448 * cli/cli-dump.h: New file.
1449 * Makefile.in: Add rules, dependencies for cli-dump.o.
1450 * NEWS: Mention new commands.
1451
1452 2002-03-28 Michael Snyder <msnyder@redhat.com>
1453
1454 * symfile.c (symbol_file_add): Move test for null symbols to later.
1455
1456 2002-03-27 Andrew Cagney <ac131313@redhat.com>
1457
1458 From veksler at il.ibm.com:
1459 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
1460 the xstrduped original path.
1461 Fix PR gdb/417.
1462
1463 2002-03-27 Michael Snyder <msnyder@redhat.com>
1464
1465 * breakpoint.c (_initialize_breakpoint): Clean up help string.
1466 * infcmd.c (_initialize_infcmd): Ditto.
1467 * language.c (_initialize_language): Ditto.
1468 * symfile.c (_initialize_symfile): Ditto.
1469 * top.c (_init_main): Ditto.
1470 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1471
1472 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
1473
1474 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
1475 vector registers handling.
1476 (skip_prologue): Handle new AltiVec instructions. Fill in new
1477 fields of frame data.
1478 (frame_get_saved_regs): Fill in information for AltiVec registers.
1479
1480 2002-03-27 Jim Blandy <jimb@redhat.com>
1481
1482 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
1483 a function; leave this macro here to invoke that function.
1484 (symbol_init_mangled_name): Declaration for that function.
1485 * symtab.c (symbol_init_mangled_name): New function.
1486
1487 2002-03-27 Andrew Cagney <ac131313@redhat.com>
1488
1489 * valarith.c: Replace strerror with safe_strerror.
1490 * tracepoint.c: Ditto.
1491 * lin-lwp.c: Ditto.
1492 * go32-nat.c: Ditto.
1493 * inflow.c: Ditto.
1494 * gnu-nat.c: Ditto.
1495
1496 2002-03-27 Andreas Schwab <schwab@suse.de>
1497
1498 * event-top.c (command_line_handler): Remove useless if.
1499
1500 2002-03-27 Andreas Jaeger <aj@suse.de>
1501
1502 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
1503 comment.
1504
1505 2002-03-27 Michal Ludvig <mludvig@suse.cz>
1506
1507 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
1508 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
1509 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
1510 (x86_64_linux_dr_get_status, supply_gregset),
1511 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
1512 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
1513 (x86_64_register_info_table): Add.
1514 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
1515 (x86_64_register_raw_size, x86_64_register_virtual_type),
1516 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
1517 general x86_64_register_info_table.
1518 (i386_gdbarch_init): gdbarch_register_bytes is now set
1519 dynamicaly during initialization.
1520 * regformats/reg-x86-64.dat: Synced with changes to registers above.
1521 * gdbserver/linux-x86-64-low.c: Ditto.
1522
1523 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1524
1525 * gdbserver/server.c (main): Call target_signal_to_host_p
1526 and target_signal_to_host on signals received from the remote.
1527 * gdbserver/remote-utils.c (prepare_resume_reply): Call
1528 target_signal_from_host on signals sent to the remote.
1529 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
1530 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
1531
1532 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1533
1534 * signals/signals.c: Include "server.h" in gdbserver build.
1535 (target_signal_from_name): Don't use STREQ.
1536 (_initialize_signals): Likewise. Don't include function in
1537 gdbserver build.
1538
1539 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1540
1541 * signals.c: Moved to...
1542 * signals/signals.c: Here.
1543 * Makefile (signals.o): Update.
1544
1545 2002-03-26 Jeff Law (law@redhat.com)
1546
1547 * somread.c (som_symtab_read): Remove some commented out code and
1548 updated related comments. Do not set the minimal symbol table to
1549 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
1550 in a dynamic executable.
1551 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
1552 where we are unable to find the minimal symbol for the given
1553 PC value.
1554
1555 2002-03-25 Jeff Law (law@redhat.com)
1556
1557 * linux-proc.c (read_mapping): Scan up to end of line for filename.
1558
1559 2002-03-25 Michal Ludvig <mludvig@suse.cz>
1560
1561 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
1562
1563 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1564
1565 * command.h: Update copyright.
1566 (struct cmd_list_element): Replace definition with opaque
1567 declaration.
1568 (enum cmd_types): Document that it will eventually be moved to
1569 cli/cli-decode.h
1570 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
1571 (MALLOCED_REPLACEMENT): Delete macro.
1572 * Makefile.in (cli_decode_h): Add $(command_h).
1573 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
1574 * top.c: Include "cli/cli-decode.h".
1575 * completer.c: Include "cli/cli-decode.h".
1576 * maint.c: Include "cli/cli-decode.h".
1577 * cli/cli-decode.h: Include "command.h".
1578 (enum command_class): Delete.
1579 (enum cmd_types): Comment out.
1580 (enum cmd_auto_boolean): Delete.
1581 (enum var_types): Delete.
1582
1583 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1584
1585 * cli/cli-decode.c: Include "gdb_assert.h".
1586 (add_set_or_show_cmd): New static function.
1587 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
1588 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
1589 all fields, such as func, from the set command.
1590
1591 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1592
1593 * MAINTAINERS (sh-elf): Change warning flag to -w.
1594
1595 2002-03-23 Andrew Cagney <cagney@redhat.com>
1596
1597 * defs.h (error): Add printf format attribute.
1598 * thread-db.c (thread_from_lwp): Fix error format string.
1599 * stack.c (parse_frame_specification): Ditto.
1600 * cli/cli-decode.c (undef_cmd_error): Ditto.
1601 * scm-lang.c (scm_lookup_name): Ditto.
1602 * tracepoint.c (trace_error): Ditto.
1603 * remote-utils.c (usage): Ditto.
1604 * remote.c (compare_sections_command): Ditto.
1605 Fix PR gdb/328.
1606
1607 2002-03-22 Andrew Cagney <ac131313@redhat.com>
1608
1609 * gdbtypes.c (append_composite_type_field): New function.
1610 (init_composite_type): New function.
1611 * gdbtypes.h (append_composite_type_field): Declare.
1612 (init_composite_type): Ditto.
1613
1614 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
1615
1616 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
1617 function.
1618 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
1619 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
1620 structure returning convention for SYSV ABI case, but not
1621 for GNU/Linux, FreeBSD, or NetBSD.
1622
1623 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
1624
1625 * symtab.h (lookup_block_symbol): Add mangled_name argument
1626 to prototype.
1627
1628 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
1629 with new mangled_name argument.
1630 * linespec.c (decode_line_1): Likewise.
1631 * valops (value_of_this): Likewise.
1632 * symtab.c (lookup_transparent_type): Likewise.
1633 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
1634 (lookup_symbol): If we are given a mangled name, pass it down
1635 to lookup_symbol_aux.
1636 (lookup_block_symbol): If we are given a mangled name to check
1637 against, only return symbols which match it.
1638
1639 2002-03-22 Christopher Faylor <cgf@redhat.com>
1640
1641 * win32-nat.c (child_create_inferior): Check for proper shell to use
1642 here, in case the user changes it on the fly.
1643 (_initialize_inftarg): Remove shell path considerations.
1644
1645 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
1646
1647 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
1648 for gdbarch_max_register_raw_size and max_register_virtual_size.
1649 Adjust copyright year.
1650
1651 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
1652
1653 * dbxread.c (process_one_symbol): Extend the first N_SLINE
1654 in a function to cover the entire beginning of the function
1655 as well if it does not already.
1656
1657 2002-03-21 Tom Rix <trix@redhat.com>
1658
1659 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
1660 (rs6000_ptrace64): Renamed from ptrace64.
1661
1662 2002-03-20 Martin M. Hunt <hunt@redhat.com>
1663
1664 * gdbserver/remote-utils.c (remote_open): Don't call
1665 getprotobyname, we're all using TCP here so just use
1666 IPPROTO_TCP.
1667 * gdbserver/gdbreplay.c (remote_open): Ditto.
1668
1669 2002-03-20 Martin M. Hunt <hunt@redhat.com>
1670
1671 * regcache.c (_initialize_regcache): No need to call
1672 build_regcache() at this time; it gets called whenever
1673 the gdbarch changes.
1674
1675 2002-03-20 David O'Brien <obrien@FreeBSD.org>
1676
1677 * sparc-nat.c: Include sys/param.h where possible.
1678
1679 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
1680
1681 Fix PR gdb/422.
1682 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
1683 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
1684 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
1685 complex types.
1686 * stabsread.c (rs6000_builtin_type): Likewise.
1687 (read_sun_floating_type): Likewise.
1688
1689 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1690
1691 * stabsread.c (read_member_functions): Remove skip code for duplicate
1692 constructor/destructor methods. Use standard parsing for these
1693 methods and just do not chain them to the list of methods after
1694 parsing.
1695
1696 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
1697
1698 * coffread.c: Remove redundant static declarations. Replace
1699 occurrences of `PTR' with `void *'.
1700 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
1701 * top.h (quit_cover): Likewise.
1702 * defs.h (catch_errors): Likewise.
1703
1704 2002-03-18 Andrew Cagney <ac131313@redhat.com>
1705
1706 * defs.h (XMALLOC): Define.
1707 * gdb-events.sh (XMALLOC): Delete macro.
1708 * gdb-events.c, gdb-events.h: Regenerate.
1709 * gdbarch.sh (XMALLOC): Delete macro.
1710 * gdbarch.c: Regenerate.
1711 * serial.c (XMALLOC): Delete macro.
1712 * ui-file.c (XMALLOC): Ditto.
1713 * ser-unix.h (XMALLOC): Ditto.
1714 * sh-tdep.c (XMALLOC): Ditto.
1715 * ui-out.c (XMALLOC): Ditto.
1716 * utils.c (XMALLOC): Ditto.
1717 * i386-tdep.c (XMALLOC): Ditto.
1718 * gdb-events.c (XMALLOC): Ditto.
1719 * d10v-tdep.c (XMALLOC): Ditto.
1720 * cli-out.c (XMALLOC): Ditto.
1721
1722 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
1723 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
1724 * ui-file.c, ui-out.c: Ditto.
1725
1726 2002-03-18 Andrew Cagney <ac131313@redhat.com>
1727
1728 * command.h (struct cmd_list_element): Add field context.
1729 (set_cmd_context, get_cmd_context): Declare.
1730 * cli/cli-decode.h: Ditto.
1731 * cli/cli-decode.c (get_cmd_context): New function.
1732 (set_cmd_context): New function.
1733 (add_cmd): Initialize context.
1734 Part of fixing PR gdb/145 and PR gdb/146.
1735
1736 2002-03-17 Andrew Cagney <ac131313@redhat.com>
1737
1738 * cli/cli-decode.c (cmd_type): New function.
1739 * command.h (cmd_type): Declare.
1740 * infrun.c (set_schedlock_func): Call function cmd_type.
1741 * kod.c (kod_set_os): Call cmd_type.
1742 * cris-tdep.c (cris_version_update): Use function cmd_type.
1743 (cris_mode_update, cris_abi_update): Ditto.
1744
1745 * command.h: (execute_cmd_post_hook): Declare.
1746 (execute_cmd_pre_hook): Declare.
1747 * cli/cli-script.c (clear_hook_in_cleanup): New function.
1748 (execute_cmd_post_hook, execute_cmd_pre_hook): New
1749 functions. Execute pre/post hook while ensuring that afterwords
1750 hook_in is cleared.
1751 * top.c (execute_command): Use execute_cmd_post_hook, and
1752 execute_cmd_pre_hook to execute pre/post commands.
1753 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
1754 hook_stop_stub.
1755 (hook_stop_stub): Call execute_cmd_pre_hook.
1756
1757 2002-03-17 Andrew Cagney <ac131313@redhat.com>
1758
1759 * kod.c (kod_set_os): Revert previous change. Is called by ``info
1760 set'' and this leads to a core dump. Move xstrdup of
1761 operating_system to after check that it is not NULL.
1762
1763 2002-03-17 Andrew Cagney <ac131313@redhat.com>
1764
1765 * kod.c (kod_set_os): Remove unnecessary check that
1766 ``command->type'' is set_cmd.
1767
1768 * valprint.c (set_input_radix): Use input_radix.
1769 (set_output_radix): Use output_radix.
1770 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
1771 isn't reverted.
1772
1773 2002-03-16 Andrew Cagney <ac131313@redhat.com>
1774
1775 * value.h (struct value): Delete field ``substring_addr''. Change
1776 aligner fields to force_doublest_align, force_longest_align,
1777 force_core_addr_align and force_pointer_aligh.
1778
1779 * value.h (struct value): Fix typo in above change.
1780
1781 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1782
1783 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
1784 to fix internal_error from ``maintenance print architecture''.
1785
1786 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1787
1788 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
1789 for gcc versions after gcc-2.8.1.
1790
1791 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1792
1793 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
1794 for method resolution. Restore adjustment of ``this'' pointer after
1795 calling value_struct_elt, which was accidentally removed during the
1796 HP merge.
1797
1798 2002-03-15 Andrew Cagney <ac131313@redhat.com>
1799
1800 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
1801 value_of_register.
1802 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
1803 get_saved_register.
1804 * value.h (value_of_register): Update.
1805
1806 2002-03-14 Richard Henderson <rth@redhat.com>
1807
1808 * configure.in: Detect declaration for canonicalize_file_name.
1809 * utils.c (canonicalize_file_name): Declare, if needed.
1810 (gdb_realpath): Prefer realpath if available and usable.
1811 * config.in, configure: Rebuild.
1812
1813 2002-03-14 Richard Henderson <rth@redhat.com>
1814
1815 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
1816 a constant array bound.
1817
1818 * MAINTAINERS: Add myself to write-after-approval.
1819
1820 2002-03-14 Michael Snyder <msnyder@redhat.com>
1821
1822 * symfile.c (syms_from_objfile): Return immediately if no syms.
1823 (symbol_file_add): Return immediately if no syms.
1824 (find_sym_fns): Return immediately if no syms.
1825
1826 2002-03-13 Michal Ludvig <mludvig@suse.cz>
1827
1828 * gdbserver/remote-util.c (remote_open): Print remote-side's
1829 IP address when remote debugging over the network.
1830
1831 2002-03-12 David O'Brien <obrien@FreeBSD.org>
1832
1833 * config/sparc/fbsd.mh: Fix copyright.
1834 * config/sparc/fbsd.mt: Likewise.
1835
1836 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
1837
1838 * MAINTAINERS: Fix typo in name of gdb warnings option.
1839 (x86-64): Fix formating so that this can be parsed by awk.
1840
1841 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
1842
1843 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
1844 * defs.h: Include "gdb/signals.h".
1845 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
1846
1847 2002-03-10 Michal Ludvig <mludvig@suse.cz>
1848
1849 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
1850 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
1851 from x86-64-tdep.h
1852
1853 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
1854 Don Howard <dhoward@redhat.com>
1855
1856 * mips-tdep.c (ST0_FR): Define.
1857 (mips2_fp_compat): New function, temporarily disabled.
1858 (mips_read_fp_register_single): New function.
1859 (mips_read_fp_register_double): New function.
1860 (mips_print_register): Use them.
1861 (do_fp_register_row): Likewise.
1862
1863 2002-03-09 Andrew Cagney <ac131313@redhat.com>
1864
1865 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
1866 approval''.
1867
1868 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1869
1870 * stabsread.c (read_member_functions): Fix is_stub test for
1871 static member functions, improve comment.
1872
1873 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
1874
1875 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
1876 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
1877 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
1878 commands that set boolean values.
1879 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
1880 (arm_rdi_resume): Always initialize PC.
1881 (arm_rdi_open): Don't use rslt as a boolean.
1882 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
1883 (arm_rdi_fetch_registers, arm_rdi_store_registers)
1884 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
1885 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
1886
1887 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
1888
1889 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
1890 * configure: Rebuilt.
1891
1892 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1893
1894 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
1895 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
1896
1897 2002-03-06 Andrew Cagney <ac131313@redhat.com>
1898
1899 * cli/cli-decode.c (set_cmd_completer): New function.
1900 * command.h (set_cmd_completer): Declare.
1901 * cli/cli-decode.h (set_cmd_completer): Ditto.
1902
1903 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
1904 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1905 * win32-nat.c (_initialize_inftarg): Ditto.
1906 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1907 * proc-api.c (_initialize_proc_api): Ditto.
1908 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
1909 * source.c (_initialize_source): Ditto.
1910 * exec.c (_initialize_exec): Ditto.
1911 * solib.c (_initialize_solib): Ditto.
1912 * top.c (init_main): Ditto.
1913 * tracepoint.c (_initialize_tracepoint): Ditto.
1914 * symfile.c (_initialize_symfile): Ditto.
1915 * printcmd.c (_initialize_printcmd): Ditto.
1916 * infcmd.c (_initialize_infcmd): Ditto.
1917 * corefile.c (_initialize_core): Ditto.
1918
1919 2002-03-05 Andrew Cagney <ac131313@redhat.com>
1920
1921 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
1922
1923 2002-03-05 Andrew Cagney <ac131313@redhat.com>
1924
1925 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
1926
1927 2002-03-05 Andrew Cagney <ac131313@redhat.com>
1928
1929 * NEWS: Update headings, 5.2 has branched.
1930
1931 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
1932
1933 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
1934 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
1935 (register_addr, REGISTER_RAW_SIZE): Likewise.
1936 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
1937 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
1938
1939 2002-03-03 Michal Ludvig <mludvig@suse.cz>
1940
1941 * MAINTAINERS (x86-64): Add myself.
1942 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
1943 changed value_ptr -> struct value *
1944
1945 2002-03-01 David O'Brien <obrien@FreeBSD.org>
1946
1947 * configure.host (sparc64-*-freebsd): Add.
1948 * configure.tgt: Likewise.
1949 * config/sparc/fbsd.mh: New file.
1950 * config/sparc/fbsd.mt: Likewise.
1951 * config/sparc/nm-fbsd.h: Likewise.
1952 * config/sparc/tm-fbsd.h: Likewise.
1953
1954 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
1955
1956 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
1957 regformats/reg-s390x.dat.
1958
1959 2002-03-01 Andrew Cagney <ac131313@redhat.com>
1960
1961 * utils.c: Add FIXME explaining true/false problem.
1962
1963 2002-02-28 Andrew Cagney <ac131313@redhat.com>
1964
1965 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
1966
1967 2002-02-28 Michael Chastain <mec@shout.net>
1968
1969 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
1970
1971 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
1972
1973 * gdbserver/linux-s390-low.c: New file.
1974 * regformats/reg-s390.dat: New file.
1975 * regformats/reg-s390x.dat: New file.
1976 * gdbserver/configure.srv: Add S/390.
1977 * gdbserver/Makefile.in: Add S/390.
1978 * configure.tgt: Enable gdbserver for S/390.
1979
1980 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
1981
1982 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
1983 first line of the doc string for "info dos", except at the end of
1984 the sentence, since the short help stops at the first period.
1985
1986 2002-02-28 Jason Merrill <jason@redhat.com>
1987
1988 * dwarf2read.c (dwarf_cfi_name): Add new codes.
1989
1990 2002-02-27 Fred Fish <fnf@redhat.com>
1991
1992 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
1993 comment (dumy -> dummy).
1994
1995 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1996
1997 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
1998
1999 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
2000
2001 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
2002
2003 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2004
2005 * gdbserver/acconfig.h: New file.
2006 * gdbserver/i387-fp.c: New file.
2007 * gdbserver/i387-fp.h: New file.
2008 * gdbserver/linux-x86-64.c: New file.
2009 * regformats/reg-x86-64.dat: New file.
2010 * configure.tgt: Add x86_64-*-linux* gdbserver support.
2011 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
2012 * gdbserver/configure.in: Add support for regsets.
2013 * gdbserver/config.in: Regenerate.
2014 * gdbserver/configure: Regenerate.
2015 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
2016 * gdbserver/linux-low.h: New file.
2017 * gdbserver/linux-low.c: Include "linux-low.h". Add support
2018 for regsets.
2019 * gdbserver/linux-arm-low.c: Include "linux-low.h".
2020 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
2021 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
2022 * gdbserver/linux-mips-low.c: Include "linux-low.h".
2023 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
2024 * gdbserver/linux-sh-low.c: Include "linux-low.h".
2025 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
2026 "i387-fp.h". Add PTRACE_GETREGS and friends.
2027 * gdbserver/regcache.c (supply_register): New function.
2028 (supply_register_by_name): New function.
2029 (collect_register): New function.
2030 (collect_register_by_name): New function.
2031
2032 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2033
2034 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
2035 (config.status): Add configure.srv dependency.
2036 (server_h): Add config.h dependency.
2037
2038 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2039
2040 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
2041 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
2042 * gdbserver/configure.srv: Change i386-*-linux* to use
2043 reg-i386-linux.o.
2044
2045 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2046
2047 * x86-64-tdep.c: Re-indent. Update copyright date.
2048
2049 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2050
2051 From Michal Ludvig <mludvig@suse.cz>:
2052 * x86-64-tdep.c (value.h): Delete.
2053 (gdb_assert.h): Include.
2054 (x86_64_register_convert_to_virtual,
2055 x86_64_register_convert_to_raw ): Add check which lets only
2056 floating-point values to be converted.
2057 (value_push): Delete.
2058 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
2059 (i386_gdbarch_init): Number of register_bytes fixed.
2060
2061 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2062
2063 * MAINTAINERS: Add x86-64 target.
2064
2065 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2066
2067 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
2068 * osfsolib.c (solib_map_sections): Ditto.
2069 * irix5-nat.c (solib_map_sections): Ditto.
2070 * corelow.c (gdb_check_format): Ditto.
2071 * symfile.c (symfile_bfd_open): Ditto.
2072 * solib.c (solib_map_sections): Ditto.
2073 Fix PR gdb/354.
2074
2075 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2076
2077 * remote.c (_initialize_remote): By default, disable ``e'' and
2078 ``E'' step out-of-range packets.
2079
2080 2002-02-26 Andreas Schwab <schwab@suse.de>
2081
2082 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
2083 m68k_linux_frame_saved_pc.
2084 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
2085 in_sigtramp.
2086 (SIGCONTEXT_PC_OFFSET): Remove.
2087 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
2088 m68k_linux_sigtramp_saved_pc): New functions.
2089 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
2090 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
2091 (UCONTEXT_PC_OFFSET): Define.
2092 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
2093 non-RT and RT signal trampolines.
2094
2095 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
2096
2097 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
2098 (TARGET_NBPG, STACK_END_ADDR): Delete
2099 (VARIABLES_INSIDE_BLOCK): Delete.
2100
2101 2002-02-25 Andrew Cagney <ac131313@redhat.com>
2102
2103 * utils.c (perror_with_name): Make string parameter constant.
2104 (print_sys_errmsg): Ditto.
2105 (query): Ditto.
2106 * defs.h (perror_with_name): Update.
2107 (print_sys_errmsg): Update.
2108 (query): Update.
2109
2110 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
2111
2112 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
2113 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
2114
2115 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2116
2117 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
2118 if it already matches the current architecture from the exec file.
2119 Include arch-utils.h for gdbarch_info_init prototype.
2120 * Makefile.in (rs6000-nat.o): Update dependencies.
2121
2122 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
2123
2124 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
2125 list of exported variables.
2126
2127 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
2128
2129 * gdbserver/configure.srv: New file.
2130 * gdbserver/configure.in: Use configure.srv instead
2131 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
2132 from it.
2133 * gdbserver/configure: Regenerated.
2134 * gdbserver/terminal.h: New file.
2135 * gdbserver/Makefile.in: Update for configure changes. Remove
2136 more unneeded include paths.
2137
2138 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2139
2140 From wiz at danbala:
2141 * config/sparc/tm-sp64.h: Fix grammar and typos.
2142 Fix PR gdb/287.
2143
2144 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2145
2146 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
2147 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
2148 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
2149 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
2150 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
2151 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
2152 * s390-tdep.c: Ditto.
2153 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
2154 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
2155 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
2156 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
2157 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
2158 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
2159 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
2160 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
2161 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
2162 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
2163 Fix PR gdb/378.
2164
2165 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2166
2167 * lin-thread.c: Delete file.
2168 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
2169 to gdb_proc_service.h.
2170 * configure: Re-generate.
2171
2172 * ocd.c (ocd_open): Do not try to open the "ocd" device.
2173 * serial.c (serial_open): Delete check for "ocd".
2174 Fix PR gdb/349.
2175
2176 * Makefile.in (linux-thread.o): Delete target.
2177 * linux-thread.c: Delete file.
2178
2179 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
2180 renamed SH files to be consistent.
2181
2182 * symtab.c (sort_search_symbols): Use xfree.
2183
2184 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2185
2186 * arm-linux-tdep.c (arm_linux_init_abi): Register
2187 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
2188 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
2189 definition with undef, since we don't want the sysvr4 definition.
2190 (SKIP_TRAMPOLINE_CODE): Likewise.
2191
2192 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2193
2194 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
2195
2196 * configure.in: (AC_CHECK_FUNCS) Added test for
2197 canonicalize_file_name Regenerated.
2198 * config.in, configure: Regenerated.
2199 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
2200 defined use canonicalize_file_name.
2201
2202 2002-02-23 Michael Chastain <mec@shout.net>
2203
2204 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
2205
2206 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2207
2208 * README: Remove references to cygnus.com.
2209 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
2210 dot com'' form. Remove references to cygnus.com and sourceware.
2211
2212 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2213
2214 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
2215 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
2216 1003.1-2001 no longer allows "head -1".
2217 * gdb/Makefile.in (version.c): Likewise.
2218 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
2219 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
2220 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
2221
2222 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2223
2224 * cli/cli-decode.c (cmd_cfunc_eq): New function.
2225 * command.h (cmd_cfunc_eq): Declare.
2226 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
2227
2228 * cli/cli-cmds.h (is_complete_command): Change parameter to a
2229 ``struct cmd_list_element *''.
2230 * cli/cli-cmds.c (is_complete_command): Update. Use
2231 cmd_cfunc_eq.
2232 * top.c (execute_command): Pass the command to
2233 is_complete_command.
2234 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
2235
2236 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2237
2238 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
2239 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
2240 architecture defines.
2241 * s390-tdep.c (s390_gdbarch_init): Likewise.
2242
2243 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2244
2245 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
2246 (arm_linux_push_arguments): Likewise.
2247 (arm_linux_init_abi): Register them. Also register linux-specific
2248 call_dummy_words.
2249 (find_minsym_and_objfile): Use strcmp, not STREQ.
2250 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
2251 (arm_linux_call_dummy_words): Delete declaration.
2252 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
2253 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
2254 declarations.
2255 (LOWEST_PC): Delete.
2256
2257 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2258
2259 * maint.c (print_section_info): Do not prepend `0x' to filepos
2260 output, it will be handled by local_hex_string_custom.
2261
2262 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2263
2264 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
2265 (store_newfpe_double, store_newfpe_extended, store_fpregister)
2266 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
2267
2268 2002-02-22 Jim Blandy <jimb@redhat.com>
2269
2270 Indicate that the bcache functions don't change the strings
2271 they're passed.
2272 * bcache.h (bcache, hash): Add `const' keywords to declarations.
2273 * bcache.c (bcache, hash): Add `const' keywords to definitions.
2274
2275 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
2276
2277 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
2278
2279 2002-02-21 Christopher Faylor <cgf@redhat.com>
2280
2281 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
2282 find the complete path to a loaded DLL.
2283
2284 2002-02-21 Fred Fish <fnf@redhat.com>
2285
2286 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
2287 that marks the end of the range of a function, enter a line number
2288 entry that has a line number of zero and a PC offset that matches
2289 the end of the function. This starts a range of PC's for which no
2290 line number information is known.
2291 * symtab.c (find_pc_sect_line): If our best fit is in a range of
2292 PC's for which no line number info is found (line number is zero)
2293 then we didn't find any valid line information.
2294 * symtab.h: Document use of zero line number entry.
2295
2296 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
2297
2298 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
2299 (have_ptrace_getvrregs): Define for run time checks.
2300 (gdb_vrregset_t): New type for Altivec register handling.
2301 (fetch_register, store_register): Fetch/store altivec register
2302 when needed.
2303 (fetch_altivec_register, store_altivec_register): New functions.
2304 (supply_vrregset, fill_vrregset): New functions.
2305 (fetch_altivec_registers, store_altivec_registers): New functions.
2306 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
2307 registers as well.
2308
2309 2002-02-21 Jiri Smid <smid@suse.cz>
2310
2311 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
2312
2313 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2314
2315 * Makefile.in (armnbsd-nat.o): Update dependencies.
2316 * armnbsd-nat.c (supply_gregset): New function. Common code to
2317 supply the integer register set.
2318 (supply_fparegset): New function. Similar for FPA registers.
2319 (fetch_regs, fetch_fp_regs): Use them.
2320 (fetch_core_registers): Likewise.
2321 (fetch_elfcore_registers): New function.
2322 (arm_netbsd_elfcore_fns): New core-file type specification.
2323 (_initialize_arm_netbsd_nat): Register it.
2324
2325 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2326
2327 * armnbsd-nat.c: Include gdbcore.h.
2328 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
2329 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
2330 'void' to declaration, to shut up ARI.
2331 (fetch_core_registers): Make static. Rewrite using supply_register.
2332 (arm_netbsd_core_fns): New core-file type specification.
2333 (_initialize_arm_netbsd_nat): New function.
2334
2335 2002-02-21 Christopher Faylor <cgf@redhat.com>
2336
2337 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
2338 value.
2339
2340 2002-02-20 Christopher Faylor <cgf@redhat.com>
2341
2342 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
2343 fails.
2344
2345 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2346
2347 * jv-exp.y (parse_number): Change type of implicit longs
2348 to builtin_type_uint64.
2349
2350 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2351
2352 * gdbserver/linux-low.c (mywait): Change argument to waitpid
2353 to be an integer instead of a `union wait'.
2354
2355 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2356
2357 * mips-linux-nat.c: Call the operating system GNU/Linux.
2358 * mips-linux-tdep.c: Likewise.
2359 * mips-tdep.c: Likewise.
2360
2361 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2362
2363 Fix PR gdb/265.
2364 * jv-exp.y (parse_number): Handle 64-bit integers.
2365
2366 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2367
2368 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
2369 AC_STDC_HEADERS to AC_HEADER_STDC.
2370 * gdbserver/configure: Regenerated.
2371
2372 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2373
2374 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
2375 is defined.
2376 * sparc-tdep.c (get_longjmp_target): Likewise.
2377
2378 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2379
2380 * News: Add news about ARM and Multi-arch. Mention the new target
2381 arm*-*-netbsd*.
2382
2383 2002-02-19 Jim Blandy <jimb@redhat.com>
2384
2385 * stabsread.c (error_type_complaint): Improve error message.
2386
2387 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
2388
2389 * gdbserver/README: Update documentation.
2390 * gdbserver/configure.in: Update configury to match documentation.
2391 * gdbserver/Makefile.in: Likewise.
2392 * gdbserver/configure: Regenerated.
2393 * gdbserver/aclocal.m4: New file, generated by aclocal.
2394 * gdbserver/config.in: New file, generated by autoheader.
2395
2396 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2397
2398 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
2399 armnbsd-nat.c.
2400
2401 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2402
2403 * arm-tdep.h (enum arm_float_model): New enum.
2404 (struct gdbarch_tdep): Add fp_model.
2405 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
2406 up floating-point conversions until we know the floating-point model
2407 in use by the inferior. Don't complain about being unable to
2408 determine the ABI of the inferior when we don't have one.
2409 (arm_extract_return_value): Support different floating-point models.
2410 (arm_store_return_value): Likewise.
2411 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
2412 ARM_FLOAT_SOFT.
2413 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
2414
2415 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2416
2417 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
2418 of ``current_gdbarch''.
2419
2420 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2421
2422 * armnbsd-nat.c : ANSIfy all function declarations.
2423 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
2424 (fetch_inferior_registers): Re-implement in terms of above.
2425 (store_register, store_regs, store_fp_register, store_fp_regs): New.
2426 (store_inferior_registers): Re-implement in terms of above.
2427
2428 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2429
2430 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
2431 kernel.
2432 * arm-linux-tdep.c: Likewise.
2433 * config/arm/tm-linux.h: Likewise.
2434
2435 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2436
2437 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
2438 * config/arm/nbsd.mt (TM_FILE): Delete.
2439 * config/arm/tm-nbsd.h: Delete.
2440
2441 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2442
2443 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
2444 Initialize CALL_DUMMY_LENGTH.
2445
2446 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2447
2448 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
2449 function.
2450 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
2451 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
2452 defines one thing and that is incorrect for this port.
2453 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
2454
2455 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2456
2457 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
2458
2459 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2460
2461 * win32-nat.c (display_selector): New function. Displays information
2462 about the information returned by GetThreadSelectorEntry API function.
2463 (display_selectors): New function. Displays the infomation of
2464 the selector given as argument, or of CS, DS ans FS selectors
2465 if no argument is given.
2466 ( _initialize_inftarg): Add "w32" as info prefix command.
2467 Add "info w32 selector" as command calling display_selectors.
2468
2469 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
2470
2471 * i386-tdep.c (get_longjmp_target): Fix compilation failure
2472 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
2473 if not defined.
2474
2475 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2476
2477 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
2478
2479 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2480
2481 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
2482 (arm_fix_call_dummy): Call it.
2483 (arm_call_dummy_breakpoint_offset): Delete.
2484 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
2485 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
2486
2487 2002-02-18 Andrew Cagney <ac131313@redhat.com>
2488
2489 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
2490 Default to func_frame_chain_valid.
2491 * gdbarch.h, gdbarch.c: Re-generate.
2492 * frame.h (FRAME_CHAIN_VALID): Delete definition.
2493
2494 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
2495
2496 * ppc-linux-nat.c: Update copyright.
2497 (fetch_register, store_register): Add tid parameter, don't compute
2498 tid here.
2499 (fetch_ppc_registers, store_ppc_registers): Add tid
2500 parameter. Pass it along to callees.
2501 (fetch_inferior_registers, store_inferior_registers): Compute tid
2502 here, and pass it to calleed functions.
2503 (fill_gregset, supply_fpregset): Clean up formatting.
2504
2505 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2506
2507 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
2508 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
2509
2510 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2511
2512 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
2513 * gdbarch.c gdbarch.h: Regenerate.
2514 * breakpoint.c (create_longjmp_breakpoint): Always compile this
2515 function.
2516 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
2517 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
2518 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
2519
2520 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
2521 * arm-tdep.c (arm_get_longjmp_target): New function.
2522 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
2523 this to a positive value register arm_get_longjmp_target as the
2524 longjmp handler.
2525 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
2526 (arm_linux_init_abi): Set up longjmp description in tdep.
2527 * armnbsd-nat.c (get_longjmp_target): Delete.
2528 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
2529 description in tdep.
2530 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
2531 (get_longjmp_target): Delete declaration.
2532 (GET_LONGJMP_TARGET): Delete.
2533 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
2534 (GET_LONGJMP_TARGET): Delete.
2535
2536 2002-02-17 Kevin Buettner <kevinb@redhat.com>
2537
2538 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
2539 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
2540 of ``current_gdbarch''.
2541
2542 2002-02-17 Tom Tromey <tromey@redhat.com>
2543
2544 * cli/cli-cmds.c (compare_strings): New function.
2545 (complete_command): Only print each unique item once.
2546 * completer.h (complete_line): Declare.
2547 * completer.c (complete_line): New function.
2548 (line_completion_function): Use it.
2549
2550 2002-02-16 Andrew Cagney <ac131313@redhat.com>
2551
2552 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
2553 * gdbarch.h, gdbarch.c: Re-generate.
2554
2555 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
2556
2557 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
2558
2559 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
2560
2561 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
2562 * valops.c (value_arg_coerce): Don't take the address of a reference
2563 to convert an argument to a reference.
2564
2565 2002-02-15 Christopher Faylor <cgf@redhat.com>
2566
2567 * win32-nat.c (get_image_name): New function.
2568 (handle_load_dll): Use get_image_name function.
2569 (get_child_debug_event): Avoid registering debug events until possibly
2570 execed process is started.
2571 (child_create_inferior): Allow invocation via shell so that command
2572 line redirection, etc. works ok.
2573 (_initialize_inftarg): Add new command: "set shell" to control whether
2574 a shell is used to start a process.
2575
2576 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
2577
2578 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
2579 instead of find_register_by_number.
2580 (cannot_store_register): Likewise.
2581
2582 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
2583
2584 * dwarf2read.c: Replace fprintf (stderr, ...) by
2585 fprintf_unfiltered (gdb_stderr, ...).
2586
2587 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
2588
2589 * gdbserver/gdbserver.1: Document --attach.
2590
2591 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
2592
2593 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
2594 descriptions.
2595 * arm-tdep.c (arm_default_arm_le_breakpoint)
2596 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
2597 (arm_default_thumb_be_breakpoint): New. Initialize them from
2598 traditional breakpoint defines.
2599 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
2600 (arm_gdbarch_init): Initialize new breakpoint variables.
2601 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
2602 (arm_linux_init_abi): Initialize linux-specific breakpoint.
2603 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
2604 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
2605 code out to ...
2606 (arm_netbsd_init_abi_common): ... here; new function.
2607 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
2608 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
2609 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
2610 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
2611
2612 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
2613
2614 * arm-tdep.h (enum arm_abi): New enum.
2615 (struct gdbarch_tdep): New structure.
2616 (LOWEST_PC): Provide a default.
2617 (arm_gdbarch_register_os_abi): Declare new function.
2618 * arm-tdep.c (arm_abi_names): New array.
2619 (process_note_abi_tag_sections): New function.
2620 (get_elfosabi): New function.
2621 (arm_gdbarch_register_os_abi): New function.
2622 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
2623 support for that ABI has been built in, then call the appropriate
2624 configuration routine. Use gdbarch_num_regs() to get the number
2625 of registers.
2626 (arm_dump_tdep): New function.
2627 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
2628 place-holder functions.
2629 (_initialize_arm_tdep): Register them.
2630 * config/arm/tm-arm.h (LOWEST_PC): Delete.
2631
2632 * armnbsd-tdep.c: New file.
2633 * Makefile.in (armnbsd-tdep.o): Add dependencies.
2634 * config/arm/nbsd.mt (TDEPFILES): Add it.
2635 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
2636
2637 * armnbsd-nat.c: Include regcache.h.
2638 * Makefile.in (armnbsd-nat.o): Update dependency list.
2639
2640 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
2641
2642 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2643
2644 * gdbserver/Makefile.in: Fix typos in target rules.
2645
2646 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2647
2648 Fix part of PR gdb/267.
2649 * linespec.c (find_methods): Handle constructors specially for now.
2650
2651 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
2652
2653 * arm-tdep.c (arm_push_arguments): Eliminate special float type
2654 handling.
2655 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
2656 standard_coerce_float_to_double().
2657
2658 2002-02-14 Christopher Faylor <cgf@redhat.com>
2659
2660 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
2661 GDBINIT_FILENAME.
2662
2663 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
2664
2665 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
2666 find_variant_by_name, because it confuses the multiarch
2667 framework. Return NULL if there isn't an architecture with the
2668 user supplied name, instead of forcing a different one without
2669 recording the change with the multiarch machinery.
2670 (find_variant_by_name): Delete.
2671
2672 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2673
2674 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
2675 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
2676
2677 2002-02-13 Martin M. Hunt <hunt@redhat.com>
2678
2679 * stack.c (print_frame_info_base): When calling
2680 print_frame_info_listing_hook, set current_source_symtab.
2681
2682 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2683
2684 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
2685 and remove unused $(INCLUDE_DIR).
2686 Add regcache.c to OBS.
2687 Add generated register protocol files to clean target.
2688 Update dependencies for new objects, obsolete old target code.
2689
2690 * gdbserver/linux-low.c: Remove all platform-specific code to
2691 new files. Remove various dead code. Update to use regcache
2692 functionality.
2693 * gdbserver/remote-utils.c (fromhex): Add return statement
2694 to quiet warning.
2695 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
2696 constant.
2697 (input_interrupt): Add integer parameter to match prototype
2698 of a signal handler.
2699 (outreg): Use register_data ().
2700 (prepare_resume_reply): Use gdbserver_expedite_regs.
2701 * gdbserver/server.c (main): Dynamically allocate own_buf because
2702 PBUFSIZ is no longer constant. Use registers_to_string () and
2703 registers_from_string ().
2704 * gdbserver/server.h: No longer include "defs.h". Add prototypes
2705 for error (), fatal (), and warning (). Update definition of
2706 PBUFSIZ to use regcache functionality. Add include guard.
2707 * gdbserver/utils.c (fatal): Add missing ``const''.
2708 (warning): New function.
2709
2710 * regformats/regdat.sh: Include "regcache.h" in generated files.
2711 Provide init_registers () function.
2712 * regformats/regdef.h: Add prototype for set_register_cache ().
2713 Add include guard.
2714
2715 * gdbserver/linux-arm-low.c: New file.
2716 * gdbserver/linux-i386-low.c: New file.
2717 * gdbserver/linux-ia64-low.c: New file.
2718 * gdbserver/linux-m68k-low.c: New file.
2719 * gdbserver/linux-mips-low.c: New file.
2720 * gdbserver/linux-ppc-low.c: New file.
2721 * gdbserver/linux-sh-low.c: New file.
2722
2723 * gdbserver/regcache.c: New file.
2724 * gdbserver/regcache.h: New file.
2725
2726 * gdbserver/low-linux.c: Removed obsolete file.
2727
2728 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2729
2730 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
2731 * config/i386/linux.mt: Likewise.
2732 * config/ia64/linux.mt: Likewise.
2733 * config/m68k/linux.mh: Likewise.
2734 * config/powerpc/linux.mh: Likewise.
2735 * config/mips/linux.mt: Likewise.
2736
2737 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
2738
2739 * config/i386/i386lynx.mh: Mark gdbserver variables
2740 as (currently) obsolete for this target.
2741 * config/i386/nbsd.mt: Likewise.
2742 * config/i386/nbsdelf.mt: Likewise.
2743 * config/m32r/m32r.mt: Likewise.
2744 * config/m68k/m68klynx.mh: Likewise.
2745 * config/m68k/nbsd.mt: Likewise.
2746 * config/m68k/sun3os4.mh: Likewise.
2747 * config/mips/vr5000.mt: Likewise.
2748 * config/ns32k/nbsd.mt: Likewise.
2749 * config/pa/hppabsd.mh: Likewise.
2750 * config/pa/hppaosf.mh: Likewise.
2751 * config/powerpc/nbsd.mt: Likewise.
2752 * config/rs6000/rs6000lynx.mh: Likewise.
2753 * config/s390/s390.mt: Likewise.
2754 * config/s390/s390x.mt: Likewise.
2755 * config/sparc/sparclynx.mh: Likewise.
2756 * config/sparc/sun4os4.mh: Likewise.
2757 * config/i386/x86-64linux.mt: Likewise.
2758 * config/sparc/linux.mh: Likewise.
2759
2760 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2761
2762 * configure.tgt: Configure gdbserver only for known working
2763 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
2764 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
2765 SUBDIRS if it is configured. Update comment for ${nativefile}.
2766 * configure: Regenerated.
2767
2768 2002-02-13 Michael Snyder <msnyder@redhat.com>
2769
2770 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
2771
2772 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
2773 (default_gcore_mach): Just return 0, work around a problem in bfd.
2774 (default_gcore_target): OK to return NULL if exec_bfd is null.
2775 (make_mem_sec): Use a cast, avoid a warning.
2776
2777 * procfs.c (find_memory_regions_callback): Use a cast instead of
2778 calling host_pointer_to_address (which complains if
2779 sizeof (host pointer) != sizeof (target pointer)).
2780 (procfs_make_note_section): Avoid overflow in psargs string.
2781
2782 * procfs.c (procfs_make_note_section): Make the default
2783 implementation return an error.
2784
2785 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
2786
2787 * procfs.c (procfs_make_note_section): Provide a default definition
2788 (for alpha-dec-osf4.0f). Fix typos.
2789
2790 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
2791
2792 * linux-proc.c: Add include of regcache.h.
2793 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
2794
2795 2002-02-13 Andrew Cagney <ac131313@redhat.com>
2796
2797 From 2002-01-18 Greg McGary <greg@mcgary.org>:
2798 * memattr.c (create_mem_region): Disallow useless empty region.
2799 Regions are half-open intervals, so allow [A..B) [B..C) as
2800 non-overlapping.
2801
2802 2002-02-13 Michael Chastain <mec@shout.net>
2803
2804 * defs.h: Kill CONST_PTR.
2805 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
2806 * c-lang.c (c_builtin_types): Likewise.
2807 * ch-lang.c (ch_builtin_types): Likewise.
2808 * f-lang.c (f_builtin_types): Likewise.
2809 * language.c (unknown_builtin_types): Likewise.
2810 * m2-lang.c (m2_builtin_types): Likewise.
2811 * p-lang.c (pascal_builtin_types): Likewise.
2812 * scm-lang.c (c_builtin_types): Likewise.
2813
2814 2002-02-13 Keith Seitz <keiths@redhat.com>
2815
2816 * arm-tdep.h (arm_get_next_pc): Add declaration.
2817
2818 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
2819
2820 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
2821 with other related struct-returning functions.
2822 (arm_extract_struct_value_address): New function.
2823 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
2824 initialize float_format, double_format and long_double_format as
2825 appropriate to the endianness of the target.
2826 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
2827 (arm_use_struct_convention): Delete declaration.
2828 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2829
2830 2002-02-13 Keith Seitz <keiths@redhat.com>
2831
2832 * defs.h (core_addr_to_string_nz): New function.
2833
2834 2002-02-13 Mark Kettenis <kettenis@gnu.org>
2835
2836 Apply missing bits of 2002-01-15 patch.
2837 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
2838 (fill_fpregset): Use i387_fill_fsave.
2839
2840 2002-02-12 Keith Seitz <keiths@redhat.com>
2841
2842 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
2843 (core_addr_to_string_nz): New function.
2844
2845 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
2846
2847 * arm-linux-nat.c: Really include arm-tdep.h.
2848 * config/arm/tm-linux.h (struct type, struct value): Declare.
2849
2850 2002-02-11 Michael Snyder <msnyder@redhat.com>
2851
2852 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
2853 (gcore section): Ifdef for Solaris and Unixware only.
2854 (procfs_do_thread_registers): Unixware needs one lwpstatus
2855 per thread (not one prstatus or pstatus).
2856 (procfs_make_note_section): Iterate only over kernel threads (lwps),
2857 not over all gdb threads. For unixware, call elfcore_write_pstatus
2858 once before iterating over threads.
2859
2860 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
2861
2862 * arm-tdep.h: New file.
2863 * arm-tdep.c: Include arm-tdep.h.
2864 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2865 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2866 (arm_print_float_info, arm_register_type, convert_to_extended)
2867 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2868 (arm_extract_return_value, arm_register_name): Make static.
2869 (arm_software_single_step): Similarly. Fix types in declaration.
2870 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
2871 (arm_store_return_value, arm_store_struct_return): New functions.
2872 (arm_gdbarch_init): Register the above functions. Also register
2873 call_dummy_start_offset, sizeof_call_dummy_words,
2874 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
2875 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
2876 max_register_virtual_size, register_size. Set up
2877 prologue_cache.saved_regs here, rather than ...
2878 (_initialize_arm_tdep): ... here.
2879 * config/arm/tm-arm.h (struct type, struct value): Delete forward
2880 declarations.
2881 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2882 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2883 (arm_print_float_info, arm_register_type, convert_to_extended)
2884 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2885 (arm_extract_return_value, arm_register_name): Delete declarations.
2886 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
2887 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
2888 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
2889 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
2890 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2891 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
2892 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
2893 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
2894 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
2895 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
2896 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
2897 (arm_get_next_pc): No-longer static -- these are needed by the RDI
2898 interface.
2899 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
2900 * remote-rdi.c remote-rdp.c: Likewise.
2901 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
2902 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
2903 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
2904 definition.
2905
2906 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
2907 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
2908 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
2909 from non-ARM_ prefixed definitions.
2910 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
2911 all uses of above.
2912 * remote-rdi.c remote-rdp.c: Likewise.
2913 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
2914
2915 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
2916
2917 * arm-tdep.c (arm_frameless_function_invocation)
2918 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2919 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2920 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2921 (arm_pop_frame, arm_get_next_pc): Make static.
2922 (arm_gdbarch_init): Register above in gdbarch structure.
2923 (arm_read_fp): Renamed from arm_target_read_fp.
2924 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
2925 * config/arm/tm-arm.h (arm_frameless_function_invocation)
2926 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2927 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2928 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2929 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
2930 (arm_pc_is_thumb_dummy): Delete declarations.
2931 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
2932 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
2933 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
2934 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
2935
2936 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2937
2938 * symtab.c (compare_search_syms): New function.
2939 (sort_search_symbols): New function.
2940 (search_symbols): Sort symbols after searching rather than
2941 before.
2942
2943 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2944
2945 * NEWS: Linux -> GNU/Linux.
2946
2947 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2948
2949 * gdbarch.sh: For for level one methods, disallow a definition
2950 when partially multi-arched. Add comments explaining rationale.
2951 * gdbarch.h: Re-generate.
2952
2953 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2954
2955 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
2956 multi-arch partial.
2957
2958 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2959
2960 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
2961 field. Use diff -u.
2962 * gdbarch.c: Re-generate.
2963
2964 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2965
2966 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
2967 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
2968 partial.
2969
2970 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2971
2972 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
2973 multi-arch partial.
2974 (PUSH_ARGUMENTS): Switch to using predefault.
2975 * gdbarch.c: Regenerate.
2976
2977 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2978
2979 * valops.c (PUSH_ARGUMENTS): Delete definition.
2980 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
2981 partial. Default to default_push_arguments.
2982 * gdbarch.h, gdbarch.c: Regenerate.
2983
2984 2002-02-09 Andrew Cagney <ac131313@redhat.com>
2985
2986 * defs.h (throw_exception): Rename return_to_top_level. Update
2987 comments.
2988 * utils.c (error_stream, internal_verror, quit): Ditto.
2989 * top.c (throw_exception, catcher): Ditto.
2990 * sparclet-rom.c (sparclet_load): Ditto.
2991 * remote.c (interrupt_query, minitelnet): Ditto.
2992 * remote-sds.c (interrupt_query): Ditto.
2993 * remote-mips.c (mips_error, mips_kill): Ditto.
2994 * ocd.c (interrupt_query): Ditto.
2995 * monitor.c (monitor_interrupt_query): Ditto.
2996 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
2997 * target.h: Update comment.
2998
2999 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
3000
3001 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3002
3003 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
3004 default_double_format.
3005 * gdbarch.h, gdbarch.c: Re-generate.
3006 * findvar.c (floatformat_unknown): Delete variable definition.
3007 * doublest.h (floatformat_unknown): Delete variable declaration.
3008
3009 2002-02-09 Jim Blandy <jimb@redhat.com>
3010
3011 * stabsread.c (read_type): Add code to parse Sun's syntax for
3012 prototyped function types.
3013
3014 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3015
3016 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
3017 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
3018
3019 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3020
3021 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
3022 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
3023 now _initialize_xcoffsolib gets called again and overrides the
3024 commands from solib.c in a native configuration.
3025
3026 2002-02-09 Mark Kettenis <kettenis@gnu.org>
3027
3028 * doublest.c (store_typed_floating): Don't try to return a value.
3029 Fixes PR gdb/290.
3030
3031 2002-02-08 Jim Blandy <jimb@redhat.com>
3032
3033 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
3034 is prototyped and has no arguments, print its argument list as
3035 `(void)'.
3036
3037 2002-02-08 Chris Demetriou <cgd@broadcom.com>
3038
3039 * MAINTAINERS (write-after-approval): Add myself.
3040 (paper-trail): I've escaped!
3041
3042 2002-02-08 Christopher Faylor <cgf@redhat.com>
3043
3044 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
3045 changes.
3046 (_initialize_check_for_gdb_ini): Ditto.
3047
3048 2002-02-08 Martin M. Hunt <hunt@redhat.com>
3049
3050 * win32-nat.c (cygwin_pid_to_str): Fix typo.
3051 xaprintf -> xasprintf.
3052
3053 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
3054
3055 * win32-nat.c: Remove use of printf and sprintf functions.
3056
3057 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
3058
3059 * arm-tdep.c (arm_frame_chain_valid): Make static.
3060 (arm_push_arguments): Likewise.
3061 (arm_gdbarch_init): New function.
3062 (_initialize_arm_tdep): Call it.
3063 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
3064 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
3065 (FRAME_CHAIN_VALID): Delete.
3066 (arm_frame_chain_valid): Delete declaration.
3067 (PUSH_ARGUMENTS): Delete.
3068 (arm_push_arguments): Delete declaration.
3069 (CALL_DUMMY_P): Delete.
3070
3071 2002-02-08 Andrew Cagney <ac131313@redhat.com>
3072 Corinna Vinschen <vinschen@redhat.com>
3073
3074 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
3075 on builtin float types.
3076
3077 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
3078
3079 * utils.c: Include <curses.h> before "bfd.h".
3080 * tui/tui-hooks.c: Likewise.
3081 * tui/tui.c: Likewise.
3082 * tui/tuiCommand.c: Likewise.
3083 * tui/tuiData.c: Likewise.
3084 * tui/tuiDataWin.c: Likewise.
3085 * tui/tuiDisassem.c: Likewise.
3086 * tui/tuiGeneralWin.c: Likewise.
3087 * tui/tuiIO.c: Likewise.
3088 * tui/tuiLayout.c: Likewise.
3089 * tui/tuiRegs.c: Likewise.
3090 * tui/tuiSource.c: Likewise.
3091 * tui/tuiSourceWin.c: Likewise.
3092 * tui/tuiStack.c: Likewise.
3093 * tui/tuiWin.c: Likewise.
3094
3095 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
3096
3097 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
3098 to include space for pseudoregs as well. Update loops accordingly.
3099 (sh_fp_frame_init_saved_regs): Ditto.
3100 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
3101
3102 2002-02-07 Andrew Cagney <ac131313@redhat.com>
3103
3104 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
3105 Add Richard Earnshaw to Arm maintainers.
3106
3107 2002-02-07 Andrew Cagney <ac131313@redhat.com>
3108
3109 * defs.h (warning_begin): Delete declaration.
3110
3111 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
3112 Delete macro.
3113
3114 2002-02-07 Michael Snyder <msnyder@redhat.com>
3115
3116 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
3117 Logic bug, remove misplaced else.
3118
3119 2002-02-07 Klee Dienes <klee@apple.com>
3120
3121 * fork-inferior.c (fork_inferior): Add '!' to the list of
3122 characters that need to be quoted when building a string for the
3123 shell. Quote '!' specifically with a backslash, since CSH chokes
3124 when trying to evaluate "str!str".
3125
3126 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
3127
3128 * rdi-share/host.h: Only provide a typedef for bool if it is not
3129 defined.
3130
3131 2002-02-04 Michael Snyder <msnyder@redhat.com>
3132
3133 * breakpoint.h (enum bptype): Add new overlay event bp type.
3134 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
3135
3136 * breakpoint.c (create_internal_breakpoint): New function.
3137 (internal_breakpoint_number): Moved into create_internal_breakpoint.
3138 (create_longjmp_breakpoint): Use create_internal_breakpoint.
3139 (create_thread_event_breakpoint): Ditto.
3140 (create_solib_event_breakpoint): Ditto.
3141 (create_overlay_event_breakpoint): New function.
3142 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
3143 (update_breakpoints_after_exec): Delete and re-initialize
3144 overlay event breakpoints after an exec. Add FIXME comment
3145 about longjmp breakpoint.
3146 (print_it_typical): Ignore overlay event breakpoints.
3147 (print_one_breakpoint): Ditto.
3148 (mention): Ditto.
3149 (bpstat_what): Do not stop for overlay event breakpoints.
3150 (delete_breakpoint): Don't delete overlay event breakpoints.
3151 (breakpoint_re_set_one): Delete the overlay event breakpoint.
3152 (breakpoint_re_set): Re-create overlay event breakpoint.
3153
3154 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
3155 (overlay_manual_command): Disable overlay breakpoints.
3156 (overlay_off_command): Disable overlay breakpoints.
3157
3158 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3159
3160 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
3161 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
3162 to here from config/tm-arm.h.
3163 (coff_sym_is_thumb): Make static.
3164 (arm_elf_make_msymbol_special): New function.
3165 (arm_coff_make_msymbol_special): New function.
3166 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
3167 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
3168 (coff_sym_is_thumb): Delete declaration.
3169 (arm_elf_make_msymbol_special): Declare.
3170 (arm_coff_make_msymbol_special): Declare.
3171 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
3172 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
3173
3174 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3175
3176 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
3177
3178 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3179
3180 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
3181 * gdbarch.c gdbarch.h: Regenerate.
3182 * arch-utils.c (default_print_float_info): New function.
3183 * arch-utils.h (default_print_float_info): Prototype it.
3184 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
3185 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
3186 (PRINT_FLOAT_INFO): Document it.
3187
3188 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
3189 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
3190 (PRINT_FLOAT_INFO): Define.
3191
3192 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
3193
3194 * win32-nat.c (_initialize_check_for_gdb_ini):
3195 Add typecast to sprintf argument to suppress a warning.
3196
3197 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
3198
3199 * win32-nat.c (last_sig): Changed type of variable to target_signal,
3200 to allow easier handling of pass state.
3201 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
3202 that gives exception name and address.
3203 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
3204 and set last_sig value to ourstatus->value.sig. Some missing
3205 exceptions added.
3206 (child_continue): Correctly report continue_status.
3207 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
3208 TARGET_SIGNAL_0 (new default value).
3209 (child_resume): consider sig argument passed to decide if
3210 the exception should be passed to debuggee or not.
3211
3212 2002-02-05 Michael Snyder <msnyder@redhat.com>
3213
3214 * regcache.c (fetch_register): Call target_fetch_register
3215 only if we don't call FETCH_PSEUDO_REGISTER.
3216 (store_register): Call target_store_register only if we
3217 don't call STORE_PSEUDO_REGISTER.
3218
3219 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
3220
3221 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
3222 ELF_MAKE_MSYMBOL_SPECIAL.
3223 * gdbarch.c, gdbarch.h: Regenerate.
3224 * arch-utils.c (default_make_msymbol_special): New function.
3225 * arch-utils.h (default_make_msymbol_special): Export.
3226 * elfread.c (elf_symtab_read): Compile use of
3227 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
3228 multiarched.
3229 * coffread.c (coff_symtab_read): Ditto, for
3230 COFF_MAKE_MSYMBOL_SPECIAL.
3231
3232 2002-02-05 Jim Blandy <jimb@redhat.com>
3233
3234 * solib-svr4.c (svr4_truncate_ptr): New function.
3235 (svr4_relocate_section_addresses): Do the address arithmetic with
3236 the appropriate truncation for target addresses, even when
3237 CORE_ADDR is larger than a target address.
3238
3239 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3240
3241 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
3242 to (int *).
3243
3244 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3245
3246 * gdbserver/linux-low.c (kill_inferior): Remove commented out
3247 code.
3248
3249 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3250
3251 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
3252
3253 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3254
3255 * gdbserver/linux-low.c: Remove unused include files.
3256
3257 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3258
3259 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
3260 (read_inferior_memory): Use it.
3261 (write_inferior_memory): Likewise.
3262
3263 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3264
3265 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
3266 grubbing through sys_errlist.
3267
3268 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3269
3270 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
3271
3272 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3273 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
3274
3275 2002-02-04 Andrew Cagney <ac131313@redhat.com>
3276
3277 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
3278 (do_sfunc, set_cmd_sfunc): New functions.
3279
3280 * command.h (struct cmd_list_element): Add field func.
3281 * cli/cli-decode.h (struct cmd_list_element): Ditto.
3282 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
3283 * cli/cli-decode.h: Ditto.
3284
3285 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
3286 (help_all, help_cmd_list): Ditto.
3287 (find_cmd, complete_on_cmdlist): Ditto.
3288 * top.c (execute_command): Ditto.
3289
3290 * cli/cli-setshow.c (do_setshow_command): Call func instead of
3291 function.sfunc.
3292
3293 * infcmd.c (notice_args_read): Fix function signature.
3294
3295 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
3296 * cli/cli-decode.c (add_set_cmd): Ditto.
3297 * utils.c (initialize_utils): Ditto.
3298 * maint.c (_initialize_maint_cmds): Ditto.
3299 * infrun.c (_initialize_infrun): Ditto.
3300 * demangle.c (_initialize_demangler): Ditto.
3301 * remote.c (add_packet_config_cmd): Ditto.
3302 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3303 * cris-tdep.c (_initialize_cris_tdep): Ditto.
3304 * proc-api.c (_initialize_proc_api): Ditto.
3305 * kod.c (_initialize_kod): Ditto.
3306 * valprint.c (_initialize_valprint): Ditto.
3307 * top.c (init_main): Ditto.
3308 * infcmd.c (_initialize_infcmd): Ditto.
3309 * corefile.c (_initialize_core): Ditto.
3310 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3311 * arch-utils.c (initialize_current_architecture): Ditto.
3312 (_initialize_gdbarch_utils): Ditto.
3313 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
3314
3315 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
3316 * wince.c (_initialize_inftarg): Ditto.
3317 * symfile.c (_initialize_symfile): Ditto.
3318 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3319 * language.c (_initialize_language): Ditto.
3320 * arc-tdep.c (_initialize_arc_tdep): Ditto.
3321
3322 2002-02-04 Michael Snyder <msnyder@redhat.com>
3323
3324 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
3325
3326 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3327
3328 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
3329 Add rules for building the register data files.
3330
3331 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3332
3333 * regformats/regdat.sh: Add braces to the definition of
3334 expedite_regs_${arch}.
3335
3336 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3337
3338 * regformats/regdef.h (struct reg): Add comment describing the
3339 requirements for offset and size fields.
3340
3341 2002-02-04 Andreas Schwab <schwab@suse.de>
3342
3343 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
3344 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
3345
3346 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
3347
3348 * gdbarch.sh (copyright): Update years in generated header.
3349 (SMASH_TEXT_ADDRESS): Add rule.
3350 * gdbarch.h, gdbarch.c: Re-generate.
3351 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
3352 * dbxread.c: Likewise.
3353 * dwarfread.c: Likewise.
3354 * elfread.c: Likewise.
3355 * somread.c: Likewise.
3356
3357 * arm-tdep.c (arm_smash_text_address): New function.
3358 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
3359
3360 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3361
3362 Add support for hardware watchpoints on win32 native.
3363 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
3364 CONTEXT_DEBUG_REGISTERS.
3365 (dr variable): New variable. Static array containing a local copy
3366 of debug registers.
3367 (debug_registers_changed): New variable. Reflects when debug registers
3368 are changed and need to be written to inferior.
3369 (debug_registers_used): New variable. Reflects when any debug register
3370 was set, used when new threads are created.
3371 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
3372 i386-nat code.
3373 (thread_rec): Set dr array if id is the thread of current_event .
3374 (child_continue, child_resume): Change the debug registers for all
3375 threads if debug_registers_changed.
3376 (child_add_thread): Change the debug registers if debug_registers_used.
3377 * config/i386/cygwin.mh: Add use of i386-nat.o file.
3378 Link nm.h to new nm-cygwin.h file.
3379 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
3380 of hardware registers.
3381
3382 2002-02-03 Andrew Cagney <ac131313@redhat.com>
3383
3384 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
3385 Restore behavour broken by 2002-01-20 Andrew Cagney
3386 <ac131313@redhat.com> IEEE_FLOAT removal.
3387
3388 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3389
3390 * c-valprint.c (c_val_print): Pass a proper valaddr to
3391 cp_print_class_method.
3392 * valops.c (search_struct_method): If there is only one method
3393 and args is NULL, return that method.
3394
3395 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3396
3397 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
3398 accessing tag_name directly.
3399
3400 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3401
3402 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
3403 of accessing tag_name directly.
3404
3405 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3406
3407 PR gdb/280
3408 * gdbtypes.c (replace_type): New function.
3409 * gdbtypes.h (replace_type): Add prototype.
3410 * stabsread.c (read_type): Use replace_type.
3411
3412 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
3413
3414 * Makefile.in (memattr.o): Add missing dependencies rule.
3415
3416 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3417
3418 * breakpoint.c (break_at_finish_command): Really export.
3419 (break_at_finish_at_depth_command): Ditto.
3420 (tbreak_at_finish_command): Ditto.
3421 * hppa-tdep.c: Include completer.h.
3422 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
3423 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
3424
3425 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3426
3427 * utils.c (do_write): New function.
3428 (error_stream): Rewrite combining the code from error_begin and
3429 verror.
3430 (verror): Rewrite using error_stream.
3431 (error_begin): Delete function.
3432
3433 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3434
3435 * utils.c (error_begin): Make static.
3436 * defs.h (error_begin): Delete declaration.
3437
3438 * linespec.c (cplusplus_error): Replace cplusplus_hint.
3439 (decode_line_1): Use cplusplus_error instead of error_begin,
3440 cplusplus_hint and return_to_top_level.
3441 * coffread.c (coff_symfile_read): Use error instead of error_begin
3442 and return_to_top_level.
3443 * infrun.c (default_skip_permanent_breakpoint): Ditto.
3444
3445 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3446
3447 * language.h (type_error, range_error): Make string parameter
3448 constant.
3449 * language.c (warning_pre_print): Delete extern declaration.
3450 * dwarfread.c (warning_pre_print): Ditto.
3451 * language.c (type_error, range_error): Rewrite to use verror and
3452 vwarning instead of warning_begin.
3453
3454 2002-02-01 Michael Snyder <msnyder@redhat.com>
3455
3456 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
3457 (set_ignore_count): Move misplaced comment back where it belongs.
3458
3459 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3460
3461 * command.h (NO_FUNCTION): Delete macro.
3462 * cli/cli-decode.h (NO_FUNCTION): Ditto.
3463 * top.c (execute_command): Replace NO_FUNCTION with NULL.
3464 * tracepoint.c (_initialize_tracepoint): Ditto.
3465 * cli/cli-decode.c (add_set_cmd): Ditto.
3466 * cli/cli-cmds.c (init_cli_cmds): Ditto.
3467
3468 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
3469
3470 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
3471 Update ``this'' pointer when calling virtual functions.
3472
3473 2002-02-01 Michael Snyder <msnyder@redhat.com>
3474
3475 * breakpoint.c (create_temp_exception_breakpoint): Delete.
3476 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
3477
3478 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
3479
3480 * regformats/reg-arm.dat: New file.
3481 * regformats/reg-i386.dat: New file.
3482 * regformats/reg-ia64.dat: New file.
3483 * regformats/reg-m68k.dat: New file.
3484 * regformats/reg-mips.dat: New file.
3485 * regformats/reg-ppc.dat: New file.
3486 * regformats/reg-sh.dat: New file.
3487 * regformats/regdef.h: New file.
3488 * regformats/regdat.sh: New file.
3489
3490 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
3491
3492 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
3493 (arm_frame_args_address, arm_frame_locals_address): New functions.
3494 (arm_frame_num_args): New function.
3495 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
3496 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
3497 (FRMA_NUM_ARGS): Call arm_frame_num_args.
3498
3499 2002-01-31 Michael Snyder <msnyder@redhat.com>
3500
3501 * breakpoint.c (break_at_finish_command): Export.
3502 (break_at_finish_at_depth_command): Export.
3503 (tbreak_at_finish_command): Export.
3504 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
3505 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
3506 "tbreak" commands, which are HPPA specific.
3507
3508 * printcmd.c (disassemble_command): Remove an ancient
3509 artifact of an old merge.
3510
3511 * symfile.h (enum overlay_debugging_state):
3512 Define enum constant values for overlay mode.
3513 * symfile.c (overlay_debugging): Use enums instead of literals.
3514 (overlay_is_mapped, overlay_auto_command,
3515 overlay_manual_command): Ditto.
3516
3517 * breakpoint.c (insert_breakpoints, remove_breakpoint,
3518 breakpoint_here_p, breakpoint_inserted_here_p,
3519 breakpoint_thread_match, bpstat_stop_status,
3520 describe_other_breakpoints, check_duplicates, clear_command):
3521 Coding standard fixes.
3522
3523 * target.c (target_xfer_memory): Add spaces, coding standard.
3524 (do_xfer_memory): Add missing line to trust-readonly
3525 code: check bfd SEC_READONLY flag for section.
3526
3527 2002-01-31 Andrew Cagney <ac131313@redhat.com>
3528
3529 * PROBLEMS: Fix typo, 5.1->5.1.1.
3530
3531 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
3532
3533 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
3534 data symbols, since we search based on textlow and texthigh.
3535 (find_pc_sect_symtab): Likewise.
3536
3537 2002-01-30 Andrew Cagney <ac131313@redhat.com>
3538
3539 * defs.h (vwarning): Declare.
3540 * utils.c (vwarning): New function.
3541 (warning): Call vwarning.
3542 (warning_begin): Delete function.
3543
3544 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
3545 the warning message.
3546 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
3547 warning_begin.
3548
3549 2002-01-30 Michael Snyder <msnyder@redhat.com>
3550
3551 * NEWS: Mention "set trust-readonly-sections" command.
3552 Mention generate-core-file command.
3553
3554 2002-01-15 Michael Snyder <msnyder@redhat.com>
3555
3556 * target.c: New command, "set trust-readonly-sections on".
3557 (do_xfer_memory): Honor the suggestion to trust readonly sections
3558 by reading them from the object file instead of from the target.
3559 (initialize_targets): Register command "set trust-readonly-sections".
3560
3561 2002-01-29 Andrew Cagney <ac131313@redhat.com>
3562
3563 * parse.c (target_map_name_to_register): Simplify, search regs and
3564 pseudo-regs using a single loop.
3565
3566 2002-01-30 Andrew Cagney <ac131313@redhat.com>
3567
3568 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
3569
3570 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
3571
3572 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
3573 * config/i386/i386v42mp.mh: Add i387-nat.o .
3574 * i386v4-nat.c: Include i387-nat.h.
3575 (supply_fpregset): Use i387_supply_fsave.
3576 (fill_fpregset): Use i387_fill_fsave.
3577
3578 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
3579
3580 * arm-tdep.c (arm_call_dummy_words): Define.
3581 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
3582 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
3583 (CALL_DUMMY_WORDS): Define.
3584 (arm_call_dummy_words): Declare.
3585 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
3586 (arm_linux_call_dummy_words): Declare.
3587
3588 2002-01-30 Andreas Schwab <schwab@suse.de>
3589
3590 * m68klinux-nat.c: Fix last change to use regcache_collect
3591 instead of referencing registers[] directly.
3592
3593 2002-01-29 Andrew Cagney <ac131313@redhat.com>
3594
3595 * parse.c (target_map_name_to_register): Delete code wrapped in
3596 #ifdef REGISTER_NAME_ALIAS_HOOK.
3597
3598 2002-01-28 Michael Snyder <msnyder@redhat.com>
3599
3600 * regcache.c (legacy_read_register_gen): Need to be able to
3601 read pseudo-register as well as real register.
3602 (legacy_write_register_gen): Ditto.
3603
3604 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3605
3606 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3607 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
3608 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
3609 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
3610 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
3611 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
3612 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
3613 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
3614 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
3615 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3616 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
3617 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
3618 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
3619 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
3620 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
3621 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
3622 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
3623 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
3624 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
3625 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
3626
3627 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3628
3629 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
3630 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
3631 (initialize_current_architecture): Update target_byte_order using
3632 information from BFD.
3633 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
3634 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
3635
3636 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3637
3638 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
3639 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
3640
3641 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
3642 #ifdef INVALID_FLOAT.
3643 * infcmd.c (do_registers_info): Ditto.
3644 * values.c (unpack_double): Ditto. Add comment.
3645
3646 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
3647 already commented out.
3648
3649 2002-01-26 Andreas Schwab <schwab@suse.de>
3650
3651 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
3652 * m68klinux-nat.c: Update ptrace interface for fetching/storing
3653 registers and add support for PTRACE_GETREGS.
3654
3655 2002-01-24 Andrew Cagney <ac131313@redhat.com>
3656
3657 GDB 5.1.1 released from 5.1 branch.
3658 * NEWS: Add 5.1.1 news.
3659 * README: Sync with 5.1 branch.
3660
3661 2002-01-23 Fred Fish <fnf@redhat.com>
3662
3663 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
3664 stabstring on initial malloc. Reallocing will copy it for us,
3665 if necessary.
3666
3667 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
3668
3669 * Makefile.in (hpread_h): Delete.
3670 (HFILES_NO_SRCDIR): Remove hpread.h.
3671 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
3672 (hpread.o): Update dependencies.
3673 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
3674
3675 * hp-psymtab-read.c: Remove file.
3676 * hp-symtab-read.c: Remove file.
3677 * hpread.h: Remove file.
3678
3679 * hpread.c: Merge all contents of hp-psymtab-read.c,
3680 hp-symtab-read.c and hpread.h into this file, as it was prior to
3681 January 1999.
3682
3683 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
3684 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
3685 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
3686 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
3687
3688 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
3689
3690 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
3691 fill_gregset): Call gdbarch_tdep() just once, assign result to
3692 variable and use that, instead of calling the function several
3693 times.
3694
3695 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3696
3697 * configure.host: Accept sparcv9 as alias for sparc64.
3698 * configure.tgt: Likewise.
3699
3700 2002-01-22 Kevin Buettner <kevinb@redhat.com>
3701
3702 * solib-aix5.c (build_so_list_from_mapfile)
3703 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
3704 arguments is not reversed.
3705 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
3706 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
3707
3708 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
3709
3710 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
3711 modified version of obsolete sh_fetch_pseudo_register.
3712 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
3713 (sh4_register_read): New function.
3714 (sh_pseudo_register_write): New function. Renamed and modified
3715 version of obsolete sh_store_pseudo_register.
3716 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
3717 (sh4_register_write): New function.
3718 (sh_gdbarch_init): Remove setting of gdbarch function
3719 fetch_pseudo_register and store_pseudo_register. Remove setting of
3720 register_convert_to_raw, register_convert_to_virtual,
3721 register_convertible.
3722 (sh_sh4_register_convertible): Delete. No longer needed. All is
3723 taken care by architecture specific functions
3724 register_read/register_write.
3725 (sh_sh4_register_convert_to_virtual): Make static.
3726 (sh_sh4_register_convert_to_raw): Ditto.
3727
3728 2002-01-22 Andrew Cagney <ac131313@redhat.com>
3729
3730 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
3731 (floatformat_is_nan, floatformat_mantissa): Ditto.
3732
3733 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
3734 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
3735 builtin_type_ieee_double_little,
3736 builtin_type_ieee_double_littlebyte_bigword,
3737 builtin_type_m68881_ext, builtin_type_i960_ext,
3738 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
3739 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
3740 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
3741 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
3742
3743 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
3744
3745 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
3746 parameter. Set frameless flag if it exists and depended of
3747 whether the scanned function is frameless or not.
3748 (xstormy16_skip_prologue): If function is frameless, return
3749 result of xstormy16_scan_prologue().
3750 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
3751 call.
3752
3753 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
3754
3755 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
3756 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
3757 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
3758 sh_sh4_register_byte, sh_sh4_register_raw_size,
3759 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
3760 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
3761 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
3762 sh_store_pseudo_register, sh_do_pseudo_register): Call
3763 gdbarch_tdep() just once, assign result to variable and use that,
3764 instead of calling the function several times.
3765
3766 2002-01-20 Mark Kettenis <kettenis@gnu.org>
3767
3768 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
3769 macros instead of LAST_FPU_CTRL_REGNUM.
3770 (store_register): Likewise.
3771
3772 2002-01-21 Jim Blandy <jimb@redhat.com>
3773
3774 * infcmd.c (run_command): Check that the `exec' target layer's BFD
3775 is up-to-date before running the program, not just when a program
3776 exits.
3777
3778 2002-01-21 Fred Fish <fnf@redhat.com>
3779
3780 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
3781 when we have found all instructions we are looking for.
3782
3783 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
3784
3785 * arm-tdep.c (arm_register_name): New function.
3786 (arm_registers_names): Make static.
3787 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
3788 (arm_register_name): Declare.
3789 (REGISTER_NAME): Use it.
3790
3791 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
3792 Kevin Buettner <kevinb@redhat.com>
3793
3794 Convert arm targets to new FRAME interface.
3795 * arm-tdep.c (struct frame_extra_info): Remove fsr.
3796 (arm_frame_find_save_regs): Delete.
3797 (arm_frame_init_saved_regs): New.
3798 (arm_init_extra_frame_info): Alloacte saved_regs as required.
3799 Allocate extra_info as required. Convert all uses of fsr.regs
3800 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
3801 to use extra_info.
3802 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
3803 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
3804 (check_prologue_cache, save_prologue_cache): Likewise.
3805 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
3806 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
3807 (FRAME_FIND_SAVED_REGS): Delete.
3808 (arm_frame_find_saved_regs): Delete prototype.
3809 (arm_frame_init_saved_regs): New prototype.
3810 (FRAME_INIT_SAVED_REGS): Define.
3811
3812 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3813
3814 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
3815
3816 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3817
3818 From Jeff Law <law@redhat.com>:
3819 * infttrace.c: Include <sys/pstat.h>.
3820 (child_pid_to_exec_file): Revamp. Use pstat call to get the
3821 exec file if the ttrace equivalent fails.
3822
3823 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3824
3825 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
3826 (closeLogFile): Ditto.
3827
3828 2002-01-20 Michael Chastain <mec@shout.net>
3829
3830 * top.c (print_gdb_version): Bump copyright year to 2002.
3831
3832 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3833
3834 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
3835 Zannoni and Eli Zaretskii.
3836
3837 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3838
3839 * buildsym.c: Update copyright years.
3840 * c-typeprint.c: Likewise.
3841 * dwarf2read.c: Likewise.
3842 * f-typeprint.c: Likewise.
3843 * gdbtypes.c: Likewise.
3844 * gdbtypes.h: Likewise.
3845 * hp-symtab-read.c: Likewise.
3846 * hpread.c: Likewise.
3847 * mdebugread.c: Likewise.
3848 * p-typeprint.c: Likewise.
3849
3850 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3851
3852 * remote-sim.c (gdbsim_open): Simplify code testing the macro
3853 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
3854 byte-order selectable.
3855 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
3856 * arch-utils.c: Ditto.
3857 (set_endian): Ditto.
3858 (set_endian_from_file): Ditto.
3859 * gdbserver/low-sim.c (create_inferior): Ditto.
3860 * gdbarch.sh: Ditto.
3861 * gdbarch.h: Re-generate.
3862 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3863 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
3864 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
3865 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3866 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3867 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3868 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3869 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
3870 macro definition.
3871 * config/mips/tm-wince.h: Remove #undef of macro
3872 TARGET_BYTE_ORDER_SELECTABLE.
3873 * config/sh/tm-wince.h: Ditto.
3874
3875 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3876
3877 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
3878 member function fields. Add accessor macro
3879 TYPE_FN_FIELD_ARTIFICIAL.
3880 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
3881 * c-typeprint.c (c_type_print_base): Skip artificial member
3882 functions.
3883
3884 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3885
3886 * f-typeprint.c: Delete unused function f_type_print_args.
3887 * p-typeprint.c: Delete unused function pascal_type_print_args.
3888
3889 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3890
3891 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
3892 comment. Add ``artificial'' to ``union field_location''.
3893
3894 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
3895
3896 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
3897 * mdebugread.c (parse_symbol): Likewise.
3898 * stabsread.c (define_symbol): Likewise.
3899 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
3900 initializing TYPE_FIELD_BITPOS to n (obsolete).
3901 (hpread_doc_function_type): Likewise.
3902 * hpread.c (hpread_function_type): Likewise.
3903
3904 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3905
3906 * configure.in (host_makefile_frag): Only require a host makefile
3907 fragment when a native build.
3908 * configure: Re-generate.
3909
3910 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3911
3912 * doublest.h (floatformat_from_type): Declare.
3913 * doublest.c (floatformat_from_type): New function.
3914 (convert_typed_floating): Use.
3915
3916 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
3917 call to function floatformat_from_type.
3918
3919 * gdbarch.sh (IEEE_FLOAT): Delete.
3920 * gdbarch.h, gdbarch.c: Re-generate.
3921 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
3922 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
3923 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
3924 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
3925 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
3926 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
3927 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
3928 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
3929 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
3930 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
3931 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
3932 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
3933
3934 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
3935 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
3936 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3937 * sh-tdep.c (sh_gdbarch_init): Ditto.
3938 * mips-tdep.c (mips_gdbarch_init): Ditto.
3939 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3940 * cris-tdep.c (cris_gdbarch_init): Ditto.
3941
3942 2002-01-20 Jiri Smid <smid@suse.cz>
3943
3944 * configure.host, configure.tgt: Support x86-64.
3945 * NEWS: Note new target x86-64.
3946
3947 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
3948 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
3949 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
3950 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
3951 x86-64-linux-nat.o): Fix dependencies.
3952
3953 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3954
3955 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
3956 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
3957 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
3958 * config/sparc/xm-sun4os4.h: Delete file.
3959 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
3960
3961 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3962
3963 * config/sparc/sparclynx.mh (XM_FILE): Delete.
3964 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
3965 * config/m68k/m68klynx.mh (XM_FILE): Delete.
3966 * config/i386/i386lynx.mh (XM_FILE): Delete.
3967 * config/rs6000/xm-rs6000ly.h: Delete file.
3968 * config/sparc/xm-sparclynx.h: Delete file.
3969 * config/m68k/xm-m68klynx.h: Delete file.
3970 * config/i386/xm-i386lynx.h: Delete file.
3971 * config/xm-lynx.h: Delete file.
3972 * config/djgpp/fnchange.lst: Update.
3973
3974 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3975
3976 * alpha-tdep.c (alpha_register_byte): New function.
3977 (alpha_register_raw_size): Ditto.
3978 (alpha_register_virtual_size): Ditto.
3979 (alpha_skip_prologue_internal): Renamed from
3980 alpha_skip_prologue.
3981 (alpha_skip_prologue): New version that calls
3982 alpha_skip_prologue_internal.
3983 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
3984 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
3985 second argument from alpha_skip_prologue.
3986 (REGISTER_BYTE): Use alpha_register_byte.
3987 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
3988 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
3989 (FRAMELESS_FUNCTION_INVOCATION): Use
3990 generic_frameless_function_invocation_not.
3991 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
3992 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
3993
3994 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3995
3996 * config/mips/xm-news-mips.h: Delete file.
3997 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
3998
3999 * config/m88k/xm-m88k.h: Delete file.
4000 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
4001 * config/m88k/xm-delta88v4.h: Ditto.
4002 * config/m88k/xm-delta88.h: Ditto.
4003
4004 * config/alpha/xm-fbsd.h: Delete file.
4005 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
4006
4007 * config/sparc/xm-sparc.h: Delete file.
4008 * Makefile.in (xm-sun4os4.h): Delete dependency.
4009 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
4010 * config/sparc/xm-sun4os4.h: Ditto.
4011 * config/sparc/xm-linux.h: Ditto.
4012
4013 * config/i386/xm-windows.h: Delete file.
4014
4015 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4016
4017 * utils.c: Include <sys/param.h> for MAXPATHLEN.
4018 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
4019
4020 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4021
4022 * alpha-tdep.c (alpha_call_dummy_words): New.
4023 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
4024 (CALL_DUMMY_P): Define.
4025 (CALL_DUMMY_WORDS): Define.
4026 (SIZEOF_CALL_DUMMY_WORDS): Define.
4027
4028 2002-01-19 Per Bothner <per@bothner.com>
4029
4030 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
4031 isn't NULL, which can happen with some gcj-3.x-produced code.
4032
4033 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4034
4035 * alpha-tdep.c (alpha_register_virtual_type): New function.
4036 (alpha_init_frame_pc_first): Ditto.
4037 (alpha_fix_call_dummy): Ditto.
4038 (alpha_store_struct_return): Ditto.
4039 (alpha_extract_struct_value_address): Ditto.
4040 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
4041 alpha_register_virtual_type.
4042 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
4043 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
4044 alpha_extract_struct_value_address.
4045 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
4046 (INIT_FRAME_PC): Use init_frame_pc_noop.
4047 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
4048
4049 2002-01-19 Mark Kettenis <kettenis@gnu.org>
4050
4051 * i386gnu-nat.c: Include "i386-tdep.h".
4052 (fetch_fpregs): Simplify code dealing with uninitialized floating
4053 point states such that it doesn't require FP7_REGNUM.
4054
4055 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4056
4057 * alpha-tdep.c (frame_extra_info): New.
4058 (alpha_find_saved_regs): Make static. Use
4059 frame->extra_info.
4060 (alpha_frame_init_saved_regs): New function.
4061 (alpha_frame_saved_pc): Use frame->extra_info.
4062 (temp_saved_regs): Don't declare as struct frame_saved_regs.
4063 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
4064 (init_extra_frame_info): Rename to...
4065 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
4066 (alpha_print_extra_frame_info): New function.
4067 (alpha_frame_locals_address): Ditto.
4068 (alpha_frame_args_address): Ditto.
4069 (alpha_pop_frame): Use frame->extra_info.
4070 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
4071 alpha_frame_args_address.
4072 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
4073 (alpha_find_saved_regs): Remove prototype.
4074 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
4075 (EXTRA_FRAME_INFO): Remove.
4076 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
4077 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
4078
4079 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4080
4081 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
4082 (alpha_cannot_fetch_register): Ditto.
4083 (alpha_cannot_store_register): Ditto.
4084 (alpha_register_convertible): Ditto.
4085 (alpha_use_struct_convention): Ditto.
4086 * config/alpha/tm-alpha.h: Update copyright years.
4087 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
4088 (INNER_THAN): Use core_addr_lessthan.
4089 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
4090 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
4091 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
4092 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
4093 (FRAME_CHAIN): Remove unnecessary cast.
4094
4095 2002-01-18 Andrew Cagney <ac131313@redhat.com>
4096
4097 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
4098 obsolete.
4099
4100 2002-01-18 Andrew Cagney <ac131313@redhat.com>
4101
4102 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
4103 * monitor.c, remote-array.c, remote-bug.c: Ditto.
4104 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
4105 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
4106 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
4107 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
4108 * x86-64-linux-nat.c: Ditto.
4109
4110 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4111
4112 * alpha-tdep.c (alpha_register_name): New function.
4113 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
4114 (REGISTER_NAME): Define.
4115
4116 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4117
4118 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
4119
4120 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4121
4122 * alpha-tdep.c: Update copyright years.
4123 (alpha_next_pc): New function.
4124 (alpha_software_single_step): Ditto.
4125 * config/alpha/tm-alpha.h: Add prototype for
4126 alpha_software_single_step.
4127
4128 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4129
4130 * alphabsd-nat.c: Update copyright years.
4131 (fill_gregset): Use regcache_collect.
4132 (fill_fpregset): Likewise.
4133 (fetch_inferior_registers): Only fetch integer registers
4134 if requested to do so.
4135 (store_inferior_registers): Only store integer registers
4136 if requested to do so.
4137
4138 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4139
4140 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
4141 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
4142 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
4143 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
4144 * config/alpha/fbsd.mh (XDEPFILES): Delete.
4145 * config/arm/linux.mh (XDEPFILES): Delete.
4146 * config/arm/nbsd.mh (XDEPFILES): Delete.
4147 * config/i386/i386dgux.mh (XDEPFILES): Delete.
4148 * config/i386/i386sol2.mh (XDEPFILES): Delete.
4149 * config/i386/i386m3.mh (XDEPFILES): Delete.
4150 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
4151 * config/i386/i386gnu.mh (XDEPFILES): Delete.
4152 * config/i386/fbsd.mh (XDEPFILES): Delete.
4153 * config/i386/i386bsd.mh (XDEPFILES): Delete.
4154 * config/i386/i386sco5.mh (XDEPFILES): Delete.
4155 * config/i386/i386v4.mh (XDEPFILES): Delete.
4156 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
4157 * config/i386/i386sco4.mh (XDEPFILES): Delete.
4158 * config/i386/i386aix.mh (XDEPFILES): Delete.
4159 * config/i386/go32.mh (XDEPFILES): Delete.
4160 * config/i386/cygwin.mh (XDEPFILES): Delete.
4161 * config/i386/i386lynx.mh (XDEPFILES): Delete.
4162 * config/i386/i386mach.mh (XDEPFILES): Delete.
4163 * config/i386/i386v32.mh (XDEPFILES): Delete.
4164 * config/i386/linux.mh (XDEPFILES): Delete.
4165 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
4166 * config/i386/ncr3000.mh (XDEPFILES): Delete.
4167 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
4168 * config/i386/i386sco.mh (XDEPFILES): Delete.
4169 * config/i386/i386v.mh (XDEPFILES): Delete.
4170 * config/i386/nbsd.mh (XDEPFILES): Delete.
4171 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
4172 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
4173 * config/i386/symmetry.mh (XDEPFILES): Delete.
4174 * config/i386/obsd.mh (XDEPFILES): Delete.
4175 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
4176 * config/ia64/linux.mh (XDEPFILES): Delete.
4177 * config/ia64/aix.mh (XDEPFILES): Delete.
4178 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
4179 * config/m68k/dpx2.mh (XDEPFILES): Delete.
4180 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
4181 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
4182 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
4183 * config/m68k/linux.mh (XDEPFILES): Delete.
4184 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
4185 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
4186 * config/m68k/nbsd.mh (XDEPFILES): Delete.
4187 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
4188 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
4189 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
4190 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
4191 * config/m88k/delta88.mh (XDEPFILES): Delete.
4192 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
4193 * config/m88k/m88k.mh (XDEPFILES): Delete.
4194 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
4195 * config/mips/linux.mh (XDEPFILES): Delete.
4196 * config/mips/irix6.mh (XDEPFILES): Delete.
4197 * config/mips/irix5.mh (XDEPFILES): Delete.
4198 * config/mips/irix4.mh (XDEPFILES): Delete.
4199 * config/mips/irix3.mh (XDEPFILES): Delete.
4200 * config/mips/decstation.mh (XDEPFILES): Delete.
4201 * config/mips/mipsm3.mh (XDEPFILES): Delete.
4202 (NATDEPFILES): Move core-aout.o to here.
4203 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
4204 * config/pa/hpux1020.mh (XDEPFILES): Delete.
4205 * config/pa/hppabsd.mh (XDEPFILES): Delete.
4206 * config/pa/hppahpux.mh (XDEPFILES): Delete.
4207 * config/pa/hpux11w.mh (XDEPFILES): Delete.
4208 * config/pa/hppaosf.mh (XDEPFILES): Delete.
4209 * config/pa/hpux11.mh (XDEPFILES): Delete.
4210 * config/powerpc/aix.mh (XDEPFILES): Delete.
4211 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
4212 * config/powerpc/linux.mh (XDEPFILES): Delete.
4213 * config/romp/rtbsd.mh: Rename XDEPFILES.
4214 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
4215 * config/rs6000/aix4.mh (XDEPFILES): Delete.
4216 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
4217 * config/s390/s390.mh (XDEPFILES): Delete.
4218 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
4219 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
4220 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
4221 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
4222 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
4223 * config/sparc/nbsd.mh (XDEPFILES): Delete.
4224 * config/sparc/linux.mh (XDEPFILES): Delete.
4225 * config/vax/vaxult.mh (XDEPFILES): Delete.
4226 * config/vax/vaxult2.mh (XDEPFILES): Delete.
4227 * Makefile.in (DEPFILES): Remove XDEPFILES.
4228
4229 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4230
4231 * utils.c (internal_verror): Fix comments, default is yes not no.
4232 Update queries to match. Default to quit and dump core.
4233
4234 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4235
4236 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
4237 copyright.
4238 * defs.h, event-top.c, gdbcmd.h: Ditto.
4239 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
4240 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
4241 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
4242 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
4243 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
4244 * mi/mi-main.c:Ditto.
4245
4246 * stack.c, symfile.c: Update copyright.
4247
4248 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
4249
4250 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
4251 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
4252 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
4253 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
4254
4255 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
4256
4257 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
4258 * gdbserver/low-lynx.c (myattach): Likewise.
4259 * gdbserver/low-nbsd.c (myattach): Likewise.
4260 * gdbserver/low-sim.c (myattach): Likewise.
4261 * gdbserver/low-sparc.c (myattach): Likewise.
4262 * gdbserver/low-sun3.c (myattach): Likewise.
4263
4264 * gdbserver/low-linux.c (myattach): New function.
4265
4266 * gdbserver/server.c (attach_inferior): New function.
4267 (main): Handle "--attach".
4268
4269 2002-01-16 Andrew Cagney <ac131313@redhat.com>
4270
4271 * MAINTAINERS (language support): Daniel Jacobwitz is C++
4272 maintainer.
4273
4274 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
4275
4276 * c-typeprint.c (is_type_conversion_operator): Add additional
4277 check for non-conversion operators.
4278
4279 2002-01-15 Michael Snyder <msnyder@redhat.com>
4280
4281 * linux-proc.c: Add "info proc" command, a la procfs.c.
4282 (read_mapping): New function, abstract and re-use code.
4283 (linux_find_memory_regions): Use new func read_mapping.
4284 (linux_info_proc_cmd): New function, implement "info proc".
4285 (_initialize_linux_proc): Add new command "info proc".
4286
4287 2002-01-15 Michael Snyder <msnyder@redhat.com>
4288
4289 * symfile.c (generic_load): Use bfd_map_over_sections method
4290 instead of manipulating bfd structure members directly.
4291 (add_section_size_callback): New function, bfd sections callback
4292 used by generic_load.
4293 (load_sections_callback): New function, bfd sections callback
4294 used by generic_load.
4295
4296 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
4297
4298 [Based on work by Jim Blandy]
4299 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
4300 (builtin_type_vec128): Export.
4301 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
4302 types.
4303 (builtin_type_vec128): New builtin type for 128 bit vector
4304 registers.
4305 (build_gdbtypes): Initialize builtin_type_v16qi and
4306 builtin_type_v8hi. Create the vec128 register builtin type
4307 structure.
4308 (build_builtin_type_vec128): New function.
4309 (_initialize_gdbtypes): Register builtin_type_v16qi and
4310 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
4311 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
4312 AltiVec register to new builtin type.
4313
4314 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
4315
4316 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
4317 to make_cv_type.
4318
4319 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4320
4321 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
4322 CLEAN_UP_REGISTER_VALUE.
4323 * regcache.c (supply_register): Update only call.
4324
4325 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4326
4327 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4328 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4329 a29k-*-vxworks* targets as obsolete.
4330
4331 2002-01-14 Michael Snyder <msnyder@redhat.com>
4332
4333 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
4334 until we can resolve portability issues.
4335 * gregset.h: Remove references to fpxregs.
4336 * gcore.c (gcore_command): Initialize note_sec to NULL.
4337
4338 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4339
4340 * signals.c (target_signal_to_name): Rewrite. Only use
4341 signals[].name when in bounds and non-NULL.
4342
4343 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4344
4345 From Petr Ledvina <ledvinap@kae.zcu.cz>:
4346 * signals.c (target_signal_to_name): Verify that SIG is within the
4347 bounds of the signals array.
4348
4349 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4350
4351 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
4352
4353 2002-01-13 Keith Seitz <keiths@redhat.com>
4354
4355 * stack.c (print_frame_info_base): Print the frame's pc
4356 only if when print_frame_info_listing_hook is not defined.
4357
4358 2002-01-13 Keith Seitz <keiths@redhat.com>
4359
4360 * varobj.c (varobj_set_value): Make sure that there were no
4361 errors evaluating the object before attempting to set its
4362 value.
4363 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
4364 so this offset adjustment is no longer necessary.
4365 (create_child): Don't set the error flag if the child is
4366 a CPLUS_FAKE_CHILD.
4367 (value_of_child): If value_fetch_lazy fails, return NULL
4368 so that callers will be notified that an error occurred.
4369 (c_value_of_variable): Delay check of variable's validity
4370 until later. We actually want all structs and unions to have
4371 the value "{...}".
4372 Do not return "???" for variables which could not be evaluated.
4373 This error condition must be returned to the caller so that it
4374 can get the error condition from gdb.
4375 (cplus_name_of_child): Adjust index for vptr before figuring
4376 out the name of the child.
4377 (cplus_value_of_child): If a child's (real) parent is not valid,
4378 don't even bother trying to give a value for it. Just return
4379 an error. Change all instances in this function.
4380 (cplus_type_of_child): If our parent is one of the "fake"
4381 parents, we need to get at the type of the real parent, and
4382 derive the child's true type using this information.
4383
4384 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4385
4386 From 2002-01-09 John Marshall <johnm@falch.net>:
4387 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
4388 sources.redhat.com, and tweak some related URLs which had
4389 suffered from linkrot.
4390
4391 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4392
4393 From Jeff law:
4394 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
4395 structures passed in registers.
4396
4397 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
4398
4399 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
4400 white space which prevented compilation. Reported by DSK
4401 <dsk@student.unsw.edu.au>.
4402
4403 2002-01-11 Michael Snyder <msnyder@redhat.com>
4404
4405 * symfile.c (build_section_addr_info_from_section_tab):
4406 Use bfd access method instead of manipulating bfd directly.
4407 (syms_from_objfile): Ditto.
4408 (simple_overlay_update_1): Ditto.
4409 (simple_overlay_update): Ditto.
4410 (generic_load): Ditto.
4411 (overlay_unmapped_address): FIXME comment, bfd access methods.
4412 (sections_overlap): FIXME comment, bfd access methods.
4413 (pc_in_mapped_range): FIXME comment, bfd access methods.
4414 (pc_in_unmapped_range): FIXME comment, bfd access methods.
4415 (section_is_mapped): FIXME comment, bfd access methods.
4416 (section_is_overlay): FIXME comment, bfd access methods.
4417
4418 * symfile.c (generic_load): Whitespace and long line cleanups.
4419 Remove duplicate variable, change several local variables to
4420 more appropriate data types.
4421 (print_transfer_performance): Use %lu instead of %ld for ulongs.
4422
4423 2002-01-12 Andrew Cagney <ac131313@redhat.com>
4424
4425 From Peter Schauer:
4426 * language.c (longest_local_hex_string_custom): Use phex_nz to
4427 convert NUM to a hex string.
4428
4429 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
4430
4431 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
4432 the function.
4433 Update Copyright year.
4434
4435 2002-01-12 Andrew Cagney <ac131313@redhat.com>
4436
4437 * language.c (longest_raw_hex_string): Delete unused function.
4438
4439 2002-01-11 Petr Sorfa <petrs@caldera.com>
4440
4441 * MAINTAINERS (write-after-approval): Add myself.
4442 * dwarf2read.c (read_tag_string_type): Handling of
4443 DW_AT_byte_size.
4444 (read_tag_string_type): FORTRAN fix to prevent propagation of
4445 first string size.
4446 (set_cu_language): Handling of DW_LANG_Fortran95
4447
4448 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
4449
4450 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
4451 GETPID(inferior_ptid).
4452 (store_inferior_registers): Likewise.
4453
4454 2002-01-10 Jason Merrill <jason@redhat.com>
4455
4456 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
4457 Fix DW_OP_minus.
4458
4459 2002-01-10 Andrew Cagney <ac131313@redhat.com>
4460
4461 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
4462 and bfd/elf32-sh-nbsd.c.
4463
4464 2002-01-10 Michael Snyder <msnyder@redhat.com>
4465
4466 * NEWS: Mention --pid and corefile/proc-id behavior change.
4467
4468 * Makefile.in: Add rules for gcore.o and linux-proc.o.
4469 * gcore.c: Include cli/cli-decode.h instead of command.h.
4470
4471 * main.c (captured_main): Add new command line option "--pid".
4472 If the second command line argument (following the symbol-file)
4473 begins with a digit, try to attach to it before trying to open
4474 it as a corefile.
4475 (print_gdb_help): Document the "--pid" argument.
4476
4477 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
4478
4479 * completer.c (command_completer): New function.
4480
4481 * completer.h <command_completer>: Add prototype.
4482
4483 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
4484 completer for the "help" command.
4485
4486 2002-01-09 Jason Merrill <jason@redhat.com>
4487
4488 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
4489
4490 2002-01-09 Michael Snyder <msnyder@redhat.com>
4491
4492 * i386-linux-nat.c (fill_fpxregset): Make global.
4493 (store_fpxregset): Ditto.
4494
4495 * gregset.h (gdb_fpxregset_t): Define.
4496 (supply_fpxregset): Prototype.
4497 (fill_fpxregset): Prototype.
4498
4499 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
4500
4501 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
4502
4503 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
4504 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
4505 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
4506
4507 2002-01-09 Andrew Cagney <ac131313@redhat.com>
4508
4509 * MAINTAINERS: Update target maintainer rules so that any
4510 Maintainer can approve a tested patch for a maintenance-only
4511 target.
4512
4513 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
4514
4515 * MAINTAINERS (write-after-approval): Add myself.
4516
4517 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
4518 IN_SIGTRAMP.
4519
4520 2002-01-08 Michael Snyder <msnyder@redhat.com>
4521
4522 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
4523 real name of the executable, rather than the /proc name.
4524
4525 2002-01-03 Michael Snyder <msnyder@redhat.com>
4526
4527 Implement a "generate-core-file" command in gdb, save target state.
4528 * gcore.c: New file. Implement new command 'generate-core-file'.
4529 Save a corefile image of the current state of the inferior.
4530 * linux-proc.c: Add linux-specific code for saving corefiles.
4531 * target.h (struct target_ops): Add new target vectors for saving
4532 corefiles; to_find_memory_regions and to_make_corefile_notes.
4533 (target_find_memory_regions): New macro.
4534 (target_make_corefile_notes): New macro.
4535 * target.c (update_current_target): Inherit new target methods.
4536 (dummy_find_memory_regions): New place-holder method.
4537 (dummy_make_corefile_notes): New place-holder method.
4538 (init_dummy_target): Initialize new dummy target vectors.
4539 * exec.c (exec_set_find_memory_regions): New function.
4540 Allow the exec_ops vector for memory regions to be taken over.
4541 (exec_make_note_section): New function, target vector method.
4542 * defs.h (exec_set_find_memory_regions): Export prototype.
4543 * procfs.c (proc_find_memory_regions): New function, corefile method.
4544 (procfs_make_note_section): New function, corefile method.
4545 (init_procfs_ops): Set new target vector pointers.
4546 (find_memory_regions_callback): New function.
4547 (procfs_do_thread_registers): New function.
4548 (procfs_corefile_thread_callback): New function.
4549 * sol-thread.c (sol_find_memory_regions): New function.
4550 (sol_make_note_section): New function.
4551 (init_sol_thread_ops): Initialize new target vectors.
4552 * inftarg.c (inftarg_set_find_memory_regions): New function.
4553 Allow to_find_memory_regions vector to be taken over.
4554 (inftarg_set_make_corefile_notes): New function.
4555 Allow to_make_corefile_notes vector to be taken over.
4556 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
4557 interface layer if not target_has_execution (may be a corefile).
4558 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
4559 * config/sparc/sun4sol2.mh: Ditto.
4560 * config/alpha/alpha-linux.mh: Ditto.
4561 * config/arm/linux.mh: Ditto.
4562 * config/i386/x86-64linux.mh: Ditto.
4563 * config/ia64/linux.mh: Ditto.
4564 * config/m68k/linux.mh: Ditto.
4565 * config/mips/linux.mh: Ditto.
4566 * config/powerpc/linux.mh: Ditto.
4567 * config/sparc/linux.mh: Ditto.
4568
4569 2002-01-07 Michael Snyder <msnyder@redhat.com>
4570
4571 * arm-linux-nat.c: Remove references to regcache.c internal data
4572 (registers[] and register_valid[]).
4573
4574 2002-01-07 Michael Snyder <msnyder@redhat.com>
4575
4576 * linux-proc.c: New file. Implement child_pid_to_exec_file,
4577 so that attaching to a pid will automatically read the process's
4578 symbol file and shlibs.
4579 * Makefile.in: Add rule for linux-proc.o.
4580 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
4581 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
4582 * config/arm/linux.mh: Ditto.
4583 * config/i386/linux.mh: Ditto.
4584 * config/i386/x86-64linux.mh: Ditto.
4585 * config/ia64/linux.mh: Ditto.
4586 * config/m68k/linux.mh: Ditto.
4587 * config/mips/linux.mh: Ditto.
4588 * config/powerpc/linux.mh: Ditto.
4589 * config/sparc/linux.mh: Ditto.
4590
4591 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
4592
4593 * win32-nat.c: Add i386-tdep.h dependency.
4594
4595 2002-01-07 Michael Snyder <msnyder@redhat.com>
4596
4597 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
4598 instead of bfd_get_arch_size. Don't bail out just because
4599 there's no exec_bfd.
4600
4601 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
4602 * p-valprint.c (pascal_object_print_value): Ditto.
4603 * somread.c (som_symtab_read): Ditto.
4604 * symfile.c (simple_free_overlay_region_table): Ditto.
4605 * valops.c (value_assign): Ditto.
4606
4607 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
4608 use tilde_expand and strerror for opening save-tracepoints file.
4609
4610 * thread-db.c (thread_db_new_objfile): Indendation fix.
4611
4612 * infptrace.c (GDB_MAX_ALLOCA): New define.
4613 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
4614 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
4615 can be overridden with whatever value is appropriate to the host).
4616 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
4617 alloca to allocate potentially large buffer.
4618 * rs6000-nat.c (child_xfer_memory): Ditto.
4619 * symm-nat.c (child_xfer_memory): Ditto.
4620 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
4621
4622 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
4623
4624 From Nick Clifton <nickc@redhat.com>
4625 * d10v-tdep.c: Set STACK_START to 0x200bffe.
4626
4627 2002-01-07 Michael Snyder <msnyder@redhat.com>
4628
4629 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
4630 Don't use exec_bfd if it's NULL.
4631
4632 2002-01-06 Mark Kettenis <kettenis@gnu.org>
4633
4634 * valops.c (value_arg_coerce): Fix formatting.
4635
4636 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4637
4638 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
4639 * gnu-nat.c: Ditto.
4640
4641 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4642
4643 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
4644 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
4645 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
4646 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
4647 z8k-coff have not been multi-arched. Update z8k-coff build
4648 status.
4649
4650 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4651
4652 * MAINTAINERS: Mark a29k target as obsolete.
4653 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
4654 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
4655 comments.
4656 * NEWS: Note that a29k targets are obsolete.
4657 * a29k-tdep.c: Mark as obsolete.
4658 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4659 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4660 a29k-*-vxworks* targets as obsolete.
4661 * remote-adapt.c: Obsolete.
4662 * remote-eb.c: Obsolete.
4663 * remote-mm.c: Obsolete.
4664 * remote-udi.c: Obsolete.
4665 * config/a29k/a29k-udi.mt: Obsolete.
4666 * config/a29k/a29k.mt: Obsolete.
4667 * config/a29k/tm-a29k.h: Obsolete.
4668 * config/a29k/tm-vx29k.h: Obsolete.
4669 * config/a29k/vx29k.mt: Obsolete.
4670
4671 2002-01-05 Andrew Cagney <ac131313@redhat.com>
4672
4673 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
4674 with BFD_ENDIAN_BIG.
4675
4676 2002-01-05 Andrew Cagney <ac131313@redhat.com>
4677
4678 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
4679 * configure, config.in: Re-generate.
4680 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
4681 * defs.h: Do not include <endian.h>.
4682
4683 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
4684
4685 * acconfig.h (HAVE_PT_GETXMMREGS): New.
4686 * config.in: Regenerate.
4687 * configure.in: Update copyright years.
4688 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
4689 * configure: Regenerate.
4690 * i386bsd-nat.c: Update copyright years.
4691 (fill_gregset): Use regcache_collect.
4692 (fetch_inferior_registers): Only fetch integer registers
4693 if requested to do so. Add support for XMM registers
4694 using PT_GETXMMREGS.
4695 (store_inferior_registers): Only store integer registers
4696 if requested to do so. Add support for XMM registers
4697 using PT_SETXMMREGS.
4698 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
4699 (store_inferior_registers): Remove.
4700 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
4701 (fetch_elfcore_registers): New function.
4702 (i386nbsd_elfcore_fns): New.
4703 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
4704 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
4705 i386bsd-nat.o.
4706 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4707 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
4708 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4709 * config/i386/tm-nbsd.h: Update copyright years.
4710 (HAVE_SSE_REGS): Define.
4711 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
4712 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
4713 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
4714 (SIGCONTEXT_PC_OFFSET): Remove.
4715 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
4716
4717 2002-01-05 Andrew Cagney <ac131313@redhat.com>
4718
4719 * configure.tgt: Remove powerpc-*-macos* target.
4720 * config/m68k/xm-mpw.h: Delete file.
4721 * config/xm-mpw.h: Delete file.
4722 * ser-mac.c: Delete file.
4723 * mpw-make.sed: Delete file.
4724 * mpw-config.in: Delete file.
4725 * mac-xdep.c: Delete file.
4726 * mac-gdb.r: Delete file.
4727 * mac-defs.h: Delete file.
4728 * mac-nat.c: Delete file.
4729 * config/powerpc/macos.mh: Delete file.
4730 * config/powerpc/macos.mt: Delete file.
4731 * config/powerpc/nm-macos.h: Delete file.
4732 * config/powerpc/tm-macos.h: Delete file.
4733 * source.c (openp, open_source_file): Remove obsolete code.
4734 * top.c (gdb_readline): Ditto.
4735 * utils.c (query): Ditto.
4736 * event-top.c (display_gdb_prompt): Ditto.
4737 * Makefile.in (ser-mac.o): Delete obsolete target.
4738 * NEWS: Update.
4739
4740 2002-01-04 Andrew Cagney <ac131313@redhat.com>
4741
4742 * defs.h (BIG_ENDIAN): Delete macro definition.
4743 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
4744 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
4745 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
4746 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
4747 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
4748 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
4749 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
4750 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
4751 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
4752 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
4753 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
4754 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
4755 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4756 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4757 * gdbarch.c: Re-generate.
4758
4759 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4760
4761 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
4762 for core files.
4763
4764 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4765
4766 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
4767
4768 2002-01-04 Andrew Cagney <ac131313@redhat.com>
4769
4770 * value.h (value_ptr): Delete typedef.
4771
4772 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4773
4774 * i386nbsd-nat.c: Update copyright years.
4775 Include i386-tdep.h.
4776
4777 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
4778
4779 * stabsread.c: Update copyright years.
4780
4781 From Debashis Mahata <debashis.mahata@wipro.com>:
4782 (read_struct_fields): Deal with Sun C compiler erroneous stab
4783 output for structs and unions.
4784 Fix PR gdb/269.
4785
4786 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4787
4788 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
4789 prototype.
4790
4791 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4792
4793 * cp-abi.c: Fix whitespace.
4794 (baseclass_offset): New wrapper function.
4795 * cp-abi.h (baseclass_offset): Add prototype.
4796 (struct cp_abi_ops): Add baseclass_offset pointer.
4797
4798 * valops.c (vb_match): Move to...
4799 * gnu-v2-abi.c (vb_match): here.
4800 * valops.c (baseclass_offset): Move to...
4801 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
4802
4803 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
4804
4805 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
4806 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
4807 * hpacc-abi.c (init_hpacc_ops): Likewise.
4808
4809 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4810
4811 * valops.c (find_overload_match): Accept obj as a
4812 reference parameter. Update it before returning.
4813 * value.h (find_overload_match): Update prototype.
4814 * eval.c (evaluate_subexp_standard): Pass object to
4815 find_overload_match by reference.
4816
4817 2002-01-03 Andrew Cagney <ac131313@redhat.com>
4818
4819 * valarith.c: Replace value_ptr with struct value pointer. Remove
4820 register attribute from value declarations.
4821 * valops.c: Ditto.
4822 * value.h: Ditto.
4823 * scm-lang.c (scm_lookup_name): Ditto.
4824
4825 2002-01-03 Michael Snyder <msnyder@redhat.com>
4826
4827 Abstract the functionality of iterating over mapped memory
4828 regions into a general purpose iterator function.
4829 * procfs.c (iterate_over_mappings): New function, general purpose
4830 iterator for memory sections.
4831 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
4832 (solib_mappings_callback): New function, callback for above.
4833 (info_proc_mappings): Reimpliment using iterate_over_mappings.
4834 (info_mappings_callback): New function, callback for above.
4835
4836 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
4837
4838 2002-01-01 Mark Kettenis <kettenis@gnu.org>
4839
4840 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
4841 * i386-tdep.c: Include "elf-bfd.h".
4842 (process_note_abi_tag_sections): New function.
4843 (i386_gdbarch_init): Add code to recognize various OS/ABI
4844 combinations.
4845
4846 * maint.c (_initialize_maint_cmds): Add missing \ in
4847 string-literal.
4848
4849 For older changes see ChangeLog-2001
4850 \f
4851 Local Variables:
4852 mode: change-log
4853 left-margin: 8
4854 fill-column: 74
4855 version-control: never
4856 End: