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