2002-08-20 Elena Zannoni <ezannoni@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2
3 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4 (build_builtin_type_vec64i): Ditto.
5 (build_builtin_type_vec128): Ditto.
6 (build_builtin_type_vec128i): Ditto.
7
8 2002-08-19 Michael Snyder <msnyder@redhat.com>
9
10 * mips-tdep.c (mips_frame_num_args): New function.
11 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
12 frame_saved_pc, frame_args_address, frame_locals_address,
13 frame_num_args, and frame_args_skip.
14 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
15 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
16 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
17 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
18
19 2002-08-20 Michael Snyder <msnyder@redhat.com>
20
21 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
22 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
23 * mips-tdep.c (mips_store_struct_return): New function.
24 (mips_extract_struct_value_address): New function.
25 (mips_gdbarch_init): Set store_struct_return and
26 extract_struct_value_address.
27
28 2002-08-20 David Carlton <carlton@math.stanford.edu>
29
30 * dwarf2read.c (dwarf2_build_psymtabs): Check that
31 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
32 (read_file_scope): Check that line_header is nonzero before
33 decoding macro information.
34
35 2002-08-20 Mark Kettenis <kettenis@gnu.org>
36
37 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
38 flag the general-purpose registers as floating-point on targets
39 that don't support the floating-point registers.
40
41 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
42
43 * rs6000-tdep.c (altivec_register_p): Delete.
44 (rs6000_do_altivec_registers): Delete.
45 (rs6000_altivec_registers_info): Delete.
46 (rs6000_do_registers_info): Delete.
47 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
48 (rs6000_gdbarch_init): Remove setting of do_registers_info.
49
50 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
51
52 * infcmd.c (do_registers_info): Print vector registers in hex
53 format only.
54 (print_vector_info): Check that printing registers
55 makes sense.
56 (print_float_info): Ditto.
57
58 2002-08-20 Andrew Cagney <ac131313@redhat.com>
59
60 * mips-tdep.c (mips_gdbarch_init): Update.
61 (mips_o32_extract_return_value): Rewrite.
62 (mips_o32_store_return_value): Rewrite.
63 (mips_o32_xfer_return_value): New function.
64 (mips_xfer_register): Tweak debug print message. Allow for
65 buf_offset when dumping the value transfered.
66
67 2002-08-20 Andrew Cagney <ac131313@redhat.com>
68
69 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
70 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
71 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
72 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
73 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
74
75 2002-08-14 Michael Snyder <msnyder@redhat.com>
76
77 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
78
79 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
80
81 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
82 register.
83 (P): New macro to define a register as a pseudo register.
84 (R, R4, R8, R16, FR32, R64, R0): Updated.
85 (struct variant): Add new fields for number of pseudo registers
86 and number of total registers.
87 (tot_num_registers): New macro replacing....
88 (num_registers): ...deleted macro.
89 (num_registers): New function.
90 (num_pseudo_registers): New function.
91 (variants): Update all variants to intialize new fields correctly.
92 Postpone initialization of number of pseudo regs and real regs.
93 (init_variants): New function.
94 (rs6000_gdbarch_init): Initialize variants. Update calculation of
95 registers offsets.
96
97 2002-08-19 David Carlton <carlton@math.stanford.edu>
98
99 * valops.c (search_struct_field): Change error message to treat
100 return value of 0 from value_static_field as meaning that field is
101 optimized out.
102 (value_struct_elt_for_reference): Ditto.
103 * values.c (value_static_field): Treat an unresolved location the
104 same as a nonexistent symbol. Fix PR gdb/635.
105 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
106 enclosed. Fix PR gdb/574.
107 * MAINTAINERS: Add self to Write After Approval list.
108
109 2002-08-19 Andrew Cagney <ac131313@redhat.com>
110
111 * mips-tdep.c (mips_xfer_register): New function.
112 (mips_n32n64_extract_return_value): Rewrite.
113 (mips_gdbarch_init): For N32 and N64, set extract_return_value
114 instead of deprecated_extract_return_value.
115
116 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
117
118 * rs6000-tdep.c (TDEP): Delete macro.
119 (branch_dest): Replace use of TDEP macro with its body.
120 (rs6000_pop_frame): Ditto.
121 (rs6000_push_arguments): Ditto.
122 (rs6000_skip_trampoline_code): Ditto.
123 (rs6000_frame_saved_pc): Ditto.
124 (rs6000_frame_chain): Ditto.
125 (rs6000_register_name): Ditto.
126 (rs6000_register_byte): Ditto.
127 (rs6000_register_raw_size): Ditto.
128 (rs6000_register_virtual_type): Ditto.
129 (rs6000_register_convertible): Ditto.
130 (rs6000_convert_from_func_ptr_addr): Ditto.
131
132 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
133
134 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
135 conditionally.
136 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
137 MIPS_LINUX_JB_ELEMENT_SIZE.
138 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
139 for MAX_REGISTER_RAW_SIZE arrays.
140 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
141 MIPS_LINUX_JB_ELEMENT_SIZE.
142
143 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
144
145 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
146
147 2002-08-19 Aidan Skinner <aidan@velvet.net>
148
149 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
150 ada-valprint.c ada-tasks.c.
151 (YYFILES): Add ada-exp.y.
152 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
153 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
154 (ada-exp.tab.o): New target.
155
156 2002-08-18 Andrew Cagney <ac131313@redhat.com>
157
158 * regcache.c (regcache_xfer_part): New function.
159 (regcache_raw_read_part): New function.
160 (regcache_raw_write_part): New function.
161 (regcache_cooked_read_part): New function.
162 (regcache_cooked_write_part): New function.
163 * regcache.h (regcache_raw_read_part): Declare.
164 (regcache_raw_write_part): Declare.
165 (regcache_cooked_read_part): Declare.
166 (regcache_cooked_write_part): Declare.
167
168 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
169
170 * remote.c (remote_open_1): Add async_p.
171 (remote_async_open_1): Delete.
172 (open_remote_target): Delete.
173 (remote_open, extended_remote_open): Update calls to remote_open_1.
174 (remote_async_open, extended_remote_async_open): Call
175 remote_open_1 instead of remote_async_open_1.
176
177 2002-08-19 Mark Kettenis <kettenis@gnu.org>
178
179 * blockframe.c: Fix a few coding standard violations.
180
181 2002-08-19 Mark Kettenis <kettenis@gnu.org>
182
183 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
184 here from ...
185 * config/i386/tm-i386sco5.h: ... here. File removed.
186 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
187
188 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
189 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
190 (TM_FILE): Set to tm-i386.h.
191 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
192 * config/i386/tm-i386v.h: Remove file.
193 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
194 instead of "i386/tm-i386v.h".
195 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
196 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
197 "i386/tm-i386v.h".
198 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
199 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
200 "i386/tm-i386.h".
201
202 2002-08-18 Mark Kettenis <kettenis@gnu.org>
203
204 * config/i386/nm-i386v.h: Add protection against
205 multiple-inclusion.
206 (i386_register_u_addr): Remove prototype.
207 (register_u_addr): New prototype.
208 (REGISTER_U_ADDR): Redefine accordingly.
209 * i386v-nat.c: Improve several comments.
210 (i386_register_u_addr): Change signature and rename to
211 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
212 ubase variable.
213
214 2002-08-18 Andrew Cagney <ac131313@redhat.com>
215
216 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
217 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
218 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
219 deprecated_extract_return_value.
220 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
221 rename mips_o32o64_push_arguments.
222 (mips_gdbarch_init): Update.
223 (mips_extract_return_value): Delete.
224 (mips_o32_extract_return_value): Clone mips_extract_return_value.
225 (mips_o64_extract_return_value): Clone mips_extract_return_value.
226 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
227 (mips_n32n64_extract_return_value): Clone
228 mips_extract_return_value.
229 (mips_store_return_value): Delete.
230 (mips_o32_store_return_value): Clone mips_store_return_value.
231 (mips_o64_store_return_value): Clone mips_store_return_value.
232 (mips_eabi_store_return_value): Clone mips_store_return_value.
233 (mips_n32n64_store_return_value): Clone mips_store_return_value.
234
235 2002-08-18 Aidan Skinner <aidan@velvet.net>
236
237 * ada-lang.c: Use gdb_string.h instead of <string.h>.
238 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
239
240 2002-08-18 Aidan Skinner <aidan@velvet.net>
241
242 * ada-lang.c: Run through gdb_indent.sh.
243 * ada-lang.h: Run through gdb_indent.sh.
244 * ada-tasks.c: Run through gdb_indent.sh.
245 * ada-typeprint.c: Run through gdb_indent.sh.
246 * ada-valprint.c: Run through gdb_indent.sh.
247
248 2002-08-18 Andrew Cagney <ac131313@redhat.com>
249
250 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
251 ABI.
252
253 2002-08-18 Mark Kettenis <kettenis@gnu.org>
254
255 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
256
257 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
258 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
259
260 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
261 write_register_gen instead of write_register_bytes.
262
263 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
264 i[3456]-*-osf1mk* configurations have been made obsolete.
265 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
266 i[3456]86-*-osf1mk* hosts obsolete.
267 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
268 targets obsolete.
269 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
270 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
271 config/i386/i386m3.mt, config/i386/nm-m3.h,
272 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
273 config/i386/i386mk.mh, config/i386/i386mk.mt,
274 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
275 obsolete.
276 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
277 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
278 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
279
280 2002-08-18 Andrew Cagney <ac131313@redhat.com>
281
282 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
283 (hppa_value_returned_from_stack): Declare.
284 (hppa_extract_return_value): Declare.
285 * config/pa/hppa.mt: New file.
286 * configure.tgt: Recognize hppa*-*-*.
287 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
288
289 2002-08-18 Mark Kettenis <kettenis@gnu.org>
290
291 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
292 comment.
293
294 2002-08-17 Mark Kettenis <kettenis@gnu.org>
295
296 * top.c (gdb_rl_operate_and_get_next): Make sure
297 operate-and-get-next functions correctly even when the history
298 list is completely filled.
299
300 2002-08-18 Andrew Cagney <ac131313@redhat.com>
301
302 * MAINTAINERS (Target Instruction Set Architectures): Rename
303 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
304 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
305 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
306 already listed under Host/Native.
307
308 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
309 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
310 mips*-*-*.
311
312 2002-08-17 Andrew Cagney <ac131313@redhat.com>
313
314 * config/ia64/ia64.mt: New file.
315 * config/alpha/alpha.mt: New file.
316 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
317 ia64-linux-gnu. Mention that ia64-elf is broken.
318 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
319
320 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
321
322 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
323 generic_func_frame_valid instead of func_frame_valid.
324
325 2002-08-16 Joel Brobecker <brobecker@gnat.com>
326
327 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
328 procfs appears to be broken when debugging on multi-processor
329 machines. So enable software single stepping in order to avoid
330 using the procfs interface to do next/step operations, using
331 internal breakpoints instead.
332
333 * infrun.c (handle_inferior_event): Readjust the stop_pc by
334 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
335 make this pc address equal to the value it would have if the
336 system stepping capability was used. Also set a new flag used
337 to ensure that we don't readjust the PC one more time later.
338
339 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
340 address by DECR_PC_AFTER_BREAK when software single step is
341 in use for this architecture, as this has already been taken
342 care of in handle_inferior_event().
343
344 2002-08-16 Joel Brobecker <brobecker@gnat.com>
345
346 * infrun.c (handle_inferior_event): Minor reformatting, to make
347 a rather long condition expression easier to read.
348
349 2002-08-16 Andrew Cagney <ac131313@redhat.com>
350
351 * Makefile.in (gdbtk.o): Move to end of file.
352 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
353 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
354 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
355 (gdbtk-wrapper.o, gdbres.o): Ditto.
356
357 2002-08-16 Andrew Cagney <ac131313@redhat.com>
358
359 * Makefile.in (copying.o): Separate out compile rule.
360 (hpux-thread.o, procfs.o, signals.o): Ditto.
361 (v850ice.o, z8k-tdep.o): Ditto.
362 (tui-file.o): Move to TUI section.
363 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
364 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
365
366 2002-08-16 Joel Brobecker <brobecker@gnat.com>
367
368 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
369 skip_trampoline_code, for better namespace-proofing.
370
371 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
372
373 2002-08-16 Joel Brobecker <brobecker@gnat.com>
374
375 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
376
377 2002-08-16 Joel Brobecker <brobecker@gnat.com>
378
379 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
380 signal, check whether we hit a breakpoint before checking for a
381 single step breakpoint. Otherwise, GDB fails to notice that a
382 breakpoint has been hit when stepping onto a breakpoint.
383
384 2002-08-16 Keith Seitz <keiths@redhat.com>
385
386 * gdb-events.sh (clear_gdb_event_hooks): New function.
387 * gdb-events.c: Regenerate.
388 * gdb-events.h: Regenerate.
389
390 2002-08-16 Andrew Cagney <ac131313@redhat.com>
391
392 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
393 not_a_sw_breakpoint.
394 * breakpoint.h (bpstat_stop_status): Add parameter names.
395
396 2002-08-16 Grace Sainsbury <graces@redhat.com>
397
398 * remote.c (remote_insert_hw_breakpoint)
399 (remote_remove_hw_breakpoint): Fix calculation of length field
400 for Z-packet.
401
402 2002-08-15 Michael Snyder <msnyder@redhat.com>
403
404 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
405 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
406 (supply_fpregset): Ditto.
407
408 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
409 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
410 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
411 (TARGET_READ_SP): Delete.
412 (DO_REGISTERS_INFO): Delete.
413 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
414 Delete.
415 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
416 from macros to functions.
417
418 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
419 (mips_register_convertible, mips_register_convert_to_virtual,
420 mips_register_convert_to_raw): Make static.
421 (mips_read_sp): New function.
422 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
423 (mips_do_registers_info): Make static.
424 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
425 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
426 (mips_register_convert_from_type, mips_register_convert_to_type):
427 New functions.
428 (mips_gdbarch_init): Set up function_start_offset,
429 register_virtual_size, pc_in_sigtramp.
430
431 2002-08-15 Andrew Cagney <ac131313@redhat.com>
432
433 * infcmd.c (vector_info): New function.
434 (_initialize_infcmd): Add command "info vector".
435 (print_vector_info): New function.
436
437 * gdbarch.sh (PRINT_VECTOR_INFO): New method
438 * gdbarch.h, gdbarch.c: Regenerate.
439
440 2002-08-15 Andrew Cagney <ac131313@redhat.com>
441
442 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
443 ``print_all''. Only print vector registers when ``print_all''.
444
445 2002-08-15 Andrew Cagney <ac131313@redhat.com>
446
447 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
448 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
449
450 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
451 Add `args' parameter.
452 * gdbarch.h, gdbarch.c: Regenerate.
453
454 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
455
456 * infcmd.c (float_info): Call print_float_info.
457 (print_float_info): New function. By default, print the
458 floating-point registers.
459
460 * arch-utils.h (default_print_float_info): Delete declaration.
461 * arch-utils.c (default_print_float_info): Delete function.
462
463 2002-08-16 Mark Kettenis <kettenis@gnu.org>
464
465 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
466 out define.
467
468 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
469 FRAME.
470
471 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
472 * configure.host: Make i[3456]86-*-aix host obsolete.
473 * configure.tgt: Make i[3456]86-*-aix target obsolete.
474 * config/i386/i386aix.mh, config/i386/i386aix.mt,
475 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
476 config/i386/xm-i386aix.h: Make files obsolete.
477 * i386aix-nat.c: Make file obsolete.
478 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
479 (i386aix-nat.o): Make target obsolete.
480
481 * config/i386/nm-gnu.h: Removed.
482 * config/i386/nm-i386gnu.h: New file.
483 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
484 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
485 Moved here from ...
486 * config/i386/tm-i386gnu.h: ... here. Removed.
487 * config/i386/xm-i386gnu.h: Removed.
488 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
489 (NAT_FILE): Set to nm-i386gnu.h.
490 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
491 * i386-tdep.c: New file.
492 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
493 (i386gnu-tdep.o): Specify dependencies.
494
495 2002-08-15 Mark Kettenis <kettenis@gnu.org>
496
497 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
498 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
499 Adjust a few comments to reflect reality a bit closer.
500 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
501 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
502 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
503 target_insert_watchpoint, target_remove_watchpoint):
504 Move defines to ...
505 * config/i386/nm-i386sco5.h: ... here.
506 (kernel_u_size): Add prototype. Improve a few comments and add
507 protection against multiple inclusion.
508
509 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
510 out define.
511
512 * uw-thread.c (SP_ARG0): Define if not already defined.
513 * config/i386/tm-i386.h (SO_ARG0): Remove define.
514
515 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
516
517 * config/i386/tm-i386.h: Don't include "regcache.h".
518
519 * i387-tdep.h (i387_print_float_info): New prototype.
520 * i387-tdep.c (print_i387_value, print_i387_ext,
521 print_i387_status_word, print_i387_control_word): Add `struct
522 ui_file *' argument and use it for output.
523 (i387_print_float_info): Renamed from i387_float_info. Add
524 `struct gdbarch *' and `struct ui_file *' arguments and use the
525 latter for output.
526 * i386-tdep.c: Include "i387-tdep.h".
527 (i386_gdbarch_init): Set print_float_info.
528 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
529 (FLOAT_INFO): Remove define.
530
531 2002-08-13 Michael Snyder <msnyder@redhat.com>
532
533 * mips-tdep.c (mips_push_arguments): Rename to
534 mips_eabi_push_arguments, and tune for EABI.
535 (MIPS_REGS_HAVE_HOME_P): Delete.
536 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
537 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
538 Delete references to mips_regs_have_home_p.
539
540 2002-08-14 Keith Seitz <keiths@redhat.com>
541
542 * Makefile.in (install-gdbtk): Create insight plugin directory.
543 Install plugins.tcl file.
544
545 2002-08-14 Keith Seitz <keiths@redhat.com>
546
547 * configure.in: Move SUBDIRS to near top of the file so that
548 --enable options may add things to it.
549 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
550 * configure: Regenerate.
551
552 2002-08-13 Michael Snyder <msnyder@redhat.com>
553
554 * mips-tdep.c (mips_o32o64_push_arguments): New function,
555 cloned from mips_push_arguments, tuned for o32/o64 ABI.
556 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
557
558 2002-08-13 Andrew Cagney <ac131313@redhat.com>
559
560 * vax-tdep.c (vax_get_saved_register): Delete function.
561 (vax_gdbarch_init): Update.
562 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
563 (ns32k_gdbarch_init): Update.
564 * alpha-tdep.c (alpha_get_saved_register): Delete function.
565 (alpha_gdbarch_init): Update.
566
567 2002-08-13 Andrew Cagney <cagney@redhat.com>
568
569 * regcache.c (init_regcache_descr): Overallocate the
570 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
571 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
572 nr_raw_registers.
573 (set_register_cached): Add range checking assertions. Use
574 current_regcache.
575
576 2002-08-13 Mark Kettenis <kettenis@gnu.org>
577
578 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
579 numbers for MMX registers.
580
581 2002-08-13 Andrew Cagney <cagney@redhat.com>
582
583 * i386-tdep.c (i386_gdbarch_init): Use
584 generic_unwind_get_saved_register.
585
586 2002-08-13 Kevin Buettner <kevinb@redhat.com>
587
588 * procfs.c (procfs_can_use_hw_breakpoint): New function.
589 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
590 target vector.
591 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
592 Delete. Add comment regarding this now-deleted target method.
593
594 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
595
596 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
597 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
598 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
599 real PC and the page number (if it's within the memory bank window).
600 (m68hc11_pseudo_register_write): Likewise when saving.
601 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
602 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
603 (m68hc11_register_raw_size): And use 32-bit for it.
604 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
605 16K memory bank is used by the prog; also use the virtual pc.
606
607 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
608
609 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
610 (m68hc11_gdbarch_init): Install it in gdbarch.
611 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
612 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
613 (MSYMBOL_SIZE): New for documentation.
614 (insn_return_kind): Enum to specify how a function returns.
615 (frame_extra_info): Cleanup and record the return mode.
616 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
617 register in address computation.
618 (m68hc11_get_return_insn): New to obtain the return instruction used
619 by the function.
620 (m68hc11_frame_init_saved_regs): Take into account the return
621 instruction used by the function for far and interrupt functions.
622 (m68hc11_init_extra_frame_info): Take into account page register.
623 (m68hc11_frame_args_address): Adjust according to the return mode.
624 (show_regs): Print page register only when it's used.
625
626 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
627
628 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
629 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
630 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
631 registers.
632 (m68hc11_register_raw_size): Likewise.
633
634 2002-08-13 Andrew Cagney <cagney@redhat.com>
635
636 * i386-tdep.c (i386_register_name): Handle mmx registers.
637 (mmx_regnum_p): New function.
638 (i386_mmx_names): New array.
639 (mmx_num_regs): New variable.
640 (i386_pseudo_register_read): New function.
641 (i386_pseudo_register_write): New function.
642 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
643
644 * regcache.c (regcache_raw_read_unsigned): New function.
645 (regcache_raw_read_signed): New function.
646 * regcache.h (regcache_raw_read_unsigned): Declare.
647 (regcache_raw_read_signed): Declare.
648
649 2002-08-13 Andrew Cagney <cagney@redhat.com>
650
651 * regcache.c (regcache_raw_read_as_address): Delete function.
652 (regcache_cooked_read_signed): New function.
653 (regcache_cooked_read_unsigned): New function.
654 * regcache.h (regcache_cooked_read_signed): Declare.
655 (regcache_cooked_read_unsigned): Declare.
656 (regcache_raw_read_as_address): Delete declaration.
657
658 * blockframe.c (generic_read_register_dummy): Use
659 regcache_cooked_read_unsigned.
660 * i386-tdep.c (i386_extract_struct_value_address): Use
661 regcache_cooked_read_unsigned.
662
663 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
664
665 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
666 double sizes according to ELF ABI flags.
667 (gdbarch_tdep): Record elf_flags.
668
669 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
670
671 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
672 (m6812_prolog): They can appear in 68HC12 function prologue.
673 (m68hc11_frame_chain): Cleanup.
674
675 2002-08-12 Andrew Cagney <cagney@redhat.com>
676
677 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
678 declarations.
679 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
680 (i386_linux_register_raw_size): Delete function.
681 (i386_linux_init_abi): Update.
682 * i386-tdep.c (i386_register_raw_size): Delete function.
683 (i386_register_byte): Delete function.
684 (i386_gdbarch_init): Update.
685 (i386_register_size): Delete array.
686 (i386_register_offset): Delete array.
687
688 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
689 (REGISTER_RAW_SIZE): Delete macro.
690 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
691 (REGISTER_BYTE): Delete macro.
692
693 2002-08-11 Aidan Skinner <aidan@velvet.net>
694
695 * ada-lang.c (ada_lookup_partial_symbol)
696 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
697 prototype names so that grep ^func works properly.
698
699 * ada-lang.c (ada_array_element_type)
700 (ada_lookup_partial_symbol): Fix typos in parameter list.
701
702 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
703 Fix prototype names so that grep ^func works properly.
704
705 2002-08-10 Andrew Cagney <cagney@redhat.com>
706 Elena Zannoni <ezannoni@redhat.com>
707 Martin M. Hunt <hunt@redhat.com>
708
709 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
710 (build_builtin_type_vec128i): Set the vector bit.
711 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
712 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
713 (build_builtin_type_vec64): New function.
714 (build_builtin_type_vec64i): New function.
715 (build_gdbtypes): Initialize builtin_type_vec64 and
716 builtin_type_vec64i.
717
718 2002-08-09 Andrew Cagney <cagney@redhat.com>
719
720 * regcache.c (regcache_dump): Compare the register offset
721 with REGISTER_BYTE.
722 * arch-utils.c (generic_register_byte): New function.
723 * arch-utils.h (generic_register_byte): Declare.
724 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
725 * gdbarch.h, gdbarch.c: Regenerate.
726
727 2002-08-09 Andrew Cagney <cagney@redhat.com>
728
729 * regcache.c: Include "gdbcmd.h"
730 (_initialize_regcache): Add commands "maintenance print
731 registers", "maintenance print raw-registers" and "maintenance
732 print cooked-registers".
733 (enum regcache_dump_what): Define.
734 (dump_endian_bytes): New function.
735 (regcache_dump): New function.
736 (regcache_print): New function.
737 (maintenance_print_registers): New function.
738 (maintenance_print_raw_registers): New function.
739 (maintenance_print_cooked_registers): New function.
740 * Makefile.in (regcache.o): Update dependencies.
741
742 2002-08-09 Michael Snyder <msnyder@redhat.com>
743
744 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
745 (mips_push_arguments): Correct some comments. Use paddr_nz
746 for printing addresses in debug output. Replace static
747 allocation using MAX_REGISTER_RAW_SIZE with alloca.
748 (mips_n32n64_push_arguments): New function, cloned from
749 mips_push_arguments and tuned for the n32/n64 ABI.
750 (mips_push_register): Buffer needs dynamic allocation.
751 (mips_print_register): Ditto.
752 (do_gp_register_row): Ditto.
753 (mips_store_return_value): Ditto.
754 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
755
756 2002-08-09 Don Howard <dhoward@redhat.com>
757
758 * memattr.c (mem_info_command): Print special case of upper bound
759 as max CORE_ADDR + 1.
760
761 2002-08-08 Michael Snyder <msnyder@redhat.com>
762
763 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
764 returns structs by ref if they're too big to fit in two registers.
765
766 2002-08-09 Kevin Buettner <kevinb@redhat.com>
767
768 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
769 saved regs value.
770 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
771 mips_find_saved_regs().
772 (mips_pop_frame): Likewise.
773
774 2002-08-09 Kevin Buettner <kevinb@redhat.com>
775
776 * blockframe.c (frame_saved_regs_register_unwind): Revise
777 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
778 frames are in use.
779
780 2002-08-09 Grace Sainsbury <graces@redhat.com>
781
782 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
783 T-packets; the 'a' is not taken as a register number.
784 (remote_check_watch_resources, remote_stopped_by_watchpoint)
785 (remote_stopped_data_address): New functions; add to target
786 vector.
787 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
788 prototypes to match other implementations of this
789 function. replace integer argument with pointer -- the length
790 field in the Z-packet is the length of what is pointed to or 1 if
791 pointer is null. Add to target vector.
792 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
793 target vector.
794
795 From Mark Salter:
796 * remote.c (remote_wait): Add support to extract optional
797 watchpoint information from T-packet. Ignore unrecognized
798 optional info in T-packet.
799 (remote_async_wait): Ditto.
800
801 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
802
803 * cli/cli-dump.c: Change fopen modes to use binary open modes
804 as defined in include/fopen-bin.h throughout.
805
806 2002-08-08 Michael Snyder <msnyder@redhat.com>
807
808 * mips-tdep.c: Minor whitespace and indentation clean-ups.
809
810 2002-08-08 Kevin Buettner <kevinb@redhat.com>
811
812 * doublest.c (store_floating): Avoid floatformat_from_doublest()
813 assertion failure by returning early after a warning.
814
815 2002-08-08 Kevin Buettner <kevinb@redhat.com>
816
817 * mips-tdep.c (mips_find_saved_regs): Make static.
818 (mips_frame_init_saved_regs): New function.
819 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
820 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
821 (mips_find_saved_regs): Delete declaration.
822
823 2002-08-08 Grace Sainsbury <graces@redhat.com>
824
825 * remote.c (remote_wait, remote_async_wait): Change
826 thread_num from int to ULONGEST.
827 (unpack_varlen_hex): Change result parameter from
828 int * to ULONGEST *.
829
830 2002-08-08 Andrew Cagney <ac131313@redhat.com>
831
832 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
833 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
834 powerpc*-*-*.
835 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
836
837 2002-08-08 Andrew Cagney <cagney@redhat.com>
838
839 * gcore.c (override_derive_stack_segment): Delete variable.
840 (preempt_derive_stack_segment): Delete function.
841 (derive_stack_segment): Delete function.
842 (default_derive_stack_segment): Renamed to derive_stack_segment.
843 (override_derive_heap_segment): Delete variable.
844 (preempt_derive_heap_segment): Delete function.
845 (derive_heap_segment): Delete function.
846 (default_derive_heap_segment): Rename to derive_heap_segment.
847
848 2002-08-06 Michael Snyder <msnyder@redhat.com>
849
850 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
851 * mips-tdep.c (mips_EABI_use_struct_convention,
852 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
853 New functions. (mips_use_struct_convention): Delete.
854 (mips_gdbarch_init): set use_gdbarch_convention.
855
856 2002-08-06 Michael Snyder <msnyder@redhat.com>
857
858 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
859 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
860 mips_o32_reg_struct_has_addr): New functions.
861 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
862
863 2002-08-07 Andrew Cagney <ac131313@redhat.com>
864
865 * regcache.c (pseudo_register): Delete function.
866 (fetch_register): Delete function.
867 (store_register): Delete function.
868 (regcache_raw_read, legacy_read_register_gen): Use
869 target_fetch_registers instead of fetch_register.
870 (legacy_write_register_gen, regcache_raw_write): Use
871 target_store_register instead of store_register.
872 (write_register_bytes): Ditto.
873
874 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
875 (STORE_PSEUDO_REGISTER): Delete.
876 * gdbarch.h, gdbarch.c: Regenerate.
877
878 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
879
880 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
881 write dump file binary.
882
883 2002-08-05 Michael Snyder <msnyder@redhat.com>
884
885 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
886 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
887 (mips_gdbarch_init): Set N32 target to be mips64.
888
889 2002-08-06 Kevin Buettner <kevinb@redhat.com>
890
891 * frame.c (find_saved_register): Break out of loop once saved
892 register address is found. Don't mention sparc in loop comment
893 anymore.
894
895 2002-08-06 Kevin Buettner <kevinb@redhat.com>
896
897 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
898 mips_default_saved_regsize to 8.
899
900 2002-08-06 Andrew Cagney <ac131313@redhat.com>
901
902 * gcore.c: Do not include <sys/procfs.h>.
903 * Makefile.in (gcore.o): Update dependencies.
904
905 2002-08-06 Andrew Cagney <cagney@redhat.com>
906
907 * configure.tgt: Make arc-*-* obsolete.
908 * NEWS: Mention that arc-*-* has been identifed as obsolete.
909 * MAINTAINERS: Make arc-elf obsolete.
910 * arc-tdep.c: Make file obsolete.
911 * config/arc/arc.mt: Ditto.
912 * config/arc/tm-arc.h: Ditto.
913
914 2002-08-05 Theodore A. Roth <troth@verinet.com>
915
916 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
917
918 2002-08-05 Andrew Cagney <ac131313@redhat.com>
919
920 * mcore-tdep.c (mcore_gdbarch_init): Use
921 generic_unwind_get_saved_register instead of
922 generic_get_saved_register.
923 * v850-tdep.c (v850_gdbarch_init): Ditto.
924 * frv-tdep.c (frv_gdbarch_init): Ditto.
925 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
926 * s390-tdep.c (s390_gdbarch_init): Ditto.
927 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
928 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
929 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
930
931 2002-08-05 Joel Brobecker <brobecker@gnat.com>
932
933 * objfiles.h: Add missing #include "symfile.h"
934
935 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
936
937 2002-08-04 Andrew Cagney <ac131313@redhat.com>
938
939 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
940 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
941 of FIELD_BITSIZE.
942
943 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
944
945 * NEWS: Cleanup and nitpick.
946
947 2002-08-03 Andrew Cagney <ac131313@redhat.com>
948
949 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
950
951 2002-08-03 Andrew Cagney <ac131313@redhat.com>
952
953 * Makefile.in (gdbtk-bp.o): Update dependencies.
954 (gdbtk-register.o): Ditto.
955 (gdbtk-varobj.o): Ditto.
956
957 2002-08-03 Andrew Cagney <cagney@redhat.com>
958
959 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
960 m68hc11_fetch_pseudo_register.
961 (m68hc11_pseudo_register_write): Replace
962 m68hc11_store_pseudo_register.
963 (m68hc11_gdbarch_init): Update.
964
965 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
966
967 * gdbarch.sh: Include "gdb_string.h".
968 * gdbarch.c: Regenerate.
969
970 * regcache.c: Include "gdb_string.h".
971 * ax-general.c: Ditto.
972 * varobj.c: Ditto.
973 * std-regs.c: Ditto.
974 * fbsd-proc.c: Ditto.
975 * thread.c: Ditto.
976
977 * Makefile.in (regcache.o): Update dependencies.
978 (thread.o, gdbarch.o): Ditto.
979 (ax-general.o, gdbarch.o): Ditto.
980 (varobj.o, std-regs.o): Ditto.
981 (fbsd-proc.o): Specify dependencies.
982
983 2002-08-02 Andrew Cagney <cagney@redhat.com>
984
985 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
986 regnum.
987 (regcache_cooked_write): Ditto.
988
989 2002-08-02 Andrew Cagney <ac131313@redhat.com>
990
991 * regcache.c (regcache_cooked_read): New function.
992 (regcache_cooked_write): New function.
993 (read_register_gen): Rewrite using regcache_cooked_read.
994 (write_register_gen): Rewrite using regcache_cooked_write.
995
996 * regcache.h (regcache_cooked_read, regcache_cooked_write):
997 Declare.
998
999 2002-08-02 Andrew Cagney <cagney@redhat.com>
1000
1001 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1002 Replace the architecture methods register_read and register_write.
1003 * gdbarch.h, gdbarch.c: Regenerate.
1004 * regcache.c (init_regcache_descr): Update.
1005 (read_register_gen): Update.
1006 (write_register_gen): Update.
1007 (supply_register): Update comment.
1008
1009 * sh-tdep.c (sh_gdbarch_init): Update.
1010 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1011 `regcache' and `gdbarch' parameters. Make `buffer' a void
1012 pointer. Update code.
1013 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1014 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1015 void pointer. Update code.
1016 (sh64_register_write): Delete.
1017 (sh4_register_read): Delete.
1018 (sh64_register_read): Delete.
1019 (sh4_register_write): Delete.
1020 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1021 void pointer, `to' parameter a void pointer.
1022 (sh_sh64_register_convert_to_raw): Ditto.
1023
1024 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1025
1026 * mips-tdep.c (mips_register_virtual_type): Use architecture
1027 invariant return values.
1028
1029 2002-08-01 Andrew Cagney <cagney@redhat.com>
1030
1031 * linux-proc.c: Include "gdb_string.h".
1032 * Makefile.in (linux-proc.o): Update dependency list.
1033
1034 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1035
1036 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1037 comment.
1038
1039 2002-08-01 Grace Sainsbury <graces@redhat.com>
1040
1041 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1042 to_insert_watchpoint, to_remove_watchpoint,
1043 to_stopped_by_watchpoint, to_stopped_data_address,
1044 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1045 target vecctor. Define their corresponding macros so they call
1046 them.
1047
1048 * target.c: Add default and debug versions of for
1049 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1050 to_insert_watchpoint, to_remove_watchpoint,
1051 to_stopped_by_watchpoint, to_stopped_data_address,
1052 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1053
1054 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1055
1056 * mips-tdep.c (mips_register_virtual_type): New function.
1057 (mips_gdbarch_init): Register mips_register_virtual_type()
1058 with gdbarch machinery.
1059 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1060 this file instead of tm-bigmips.h.
1061 (MIPS_REGSIZE): Delete this macro.
1062 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1063 multiarch version in mips-tdep.c will be found.
1064
1065 2002-08-01 Andrew Cagney <cagney@redhat.com>
1066
1067 * NEWS: Menion that CHILL has been made obsolete.
1068
1069 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1070 * gdbserver/Makefile.in: Ditto.
1071 * stabsread.c (read_range_type): Ditto.
1072 * gdbtypes.h: Ditto.
1073 * language.c (binop_type_check): Ditto.
1074 (binop_result_type): Ditto.
1075 (integral_type): Ditto.
1076 (character_type): Ditto.
1077 (string_type): Ditto.
1078 (boolean_type): Ditto.
1079 (structured_type): Ditto.
1080 (lang_bool_type): Ditto.
1081 (binop_type_check): Ditto.
1082 * language.h (_LANG_chill): Ditto.
1083 * dwarfread.c (set_cu_language): Ditto.
1084 * dwarfread.c (CHILL_PRODUCER): Ditto.
1085 * dwarfread.c (handle_producer): Ditto.
1086 * expression.h (enum exp_opcode): Ditto.
1087 * eval.c: Ditto for comments.
1088 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1089 * expprint.c (print_subexp): Ditto.
1090 (print_subexp): Ditto.
1091 * valops.c (value_cast): Ditto.
1092 (search_struct_field): Ditto.
1093 * value.h (COERCE_VARYING_ARRAY): Ditto.
1094 * symfile.c (init_filename_language_table): Ditto.
1095 (add_psymbol_with_dem_name_to_list): Ditto.
1096 * valarith.c (value_binop): Ditto.
1097 (value_neg): Ditto.
1098 * valops.c (value_slice): Ditto.
1099 * symtab.h (union language_specific): Ditto.
1100 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1101 (SYMBOL_DEMANGLED_NAME): Ditto.
1102 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1103 * defs.h (enum language): Ditto.
1104 * symtab.c (got_symtab): Ditto.
1105 * utils.c (fprintf_symbol_filtered): Ditto.
1106
1107 * ch-typeprint.c: Make file obsolete.
1108 * ch-valprint.c: Make file obsolete.
1109 * ch-lang.h: Make file obsolete.
1110 * ch-exp.c: Make file obsolete.
1111 * ch-lang.c: Make file obsolete.
1112
1113 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1114 CHILL_LIB.
1115 (TARGET_FLAGS_TO_PASS): Ditto.
1116 (CHILLFLAGS): Obsolete.
1117 (CHILL): Obsolete.
1118 (CHILL_FOR_TARGET): Obsolete.
1119 (CHILL_LIB): Obsolete.
1120 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1121 ch-valprint.c.
1122 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1123 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1124 ch-lang.o.
1125 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1126 targets.
1127
1128 2002-07-31 Joel Brobecker <brobecker@gnat.com>
1129
1130 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1131 This does not change anything at the moment, but will be helpful
1132 later when full Ada support is integrated.
1133
1134 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1135
1136 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1137 help message.
1138
1139 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1140
1141 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1142 and save it in a local variable. Use variable in later test.
1143
1144 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1145
1146 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1147 test. (Thanks to Daniel Jacobowitz.)
1148
1149 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1150
1151 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1152 (mips_abi_strings): Add "n64".
1153 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1154
1155 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1156
1157 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1158 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1159
1160 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1161
1162 * utils.c (host_pointer_to_address, address_to_host_pointer):
1163 Use gdb_assert() instead of explicit call to internal_error().
1164
1165 2002-07-30 Kevin Buettner <kevinb@redhat.com>
1166
1167 * Makefile.in (rs6000-nat.o): Update dependencies.
1168
1169 From Nicholas Duffek:
1170 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1171 (aix-thread.o): New rule.
1172 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1173 * config/powerpc/aix432.mh: New file.
1174
1175 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1176
1177 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1178 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1179 (fetch_core_registers, ppc_linux_supply_gregset)
1180 (ppc_linux_supply_fpregset): New functions.
1181 (ppc_linux_regset_core_fns): New.
1182 (_initialize_ppc_linux_tdep): Call add_core_fns.
1183 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1184 and ppc_linux_supply_gregset.
1185 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1186 (supply_fpregset): Call ppc_linux_supply_fpregset.
1187 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1188 corelow.o.
1189 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1190
1191 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1192
1193 * symtab.c (lookup_symbol): Demangle before lowercasing.
1194
1195 2002-07-30 Andrew Cagney <ac131313@redhat.com>
1196
1197 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1198 declaration.
1199 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1200 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1201 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1202 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1203 "gdb_string.h".
1204 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1205 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1206 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1207 (avr-tdep.o, mon960-rom.o): Ditto.
1208 (aout_stabs_gnu_h): Define.
1209 (symtab_h): Remove $(gdb_obstack_h).
1210
1211 2002-07-30 Jim Blandy <jimb@redhat.com>
1212
1213 Patch from David Carlton <carlton@math.stanford.edu>:
1214 * gdbinit.in: Move the `dir' commands that add GDB's own source
1215 directory to the search path to the end, so that the `gdb' source
1216 directory will be searched first.
1217
1218 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1219
1220 * gdb_obstack.h: New file.
1221 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1222 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1223 * objfiles.h: Include "gdb_obstack.h".
1224 * Makefile.in (gdb_obstack_h): Define.
1225 (symtab_h): Add $(gdb_obstack_h).
1226 (objfiles_h): Add $(gdb_obstack_h).
1227
1228 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1229 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1230 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1231 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1232 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1233 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1234 * symfile.c, coffread.c, c-typeprint.c: Ditto.
1235 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
1236
1237 * Makefile.in (bcache.o): Update dependencies.
1238 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
1239 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
1240 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
1241 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
1242 (stabsread.o, symfile.o, symmisc.o): Ditto.
1243 (symtab.o, typeprint.o, macroexp.o): Ditto.
1244 (macrotab.o, mdebugread.o): Ditto.
1245 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
1246 (coff_ecoff_h, aout_aout64_h): Define.
1247 (aout_stabs_gnu_h, libaout_h): Define.
1248
1249 2002-07-29 Andrew Cagney <cagney@redhat.com>
1250
1251 * regcache.c (struct regcache_descr): Rename nr_registers to
1252 nr_cooked_registers. Revise comments describing the structure
1253 member fields.
1254 (init_regcache_descr): Update.
1255 (init_legacy_regcache_descr): Update.
1256 (read_register_gen, write_register_gen): When a cooked register in
1257 the raw register range, directly access the value from the raw
1258 register cache.
1259
1260 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1261
1262 * z8k-tdep.c: Do not include "obstack.h".
1263 * h8300-tdep.c, h8500-tdep.c: Ditto.
1264 * m68hc11-tdep.c, sh-tdep.c: Ditto.
1265 * valprint.c, v850-tdep.c: Ditto.
1266 * d10v-tdep.c, mn10300-tdep.c: Ditto.
1267 * mn10200-tdep.c: Ditto.
1268
1269 * Makefile.in (z8k-tdep.o): Update dependencies.
1270 (m68hc11-tdep.o, valprint.o): Ditto.
1271 (v850-tdep.o, d10v-tdep.o): Ditto.
1272 (mn10300-tdep.o, sparc-tdep.o): Ditto.
1273 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
1274 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
1275 (sh_opc_h, gdb_sim_sh_h): Define.
1276 (elf_sh_h, elf_bfd_h): Define.
1277 (opcode_m68hc11_h): Define.
1278 (OPCODES_SRC, OPCODES_DIR): define.
1279 (OPCODES): Use $(OPCODES_DIR).
1280 (gdb_sim_d10v_h): Rename sim_d10v_h.
1281 (gdb_sim_arm_h): Rename sim_arm_h.
1282
1283 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1284
1285 * utils.c (host_pointer_to_address, address_to_host_pointer):
1286 Change internal_error() message to indicate function responsible
1287 for the error.
1288
1289 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1290
1291 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
1292 calls to local_hex_string_custom().
1293
1294 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1295
1296 * irix5-nat.c: Move IRIX shared library support from here...
1297 * solib-irix.c: ...to here. Revised substantially to work with
1298 generic solib framework.
1299
1300 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
1301 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
1302 * mips-irix-tdep.c: New file.
1303
1304 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
1305 (mips-irix-tdep.o, solib-irix.o): New rules.
1306 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
1307 solib-irix.o.
1308 * config/mips/irix6.mt (TDEPFILES): Likewise.
1309 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
1310
1311 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1312
1313 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
1314 disabled (via ``#if 0'') includes.
1315
1316 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1317
1318 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
1319 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
1320 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
1321 Add support for the fpscr register.
1322 * rs6000-nat.c (regmap, fetch_inferior_registers)
1323 (store_inferior_registers, fetch_core_registers): Likewise.
1324
1325 2002-07-26 Kevin Buettner <kevinb@redhat.com>
1326
1327 * rs6000-nat.c (language.h): Include.
1328 (special_regs): Delete this array.
1329 (regmap): New function.
1330 (fetch_register, store_register): Use regmap() to map gdb
1331 register numbers to ptrace register numbers. Also, use
1332 outputs from regmap() to make decisions regarding type of
1333 ptrace() call to make. In particular, don't compare against
1334 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1335 (fetch_inferior_registers, store_inferior_registers): Where
1336 possible, obtain register numbers from tdep struct. Don't
1337 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
1338 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
1339 (LAST_UISA_SP_REGNUM): Delete.
1340
1341 2002-07-25 Kevin Buettner <kevinb@redhat.com>
1342
1343 * rs6000-nat.c (ppc-tdep.h): Include.
1344 (fetch_registers, store_register, fetch_core_registers): Don't
1345 access registers[] directly. Instead, use supply_register() or
1346 regcache_collect() as appropriate.
1347 (find_toc_address): Format hex address with local_hex_string().
1348
1349 2002-07-25 Andrew Cagney <ac131313@redhat.com>
1350
1351 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
1352 bfd/elf32-frv.c.
1353
1354 2002-07-24 Tom Tromey <tromey@redhat.com>
1355
1356 * jv-exp.y: Marked all strings with _().
1357 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
1358 internal_error.
1359 (MethodInvocation, CastExpression, parse_number, yyerror,
1360 java_type_from_name, push_expression_name, yylex): Typo fixes.
1361
1362 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
1363
1364 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
1365 (tee_file_flush, tee_file_write, tee_file_fputs)
1366 (tee_file_isatty): New.
1367 * ui-file.h (tee_file_new): Add prototype.
1368
1369 2002-07-24 Aidan Skinner <aidan@velvet.net>
1370
1371 * ada-lang.c: Change k&r style function definitions to prototyped
1372 form.
1373 * ada-typeprint.c: Change k&r style function definitions to prototyped
1374 form.
1375 * ada-valprint.c: Change k&r style function definitions to prototyped
1376 form.
1377
1378 2002-07-24 Andrew Cagney <cagney@redhat.com>
1379
1380 * README: Remove reference to remote-bug.
1381 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
1382 remote-bug.c.
1383 (m88k-nat.o): Delete rule.
1384 (m88k-tdep.o): Delete rule.
1385 (remote-bug.o): Delete rule.
1386 * MAINTAINERS: Mark as obsolete.
1387 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
1388 * m88k-tdep.c: Make file obsolete.
1389 * config/m88k/m88k.mh: Ditto.
1390 * config/m88k/delta88v4.mh: Ditto.
1391 * config/m88k/delta88v4.mt: Ditto.
1392 * config/m88k/delta88.mt: Ditto.
1393 * config/m88k/delta88.mh: Ditto.
1394 * remote-bug.c: Ditto.
1395 * config/m88k/tm-delta88.h: Ditto.
1396 * config/m88k/nm-delta88v4.h: Ditto.
1397 * config/m88k/xm-delta88.h: Ditto.
1398 * config/m88k/xm-dgux.h: Ditto.
1399 * config/m88k/tm-m88k.h: Ditto.
1400 * config/m88k/nm-m88k.h: Ditto.
1401 * config/m88k/tm-delta88v4.h: Ditto.
1402 * m88k-nat.c: Ditto.
1403 * cxux-nat.c: Ditto.
1404 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
1405 and m88*-*-* obsolete.
1406 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
1407 m88*-*-* obsolete.
1408
1409 2002-07-24 Andrew Cagney <cagney@redhat.com>
1410
1411 * findvar.c (extract_unsigned_integer): Make `addr' parameter
1412 constant. Same for local pointer variables.
1413 (extract_signed_integer): Ditto.
1414 * defs.h (extract_unsigned_integer): Update.
1415 (extract_signed_integer): Update.
1416
1417 2002-07-24 Kevin Buettner <kevinb@redhat.com>
1418
1419 * gdbserver/configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
1420 * gdbserver/configure: Regenerate.
1421 * gdbserver/config.in: Regenerate.
1422
1423 2002-07-24 Andrew Cagney <cagney@redhat.com>
1424
1425 * regcache.c (regcache_raw_write): Change buf parameter to a
1426 constant void pointer.
1427 (regcache_raw_read): Change buf parameter to a void pointer.
1428 (legacy_write_register_gen): Change myaddr parameter a constant
1429 void pointer.
1430 (supply_register): Change val parameter to a const void pointer.
1431 * regcache.h (regcache_raw_write): Update declaration.
1432 (regcache_raw_read): Update declaration.
1433 (supply_register): Update declaration.
1434
1435 2002-07-24 Tom Tromey <tromey@redhat.com>
1436
1437 * defs.h (gdb_readline_wrapper): Declare.
1438 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
1439 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
1440 * top.c (gdb_readline_wrapper): New function.
1441 (command_line_input): Use it.
1442
1443 2002-07-24 Andrew Cagney <cagney@redhat.com>
1444
1445 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
1446 regcache_read and regcache_write.
1447 (regcache_raw_read_as_address): Replace regcache_read_as_address.
1448 * regcache.c: Update.
1449 * sh-tdep.c (sh64_push_arguments): Update comment.
1450 (sh_pseudo_register_read): Update.
1451 (sh_pseudo_register_write): Update.
1452 (sh4_register_read): Update.
1453 (sh4_register_write): Update.
1454 (sh64_pseudo_register_read): Update.
1455 (sh64_pseudo_register_write): Update.
1456 (sh64_register_read): Update.
1457 (sh64_register_write): Update.
1458 * i386-tdep.c (i386_extract_return_value): Update.
1459 (i386_extract_struct_value_address): Update.
1460 (i386_extract_return_value): Update.
1461 * blockframe.c (generic_read_register_dummy): Update.
1462 (generic_call_dummy_register_unwind): Update
1463 * infrun.c (write_inferior_status_register): Update.
1464
1465 2002-07-23 Jim Blandy <jimb@redhat.com>
1466
1467 * parser-defs.h (expression_context_pc): Make this extern.
1468 (Thanks to Michael Snyder.)
1469
1470 2002-07-23 Andrew Cagney <ac131313@redhat.com>
1471
1472 GDB 5.2.1 released from 5.2 branch.
1473 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
1474 * README: Update to mention 5.2.1.
1475
1476 2002-07-23 Mark Salter <msalter@redhat.com>
1477
1478 * remote.c (remote_read_bytes): Fix check for error.
1479
1480 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1481
1482 * aix-thread.c (language.h): Include.
1483 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1484 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
1485 Print newlines at end of debug messages.
1486 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
1487 (pdc_write_data): Use local_hex_string() instead of %llx formats.
1488
1489 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1490
1491 * aix-thread.c (ppc-tdep.h): Include.
1492 (special_register_p): New function.
1493 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
1494 (store_regs_user_thread): Use register number information from
1495 gdbarch_tdep struct instead of hardcoded offsets relative to
1496 FIRST_UISA_SP_REGNUM.
1497 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
1498 special_register_p() instead of using FPLAST_REGNUM and
1499 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
1500 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
1501 will be MQ's register number.
1502
1503 2002-07-22 Michael Snyder <msnyder@redhat.com>
1504
1505 * aix-thread.c (ops): Rename to aix_thread_ops.
1506 (base_ops): Rename to base_target.
1507 (ops_attach): Rename to aix_thread_attach.
1508 (ops_detach): Rename to aix_thread_detach.
1509 (ops_resume): Rename to aix_thread_detach.
1510 (ops_wait): Rename to aix_thread_wait.
1511 (ops_kill): Rename to aix_thread_kill.
1512 (init_ops): Rename to init_aix_thread_ops.
1513 (ops_fetch_register): Rename to aix_thread_fetch_register.
1514 (ops_store_register): Rename to aix_thread_store_register.
1515 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
1516 (ops_thread_alive): Rename to aix_thread_thread_alive.
1517 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
1518 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
1519 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
1520 (fetch_regs_lib): Rename to fetch_regs_user_thread.
1521 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
1522 (store_regs_lib): Rename to store_regs_user_thread.
1523 (store_regs_kern): Rename to store_regs_kernel_thread.
1524
1525 2002-07-22 Michael Snyder <msnyder@redhat.com>
1526
1527 * aix-thread.c (ops_prepare_to_store): Eliminate.
1528 (init_ops): Don't initialize ops.prepare_to_store.
1529 (store_regs_kern): Pre-fetch register buffers from child,
1530 because some registers may not be in the cache. Copy
1531 regs from register cache only if they are cached.
1532 (store_regs_lib): Copy regs from register cache only
1533 if they are cached.
1534 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
1535 fill_gprs64): Ditto.
1536
1537 2002-07-22 Kevin Buettner <kevinb@redhat.com>
1538
1539 * aix-thread.c (gdb_assert.h): Include.
1540 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
1541 register sizes (from register cache) match size of buffer holding
1542 register data.
1543 (fill_sprs32): Change parameter types to match those in the ptrace()
1544 buffer.
1545 (store_regs_lib): Likewise, but for 32-bit temporary variables.
1546 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
1547
1548 2002-07-22 Michael Snyder <msnyder@redhat.com>
1549
1550 * aix-thread.c (supply_sprs64): Cosmetic change.
1551 (supply_sprs32): Cosmetic change.
1552 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
1553 (fill_sprs64): Use regcache_collect instead of read_register.
1554 (store_regs_lib): Use regcache_collect instead of
1555 read_register. Use fill_sprs32 instead of fill_sprs64,
1556 if debugging a 32-bit architecture.
1557 (store_regs_kern): Use fill_gprs64 etc. to pull the values
1558 out of the register cache, instead of passing a pointer into
1559 the register cache directly to ptrace. Use regcache_collect
1560 insteaad of read_register.
1561 (ops_prepare_to_store): Use target_read_registers instead
1562 of read_register_bytes.
1563
1564 2002-07-20 Aidan Skinner <aidan@velvet.net>
1565
1566 * MAINTAINERS: Add self under write after approval.
1567
1568 2002-07-20 Aidan Skinner <aidan@velvet.net>
1569
1570 * ada-tasks.c: Change k&r style function definitions to prototyped
1571 form.
1572
1573 2002-07-19 Andrew Cagney <ac131313@redhat.com>
1574
1575 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
1576 * x86-64-tdep.c: Include "objfiles.h".
1577 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
1578 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
1579
1580 2002-07-17 Michal Ludvig <michal@suse.cz>
1581
1582 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
1583 (update_context): Initialise cfa variable.
1584
1585 2002-07-17 Michael Snyder <msnyder@redhat.com>
1586
1587 * aix-thread.c: Shorten some long lines.
1588 Bring comments into line with code spec.
1589
1590 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1591
1592 * infrun.c: Re-indent using gdb_indent.sh.
1593
1594 2002-07-18 Joel Brobecker <brobecker@gnat.com>
1595
1596 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
1597 Leave the indentation temporarily untouched, to minimize the diffs.
1598
1599 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
1600
1601 * stabsread.c: Make os9k sections of the code obsolete,
1602 for real this time.
1603 * stabsread.h: Make os9k sections of the code obsolete.
1604
1605 2002-07-18 Michal Ludvig <mludvig@suse.cz>
1606
1607 * linux-low.c (regsets_store_inferior_registers): Add free()
1608 at the end of a loop to prevent memory leak.
1609 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
1610 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
1611 * config/sparc/tm-sp64linux.h: Make the rest of #endif
1612 line a comment.
1613 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
1614
1615 2002-07-17 Jim Blandy <jimb@redhat.com>
1616
1617 * macrocmd.c (info_macro_command): Remove newline from error
1618 message.
1619
1620 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
1621
1622 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
1623 (sh_gdbarch_init): Use it for sh-dsp.
1624
1625 2002-07-16 Kevin Buettner <kevinb@redhat.com>
1626
1627 * dwarf2read.c (read_initial_length): Handle older, non-standard,
1628 64-bit DWARF2 format.
1629
1630 2002-07-16 Joel Brobecker <brobecker@gnat.com>
1631
1632 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
1633 <sys/proc.h> when not available.
1634
1635 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1636
1637 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
1638 * stabsread.c: Make os9k sections of the code obsolete.
1639 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
1640 * config/i386/i386os9k.mt: Make file obsolete.
1641 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
1642 (COMMON_OBS): Remove os9kread.o
1643 (SFILES): Remove os9kread.c.
1644 (os9kread.o, remote-os9k.o): Make target obsolete.
1645 * remote-os9k.c: Make file obsolete.
1646 * os9kread.c: Make file obsolete.
1647 * Makefile.in
1648
1649 2002-07-16 Andrew Cagney <ac131313@redhat.com>
1650
1651 * NEWS: Mention that the FR30 has been made obsolete.
1652 * fr30-tdep.c: Make file obsolete.
1653 * config/fr30/tm-fr30.h: Ditto.
1654 * config/fr30/fr30.mt: Ditto.
1655 * configure.tgt: Make fr30-*-elf obsolete.
1656 * MAINTAINERS: Make fr30-elf obsolete.
1657
1658 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
1659
1660 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
1661 found is not inside a section.
1662
1663 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1664
1665 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
1666 strerror().
1667 (pdc_realloc): Use xrealloc() instead of realloc().
1668
1669 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1670
1671 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
1672 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
1673 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
1674 macros.
1675
1676 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1677
1678 * aix-thread.c (ptrace_check): Eliminate goto.
1679 (sync_threadlists): Eliminate gotos. Also, fix array overrun
1680 problem.
1681
1682 2002-07-15 Kevin Buettner <kevinb@redhat.com>
1683
1684 * aix-thread.c (gdbcmd.h): Include.
1685 (DEBUG, DBG, DBG2, dbg): Eliminate.
1686 (debug_aix_thread): New static global.
1687 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
1688 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
1689 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
1690 invocations to DBG and DBG2 macros to test against
1691 ``debug_aix_thread'' and call fprintf_unfiltered().
1692 (_initialize_aix_thread): Add new command "set debug aix-thread".
1693
1694 2002-07-15 Andrew Cagney <ac131313@redhat.com>
1695
1696 From Gerhard Tonn <TON@de.ibm.com>:
1697 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
1698 instead of supply_register.
1699
1700 2002-07-15 Andrew Cagney <ac131313@redhat.com>
1701
1702 * dwarf2cfi.c: Include "gdb_assert.h".
1703 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
1704 non-NULL.
1705 (update_context): Do not use __func__. Add missing ``break''.
1706 (update_context): Do not use __func__.
1707
1708 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
1709
1710 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
1711 and its setting. Set gdbarch instruction printing functions
1712 directly. For non-rs6000 case use new function
1713 gdb_print_insn_powerpc.
1714 (gdb_print_insn_powerpc): New function.
1715
1716 2002-07-13 Andrew Cagney <ac131313@redhat.com>
1717
1718 * NEWS: Mention that the d30v has been marked obsolete.
1719 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
1720 * configure.tgt: Mark d30v-*-* as obsolete.
1721 * d30v-tdep.c: Mark file as obsolete.
1722 * config/d30v/d30v.mt: Ditto.
1723 * config/d30v/tm-d30v.h: Ditto.
1724
1725 2002-07-13 Aidan Skinner <aidan@velvet.net>
1726
1727 * ada-tasks.c (add_task_entry): replace calls to
1728 malloc() with xmalloc
1729 * ada-tasks.c (init_task_list): replace calls to free with xfree()
1730
1731 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
1732 ada_finish_decode_line_1, all_sals_for_line
1733 ada_breakpoint_rewrite): replace calls to free() with xfree()
1734
1735 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1736
1737 From Nicholas Duffek (with minor changes by Martin Hunt,
1738 Louis Hamilton, and Kevin Buettner):
1739 * aix-thread.c: New file.
1740
1741 2002-07-12 Petr Sorfa <petrs@caldera.com>
1742
1743 * dwarf2read.c (dwarf2_invalid_attrib_class): New
1744 complaint for invalid attribute class or form.
1745 (read_func_scope): DW_AT_frame_base
1746 better handling of DW_AT_block*.
1747 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
1748 better handling of DW_AT_block*.
1749 (read_common_block): DW_AT_location
1750 better handling of DW_AT_block*.
1751 (read_partial_die): DW_AT_location better handling
1752 of DW_AT_block*.
1753 (new_symbol): DW_AT_external better handling of
1754 DW_AT_block*. Proper initialization of variable
1755 "addr".
1756 (attr_form_is_block): New function that returns true
1757 if the attribute's form is of DW_FORM_block*.
1758
1759 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
1760
1761 * valops.c (find_method_list): Remove comment about
1762 removed STATIC_MEMFUNCP argument.
1763 (value_find_oload_method_list): Likewise.
1764
1765 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1766
1767 From Nicholas Duffek:
1768 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
1769 target_new_objfile_hook.
1770
1771 2002-07-12 Kevin Buettner <kevinb@redhat.com>
1772
1773 From Nicholas Duffek:
1774 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
1775 csect.
1776
1777 2002-07-12 Andrew Cagney <cagney@redhat.com>
1778
1779 * MAINTAINERS: Mention --enable-sim-build-warnings.
1780 (m68hc11-elf): Disable sim build warnings.
1781 (m32r-elf): Mark as broken obsolete candidate.
1782 (x86_64-linux-gnu): Mark as buildable with -Werror.
1783 (arm-elf): Change -w to ``,'' which enables warnings but not
1784 -Werror.
1785
1786 2002-07-12 Andrew Cagney <ac131313@redhat.com>
1787
1788 * bcache.h: Update copyright.
1789 (struct bstring, struct bcache): Move definition to "bcache.c".
1790 Replaced by opaque declaration.
1791 (bcache_xfree): Replace free_bcache.
1792 (bcache_xmalloc, bcache_memory_used): Declare.
1793
1794 * bcache.c: Update copyright.
1795 (struct bstring, struct bcache): Moved to here from "bcache.h".
1796 Update comments.
1797 (bcache_xmalloc, bcache_memory_used): New functions.
1798 (bcache_xfree): Replace function free_bcache.
1799
1800 * Makefile.in (objfiles.o): Add $(bcache_h).
1801 (objfiles_h): Remove $(bcache_h).
1802 (symfile.o): Add $(bcache_h).
1803
1804 * symmisc.c: Update copyright.
1805 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
1806 (print_objfile_statistics): Use bcache_memory_used.
1807
1808 * symfile.c: Include "bcache.h".
1809 (reread_symbols): Use bcache_xfree.
1810 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
1811 (add_psymbol_to_list): Pass psymbol_cache by value.
1812 (add_psymbol_with_dem_name_to_list): Ditto.
1813
1814 * objfiles.h: Update copyright.
1815 (struct bcache): Declare opaque. Do not include "bcache.h".
1816 (struct objfile): Change psymbol_cache and macro_cache to ``struct
1817 bcache'' pointers.
1818 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
1819
1820 * objfiles.c: Include "bcache.h". Update copyright.
1821 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
1822 macro_cache.
1823 (free_objfile): Use bcache_xfree.
1824
1825 2002-07-11 Grace Sainsbury <graces@redhat.com>
1826
1827 * monitor.c (monitor_fetch_register): Make name a constant.
1828 (monitor_store_register): Same.
1829
1830 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
1831
1832 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
1833 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
1834 (finish_block) For non-function blocks, hash the symbol table. For
1835 function blocks, mark the symbol table as unhashed.
1836 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
1837 (msymbol_hash_iw): Likewise.
1838 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
1839 value.
1840 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
1841 (lookup_minimal_symbol): Likewise for both.
1842 * symtab.h (struct block): Add `hashtable' flag. Comment the
1843 hashtable.
1844 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
1845 (ALL_BLOCK_SYMBOLS): Update.
1846 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
1847 (struct symbol): Add `hash_next' pointer.
1848 * symtab.c (lookup_block_symbol): Search using the hash table when
1849 possible.
1850 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
1851 (search_symbols, find_addr_symbol): Likewise.
1852
1853 * dstread.c (process_dst_block): Clear hashtable bit for new block.
1854 (read_dst_symtab): Likewise.
1855 * jv-lang.c (get_java_class_symtab): Likewise.
1856 * mdebugread.c: Include "gdb_assert.h".
1857 (shrink_block): Assert that the block being modified is not hashed.
1858 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
1859 * symmisc.c (free_symtab_block): Walk the hash table when freeing
1860 symbols.
1861 (dump_symtab): Recognize hashed blocks.
1862 * printcmd.c (print_frame_args): Assert that function blocks do not
1863 have hashed symbol tables.
1864 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
1865 (fill_in_ada_prototype, debug_print_block): Likewise.
1866 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
1867
1868 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
1869
1870 * stack.c (print_frame): Use result of frame_address_in_block()
1871 instead of fi->pc when evaluating symbols.
1872 (backtrace_command_1): Ditto.
1873
1874 2002-07-11 Andrew Cagney <cagney@redhat.com>
1875
1876 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
1877 Make static.
1878
1879 * arm-tdep.c (arm_register_name): Make return type constant.
1880
1881 2002-07-10 Andrew Cagney <ac131313@redhat.com>
1882
1883 * win32-nat.c (has_detach_ability): Convert to strict ISO C
1884 prototype.
1885 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
1886 * s390-tdep.c (s390_fp_regnum): Ditto.
1887 (s390_read_fp): Ditto.
1888 (s390_pop_frame): Ditto.
1889 (_initialize_s390_tdep): Ditto.
1890 * remote.c (get_remote_state): Ditto.
1891 * procfs.c (mappingflags): Ditto.
1892 * memattr.c (_initialize_mem): Ditto.
1893 * mcore-tdep.c (mcore_pop_frame): Ditto.
1894 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
1895 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
1896 * language.c (set_case_str): Ditto.
1897 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
1898 * frv-tdep.c (new_variant): Ditto.
1899 (frv_stopped_data_address): Ditto.
1900 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
1901 (context_alloc): Ditto.
1902 (frame_state_alloc): Ditto.
1903 (unwind_tmp_obstack_init): Ditto.
1904 (unwind_tmp_obstack_free): Ditto.
1905 (cfi_read_fp): Ditto.
1906 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
1907 (cris_pop_frame): Ditto.
1908 * c-lang.c (scanning_macro_expansion): Ditto.
1909 (finished_macro_expansion): Ditto.
1910 (c_preprocess_and_parse): Ditto.
1911 * gdbarch.sh: Ditto.
1912 * gdbarch.h, gdbarch.c: Regenerate.
1913 * config/mn10200/tm-mn10200.h: Adjust indentation.
1914 * target.c: Adjust indentation.
1915 * symtab.h: Adjust indentation.
1916 * stabsread.h: Adjust indentation.
1917 * remote-es.c: Adjust indentation.
1918 * os9kread.c: Adjust indentation.
1919
1920 2002-07-10 Andrew Cagney <ac131313@redhat.com>
1921
1922 * wince.c (_initialize_wince): Rename _initialize_inftarg.
1923 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
1924
1925 2002-07-10 Grace Sainsbury <graces@redhat.com>
1926
1927 * NEWS: Mention m68k, mcore multi-arching.
1928 * MAINTAINERS: Change status of m68k, mcore to reflect
1929 multi-arching.
1930
1931 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
1932
1933 * valops.c (find_overload_match): Free oload_syms.
1934
1935 2002-07-09 Joel Brobecker <brobecker@gnat.com>
1936
1937 Define HAVE_SYS_PROC_H if sys/proc.h exists
1938 * configure.in: Add check for sys/proc.h
1939 * config.in: Regenerate.
1940 * configure: Regenerate.
1941
1942 2002-07-09 Grace Sainsbury <graces@redhat.com>
1943
1944 * config/m68k/tm-m68k.h: Remove macros wrapped in
1945 #if !GDB_MULTI_ARCH.
1946
1947 2002-07-09 David O'Brien <obrien@FreeBSD.org>
1948
1949 * gdbserver/gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
1950 (perror_with_name, remote_close, remote_open, expect, play): Static.
1951
1952 2002-07-08 Andrew Cagney <ac131313@redhat.com>
1953
1954 * config.in, configure: Regenerate.
1955
1956 2002-07-08 Mark Kettenis <kettenis@gnu.org>
1957
1958 * dwarf2cfi.c: Include "gcore.h".
1959 (execute_stack_op): Fix implementation of the
1960 DW_OP_deref and DW_OP_deref_size operators by letting do their
1961 lookup in the target.
1962
1963 2002-07-07 Mark Kettenis <kettenis@gnu.org>
1964
1965 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
1966 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
1967 tdep->sc_sp_offset.
1968
1969 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
1970
1971 Fix PR gdb/595, gdb/602
1972 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
1973 Don't call value_cast, just read the vtable pointer; update comments
1974 to match.
1975
1976 2002-07-05 Grace Sainsbury <graces@redhat.com>
1977
1978 * config/mcore/tm-mcore.h: Remove file.
1979 * config/mcore/mcore.mt: Remove definition of TM_FILE
1980 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
1981
1982 2002-07-05 Mark Kettenis <kettenis@gnu.org>
1983
1984 * i386bsd-tdep.c: Include "gdb_string.h".
1985
1986 2002-07-04 Grace Sainsbury <graces@redhat.com>
1987
1988 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
1989 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
1990 mcore-tdep.
1991 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
1992 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
1993 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
1994 (RETVAL_REGNUM): Move macros from tm-mcore.h
1995 (mcore_reg_struct_has_addr): New function.
1996 (mcore_gdbarch_init): Added initializations for the macros removed
1997 from tm-mcore.h.
1998
1999 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2000
2001 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2002 traditonal string branding within the ELF header.
2003
2004 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
2005
2006 * symtab.c (remove_params): New function.
2007 (make_symbol_overload_list): Use it instead of cplus_demangle.
2008 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2009
2010 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2011
2012 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2013
2014 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2015 New variables.
2016 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2017 and tdep->sigtramp_end.
2018 * i386obsd-nat.c: New file.
2019 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2020
2021 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2022 Don't call get_current_frame().
2023
2024 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2025
2026 * i386-nat.c (child_post_startup_inferior): New function
2027 calling i386_cleanup_dregs if
2028 I386_USE_GENERIC_WATCHPOINTS is defined.
2029 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2030 conditional to acknowledge that i386-nat.c has its
2031 own child_post_startup_inferior function.
2032
2033 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2034
2035 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2036 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2037 instead of MAX_REGISTER_RAW_SIZE.
2038 (i386_extract_return_value, i386_extract_struct_value_address):
2039 Convert to use regcache.
2040 (i386_gdbarch_init): Set max_register_raw_size and
2041 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2042 Set extract_return_value and extract_struct_value_address instead
2043 of their deprecated variants.
2044
2045 Convert i386 target to generic dummy frames.
2046 * i386-tdep.c: Include "symfile.h".
2047 (i386_frameless_signal_p): Consider a function to be frameless if
2048 the pc points at the first instruction of the function.
2049 (i386_frame_chain): Handle (generic) call dummies.
2050 (i386_frame_saved_pc): Likewise.
2051 (i386_frame_init_saved_regs): Remove code dealing with call
2052 dummies on the stack.
2053 (i386_push_dummy_frame): Removed.
2054 (i386_call_dummy_words): Removed.
2055 (i386_fix_call_dummy): Removed.
2056 (i386_push_return_address): New function.
2057 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2058 parameter, and don't call get_current_frame.
2059 (i386_pop_frame): New function.
2060 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2061 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2062 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2063 call_dummy_length to 0, set call_dummy_words to NULL, set
2064 sizeof_call_dummy_words to 0, set fix_call_dummy to
2065 generic_fix_call_dummy, set pc_in_call_dummy to
2066 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2067 generic_push_dummy_frame, set push_return_address to
2068 i386_push_return_address and set frame_chain_valid to
2069 generic_file_frame_chain_valid.
2070
2071 2002-07-04 Michal Ludvig <mludvig@suse.cz>
2072
2073 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Make it an array of
2074 byte offsets instead of an array of indexes.
2075 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
2076
2077 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2078
2079 * gdbarch.sh (struct regcache): Add opaque declaration.
2080 (EXTRACT_RETURN_VALUE): New architecture method.
2081 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2082 * gdbarch.h, gdbarch.c: Regenerate.
2083 * arch-utils.c (legacy_extract_return_value): New function.
2084 * arch-utils.h (legacy_extract_return_value): Declare.
2085 * values.c (value_being_returned): Re-enable code handling
2086 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2087 deprecated_grub_regcache_for_registers call to block handling
2088 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2089 (EXTRACT_RETURN_VALUE): Do not define.
2090
2091 2002-07-03 Grace Sainsbury <graces@redhat.com>
2092
2093 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2094 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2095 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2096 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2097 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2098 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2099 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2100 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2101 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2102 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2103 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2104 argument so the function fits the prototype in the architecture
2105 vector.
2106 (mcore_pop_frame): Remove argument so the function fits the
2107 prototype. Use get_current_frame instead of the argument.
2108 (mcore_push_arguments): Change type of struct_return so the
2109 function can be used in the architecture vector.
2110 (mcore_store_struct_return): Add.
2111 (mcore_frame_init_saved_regs): Add.
2112 (mcore_gdbarch_init): Add function calls to replace the macros
2113 removed from tm-mcore.h
2114
2115 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2116
2117 * infcmd.c (print_return_value): Remove compatibility code calling
2118 deprecated_grub_regcache_for_registers.
2119
2120 * values.c: Include "regcache.h".
2121 (value_being_returned): Update. Use
2122 deprecated_grub_regcache_for_registers to extract the register
2123 buffer address.
2124 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2125 ``struct regcache''.
2126 * Makefile.in (values.o): Add dependency on $(regcache_h).
2127
2128 * inferior.h (run_stack_dummy): Change type of second parameter to
2129 a ``struct regcache''.
2130 * valops.c (hand_function_call): Change type of retbuf to ``struct
2131 regcache''. Allocate using regcache_xmalloc, clean using
2132 make_cleanup_regcache_xfree.
2133 * infcmd.c (run_stack_dummy): Update. Use
2134 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2135
2136 * regcache.c (do_regcache_xfree): New function.
2137 (make_cleanup_regcache_xfree): New function.
2138 * regcache.h (make_cleanup_regcache_xfree): Declare.
2139
2140 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2141
2142 * event-top.c (command_line_handler): Don't read past
2143 beginning of buffer.
2144
2145 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2146
2147 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2148 struct frame_id.
2149 (varobj_create): Store frame_id for root.
2150 (varobj_gen_name): Use xasprintf.
2151 (varobj_update): Save and restore frame using get_frame_id() and
2152 frame_find_by_id().
2153 (create_child): Use xasprintf.
2154 (new_root_variable): Initialize frame_id.
2155 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2156 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2157 to prevent memory leak.
2158
2159 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2160
2161 * valops.c (hand_function_call): Move declaration of retbuf to
2162 start of function, allocate using malloc, add a cleanup but before
2163 the inf_status cleanup, cleanup the buffer. Rename local variable
2164 old_chain to inf_status_cleanup.
2165
2166 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2167
2168 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2169
2170 * cli/cli-decode.c (cmd_func_p): New function.
2171 (cmd_func): New function.
2172
2173 * command.h: Add cmd_func() and cmd_func_p().
2174
2175 2002-07-03 Grace Sainsbury <graces@redhat.com>
2176
2177 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2178 (REGISTER_SIZE): Remove.
2179 (MAX_REGISTER_RAW_SIZE): Remove.
2180 (REGISTER_VIRTUAL_TYPE): Remove.
2181 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2182 (REGISTER_NAME): Remove.
2183 (USE_GENERIC_DUMMY_FRAMES): Remove.
2184 (CALL_DUMMY): Remove.
2185 (CALL_DUMMY_START_OFFSET): Remove.
2186 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2187 (CALL_DUMMY_LOCATION): Remove.
2188 (FIX_CALL_DUMMY): Remove.
2189 (CALL_DUMMY_ADDRESS): Remove.
2190 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2191 (SAVE_DUMMY_FRAME_TOS): Remove.
2192 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2193 (mcore_register_virtual_type): New function.
2194 (mcore_register_byte): New function.
2195 (mcore_register_size): New function.
2196 (mcore_register_name): New function.
2197 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2198 macros removed from tm-mcore.h.
2199 (mcore_dump_tdep): Add.
2200 (_initialize_mcore_tdep): Add gdbarch_register call.
2201
2202 2002-07-03 Mark Kettenis <kettenis@gnu.org>
2203
2204 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2205 frameless_look_for_prologue, such that we actually call this
2206 function.
2207
2208 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2209
2210 * frame.h (frame_address_in_block): New function.
2211
2212 * blockframe.c (frame_address_in_block): New function extracted
2213 from get_frame_block().
2214 (get_frame_block): Use frame_address_in_block().
2215 (block_innermost_frame): Use frame_address_in_block() to match
2216 the frame pc address against the block boundaries rather than
2217 the frame pc directly. This prevents a failure when a frame pc
2218 is actually a return-address pointing immediately after the end
2219 of the given block.
2220
2221 2002-07-02 Grace Sainsbury <graces@redhat.com>
2222
2223 * MAINTAINERS: Add self under write after approval.
2224
2225 2002-07-02 Grace Sainsbury <graces@redhat.com>
2226
2227 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2228 used in architecture vector. The default is
2229 m68k_local_breakpoint_from_pc.
2230 (m68k_local_breakpoint_from_pc): Add.
2231 (enum): Add register numbers from tm-m68k.h.
2232 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2233 vector.
2234 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2235 GDB_MULTI_ARCH_PARTIAL.
2236 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2237 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2238 m68k-tdep.c.
2239 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2240 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2241 to enum in m68k-tdep.c
2242
2243 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2244
2245 * solib-osf.c (open_map): Compute the list of shared libraries
2246 loaded by the inferior, rather than the list of libraries loaded
2247 by GDB itself. Otherwise, GDB ends up reading the symbols from
2248 the wrong shared libraries...
2249
2250 2002-07-02 Mark Kettenis <kettenis@gnu.org>
2251
2252 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
2253 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
2254 macros.
2255 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
2256 Remove functions.
2257 (FRAMELESS_SIGNAL): Remove function.
2258 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
2259 i386_linux_saved_pc_after_call): Removed.
2260 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
2261 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
2262 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
2263
2264 * i386-tdep.c (i386_frameless_signal_p): New function.
2265 (i386_frame_chain): Deal with frameless signals.
2266 (i386_sigtramp_saved_sp): New function.
2267 (i386_frame_saved_pc): Deal with frameless signals.
2268 (i386_saved_pc_after_call): Make sure the correct value is
2269 returned just after entry into a sigtramp.
2270 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
2271 i386fbsd4_sc_sp_offset): New variables.
2272 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
2273 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
2274 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
2275 similiar to what we already did for sc_pc_offset.
2276 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
2277 tdep->sc_sp_offset.
2278
2279 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
2280
2281 2002-07-02 Michal Ludvig <mludvig@suse.cz>
2282
2283 * config/i386/tm-x86-64linux.h: New.
2284 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
2285 definitions.
2286 * config/i386/nm-x86-64.h: Rename to ...
2287 * config/i386/nm-x86-64linux.h: ... this one.
2288 * config/i386/x86-64linux.mh: Reflect the above change.
2289
2290 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2291
2292 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
2293 with sigcontext_addr. Add sc_sp_offset.
2294 (i386bsd_sigtramp_saved_pc): Remove prototype.
2295 (i386bsd_sicontext_addr): Add prototype.
2296 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
2297 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
2298 (i386_svr4_sigtramp_saved_pc): Removed.
2299 (i386_svr4_sigcontext_addr): New function.
2300 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2301 Initialize tdep->sigcontext_addr instead. Initialize
2302 tdep->sc_pc_offset and tdep->sc_sp_offset.
2303 (i386_gdbarch_init): Likewise.
2304 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
2305 any more.
2306 (i386bsd_sigtramp_saved_pc): Remove function.
2307 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
2308 Initialize tdep->sigcontext_addr instead. Initialize
2309 tdep->sc_pc_offset.
2310 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
2311 of tdep->sigtramp_saved_pc.
2312 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
2313 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
2314 instead.
2315
2316 * i386-tdep.c (i386_frameless_function_invocation,
2317 i386_frame_num_args, i386_frame_init_saved_regs,
2318 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
2319 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
2320 i386_extract_return_value, i386_store_return_value,
2321 i386_extract_struct_value_address, i386_register_virtual_type,
2322 i386_register_convertible, i386_register_convert_to_virtual,
2323 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
2324 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
2325 static.
2326
2327 2002-07-01 Mark Kettenis <kettenis@gnu.org>
2328
2329 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
2330
2331 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
2332 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
2333 this macro. Include "value.h".
2334
2335 2002-06-30 Aidan Skinner <aidan@velvet.net>
2336
2337 * ada-exp.tab.c: remove as it's a generated file
2338 * ada-lex.c: remove as it's a generated file
2339
2340 2002-06-30 Mark Kettenis <kettenis@gnu.org>
2341
2342 * config/i386/tm-i386.h (struct frame_info, struct
2343 frame_saved_regs, struct value, struct type): Remove forward
2344 declarations.
2345
2346 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
2347 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
2348 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
2349 (FILL_FPXREGSET): Define.
2350
2351 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
2352
2353 * configure.tgt (i[3456]86-*-openbsd*): Fold into
2354 i[3456]86-*-netbsd* case.
2355 * config/i386/tm-obsd.h: Removed.
2356 * config/i386/obsd.mt: Removed.
2357 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
2358 core-aout.o.
2359 (MH_CFLAGS): Add -DYYDEBUG=0.
2360
2361 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
2362 i386nbsd_sc_pc_offset on OpenBSD too.
2363
2364 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
2365 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
2366 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
2367 define.
2368 * i386bsd-tdep.c: Include "arch-utils.h".
2369 (i386bsd_aout_in_solib_call_trampoline): New function.
2370 (i386bsd_init_abi): Set in_solib_call_trampoline to
2371 i386bsd_aout_in_solib_call_trampoline.
2372 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
2373 in_solib_call_trampoline to generic_in_solib_call_trampoline.
2374
2375 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2376
2377 * macrotab.h: Do not include "obstack.h" or "bcache.h".
2378 (struct obstack, struct bcache): Add opaque declarations.
2379 * Makefile.in (macrotab_h): Update
2380
2381 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2382
2383 * blockframe.c (generic_find_dummy_frame): Change return type to
2384 ``struct regcache''.
2385 (struct dummy_frame): Replace field ``registers'' with regcache, a
2386 struct regcache object.
2387 (generic_find_dummy_frame): Update.
2388 (generic_push_dummy_frame): Update. Use regcache_xfree,
2389 regcache_xmalloc and regcache_cpy.
2390 (generic_pop_dummy_frame): Update. Use regcache_cpy and
2391 regcache_xfree.
2392 (deprecated_generic_find_dummy_frame): Update.
2393 (generic_read_register_dummy): Update. Use
2394 regcache_read_as_address.
2395 (generic_call_dummy_register_unwind): Update. Use regcache_read.
2396 (generic_get_saved_register): Update. Use regcache_read.
2397
2398 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2399
2400 * Makefile.in (objfiles_h): Add $(bcache_h).
2401 * objfiles.h: Include "bcache.h".
2402
2403 * Makefile.in (symtab_h): Remove $(bcache_h).
2404 * symtab.h: Do not include "bcache.h".
2405
2406 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2407
2408 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
2409 generic_func_frame_chain_valid.
2410
2411 2002-06-28 David O'Brien <obrien@FreeBSD.org>
2412
2413 * config/i386/nm-fbsd.h: Include <sys/param.h>.
2414 * config/i386/tm-fbsd.h: Likewise.
2415
2416 2002-06-28 Andrew Cagney <ac131313@redhat.com>
2417
2418 * rs6000-tdep.c (rs6000_gdbarch_init): Use
2419 generic_unwind_get_saved_register.
2420
2421 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2422
2423 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
2424 * regcache.c (supply_register): Add missing argument to
2425 register_buffer call.
2426
2427 2002-06-27 Andrew Cagney <ac131313@redhat.com>
2428
2429 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
2430 Solaris /bin/grep does not not like it. From Peter Schauer.
2431
2432 2002-06-26 Tom Tromey <tromey@redhat.com>
2433
2434 * command.h (add_setshow_cmd): Declare.
2435 (add_setshow_cmd_full): Declare.
2436 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
2437 returns void. Use add_setshow_cmd_full.
2438 (add_setshow_cmd_full): New function.
2439 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
2440 (add_setshow_boolean_cmd): Likewise.
2441
2442 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2443
2444 * config/vax/tm-vax.h: Protect from multiple inclusion.
2445 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
2446 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
2447 * config/vax/tm-vaxbsd.h: ...here. New file.
2448 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
2449
2450 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2451
2452 * config/vax/tm-vax.h (BREAKPOINT): Remove.
2453 (BELIEVE_PCC_PROMOTION): Remove.
2454 (AP_REGNUM): Move to...
2455 * config/vax/nm-vax.h: ...here.
2456 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
2457 (vax_breakpoint_from_pc): New function.
2458 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
2459 and gdbarch_believe_pcc_promotion.
2460
2461 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
2462
2463 * Makefile.in (vax_tdep_h): Define.
2464 (vax-tdep.o): Use $(vax_tdep_h).
2465 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
2466 (vax_dump_tdep): New function.
2467 (_initialize_vax_tdep): Register vax_dump_tdep.
2468 * vax-tdep.h: Include osabi.h.
2469 (struct gdbarch_tdep): New.
2470
2471 2002-06-26 Andrew Cagney <cagney@redhat.com>
2472
2473 * frame.h (deprecated_generic_find_dummy_frame): Rename
2474 generic_find_dummy_frame.
2475 * blockframe.c (generic_find_dummy_frame): Make static.
2476 (deprecated_generic_find_dummy_frame): New function.
2477 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
2478 generic_find_dummy_frame with deprecated_find_dummy_frame.
2479 (sh64_nofp_frame_init_saved_regs): Ditto.
2480 (sh_fp_frame_init_saved_regs): Ditto.
2481 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
2482 (s390_frame_chain): Ditto.
2483 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2484
2485 2002-06-26 Grace Sainsbury <graces@redhat.com>
2486
2487 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
2488 gdbarch vector are at the top.
2489 (NUM_REGS): Remove.
2490 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
2491 (FRAME_ARGS_ADDRESS): Remove.
2492 (FRAME_LOCALS_ADDRESS): Remove.
2493 (FRAME_NUM_ARGS): Remove.
2494 (FRAME_ARGS_SKIP): Remove.
2495 * m68k-tdep.c (enum): Add eumeration of special register numbers.
2496 (m68k_gdbarch_init): Add gdbarch initializations for macros
2497 undefined in tm-m68k.h
2498
2499 2002-06-26 Grace Sainsbury <graces@redhat.com>
2500
2501 * monitor.h: Add the function regname to monitor_ops
2502 structure. This way NUM_REGS does not have to be a constant.
2503 * monitor.c (monitor_fetch_register): Added support for regname
2504 function. The function is called if the array regnames is NULL.
2505 (monitor_store_register): Same.
2506 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
2507 regnames array.
2508 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
2509 cpu32bug_cmds.regname to point to new function.
2510 * abug-rom.c (abug_regname): Same as above.
2511 (init_abug_cmds): Same.
2512 * dbug-rom.c (dbug_regname): Same as above.
2513 (init_dbug_cmds): Same.
2514 * remote-est.c (est_regname): Same.
2515 (init_est_cmds): Same.
2516 * rom68k-rom.c (rom68k_regname): Same.
2517 (init_rom68k_cmds): Same.
2518
2519 2002-06-25 Tom Tromey <tromey@redhat.com>
2520
2521 * breakpoint.c (delete_command): Don't repeat `delete' commands.
2522
2523 2002-06-25 Andrew Cagney <cagney@redhat.com>
2524
2525 * infrun.c (stop_registers): Change variable's type to ``struct
2526 regcache'''.
2527 (xmalloc_inferior_status): Delete function.
2528 (free_inferior_status): Delete function.
2529 (normal_stop): Use regcache_cpy.
2530 (struct inferior_status): Change type of fields ``stop_registers''
2531 and ``registers'' to ``struct regcache''.
2532 (write_inferior_status_register): Use regcache_write.
2533 (save_inferior_status): Instead of calling
2534 xmalloc_inferior_status, allocate the inf_status buffer directly.
2535 Use regcache_dup_no_passthrough and regcache_dup to save the
2536 buffers.
2537 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
2538 Replace the stop_registers regcache instead of overriding it. Use
2539 regcache_xfree. Instead of calling free_inferior_status, xfree
2540 the buffer directly.
2541 (discard_inferior_status): Use regcache_xfree. Instead of calling
2542 free_inferior_status, xfree the buffer directly.
2543 (build_infrun): Use regcache_xmalloc.
2544 (_initialize_infrun): Delete redundant call to build_infrun.
2545
2546 * Makefile.in (infcmd.o): Add $(regcache_h).
2547
2548 * infcmd.c: Include "regcache.h".
2549 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
2550 obtain the address of `stop_registers' register buffer.
2551 (print_return_value): Ditto.
2552
2553 * inferior.h (struct regcache): Add opaque declaration.
2554 (stop_registers): Change variable's declared type to ``struct
2555 regcache''.
2556
2557 2002-06-24 Tom Tromey <tromey@redhat.com>
2558
2559 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
2560 * target.c (initialize_targets): Fixed typo in
2561 trust-readonly-sections `show' documentation.
2562
2563 * main.c: Marked all strings with _().
2564
2565 2002-06-24 Don Howard <dhoward@redhat.com>
2566
2567 * memattr.c (create_mem_region): Treat hi == 0 as a special case
2568 that means max CORE_ADDR+1.
2569 (lookup_mem_region): Ditto.
2570 (mem_info_command): Ditto.
2571
2572 2002-06-24 Grace Sainsbury <graces@redhat.com>
2573
2574 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
2575 (REGISTER_BYTES_OK): Remove.
2576 (REGISTER_BYTES): Remove.
2577 (STORE_STRUCT_RETURN): Remove.
2578 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
2579 (STORE_RETURN_VALUE): Remove.
2580 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2581 (FRAME_CHAIN): Remove.
2582 (FRAMELESS_FUNCTION_INVOCATION): Remove.
2583 (FRAME_SAVED_PC): Remove.
2584 * m68k-tdep.c (m68k_register_bytes_ok):Add.
2585 (m68k_store_struct_return): Add.
2586 (m68k_deprecated_extract_return_value): Add.
2587 (m68k_deprecated_extract_struct_value_address): Add.
2588 (m68k_store_return_value): Add.
2589 (m68k_frame_chain): Add.
2590 (m68k_frameless_function_invocation): Add.
2591 (m68k_frame_saved_pc): Add.
2592 (m68k_gdbarch_init): added set_gdbarch calls for new
2593 functions and deleted macros.
2594
2595 2002-06-23 Tom Tromey <tromey@redhat.com>
2596
2597 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
2598 (ALLDEPFILES): Likewise.
2599 (udiheaders): Removed.
2600 (udip2soc.o): Likewise.
2601 (udi2go32.o): Likewise.
2602 (udr.o): Likewise.
2603 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
2604
2605 2002-06-22 Andrew Cagney <ac131313@redhat.com>
2606
2607 * infrun.c (_initialize_infrun): Delete unnecessary call to
2608 build_infrun.
2609
2610 * regcache.h: Update comments describing the regcache_cpy family
2611 of functions.
2612 (regcache_save, regcache_restore): Delete declaration.
2613 (regcache_save_no_passthrough): Delete declaration.
2614 (regcache_restore_no_passthrough): Delete declaration.
2615 * regcache.c (regcache_save): Delete function.
2616 (regcache_save_no_passthrough): Delete function.
2617 (regcache_restore): Delete function.
2618 (regcache_restore_no_passthrough): Delete function.
2619
2620 2002-06-21 Andrew Cagney <ac131313@redhat.com>
2621
2622 * config/m68k/tm-m68k.h: Fix typo.
2623 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
2624 (m68k_frame_init_saved_regs): Declare.
2625
2626 2002-06-21 Jim Blandy <jimb@redhat.com>
2627
2628 Remove some vestiges of Harris 88k support.
2629 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
2630 register numbering quirk.
2631 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
2632 odd symbols occurring in Harris 88k ELF targets.
2633
2634 2002-06-21 Tom Tromey <tromey@redhat.com>
2635
2636 * gdb_locale.h: New file.
2637 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
2638 (defs_h): Added gdb_locale.h.
2639 * configure, config.in: Rebuilt.
2640 * configure.in (PACKAGE): Define.
2641 * defs.h: Include gdb_locale.h.
2642 * main.c (captured_main): Call setlocale, bindtextdomain,
2643 textdomain.
2644
2645 2002-06-21 Dave Brolley <brolley@redhat.com>
2646
2647 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
2648 * config/frv/frv.mt: New file.
2649 * config/frv/tm-frv.h: New file.
2650 * configure.tgt: Support frv-*-*.
2651 * Makefile.in (frv-tdep.o): New target.
2652 * frv-tdep.c: New file.
2653 * NEWS: Mention frv.
2654
2655 2002-06-21 Dave Brolley <brolley@redhat.com>
2656
2657 * MAINTAINERS: Add self to "Write After Approval" list.
2658
2659 2002-06-21 Grace Sainsbury <graces@redhat.com>
2660
2661 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
2662 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2663 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
2664 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
2665 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
2666
2667 * m68k-tdep.c: Include arch-utils.h
2668 (m68k_register_raw_size): Add.
2669 (m68k_register_virtual_size): Add.
2670 (m68k_register_virtual_type): Add.
2671 (m68k_register_name): Add.
2672 (m68k_stack_align): Add.
2673 (m68k_register_byte): Add.
2674 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
2675 tm-m68k.h.
2676
2677 2002-06-21 Grace Sainsbury <graces@redhat.com>
2678
2679 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
2680 m68k_find_saved_regs.
2681 (m68k_pop_frame): Removed saved_regs structure, and replaced
2682 references to it with frame->saved_regs.
2683 (m68k_gdbarch_init): Added function calls to initialize the
2684 gdbarch structure.
2685 (m68k_fix_call_dummy): Add.
2686 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
2687 (CALL_DUMMY): Remove.
2688 (CALL_DUMMY_LENGTH): Remove.
2689 (CALL_DUMMY_START_OFFSET): Remove.
2690 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2691 (FIX_CALL_DUMMY): Remove.
2692 (PUSH_DUMMY_FRAME): Remove.
2693 (POP_FRAME): Remove.
2694
2695 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
2696
2697 * parse.c (parse_fprintf): New function used to avoid calls to
2698 fprintf in bison parser generated debug code.
2699 * parser-defs.h: Declaration of new parse_fprintf function.
2700 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
2701 Set YYDEBUG to 1 by default.
2702 Set YYFPRINTF as parse_fprintf.
2703
2704 2002-06-21 Michal Ludvig <mludvig@suse.cz>
2705
2706 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
2707 encoding anymore.
2708 (pointer_encoding, enum ptr_encoding): New.
2709 (execute_cfa_program): Take care about pointer encoding.
2710 (dwarf2_build_frame_info): Only call parse_frame_info for
2711 .debug_frame and .eh_frame.
2712 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
2713 fixed augmentation handling, added relative addressing,
2714 ignore duplicate FDEs. Added comments.
2715 * dwarf2cfi.c: Reindented.
2716
2717 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
2718
2719 * event-top.c (command_handler): Don't use space_at_cmd_start
2720 unless there is sbrk() on the host. Assign time and space data
2721 to union fields of the appropriate length.
2722
2723 2002-06-20 Michal Ludvig <mludvig@suse.cz>
2724
2725 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
2726 x86_64_register_name. Return type changed to 'const char *'.
2727 (x86_64_register_name2nr): Rename to x86_64_register_number.
2728 (x86_64_gdbarch_init): Update to reflect the change.
2729 * x86-64-tdep.h: Ditto.
2730 * x86-64-linux-nat.c (x86_64_fxsave_offset)
2731 (supply_fpregset): Ditto.
2732
2733 2002-06-19 Andrew Cagney <cagney@redhat.com>
2734
2735 * regcache.h: Update copyright.
2736 (struct regcache, struct gdbarch): Add opaque declarations.
2737 (current_regcache): Declare global variable.
2738 (regcache_read, regcache_write): Add gdbarch parameter.
2739 (regcache_save, regcache_save_no_passthrough)
2740 (regcache_restore, regcache_restore_no_passthrough)
2741 (regcache_dup, regcache_dup_no_passthrough)
2742 (regcache_cpy, regcache_cpy_no_passthrough)
2743 (deprecated_grub_regcache_for_registers)
2744 (deprecated_grub_regcache_for_register_valid)
2745 (regcache_valid_p): Add function declarations.
2746
2747 * regcache.c: Update copyright.
2748 (regcache_descr_handle): New global variable.
2749 (struct regcache_descr): Define.
2750 (init_legacy_regcache_descr, init_regcache_descr): New functions.
2751 (regcache_descr, xfree_regcache_descr): New functions.
2752 (struct regcache): Define.
2753 (regcache_xmalloc, regcache_xfree): New functions.
2754 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
2755 (regcache_dup, regcache_dup_no_passthrough): New functions.
2756 (regcache_valid_p, regcache_read_as_address): New functions.
2757 (deprecated_grub_regcache_for_registers): New function.
2758 (deprecated_grub_regcache_for_register_valid): New function.
2759 (current_regcache): New global variable.
2760 (register_buffer): Add regcache parameter. Update calls.
2761 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
2762 (read_register_gen, write_register_gen): Update register_buffer
2763 call. Test for legacy_p instead of gdbarch_register_read_p or
2764 gdbarch_register_write_p.
2765 (regcache_collect): Update register_buffer call.
2766 (build_regcache): Rewrite. Use deprecated grub functions.
2767 (regcache_save, regcache_save_no_passthrough): New functions.
2768 (regcache_restore, regcache_restore_no_passthrough): New
2769 functions.
2770 (_initialize_regcache): Create the regcache_data_handle. Swap
2771 current_regcache global variable.
2772
2773 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
2774 parameter to regcache_read and regcache_write calls.
2775 (sh4_register_read): Ditto.
2776 (sh64_pseudo_register_read): Ditto.
2777 (sh64_register_read): Ditto.
2778 (sh_pseudo_register_write): Ditto.
2779 (sh4_register_write): Ditto.
2780 (sh64_pseudo_register_write): Ditto.
2781 (sh64_register_write): Ditto.
2782
2783 * defs.h (XCALLOC): Define.
2784
2785 2002-06-19 Grace Sainsbury <graces@redhat.com>
2786
2787 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
2788 * m68k-tdep.c (m68k_gdbarch_init): Added.
2789 (m68k_dump_tdep): Added.
2790
2791 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
2792
2793 * ada-lang.c (fill_in_ada_prototype): Update comment.
2794
2795 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
2796
2797 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
2798 MIPS_ABI_LAST.
2799 (mips_abi_string, mips_abi_strings): New.
2800 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
2801 (mips_gdbarch_init): Set tdep->found_abi. Don't set
2802 tdep->mips_abi_string. Honor mips_abi_string. Default to
2803 O32 if no ABI is found.
2804 (mips_dump_tdep): Use mips_abi_strings.
2805 (mips_abi_update): New function.
2806 (_initialize_mips_tdep): Initialize mips_abi_string. Add
2807 ``set mips abi'' and ``show mips abi''. Check the size of
2808 mips_abi_strings.
2809
2810 2002-06-19 Andrew Cagney <cagney@redhat.com>
2811
2812 * i386-linux-tdep.c (i386_linux_register_name): Make return type
2813 constant.
2814
2815 2002-06-18 Joel Brobecker <brobecker@gnat.com>
2816
2817 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
2818 current frame using only the first stack size adjustment. All
2819 subsequent size adjustments are not considered to be part of
2820 the "static" part of the current frame.
2821 Compute the address of the saved registers relative to the
2822 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
2823 in use in this frame.
2824
2825 2002-06-18 Don Howard <dhoward@redhat.com>
2826
2827 * valops.c (value_ind): Use value_at_lazy() when dereferencing
2828 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
2829 suggesting this solution.
2830
2831 2002-06-18 Andrew Cagney <ac131313@redhat.com>
2832
2833 * config/romp/xm-rtbsd.h: Delete file.
2834 * config/romp/rtbsd.mh: Delete file.
2835
2836 2002-06-18 Keith Seitz <keiths@redhat.com>
2837
2838 * breakpoint.c (condition_command): Post breakpoint_modify
2839 when a condition is added to an existing breakpoint.
2840 (commands_command): Likewise for commands.
2841 (set_ignore_count): Likewise for ignore counts.
2842 If no tty, do not simply return, still need to send event
2843 notification.
2844 (ignore_command): Only print a newline if the command came
2845 from a tty.
2846 Don't call breakpoints_changed, since this is now properly
2847 handled by set_ignore_count.
2848
2849 2002-06-18 Andrew Cagney <cagney@redhat.com>
2850
2851 * MAINTAINERS: Note that cris-elf target can be compiled with
2852 -Werror.
2853 * cris-tdep.c (cris_register_name): Make return type constant.
2854 (cris_breakpoint_from_pc): Ditto.
2855
2856 2002-06-18 Michal Ludvig <mludvig@suse.cz>
2857
2858 * frame.h (struct frame_info): Change type of context to
2859 'struct context'.
2860
2861 2002-06-17 Andrew Cagney <cagney@redhat.com>
2862
2863 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
2864 pointer.
2865 * gdbarch.h, gdbarch.c: Regenerate.
2866 * config/mips/tm-mips.h (mips_register_name): Update.
2867 * i386-tdep.h (i386_register_name): Update.
2868 * mips-tdep.c (mips_register_name): Update
2869 * alpha-tdep.c (alpha_register_name): Update.
2870 * arch-utils.c (legacy_register_name): Update.
2871 * arch-utils.h (legacy_register_name): Update.
2872 * avr-tdep.c (avr_register_name): Update.
2873 * ia64-tdep.c (ia64_register_name): Update.
2874 * i386-tdep.c (i386_register_name): Update.
2875 * sparc-tdep.c (sparc32_register_name): Update.
2876 (sparc64_register_name): Update.
2877 (sparclite_register_name): Update.
2878 (sparclet_register_name): Update.
2879 * sh-tdep.c (sh_generic_register_name): Update.
2880 (sh_sh_register_name): Update.
2881 (sh_sh3_register_name): Update.
2882 (sh_sh3e_register_name): Update.
2883 (sh_sh_dsp_register_name): Update.
2884 (sh_sh3_dsp_register_name): Update.
2885 (sh_sh4_register_name): Update.
2886 (sh_sh64_register_name): Update.
2887 * s390-tdep.c (s390_register_name): Update.
2888 * rs6000-tdep.c (rs6000_register_name): Update.
2889 * ns32k-tdep.c (ns32k_register_name_32082): Update.
2890 (ns32k_register_name_32382): Update.
2891 * d10v-tdep.c (d10v_ts2_register_name): Update.
2892 (d10v_ts3_register_name): Update.
2893 * xstormy16-tdep.c (xstormy16_register_name): Update.
2894 * vax-tdep.c (vax_register_name): Update.
2895 * v850-tdep.c (v850_register_name): Update.
2896 * m68hc11-tdep.c (m68hc11_register_name): Update.
2897 * mn10300-tdep.c (mn10300_generic_register_name): Update.
2898 (am33_register_name): Update.
2899
2900 2002-06-17 Grace Sainsbury <graces@redhat.com>
2901
2902 * m68k-tdep.c: Reindented.
2903
2904 2002-06-17 Andrew Cagney <ac131313@redhat.com>
2905
2906 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
2907 list of predefined types.
2908
2909 2002-06-16 Mark Kettenis <kettenis@gnu.org>
2910
2911 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
2912 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
2913 REGISTER_CONVERT_TO_RAW): Remove defines.
2914 (i386_register_virtual_type, i386_register_convertible,
2915 i386_register_convert_to_virtual, i386_register_convert_to_raw):
2916 Remove prototypes.
2917 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2918 macros mentioned above.
2919
2920 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
2921 (i386lynx_saved_pc_after_call): Remove prototype.
2922 * i386ly-tdep.c: Include "i386-tdep.h".
2923 (i386lynx_saved_pc_after_call): Make static. Use
2924 read_memory_nobpt instead of read_memory. Use
2925 read_memory_unsigned_integer instead of read_memory_integer.
2926 (i386lynx_init_abi): New function.
2927 (i386lynx_coff_osabi_sniffer): New function.
2928 (_initialize_i386bsd_tdep): New function.
2929
2930 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
2931 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
2932 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
2933 (i386_fix_call_dummy): Remove prototype.
2934 * i386-tdep.c (i386_call_dummy_words): New variable.
2935 (i386_gdbarch_init): Adjust for removal of the
2936 macros mentioned above.
2937
2938 2002-06-15 Andrew Cagney <ac131313@redhat.com>
2939
2940 * command.h (add_setshow_auto_boolean_cmd): Replace
2941 add_set_auto_boolean_cmd.
2942 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
2943 add_set_auto_boolean_cmd.
2944 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
2945 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
2946 mask-address'' command.
2947 (show_mask_address): Add cmd parameter.
2948 * remote.c (add_packet_config_cmd): Update. Change type of
2949 set_func and show_func to cmd_sfunc_ftype.
2950 (_initialize_remote): Update `set remote Z-packet'
2951 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
2952 (show_remote_protocol_e_packet_cmd): Ditto.
2953 (show_remote_protocol_E_packet_cmd): Ditto.
2954 (show_remote_protocol_P_packet_cmd): Ditto.
2955 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
2956 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
2957 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
2958 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
2959 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
2960 (show_remote_protocol_Z_packet_cmd): Ditto.
2961 (show_remote_protocol_binary_download_cmd): Ditto.
2962 (show_remote_cmd): Pass NULL to all of above.
2963
2964 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2965
2966 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
2967 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
2968 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
2969 POP_FRAME): Remove defines.
2970 (i386_push_arguments, i386_store_struct_return,
2971 i386_extract_return_value, i386_store_return_value,
2972 i386_extract_struct_value_address, i386_push_dummy_frame,
2973 i386_pop_frame): Renove prototypes.
2974 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
2975 macros mentioned above.
2976
2977 2002-06-15 Andrew Cagney <ac131313@redhat.com>
2978
2979 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
2980 add_set_boolean_cmd.
2981 (add_setshow_cmd): New function.
2982 * command.h (add_setshow_boolean_cmd): Replace
2983 add_set_boolean_cmd.
2984 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
2985 and ``set rdiromatzero''.
2986 * maint.c (_initialize_maint_cmds): Update commented out code.
2987 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
2988 * target.c (initialize_targets): Update `set
2989 trust-readonly-sections'.
2990 * remote.c (_initialize_remote): Update `set remotebreak'.
2991
2992 2002-06-15 Mark Kettenis <kettenis@gnu.org>
2993
2994 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
2995 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
2996 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
2997 fit into multi-arch framework.
2998 (i386_breakpoint_from_pc): New function.
2999 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3000 above.
3001
3002 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3003 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3004 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3005 (i386_frameless_function_invocation, i386_frame_num_args,
3006 i386_frame_init_saved_regs): Remove prototypes.
3007 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3008 macros mentioned above.
3009
3010 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3011
3012 * cli/cli-decode.c (set_cmd_cfunc): Update.
3013 (set_cmd_sfunc): Update.
3014 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3015 (set_cmd_sfunc, set_cmd_cfunc): Update.
3016 * cli/cli-decode.h: Update.
3017
3018 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3019
3020 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3021 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3022
3023 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3024
3025 * defs.h (auto_boolean): Declare enum.
3026 * command.h (cmd_auto_boolean): Delete enum.
3027 * mips-tdep.c (mask_address_var): Update.
3028 (mips_mask_address_p): Update.
3029 (show_mask_address): Update.
3030 * remote.c (struct packet_config): Update.
3031 (update_packet_config): Update.
3032 (show_packet_config_cmd): Update.
3033 (packet_ok): Update.
3034 (add_packet_config_cmd): Update.
3035 (_initialize_remote):
3036 * command.h: Update.
3037 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3038 (do_setshow_command): Update.
3039 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3040 * cli/cli-decode.h: Update.
3041
3042 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3043
3044 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3045 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3046 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3047 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3048 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3049 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3050
3051 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3052 list of DJGPP COFF targets.
3053
3054 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3055 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3056 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3057 (FP0_REGNUM): Remove define.
3058 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3059 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3060 (i386_register_virtual_size): Remove protoype.
3061 * i386-tdep.c (i386_register_virtual_size): Removed.
3062 (i386_extract_return_value, i386_store_return_value): Use
3063 FP0_REGNUM instead of NUM_FREGS to determine whether the
3064 floating-point registers are available.
3065 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3066 Adjust for removal of macros mentioned above.
3067
3068 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3069
3070 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3071 comments.
3072 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3073 Remove prototypes.
3074 (supply_gregset, fill_gregset): Remove use of register keyword and
3075 remove declaration for regmap. Use I386_NUM_GREGS instead of
3076 NUM_REGS and NUM_FREGS.
3077 (FPREGSET_FSAVE_OFFSET): Remove.
3078 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3079 NUM_FREGS to determine whether the floating-point registers are
3080 available.
3081
3082 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3083 gnu_store_registers): Replace usage of NUM_GREGS with
3084 I386_NUM_GREGS.
3085
3086 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3087 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3088 usage of NUM_GREGS with I386_NUM_GREGS.
3089
3090 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3091
3092 * i386bsd-nat.c: Include "i386-tdep.h".
3093 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3094 I386_NUM_GREGS.
3095
3096 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3097 and associated comment. They no longer make any sense, since we
3098 don't use this file anymore on Linux.
3099
3100 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3101 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3102 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3103 elements in these arrays.
3104 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3105 MAX_NUM_REGS.
3106
3107 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3108
3109 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3110 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3111
3112 2002-06-14 Andrew Cagney <cagney@redhat.com>
3113
3114 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3115 EXTRACT_RETURN_VALUE.
3116 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3117 EXTRACT_STRUCT_VALUE_ADDRESS.
3118 * gdbarch.h, gdbarch.c: Regenerate.
3119
3120 * values.c (value_being_returned): Handle
3121 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3122 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3123
3124 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3125 * arm-tdep.c (arm_gdbarch_init): Update.
3126 * avr-tdep.c (avr_gdbarch_init): Update.
3127 * cris-tdep.c (cris_gdbarch_init): Update.
3128 * d10v-tdep.c (d10v_gdbarch_init): Update.
3129 * ia64-tdep.c (ia64_gdbarch_init): Update.
3130 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3131 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3132 * s390-tdep.c (s390_gdbarch_init): Update.
3133 * sh-tdep.c (sh_gdbarch_init): Update.
3134 * s390-tdep.c (s390_gdbarch_init): Update.
3135 * sparc-tdep.c (sparc_gdbarch_init): Update.
3136 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3137 * v850-tdep.c (v850_gdbarch_init): Update.
3138 * vax-tdep.c (vax_gdbarch_init): Update.
3139 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3140 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3141
3142 * config/arc/tm-arc.h: Update.
3143 * config/d30v/tm-d30v.h: Update.
3144 * config/fr30/tm-fr30.h: Update.
3145 * config/h8300/tm-h8300.h: Update.
3146 * config/h8500/tm-h8500.h: Update.
3147 * config/i386/tm-i386.h: Update.
3148 * config/i386/tm-ptx.h: Update.
3149 * config/i386/tm-symmetry.h: Update.
3150 * config/i960/tm-i960.h: Update.
3151 * config/m32r/tm-m32r.h: Update.
3152 * config/m68k/tm-delta68.h: Update.
3153 * config/m68k/tm-linux.h: Update.
3154 * config/m68k/tm-m68k.h: Update.
3155 * config/m88k/tm-m88k.h: Update.
3156 * config/mcore/tm-mcore.h: Update.
3157 * config/mips/tm-mips.h: Update.
3158 * config/mn10200/tm-mn10200.h: Update.
3159 * config/pa/tm-hppa.h: Update.
3160 * config/pa/tm-hppa64.h: Update.
3161 * config/sparc/tm-sp64.h: Update.
3162 * config/sparc/tm-sparc.h: Update.
3163 * config/sparc/tm-sparclet.h: Update.
3164 * config/z8k/tm-z8k.h: Update.
3165
3166 2002-06-14 Andrew Cagney <cagney@redhat.com>
3167
3168 * Makefile.in (i386_linux_tdep_h): Define.
3169 (i386_tdep_h, i387_tdep_h): Define.
3170 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3171 $(i386_tdep_h) and $(i387_tdep_h).
3172 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3173
3174 2002-06-14 Mark Kettenis <kettenis@gnu.org>
3175
3176 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3177 Already covered by the default.
3178
3179 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3180 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3181 (i386_gdbarch_init): Initialize long_double_format and long_double
3182 bit.
3183
3184 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3185 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3186 Move these to ...
3187 * config/i386/i386sol2.mh: ... here.
3188 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3189 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3190 (SIGCONTEXT_PC_OFFSET): Remove define.
3191 (IN_SIGTRAMP): Remove define.
3192 * i386-sol2-tdep.c: New file.
3193
3194 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3195 * config/i386/tm-i386nw.h: Removed.
3196
3197 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3198 USE_STRUCT_CONVENTION): Remove defines.
3199 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3200 (get_longjmp_target): Remove prototype.
3201 (IN_SIGTRAMP): Remove define.
3202 (i386bsd_in_sigtramp): Remove prototype.
3203 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3204 function. Update comment accordingly
3205 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3206 (FRAME_SAVED_PC): Remove define.
3207 (i386bsd_frame_saved_pc): Remove prototype.
3208 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3209 GET_LONGJMP_TARGET): Remove defines.
3210 (get_longjmp_target): Remove prototype.
3211 (IN_SIGTRAMP): Remove define.
3212 (i386bsd_in_sigtramp): Remove prototype.
3213 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3214 function. Update comment accordingly
3215 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3216 (FRAME_SAVED_PC): Remove define.
3217 (i386bsd_frame_saved_pc): Remove prototype.
3218 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3219 Remove prototype.
3220 (USE_STRUCT_CONVENTION): Remove prototype.
3221 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3222 declaration.
3223 (_initialize_i386bsd_nat): Revise logic to determine some
3224 constants at compile time when compiling a native GDB. Warn if
3225 things don't match up with what we expect.
3226 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3227 Remove variables.
3228 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3229 to use date stored in `struct gdbarch_tdep'.
3230 (i386bsd_sigcontext_offset): Remove varaible.
3231 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3232 stored in `struct gdbarch_tdep'.
3233 (i386bsd_frame_saved_pc): Make static.
3234 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3235 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3236 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3237 i386fbsd4_sc_pc_offset): New variables.
3238 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3239 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3240 functions.
3241 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3242 functions.
3243 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3244 Modify the value of i386fbsd_sigtramp_start and
3245 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3246 i386fbsd_sigtramp_end.
3247 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3248 function.
3249
3250 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3251 define to i386-linux-tdep.h.
3252 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
3253 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
3254 defines.
3255 (i386_linux_register_name, i386_linux_register_byte,
3256 i386_linux_register_raw_size): Remove prototypes.
3257 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
3258 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
3259 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
3260 TARGET_WRITE_PC): Remove defines.
3261 (i386_linux_in_sigtramp, i386_linux_frame_chain,
3262 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
3263 i386_linux_write_pc): Remove prototypes.
3264 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3265 (get_longjmp_target): Remove prototype.
3266 * i386-linux-tdep.h: New file.
3267 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3268 * i386-linux-tdep.c: Include "i386-tdep.h" and
3269 "i386-linux-tdep.h".
3270 (i386_linux_register_name, i386_linux_register_byte,
3271 i386_linux_register_raw_size, i386_linux_in_sigtramp,
3272 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
3273 Make static.
3274 (i386_linux_init_abi): New function.
3275 (_initialize_i386_linux_tdep): New function.
3276
3277 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
3278 (i386_saved_pc_after_call): Remove prototype.
3279 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
3280 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
3281 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
3282 (i386_register_name, i386_stab_reg_to_regnum,
3283 i386_dwarf_reg_to_regnum): Remove prototypes.
3284 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
3285 SIZEOF_SSE_REGS): Remove defines.
3286 (REGISTER_BYTES): Remove define.
3287 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
3288 (i386_register_byte, i386_register_raw_size): Remove prototypes.
3289 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
3290 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
3291 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
3292 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
3293 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
3294 (get_longjmp_target): Remove prototype.
3295 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
3296 (sigtramp_saved_pc): Remove define.
3297 (i386v4_sigtramp_saved_pc): Remove prototype.
3298 * config/i386/tm-go32.h (FRAME_CHAIN,
3299 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
3300 (i386go32_frame_saved_pc): Remove prototype.
3301 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3302 (get_longjmp_target): Remove prototype.
3303 * i386-tdep.h: Include "osabi.h".
3304 (enum i386_abi): Removed.
3305 (enum struct_return): New enum.
3306 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
3307 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
3308 sc_pc_offset members.
3309 (i386_gdbarch_register_os_abi): Remove prototype.
3310 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
3311 I386_SSE_NUM_REGS): New defines.
3312 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
3313 I386_SSE_SIZEOF_REGS): New defines.
3314 (i386_register_name, i386_register_byte, i386_register_raw_size):
3315 New prototypes.
3316 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
3317 (i386bsd_sigtramp_saved_pc): New prototype.
3318 * i386-tdep.c: Don't include "elf-bfd.h".
3319 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
3320 i386_frame_chain, i386_saved_pc_after_call): Make static.
3321 (i386_frame_saved_pc): Rewrite to call architecture dependent
3322 function to deal with signal handlers. Make static.
3323 (i386go32_frame_saved_pc): Removed.
3324 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
3325 Removed.
3326 (i386_get_longjmp_target): New function.
3327 (default_struct_convention, pcc_struct_convention,
3328 reg_struct_convention, valid_conventions, struct_convention): New
3329 variables.
3330 (i386_use_struct_convention): New function.
3331 (i386v4_sigtramp_saved_pc): Renamed to
3332 i386_svr4_sigtramp_saved_pc. Made static. Moved.
3333 (i386_pc_in_sigtramp): New function.
3334 (i386_abi_names): Removed.
3335 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
3336 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
3337 Removed.
3338 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
3339 i386_gdbarch_register_os_abi): Removed.
3340 (struct i386_abi_handler): Removed.
3341 (i386_abi_handler_list): Removed.
3342 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
3343 functions.
3344 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
3345 i386_nw_init_abi): New functions.
3346 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
3347 Use set_gdbarch_xxx() calls instead of relying on macros for a
3348 number of calls.
3349 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
3350 (_initialize_i386_tdep): Add new 'struct-convcention' command.
3351 Register the various architecture variants defined in this file.
3352
3353 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3354
3355 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
3356 (struct main_type): Remove arg_types member. Update comments for
3357 struct field.
3358 (TYPE_ARG_TYPES): Remove.
3359 (TYPE_FN_FIELD_ARGS): Update.
3360 (smash_to_method_type): Update prototype.
3361
3362 * c-typeprint.c (cp_type_print_method_args): Take method type
3363 instead of argument list. Use new argument layout. Simplify.
3364 (c_type_print_args): Use new argument layout. Simplify.
3365 (c_type_print_base): Update call to cp_type_print_method_args.
3366 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
3367 argument; use die->type instead. Update call to
3368 smash_to_method_type.
3369 (read_structure_scope): Update call to dwarf2_add_member_fn.
3370 * gdbtypes.c (allocate_stub_method): Update comment.
3371 (smash_to_method_type): Take new NARGS and VARARGS arguments.
3372 Use new argument layout.
3373 (check_stub_method): Use new argument layout. Don't count
3374 void as an argument.
3375 (print_arg_types): Update comments. Use new argument layout.
3376 (recursive_dump_type): Don't print arg_types member.
3377 * hpread.c (hpread_read_struct_type): Use new argument layout.
3378 (fixup_class_method_type): Likewise.
3379 (hpread_type_lookup): Likewise.
3380 * stabsread.c (read_type): Update calls to read_args and
3381 smash_to_method_type.
3382 (read_args): Use new argument layout. Simplify.
3383 * valops.c (typecmp): Use new argument layout. Update parameters
3384 and comments. Simplify.
3385 (hand_function_call): Use new argument layout.
3386 (search_struct_method): Update call to typecmp.
3387 (find_overload_match): Use new argument layout.
3388
3389 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3390
3391 * NEWS: Mention multithreaded debug support for gdbserver.
3392
3393 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3394
3395 * MAINTAINERS: Mention NEWS.
3396
3397 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3398
3399 * gdbserver/regcache.c: Add comment.
3400
3401 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
3402
3403 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
3404 (struct mips_objfile_private, compare_pdr_entries): New.
3405 (non_heuristic_proc_desc): Read the ".pdr" section if it
3406 is present.
3407
3408 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3409
3410 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
3411 (arm_debug): New static variable.
3412 (_initialize_arm_tdep): Add ``set debug arm'' command.
3413
3414 2002-06-12 Andrew Cagney <ac131313@redhat.com>
3415
3416 * Makefile.in (sim_arm_h): Define.
3417 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
3418 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
3419 (arm_register_sim_regno): New function, map an internal REGNUM
3420 onto a simulator register number.
3421 (arm_gdbarch_init): Set register_sim_regno.
3422
3423 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
3424
3425 * MAINTAINERS: Add self.
3426
3427 2002-06-11 Jim Blandy <jimb@redhat.com>
3428
3429 * source.c (source_info): Mention whether the symtab has
3430 information about preprocessor macros.
3431
3432 Call the command `info macro', not `show macro'.
3433 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
3434 Fix error message.
3435 (_initialize_macrocmd): Register `info_macro_command' in
3436 `infolist', not `showlist'.
3437
3438 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3439
3440 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
3441 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
3442 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
3443 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
3444 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
3445 unconditionally.
3446 (set_mipsfpu_single_command, set_mipsfpu_double_command)
3447 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
3448 (_initialize_mips_tdep): Remove dead code.
3449 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
3450 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3451 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
3452 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
3453 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
3454 MIPS_LAST_FP_ARG_REGNUM): Remove.
3455
3456 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
3457
3458 * gdbserver/thread-db.c: New file.
3459 * gdbserver/proc-service.c: New file.
3460 * gdbserver/acinclude.m4: New file.
3461 * gdbserver/Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
3462 proc-service.o, and thread-db.o.
3463 (linux-low.o): Add USE_THREAD_DB.
3464 * gdbserver/acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
3465 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
3466 * gdbserver/aclocal.m4: Regenerated.
3467 * gdbserver/config.in: Regenerated.
3468 * gdbserver/configure: Regenerated.
3469 * gdbserver/configure.in: Check for proc_service.h, sys/procfs.h,
3470 thread_db.h, and linux/elf.h headrs.
3471 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
3472 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
3473 Check for -lthread_db and thread support.
3474 * gdbserver/configure.srv: Enable thread_db support for ARM, i386, MIPS,
3475 PowerPC, and SuperH.
3476 * gdbserver/i387-fp.c: Constify arguments.
3477 * gdbserver/i387-fp.h: Likewise.
3478 * gdbserver/inferiors.c: (struct thread_info): Renamed from
3479 `struct inferior_info'. Remove PID member. Use generic inferior
3480 list header. All uses updated.
3481 (inferiors, signal_pid): Removed.
3482 (all_threads): New variable.
3483 (get_thread): Define.
3484 (add_inferior_to_list): New function.
3485 (for_each_inferior): New function.
3486 (change_inferior_id): New function.
3487 (add_inferior): Removed.
3488 (remove_inferior): New function.
3489 (add_thread): New function.
3490 (free_one_thread): New function.
3491 (remove_thread): New function.
3492 (clear_inferiors): Use for_each_inferior and free_one_thread.
3493 (find_inferior): New function.
3494 (find_inferior_id): New function.
3495 (inferior_target_data): Update argument type.
3496 (set_inferior_target_data): Likewise.
3497 (inferior_regcache_data): Likewise.
3498 (set_inferior_regcache_data): Likewise.
3499 * gdbserver/linux-low.c (linux_bp_reinsert): Remove.
3500 (all_processes, stopping_threads, using_thrads)
3501 (struct pending_signals, debug_threads, pid_of): New.
3502 (inferior_pid): Replace with macro.
3503 (struct inferior_linux_data): Remove.
3504 (get_stop_pc, add_process): New functions.
3505 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
3506 Use add_process and add_thread.
3507 (linux_attach_lwp): New function, based on old linux_attach. Use
3508 add_process and add_thread. Set stop_expected for new threads.
3509 (linux_attach): New function.
3510 (linux_kill_one_process): New function.
3511 (linux_kill): Kill all LWPs.
3512 (linux_thread_alive): Use find_inferior_id.
3513 (check_removed_breakpoints, status_pending_p): New functions.
3514 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
3515 Update. Use WNOHANG. Wait for cloned processes also. Update process
3516 struct for the found process.
3517 (linux_wait_for_event): New function.
3518 (linux_wait): Use it. Support LWPs.
3519 (send_sigstop, wait_for_sigstop, stop_all_processes)
3520 (linux_resume_one_process, linux_continue_one_process): New functions.
3521 (linux_resume): Support LWPs.
3522 (REGISTER_RAW_SIZE): Remove.
3523 (fetch_register): Use register_size instead. Call supply_register.
3524 (usr_store_inferior_registers): Likewise. Call collect_register.
3525 Fix recursive case.
3526 (regsets_fetch_inferior_registers): Improve error message.
3527 (regsets_store_inferior_registers): Add debugging.
3528 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
3529 (unstopped_p, linux_signal_pid): New functions.
3530 (linux_target_ops): Add linux_signal_pid.
3531 (linux_init_signals): New function.
3532 (initialize_low): Call it. Initialize using_threads.
3533 * gdbserver/regcache.c (inferior_regcache_data): Add valid
3534 flag.
3535 (get_regcache): Fetch registers lazily. Add fetch argument
3536 and update all callers.
3537 (regcache_invalidate_one, regcache_invalidate): New
3538 functions.
3539 (new_register_cache): Renamed from create_register_cache.
3540 Return the new regcache.
3541 (free_register_cache): Change argument to a void *.
3542 (registers_to_string, registers_from_string): Call get_regcache
3543 with fetch flag set.
3544 (register_data): Make static. Pass fetch flag to get_regcache.
3545 (supply_register): Call get_regcache with fetch flag clear.
3546 (collect_register): Call get_regcache with fetch flag set.
3547 (collect_register_as_string): New function.
3548 * gdbserver/regcache.h: Update.
3549 * gdbserver/remote-utils.c (putpkt): Flush after debug output and use
3550 stderr.
3551 Handle input interrupts while waiting for an ACK.
3552 (input_interrupt): Use signal_pid method.
3553 (getpkt): Flush after debug output and use stderr.
3554 (outreg): Use collect_register_as_string.
3555 (new_thread_notify, dead_thread_notify): New functions.
3556 (prepare_resume_reply): Check using_threads. Set thread_from_wait
3557 and general_thread.
3558 (look_up_one_symbol): Flush after debug output.
3559 * gdbserver/server.c (step_thread, server_waiting): New variables.
3560 (start_inferior): Don't use signal_pid. Update call to mywait.
3561 (attach_inferior): Update call to mywait.
3562 (handle_query): Handle qfThreadInfo and qsThreadInfo.
3563 (main): Don't fetch/store registers explicitly. Use
3564 set_desired_inferior. Support proposed ``Hs'' packet. Update
3565 calls to mywait.
3566 * gdbserver/server.h: Update.
3567 (struct inferior_list, struct_inferior_list_entry): New.
3568 * gdbserver/target.c (set_desired_inferior): New.
3569 (write_inferior_memory): Constify.
3570 (mywait): New function.
3571 * gdbserver/target.h: Update.
3572 (struct target_ops): New signal_pid method.
3573 (mywait): Removed macro, added prototype.
3574
3575 * gdbserver/linux-low.h (regset_func): Removed.
3576 (regset_fill_func, regset_store_func): New.
3577 (enum regset_type): New.
3578 (struct regset_info): Add type field. Use new operation types.
3579 (struct linux_target_ops): stop_pc renamed to get_pc.
3580 Add decr_pc_after_break and breakpoint_at.
3581 (get_process, get_thread_proess, get_process_thread)
3582 (strut process_info, all_processes, linux_attach_lwp)
3583 (thread_db_init): New.
3584
3585 * gdbserver/linux-arm-low.c (arm_get_pc, arm_set_pc,
3586 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
3587 (the_low_target): Add new members.
3588 * gdbserver/linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
3589 (i386_store_fpxregset): Constify.
3590 (target_regsets): Add new kind identifier.
3591 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
3592 (i386_set_pc): Add debugging.
3593 (i386_breakpoint_at): New function.
3594 (the_low_target): Add new members.
3595 * gdbserver/linux-mips-low.c (mips_get_pc, mips_set_pc)
3596 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
3597 (mips_breakpoint_at): New.
3598 (the_low_target): Add new members.
3599 * gdbserver/linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
3600 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
3601 (the_low_target): Add new members.
3602 * gdbserver/linux-sh-low.c (sh_get_pc, sh_set_pc)
3603 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
3604 (the_low_target): Add new members.
3605 * gdbserver/linux-x86-64-low.c (target_regsets): Add new kind
3606 identifier.
3607
3608 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3609
3610 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
3611 (unwind_tmp_obstack_free, parse_frame_info)
3612 (update_context, cfi_read_fp, cfi_write_fp)
3613 (cfi_frame_chain, cfi_init_extra_frame_info)
3614 (cfi_virtual_frame_pointer): Use the above function.
3615 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
3616
3617 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
3618
3619 * v850-tdep.c (v850_type_is_scalar): New function.
3620 (v850_use_struct_convention): Match current gcc implementation
3621 as close as possible.
3622 (v850_push_arguments): Fix stack_offset handling. Don't write
3623 struct_addr into register. This is done by v850_store_struct_return.
3624 (v850_extract_return_value): Care for structs.
3625 (v850_store_return_value): Ditto.
3626 (v850_store_struct_return): Actually write address.
3627
3628 2002-06-11 Michal Ludvig <mludvig@suse.cz>
3629
3630 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
3631 without debug information too.
3632
3633 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3634
3635 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
3636 Make multi-arch pure.
3637 * gdbarch.h, gdbarch.c: Re-generate.
3638 * arm-tdep.c (arm_print_float_info): Update.
3639 * arch-utils.h (default_print_float_info): Update.
3640 * arch-utils.c (default_print_float_info): Update.
3641 * infcmd.c (float_info): Update call.
3642
3643 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3644
3645 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
3646 the front of the initialize list.
3647
3648 2002-06-10 Andrew Cagney <ac131313@redhat.com>
3649
3650 * infrun.c (struct inferior_status): Replace fields
3651 selected_frame_address and selected_level with field
3652 selected_frame_id.
3653 (save_inferior_status): Update. Use get_frame_id.
3654 (struct restore_selected_frame_args): Delete.
3655 (restore_selected_frame): Update. Use frame_find_by_id.
3656 (restore_inferior_status): Update.
3657
3658 * breakpoint.h (struct breakpoint): Change type of
3659 watchpoint_frame to frame_id.
3660 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
3661 call to get_current_frame.
3662 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
3663 get_current_frame.
3664 (watchpoint_check): Use frame_find_by_id.
3665
3666 * frame.h (record_selected_frame): Delete declaration.
3667 * stack.c (record_selected_frame): Delete function.
3668
3669 * frame.h (struct frame_id): Define.
3670 (get_frame_id): Declare.
3671 (frame_find_by_id): Declare.
3672 * frame.c (frame_find_by_id): New function.
3673 (get_frame_id): New function.
3674
3675 2002-06-10 Andrey Volkov <avolkov@transas.com>
3676
3677 * ser-e7kpc.c: Fix duplicated define and call of
3678 _initialize_ser_e7000pc
3679
3680 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3681
3682 * signals/signals.c (target_signal_from_host): Fix #ifdef
3683 SIGRTMIN case.
3684 (do_target_signal_to_host): Likewise.
3685
3686 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
3687
3688 * mips-tdep.c (mips_find_abi_section): New function.
3689 (mips_gdbarch_init): Call it.
3690
3691 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3692
3693 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
3694 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
3695 after Andrew's 2002-06-08 gdbarch change.
3696
3697 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3698
3699 * i386-linux-nat.c (suppy_gregset): Don't supply
3700 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
3701 register cache.
3702 (fill_gregset): Don't fetch it under the same circumstances.
3703
3704 2002-06-09 Andrew Cagney <cagney@redhat.com>
3705
3706 * Makefile.in (callback_h): Define.
3707 (remote_sim_h): Update path to remote-sim.h.
3708 (remote-rdp.o): Add $(callback_h).
3709 (remote-sim.o): Use $(callback_h).
3710 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
3711 * remote-rdp.c: Include "gdb/callback.h".
3712
3713 2002-06-09 Mark Kettenis <kettenis@gnu.org>
3714
3715 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
3716 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
3717
3718 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3719
3720 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
3721 * rdi-share/serpardr.c: Ditto.
3722 * rdi-share/unixcomm.c: Ditto.
3723 * rdi-share/serdrv.c: Ditto.
3724 * rdi-share/hostchan.h: Ditto.
3725 * rdi-share/hostchan.c: Ditto.
3726 * rdi-share/host.h: Ditto.
3727 * rdi-share/devsw.c: Ditto.
3728
3729 * objfiles.h: Change type of obj_private to void pointer.
3730 * pa64solib.c: Update copyright. Don't include "assert.h", use
3731 strcmp instead of STREQ, use LONGEST, do not use PTR
3732 * somsolib.c: Ditto.
3733
3734 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
3735 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
3736 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
3737
3738 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3739
3740 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
3741 (default_get_saved_register): Delete function.
3742 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
3743 generic_unwind_get_saved_register.
3744 * gdbarch.h, gdbarch.c: Re-generate.
3745
3746 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3747
3748 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
3749 generic_func_frame_chain_valid.
3750 * gdbarch.h, gdbarch.c: Re-generate.
3751 * blockframe.c (generic_func_frame_chain_valid): Only check
3752 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
3753 passing FP to PC_IN_CALL_DUMMY.
3754 Fix PR gdb/360.
3755
3756 2002-06-08 Andrew Cagney <ac131313@redhat.com>
3757
3758 * gdbarch.sh (struct gdbarch_data): Add field init_p.
3759 (register_gdbarch_data): Initialize init_p.
3760 (gdbarch_data): Initialize data pointer using the init function.
3761 (init_gdbarch_data): Delete function.
3762 (gdbarch_update_p): Update.
3763 (initialize_non_multiarch): Update.
3764 (struct gdbarch): Add field initialized_p.
3765 * gdbarch.h, gdbarch.c: Re-generate.
3766
3767 2002-06-07 Michal Ludvig <mludvig@suse.cz>
3768
3769 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
3770 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
3771 better do the things actually here.
3772 * x86-64-tdep.c (x86_64_register_name2nr): New.
3773 (x86_64_register_name): Renamed to x86_64_register_nr2name.
3774 (x86_64_gdbarch_init): Respect the above change.
3775 * x86-64-tdep.h (x86_64_register_name2nr)
3776 (x86_64_register_nr2name): Add prototypes.
3777 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
3778
3779 2002-06-06 Michael Snyder <msnyder@redhat.com>
3780
3781 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
3782 Delete extra braces and re-indent.
3783 (d10v_store_return_value): Char return values
3784 must be shifted over by one byte in R0.
3785 (d10v_extract_return_value): Delete extra braces, re-indent.
3786
3787 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3788
3789 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
3790 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
3791 (d10v_integer_to_address): Rewrite.
3792 (d10v_frame_init_saved_regs): When reading fp and sp registers use
3793 the d10v specific functions which take care of converting to the
3794 correct space.
3795
3796 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
3797
3798 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
3799 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
3800
3801 2002-06-02 Andrew Cagney <ac131313@redhat.com>
3802
3803 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
3804 includes.
3805 * config/tm-linux.h: Ditto.
3806 * config/alpha/tm-alphalinux.h: Ditto.
3807 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
3808 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
3809 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
3810 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
3811 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
3812 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
3813 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
3814 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
3815 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
3816 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
3817 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
3818 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
3819 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
3820 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
3821 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
3822 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
3823 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
3824 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
3825 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
3826 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
3827 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
3828 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
3829 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
3830 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
3831 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
3832 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
3833 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
3834 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
3835 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
3836 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
3837 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
3838 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
3839 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
3840 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
3841 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
3842 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
3843 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
3844
3845 2002-05-04 Aidan Skinner <aidan@velvet.net>
3846
3847 * ada-exp.tab.c: New file
3848 * ada-exp.y: New file
3849 * ada-lang.c: New file
3850 * ada-lang.h: New file
3851 * ada-lex.c: New file
3852 * ada-lex.l: New file
3853 * ada-tasks.c: New file
3854 * ada-typeprint.c: New file
3855 * ada-valprint.c: New file
3856
3857 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3858
3859 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
3860 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
3861
3862 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
3863
3864 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
3865 insetead of ppc-linux-tdep.o.
3866 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
3867 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
3868
3869 2002-06-02 Andrew Cagney <ac131313@redhat.com>
3870
3871 2002-05-07 Christian Groessler <chris@groessler.org>
3872 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
3873 bit register contents for little endian hosts.
3874
3875 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3876
3877 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
3878 any maintainer.
3879
3880 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3881
3882 * gdbarch.h: Regenerate.
3883
3884 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3885
3886 * MAINTAINERS: Add everyone to write-after-approval list.
3887
3888 2002-06-01 Andrew Cagney <ac131313@redhat.com>
3889
3890 * stack.c (frame_info): Use frame_register_unwind instead of
3891 saved_regs. Mention when the SP is on the stack or in a register.
3892
3893 * frame.h (frame_register_unwind_ftype): Define. Document.
3894 (struct frame_info): Add field register_unwind and
3895 register_unwind_cache.
3896 (frame_register_unwind): Declare.
3897 (generic_unwind_get_saved_register): Declare.
3898
3899 * frame.c (frame_register_unwind): New function.
3900 (generic_unwind_get_saved_register): New function.
3901
3902 * blockframe.c (generic_call_dummy_register_unwind): New function.
3903 (frame_saved_regs_register_unwind): New function.
3904 (set_unwind_by_pc): New function.
3905 (create_new_frame): New function.
3906 (get_prev_frame): New function.
3907
3908 2002-05-30 Andrew Cagney <ac131313@redhat.com>
3909
3910 * a29k-share/: Delete directory.
3911 * remote-vx29k.c: Delete file.
3912
3913 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3914
3915 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
3916 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3917
3918 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3919
3920 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
3921 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
3922 (sparc64nbsd-nat.o)
3923 (sparcnbsd-nat.o)
3924 (sparcnbsd-tdep.o): New dependency lists.
3925 * NEWS: Note new UltraSPARC NetBSD native configuration.
3926 * configure.host (sparc64-*-netbsd*): New host.
3927 * configure.tgt (sparc-*-netbsdelf*)
3928 (sparc-*-netbsd*): Set gdb_target to nbsd.
3929 (sparc64-*-netbsd*): New target.
3930 * sparc64nbsd-nat.c: New file.
3931 * sparcnbsd-nat.c: New file.
3932 * sparcnbsd-tdep.c: New file.
3933 * sparcnbsd-tdep.h: New file.
3934 * config/sparc/nbsd.mt: New file.
3935 * config/sparc/nbsd64.mh: New file.
3936 * config/sparc/nbsd64.mt: New file.
3937 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
3938 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3939 (HOST_IPC): Remove.
3940 * config/sparc/nbsdaout.mt: Remove.
3941 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
3942 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
3943 (HOST_IPC): Remove.
3944 * config/sparc/nbsdelf.mt: Remove.
3945 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
3946 sparc-nat.c compatiblity defines.
3947 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
3948 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
3949 * config/sparc/tm-nbsd64.h: New file.
3950 * config/sparc/tm-nbsdaout.h: Remove.
3951 * config/sparc/xm-nbsd.h: Remove.
3952
3953 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
3954
3955 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
3956 * sparc-tdep.c: Include osabi.h.
3957 (gdbarch_tdep): Add osabi member.
3958 (_initialize_sparc_tdep): Use gdbarch_register.
3959 (sparc_gdbarch_init): Use generic OS ABI framework.
3960 (sparc_dump_tdep): New function.
3961
3962 2002-05-30 Kevin Buettner <kevinb@redhat.com>
3963
3964 * corefile.c (do_captured_read_memory_integer): Return non-zero
3965 result.
3966 (safe_read_memory_integer): Copy result of memory read when
3967 status is non-zero. Also, add comments.
3968
3969 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
3970
3971 * Makefile.in (ppc_tdep_h): Define.
3972 (ppc-linux-nat.o)
3973 (ppc-linux-tdep.o)
3974 (rs6000-tdep.o): Use $(ppc_tdep_h).
3975 (ppc-sysv-tdep.o)
3976 (ppcnbsd-nat.o)
3977 (ppcnbsd-tdep.o): New dependency lists.
3978 * ppc-tdep.h: Use generic OS ABI framework.
3979 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
3980 (ppc_linux_init_abi): New functions.
3981 (ppc_sysv_abi_broken_use_struct_convention)
3982 (ppc_sysv_abi_use_struct_convention)
3983 (ppc_sysv_abi_push_arguments): Move to...
3984 * ppc-sysv-tdep.c: ...here.
3985 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
3986 * rs6000-tdep.c (process_note_abi_tag_sections)
3987 (get_elfosabi): Remove.
3988 (rs6000_gdbarch_init): Use generic OS ABI framework.
3989 (rs6000_dump_tdep): New function.
3990 (_initialize_rs6000_tdep): Use gdbarch_register.
3991 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
3992 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
3993 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
3994 of ppc-linux-tdep.o.
3995 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
3996 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
3997 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
3998 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
3999 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4000 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4001
4002 2002-05-29 Jim Blandy <jimb@redhat.com>
4003
4004 * macroscope.c (default_macro_scope): Put `void' in empty argument
4005 list.
4006
4007 2002-05-29 Andrew Cagney <ac131313@redhat.com>
4008
4009 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4010 * arch-utils.c: Include "sim-regno.h".
4011 * gdbarch.sh: Don't include "sim-regno.h".
4012 * gdbarch.h, gdbarch.c: Regenerate.
4013 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4014 here.
4015 * arch-utils.h (legacy_register_sim_regno): To here.
4016 * remote-sim.c (legacy_register_sim_regno): Move function from
4017 here.
4018 * arch-utils.c (legacy_register_sim_regno): To here.
4019
4020 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4021
4022 * sim-regno.h: New file.
4023 * Makefile.in (sim_regno_h): Define.
4024 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4025 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4026 (legacy_register_sim_regno): New function.
4027 (one2one_register_sim_regno): New function.
4028 (gdbsim_fetch_register): Rewrite.
4029 (gdbsim_store_register): Only store a register when
4030 REGISTER_SIM_REGNO is valid.
4031 * d10v-tdep.c: Include "sim-regno.h".
4032 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4033 (d10v_ts3_register_sim_regno): Ditto.
4034 * gdbarch.sh: Include "sim-regno.h".
4035 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4036 * gdbarch.h, gdbarch.c: Regenerate.
4037 * arch-utils.h (default_register_sim_regno): Delete declaration.
4038 * arch-utils.c (default_register_sim_regno): Delete function.
4039
4040 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4041
4042 * ppcnbsd-nat.c: Rewrite.
4043 * ppcnbsd-tdep.c: New file.
4044 * ppcnbsd-tdep.h: New file.
4045 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4046 solib.o, and solib-svr4.o.
4047 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4048 nbsd-tdep.o, and corelow.o.
4049
4050 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4051
4052 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4053 `tr' and `sed'. Mention that `broken' targets are not expected to
4054 build.
4055
4056 2002-05-27 Michal Ludvig <mludvig@suse.cz>
4057
4058 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4059 Let PC point right after the prologue before looking up symbols.
4060
4061 2002-05-27 Martin M. Hunt <hunt@redhat.com>
4062
4063 * i386-tdep.c (i386_register_virtual_type): Return
4064 builtin_type_vec128i for SSE registers.
4065
4066 * gdbtypes.h (builtin_type_vec128i): Declare.
4067
4068 * gdbtypes.c (build_builtin_type_vec128i): New function.
4069 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4070 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4071 (build_gdbtypes): Initialize new builtin vector types.
4072 (_initialize_gdbtypes): Register new vector types with gdbarch.
4073
4074 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4075
4076 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4077 since it has been multi-arch'd.
4078 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4079 Move Alpha and VAX multi-arch news entries to same section
4080 as other multi-arch news.
4081
4082 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4083
4084 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4085 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4086 static. Rename some register numbers to put them in ns32k-tdep
4087 private namespace.
4088 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4089 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4090 functions.
4091 (_initialize_ns32k_tdep): Use gdbarch_register.
4092 * ns32k-tdep.h: New file.
4093 * ns32knbsd-tdep.c: New file.
4094 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4095 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4096 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4097 REGISTER_BYTES, REGISTER_BYTE): Remove.
4098 * config/ns32k/tm-ns32k.h: New file.
4099 * config/ns32k/tm-umax.h: Remove.
4100
4101 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4102
4103 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4104 ns32k_store_struct_return, ns32k_extract_return_value,
4105 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4106 functions.
4107 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4108 ns32k_saved_pc_after_call.
4109 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4110 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4111 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4112 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4113 ns32k_extract_struct_value_address.
4114
4115 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4116
4117 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4118 ns32k_fix_call_dummy): New.
4119 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4120 ns32k_call_dummy_words.
4121 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4122 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4123 CALL_DUMMY_NARGS): Remove.
4124 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4125
4126 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4127
4128 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4129 ns32k_frame_saved_pc, ns32k_frame_args_address,
4130 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4131 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4132 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4133 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4134 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4135 (BREAKPOINT): Remove..
4136 (FRAME_CHAIN): Define as ns32k_frame_chain.
4137 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4138 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4139 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4140 (FRAME_FIND_SAVED_REGS): Remove.
4141 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4142 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4143 (POP_FRAME): Define as ns32k_pop_frame.
4144
4145 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4146
4147 * ns32k-tdep.c (ns32k_register_byte_32082,
4148 ns32k_register_byte_32382, ns32k_register_raw_size,
4149 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4150 functions.
4151 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4152 ns32k_register_byte_32382.
4153 * config/ns32k/tm-umax.h: Update copyright years.
4154 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4155 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4156 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4157 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4158 (ns32k_get_enter_addr): Fix prototype.
4159
4160 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4161
4162 * ns32k-tdep.c: Update copyright years.
4163 (ns32k_register_name_32082): New function.
4164 (ns32k_register_name_32382): Ditto.
4165 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4166 (REGISTER_NAME): Define as ns32k_register_name_32382.
4167 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4168 (REGISTER_NAME): Define as ns32k_register_name_32082.
4169
4170 2002-05-24 Jim Blandy <jimb@redhat.com>
4171
4172 * dwarf2read.c (free_line_header): Use xfree, not free.
4173
4174 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4175
4176 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4177 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4178
4179 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4180
4181 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4182
4183 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4184
4185 From Ross Alexander at NEC Europe:
4186 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4187
4188 2002-05-23 Michael Snyder <msnyder@redhat.com>
4189
4190 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4191 for input, rather than parse_and_eval_address.
4192
4193 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4194
4195 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4196 * Makefile.in (sim_d10v_h): Update definition.
4197
4198 2002-05-24 Andrew Cagney <cagney@redhat.com>
4199
4200 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4201 change `2002-05-22 Michael Snyder' below.
4202 (d10v_push_arguments): Ditto.
4203 (d10v_extract_return_value): Ditto.
4204
4205 2002-05-23 Jim Blandy <jimb@redhat.com>
4206
4207 * macrotab.c (check_for_redefinition): Don't complain if the new
4208 definition is the same as the previous one. Take more arguments
4209 to allow the comparison.
4210 (macro_define_object, macro_define_function): Pass more arguments
4211 to check_for_redefinition.
4212
4213 2002-05-22 Michael Snyder <msnyder@redhat.com>
4214
4215 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4216 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4217 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4218 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4219 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4220 Add a temp variable to save a call (and a memory read).
4221 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4222 if possible (so that PC_IN_CALL_DUMMY will work).
4223
4224 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
4225
4226 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4227
4228 2002-05-22 Michal Ludvig <mludvig@suse.cz>
4229
4230 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4231 fde->cie_ptr.
4232 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4233 (dwarf2_build_frame_info): Add offset to fde->initial_location
4234 so that frames of shared libraries are mapped correctly.
4235 (execute_stack_op): Change type of 'result' from ULONGEST to
4236 CORE_ADDR.
4237
4238 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4239
4240 * config/alpha/tm-nbsd.h: Include solib.h.
4241
4242 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4243
4244 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4245 assumptions about the host's byte order.
4246
4247 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4248
4249 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4250 to dependency list.
4251 * alphanbsd-tdep.c: Include solib-svr4.h.
4252 * shnbsd-tdep.c: Ditto.
4253
4254 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4255
4256 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4257 nbsd-tdep.h to dependency list.
4258 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4259 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4260 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4261 nbsdaout.mh and nbsdelf.mh consistently.
4262 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4263 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4264 nbsdaout.mt and nbsdelf.mh consistently.
4265 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4266 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4267 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4268 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4269 a.out shared library stuff from here...
4270 * config/nm-nbsdaout.h: ...to here.
4271 * config/tm-nbsd.h: Remove.
4272 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4273 * config/arm/nbsd.mh: Remove.
4274 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4275 nbsd-tdep.o.
4276 * config/arm/nbsdaout.mh: New file.
4277 * config/arm/nbsdelf.mh: New file.
4278 * config/arm/nm-nbsdaout.h: New file.
4279 * config/i386/nbsd.mh: Remove.
4280 * config/i386/nbsd.mt: Remove.
4281 * config/i386/nbsdaout.mh: New file.
4282 * config/i386/nbsdaout.mt: New file.
4283 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4284 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4285 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4286 i386_register_u_addr): Remove.
4287 * config/i386/nm-nbsdaout.h: New file.
4288 * config/i386/nm-nbsdelf.h: Remove.
4289 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4290 (USE_STRUCT_CONVENTION): Remove.
4291 * config/i386/tm-nbsdaout.h: New file.
4292 * config/i386/tm-nbsdelf.h: Remove.
4293 * config/m68k/nbsd.mh: Remove.
4294 * config/m68k/nbsd.mt: Remove.
4295 * config/m68k/nbsdaout.mh: New file.
4296 * config/m68k/nbsdaout.mt: New file.
4297 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4298 * config/m68k/nm-nbsdaout.h: New file.
4299 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4300 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4301 * config/ns32k/nbsd.mh: Remove.
4302 * config/ns32k/nbsd.mt: Remove.
4303 * config/ns32k/nbsdaout.mh: New file.
4304 * config/ns32k/nbsdaout.mt: New file.
4305 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4306 * config/ns32k/nm-nbsdaout.h: New file.
4307 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4308 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4309 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4310 (SVR4_SHARED_LIBS): Remove.
4311 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4312 * config/sparc/nbsd.mh: Remove.
4313 * config/sparc/nbsd.mt: Remove.
4314 * config/sparc/nbsdaout.mh: New file.
4315 * config/sparc/nbsdaout.mt: New file.
4316 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4317 * config/sparc/nbsdelf.mt: New file.
4318 * config/sparc/nm-nbsdaout.h: New file.
4319 * config/sparc/nm-nbsdelf.h: Remove.
4320 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4321 * config/sparc/tm-nbsdaout.h: New file.
4322
4323 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4324
4325 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4326 mipsnbsd-tdep.c
4327 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4328
4329 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4330
4331 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4332 shnbsd-nat.c.
4333 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4334
4335 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4336
4337 * NEWS: Note new MIPS NetBSD native configuration.
4338 * configure.host (mips*-*-netbsd*): New host.
4339 * configure.tgt (mips*-*-netbsd*): New target.
4340 * mipsnbsd-nat.c: New file.
4341 * mipsnbsd-tdep.c: New file.
4342 * mipsnbsd-tdep.h: New file.
4343 * config/mips/nbsd.mh: New file.
4344 * config/mips/nbsd.mt: New file.
4345 * config/mips/nm-nbsd.h: New file.
4346 * config/mips/tm-nbsd.h: New file.
4347
4348 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4349
4350 * Makefile.in (SFILES): Add osabi.c.
4351 (COMMON_OBS): Add osabi.o.
4352 (osabi.o): New dependency list.
4353 * osabi.c: New file.
4354 * osabi.h: New file.
4355 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4356
4357 * Makefile.in (alpha_tdep_h): Define and use instead of
4358 alpha-tdep.h.
4359 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4360 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4361 Remove.
4362 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4363 * alpha-tdep.h: Include osabi.h.
4364 (alpha_abi): Remove.
4365 (gdbarch_tdep): Use generic OS ABI framework.
4366 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4367 gdbarch_register_osabi.
4368 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4369 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4370 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4371
4372 * Makefile.in (sh_tdep_h): Add osabi.h.
4373 * sh-tdep.h (sh_osabi): Remove.
4374 (gdbarch_tdep): Use generic OS ABI framework.
4375 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4376 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4377 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4378 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4379
4380 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4381 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4382 gdbarch_register_osabi.
4383 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4384 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4385 (get_elfosabi): Rename to...
4386 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4387 ABI framework support routines.
4388 (arm_gdbarch_init): Use generic OS ABI framework.
4389 (arm_dump_tdep): Likewise.
4390 (_initialize_arm_tdep): Likewise.
4391 * arm-tdep.h: Include osabi.h.
4392 (arm_abi): Remove.
4393 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4394 osabi member.
4395 (arm_gdbarch_register_os_abi): Remove prototype.
4396 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4397 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4398
4399 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4400 * mips-tdep.c: Include osabi.h.
4401 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4402 OS ABI framework.
4403
4404 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4405
4406 * h8300-tdep.c: Fix formatting.
4407
4408 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
4409
4410 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
4411 printing vector registers.
4412
4413 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4414
4415 From Fernando Nasser:
4416 * remote.c (remote_async_open_1): Re-throw the exception when the
4417 connection fails.
4418 (remote_cisco_open): Ditto.
4419 (remote_open_1): Ditto.
4420
4421 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4422
4423 * remote.c (remote_start_remote_dummy): Add uiout parameter.
4424 (remote_start_remote): Add uiout parameter. Pass through to
4425 remote_start_remote_dummy.
4426 (remote_open_1): Use catch_exception instead of catch_errors.
4427 (remote_async_open_1): Ditto.
4428 (remote_cisco_open): Ditto.
4429
4430 2002-05-19 Andrew Cagney <ac131313@redhat.com>
4431
4432 * remote.c (remote_start_remote): Replace PTR with void pointer.
4433 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
4434 static.
4435
4436 2002-05-18 Andrew Cagney <ac131313@redhat.com>
4437
4438 * gdb_indent.sh: Allow the script to be run in the sim directory.
4439
4440 2002-05-18 Mark Kettenis <kettenis@gnu.org>
4441
4442 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
4443 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
4444
4445 * corelow.c (core_open): Only call set_gdbarch_from_file if
4446 exec_bfd is NULL.
4447
4448 2002-05-17 Andrey Volkov <avolkov@transas.com>
4449
4450 * h8300-tdep.c: Add support of EXR register
4451 * config/h8300/tm-h8300.h: Ditto.
4452
4453 2002-05-17 Andrey Volkov <avolkov@transas.com>
4454
4455 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
4456
4457 2002-05-17 Andrey Volkov <avolkov@transas.com>
4458
4459 * h8300-tdep.c: Change literal regnums to REGNO.
4460
4461 2002-05-17 Jim Blandy <jimb@redhat.com>
4462
4463 * NEWS: Note addition of macro support.
4464
4465 Expand preprocessor macros in C expressions.
4466 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
4467 (scan_macro_expansion, scanning_macro_expansion,
4468 finished_macro_expansion): New function declarations.
4469 (expression_macro_lookup_func, expression_macro_lookup_baton): New
4470 variable declarations.
4471 * parser-defs.h (expression_context_pc): New declaration.
4472 * parse.c (expression_context_pc): New variable.
4473 (parse_exp_1): Set expression_context_pc, as well as
4474 expression_context_block.
4475 * c-exp.y (yylex): If we're not already reading the result of a
4476 macro expansion, try to macro-expand the next token. When we're
4477 done scanning a macro expansion, switch back to the mainline text.
4478 Commas and `if's in a macro's expansion don't terminate the input.
4479 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
4480 (macro_original_text, macro_expanded_text,
4481 expression_macro_lookup_func, expression_macro_lookup_baton): New
4482 variables.
4483 (scan_macro_expansion, scanning_macro_expansion,
4484 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
4485 c_preprocess_and_parse): New functions.
4486 (c_language_defn, cplus_language_defn, asm_language_defn): Call
4487 c_preprocess_and_parse, instead of c_parse.
4488 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
4489 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
4490
4491 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
4492
4493 * sh-tdep.c (gdb_print_insn_sh64): Delete.
4494 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
4495 (sh_gdbarch_init): Always use gdb_print_insn_sh.
4496
4497 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
4498
4499 * NEWS: Add section for multi-arched targets. Add v850 to that section.
4500
4501 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
4502
4503 * Makefile.in (sh_tdep_h): Define and use.
4504 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
4505 register enum): Move to...
4506 * * sh-tdep.h: ...here.
4507 * sh-tdep.c: Include sh-tdep.h.
4508 * sh3-rom.c: Likewise.
4509 * shnbsd-tdep.c: Likewise.
4510
4511 2002-05-16 Michael Snyder <msnyder@redhat.com>
4512
4513 * arm-tdep.c: Spelling fix in comment.
4514
4515 2002-05-16 Jim Blandy <jimb@redhat.com>
4516
4517 Add commands for manually expanding macros and showing their
4518 definitions.
4519 * macrocmd.c, macroscope.c, macroscope.h: New files.
4520 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
4521 (macroscope_h): New variable.
4522 (HFILES_NO_SRCDIR): Add macroscope.h.
4523 (COMMON_OBS): Add macrocmd.o, macroscope.o.
4524 (macroscope.o, macrocmd.o): New rules.
4525
4526 Teach the Dwarf 2 reader to read macro information.
4527 * dwarf2read.c: #include "macrotab.h".
4528 (dwarf_macinfo_buffer): New variable.
4529 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
4530 dwarf_macinfo_size.
4531 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
4532 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
4533 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
4534 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
4535 dwarf2_macro_spaces_in_definition): New complaints.
4536 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
4537 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
4538 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
4539 the partial symbol table.
4540 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
4541 from what's recorded in the partial symbol table.
4542 (read_file_scope): If the compilation unit has a
4543 `DW_AT_macro_info' attribute, read its macro information.
4544 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
4545
4546 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4547
4548 Fix PR gdb/546
4549 * ser-tcp.c: Don't include <netinet/udp.h>.
4550
4551 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
4552
4553 * MAINTAINERS: Update my email address.
4554
4555 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
4556
4557 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
4558 include file of the same name.
4559
4560 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4561
4562 * configure.tgt: Mark v850 as multi-arched.
4563 * config/v850/tm-v850.h: Remove file.
4564 * config/v850/v850.mt: Eliminate TM_FILE.
4565
4566 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4567
4568 * v850-tdep.c: Full multi-arch.
4569 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
4570 Define GDB_MULTI_ARCH to 2.
4571
4572 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
4573
4574 * p-exp.y (current_type): New static variable.
4575 Carries the type of the expression at the position that is parsed.
4576 (push_current_type, pop_current_type): Two new functions. Used
4577 to store/restore current_type in expression on specific tokens.
4578 (search_field): New static variable. Set to one after parsing a point
4579 as at that point only a FIELDNAME token should be searched.
4580 (FIELDNAME): New token. After a point only a token belonging to
4581 current_type type definition is allowed.
4582 (all over token rules): reset and change current_type according
4583 to rules.
4584 (exp '[' rule): insert implicit array index field if
4585 exp is a pascal string type.
4586
4587 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4588
4589 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
4590 frame info. Use frame_info's saved_regs instead of matching member
4591 in extra_frame_info throughout.
4592 (v850_frame_init_saved_regs): New function.
4593 (v850_init_extra_frame_info): Move most functionality into
4594 v850_frame_init_saved_regs().
4595 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
4596 (v850_frame_find_saved_regs): Remove declaration.
4597 (FRAME_FIND_SAVED_REGS): Remove definition.
4598 (v850_frame_init_saved_regs): Add declaration.
4599 (FRAME_INIT_SAVED_REGS): Add definition.
4600
4601 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
4602
4603 * v850-tdep.c: Begin multi-arch'ing v850.
4604 (v850_target_architecture_hook): Remove function.
4605 (v850_gdbarch_init): New function. Add code previously in
4606 v850_target_architecture_hook().
4607 (_initialize_v850_tdep): Don't set target_architecture_hook.
4608 Call register_gdbarch_init() instead.
4609
4610 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
4611
4612 * gdbtypes.h (struct cplus_struct_type): Remove args field.
4613 * hpread.c (hpread_read_struct_type): Remove assignments to args.
4614 (fixup_class_method_type): Likewise.
4615
4616 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
4617
4618 From Martin Pool <mbp@samba.org>:
4619 * gdbserver/server.c (gdbserver_usage): New function.
4620 (main): Call it.
4621
4622 2002-05-15 Jim Blandy <jimb@redhat.com>
4623
4624 Add macro structures to GDB's symbol tables. Nobody puts anything
4625 in them yet.
4626 * symtab.h (struct symtab): New member: `macro_table'.
4627 * buildsym.h (pending_macros): New global variable.
4628 * buildsym.c: #include "macrotab.h".
4629 (buildsym_init): Initialize `pending_macros'.
4630 (end_symtab): If we found macro information while reading a CU's
4631 debugging info, do build a symtab structure for it. Make the
4632 symtab point to the macro information, and clear the
4633 `pending_macros' pointer which held it while we were reading the
4634 debug info.
4635 (really_free_pendings): Free any pending macro table.
4636 * objfiles.h (struct objfile): New member: `macro_cache'.
4637 * objfiles.c (allocate_objfile): Set allocate and free functions
4638 for the macro cache's objstack.
4639 (free_objfile): Empty the macro cache's obstack.
4640 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
4641 set new allocate and free functions for it.
4642 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
4643 free functions for the macro cache's objstack. (Why is this
4644 function building its own objfile?)
4645 * symmisc.c (print_objfile_statistics): Print statistics on the
4646 macro bcache.
4647 * Makefile.in: Note that buildsym.o depends on macrotab.h.
4648
4649 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4650
4651 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
4652 (REGISTER_U_ADDR): Delete definition.
4653 (arm_register_u_addr): Delete declaration.
4654
4655 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
4656
4657 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
4658 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
4659
4660 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4661
4662 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
4663 stop_at -> stop_pc.
4664
4665 2002-05-14 Andrew Cagney <ac131313@redhat.com>
4666
4667 * regcache.c (register_valid): Revise comments refering to "Not
4668 available" and "unavailable".
4669 * frame.c (frame_register_read): Ditto.
4670 * findvar.c (value_of_register): Ditto.
4671
4672 2002-05-15 Andrew Cagney <cagney@redhat.com>
4673
4674 * Makefile.in (remote_sim_h): Replace remote-sim_h.
4675 (remote-sim.o): Update dependencies.
4676 (d10v-tdep.o): Specify dependencies.
4677 (sim_d10v_h): Define.
4678
4679 2002-05-14 Jim Blandy <jimb@redhat.com>
4680
4681 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
4682 * macrotab.c (macro_lookup_inclusion, find_definition,
4683 new_macro_table): Same.
4684
4685 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
4686 not `! strcmp ()'. This is a dubious improvement.
4687 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
4688
4689 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
4690 although it's not necessary, to avoid a warning.
4691
4692 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4693
4694 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
4695 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
4696 TYPE_INSTANCE_FLAGS.
4697 (struct main_type): New.
4698 (struct type): Move most members to struct main_type. Change
4699 cv_type and as_type to new type_chain member. Add instance_flags.
4700 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
4701 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
4702 (finish_cv_type): Remove prototype.
4703 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
4704 Set TYPE_CHAIN.
4705 (alloc_type_instance): New function.
4706 (smash_type): New function.
4707 (make_pointer_type, make_reference_type, make_function_type)
4708 (smash_to_member_type, smash_to_method_type): Call smash_type.
4709 (make_qualified_type): New function.
4710 (make_type_with_address_space): Call make_qualified_type.
4711 (make_cv_type): Likewise.
4712 (finish_cv_type): Remove unnecessary function.
4713 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
4714 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
4715 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
4716 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
4717 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
4718 * hpread.c (hpread_read_struct_type): Likewise.
4719 * stabsread.c (read_struct_type): Likewise.
4720
4721 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
4722
4723 * configure.tgt: Add a catch all sh* target, for cases like
4724 sh[2,3,4]-elf and sh-hms.
4725
4726 2002-05-14 Keith Seitz <keiths@redhat.com>
4727
4728 * event-loop.c (create_file_handler): Don't do anything but
4729 update data when we are given a fd which we are already
4730 monitoring.
4731
4732 2002-05-14 Michal Ludvig <mludvig@suse.cz>
4733
4734 * dwarf2cfi.c (context_cpy): Copy registers correctly.
4735 (update_context): Use __func__ in warnings.
4736
4737 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
4738
4739 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
4740 and tcp_close to net_open and net_close.
4741 (net_open): Accept "udp:" and "tcp:" specifications. Connect
4742 using UDP if requested. Don't try to disable Nagle on UDP
4743 sockets.
4744 * remote.c (remote_serial_open): New function. Warn about UDP.
4745 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
4746
4747 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4748
4749 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
4750
4751 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
4752
4753 * configure.tgt: Remove sh-hms target.
4754 * MAINTAINERS: Don't list sh-hms as a separate target.
4755
4756 2002-05-13 Jim Blandy <jimb@redhat.com>
4757
4758 Add first preprocessor macro-expansion files.
4759 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
4760 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
4761 (splay_tree_h, macroexp_h, macrotab_h): New variable.
4762 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
4763 (COMMON_OBS): Add macrotab.o, macroexp.o.
4764 (macroexp.o, macrotab.o): New rules.
4765
4766 2002-05-13 Andrew Cagney <ac131313@redhat.com>
4767
4768 * config/m88k/tm-m88k.h: Update copyright.
4769 (m88k_target_write_pc): Declare
4770 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
4771 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
4772 (SHIFT_INST_REGS): Update definition.
4773 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
4774 using old definition of TARGET_WRITE_PC.
4775 * regcache.c (generic_target_write_pc): Delete code handling
4776 NNPC_REGNUM.
4777 * gdbarch.sh (NNPC_REGNUM): Delete.
4778 * gdbarch.h, gdbarch.c: Regenerate.
4779
4780 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
4781
4782 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
4783 builtin reg number.
4784
4785 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
4786
4787 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
4788 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
4789 (gen_address_of, gen_struct_ref, gen_repeat): Use type
4790 access macros.
4791 * c-typeprint.c (cp_type_print_method_args): Likewise.
4792 (c_type_print_args): Likewise.
4793 * d10v-tdep.c (d10v_push_arguments): Likewise.
4794 (d10v_extract_return_value): Likewise.
4795 * expprint.c (print_subexp): Likewise.
4796 * gdbtypes.c (lookup_primitive_typename): Likewise.
4797 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
4798 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
4799 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
4800 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
4801 (TYPE_VECTOR): Likewise.
4802 * hpread.c (hpread_read_struct_type)
4803 (fix_static_member_physnames, fixup_class_method_type)
4804 (hpread_type_lookup): Likewise.
4805 * mdebugread.c (parse_symbol, parse_type): Likewise.
4806 * p-lang.c (is_pascal_string_type): Likewise.
4807 * valops.c (hand_function_call): Likewise.
4808 * x86-64-tdep.c (classify_argument): Likewise.
4809
4810 * hpread.c (hpread_read_function_type)
4811 (hpread_read_doc_function_type): Call replace_type.
4812 * dstread.c (create_new_type): Delete.
4813 (decode_dst_structure, process_dst_function): Call alloc_type.
4814 Use type access macros.
4815
4816 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4817
4818 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
4819 the're not supported by the current architecture.
4820 (i387_fill_fxsave): Likewise.
4821
4822 2002-05-12 Fred Fish <fnf@redhat.com>
4823
4824 * symfile.c (default_symfile_offsets): Arrange for uninitialized
4825 sect_index_xxx members to index the first slot in section_offsets
4826 if all of the section_offsets are zero.
4827
4828 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4829
4830 * configure.tgt (sparc-*openbsd): Remove entry accidentially
4831 checked in with last change.
4832
4833 2002-05-12 Mark Kettenis <kettenis@gnu.org>
4834
4835 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
4836 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
4837 config.sub.
4838
4839 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
4840
4841 * Makefile.in: Update dependencies.
4842
4843 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4844
4845 * language.c (local_hex_string_custom): Simplify. Do not depend
4846 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
4847
4848 * memattr.c (mem_info_command): Replace calls to
4849 longest_local_hex_string and longest_local_hex_string_custom.
4850 * buildsym.c (make_blockvector): Ditto.
4851 * solib.c (info_sharedlibrary_command): Ditto.
4852 * tracepoint.c (tracepoints_info): Ditto.
4853 * symtab.c (print_msymbol_info): Ditto.
4854
4855 * language.c (local_hex_string): Delete.
4856 (local_hex_string_custom): Delete.
4857 (longest_local_hex_string): Rename to local_hex_string.
4858 (longest_local_hex_string_custom): Rename to
4859 local_hex_string_custom.
4860 * language.h (local_hex_string): Change parameter type to LONGEST.
4861 (local_hex_string_custom): Ditto.
4862 (longest_local_hex_string): Delete declaration.
4863 (longest_local_hex_string_custom): Ditto.
4864
4865 * solib.c: Update copyright.
4866 * memattr.c: Update copyright.
4867
4868 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4869
4870 * arch-utils.h (legacy_register_to_value): Declare.
4871 (legacy_value_to_register): Declare.
4872 (legacy_convert_register_p): Declare.
4873 * arch-utils.c (legacy_register_to_value): New function.
4874 (legacy_value_to_register): New function.
4875 (legacy_convert_register_p): New function.
4876
4877 * gdbarch.sh (REGISTER_TO_VALUE): Define.
4878 (VALUE_TO_REGISTER): Define.
4879 (CONVERT_REGISTER_P): Define.
4880 * gdbarch.h, gdbarch.c: Regenerate.
4881
4882 * valops.c (value_assign): Use CONVERT_REGISTER_P and
4883 VALUE_TO_REGISTER.
4884 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
4885 CONVERT_REGISTER_P.
4886
4887 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
4888 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4889
4890 * Makefile.in: Update dependencies for valops.c.
4891 * valops.c: Include "gdb_assert.h".
4892 (typecmp): Skip THIS parameter to methods.
4893 (find_method_list): Remove static_memfuncp argument,
4894 update callers. Check for stub methods.
4895 (find_value_oload_method_list): Don't set *static_memfuncp.
4896 (find_overload_match): Don't check for stub methods. Assert
4897 that methods are not stubbed. Handle static methods.
4898 (value_find_oload_method_list): Remove static_memfuncp argument.
4899 * gdbtypes.c (check_stub_method): Do not add THIS pointer
4900 to the argument list for static stub methods.
4901 * value.h (value_find_oload_method_list): Update prototype.
4902
4903 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4904
4905 * arch-utils.h (generic_register_size): Declare.
4906 (generic_register_raw_size, generic_register_virtual_size): Delete
4907 declarations.
4908 * arch-utils.c (generic_register_raw_size): Delete.
4909 (generic_register_size): New function.
4910 (generic_register_virtual_size): Delete.
4911
4912 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
4913 default generic_register_size.
4914 * gdbarch.h, gdbarch.c: Re-generate.
4915
4916 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
4917 register_virtual_size.
4918 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
4919 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4920
4921 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4922
4923 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
4924 * gdbarch.h, gdbarch.c: Regenerate.
4925 * gnu-v3-abi.c: Update copyright.
4926 (vtable_address_point_offset): Update.
4927 (gnuv3_rtti_type): Update.
4928 (gnuv3_baseclass_offset): Update.
4929 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
4930 (init_fetch_link_map_offsets): Update.
4931 * remote.c (get_remote_state): Update.
4932
4933 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
4934
4935 * TODO: Remove value_headof/value_from_vtable_info comment.
4936 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
4937 * values.c (value_headof, value_from_vtable_info): Delete.
4938 * value.h (value_from_vtable_info): Delete prototype.
4939
4940 2002-05-11 Andrew Cagney <ac131313@redhat.com>
4941
4942 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
4943 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
4944 $(gdb_regex_h).
4945 (gdb_assert_h): Define.
4946 (gdb_wait_h): Define.
4947 (gdb_regex_h): Define.
4948
4949 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
4950
4951 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
4952 * linespec.c (find_methods): Handle GCC 3.x template constructors.
4953
4954 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4955
4956 * nbsd-tdep.c: Fix comment.
4957
4958 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4959
4960 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
4961 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
4962 (nbsd-tdep.o): New dependency list.
4963 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
4964 nbsd-tdep.h.
4965 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
4966 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
4967 * nbsd-tdep.c: New file.
4968 * nbsd-tdep.h: New file.
4969 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
4970 nbsd-tdep.h.
4971 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
4972 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4973 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4974 * config/sh/nbsd.mt (TDEPFILES): Ditto.
4975
4976 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4977
4978 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
4979 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
4980 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
4981 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
4982 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
4983 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
4984
4985 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4986
4987 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
4988 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4989 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
4990 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
4991 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
4992 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
4993 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
4994
4995 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
4996
4997 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
4998 fetch_elfcore_registers to...
4999 * i386nbsd-tdep.c: ...here.
5000 (i386nbsd_use_struct_convention): Rename to...
5001 (i386nbsd_aout_use_struct_convention): ...this.
5002 (i386nbsd_supply_reg): New function.
5003 (i386nbsd_fill_reg): New function.
5004 (fetch_core_registers): Use i386nbsd_supply_reg.
5005 (fetch_elfcore_registers): Likewise.
5006 (_initialize_i386nbsd_tdep): New function.
5007 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5008 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5009 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5010 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5011 (i386nbsd_aout_use_struct_convention): ...this.
5012
5013 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5014
5015 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5016 (store_inferior_registers): Use shnbsd_fill_reg.
5017 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5018 sh_nbsd_supply_register): Collapse into...
5019 (shnbsd_supply_reg): ...this.
5020 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5021 (shnbsd_fill_reg): ...this.
5022 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5023 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5024 (fetch_core_registers): Use shnbsd_supply_reg.
5025 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5026 (sh_nbsd_core_fns): Rename to...
5027 (shnbsd_core_fns): ...this.
5028 (sh_nbsd_elfcore_fns): Rename to...
5029 (shnbsd_elfcore_fns): ...this.
5030 (sh_nbsd_init_abi): Rename to...
5031 (shnbsd_init_abi): ...this.
5032 (_initialize_sh_nbsd_tdep): Rename to...
5033 (_initialize_shnbsd_tdep): ...this.
5034 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5035 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5036 sh_nbsd_fill_register): Remove prototypes.
5037 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5038
5039 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5040
5041 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5042 (i387-nat.o): Delete dependency list.
5043 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5044 (x86-64-linux-nat.o): Likewise.
5045 * i387-nat.c: Delete file, moving contents to...
5046 * i387-tdep.c: ...here.
5047 * i387-nat.h: Rename...
5048 * i387-tdep.h: ...to this.
5049 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5050 * i386-linux-nat.c: Likewise.
5051 * i386bsd-nat.c: Likewise.
5052 * i386gnu-nat.c: Likewise.
5053 * i386nbsd-nat.c: Likewise.
5054 * i386v4-nat.c: Likewise.
5055 * x86-64-linux-nat.c: Likewise.
5056 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5057 * config/i386/go32.mh (NATDEPFILES): Likewise.
5058 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5059 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5060 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5061 * config/i386/linux.mh (NATDEPFILES): Likewise.
5062 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5063 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5064 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5065 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5066
5067 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5068
5069 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5070 (alphanbsd-nat.o): Remove dependency list.
5071 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5072 * alphanbsd-nat.c: Delete. Contents moved to...
5073 * alphanbsd-tdep.c: ...here.
5074 (_initialize_alphanbsd_tdep): Register core functions.
5075 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5076
5077 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5078
5079 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5080 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5081 (alphanbsd-nat.o): Likewise.
5082 (alphabsd-tdep.o): New dependency list.
5083 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5084 (fill_gregset): Use alphabsd_fill_reg.
5085 (supply_fpregset): Use alphabsd_supply_fpreg.
5086 (fill_fpregset): Use alphabsd_fill_fpreg.
5087 (fetch_inferior_registers): Use struct reg and struct fpreg
5088 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5089 and alphabsd_supply_fpreg.
5090 (store_inferior_registers): Use struct reg and struct fpreg
5091 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5092 and alphabsd_fill_fpreg.
5093 * alphabsd-tdep.c: New file.
5094 * alphabsd-tdep.h: New file.
5095 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5096 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5097 alphabsd_supply_fpreg.
5098 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5099 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5100
5101 2002-05-11 Eric Christopher <echristo@redhat.com>
5102
5103 * mips-tdep.c (mips_double_register_type): Fix thinko.
5104 (mips_single_register_type): Ditto.
5105 * MAINTAINERS: Add self.
5106
5107 2002-05-11 Mark Kettenis <kettenis@gnu.org>
5108
5109 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5110 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5111 right thing on architectures with different endianness and/or
5112 integer sizes.
5113
5114 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5115
5116 From Christian Limpach <chris@Pin.LU>
5117 * configure.in: Change sed expression which comments out
5118 NATDEPFILES to also comment out continuation lines.
5119 * configure: Regenerate.
5120
5121 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5122
5123 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5124 big patch.
5125
5126 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5127
5128 * sh-tdep.c: Include correct file.
5129
5130 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5131
5132 New support for sh64-elf (sh5) target.
5133
5134 * configure.tgt: For sh64-elf target, default to sh-elf.
5135
5136 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5137 (struct gdbarch_tdep): Add new fields for new registers and ABI
5138 info.
5139
5140 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5141 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5142 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5143 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5144 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5145 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5146 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5147 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5148 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5149 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5150 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5151 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5152 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5153 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5154 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5155 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5156 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5157 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5158 sign_extend, sh64_nofp_frame_init_saved_regs,
5159 sh64_init_extra_frame_info, sh64_get_saved_register,
5160 sh64_extract_struct_value_address, sh64_pop_frame,
5161 sh64_push_arguments, sh64_extract_return_value,
5162 sh64_store_return_value, sh64_show_media_regs,
5163 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5164 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5165 sh_sh64_register_virtual_type,
5166 sh_sh64_register_convert_to_virtual,
5167 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5168 sh64_register_read, sh64_pseudo_register_write,
5169 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5170 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5171 sh64_do_pseudo_register, sh_compact_do_registers_info,
5172 sh64_do_registers_info, sh_gdbarch_init): New functions.
5173
5174 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5175
5176 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5177
5178 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
5179
5180 * linespec.c (decode_line_1): Check for a double quote after
5181 a filename correctly.
5182
5183 2002-05-10 Jim Blandy <jimb@redhat.com>
5184
5185 Properly track the size of the current objfile's .debug_line section.
5186 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5187 (DWARF_LINE_SIZE): New macro.
5188 (dwarf2_build_psymtabs_hard): Record the line section's size in
5189 the partial symbol table.
5190 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5191 symbol table.
5192
5193 2002-05-10 Petr Sorfa <petrs@caldera.com>
5194
5195 * ia64-tdep.c: Handle breakpoints on L instruction type
5196 in MLX instruction bundle by moving the breakpoint to
5197 the third slot (X instruction type) as L holds only data.
5198
5199 2002-05-10 Kevin Buettner <kevinb@redhat.com>
5200
5201 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5202 (process_one_symbol): Complain about discarding local symbols
5203 due to a misplaced N_LBRAC entry.
5204
5205 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
5206
5207 From Daniel Berlin <dan@cgsoftware.com>
5208 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5209 decrease the depth we are at, in the case of templates.
5210
5211 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5212
5213 * mips-tdep.c (mips_float_register_type): New function.
5214 (mips_double_register_type): New function.
5215 (mips_print_register): Use them.
5216 (do_fp_register_row): Likewise.
5217
5218 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5219
5220 * signals/signals.c (signals): Remove conditional compilation around
5221 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
5222 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
5223
5224 2002-05-09 Michael Snyder <msnyder@redhat.com>
5225
5226 * remote-rdp.c (remote_rdp_can_run): Remove.
5227
5228 2002-05-09 Tom Tromey <tromey@redhat.com>
5229
5230 * jv-valprint.c (java_val_print): Handle `char' as a special case
5231 of TYPE_CODE_INT.
5232
5233 2002-05-09 Michael Snyder <msnyder@redhat.com>
5234
5235 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5236 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5237 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
5238 str r(0123),[sp,#nn].
5239 (arm_skip_prologue): Ditto. Also make disassembly
5240 order-independent by placing it in a loop.
5241
5242 2002-05-06 Michael Snyder <msnyder@redhat.com>
5243
5244 * stabsread.c (read_type): Add recognition for new attribute:
5245 "@V;" means that an array type is actually a vector.
5246 This is analogous to the vector flag that's been added to dwarf2.
5247
5248 2002-05-09 Mark Kettenis <kettenis@gnu.org>
5249
5250 * i386-tdep.h (i386_abi): New enum.
5251 (struct gdbarch_tdep): Replace os_ident member with abi.
5252 (i386_gdbarch_register_os_abi): New prototype.
5253 * i386-tdep.c (i386_abi_names): New array.
5254 (process_note_abi_tag_sections): Removed.
5255 (process_note_sections): New function.
5256 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5257 (struct i386_abi_handler): New struct.
5258 (i386_abi_handler_list): New variable.
5259 (i386_gdbarch_register_os_abi): New function.
5260 (i386_gdbarch_init): Adapt for the changes given above.
5261
5262 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
5263
5264 * gregset.h: Say "GNU/Linux".
5265
5266 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
5267
5268 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5269 (build_gdbtypes): Build builtin_type_v2_float.
5270 (_initialize_gdbtypes): Register new builtin type.
5271
5272 2002-05-08 Andrew Cagney <ac131313@redhat.com>
5273
5274 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5275 (clear_gdbarch_swap): New function.
5276 (initialize_non_multiarch): Call.
5277 (gdbarch_update_p): Before calling init(), swap out and clear the
5278 existing architecture.
5279 * gdbarch.c: Regenerate.
5280
5281 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5282
5283 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5284 alphanbsd-tdep.c.
5285
5286 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5287
5288 * sh-nbsd-nat.c: Rename to...
5289 * shnbsd-nat.c: ...this.
5290 * sh-nbsd-tdep.c: Rename to...
5291 * shnbsd-tdep.c: ...this.
5292 * sh-nbsd-tdep.h: Rename to...
5293 * shnbsd-tdep.h: ...this.
5294 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5295 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5296
5297 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
5298
5299 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5300 concatenation for command help messages.
5301
5302 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5303
5304 * NEWS: Note new sh*-*-netbsdelf* configuration.
5305 * configure.host: Set gdb_host_cpu to sh for all sh*.
5306 (sh*-*-netbsdelf*): New host.
5307 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5308 (sh*-*-netbsdelf*): New target.
5309 * sh-nbsd-nat.c: New file.
5310 * sh-nbsd-tdep.c: New file.
5311 * sh-nbsd-tdep.h: New file.
5312 * config/sh/nbsd.mh: New file.
5313 * config/sh/nbsd.mt: New file.
5314 * config/sh/nm-nbsd.h: New file.
5315 * config/sh/tm-nbsd.h: New file.
5316
5317 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5318
5319 * sh-tdep.c (sh_osabi_names): Declare.
5320 (process_note_abi_tag_sections): New function.
5321 (get_elfosabi): Ditto.
5322 (sh_gdbarch_register_os_abi): Ditto.
5323 (sh_dump_tdep): Ditto.
5324 _initialize_sh_tdep): Use gdbarch_register to register
5325 sh_gdbarch_init and sh_dump_tdep.
5326 * config/sh/tm-sh.h (sh_osabi): Declare.
5327 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5328
5329 2002-05-07 Andrew Cagney <ac131313@redhat.com>
5330
5331 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5332 (thumb_scan_prologue): Ditto.
5333 (arm_find_callers_reg): Ditto.
5334 (arm_frame_chain): Ditto.
5335 (arm_init_extra_frame_info): Ditto.
5336 (arm_frame_saved_pc): Ditto.
5337 (arm_pop_frame): Ditto.
5338 (arm_push_return_address): New function.
5339 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5340 call_dummy_location, call_dummy_breakpoint_offset_p,
5341 call_dummy_breakpoint_offset, call_dummy_p,
5342 call_dummy_stack_adjust_p, call_dummy_words,
5343 sizeof_call_dummy_words, call_dummy_start_offset,
5344 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5345 call_dummy_address, push_return_address and push_dummy_frame for
5346 generic dummy frames.
5347
5348 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5349
5350 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5351 size computation for alloca.
5352 (sh_fp_frame_init_saved_regs): Likewise.
5353
5354 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
5355
5356 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5357 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
5358 * arm-tdep.c (arm_store_return_value): Use them.
5359 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5360 * remote-rdp.c (remote_rdp_fetch_register): Use
5361 ARM_MAX_REGISTER_RAW_SIZE.
5362 (remote_rdp_store_register): Likewise.
5363
5364 2002-05-07 Michal Ludvig <mludvig@suse.cz>
5365
5366 * dwarf2cfi.c: Code cleanup, removed unused variables,
5367 added default labels to switch {} statements.
5368 * x86-64-tdep.c: Ditto.
5369 * x86-64-linux-nat.c: Ditto.
5370
5371 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5372
5373 * solib.h: Protect against multiple inclusion.
5374
5375 2002-05-06 Jim Blandy <jimb@redhat.com>
5376
5377 Add first preprocessor macro-expansion files.
5378 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5379 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5380 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5381 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5382 (COMMON_OBS): Add macrotab.o, macroexp.o.
5383 (macroexp.o, macrotab.o): New rules.
5384
5385 Separate the job of reading the line number info statement program
5386 header (...expialidocious) out into its own function.
5387 * dwarf2read.c (struct line_head, struct filenames, struct
5388 directories): Replace with...
5389 (struct line_header): New structure, containing the full
5390 contents of the statement program header, including the
5391 include directory and file name tables.
5392 (read_file_scope): If we have line number info, instead of just
5393 calling dwarf_decode_lines to do all the work, call
5394 dwarf_decode_line_header first to get a `struct line_header'
5395 containing the data in the statement program header, and then
5396 pass that to dwarf_decode_lines, which will pick up where that
5397 left off. Be sure to clean up the `struct line_header' object.
5398 (dwarf_decode_line_header, free_line_header, add_include_dir,
5399 add_file_name): New functions.
5400 (dwarf_decode_lines): Move all the code to read the statement
5401 program header into dwarf_decode_line_header. Take the line
5402 header it built as the first argument, instead of the offset to
5403 the compilation unit's line number info. Use the new `struct
5404 line_header' type instead of the old structures. No need to do
5405 cleanups here now, since we don't allocate anything.
5406 (dwarf2_statement_list_fits_in_line_number_section,
5407 dwarf2_line_header_too_long): New complaints.
5408
5409 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
5410
5411 * gdbtypes.c (init_vector_type): New function.
5412 (build_builtin_type_vec128): Simplify the representation of SIMD
5413 registers.
5414 (build_gdbtypes): Initialize new builtin vector types.
5415 (_initialize_gdbtypes): Register new vector types with gdbarch.
5416 (builtin_type_v4_float, builtin_type_v4_int32,
5417 builtin_type_v8_int16, builtin_type_v16_int8,
5418 builtin_type_v2_int32, builtin_type_v4_int16,
5419 builtin_type_v8_int8): New (renamed) SIMD types.
5420
5421 2002-05-06 Mark Kettenis <kettenis@gnu.org>
5422
5423 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
5424 (i387_fill_fxsave): Likewise.
5425
5426 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
5427
5428 * alpha-tdep.c (alpha_extract_return_value): Don't use
5429 non-constant array size in prototype.
5430
5431 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5432
5433 From Brian Taylor <briant at model dot com>:
5434 * ui-out.c (ui_out_field_core_addr): Use the function
5435 longest_local_hex_string_custom'to format addresses > 32 bits
5436 wide.
5437
5438 * ui-out.c (ui_out_field_core_addr): Update comment.
5439
5440 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5441
5442 * stack.c (select_and_print_frame): Make static. Delete the
5443 parameter `level'.
5444 (func_command): Update call.
5445 (select_frame_command): Delete code computing the frame level.
5446 * frame.h (select_and_print_frame): Delete declaration.
5447
5448 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5449
5450 * sparc-tdep.c (sparc_get_saved_register): Comment why
5451 get_prev_frame call is safe.
5452
5453 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5454
5455 * frame.h (select_frame): Delete level parameter.
5456 * stack.c (select_frame): Update. Use frame_relative_level to
5457 obtain the frame's level.
5458 (select_and_print_frame): Update call.
5459 (select_frame_command): Ditto.
5460 (up_silently_base): Ditto.
5461 (down_silently_base): Ditto.
5462 * ocd.c (ocd_start_remote): Ditto.
5463 * remote-rdp.c (remote_rdp_open): Ditto.
5464 * remote-mips.c (mips_initialize): Ditto.
5465 (common_open): Ditto.
5466 * remote-e7000.c (e7000_start_remote): Ditto.
5467 * m3-nat.c (select_thread): Ditto.
5468 * hppa-tdep.c (child_get_current_exception_event): Ditto.
5469 (child_get_current_exception_event): Ditto.
5470 * varobj.c (varobj_create): Ditto.
5471 (varobj_update): Ditto.
5472 (c_value_of_root): Ditto.
5473 * tracepoint.c (finish_tfind_command): Ditto.
5474 * corelow.c (core_open): Ditto.
5475 * arch-utils.c (generic_prepare_to_proceed): Ditto.
5476 * thread.c (info_threads_command): Ditto.
5477 (switch_to_thread): Ditto.
5478 * infrun.c (normal_stop): Ditto.
5479 (restore_selected_frame): Ditto.
5480 (restore_inferior_status): Ditto.
5481 * breakpoint.c (insert_breakpoints): Ditto.
5482 (watchpoint_check): Ditto.
5483 (bpstat_stop_status): Ditto.
5484 (do_enable_breakpoint): Ditto.
5485 * blockframe.c (flush_cached_frames): Ditto.
5486 (reinit_frame_cache): Ditto.
5487
5488 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5489
5490 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
5491 maintainer.
5492
5493 2002-05-04 Jim Blandy <jimb@redhat.com>
5494
5495 * gdbtypes.c (replace_type): Doc fix.
5496
5497 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5498
5499 * valprint.c (strcat_longest): Delete commented out function.
5500 Update copyright.
5501
5502 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5503
5504 * MAINTAINERS: Mark a29k as deleted.
5505 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
5506 Move new configurations to the top.
5507 * configure.tgt: Remove a29k.
5508 * config/a29k/tm-vx29k.h: Delete.
5509 * config/a29k/vx29k.mt: Delete.
5510 * config/a29k/tm-a29k.h: Delete.
5511 * config/a29k/a29k-udi.mt: Delete.
5512 * config/a29k/a29k.mt: Delete.
5513 * a29k-tdep.c: Delete.
5514 * remote-udi.c: Delete.
5515 * remote-mm.c: Delete.
5516 * remote-eb.c: Delete.
5517 * remote-adapt.c: Delete.
5518 * Makefile.in: Remove obsolete code.
5519 * gdbserver/Makefile.in: Ditto.
5520 * config/s390/s390x.mt: Ditto.
5521 * config/s390/s390.mt: Ditto.
5522 * config/sparc/sparclynx.mh: Ditto.
5523 * config/sparc/linux.mh: Ditto.
5524 * config/pa/hppaosf.mh: Ditto.
5525 * config/pa/hppabsd.mh: Ditto.
5526 * config/ns32k/nbsd.mt: Ditto.
5527 * config/mips/vr5000.mt: Ditto.
5528 * config/m68k/sun3os4.mh: Ditto.
5529 * config/m68k/nbsd.mt: Ditto.
5530 * config/m68k/m68klynx.mh: Ditto.
5531 * config/m32r/m32r.mt: Ditto.
5532 * config/i386/x86-64linux.mt: Ditto.
5533 * config/i386/nbsdelf.mt: Ditto.
5534 * config/i386/nbsd.mt: Ditto.
5535 * config/i386/i386lynx.mh: Ditto.
5536
5537 2002-05-04 Andrew Cagney <ac131313@redhat.com>
5538
5539 * target.c (debug_print_register): New function. Handle oversize
5540 registers.
5541 (debug_to_fetch_registers): Call.
5542 (debug_to_store_registers): Call.
5543
5544 2002-05-03 Jim Blandy <jimb@redhat.com>
5545
5546 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
5547 (read_type): Doc fix.
5548 * gdbtypes.c (replace_type): Doc fix.
5549
5550 * stabsread.c (multiply_defined_struct): New complaint.
5551 (read_struct_type): If the type we were passed isn't empty, or
5552 incomplete, don't read the new struct type into it; complain,
5553 and return the original type unchanged. Take a new `type_code'
5554 argument, which is the type code for the new type.
5555 (read_type): Rather than storing the type's type code here, pass
5556 it as an argument to read_struct_type, and let that take care of
5557 storing it. That way, we don't overwrite the original type code,
5558 so read_struct_type can use it to decide whether we're overwriting
5559 something we shouldn't.
5560 (complain_about_struct_wipeout): New function.
5561
5562 2002-05-03 Andrew Cagney <ac131313@redhat.com>
5563
5564 * gdbarch.sh: Assert that gdbarch is non-NULL.
5565 * gdbarch.c: Regenerate.
5566
5567 2002-05-03 Jason Merrill <jason@redhat.com>
5568
5569 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
5570 and return NULL.
5571
5572 2002-05-03 Michal Ludvig <mludvig@suse.cz>
5573
5574 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
5575 (x86_64_dwarf2gdb_regno_map_length),
5576 (x86_64_dwarf2_reg_to_regnum): Added.
5577 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
5578 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
5579 (_initialize_x86_64_tdep): Synced with the change above.
5580 (x86_64_skip_prologue): Reformulated message.
5581
5582 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5583
5584 * f-exp.y: Also use new prev_lexptr variable
5585 to improve error reporting. Based on Michael Snyder
5586 2002-04-24 dated patch to c-exp.y.
5587 * jv-exp.y: Likewise.
5588 * m2-exp.y: Likewise.
5589
5590 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
5591
5592 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
5593 we are dealing with vectors.
5594
5595 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5596
5597 * config/m68k/tm-nbsd.h: Obvious fix,
5598 correct machine name.
5599
5600 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5601
5602 * p-typeprint.c (pascal_type_print_base): Add support
5603 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
5604
5605 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5606
5607 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
5608 for fondamental pascal 'char' type.
5609
5610 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
5611
5612 * p-lang.h (is_pascal_string_type): Declaration changed,
5613 new sixth argument of type char ** added.
5614 * p-lang.c (is_pascal_string_type): Implementation
5615 changed. Args length_pos, length_size, string_pos, char_size
5616 can now be NULL. New argument arrayname set to the field
5617 name of the char array. Return value set to char array
5618 field index plus one.
5619 * p-valprint.c (pascal_val_print): Adapt to new declaration of
5620 is_pascal_string_type function.
5621
5622 2002-05-02 Andrew Cagney <cagney@redhat.com>
5623
5624 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
5625 <cagney@redhat.com> change.
5626 * gdbarch.c: Regenerate.
5627
5628 2002-05-02 Andrew Cagney <cagney@redhat.com>
5629
5630 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
5631 before probing for a new one. Detect errorenous gdbarch_init
5632 functions.
5633 * gdbarch.c: Regenerate.
5634
5635 2002-05-01 Andrew Cagney <cagney@redhat.com>
5636
5637 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
5638 * config/mcore/tm-mcore.h: Ditto. Update copyright.
5639 * config/v850/tm-v850.h: Ditto. Update copyright.
5640
5641 2002-04-30 Andrew Cagney <ac131313@redhat.com>
5642
5643 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
5644 current_gdbarch.
5645
5646 2002-04-30 Michael Snyder <msnyder@redhat.com>
5647
5648 * arm-tdep.c: Whitespace clean-ups.
5649 (arm_skip_prologue): Fix thinko; two lines
5650 should have been removed as part of 4/24 change.
5651
5652 2002-04-30 Kevin Buettner <kevinb@redhat.com>
5653
5654 * rs6000-tdep.c: Added comment describing how fpscr register
5655 numbers were chosen.
5656
5657 2002-04-30 Michael Snyder <msnyder@redhat.com>
5658
5659 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
5660
5661 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5662
5663 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
5664 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
5665 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
5666
5667 2002-04-29 Kevin Buettner <kevinb@redhat.com>
5668
5669 From Louis Hamilton <hamilton@redhat.com>:
5670 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
5671 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
5672 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
5673 not bfd-private xcoff data, to determine wordsize.
5674 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
5675
5676 2002-04-29 Andrew Cagney <ac131313@redhat.com>
5677
5678 GDB 5.2 released from 5.2 branch.
5679
5680 2002-04-29 Michal Ludvig <mludvig@suse.cz>
5681
5682 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
5683 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5684 (x86_64_register_info_table): Added comments with register numbers.
5685
5686 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
5687
5688 * rs6000-tdep.c (rs6000_extract_return_value,
5689 rs6000_store_return_value): Handle returning vectors.
5690 (rs6000_gdbarch_init): Use
5691 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
5692 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
5693 New function.
5694 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
5695 vectors.
5696 (ppc_sysv_abi_push_arguments): Handle vector parameters.
5697 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
5698
5699 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5700
5701 * hpread.c (hpread_psymtab_to_symtab_1,
5702 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
5703 with fprintf_unfiltered (gdb_stderr,...).
5704
5705 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5706
5707 * remote-array.c (printf_monitor, write_monitor,
5708 array_insert_breakpoint, array_remove_breakpoint ):
5709 Replace fprintf (stderr,...
5710 with fprintf_unfiltered (gdb_stderr,....
5711 * remote-es.c: Likewise.
5712 * remote-os9k.c: Likewise.
5713 * remote-st.c: Likewise.
5714
5715 2002-04-28 Andreas Schwab <schwab@suse.de>
5716
5717 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
5718 linux-proc.o and gcore.o.
5719
5720 2002-04-26 Michal Ludvig <mludvig@suse.cz>
5721
5722 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
5723 code without frame pointers.
5724
5725 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5726
5727 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
5728 ON_STACK is needed.
5729
5730 2002-04-26 Ben Elliston <bje@redhat.com>
5731
5732 * target.c (do_xfer_memory): Correct reference to the new option
5733 "trust-readonly-sections".
5734
5735 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
5736
5737 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
5738 * gdbtypes.c (recursive_dump_type): Output the vector flag.
5739 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
5740 vectors.
5741 (read_array_type): Record the fact that this array type is really a
5742 vector (i.e. are passed in by value).
5743
5744 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
5745
5746 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
5747 * alpha-tdep.c (alpha_sigcontext_addr): New function.
5748 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
5749 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
5750 * alpha-linux-tdep.c: Include frame.h.
5751 (alpha_linux_sigcontext_addr): New function.
5752 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
5753 alpha_linux_sigcontext_addr.
5754 * alpha-osf1-tdep.c: Include gdbcore.h.
5755 (alpha_osf1_sigcontext_addr): New function.
5756 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
5757 alpha_osf1_sigcontext_addr.
5758 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
5759 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
5760
5761 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5762
5763 * stack.c (selected_frame_level):
5764 (select_frame): Do not set selected_frame_level.
5765 * frame.h (selected_frame_level): Delete declaration.
5766
5767 2002-04-26 Andrew Cagney <ac131313@redhat.com>
5768
5769 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
5770 convert_from_func_ptr-addr when AIX / PowerOpen.
5771
5772 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5773
5774 * valops.c (hand_function_call): Call
5775 generic_save_call_dummy_addr.
5776 * frame.h (generic_save_call_dummy_addr): Declare.
5777 * blockframe.c (struct dummy_frame): Add fields call_lo and
5778 call_hi.
5779 (generic_find_dummy_frame): Check for PC in range call_lo to
5780 call_hi instead of entry_point_address.
5781 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
5782 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
5783 (generic_save_call_dummy_addr): New function.
5784
5785 2002-04-24 David S. Miller <davem@redhat.com>
5786
5787 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
5788 sparc_skip_prologue.
5789 (sparc_skip_prologue): Kill frameless_p arg, and use line number
5790 information to find prologue when possible.
5791 (sparc_prologue_frameless_p): Call examine_prologue directly.
5792 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
5793 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
5794 second argument.
5795 (SKIP_PROLOGUE): Likewise.
5796
5797 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5798
5799 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
5800 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
5801 indicate that the condition it was testing is always true.
5802 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
5803 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5804 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
5805
5806 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5807
5808 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
5809 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
5810 tdep->jb_pc and tdep->jb_elt_size.
5811 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
5812 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
5813 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5814 * alpha-nat.c (get_longjmp_target): Remove.
5815 (JB_ELEMENT_SIZE): Ditto.
5816 (JB_PC): Ditto.
5817 * alpha-tdep.c (alpha_get_longjmp_target): New function.
5818 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
5819 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
5820 to alpha_get_longjmp_target.
5821 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
5822 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
5823 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
5824
5825 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5826
5827 * README: Update to GDB 5.2.
5828
5829 2002-04-25 Andrew Cagney <ac131313@redhat.com>
5830
5831 * gdbarch.sh (LC_ALL): Set to `c'.
5832
5833 2002-04-25 Theodore A. Roth <troth@verinet.com>
5834
5835 * avr-tdep.c: Ran through gdb_indent.sh.
5836
5837 2002-04-25 Theodore A. Roth <troth@verinet.com>
5838
5839 * MAINTAINERS: Add myself as AVR maintainer.
5840 * NEWS: Note new target avr.
5841
5842 2002-04-25 Theodore A. Roth <troth@verinet.com>
5843
5844 * Makefile.in: Add support for AVR target.
5845 * configure.tgt: Add support for AVR target.
5846 * avr-tdep.c: New file
5847 * config/avr/avr.mt: New file.
5848
5849 2002-04-25 Theodore A. Roth <troth@verinet.com>
5850
5851 * MAINTAINERS: Add myself to write-after-approval.
5852
5853 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
5854
5855 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
5856 with fprintf_unfiltered (gdb_stderr,....
5857
5858 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5859
5860 Fix PR gdb/508.
5861 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
5862
5863 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
5864
5865 * p-exp.y: Also use new prev_lexptr variable
5866 to improve error reporting. Based on Michael Snyder
5867 2002-04-24 dated patch to c-exp.y.
5868
5869 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5870
5871 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
5872 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
5873 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
5874 to 0.
5875 * config/alpha/tm-alpha.h: Remove forward decls of struct type
5876 and struct value.
5877 (FUNCTION_START_OFFSET): Remove.
5878 (BREAKPOINT): Ditto.
5879
5880 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
5881
5882 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
5883 * NEWS: Ditto.
5884
5885 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5886
5887 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
5888 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
5889 alpha_linux_pc_in_sigtramp.
5890 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
5891 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
5892 alpha_osf1_pc_in_sigtramp.
5893 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
5894 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
5895 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5896 alphafbsd_pc_in_sigtramp.
5897 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
5898 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5899 alphanbsd_pc_in_sigtramp.
5900 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
5901 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
5902
5903 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5904
5905 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
5906
5907 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5908
5909 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
5910 alphanbsd-tdep.c.
5911 (alphanbsd-nat.o): New dependency list.
5912 (alphanbsd-tdep.o): Ditto.
5913 * NEWS: Note new native NetBSD/alpha configuration.
5914 * alphanbsd-nat.c: New file.
5915 * alphanbsd-tdep.c: Ditto.
5916 * configure.host (alpha*-*-netbsd*): New host.
5917 * configure.tgt (alpha*-*-netbsd*): New target.
5918 * config/alpha/nbsd.mh: New file.
5919 * config/alpha/nbsd.mt: Ditto.
5920 * config/alpha/nm-nbsd.h: Ditto.
5921 * config/alpha/tm-nbsd.h: Ditto.
5922
5923 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5924
5925 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
5926 (alpha-osf1-tdep.o): New dependency list.
5927 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
5928 and skip_sigtramp_frame members.
5929 * alpha-linux-tdep.c: Include gdbcore.h.
5930 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
5931 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
5932 * alpha-osf1-tdep.c: New file.
5933 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
5934 alpha-osf1-dep.c.
5935 (alpha_frame_past_sigtramp_frame): New function.
5936 (alpha_dynamic_sigtramp_offset): Ditto.
5937 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
5938 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
5939 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
5940 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
5941 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
5942 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
5943 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
5944 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
5945 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
5946 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
5947 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
5948 to find_solib_trampoline_target.
5949 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
5950 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
5951 (SKIP_TRAMPOLINE_CODE): Remove.
5952 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5953 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5954 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5955 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5956 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
5957 (PROC_SIGTRAMP_MAGIC): Ditto.
5958 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5959 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5960 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
5961 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
5962 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
5963
5964 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
5965
5966 * NEWS: Note that Alpha targets are now multi-arch.
5967
5968 2002-04-24 Michael Snyder <msnyder@redhat.com>
5969
5970 * parser-defs.h (prev_lexptr): New external variable.
5971 * parse.c (parse_exp_1): Set prev_lexptr to null before
5972 calling the language-specific parser.
5973 * c-exp.y (yylex): Set prev_lexptr to start of current token.
5974 (yyerror): Use prev_lexptr in error reporting.
5975
5976 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
5977
5978 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
5979 * gregset.h: If FILL_FPXREGSET is defined, provide
5980 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
5981 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
5982 is defined, call fill_fpxregset.
5983
5984 2002-04-24 Roland McGrath <roland@frob.com>
5985
5986 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
5987 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
5988 (supply_gregset, supply_fpregset): New functions.
5989
5990 * gnu-nat.c (gnu_find_memory_regions): New function.
5991 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
5992 (gnu_xfer_memory): Add a cast.
5993
5994 2002-04-24 Michael Snyder <msnyder@redhat.com>
5995
5996 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
5997 loop. Add handling for "str lr, [sp, #-4]!" and for saves
5998 of argument regs ("str r(0123), [r11, #-nn"]).
5999 (arm_skip_prologue): Better handling for frameless functions.
6000 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6001 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6002
6003 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6004
6005 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6006 NUM_PSEUDO_REGS can be used.
6007
6008 2002-04-24 Andrew Cagney <ac131313@redhat.com>
6009
6010 * arch-utils.h: Update copyright.
6011
6012 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6013 * gdbarch.h, gdbarch.c: Re-generate.
6014
6015 * inferior.h (IN_SIGTRAMP): Delete definition.
6016 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6017 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6018
6019 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6020 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6021 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6022 (find_proc_framesize): Ditto.
6023 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6024 (alpha_init_extra_frame_info): Ditto.
6025 * infrun.c (handle_inferior_event): Ditto.
6026 (handle_inferior_event): Ditto.
6027 (check_sigtramp2): Ditto.
6028 * blockframe.c (create_new_frame): Ditto.
6029 (get_prev_frame): Ditto.
6030 * ppc-linux-tdep.c: Update comments.
6031 * i386-linux-tdep.c: Update comments.
6032 * breakpoint.c (bpstat_what): Update comment.
6033
6034 2002-04-24 Michal Ludvig <mludvig@suse.cz>
6035
6036 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
6037 (regsets_store_inferior_registers): Removed cast to int from
6038 ptrace() calls.
6039 * gdbserver/regcache.h: Added declaration of struct inferior_info.
6040
6041 2002-04-24 David S. Miller <davem@redhat.com>
6042
6043 * i960-tdep.c (register_in_window_p): New function.
6044 (i960_find_saved_register): Use it instead of
6045 REGISTER_IN_WINDOW_P.
6046 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6047
6048 * symtab.h (find_stab_function_addr): Kill extern.
6049 * minsyms.c (find_stab_function_addr): Remove from here...
6050 * dbxread.c: ... to here, and mark it static.
6051
6052 2002-04-20 David S. Miller <davem@redhat.com>
6053
6054 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6055 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6056
6057 2002-04-21 David S. Miller <davem@redhat.com>
6058
6059 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6060 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6061 (vx_write_register): Likewise.
6062
6063 2002-04-23 J. Brobecker <brobecker@gnat.com>
6064
6065 * source.c (is_regular_file): New function.
6066 (openp): Check wether file to open is a regular file
6067 to avoid opening directories.
6068
6069 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6070
6071 * findvar.c (extract_signed_integer): Cast printf argument
6072 to suppress format warning.
6073 (extract_unsigned_integer): Likewise.
6074 * infcmd.c (registers_info): Likewise.
6075 * top.c (get_prompt_1): Likewise.
6076 * valops.c (value_assign): Likewise.
6077 * valprint.c (print_decimal): Likewise.
6078
6079 2002-04-22 H.J. Lu (hjl@gnu.org)
6080
6081 * c-exp.y (typebase): Support
6082
6083 [long|long long|short] [signed|unsigned] [int|]
6084
6085 and
6086
6087 signed [long|long long|short] int
6088
6089 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6090
6091 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6092 and vax-tdep.h.
6093 * vax-tdep.h: New file.
6094 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6095 Make several routines static.
6096 (vax_get_saved_register): New function.
6097 (vax_gdbarch_init): New function.
6098 (_initialize_vax_tdep): Register vax_gdbarch_init.
6099 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6100 Remove macros now under the control of gdbarch.
6101
6102 2002-04-22 Michael Snyder <msnyder@redhat.com>
6103
6104 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6105 Some whitespace and coding standards tweaks.
6106
6107 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6108
6109 * vax-tdep.c: Include regcache.h.
6110 (vax_call_dummy_words): New.
6111 (sizeof_vax_call_dummy_words): New.
6112 (vax_fix_call_dummy): New function.
6113 (vax_saved_pc_after_call): Ditto.
6114 * config/vax/tm-vax.h: Don't include regcache.h.
6115 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6116 (CALL_DUMMY): Remove.
6117 (CALL_DUMMY_WORDS): Define.
6118 (SIZEOF_CALL_DUMMY_WORDS): Define.
6119 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6120
6121 2002-04-18 Michael Snyder <msnyder@redhat.com>
6122
6123 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6124
6125 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6126
6127 * vax-tdep.c (vax_frame_chain): New function.
6128 (vax_push_dummy_frame): Ditto.
6129 (vax_pop_frame): Ditto.
6130 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6131 (FRAMELESS_FUNCTION_INVOCATION): Use
6132 generic_frameless_function_invocation_not.
6133 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6134 (POP_FRAME): Use vax_pop_frame.
6135
6136 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6137
6138 * vax-tdep.c (vax_store_struct_return): New function.
6139 (vax_extract_return_value): Ditto.
6140 (vax_store_return_value): Ditto.
6141 (vax_extract_struct_value_address): Ditto.
6142 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6143 vax_store_struct_return.
6144 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6145 (STORE_RETURN_VALUE): Use vax_store_return_value.
6146 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6147
6148 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6149
6150 * vax-tdep.c (vax_frame_saved_pc): New function.
6151 (vax_frame_args_address_correct): Ditto.
6152 (vax_frame_args_address): Ditto.
6153 (vax_frame_locals_address): Ditto.
6154 (vax_frame_num_args): Move code to be in proximity to
6155 other frame-related functions.
6156 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6157 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6158 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6159 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6160 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6161
6162 2002-04-22 H.J. Lu (hjl@gnu.org)
6163
6164 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6165 includedir.
6166
6167 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6168
6169 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6170 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6171 (FRAME_INIT_SAVED_REGS): New macro.
6172
6173 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6174
6175 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6176
6177 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6178
6179 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6180 where needed.
6181 (fetch_osf_core_registers): Likewise.
6182 (supply_gregset): Likewise.
6183
6184 2002-04-22 J. Brobecker <brobecker@gnat.com>
6185
6186 * symfile.h (get_section_index): Define.
6187 * symfile.c (get_section_index): New function.
6188 * mdebugread.c (SC_IS_SBSS): New macro.
6189 (SC_IS_BSS): Return true for the scBss storage class only, as
6190 the scSBss storage class refers to the .sbss section.
6191 (parse_partial_symbols): Discard the symbols which associated
6192 section does not exist.
6193 Make sure to use the .sbss section index for symbols which
6194 storage class is scBss, rather than using the .bss section index.
6195
6196 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6197
6198 * vax-tdep.c: Update copyright years.
6199 (vax_register_name): New function.
6200 (vax_register_byte): Ditto.
6201 (vax_register_raw_size): Ditto.
6202 (vax_register_virtual_size): Ditto.
6203 (vax_register_virtual_type): Ditto.
6204 * config/vax/tm-vax.h: Update copyright years.
6205 (REGISTER_NAMES): Remove.
6206 (REGISTER_NAME): Define.
6207 (REGISTER_BYTE): Use vax_register_byte.
6208 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6209 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6210 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6211
6212 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6213
6214 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6215 declaration
6216 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6217
6218 2002-04-21 David S. Miller <davem@redhat.com>
6219
6220 * arch-utils.c (generic_prologue_frameless_p): Kill
6221 SKIP_PROLOGUE_FRAMELESS_P code.
6222 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6223 references.
6224 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6225 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6226 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6227 references.
6228 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6229 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6230 (sparc_gdbarch_init): Pass it to
6231 set_gdbarch_prologue_frameless_p.
6232
6233 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6234
6235 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6236 (alphabsd-nat.o): New dependency list.
6237
6238 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6239
6240 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6241 alphafbsd-tdep.c.
6242 (alpha-linux-tdep.o): New dependency list.
6243 (alphafbsd-tdep.o): Likewise.
6244
6245 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6246
6247 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6248 to here...
6249 * alpha-tdep.c: ...from here.
6250 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6251
6252 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6253
6254 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6255 prototype from here...
6256 * alpha-tdep.h: ...to here.
6257
6258 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6259
6260 * frame.h (selected_frame_level): Document as deprecated.
6261 (frame_relative_level): Declare.
6262 * stack.c (frame_relative_level): New function.
6263 (selected_frame_level): Document as deprecated.
6264 (select_frame): Do not set the selected_frame_level.
6265
6266 * stack.c (frame_info, record_selected_frame): Update.
6267 (frame_command, current_frame_command): Update.
6268 (up_silently_base, up_command, down_silently_base): Update.
6269 (down_command): Update.
6270 * inflow.c (kill_command): Update.
6271 * tracepoint.c (finish_tfind_command): Update.
6272 * corelow.c (core_open): Update.
6273 * thread.c (info_threads_command): Update.
6274 (do_captured_thread_select): Update.
6275 * infcmd.c (finish_command): Update.
6276 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6277
6278 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6279
6280 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6281
6282 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6283
6284 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6285 type const.
6286
6287 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6288
6289 * alphafbsd-tdep.c: Update copyright years. Include
6290 alpha-tdep.h.
6291 (alphafbsd_use_struct_convention): Make static.
6292 (alphafbsd_init_abi): New function.
6293 (_initialize_alphafbsd_tdep): New function.
6294 * config/alpha/tm-fbsd.h: Update copyright years.
6295 (USE_STRUCT_CONVENTION): Remove.
6296
6297 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6298
6299 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6300 an Alpha ABI variant.
6301 (alpha_abi_handler_list): Declare.
6302 (alpha_gdbarch_register_os_abi): New function.
6303 (alpha_gdbarch_init): Give registered ABI variant handlers a
6304 chance to tweak the gdbarch once we have set up defaults.
6305 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6306
6307 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6308
6309 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6310 to standard_coerce_float_to_double.
6311 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6312
6313 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6314
6315 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6316 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6317 from gdbarch_tdep rather than a constant.
6318 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6319 the default text address for all Alpha Unix ABIs.
6320 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6321 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6322
6323 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6324
6325 * alpha-tdep.h: New file. Includes several Alpha target constants
6326 taken from...
6327 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6328 let gdbarch deal with.
6329 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6330 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6331 to dependency list.
6332 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6333 Alpha target register names.
6334 * alphabsd-nat.c: Likewise.
6335 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6336 Alpha target register names. Make serveral routines static.
6337 (alpha_get_saved_register): New function.
6338 (alpha_abi_names): New.
6339 (process_note_abi_tag_sections): New function.
6340 (get_elfosabi): New function.
6341 (alpha_gdbarch_init): New function.
6342 (alpha_dump_tdep): New function.
6343 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6344
6345 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6346
6347 * frame.c (find_saved_register): Delete #ifdef
6348 HAVE_REGISTER_WINDOWS code.
6349 * config/sparc/tm-sparc.h: Update comments.
6350 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6351
6352 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6353
6354 * i960-tdep.c (i960_find_saved_register): New function.
6355 (i960_get_saved_register): New function.
6356 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6357 (i960_get_saved_register): Declare.
6358 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6359
6360 2002-04-20 David S. Miller <davem@redhat.com>
6361
6362 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6363
6364 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6365
6366 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6367 instead of NUM_PSEUDO_REGS.
6368
6369 2002-04-20 David S. Miller <davem@redhat.com>
6370
6371 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6372 GDB_MULTI_ARCH_PARTIAL
6373 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6374 define, let tm-sp64.h do it.
6375
6376 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6377
6378 * frame.c (find_saved_register): Avoid a NULL pointer
6379 dereference and actually walk the frame list.
6380
6381 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6382
6383 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6384 sorted in most most-recent-used order. Document.
6385 * gdbarch.h, gdbarch.c: Regenerate.
6386
6387 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
6388
6389 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
6390 (add_inferior): Call create_register_cache.
6391 (clear_inferiors): Call free_register_cache.
6392 (inferior_regcache_data, set_inferior_regcache_data): New functions.
6393 * gdbserver/regcache.c (struct inferior_regcache_data): New.
6394 (registers): Remove.
6395 (get_regcache): New function.
6396 (create_register_cache, free_register_cache): New functions.
6397 (set_register_cache): Don't initialize the register cache here.
6398 (registers_to_string, registers_from_string, register_data): Call
6399 get_regcache.
6400 * gdbserver/regcache.h: Add prototypes.
6401 * gdbserver/server.h: Likewise.
6402
6403 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
6404
6405 * gdbserver/mem-break.c: New file.
6406 * gdbserver/mem-break.h: New file.
6407 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
6408 dependencies.
6409 * gdbserver/inferiors.c (struct inferior_info): Add target_data
6410 member.
6411 (clear_inferiors): Free target_data member if set.
6412 (inferior_target_data, set_inferior_target_data): New functions.
6413 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
6414 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
6415 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
6416 (struct inferior_linux_data): New.
6417 (linux_create_inferior): Use set_inferior_target_data.
6418 (linux_attach): Likewise. Call add_inferior.
6419 (linux_wait_for_one_inferior): New function.
6420 (linux_wait): Call it.
6421 (linux_write_memory): Add const.
6422 (initialize_low): Call set_breakpoint_data.
6423 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
6424 handling members.
6425 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
6426 call.
6427 * gdbserver/server.h: Include mem-break.h. Update inferior.c
6428 prototypes.
6429 * gdbserver/target.c (read_inferior_memory)
6430 (write_inferior_memory): New functions.
6431 * gdbserver/target.h (read_inferior_memory)
6432 (write_inferior_memory): Change macros to prototypes.
6433 (struct target_ops): Update comments. Add const to write_memory
6434 definition.
6435
6436 2002-04-19 Andrew Cagney <ac131313@redhat.com>
6437
6438 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6439 instead of ->prev.
6440 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6441 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6442 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6443 instead of ->prev.
6444
6445 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
6446
6447 Fix PR gdb/471.
6448 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6449 (build_builtin_type_vec128): Ditto.
6450 (append_composite_type_field): Fix calculation of type length in
6451 union case.
6452
6453 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6454
6455 * config/djgpp/README: Update.
6456
6457 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6458 compiler warnings.
6459
6460 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6461
6462 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6463 (alpha_setup_arbitrary_frame): ...to this.
6464 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6465 for alpha_setup_arbitrary_frame.
6466
6467 2002-04-18 Andrew Cagney <cagney@redhat.com>
6468
6469 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6470 * gdbarch.h, gdbarch.c: Regenerate.
6471
6472 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6473 * target.h (memory_breakpoint_from_pc): Update declaration.
6474 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
6475
6476 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
6477 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
6478 * mem-break.c (memory_breakpoint_from_pc): Ditto.
6479 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
6480 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
6481 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
6482 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
6483 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
6484 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
6485 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
6486 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
6487 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
6488
6489 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
6490 const pointer.
6491 * monitor.c (monitor_insert_breakpoint): Ditto.
6492 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
6493
6494 * config/mcore/tm-mcore.h: Update copyright.
6495 * mem-break.c: Ditto.
6496 * xstormy16-tdep.c: Ditto.
6497
6498 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
6499
6500 * p-exp.y: Add precedence rule for '^' token.
6501 This removes the shift/reduce conflicts.
6502 Remove the comment concerning these shift/reduce conflicts.
6503
6504 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
6505
6506 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
6507 (registers_powerpc_nofp): New register set for processors
6508 without floating point unit.
6509
6510 2002-04-18 David S. Miller <davem@redhat.com>
6511
6512 * MAINTAINERS: Add myself to write-after-approval.
6513
6514 2002-04-17 Michael Snyder <msnyder@redhat.com>
6515
6516 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
6517
6518 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6519
6520 * rs6000-tdep.c (frame_initial_stack_address): Use
6521 frame_register_read to read the alloca_reg.
6522
6523 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6524
6525 * frame.c (find_saved_register): Find saved registers in the next
6526 not prev frame.
6527 Fix PR gdb/365.
6528
6529 2002-04-17 Andrew Cagney <ac131313@redhat.com>
6530
6531 * gdbarch.sh (LANG): Set to ``c''.
6532
6533 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6534
6535 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
6536
6537 2002-04-15 Andrew Cagney <ac131313@redhat.com>
6538
6539 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
6540 Update copyright.
6541
6542 * hpread.c (hpread_get_lntt): Add declaration.
6543 Also fix PR gdb/391.
6544
6545 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6546
6547 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
6548 * aclocal.m4, configure: Re-generate.
6549 Fix PR gdb/391.
6550
6551 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6552
6553 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
6554 instead of tm_print_insn.
6555
6556 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
6557
6558 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
6559
6560 2002-04-14 Andrew Cagney <ac131313@redhat.com>
6561
6562 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
6563 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
6564 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
6565
6566 2002-04-12 Don Howard <dhoward@redhat.com>
6567
6568 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
6569 max_user_call_depth.
6570 (init_cmd_lists): Initialize the new value;
6571 * cli/cli-script.c (execute_user_command): Limit the call depth of
6572 user defined commands. This avoids a core-dump when user commands
6573 are infinitly recursive.
6574
6575 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6576
6577 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
6578 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
6579 from tdep struct instead of DEFAULT_LR_SAVE.
6580 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
6581 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
6582 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
6583
6584 2002-04-12 Michael Snyder <msnyder@redhat.com>
6585
6586 * Remote.c: Spelling fix.
6587 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
6588 If no symbol found for "sbrk", try "_sbrk".
6589 (make_output_phdrs): Use bfd_section_name.
6590 (gcore_copy_callback): Use bfd_section_name.
6591 * eval.c: Indentation fix-ups.
6592 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
6593 in case it gets applied to an address that is already
6594 in the instruction space.
6595 * cli/cli-decode.c (help_list): Allow long lines to wrap.
6596 * symfile.c: Fix indentation, long lines.
6597 * source.c: White space fix-up.
6598
6599 2002-04-12 Andrew Cagney <cagney@redhat.com>
6600
6601 * defs.h (read_relative_register_raw_bytes): Delete declaration.
6602 * frame.c (frame_register_read): New function. Return non-zero on
6603 success.
6604 (read_relative_register_raw_bytes_for_frame): Delete.
6605 (read_relative_register_raw_bytes): Delete.
6606 * frame.h (frame_register_read): Declare.
6607 * d30v-tdep.c: Update Copyright. Use frame_register_read.
6608 * sh-tdep.c: Ditto.
6609 * infcmd.c (do_registers_info): Ditto.
6610 * hppa-tdep.c: Ditto.
6611 * rs6000-tdep.c: Ditto.
6612 * h8500-tdep.c: Ditto.
6613 * mips-tdep.c: Ditto.
6614 * h8300-tdep.c: Ditto.
6615 * z8k-tdep.c: Ditto.
6616
6617 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6618
6619 From Jimi X <jimix@watson.ibm.com>:
6620 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
6621 64-bit SysV ABI.
6622
6623 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6624
6625 From Jimi X <jimix@watson.ibm.com>:
6626 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
6627 bfd info.
6628
6629 2002-04-12 Kevin Buettner <kevinb@redhat.com>
6630
6631 From Jimi X <jimix@watson.ibm.com>:
6632 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
6633 register sets for these processor variants.
6634
6635 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
6636
6637 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
6638 registers which are allowed to fail to store.
6639 * gdbserver/linux-low.h (linux_target_ops): Likewise.
6640 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
6641 (ppc_cannot_store_register): FPSCR may not be storable.
6642 * regformats/reg-ppc.dat: Support FPSCR.
6643
6644 2002-04-11 Kevin Buettner <kevinb@redhat.com>
6645
6646 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
6647 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
6648 Add fpscr as an invalid/unfetchable register.
6649 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
6650 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
6651 (fill_fpregset): Add support for register fpscr.
6652 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
6653 (fill_gregset): Account for the fact that register ``mq'' might
6654 not exist.
6655 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
6656 (registers_power): Add fpscr to register set at slot 71.
6657 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
6658 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
6659
6660 2002-04-11 Michael Snyder <msnyder@redhat.com>
6661
6662 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
6663 * configure: Regenerate.
6664 * config.in: Regenerate.
6665 * acconfig.h: Add define for _SYSCALL32.
6666 * core-sol2.c: Remove #define _SYSCALL32.
6667 * solib-legacy.c: Remove #define _SYSCALL32.
6668
6669 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6670
6671 * stack.c (select_frame): Cleanup internal error message, do not
6672 use %p.
6673
6674 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6675
6676 * stack.c (select_frame): Check that selected_frame and the
6677 specified level are as expected.
6678 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
6679 Update copyright.
6680 * frame.h (struct frame_info): Add field `level'. Update
6681 copyright.
6682 Work-in-progress PR gdb/464.
6683
6684 2002-04-10 Andrew Cagney <ac131313@redhat.com>
6685
6686 * maint.c (maint_print_section_info): Rename print_section_info.
6687 (print_bfd_section_info, print_objfile_section_info): Update.
6688 * inferior.h (struct gdbarch): Add opaque declaration.
6689 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
6690 * gdbarch.h: Regenerate.
6691
6692 2002-04-10 Michal Ludvig <mludvig@suse.cz>
6693
6694 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
6695 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
6696 (kernel_u_size): Added.
6697 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
6698 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
6699
6700 2002-04-04 Jim Ingham <jingham@apple.com>
6701
6702 * valarith.c (find_size_for_pointer_math): New function, either returns
6703 the size for a pointer's target, returns 1 for void *, or errors for
6704 incomplete types.
6705 (value_add, value_sub): use find_size_for_pointer_math.
6706
6707 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6708
6709 * linux-low.c (linux_look_up_symbols): New hook.
6710 (linux_target_ops): Add linux_look_up_symbols.
6711 * remote-utils.c (decode_address): New function.
6712 (look_up_one_symbol): New function.
6713 * server.c (handle_query): Call target look_up_symbols hook.
6714 * server.h (look_up_one_symbol): Add prototype.
6715 * target.h (struct target_ops): Add look_up_symbols hook.
6716
6717 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6718
6719 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
6720 * ChangeLog: Correct paths in last ChangeLog entry.
6721
6722 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6723
6724 * gdbserver/linux-low.h: Remove obsolete prototypes.
6725 (struct linux_target_ops): New.
6726 (extern the_low_target): New.
6727 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
6728 (register_addr): Use the_low_target explicitly.
6729 (fetch_register): Likewise.
6730 (usr_fetch_inferior_registers): Likewise.
6731 (usr_store_inferior_registers): Likewise.
6732 * gdbserver/linux-arm-low.c (num_regs): Remove.
6733 (arm_num_regs): Define.
6734 (arm_regmap): Renamed from regmap, made static.
6735 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
6736 made static.
6737 (arm_cannot_store_register): Renamed from cannot_store_register,
6738 made static.
6739 (the_low_target): New.
6740 * gdbserver/linux-i386-low.c (num_regs): Remove.
6741 (i386_num_regs): Define.
6742 (i386_regmap): Renamed from regmap, made static.
6743 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
6744 made static.
6745 (i386_cannot_store_register): Renamed from cannot_store_register,
6746 made static.
6747 (the_low_target): New.
6748 * gdbserver/linux-ia64-low.c (num_regs): Remove.
6749 (ia64_num_regs): Define.
6750 (ia64_regmap): Renamed from regmap, made static.
6751 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
6752 made static.
6753 (ia64_cannot_store_register): Renamed from cannot_store_register,
6754 made static.
6755 (the_low_target): New.
6756 * gdbserver/linux-m68k-low.c (num_regs): Remove.
6757 (m68k_num_regs): Define.
6758 (m68k_regmap): Renamed from regmap, made static.
6759 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
6760 made static.
6761 (m68k_cannot_store_register): Renamed from cannot_store_register,
6762 made static.
6763 (the_low_target): New.
6764 * gdbserver/linux-mips-low.c (num_regs): Remove.
6765 (mips_num_regs): Define.
6766 (mips_regmap): Renamed from regmap, made static.
6767 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
6768 made static.
6769 (mips_cannot_store_register): Renamed from cannot_store_register,
6770 made static.
6771 (the_low_target): New.
6772 * gdbserver/linux-ppc-low.c (num_regs): Remove.
6773 (ppc_num_regs): Define.
6774 (ppc_regmap): Renamed from regmap, made static.
6775 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
6776 made static.
6777 (ppc_cannot_store_register): Renamed from cannot_store_register,
6778 made static.
6779 (the_low_target): New.
6780 * gdbserver/linux-s390-low.c (num_regs): Remove.
6781 (s390_num_regs): Define.
6782 (s390_regmap): Renamed from regmap, made static.
6783 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
6784 made static.
6785 (s390_cannot_store_register): Renamed from cannot_store_register,
6786 made static.
6787 (the_low_target): New.
6788 * gdbserver/linux-sh-low.c (num_regs): Remove.
6789 (sh_num_regs): Define.
6790 (sh_regmap): Renamed from regmap, made static.
6791 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
6792 made static.
6793 (sh_cannot_store_register): Renamed from cannot_store_register,
6794 made static.
6795 (the_low_target): New.
6796 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
6797 (the_low_target): New.
6798
6799 2002-04-09 Andrew Cagney <ac131313@redhat.com>
6800
6801 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
6802 override FP_REGNUM with frame->fp. Update copyright.
6803 * parse.c (num_std_regs, std_regs): Delete.
6804 (target_map_name_to_register): Do not search std_regs. Update
6805 function description.
6806 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
6807 declarations. Update copyright.
6808 Fix PR gdb/251.
6809
6810 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6811
6812 * gdbserver/Makefile.in: Add stamp-h target.
6813 * gdbserver/configure.in: Create stamp-h.
6814 * gdbserver/configure: Regenerated.
6815
6816 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6817
6818 * gdbserver/inferiors.c: New file.
6819 * gdbserver/target.c: New file.
6820 * gdbserver/target.h: New file.
6821 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
6822 dependencies.
6823 * gdbserver/linux-low.c (inferior_pid): New static variable,
6824 moved from server.c.
6825 (linux_create_inferior): Renamed from create_inferior.
6826 Call add_inferior. Return 0 on success instead of a PID.
6827 (linux_attach): Renamed from myattach.
6828 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
6829 (linux_thread_alive): Renamed from mythread_alive.
6830 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
6831 child dies.
6832 (linux_resume): Renamed from myresume. Add missing ``return 0''.
6833 (regsets_store_inferior_registers): Correct error message.
6834 Add missing ``return 0''.
6835 (linux_fetch_registers): Renamed from fetch_inferior_registers.
6836 (linux_store_registers): Renamed from store_inferior_registers.
6837 (linux_read_memory): Renamed from read_inferior_memory.
6838 (linux_write_memory): Renamed from write_inferior_memory.
6839 (linux_target_ops): New structure.
6840 (initialize_low): Call set_target_ops ().
6841 * gdbserver/remote-utils.c (unhexify): New function.
6842 (hexify): New function.
6843 (input_interrupt): Send signals to ``signal_pid''.
6844 * gdbserver/server.c (inferior_pid): Remove.
6845 (start_inferior): Update create_inferior call.
6846 (attach_inferior): Call add_inferior.
6847 (handle_query): New function.
6848 (main): Call handle_query for `q' packets.
6849 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
6850 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
6851
6852 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6853
6854 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
6855 dependencies.
6856 * gdbserver/configure.in: Check for <string.h>
6857 * gdbserver/configure: Regenerate.
6858 * gdbserver/config.in: Regenerate.
6859 * gdbserver/gdbreplay.c: Include needed system headers.
6860 (remote_open): Remove strchr prototype.
6861 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
6862 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
6863 (supply_register_by_name): Likewise.
6864 (collect_register): Change buf argument to void *.
6865 (collect_register_by_name): Likewise.
6866 * gdbserver/regcache.h: Add missing prototypes.
6867 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
6868 * gdbserver/server.c (handle_query): New function.
6869 (attached): New static variable, moved out of main.
6870 (main): Quiet longjmp clobber warnings.
6871 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
6872 * gdbserver/utils.c (error): Remove NORETURN.
6873 (fatal): Likewise.
6874
6875 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
6876
6877 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
6878 after the last symbol in a block.
6879
6880 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
6881
6882 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
6883 is non zero as a found symbol.
6884
6885 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6886
6887 * findvar.c: Include "builtin-regs.h".
6888 (value_of_register): Call value_of_builtin_reg when applicable.
6889 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
6890 (target_map_name_to_register): Call
6891 builtin_reg_map_name_to_regnum.
6892 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
6893 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
6894 (builtin_regs_h): Define.
6895 (builtin-regs.o): New target.
6896 (findvar.o): Add $(builtin_regs_h).
6897 * builtin-regs.c, builtin-regs.h: New files.
6898 * std-regs.c: New file.
6899 Partial fix for PR gdb/251.
6900
6901 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6902
6903 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
6904 it's no longer required.
6905
6906 2002-04-08 Andrew Cagney <ac131313@redhat.com>
6907
6908 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
6909
6910 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6911
6912 From Jimi X <jimix@watson.ibm.com>:
6913 * rs6000-tdep.c (rs6000_software_single_step): Use
6914 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
6915 and size. Use target_insert_breakpoint() and
6916 target_remove_breakpoint() to insert and remove breakpoints
6917 instead of explicit memory reads and writes.
6918
6919 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6920
6921 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
6922 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
6923 ELF_OBJECT_FORMAT ifdef.
6924
6925 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6926
6927 From Jimi X <jimix@watson.ibm.com>:
6928 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
6929
6930 2002-04-08 Kevin Buettner <kevinb@redhat.com>
6931
6932 From Jimi X <jimix@watson.ibm.com>:
6933 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
6934 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
6935
6936 2002-04-07 Mark Kettenis <kettenis@gnu.org>
6937
6938 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
6939 s/asprintf/xasprintf/.
6940 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
6941
6942 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6943
6944 I believe Jeff Law denies responsability for this one:
6945 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
6946 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
6947 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
6948 Work-around for PR gdb/366.
6949
6950 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6951
6952 * remote-e7000.c (write_small, e7000_read_inferior_memory,
6953 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
6954 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
6955
6956 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
6957
6958 * sh-tdep.c (sh_fp_frame_init_saved_regs,
6959 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
6960 information.
6961
6962 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6963
6964 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
6965 maintainer.
6966
6967 2002-04-07 Andrew Cagney <ac131313@redhat.com>
6968
6969 * README (Reporting Bugs in GDB): Document the bug web page as the
6970 prefered way of submitting bugs.
6971 Fix PR gdb/402.
6972
6973 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6974
6975 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
6976 -1. Update comment.
6977 * gdbarch.h, gdbarch.c: Re-generate.
6978
6979 2002-04-07 Andreas Schwab <schwab@suse.de>
6980
6981 * m68klinux-nat.c (fill_fpregset): Properly pass address of
6982 buffer to regcache_collect.
6983
6984 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6985
6986 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
6987 * gdbarch.c, gdbarch.h: Re-generate.
6988
6989 2002-04-06 Andrew Cagney <ac131313@redhat.com>
6990
6991 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
6992 declaration. Fix -Werror.
6993
6994 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
6995
6996 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
6997 * gdbarch.c: Regenerate.
6998
6999 2002-04-05 Michael Snyder <msnyder@redhat.com>
7000
7001 * breakpoint.c (clear_command): Rewrite middle section to
7002 combine two loops with identical control conditions.
7003 Add a cleanup to eliminate a memory leak.
7004 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7005
7006 2002-04-05 H.J. Lu (hjl@gnu.org)
7007
7008 * solib-svr4.c (bkpt_names): Add "__start".
7009
7010 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7011
7012 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7013 as test for 64 bit target.
7014
7015 2002-04-05 Andrew Cagney <ac131313@redhat.com>
7016
7017 * h8500-tdep.c (h8500_write_fp): Delete function.
7018 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7019 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7020 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7021 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7022 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7023 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7024 (s390_write_fp):
7025 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7026 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7027 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7028 (d10v_write_fp): Delete function.
7029 * inferior.h (write_fp, generic_target_write_fp): Delete
7030 declarations.
7031 * regcache.c (generic_target_write_fp): Delete function.
7032 (write_fp): Delete function.
7033 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7034 * gdbarch.h, gdbarch.c: Regenerate.
7035 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7036 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7037 (sparc64_write_fp): Delete declaration.
7038 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7039 (h8500_write_fp): Delete declaration.
7040
7041 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7042
7043 * sparc-tdep.c (sparc64_write_fp): Delete.
7044 (sparc_push_dummy_frame): Replace write_fp call with code to store
7045 the FP directly.
7046 (sparc_gdbarch_init): Do not initialize write_fp.
7047
7048 2002-04-05 Kevin Buettner <kevinb@redhat.com>
7049
7050 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7051 clause.
7052
7053 2002-03-29 Jim Blandy <jimb@redhat.com>
7054
7055 * stack.c (get_selected_block): Add new argument `addr_in_block',
7056 used to return the exact code address we used to select the block,
7057 not just the block.
7058 * blockframe.c (get_frame_block, get_current_block): Same.
7059 * frame.h (get_frame_block, get_current_block,
7060 get_selected_block): Update declarations.
7061 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7062 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7063
7064 2002-04-05 Michael Snyder <msnyder@redhat.com>
7065
7066 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7067 warning message.
7068
7069 2002-04-05 J. Brobecker <brobecker@gnat.com>
7070
7071 * utils.c (xfullpath): New function.
7072 * defs.h (xfullpath): Add declaration.
7073 * source.c (openp): Use xfullpath in place of gdb_realpath to
7074 avoid resolving the basename part of filenames when the
7075 associated file is a symbolic link. This fixes a potential
7076 inconsistency between the filenames known to GDB and the
7077 filenames it prints in the annotations.
7078 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7079 to be able to match a filename with either the real filename, or
7080 the name of any symbolic link to this file.
7081 (lookup_partial_symtab): Ditto.
7082
7083 2002-04-04 Michael Snyder <msnyder@redhat.com>
7084
7085 * breakpoint.c: Add support for hardware breakpoints in overlays.
7086 (overlay_events_enabled): New state variable.
7087 (insert_breakpoints): Use overlay_events_enabled to decide
7088 whether to attempt to set a breakpoint at the overlay load addr.
7089 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7090 (remove_breakpoint): Use overlay_events_enabled to decide
7091 whether breakpoints need to be removed from overlay load addr.
7092 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7093 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7094 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7095 disable_overlay_breakpoints): Update overlay_events_enabled.
7096
7097 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7098
7099 * dwarf2read.c (struct function_range): New.
7100 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7101 (check_cu_functions): New.
7102 (read_file_scope): Initialize global function lists.
7103 Call dwarf_decode_line after processing children.
7104 (read_func_scope): Add to global function list.
7105 (dwarf_decode_lines): Call check_cu_functions everywhere
7106 record_line is called. Call record_line with a linenumber
7107 of 0 to mark sequence ends.
7108
7109 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7110
7111 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7112 change sync with glibc.
7113
7114 2002-04-03 Jim Blandy <jimb@redhat.com>
7115
7116 * configure.in: Call AC_C_INLINE.
7117 * configure: Regenerated.
7118
7119 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7120
7121 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7122 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7123
7124 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7125
7126 * NEWS: Mention gcore support on FreeBSD/i386.
7127
7128 * fbsd-proc.c: New file.
7129 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7130 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7131
7132 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7133 while statement.
7134
7135 2002-03-29 Jim Blandy <jimb@redhat.com>
7136
7137 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7138 unescaped newlines in string literals, but newer ones don't. So
7139 escape them.
7140
7141 2002-03-26 Michael Snyder <msnyder@redhat.com>
7142 Andrew Cagney <cagney@redhat.com>
7143
7144 * cli/cli-dump.c: New file. Dump memory to file,
7145 restore file to memory.
7146 * cli/cli-dump.h: New file.
7147 * Makefile.in: Add rules, dependencies for cli-dump.o.
7148 * NEWS: Mention new commands.
7149
7150 2002-03-28 Michael Snyder <msnyder@redhat.com>
7151
7152 * symfile.c (symbol_file_add): Move test for null symbols to later.
7153
7154 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7155
7156 From veksler at il.ibm.com:
7157 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7158 the xstrduped original path.
7159 Fix PR gdb/417.
7160
7161 2002-03-27 Michael Snyder <msnyder@redhat.com>
7162
7163 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7164 * infcmd.c (_initialize_infcmd): Ditto.
7165 * language.c (_initialize_language): Ditto.
7166 * symfile.c (_initialize_symfile): Ditto.
7167 * top.c (_init_main): Ditto.
7168 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7169
7170 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7171
7172 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7173 vector registers handling.
7174 (skip_prologue): Handle new AltiVec instructions. Fill in new
7175 fields of frame data.
7176 (frame_get_saved_regs): Fill in information for AltiVec registers.
7177
7178 2002-03-27 Jim Blandy <jimb@redhat.com>
7179
7180 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7181 a function; leave this macro here to invoke that function.
7182 (symbol_init_mangled_name): Declaration for that function.
7183 * symtab.c (symbol_init_mangled_name): New function.
7184
7185 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7186
7187 * valarith.c: Replace strerror with safe_strerror.
7188 * tracepoint.c: Ditto.
7189 * lin-lwp.c: Ditto.
7190 * go32-nat.c: Ditto.
7191 * inflow.c: Ditto.
7192 * gnu-nat.c: Ditto.
7193
7194 2002-03-27 Andreas Schwab <schwab@suse.de>
7195
7196 * event-top.c (command_line_handler): Remove useless if.
7197
7198 2002-03-27 Andreas Jaeger <aj@suse.de>
7199
7200 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7201 comment.
7202
7203 2002-03-27 Michal Ludvig <mludvig@suse.cz>
7204
7205 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7206 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7207 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7208 (x86_64_linux_dr_get_status, supply_gregset),
7209 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7210 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7211 (x86_64_register_info_table): Add.
7212 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7213 (x86_64_register_raw_size, x86_64_register_virtual_type),
7214 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7215 general x86_64_register_info_table.
7216 (i386_gdbarch_init): gdbarch_register_bytes is now set
7217 dynamicaly during initialization.
7218 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7219 * gdbserver/linux-x86-64-low.c: Ditto.
7220
7221 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7222
7223 * gdbserver/server.c (main): Call target_signal_to_host_p
7224 and target_signal_to_host on signals received from the remote.
7225 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7226 target_signal_from_host on signals sent to the remote.
7227 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7228 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7229
7230 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7231
7232 * signals/signals.c: Include "server.h" in gdbserver build.
7233 (target_signal_from_name): Don't use STREQ.
7234 (_initialize_signals): Likewise. Don't include function in
7235 gdbserver build.
7236
7237 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7238
7239 * signals.c: Moved to...
7240 * signals/signals.c: Here.
7241 * Makefile (signals.o): Update.
7242
7243 2002-03-26 Jeff Law (law@redhat.com)
7244
7245 * somread.c (som_symtab_read): Remove some commented out code and
7246 updated related comments. Do not set the minimal symbol table to
7247 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7248 in a dynamic executable.
7249 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7250 where we are unable to find the minimal symbol for the given
7251 PC value.
7252
7253 2002-03-25 Jeff Law (law@redhat.com)
7254
7255 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7256
7257 2002-03-25 Michal Ludvig <mludvig@suse.cz>
7258
7259 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7260
7261 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7262
7263 * command.h: Update copyright.
7264 (struct cmd_list_element): Replace definition with opaque
7265 declaration.
7266 (enum cmd_types): Document that it will eventually be moved to
7267 cli/cli-decode.h
7268 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7269 (MALLOCED_REPLACEMENT): Delete macro.
7270 * Makefile.in (cli_decode_h): Add $(command_h).
7271 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7272 * top.c: Include "cli/cli-decode.h".
7273 * completer.c: Include "cli/cli-decode.h".
7274 * maint.c: Include "cli/cli-decode.h".
7275 * cli/cli-decode.h: Include "command.h".
7276 (enum command_class): Delete.
7277 (enum cmd_types): Comment out.
7278 (enum cmd_auto_boolean): Delete.
7279 (enum var_types): Delete.
7280
7281 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7282
7283 * cli/cli-decode.c: Include "gdb_assert.h".
7284 (add_set_or_show_cmd): New static function.
7285 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7286 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7287 all fields, such as func, from the set command.
7288
7289 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7290
7291 * MAINTAINERS (sh-elf): Change warning flag to -w.
7292
7293 2002-03-23 Andrew Cagney <cagney@redhat.com>
7294
7295 * defs.h (error): Add printf format attribute.
7296 * thread-db.c (thread_from_lwp): Fix error format string.
7297 * stack.c (parse_frame_specification): Ditto.
7298 * cli/cli-decode.c (undef_cmd_error): Ditto.
7299 * scm-lang.c (scm_lookup_name): Ditto.
7300 * tracepoint.c (trace_error): Ditto.
7301 * remote-utils.c (usage): Ditto.
7302 * remote.c (compare_sections_command): Ditto.
7303 Fix PR gdb/328.
7304
7305 2002-03-22 Andrew Cagney <ac131313@redhat.com>
7306
7307 * gdbtypes.c (append_composite_type_field): New function.
7308 (init_composite_type): New function.
7309 * gdbtypes.h (append_composite_type_field): Declare.
7310 (init_composite_type): Ditto.
7311
7312 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
7313
7314 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7315 function.
7316 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7317 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7318 structure returning convention for SYSV ABI case, but not
7319 for GNU/Linux, FreeBSD, or NetBSD.
7320
7321 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
7322
7323 * symtab.h (lookup_block_symbol): Add mangled_name argument
7324 to prototype.
7325
7326 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7327 with new mangled_name argument.
7328 * linespec.c (decode_line_1): Likewise.
7329 * valops (value_of_this): Likewise.
7330 * symtab.c (lookup_transparent_type): Likewise.
7331 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7332 (lookup_symbol): If we are given a mangled name, pass it down
7333 to lookup_symbol_aux.
7334 (lookup_block_symbol): If we are given a mangled name to check
7335 against, only return symbols which match it.
7336
7337 2002-03-22 Christopher Faylor <cgf@redhat.com>
7338
7339 * win32-nat.c (child_create_inferior): Check for proper shell to use
7340 here, in case the user changes it on the fly.
7341 (_initialize_inftarg): Remove shell path considerations.
7342
7343 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
7344
7345 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7346 for gdbarch_max_register_raw_size and max_register_virtual_size.
7347 Adjust copyright year.
7348
7349 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
7350
7351 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7352 in a function to cover the entire beginning of the function
7353 as well if it does not already.
7354
7355 2002-03-21 Tom Rix <trix@redhat.com>
7356
7357 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7358 (rs6000_ptrace64): Renamed from ptrace64.
7359
7360 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7361
7362 * gdbserver/remote-utils.c (remote_open): Don't call
7363 getprotobyname, we're all using TCP here so just use
7364 IPPROTO_TCP.
7365 * gdbserver/gdbreplay.c (remote_open): Ditto.
7366
7367 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7368
7369 * regcache.c (_initialize_regcache): No need to call
7370 build_regcache() at this time; it gets called whenever
7371 the gdbarch changes.
7372
7373 2002-03-20 David O'Brien <obrien@FreeBSD.org>
7374
7375 * sparc-nat.c: Include sys/param.h where possible.
7376
7377 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
7378
7379 Fix PR gdb/422.
7380 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7381 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7382 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7383 complex types.
7384 * stabsread.c (rs6000_builtin_type): Likewise.
7385 (read_sun_floating_type): Likewise.
7386
7387 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7388
7389 * stabsread.c (read_member_functions): Remove skip code for duplicate
7390 constructor/destructor methods. Use standard parsing for these
7391 methods and just do not chain them to the list of methods after
7392 parsing.
7393
7394 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
7395
7396 * coffread.c: Remove redundant static declarations. Replace
7397 occurrences of `PTR' with `void *'.
7398 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7399 * top.h (quit_cover): Likewise.
7400 * defs.h (catch_errors): Likewise.
7401
7402 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7403
7404 * defs.h (XMALLOC): Define.
7405 * gdb-events.sh (XMALLOC): Delete macro.
7406 * gdb-events.c, gdb-events.h: Regenerate.
7407 * gdbarch.sh (XMALLOC): Delete macro.
7408 * gdbarch.c: Regenerate.
7409 * serial.c (XMALLOC): Delete macro.
7410 * ui-file.c (XMALLOC): Ditto.
7411 * ser-unix.h (XMALLOC): Ditto.
7412 * sh-tdep.c (XMALLOC): Ditto.
7413 * ui-out.c (XMALLOC): Ditto.
7414 * utils.c (XMALLOC): Ditto.
7415 * i386-tdep.c (XMALLOC): Ditto.
7416 * gdb-events.c (XMALLOC): Ditto.
7417 * d10v-tdep.c (XMALLOC): Ditto.
7418 * cli-out.c (XMALLOC): Ditto.
7419
7420 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7421 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7422 * ui-file.c, ui-out.c: Ditto.
7423
7424 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7425
7426 * command.h (struct cmd_list_element): Add field context.
7427 (set_cmd_context, get_cmd_context): Declare.
7428 * cli/cli-decode.h: Ditto.
7429 * cli/cli-decode.c (get_cmd_context): New function.
7430 (set_cmd_context): New function.
7431 (add_cmd): Initialize context.
7432 Part of fixing PR gdb/145 and PR gdb/146.
7433
7434 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7435
7436 * cli/cli-decode.c (cmd_type): New function.
7437 * command.h (cmd_type): Declare.
7438 * infrun.c (set_schedlock_func): Call function cmd_type.
7439 * kod.c (kod_set_os): Call cmd_type.
7440 * cris-tdep.c (cris_version_update): Use function cmd_type.
7441 (cris_mode_update, cris_abi_update): Ditto.
7442
7443 * command.h: (execute_cmd_post_hook): Declare.
7444 (execute_cmd_pre_hook): Declare.
7445 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7446 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7447 functions. Execute pre/post hook while ensuring that afterwords
7448 hook_in is cleared.
7449 * top.c (execute_command): Use execute_cmd_post_hook, and
7450 execute_cmd_pre_hook to execute pre/post commands.
7451 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7452 hook_stop_stub.
7453 (hook_stop_stub): Call execute_cmd_pre_hook.
7454
7455 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7456
7457 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7458 set'' and this leads to a core dump. Move xstrdup of
7459 operating_system to after check that it is not NULL.
7460
7461 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7462
7463 * kod.c (kod_set_os): Remove unnecessary check that
7464 ``command->type'' is set_cmd.
7465
7466 * valprint.c (set_input_radix): Use input_radix.
7467 (set_output_radix): Use output_radix.
7468 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7469 isn't reverted.
7470
7471 2002-03-16 Andrew Cagney <ac131313@redhat.com>
7472
7473 * value.h (struct value): Delete field ``substring_addr''. Change
7474 aligner fields to force_doublest_align, force_longest_align,
7475 force_core_addr_align and force_pointer_aligh.
7476
7477 * value.h (struct value): Fix typo in above change.
7478
7479 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7480
7481 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7482 to fix internal_error from ``maintenance print architecture''.
7483
7484 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7485
7486 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7487 for gcc versions after gcc-2.8.1.
7488
7489 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7490
7491 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7492 for method resolution. Restore adjustment of ``this'' pointer after
7493 calling value_struct_elt, which was accidentally removed during the
7494 HP merge.
7495
7496 2002-03-15 Andrew Cagney <ac131313@redhat.com>
7497
7498 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7499 value_of_register.
7500 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7501 get_saved_register.
7502 * value.h (value_of_register): Update.
7503
7504 2002-03-14 Richard Henderson <rth@redhat.com>
7505
7506 * configure.in: Detect declaration for canonicalize_file_name.
7507 * utils.c (canonicalize_file_name): Declare, if needed.
7508 (gdb_realpath): Prefer realpath if available and usable.
7509 * config.in, configure: Rebuild.
7510
7511 2002-03-14 Richard Henderson <rth@redhat.com>
7512
7513 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7514 a constant array bound.
7515
7516 * MAINTAINERS: Add myself to write-after-approval.
7517
7518 2002-03-14 Michael Snyder <msnyder@redhat.com>
7519
7520 * symfile.c (syms_from_objfile): Return immediately if no syms.
7521 (symbol_file_add): Return immediately if no syms.
7522 (find_sym_fns): Return immediately if no syms.
7523
7524 2002-03-13 Michal Ludvig <mludvig@suse.cz>
7525
7526 * gdbserver/remote-util.c (remote_open): Print remote-side's
7527 IP address when remote debugging over the network.
7528
7529 2002-03-12 David O'Brien <obrien@FreeBSD.org>
7530
7531 * config/sparc/fbsd.mh: Fix copyright.
7532 * config/sparc/fbsd.mt: Likewise.
7533
7534 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
7535
7536 * MAINTAINERS: Fix typo in name of gdb warnings option.
7537 (x86-64): Fix formating so that this can be parsed by awk.
7538
7539 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7540
7541 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7542 * defs.h: Include "gdb/signals.h".
7543 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7544
7545 2002-03-10 Michal Ludvig <mludvig@suse.cz>
7546
7547 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7548 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7549 from x86-64-tdep.h
7550
7551 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7552 Don Howard <dhoward@redhat.com>
7553
7554 * mips-tdep.c (ST0_FR): Define.
7555 (mips2_fp_compat): New function, temporarily disabled.
7556 (mips_read_fp_register_single): New function.
7557 (mips_read_fp_register_double): New function.
7558 (mips_print_register): Use them.
7559 (do_fp_register_row): Likewise.
7560
7561 2002-03-09 Andrew Cagney <ac131313@redhat.com>
7562
7563 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7564 approval''.
7565
7566 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7567
7568 * stabsread.c (read_member_functions): Fix is_stub test for
7569 static member functions, improve comment.
7570
7571 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7572
7573 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7574 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7575 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7576 commands that set boolean values.
7577 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7578 (arm_rdi_resume): Always initialize PC.
7579 (arm_rdi_open): Don't use rslt as a boolean.
7580 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7581 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7582 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7583 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7584
7585 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
7586
7587 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7588 * configure: Rebuilt.
7589
7590 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7591
7592 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7593 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7594
7595 2002-03-06 Andrew Cagney <ac131313@redhat.com>
7596
7597 * cli/cli-decode.c (set_cmd_completer): New function.
7598 * command.h (set_cmd_completer): Declare.
7599 * cli/cli-decode.h (set_cmd_completer): Ditto.
7600
7601 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7602 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7603 * win32-nat.c (_initialize_inftarg): Ditto.
7604 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7605 * proc-api.c (_initialize_proc_api): Ditto.
7606 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7607 * source.c (_initialize_source): Ditto.
7608 * exec.c (_initialize_exec): Ditto.
7609 * solib.c (_initialize_solib): Ditto.
7610 * top.c (init_main): Ditto.
7611 * tracepoint.c (_initialize_tracepoint): Ditto.
7612 * symfile.c (_initialize_symfile): Ditto.
7613 * printcmd.c (_initialize_printcmd): Ditto.
7614 * infcmd.c (_initialize_infcmd): Ditto.
7615 * corefile.c (_initialize_core): Ditto.
7616
7617 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7618
7619 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7620
7621 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7622
7623 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7624
7625 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7626
7627 * NEWS: Update headings, 5.2 has branched.
7628
7629 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
7630
7631 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
7632 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
7633 (register_addr, REGISTER_RAW_SIZE): Likewise.
7634 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
7635 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
7636
7637 2002-03-03 Michal Ludvig <mludvig@suse.cz>
7638
7639 * MAINTAINERS (x86-64): Add myself.
7640 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
7641 changed value_ptr -> struct value *
7642
7643 2002-03-01 David O'Brien <obrien@FreeBSD.org>
7644
7645 * configure.host (sparc64-*-freebsd): Add.
7646 * configure.tgt: Likewise.
7647 * config/sparc/fbsd.mh: New file.
7648 * config/sparc/fbsd.mt: Likewise.
7649 * config/sparc/nm-fbsd.h: Likewise.
7650 * config/sparc/tm-fbsd.h: Likewise.
7651
7652 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
7653
7654 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
7655 regformats/reg-s390x.dat.
7656
7657 2002-03-01 Andrew Cagney <ac131313@redhat.com>
7658
7659 * utils.c: Add FIXME explaining true/false problem.
7660
7661 2002-02-28 Andrew Cagney <ac131313@redhat.com>
7662
7663 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
7664
7665 2002-02-28 Michael Chastain <mec@shout.net>
7666
7667 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
7668
7669 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
7670
7671 * gdbserver/linux-s390-low.c: New file.
7672 * regformats/reg-s390.dat: New file.
7673 * regformats/reg-s390x.dat: New file.
7674 * gdbserver/configure.srv: Add S/390.
7675 * gdbserver/Makefile.in: Add S/390.
7676 * configure.tgt: Enable gdbserver for S/390.
7677
7678 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
7679
7680 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
7681 first line of the doc string for "info dos", except at the end of
7682 the sentence, since the short help stops at the first period.
7683
7684 2002-02-28 Jason Merrill <jason@redhat.com>
7685
7686 * dwarf2read.c (dwarf_cfi_name): Add new codes.
7687
7688 2002-02-27 Fred Fish <fnf@redhat.com>
7689
7690 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
7691 comment (dumy -> dummy).
7692
7693 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7694
7695 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
7696
7697 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
7698
7699 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
7700
7701 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7702
7703 * gdbserver/acconfig.h: New file.
7704 * gdbserver/i387-fp.c: New file.
7705 * gdbserver/i387-fp.h: New file.
7706 * gdbserver/linux-x86-64.c: New file.
7707 * regformats/reg-x86-64.dat: New file.
7708 * configure.tgt: Add x86_64-*-linux* gdbserver support.
7709 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
7710 * gdbserver/configure.in: Add support for regsets.
7711 * gdbserver/config.in: Regenerate.
7712 * gdbserver/configure: Regenerate.
7713 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
7714 * gdbserver/linux-low.h: New file.
7715 * gdbserver/linux-low.c: Include "linux-low.h". Add support
7716 for regsets.
7717 * gdbserver/linux-arm-low.c: Include "linux-low.h".
7718 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
7719 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
7720 * gdbserver/linux-mips-low.c: Include "linux-low.h".
7721 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
7722 * gdbserver/linux-sh-low.c: Include "linux-low.h".
7723 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
7724 "i387-fp.h". Add PTRACE_GETREGS and friends.
7725 * gdbserver/regcache.c (supply_register): New function.
7726 (supply_register_by_name): New function.
7727 (collect_register): New function.
7728 (collect_register_by_name): New function.
7729
7730 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7731
7732 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
7733 (config.status): Add configure.srv dependency.
7734 (server_h): Add config.h dependency.
7735
7736 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
7737
7738 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
7739 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
7740 * gdbserver/configure.srv: Change i386-*-linux* to use
7741 reg-i386-linux.o.
7742
7743 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7744
7745 * x86-64-tdep.c: Re-indent. Update copyright date.
7746
7747 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7748
7749 From Michal Ludvig <mludvig@suse.cz>:
7750 * x86-64-tdep.c (value.h): Delete.
7751 (gdb_assert.h): Include.
7752 (x86_64_register_convert_to_virtual,
7753 x86_64_register_convert_to_raw ): Add check which lets only
7754 floating-point values to be converted.
7755 (value_push): Delete.
7756 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
7757 (i386_gdbarch_init): Number of register_bytes fixed.
7758
7759 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7760
7761 * MAINTAINERS: Add x86-64 target.
7762
7763 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7764
7765 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
7766 * osfsolib.c (solib_map_sections): Ditto.
7767 * irix5-nat.c (solib_map_sections): Ditto.
7768 * corelow.c (gdb_check_format): Ditto.
7769 * symfile.c (symfile_bfd_open): Ditto.
7770 * solib.c (solib_map_sections): Ditto.
7771 Fix PR gdb/354.
7772
7773 2002-02-26 Andrew Cagney <ac131313@redhat.com>
7774
7775 * remote.c (_initialize_remote): By default, disable ``e'' and
7776 ``E'' step out-of-range packets.
7777
7778 2002-02-26 Andreas Schwab <schwab@suse.de>
7779
7780 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
7781 m68k_linux_frame_saved_pc.
7782 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
7783 in_sigtramp.
7784 (SIGCONTEXT_PC_OFFSET): Remove.
7785 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
7786 m68k_linux_sigtramp_saved_pc): New functions.
7787 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
7788 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
7789 (UCONTEXT_PC_OFFSET): Define.
7790 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
7791 non-RT and RT signal trampolines.
7792
7793 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
7794
7795 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
7796 (TARGET_NBPG, STACK_END_ADDR): Delete
7797 (VARIABLES_INSIDE_BLOCK): Delete.
7798
7799 2002-02-25 Andrew Cagney <ac131313@redhat.com>
7800
7801 * utils.c (perror_with_name): Make string parameter constant.
7802 (print_sys_errmsg): Ditto.
7803 (query): Ditto.
7804 * defs.h (perror_with_name): Update.
7805 (print_sys_errmsg): Update.
7806 (query): Update.
7807
7808 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
7809
7810 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
7811 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
7812
7813 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7814
7815 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
7816 if it already matches the current architecture from the exec file.
7817 Include arch-utils.h for gdbarch_info_init prototype.
7818 * Makefile.in (rs6000-nat.o): Update dependencies.
7819
7820 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
7821
7822 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
7823 list of exported variables.
7824
7825 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
7826
7827 * gdbserver/configure.srv: New file.
7828 * gdbserver/configure.in: Use configure.srv instead
7829 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
7830 from it.
7831 * gdbserver/configure: Regenerated.
7832 * gdbserver/terminal.h: New file.
7833 * gdbserver/Makefile.in: Update for configure changes. Remove
7834 more unneeded include paths.
7835
7836 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7837
7838 From wiz at danbala:
7839 * config/sparc/tm-sp64.h: Fix grammar and typos.
7840 Fix PR gdb/287.
7841
7842 2002-02-24 Andrew Cagney <ac131313@redhat.com>
7843
7844 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
7845 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
7846 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
7847 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
7848 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
7849 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
7850 * s390-tdep.c: Ditto.
7851 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
7852 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
7853 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
7854 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
7855 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
7856 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
7857 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
7858 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
7859 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
7860 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
7861 Fix PR gdb/378.
7862
7863 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7864
7865 * lin-thread.c: Delete file.
7866 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
7867 to gdb_proc_service.h.
7868 * configure: Re-generate.
7869
7870 * ocd.c (ocd_open): Do not try to open the "ocd" device.
7871 * serial.c (serial_open): Delete check for "ocd".
7872 Fix PR gdb/349.
7873
7874 * Makefile.in (linux-thread.o): Delete target.
7875 * linux-thread.c: Delete file.
7876
7877 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
7878 renamed SH files to be consistent.
7879
7880 * symtab.c (sort_search_symbols): Use xfree.
7881
7882 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7883
7884 * arm-linux-tdep.c (arm_linux_init_abi): Register
7885 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
7886 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
7887 definition with undef, since we don't want the sysvr4 definition.
7888 (SKIP_TRAMPOLINE_CODE): Likewise.
7889
7890 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7891
7892 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
7893
7894 * configure.in: (AC_CHECK_FUNCS) Added test for
7895 canonicalize_file_name Regenerated.
7896 * config.in, configure: Regenerated.
7897 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
7898 defined use canonicalize_file_name.
7899
7900 2002-02-23 Michael Chastain <mec@shout.net>
7901
7902 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
7903
7904 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7905
7906 * README: Remove references to cygnus.com.
7907 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
7908 dot com'' form. Remove references to cygnus.com and sourceware.
7909
7910 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7911
7912 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
7913 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
7914 1003.1-2001 no longer allows "head -1".
7915 * gdb/Makefile.in (version.c): Likewise.
7916 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
7917 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
7918 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
7919
7920 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7921
7922 * cli/cli-decode.c (cmd_cfunc_eq): New function.
7923 * command.h (cmd_cfunc_eq): Declare.
7924 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
7925
7926 * cli/cli-cmds.h (is_complete_command): Change parameter to a
7927 ``struct cmd_list_element *''.
7928 * cli/cli-cmds.c (is_complete_command): Update. Use
7929 cmd_cfunc_eq.
7930 * top.c (execute_command): Pass the command to
7931 is_complete_command.
7932 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
7933
7934 2002-02-23 Andrew Cagney <ac131313@redhat.com>
7935
7936 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
7937 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
7938 architecture defines.
7939 * s390-tdep.c (s390_gdbarch_init): Likewise.
7940
7941 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7942
7943 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
7944 (arm_linux_push_arguments): Likewise.
7945 (arm_linux_init_abi): Register them. Also register linux-specific
7946 call_dummy_words.
7947 (find_minsym_and_objfile): Use strcmp, not STREQ.
7948 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
7949 (arm_linux_call_dummy_words): Delete declaration.
7950 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
7951 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
7952 declarations.
7953 (LOWEST_PC): Delete.
7954
7955 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7956
7957 * maint.c (print_section_info): Do not prepend `0x' to filepos
7958 output, it will be handled by local_hex_string_custom.
7959
7960 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
7961
7962 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
7963 (store_newfpe_double, store_newfpe_extended, store_fpregister)
7964 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
7965
7966 2002-02-22 Jim Blandy <jimb@redhat.com>
7967
7968 Indicate that the bcache functions don't change the strings
7969 they're passed.
7970 * bcache.h (bcache, hash): Add `const' keywords to declarations.
7971 * bcache.c (bcache, hash): Add `const' keywords to definitions.
7972
7973 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
7974
7975 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
7976
7977 2002-02-21 Christopher Faylor <cgf@redhat.com>
7978
7979 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
7980 find the complete path to a loaded DLL.
7981
7982 2002-02-21 Fred Fish <fnf@redhat.com>
7983
7984 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
7985 that marks the end of the range of a function, enter a line number
7986 entry that has a line number of zero and a PC offset that matches
7987 the end of the function. This starts a range of PC's for which no
7988 line number information is known.
7989 * symtab.c (find_pc_sect_line): If our best fit is in a range of
7990 PC's for which no line number info is found (line number is zero)
7991 then we didn't find any valid line information.
7992 * symtab.h: Document use of zero line number entry.
7993
7994 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
7995
7996 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
7997 (have_ptrace_getvrregs): Define for run time checks.
7998 (gdb_vrregset_t): New type for Altivec register handling.
7999 (fetch_register, store_register): Fetch/store altivec register
8000 when needed.
8001 (fetch_altivec_register, store_altivec_register): New functions.
8002 (supply_vrregset, fill_vrregset): New functions.
8003 (fetch_altivec_registers, store_altivec_registers): New functions.
8004 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8005 registers as well.
8006
8007 2002-02-21 Jiri Smid <smid@suse.cz>
8008
8009 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8010
8011 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8012
8013 * Makefile.in (armnbsd-nat.o): Update dependencies.
8014 * armnbsd-nat.c (supply_gregset): New function. Common code to
8015 supply the integer register set.
8016 (supply_fparegset): New function. Similar for FPA registers.
8017 (fetch_regs, fetch_fp_regs): Use them.
8018 (fetch_core_registers): Likewise.
8019 (fetch_elfcore_registers): New function.
8020 (arm_netbsd_elfcore_fns): New core-file type specification.
8021 (_initialize_arm_netbsd_nat): Register it.
8022
8023 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8024
8025 * armnbsd-nat.c: Include gdbcore.h.
8026 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8027 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8028 'void' to declaration, to shut up ARI.
8029 (fetch_core_registers): Make static. Rewrite using supply_register.
8030 (arm_netbsd_core_fns): New core-file type specification.
8031 (_initialize_arm_netbsd_nat): New function.
8032
8033 2002-02-21 Christopher Faylor <cgf@redhat.com>
8034
8035 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8036 value.
8037
8038 2002-02-20 Christopher Faylor <cgf@redhat.com>
8039
8040 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8041 fails.
8042
8043 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8044
8045 * jv-exp.y (parse_number): Change type of implicit longs
8046 to builtin_type_uint64.
8047
8048 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8049
8050 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8051 to be an integer instead of a `union wait'.
8052
8053 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8054
8055 * mips-linux-nat.c: Call the operating system GNU/Linux.
8056 * mips-linux-tdep.c: Likewise.
8057 * mips-tdep.c: Likewise.
8058
8059 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8060
8061 Fix PR gdb/265.
8062 * jv-exp.y (parse_number): Handle 64-bit integers.
8063
8064 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8065
8066 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8067 AC_STDC_HEADERS to AC_HEADER_STDC.
8068 * gdbserver/configure: Regenerated.
8069
8070 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8071
8072 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8073 is defined.
8074 * sparc-tdep.c (get_longjmp_target): Likewise.
8075
8076 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8077
8078 * News: Add news about ARM and Multi-arch. Mention the new target
8079 arm*-*-netbsd*.
8080
8081 2002-02-19 Jim Blandy <jimb@redhat.com>
8082
8083 * stabsread.c (error_type_complaint): Improve error message.
8084
8085 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
8086
8087 * gdbserver/README: Update documentation.
8088 * gdbserver/configure.in: Update configury to match documentation.
8089 * gdbserver/Makefile.in: Likewise.
8090 * gdbserver/configure: Regenerated.
8091 * gdbserver/aclocal.m4: New file, generated by aclocal.
8092 * gdbserver/config.in: New file, generated by autoheader.
8093
8094 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8095
8096 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8097 armnbsd-nat.c.
8098
8099 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8100
8101 * arm-tdep.h (enum arm_float_model): New enum.
8102 (struct gdbarch_tdep): Add fp_model.
8103 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8104 up floating-point conversions until we know the floating-point model
8105 in use by the inferior. Don't complain about being unable to
8106 determine the ABI of the inferior when we don't have one.
8107 (arm_extract_return_value): Support different floating-point models.
8108 (arm_store_return_value): Likewise.
8109 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8110 ARM_FLOAT_SOFT.
8111 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8112
8113 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8114
8115 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8116 of ``current_gdbarch''.
8117
8118 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8119
8120 * armnbsd-nat.c : ANSIfy all function declarations.
8121 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8122 (fetch_inferior_registers): Re-implement in terms of above.
8123 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8124 (store_inferior_registers): Re-implement in terms of above.
8125
8126 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8127
8128 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8129 kernel.
8130 * arm-linux-tdep.c: Likewise.
8131 * config/arm/tm-linux.h: Likewise.
8132
8133 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8134
8135 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8136 * config/arm/nbsd.mt (TM_FILE): Delete.
8137 * config/arm/tm-nbsd.h: Delete.
8138
8139 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8140
8141 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8142 Initialize CALL_DUMMY_LENGTH.
8143
8144 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8145
8146 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8147 function.
8148 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8149 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8150 defines one thing and that is incorrect for this port.
8151 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8152
8153 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8154
8155 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8156
8157 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8158
8159 * win32-nat.c (display_selector): New function. Displays information
8160 about the information returned by GetThreadSelectorEntry API function.
8161 (display_selectors): New function. Displays the infomation of
8162 the selector given as argument, or of CS, DS ans FS selectors
8163 if no argument is given.
8164 ( _initialize_inftarg): Add "w32" as info prefix command.
8165 Add "info w32 selector" as command calling display_selectors.
8166
8167 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8168
8169 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8170 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8171 if not defined.
8172
8173 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8174
8175 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8176
8177 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8178
8179 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8180 (arm_fix_call_dummy): Call it.
8181 (arm_call_dummy_breakpoint_offset): Delete.
8182 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8183 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8184
8185 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8186
8187 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8188 Default to func_frame_chain_valid.
8189 * gdbarch.h, gdbarch.c: Re-generate.
8190 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8191
8192 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
8193
8194 * ppc-linux-nat.c: Update copyright.
8195 (fetch_register, store_register): Add tid parameter, don't compute
8196 tid here.
8197 (fetch_ppc_registers, store_ppc_registers): Add tid
8198 parameter. Pass it along to callees.
8199 (fetch_inferior_registers, store_inferior_registers): Compute tid
8200 here, and pass it to calleed functions.
8201 (fill_gregset, supply_fpregset): Clean up formatting.
8202
8203 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8204
8205 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8206 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8207
8208 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8209
8210 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8211 * gdbarch.c gdbarch.h: Regenerate.
8212 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8213 function.
8214 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8215 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8216 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8217
8218 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8219 * arm-tdep.c (arm_get_longjmp_target): New function.
8220 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8221 this to a positive value register arm_get_longjmp_target as the
8222 longjmp handler.
8223 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8224 (arm_linux_init_abi): Set up longjmp description in tdep.
8225 * armnbsd-nat.c (get_longjmp_target): Delete.
8226 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8227 description in tdep.
8228 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8229 (get_longjmp_target): Delete declaration.
8230 (GET_LONGJMP_TARGET): Delete.
8231 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8232 (GET_LONGJMP_TARGET): Delete.
8233
8234 2002-02-17 Kevin Buettner <kevinb@redhat.com>
8235
8236 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8237 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8238 of ``current_gdbarch''.
8239
8240 2002-02-17 Tom Tromey <tromey@redhat.com>
8241
8242 * cli/cli-cmds.c (compare_strings): New function.
8243 (complete_command): Only print each unique item once.
8244 * completer.h (complete_line): Declare.
8245 * completer.c (complete_line): New function.
8246 (line_completion_function): Use it.
8247
8248 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8249
8250 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8251 * gdbarch.h, gdbarch.c: Re-generate.
8252
8253 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8254
8255 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8256
8257 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8258
8259 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8260 * valops.c (value_arg_coerce): Don't take the address of a reference
8261 to convert an argument to a reference.
8262
8263 2002-02-15 Christopher Faylor <cgf@redhat.com>
8264
8265 * win32-nat.c (get_image_name): New function.
8266 (handle_load_dll): Use get_image_name function.
8267 (get_child_debug_event): Avoid registering debug events until possibly
8268 execed process is started.
8269 (child_create_inferior): Allow invocation via shell so that command
8270 line redirection, etc. works ok.
8271 (_initialize_inftarg): Add new command: "set shell" to control whether
8272 a shell is used to start a process.
8273
8274 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8275
8276 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8277 instead of find_register_by_number.
8278 (cannot_store_register): Likewise.
8279
8280 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8281
8282 * dwarf2read.c: Replace fprintf (stderr, ...) by
8283 fprintf_unfiltered (gdb_stderr, ...).
8284
8285 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8286
8287 * gdbserver/gdbserver.1: Document --attach.
8288
8289 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8290
8291 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8292 descriptions.
8293 * arm-tdep.c (arm_default_arm_le_breakpoint)
8294 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8295 (arm_default_thumb_be_breakpoint): New. Initialize them from
8296 traditional breakpoint defines.
8297 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8298 (arm_gdbarch_init): Initialize new breakpoint variables.
8299 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8300 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8301 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8302 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8303 code out to ...
8304 (arm_netbsd_init_abi_common): ... here; new function.
8305 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8306 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8307 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8308 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8309
8310 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8311
8312 * arm-tdep.h (enum arm_abi): New enum.
8313 (struct gdbarch_tdep): New structure.
8314 (LOWEST_PC): Provide a default.
8315 (arm_gdbarch_register_os_abi): Declare new function.
8316 * arm-tdep.c (arm_abi_names): New array.
8317 (process_note_abi_tag_sections): New function.
8318 (get_elfosabi): New function.
8319 (arm_gdbarch_register_os_abi): New function.
8320 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8321 support for that ABI has been built in, then call the appropriate
8322 configuration routine. Use gdbarch_num_regs() to get the number
8323 of registers.
8324 (arm_dump_tdep): New function.
8325 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8326 place-holder functions.
8327 (_initialize_arm_tdep): Register them.
8328 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8329
8330 * armnbsd-tdep.c: New file.
8331 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8332 * config/arm/nbsd.mt (TDEPFILES): Add it.
8333 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8334
8335 * armnbsd-nat.c: Include regcache.h.
8336 * Makefile.in (armnbsd-nat.o): Update dependency list.
8337
8338 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8339
8340 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8341
8342 * gdbserver/Makefile.in: Fix typos in target rules.
8343
8344 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8345
8346 Fix part of PR gdb/267.
8347 * linespec.c (find_methods): Handle constructors specially for now.
8348
8349 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
8350
8351 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8352 handling.
8353 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8354 standard_coerce_float_to_double().
8355
8356 2002-02-14 Christopher Faylor <cgf@redhat.com>
8357
8358 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8359 GDBINIT_FILENAME.
8360
8361 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
8362
8363 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8364 find_variant_by_name, because it confuses the multiarch
8365 framework. Return NULL if there isn't an architecture with the
8366 user supplied name, instead of forcing a different one without
8367 recording the change with the multiarch machinery.
8368 (find_variant_by_name): Delete.
8369
8370 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8371
8372 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8373 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8374
8375 2002-02-13 Martin M. Hunt <hunt@redhat.com>
8376
8377 * stack.c (print_frame_info_base): When calling
8378 print_frame_info_listing_hook, set current_source_symtab.
8379
8380 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8381
8382 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8383 and remove unused $(INCLUDE_DIR).
8384 Add regcache.c to OBS.
8385 Add generated register protocol files to clean target.
8386 Update dependencies for new objects, obsolete old target code.
8387
8388 * gdbserver/linux-low.c: Remove all platform-specific code to
8389 new files. Remove various dead code. Update to use regcache
8390 functionality.
8391 * gdbserver/remote-utils.c (fromhex): Add return statement
8392 to quiet warning.
8393 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8394 constant.
8395 (input_interrupt): Add integer parameter to match prototype
8396 of a signal handler.
8397 (outreg): Use register_data ().
8398 (prepare_resume_reply): Use gdbserver_expedite_regs.
8399 * gdbserver/server.c (main): Dynamically allocate own_buf because
8400 PBUFSIZ is no longer constant. Use registers_to_string () and
8401 registers_from_string ().
8402 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8403 for error (), fatal (), and warning (). Update definition of
8404 PBUFSIZ to use regcache functionality. Add include guard.
8405 * gdbserver/utils.c (fatal): Add missing ``const''.
8406 (warning): New function.
8407
8408 * regformats/regdat.sh: Include "regcache.h" in generated files.
8409 Provide init_registers () function.
8410 * regformats/regdef.h: Add prototype for set_register_cache ().
8411 Add include guard.
8412
8413 * gdbserver/linux-arm-low.c: New file.
8414 * gdbserver/linux-i386-low.c: New file.
8415 * gdbserver/linux-ia64-low.c: New file.
8416 * gdbserver/linux-m68k-low.c: New file.
8417 * gdbserver/linux-mips-low.c: New file.
8418 * gdbserver/linux-ppc-low.c: New file.
8419 * gdbserver/linux-sh-low.c: New file.
8420
8421 * gdbserver/regcache.c: New file.
8422 * gdbserver/regcache.h: New file.
8423
8424 * gdbserver/low-linux.c: Removed obsolete file.
8425
8426 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8427
8428 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8429 * config/i386/linux.mt: Likewise.
8430 * config/ia64/linux.mt: Likewise.
8431 * config/m68k/linux.mh: Likewise.
8432 * config/powerpc/linux.mh: Likewise.
8433 * config/mips/linux.mt: Likewise.
8434
8435 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8436
8437 * config/i386/i386lynx.mh: Mark gdbserver variables
8438 as (currently) obsolete for this target.
8439 * config/i386/nbsd.mt: Likewise.
8440 * config/i386/nbsdelf.mt: Likewise.
8441 * config/m32r/m32r.mt: Likewise.
8442 * config/m68k/m68klynx.mh: Likewise.
8443 * config/m68k/nbsd.mt: Likewise.
8444 * config/m68k/sun3os4.mh: Likewise.
8445 * config/mips/vr5000.mt: Likewise.
8446 * config/ns32k/nbsd.mt: Likewise.
8447 * config/pa/hppabsd.mh: Likewise.
8448 * config/pa/hppaosf.mh: Likewise.
8449 * config/powerpc/nbsd.mt: Likewise.
8450 * config/rs6000/rs6000lynx.mh: Likewise.
8451 * config/s390/s390.mt: Likewise.
8452 * config/s390/s390x.mt: Likewise.
8453 * config/sparc/sparclynx.mh: Likewise.
8454 * config/sparc/sun4os4.mh: Likewise.
8455 * config/i386/x86-64linux.mt: Likewise.
8456 * config/sparc/linux.mh: Likewise.
8457
8458 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8459
8460 * configure.tgt: Configure gdbserver only for known working
8461 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8462 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8463 SUBDIRS if it is configured. Update comment for ${nativefile}.
8464 * configure: Regenerated.
8465
8466 2002-02-13 Michael Snyder <msnyder@redhat.com>
8467
8468 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8469
8470 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8471 (default_gcore_mach): Just return 0, work around a problem in bfd.
8472 (default_gcore_target): OK to return NULL if exec_bfd is null.
8473 (make_mem_sec): Use a cast, avoid a warning.
8474
8475 * procfs.c (find_memory_regions_callback): Use a cast instead of
8476 calling host_pointer_to_address (which complains if
8477 sizeof (host pointer) != sizeof (target pointer)).
8478 (procfs_make_note_section): Avoid overflow in psargs string.
8479
8480 * procfs.c (procfs_make_note_section): Make the default
8481 implementation return an error.
8482
8483 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
8484
8485 * procfs.c (procfs_make_note_section): Provide a default definition
8486 (for alpha-dec-osf4.0f). Fix typos.
8487
8488 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
8489
8490 * linux-proc.c: Add include of regcache.h.
8491 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8492
8493 2002-02-13 Andrew Cagney <ac131313@redhat.com>
8494
8495 From 2002-01-18 Greg McGary <greg@mcgary.org>:
8496 * memattr.c (create_mem_region): Disallow useless empty region.
8497 Regions are half-open intervals, so allow [A..B) [B..C) as
8498 non-overlapping.
8499
8500 2002-02-13 Michael Chastain <mec@shout.net>
8501
8502 * defs.h: Kill CONST_PTR.
8503 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8504 * c-lang.c (c_builtin_types): Likewise.
8505 * ch-lang.c (ch_builtin_types): Likewise.
8506 * f-lang.c (f_builtin_types): Likewise.
8507 * language.c (unknown_builtin_types): Likewise.
8508 * m2-lang.c (m2_builtin_types): Likewise.
8509 * p-lang.c (pascal_builtin_types): Likewise.
8510 * scm-lang.c (c_builtin_types): Likewise.
8511
8512 2002-02-13 Keith Seitz <keiths@redhat.com>
8513
8514 * arm-tdep.h (arm_get_next_pc): Add declaration.
8515
8516 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
8517
8518 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8519 with other related struct-returning functions.
8520 (arm_extract_struct_value_address): New function.
8521 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8522 initialize float_format, double_format and long_double_format as
8523 appropriate to the endianness of the target.
8524 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8525 (arm_use_struct_convention): Delete declaration.
8526 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8527
8528 2002-02-13 Keith Seitz <keiths@redhat.com>
8529
8530 * defs.h (core_addr_to_string_nz): New function.
8531
8532 2002-02-13 Mark Kettenis <kettenis@gnu.org>
8533
8534 Apply missing bits of 2002-01-15 patch.
8535 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8536 (fill_fpregset): Use i387_fill_fsave.
8537
8538 2002-02-12 Keith Seitz <keiths@redhat.com>
8539
8540 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8541 (core_addr_to_string_nz): New function.
8542
8543 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8544
8545 * arm-linux-nat.c: Really include arm-tdep.h.
8546 * config/arm/tm-linux.h (struct type, struct value): Declare.
8547
8548 2002-02-11 Michael Snyder <msnyder@redhat.com>
8549
8550 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8551 (gcore section): Ifdef for Solaris and Unixware only.
8552 (procfs_do_thread_registers): Unixware needs one lwpstatus
8553 per thread (not one prstatus or pstatus).
8554 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8555 not over all gdb threads. For unixware, call elfcore_write_pstatus
8556 once before iterating over threads.
8557
8558 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8559
8560 * arm-tdep.h: New file.
8561 * arm-tdep.c: Include arm-tdep.h.
8562 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8563 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8564 (arm_print_float_info, arm_register_type, convert_to_extended)
8565 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8566 (arm_extract_return_value, arm_register_name): Make static.
8567 (arm_software_single_step): Similarly. Fix types in declaration.
8568 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8569 (arm_store_return_value, arm_store_struct_return): New functions.
8570 (arm_gdbarch_init): Register the above functions. Also register
8571 call_dummy_start_offset, sizeof_call_dummy_words,
8572 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8573 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8574 max_register_virtual_size, register_size. Set up
8575 prologue_cache.saved_regs here, rather than ...
8576 (_initialize_arm_tdep): ... here.
8577 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8578 declarations.
8579 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8580 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8581 (arm_print_float_info, arm_register_type, convert_to_extended)
8582 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8583 (arm_extract_return_value, arm_register_name): Delete declarations.
8584 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8585 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8586 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8587 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8588 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8589 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8590 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8591 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8592 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8593 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8594 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8595 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8596 interface.
8597 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8598 * remote-rdi.c remote-rdp.c: Likewise.
8599 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8600 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8601 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8602 definition.
8603
8604 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8605 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8606 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8607 from non-ARM_ prefixed definitions.
8608 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8609 all uses of above.
8610 * remote-rdi.c remote-rdp.c: Likewise.
8611 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8612
8613 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8614
8615 * arm-tdep.c (arm_frameless_function_invocation)
8616 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8617 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8618 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8619 (arm_pop_frame, arm_get_next_pc): Make static.
8620 (arm_gdbarch_init): Register above in gdbarch structure.
8621 (arm_read_fp): Renamed from arm_target_read_fp.
8622 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8623 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8624 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8625 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8626 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8627 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
8628 (arm_pc_is_thumb_dummy): Delete declarations.
8629 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
8630 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
8631 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
8632 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
8633
8634 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
8635
8636 * symtab.c (compare_search_syms): New function.
8637 (sort_search_symbols): New function.
8638 (search_symbols): Sort symbols after searching rather than
8639 before.
8640
8641 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8642
8643 * NEWS: Linux -> GNU/Linux.
8644
8645 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8646
8647 * gdbarch.sh: For for level one methods, disallow a definition
8648 when partially multi-arched. Add comments explaining rationale.
8649 * gdbarch.h: Re-generate.
8650
8651 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8652
8653 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
8654 multi-arch partial.
8655
8656 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8657
8658 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
8659 field. Use diff -u.
8660 * gdbarch.c: Re-generate.
8661
8662 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8663
8664 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
8665 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
8666 partial.
8667
8668 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8669
8670 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
8671 multi-arch partial.
8672 (PUSH_ARGUMENTS): Switch to using predefault.
8673 * gdbarch.c: Regenerate.
8674
8675 2002-02-10 Andrew Cagney <ac131313@redhat.com>
8676
8677 * valops.c (PUSH_ARGUMENTS): Delete definition.
8678 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
8679 partial. Default to default_push_arguments.
8680 * gdbarch.h, gdbarch.c: Regenerate.
8681
8682 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8683
8684 * defs.h (throw_exception): Rename return_to_top_level. Update
8685 comments.
8686 * utils.c (error_stream, internal_verror, quit): Ditto.
8687 * top.c (throw_exception, catcher): Ditto.
8688 * sparclet-rom.c (sparclet_load): Ditto.
8689 * remote.c (interrupt_query, minitelnet): Ditto.
8690 * remote-sds.c (interrupt_query): Ditto.
8691 * remote-mips.c (mips_error, mips_kill): Ditto.
8692 * ocd.c (interrupt_query): Ditto.
8693 * monitor.c (monitor_interrupt_query): Ditto.
8694 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
8695 * target.h: Update comment.
8696
8697 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
8698
8699 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8700
8701 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
8702 default_double_format.
8703 * gdbarch.h, gdbarch.c: Re-generate.
8704 * findvar.c (floatformat_unknown): Delete variable definition.
8705 * doublest.h (floatformat_unknown): Delete variable declaration.
8706
8707 2002-02-09 Jim Blandy <jimb@redhat.com>
8708
8709 * stabsread.c (read_type): Add code to parse Sun's syntax for
8710 prototyped function types.
8711
8712 2002-02-09 Andrew Cagney <ac131313@redhat.com>
8713
8714 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
8715 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
8716
8717 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8718
8719 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
8720 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
8721 now _initialize_xcoffsolib gets called again and overrides the
8722 commands from solib.c in a native configuration.
8723
8724 2002-02-09 Mark Kettenis <kettenis@gnu.org>
8725
8726 * doublest.c (store_typed_floating): Don't try to return a value.
8727 Fixes PR gdb/290.
8728
8729 2002-02-08 Jim Blandy <jimb@redhat.com>
8730
8731 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
8732 is prototyped and has no arguments, print its argument list as
8733 `(void)'.
8734
8735 2002-02-08 Chris Demetriou <cgd@broadcom.com>
8736
8737 * MAINTAINERS (write-after-approval): Add myself.
8738 (paper-trail): I've escaped!
8739
8740 2002-02-08 Christopher Faylor <cgf@redhat.com>
8741
8742 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
8743 changes.
8744 (_initialize_check_for_gdb_ini): Ditto.
8745
8746 2002-02-08 Martin M. Hunt <hunt@redhat.com>
8747
8748 * win32-nat.c (cygwin_pid_to_str): Fix typo.
8749 xaprintf -> xasprintf.
8750
8751 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
8752
8753 * win32-nat.c: Remove use of printf and sprintf functions.
8754
8755 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
8756
8757 * arm-tdep.c (arm_frame_chain_valid): Make static.
8758 (arm_push_arguments): Likewise.
8759 (arm_gdbarch_init): New function.
8760 (_initialize_arm_tdep): Call it.
8761 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
8762 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
8763 (FRAME_CHAIN_VALID): Delete.
8764 (arm_frame_chain_valid): Delete declaration.
8765 (PUSH_ARGUMENTS): Delete.
8766 (arm_push_arguments): Delete declaration.
8767 (CALL_DUMMY_P): Delete.
8768
8769 2002-02-08 Andrew Cagney <ac131313@redhat.com>
8770 Corinna Vinschen <vinschen@redhat.com>
8771
8772 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
8773 on builtin float types.
8774
8775 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
8776
8777 * utils.c: Include <curses.h> before "bfd.h".
8778 * tui/tui-hooks.c: Likewise.
8779 * tui/tui.c: Likewise.
8780 * tui/tuiCommand.c: Likewise.
8781 * tui/tuiData.c: Likewise.
8782 * tui/tuiDataWin.c: Likewise.
8783 * tui/tuiDisassem.c: Likewise.
8784 * tui/tuiGeneralWin.c: Likewise.
8785 * tui/tuiIO.c: Likewise.
8786 * tui/tuiLayout.c: Likewise.
8787 * tui/tuiRegs.c: Likewise.
8788 * tui/tuiSource.c: Likewise.
8789 * tui/tuiSourceWin.c: Likewise.
8790 * tui/tuiStack.c: Likewise.
8791 * tui/tuiWin.c: Likewise.
8792
8793 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
8794
8795 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
8796 to include space for pseudoregs as well. Update loops accordingly.
8797 (sh_fp_frame_init_saved_regs): Ditto.
8798 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
8799
8800 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8801
8802 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
8803 Add Richard Earnshaw to Arm maintainers.
8804
8805 2002-02-07 Andrew Cagney <ac131313@redhat.com>
8806
8807 * defs.h (warning_begin): Delete declaration.
8808
8809 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
8810 Delete macro.
8811
8812 2002-02-07 Michael Snyder <msnyder@redhat.com>
8813
8814 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
8815 Logic bug, remove misplaced else.
8816
8817 2002-02-07 Klee Dienes <klee@apple.com>
8818
8819 * fork-inferior.c (fork_inferior): Add '!' to the list of
8820 characters that need to be quoted when building a string for the
8821 shell. Quote '!' specifically with a backslash, since CSH chokes
8822 when trying to evaluate "str!str".
8823
8824 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
8825
8826 * rdi-share/host.h: Only provide a typedef for bool if it is not
8827 defined.
8828
8829 2002-02-04 Michael Snyder <msnyder@redhat.com>
8830
8831 * breakpoint.h (enum bptype): Add new overlay event bp type.
8832 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
8833
8834 * breakpoint.c (create_internal_breakpoint): New function.
8835 (internal_breakpoint_number): Moved into create_internal_breakpoint.
8836 (create_longjmp_breakpoint): Use create_internal_breakpoint.
8837 (create_thread_event_breakpoint): Ditto.
8838 (create_solib_event_breakpoint): Ditto.
8839 (create_overlay_event_breakpoint): New function.
8840 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
8841 (update_breakpoints_after_exec): Delete and re-initialize
8842 overlay event breakpoints after an exec. Add FIXME comment
8843 about longjmp breakpoint.
8844 (print_it_typical): Ignore overlay event breakpoints.
8845 (print_one_breakpoint): Ditto.
8846 (mention): Ditto.
8847 (bpstat_what): Do not stop for overlay event breakpoints.
8848 (delete_breakpoint): Don't delete overlay event breakpoints.
8849 (breakpoint_re_set_one): Delete the overlay event breakpoint.
8850 (breakpoint_re_set): Re-create overlay event breakpoint.
8851
8852 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
8853 (overlay_manual_command): Disable overlay breakpoints.
8854 (overlay_off_command): Disable overlay breakpoints.
8855
8856 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8857
8858 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
8859 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
8860 to here from config/tm-arm.h.
8861 (coff_sym_is_thumb): Make static.
8862 (arm_elf_make_msymbol_special): New function.
8863 (arm_coff_make_msymbol_special): New function.
8864 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
8865 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
8866 (coff_sym_is_thumb): Delete declaration.
8867 (arm_elf_make_msymbol_special): Declare.
8868 (arm_coff_make_msymbol_special): Declare.
8869 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
8870 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
8871
8872 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8873
8874 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
8875
8876 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
8877
8878 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
8879 * gdbarch.c gdbarch.h: Regenerate.
8880 * arch-utils.c (default_print_float_info): New function.
8881 * arch-utils.h (default_print_float_info): Prototype it.
8882 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
8883 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
8884 (PRINT_FLOAT_INFO): Document it.
8885
8886 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
8887 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
8888 (PRINT_FLOAT_INFO): Define.
8889
8890 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
8891
8892 * win32-nat.c (_initialize_check_for_gdb_ini):
8893 Add typecast to sprintf argument to suppress a warning.
8894
8895 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
8896
8897 * win32-nat.c (last_sig): Changed type of variable to target_signal,
8898 to allow easier handling of pass state.
8899 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
8900 that gives exception name and address.
8901 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
8902 and set last_sig value to ourstatus->value.sig. Some missing
8903 exceptions added.
8904 (child_continue): Correctly report continue_status.
8905 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
8906 TARGET_SIGNAL_0 (new default value).
8907 (child_resume): consider sig argument passed to decide if
8908 the exception should be passed to debuggee or not.
8909
8910 2002-02-05 Michael Snyder <msnyder@redhat.com>
8911
8912 * regcache.c (fetch_register): Call target_fetch_register
8913 only if we don't call FETCH_PSEUDO_REGISTER.
8914 (store_register): Call target_store_register only if we
8915 don't call STORE_PSEUDO_REGISTER.
8916
8917 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
8918
8919 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
8920 ELF_MAKE_MSYMBOL_SPECIAL.
8921 * gdbarch.c, gdbarch.h: Regenerate.
8922 * arch-utils.c (default_make_msymbol_special): New function.
8923 * arch-utils.h (default_make_msymbol_special): Export.
8924 * elfread.c (elf_symtab_read): Compile use of
8925 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
8926 multiarched.
8927 * coffread.c (coff_symtab_read): Ditto, for
8928 COFF_MAKE_MSYMBOL_SPECIAL.
8929
8930 2002-02-05 Jim Blandy <jimb@redhat.com>
8931
8932 * solib-svr4.c (svr4_truncate_ptr): New function.
8933 (svr4_relocate_section_addresses): Do the address arithmetic with
8934 the appropriate truncation for target addresses, even when
8935 CORE_ADDR is larger than a target address.
8936
8937 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8938
8939 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
8940 to (int *).
8941
8942 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8943
8944 * gdbserver/linux-low.c (kill_inferior): Remove commented out
8945 code.
8946
8947 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8948
8949 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
8950
8951 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8952
8953 * gdbserver/linux-low.c: Remove unused include files.
8954
8955 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8956
8957 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
8958 (read_inferior_memory): Use it.
8959 (write_inferior_memory): Likewise.
8960
8961 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8962
8963 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
8964 grubbing through sys_errlist.
8965
8966 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
8967
8968 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
8969
8970 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
8971 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
8972
8973 2002-02-04 Andrew Cagney <ac131313@redhat.com>
8974
8975 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
8976 (do_sfunc, set_cmd_sfunc): New functions.
8977
8978 * command.h (struct cmd_list_element): Add field func.
8979 * cli/cli-decode.h (struct cmd_list_element): Ditto.
8980 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
8981 * cli/cli-decode.h: Ditto.
8982
8983 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
8984 (help_all, help_cmd_list): Ditto.
8985 (find_cmd, complete_on_cmdlist): Ditto.
8986 * top.c (execute_command): Ditto.
8987
8988 * cli/cli-setshow.c (do_setshow_command): Call func instead of
8989 function.sfunc.
8990
8991 * infcmd.c (notice_args_read): Fix function signature.
8992
8993 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
8994 * cli/cli-decode.c (add_set_cmd): Ditto.
8995 * utils.c (initialize_utils): Ditto.
8996 * maint.c (_initialize_maint_cmds): Ditto.
8997 * infrun.c (_initialize_infrun): Ditto.
8998 * demangle.c (_initialize_demangler): Ditto.
8999 * remote.c (add_packet_config_cmd): Ditto.
9000 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9001 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9002 * proc-api.c (_initialize_proc_api): Ditto.
9003 * kod.c (_initialize_kod): Ditto.
9004 * valprint.c (_initialize_valprint): Ditto.
9005 * top.c (init_main): Ditto.
9006 * infcmd.c (_initialize_infcmd): Ditto.
9007 * corefile.c (_initialize_core): Ditto.
9008 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9009 * arch-utils.c (initialize_current_architecture): Ditto.
9010 (_initialize_gdbarch_utils): Ditto.
9011 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9012
9013 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9014 * wince.c (_initialize_inftarg): Ditto.
9015 * symfile.c (_initialize_symfile): Ditto.
9016 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9017 * language.c (_initialize_language): Ditto.
9018 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9019
9020 2002-02-04 Michael Snyder <msnyder@redhat.com>
9021
9022 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9023
9024 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9025
9026 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9027 Add rules for building the register data files.
9028
9029 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9030
9031 * regformats/regdat.sh: Add braces to the definition of
9032 expedite_regs_${arch}.
9033
9034 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9035
9036 * regformats/regdef.h (struct reg): Add comment describing the
9037 requirements for offset and size fields.
9038
9039 2002-02-04 Andreas Schwab <schwab@suse.de>
9040
9041 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9042 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9043
9044 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
9045
9046 * gdbarch.sh (copyright): Update years in generated header.
9047 (SMASH_TEXT_ADDRESS): Add rule.
9048 * gdbarch.h, gdbarch.c: Re-generate.
9049 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9050 * dbxread.c: Likewise.
9051 * dwarfread.c: Likewise.
9052 * elfread.c: Likewise.
9053 * somread.c: Likewise.
9054
9055 * arm-tdep.c (arm_smash_text_address): New function.
9056 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9057
9058 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9059
9060 Add support for hardware watchpoints on win32 native.
9061 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9062 CONTEXT_DEBUG_REGISTERS.
9063 (dr variable): New variable. Static array containing a local copy
9064 of debug registers.
9065 (debug_registers_changed): New variable. Reflects when debug registers
9066 are changed and need to be written to inferior.
9067 (debug_registers_used): New variable. Reflects when any debug register
9068 was set, used when new threads are created.
9069 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9070 i386-nat code.
9071 (thread_rec): Set dr array if id is the thread of current_event .
9072 (child_continue, child_resume): Change the debug registers for all
9073 threads if debug_registers_changed.
9074 (child_add_thread): Change the debug registers if debug_registers_used.
9075 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9076 Link nm.h to new nm-cygwin.h file.
9077 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9078 of hardware registers.
9079
9080 2002-02-03 Andrew Cagney <ac131313@redhat.com>
9081
9082 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9083 Restore behavour broken by 2002-01-20 Andrew Cagney
9084 <ac131313@redhat.com> IEEE_FLOAT removal.
9085
9086 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9087
9088 * c-valprint.c (c_val_print): Pass a proper valaddr to
9089 cp_print_class_method.
9090 * valops.c (search_struct_method): If there is only one method
9091 and args is NULL, return that method.
9092
9093 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9094
9095 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9096 accessing tag_name directly.
9097
9098 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9099
9100 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9101 of accessing tag_name directly.
9102
9103 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9104
9105 PR gdb/280
9106 * gdbtypes.c (replace_type): New function.
9107 * gdbtypes.h (replace_type): Add prototype.
9108 * stabsread.c (read_type): Use replace_type.
9109
9110 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9111
9112 * Makefile.in (memattr.o): Add missing dependencies rule.
9113
9114 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9115
9116 * breakpoint.c (break_at_finish_command): Really export.
9117 (break_at_finish_at_depth_command): Ditto.
9118 (tbreak_at_finish_command): Ditto.
9119 * hppa-tdep.c: Include completer.h.
9120 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9121 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9122
9123 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9124
9125 * utils.c (do_write): New function.
9126 (error_stream): Rewrite combining the code from error_begin and
9127 verror.
9128 (verror): Rewrite using error_stream.
9129 (error_begin): Delete function.
9130
9131 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9132
9133 * utils.c (error_begin): Make static.
9134 * defs.h (error_begin): Delete declaration.
9135
9136 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9137 (decode_line_1): Use cplusplus_error instead of error_begin,
9138 cplusplus_hint and return_to_top_level.
9139 * coffread.c (coff_symfile_read): Use error instead of error_begin
9140 and return_to_top_level.
9141 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9142
9143 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9144
9145 * language.h (type_error, range_error): Make string parameter
9146 constant.
9147 * language.c (warning_pre_print): Delete extern declaration.
9148 * dwarfread.c (warning_pre_print): Ditto.
9149 * language.c (type_error, range_error): Rewrite to use verror and
9150 vwarning instead of warning_begin.
9151
9152 2002-02-01 Michael Snyder <msnyder@redhat.com>
9153
9154 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9155 (set_ignore_count): Move misplaced comment back where it belongs.
9156
9157 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9158
9159 * command.h (NO_FUNCTION): Delete macro.
9160 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9161 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9162 * tracepoint.c (_initialize_tracepoint): Ditto.
9163 * cli/cli-decode.c (add_set_cmd): Ditto.
9164 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9165
9166 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9167
9168 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9169 Update ``this'' pointer when calling virtual functions.
9170
9171 2002-02-01 Michael Snyder <msnyder@redhat.com>
9172
9173 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9174 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9175
9176 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9177
9178 * regformats/reg-arm.dat: New file.
9179 * regformats/reg-i386.dat: New file.
9180 * regformats/reg-ia64.dat: New file.
9181 * regformats/reg-m68k.dat: New file.
9182 * regformats/reg-mips.dat: New file.
9183 * regformats/reg-ppc.dat: New file.
9184 * regformats/reg-sh.dat: New file.
9185 * regformats/regdef.h: New file.
9186 * regformats/regdat.sh: New file.
9187
9188 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9189
9190 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9191 (arm_frame_args_address, arm_frame_locals_address): New functions.
9192 (arm_frame_num_args): New function.
9193 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9194 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9195 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9196
9197 2002-01-31 Michael Snyder <msnyder@redhat.com>
9198
9199 * breakpoint.c (break_at_finish_command): Export.
9200 (break_at_finish_at_depth_command): Export.
9201 (tbreak_at_finish_command): Export.
9202 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9203 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9204 "tbreak" commands, which are HPPA specific.
9205
9206 * printcmd.c (disassemble_command): Remove an ancient
9207 artifact of an old merge.
9208
9209 * symfile.h (enum overlay_debugging_state):
9210 Define enum constant values for overlay mode.
9211 * symfile.c (overlay_debugging): Use enums instead of literals.
9212 (overlay_is_mapped, overlay_auto_command,
9213 overlay_manual_command): Ditto.
9214
9215 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9216 breakpoint_here_p, breakpoint_inserted_here_p,
9217 breakpoint_thread_match, bpstat_stop_status,
9218 describe_other_breakpoints, check_duplicates, clear_command):
9219 Coding standard fixes.
9220
9221 * target.c (target_xfer_memory): Add spaces, coding standard.
9222 (do_xfer_memory): Add missing line to trust-readonly
9223 code: check bfd SEC_READONLY flag for section.
9224
9225 2002-01-31 Andrew Cagney <ac131313@redhat.com>
9226
9227 * PROBLEMS: Fix typo, 5.1->5.1.1.
9228
9229 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
9230
9231 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9232 data symbols, since we search based on textlow and texthigh.
9233 (find_pc_sect_symtab): Likewise.
9234
9235 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9236
9237 * defs.h (vwarning): Declare.
9238 * utils.c (vwarning): New function.
9239 (warning): Call vwarning.
9240 (warning_begin): Delete function.
9241
9242 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9243 the warning message.
9244 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9245 warning_begin.
9246
9247 2002-01-30 Michael Snyder <msnyder@redhat.com>
9248
9249 * NEWS: Mention "set trust-readonly-sections" command.
9250 Mention generate-core-file command.
9251
9252 2002-01-15 Michael Snyder <msnyder@redhat.com>
9253
9254 * target.c: New command, "set trust-readonly-sections on".
9255 (do_xfer_memory): Honor the suggestion to trust readonly sections
9256 by reading them from the object file instead of from the target.
9257 (initialize_targets): Register command "set trust-readonly-sections".
9258
9259 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9260
9261 * parse.c (target_map_name_to_register): Simplify, search regs and
9262 pseudo-regs using a single loop.
9263
9264 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9265
9266 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9267
9268 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
9269
9270 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9271 * config/i386/i386v42mp.mh: Add i387-nat.o .
9272 * i386v4-nat.c: Include i387-nat.h.
9273 (supply_fpregset): Use i387_supply_fsave.
9274 (fill_fpregset): Use i387_fill_fsave.
9275
9276 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
9277
9278 * arm-tdep.c (arm_call_dummy_words): Define.
9279 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9280 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9281 (CALL_DUMMY_WORDS): Define.
9282 (arm_call_dummy_words): Declare.
9283 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9284 (arm_linux_call_dummy_words): Declare.
9285
9286 2002-01-30 Andreas Schwab <schwab@suse.de>
9287
9288 * m68klinux-nat.c: Fix last change to use regcache_collect
9289 instead of referencing registers[] directly.
9290
9291 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9292
9293 * parse.c (target_map_name_to_register): Delete code wrapped in
9294 #ifdef REGISTER_NAME_ALIAS_HOOK.
9295
9296 2002-01-28 Michael Snyder <msnyder@redhat.com>
9297
9298 * regcache.c (legacy_read_register_gen): Need to be able to
9299 read pseudo-register as well as real register.
9300 (legacy_write_register_gen): Ditto.
9301
9302 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9303
9304 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9305 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9306 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9307 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9308 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9309 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9310 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9311 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9312 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9313 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9314 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9315 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9316 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9317 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9318 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9319 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9320 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9321 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9322 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9323 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9324
9325 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9326
9327 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9328 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9329 (initialize_current_architecture): Update target_byte_order using
9330 information from BFD.
9331 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9332 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9333
9334 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9335
9336 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9337 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9338
9339 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9340 #ifdef INVALID_FLOAT.
9341 * infcmd.c (do_registers_info): Ditto.
9342 * values.c (unpack_double): Ditto. Add comment.
9343
9344 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9345 already commented out.
9346
9347 2002-01-26 Andreas Schwab <schwab@suse.de>
9348
9349 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9350 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9351 registers and add support for PTRACE_GETREGS.
9352
9353 2002-01-24 Andrew Cagney <ac131313@redhat.com>
9354
9355 GDB 5.1.1 released from 5.1 branch.
9356 * NEWS: Add 5.1.1 news.
9357 * README: Sync with 5.1 branch.
9358
9359 2002-01-23 Fred Fish <fnf@redhat.com>
9360
9361 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9362 stabstring on initial malloc. Reallocing will copy it for us,
9363 if necessary.
9364
9365 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9366
9367 * Makefile.in (hpread_h): Delete.
9368 (HFILES_NO_SRCDIR): Remove hpread.h.
9369 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9370 (hpread.o): Update dependencies.
9371 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9372
9373 * hp-psymtab-read.c: Remove file.
9374 * hp-symtab-read.c: Remove file.
9375 * hpread.h: Remove file.
9376
9377 * hpread.c: Merge all contents of hp-psymtab-read.c,
9378 hp-symtab-read.c and hpread.h into this file, as it was prior to
9379 January 1999.
9380
9381 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9382 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9383 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9384 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9385
9386 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9387
9388 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9389 fill_gregset): Call gdbarch_tdep() just once, assign result to
9390 variable and use that, instead of calling the function several
9391 times.
9392
9393 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9394
9395 * configure.host: Accept sparcv9 as alias for sparc64.
9396 * configure.tgt: Likewise.
9397
9398 2002-01-22 Kevin Buettner <kevinb@redhat.com>
9399
9400 * solib-aix5.c (build_so_list_from_mapfile)
9401 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9402 arguments is not reversed.
9403 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9404 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
9405
9406 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
9407
9408 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9409 modified version of obsolete sh_fetch_pseudo_register.
9410 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9411 (sh4_register_read): New function.
9412 (sh_pseudo_register_write): New function. Renamed and modified
9413 version of obsolete sh_store_pseudo_register.
9414 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9415 (sh4_register_write): New function.
9416 (sh_gdbarch_init): Remove setting of gdbarch function
9417 fetch_pseudo_register and store_pseudo_register. Remove setting of
9418 register_convert_to_raw, register_convert_to_virtual,
9419 register_convertible.
9420 (sh_sh4_register_convertible): Delete. No longer needed. All is
9421 taken care by architecture specific functions
9422 register_read/register_write.
9423 (sh_sh4_register_convert_to_virtual): Make static.
9424 (sh_sh4_register_convert_to_raw): Ditto.
9425
9426 2002-01-22 Andrew Cagney <ac131313@redhat.com>
9427
9428 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9429 (floatformat_is_nan, floatformat_mantissa): Ditto.
9430
9431 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9432 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9433 builtin_type_ieee_double_little,
9434 builtin_type_ieee_double_littlebyte_bigword,
9435 builtin_type_m68881_ext, builtin_type_i960_ext,
9436 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9437 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9438 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9439 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9440
9441 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
9442
9443 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9444 parameter. Set frameless flag if it exists and depended of
9445 whether the scanned function is frameless or not.
9446 (xstormy16_skip_prologue): If function is frameless, return
9447 result of xstormy16_scan_prologue().
9448 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9449 call.
9450
9451 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
9452
9453 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9454 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9455 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9456 sh_sh4_register_byte, sh_sh4_register_raw_size,
9457 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9458 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9459 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9460 sh_store_pseudo_register, sh_do_pseudo_register): Call
9461 gdbarch_tdep() just once, assign result to variable and use that,
9462 instead of calling the function several times.
9463
9464 2002-01-20 Mark Kettenis <kettenis@gnu.org>
9465
9466 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9467 macros instead of LAST_FPU_CTRL_REGNUM.
9468 (store_register): Likewise.
9469
9470 2002-01-21 Jim Blandy <jimb@redhat.com>
9471
9472 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9473 is up-to-date before running the program, not just when a program
9474 exits.
9475
9476 2002-01-21 Fred Fish <fnf@redhat.com>
9477
9478 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9479 when we have found all instructions we are looking for.
9480
9481 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9482
9483 * arm-tdep.c (arm_register_name): New function.
9484 (arm_registers_names): Make static.
9485 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9486 (arm_register_name): Declare.
9487 (REGISTER_NAME): Use it.
9488
9489 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9490 Kevin Buettner <kevinb@redhat.com>
9491
9492 Convert arm targets to new FRAME interface.
9493 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9494 (arm_frame_find_save_regs): Delete.
9495 (arm_frame_init_saved_regs): New.
9496 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9497 Allocate extra_info as required. Convert all uses of fsr.regs
9498 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9499 to use extra_info.
9500 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9501 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9502 (check_prologue_cache, save_prologue_cache): Likewise.
9503 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9504 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9505 (FRAME_FIND_SAVED_REGS): Delete.
9506 (arm_frame_find_saved_regs): Delete prototype.
9507 (arm_frame_init_saved_regs): New prototype.
9508 (FRAME_INIT_SAVED_REGS): Define.
9509
9510 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9511
9512 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9513
9514 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9515
9516 From Jeff Law <law@redhat.com>:
9517 * infttrace.c: Include <sys/pstat.h>.
9518 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9519 exec file if the ttrace equivalent fails.
9520
9521 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9522
9523 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9524 (closeLogFile): Ditto.
9525
9526 2002-01-20 Michael Chastain <mec@shout.net>
9527
9528 * top.c (print_gdb_version): Bump copyright year to 2002.
9529
9530 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9531
9532 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9533 Zannoni and Eli Zaretskii.
9534
9535 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9536
9537 * buildsym.c: Update copyright years.
9538 * c-typeprint.c: Likewise.
9539 * dwarf2read.c: Likewise.
9540 * f-typeprint.c: Likewise.
9541 * gdbtypes.c: Likewise.
9542 * gdbtypes.h: Likewise.
9543 * hp-symtab-read.c: Likewise.
9544 * hpread.c: Likewise.
9545 * mdebugread.c: Likewise.
9546 * p-typeprint.c: Likewise.
9547
9548 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9549
9550 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9551 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9552 byte-order selectable.
9553 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9554 * arch-utils.c: Ditto.
9555 (set_endian): Ditto.
9556 (set_endian_from_file): Ditto.
9557 * gdbserver/low-sim.c (create_inferior): Ditto.
9558 * gdbarch.sh: Ditto.
9559 * gdbarch.h: Re-generate.
9560 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9561 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9562 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9563 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9564 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9565 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9566 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9567 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9568 macro definition.
9569 * config/mips/tm-wince.h: Remove #undef of macro
9570 TARGET_BYTE_ORDER_SELECTABLE.
9571 * config/sh/tm-wince.h: Ditto.
9572
9573 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9574
9575 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9576 member function fields. Add accessor macro
9577 TYPE_FN_FIELD_ARTIFICIAL.
9578 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9579 * c-typeprint.c (c_type_print_base): Skip artificial member
9580 functions.
9581
9582 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9583
9584 * f-typeprint.c: Delete unused function f_type_print_args.
9585 * p-typeprint.c: Delete unused function pascal_type_print_args.
9586
9587 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9588
9589 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9590 comment. Add ``artificial'' to ``union field_location''.
9591
9592 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9593
9594 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9595 * mdebugread.c (parse_symbol): Likewise.
9596 * stabsread.c (define_symbol): Likewise.
9597 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9598 initializing TYPE_FIELD_BITPOS to n (obsolete).
9599 (hpread_doc_function_type): Likewise.
9600 * hpread.c (hpread_function_type): Likewise.
9601
9602 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9603
9604 * configure.in (host_makefile_frag): Only require a host makefile
9605 fragment when a native build.
9606 * configure: Re-generate.
9607
9608 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9609
9610 * doublest.h (floatformat_from_type): Declare.
9611 * doublest.c (floatformat_from_type): New function.
9612 (convert_typed_floating): Use.
9613
9614 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9615 call to function floatformat_from_type.
9616
9617 * gdbarch.sh (IEEE_FLOAT): Delete.
9618 * gdbarch.h, gdbarch.c: Re-generate.
9619 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9620 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9621 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9622 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9623 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9624 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9625 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9626 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9627 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
9628 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
9629 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
9630 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
9631
9632 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
9633 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9634 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9635 * sh-tdep.c (sh_gdbarch_init): Ditto.
9636 * mips-tdep.c (mips_gdbarch_init): Ditto.
9637 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9638 * cris-tdep.c (cris_gdbarch_init): Ditto.
9639
9640 2002-01-20 Jiri Smid <smid@suse.cz>
9641
9642 * configure.host, configure.tgt: Support x86-64.
9643 * NEWS: Note new target x86-64.
9644
9645 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
9646 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
9647 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
9648 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
9649 x86-64-linux-nat.o): Fix dependencies.
9650
9651 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9652
9653 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
9654 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
9655 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
9656 * config/sparc/xm-sun4os4.h: Delete file.
9657 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
9658
9659 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9660
9661 * config/sparc/sparclynx.mh (XM_FILE): Delete.
9662 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
9663 * config/m68k/m68klynx.mh (XM_FILE): Delete.
9664 * config/i386/i386lynx.mh (XM_FILE): Delete.
9665 * config/rs6000/xm-rs6000ly.h: Delete file.
9666 * config/sparc/xm-sparclynx.h: Delete file.
9667 * config/m68k/xm-m68klynx.h: Delete file.
9668 * config/i386/xm-i386lynx.h: Delete file.
9669 * config/xm-lynx.h: Delete file.
9670 * config/djgpp/fnchange.lst: Update.
9671
9672 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9673
9674 * alpha-tdep.c (alpha_register_byte): New function.
9675 (alpha_register_raw_size): Ditto.
9676 (alpha_register_virtual_size): Ditto.
9677 (alpha_skip_prologue_internal): Renamed from
9678 alpha_skip_prologue.
9679 (alpha_skip_prologue): New version that calls
9680 alpha_skip_prologue_internal.
9681 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
9682 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
9683 second argument from alpha_skip_prologue.
9684 (REGISTER_BYTE): Use alpha_register_byte.
9685 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
9686 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
9687 (FRAMELESS_FUNCTION_INVOCATION): Use
9688 generic_frameless_function_invocation_not.
9689 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
9690 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
9691
9692 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9693
9694 * config/mips/xm-news-mips.h: Delete file.
9695 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
9696
9697 * config/m88k/xm-m88k.h: Delete file.
9698 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
9699 * config/m88k/xm-delta88v4.h: Ditto.
9700 * config/m88k/xm-delta88.h: Ditto.
9701
9702 * config/alpha/xm-fbsd.h: Delete file.
9703 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
9704
9705 * config/sparc/xm-sparc.h: Delete file.
9706 * Makefile.in (xm-sun4os4.h): Delete dependency.
9707 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
9708 * config/sparc/xm-sun4os4.h: Ditto.
9709 * config/sparc/xm-linux.h: Ditto.
9710
9711 * config/i386/xm-windows.h: Delete file.
9712
9713 2002-01-19 Andrew Cagney <ac131313@redhat.com>
9714
9715 * utils.c: Include <sys/param.h> for MAXPATHLEN.
9716 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
9717
9718 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9719
9720 * alpha-tdep.c (alpha_call_dummy_words): New.
9721 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
9722 (CALL_DUMMY_P): Define.
9723 (CALL_DUMMY_WORDS): Define.
9724 (SIZEOF_CALL_DUMMY_WORDS): Define.
9725
9726 2002-01-19 Per Bothner <per@bothner.com>
9727
9728 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
9729 isn't NULL, which can happen with some gcj-3.x-produced code.
9730
9731 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
9732
9733 * alpha-tdep.c (alpha_register_virtual_type): New function.
9734 (alpha_init_frame_pc_first): Ditto.
9735 (alpha_fix_call_dummy): Ditto.
9736 (alpha_store_struct_return): Ditto.
9737 (alpha_extract_struct_value_address): Ditto.
9738 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
9739 alpha_register_virtual_type.
9740 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
9741 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
9742 alpha_extract_struct_value_address.
9743 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
9744 (INIT_FRAME_PC): Use init_frame_pc_noop.
9745 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
9746
9747 2002-01-19 Mark Kettenis <kettenis@gnu.org>
9748
9749 * i386gnu-nat.c: Include "i386-tdep.h".
9750 (fetch_fpregs): Simplify code dealing with uninitialized floating
9751 point states such that it doesn't require FP7_REGNUM.
9752
9753 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9754
9755 * alpha-tdep.c (frame_extra_info): New.
9756 (alpha_find_saved_regs): Make static. Use
9757 frame->extra_info.
9758 (alpha_frame_init_saved_regs): New function.
9759 (alpha_frame_saved_pc): Use frame->extra_info.
9760 (temp_saved_regs): Don't declare as struct frame_saved_regs.
9761 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
9762 (init_extra_frame_info): Rename to...
9763 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
9764 (alpha_print_extra_frame_info): New function.
9765 (alpha_frame_locals_address): Ditto.
9766 (alpha_frame_args_address): Ditto.
9767 (alpha_pop_frame): Use frame->extra_info.
9768 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
9769 alpha_frame_args_address.
9770 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
9771 (alpha_find_saved_regs): Remove prototype.
9772 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
9773 (EXTRA_FRAME_INFO): Remove.
9774 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
9775 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
9776
9777 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9778
9779 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
9780 (alpha_cannot_fetch_register): Ditto.
9781 (alpha_cannot_store_register): Ditto.
9782 (alpha_register_convertible): Ditto.
9783 (alpha_use_struct_convention): Ditto.
9784 * config/alpha/tm-alpha.h: Update copyright years.
9785 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
9786 (INNER_THAN): Use core_addr_lessthan.
9787 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
9788 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
9789 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
9790 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
9791 (FRAME_CHAIN): Remove unnecessary cast.
9792
9793 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9794
9795 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
9796 obsolete.
9797
9798 2002-01-18 Andrew Cagney <ac131313@redhat.com>
9799
9800 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
9801 * monitor.c, remote-array.c, remote-bug.c: Ditto.
9802 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
9803 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
9804 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
9805 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
9806 * x86-64-linux-nat.c: Ditto.
9807
9808 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9809
9810 * alpha-tdep.c (alpha_register_name): New function.
9811 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
9812 (REGISTER_NAME): Define.
9813
9814 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9815
9816 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
9817
9818 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9819
9820 * alpha-tdep.c: Update copyright years.
9821 (alpha_next_pc): New function.
9822 (alpha_software_single_step): Ditto.
9823 * config/alpha/tm-alpha.h: Add prototype for
9824 alpha_software_single_step.
9825
9826 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
9827
9828 * alphabsd-nat.c: Update copyright years.
9829 (fill_gregset): Use regcache_collect.
9830 (fill_fpregset): Likewise.
9831 (fetch_inferior_registers): Only fetch integer registers
9832 if requested to do so.
9833 (store_inferior_registers): Only store integer registers
9834 if requested to do so.
9835
9836 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9837
9838 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
9839 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
9840 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
9841 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
9842 * config/alpha/fbsd.mh (XDEPFILES): Delete.
9843 * config/arm/linux.mh (XDEPFILES): Delete.
9844 * config/arm/nbsd.mh (XDEPFILES): Delete.
9845 * config/i386/i386dgux.mh (XDEPFILES): Delete.
9846 * config/i386/i386sol2.mh (XDEPFILES): Delete.
9847 * config/i386/i386m3.mh (XDEPFILES): Delete.
9848 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
9849 * config/i386/i386gnu.mh (XDEPFILES): Delete.
9850 * config/i386/fbsd.mh (XDEPFILES): Delete.
9851 * config/i386/i386bsd.mh (XDEPFILES): Delete.
9852 * config/i386/i386sco5.mh (XDEPFILES): Delete.
9853 * config/i386/i386v4.mh (XDEPFILES): Delete.
9854 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
9855 * config/i386/i386sco4.mh (XDEPFILES): Delete.
9856 * config/i386/i386aix.mh (XDEPFILES): Delete.
9857 * config/i386/go32.mh (XDEPFILES): Delete.
9858 * config/i386/cygwin.mh (XDEPFILES): Delete.
9859 * config/i386/i386lynx.mh (XDEPFILES): Delete.
9860 * config/i386/i386mach.mh (XDEPFILES): Delete.
9861 * config/i386/i386v32.mh (XDEPFILES): Delete.
9862 * config/i386/linux.mh (XDEPFILES): Delete.
9863 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
9864 * config/i386/ncr3000.mh (XDEPFILES): Delete.
9865 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
9866 * config/i386/i386sco.mh (XDEPFILES): Delete.
9867 * config/i386/i386v.mh (XDEPFILES): Delete.
9868 * config/i386/nbsd.mh (XDEPFILES): Delete.
9869 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
9870 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
9871 * config/i386/symmetry.mh (XDEPFILES): Delete.
9872 * config/i386/obsd.mh (XDEPFILES): Delete.
9873 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
9874 * config/ia64/linux.mh (XDEPFILES): Delete.
9875 * config/ia64/aix.mh (XDEPFILES): Delete.
9876 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
9877 * config/m68k/dpx2.mh (XDEPFILES): Delete.
9878 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
9879 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
9880 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
9881 * config/m68k/linux.mh (XDEPFILES): Delete.
9882 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
9883 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
9884 * config/m68k/nbsd.mh (XDEPFILES): Delete.
9885 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
9886 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
9887 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
9888 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
9889 * config/m88k/delta88.mh (XDEPFILES): Delete.
9890 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
9891 * config/m88k/m88k.mh (XDEPFILES): Delete.
9892 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
9893 * config/mips/linux.mh (XDEPFILES): Delete.
9894 * config/mips/irix6.mh (XDEPFILES): Delete.
9895 * config/mips/irix5.mh (XDEPFILES): Delete.
9896 * config/mips/irix4.mh (XDEPFILES): Delete.
9897 * config/mips/irix3.mh (XDEPFILES): Delete.
9898 * config/mips/decstation.mh (XDEPFILES): Delete.
9899 * config/mips/mipsm3.mh (XDEPFILES): Delete.
9900 (NATDEPFILES): Move core-aout.o to here.
9901 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
9902 * config/pa/hpux1020.mh (XDEPFILES): Delete.
9903 * config/pa/hppabsd.mh (XDEPFILES): Delete.
9904 * config/pa/hppahpux.mh (XDEPFILES): Delete.
9905 * config/pa/hpux11w.mh (XDEPFILES): Delete.
9906 * config/pa/hppaosf.mh (XDEPFILES): Delete.
9907 * config/pa/hpux11.mh (XDEPFILES): Delete.
9908 * config/powerpc/aix.mh (XDEPFILES): Delete.
9909 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
9910 * config/powerpc/linux.mh (XDEPFILES): Delete.
9911 * config/romp/rtbsd.mh: Rename XDEPFILES.
9912 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
9913 * config/rs6000/aix4.mh (XDEPFILES): Delete.
9914 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
9915 * config/s390/s390.mh (XDEPFILES): Delete.
9916 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
9917 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
9918 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
9919 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
9920 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
9921 * config/sparc/nbsd.mh (XDEPFILES): Delete.
9922 * config/sparc/linux.mh (XDEPFILES): Delete.
9923 * config/vax/vaxult.mh (XDEPFILES): Delete.
9924 * config/vax/vaxult2.mh (XDEPFILES): Delete.
9925 * Makefile.in (DEPFILES): Remove XDEPFILES.
9926
9927 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9928
9929 * utils.c (internal_verror): Fix comments, default is yes not no.
9930 Update queries to match. Default to quit and dump core.
9931
9932 2002-01-17 Andrew Cagney <ac131313@redhat.com>
9933
9934 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
9935 copyright.
9936 * defs.h, event-top.c, gdbcmd.h: Ditto.
9937 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
9938 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
9939 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
9940 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
9941 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
9942 * mi/mi-main.c:Ditto.
9943
9944 * stack.c, symfile.c: Update copyright.
9945
9946 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9947
9948 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
9949 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
9950 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
9951 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
9952
9953 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
9954
9955 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
9956 * gdbserver/low-lynx.c (myattach): Likewise.
9957 * gdbserver/low-nbsd.c (myattach): Likewise.
9958 * gdbserver/low-sim.c (myattach): Likewise.
9959 * gdbserver/low-sparc.c (myattach): Likewise.
9960 * gdbserver/low-sun3.c (myattach): Likewise.
9961
9962 * gdbserver/low-linux.c (myattach): New function.
9963
9964 * gdbserver/server.c (attach_inferior): New function.
9965 (main): Handle "--attach".
9966
9967 2002-01-16 Andrew Cagney <ac131313@redhat.com>
9968
9969 * MAINTAINERS (language support): Daniel Jacobwitz is C++
9970 maintainer.
9971
9972 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
9973
9974 * c-typeprint.c (is_type_conversion_operator): Add additional
9975 check for non-conversion operators.
9976
9977 2002-01-15 Michael Snyder <msnyder@redhat.com>
9978
9979 * linux-proc.c: Add "info proc" command, a la procfs.c.
9980 (read_mapping): New function, abstract and re-use code.
9981 (linux_find_memory_regions): Use new func read_mapping.
9982 (linux_info_proc_cmd): New function, implement "info proc".
9983 (_initialize_linux_proc): Add new command "info proc".
9984
9985 2002-01-15 Michael Snyder <msnyder@redhat.com>
9986
9987 * symfile.c (generic_load): Use bfd_map_over_sections method
9988 instead of manipulating bfd structure members directly.
9989 (add_section_size_callback): New function, bfd sections callback
9990 used by generic_load.
9991 (load_sections_callback): New function, bfd sections callback
9992 used by generic_load.
9993
9994 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
9995
9996 [Based on work by Jim Blandy]
9997 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
9998 (builtin_type_vec128): Export.
9999 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10000 types.
10001 (builtin_type_vec128): New builtin type for 128 bit vector
10002 registers.
10003 (build_gdbtypes): Initialize builtin_type_v16qi and
10004 builtin_type_v8hi. Create the vec128 register builtin type
10005 structure.
10006 (build_builtin_type_vec128): New function.
10007 (_initialize_gdbtypes): Register builtin_type_v16qi and
10008 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10009 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10010 AltiVec register to new builtin type.
10011
10012 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
10013
10014 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10015 to make_cv_type.
10016
10017 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10018
10019 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10020 CLEAN_UP_REGISTER_VALUE.
10021 * regcache.c (supply_register): Update only call.
10022
10023 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10024
10025 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10026 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10027 a29k-*-vxworks* targets as obsolete.
10028
10029 2002-01-14 Michael Snyder <msnyder@redhat.com>
10030
10031 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10032 until we can resolve portability issues.
10033 * gregset.h: Remove references to fpxregs.
10034 * gcore.c (gcore_command): Initialize note_sec to NULL.
10035
10036 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10037
10038 * signals.c (target_signal_to_name): Rewrite. Only use
10039 signals[].name when in bounds and non-NULL.
10040
10041 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10042
10043 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10044 * signals.c (target_signal_to_name): Verify that SIG is within the
10045 bounds of the signals array.
10046
10047 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10048
10049 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10050
10051 2002-01-13 Keith Seitz <keiths@redhat.com>
10052
10053 * stack.c (print_frame_info_base): Print the frame's pc
10054 only if when print_frame_info_listing_hook is not defined.
10055
10056 2002-01-13 Keith Seitz <keiths@redhat.com>
10057
10058 * varobj.c (varobj_set_value): Make sure that there were no
10059 errors evaluating the object before attempting to set its
10060 value.
10061 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10062 so this offset adjustment is no longer necessary.
10063 (create_child): Don't set the error flag if the child is
10064 a CPLUS_FAKE_CHILD.
10065 (value_of_child): If value_fetch_lazy fails, return NULL
10066 so that callers will be notified that an error occurred.
10067 (c_value_of_variable): Delay check of variable's validity
10068 until later. We actually want all structs and unions to have
10069 the value "{...}".
10070 Do not return "???" for variables which could not be evaluated.
10071 This error condition must be returned to the caller so that it
10072 can get the error condition from gdb.
10073 (cplus_name_of_child): Adjust index for vptr before figuring
10074 out the name of the child.
10075 (cplus_value_of_child): If a child's (real) parent is not valid,
10076 don't even bother trying to give a value for it. Just return
10077 an error. Change all instances in this function.
10078 (cplus_type_of_child): If our parent is one of the "fake"
10079 parents, we need to get at the type of the real parent, and
10080 derive the child's true type using this information.
10081
10082 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10083
10084 From 2002-01-09 John Marshall <johnm@falch.net>:
10085 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10086 sources.redhat.com, and tweak some related URLs which had
10087 suffered from linkrot.
10088
10089 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10090
10091 From Jeff law:
10092 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10093 structures passed in registers.
10094
10095 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10096
10097 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10098 white space which prevented compilation. Reported by DSK
10099 <dsk@student.unsw.edu.au>.
10100
10101 2002-01-11 Michael Snyder <msnyder@redhat.com>
10102
10103 * symfile.c (build_section_addr_info_from_section_tab):
10104 Use bfd access method instead of manipulating bfd directly.
10105 (syms_from_objfile): Ditto.
10106 (simple_overlay_update_1): Ditto.
10107 (simple_overlay_update): Ditto.
10108 (generic_load): Ditto.
10109 (overlay_unmapped_address): FIXME comment, bfd access methods.
10110 (sections_overlap): FIXME comment, bfd access methods.
10111 (pc_in_mapped_range): FIXME comment, bfd access methods.
10112 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10113 (section_is_mapped): FIXME comment, bfd access methods.
10114 (section_is_overlay): FIXME comment, bfd access methods.
10115
10116 * symfile.c (generic_load): Whitespace and long line cleanups.
10117 Remove duplicate variable, change several local variables to
10118 more appropriate data types.
10119 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10120
10121 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10122
10123 From Peter Schauer:
10124 * language.c (longest_local_hex_string_custom): Use phex_nz to
10125 convert NUM to a hex string.
10126
10127 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
10128
10129 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10130 the function.
10131 Update Copyright year.
10132
10133 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10134
10135 * language.c (longest_raw_hex_string): Delete unused function.
10136
10137 2002-01-11 Petr Sorfa <petrs@caldera.com>
10138
10139 * MAINTAINERS (write-after-approval): Add myself.
10140 * dwarf2read.c (read_tag_string_type): Handling of
10141 DW_AT_byte_size.
10142 (read_tag_string_type): FORTRAN fix to prevent propagation of
10143 first string size.
10144 (set_cu_language): Handling of DW_LANG_Fortran95
10145
10146 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10147
10148 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10149 GETPID(inferior_ptid).
10150 (store_inferior_registers): Likewise.
10151
10152 2002-01-10 Jason Merrill <jason@redhat.com>
10153
10154 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10155 Fix DW_OP_minus.
10156
10157 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10158
10159 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10160 and bfd/elf32-sh-nbsd.c.
10161
10162 2002-01-10 Michael Snyder <msnyder@redhat.com>
10163
10164 * NEWS: Mention --pid and corefile/proc-id behavior change.
10165
10166 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10167 * gcore.c: Include cli/cli-decode.h instead of command.h.
10168
10169 * main.c (captured_main): Add new command line option "--pid".
10170 If the second command line argument (following the symbol-file)
10171 begins with a digit, try to attach to it before trying to open
10172 it as a corefile.
10173 (print_gdb_help): Document the "--pid" argument.
10174
10175 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10176
10177 * completer.c (command_completer): New function.
10178
10179 * completer.h <command_completer>: Add prototype.
10180
10181 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10182 completer for the "help" command.
10183
10184 2002-01-09 Jason Merrill <jason@redhat.com>
10185
10186 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10187
10188 2002-01-09 Michael Snyder <msnyder@redhat.com>
10189
10190 * i386-linux-nat.c (fill_fpxregset): Make global.
10191 (store_fpxregset): Ditto.
10192
10193 * gregset.h (gdb_fpxregset_t): Define.
10194 (supply_fpxregset): Prototype.
10195 (fill_fpxregset): Prototype.
10196
10197 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10198
10199 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10200
10201 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10202 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10203 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10204
10205 2002-01-09 Andrew Cagney <ac131313@redhat.com>
10206
10207 * MAINTAINERS: Update target maintainer rules so that any
10208 Maintainer can approve a tested patch for a maintenance-only
10209 target.
10210
10211 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10212
10213 * MAINTAINERS (write-after-approval): Add myself.
10214
10215 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10216 IN_SIGTRAMP.
10217
10218 2002-01-08 Michael Snyder <msnyder@redhat.com>
10219
10220 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10221 real name of the executable, rather than the /proc name.
10222
10223 2002-01-03 Michael Snyder <msnyder@redhat.com>
10224
10225 Implement a "generate-core-file" command in gdb, save target state.
10226 * gcore.c: New file. Implement new command 'generate-core-file'.
10227 Save a corefile image of the current state of the inferior.
10228 * linux-proc.c: Add linux-specific code for saving corefiles.
10229 * target.h (struct target_ops): Add new target vectors for saving
10230 corefiles; to_find_memory_regions and to_make_corefile_notes.
10231 (target_find_memory_regions): New macro.
10232 (target_make_corefile_notes): New macro.
10233 * target.c (update_current_target): Inherit new target methods.
10234 (dummy_find_memory_regions): New place-holder method.
10235 (dummy_make_corefile_notes): New place-holder method.
10236 (init_dummy_target): Initialize new dummy target vectors.
10237 * exec.c (exec_set_find_memory_regions): New function.
10238 Allow the exec_ops vector for memory regions to be taken over.
10239 (exec_make_note_section): New function, target vector method.
10240 * defs.h (exec_set_find_memory_regions): Export prototype.
10241 * procfs.c (proc_find_memory_regions): New function, corefile method.
10242 (procfs_make_note_section): New function, corefile method.
10243 (init_procfs_ops): Set new target vector pointers.
10244 (find_memory_regions_callback): New function.
10245 (procfs_do_thread_registers): New function.
10246 (procfs_corefile_thread_callback): New function.
10247 * sol-thread.c (sol_find_memory_regions): New function.
10248 (sol_make_note_section): New function.
10249 (init_sol_thread_ops): Initialize new target vectors.
10250 * inftarg.c (inftarg_set_find_memory_regions): New function.
10251 Allow to_find_memory_regions vector to be taken over.
10252 (inftarg_set_make_corefile_notes): New function.
10253 Allow to_make_corefile_notes vector to be taken over.
10254 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10255 interface layer if not target_has_execution (may be a corefile).
10256 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10257 * config/sparc/sun4sol2.mh: Ditto.
10258 * config/alpha/alpha-linux.mh: Ditto.
10259 * config/arm/linux.mh: Ditto.
10260 * config/i386/x86-64linux.mh: Ditto.
10261 * config/ia64/linux.mh: Ditto.
10262 * config/m68k/linux.mh: Ditto.
10263 * config/mips/linux.mh: Ditto.
10264 * config/powerpc/linux.mh: Ditto.
10265 * config/sparc/linux.mh: Ditto.
10266
10267 2002-01-07 Michael Snyder <msnyder@redhat.com>
10268
10269 * arm-linux-nat.c: Remove references to regcache.c internal data
10270 (registers[] and register_valid[]).
10271
10272 2002-01-07 Michael Snyder <msnyder@redhat.com>
10273
10274 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10275 so that attaching to a pid will automatically read the process's
10276 symbol file and shlibs.
10277 * Makefile.in: Add rule for linux-proc.o.
10278 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10279 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10280 * config/arm/linux.mh: Ditto.
10281 * config/i386/linux.mh: Ditto.
10282 * config/i386/x86-64linux.mh: Ditto.
10283 * config/ia64/linux.mh: Ditto.
10284 * config/m68k/linux.mh: Ditto.
10285 * config/mips/linux.mh: Ditto.
10286 * config/powerpc/linux.mh: Ditto.
10287 * config/sparc/linux.mh: Ditto.
10288
10289 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10290
10291 * win32-nat.c: Add i386-tdep.h dependency.
10292
10293 2002-01-07 Michael Snyder <msnyder@redhat.com>
10294
10295 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10296 instead of bfd_get_arch_size. Don't bail out just because
10297 there's no exec_bfd.
10298
10299 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10300 * p-valprint.c (pascal_object_print_value): Ditto.
10301 * somread.c (som_symtab_read): Ditto.
10302 * symfile.c (simple_free_overlay_region_table): Ditto.
10303 * valops.c (value_assign): Ditto.
10304
10305 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10306 use tilde_expand and strerror for opening save-tracepoints file.
10307
10308 * thread-db.c (thread_db_new_objfile): Indendation fix.
10309
10310 * infptrace.c (GDB_MAX_ALLOCA): New define.
10311 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10312 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10313 can be overridden with whatever value is appropriate to the host).
10314 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10315 alloca to allocate potentially large buffer.
10316 * rs6000-nat.c (child_xfer_memory): Ditto.
10317 * symm-nat.c (child_xfer_memory): Ditto.
10318 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10319
10320 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10321
10322 From Nick Clifton <nickc@redhat.com>
10323 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10324
10325 2002-01-07 Michael Snyder <msnyder@redhat.com>
10326
10327 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10328 Don't use exec_bfd if it's NULL.
10329
10330 2002-01-06 Mark Kettenis <kettenis@gnu.org>
10331
10332 * valops.c (value_arg_coerce): Fix formatting.
10333
10334 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10335
10336 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10337 * gnu-nat.c: Ditto.
10338
10339 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10340
10341 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10342 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10343 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10344 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10345 z8k-coff have not been multi-arched. Update z8k-coff build
10346 status.
10347
10348 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10349
10350 * MAINTAINERS: Mark a29k target as obsolete.
10351 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10352 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10353 comments.
10354 * NEWS: Note that a29k targets are obsolete.
10355 * a29k-tdep.c: Mark as obsolete.
10356 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10357 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10358 a29k-*-vxworks* targets as obsolete.
10359 * remote-adapt.c: Obsolete.
10360 * remote-eb.c: Obsolete.
10361 * remote-mm.c: Obsolete.
10362 * remote-udi.c: Obsolete.
10363 * config/a29k/a29k-udi.mt: Obsolete.
10364 * config/a29k/a29k.mt: Obsolete.
10365 * config/a29k/tm-a29k.h: Obsolete.
10366 * config/a29k/tm-vx29k.h: Obsolete.
10367 * config/a29k/vx29k.mt: Obsolete.
10368
10369 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10370
10371 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10372 with BFD_ENDIAN_BIG.
10373
10374 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10375
10376 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10377 * configure, config.in: Re-generate.
10378 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10379 * defs.h: Do not include <endian.h>.
10380
10381 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10382
10383 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10384 * config.in: Regenerate.
10385 * configure.in: Update copyright years.
10386 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10387 * configure: Regenerate.
10388 * i386bsd-nat.c: Update copyright years.
10389 (fill_gregset): Use regcache_collect.
10390 (fetch_inferior_registers): Only fetch integer registers
10391 if requested to do so. Add support for XMM registers
10392 using PT_GETXMMREGS.
10393 (store_inferior_registers): Only store integer registers
10394 if requested to do so. Add support for XMM registers
10395 using PT_SETXMMREGS.
10396 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10397 (store_inferior_registers): Remove.
10398 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10399 (fetch_elfcore_registers): New function.
10400 (i386nbsd_elfcore_fns): New.
10401 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10402 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10403 i386bsd-nat.o.
10404 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10405 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10406 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10407 * config/i386/tm-nbsd.h: Update copyright years.
10408 (HAVE_SSE_REGS): Define.
10409 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10410 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10411 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10412 (SIGCONTEXT_PC_OFFSET): Remove.
10413 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10414
10415 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10416
10417 * configure.tgt: Remove powerpc-*-macos* target.
10418 * config/m68k/xm-mpw.h: Delete file.
10419 * config/xm-mpw.h: Delete file.
10420 * ser-mac.c: Delete file.
10421 * mpw-make.sed: Delete file.
10422 * mpw-config.in: Delete file.
10423 * mac-xdep.c: Delete file.
10424 * mac-gdb.r: Delete file.
10425 * mac-defs.h: Delete file.
10426 * mac-nat.c: Delete file.
10427 * config/powerpc/macos.mh: Delete file.
10428 * config/powerpc/macos.mt: Delete file.
10429 * config/powerpc/nm-macos.h: Delete file.
10430 * config/powerpc/tm-macos.h: Delete file.
10431 * source.c (openp, open_source_file): Remove obsolete code.
10432 * top.c (gdb_readline): Ditto.
10433 * utils.c (query): Ditto.
10434 * event-top.c (display_gdb_prompt): Ditto.
10435 * Makefile.in (ser-mac.o): Delete obsolete target.
10436 * NEWS: Update.
10437
10438 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10439
10440 * defs.h (BIG_ENDIAN): Delete macro definition.
10441 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10442 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10443 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10444 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10445 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10446 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10447 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10448 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10449 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10450 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10451 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10452 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10453 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10454 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10455 * gdbarch.c: Re-generate.
10456
10457 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10458
10459 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10460 for core files.
10461
10462 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10463
10464 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10465
10466 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10467
10468 * value.h (value_ptr): Delete typedef.
10469
10470 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10471
10472 * i386nbsd-nat.c: Update copyright years.
10473 Include i386-tdep.h.
10474
10475 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
10476
10477 * stabsread.c: Update copyright years.
10478
10479 From Debashis Mahata <debashis.mahata@wipro.com>:
10480 (read_struct_fields): Deal with Sun C compiler erroneous stab
10481 output for structs and unions.
10482 Fix PR gdb/269.
10483
10484 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10485
10486 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10487 prototype.
10488
10489 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10490
10491 * cp-abi.c: Fix whitespace.
10492 (baseclass_offset): New wrapper function.
10493 * cp-abi.h (baseclass_offset): Add prototype.
10494 (struct cp_abi_ops): Add baseclass_offset pointer.
10495
10496 * valops.c (vb_match): Move to...
10497 * gnu-v2-abi.c (vb_match): here.
10498 * valops.c (baseclass_offset): Move to...
10499 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10500
10501 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10502
10503 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10504 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10505 * hpacc-abi.c (init_hpacc_ops): Likewise.
10506
10507 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10508
10509 * valops.c (find_overload_match): Accept obj as a
10510 reference parameter. Update it before returning.
10511 * value.h (find_overload_match): Update prototype.
10512 * eval.c (evaluate_subexp_standard): Pass object to
10513 find_overload_match by reference.
10514
10515 2002-01-03 Andrew Cagney <ac131313@redhat.com>
10516
10517 * valarith.c: Replace value_ptr with struct value pointer. Remove
10518 register attribute from value declarations.
10519 * valops.c: Ditto.
10520 * value.h: Ditto.
10521 * scm-lang.c (scm_lookup_name): Ditto.
10522
10523 2002-01-03 Michael Snyder <msnyder@redhat.com>
10524
10525 Abstract the functionality of iterating over mapped memory
10526 regions into a general purpose iterator function.
10527 * procfs.c (iterate_over_mappings): New function, general purpose
10528 iterator for memory sections.
10529 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10530 (solib_mappings_callback): New function, callback for above.
10531 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10532 (info_mappings_callback): New function, callback for above.
10533
10534 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10535
10536 2002-01-01 Mark Kettenis <kettenis@gnu.org>
10537
10538 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10539 * i386-tdep.c: Include "elf-bfd.h".
10540 (process_note_abi_tag_sections): New function.
10541 (i386_gdbarch_init): Add code to recognize various OS/ABI
10542 combinations.
10543
10544 * maint.c (_initialize_maint_cmds): Add missing \ in
10545 string-literal.
10546
10547 For older changes see ChangeLog-2001
10548 \f
10549 Local Variables:
10550 mode: change-log
10551 left-margin: 8
10552 fill-column: 74
10553 version-control: never
10554 End:
This page took 0.234588 seconds and 5 git commands to generate.