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