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